@fileverse-dev/ddoc 2.1.3-patch-13 → 2.1.3-patch-15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +312 -310
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -147,14 +147,14 @@ function Loe() {
147
147
  }
148
148
  return null;
149
149
  }
150
- var Z = Object.assign, U = 0, V, Y, ae, G, re, de, ie;
150
+ var Z = Object.assign, U = 0, V, Y, ae, G, ie, de, re;
151
151
  function pe() {
152
152
  }
153
153
  pe.__reactDisabledLog = !0;
154
154
  function oe() {
155
155
  {
156
156
  if (U === 0) {
157
- V = console.log, Y = console.info, ae = console.warn, G = console.error, re = console.group, de = console.groupCollapsed, ie = console.groupEnd;
157
+ V = console.log, Y = console.info, ae = console.warn, G = console.error, ie = console.group, de = console.groupCollapsed, re = console.groupEnd;
158
158
  var O = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
@@ -196,13 +196,13 @@ function Loe() {
196
196
  value: G
197
197
  }),
198
198
  group: Z({}, O, {
199
- value: re
199
+ value: ie
200
200
  }),
201
201
  groupCollapsed: Z({}, O, {
202
202
  value: de
203
203
  }),
204
204
  groupEnd: Z({}, O, {
205
- value: ie
205
+ value: re
206
206
  })
207
207
  });
208
208
  }
@@ -13442,7 +13442,7 @@ function rfe(t) {
13442
13442
  L.set(R, G);
13443
13443
  }
13444
13444
  if (S)
13445
- for (var re = p ? 3 : 1, de = function(ge) {
13445
+ for (var ie = p ? 3 : 1, de = function(ge) {
13446
13446
  var J = w.find(function(be) {
13447
13447
  var ke = L.get(be);
13448
13448
  if (ke)
@@ -13452,8 +13452,8 @@ function rfe(t) {
13452
13452
  });
13453
13453
  if (J)
13454
13454
  return D = J, "break";
13455
- }, ie = re; ie > 0; ie--) {
13456
- var pe = de(ie);
13455
+ }, re = ie; re > 0; re--) {
13456
+ var pe = de(re);
13457
13457
  if (pe === "break") break;
13458
13458
  }
13459
13459
  e.placement !== D && (e.modifiersData[r]._skip = !0, e.placement = D, e.reset = !0);
@@ -13572,10 +13572,10 @@ function hfe(t) {
13572
13572
  };
13573
13573
  if (M) {
13574
13574
  if (s) {
13575
- var q, Z = w === "y" ? us : fs, U = w === "y" ? Aa : Sa, V = w === "y" ? "height" : "width", Y = M[w], ae = Y + g[Z], G = Y - g[U], re = h ? -S[V] / 2 : 0, de = k === Zh ? L[V] : S[V], ie = k === Zh ? -S[V] : -L[V], pe = e.elements.arrow, oe = h && pe ? wS(pe) : {
13575
+ var q, Z = w === "y" ? us : fs, U = w === "y" ? Aa : Sa, V = w === "y" ? "height" : "width", Y = M[w], ae = Y + g[Z], G = Y - g[U], ie = h ? -S[V] / 2 : 0, de = k === Zh ? L[V] : S[V], re = k === Zh ? -S[V] : -L[V], pe = e.elements.arrow, oe = h && pe ? wS(pe) : {
13576
13576
  width: 0,
13577
13577
  height: 0
13578
- }, ge = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $q(), J = ge[Z], be = ge[U], ke = hm(0, L[V], oe[V]), Re = v ? L[V] / 2 - re - ke - J - j.mainAxis : de - ke - J - j.mainAxis, Pe = v ? -L[V] / 2 + re + ke + be + j.mainAxis : ie + ke + be + j.mainAxis, Ae = e.elements.arrow && Iy(e.elements.arrow), Le = Ae ? w === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, Te = (q = R == null ? void 0 : R[w]) != null ? q : 0, ce = Y + Re - Te - Le, X = Y + Pe - Te, Q = hm(h ? c5(ae, ce) : ae, Y, h ? W0(G, X) : G);
13578
+ }, ge = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $q(), J = ge[Z], be = ge[U], ke = hm(0, L[V], oe[V]), Re = v ? L[V] / 2 - ie - ke - J - j.mainAxis : de - ke - J - j.mainAxis, Pe = v ? -L[V] / 2 + ie + ke + be + j.mainAxis : re + ke + be + j.mainAxis, Ae = e.elements.arrow && Iy(e.elements.arrow), Le = Ae ? w === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, Te = (q = R == null ? void 0 : R[w]) != null ? q : 0, ce = Y + Re - Te - Le, X = Y + Pe - Te, Q = hm(h ? c5(ae, ce) : ae, Y, h ? W0(G, X) : G);
13579
13579
  M[w] = Q, H[w] = Q - Y;
13580
13580
  }
13581
13581
  if (o) {
@@ -14186,7 +14186,7 @@ function $fe(t, e) {
14186
14186
  var S = k.map(function(xe) {
14187
14187
  return xe.fn(w);
14188
14188
  }), D = t.hasAttribute("aria-expanded");
14189
- return Ae(), re(), Y(), ae("onCreate", [w]), n.showOnCreate && B(), M.addEventListener("mouseenter", function() {
14189
+ return Ae(), ie(), Y(), ae("onCreate", [w]), n.showOnCreate && B(), M.addEventListener("mouseenter", function() {
14190
14190
  w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
14191
14191
  }), M.addEventListener("mouseleave", function() {
14192
14192
  w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 && Z().addEventListener("mousemove", p);
@@ -14241,7 +14241,7 @@ function $fe(t, e) {
14241
14241
  });
14242
14242
  }
14243
14243
  }
14244
- function re() {
14244
+ function ie() {
14245
14245
  if (!(D || !w.props.aria.expanded)) {
14246
14246
  var xe = cd(w.props.triggerTarget || t);
14247
14247
  xe.forEach(function(Ue) {
@@ -14254,7 +14254,7 @@ function $fe(t, e) {
14254
14254
  return xe !== p;
14255
14255
  });
14256
14256
  }
14257
- function ie(xe) {
14257
+ function re(xe) {
14258
14258
  if (!(Ro.isTouch && (l || xe.type === "mousedown"))) {
14259
14259
  var Ue = xe.composedPath && xe.composedPath()[0] || xe.target;
14260
14260
  if (!(w.props.interactive && lI(M, Ue))) {
@@ -14279,11 +14279,11 @@ function $fe(t, e) {
14279
14279
  }
14280
14280
  function ge() {
14281
14281
  var xe = Z();
14282
- xe.addEventListener("mousedown", ie, !0), xe.addEventListener("touchend", ie, _1), xe.addEventListener("touchstart", oe, _1), xe.addEventListener("touchmove", pe, _1);
14282
+ xe.addEventListener("mousedown", re, !0), xe.addEventListener("touchend", re, _1), xe.addEventListener("touchstart", oe, _1), xe.addEventListener("touchmove", pe, _1);
14283
14283
  }
14284
14284
  function J() {
14285
14285
  var xe = Z();
14286
- xe.removeEventListener("mousedown", ie, !0), xe.removeEventListener("touchend", ie, _1), xe.removeEventListener("touchstart", oe, _1), xe.removeEventListener("touchmove", pe, _1);
14286
+ xe.removeEventListener("mousedown", re, !0), xe.removeEventListener("touchend", re, _1), xe.removeEventListener("touchstart", oe, _1), xe.removeEventListener("touchmove", pe, _1);
14287
14287
  }
14288
14288
  function be(xe, Ue) {
14289
14289
  Re(xe, function() {
@@ -14344,7 +14344,7 @@ function $fe(t, e) {
14344
14344
  var Ue, lt = !1;
14345
14345
  if (!(!w.state.isEnabled || ee(xe) || o)) {
14346
14346
  var Bt = ((Ue = u) == null ? void 0 : Ue.type) === "focus";
14347
- u = xe, m = xe.currentTarget, re(), !w.state.isVisible && Pfe(xe) && Pg.forEach(function(Dt) {
14347
+ u = xe, m = xe.currentTarget, ie(), !w.state.isVisible && Pfe(xe) && Pg.forEach(function(Dt) {
14348
14348
  return Dt(xe);
14349
14349
  }), xe.type === "click" && (w.props.trigger.indexOf("mouseenter") < 0 || a) && w.props.hideOnClick !== !1 && w.state.isVisible ? lt = !0 : B(xe), xe.type === "click" && (a = !lt), lt && !Bt && te(xe);
14350
14350
  }
@@ -14490,7 +14490,7 @@ function $fe(t, e) {
14490
14490
  }));
14491
14491
  w.props = lt, Ae(), Ue.interactiveDebounce !== lt.interactiveDebounce && (de(), p = iI(ce, lt.interactiveDebounce)), Ue.triggerTarget && !lt.triggerTarget ? cd(Ue.triggerTarget).forEach(function(Bt) {
14492
14492
  Bt.removeAttribute("aria-expanded");
14493
- }) : lt.triggerTarget && t.removeAttribute("aria-expanded"), re(), Y(), L && L(Ue, lt), w.popperInstance && (De(), P().forEach(function(Bt) {
14493
+ }) : lt.triggerTarget && t.removeAttribute("aria-expanded"), ie(), Y(), L && L(Ue, lt), w.popperInstance && (De(), P().forEach(function(Bt) {
14494
14494
  requestAnimationFrame(Bt._tippy.popperInstance.forceUpdate);
14495
14495
  })), ae("onAfterUpdate", [w, xe]);
14496
14496
  }
@@ -14515,7 +14515,7 @@ function $fe(t, e) {
14515
14515
  var vn = U(), Rt = vn.box, dn = vn.content;
14516
14516
  rw([Rt, dn], Dt), oI([Rt, dn], "visible");
14517
14517
  }
14518
- G(), re(), sI(sw, w), (Ut = w.popperInstance) == null || Ut.forceUpdate(), ae("onMount", [w]), w.props.animation && H() && ke(Dt, function() {
14518
+ G(), ie(), sI(sw, w), (Ut = w.popperInstance) == null || Ut.forceUpdate(), ae("onMount", [w]), w.props.animation && H() && ke(Dt, function() {
14519
14519
  w.state.isShown = !0, ae("onShown", [w]);
14520
14520
  });
14521
14521
  }
@@ -14530,7 +14530,7 @@ function $fe(t, e) {
14530
14530
  var Dt = U(), nt = Dt.box, ft = Dt.content;
14531
14531
  w.props.animation && (rw([nt, ft], Bt), oI([nt, ft], "hidden"));
14532
14532
  }
14533
- G(), re(), w.props.animation ? H() && be(Bt, w.unmount) : w.unmount();
14533
+ G(), ie(), w.props.animation ? H() && be(Bt, w.unmount) : w.unmount();
14534
14534
  }
14535
14535
  }
14536
14536
  function zt(xe) {
@@ -15723,14 +15723,14 @@ function Sde() {
15723
15723
  }
15724
15724
  return null;
15725
15725
  }
15726
- var Z = Object.assign, U = 0, V, Y, ae, G, re, de, ie;
15726
+ var Z = Object.assign, U = 0, V, Y, ae, G, ie, de, re;
15727
15727
  function pe() {
15728
15728
  }
15729
15729
  pe.__reactDisabledLog = !0;
15730
15730
  function oe() {
15731
15731
  {
15732
15732
  if (U === 0) {
15733
- V = console.log, Y = console.info, ae = console.warn, G = console.error, re = console.group, de = console.groupCollapsed, ie = console.groupEnd;
15733
+ V = console.log, Y = console.info, ae = console.warn, G = console.error, ie = console.group, de = console.groupCollapsed, re = console.groupEnd;
15734
15734
  var O = {
15735
15735
  configurable: !0,
15736
15736
  enumerable: !0,
@@ -15772,13 +15772,13 @@ function Sde() {
15772
15772
  value: G
15773
15773
  }),
15774
15774
  group: Z({}, O, {
15775
- value: re
15775
+ value: ie
15776
15776
  }),
15777
15777
  groupCollapsed: Z({}, O, {
15778
15778
  value: de
15779
15779
  }),
15780
15780
  groupEnd: Z({}, O, {
15781
- value: ie
15781
+ value: re
15782
15782
  })
15783
15783
  });
15784
15784
  }
@@ -16550,7 +16550,7 @@ function nhe(t) {
16550
16550
  return Gde.test(t);
16551
16551
  }
16552
16552
  function rhe() {
16553
- const t = Rn("colors"), e = Rn("spacing"), n = Rn("blur"), r = Rn("brightness"), i = Rn("borderColor"), s = Rn("borderRadius"), a = Rn("borderSpacing"), o = Rn("borderWidth"), l = Rn("contrast"), c = Rn("grayscale"), u = Rn("hueRotate"), f = Rn("invert"), d = Rn("gap"), h = Rn("gradientColorStops"), p = Rn("gradientColorStopPositions"), m = Rn("inset"), g = Rn("margin"), b = Rn("opacity"), k = Rn("padding"), v = Rn("saturate"), w = Rn("scale"), x = Rn("sepia"), M = Rn("skew"), L = Rn("space"), S = Rn("translate"), D = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", Zt, e], H = () => [Zt, e], q = () => ["", Ml, Fc], Z = () => ["auto", l0, Zt], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", Zt], re = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], de = () => [l0, zg], ie = () => [l0, Zt];
16553
+ const t = Rn("colors"), e = Rn("spacing"), n = Rn("blur"), r = Rn("brightness"), i = Rn("borderColor"), s = Rn("borderRadius"), a = Rn("borderSpacing"), o = Rn("borderWidth"), l = Rn("contrast"), c = Rn("grayscale"), u = Rn("hueRotate"), f = Rn("invert"), d = Rn("gap"), h = Rn("gradientColorStops"), p = Rn("gradientColorStopPositions"), m = Rn("inset"), g = Rn("margin"), b = Rn("opacity"), k = Rn("padding"), v = Rn("saturate"), w = Rn("scale"), x = Rn("sepia"), M = Rn("skew"), L = Rn("space"), S = Rn("translate"), D = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", Zt, e], H = () => [Zt, e], q = () => ["", Ml, Fc], Z = () => ["auto", l0, Zt], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", Zt], ie = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], de = () => [l0, zg], re = () => [l0, Zt];
16554
16554
  return {
16555
16555
  cacheSize: 500,
16556
16556
  separator: ":",
@@ -16565,7 +16565,7 @@ function rhe() {
16565
16565
  borderWidth: q(),
16566
16566
  contrast: de(),
16567
16567
  grayscale: G(),
16568
- hueRotate: ie(),
16568
+ hueRotate: re(),
16569
16569
  invert: G(),
16570
16570
  gap: H(),
16571
16571
  gradientColorStops: [t],
@@ -16577,7 +16577,7 @@ function rhe() {
16577
16577
  saturate: de(),
16578
16578
  scale: de(),
16579
16579
  sepia: G(),
16580
- skew: ie(),
16580
+ skew: re(),
16581
16581
  space: H(),
16582
16582
  translate: H()
16583
16583
  },
@@ -16607,14 +16607,14 @@ function rhe() {
16607
16607
  * @see https://tailwindcss.com/docs/break-after
16608
16608
  */
16609
16609
  "break-after": [{
16610
- "break-after": re()
16610
+ "break-after": ie()
16611
16611
  }],
16612
16612
  /**
16613
16613
  * Break Before
16614
16614
  * @see https://tailwindcss.com/docs/break-before
16615
16615
  */
16616
16616
  "break-before": [{
16617
- "break-before": re()
16617
+ "break-before": ie()
16618
16618
  }],
16619
16619
  /**
16620
16620
  * Break Inside
@@ -18138,7 +18138,7 @@ function rhe() {
18138
18138
  * @see https://tailwindcss.com/docs/transition-duration
18139
18139
  */
18140
18140
  duration: [{
18141
- duration: ie()
18141
+ duration: re()
18142
18142
  }],
18143
18143
  /**
18144
18144
  * Transition Timing Function
@@ -18152,7 +18152,7 @@ function rhe() {
18152
18152
  * @see https://tailwindcss.com/docs/transition-delay
18153
18153
  */
18154
18154
  delay: [{
18155
- delay: ie()
18155
+ delay: re()
18156
18156
  }],
18157
18157
  /**
18158
18158
  * Animation
@@ -42260,7 +42260,7 @@ const ODe = (t) => ({
42260
42260
  G === "y";
42261
42261
  }
42262
42262
  return !0;
42263
- }).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G, re) => G + re, 0)]).sort((ae, G) => ae[1] - G[1])[0]) == null ? void 0 : q[0];
42263
+ }).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G, ie) => G + ie, 0)]).sort((ae, G) => ae[1] - G[1])[0]) == null ? void 0 : q[0];
42264
42264
  Y && (V = Y);
42265
42265
  break;
42266
42266
  }
@@ -43210,7 +43210,7 @@ var _S = "PopperContent", [EIe, LIe] = nW(_S), oW = E.forwardRef(
43210
43210
  boundary: Y.filter(NIe),
43211
43211
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
43212
43212
  altBoundary: ae
43213
- }, { refs: re, floatingStyles: de, placement: ie, isPositioned: pe, middlewareData: oe } = mIe({
43213
+ }, { refs: ie, floatingStyles: de, placement: re, isPositioned: pe, middlewareData: oe } = mIe({
43214
43214
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
43215
43215
  strategy: "fixed",
43216
43216
  placement: U,
@@ -43240,7 +43240,7 @@ var _S = "PopperContent", [EIe, LIe] = nW(_S), oW = E.forwardRef(
43240
43240
  jIe({ arrowWidth: q, arrowHeight: Z }),
43241
43241
  k && xIe({ strategy: "referenceHidden", ...G })
43242
43242
  ]
43243
- }), [ge, J] = uW(ie), be = hs(w);
43243
+ }), [ge, J] = uW(re), be = hs(w);
43244
43244
  oi(() => {
43245
43245
  pe && (be == null || be());
43246
43246
  }, [pe, be]);
@@ -43250,7 +43250,7 @@ var _S = "PopperContent", [EIe, LIe] = nW(_S), oW = E.forwardRef(
43250
43250
  }, [L]), /* @__PURE__ */ A.jsx(
43251
43251
  "div",
43252
43252
  {
43253
- ref: re.setFloating,
43253
+ ref: ie.setFloating,
43254
43254
  "data-radix-popper-content-wrapper": "",
43255
43255
  style: {
43256
43256
  ...de,
@@ -52483,10 +52483,10 @@ var jl = 10, [_Y, A1] = Y2(lf), IVe = "SelectContentImpl", qY = E.forwardRef(
52483
52483
  window.removeEventListener("blur", be), window.removeEventListener("resize", be);
52484
52484
  };
52485
52485
  }, [ae]);
52486
- const [re, de] = sK((be) => {
52486
+ const [ie, de] = sK((be) => {
52487
52487
  const ke = H().filter((Ae) => !Ae.disabled), Re = ke.find((Ae) => Ae.ref.current === document.activeElement), Pe = aK(ke, be, Re);
52488
52488
  Pe && setTimeout(() => Pe.ref.current.focus());
52489
- }), ie = E.useCallback(
52489
+ }), re = E.useCallback(
52490
52490
  (be, ke, Re) => {
52491
52491
  const Pe = !U.current && !Re;
52492
52492
  (k.value !== void 0 && k.value === ke || Pe) && (D(be), Pe && (U.current = !0));
@@ -52517,7 +52517,7 @@ var jl = 10, [_Y, A1] = Y2(lf), IVe = "SelectContentImpl", qY = E.forwardRef(
52517
52517
  content: v,
52518
52518
  viewport: x,
52519
52519
  onViewportChange: M,
52520
- itemRefCallback: ie,
52520
+ itemRefCallback: re,
52521
52521
  selectedItem: S,
52522
52522
  onItemLeave: pe,
52523
52523
  itemTextRefCallback: oe,
@@ -52525,7 +52525,7 @@ var jl = 10, [_Y, A1] = Y2(lf), IVe = "SelectContentImpl", qY = E.forwardRef(
52525
52525
  selectedItemText: j,
52526
52526
  position: r,
52527
52527
  isPositioned: q,
52528
- searchRef: re,
52528
+ searchRef: ie,
52529
52529
  children: /* @__PURE__ */ A.jsx(nv, { as: al, allowPinchZoom: !0, children: /* @__PURE__ */ A.jsx(
52530
52530
  Z2,
52531
52531
  {
@@ -52600,7 +52600,7 @@ var PVe = "SelectItemAlignedPosition", UY = E.forwardRef((t, e) => {
52600
52600
  const Pe = S.right - j.right, Ae = window.innerWidth - D.right - Pe, Le = window.innerWidth - L.right - Ae, Te = L.width + Le, ce = Math.max(Te, S.width), X = window.innerWidth - jl, Q = pR(Ae, [jl, X - ce]);
52601
52601
  o.style.minWidth = Te + "px", o.style.right = Q + "px";
52602
52602
  }
52603
- const R = d(), H = window.innerHeight - jl * 2, q = m.scrollHeight, Z = window.getComputedStyle(c), U = parseInt(Z.borderTopWidth, 10), V = parseInt(Z.paddingTop, 10), Y = parseInt(Z.borderBottomWidth, 10), ae = parseInt(Z.paddingBottom, 10), G = U + V + q + ae + Y, re = Math.min(g.offsetHeight * 5, G), de = window.getComputedStyle(m), ie = parseInt(de.paddingTop, 10), pe = parseInt(de.paddingBottom, 10), oe = L.top + L.height / 2 - jl, ge = H - oe, J = g.offsetHeight / 2, be = g.offsetTop + J, ke = U + V + be, Re = G - ke;
52603
+ const R = d(), H = window.innerHeight - jl * 2, q = m.scrollHeight, Z = window.getComputedStyle(c), U = parseInt(Z.borderTopWidth, 10), V = parseInt(Z.paddingTop, 10), Y = parseInt(Z.borderBottomWidth, 10), ae = parseInt(Z.paddingBottom, 10), G = U + V + q + ae + Y, ie = Math.min(g.offsetHeight * 5, G), de = window.getComputedStyle(m), re = parseInt(de.paddingTop, 10), pe = parseInt(de.paddingBottom, 10), oe = L.top + L.height / 2 - jl, ge = H - oe, J = g.offsetHeight / 2, be = g.offsetTop + J, ke = U + V + be, Re = G - ke;
52604
52604
  if (ke <= oe) {
52605
52605
  const Pe = g === R[R.length - 1].ref.current;
52606
52606
  o.style.bottom = "0px";
@@ -52616,11 +52616,11 @@ var PVe = "SelectItemAlignedPosition", UY = E.forwardRef((t, e) => {
52616
52616
  const Ae = Math.max(
52617
52617
  oe,
52618
52618
  U + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
52619
- (Pe ? ie : 0) + J
52619
+ (Pe ? re : 0) + J
52620
52620
  ) + Re;
52621
52621
  o.style.height = Ae + "px", m.scrollTop = ke - oe + m.offsetTop;
52622
52622
  }
52623
- o.style.margin = `${jl}px 0`, o.style.minHeight = re + "px", o.style.maxHeight = H + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
52623
+ o.style.margin = `${jl}px 0`, o.style.minHeight = ie + "px", o.style.maxHeight = H + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
52624
52624
  }
52625
52625
  }, [
52626
52626
  d,
@@ -54004,7 +54004,7 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
54004
54004
  document.body.style.pointerEvents = "auto";
54005
54005
  }), nt || (document.body.style.pointerEvents = "auto");
54006
54006
  }
54007
- }), [Y, ae] = Me.useState(!1), [G, re] = Me.useState(!1), [de, ie] = Me.useState(!1), pe = Me.useRef(null), oe = Me.useRef(null), ge = Me.useRef(null), J = Me.useRef(null), be = Me.useRef(null), ke = Me.useRef(!1), Re = Me.useRef(null), Pe = Me.useRef(0), Ae = Me.useRef(!1), Le = Me.useRef(!x), Te = Me.useRef(0), ce = Me.useRef(null), X = Me.useRef(((q = ce.current) == null ? void 0 : q.getBoundingClientRect().height) || 0), Q = Me.useRef(((Z = ce.current) == null ? void 0 : Z.getBoundingClientRect().width) || 0), ee = Me.useRef(0), De = Me.useCallback((nt) => {
54007
+ }), [Y, ae] = Me.useState(!1), [G, ie] = Me.useState(!1), [de, re] = Me.useState(!1), pe = Me.useRef(null), oe = Me.useRef(null), ge = Me.useRef(null), J = Me.useRef(null), be = Me.useRef(null), ke = Me.useRef(!1), Re = Me.useRef(null), Pe = Me.useRef(0), Ae = Me.useRef(!1), Le = Me.useRef(!x), Te = Me.useRef(0), ce = Me.useRef(null), X = Me.useRef(((q = ce.current) == null ? void 0 : q.getBoundingClientRect().height) || 0), Q = Me.useRef(((Z = ce.current) == null ? void 0 : Z.getBoundingClientRect().width) || 0), ee = Me.useRef(0), De = Me.useCallback((nt) => {
54008
54008
  s && nt === te.length - 1 && (oe.current = /* @__PURE__ */ new Date());
54009
54009
  }, []), { activeSnapPoint: W, activeSnapPointIndex: C, setActiveSnapPoint: P, onRelease: B, snapPointsOffset: te, onDrag: ue, shouldFade: me, getPercentageDragged: ze } = T_e({
54010
54010
  snapPoints: s,
@@ -54034,7 +54034,7 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
54034
54034
  }
54035
54035
  function _e(nt) {
54036
54036
  var ft, rt;
54037
- !u && !s || ce.current && !ce.current.contains(nt.target) || (X.current = ((ft = ce.current) == null ? void 0 : ft.getBoundingClientRect().height) || 0, Q.current = ((rt = ce.current) == null ? void 0 : rt.getBoundingClientRect().width) || 0, re(!0), ge.current = /* @__PURE__ */ new Date(), mK() && window.addEventListener("touchend", () => ke.current = !1, {
54037
+ !u && !s || ce.current && !ce.current.contains(nt.target) || (X.current = ((ft = ce.current) == null ? void 0 : ft.getBoundingClientRect().height) || 0, Q.current = ((rt = ce.current) == null ? void 0 : rt.getBoundingClientRect().width) || 0, ie(!0), ge.current = /* @__PURE__ */ new Date(), mK() && window.addEventListener("touchend", () => ke.current = !1, {
54038
54038
  once: !0
54039
54039
  }), nt.target.setPointerCapture(nt.pointerId), Pe.current = Cr(w) ? nt.pageY : nt.pageX);
54040
54040
  }
@@ -54173,16 +54173,16 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
54173
54173
  }, !0);
54174
54174
  }
54175
54175
  function xe() {
54176
- !G || !ce.current || (ce.current.classList.remove(Hw), ke.current = !1, re(!1), J.current = /* @__PURE__ */ new Date());
54176
+ !G || !ce.current || (ce.current.classList.remove(Hw), ke.current = !1, ie(!1), J.current = /* @__PURE__ */ new Date());
54177
54177
  }
54178
54178
  function Ue(nt) {
54179
54179
  if (!G || !ce.current) return;
54180
- ce.current.classList.remove(Hw), ke.current = !1, re(!1), J.current = /* @__PURE__ */ new Date();
54180
+ ce.current.classList.remove(Hw), ke.current = !1, ie(!1), J.current = /* @__PURE__ */ new Date();
54181
54181
  const ft = Kg(ce.current, w);
54182
54182
  if (!nt || !Ke(nt.target, !1) || !ft || Number.isNaN(ft) || ge.current === null) return;
54183
54183
  const rt = J.current.getTime() - ge.current.getTime(), gt = Pe.current - (Cr(w) ? nt.pageY : nt.pageX), Ut = Math.abs(gt) / rt;
54184
- if (Ut > 0.05 && (ie(!0), setTimeout(() => {
54185
- ie(!1);
54184
+ if (Ut > 0.05 && (re(!0), setTimeout(() => {
54185
+ re(!1);
54186
54186
  }, 200)), s) {
54187
54187
  B({
54188
54188
  draggedDistance: gt * (w === "bottom" || w === "right" ? 1 : -1),
@@ -76687,22 +76687,22 @@ function BQ(t) {
76687
76687
  const uYe = nYe, fYe = iYe, dYe = sYe, hYe = oYe;
76688
76688
  var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-heading=""]', ML = '[cmdk-item=""]', XR = `${ML}:not([aria-disabled="true"])`, DM = "cmdk-item-select", $1 = "data-value", mYe = (t, e, n) => dZe(t, e, n), FQ = E.createContext(void 0), tg = () => E.useContext(FQ), HQ = E.createContext(void 0), CL = () => E.useContext(HQ), VQ = E.createContext(void 0), _Q = E.forwardRef((t, e) => {
76689
76689
  let n = ud(() => {
76690
- var ie, pe;
76691
- return { search: "", value: (pe = (ie = t.value) != null ? ie : t.defaultValue) != null ? pe : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
76690
+ var re, pe;
76691
+ return { search: "", value: (pe = (re = t.value) != null ? re : t.defaultValue) != null ? pe : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
76692
76692
  }), r = ud(() => /* @__PURE__ */ new Set()), i = ud(() => /* @__PURE__ */ new Map()), s = ud(() => /* @__PURE__ */ new Map()), a = ud(() => /* @__PURE__ */ new Set()), o = qQ(t), { label: l, children: c, value: u, onValueChange: f, filter: d, shouldFilter: h, loop: p, disablePointerSelection: m = !1, vimBindings: g = !0, ...b } = t, k = E.useId(), v = E.useId(), w = E.useId(), x = E.useRef(null), M = SYe();
76693
76693
  uf(() => {
76694
76694
  if (u !== void 0) {
76695
- let ie = u.trim();
76696
- n.current.value = ie, L.emit();
76695
+ let re = u.trim();
76696
+ n.current.value = re, L.emit();
76697
76697
  }
76698
76698
  }, [u]), uf(() => {
76699
76699
  M(6, q);
76700
76700
  }, []);
76701
- let L = E.useMemo(() => ({ subscribe: (ie) => (a.current.add(ie), () => a.current.delete(ie)), snapshot: () => n.current, setState: (ie, pe, oe) => {
76701
+ let L = E.useMemo(() => ({ subscribe: (re) => (a.current.add(re), () => a.current.delete(re)), snapshot: () => n.current, setState: (re, pe, oe) => {
76702
76702
  var ge, J, be;
76703
- if (!Object.is(n.current[ie], pe)) {
76704
- if (n.current[ie] = pe, ie === "search") H(), j(), M(1, R);
76705
- else if (ie === "value" && (oe || M(5, q), ((ge = o.current) == null ? void 0 : ge.value) !== void 0)) {
76703
+ if (!Object.is(n.current[re], pe)) {
76704
+ if (n.current[re] = pe, re === "search") H(), j(), M(1, R);
76705
+ else if (re === "value" && (oe || M(5, q), ((ge = o.current) == null ? void 0 : ge.value) !== void 0)) {
76706
76706
  let ke = pe ?? "";
76707
76707
  (be = (J = o.current).onValueChange) == null || be.call(J, ke);
76708
76708
  return;
@@ -76710,35 +76710,35 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
76710
76710
  L.emit();
76711
76711
  }
76712
76712
  }, emit: () => {
76713
- a.current.forEach((ie) => ie());
76714
- } }), []), S = E.useMemo(() => ({ value: (ie, pe, oe) => {
76713
+ a.current.forEach((re) => re());
76714
+ } }), []), S = E.useMemo(() => ({ value: (re, pe, oe) => {
76715
76715
  var ge;
76716
- pe !== ((ge = s.current.get(ie)) == null ? void 0 : ge.value) && (s.current.set(ie, { value: pe, keywords: oe }), n.current.filtered.items.set(ie, D(pe, oe)), M(2, () => {
76716
+ pe !== ((ge = s.current.get(re)) == null ? void 0 : ge.value) && (s.current.set(re, { value: pe, keywords: oe }), n.current.filtered.items.set(re, D(pe, oe)), M(2, () => {
76717
76717
  j(), L.emit();
76718
76718
  }));
76719
- }, item: (ie, pe) => (r.current.add(ie), pe && (i.current.has(pe) ? i.current.get(pe).add(ie) : i.current.set(pe, /* @__PURE__ */ new Set([ie]))), M(3, () => {
76719
+ }, item: (re, pe) => (r.current.add(re), pe && (i.current.has(pe) ? i.current.get(pe).add(re) : i.current.set(pe, /* @__PURE__ */ new Set([re]))), M(3, () => {
76720
76720
  H(), j(), n.current.value || R(), L.emit();
76721
76721
  }), () => {
76722
- s.current.delete(ie), r.current.delete(ie), n.current.filtered.items.delete(ie);
76722
+ s.current.delete(re), r.current.delete(re), n.current.filtered.items.delete(re);
76723
76723
  let oe = Z();
76724
76724
  M(4, () => {
76725
- H(), (oe == null ? void 0 : oe.getAttribute("id")) === ie && R(), L.emit();
76725
+ H(), (oe == null ? void 0 : oe.getAttribute("id")) === re && R(), L.emit();
76726
76726
  });
76727
- }), group: (ie) => (i.current.has(ie) || i.current.set(ie, /* @__PURE__ */ new Set()), () => {
76728
- s.current.delete(ie), i.current.delete(ie);
76727
+ }), group: (re) => (i.current.has(re) || i.current.set(re, /* @__PURE__ */ new Set()), () => {
76728
+ s.current.delete(re), i.current.delete(re);
76729
76729
  }), filter: () => o.current.shouldFilter, label: l || t["aria-label"], disablePointerSelection: m, listId: k, inputId: w, labelId: v, listInnerRef: x }), []);
76730
- function D(ie, pe) {
76730
+ function D(re, pe) {
76731
76731
  var oe, ge;
76732
76732
  let J = (ge = (oe = o.current) == null ? void 0 : oe.filter) != null ? ge : mYe;
76733
- return ie ? J(ie, n.current.search, pe) : 0;
76733
+ return re ? J(re, n.current.search, pe) : 0;
76734
76734
  }
76735
76735
  function j() {
76736
76736
  if (!n.current.search || o.current.shouldFilter === !1) return;
76737
- let ie = n.current.filtered.items, pe = [];
76737
+ let re = n.current.filtered.items, pe = [];
76738
76738
  n.current.filtered.groups.forEach((ge) => {
76739
76739
  let J = i.current.get(ge), be = 0;
76740
76740
  J.forEach((ke) => {
76741
- let Re = ie.get(ke);
76741
+ let Re = re.get(ke);
76742
76742
  be = Math.max(Re, be);
76743
76743
  }), pe.push([ge, be]);
76744
76744
  });
@@ -76746,7 +76746,7 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
76746
76746
  U().sort((ge, J) => {
76747
76747
  var be, ke;
76748
76748
  let Re = ge.getAttribute("id"), Pe = J.getAttribute("id");
76749
- return ((be = ie.get(Pe)) != null ? be : 0) - ((ke = ie.get(Re)) != null ? ke : 0);
76749
+ return ((be = re.get(Pe)) != null ? be : 0) - ((ke = re.get(Re)) != null ? ke : 0);
76750
76750
  }).forEach((ge) => {
76751
76751
  let J = ge.closest($w);
76752
76752
  J ? J.appendChild(ge.parentElement === J ? ge : ge.closest(`${$w} > *`)) : oe.appendChild(ge.parentElement === oe ? ge : ge.closest(`${$w} > *`));
@@ -76756,11 +76756,11 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
76756
76756
  });
76757
76757
  }
76758
76758
  function R() {
76759
- let ie = U().find((oe) => oe.getAttribute("aria-disabled") !== "true"), pe = ie == null ? void 0 : ie.getAttribute($1);
76759
+ let re = U().find((oe) => oe.getAttribute("aria-disabled") !== "true"), pe = re == null ? void 0 : re.getAttribute($1);
76760
76760
  L.setState("value", pe || void 0);
76761
76761
  }
76762
76762
  function H() {
76763
- var ie, pe, oe, ge;
76763
+ var re, pe, oe, ge;
76764
76764
  if (!n.current.search || o.current.shouldFilter === !1) {
76765
76765
  n.current.filtered.count = r.current.size;
76766
76766
  return;
@@ -76768,7 +76768,7 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
76768
76768
  n.current.filtered.groups = /* @__PURE__ */ new Set();
76769
76769
  let J = 0;
76770
76770
  for (let be of r.current) {
76771
- let ke = (pe = (ie = s.current.get(be)) == null ? void 0 : ie.value) != null ? pe : "", Re = (ge = (oe = s.current.get(be)) == null ? void 0 : oe.keywords) != null ? ge : [], Pe = D(ke, Re);
76771
+ let ke = (pe = (re = s.current.get(be)) == null ? void 0 : re.value) != null ? pe : "", Re = (ge = (oe = s.current.get(be)) == null ? void 0 : oe.keywords) != null ? ge : [], Pe = D(ke, Re);
76772
76772
  n.current.filtered.items.set(be, Pe), Pe > 0 && J++;
76773
76773
  }
76774
76774
  for (let [be, ke] of i.current) for (let Re of ke) if (n.current.filtered.items.get(Re) > 0) {
@@ -76778,69 +76778,69 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
76778
76778
  n.current.filtered.count = J;
76779
76779
  }
76780
76780
  function q() {
76781
- var ie, pe, oe;
76781
+ var re, pe, oe;
76782
76782
  let ge = Z();
76783
- ge && (((ie = ge.parentElement) == null ? void 0 : ie.firstChild) === ge && ((oe = (pe = ge.closest(Tp)) == null ? void 0 : pe.querySelector(pYe)) == null || oe.scrollIntoView({ block: "nearest" })), ge.scrollIntoView({ block: "nearest" }));
76783
+ ge && (((re = ge.parentElement) == null ? void 0 : re.firstChild) === ge && ((oe = (pe = ge.closest(Tp)) == null ? void 0 : pe.querySelector(pYe)) == null || oe.scrollIntoView({ block: "nearest" })), ge.scrollIntoView({ block: "nearest" }));
76784
76784
  }
76785
76785
  function Z() {
76786
- var ie;
76787
- return (ie = x.current) == null ? void 0 : ie.querySelector(`${ML}[aria-selected="true"]`);
76786
+ var re;
76787
+ return (re = x.current) == null ? void 0 : re.querySelector(`${ML}[aria-selected="true"]`);
76788
76788
  }
76789
76789
  function U() {
76790
- var ie;
76791
- return Array.from((ie = x.current) == null ? void 0 : ie.querySelectorAll(XR));
76790
+ var re;
76791
+ return Array.from((re = x.current) == null ? void 0 : re.querySelectorAll(XR));
76792
76792
  }
76793
- function V(ie) {
76794
- let pe = U()[ie];
76793
+ function V(re) {
76794
+ let pe = U()[re];
76795
76795
  pe && L.setState("value", pe.getAttribute($1));
76796
76796
  }
76797
- function Y(ie) {
76797
+ function Y(re) {
76798
76798
  var pe;
76799
- let oe = Z(), ge = U(), J = ge.findIndex((ke) => ke === oe), be = ge[J + ie];
76800
- (pe = o.current) != null && pe.loop && (be = J + ie < 0 ? ge[ge.length - 1] : J + ie === ge.length ? ge[0] : ge[J + ie]), be && L.setState("value", be.getAttribute($1));
76799
+ let oe = Z(), ge = U(), J = ge.findIndex((ke) => ke === oe), be = ge[J + re];
76800
+ (pe = o.current) != null && pe.loop && (be = J + re < 0 ? ge[ge.length - 1] : J + re === ge.length ? ge[0] : ge[J + re]), be && L.setState("value", be.getAttribute($1));
76801
76801
  }
76802
- function ae(ie) {
76802
+ function ae(re) {
76803
76803
  let pe = Z(), oe = pe == null ? void 0 : pe.closest(Tp), ge;
76804
- for (; oe && !ge; ) oe = ie > 0 ? CYe(oe, Tp) : AYe(oe, Tp), ge = oe == null ? void 0 : oe.querySelector(XR);
76805
- ge ? L.setState("value", ge.getAttribute($1)) : Y(ie);
76804
+ for (; oe && !ge; ) oe = re > 0 ? CYe(oe, Tp) : AYe(oe, Tp), ge = oe == null ? void 0 : oe.querySelector(XR);
76805
+ ge ? L.setState("value", ge.getAttribute($1)) : Y(re);
76806
76806
  }
76807
- let G = () => V(U().length - 1), re = (ie) => {
76808
- ie.preventDefault(), ie.metaKey ? G() : ie.altKey ? ae(1) : Y(1);
76809
- }, de = (ie) => {
76810
- ie.preventDefault(), ie.metaKey ? V(0) : ie.altKey ? ae(-1) : Y(-1);
76807
+ let G = () => V(U().length - 1), ie = (re) => {
76808
+ re.preventDefault(), re.metaKey ? G() : re.altKey ? ae(1) : Y(1);
76809
+ }, de = (re) => {
76810
+ re.preventDefault(), re.metaKey ? V(0) : re.altKey ? ae(-1) : Y(-1);
76811
76811
  };
76812
- return E.createElement(Ia.div, { ref: e, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (ie) => {
76812
+ return E.createElement(Ia.div, { ref: e, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (re) => {
76813
76813
  var pe;
76814
- if ((pe = b.onKeyDown) == null || pe.call(b, ie), !ie.defaultPrevented) switch (ie.key) {
76814
+ if ((pe = b.onKeyDown) == null || pe.call(b, re), !re.defaultPrevented) switch (re.key) {
76815
76815
  case "n":
76816
76816
  case "j": {
76817
- g && ie.ctrlKey && re(ie);
76817
+ g && re.ctrlKey && ie(re);
76818
76818
  break;
76819
76819
  }
76820
76820
  case "ArrowDown": {
76821
- re(ie);
76821
+ ie(re);
76822
76822
  break;
76823
76823
  }
76824
76824
  case "p":
76825
76825
  case "k": {
76826
- g && ie.ctrlKey && de(ie);
76826
+ g && re.ctrlKey && de(re);
76827
76827
  break;
76828
76828
  }
76829
76829
  case "ArrowUp": {
76830
- de(ie);
76830
+ de(re);
76831
76831
  break;
76832
76832
  }
76833
76833
  case "Home": {
76834
- ie.preventDefault(), V(0);
76834
+ re.preventDefault(), V(0);
76835
76835
  break;
76836
76836
  }
76837
76837
  case "End": {
76838
- ie.preventDefault(), G();
76838
+ re.preventDefault(), G();
76839
76839
  break;
76840
76840
  }
76841
76841
  case "Enter":
76842
- if (!ie.nativeEvent.isComposing && ie.keyCode !== 229) {
76843
- ie.preventDefault();
76842
+ if (!re.nativeEvent.isComposing && re.keyCode !== 229) {
76843
+ re.preventDefault();
76844
76844
  let oe = Z();
76845
76845
  if (oe) {
76846
76846
  let ge = new Event(DM);
@@ -76848,7 +76848,7 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
76848
76848
  }
76849
76849
  }
76850
76850
  }
76851
- } }, E.createElement("label", { "cmdk-label": "", htmlFor: S.inputId, id: S.labelId, style: LYe }, l), jv(t, (ie) => E.createElement(HQ.Provider, { value: L }, E.createElement(FQ.Provider, { value: S }, ie))));
76851
+ } }, E.createElement("label", { "cmdk-label": "", htmlFor: S.inputId, id: S.labelId, style: LYe }, l), jv(t, (re) => E.createElement(HQ.Provider, { value: L }, E.createElement(FQ.Provider, { value: S }, re))));
76852
76852
  }), yYe = E.forwardRef((t, e) => {
76853
76853
  var n, r;
76854
76854
  let i = E.useId(), s = E.useRef(null), a = E.useContext(VQ), o = tg(), l = qQ(t), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
@@ -77344,12 +77344,12 @@ var [FYe, HYe] = XQ(Iv, {
77344
77344
  }),
77345
77345
  onPointerMove: st(t.onPointerMove, (Z) => {
77346
77346
  if (!v.current) return;
77347
- const U = Z.clientX - v.current.x, V = Z.clientY - v.current.y, Y = !!w.current, ae = ["left", "right"].includes(m.swipeDirection), G = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, re = ae ? G(0, U) : 0, de = ae ? 0 : G(0, V), ie = Z.pointerType === "touch" ? 10 : 2, pe = { x: re, y: de }, oe = { originalEvent: Z, delta: pe };
77347
+ const U = Z.clientX - v.current.x, V = Z.clientY - v.current.y, Y = !!w.current, ae = ["left", "right"].includes(m.swipeDirection), G = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, ie = ae ? G(0, U) : 0, de = ae ? 0 : G(0, V), re = Z.pointerType === "touch" ? 10 : 2, pe = { x: ie, y: de }, oe = { originalEvent: Z, delta: pe };
77348
77348
  Y ? (w.current = pe, r3(OYe, f, oe, {
77349
77349
  discrete: !1
77350
- })) : eO(pe, m.swipeDirection, ie) ? (w.current = pe, r3(RYe, u, oe, {
77350
+ })) : eO(pe, m.swipeDirection, re) ? (w.current = pe, r3(RYe, u, oe, {
77351
77351
  discrete: !1
77352
- }), Z.target.setPointerCapture(Z.pointerId)) : (Math.abs(U) > ie || Math.abs(V) > ie) && (v.current = null);
77352
+ }), Z.target.setPointerCapture(Z.pointerId)) : (Math.abs(U) > re || Math.abs(V) > re) && (v.current = null);
77353
77353
  }),
77354
77354
  onPointerUp: st(t.onPointerUp, (Z) => {
77355
77355
  const U = w.current, V = Z.target;
@@ -78412,7 +78412,7 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
78412
78412
  touch: 600
78413
78413
  }, H = p ? 43 : 25;
78414
78414
  let q = !1, Z = 0, U = 0, V = !1, Y = !1, ae = !1, G = !1;
78415
- function re(Le) {
78415
+ function ie(Le) {
78416
78416
  if (!k) return;
78417
78417
  function Te(X) {
78418
78418
  (Pv(k) || k(Le, X)) && J(X);
@@ -78425,7 +78425,7 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
78425
78425
  function de() {
78426
78426
  L.clear(), S.clear();
78427
78427
  }
78428
- function ie() {
78428
+ function re() {
78429
78429
  const Le = G ? n : e;
78430
78430
  S.add(Le, "touchmove", be, M).add(Le, "touchend", ke).add(Le, "mousemove", be, M).add(Le, "mouseup", ke);
78431
78431
  }
@@ -78442,7 +78442,7 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
78442
78442
  }
78443
78443
  function J(Le) {
78444
78444
  const Te = FM(Le, r);
78445
- G = Te, ae = p && Te && !Le.buttons && q, q = Am(i.get(), a.get()) >= 2, !(Te && Le.button !== 0) && (pe(Le.target) || (V = !0, s.pointerDown(Le), c.useFriction(0).useDuration(0), i.set(a), ie(), Z = s.readPoint(Le), U = s.readPoint(Le, v), d.emit("pointerDown")));
78445
+ G = Te, ae = p && Te && !Le.buttons && q, q = Am(i.get(), a.get()) >= 2, !(Te && Le.button !== 0) && (pe(Le.target) || (V = !0, s.pointerDown(Le), c.useFriction(0).useDuration(0), i.set(a), re(), Z = s.readPoint(Le), U = s.readPoint(Le, v), d.emit("pointerDown")));
78446
78446
  }
78447
78447
  function be(Le) {
78448
78448
  if (!FM(Le, r) && Le.touches.length >= 2) return ke(Le);
@@ -78463,7 +78463,7 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
78463
78463
  return V;
78464
78464
  }
78465
78465
  return {
78466
- init: re,
78466
+ init: ie,
78467
78467
  destroy: de,
78468
78468
  pointerDown: Pe
78469
78469
  };
@@ -79090,11 +79090,11 @@ function nJe(t, e, n, r, i, s, a) {
79090
79090
  slideSizes: Y,
79091
79091
  slideSizesWithGaps: ae,
79092
79092
  startGap: G,
79093
- endGap: re
79094
- } = eJe(R, D, j, n, V, i), de = tJe(R, H, g, f, D, j, G, re, L), {
79095
- snaps: ie,
79093
+ endGap: ie
79094
+ } = eJe(R, D, j, n, V, i), de = tJe(R, H, g, f, D, j, G, ie, L), {
79095
+ snaps: re,
79096
79096
  snapsAligned: pe
79097
- } = GKe(R, Z, D, j, de), oe = -Ja(ie) + Ja(ae), {
79097
+ } = GKe(R, Z, D, j, de), oe = -Ja(re) + Ja(ae), {
79098
79098
  snapsContained: ge,
79099
79099
  scrollContainLimit: J
79100
79100
  } = _Ke(H, oe, pe, k, L), be = U ? ge : pe, {
@@ -79157,7 +79157,7 @@ function nJe(t, e, n, r, i, s, a) {
79157
79157
  scrollSnaps: be,
79158
79158
  scrollTarget: B,
79159
79159
  scrollTo: te,
79160
- slideLooper: QKe(R, H, oe, Y, ae, ie, be, W, n),
79160
+ slideLooper: QKe(R, H, oe, Y, ae, re, be, W, n),
79161
79161
  slideFocus: Ee,
79162
79162
  slidesHandler: XKe(e, a, w),
79163
79163
  slidesInView: ze,
@@ -79321,13 +79321,13 @@ function j5(t, e, n) {
79321
79321
  function G() {
79322
79322
  return b.scrollSnapList;
79323
79323
  }
79324
- function re() {
79324
+ function ie() {
79325
79325
  return b.scrollProgress.get(b.location.get());
79326
79326
  }
79327
79327
  function de() {
79328
79328
  return b.index.get();
79329
79329
  }
79330
- function ie() {
79330
+ function re() {
79331
79331
  return b.indexPrevious.get();
79332
79332
  }
79333
79333
  function pe() {
@@ -79361,12 +79361,12 @@ function j5(t, e, n) {
79361
79361
  on: d,
79362
79362
  emit: p,
79363
79363
  plugins: ge,
79364
- previousScrollSnap: ie,
79364
+ previousScrollSnap: re,
79365
79365
  reInit: m,
79366
79366
  rootNode: be,
79367
79367
  scrollNext: U,
79368
79368
  scrollPrev: V,
79369
- scrollProgress: re,
79369
+ scrollProgress: ie,
79370
79370
  scrollSnapList: G,
79371
79371
  scrollTo: Z,
79372
79372
  selectedScrollSnap: de,
@@ -84295,8 +84295,8 @@ function iXe(t) {
84295
84295
  const { ProjectivePoint: c, normPrivateKeyToScalar: u, weierstrassEquation: f, isWithinCurveOrder: d } = nXe({
84296
84296
  ...e,
84297
84297
  toBytes(U, V, Y) {
84298
- const ae = V.toAffine(), G = n.toBytes(ae.x), re = E4;
84299
- return Y ? re(Uint8Array.from([V.hasEvenY() ? 2 : 3]), G) : re(Uint8Array.from([4]), G, n.toBytes(ae.y));
84298
+ const ae = V.toAffine(), G = n.toBytes(ae.x), ie = E4;
84299
+ return Y ? ie(Uint8Array.from([V.hasEvenY() ? 2 : 3]), G) : ie(Uint8Array.from([4]), G, n.toBytes(ae.y));
84300
84300
  },
84301
84301
  fromBytes(U) {
84302
84302
  const V = U.length, Y = U[0], ae = U.subarray(1);
@@ -84304,13 +84304,13 @@ function iXe(t) {
84304
84304
  const G = Y0(ae);
84305
84305
  if (!a(G))
84306
84306
  throw new Error("Point is not on curve");
84307
- const re = f(G);
84308
- let de = n.sqrt(re);
84309
- const ie = (de & fa) === fa;
84310
- return (Y & 1) === 1 !== ie && (de = n.neg(de)), { x: G, y: de };
84307
+ const ie = f(G);
84308
+ let de = n.sqrt(ie);
84309
+ const re = (de & fa) === fa;
84310
+ return (Y & 1) === 1 !== re && (de = n.neg(de)), { x: G, y: de };
84311
84311
  } else if (V === s && Y === 4) {
84312
- const G = n.fromBytes(ae.subarray(0, n.BYTES)), re = n.fromBytes(ae.subarray(n.BYTES, 2 * n.BYTES));
84313
- return { x: G, y: re };
84312
+ const G = n.fromBytes(ae.subarray(0, n.BYTES)), ie = n.fromBytes(ae.subarray(n.BYTES, 2 * n.BYTES));
84313
+ return { x: G, y: ie };
84314
84314
  } else
84315
84315
  throw new Error(`Point of length ${V} was invalid. Expected ${i} compressed bytes or ${s} uncompressed bytes`);
84316
84316
  }
@@ -84348,13 +84348,13 @@ function iXe(t) {
84348
84348
  return new b(this.r, this.s, V);
84349
84349
  }
84350
84350
  recoverPublicKey(V) {
84351
- const { r: Y, s: ae, recovery: G } = this, re = L(Ba("msgHash", V));
84351
+ const { r: Y, s: ae, recovery: G } = this, ie = L(Ba("msgHash", V));
84352
84352
  if (G == null || ![0, 1, 2, 3].includes(G))
84353
84353
  throw new Error("recovery id invalid");
84354
84354
  const de = G === 2 || G === 3 ? Y + e.n : Y;
84355
84355
  if (de >= n.ORDER)
84356
84356
  throw new Error("recovery id 2 or 3 invalid");
84357
- const ie = G & 1 ? "03" : "02", pe = c.fromHex(ie + h(de)), oe = l(de), ge = o(-re * oe), J = o(ae * oe), be = c.BASE.multiplyAndAddUnsafe(pe, ge, J);
84357
+ const re = G & 1 ? "03" : "02", pe = c.fromHex(re + h(de)), oe = l(de), ge = o(-ie * oe), J = o(ae * oe), be = c.BASE.multiplyAndAddUnsafe(pe, ge, J);
84358
84358
  if (!be)
84359
84359
  throw new Error("point at infinify");
84360
84360
  return be.assertValidity(), be;
@@ -84441,11 +84441,11 @@ function iXe(t) {
84441
84441
  if (["recovered", "canonical"].some((Re) => Re in Y))
84442
84442
  throw new Error("sign() legacy options not supported");
84443
84443
  const { hash: ae, randomBytes: G } = e;
84444
- let { lowS: re, prehash: de, extraEntropy: ie } = Y;
84445
- re == null && (re = !0), U = Ba("msgHash", U), de && (U = Ba("prehashed msgHash", ae(U)));
84444
+ let { lowS: ie, prehash: de, extraEntropy: re } = Y;
84445
+ ie == null && (ie = !0), U = Ba("msgHash", U), de && (U = Ba("prehashed msgHash", ae(U)));
84446
84446
  const pe = L(U), oe = u(V), ge = [D(oe), D(pe)];
84447
- if (ie != null) {
84448
- const Re = ie === !0 ? G(n.BYTES) : ie;
84447
+ if (re != null) {
84448
+ const Re = re === !0 ? G(n.BYTES) : re;
84449
84449
  ge.push(Ba("extraEntropy", Re));
84450
84450
  }
84451
84451
  const J = E4(...ge), be = pe;
@@ -84460,14 +84460,14 @@ function iXe(t) {
84460
84460
  if (ce === Kl)
84461
84461
  return;
84462
84462
  let X = (Le.x === Te ? 0 : 2) | Number(Le.y & fa), Q = ce;
84463
- return re && p(ce) && (Q = m(ce), X ^= 1), new b(Te, Q, X);
84463
+ return ie && p(ce) && (Q = m(ce), X ^= 1), new b(Te, Q, X);
84464
84464
  }
84465
84465
  return { seed: J, k2sig: ke };
84466
84466
  }
84467
84467
  const R = { lowS: e.lowS, prehash: !1 }, H = { lowS: e.lowS, prehash: !1 };
84468
84468
  function q(U, V, Y = R) {
84469
- const { seed: ae, k2sig: G } = j(U, V, Y), re = e;
84470
- return g$(re.hash.outputLen, re.nByteLength, re.hmac)(ae, G);
84469
+ const { seed: ae, k2sig: G } = j(U, V, Y), ie = e;
84470
+ return g$(ie.hash.outputLen, ie.nByteLength, ie.hmac)(ae, G);
84471
84471
  }
84472
84472
  c.BASE._setWindowSize(8);
84473
84473
  function Z(U, V, Y, ae = H) {
@@ -84475,20 +84475,20 @@ function iXe(t) {
84475
84475
  const G = U;
84476
84476
  if (V = Ba("msgHash", V), Y = Ba("publicKey", Y), "strict" in ae)
84477
84477
  throw new Error("options.strict was renamed to lowS");
84478
- const { lowS: re, prehash: de } = ae;
84479
- let ie, pe;
84478
+ const { lowS: ie, prehash: de } = ae;
84479
+ let re, pe;
84480
84480
  try {
84481
84481
  if (typeof G == "string" || G instanceof Uint8Array)
84482
84482
  try {
84483
- ie = b.fromDER(G);
84483
+ re = b.fromDER(G);
84484
84484
  } catch (Te) {
84485
84485
  if (!(Te instanceof d0.Err))
84486
84486
  throw Te;
84487
- ie = b.fromCompact(G);
84487
+ re = b.fromCompact(G);
84488
84488
  }
84489
84489
  else if (typeof G == "object" && typeof G.r == "bigint" && typeof G.s == "bigint") {
84490
84490
  const { r: Te, s: ce } = G;
84491
- ie = new b(Te, ce);
84491
+ re = new b(Te, ce);
84492
84492
  } else
84493
84493
  throw new Error("PARSE");
84494
84494
  pe = c.fromHex(Y);
@@ -84497,10 +84497,10 @@ function iXe(t) {
84497
84497
  throw new Error("signature must be Signature instance, Uint8Array or hex string");
84498
84498
  return !1;
84499
84499
  }
84500
- if (re && ie.hasHighS())
84500
+ if (ie && re.hasHighS())
84501
84501
  return !1;
84502
84502
  de && (V = e.hash(V));
84503
- const { r: oe, s: ge } = ie, J = L(V), be = l(ge), ke = o(J * be), Re = o(oe * be), Pe = (Le = c.BASE.multiplyAndAddUnsafe(pe, ke, Re)) == null ? void 0 : Le.toAffine();
84503
+ const { r: oe, s: ge } = re, J = L(V), be = l(ge), ke = o(J * be), Re = o(oe * be), Pe = (Le = c.BASE.multiplyAndAddUnsafe(pe, ke, Re)) == null ? void 0 : Le.toAffine();
84504
84504
  return Pe ? o(Pe.x) === oe : !1;
84505
84505
  }
84506
84506
  return {
@@ -95865,13 +95865,13 @@ const Tee = async (t, e) => {
95865
95865
  onComment: x,
95866
95866
  setCommentDrawerOpen: M
95867
95867
  }) => {
95868
- const [L, S] = Oe(!0), [D, j] = Oe(""), [R, H] = Oe(""), [q, Z] = Oe(null), U = Xe(null), V = Xe(null), [Y, ae] = Oe(""), [G, re] = Oe(!1), de = Xe(null), ie = Xe(null), pe = Xe(null), oe = e.isActive("comment"), ge = e.getAttributes("comment").resolved;
95869
- IL([de, ie, pe], () => {
95870
- G && re(!1);
95868
+ const [L, S] = Oe(!0), [D, j] = Oe(""), [R, H] = Oe(""), [q, Z] = Oe(null), U = Xe(null), V = Xe(null), [Y, ae] = Oe(""), [G, ie] = Oe(!1), de = Xe(null), re = Xe(null), pe = Xe(null), oe = e.isActive("comment"), ge = e.getAttributes("comment").resolved;
95869
+ IL([de, re, pe], () => {
95870
+ G && ie(!1);
95871
95871
  });
95872
95872
  const J = () => {
95873
95873
  const { state: Ee } = e, { from: _e, to: Ke } = Ee.selection, zt = Ee.doc.textBetween(_e, Ke, " ");
95874
- oe ? Ze && ae(Ze.selectedContent || "") : ae(zt), re(!0), w == null || w();
95874
+ oe ? Ze && ae(Ze.selectedContent || "") : ae(zt), ie(!0), w == null || w();
95875
95875
  }, be = (Ee) => {
95876
95876
  Ee.stopPropagation(), m ? J() : M == null || M(!0);
95877
95877
  }, ke = (Ee, _e = "") => ({
@@ -96035,7 +96035,7 @@ const Tee = async (t, e) => {
96035
96035
  onInlineCommentClick: be,
96036
96036
  handleInlineComment: J,
96037
96037
  portalRef: de,
96038
- buttonRef: ie,
96038
+ buttonRef: re,
96039
96039
  replySectionRef: V,
96040
96040
  dropdownRef: pe,
96041
96041
  activeComments: te,
@@ -96760,7 +96760,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
96760
96760
  }, j = xt(() => {
96761
96761
  if (!(i != null && i.length)) return null;
96762
96762
  let R = i.sort(
96763
- (H, q) => (H.commentIndex || 0) - (q.commentIndex || 0)
96763
+ (H, q) => new Date(H.createdAt || /* @__PURE__ */ new Date()).getTime() - new Date(q.createdAt || /* @__PURE__ */ new Date()).getTime()
96764
96764
  );
96765
96765
  return !k && i.length > 3 && (R = i.slice(-2)), /* @__PURE__ */ T.jsxs("div", { className: "flex flex-col gap-3", children: [
96766
96766
  i.length > 3 && !k && /* @__PURE__ */ T.jsxs(
@@ -96992,7 +96992,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
96992
96992
  oe.key === "Enter" && !oe.shiftKey && (oe.preventDefault(), !d && n ? Y() : V());
96993
96993
  }, G = () => {
96994
96994
  f((oe) => !oe);
96995
- }, re = () => {
96995
+ }, ie = () => {
96996
96996
  R(t);
96997
96997
  };
96998
96998
  Be(() => {
@@ -97024,7 +97024,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
97024
97024
  children: "Send"
97025
97025
  }
97026
97026
  ) })
97027
- ] }), ie = () => /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
97027
+ ] }), re = () => /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
97028
97028
  /* @__PURE__ */ T.jsxs("div", { className: "flex justify-between items-center px-3 py-2 border-b border-[#E8EBEC]", children: [
97029
97029
  /* @__PURE__ */ T.jsxs("p", { className: "text-sm font-medium color-text-default", children: [
97030
97030
  "Highlighted Comments (",
@@ -97059,8 +97059,8 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
97059
97059
  "button",
97060
97060
  {
97061
97061
  className: "flex items-center text-[#FB3449] text-sm font-medium gap-2 rounded p-2 transition-all hover:bg-[#FFF1F2] w-full",
97062
- onClick: re,
97063
- onTouchEnd: re,
97062
+ onClick: ie,
97063
+ onTouchEnd: ie,
97064
97064
  children: [
97065
97065
  /* @__PURE__ */ T.jsx(Ye, { name: "Trash2", size: "sm", stroke: "#FB3449" }),
97066
97066
  "Delete thread"
@@ -97147,7 +97147,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
97147
97147
  children: oe
97148
97148
  }
97149
97149
  );
97150
- return n ? L ? pe(ie()) : null : L ? null : pe(de());
97150
+ return n ? L ? pe(re()) : null : L ? null : pe(de());
97151
97151
  };
97152
97152
  var K5 = { exports: {} };
97153
97153
  /*!
@@ -97226,7 +97226,7 @@ K5.exports;
97226
97226
  j && (D = S, S = null);
97227
97227
  var R = D.navigator || {}, H = R.userAgent || "";
97228
97228
  S || (S = H);
97229
- var q = j ? !!R.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(f.toString()), Z = "Object", U = j ? Z : "ScriptBridgingProxyObject", V = j ? Z : "Environment", Y = j && D.java ? "JavaPackage" : b(D.java), ae = j ? Z : "RuntimeObject", G = /\bJava/.test(Y) && D.java, re = G && b(D.environment) == V, de = G ? "a" : "α", ie = G ? "b" : "β", pe = D.document || {}, oe = D.operamini || D.opera, ge = l.test(ge = j && oe ? oe["[[Class]]"] : b(oe)) ? ge : oe = null, J, be = S, ke = [], Re = null, Pe = S == H, Ae = Pe && oe && typeof oe.version == "function" && oe.version(), Le, Te = De([
97229
+ var q = j ? !!R.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(f.toString()), Z = "Object", U = j ? Z : "ScriptBridgingProxyObject", V = j ? Z : "Environment", Y = j && D.java ? "JavaPackage" : b(D.java), ae = j ? Z : "RuntimeObject", G = /\bJava/.test(Y) && D.java, ie = G && b(D.environment) == V, de = G ? "a" : "α", re = G ? "b" : "β", pe = D.document || {}, oe = D.operamini || D.opera, ge = l.test(ge = j && oe ? oe["[[Class]]"] : b(oe)) ? ge : oe = null, J, be = S, ke = [], Re = null, Pe = S == H, Ae = Pe && oe && typeof oe.version == "function" && oe.version(), Le, Te = De([
97230
97230
  { label: "EdgeHTML", pattern: "Edge" },
97231
97231
  "Trident",
97232
97232
  { label: "WebKit", pattern: "AppleWebKit" },
@@ -97416,7 +97416,7 @@ K5.exports;
97416
97416
  "(?:Firefox|Minefield|NetFront)"
97417
97417
  ])), (J = Te == "iCab" && parseFloat(Ae) > 3 && "WebKit" || /\bOpera\b/.test(ce) && (/\bOPR\b/.test(S) ? "Blink" : "Presto") || /\b(?:Midori|Nook|Safari)\b/i.test(S) && !/^(?:Trident|EdgeHTML)$/.test(Te) && "WebKit" || !Te && /\bMSIE\b/i.test(S) && (ee == "Mac OS" ? "Tasman" : "Trident") || Te == "WebKit" && /\bPlayStation\b(?! Vita\b)/i.test(ce) && "NetFront") && (Te = [J]), ce == "IE" && (J = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S) || 0)[1]) ? (ce += " Mobile", ee = "Windows Phone " + (/\+$/.test(J) ? J : J + ".x"), ke.unshift("desktop mode")) : /\bWPDesktop\b/i.test(S) ? (ce = "IE Mobile", ee = "Windows Phone 8.x", ke.unshift("desktop mode"), Ae || (Ae = (/\brv:([\d.]+)/.exec(S) || 0)[1])) : ce != "IE" && Te == "Trident" && (J = /\brv:([\d.]+)/.exec(S)) && (ce && ke.push("identifying as " + ce + (Ae ? " " + Ae : "")), ce = "IE", Ae = J[1]), Pe) {
97418
97418
  if (k(D, "global"))
97419
- if (G && (J = G.lang.System, be = J.getProperty("os.arch"), ee = ee || J.getProperty("os.name") + " " + J.getProperty("os.version")), re) {
97419
+ if (G && (J = G.lang.System, be = J.getProperty("os.arch"), ee = ee || J.getProperty("os.name") + " " + J.getProperty("os.version")), ie) {
97420
97420
  try {
97421
97421
  Ae = D.require("ringo/engine").version.join("."), ce = "RingoJS";
97422
97422
  } catch {
@@ -97427,7 +97427,7 @@ K5.exports;
97427
97427
  else b(J = D.runtime) == U ? (ce = "Adobe AIR", ee = J.flash.system.Capabilities.os) : b(J = D.phantom) == ae ? (ce = "PhantomJS", Ae = (J = J.version || null) && J.major + "." + J.minor + "." + J.patch) : typeof pe.documentMode == "number" && (J = /\bTrident\/(\d+)/i.exec(S)) ? (Ae = [Ae, pe.documentMode], (J = +J[1] + 4) != Ae[1] && (ke.push("IE " + Ae[1] + " mode"), Te && (Te[1] = ""), Ae[1] = J), Ae = ce == "IE" ? String(Ae[1].toFixed(1)) : Ae[0]) : typeof pe.documentMode == "number" && /^(?:Chrome|Firefox)\b/.test(ce) && (ke.push("masking as " + ce + " " + Ae), ce = "IE", Ae = "11.0", Te = ["Trident"], ee = "Windows");
97428
97428
  ee = ee && m(ee);
97429
97429
  }
97430
- if (Ae && (J = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ae) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (Pe && R.appMinorVersion)) || /\bMinefield\b/i.test(S) && "a") && (Re = /b/i.test(J) ? "beta" : "alpha", Ae = Ae.replace(RegExp(J + "\\+?$"), "") + (Re == "beta" ? ie : de) + (/\d+\+?/.exec(J) || "")), ce == "Fennec" || ce == "Firefox" && /\b(?:Android|Firefox OS|KaiOS)\b/.test(ee))
97430
+ if (Ae && (J = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ae) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (Pe && R.appMinorVersion)) || /\bMinefield\b/i.test(S) && "a") && (Re = /b/i.test(J) ? "beta" : "alpha", Ae = Ae.replace(RegExp(J + "\\+?$"), "") + (Re == "beta" ? re : de) + (/\d+\+?/.exec(J) || "")), ce == "Fennec" || ce == "Firefox" && /\b(?:Android|Firefox OS|KaiOS)\b/.test(ee))
97431
97431
  ce = "Firefox Mobile";
97432
97432
  else if (ce == "Maxthon" && Ae)
97433
97433
  Ae = Ae.replace(/\.[\d.]+/, ".x");
@@ -97650,8 +97650,8 @@ const Ree = /* @__PURE__ */ z2(Cnt), b3 = () => {
97650
97650
  const { state: V } = e;
97651
97651
  if (!V) return;
97652
97652
  const { from: Y, to: ae } = V.selection, G = V.doc.textBetween(Y, ae, " ");
97653
- G && (o((re) => ({
97654
- ...re,
97653
+ G && (o((ie) => ({
97654
+ ...ie,
97655
97655
  highlightedTextContent: G
97656
97656
  })), setTimeout(() => {
97657
97657
  e.chain().setHighlight({ color: "#DDFBDF" }).run();
@@ -104931,14 +104931,14 @@ var ene = { exports: {} };
104931
104931
  return G(this, P, B);
104932
104932
  case "latin1":
104933
104933
  case "binary":
104934
- return re(this, P, B);
104934
+ return ie(this, P, B);
104935
104935
  case "base64":
104936
104936
  return V(this, P, B);
104937
104937
  case "ucs2":
104938
104938
  case "ucs-2":
104939
104939
  case "utf16le":
104940
104940
  case "utf-16le":
104941
- return ie(this, P, B);
104941
+ return re(this, P, B);
104942
104942
  default:
104943
104943
  if (te) throw new TypeError("Unknown encoding: " + C);
104944
104944
  C = (C + "").toLowerCase(), te = !0;
@@ -105036,7 +105036,7 @@ var ene = { exports: {} };
105036
105036
  for (var ue = P; ue < B; ++ue) te += l(127 & C[ue]);
105037
105037
  return te;
105038
105038
  }
105039
- function re(C, P, B) {
105039
+ function ie(C, P, B) {
105040
105040
  var te = "";
105041
105041
  B = c(C.length, B);
105042
105042
  for (var ue = P; ue < B; ++ue) te += l(C[ue]);
@@ -105048,7 +105048,7 @@ var ene = { exports: {} };
105048
105048
  for (var ue = "", me = P; me < B; ++me) ue += Re(C[me]);
105049
105049
  return ue;
105050
105050
  }
105051
- function ie(C, P, B) {
105051
+ function re(C, P, B) {
105052
105052
  for (var te = C.slice(P, B), ue = "", me = 0; me < te.length; me += 2) ue += l(te[me] + 256 * te[me + 1]);
105053
105053
  return ue;
105054
105054
  }
@@ -105983,10 +105983,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
105983
105983
  (function(o, l) {
105984
105984
  (function() {
105985
105985
  function c(W) {
105986
- return ie.from(W);
105986
+ return re.from(W);
105987
105987
  }
105988
105988
  function u(W) {
105989
- return ie.isBuffer(W) || W instanceof pe;
105989
+ return re.isBuffer(W) || W instanceof pe;
105990
105990
  }
105991
105991
  function f(W, C, P) {
105992
105992
  return typeof W.prependListener == "function" ? W.prependListener(C, P) : void (W._events && W._events[C] ? Array.isArray(W._events[C]) ? W._events[C].unshift(P) : W._events[C] = [P, W._events[C]] : W.on(C, P));
@@ -106007,7 +106007,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
106007
106007
  var me;
106008
106008
  if (te || (me = g(ue, C)), me) ee(W, me);
106009
106009
  else if (!(ue.objectMode || C && 0 < C.length)) B || (ue.reading = !1, M(W, ue));
106010
- else if (typeof C == "string" || ue.objectMode || Object.getPrototypeOf(C) === ie.prototype || (C = c(C)), B) ue.endEmitted ? ee(W, new Q()) : m(W, ue, C, !0);
106010
+ else if (typeof C == "string" || ue.objectMode || Object.getPrototypeOf(C) === re.prototype || (C = c(C)), B) ue.endEmitted ? ee(W, new Q()) : m(W, ue, C, !0);
106011
106011
  else if (ue.ended) ee(W, new ce());
106012
106012
  else {
106013
106013
  if (ue.destroyed) return !1;
@@ -106059,7 +106059,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
106059
106059
  function S(W) {
106060
106060
  return function() {
106061
106061
  var C = W._readableState;
106062
- G("pipeOnDrain", C.awaitDrain), C.awaitDrain && C.awaitDrain--, C.awaitDrain === 0 && re(W, "data") && (C.flowing = !0, q(W));
106062
+ G("pipeOnDrain", C.awaitDrain), C.awaitDrain && C.awaitDrain--, C.awaitDrain === 0 && ie(W, "data") && (C.flowing = !0, q(W));
106063
106063
  };
106064
106064
  }
106065
106065
  function D(W) {
@@ -106103,9 +106103,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
106103
106103
  h.ReadableState = d;
106104
106104
  var G;
106105
106105
  s("events").EventEmitter;
106106
- var re = function(W, C) {
106106
+ var ie = function(W, C) {
106107
106107
  return W.listeners(C).length;
106108
- }, de = s("./internal/streams/stream"), ie = s("buffer").Buffer, pe = l.Uint8Array || function() {
106108
+ }, de = s("./internal/streams/stream"), re = s("buffer").Buffer, pe = l.Uint8Array || function() {
106109
106109
  }, oe = s("util");
106110
106110
  G = oe && oe.debuglog ? oe.debuglog("stream") : function() {
106111
106111
  };
@@ -106120,7 +106120,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
106120
106120
  C(W);
106121
106121
  }, h.prototype.push = function(W, C) {
106122
106122
  var P, B = this._readableState;
106123
- return B.objectMode ? P = !0 : typeof W == "string" && (C = C || B.defaultEncoding, C !== B.encoding && (W = ie.from(W, C), C = ""), P = !0), p(this, W, C, !1, P);
106123
+ return B.objectMode ? P = !0 : typeof W == "string" && (C = C || B.defaultEncoding, C !== B.encoding && (W = re.from(W, C), C = ""), P = !0), p(this, W, C, !1, P);
106124
106124
  }, h.prototype.unshift = function(W) {
106125
106125
  return p(this, W, null, !0, !1);
106126
106126
  }, h.prototype.isPaused = function() {
@@ -106158,7 +106158,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
106158
106158
  G("dest.write", lt), lt === !1 && ((Ke.pipesCount === 1 && Ke.pipes === W || 1 < Ke.pipesCount && Y(Ke.pipes, W) !== -1) && !xe && (G("false write response, pause", Ke.awaitDrain), Ke.awaitDrain++), _e.pause());
106159
106159
  }
106160
106160
  function me(Ue) {
106161
- G("onerror", Ue), Ee(), W.removeListener("error", me), re(W, "error") === 0 && ee(W, Ue);
106161
+ G("onerror", Ue), Ee(), W.removeListener("error", me), ie(W, "error") === 0 && ee(W, Ue);
106162
106162
  }
106163
106163
  function ze() {
106164
106164
  W.removeListener("finish", Ze), Ee();
@@ -106310,7 +106310,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
106310
106310
  return G.from(X);
106311
106311
  }
106312
106312
  function f(X) {
106313
- return G.isBuffer(X) || X instanceof re;
106313
+ return G.isBuffer(X) || X instanceof ie;
106314
106314
  }
106315
106315
  function d() {
106316
106316
  }
@@ -106425,8 +106425,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
106425
106425
  a.exports = p;
106426
106426
  var V;
106427
106427
  p.WritableState = h;
106428
- var Y = { deprecate: s("util-deprecate") }, ae = s("./internal/streams/stream"), G = s("buffer").Buffer, re = l.Uint8Array || function() {
106429
- }, de = s("./internal/streams/destroy"), ie = s("./internal/streams/state"), pe = ie.getHighWaterMark, oe = s("../errors").codes, ge = oe.ERR_INVALID_ARG_TYPE, J = oe.ERR_METHOD_NOT_IMPLEMENTED, be = oe.ERR_MULTIPLE_CALLBACK, ke = oe.ERR_STREAM_CANNOT_PIPE, Re = oe.ERR_STREAM_DESTROYED, Pe = oe.ERR_STREAM_NULL_VALUES, Ae = oe.ERR_STREAM_WRITE_AFTER_END, Le = oe.ERR_UNKNOWN_ENCODING, Te = de.errorOrDestroy;
106428
+ var Y = { deprecate: s("util-deprecate") }, ae = s("./internal/streams/stream"), G = s("buffer").Buffer, ie = l.Uint8Array || function() {
106429
+ }, de = s("./internal/streams/destroy"), re = s("./internal/streams/state"), pe = re.getHighWaterMark, oe = s("../errors").codes, ge = oe.ERR_INVALID_ARG_TYPE, J = oe.ERR_METHOD_NOT_IMPLEMENTED, be = oe.ERR_MULTIPLE_CALLBACK, ke = oe.ERR_STREAM_CANNOT_PIPE, Re = oe.ERR_STREAM_DESTROYED, Pe = oe.ERR_STREAM_NULL_VALUES, Ae = oe.ERR_STREAM_WRITE_AFTER_END, Le = oe.ERR_UNKNOWN_ENCODING, Te = de.errorOrDestroy;
106430
106430
  s("inherits")(p, ae), h.prototype.getBuffer = function() {
106431
106431
  for (var X = this.bufferedRequest, Q = []; X; ) Q.push(X), X = X.next;
106432
106432
  return Q;
@@ -111798,13 +111798,13 @@ const Pne = ({
111798
111798
  deleteNode: n
111799
111799
  }) => {
111800
111800
  const r = Xv(), [i, s] = Oe(), [a, o] = Oe(0), [l, c] = Oe(0), [u, f] = Oe({}), d = Xe(null), [h, p] = Oe(!1), [m, g] = Oe(!1), [b, k] = Oe(null), v = Xe(null), w = () => {
111801
- const re = {};
111802
- MB.forEach(({ tooltip: de, isActive: ie }) => {
111803
- re[de] = !!(ie != null && ie(t.attrs));
111804
- }), f(re);
111801
+ const ie = {};
111802
+ MB.forEach(({ tooltip: de, isActive: re }) => {
111803
+ ie[de] = !!(re != null && re(t.attrs));
111804
+ }), f(ie);
111805
111805
  }, x = () => {
111806
- const re = document.querySelector(".ProseMirror");
111807
- if (re && c(re == null ? void 0 : re.clientWidth), !!d.current) {
111806
+ const ie = document.querySelector(".ProseMirror");
111807
+ if (ie && c(ie == null ? void 0 : ie.clientWidth), !!d.current) {
111808
111808
  if (i === "video") {
111809
111809
  const de = d.current;
111810
111810
  de.addEventListener("loadeddata", function() {
@@ -111823,22 +111823,22 @@ const Pne = ({
111823
111823
  };
111824
111824
  setTimeout(() => w(), 200);
111825
111825
  }
111826
- }, M = (re) => {
111827
- td = re;
111826
+ }, M = (ie) => {
111827
+ td = ie;
111828
111828
  };
111829
111829
  Be(() => {
111830
111830
  x();
111831
111831
  }, []);
111832
- const L = ({ width: re, height: de }) => re < 200 || de < 200, S = (re) => {
111833
- const de = "touches" in re ? re.touches[0].clientX : re.clientX;
111832
+ const L = ({ width: ie, height: de }) => ie < 200 || de < 200, S = (ie) => {
111833
+ const de = "touches" in ie ? ie.touches[0].clientX : ie.clientX;
111834
111834
  setTimeout(() => H(de));
111835
- }, D = (re) => {
111836
- re.stopPropagation(), td = "touches" in re ? re.touches[0].clientX : re.clientX, setTimeout(() => {
111835
+ }, D = (ie) => {
111836
+ ie.stopPropagation(), td = "touches" in ie ? ie.touches[0].clientX : ie.clientX, setTimeout(() => {
111837
111837
  document.addEventListener("mousemove", S), document.addEventListener("mouseup", j), document.addEventListener("touchmove", S), document.addEventListener("touchend", j);
111838
111838
  }), p(!0);
111839
111839
  }, j = () => {
111840
111840
  td = -1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", j), p(!1);
111841
- }, R = (re, de) => {
111841
+ }, R = (ie, de) => {
111842
111842
  var ge, J;
111843
111843
  if (!d.current) {
111844
111844
  console.error("Media ref is undefined|null", {
@@ -111846,48 +111846,48 @@ const Pne = ({
111846
111846
  });
111847
111847
  return;
111848
111848
  }
111849
- const ie = {
111849
+ const re = {
111850
111850
  width: (ge = d.current) == null ? void 0 : ge.width,
111851
111851
  height: (J = d.current) == null ? void 0 : J.height
111852
111852
  }, pe = {
111853
111853
  width: -1,
111854
111854
  height: -1
111855
111855
  };
111856
- let oe = parseFloat(ie.width.toString());
111857
- if (isNaN(oe) && (oe = 0), re === "left" ? pe.width = oe - Math.abs(de) : pe.width = oe + Math.abs(de), pe.width > l && (pe.width = l), i === "iframe")
111856
+ let oe = parseFloat(re.width.toString());
111857
+ if (isNaN(oe) && (oe = 0), ie === "left" ? pe.width = oe - Math.abs(de) : pe.width = oe + Math.abs(de), pe.width > l && (pe.width = l), i === "iframe")
111858
111858
  pe.height = pe.width / (16 / 9);
111859
111859
  else {
111860
111860
  const be = isNaN(a) ? 1 : a;
111861
111861
  pe.height = pe.width / be;
111862
111862
  }
111863
111863
  pe.width = isNaN(pe.width) ? 0 : pe.width, pe.height = isNaN(pe.height) ? 0 : pe.height, !L(pe) && e(pe);
111864
- }, H = (re) => {
111864
+ }, H = (ie) => {
111865
111865
  if (td === -1) return;
111866
- const de = td - re;
111866
+ const de = td - ie;
111867
111867
  if (de === 0) return;
111868
- const ie = de > 0 ? "left" : "right";
111868
+ const re = de > 0 ? "left" : "right";
111869
111869
  setTimeout(() => {
111870
- R(ie, Math.abs(de)), td = re;
111870
+ R(re, Math.abs(de)), td = ie;
111871
111871
  });
111872
111872
  }, [q, Z] = Oe(), [U, V] = Oe();
111873
111873
  Be(() => {
111874
111874
  s(t.attrs["media-type"]), w(), Z(t.attrs.dataFloat), V(t.attrs.dataAlign);
111875
111875
  }, [t.attrs]);
111876
- const Y = (re) => {
111877
- re.stopPropagation(), v.current = {
111878
- x: re.touches[0].clientX,
111879
- y: re.touches[0].clientY
111876
+ const Y = (ie) => {
111877
+ ie.stopPropagation(), v.current = {
111878
+ x: ie.touches[0].clientX,
111879
+ y: ie.touches[0].clientY
111880
111880
  };
111881
111881
  const de = setTimeout(() => {
111882
111882
  g(!0);
111883
111883
  }, 500);
111884
111884
  k(de);
111885
- }, ae = (re) => {
111885
+ }, ae = (ie) => {
111886
111886
  if (!m) {
111887
111887
  b && (clearTimeout(b), k(null));
111888
111888
  return;
111889
111889
  }
111890
- re.preventDefault(), re.stopPropagation();
111890
+ ie.preventDefault(), ie.stopPropagation();
111891
111891
  }, G = () => {
111892
111892
  b && (clearTimeout(b), k(null)), g(!1), v.current = null;
111893
111893
  };
@@ -111971,23 +111971,23 @@ const Pne = ({
111971
111971
  {
111972
111972
  className: "horizontal-resize-handle group-hover:bg-black group-hover:border-2 group-hover:border-white/80",
111973
111973
  title: "Resize",
111974
- onClick: ({ clientX: re }) => M(re),
111975
- onMouseDown: (re) => D(re),
111974
+ onClick: ({ clientX: ie }) => M(ie),
111975
+ onMouseDown: (ie) => D(ie),
111976
111976
  onMouseUp: j,
111977
- onTouchStart: (re) => D(re),
111977
+ onTouchStart: (ie) => D(ie),
111978
111978
  onTouchEnd: j
111979
111979
  }
111980
111980
  ),
111981
- /* @__PURE__ */ T.jsx("span", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex gap-1 p-1", children: MB.map((re, de) => /* @__PURE__ */ T.jsx(
111981
+ /* @__PURE__ */ T.jsx("span", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex gap-1 p-1", children: MB.map((ie, de) => /* @__PURE__ */ T.jsx(
111982
111982
  Hr,
111983
111983
  {
111984
- tooltip: re.tooltip,
111985
- isActive: u[re.tooltip],
111984
+ tooltip: ie.tooltip,
111985
+ isActive: u[ie.tooltip],
111986
111986
  onClick: () => {
111987
- var ie;
111988
- return re.tooltip === "Delete" ? n() : (ie = re.action) == null ? void 0 : ie.call(re, e);
111987
+ var re;
111988
+ return ie.tooltip === "Delete" ? n() : (re = ie.action) == null ? void 0 : re.call(ie, e);
111989
111989
  },
111990
- icon: re.icon,
111990
+ icon: ie.icon,
111991
111991
  classNames: "min-w-6 aspect-square"
111992
111992
  },
111993
111993
  de
@@ -112977,7 +112977,7 @@ const Rlt = (t) => ({
112977
112977
  G === "y";
112978
112978
  }
112979
112979
  return !0;
112980
- }).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G, re) => G + re, 0)]).sort((ae, G) => ae[1] - G[1])[0]) == null ? void 0 : q[0];
112980
+ }).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G, ie) => G + ie, 0)]).sort((ae, G) => ae[1] - G[1])[0]) == null ? void 0 : q[0];
112981
112981
  Y && (V = Y);
112982
112982
  break;
112983
112983
  }
@@ -113805,7 +113805,7 @@ function pct(t) {
113805
113805
  middleware: d
113806
113806
  };
113807
113807
  R.current && (ae.platform = R.current), hct(M.current, L.current, ae).then((G) => {
113808
- const re = {
113808
+ const ie = {
113809
113809
  ...G,
113810
113810
  // The floating element's position may be recomputed while it's closed
113811
113811
  // but still mounted (such as when transitioning out). To ensure
@@ -113813,8 +113813,8 @@ function pct(t) {
113813
113813
  // setting it to `true` when `open === false` (must be specified).
113814
113814
  isPositioned: H.current !== !1
113815
113815
  };
113816
- Z.current && !Vb(S.current, re) && (S.current = re, p1.flushSync(() => {
113817
- f(re);
113816
+ Z.current && !Vb(S.current, ie) && (S.current = ie, p1.flushSync(() => {
113817
+ f(ie);
113818
113818
  }));
113819
113819
  });
113820
113820
  }, [d, e, n, R, H]);
@@ -113850,17 +113850,17 @@ function pct(t) {
113850
113850
  };
113851
113851
  if (!V.floating)
113852
113852
  return ae;
113853
- const G = FB(V.floating, u.x), re = FB(V.floating, u.y);
113853
+ const G = FB(V.floating, u.x), ie = FB(V.floating, u.y);
113854
113854
  return o ? {
113855
113855
  ...ae,
113856
- transform: "translate(" + G + "px, " + re + "px)",
113856
+ transform: "translate(" + G + "px, " + ie + "px)",
113857
113857
  ...Qne(V.floating) >= 1.5 && {
113858
113858
  willChange: "transform"
113859
113859
  }
113860
113860
  } : {
113861
113861
  position: n,
113862
113862
  left: G,
113863
- top: re
113863
+ top: ie
113864
113864
  };
113865
113865
  }, [n, o, V.floating, u.x, u.y]);
113866
113866
  return E.useMemo(() => ({
@@ -114020,11 +114020,11 @@ var fN = "PopperContent", [Ect, Lct] = $ne(fN), sre = E.forwardRef(
114020
114020
  jct({ arrowWidth: L, arrowHeight: S }),
114021
114021
  d && kct({ strategy: "referenceHidden", ...q })
114022
114022
  ]
114023
- }), [G, re] = lre(V), de = n1(p);
114023
+ }), [G, ie] = lre(V), de = n1(p);
114024
114024
  A2(() => {
114025
114025
  Y && (de == null || de());
114026
114026
  }, [Y, de]);
114027
- const ie = (be = ae.arrow) == null ? void 0 : be.x, pe = (ke = ae.arrow) == null ? void 0 : ke.y, oe = ((Re = ae.arrow) == null ? void 0 : Re.centerOffset) !== 0, [ge, J] = E.useState();
114027
+ const re = (be = ae.arrow) == null ? void 0 : be.x, pe = (ke = ae.arrow) == null ? void 0 : ke.y, oe = ((Re = ae.arrow) == null ? void 0 : Re.centerOffset) !== 0, [ge, J] = E.useState();
114028
114028
  return A2(() => {
114029
114029
  b && J(window.getComputedStyle(b).zIndex);
114030
114030
  }, [b]), /* @__PURE__ */ T.jsx(
@@ -114057,14 +114057,14 @@ var fN = "PopperContent", [Ect, Lct] = $ne(fN), sre = E.forwardRef(
114057
114057
  scope: n,
114058
114058
  placedSide: G,
114059
114059
  onArrowChange: x,
114060
- arrowX: ie,
114060
+ arrowX: re,
114061
114061
  arrowY: pe,
114062
114062
  shouldHideArrow: oe,
114063
114063
  children: /* @__PURE__ */ T.jsx(
114064
114064
  D1.div,
114065
114065
  {
114066
114066
  "data-side": G,
114067
- "data-align": re,
114067
+ "data-align": ie,
114068
114068
  ...m,
114069
114069
  ref: v,
114070
114070
  style: {
@@ -116464,29 +116464,29 @@ const R3 = ({
116464
116464
  ] }), _ut = ({ node: t, getPos: e, editor: n, deleteNode: r, secureImageUploadUrl: i }) => {
116465
116465
  var G;
116466
116466
  const [s, a] = Oe(!1), o = zut(n, t, e()), l = Xv(), c = xn(() => {
116467
- const { content: re } = t.content;
116468
- return re[0].type.name === "table";
116467
+ const { content: ie } = t.content;
116468
+ return ie[0].type.name === "table";
116469
116469
  }, [t.content]), u = xn(() => {
116470
116470
  var de;
116471
- const { content: re } = t.content;
116472
- return (de = re[0].content.content[0]) == null ? void 0 : de.text;
116471
+ const { content: ie } = t.content;
116472
+ return (de = ie[0].content.content[0]) == null ? void 0 : de.text;
116473
116473
  }, [t.content]), f = xn(() => {
116474
116474
  var de;
116475
- const { content: re } = t.content;
116476
- return (de = re[0].content.content[1]) == null ? void 0 : de.text;
116475
+ const { content: ie } = t.content;
116476
+ return (de = ie[0].content.content[1]) == null ? void 0 : de.text;
116477
116477
  }, [t.content]), d = xn(() => {
116478
- const { content: re } = t.content;
116479
- return re[0].content.content.find(
116478
+ const { content: ie } = t.content;
116479
+ return ie[0].content.content.find(
116480
116480
  (de) => {
116481
- var ie;
116482
- return (ie = de == null ? void 0 : de.text) == null ? void 0 : ie.match(/\/status\/([0-9]*)/);
116481
+ var re;
116482
+ return (re = de == null ? void 0 : de.text) == null ? void 0 : re.match(/\/status\/([0-9]*)/);
116483
116483
  }
116484
116484
  );
116485
116485
  }, [t.content]), h = () => {
116486
- var re, de, ie, pe, oe;
116486
+ var ie, de, re, pe, oe;
116487
116487
  if (u)
116488
116488
  try {
116489
- const { content: ge } = t.content, J = (oe = (pe = (ie = (de = (re = ge[0]) == null ? void 0 : re.content) == null ? void 0 : de.content[0]) == null ? void 0 : ie.marks[0]) == null ? void 0 : pe.attrs) == null ? void 0 : oe.href;
116489
+ const { content: ge } = t.content, J = (oe = (pe = (re = (de = (ie = ge[0]) == null ? void 0 : ie.content) == null ? void 0 : de.content[0]) == null ? void 0 : re.marks[0]) == null ? void 0 : pe.attrs) == null ? void 0 : oe.href;
116490
116490
  if (!J)
116491
116491
  return;
116492
116492
  if (J && /\.(jpeg|jpg|gif|png)$/i.test(J)) {
@@ -116517,26 +116517,26 @@ const R3 = ({
116517
116517
  } catch (ge) {
116518
116518
  console.error("Error in mediaRender:", ge);
116519
116519
  }
116520
- }, p = (re, de) => {
116521
- const ie = e(), pe = ie + t.nodeSize;
116522
- re === "img" ? n == null || n.chain().focus(ie).deleteRange({ from: ie === 0 ? ie : ie + 1, to: pe }).setMedia({ src: de, "media-type": "img" }).run() : re === "secure-img" ? console.log("secureImageUploadUrl", i) : n == null || n.chain().focus(ie).deleteRange({ from: ie === 0 ? ie : ie + 1, to: pe }).setIframe({ src: de, width: 640, height: 360 }).run();
116523
- }, m = (re) => {
116524
- const de = re.match(
116520
+ }, p = (ie, de) => {
116521
+ const re = e(), pe = re + t.nodeSize;
116522
+ ie === "img" ? n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: pe }).setMedia({ src: de, "media-type": "img" }).run() : ie === "secure-img" ? console.log("secureImageUploadUrl", i) : n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: pe }).setIframe({ src: de, width: 640, height: 360 }).run();
116523
+ }, m = (ie) => {
116524
+ const de = ie.match(
116525
116525
  /(?:https?:\/\/)?(?:www\.)?(?:twitter\.com|x\.com)\/(?:#!\/)?(\w+)\/status\/(\d+)/
116526
116526
  );
116527
116527
  return de && de[2] ? de[2] : null;
116528
116528
  }, g = () => {
116529
116529
  if (!u)
116530
116530
  return;
116531
- let re = null;
116531
+ let ie = null;
116532
116532
  const de = m(u);
116533
- if (de ? re = de : d && (re = m(d.text)), re) {
116534
- const ie = e(), pe = ie + t.nodeSize;
116535
- n == null || n.chain().focus(ie).deleteRange({ from: ie === 2 ? ie : ie + 1, to: pe }).setTweetEmbed({ tweetId: re }).run();
116533
+ if (de ? ie = de : d && (ie = m(d.text)), ie) {
116534
+ const re = e(), pe = re + t.nodeSize;
116535
+ n == null || n.chain().focus(re).deleteRange({ from: re === 2 ? re : re + 1, to: pe }).setTweetEmbed({ tweetId: ie }).run();
116536
116536
  }
116537
116537
  }, b = () => {
116538
- const re = e() + t.nodeSize;
116539
- n.commands.insertContentAt(re, {
116538
+ const ie = e() + t.nodeSize;
116539
+ n.commands.insertContentAt(ie, {
116540
116540
  type: "dBlock",
116541
116541
  content: [
116542
116542
  {
@@ -116545,8 +116545,8 @@ const R3 = ({
116545
116545
  ]
116546
116546
  });
116547
116547
  }, k = () => {
116548
- const re = e();
116549
- n.commands.insertContentAt(re, {
116548
+ const ie = e();
116549
+ n.commands.insertContentAt(ie, {
116550
116550
  type: "dBlock",
116551
116551
  content: [
116552
116552
  {
@@ -116556,14 +116556,14 @@ const R3 = ({
116556
116556
  });
116557
116557
  }, v = () => {
116558
116558
  r();
116559
- }, w = (re) => {
116560
- re.altKey ? M() : x();
116559
+ }, w = (ie) => {
116560
+ ie.altKey ? M() : x();
116561
116561
  }, x = () => {
116562
116562
  b();
116563
116563
  }, M = () => {
116564
116564
  k();
116565
- }, L = (re) => {
116566
- re.altKey && v();
116565
+ }, L = (ie) => {
116566
+ ie.altKey && v();
116567
116567
  }, D = Rne(() => {
116568
116568
  m(u) || d && m(d.text) ? g() : h();
116569
116569
  }, 1e3);
@@ -116572,11 +116572,11 @@ const R3 = ({
116572
116572
  }, [u]);
116573
116573
  const j = xn(() => {
116574
116574
  var J, be, ke, Re;
116575
- const { doc: re, selection: de } = n.state, ie = e(), pe = re.nodeAt(ie) === re.firstChild, oe = ((J = re.nodeAt(ie)) == null ? void 0 : J.type.name) === "dBlock" && ((ke = (be = re.nodeAt(ie)) == null ? void 0 : be.content.firstChild) == null ? void 0 : ke.type.name) === "paragraph", ge = de.$anchor.pos >= ie && de.$anchor.pos <= ie + (((Re = re.nodeAt(ie)) == null ? void 0 : Re.nodeSize) || 0);
116576
- return re.textContent === "" && pe && oe && ge;
116577
- }, [e, n.state]), R = (re) => {
116575
+ const { doc: ie, selection: de } = n.state, re = e(), pe = ie.nodeAt(re) === ie.firstChild, oe = ((J = ie.nodeAt(re)) == null ? void 0 : J.type.name) === "dBlock" && ((ke = (be = ie.nodeAt(re)) == null ? void 0 : be.content.firstChild) == null ? void 0 : ke.type.name) === "paragraph", ge = de.$anchor.pos >= re && de.$anchor.pos <= re + (((Re = ie.nodeAt(re)) == null ? void 0 : Re.nodeSize) || 0);
116576
+ return ie.textContent === "" && pe && oe && ge;
116577
+ }, [e, n.state]), R = (ie) => {
116578
116578
  const de = e() + t.nodeSize;
116579
- n.commands.insertContentAt(de - 4, re);
116579
+ n.commands.insertContentAt(de - 4, ie);
116580
116580
  }, H = Fut(R), q = Hut(R), [Z, U] = Oe(!1), [V, Y] = Oe(2), ae = () => {
116581
116581
  U(!Z), Y(Z ? 2 : q.length);
116582
116582
  };
@@ -116618,7 +116618,7 @@ const R3 = ({
116618
116618
  /* @__PURE__ */ T.jsx(
116619
116619
  nN,
116620
116620
  {
116621
- onMountAutoFocus: (re) => re.preventDefault(),
116621
+ onMountAutoFocus: (ie) => ie.preventDefault(),
116622
116622
  trapped: !1,
116623
116623
  children: /* @__PURE__ */ T.jsxs(Put, { open: s, onOpenChange: a, children: [
116624
116624
  /* @__PURE__ */ T.jsx(Rut, { asChild: !0, children: /* @__PURE__ */ T.jsx(
@@ -118547,8 +118547,8 @@ function K1t(t) {
118547
118547
  return {
118548
118548
  onTrigger: function(V, Y) {
118549
118549
  var ae = a.data.children.find(function(G) {
118550
- var re = G.instance;
118551
- return re.reference === Y.currentTarget;
118550
+ var ie = G.instance;
118551
+ return ie.reference === Y.currentTarget;
118552
118552
  });
118553
118553
  V.state.$$activeSingletonInstance = ae.instance, S(ae.content);
118554
118554
  }
@@ -118604,11 +118604,11 @@ function K1t(t) {
118604
118604
  phase: "beforeWrite",
118605
118605
  requires: ["computeStyles"],
118606
118606
  fn: function(Y) {
118607
- var ae, G = Y.state, re = (ae = G.modifiersData) == null ? void 0 : ae.hide;
118608
- (w.placement !== G.placement || w.referenceHidden !== (re == null ? void 0 : re.isReferenceHidden) || w.escaped !== (re == null ? void 0 : re.hasPopperEscaped)) && x({
118607
+ var ae, G = Y.state, ie = (ae = G.modifiersData) == null ? void 0 : ae.hide;
118608
+ (w.placement !== G.placement || w.referenceHidden !== (ie == null ? void 0 : ie.isReferenceHidden) || w.escaped !== (ie == null ? void 0 : ie.hasPopperEscaped)) && x({
118609
118609
  placement: G.placement,
118610
- referenceHidden: re == null ? void 0 : re.isReferenceHidden,
118611
- escaped: re == null ? void 0 : re.hasPopperEscaped
118610
+ referenceHidden: ie == null ? void 0 : ie.isReferenceHidden,
118611
+ escaped: ie == null ? void 0 : ie.hasPopperEscaped
118612
118612
  }), G.attributes.popper = {};
118613
118613
  }
118614
118614
  }])
@@ -124169,9 +124169,9 @@ function Eie() {
124169
124169
  CUSTOM_ELEMENT: G
124170
124170
  } = VF;
124171
124171
  let {
124172
- IS_ALLOWED_URI: re
124172
+ IS_ALLOWED_URI: ie
124173
124173
  } = VF, de = null;
124174
- const ie = rn({}, [...zF, ...bk, ...vk, ...wk, ...BF]);
124174
+ const re = rn({}, [...zF, ...bk, ...vk, ...wk, ...BF]);
124175
124175
  let pe = null;
124176
124176
  const oe = rn({}, [...FF, ...kk, ...HF, ...q3]);
124177
124177
  let ge = Object.seal(Cie(null, {
@@ -124214,7 +124214,7 @@ function Eie() {
124214
124214
  let se = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
124215
124215
  if (!(dn && dn === se)) {
124216
124216
  if ((!se || typeof se != "object") && (se = {}), se = Y1(se), gt = // eslint-disable-next-line unicorn/prefer-includes
124217
- Ut.indexOf(se.PARSER_MEDIA_TYPE) === -1 ? vn : se.PARSER_MEDIA_TYPE, Rt = gt === "application/xhtml+xml" ? gk : q6, de = Ra(se, "ALLOWED_TAGS") ? rn({}, se.ALLOWED_TAGS, Rt) : ie, pe = Ra(se, "ALLOWED_ATTR") ? rn({}, se.ALLOWED_ATTR, Rt) : oe, Bt = Ra(se, "ALLOWED_NAMESPACES") ? rn({}, se.ALLOWED_NAMESPACES, gk) : Dt, Ke = Ra(se, "ADD_URI_SAFE_ATTR") ? rn(Y1(zt), se.ADD_URI_SAFE_ATTR, Rt) : zt, Ee = Ra(se, "ADD_DATA_URI_TAGS") ? rn(Y1(_e), se.ADD_DATA_URI_TAGS, Rt) : _e, ze = Ra(se, "FORBID_CONTENTS") ? rn({}, se.FORBID_CONTENTS, Rt) : Ze, J = Ra(se, "FORBID_TAGS") ? rn({}, se.FORBID_TAGS, Rt) : {}, be = Ra(se, "FORBID_ATTR") ? rn({}, se.FORBID_ATTR, Rt) : {}, me = Ra(se, "USE_PROFILES") ? se.USE_PROFILES : !1, ke = se.ALLOW_ARIA_ATTR !== !1, Re = se.ALLOW_DATA_ATTR !== !1, Pe = se.ALLOW_UNKNOWN_PROTOCOLS || !1, Ae = se.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Le = se.SAFE_FOR_TEMPLATES || !1, Te = se.SAFE_FOR_XML !== !1, ce = se.WHOLE_DOCUMENT || !1, ee = se.RETURN_DOM || !1, De = se.RETURN_DOM_FRAGMENT || !1, W = se.RETURN_TRUSTED_TYPE || !1, Q = se.FORCE_BODY || !1, C = se.SANITIZE_DOM !== !1, P = se.SANITIZE_NAMED_PROPS || !1, te = se.KEEP_CONTENT !== !1, ue = se.IN_PLACE || !1, re = se.ALLOWED_URI_REGEXP || Aie, Ue = se.NAMESPACE || xe, nt = se.MATHML_TEXT_INTEGRATION_POINTS || nt, ft = se.HTML_INTEGRATION_POINTS || ft, ge = se.CUSTOM_ELEMENT_HANDLING || {}, se.CUSTOM_ELEMENT_HANDLING && rr(se.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ge.tagNameCheck = se.CUSTOM_ELEMENT_HANDLING.tagNameCheck), se.CUSTOM_ELEMENT_HANDLING && rr(se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ge.attributeNameCheck = se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), se.CUSTOM_ELEMENT_HANDLING && typeof se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ge.allowCustomizedBuiltInElements = se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Le && (Re = !1), De && (ee = !0), me && (de = rn({}, BF), pe = [], me.html === !0 && (rn(de, zF), rn(pe, FF)), me.svg === !0 && (rn(de, bk), rn(pe, kk), rn(pe, q3)), me.svgFilters === !0 && (rn(de, vk), rn(pe, kk), rn(pe, q3)), me.mathMl === !0 && (rn(de, wk), rn(pe, HF), rn(pe, q3))), se.ADD_TAGS && (de === ie && (de = Y1(de)), rn(de, se.ADD_TAGS, Rt)), se.ADD_ATTR && (pe === oe && (pe = Y1(pe)), rn(pe, se.ADD_ATTR, Rt)), se.ADD_URI_SAFE_ATTR && rn(Ke, se.ADD_URI_SAFE_ATTR, Rt), se.FORBID_CONTENTS && (ze === Ze && (ze = Y1(ze)), rn(ze, se.FORBID_CONTENTS, Rt)), te && (de["#text"] = !0), ce && rn(de, ["html", "head", "body"]), de.table && (rn(de, ["tbody"]), delete J.tbody), se.TRUSTED_TYPES_POLICY) {
124217
+ Ut.indexOf(se.PARSER_MEDIA_TYPE) === -1 ? vn : se.PARSER_MEDIA_TYPE, Rt = gt === "application/xhtml+xml" ? gk : q6, de = Ra(se, "ALLOWED_TAGS") ? rn({}, se.ALLOWED_TAGS, Rt) : re, pe = Ra(se, "ALLOWED_ATTR") ? rn({}, se.ALLOWED_ATTR, Rt) : oe, Bt = Ra(se, "ALLOWED_NAMESPACES") ? rn({}, se.ALLOWED_NAMESPACES, gk) : Dt, Ke = Ra(se, "ADD_URI_SAFE_ATTR") ? rn(Y1(zt), se.ADD_URI_SAFE_ATTR, Rt) : zt, Ee = Ra(se, "ADD_DATA_URI_TAGS") ? rn(Y1(_e), se.ADD_DATA_URI_TAGS, Rt) : _e, ze = Ra(se, "FORBID_CONTENTS") ? rn({}, se.FORBID_CONTENTS, Rt) : Ze, J = Ra(se, "FORBID_TAGS") ? rn({}, se.FORBID_TAGS, Rt) : {}, be = Ra(se, "FORBID_ATTR") ? rn({}, se.FORBID_ATTR, Rt) : {}, me = Ra(se, "USE_PROFILES") ? se.USE_PROFILES : !1, ke = se.ALLOW_ARIA_ATTR !== !1, Re = se.ALLOW_DATA_ATTR !== !1, Pe = se.ALLOW_UNKNOWN_PROTOCOLS || !1, Ae = se.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Le = se.SAFE_FOR_TEMPLATES || !1, Te = se.SAFE_FOR_XML !== !1, ce = se.WHOLE_DOCUMENT || !1, ee = se.RETURN_DOM || !1, De = se.RETURN_DOM_FRAGMENT || !1, W = se.RETURN_TRUSTED_TYPE || !1, Q = se.FORCE_BODY || !1, C = se.SANITIZE_DOM !== !1, P = se.SANITIZE_NAMED_PROPS || !1, te = se.KEEP_CONTENT !== !1, ue = se.IN_PLACE || !1, ie = se.ALLOWED_URI_REGEXP || Aie, Ue = se.NAMESPACE || xe, nt = se.MATHML_TEXT_INTEGRATION_POINTS || nt, ft = se.HTML_INTEGRATION_POINTS || ft, ge = se.CUSTOM_ELEMENT_HANDLING || {}, se.CUSTOM_ELEMENT_HANDLING && rr(se.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ge.tagNameCheck = se.CUSTOM_ELEMENT_HANDLING.tagNameCheck), se.CUSTOM_ELEMENT_HANDLING && rr(se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ge.attributeNameCheck = se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), se.CUSTOM_ELEMENT_HANDLING && typeof se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ge.allowCustomizedBuiltInElements = se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Le && (Re = !1), De && (ee = !0), me && (de = rn({}, BF), pe = [], me.html === !0 && (rn(de, zF), rn(pe, FF)), me.svg === !0 && (rn(de, bk), rn(pe, kk), rn(pe, q3)), me.svgFilters === !0 && (rn(de, vk), rn(pe, kk), rn(pe, q3)), me.mathMl === !0 && (rn(de, wk), rn(pe, HF), rn(pe, q3))), se.ADD_TAGS && (de === re && (de = Y1(de)), rn(de, se.ADD_TAGS, Rt)), se.ADD_ATTR && (pe === oe && (pe = Y1(pe)), rn(pe, se.ADD_ATTR, Rt)), se.ADD_URI_SAFE_ATTR && rn(Ke, se.ADD_URI_SAFE_ATTR, Rt), se.FORBID_CONTENTS && (ze === Ze && (ze = Y1(ze)), rn(ze, se.FORBID_CONTENTS, Rt)), te && (de["#text"] = !0), ce && rn(de, ["html", "head", "body"]), de.table && (rn(de, ["tbody"]), delete J.tbody), se.TRUSTED_TYPES_POLICY) {
124218
124218
  if (typeof se.TRUSTED_TYPES_POLICY.createHTML != "function")
124219
124219
  throw Bp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
124220
124220
  if (typeof se.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -124351,7 +124351,7 @@ function Eie() {
124351
124351
  Ne === "is" && ge.allowCustomizedBuiltInElements && (ge.tagNameCheck instanceof RegExp && Ni(ge.tagNameCheck, Je) || ge.tagNameCheck instanceof Function && ge.tagNameCheck(Je)))
124352
124352
  ) return !1;
124353
124353
  } else if (!Ke[Ne]) {
124354
- if (!Ni(re, zp(Je, ae, ""))) {
124354
+ if (!Ni(ie, zp(Je, ae, ""))) {
124355
124355
  if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && se !== "script" && V2t(Je, "data:") === 0 && Ee[se])) {
124356
124356
  if (!(Pe && !Ni(Y, zp(Je, ae, "")))) {
124357
124357
  if (Je)
@@ -131890,18 +131890,18 @@ var im = function(e, n, r) {
131890
131890
  width: Y,
131891
131891
  height: ae,
131892
131892
  viewBox: "0 0 " + d + " " + Z
131893
- }), re = ve.makeSvgSpan([], [G], i);
131894
- re.height = Z / 1e3, re.style.width = Y, re.style.height = ae, H.push({
131893
+ }), ie = ve.makeSvgSpan([], [G], i);
131894
+ ie.height = Z / 1e3, ie.style.width = Y, ie.style.height = ae, H.push({
131895
131895
  type: "elem",
131896
- elem: re
131896
+ elem: ie
131897
131897
  });
131898
131898
  } else {
131899
131899
  if (H.push(jk(u, h, s)), H.push(Q3), l === null) {
131900
131900
  var de = D - m - v + 2 * CA;
131901
131901
  H.push(Dk(c, de, i));
131902
131902
  } else {
131903
- var ie = (D - m - v - w) / 2 + 2 * CA;
131904
- H.push(Dk(c, ie, i)), H.push(Q3), H.push(jk(l, h, s)), H.push(Q3), H.push(Dk(c, ie, i));
131903
+ var re = (D - m - v - w) / 2 + 2 * CA;
131904
+ H.push(Dk(c, re, i)), H.push(Q3), H.push(jk(l, h, s)), H.push(Q3), H.push(Dk(c, re, i));
131905
131905
  }
131906
131906
  H.push(Q3), H.push(jk(o, h, s));
131907
131907
  }
@@ -132625,8 +132625,8 @@ var vl = function(e, n) {
132625
132625
  var H = v / 2 + n.fontMetrics().axisHeight, q = e.cols || [], Z = [], U, V, Y = [];
132626
132626
  if (e.tags && e.tags.some((De) => De))
132627
132627
  for (r = 0; r < s; ++r) {
132628
- var ae = l[r], G = ae.pos - H, re = e.tags[r], de = void 0;
132629
- re === !0 ? de = ve.makeSpan(["eqn-num"], [], n) : re === !1 ? de = ve.makeSpan([], [], n) : de = ve.makeSpan([], Rr(re, n, !0), n), de.depth = ae.depth, de.height = ae.height, Y.push({
132628
+ var ae = l[r], G = ae.pos - H, ie = e.tags[r], de = void 0;
132629
+ ie === !0 ? de = ve.makeSpan(["eqn-num"], [], n) : ie === !1 ? de = ve.makeSpan([], [], n) : de = ve.makeSpan([], Rr(ie, n, !0), n), de.depth = ae.depth, de.height = ae.height, Y.push({
132630
132630
  type: "elem",
132631
132631
  elem: de,
132632
132632
  shift: G
@@ -132639,19 +132639,19 @@ var vl = function(e, n) {
132639
132639
  i < o || V < q.length;
132640
132640
  ++i, ++V
132641
132641
  ) {
132642
- for (var ie = q[V] || {}, pe = !0; ie.type === "separator"; ) {
132643
- if (pe || (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(n.fontMetrics().doubleRuleSep), Z.push(U)), ie.separator === "|" || ie.separator === ":") {
132644
- var oe = ie.separator === "|" ? "solid" : "dashed", ge = ve.makeSpan(["vertical-separator"], [], n);
132642
+ for (var re = q[V] || {}, pe = !0; re.type === "separator"; ) {
132643
+ if (pe || (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(n.fontMetrics().doubleRuleSep), Z.push(U)), re.separator === "|" || re.separator === ":") {
132644
+ var oe = re.separator === "|" ? "solid" : "dashed", ge = ve.makeSpan(["vertical-separator"], [], n);
132645
132645
  ge.style.height = et(v), ge.style.borderRightWidth = et(u), ge.style.borderRightStyle = oe, ge.style.margin = "0 " + et(-u / 2);
132646
132646
  var J = v - H;
132647
132647
  J && (ge.style.verticalAlign = et(-J)), Z.push(ge);
132648
132648
  } else
132649
- throw new Ge("Invalid separator type: " + ie.separator);
132650
- V++, ie = q[V] || {}, pe = !1;
132649
+ throw new Ge("Invalid separator type: " + re.separator);
132650
+ V++, re = q[V] || {}, pe = !1;
132651
132651
  }
132652
132652
  if (!(i >= o)) {
132653
132653
  var be = void 0;
132654
- (i > 0 || e.hskipBeforeAndAfter) && (be = Mt.deflt(ie.pregap, d), be !== 0 && (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(be), Z.push(U)));
132654
+ (i > 0 || e.hskipBeforeAndAfter) && (be = Mt.deflt(re.pregap, d), be !== 0 && (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(be), Z.push(U)));
132655
132655
  var ke = [];
132656
132656
  for (r = 0; r < s; ++r) {
132657
132657
  var Re = l[r], Pe = Re[i];
@@ -132667,7 +132667,7 @@ var vl = function(e, n) {
132667
132667
  ke = ve.makeVList({
132668
132668
  positionType: "individualShift",
132669
132669
  children: ke
132670
- }, n), ke = ve.makeSpan(["col-align-" + (ie.align || "c")], [ke]), Z.push(ke), (i < o - 1 || e.hskipBeforeAndAfter) && (be = Mt.deflt(ie.postgap, d), be !== 0 && (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(be), Z.push(U)));
132670
+ }, n), ke = ve.makeSpan(["col-align-" + (re.align || "c")], [ke]), Z.push(ke), (i < o - 1 || e.hskipBeforeAndAfter) && (be = Mt.deflt(re.postgap, d), be !== 0 && (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(be), Z.push(U)));
132671
132671
  }
132672
132672
  }
132673
132673
  if (l = ve.makeSpan(["mtable"], Z), c.length > 0) {
@@ -139133,7 +139133,7 @@ function rgt({ pluginKey: t = ngt, editor: e, char: n = "@", allowSpaces: r = !1
139133
139133
  const j = (v = this.key) === null || v === void 0 ? void 0 : v.getState(k), R = (w = this.key) === null || w === void 0 ? void 0 : w.getState(b.state), H = j.active && R.active && j.range.from !== R.range.from, q = !j.active && R.active, Z = j.active && !R.active, U = !q && !Z && j.query !== R.query, V = q || H && U, Y = U || H, ae = Z || H && U;
139134
139134
  if (!V && !Y && !ae)
139135
139135
  return;
139136
- const G = ae && !V ? j : R, re = b.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);
139136
+ const G = ae && !V ? j : R, ie = b.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);
139137
139137
  p = {
139138
139138
  editor: e,
139139
139139
  range: G.range,
@@ -139145,12 +139145,12 @@ function rgt({ pluginKey: t = ngt, editor: e, char: n = "@", allowSpaces: r = !1
139145
139145
  range: G.range,
139146
139146
  props: de
139147
139147
  }),
139148
- decorationNode: re,
139148
+ decorationNode: ie,
139149
139149
  // virtual node for popper.js or tippy.js
139150
139150
  // this can be used for building popups without a DOM node
139151
- clientRect: re ? () => {
139151
+ clientRect: ie ? () => {
139152
139152
  var de;
139153
- const { decorationId: ie } = (de = this.key) === null || de === void 0 ? void 0 : de.getState(e.state), pe = b.dom.querySelector(`[data-decoration-id="${ie}"]`);
139153
+ const { decorationId: re } = (de = this.key) === null || de === void 0 ? void 0 : de.getState(e.state), pe = b.dom.querySelector(`[data-decoration-id="${re}"]`);
139154
139154
  return (pe == null ? void 0 : pe.getBoundingClientRect()) || null;
139155
139155
  } : null
139156
139156
  }, V && ((x = m == null ? void 0 : m.onBeforeStart) === null || x === void 0 || x.call(m, p)), Y && ((M = m == null ? void 0 : m.onBeforeUpdate) === null || M === void 0 || M.call(m, p)), (Y || V) && (p.items = await u({
@@ -140176,14 +140176,14 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
140176
140176
  })
140177
140177
  ]);
140178
140178
  }, [t]);
140179
- const V = Xe(!1), [Y, ae] = Oe(!0), [G, re] = Oe([]), de = (Q, ee, De) => {
140179
+ const V = Xe(!1), [Y, ae] = Oe(!0), [G, ie] = Oe([]), de = (Q, ee, De) => {
140180
140180
  let W = !1;
140181
140181
  return Q.doc.nodesBetween(ee, De, (C) => {
140182
140182
  C.marks && C.marks.some(
140183
140183
  (P) => P.type.name === "highlight" && P.attrs.color === "yellow"
140184
140184
  ) && (W = !0);
140185
140185
  }), W;
140186
- }, ie = (Q, ee) => {
140186
+ }, re = (Q, ee) => {
140187
140187
  var W;
140188
140188
  const De = ee.target;
140189
140189
  if (De && De.nodeName === "MARK" && De.dataset.color && ((W = De == null ? void 0 : De.dataset) == null ? void 0 : W.color) === "yellow") {
@@ -140212,7 +140212,7 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
140212
140212
  editorProps: {
140213
140213
  ...Fst,
140214
140214
  handleDOMEvents: {
140215
- mouseover: ie,
140215
+ mouseover: re,
140216
140216
  keydown: (Q, ee) => {
140217
140217
  if (["ArrowUp", "ArrowDown", "Enter"].includes(ee.key) && document.querySelector("#slash-command"))
140218
140218
  return !0;
@@ -140222,7 +140222,7 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
140222
140222
  }
140223
140223
  },
140224
140224
  handleClick: (Q, ee, De) => {
140225
- ie(Q, De);
140225
+ re(Q, De);
140226
140226
  }
140227
140227
  },
140228
140228
  autofocus: b ? !1 : "start",
@@ -140368,7 +140368,7 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
140368
140368
  setActiveCommentId: D,
140369
140369
  focusCommentWithActiveId: R,
140370
140370
  slides: G,
140371
- setSlides: re,
140371
+ setSlides: ie,
140372
140372
  tocItems: H,
140373
140373
  setTocItems: q
140374
140374
  };
@@ -143202,8 +143202,8 @@ function T5t(t) {
143202
143202
  const ae = R[Y], G = H[Y];
143203
143203
  if (h.hasOwnProperty(Y))
143204
143204
  continue;
143205
- let re = !1;
143206
- NA(ae) && NA(G) ? re = !pae(ae, G) : re = ae !== G, re ? ae != null ? Z(Y) : d.add(Y) : ae !== void 0 && d.has(Y) ? Z(Y) : k.protectedKeys[Y] = !0;
143205
+ let ie = !1;
143206
+ NA(ae) && NA(G) ? ie = !pae(ae, G) : ie = ae !== G, ie ? ae != null ? Z(Y) : d.add(Y) : ae !== void 0 && d.has(Y) ? Z(Y) : k.protectedKeys[Y] = !0;
143207
143207
  }
143208
143208
  k.prevProp = v, k.prevResolvedValues = R, k.isActive && (h = { ...h, ...R }), r && t.blockInitialAnimation && (S = !1), S && (!(M && L) || D) && f.push(...j.map((Y) => ({
143209
143209
  animation: Y,
@@ -145953,14 +145953,14 @@ const t_ = ({
145953
145953
  return;
145954
145954
  }
145955
145955
  v(!0);
145956
- const de = p8t(t), ie = S8t(de, {
145956
+ const de = p8t(t), re = S8t(de, {
145957
145957
  preserveNewlines: !0,
145958
145958
  sanitize: !0,
145959
145959
  maxCharsPerSlide: 1e3,
145960
145960
  maxWordsPerSlide: 250,
145961
145961
  maxLinesPerSlide: 7
145962
145962
  }), pe = document.createElement("div");
145963
- pe.innerHTML = ie;
145963
+ pe.innerHTML = re;
145964
145964
  const oe = [];
145965
145965
  let ge = [];
145966
145966
  if (pe.childNodes.forEach((be) => {
@@ -145986,17 +145986,17 @@ const t_ = ({
145986
145986
  return () => clearTimeout(J);
145987
145987
  }, [t]), Be(() => {
145988
145988
  const G = {};
145989
- return u.forEach((re, de) => {
145989
+ return u.forEach((ie, de) => {
145990
145990
  G[de] = new Zq({
145991
145991
  extensions: t.extensionManager.extensions.filter(
145992
- (ie) => ie.name !== "collaboration"
145992
+ (re) => re.name !== "collaboration"
145993
145993
  ),
145994
145994
  editable: !1
145995
145995
  }), setTimeout(() => {
145996
145996
  G[de].commands.setContent(u[de]);
145997
145997
  });
145998
145998
  }), b(G), () => {
145999
- Object.values(G).forEach((re) => re.destroy());
145999
+ Object.values(G).forEach((ie) => ie.destroy());
146000
146000
  };
146001
146001
  }, [u]);
146002
146002
  const q = xt(() => {
@@ -146007,7 +146007,7 @@ const t_ = ({
146007
146007
  }) : r(!0);
146008
146008
  }, [w]), Z = xt(
146009
146009
  (G) => {
146010
- G.key === "ArrowRight" || G.key === "ArrowDown" || G.code === "Space" ? (G.preventDefault(), G.stopPropagation(), R("forward"), m((re) => Math.min(re + 1, u.length - 1))) : G.key === "ArrowLeft" || G.key === "ArrowUp" ? (R("backward"), m((re) => Math.max(re - 1, 0))) : G.key === "Escape" ? !o && e() : (G.key === "f" || G.key === "F") && q();
146010
+ G.key === "ArrowRight" || G.key === "ArrowDown" || G.code === "Space" ? (G.preventDefault(), G.stopPropagation(), R("forward"), m((ie) => Math.min(ie + 1, u.length - 1))) : G.key === "ArrowLeft" || G.key === "ArrowUp" ? (R("backward"), m((ie) => Math.max(ie - 1, 0))) : G.key === "Escape" ? !o && e() : (G.key === "f" || G.key === "F") && q();
146011
146011
  },
146012
146012
  [u.length, e, q]
146013
146013
  );
@@ -146027,8 +146027,8 @@ const t_ = ({
146027
146027
  S(G.targetTouches[0].clientX);
146028
146028
  }, Y = xt(() => {
146029
146029
  if (!x || !L) return;
146030
- const G = x - L, re = G > D, de = G < -50;
146031
- re && (R("forward"), m((ie) => Math.min(ie + 1, u.length - 1))), de && (R("backward"), m((ie) => Math.max(ie - 1, 0)));
146030
+ const G = x - L, ie = G > D, de = G < -50;
146031
+ ie && (R("forward"), m((re) => Math.min(re + 1, u.length - 1))), de && (R("backward"), m((re) => Math.max(re - 1, 0)));
146032
146032
  }, [x, L, u.length, D]), ae = () => {
146033
146033
  if (a) {
146034
146034
  x8t(a), h(!0), c == null || c();
@@ -146363,7 +146363,9 @@ const t_ = ({
146363
146363
  isLoading: R,
146364
146364
  connectViaUsername: H,
146365
146365
  isDDocOwner: q
146366
- } = Rf(), { isNativeMobile: Z } = tp(), V = i.filter((G) => !G.deleted).filter((G) => m ? !0 : !G.resolved).sort((G, re) => (re == null ? void 0 : re.commentIndex) - (G == null ? void 0 : G.commentIndex)), Y = (G) => {
146366
+ } = Rf(), { isNativeMobile: Z } = tp(), V = i.filter((G) => !G.deleted).filter((G) => m ? !0 : !G.resolved).sort(
146367
+ (G, ie) => new Date(ie.createdAt).getTime() - new Date(G.createdAt).getTime()
146368
+ ), Y = (G) => {
146367
146369
  o(G);
146368
146370
  }, ae = aT(s);
146369
146371
  return Be(() => {
@@ -146393,7 +146395,7 @@ const t_ = ({
146393
146395
  ref: g,
146394
146396
  className: "flex flex-col overflow-y-auto no-scrollbar flex-1",
146395
146397
  children: V.map((G) => {
146396
- var re;
146398
+ var ie;
146397
146399
  return /* @__PURE__ */ T.jsxs(
146398
146400
  "div",
146399
146401
  {
@@ -146440,7 +146442,7 @@ const t_ = ({
146440
146442
  },
146441
146443
  className: Se(
146442
146444
  "w-full h-9 rounded-full color-bg-secondary flex items-center justify-center gap-2 mt-3",
146443
- ((re = G.replies) == null ? void 0 : re.length) === 0 && "hidden"
146445
+ ((ie = G.replies) == null ? void 0 : ie.length) === 0 && "hidden"
146444
146446
  ),
146445
146447
  variant: "ghost",
146446
146448
  children: [
@@ -146676,14 +146678,14 @@ const t_ = ({
146676
146678
  (l) => l.id === e
146677
146679
  ), o = {
146678
146680
  shouldShow: ({ editor: l }) => {
146679
- var d, h;
146680
- const c = (d = l.getAttributes("comment")) == null ? void 0 : d.resolved, u = l.view.hasFocus(), f = l.isActive("comment") && !c && u;
146681
- if (f) {
146682
- const p = (h = l.getAttributes("comment")) == null ? void 0 : h.commentId;
146683
- l.commands.setCommentActive(p);
146681
+ var f, d;
146682
+ const c = (f = l.getAttributes("comment")) == null ? void 0 : f.resolved, u = l.isActive("comment") && !c;
146683
+ if (u) {
146684
+ const h = (d = l.getAttributes("comment")) == null ? void 0 : d.commentId;
146685
+ l.commands.setCommentActive(h);
146684
146686
  } else
146685
146687
  l.commands.unsetCommentActive();
146686
- return f;
146688
+ return u;
146687
146689
  },
146688
146690
  onHide: ({ editor: l }) => {
146689
146691
  l.commands.unsetCommentActive();
@@ -146921,9 +146923,9 @@ const t_ = ({
146921
146923
  isNavbarVisible: Y,
146922
146924
  setIsNavbarVisible: ae,
146923
146925
  onComment: G,
146924
- onInlineComment: re,
146926
+ onInlineComment: ie,
146925
146927
  onMarkdownExport: de,
146926
- onMarkdownImport: ie,
146928
+ onMarkdownImport: re,
146927
146929
  editorCanvasClassNames: pe,
146928
146930
  sharedSlidesLink: oe,
146929
146931
  documentName: ge,
@@ -147118,7 +147120,7 @@ const t_ = ({
147118
147120
  isLoading: te,
147119
147121
  connectViaUsername: ue,
147120
147122
  isDDocOwner: me,
147121
- onInlineComment: re,
147123
+ onInlineComment: ie,
147122
147124
  onComment: G,
147123
147125
  setCommentDrawerOpen: Re,
147124
147126
  children: [
@@ -147144,7 +147146,7 @@ const t_ = ({
147144
147146
  setIsNavbarVisible: ae,
147145
147147
  secureImageUploadUrl: m,
147146
147148
  onMarkdownExport: de,
147147
- onMarkdownImport: ie
147149
+ onMarkdownImport: re
147148
147150
  }
147149
147151
  ) })
147150
147152
  }
@@ -147237,7 +147239,7 @@ const t_ = ({
147237
147239
  isPreviewMode: t,
147238
147240
  username: i,
147239
147241
  walletAddress: o,
147240
- onInlineComment: re,
147242
+ onInlineComment: ie,
147241
147243
  activeCommentId: dn
147242
147244
  }
147243
147245
  ),
@@ -147454,10 +147456,10 @@ const t_ = ({
147454
147456
  });
147455
147457
  b == null || b((ae) => {
147456
147458
  const G = [...ae];
147457
- return Y.forEach((re) => {
147459
+ return Y.forEach((ie) => {
147458
147460
  G.some(
147459
- (de) => de.name.toLowerCase() === re.name.toLowerCase()
147460
- ) || G.push(re);
147461
+ (de) => de.name.toLowerCase() === ie.name.toLowerCase()
147462
+ ) || G.push(ie);
147461
147463
  }), G;
147462
147464
  });
147463
147465
  }, U = (V) => {