@fileverse-dev/ddoc 3.0.45-patch-42 → 3.0.45-patch-44

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.
@@ -2,7 +2,7 @@ var nEe = Object.defineProperty;
2
2
  var rEe = (e, t, n) => t in e ? nEe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ct = (e, t, n) => rEe(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as W from "react";
5
- import Ne, { createRef as bu, memo as $i, createContext as Mn, createElement as rt, useContext as Ft, version as QW, useRef as Ue, useState as Ie, useDebugValue as Ok, useEffect as Be, forwardRef as dn, useLayoutEffect as Gi, useCallback as _e, useMemo as ot, useId as ym, Children as jse, isValidElement as Lse, useInsertionEffect as Rk, Fragment as G1, Suspense as oEe, Component as aO, useReducer as Nse, cloneElement as sO, useImperativeHandle as bm, useDeferredValue as iEe } from "react";
5
+ import Ne, { createRef as bu, memo as $i, createContext as Mn, createElement as rt, useContext as Ft, version as QW, useRef as Ue, useState as _e, useDebugValue as Ok, useEffect as Be, forwardRef as dn, useLayoutEffect as Gi, useCallback as Ie, useMemo as ot, useId as ym, Children as jse, isValidElement as Lse, useInsertionEffect as Rk, Fragment as G1, Suspense as oEe, Component as aO, useReducer as Nse, cloneElement as sO, useImperativeHandle as bm, useDeferredValue as iEe } from "react";
6
6
  import * as V6 from "react-dom";
7
7
  import lO, { flushSync as aEe, createPortal as vm, unstable_batchedUpdates as Iv } from "react-dom";
8
8
  var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -14163,7 +14163,7 @@ var gLe = class extends Ne.Component {
14163
14163
  };
14164
14164
  function Pue(e) {
14165
14165
  var t;
14166
- const [n] = Ie(() => new bLe(e.editor)), r = UO.useSyncExternalStoreWithSelector(
14166
+ const [n] = _e(() => new bLe(e.editor)), r = UO.useSyncExternalStoreWithSelector(
14167
14167
  n.subscribe,
14168
14168
  n.getSnapshot,
14169
14169
  n.getServerSnapshot,
@@ -14338,7 +14338,7 @@ var hG = process.env.NODE_ENV !== "production", WL = typeof window > "u", vLe =
14338
14338
  function Uue(e = {}, t = []) {
14339
14339
  const n = Ue(e);
14340
14340
  n.current = e;
14341
- const [r] = Ie(() => new xLe(n)), o = W6.useSyncExternalStore(
14341
+ const [r] = _e(() => new xLe(n)), o = W6.useSyncExternalStore(
14342
14342
  r.subscribe,
14343
14343
  r.getEditor,
14344
14344
  r.getServerSnapshot
@@ -49664,7 +49664,7 @@ function JTt({ children: e, isPresent: t }) {
49664
49664
  }, [t]), A.jsx(XTt, { isPresent: t, childRef: r, sizeRef: o, children: W.cloneElement(e, { ref: r }) });
49665
49665
  }
49666
49666
  const QTt = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: a }) => {
49667
- const s = cR(ejt), l = ym(), u = _e((d) => {
49667
+ const s = cR(ejt), l = ym(), u = Ie((d) => {
49668
49668
  s.set(d, !0);
49669
49669
  for (const f of s.values())
49670
49670
  if (!f)
@@ -49703,7 +49703,7 @@ function C1e(e = !0) {
49703
49703
  Be(() => {
49704
49704
  e && o(i);
49705
49705
  }, [e]);
49706
- const a = _e(() => e && r && r(i), [i, r, e]);
49706
+ const a = Ie(() => e && r && r(i), [i, r, e]);
49707
49707
  return !n && r ? [!1, a] : [!0];
49708
49708
  }
49709
49709
  const Yv = (e) => e.key || "";
@@ -49714,7 +49714,7 @@ function aZ(e) {
49714
49714
  }), t;
49715
49715
  }
49716
49716
  const fR = typeof window < "u", D1e = fR ? Gi : Be, tjt = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
49717
- const [s, l] = C1e(a), u = ot(() => aZ(e), [e]), c = a && !s ? [] : u.map(Yv), d = Ue(!0), f = Ue(u), h = cR(() => /* @__PURE__ */ new Map()), [p, g] = Ie(u), [m, y] = Ie(u);
49717
+ const [s, l] = C1e(a), u = ot(() => aZ(e), [e]), c = a && !s ? [] : u.map(Yv), d = Ue(!0), f = Ue(u), h = cR(() => /* @__PURE__ */ new Map()), [p, g] = _e(u), [m, y] = _e(u);
49718
49718
  D1e(() => {
49719
49719
  d.current = !1, f.current = u;
49720
49720
  for (let x = 0; x < m.length; x++) {
@@ -49980,7 +49980,7 @@ function F2(e) {
49980
49980
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
49981
49981
  }
49982
49982
  function hjt(e, t, n) {
49983
- return _e(
49983
+ return Ie(
49984
49984
  (r) => {
49985
49985
  r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : F2(n) && (n.current = r));
49986
49986
  },
@@ -54903,7 +54903,7 @@ const i0e = ({
54903
54903
  onAddTag: n,
54904
54904
  isPreviewMode: r
54905
54905
  }) => {
54906
- const [o, i] = Ie(""), [a, s] = Ie(!1), l = Ue(null), u = (h) => {
54906
+ const [o, i] = _e(""), [a, s] = _e(!1), l = Ue(null), u = (h) => {
54907
54907
  i(h), s(!0);
54908
54908
  }, c = (h) => {
54909
54909
  const p = e.find(
@@ -56744,7 +56744,7 @@ const jF = Ne.forwardRef(
56744
56744
  contentType: a = "icon",
56745
56745
  ...s
56746
56746
  }, l) => {
56747
- const [u, c] = Ie(r), d = (f) => {
56747
+ const [u, c] = _e(r), d = (f) => {
56748
56748
  !i && c(f), !i && n(f);
56749
56749
  };
56750
56750
  return /* @__PURE__ */ A.jsx(
@@ -57265,7 +57265,7 @@ function _E(e, t) {
57265
57265
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
57266
57266
  }
57267
57267
  function PBt(e, t) {
57268
- var n = Ie(function() {
57268
+ var n = _e(function() {
57269
57269
  return {
57270
57270
  // value
57271
57271
  value: e,
@@ -60015,7 +60015,7 @@ const ix = {
60015
60015
  isAnimated: i = !1,
60016
60016
  ...a
60017
60017
  }, s) => {
60018
- const [l, u] = Ie(e), [c, d] = Ie(
60018
+ const [l, u] = _e(e), [c, d] = _e(
60019
60019
  Object.keys(ix).findIndex(
60020
60020
  (h) => ix[h] === e
60021
60021
  )
@@ -61552,7 +61552,7 @@ function bzt(e, {
61552
61552
  defaultValue: t = !1,
61553
61553
  initializeWithValue: n = !0
61554
61554
  } = {}) {
61555
- const r = (s) => yzt ? t : window.matchMedia(s).matches, [o, i] = Ie(() => n ? r(e) : t);
61555
+ const r = (s) => yzt ? t : window.matchMedia(s).matches, [o, i] = _e(() => n ? r(e) : t);
61556
61556
  function a() {
61557
61557
  i(r(e));
61558
61558
  }
@@ -61901,7 +61901,7 @@ dn(
61901
61901
  )
61902
61902
  );
61903
61903
  const Dzt = ({ content: e }) => {
61904
- const [t, n] = Ie(0), r = Ue(null);
61904
+ const [t, n] = _e(0), r = Ue(null);
61905
61905
  return Be(() => {
61906
61906
  e && r.current ? n(r.current.scrollHeight) : n(0);
61907
61907
  }, [e]), /* @__PURE__ */ A.jsx(
@@ -62309,12 +62309,12 @@ const Ur = ({
62309
62309
  onClose: o,
62310
62310
  ...i
62311
62311
  }) => {
62312
- const [a, s] = Ie(!1), l = _e(
62312
+ const [a, s] = _e(!1), l = Ie(
62313
62313
  (d) => {
62314
62314
  n || (s((f) => !f), Ne.isValidElement(t) && t.props.onClick && t.props.onClick(d));
62315
62315
  },
62316
62316
  [n, t]
62317
- ), u = _e(
62317
+ ), u = Ie(
62318
62318
  (d) => {
62319
62319
  const f = d.target;
62320
62320
  !f.closest(".popover-trigger") && !f.closest(".popover-content") && (n || s(!1), o == null || o());
@@ -62889,7 +62889,7 @@ function Kpe(e) {
62889
62889
  }
62890
62890
  function WK(e, t) {
62891
62891
  t === void 0 && (t = 0);
62892
- var n = Ie(e), r = n[0], o = n[1], i = Ue(null);
62892
+ var n = _e(e), r = n[0], o = n[1], i = Ue(null);
62893
62893
  function a(s) {
62894
62894
  return new Promise(function(l) {
62895
62895
  var u;
@@ -62955,7 +62955,7 @@ var Ng;
62955
62955
  e.SEARCH = "SEARCH", e.PREVIEW = "PREVIEW";
62956
62956
  })(Ng || (Ng = {}));
62957
62957
  function rUt(e) {
62958
- var t = e.children, n = Ype(), r = UUt(), o = JUt(), i = Ue(Xy), a = Ue(!1), s = Ue(!1), l = Ue(n), u = WK(Date.now(), 200), c = WK("", 100), d = Ie(!1), f = Ie(r), h = Ie(null), p = Ie(/* @__PURE__ */ new Set()), g = Ie(null), m = Ie(o), y = Ie(!1), b = y[0], v = y[1], x = Ie([]);
62958
+ var t = e.children, n = Ype(), r = UUt(), o = JUt(), i = Ue(Xy), a = Ue(!1), s = Ue(!1), l = Ue(n), u = WK(Date.now(), 200), c = WK("", 100), d = _e(!1), f = _e(r), h = _e(null), p = _e(/* @__PURE__ */ new Set()), g = _e(null), m = _e(o), y = _e(!1), b = y[0], v = y[1], x = _e([]);
62959
62959
  return nUt(v), rt(ll.Provider, {
62960
62960
  value: {
62961
62961
  activeCategoryState: h,
@@ -80110,7 +80110,7 @@ function OUt(e) {
80110
80110
  }, t);
80111
80111
  }
80112
80112
  function RUt(e) {
80113
- var t, n = Ie(function() {
80113
+ var t, n = _e(function() {
80114
80114
  return GK(e);
80115
80115
  }), r = n[0], o = n[1];
80116
80116
  return Be(function() {
@@ -80379,7 +80379,7 @@ function aHt(e, t) {
80379
80379
  }
80380
80380
  function sHt() {
80381
80381
  var e = ps();
80382
- return _e(function(t) {
80382
+ return Ie(function(t) {
80383
80383
  requestAnimationFrame(function() {
80384
80384
  e.current && (e.current.scrollTop = t);
80385
80385
  });
@@ -80468,7 +80468,7 @@ function gHt(e) {
80468
80468
  return f[c] ? f[c] : (t = f.at(0)) != null ? t : null;
80469
80469
  }
80470
80470
  function gp() {
80471
- var e = Nm(), t = e[0], n = e[1], r = h5(), o = r[0], i = r[1], a = _e(function() {
80471
+ var e = Nm(), t = e[0], n = e[1], r = h5(), o = r[0], i = r[1], a = Ie(function() {
80472
80472
  t && n(null), o && i(!1);
80473
80473
  }, [t, o, n, i]);
80474
80474
  return a;
@@ -80514,19 +80514,19 @@ function yHt() {
80514
80514
  }
80515
80515
  function mp() {
80516
80516
  var e = K0();
80517
- return _e(function() {
80517
+ return Ie(function() {
80518
80518
  hs(e.current);
80519
80519
  }, [e]);
80520
80520
  }
80521
80521
  function bHt() {
80522
80522
  var e = CP();
80523
- return _e(function() {
80523
+ return Ie(function() {
80524
80524
  e.current && b2e(e.current);
80525
80525
  }, [e]);
80526
80526
  }
80527
80527
  function M2e() {
80528
80528
  var e = DP();
80529
- return _e(function() {
80529
+ return Ie(function() {
80530
80530
  e.current && b2e(e.current);
80531
80531
  }, [e]);
80532
80532
  }
@@ -80827,13 +80827,13 @@ function NHt() {
80827
80827
  }
80828
80828
  function T2e() {
80829
80829
  var e = M2e(), t = tC(), n = ps();
80830
- return _e(function() {
80830
+ return Ie(function() {
80831
80831
  return t ? oC(n.current) : e();
80832
80832
  }, [n, e, t]);
80833
80833
  }
80834
80834
  function _Ht() {
80835
80835
  var e = mp(), t = M2e(), n = tC();
80836
- return _e(function() {
80836
+ return Ie(function() {
80837
80837
  return n ? e() : t();
80838
80838
  }, [e, n, t]);
80839
80839
  }
@@ -81229,7 +81229,7 @@ function W2e(e) {
81229
81229
  return e.imgUrl !== void 0;
81230
81230
  }
81231
81231
  function $2e(e, t) {
81232
- var n = Ue(), r = A2e(), o = oUt(), i = Nm(), a = i[1], s = gp(), l = xP(), u = l[0], c = WUt(t), d = Jpe(), f = d[1], h = Bm(), p = Im(), g = _e(function(b) {
81232
+ var n = Ue(), r = A2e(), o = oUt(), i = Nm(), a = i[1], s = gp(), l = xP(), u = l[0], c = WUt(t), d = Jpe(), f = d[1], h = Bm(), p = Im(), g = Ie(function(b) {
81233
81233
  if (!o.current) {
81234
81234
  s();
81235
81235
  var v = nY(b), x = v[0], w = v[1];
@@ -81238,14 +81238,14 @@ function $2e(e, t) {
81238
81238
  f(), CUt(x, F), c(XHt(x, F, p, h), b);
81239
81239
  }
81240
81240
  }
81241
- }, [u, s, o, c, f, h, p]), m = _e(function(b) {
81241
+ }, [u, s, o, c, f, h, p]), m = Ie(function(b) {
81242
81242
  var v;
81243
81243
  n.current && clearTimeout(n.current);
81244
81244
  var x = nY(b), w = x[0];
81245
81245
  !w || !_m(w) || (n.current = (v = window) == null ? void 0 : v.setTimeout(function() {
81246
81246
  o.current = !0, n.current = void 0, s(), r(b.target), a(w);
81247
81247
  }, 500));
81248
- }, [o, s, r, a]), y = _e(function() {
81248
+ }, [o, s, r, a]), y = Ie(function() {
81249
81249
  n.current ? (clearTimeout(n.current), n.current = void 0) : o.current && requestAnimationFrame(function() {
81250
81250
  o.current = !1;
81251
81251
  });
@@ -81598,7 +81598,7 @@ var oY = /* @__PURE__ */ Fr.create({
81598
81598
  }
81599
81599
  });
81600
81600
  function lqt(e) {
81601
- var t = gp(), n = Ie(0), r = n[0], o = n[1];
81601
+ var t = gp(), n = _e(0), r = n[0], o = n[1];
81602
81602
  return Be(function() {
81603
81603
  var i = e.current;
81604
81604
  if (!i)
@@ -81630,7 +81630,7 @@ function cqt(e, t) {
81630
81630
  }
81631
81631
  var dqt = 32;
81632
81632
  function fqt(e) {
81633
- var t = x2e(), n = pp(), r = n[0], o = Om(), i = Ue(), a = wP(), s = a[0], l = Ie(), u = l[0], c = l[1], d = _e(function() {
81633
+ var t = x2e(), n = pp(), r = n[0], o = Om(), i = Ue(), a = wP(), s = a[0], l = _e(), u = l[0], c = l[1], d = Ie(function() {
81634
81634
  var f, h = t.current;
81635
81635
  if (h) {
81636
81636
  var p = h.querySelector(ob), g = p == null ? void 0 : p.clientHeight, m = (f = g ?? i.current) != null ? f : dqt;
@@ -81767,7 +81767,7 @@ var ZE = /* @__PURE__ */ Fr.create({
81767
81767
  }
81768
81768
  });
81769
81769
  function mqt(e) {
81770
- var t = e.scrollTop, n = f2e(), r = Ie({}), o = r[0], i = r[1], a = x2e(), s = MUt(), l = N2e(a.current), u = 0;
81770
+ var t = e.scrollTop, n = f2e(), r = _e({}), o = r[0], i = r[1], a = x2e(), s = MUt(), l = N2e(a.current), u = 0;
81771
81771
  return rt("ul", {
81772
81772
  className: Cn(bqt.emojiList),
81773
81773
  ref: a
@@ -82218,7 +82218,7 @@ function Lqt() {
82218
82218
  }, rt(Nqt, null), rt(Aqt, null), t ? rt(jqt, null) : null) : null;
82219
82219
  }
82220
82220
  function Nqt() {
82221
- var e, t = h2e(), n = Ie(null), r = n[0], o = n[1], i = Im(), a = Nm(), s = a[0], l = Bm();
82221
+ var e, t = h2e(), n = _e(null), r = n[0], o = n[1], i = Im(), a = Nm(), s = a[0], l = Bm();
82222
82222
  Mqt(t.showPreview, o);
82223
82223
  var u = _g((e = r == null ? void 0 : r.unified) != null ? e : r == null ? void 0 : r.originalUnified), c = u != null && r != null;
82224
82224
  return rt(d, null);
@@ -82408,7 +82408,7 @@ var aY = {
82408
82408
  ".epr-auto-theme": /* @__PURE__ */ vr({}, sY)
82409
82409
  }));
82410
82410
  function Hqt() {
82411
- var e = Ie(null), t = e[0], n = e[1], r = wP(), o = r[1], i = Bqt();
82411
+ var e = _e(null), t = e[0], n = e[1], r = wP(), o = r[1], i = Bqt();
82412
82412
  Iqt({
82413
82413
  setActiveCategory: n,
82414
82414
  setVisibleCategories: o
@@ -82662,7 +82662,7 @@ function Jqt(e) {
82662
82662
  return rt(rHt, null, rt(Xzt, null), rt(OUt, Object.assign({}, e), rt(Qqt, null)));
82663
82663
  }
82664
82664
  function Qqt() {
82665
- var e = pp(), t = e[0], n = c2e(), r = Ie(!t), o = r[0], i = r[1], a = VUt();
82665
+ var e = pp(), t = e[0], n = c2e(), r = _e(!t), o = r[0], i = r[1], a = VUt();
82666
82666
  return Be(function() {
82667
82667
  t && !n || o || i(!0);
82668
82668
  }, [o, n, t]), a ? rt(zHt, null, rt(sqt, null), rt(eVt, {
@@ -82705,7 +82705,7 @@ function rVt(e) {
82705
82705
  }
82706
82706
  dn(
82707
82707
  ({ handleEmojiClick: e, handleAvatarInput: t, onRemove: n, className: r, ...o }, i) => {
82708
- const [a, s] = Ie("emojiPicker"), l = Ue(null), u = () => {
82708
+ const [a, s] = _e("emojiPicker"), l = Ue(null), u = () => {
82709
82709
  l.current && l.current.click();
82710
82710
  };
82711
82711
  return /* @__PURE__ */ A.jsx("div", { ref: i, className: r, ...o, children: /* @__PURE__ */ A.jsxs(
@@ -85103,7 +85103,7 @@ function v$t(e) {
85103
85103
  }) });
85104
85104
  }
85105
85105
  function x$t(e, t) {
85106
- var n = Ie(e), r = n[0], o = n[1], i = t === void 0 ? r : t;
85106
+ var n = _e(e), r = n[0], o = n[1], i = t === void 0 ? r : t;
85107
85107
  return [i, o];
85108
85108
  }
85109
85109
  function w$t(e) {
@@ -85505,7 +85505,7 @@ function Mge(e, t) {
85505
85505
  }
85506
85506
  var Ege = Mn(void 0);
85507
85507
  function iGt(e) {
85508
- var t = w5(), n = Dge(), r = Ie(), o = r[0], i = r[1], a = Ie(), s = a[0], l = a[1], u = rGt(t.displayMonths, n), c = o ?? (s && t.isDateDisplayed(s)) ? s : u, d = function() {
85508
+ var t = w5(), n = Dge(), r = _e(), o = r[0], i = r[1], a = _e(), s = a[0], l = a[1], u = rGt(t.displayMonths, n), c = o ?? (s && t.isDateDisplayed(s)) ? s : u, d = function() {
85509
85509
  l(o), i(void 0);
85510
85510
  }, f = function(m) {
85511
85511
  i(m);
@@ -85797,7 +85797,7 @@ function wY() {
85797
85797
  return "react-day-picker-".concat(++kGt);
85798
85798
  }
85799
85799
  function FGt(e) {
85800
- var t, n = e ?? (aA ? wY() : null), r = Ie(n), o = r[0], i = r[1];
85800
+ var t, n = e ?? (aA ? wY() : null), r = _e(n), o = r[0], i = r[1];
85801
85801
  return wGt(function() {
85802
85802
  o === null && i(wY());
85803
85803
  }, []), Be(function() {
@@ -85815,7 +85815,7 @@ function DGt(e) {
85815
85815
  return A.jsx("div", { className: n.months, style: r.months, children: e.children });
85816
85816
  }
85817
85817
  function MGt(e) {
85818
- var t, n, r = e.initialProps, o = fr(), i = GP(), a = w5(), s = Ie(!1), l = s[0], u = s[1];
85818
+ var t, n, r = e.initialProps, o = fr(), i = GP(), a = w5(), s = _e(!1), l = s[0], u = s[1];
85819
85819
  Be(function() {
85820
85820
  o.initialFocus && i.focusTarget && (l || (i.focus(i.focusTarget), u(!0)));
85821
85821
  }, [
@@ -86202,13 +86202,13 @@ _ge.displayName = "TimePicker";
86202
86202
  const UGt = ({
86203
86203
  delay: e = 2e3
86204
86204
  }) => {
86205
- const [t, n] = Ie(!1), [r, o] = Ie(!1), i = Ue(null), a = _e(() => {
86205
+ const [t, n] = _e(!1), [r, o] = _e(!1), i = Ue(null), a = Ie(() => {
86206
86206
  i.current && clearTimeout(i.current), i.current = setTimeout(() => {
86207
86207
  n(!0), o(!0);
86208
86208
  }, e);
86209
- }, [e]), s = _e(() => {
86209
+ }, [e]), s = Ie(() => {
86210
86210
  r || n(!1), i.current && clearTimeout(i.current), o(!1);
86211
- }, [r]), l = _e(() => n(!0), []), u = _e(() => n(!1), []), c = _e(() => a(), [a]), d = _e(() => s(), [s]);
86211
+ }, [r]), l = Ie(() => n(!0), []), u = Ie(() => n(!1), []), c = Ie(() => a(), [a]), d = Ie(() => s(), [s]);
86212
86212
  return {
86213
86213
  onMouseEnter: l,
86214
86214
  onMouseLeave: u,
@@ -86219,7 +86219,7 @@ const UGt = ({
86219
86219
  };
86220
86220
  var ut = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e[e.LINE_HEIGHT = 13] = "LINE_HEIGHT", e))(ut || {});
86221
86221
  function HGt(e) {
86222
- const [t, n] = Ie(e), r = Ue(null), o = (i) => {
86222
+ const [t, n] = _e(e), r = Ue(null), o = (i) => {
86223
86223
  r && r.current && !r.current.contains(i.target) && n(
86224
86224
  0
86225
86225
  /* NONE */
@@ -87672,7 +87672,7 @@ function vw(e, t, n) {
87672
87672
  }
87673
87673
  vw.globalOptions = void 0;
87674
87674
  function tz(e = {}, t = []) {
87675
- const n = Ue(e), r = Ue(t), [o, i] = Ie(), [a, s] = Ie(), l = _e(() => {
87675
+ const n = Ue(e), r = Ue(t), [o, i] = _e(), [a, s] = _e(), l = Ie(() => {
87676
87676
  o && o.reInit(n.current, r.current);
87677
87677
  }, [o]);
87678
87678
  return Be(() => {
@@ -87712,13 +87712,13 @@ const Hge = dn(
87712
87712
  axis: e === "horizontal" ? "x" : "y"
87713
87713
  },
87714
87714
  r
87715
- ), [c, d] = Ie(!1), [f, h] = Ie(!1), p = _e((b) => {
87715
+ ), [c, d] = _e(!1), [f, h] = _e(!1), p = Ie((b) => {
87716
87716
  b && (d(b.canScrollPrev()), h(b.canScrollNext()));
87717
- }, []), g = _e(() => {
87717
+ }, []), g = Ie(() => {
87718
87718
  u == null || u.scrollPrev();
87719
- }, [u]), m = _e(() => {
87719
+ }, [u]), m = Ie(() => {
87720
87720
  u == null || u.scrollNext();
87721
- }, [u]), y = _e(
87721
+ }, [u]), y = Ie(
87722
87722
  (b) => {
87723
87723
  b.key === "ArrowLeft" ? (b.preventDefault(), g()) : b.key === "ArrowRight" && (b.preventDefault(), m());
87724
87724
  },
@@ -87798,14 +87798,14 @@ const e_ = dn(
87798
87798
  );
87799
87799
  e_.displayName = "CarouselItem";
87800
87800
  const Vge = dn(({ index: e, className: t, ...n }, r) => {
87801
- const { api: o } = F5(), [i, a] = Ie(0), [, s] = Ie([]), l = _e(
87801
+ const { api: o } = F5(), [i, a] = _e(0), [, s] = _e([]), l = Ie(
87802
87802
  (f) => {
87803
87803
  o && o.scrollTo(f);
87804
87804
  },
87805
87805
  [o]
87806
- ), u = _e((f) => {
87806
+ ), u = Ie((f) => {
87807
87807
  f && s(f.scrollSnapList());
87808
- }, []), c = _e((f) => {
87808
+ }, []), c = Ie((f) => {
87809
87809
  f && a(f.selectedScrollSnap());
87810
87810
  }, []);
87811
87811
  Be(() => {
@@ -87887,7 +87887,7 @@ function Br(e, {
87887
87887
  defaultValue: t = !1,
87888
87888
  initializeWithValue: n = !0
87889
87889
  } = {}) {
87890
- const r = (s) => UZt ? t : window.matchMedia(s).matches, [o, i] = Ie(() => n ? r(e) : t);
87890
+ const r = (s) => UZt ? t : window.matchMedia(s).matches, [o, i] = _e(() => n ? r(e) : t);
87891
87891
  function a() {
87892
87892
  i(r(e));
87893
87893
  }
@@ -94001,7 +94001,7 @@ async function SC(e, t) {
94001
94001
  });
94002
94002
  return oe === "0x" ? { data: void 0 } : { data: oe };
94003
94003
  } catch (I) {
94004
- const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-CQGWcI_f.mjs");
94004
+ const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-QSgQgGGV.mjs");
94005
94005
  if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
94006
94006
  return { data: await U(e, { data: B, to: x }) };
94007
94007
  throw _ && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new dXt({ factory: f }) : w3e(I, {
@@ -105502,12 +105502,12 @@ const w4e = Mn(void 0), Zon = ({
105502
105502
  onComment: F,
105503
105503
  setCommentDrawerOpen: C
105504
105504
  }) => {
105505
- const [D, T] = Ie(!0), [R, _] = Ie(""), [S, L] = Ie(""), [E, j] = Ie(null), N = Ue(null), I = Ue(null), [B, U] = Ie(""), [$, q] = Ie(!1), [z, Y] = Ie(!1), se = Ue(null), oe = Ue(null), X = Ue(null), ie = t.isActive("comment"), ne = t.getAttributes("comment").resolved, [te, P] = Ie({
105505
+ const [D, T] = _e(!0), [R, _] = _e(""), [S, L] = _e(""), [E, j] = _e(null), N = Ue(null), I = Ue(null), [B, U] = _e(""), [$, q] = _e(!1), [z, Y] = _e(!1), se = Ue(null), oe = Ue(null), X = Ue(null), ie = t.isActive("comment"), ne = t.getAttributes("comment").resolved, [te, P] = _e({
105506
105506
  inlineCommentText: "",
105507
105507
  handleClick: !1
105508
- }), ee = localStorage.getItem("ensCache"), [re, fe] = Ie(
105508
+ }), ee = localStorage.getItem("ensCache"), [re, fe] = _e(
105509
105509
  ee ? JSON.parse(ee) : {}
105510
- ), [O, ue] = Ie([]), ce = _e(
105510
+ ), [O, ue] = _e([]), ce = Ie(
105511
105511
  async (Oe, Xe) => {
105512
105512
  if (O.includes(Oe)) {
105513
105513
  Xe({
@@ -105565,10 +105565,10 @@ const w4e = Mn(void 0), Zon = ({
105565
105565
  C5([se, oe, X], () => {
105566
105566
  $ && (Y(!0), q(!1));
105567
105567
  });
105568
- const de = _e(() => {
105568
+ const de = Ie(() => {
105569
105569
  const { state: Oe } = t, { from: Xe, to: Ge } = Oe.selection, Ve = Oe.doc.textBetween(Xe, Ge, " ");
105570
105570
  ie ? G && U(G.selectedContent || "") : U(Ve), q(!0), w == null || w();
105571
- }, [t, ie, G, w]), ke = _e(
105571
+ }, [t, ie, G, w]), ke = Ie(
105572
105572
  (Oe, Xe = "", Ge) => ({
105573
105573
  id: `comment-${r0()}`,
105574
105574
  tabId: l,
@@ -105580,7 +105580,7 @@ const w4e = Mn(void 0), Zon = ({
105580
105580
  createdAt: /* @__PURE__ */ new Date()
105581
105581
  }),
105582
105582
  [l]
105583
- ), Me = _e(
105583
+ ), Me = Ie(
105584
105584
  (Oe, Xe) => {
105585
105585
  if (!t) return;
105586
105586
  const { state: Ge } = t, { from: Ve, to: Ke } = Ge.selection, yt = Ge.doc.textBetween(Ve, Ke, " "), lt = ke(
@@ -105598,22 +105598,22 @@ const w4e = Mn(void 0), Zon = ({
105598
105598
  u,
105599
105599
  c
105600
105600
  ]
105601
- ), xe = _e(
105601
+ ), xe = Ie(
105602
105602
  (Oe) => {
105603
105603
  t.commands.resolveComment(Oe), h == null || h(Oe);
105604
105604
  },
105605
105605
  [t, h]
105606
- ), pe = _e(
105606
+ ), pe = Ie(
105607
105607
  (Oe) => {
105608
105608
  t.commands.unresolveComment(Oe), p == null || p(Oe);
105609
105609
  },
105610
105610
  [t, p]
105611
- ), ge = _e(
105611
+ ), ge = Ie(
105612
105612
  (Oe) => {
105613
105613
  t.commands.unsetComment(Oe), g == null || g(Oe);
105614
105614
  },
105615
105615
  [t, g]
105616
- ), be = _e(
105616
+ ), be = Ie(
105617
105617
  (Oe, Xe, Ge) => {
105618
105618
  if (!Xe.trim()) return;
105619
105619
  const Ve = {
@@ -105628,7 +105628,7 @@ const w4e = Mn(void 0), Zon = ({
105628
105628
  Ge == null || Ge(Oe, Ve);
105629
105629
  },
105630
105630
  [l, o]
105631
- ), H = _e(
105631
+ ), H = Ie(
105632
105632
  (Oe) => {
105633
105633
  var Ge, Ve;
105634
105634
  if (!t || !((Ge = t.view) != null && Ge.dom) || !J.length) return;
@@ -105663,19 +105663,19 @@ const w4e = Mn(void 0), Zon = ({
105663
105663
  }
105664
105664
  },
105665
105665
  [t, J, s]
105666
- ), K = _e(
105666
+ ), K = Ie(
105667
105667
  (Oe) => {
105668
105668
  const Xe = Oe.target.value;
105669
105669
  _(Xe), Xe || (Oe.target.style.height = "40px");
105670
105670
  },
105671
105671
  []
105672
- ), le = _e(
105672
+ ), le = Ie(
105673
105673
  (Oe) => {
105674
105674
  const Xe = Oe.target.value;
105675
105675
  L(Xe), Xe || (Oe.target.style.height = "40px");
105676
105676
  },
105677
105677
  []
105678
- ), me = _e(() => {
105678
+ ), me = Ie(() => {
105679
105679
  if (!S.trim() || !o) return;
105680
105680
  const Oe = {
105681
105681
  id: `comment-${r0()}`,
@@ -105701,21 +105701,21 @@ const w4e = Mn(void 0), Zon = ({
105701
105701
  s,
105702
105702
  F,
105703
105703
  N
105704
- ]), we = _e(
105704
+ ]), we = Ie(
105705
105705
  (Oe) => {
105706
105706
  Oe.key === "Enter" && !Oe.shiftKey && (Oe.preventDefault(), me());
105707
105707
  },
105708
105708
  [me]
105709
- ), ve = _e(() => {
105709
+ ), ve = Ie(() => {
105710
105710
  !a || !R.trim() || (be(a, R, d), _(""));
105711
- }, [a, R, be, d]), Se = _e(
105711
+ }, [a, R, be, d]), Se = Ie(
105712
105712
  (Oe) => {
105713
105713
  Oe.key === "Enter" && !Oe.shiftKey && (Oe.preventDefault(), ve());
105714
105714
  },
105715
105715
  [ve]
105716
- ), Le = _e(() => {
105716
+ ), Le = Ie(() => {
105717
105717
  T((Oe) => !Oe);
105718
- }, []), ye = _e(
105718
+ }, []), ye = Ie(
105719
105719
  (Oe, Xe) => {
105720
105720
  Oe.currentTarget.style.height = "auto";
105721
105721
  const Ge = Math.min(
@@ -105734,7 +105734,7 @@ const w4e = Mn(void 0), Zon = ({
105734
105734
  ), Pe = ot(
105735
105735
  () => je.findIndex((Oe) => Oe.id === a),
105736
105736
  [je, a]
105737
- ), We = _e(() => {
105737
+ ), We = Ie(() => {
105738
105738
  var Oe, Xe;
105739
105739
  if ((Oe = t.view) != null && Oe.dom && Pe > 0) {
105740
105740
  const Ge = je[Pe - 1], Ve = t.view.dom.querySelector(
@@ -105745,7 +105745,7 @@ const w4e = Mn(void 0), Zon = ({
105745
105745
  t.commands.setTextSelection({ from: Ke, to: yt }), H(Ge.id || "");
105746
105746
  }
105747
105747
  }
105748
- }, [Pe, je, t, H]), Ye = _e(() => {
105748
+ }, [Pe, je, t, H]), Ye = Ie(() => {
105749
105749
  var Oe, Xe;
105750
105750
  if ((Oe = t.view) != null && Oe.dom && Pe < je.length - 1) {
105751
105751
  const Ge = je[Pe + 1], Ve = t.view.dom.querySelector(
@@ -113307,7 +113307,7 @@ const c9 = (e) => {
113307
113307
  ref: f,
113308
113308
  toolVisibility: h,
113309
113309
  setToolVisibility: p
113310
- } = HGt(ut.NONE), [g, m] = Ie(!1), [y, b] = Ie(!1), [v, x] = Ie(
113310
+ } = HGt(ut.NONE), [g, m] = _e(!1), [y, b] = _e(!1), [v, x] = _e(
113311
113311
  Ocn
113312
113312
  ), { buttonRef: w } = _1();
113313
113313
  Be(() => {
@@ -114023,7 +114023,7 @@ const c9 = (e) => {
114023
114023
  setIsLinkPopupOpen: o,
114024
114024
  onError: i
114025
114025
  }) => {
114026
- const [a, s] = Ie(t.getAttributes("link").href), l = _e(() => {
114026
+ const [a, s] = _e(t.getAttributes("link").href), l = Ie(() => {
114027
114027
  if (a === "" || a === void 0) {
114028
114028
  t.chain().focus().extendMarkRange("link").unsetLink().run();
114029
114029
  return;
@@ -115123,7 +115123,7 @@ const c9 = (e) => {
115123
115123
  stroke: "currentColor"
115124
115124
  }
115125
115125
  ) }), Lbe = ({ username: e, createdAt: t }) => {
115126
- const { getEnsStatus: n, ensCache: r } = _1(), [o, i] = Ie({
115126
+ const { getEnsStatus: n, ensCache: r } = _1(), [o, i] = _e({
115127
115127
  name: e,
115128
115128
  isEns: !1
115129
115129
  });
@@ -115183,7 +115183,7 @@ const c9 = (e) => {
115183
115183
  version: p,
115184
115184
  emptyComment: g
115185
115185
  }) => {
115186
- const m = Ue(null), [y, b] = Ie(!1), [v, x] = Ie(!1), w = Ue(null), { setOpenReplyId: F } = _1(), { getEnsStatus: C, ensCache: D } = _1(), [T, R] = Ie({
115186
+ const m = Ue(null), [y, b] = _e(!1), [v, x] = _e(!1), w = Ue(null), { setOpenReplyId: F } = _1(), { getEnsStatus: C, ensCache: D } = _1(), [T, R] = _e({
115187
115187
  name: e,
115188
115188
  isEns: !1
115189
115189
  });
@@ -115213,7 +115213,7 @@ const c9 = (e) => {
115213
115213
  const N = m.current.closest('[role="dialog"]');
115214
115214
  N && N.remove();
115215
115215
  }
115216
- }, E = _e(() => {
115216
+ }, E = Ie(() => {
115217
115217
  if (!(o != null && o.length)) return null;
115218
115218
  let j = o.sort(
115219
115219
  (N, I) => new Date(N.createdAt || /* @__PURE__ */ new Date()).getTime() - new Date(I.createdAt || /* @__PURE__ */ new Date()).getTime()
@@ -115449,7 +115449,7 @@ const c9 = (e) => {
115449
115449
  isDisabled: o,
115450
115450
  isCommentOwner: i
115451
115451
  }) => {
115452
- const [a, s] = Ie(t), [l, u] = Ie(""), [c, d] = Ie(!0), [f, h] = Ie(!!e), p = Ue(null), [g, m] = Ie(!1), {
115452
+ const [a, s] = _e(t), [l, u] = _e(""), [c, d] = _e(!0), [f, h] = _e(!!e), p = Ue(null), [g, m] = _e(!1), {
115453
115453
  inlineCommentData: y,
115454
115454
  setInlineCommentData: b,
115455
115455
  addComment: v,
@@ -116073,12 +116073,12 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
116073
116073
  });
116074
116074
  }), !h;
116075
116075
  }, Ibe = (e) => {
116076
- const t = _e(
116076
+ const t = Ie(
116077
116077
  (o) => {
116078
116078
  e && e.chain().focus().setFontSize(o).run();
116079
116079
  },
116080
116080
  [e]
116081
- ), n = _e(
116081
+ ), n = Ie(
116082
116082
  (o) => {
116083
116083
  if (!e) return;
116084
116084
  const { from: i, to: a } = e.state.selection;
@@ -116155,9 +116155,9 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
116155
116155
  setInitialReminderTitle: o,
116156
116156
  type: i
116157
116157
  }, a) => {
116158
- const [s, l] = Ie(r || ""), [u, c] = Ie(
116158
+ const [s, l] = _e(r || ""), [u, c] = _e(
116159
116159
  new Date(Date.now() + 6 * 60 * 1e3)
116160
- ), [d, f] = Ie(""), h = Br("(max-width: 768px)"), [p, g] = Ie(!0), [m, y] = Ie(e), b = () => {
116160
+ ), [d, f] = _e(""), h = Br("(max-width: 768px)"), [p, g] = _e(!0), [m, y] = _e(e), b = () => {
116161
116161
  y(!1), t();
116162
116162
  };
116163
116163
  Be(() => {
@@ -116356,7 +116356,7 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
116356
116356
  onReminderCreate: t,
116357
116357
  onError: n
116358
116358
  }) => {
116359
- const [r, o] = Ie(""), i = Ue(null);
116359
+ const [r, o] = _e(""), i = Ue(null);
116360
116360
  return {
116361
116361
  reminderRef: i,
116362
116362
  handleReminderOnClose: () => {
@@ -116397,7 +116397,7 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
116397
116397
  isCollabDocOwner: h,
116398
116398
  enableCollaboration: p,
116399
116399
  fetchV1ImageFn: g
116400
- } = e, [m, y] = Ie(!1), b = Ibe(t), v = t ? b.currentSize : void 0, x = t ? b.currentLineHeight : void 0, w = t ? b.onSetFontSize : () => {
116400
+ } = e, [m, y] = _e(!1), b = Ibe(t), v = t ? b.currentSize : void 0, x = t ? b.currentLineHeight : void 0, w = t ? b.onSetFontSize : () => {
116401
116401
  }, F = t ? b.onSetLineHeight : () => {
116402
116402
  }, { isNativeMobile: C } = ed(), { toolRef: D, setToolVisibility: T, toolVisibility: R } = kU({
116403
116403
  editor: t ?? null,
@@ -117124,16 +117124,16 @@ a1n.displayName = "Toolbar.Divider";
117124
117124
  const s1n = {
117125
117125
  Wrapper: Ube
117126
117126
  }, l1n = ({ editor: e, appendTo: t }) => {
117127
- const n = _e(() => i1n(e, "columns"), [e]), r = _e(() => {
117127
+ const n = Ie(() => i1n(e, "columns"), [e]), r = Ie(() => {
117128
117128
  const l = !e.isEditable;
117129
117129
  return e.isActive("columns") && !l;
117130
- }, [e]), o = _e(() => {
117130
+ }, [e]), o = Ie(() => {
117131
117131
  e.chain().focus().setLayout(Tf.AlignLeft).run();
117132
- }, [e]), i = _e(() => {
117132
+ }, [e]), i = Ie(() => {
117133
117133
  e.chain().focus().setLayout(Tf.AlignRight).run();
117134
- }, [e]), a = _e(() => {
117134
+ }, [e]), a = Ie(() => {
117135
117135
  e.chain().focus().setLayout(Tf.AlignCenter).run();
117136
- }, [e]), s = _e(() => {
117136
+ }, [e]), s = Ie(() => {
117137
117137
  e.chain().focus().deleteNode("columns").run();
117138
117138
  }, [e]);
117139
117139
  return /* @__PURE__ */ M.jsx(
@@ -117283,7 +117283,7 @@ function c1n({ children: e, isPresent: t }) {
117283
117283
  }, [t]), M.jsx(u1n, { isPresent: t, childRef: r, sizeRef: o, children: W.cloneElement(e, { ref: r }) });
117284
117284
  }
117285
117285
  const d1n = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: a }) => {
117286
- const s = EU(f1n), l = ym(), u = _e((d) => {
117286
+ const s = EU(f1n), l = ym(), u = Ie((d) => {
117287
117287
  s.set(d, !0);
117288
117288
  for (const f of s.values())
117289
117289
  if (!f)
@@ -117322,7 +117322,7 @@ function qbe(e = !0) {
117322
117322
  Be(() => {
117323
117323
  e && o(i);
117324
117324
  }, [e]);
117325
- const a = _e(() => e && r && r(i), [i, r, e]);
117325
+ const a = Ie(() => e && r && r(i), [i, r, e]);
117326
117326
  return !n && r ? [!1, a] : [!0];
117327
117327
  }
117328
117328
  const Mx = (e) => e.key || "";
@@ -117333,7 +117333,7 @@ function VJ(e) {
117333
117333
  }), t;
117334
117334
  }
117335
117335
  const SU = typeof window < "u", Vbe = SU ? Gi : Be, Ym = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
117336
- const [s, l] = qbe(a), u = ot(() => VJ(e), [e]), c = a && !s ? [] : u.map(Mx), d = Ue(!0), f = Ue(u), h = EU(() => /* @__PURE__ */ new Map()), [p, g] = Ie(u), [m, y] = Ie(u);
117336
+ const [s, l] = qbe(a), u = ot(() => VJ(e), [e]), c = a && !s ? [] : u.map(Mx), d = Ue(!0), f = Ue(u), h = EU(() => /* @__PURE__ */ new Map()), [p, g] = _e(u), [m, y] = _e(u);
117337
117337
  Vbe(() => {
117338
117338
  d.current = !1, f.current = u;
117339
117339
  for (let x = 0; x < m.length; x++) {
@@ -117599,7 +117599,7 @@ function N2(e) {
117599
117599
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
117600
117600
  }
117601
117601
  function C1n(e, t, n) {
117602
- return _e(
117602
+ return Ie(
117603
117603
  (r) => {
117604
117604
  r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : N2(n) && (n.current = r));
117605
117605
  },
@@ -122083,7 +122083,7 @@ const Nhn = (e, t) => IU(e) ? new Lhn(t) : new jhn(t, {
122083
122083
  initialFormat: i,
122084
122084
  initialTab: a
122085
122085
  }) => {
122086
- const [s, l] = Ie(i || "pdf"), [u, c] = Ie(a || "all");
122086
+ const [s, l] = _e(i || "pdf"), [u, c] = _e(a || "all");
122087
122087
  Be(() => {
122088
122088
  e && (i ? l(i) : r.length > 0 && l(r[0].id), a ? c(a) : o.length > 0 && c(o[0].id));
122089
122089
  }, [e, i, a, r, o]);
@@ -122424,7 +122424,7 @@ const rpn = ({
122424
122424
  ydoc: n,
122425
122425
  exportOptions: r
122426
122426
  }) => {
122427
- const o = _e((g) => g.includes("(.pdf)") ? "pdf" : g.includes("(.md)") ? "md" : g.includes("(.html)") ? "html" : g.includes("(.txt)") ? "txt" : "", []), i = ot(
122427
+ const o = Ie((g) => g.includes("(.pdf)") ? "pdf" : g.includes("(.md)") ? "md" : g.includes("(.html)") ? "html" : g.includes("(.txt)") ? "txt" : "", []), i = ot(
122428
122428
  () => r.filter((g) => g !== null).reduce((g, m) => {
122429
122429
  const y = o(m.title);
122430
122430
  return y && (g[y] = m), g;
@@ -122436,26 +122436,26 @@ const rpn = ({
122436
122436
  label: m.title
122437
122437
  })),
122438
122438
  [i]
122439
- ), s = _e(() => {
122439
+ ), s = Ie(() => {
122440
122440
  if (!e) return "Untitled";
122441
122441
  const g = e.getJSON();
122442
122442
  return c9(
122443
122443
  g
122444
122444
  ) || "Untitled";
122445
- }, [e]), l = _e(
122445
+ }, [e]), l = Ie(
122446
122446
  async (g) => {
122447
122447
  const m = i[g];
122448
122448
  !m || m.disabled || m.onClick();
122449
122449
  },
122450
122450
  [i]
122451
- ), u = _e(
122451
+ ), u = Ie(
122452
122452
  (g) => {
122453
122453
  if (!e || !n) return null;
122454
122454
  const m = n.getXmlFragment(g), y = npn(m);
122455
122455
  return $5(e, y);
122456
122456
  },
122457
122457
  [e, n]
122458
- ), c = _e(async () => {
122458
+ ), c = Ie(async () => {
122459
122459
  if (!e || !n || t.length === 0) return;
122460
122460
  const g = [];
122461
122461
  try {
@@ -122473,7 +122473,7 @@ const rpn = ({
122473
122473
  } finally {
122474
122474
  g.forEach((m) => m.destroy());
122475
122475
  }
122476
- }, [u, e, t, n]), d = _e(async () => {
122476
+ }, [u, e, t, n]), d = Ie(async () => {
122477
122477
  if (!e || !n || t.length === 0) return;
122478
122478
  const g = s(), m = [];
122479
122479
  try {
@@ -122499,7 +122499,7 @@ const rpn = ({
122499
122499
  } finally {
122500
122500
  m.forEach((y) => y.destroy());
122501
122501
  }
122502
- }, [u, e, s, t, n]), f = _e(async () => {
122502
+ }, [u, e, s, t, n]), f = Ie(async () => {
122503
122503
  if (!e || !n || t.length === 0) return;
122504
122504
  const g = s(), m = [];
122505
122505
  try {
@@ -122519,7 +122519,7 @@ const rpn = ({
122519
122519
  } finally {
122520
122520
  m.forEach((y) => y.destroy());
122521
122521
  }
122522
- }, [u, e, s, t, n]), h = _e(async () => {
122522
+ }, [u, e, s, t, n]), h = Ie(async () => {
122523
122523
  if (!e || !n || t.length === 0) return;
122524
122524
  const g = s(), m = [];
122525
122525
  try {
@@ -122544,7 +122544,7 @@ const rpn = ({
122544
122544
  } finally {
122545
122545
  m.forEach((y) => y.destroy());
122546
122546
  }
122547
- }, [u, e, s, t, n]), p = _e(
122547
+ }, [u, e, s, t, n]), p = Ie(
122548
122548
  ({ format: g, tab: m }) => {
122549
122549
  (async () => {
122550
122550
  if (!e) return;
@@ -122594,9 +122594,9 @@ const rpn = ({
122594
122594
  tabs: a,
122595
122595
  ydoc: s
122596
122596
  }) => {
122597
- const [l, u] = Ie(!1), [c, d] = Ie(!1);
122597
+ const [l, u] = _e(!1), [c, d] = _e(!1);
122598
122598
  let f, h;
122599
- const [p, g] = Ie(!1), [m, y] = Ie("pdf"), { getOptionFormat: b, formatSelectOptions: v, handleExport: x } = rpn({
122599
+ const [p, g] = _e(!1), [m, y] = _e("pdf"), { getOptionFormat: b, formatSelectOptions: v, handleExport: x } = rpn({
122600
122600
  editor: i,
122601
122601
  tabs: a,
122602
122602
  ydoc: s,
@@ -122848,7 +122848,7 @@ const rpn = ({
122848
122848
  { title: "100%", value: "1" },
122849
122849
  { title: "150%", value: "1.5" },
122850
122850
  { title: "200%", value: "2" }
122851
- ], [z, Y] = Ie(!1), [se, oe] = Ie("Default"), X = kbe.find((te) => te.value === se);
122851
+ ], [z, Y] = _e(!1), [se, oe] = _e("Default"), X = kbe.find((te) => te.value === se);
122852
122852
  Be(() => {
122853
122853
  if (!e) return;
122854
122854
  const te = () => oe(ipn(e));
@@ -128492,7 +128492,7 @@ const Ign = n2n.extend({
128492
128492
  height: s,
128493
128493
  fetchV1ImageFn: l
128494
128494
  }, u) => {
128495
- const [c, d] = Ie("");
128495
+ const [c, d] = _e("");
128496
128496
  return Be(() => {
128497
128497
  const f = e && t && n && r;
128498
128498
  let h = !0, p = null;
@@ -128543,7 +128543,7 @@ const Ign = n2n.extend({
128543
128543
  mimeType: u,
128544
128544
  authTag: c
128545
128545
  }, d) => {
128546
- const [f, h] = Ie("");
128546
+ const [f, h] = _e("");
128547
128547
  return Be(() => {
128548
128548
  const p = e && t && n && c;
128549
128549
  let g = !0, m = null;
@@ -128578,7 +128578,7 @@ const Ign = n2n.extend({
128578
128578
  );
128579
128579
  let qp;
128580
128580
  const ave = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
128581
- const { isPreviewMode: i } = Z5(), [a, s] = Ie(), [l, u] = Ie(0), [c, d] = Ie(0), [f, h] = Ie({}), p = Ue(null), [g, m] = Ie(!1), [y, b] = Ie(!1), [v, x] = Ie(null), w = Ue(null), F = () => {
128581
+ const { isPreviewMode: i } = Z5(), [a, s] = _e(), [l, u] = _e(0), [c, d] = _e(0), [f, h] = _e({}), p = Ue(null), [g, m] = _e(!1), [y, b] = _e(!1), [v, x] = _e(null), w = Ue(null), F = () => {
128582
128582
  const z = {};
128583
128583
  Tee.forEach(({ tooltip: Y, isActive: se }) => {
128584
128584
  z[Y] = !!(se != null && se(n.attrs));
@@ -128650,7 +128650,7 @@ const ave = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
128650
128650
  setTimeout(() => {
128651
128651
  L(se, Math.abs(Y)), qp = z;
128652
128652
  });
128653
- }, [j, N] = Ie(), [I, B] = Ie();
128653
+ }, [j, N] = _e(), [I, B] = _e();
128654
128654
  Be(() => {
128655
128655
  s(n.attrs["media-type"]), F(), N(n.attrs.dataFloat), B(n.attrs.dataAlign);
128656
128656
  }, [n.attrs]);
@@ -129368,7 +129368,7 @@ const Lmn = (e) => ({
129368
129368
  watchOnTwitter: $mn,
129369
129369
  viewReplies: Gmn
129370
129370
  }, Zmn = ({ tweet: e, media: t }) => {
129371
- const [n, r] = Ie(!0), [o, i] = Ie(!1), [a, s] = Ie(!1), l = Tmn(t);
129371
+ const [n, r] = _e(!0), [o, i] = _e(!1), [a, s] = _e(!1), l = Tmn(t);
129372
129372
  let u = 0;
129373
129373
  return /* @__PURE__ */ M.jsxs(M.Fragment, {
129374
129374
  children: [
@@ -129562,7 +129562,7 @@ const Lmn = (e) => ({
129562
129562
  replyText: b3n,
129563
129563
  copyText: v3n
129564
129564
  }, x3n = ({ tweet: e }) => {
129565
- const [t, n] = Ie(!1), r = () => {
129565
+ const [t, n] = _e(!1), r = () => {
129566
129566
  navigator.clipboard.writeText(e.url), n(!0);
129567
129567
  };
129568
129568
  return Be(() => {
@@ -130231,7 +130231,7 @@ const US = Ne.use || // This extra generic is to avoid TypeScript mixing up the
130231
130231
  }, [
130232
130232
  r,
130233
130233
  y
130234
- ]), B = W6.useSyncExternalStore(_e(
130234
+ ]), B = W6.useSyncExternalStore(Ie(
130235
130235
  (fe) => S(y, (O, ue) => {
130236
130236
  N(ue, O) || fe();
130237
130237
  }),
@@ -130240,7 +130240,7 @@ const US = Ne.use || // This extra generic is to avoid TypeScript mixing up the
130240
130240
  r,
130241
130241
  y
130242
130242
  ]
130243
- ), I[0], I[1]), U = !v.current, $ = h[y] && h[y].length > 0, q = B.data, z = jn(q) ? j && yve(j) ? US(j) : j : q, Y = B.error, se = Ue(z), oe = f ? jn(q) ? jn(se.current) ? z : se.current : q : z, X = $ && !jn(Y) ? !1 : U && !jn(s) ? s : D().isPaused() ? !1 : i ? jn(z) ? !1 : l : jn(z) || l, ie = !!(y && t && U && X), ne = jn(B.isValidating) ? ie : B.isValidating, te = jn(B.isLoading) ? ie : B.isLoading, P = _e(
130243
+ ), I[0], I[1]), U = !v.current, $ = h[y] && h[y].length > 0, q = B.data, z = jn(q) ? j && yve(j) ? US(j) : j : q, Y = B.error, se = Ue(z), oe = f ? jn(q) ? jn(se.current) ? z : se.current : q : z, X = $ && !jn(Y) ? !1 : U && !jn(s) ? s : D().isPaused() ? !1 : i ? jn(z) ? !1 : l : jn(z) || l, ie = !!(y && t && U && X), ne = jn(B.isValidating) ? ie : B.isValidating, te = jn(B.isLoading) ? ie : B.isLoading, P = Ie(
130244
130244
  async (fe) => {
130245
130245
  const O = F.current;
130246
130246
  if (!y || !O || x.current || D().isPaused())
@@ -130303,7 +130303,7 @@ const US = Ne.use || // This extra generic is to avoid TypeScript mixing up the
130303
130303
  y,
130304
130304
  r
130305
130305
  ]
130306
- ), ee = _e(
130306
+ ), ee = Ie(
130307
130307
  // Use callback to make sure `keyRef.current` returns latest result every time
130308
130308
  (...fe) => vve(r, w.current, ...fe),
130309
130309
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -130425,7 +130425,7 @@ const Eyn = (e, t, n) => {
130425
130425
  components: r
130426
130426
  });
130427
130427
  }, Syn = ({ node: e, editor: t }) => {
130428
- const [n, r] = Ie(null), [o, i] = Ie(!1);
130428
+ const [n, r] = _e(null), [o, i] = _e(!1);
130429
130429
  Be(() => {
130430
130430
  t == null || t.chain().focus(), (async () => {
130431
130431
  try {
@@ -130532,7 +130532,7 @@ const jyn = ({
130532
130532
  n.off("update", b), l.current && (cancelAnimationFrame(l.current), l.current = null);
130533
130533
  };
130534
130534
  }, [n]);
130535
- const u = _e(() => {
130535
+ const u = Ie(() => {
130536
130536
  const { doc: b } = n.state, v = b.content.content.filter(
130537
130537
  (D) => {
130538
130538
  var T, R, _;
@@ -130551,7 +130551,7 @@ const jyn = ({
130551
130551
  headingCount: v
130552
130552
  };
130553
130553
  return o.current = C, i.current = x, Wp = C, qee = w, C;
130554
- }, [n]), c = _e((b) => {
130554
+ }, [n]), c = Ie((b) => {
130555
130555
  var C;
130556
130556
  const { doc: v } = b.state, x = /* @__PURE__ */ new Map(), w = [];
130557
130557
  let F = 0;
@@ -130646,7 +130646,7 @@ const jyn = ({
130646
130646
  u,
130647
130647
  e.content,
130648
130648
  a
130649
- ]), m = _e(() => {
130649
+ ]), m = Ie(() => {
130650
130650
  var D;
130651
130651
  if (!h) return;
130652
130652
  const b = t(), { headingMap: v } = u(), x = v.get(h);
@@ -130674,7 +130674,7 @@ const jyn = ({
130674
130674
  const T = t() + e.nodeSize;
130675
130675
  n.chain().focus(T - 1).run();
130676
130676
  });
130677
- }, [n, h, u, t, e]), y = _e(() => {
130677
+ }, [n, h, u, t, e]), y = Ie(() => {
130678
130678
  var D, T;
130679
130679
  if (!h) return t() + e.nodeSize;
130680
130680
  const { headingMap: b } = u(), v = b.get(h);
@@ -130808,7 +130808,7 @@ const jyn = ({
130808
130808
  }
130809
130809
  };
130810
130810
  function Nyn(e) {
130811
- const t = Ue(!1), n = Ue(e), r = _e(() => {
130811
+ const t = Ue(!1), n = Ue(e), r = Ie(() => {
130812
130812
  if (!n.current) {
130813
130813
  t.current = !1;
130814
130814
  return;
@@ -130837,10 +130837,10 @@ function Nyn(e) {
130837
130837
  );
130838
130838
  }
130839
130839
  const _yn = (e, t, n) => {
130840
- const r = Nyn(e), o = _e(() => {
130840
+ const r = Nyn(e), o = Ie(() => {
130841
130841
  const l = e.chain();
130842
130842
  l.setNodeSelection(n).unsetAllMarks(), (t == null ? void 0 : t.type.name) !== "paragraph" && l.setParagraph(), l.run();
130843
- }, [e, n, t == null ? void 0 : t.type.name]), i = _e(() => {
130843
+ }, [e, n, t == null ? void 0 : t.type.name]), i = Ie(() => {
130844
130844
  if (r)
130845
130845
  return;
130846
130846
  e.commands.setNodeSelection(n);
@@ -130849,13 +130849,13 @@ const _yn = (e, t, n) => {
130849
130849
  n + ((t == null ? void 0 : t.nodeSize) || 0),
130850
130850
  u.toJSON()
130851
130851
  ).run();
130852
- }, [e, n, t == null ? void 0 : t.nodeSize]), a = _e(() => {
130852
+ }, [e, n, t == null ? void 0 : t.nodeSize]), a = Ie(() => {
130853
130853
  e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).run(), document.execCommand("copy"), Xc({
130854
130854
  title: "Copied to clipboard",
130855
130855
  toastType: "mini",
130856
130856
  variant: "success"
130857
130857
  });
130858
- }, [e, n]), s = _e(() => {
130858
+ }, [e, n]), s = Ie(() => {
130859
130859
  Lyn(e, n), e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).deleteSelection().run();
130860
130860
  }, [e, n]);
130861
130861
  return {
@@ -134172,7 +134172,7 @@ const f4n = Ne.memo(
134172
134172
  ), Ave = Ne.memo(
134173
134173
  ({ node: e, getPos: t, editor: n, deleteNode: r, ...o }) => {
134174
134174
  var X, ie, ne, te;
134175
- const i = (ie = (X = o.extension) == null ? void 0 : X.options) == null ? void 0 : ie.onCopyHeadingLink, a = Br("(max-width: 1024px)"), [s, l] = Ie(!1), [u, c] = Ie(!1), [d, f] = Ie(2), h = _yn(n, e, t()), {
134175
+ const i = (ie = (X = o.extension) == null ? void 0 : X.options) == null ? void 0 : ie.onCopyHeadingLink, a = Br("(max-width: 1024px)"), [s, l] = _e(!1), [u, c] = _e(!1), [d, f] = _e(2), h = _yn(n, e, t()), {
134176
134176
  isPreviewMode: p,
134177
134177
  isPresentationMode: g,
134178
134178
  isCollaboratorsDoc: m,
@@ -134187,7 +134187,7 @@ const f4n = Ne.memo(
134187
134187
  node: e,
134188
134188
  getPos: t,
134189
134189
  editor: n
134190
- }), C = _e(() => {
134190
+ }), C = Ie(() => {
134191
134191
  const { content: P } = e.content, ee = P[0].attrs.id, re = P[0].content.content[0].text, fe = MH(re), O = ee.replace(/-/g, "").substring(0, 8), ue = `heading=${fe}-${O}`;
134192
134192
  i == null || i(ue);
134193
134193
  }, [e.content, i]), D = ot(() => {
@@ -134253,31 +134253,31 @@ const f4n = Ne.memo(
134253
134253
  }, L = (P, ee) => {
134254
134254
  const re = t(), fe = re + e.nodeSize;
134255
134255
  P === "img" ? n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: fe }).setMedia({ src: ee, "media-type": "img" }).run() : P !== "secure-img" && (n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: fe }).setIframe({ src: ee, width: 640, height: 360 }).run());
134256
- }, E = _e((P) => {
134256
+ }, E = Ie((P) => {
134257
134257
  P.altKey ? N() : j();
134258
- }, []), j = _e(() => {
134258
+ }, []), j = Ie(() => {
134259
134259
  const P = t() + e.nodeSize;
134260
134260
  n.commands.insertContentAt(P, {
134261
134261
  type: "dBlock",
134262
134262
  content: [{ type: "paragraph" }]
134263
134263
  });
134264
- }, [t, n, e.nodeSize]), N = _e(() => {
134264
+ }, [t, n, e.nodeSize]), N = Ie(() => {
134265
134265
  const P = t();
134266
134266
  n.commands.insertContentAt(P, {
134267
134267
  type: "dBlock",
134268
134268
  content: [{ type: "paragraph" }]
134269
134269
  });
134270
- }, [t, n]), I = _e(
134270
+ }, [t, n]), I = Ie(
134271
134271
  (P) => {
134272
134272
  P.altKey ? r() : l((ee) => !ee);
134273
134273
  },
134274
134274
  [r]
134275
- ), B = _e(() => {
134275
+ ), B = Ie(() => {
134276
134276
  S();
134277
134277
  }, [T, _]), U = ot(
134278
134278
  () => DH(B, 1e3),
134279
134279
  [B]
134280
- ), $ = _e(
134280
+ ), $ = Ie(
134281
134281
  (P) => {
134282
134282
  const ee = t() + e.nodeSize;
134283
134283
  n.commands.insertContentAt(ee - 4, P);
@@ -134289,7 +134289,7 @@ const f4n = Ne.memo(
134289
134289
  ), z = ot(
134290
134290
  () => Ryn($),
134291
134291
  [$]
134292
- ), Y = _e(() => {
134292
+ ), Y = Ie(() => {
134293
134293
  c(!u), f(u ? 2 : z.length);
134294
134294
  }, [u, z.length]), se = ot(() => {
134295
134295
  switch (F) {
@@ -136917,7 +136917,7 @@ function r6n(e) {
136917
136917
  function t(n) {
136918
136918
  var r = n.children, o = n.content, i = n.visible, a = n.singleton, s = n.render, l = n.reference, u = n.disabled, c = u === void 0 ? !1 : u, d = n.ignoreAttributes, f = d === void 0 ? !0 : d;
136919
136919
  n.__source, n.__self;
136920
- var h = Xve(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = a !== void 0, m = Ie(!1), y = m[0], b = m[1], v = Ie({}), x = v[0], w = v[1], F = Ie(), C = F[0], D = F[1], T = t6n(function() {
136920
+ var h = Xve(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = a !== void 0, m = _e(!1), y = m[0], b = m[1], v = _e({}), x = v[0], w = v[1], F = _e(), C = F[0], D = F[1], T = t6n(function() {
136921
136921
  return {
136922
136922
  container: vte(),
136923
136923
  renders: 1
@@ -137105,7 +137105,7 @@ const a6n = [
137105
137105
  selected: t,
137106
137106
  getPos: n
137107
137107
  }) => {
137108
- const [r, o] = Ie(!1), { isPreviewMode: i } = Z5(), a = Ue(null), s = Ue(), l = () => {
137108
+ const [r, o] = _e(!1), { isPreviewMode: i } = Z5(), a = Ue(null), s = Ue(), l = () => {
137109
137109
  s.current && clearTimeout(s.current), o(!0);
137110
137110
  }, u = () => {
137111
137111
  s.current = setTimeout(() => {
@@ -137475,7 +137475,7 @@ const f6n = zt.create({
137475
137475
  getPos: n,
137476
137476
  deleteNode: r
137477
137477
  }) => {
137478
- const [o, i] = Ie(""), { isPreviewMode: a } = Z5(), s = ["https://twitter.com", "https://x.com"], l = () => {
137478
+ const [o, i] = _e(""), { isPreviewMode: a } = Z5(), s = ["https://twitter.com", "https://x.com"], l = () => {
137479
137479
  switch (e.attrs.data) {
137480
137480
  case "twitter":
137481
137481
  return /* @__PURE__ */ M.jsx(qe, { name: "XSocial", size: "md" });
@@ -173739,7 +173739,7 @@ const $jn = ({
173739
173739
  metadataProxyUrl: t,
173740
173740
  hoverEvent: n
173741
173741
  }) => {
173742
- const r = Br("(max-width:768px)"), [o, i] = Ie(null), [a, s] = Ie(!1), l = Ue(/* @__PURE__ */ new Map()), u = async (c) => {
173742
+ const r = Br("(max-width:768px)"), [o, i] = _e(null), [a, s] = _e(!1), l = Ue(/* @__PURE__ */ new Map()), u = async (c) => {
173743
173743
  if (c) {
173744
173744
  if (l.current.has(c)) {
173745
173745
  i(l.current.get(c)), s(!1);
@@ -175219,7 +175219,7 @@ function YLn({
175219
175219
  editor: n,
175220
175220
  deleteNode: r
175221
175221
  }) {
175222
- const o = Ue(null), [i, a] = Ie("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = ed(), p = e.attrs.code || e.textContent || "", g = ot(() => {
175222
+ const o = Ue(null), [i, a] = _e("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = ed(), p = e.attrs.code || e.textContent || "", g = ot(() => {
175223
175223
  const b = p.split(`
175224
175224
  `), v = [];
175225
175225
  let x = 0;
@@ -188669,19 +188669,19 @@ function D_n({
188669
188669
  var VFe = D_n;
188670
188670
  const WFe = dn(
188671
188671
  (e, t) => {
188672
- const [n, r] = Ie(0), o = _e(
188672
+ const [n, r] = _e(0), o = Ie(
188673
188673
  (l) => {
188674
188674
  const u = e.items[l];
188675
188675
  u && e.command(u);
188676
188676
  },
188677
188677
  [e]
188678
- ), i = _e(() => {
188678
+ ), i = Ie(() => {
188679
188679
  r(
188680
188680
  (l) => (l + e.items.length - 1) % e.items.length
188681
188681
  );
188682
- }, [e.items.length]), a = _e(() => {
188682
+ }, [e.items.length]), a = Ie(() => {
188683
188683
  r((l) => (l + 1) % e.items.length);
188684
- }, [e.items.length]), s = _e(() => {
188684
+ }, [e.items.length]), s = Ie(() => {
188685
188685
  o(n);
188686
188686
  }, [o, n]);
188687
188687
  return Be(() => {
@@ -249291,7 +249291,7 @@ const R_n = ({
249291
249291
  command: t,
249292
249292
  editor: n
249293
249293
  }) => {
249294
- const [r, o] = Ie(0), [i, a] = Ie(e), s = Br("(max-width: 640px)"), l = k8(n, "callout"), u = k8(n, "codeBlock"), c = k8(n, "column"), d = k8(n, "table"), f = _e(
249294
+ const [r, o] = _e(0), [i, a] = _e(e), s = Br("(max-width: 640px)"), l = k8(n, "callout"), u = k8(n, "codeBlock"), c = k8(n, "column"), d = k8(n, "table"), f = Ie(
249295
249295
  (p) => {
249296
249296
  const g = i[p];
249297
249297
  g && (g.title === "Continue writing" || t(g));
@@ -250915,9 +250915,9 @@ const Gie = () => {
250915
250915
  deleteNode: o
250916
250916
  }) => {
250917
250917
  var J;
250918
- const [i, a] = Ie(!1), [s, l] = Ie(!1), [u, c] = Ie(e.attrs.prompt), [d, f] = Ie(!!e.attrs.content), [h, p] = Ie(""), [g, m] = Ie(!1), [y, b] = Ie(!1), [v, x] = Ie([]), [w, F] = Ie(
250918
+ const [i, a] = _e(!1), [s, l] = _e(!1), [u, c] = _e(e.attrs.prompt), [d, f] = _e(!!e.attrs.content), [h, p] = _e(""), [g, m] = _e(!1), [y, b] = _e(!1), [v, x] = _e([]), [w, F] = _e(
250919
250919
  !!localStorage.getItem("include-ddoc-context")
250920
- ), [C, D] = Ie(!0), { prompt: T, content: R } = e.attrs, _ = Ue(null), S = Ue(null), L = Ue(null), E = !t.isEditable, { isWindows: j } = ed(), N = j ? "Ctrl" : "Cmd", I = window.__MODEL_CONTEXT__, B = Ue(null), [U, $] = Ie(
250920
+ ), [C, D] = _e(!0), { prompt: T, content: R } = e.attrs, _ = Ue(null), S = Ue(null), L = Ue(null), E = !t.isEditable, { isWindows: j } = ed(), N = j ? "Ctrl" : "Cmd", I = window.__MODEL_CONTEXT__, B = Ue(null), [U, $] = _e(
250921
250921
  Gie()
250922
250922
  ), q = Uue({
250923
250923
  extensions: [J5e, ...nxe],
@@ -250968,7 +250968,7 @@ const Gie = () => {
250968
250968
  }, [u]), Be(() => {
250969
250969
  c(T), f(!!R);
250970
250970
  }, [T, R]);
250971
- const z = _e(() => {
250971
+ const z = Ie(() => {
250972
250972
  var me, we;
250973
250973
  if (!w) return "";
250974
250974
  const G = t.getJSON();
@@ -251000,7 +251000,7 @@ const Gie = () => {
251000
251000
  }
251001
251001
  return Me = (pe + H).trim(), Me && (Me = `Document context (${ge} chars before, ${K} chars after):
251002
251002
  ${Me}`), Me;
251003
- }, [t, n, w]), Y = _e(async () => {
251003
+ }, [t, n, w]), Y = Ie(async () => {
251004
251004
  var G;
251005
251005
  if (u.trim())
251006
251006
  try {
@@ -251057,7 +251057,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251057
251057
  z,
251058
251058
  w,
251059
251059
  r
251060
- ]), se = _e(() => {
251060
+ ]), se = Ie(() => {
251061
251061
  if (B.current) {
251062
251062
  B.current.abort(), l(!1), a(!1);
251063
251063
  const G = setTimeout(() => {
@@ -251069,7 +251069,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251069
251069
  }, 0);
251070
251070
  return () => clearTimeout(G);
251071
251071
  }
251072
- }, []), oe = _e(() => {
251072
+ }, []), oe = Ie(() => {
251073
251073
  if (typeof n == "function") {
251074
251074
  m(!0);
251075
251075
  const G = setTimeout(() => {
@@ -251088,7 +251088,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251088
251088
  }, 150);
251089
251089
  return () => clearTimeout(G);
251090
251090
  }
251091
- }, [n, t, e.nodeSize, R, o]), X = _e(() => {
251091
+ }, [n, t, e.nodeSize, R, o]), X = Ie(() => {
251092
251092
  if (typeof n == "function") {
251093
251093
  m(!0);
251094
251094
  const G = setTimeout(() => {
@@ -251107,14 +251107,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251107
251107
  }, 150);
251108
251108
  return () => clearTimeout(G);
251109
251109
  }
251110
- }, [n, t, e.nodeSize, o]), ie = _e(
251110
+ }, [n, t, e.nodeSize, o]), ie = Ie(
251111
251111
  (G) => {
251112
251112
  c(G.target.value);
251113
251113
  },
251114
251114
  []
251115
- ), ne = _e(() => {
251115
+ ), ne = Ie(() => {
251116
251116
  r && u !== T && r({ prompt: u });
251117
- }, [r, u, T]), te = _e(
251117
+ }, [r, u, T]), te = Ie(
251118
251118
  (G) => {
251119
251119
  r == null || r({ model: G });
251120
251120
  const de = I == null ? void 0 : I.defaultModels.find(
@@ -251123,22 +251123,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251123
251123
  de && (I != null && I.setActiveModel) && I.setActiveModel(de);
251124
251124
  },
251125
251125
  [r, I]
251126
- ), P = _e(() => {
251126
+ ), P = Ie(() => {
251127
251127
  var de, ke;
251128
251128
  if (r == null || r({ content: "" }), f(!1), p(""), !_.current) return;
251129
251129
  (de = _.current) == null || de.focus();
251130
251130
  const G = _.current.value.length;
251131
251131
  (ke = _.current) == null || ke.setSelectionRange(G, G), _.current.scrollTop = _.current.scrollHeight;
251132
- }, [r]), ee = _e(() => {
251132
+ }, [r]), ee = Ie(() => {
251133
251133
  b(!0);
251134
- }, []), re = _e(() => {
251134
+ }, []), re = Ie(() => {
251135
251135
  if (q) {
251136
251136
  const G = q.getHTML();
251137
251137
  b(!1), r == null || r({ content: G }), p(G);
251138
251138
  }
251139
- }, [q, r]), fe = _e(() => {
251139
+ }, [q, r]), fe = Ie(() => {
251140
251140
  b(!1), q && q.commands.setContent(h || R || "");
251141
- }, [q, h, R]), O = _e(
251141
+ }, [q, h, R]), O = Ie(
251142
251142
  (G) => {
251143
251143
  G.key === "Enter" && (G.ctrlKey || G.metaKey) && !G.shiftKey ? (G.preventDefault(), d && oe()) : G.key === "Enter" && !G.shiftKey && !y ? (G.preventDefault(), u.trim() && Y()) : G.key === "Escape" ? (G.preventDefault(), s ? se() : X()) : G.key === " " && !u.trim() ? (G.preventDefault(), X()) : G.key === "r" && (G.ctrlKey || G.metaKey) ? (G.preventDefault(), P()) : G.key === "e" && (G.ctrlKey || G.metaKey) && (G.preventDefault(), ee());
251144
251144
  },
@@ -251154,7 +251154,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251154
251154
  s,
251155
251155
  se
251156
251156
  ]
251157
- ), ue = _e((G) => {
251157
+ ), ue = Ie((G) => {
251158
251158
  G ? localStorage.setItem("include-ddoc-context", "true") : localStorage.removeItem("include-ddoc-context");
251159
251159
  }, []);
251160
251160
  Be(() => {
@@ -251188,7 +251188,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251188
251188
  return () => clearInterval(G);
251189
251189
  }
251190
251190
  }, [i]);
251191
- const ce = _e(
251191
+ const ce = Ie(
251192
251192
  () => /* @__PURE__ */ M.jsx("span", { className: "text-body-sm color-text-secondary pt-1 flex items-center gap-1", children: /* @__PURE__ */ M.jsx(Ym, { mode: "wait", children: /* @__PURE__ */ M.jsxs(
251193
251193
  "span",
251194
251194
  {
@@ -251559,7 +251559,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251559
251559
  activeTabId: q
251560
251560
  }), { handleCommentInteraction: ee, handleCommentClick: re } = SIn({
251561
251561
  onCommentInteraction: d
251562
- }), fe = Ue(!0), [O, ue] = Ie([]), ce = ot(() => te, [te]);
251562
+ }), fe = Ue(!0), [O, ue] = _e([]), ce = ot(() => te, [te]);
251563
251563
  Be(() => {
251564
251564
  q && Y(null);
251565
251565
  }, [q, Y]);
@@ -251629,13 +251629,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251629
251629
  }, [G, de]), Be(() => {
251630
251630
  a && T(!l);
251631
251631
  }, [a, l, T]);
251632
- const ke = Ue(!1), Me = Ue(null), xe = _e(
251632
+ const ke = Ue(!1), Me = Ue(null), xe = Ie(
251633
251633
  (ye) => {
251634
251634
  const je = ye.map((Pe) => ir(Pe));
251635
251635
  hc(e, Nu(je), "self");
251636
251636
  },
251637
251637
  [e]
251638
- ), pe = _e(
251638
+ ), pe = Ie(
251639
251639
  (ye) => Array.isArray(ye) || typeof ye == "string" && !XFe(ye),
251640
251640
  []
251641
251641
  );
@@ -251778,7 +251778,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251778
251778
  );
251779
251779
  j == null || j(ye);
251780
251780
  }, [(Le = (Se = G == null ? void 0 : G.storage) == null ? void 0 : Se.collaborationCaret) == null ? void 0 : Le.users]);
251781
- const H = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: K } = ed(), le = new URLSearchParams(H), me = le.get("heading"), we = me == null ? void 0 : me.split("-").pop(), ve = _e(
251781
+ const H = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: K } = ed(), le = new URLSearchParams(H), me = le.get("heading"), we = me == null ? void 0 : me.split("-").pop(), ve = Ie(
251782
251782
  (ye) => {
251783
251783
  if (G)
251784
251784
  try {
@@ -251843,7 +251843,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251843
251843
  isContentLoading: $
251844
251844
  };
251845
251845
  }, MIn = () => {
251846
- const [e, t] = Ie(null), n = Ue(null), r = _e((o) => {
251846
+ const [e, t] = _e(null), n = Ue(null), r = Ie((o) => {
251847
251847
  if (!n.current) return;
251848
251848
  const i = n.current.querySelector(`input#${o}`);
251849
251849
  i && i.scrollIntoView({
@@ -251860,13 +251860,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251860
251860
  focusCommentWithActiveId: r
251861
251861
  };
251862
251862
  }, EIn = (e) => {
251863
- const [t, n] = Ie([]), r = Ue(null), o = Ue({}), i = Ue(e);
251863
+ const [t, n] = _e([]), r = Ue(null), o = Ue({}), i = Ue(e);
251864
251864
  Be(() => {
251865
251865
  i.current = e;
251866
251866
  const s = o.current[e];
251867
251867
  s && n(s);
251868
251868
  }, [e]);
251869
- const a = _e(
251869
+ const a = Ie(
251870
251870
  (s, l) => {
251871
251871
  const u = e, c = () => {
251872
251872
  o.current = {
@@ -251911,7 +251911,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251911
251911
  externalExtensions: m,
251912
251912
  activeTabId: y
251913
251913
  }) => {
251914
- const b = _e(
251914
+ const b = Ie(
251915
251915
  () => W_n(
251916
251916
  (C) => t == null ? void 0 : t(C),
251917
251917
  n,
@@ -251928,7 +251928,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251928
251928
  onCommentActivated: p
251929
251929
  }),
251930
251930
  [p]
251931
- ), x = _e(() => [
251931
+ ), x = Ie(() => [
251932
251932
  ...$Fe({
251933
251933
  onError: (D) => t == null ? void 0 : t(D),
251934
251934
  ipfsImageUploadFn: n,
@@ -251960,7 +251960,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251960
251960
  e,
251961
251961
  m,
251962
251962
  y
251963
- ]), [w, F] = Ie(x());
251963
+ ]), [w, F] = _e(x());
251964
251964
  return Be(() => {
251965
251965
  y && F(x());
251966
251966
  }, [y]), Be(() => {
@@ -251990,7 +251990,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
251990
251990
  }, SIn = ({
251991
251991
  onCommentInteraction: e
251992
251992
  }) => {
251993
- const t = _e(
251993
+ const t = Ie(
251994
251994
  (o, i, a) => {
251995
251995
  let s = !1;
251996
251996
  return o.doc.nodesBetween(i, a, (l) => {
@@ -252000,7 +252000,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
252000
252000
  }), s;
252001
252001
  },
252002
252002
  []
252003
- ), n = _e(
252003
+ ), n = Ie(
252004
252004
  (o, i) => {
252005
252005
  const a = i.target;
252006
252006
  if (!a || a.nodeName !== "MARK" || a.dataset.color !== "yellow")
@@ -252023,7 +252023,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
252023
252023
  e == null || e(f);
252024
252024
  },
252025
252025
  [t, e]
252026
- ), r = _e(
252026
+ ), r = Ie(
252027
252027
  (o, i, a) => n(o, a),
252028
252028
  [n]
252029
252029
  );
@@ -252108,13 +252108,15 @@ const yk = (e = 32, t) => {
252108
252108
  initialContent: t,
252109
252109
  enableCollaboration: n,
252110
252110
  isDDocOwner: r,
252111
- isVersionMode: o
252111
+ createDefaultTabIfMissing: o
252112
252112
  }) => {
252113
- const [i, a] = Ie(""), [s, l] = Ie([]), u = ot(() => s.length > 0, [s]), c = _e(
252113
+ const [i, a] = _e(""), [s, l] = _e([]), u = ot(() => s.length > 0, [s]), c = Ie(
252114
252114
  (m) => {
252115
252115
  if (!e || m === i) return;
252116
252116
  const { activeTab: y } = zf(e);
252117
- y.delete(0, y.length), y.insert(0, m), a(m);
252117
+ e.transact(() => {
252118
+ y.delete(0, y.length), y.insert(0, m);
252119
+ }, "self"), a(m);
252118
252120
  },
252119
252121
  [i, e]
252120
252122
  );
@@ -252125,13 +252127,19 @@ const yk = (e = 32, t) => {
252125
252127
  t,
252126
252128
  e,
252127
252129
  {
252128
- createDefaultTabIfMissing: !o
252130
+ createDefaultTabIfMissing: r
252129
252131
  }
252130
252132
  );
252131
- a(b), l(y);
252133
+ a(r ? b : y[0].id), l(y);
252132
252134
  return;
252133
252135
  }
252134
- }, [e, t, r, n, o]), Be(() => {
252136
+ }, [
252137
+ e,
252138
+ t,
252139
+ r,
252140
+ n,
252141
+ o
252142
+ ]), Be(() => {
252135
252143
  if (!e) return;
252136
252144
  const m = e.getMap("ddocTabs");
252137
252145
  let y = m.get("order");
@@ -252159,7 +252167,7 @@ const yk = (e = 32, t) => {
252159
252167
  y == null || y.unobserve(b), m.unobserve(x);
252160
252168
  };
252161
252169
  }, [e]);
252162
- const d = _e(() => {
252170
+ const d = Ie(() => {
252163
252171
  const m = e.getMap("ddocTabs"), y = m.get("order"), b = m.get("tabs"), v = m.get("activeTabId");
252164
252172
  if (!(y instanceof y1))
252165
252173
  throw new Error("Invalid ddocTabs.order");
@@ -252175,7 +252183,7 @@ const yk = (e = 32, t) => {
252175
252183
  const F = new Ni();
252176
252184
  F.set("name", w.name), F.set("showOutline", w.showOutline), F.set("emoji", w.emoji), b.set(w.id, F), e.getXmlFragment(w.id), !n && v instanceof el && (v.delete(0, v.length), v.insert(0, x)), y.push([w.id]);
252177
252185
  }), x;
252178
- }, [n, e]), f = _e(
252186
+ }, [n, e]), f = Ie(
252179
252187
  (m) => {
252180
252188
  const { order: y, tabs: b, activeTab: v } = zf(e);
252181
252189
  if (y.length <= 1)
@@ -252194,7 +252202,7 @@ const yk = (e = 32, t) => {
252194
252202
  });
252195
252203
  },
252196
252204
  [e]
252197
- ), h = _e(
252205
+ ), h = Ie(
252198
252206
  (m, { newName: y, emoji: b }) => {
252199
252207
  const { tabs: v } = zf(e), x = v.get(m);
252200
252208
  if (!(x instanceof Ni)) {
@@ -252209,7 +252217,7 @@ const yk = (e = 32, t) => {
252209
252217
  });
252210
252218
  },
252211
252219
  [e]
252212
- ), p = _e(
252220
+ ), p = Ie(
252213
252221
  (m) => {
252214
252222
  const { tabs: y, order: b, activeTab: v } = zf(e), x = y.get(m);
252215
252223
  if (!x || !(x instanceof Ni)) {
@@ -252229,7 +252237,7 @@ const yk = (e = 32, t) => {
252229
252237
  }), w;
252230
252238
  },
252231
252239
  [e]
252232
- ), g = _e(
252240
+ ), g = Ie(
252233
252241
  (m, y) => {
252234
252242
  const { order: b } = zf(e), v = b.toArray(), x = v.indexOf(y), w = v.indexOf(m);
252235
252243
  x === -1 || w === -1 || e.transact(() => {
@@ -262531,7 +262539,7 @@ function JUn(e, t) {
262531
262539
  return typeof e == "function" ? e() : e;
262532
262540
  });
262533
262541
  if (process.env.NODE_ENV !== "production" && typeof e != "function") {
262534
- var r = XUn(Ie(n), 1), o = r[0];
262542
+ var r = XUn(_e(n), 1), o = r[0];
262535
262543
  e !== o && console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.");
262536
262544
  }
262537
262545
  var i = t.context, a = t.guards, s = t.actions, l = t.activities, u = t.services, c = t.delays;
@@ -262588,11 +262596,11 @@ function rHn(e) {
262588
262596
  function oHn(e) {
262589
262597
  for (var t = [], n = 1; n < arguments.length; n++)
262590
262598
  t[n - 1] = arguments[n];
262591
- var r = nHn(t, 1), o = r[0], i = o === void 0 ? {} : o, a = JUn(e, i), s = _e(function() {
262599
+ var r = nHn(t, 1), o = r[0], i = o === void 0 ? {} : o, a = JUn(e, i), s = Ie(function() {
262592
262600
  return a.status === Ar.NotStarted ? i.state ? Ua.create(i.state) : a.machine.initialState : a.getSnapshot();
262593
- }, [a]), l = _e(function(d, f) {
262601
+ }, [a]), l = Ie(function(d, f) {
262594
262602
  return tHn(a, d, f);
262595
- }, [a]), u = _e(function(d) {
262603
+ }, [a]), u = Ie(function(d) {
262596
262604
  var f = a.subscribe(d).unsubscribe;
262597
262605
  return f;
262598
262606
  }, [a]), c = UO.useSyncExternalStoreWithSelector(u, s, s, rHn, l);
@@ -262619,10 +262627,10 @@ var aHn = function(e, t) {
262619
262627
  };
262620
262628
  function hy(e, t, n, r) {
262621
262629
  n === void 0 && (n = aHn);
262622
- var o = Ue(null), i = _e(function(l) {
262630
+ var o = Ue(null), i = Ie(function(l) {
262623
262631
  var u = e.subscribe(l).unsubscribe;
262624
262632
  return u;
262625
- }, [e]), a = _e(function() {
262633
+ }, [e]), a = Ie(function() {
262626
262634
  return sHn(e, o);
262627
262635
  }, [e, r]), s = UO.useSyncExternalStoreWithSelector(i, a, a, t, n);
262628
262636
  return s;
@@ -263110,7 +263118,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
263110
263118
  }), o = hy(r, RHn), i = hy(r, PHn), a = hy(r, zHn), s = hy(r, UHn), l = hy(
263111
263119
  r,
263112
263120
  HHn
263113
- ), u = _e(
263121
+ ), u = Ie(
263114
263122
  (f) => {
263115
263123
  n({
263116
263124
  type: "CONNECT",
@@ -263122,12 +263130,12 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
263122
263130
  },
263123
263131
  // eslint-disable-next-line react-hooks/exhaustive-deps
263124
263132
  [e.ydoc]
263125
- ), c = _e(() => {
263133
+ ), c = Ie(() => {
263126
263134
  n({
263127
263135
  type: "DISCONNECT",
263128
263136
  data: {}
263129
263137
  });
263130
- }, [n]), d = _e(() => {
263138
+ }, [n]), d = Ie(() => {
263131
263139
  n({
263132
263140
  type: "TERMINATE_SESSION",
263133
263141
  data: {}
@@ -263201,7 +263209,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
263201
263209
  onCollabSessionTermination: u,
263202
263210
  onUnMergedUpdates: c
263203
263211
  }) => {
263204
- const [d] = Ie(new xc()), {
263212
+ const [d] = _e(new xc()), {
263205
263213
  connect: f,
263206
263214
  isReady: h,
263207
263215
  terminateSession: p,
@@ -263219,7 +263227,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
263219
263227
  onLocalUpdate: e
263220
263228
  });
263221
263229
  VHn(y, r);
263222
- const b = Ue(null), v = _e(async () => {
263230
+ const b = Ue(null), v = Ie(async () => {
263223
263231
  const x = b.current;
263224
263232
  if (x && await x.destroy(), t && n)
263225
263233
  try {
@@ -263284,7 +263292,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
263284
263292
  disableInlineComment: L,
263285
263293
  ...E
263286
263294
  }) => {
263287
- const [j, N] = Ie(!0), [I, B] = Ie(!0), U = !!(n != null && n.enabled), $ = (n == null ? void 0 : n.content) ?? t, q = WHn({
263295
+ const [j, N] = _e(!0), [I, B] = _e(!0), U = !!(n != null && n.enabled), $ = (n == null ? void 0 : n.content) ?? t, q = WHn({
263288
263296
  onChange: o,
263289
263297
  enableIndexeddbSync: f,
263290
263298
  ddocId: d,
@@ -263301,7 +263309,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
263301
263309
  initialContent: $,
263302
263310
  enableCollaboration: r,
263303
263311
  isDDocOwner: E.isDDocOwner || !1,
263304
- isVersionMode: U
263312
+ createDefaultTabIfMissing: !U && !e
263305
263313
  }), Y = DIn({
263306
263314
  ydoc: q.ydoc,
263307
263315
  isPreviewMode: e,
@@ -263379,7 +263387,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
263379
263387
  ipfsImageFetchFn: s,
263380
263388
  fetchV1ImageFn: l
263381
263389
  }
263382
- ), [f, h] = Ie(""), [p, g] = Ie(""), [m, y] = Ie(!0), [b, v] = Ie(!0), x = () => {
263390
+ ), [f, h] = _e(""), [p, g] = _e(""), [m, y] = _e(!0), [b, v] = _e(!0), x = () => {
263383
263391
  if (!e) return;
263384
263392
  if ((f === null || f === "") && (p === "" || p === null)) {
263385
263393
  c(ut.NONE);
@@ -264185,7 +264193,7 @@ const sqn = ({
264185
264193
  documentStyling: g,
264186
264194
  fetchV1ImageFn: m
264187
264195
  }) => {
264188
- const [y, b] = Ie(!1), [v, x] = Ie(0), [w, F] = Ie(!0), { isNativeMobile: C } = ed(), [D, T] = Ie(null), [R, _] = Ie(null), S = 50, [L, E] = Ie(
264196
+ const [y, b] = _e(!1), [v, x] = _e(0), [w, F] = _e(!0), { isNativeMobile: C } = ed(), [D, T] = _e(null), [R, _] = _e(null), S = 50, [L, E] = _e(
264189
264197
  "forward"
264190
264198
  ), j = ot(() => new tF({
264191
264199
  extensions: e.extensionManager.extensions.filter(
@@ -264196,7 +264204,7 @@ const sqn = ({
264196
264204
  ].includes(Y.name)
264197
264205
  ),
264198
264206
  editable: !s
264199
- }), [s]), N = _e(async () => {
264207
+ }), [s]), N = Ie(async () => {
264200
264208
  var ne;
264201
264209
  if (!e || !((ne = e.view) != null && ne.dom)) return;
264202
264210
  if (!s && e.view.dom.querySelector(".is-editor-empty")) {
@@ -264239,13 +264247,13 @@ const sqn = ({
264239
264247
  Be(() => {
264240
264248
  N();
264241
264249
  }, [e.state.doc]);
264242
- const I = _e(() => {
264250
+ const I = Ie(() => {
264243
264251
  C ? r((Y) => !Y) : document.fullscreenElement ? document.exitFullscreen ? document.exitFullscreen().then(() => r(!1)).catch(() => {
264244
264252
  r(!1);
264245
264253
  }) : r(!1) : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen().then(() => r(!0)).catch(() => {
264246
264254
  r(!0);
264247
264255
  }) : r(!0);
264248
- }, [C]), B = _e(
264256
+ }, [C]), B = Ie(
264249
264257
  (Y) => {
264250
264258
  Y.key === "ArrowRight" || Y.key === "ArrowDown" || Y.code === "Space" ? (Y.preventDefault(), Y.stopPropagation(), E("forward"), x((se) => Math.min(se + 1, c.length - 1))) : Y.key === "ArrowLeft" || Y.key === "ArrowUp" ? (E("backward"), x((se) => Math.max(se - 1, 0))) : Y.key === "Escape" ? !s && t() : (Y.key === "f" || Y.key === "F") && I();
264251
264259
  },
@@ -264263,7 +264271,7 @@ const sqn = ({
264263
264271
  _(null), T(Y.targetTouches[0].clientX);
264264
264272
  }, $ = (Y) => {
264265
264273
  _(Y.targetTouches[0].clientX);
264266
- }, q = _e(() => {
264274
+ }, q = Ie(() => {
264267
264275
  if (!D || !R) return;
264268
264276
  const Y = D - R, se = Y > S, oe = Y < -S;
264269
264277
  se && (E("forward"), x((X) => Math.min(X + 1, c.length - 1))), oe && (E("backward"), x((X) => Math.max(X - 1, 0)));
@@ -264575,7 +264583,7 @@ const sqn = ({
264575
264583
  )
264576
264584
  }
264577
264585
  ), cqn = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20fill='white'/%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208V8C38.8366%208%2046%2015.1634%2046%2024V24C46%2032.8366%2038.8366%2040%2030%2040V40C21.1634%2040%2014%2032.8366%2014%2024V24Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23E8EBEC'/%3e%3cg%20filter='url(%23filter0_d_4765_56257)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='white'/%3e%3cpath%20d='M10%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64C2.5%2059.8579%205.85786%2056.5%2010%2056.5Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064V64C38.8366%2064%2046%2071.1634%2046%2080V80C46%2088.8366%2038.8366%2096%2030%2096V96C21.1634%2096%2014%2088.8366%2014%2080V80Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23E8EBEC'/%3e%3c/g%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20fill='white'/%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120V120C38.8366%20120%2046%20127.163%2046%20136V136C46%20144.837%2038.8366%20152%2030%20152V152C21.1634%20152%2014%20144.837%2014%20136V136Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23E8EBEC'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_4765_56257)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_4765_56257)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_4765_56257'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_4765_56257'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_4765_56257'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_4765_56257'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4765_56257'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", dqn = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208C38.8366%208%2046%2015.1634%2046%2024C46%2032.8366%2038.8366%2040%2030%2040C21.1634%2040%2014%2032.8366%2014%2024Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23404040'/%3e%3cg%20filter='url(%23filter0_d_5573_80525)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%2064C2.5%2059.8579%205.85786%2056.5%2010%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064C38.8366%2064%2046%2071.1634%2046%2080C46%2088.8366%2038.8366%2096%2030%2096C21.1634%2096%2014%2088.8366%2014%2080Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23404040'/%3e%3c/g%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120C38.8366%20120%2046%20127.163%2046%20136C46%20144.837%2038.8366%20152%2030%20152C21.1634%20152%2014%20144.837%2014%20136Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23404040'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_5573_80525)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_5573_80525)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_5573_80525'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_5573_80525'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_5573_80525'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_5573_80525'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_5573_80525'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", fqn = () => {
264578
- const [e, t] = Ie("light"), n = () => {
264586
+ const [e, t] = _e("light"), n = () => {
264579
264587
  const r = localStorage.getItem("theme");
264580
264588
  return r || "light";
264581
264589
  };
@@ -264645,7 +264653,7 @@ const sqn = ({
264645
264653
  (q, z) => new Date(z.createdAt).getTime() - new Date(q.createdAt).getTime()
264646
264654
  ), B = (q) => {
264647
264655
  a(q), h && h !== q && d(null);
264648
- }, [U, $] = Ie({
264656
+ }, [U, $] = _e({
264649
264657
  name: o,
264650
264658
  isEns: !1
264651
264659
  });
@@ -264949,7 +264957,7 @@ const sqn = ({
264949
264957
  isCollabDocumentPublished: r,
264950
264958
  disableInlineComment: o
264951
264959
  }) => {
264952
- const { comments: i, username: a, dropdownRef: s, setIsBubbleMenuSuppressed: l } = _1(), u = Ue(o || !1), [c, d] = Ie(!1);
264960
+ const { comments: i, username: a, dropdownRef: s, setIsBubbleMenuSuppressed: l } = _1(), u = Ue(o || !1), [c, d] = _e(!1);
264953
264961
  Be(() => {
264954
264962
  u.current = o || !1;
264955
264963
  }, [o]), C5(s, (p) => {
@@ -265069,16 +265077,16 @@ function OM(e) {
265069
265077
  const t = Ue(e);
265070
265078
  return Xl(() => {
265071
265079
  t.current = e;
265072
- }), _e(function() {
265080
+ }), Ie(function() {
265073
265081
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
265074
265082
  r[o] = arguments[o];
265075
265083
  return t.current == null ? void 0 : t.current(...r);
265076
265084
  }, []);
265077
265085
  }
265078
265086
  function mqn() {
265079
- const e = Ue(null), t = _e((r, o) => {
265087
+ const e = Ue(null), t = Ie((r, o) => {
265080
265088
  e.current = setInterval(r, o);
265081
- }, []), n = _e(() => {
265089
+ }, []), n = Ie(() => {
265082
265090
  e.current !== null && (clearInterval(e.current), e.current = null);
265083
265091
  }, []);
265084
265092
  return [t, n];
@@ -265102,7 +265110,7 @@ function Tv(e, t) {
265102
265110
  );
265103
265111
  }
265104
265112
  function jk(e) {
265105
- const t = OM(e), n = Ue(null), r = _e(
265113
+ const t = OM(e), n = Ue(null), r = Ie(
265106
265114
  (o) => {
265107
265115
  o !== n.current && (t == null || t(o, n.current)), n.current = o;
265108
265116
  },
@@ -265274,9 +265282,9 @@ function kqn(e) {
265274
265282
  }, n);
265275
265283
  }
265276
265284
  function Fqn() {
265277
- const [e, t] = Ie("");
265285
+ const [e, t] = _e("");
265278
265286
  return {
265279
- announce: _e((r) => {
265287
+ announce: Ie((r) => {
265280
265288
  r != null && t(r);
265281
265289
  }, []),
265282
265290
  announcement: e
@@ -265292,8 +265300,8 @@ function Cqn(e) {
265292
265300
  }, [e, t]);
265293
265301
  }
265294
265302
  function Dqn() {
265295
- const [e] = Ie(() => /* @__PURE__ */ new Set()), t = _e((r) => (e.add(r), () => e.delete(r)), [e]);
265296
- return [_e((r) => {
265303
+ const [e] = _e(() => /* @__PURE__ */ new Set()), t = Ie((r) => (e.add(r), () => e.delete(r)), [e]);
265304
+ return [Ie((r) => {
265297
265305
  let {
265298
265306
  type: o,
265299
265307
  event: i
@@ -265348,7 +265356,7 @@ function Aqn(e) {
265348
265356
  const {
265349
265357
  announce: i,
265350
265358
  announcement: a
265351
- } = Fqn(), s = jv("DndLiveRegion"), [l, u] = Ie(!1);
265359
+ } = Fqn(), s = jv("DndLiveRegion"), [l, u] = _e(!1);
265352
265360
  if (Be(() => {
265353
265361
  u(!0);
265354
265362
  }, []), Cqn(ot(() => ({
@@ -266324,7 +266332,7 @@ function aVn(e) {
266324
266332
  case T4.DraggableRect:
266325
266333
  return o;
266326
266334
  }
266327
- }, [n, o, l]), v = Ue(null), x = _e(() => {
266335
+ }, [n, o, l]), v = Ue(null), x = Ie(() => {
266328
266336
  const F = v.current;
266329
266337
  if (!F)
266330
266338
  return;
@@ -266451,11 +266459,11 @@ function dVn(e, t) {
266451
266459
  dependencies: r,
266452
266460
  config: o
266453
266461
  } = t;
266454
- const [i, a] = Ie(null), {
266462
+ const [i, a] = _e(null), {
266455
266463
  frequency: s,
266456
266464
  measure: l,
266457
266465
  strategy: u
266458
- } = o, c = Ue(e), d = m(), f = H6(d), h = _e(function(y) {
266466
+ } = o, c = Ue(e), d = m(), f = H6(d), h = Ie(function(y) {
266459
266467
  y === void 0 && (y = []), !f.current && a((b) => b === null ? y : b.concat(y.filter((v) => !b.includes(v))));
266460
266468
  }, [f]), p = Ue(null), g = Tv((y) => {
266461
266469
  if (d && !n)
@@ -266559,7 +266567,7 @@ function pVn(e) {
266559
266567
  }
266560
266568
  function lse(e, t, n) {
266561
266569
  t === void 0 && (t = pVn);
266562
- const [r, o] = Ie(null);
266570
+ const [r, o] = _e(null);
266563
266571
  function i() {
266564
266572
  o((l) => {
266565
266573
  if (!e)
@@ -266608,7 +266616,7 @@ function mVn(e) {
266608
266616
  }, [e]), n;
266609
266617
  }
266610
266618
  function yVn(e) {
266611
- const [t, n] = Ie(null), r = Ue(e), o = _e((i) => {
266619
+ const [t, n] = _e(null), r = Ue(e), o = Ie((i) => {
266612
266620
  const a = fL(i.target);
266613
266621
  a && n((s) => s ? (s.set(a, rO(a)), new Map(s)) : null);
266614
266622
  }, []);
@@ -266692,7 +266700,7 @@ function rMe(e) {
266692
266700
  const dse = [];
266693
266701
  function xVn(e, t) {
266694
266702
  t === void 0 && (t = x3);
266695
- const [n] = e, r = rMe(n ? Yi(n) : null), [o, i] = Ie(dse);
266703
+ const [n] = e, r = rMe(n ? Yi(n) : null), [o, i] = _e(dse);
266696
266704
  function a() {
266697
266705
  i(() => e.length ? e.map((l) => XDe(l) ? r : new UW(t(l), l)) : dse);
266698
266706
  }
@@ -266715,7 +266723,7 @@ function wVn(e) {
266715
266723
  let {
266716
266724
  measure: t
266717
266725
  } = e;
266718
- const [n, r] = Ie(null), o = _e((u) => {
266726
+ const [n, r] = _e(null), o = Ie((u) => {
266719
266727
  for (const {
266720
266728
  target: c
266721
266729
  } of u)
@@ -266732,7 +266740,7 @@ function wVn(e) {
266732
266740
  }
266733
266741
  }, [t]), i = PM({
266734
266742
  callback: o
266735
- }), a = _e((u) => {
266743
+ }), a = Ie((u) => {
266736
266744
  const c = oMe(u);
266737
266745
  i == null || i.disconnect(), c && (i == null || i.observe(c)), r(c ? t(c) : null);
266738
266746
  }, [t, i]), [s, l] = jk(a);
@@ -267055,7 +267063,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267055
267063
  modifiers: h,
267056
267064
  ...p
267057
267065
  } = t;
267058
- const g = Nse(MVn, void 0, DVn), [m, y] = g, [b, v] = Dqn(), [x, w] = Ie(Id.Uninitialized), F = x === Id.Initialized, {
267066
+ const g = Nse(MVn, void 0, DVn), [m, y] = g, [b, v] = Dqn(), [x, w] = _e(Id.Uninitialized), F = x === Id.Initialized, {
267059
267067
  draggable: {
267060
267068
  active: C,
267061
267069
  nodes: D,
@@ -267075,7 +267083,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267075
267083
  data: (Ge = _ == null ? void 0 : _.data) != null ? Ge : FVn,
267076
267084
  rect: S
267077
267085
  } : null;
267078
- }, [C, _]), E = Ue(null), [j, N] = Ie(null), [I, B] = Ie(null), U = H6(p, Object.values(p)), $ = jv("DndDescribedBy", a), q = ot(() => R.getEnabled(), [R]), z = AVn(f), {
267086
+ }, [C, _]), E = Ue(null), [j, N] = _e(null), [I, B] = _e(null), U = H6(p, Object.values(p)), $ = jv("DndDescribedBy", a), q = ot(() => R.getEnabled(), [R]), z = AVn(f), {
267079
267087
  droppableRects: Y,
267080
267088
  measureDroppableContainers: se,
267081
267089
  measuringScheduled: oe
@@ -267129,7 +267137,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267129
267137
  droppableRects: Y,
267130
267138
  droppableContainers: q,
267131
267139
  pointerCoordinates: pe
267132
- }) : null, we = Iqn(me, "id"), [ve, Se] = Ie(null), Le = J ? xe : mg(xe, H), ye = Pqn(Le, (i = ve == null ? void 0 : ve.rect) != null ? i : null, P), je = Ue(null), Pe = _e(
267140
+ }) : null, we = Iqn(me, "id"), [ve, Se] = _e(null), Le = J ? xe : mg(xe, H), ye = Pqn(Le, (i = ve == null ? void 0 : ve.rect) != null ? i : null, P), je = Ue(null), Pe = Ie(
267133
267141
  (Ge, Ve) => {
267134
267142
  let {
267135
267143
  sensor: Ke,
@@ -267254,7 +267262,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
267254
267262
  },
267255
267263
  // eslint-disable-next-line react-hooks/exhaustive-deps
267256
267264
  [D]
267257
- ), We = _e((Ge, Ve) => (Ke, yt) => {
267265
+ ), We = Ie((Ge, Ve) => (Ke, yt) => {
267258
267266
  const lt = Ke.nativeEvent, Dt = D.get(yt);
267259
267267
  if (
267260
267268
  // Another sensor is already instantiating
@@ -267505,7 +267513,7 @@ function BVn(e) {
267505
267513
  } = {
267506
267514
  ...IVn,
267507
267515
  ...o
267508
- }, y = H6(g ?? r), b = _e(
267516
+ }, y = H6(g ?? r), b = Ie(
267509
267517
  () => {
267510
267518
  if (!d.current) {
267511
267519
  d.current = !0;
@@ -267520,7 +267528,7 @@ function BVn(e) {
267520
267528
  ), v = PM({
267521
267529
  callback: b,
267522
267530
  disabled: p || !a
267523
- }), x = _e((D, T) => {
267531
+ }), x = Ie((D, T) => {
267524
267532
  v && (T && (v.unobserve(T), d.current = !1), D && v.observe(D));
267525
267533
  }, [v]), [w, F] = jk(x), C = H6(t);
267526
267534
  return Be(() => {
@@ -267564,7 +267572,7 @@ function OVn(e) {
267564
267572
  animation: t,
267565
267573
  children: n
267566
267574
  } = e;
267567
- const [r, o] = Ie(null), [i, a] = Ie(null), s = Lk(n);
267575
+ const [r, o] = _e(null), [i, a] = _e(null), s = Lk(n);
267568
267576
  return !n && !r && s && o(s), Xl(() => {
267569
267577
  if (!i)
267570
267578
  return;
@@ -268021,7 +268029,7 @@ function sWn(e) {
268021
268029
  node: r,
268022
268030
  rect: o
268023
268031
  } = e;
268024
- const [i, a] = Ie(null), s = Ue(n);
268032
+ const [i, a] = _e(null), s = Ue(n);
268025
268033
  return Xl(() => {
268026
268034
  if (!t && n !== s.current && r.current) {
268027
268035
  const l = o.current;
@@ -268208,7 +268216,7 @@ const pMe = $i(
268208
268216
  orientation: r
268209
268217
  // onItemRemove,
268210
268218
  }) => {
268211
- const o = _e(
268219
+ const o = Ie(
268212
268220
  (s) => {
268213
268221
  s.preventDefault(), s.stopPropagation(), t(s, e.id);
268214
268222
  },
@@ -268247,10 +268255,10 @@ const gMe = $i(() => /* @__PURE__ */ M.jsx("p", { className: "text-helper-text-s
268247
268255
  gMe.displayName = "ToCEmptyState";
268248
268256
  const mMe = $i(
268249
268257
  ({ items: e = [], editor: t, setItems: n, orientation: r }) => {
268250
- const [o, i] = Ie(null), a = Br("(max-width: 1280px)"), s = Ue(null), l = Ue(0), u = Ue(null), c = ot(() => e.map((m) => ({
268258
+ const [o, i] = _e(null), a = Br("(max-width: 1280px)"), s = Ue(null), l = Ue(0), u = Ue(null), c = ot(() => e.map((m) => ({
268251
268259
  ...m,
268252
268260
  isActive: m.id === o
268253
- })), [e, o]), d = _e(() => {
268261
+ })), [e, o]), d = Ie(() => {
268254
268262
  var m;
268255
268263
  if (t && ((m = t.view) != null && m.dom) && (!s.current || Date.now() - l.current > 250)) {
268256
268264
  const y = /* @__PURE__ */ new Map();
@@ -268272,7 +268280,7 @@ const mMe = $i(
268272
268280
  t.off("update", m), t.off("selectionUpdate", m), u.current && cancelAnimationFrame(u.current);
268273
268281
  };
268274
268282
  }, [t, d]);
268275
- const f = _e(
268283
+ const f = Ie(
268276
268284
  (m) => {
268277
268285
  if (!t) return;
268278
268286
  const { doc: y } = t.state;
@@ -268287,7 +268295,7 @@ const mMe = $i(
268287
268295
  }), b !== -1 && t.chain().setNodeSelection(b).updateAttributes("heading", { isCollapsed: !1 }).run();
268288
268296
  },
268289
268297
  [t]
268290
- ), h = _e(
268298
+ ), h = Ie(
268291
268299
  (m) => {
268292
268300
  if (!t) return;
268293
268301
  f(m);
@@ -268315,7 +268323,7 @@ const mMe = $i(
268315
268323
  }
268316
268324
  },
268317
268325
  [e, t, f]
268318
- ), p = _e(
268326
+ ), p = Ie(
268319
268327
  (m, y) => {
268320
268328
  var b;
268321
268329
  if (m.preventDefault(), m.stopPropagation(), i(y), t && ((b = t.view) != null && b.dom)) {
@@ -268350,7 +268358,7 @@ const mMe = $i(
268350
268358
  }
268351
268359
  },
268352
268360
  [t, h, d, a]
268353
- ), g = _e(
268361
+ ), g = Ie(
268354
268362
  (m, y) => {
268355
268363
  m.preventDefault(), m.stopPropagation(), n((b) => {
268356
268364
  var w;
@@ -268548,7 +268556,7 @@ function FWn(e) {
268548
268556
  return t = e(s, a), { get: a, set: s, subscribe: l };
268549
268557
  }
268550
268558
  function CWn(e) {
268551
- let [t] = Ie(e);
268559
+ let [t] = _e(e);
268552
268560
  return t;
268553
268561
  }
268554
268562
  function DWn(e) {
@@ -268560,14 +268568,14 @@ function DWn(e) {
268560
268568
  }, Provider: ({ store: n, children: r }) => M.jsx(t.Provider, { value: n, children: r }) };
268561
268569
  }
268562
268570
  function ds(e, t, n = Object.is) {
268563
- let [r, o] = Ie(() => t(e.get()));
268571
+ let [r, o] = _e(() => t(e.get()));
268564
268572
  return Be(() => e.subscribe(() => {
268565
268573
  let i = t(e.get());
268566
268574
  o((a) => n(a, i) ? a : i);
268567
268575
  }), [e, t, n]), Ok(r), r;
268568
268576
  }
268569
268577
  function zu(e, t, n) {
268570
- let r = _e((o) => o[t], [t]);
268578
+ let r = Ie((o) => o[t], [t]);
268571
268579
  return ds(e, r, n);
268572
268580
  }
268573
268581
  var Cse = 2;
@@ -268664,7 +268672,7 @@ function MMe() {
268664
268672
  return iEe(t);
268665
268673
  }
268666
268674
  function EMe(e = "✋") {
268667
- let t = Ia(), n = zu(t, "skinTone"), r = ot(() => PWn(e), [e]), o = _e((i) => {
268675
+ let t = Ia(), n = zu(t, "skinTone"), r = ot(() => PWn(e), [e]), o = Ie((i) => {
268668
268676
  t.set({ skinTone: i });
268669
268677
  }, []);
268670
268678
  return [n, o, r];
@@ -268695,10 +268703,10 @@ function HWn(e) {
268695
268703
  let t = Ue(e);
268696
268704
  return xl(() => {
268697
268705
  t.current = e;
268698
- }), _e((...n) => t.current(...n), []);
268706
+ }), Ie((...n) => t.current(...n), []);
268699
268707
  }
268700
268708
  function qWn({ emojiVersion: e, emojibaseUrl: t }) {
268701
- let [n, r] = Ie(void 0), o = Ia(), i = zu(o, "locale"), a = zu(o, "columns"), s = zu(o, "skinTone"), l = zu(o, "search");
268709
+ let [n, r] = _e(void 0), o = Ia(), i = zu(o, "locale"), a = zu(o, "columns"), s = zu(o, "skinTone"), l = zu(o, "search");
268702
268710
  return Be(() => {
268703
268711
  let u = new AbortController(), c = u.signal;
268704
268712
  return vWn({ locale: i, emojiVersion: e, emojibaseUrl: t, signal: c }).then((d) => {
@@ -268715,7 +268723,7 @@ function qWn({ emojiVersion: e, emojibaseUrl: t }) {
268715
268723
  }, [n, a, s, l]), null;
268716
268724
  }
268717
268725
  var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiSelect: r = zWn, emojiVersion: o, emojibaseUrl: i, onFocusCapture: a, onBlurCapture: s, children: l, style: u, sticky: c = !0, ...d }, f) => {
268718
- let h = HWn(r), p = CWn(() => MWn(h, kse(e), t, c, Fse(n))), [g, m] = Ie(!1), y = Ue(null), b = _e((w) => {
268726
+ let h = HWn(r), p = CWn(() => MWn(h, kse(e), t, c, Fse(n))), [g, m] = _e(!1), y = Ue(null), b = Ie((w) => {
268719
268727
  w && (y.current = w, p.set({ rootRef: y }));
268720
268728
  }, []);
268721
268729
  xl(() => {
@@ -268727,11 +268735,11 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
268727
268735
  }, [c]), xl(() => {
268728
268736
  p.set({ skinTone: Fse(n) });
268729
268737
  }, [n]);
268730
- let v = _e((w) => {
268738
+ let v = Ie((w) => {
268731
268739
  a == null || a(w);
268732
268740
  let { searchRef: F, viewportRef: C } = p.get(), D = w.target === (F == null ? void 0 : F.current) || w.target.hasAttribute("frimousse-search"), T = w.target === (C == null ? void 0 : C.current) || w.target.hasAttribute("frimousse-viewport");
268733
268741
  w.isDefaultPrevented() || (m(D || T), w.isDefaultPrevented() || (m(D || T), T ? p.get().onActiveEmojiChange("keyboard", 0, 0) : D && p.get().search === "" && p.set({ interaction: "none" })));
268734
- }, [a]), x = _e((w) => {
268742
+ }, [a]), x = Ie((w) => {
268735
268743
  s == null || s(w), !w.isDefaultPrevented() && !w.currentTarget.contains(w.relatedTarget) && m(!1);
268736
268744
  }, [s]);
268737
268745
  return xl(() => {
@@ -268788,7 +268796,7 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
268788
268796
  return R && y.current.style.setProperty("--frimousse-viewport-width", `${R}px`), _ && y.current.style.setProperty("--frimousse-viewport-height", `${_}px`), S && y.current.style.setProperty("--frimousse-row-height", `${S}px`), L && y.current.style.setProperty("--frimousse-category-header-height", `${L}px`), T;
268789
268797
  }, []), M.jsx("div", { "data-focused": g ? "" : void 0, "frimousse-root": "", onBlurCapture: x, onFocusCapture: v, ...d, ref: b, style: { "--frimousse-emoji-font": bMe, ...u }, children: M.jsxs(EWn, { store: p, children: [M.jsx(qWn, { emojiVersion: o, emojibaseUrl: i }), l] }) });
268790
268798
  }), SMe = dn(({ value: e, defaultValue: t, onChange: n, ...r }, o) => {
268791
- let i = Ia(), a = Ue(null), s = _e((d) => {
268799
+ let i = Ia(), a = Ue(null), s = Ie((d) => {
268792
268800
  d && (a.current = d, i.set({ searchRef: a }));
268793
268801
  }, []), l = typeof e == "string", u = Ue(l);
268794
268802
  Be(() => {
@@ -268798,7 +268806,7 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
268798
268806
  }, []), xl(() => {
268799
268807
  typeof e == "string" && i.get().onSearchChange(e);
268800
268808
  }, [e]);
268801
- let c = _e((d) => {
268809
+ let c = Ie((d) => {
268802
268810
  n == null || n(d), d.isDefaultPrevented() || i.get().onSearchChange(d.target.value);
268803
268811
  }, [n]);
268804
268812
  return bm(o, () => a.current), M.jsx("input", { autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", enterKeyHint: "done", "frimousse-search": "", placeholder: "Search…", spellCheck: !1, type: "search", ...r, defaultValue: t, onChange: c, ref: s, value: e });
@@ -268806,9 +268814,9 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
268806
268814
  let e = MMe();
268807
268815
  return e ? M.jsx("div", { "aria-live": "polite", style: { border: 0, clip: "rect(0, 0, 0, 0)", height: 1, margin: -1, overflow: "hidden", padding: 0, position: "absolute", whiteSpace: "nowrap", width: 1, wordWrap: "normal" }, children: e.label }) : null;
268808
268816
  }), TMe = dn(({ children: e, onScroll: t, onKeyDown: n, style: r, ...o }, i) => {
268809
- let a = Ia(), s = Ue(null), l = _e((f) => {
268817
+ let a = Ia(), s = Ue(null), l = Ie((f) => {
268810
268818
  f && (s.current = f, a.set({ viewportRef: s }));
268811
- }, []), u = ds(a, CMe), c = ds(a, jWn), d = _e((f) => {
268819
+ }, []), u = ds(a, CMe), c = ds(a, jWn), d = Ie((f) => {
268812
268820
  t == null || t(f), a.get().onViewportScroll(f.currentTarget.scrollTop);
268813
268821
  }, [t]);
268814
268822
  return xl(() => {
@@ -268848,11 +268856,11 @@ var $Wn = $i(({ Emoji: e, emoji: t, columnIndex: n, rowIndex: r }) => {
268848
268856
  let o = Ia(), i = ds(o, (u) => {
268849
268857
  var c;
268850
268858
  return ((c = $W(u)) == null ? void 0 : c.emoji) === t.emoji;
268851
- }), a = _e(() => {
268859
+ }), a = Ie(() => {
268852
268860
  o.get().onEmojiSelect(t);
268853
- }, [t]), s = _e(() => {
268861
+ }, [t]), s = Ie(() => {
268854
268862
  o.get().onActiveEmojiChange("pointer", n, r);
268855
- }, [n, r]), l = _e(() => {
268863
+ }, [n, r]), l = Ie(() => {
268856
268864
  o.get().onActiveEmojiReset();
268857
268865
  }, []);
268858
268866
  return M.jsx(e, { ...jMe(t, n, i), onClick: a, onPointerDown: WWn, onPointerEnter: s, onPointerLeave: l });
@@ -268897,7 +268905,7 @@ function XWn({ ...e }) {
268897
268905
  return M.jsx("div", { ...e });
268898
268906
  }
268899
268907
  var IMe = dn(({ style: e, components: t, ...n }, r) => {
268900
- let o = Ia(), i = Ue(null), a = _e((y) => {
268908
+ let o = Ia(), i = Ue(null), a = Ie((y) => {
268901
268909
  y && (i.current = y, o.set({ listRef: i }));
268902
268910
  }, []), s = (t == null ? void 0 : t.CategoryHeader) ?? KWn, l = (t == null ? void 0 : t.Emoji) ?? YWn, u = (t == null ? void 0 : t.Row) ?? XWn, c = zu(o, "columns"), d = zu(o, "viewportStartRowIndex"), f = zu(o, "viewportEndRowIndex"), h = ds(o, CMe), p = ds(o, LWn, GW), g = ot(() => (p == null ? void 0 : p.filter((y) => y < d).length) ?? 0, [p, d]), m = (p == null ? void 0 : p.length) ?? 0;
268903
268911
  return bm(r, () => i.current), !h || !p || m === 0 ? M.jsx("div", { ...Ese(c, 0, e), ...n, children: M.jsx("div", { ...Mse(0, 0, 0, 0), children: M.jsx(Ase, { CategoryHeader: s, Emoji: l, Row: u }) }) }) : M.jsx("div", { ...Ese(c, h, e), ...n, ref: a, children: M.jsxs("div", { ...Mse(h, m, d, g), children: [M.jsx(Ase, { CategoryHeader: s, Emoji: l, Row: u }), Array.from({ length: f - d + 1 }, (y, b) => {
@@ -268905,7 +268913,7 @@ var IMe = dn(({ style: e, components: t, ...n }, r) => {
268905
268913
  return M.jsxs(G1, { children: [x >= 0 && M.jsx("div", { style: { height: "var(--frimousse-category-header-height)" } }), M.jsx(GWn, { Emoji: l, Row: u, rowIndex: v })] }, v);
268906
268914
  }), Array.from({ length: m }, (y, b) => M.jsx(ZWn, { CategoryHeader: s, categoryIndex: b }, b))] }) });
268907
268915
  }), BMe = dn(({ emoji: e, onClick: t, "aria-label": n = "Change skin tone", ...r }, o) => {
268908
- let i = Ia(), a = ds(i, NWn, GW), [s, l, u] = EMe(e), c = ot(() => Math.max(0, u.findIndex((m) => m.skinTone === s)), [s, u]), d = u[c], f = u[(c + 1) % u.length].skinTone, h = s === "none" || a == null ? void 0 : a[s], p = f === "none" || a == null ? void 0 : a[f], g = _e((m) => {
268916
+ let i = Ia(), a = ds(i, NWn, GW), [s, l, u] = EMe(e), c = ot(() => Math.max(0, u.findIndex((m) => m.skinTone === s)), [s, u]), d = u[c], f = u[(c + 1) % u.length].skinTone, h = s === "none" || a == null ? void 0 : a[s], p = f === "none" || a == null ? void 0 : a[f], g = Ie((m) => {
268909
268917
  t == null || t(m), m.isDefaultPrevented() || l(f);
268910
268918
  }, [t, l, f]);
268911
268919
  return M.jsx("button", { type: "button", ...r, "aria-label": n + (p ? ` (${p})` : ""), "aria-live": "polite", "aria-valuetext": h, "frimousse-skin-tone-selector": "", onClick: g, ref: o, children: d.emoji });
@@ -269043,29 +269051,31 @@ const o$n = [
269043
269051
  emoji: e,
269044
269052
  setEmoji: t,
269045
269053
  isEditing: n,
269046
- openPickerTrigger: r = 0
269054
+ openPickerTrigger: r = 0,
269055
+ disableEmoji: o
269047
269056
  }) => {
269048
- const [o, i] = Ie(!1), a = Ue(null), s = Ue(null), [l, u] = Ie(!1), c = Br("(max-width: 1000px)", { defaultValue: !0 });
269049
- return C5([a, s], (d) => {
269050
- a.current && // eslint-disable-next-line @typescript-eslint/ban-ts-comment
269057
+ const [i, a] = _e(!1), s = Ue(null), l = Ue(null), [u, c] = _e(!1), d = Br("(max-width: 1000px)", { defaultValue: !0 });
269058
+ return C5([s, l], (f) => {
269059
+ s.current && // eslint-disable-next-line @typescript-eslint/ban-ts-comment
269051
269060
  // @ts-ignore
269052
- !a.current.contains(d.target) && i(!1);
269061
+ !s.current.contains(f.target) && a(!1);
269053
269062
  }), Be(() => {
269054
- r <= 0 || (u(!1), i(!0));
269063
+ r <= 0 || (c(!1), a(!0));
269055
269064
  }, [r]), /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
269056
269065
  e ? /* @__PURE__ */ M.jsxs(
269057
269066
  E1,
269058
269067
  {
269059
- onOpenChange: (d) => {
269060
- d || u(!1);
269068
+ onOpenChange: (f) => {
269069
+ f || c(!1);
269061
269070
  },
269062
- open: l,
269071
+ open: u,
269063
269072
  children: [
269064
269073
  /* @__PURE__ */ M.jsx(
269065
269074
  A1,
269066
269075
  {
269067
269076
  "data-emoji-picker": !0,
269068
- onClick: (d) => d.stopPropagation(),
269077
+ onClick: (f) => f.stopPropagation(),
269078
+ disabled: o,
269069
269079
  children: /* @__PURE__ */ M.jsx(
269070
269080
  Vt,
269071
269081
  {
@@ -269073,8 +269083,8 @@ const o$n = [
269073
269083
  className: Ae(
269074
269084
  "!min-w-[16px] !min-h-[16px] !w-[16px] !h-[16px] !p-0 flex items-center justify-center !hover:bg-transparent"
269075
269085
  ),
269076
- onClick: (d) => {
269077
- d.preventDefault(), o && i(!1), u(!l);
269086
+ onClick: (f) => {
269087
+ f.preventDefault(), i && a(!1), c(!u);
269078
269088
  },
269079
269089
  children: /* @__PURE__ */ M.jsx("span", { className: " text-[16px] leading-[16px] w-[16px] flex items-center justify-center", children: e })
269080
269090
  }
@@ -269095,7 +269105,7 @@ const o$n = [
269095
269105
  "div",
269096
269106
  {
269097
269107
  onClick: () => {
269098
- i(!0), u(!1);
269108
+ a(!0), c(!1);
269099
269109
  },
269100
269110
  className: "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30px] border-radius-sm flex items-center",
269101
269111
  children: [
@@ -269108,7 +269118,7 @@ const o$n = [
269108
269118
  "div",
269109
269119
  {
269110
269120
  onClick: () => {
269111
- t(""), u(!1);
269121
+ t(""), c(!1);
269112
269122
  },
269113
269123
  className: Ae(
269114
269124
  "space-xsm cursor-pointer min-w-[144px] gap-xsm hover:color-bg-default-hover border-radius-sm h-[30px] color-border-default flex items-center"
@@ -269127,32 +269137,32 @@ const o$n = [
269127
269137
  ) : /* @__PURE__ */ M.jsx("div", { className: "flex items-center", "data-emoji-picker": !0, children: /* @__PURE__ */ M.jsx(Nn, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ M.jsx(
269128
269138
  qe,
269129
269139
  {
269130
- ref: s,
269140
+ ref: l,
269131
269141
  onClick: () => {
269132
- i(!o);
269142
+ o || a(!i);
269133
269143
  },
269134
269144
  name: n ? "SmilePlus" : "FileText",
269135
269145
  className: "w-[16px] shrink-0"
269136
269146
  }
269137
269147
  ) }) }),
269138
- o && /* @__PURE__ */ M.jsx(
269148
+ i && /* @__PURE__ */ M.jsx(
269139
269149
  "div",
269140
269150
  {
269141
269151
  "data-emoji-picker": !0,
269142
- ref: a,
269152
+ ref: s,
269143
269153
  className: Ae(
269144
269154
  "absolute top-[35px] z-10 ",
269145
- c ? "left-[42px]" : "left-[9px]"
269155
+ d ? "left-[42px]" : "left-[9px]"
269146
269156
  ),
269147
269157
  children: /* @__PURE__ */ M.jsxs(
269148
269158
  s$n,
269149
269159
  {
269150
269160
  className: Ae(
269151
269161
  "color-bg-default rounded-lg border shadow-md",
269152
- c ? "h-[287px]" : "h-[340px]"
269162
+ d ? "h-[287px]" : "h-[340px]"
269153
269163
  ),
269154
- onEmojiSelect: ({ emoji: d }) => {
269155
- t(d), i(!1);
269164
+ onEmojiSelect: ({ emoji: f }) => {
269165
+ t(f), a(!1);
269156
269166
  },
269157
269167
  children: [
269158
269168
  /* @__PURE__ */ M.jsx(l$n, {}),
@@ -269356,7 +269366,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269356
269366
  isPreviewMode: y,
269357
269367
  isVersionHistoryMode: b
269358
269368
  }) => {
269359
- const [v, x] = Ie(!1), [w, F] = Ie(0), [C, D] = Ie(t), T = Ue(C);
269369
+ const [v, x] = _e(!1), [w, F] = _e(0), [C, D] = _e(t), T = Ue(C);
269360
269370
  Be(() => {
269361
269371
  v || D(t);
269362
269372
  }, [t, v]);
@@ -269367,7 +269377,21 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269367
269377
  D(N), o(N), x(!1);
269368
269378
  }, S = () => {
269369
269379
  D(T.current), x(!1);
269370
- }, L = [
269380
+ }, j = y ? [
269381
+ [
269382
+ {
269383
+ id: "copy-link",
269384
+ label: "Copy link",
269385
+ icon: "Share2"
269386
+ },
269387
+ {
269388
+ id: "toggle-outline",
269389
+ label: d ? "Hide outline" : "Show outline",
269390
+ icon: "List",
269391
+ onSelect: () => f == null ? void 0 : f(!d)
269392
+ }
269393
+ ]
269394
+ ] : [
269371
269395
  [
269372
269396
  {
269373
269397
  id: "rename",
@@ -269417,21 +269441,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269417
269441
  visible: h
269418
269442
  }
269419
269443
  ]
269420
- ], E = [
269421
- [
269422
- {
269423
- id: "copy-link",
269424
- label: "Copy link",
269425
- icon: "Share2"
269426
- },
269427
- {
269428
- id: "toggle-outline",
269429
- label: d ? "Hide outline" : "Show outline",
269430
- icon: "List",
269431
- onSelect: () => f == null ? void 0 : f(!d)
269432
- }
269433
- ]
269434
- ], j = ot(() => y ? E : L, [y]);
269444
+ ];
269435
269445
  return /* @__PURE__ */ M.jsxs(
269436
269446
  "div",
269437
269447
  {
@@ -269451,6 +269461,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269451
269461
  setEmoji: (N) => {
269452
269462
  x(!1), i(N);
269453
269463
  },
269464
+ disableEmoji: !!(y || b),
269454
269465
  isEditing: v,
269455
269466
  openPickerTrigger: w
269456
269467
  }
@@ -269473,7 +269484,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269473
269484
  ) : /* @__PURE__ */ M.jsx("span", { className: "text-heading-xsm color-text-default flex-1 truncate select-none", children: C })
269474
269485
  ] }),
269475
269486
  !b && /* @__PURE__ */ M.jsxs("div", { className: "flex gap-[8px] items-center", children: [
269476
- /* @__PURE__ */ M.jsx("span", { className: "h-[18px] color-text-default text-[12px] text-helper-text-bold rounded-full min-w-[18px] text-center color-bg-tertiary", children: r }),
269487
+ r > 0 && /* @__PURE__ */ M.jsx("span", { className: "h-[18px] color-text-default text-[12px] text-helper-text-bold rounded-full min-w-[18px] text-center color-bg-tertiary", children: r }),
269477
269488
  !c && /* @__PURE__ */ M.jsx(b$n, { sections: j })
269478
269489
  ] })
269479
269490
  ]
@@ -269553,30 +269564,30 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269553
269564
  tabCommentCounts: m,
269554
269565
  isVersionHistoryMode: y
269555
269566
  }) => {
269556
- const b = (T, R) => {
269557
- f(T, { newName: R });
269558
- }, v = (T, R) => {
269559
- f(T, { emoji: R });
269567
+ const b = (S, L) => {
269568
+ f(S, { newName: L });
269569
+ }, v = (S, L) => {
269570
+ f(S, { emoji: L });
269560
269571
  }, x = Tqn(
269561
269572
  Sqn(qW, { activationConstraint: { distance: 5 } })
269562
- ), [w, F] = Ie(null), C = ot(
269563
- () => e.find((T) => T.id === t),
269573
+ ), [w, F] = _e(null), C = ot(
269574
+ () => e.find((S) => S.id === t),
269564
269575
  [e, t]
269565
269576
  ), D = ot(
269566
- () => e.find((T) => T.id === w),
269577
+ () => e.find((S) => S.id === w),
269567
269578
  [e, w]
269568
- );
269579
+ ), [T, R] = _e(!1), _ = !r && T;
269569
269580
  return /* @__PURE__ */ M.jsxs(
269570
269581
  TVn,
269571
269582
  {
269572
269583
  sensors: x,
269573
269584
  collisionDetection: Bqn,
269574
- onDragStart: (T) => F(T.active.id),
269575
- onDragEnd: (T) => {
269576
- const { active: R, over: _ } = T;
269577
- if (F(null), _ && R.id !== _.id) {
269578
- const S = R.id, L = _.id;
269579
- p(L, S);
269585
+ onDragStart: (S) => F(S.active.id),
269586
+ onDragEnd: (S) => {
269587
+ const { active: L, over: E } = S;
269588
+ if (F(null), E && L.id !== E.id) {
269589
+ const j = L.id, N = E.id;
269590
+ p(N, j);
269580
269591
  }
269581
269592
  },
269582
269593
  children: [
@@ -269584,7 +269595,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269584
269595
  tWn,
269585
269596
  {
269586
269597
  disabled: a || y,
269587
- items: e.map((T) => T.id),
269598
+ items: e.map((S) => S.id),
269588
269599
  strategy: QVn,
269589
269600
  children: /* @__PURE__ */ M.jsxs(
269590
269601
  "div",
@@ -269604,10 +269615,13 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269604
269615
  "button",
269605
269616
  {
269606
269617
  type: "button",
269607
- onClick: () => o == null ? void 0 : o((T) => !T),
269618
+ onMouseEnter: () => !r && R(!0),
269619
+ onMouseLeave: () => R(!1),
269620
+ onClick: () => o == null ? void 0 : o((S) => !S),
269608
269621
  className: dt(
269609
- "group flex items-center h-[30px] gap-[8px] !min-w-[30px] min-h-[30px] p-[8px] rounded-full hover:color-bg-secondary-hover transition-[width,background-color] duration-200 ease-out overflow-hidden",
269610
- !r && "hover:min-w-[156px]"
269622
+ "group flex items-center h-[30px] !min-w-[30px] min-h-[30px] p-[8px] rounded-full hover:color-bg-secondary-hover transition-[width,background-color] duration-200 ease-out overflow-hidden",
269623
+ !r && "hover:min-w-[156px] gap-[8px]",
269624
+ e.length > 0 && !r && "color-bg-secondary-hover"
269611
269625
  ),
269612
269626
  children: [
269613
269627
  /* @__PURE__ */ M.jsx(
@@ -269620,8 +269634,8 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269620
269634
  /* @__PURE__ */ M.jsx(
269621
269635
  "span",
269622
269636
  {
269623
- className: `whitespace-nowrap text-heading-xsm color-text-default max-w-[110px] truncate opacity-0 ${r ? "hidden" : "group-hover:opacity-100 "} transition-opacity duration-150`,
269624
- children: e.length > 1 ? e.length : C == null ? void 0 : C.name
269637
+ className: "whitespace-nowrap text-heading-xsm color-text-default max-w-[110px] truncate transition-opacity duration-150",
269638
+ children: _ ? C == null ? void 0 : C.name : r ? null : e.length
269625
269639
  }
269626
269640
  )
269627
269641
  ]
@@ -269643,15 +269657,15 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269643
269657
  }
269644
269658
  )
269645
269659
  ] }) }),
269646
- e.map((T, R) => /* @__PURE__ */ M.jsx(
269660
+ e.map((S, L) => /* @__PURE__ */ M.jsx(
269647
269661
  x$n,
269648
269662
  {
269649
- tab: T,
269650
- tabIndex: R,
269663
+ tab: S,
269664
+ tabIndex: L,
269651
269665
  tabCount: e.length,
269652
269666
  handleEmojiChange: v,
269653
269667
  handleNameChange: b,
269654
- onClick: () => n(T.id),
269668
+ onClick: () => n(S.id),
269655
269669
  editor: s,
269656
269670
  tocItem: l,
269657
269671
  setTocItems: u,
@@ -269662,15 +269676,15 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269662
269676
  isPreviewMode: a,
269663
269677
  ydoc: g,
269664
269678
  isVersionHistoryMode: y,
269665
- commentCount: m[T.id] || 0,
269679
+ commentCount: m[S.id] || 0,
269666
269680
  moveTabUp: () => {
269667
- R <= 0 || p(e[R - 1].id, T.id);
269681
+ L <= 0 || p(e[L - 1].id, S.id);
269668
269682
  },
269669
269683
  moveTabDown: () => {
269670
- R >= e.length - 1 || p(e[R + 1].id, T.id);
269684
+ L >= e.length - 1 || p(e[L + 1].id, S.id);
269671
269685
  }
269672
269686
  },
269673
- T.id
269687
+ S.id
269674
269688
  ))
269675
269689
  ] })
269676
269690
  ]
@@ -269709,7 +269723,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269709
269723
  isPreviewMode: y,
269710
269724
  isVersionHistoryMode: b
269711
269725
  }) => {
269712
- const [v, x] = Ie({
269726
+ const [v, x] = _e({
269713
269727
  title: e.name,
269714
269728
  showToc: e.showOutline,
269715
269729
  emoji: e.emoji
@@ -269786,7 +269800,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
269786
269800
  isPreviewMode: c
269787
269801
  }) => {
269788
269802
  var g;
269789
- const [d, f] = Ie(!0), h = (m, y) => {
269803
+ const [d, f] = _e(!0), h = (m, y) => {
269790
269804
  s(m, { newName: y });
269791
269805
  }, p = (m, y) => {
269792
269806
  s(m, { emoji: y });
@@ -270145,15 +270159,15 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
270145
270159
  )) return !1;
270146
270160
  const { state: f } = u, { selection: h } = f, p = Zk(h.$from, u.schema.marks.link);
270147
270161
  return p ? f.doc.textBetween(p.from, p.to) === c : !1;
270148
- }, i = _e(() => {
270162
+ }, i = Ie(() => {
270149
270163
  const u = e.state.selection.to, c = e.getAttributes("link").href;
270150
270164
  e.commands.extendMarkRange("link", { href: c }), e.chain().focus().setTextSelection(u).unsetMark("link").insertContent(" ").run();
270151
- }, [e]), a = _e(
270165
+ }, [e]), a = Ie(
270152
270166
  (u) => {
270153
270167
  r.current && r.current.contains(u.target) || i();
270154
270168
  },
270155
270169
  [i]
270156
- ), s = _e(
270170
+ ), s = Ie(
270157
270171
  (u) => {
270158
270172
  var p, g;
270159
270173
  const { key: c } = u, d = document.activeElement;
@@ -270314,7 +270328,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
270314
270328
  documentStyling: Ke,
270315
270329
  ...yt
270316
270330
  }, lt) => {
270317
- const [Dt, Nt] = Ie(!1), [Tt, St] = Ie(!1), an = (() => {
270331
+ const [Dt, Nt] = _e(!1), [Tt, St] = _e(!1), an = (() => {
270318
270332
  if (!Ke)
270319
270333
  return { canvas: void 0, background: void 0 };
270320
270334
  const Xt = {}, Kt = {};
@@ -270331,7 +270345,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
270331
270345
  if (!Kt) return {};
270332
270346
  const Lt = {}, or = k$n[Xt];
270333
270347
  return typeof Kt.width == "number" ? (Lt.width = `${Kt.width}px`, Lt.maxWidth = `${Kt.width}px`) : (Lt.width = or.zoomFitWidth, Lt.maxWidth = `${or.zoomFitMaxWidth}px`), Kt.minHeight && (Lt.minHeight = Kt.minHeight), Lt;
270334
- }, Sn = Ue(null), Q = Br("(min-width: 1500px)"), Ee = Br("(min-width: 3000px)"), He = Br("(min-width: 1600px)"), Je = Br("(min-width: 1360px)"), { isNativeMobile: vt, isIOS: At } = ed(), [bt, gt] = Ie(!1), kn = Ue(null), tt = (w == null ? void 0 : w.slice(0, 4)) || [], Ce = w ? Math.max(0, w.length - 4) : 0;
270348
+ }, Sn = Ue(null), Q = Br("(min-width: 1500px)"), Ee = Br("(min-width: 3000px)"), He = Br("(min-width: 1600px)"), Je = Br("(min-width: 1360px)"), { isNativeMobile: vt, isIOS: At } = ed(), [bt, gt] = _e(!1), kn = Ue(null), tt = (w == null ? void 0 : w.slice(0, 4)) || [], Ce = w ? Math.max(0, w.length - 4) : 0;
270335
270349
  C5(kn, () => {
270336
270350
  gt(!1);
270337
270351
  }), Be(() => {
@@ -270987,7 +271001,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
270987
271001
  setShowTOC: R,
270988
271002
  tabSectionContainer: _
270989
271003
  }, S) => {
270990
- const [L, E] = Ie(!1), j = Ue(null), N = (m == null ? void 0 : m.slice(0, 4)) || [], I = m ? Math.max(0, m.length - 4) : 0;
271004
+ const [L, E] = _e(!1), j = Ue(null), N = (m == null ? void 0 : m.slice(0, 4)) || [], I = m ? Math.max(0, m.length - 4) : 0;
270991
271005
  C5(j, () => {
270992
271006
  E(!1);
270993
271007
  }), Be(() => {
@@ -271058,7 +271072,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
271058
271072
  );
271059
271073
  }, oe = Br("(max-width: 768px)");
271060
271074
  return /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
271061
- B && /* @__PURE__ */ M.jsx(
271075
+ B && z.tabs.length > 0 && /* @__PURE__ */ M.jsx(
271062
271076
  VMe,
271063
271077
  {
271064
271078
  editor: B,
@@ -271337,9 +271351,9 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
271337
271351
  })}, ${t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}`;
271338
271352
  }, M$n = $i(
271339
271353
  ({ node: e, editor: t, deleteNode: n }) => {
271340
- const r = e.attrs.reminder, [o, i] = Ie(
271354
+ const r = e.attrs.reminder, [o, i] = _e(
271341
271355
  r != null && r.timestamp ? new Date(r.timestamp).getTime() < Date.now() : !1
271342
- ), a = t.isEditable === !1, s = _e(() => {
271356
+ ), a = t.isEditable === !1, s = Ie(() => {
271343
271357
  const c = [];
271344
271358
  return t.state.doc.descendants((d) => {
271345
271359
  d.type.name === "reminderBlock" && c.push({
@@ -271349,7 +271363,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
271349
271363
  }), c.sort(
271350
271364
  (d, f) => new Date(d.timestamp).getTime() - new Date(f.timestamp).getTime()
271351
271365
  );
271352
- }, [t]), l = _e(
271366
+ }, [t]), l = Ie(
271353
271367
  (c) => {
271354
271368
  const d = s(), f = d.findIndex((g) => g.id === r.id);
271355
271369
  if (f === -1) return;
@@ -271382,7 +271396,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
271382
271396
  return () => clearTimeout(h);
271383
271397
  }
271384
271398
  }, [o, r.timestamp]);
271385
- const u = _e(() => {
271399
+ const u = Ie(() => {
271386
271400
  var d;
271387
271401
  const c = (d = t.extensionManager.extensions.find(
271388
271402
  (f) => f.name === "reminderBlock"