@fileverse-dev/ddoc 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var Xne = Object.defineProperty;
2
2
  var Yne = (e, t, n) => t in e ? Xne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Ve = (e, t, n) => Yne(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Un from "react";
5
- import Tt, { useContext as gf, useState as Ne, useLayoutEffect as Ba, useEffect as _e, useDebugValue as YL, createContext as mf, createRef as Zne, memo as bf, createElement as _h, version as u_, useRef as Se, forwardRef as Yn, useMemo as wt, useImperativeHandle as k8, useCallback as Ae, Fragment as Jne, Component as Qne, cloneElement as ZL, useId as ere, useReducer as JL, lazy as QL, Suspense as c_ } from "react";
5
+ import Tt, { useContext as gf, useState as Ne, useLayoutEffect as Ba, useEffect as _e, useDebugValue as YL, createContext as mf, createRef as Zne, memo as bf, createElement as _h, version as u_, useRef as Se, forwardRef as Yn, useMemo as wt, useImperativeHandle as k8, useCallback as Ce, Fragment as Jne, Component as Qne, cloneElement as ZL, useId as ere, useReducer as JL, lazy as QL, Suspense as c_ } from "react";
6
6
  import eU, { flushSync as tre, createPortal as yf } from "react-dom";
7
7
  import { Drawer as tU, DrawerContent as nre, DrawerHeader as rre, DrawerTitle as ore, DrawerClose as ire, LucideIcon as Pe, Button as Nt, TextField as Ua, useTheme as sre, DynamicDropdown as Sr, Tooltip as hn, IconButton as qt, Dialog as are, DialogContent as lre, cn as Ge, DialogHeader as ure, DialogTitle as cre, DialogFooter as dre, DialogClose as pre, Skeleton as Tr, Avatar as ra, PopoverClose as Px, TextAreaFieldV2 as oc, DynamicModal as E8, Select as Md, SelectTrigger as Od, SelectValue as Sh, SelectContent as Id, SelectItem as Rd, DynamicDropdownV2 as zx, Popover as Th, PopoverTrigger as w1, PopoverContent as jh, Divider as Bb, SelectGroup as nU, SelectLabel as hre, Toggle as fre, toast as C8, Checkbox as gre, DrawerTrigger as d_, AnimatedLoader as mre, Label as bre, DynamicDrawerV2 as yre, BottomDrawer as xre, ButtonGroup as vre, UltimateIcons as Fre, PopoverAnchor as wre, Tag as Nb, TagInput as rU } from "@fileverse/ui";
8
8
  import { createPublicClient as Dre, http as kre, isAddress as Ere, isHex as Cre } from "viem";
@@ -93,8 +93,8 @@ function Hre() {
93
93
  {
94
94
  var pt = b.ReactDebugCurrentFrame, Qt = pt.getStackAddendum();
95
95
  Qt !== "" && (Ie += "%s", et = et.concat([Qt]));
96
- var rn = et.map(function(bt) {
97
- return String(bt);
96
+ var rn = et.map(function(yt) {
97
+ return String(yt);
98
98
  });
99
99
  rn.unshift("Warning: " + Ie), Function.prototype.apply.call(console[he], console, rn);
100
100
  }
@@ -153,9 +153,9 @@ function Hre() {
153
153
  var pt = he.displayName || null;
154
154
  return pt !== null ? pt : M(he.type) || "Memo";
155
155
  case p: {
156
- var Qt = he, rn = Qt._payload, bt = Qt._init;
156
+ var Qt = he, rn = Qt._payload, yt = Qt._init;
157
157
  try {
158
- return M(bt(rn));
158
+ return M(yt(rn));
159
159
  } catch {
160
160
  return null;
161
161
  }
@@ -260,27 +260,27 @@ function Hre() {
260
260
  rn = J.current, J.current = null, oe();
261
261
  try {
262
262
  if (Ie) {
263
- var bt = function() {
263
+ var yt = function() {
264
264
  throw Error();
265
265
  };
266
- if (Object.defineProperty(bt.prototype, "props", {
266
+ if (Object.defineProperty(yt.prototype, "props", {
267
267
  set: function() {
268
268
  throw Error();
269
269
  }
270
270
  }), typeof Reflect == "object" && Reflect.construct) {
271
271
  try {
272
- Reflect.construct(bt, []);
272
+ Reflect.construct(yt, []);
273
273
  } catch (ot) {
274
274
  pt = ot;
275
275
  }
276
- Reflect.construct(he, [], bt);
276
+ Reflect.construct(he, [], yt);
277
277
  } else {
278
278
  try {
279
- bt.call();
279
+ yt.call();
280
280
  } catch (ot) {
281
281
  pt = ot;
282
282
  }
283
- he.call(bt.prototype);
283
+ he.call(yt.prototype);
284
284
  }
285
285
  } else {
286
286
  try {
@@ -362,19 +362,19 @@ function Hre() {
362
362
  function ye(he, Ie, et, pt, Qt) {
363
363
  {
364
364
  var rn = Function.call.bind(de);
365
- for (var bt in he)
366
- if (rn(he, bt)) {
365
+ for (var yt in he)
366
+ if (rn(he, yt)) {
367
367
  var jt = void 0;
368
368
  try {
369
- if (typeof he[bt] != "function") {
370
- var kn = Error((pt || "React class") + ": " + et + " type `" + bt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof he[bt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
369
+ if (typeof he[yt] != "function") {
370
+ var kn = Error((pt || "React class") + ": " + et + " type `" + yt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof he[yt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
371
371
  throw kn.name = "Invariant Violation", kn;
372
372
  }
373
- jt = he[bt](Ie, bt, pt, et, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
373
+ jt = he[yt](Ie, yt, pt, et, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
374
374
  } catch (wn) {
375
375
  jt = wn;
376
376
  }
377
- jt && !(jt instanceof Error) && (se(Qt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", pt || "React class", et, bt, typeof jt), se(null)), jt instanceof Error && !(jt.message in V) && (V[jt.message] = !0, se(Qt), y("Failed %s type: %s", et, jt.message), se(null));
377
+ jt && !(jt instanceof Error) && (se(Qt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", pt || "React class", et, yt, typeof jt), se(null)), jt instanceof Error && !(jt.message in V) && (V[jt.message] = !0, se(Qt), y("Failed %s type: %s", et, jt.message), se(null));
378
378
  }
379
379
  }
380
380
  }
@@ -449,7 +449,7 @@ function Hre() {
449
449
  });
450
450
  }
451
451
  }
452
- var Oe = function(he, Ie, et, pt, Qt, rn, bt) {
452
+ var Oe = function(he, Ie, et, pt, Qt, rn, yt) {
453
453
  var jt = {
454
454
  // This tag allows us to uniquely identify this as a React Element
455
455
  $$typeof: t,
@@ -457,7 +457,7 @@ function Hre() {
457
457
  type: he,
458
458
  key: Ie,
459
459
  ref: et,
460
- props: bt,
460
+ props: yt,
461
461
  // Record the component responsible for creating this element.
462
462
  _owner: rn
463
463
  };
@@ -480,29 +480,29 @@ function Hre() {
480
480
  };
481
481
  function ze(he, Ie, et, pt, Qt) {
482
482
  {
483
- var rn, bt = {}, jt = null, kn = null;
483
+ var rn, yt = {}, jt = null, kn = null;
484
484
  et !== void 0 && (I(et), jt = "" + et), Ee(Ie) && (I(Ie.key), jt = "" + Ie.key), ve(Ie) && (kn = Ie.ref, De(Ie, Qt));
485
485
  for (rn in Ie)
486
- de.call(Ie, rn) && !Q.hasOwnProperty(rn) && (bt[rn] = Ie[rn]);
486
+ de.call(Ie, rn) && !Q.hasOwnProperty(rn) && (yt[rn] = Ie[rn]);
487
487
  if (he && he.defaultProps) {
488
488
  var wn = he.defaultProps;
489
489
  for (rn in wn)
490
- bt[rn] === void 0 && (bt[rn] = wn[rn]);
490
+ yt[rn] === void 0 && (yt[rn] = wn[rn]);
491
491
  }
492
492
  if (jt || kn) {
493
493
  var st = typeof he == "function" ? he.displayName || he.name || "Unknown" : he;
494
- jt && fe(bt, st), kn && Be(bt, st);
494
+ jt && fe(yt, st), kn && Be(yt, st);
495
495
  }
496
- return Oe(he, jt, kn, Qt, pt, W.current, bt);
496
+ return Oe(he, jt, kn, Qt, pt, W.current, yt);
497
497
  }
498
498
  }
499
- var qe = b.ReactCurrentOwner, ft = b.ReactDebugCurrentFrame;
499
+ var qe = b.ReactCurrentOwner, gt = b.ReactDebugCurrentFrame;
500
500
  function at(he) {
501
501
  if (he) {
502
502
  var Ie = he._owner, et = re(he.type, he._source, Ie ? Ie.type : null);
503
- ft.setExtraStackFrame(et);
503
+ gt.setExtraStackFrame(et);
504
504
  } else
505
- ft.setExtraStackFrame(null);
505
+ gt.setExtraStackFrame(null);
506
506
  }
507
507
  var Mt;
508
508
  Mt = !1;
@@ -564,12 +564,12 @@ Check the top-level render call using <` + et + ">.");
564
564
  else if (he) {
565
565
  var Qt = m(he);
566
566
  if (typeof Qt == "function" && Qt !== he.entries)
567
- for (var rn = Qt.call(he), bt; !(bt = rn.next()).done; )
568
- gn(bt.value) && ut(bt.value, Ie);
567
+ for (var rn = Qt.call(he), yt; !(yt = rn.next()).done; )
568
+ gn(yt.value) && ut(yt.value, Ie);
569
569
  }
570
570
  }
571
571
  }
572
- function gt(he) {
572
+ function mt(he) {
573
573
  {
574
574
  var Ie = he.type;
575
575
  if (Ie == null || typeof Ie == "string")
@@ -609,8 +609,8 @@ Check the top-level render call using <` + et + ">.");
609
609
  var zt = {};
610
610
  function dt(he, Ie, et, pt, Qt, rn) {
611
611
  {
612
- var bt = N(he);
613
- if (!bt) {
612
+ var yt = N(he);
613
+ if (!yt) {
614
614
  var jt = "";
615
615
  (he === void 0 || typeof he == "object" && he !== null && Object.keys(he).length === 0) && (jt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
616
616
  var kn = Le();
@@ -621,7 +621,7 @@ Check the top-level render call using <` + et + ">.");
621
621
  var st = ze(he, Ie, et, Qt, rn);
622
622
  if (st == null)
623
623
  return st;
624
- if (bt) {
624
+ if (yt) {
625
625
  var Fe = Ie.children;
626
626
  if (Fe !== void 0)
627
627
  if (pt)
@@ -648,7 +648,7 @@ React keys must be passed directly to JSX without using spread:
648
648
  <%s key={someKey} {...props} />`, ht, Re, Dt, Re), zt[Re + ht] = !0;
649
649
  }
650
650
  }
651
- return he === r ? xt(st) : gt(st), st;
651
+ return he === r ? xt(st) : mt(st), st;
652
652
  }
653
653
  }
654
654
  function vt(he, Ie, et) {
@@ -17974,7 +17974,7 @@ function nde(e) {
17974
17974
  });
17975
17975
  return M1(() => {
17976
17976
  t.current = e;
17977
- }, [e]), Ae((n) => {
17977
+ }, [e]), Ce((n) => {
17978
17978
  var r;
17979
17979
  return (r = t.current) == null ? void 0 : r.call(t, n);
17980
17980
  }, [t]);
@@ -18203,7 +18203,7 @@ function ade({
18203
18203
  itemCount: i,
18204
18204
  itemProps: s,
18205
18205
  itemSize: f
18206
- }), m = Ae(
18206
+ }), m = Ce(
18207
18207
  (N) => g.get(N),
18208
18208
  [g]
18209
18209
  ), [b, y] = Ne(
@@ -18225,14 +18225,14 @@ function ade({
18225
18225
  startIndexOverscan: Math.min(i - 1, b.startIndexOverscan),
18226
18226
  stopIndexVisible: Math.min(i - 1, b.stopIndexVisible),
18227
18227
  stopIndexOverscan: Math.min(i - 1, b.stopIndexOverscan)
18228
- }, k = Ae(
18228
+ }, k = Ce(
18229
18229
  () => Gz({
18230
18230
  cachedBounds: g,
18231
18231
  itemCount: i,
18232
18232
  itemSize: f
18233
18233
  }),
18234
18234
  [g, i, f]
18235
- ), E = Ae(
18235
+ ), E = Ce(
18236
18236
  (N) => {
18237
18237
  const O = z4({
18238
18238
  containerElement: e,
@@ -19741,7 +19741,7 @@ function ipe(e, t, n, r, o, i, s) {
19741
19741
  slideLooper: Oe,
19742
19742
  dragHandler: ze,
19743
19743
  animation: qe,
19744
- eventHandler: ft,
19744
+ eventHandler: gt,
19745
19745
  scrollBounds: at,
19746
19746
  options: {
19747
19747
  loop: Mt
@@ -19750,7 +19750,7 @@ function ipe(e, t, n, r, o, i, s) {
19750
19750
  const At = me.settled(), Le = !at.shouldConstrain(), _t = Mt ? At : At && Le, Qe = _t && !ze.pointerDown();
19751
19751
  Qe && qe.stop();
19752
19752
  const ut = Ee.get() * gn + fe.get() * (1 - gn);
19753
- De.set(ut), Mt && (Be.loop(me.direction()), Oe.loop()), ve.to(De.get()), Qe && ft.emit("settle"), _t || ft.emit("scroll");
19753
+ De.set(ut), Mt && (Be.loop(me.direction()), Oe.loop()), ve.to(De.get()), Qe && gt.emit("settle"), _t || gt.emit("scroll");
19754
19754
  }, B = Ide(r, o, () => Y(ae), (me) => pe(ae, me)), re = 0.68, de = le[Z.get()], V = B0(de), te = B0(de), se = B0(de), ye = B0(de), ke = Hde(V, se, te, ye, p, re), ge = Zde(d, le, oe, G, ye), ie = Jde(B, Z, T, ke, ge, ye, s), ce = Gde(G), be = L1(), I = npe(t, n, s, g), {
19755
19755
  slideRegistry: W
19756
19756
  } = Yde(j, y, le, J, L, X), Q = Qde(e, n, W, ie, ke, be, s, D), ae = {
@@ -20001,7 +20001,7 @@ function Gb(e, t, n) {
20001
20001
  }
20002
20002
  Gb.globalOptions = void 0;
20003
20003
  function w9(e = {}, t = []) {
20004
- const n = Se(e), r = Se(t), [o, i] = Ne(), [s, a] = Ne(), l = Ae(() => {
20004
+ const n = Se(e), r = Se(t), [o, i] = Ne(), [s, a] = Ne(), l = Ce(() => {
20005
20005
  o && o.reInit(n.current, r.current);
20006
20006
  }, [o]);
20007
20007
  return _e(() => {
@@ -20041,13 +20041,13 @@ const n$ = Yn(
20041
20041
  axis: e === "horizontal" ? "x" : "y"
20042
20042
  },
20043
20043
  r
20044
- ), [c, d] = Ne(!1), [p, h] = Ne(!1), f = Ae((y) => {
20044
+ ), [c, d] = Ne(!1), [p, h] = Ne(!1), f = Ce((y) => {
20045
20045
  y && (d(y.canScrollPrev()), h(y.canScrollNext()));
20046
- }, []), g = Ae(() => {
20046
+ }, []), g = Ce(() => {
20047
20047
  u == null || u.scrollPrev();
20048
- }, [u]), m = Ae(() => {
20048
+ }, [u]), m = Ce(() => {
20049
20049
  u == null || u.scrollNext();
20050
- }, [u]), b = Ae(
20050
+ }, [u]), b = Ce(
20051
20051
  (y) => {
20052
20052
  y.key === "ArrowLeft" ? (y.preventDefault(), g()) : y.key === "ArrowRight" && (y.preventDefault(), m());
20053
20053
  },
@@ -20127,14 +20127,14 @@ const Q5 = Yn(
20127
20127
  );
20128
20128
  Q5.displayName = "CarouselItem";
20129
20129
  const o$ = Yn(({ index: e, className: t, ...n }, r) => {
20130
- const { api: o } = $g(), [i, s] = Ne(0), [, a] = Ne([]), l = Ae(
20130
+ const { api: o } = $g(), [i, s] = Ne(0), [, a] = Ne([]), l = Ce(
20131
20131
  (p) => {
20132
20132
  o && o.scrollTo(p);
20133
20133
  },
20134
20134
  [o]
20135
- ), u = Ae((p) => {
20135
+ ), u = Ce((p) => {
20136
20136
  p && a(p.scrollSnapList());
20137
- }, []), c = Ae((p) => {
20137
+ }, []), c = Ce((p) => {
20138
20138
  p && s(p.selectedScrollSnap());
20139
20139
  }, []);
20140
20140
  _e(() => {
@@ -20212,7 +20212,7 @@ function s$(e, t, n, r) {
20212
20212
  }, [e, n, r]);
20213
20213
  }
20214
20214
  function fpe() {
20215
- const [e, t] = Ne(null), n = Ae(async (r) => {
20215
+ const [e, t] = Ne(null), n = Ce(async (r) => {
20216
20216
  if (!(navigator != null && navigator.clipboard))
20217
20217
  return console.warn("Clipboard not supported"), !1;
20218
20218
  try {
@@ -25606,7 +25606,7 @@ function z(e, t, n, r, o, i) {
25606
25606
  replace: r
25607
25607
  }, i && r && (Wn[e][r] = Wn[e][o]);
25608
25608
  }
25609
- var q = "math", He = "text", ne = "main", xe = "ams", Qn = "accent-token", mt = "bin", Yo = "close", Df = "inner", It = "mathord", Cr = "op-token", Vi = "open", f3 = "punct", we = "rel", Ql = "spacing", Ce = "textord";
25609
+ var q = "math", He = "text", ne = "main", xe = "ams", Qn = "accent-token", bt = "bin", Yo = "close", Df = "inner", It = "mathord", Cr = "op-token", Vi = "open", f3 = "punct", we = "rel", Ql = "spacing", Ae = "textord";
25610
25610
  z(q, ne, we, "≡", "\\equiv", !0);
25611
25611
  z(q, ne, we, "≺", "\\prec", !0);
25612
25612
  z(q, ne, we, "≻", "\\succ", !0);
@@ -25633,52 +25633,52 @@ z(q, ne, we, "⊣", "\\dashv", !0);
25633
25633
  z(q, ne, we, "∋", "\\owns");
25634
25634
  z(q, ne, f3, ".", "\\ldotp");
25635
25635
  z(q, ne, f3, "⋅", "\\cdotp");
25636
- z(q, ne, Ce, "#", "\\#");
25637
- z(He, ne, Ce, "#", "\\#");
25638
- z(q, ne, Ce, "&", "\\&");
25639
- z(He, ne, Ce, "&", "\\&");
25640
- z(q, ne, Ce, "ℵ", "\\aleph", !0);
25641
- z(q, ne, Ce, "∀", "\\forall", !0);
25642
- z(q, ne, Ce, "ℏ", "\\hbar", !0);
25643
- z(q, ne, Ce, "∃", "\\exists", !0);
25644
- z(q, ne, Ce, "∇", "\\nabla", !0);
25645
- z(q, ne, Ce, "♭", "\\flat", !0);
25646
- z(q, ne, Ce, "ℓ", "\\ell", !0);
25647
- z(q, ne, Ce, "♮", "\\natural", !0);
25648
- z(q, ne, Ce, "♣", "\\clubsuit", !0);
25649
- z(q, ne, Ce, "℘", "\\wp", !0);
25650
- z(q, ne, Ce, "♯", "\\sharp", !0);
25651
- z(q, ne, Ce, "♢", "\\diamondsuit", !0);
25652
- z(q, ne, Ce, "ℜ", "\\Re", !0);
25653
- z(q, ne, Ce, "♡", "\\heartsuit", !0);
25654
- z(q, ne, Ce, "ℑ", "\\Im", !0);
25655
- z(q, ne, Ce, "♠", "\\spadesuit", !0);
25656
- z(q, ne, Ce, "§", "\\S", !0);
25657
- z(He, ne, Ce, "§", "\\S");
25658
- z(q, ne, Ce, "¶", "\\P", !0);
25659
- z(He, ne, Ce, "¶", "\\P");
25660
- z(q, ne, Ce, "†", "\\dag");
25661
- z(He, ne, Ce, "†", "\\dag");
25662
- z(He, ne, Ce, "†", "\\textdagger");
25663
- z(q, ne, Ce, "‡", "\\ddag");
25664
- z(He, ne, Ce, "‡", "\\ddag");
25665
- z(He, ne, Ce, "‡", "\\textdaggerdbl");
25636
+ z(q, ne, Ae, "#", "\\#");
25637
+ z(He, ne, Ae, "#", "\\#");
25638
+ z(q, ne, Ae, "&", "\\&");
25639
+ z(He, ne, Ae, "&", "\\&");
25640
+ z(q, ne, Ae, "ℵ", "\\aleph", !0);
25641
+ z(q, ne, Ae, "∀", "\\forall", !0);
25642
+ z(q, ne, Ae, "ℏ", "\\hbar", !0);
25643
+ z(q, ne, Ae, "∃", "\\exists", !0);
25644
+ z(q, ne, Ae, "∇", "\\nabla", !0);
25645
+ z(q, ne, Ae, "♭", "\\flat", !0);
25646
+ z(q, ne, Ae, "ℓ", "\\ell", !0);
25647
+ z(q, ne, Ae, "♮", "\\natural", !0);
25648
+ z(q, ne, Ae, "♣", "\\clubsuit", !0);
25649
+ z(q, ne, Ae, "℘", "\\wp", !0);
25650
+ z(q, ne, Ae, "♯", "\\sharp", !0);
25651
+ z(q, ne, Ae, "♢", "\\diamondsuit", !0);
25652
+ z(q, ne, Ae, "ℜ", "\\Re", !0);
25653
+ z(q, ne, Ae, "♡", "\\heartsuit", !0);
25654
+ z(q, ne, Ae, "ℑ", "\\Im", !0);
25655
+ z(q, ne, Ae, "♠", "\\spadesuit", !0);
25656
+ z(q, ne, Ae, "§", "\\S", !0);
25657
+ z(He, ne, Ae, "§", "\\S");
25658
+ z(q, ne, Ae, "¶", "\\P", !0);
25659
+ z(He, ne, Ae, "¶", "\\P");
25660
+ z(q, ne, Ae, "†", "\\dag");
25661
+ z(He, ne, Ae, "†", "\\dag");
25662
+ z(He, ne, Ae, "†", "\\textdagger");
25663
+ z(q, ne, Ae, "‡", "\\ddag");
25664
+ z(He, ne, Ae, "‡", "\\ddag");
25665
+ z(He, ne, Ae, "‡", "\\textdaggerdbl");
25666
25666
  z(q, ne, Yo, "⎱", "\\rmoustache", !0);
25667
25667
  z(q, ne, Vi, "⎰", "\\lmoustache", !0);
25668
25668
  z(q, ne, Yo, "⟯", "\\rgroup", !0);
25669
25669
  z(q, ne, Vi, "⟮", "\\lgroup", !0);
25670
- z(q, ne, mt, "∓", "\\mp", !0);
25671
- z(q, ne, mt, "⊖", "\\ominus", !0);
25672
- z(q, ne, mt, "⊎", "\\uplus", !0);
25673
- z(q, ne, mt, "⊓", "\\sqcap", !0);
25674
- z(q, ne, mt, "∗", "\\ast");
25675
- z(q, ne, mt, "⊔", "\\sqcup", !0);
25676
- z(q, ne, mt, "◯", "\\bigcirc", !0);
25677
- z(q, ne, mt, "∙", "\\bullet", !0);
25678
- z(q, ne, mt, "‡", "\\ddagger");
25679
- z(q, ne, mt, "≀", "\\wr", !0);
25680
- z(q, ne, mt, "⨿", "\\amalg");
25681
- z(q, ne, mt, "&", "\\And");
25670
+ z(q, ne, bt, "∓", "\\mp", !0);
25671
+ z(q, ne, bt, "⊖", "\\ominus", !0);
25672
+ z(q, ne, bt, "⊎", "\\uplus", !0);
25673
+ z(q, ne, bt, "⊓", "\\sqcap", !0);
25674
+ z(q, ne, bt, "∗", "\\ast");
25675
+ z(q, ne, bt, "⊔", "\\sqcup", !0);
25676
+ z(q, ne, bt, "◯", "\\bigcirc", !0);
25677
+ z(q, ne, bt, "∙", "\\bullet", !0);
25678
+ z(q, ne, bt, "‡", "\\ddagger");
25679
+ z(q, ne, bt, "≀", "\\wr", !0);
25680
+ z(q, ne, bt, "⨿", "\\amalg");
25681
+ z(q, ne, bt, "&", "\\And");
25682
25682
  z(q, ne, we, "⟵", "\\longleftarrow", !0);
25683
25683
  z(q, ne, we, "⇐", "\\Leftarrow", !0);
25684
25684
  z(q, ne, we, "⟸", "\\Longleftarrow", !0);
@@ -25752,8 +25752,8 @@ z(q, xe, we, "⊮", "\\nVdash", !0);
25752
25752
  z(q, xe, we, "⪵", "\\precneqq", !0);
25753
25753
  z(q, xe, we, "⪶", "\\succneqq", !0);
25754
25754
  z(q, xe, we, "", "\\@nsubseteqq");
25755
- z(q, xe, mt, "⊴", "\\unlhd");
25756
- z(q, xe, mt, "⊵", "\\unrhd");
25755
+ z(q, xe, bt, "⊴", "\\unlhd");
25756
+ z(q, xe, bt, "⊵", "\\unrhd");
25757
25757
  z(q, xe, we, "↚", "\\nleftarrow", !0);
25758
25758
  z(q, xe, we, "↛", "\\nrightarrow", !0);
25759
25759
  z(q, xe, we, "⇍", "\\nLeftarrow", !0);
@@ -25761,41 +25761,41 @@ z(q, xe, we, "⇏", "\\nRightarrow", !0);
25761
25761
  z(q, xe, we, "↮", "\\nleftrightarrow", !0);
25762
25762
  z(q, xe, we, "⇎", "\\nLeftrightarrow", !0);
25763
25763
  z(q, xe, we, "△", "\\vartriangle");
25764
- z(q, xe, Ce, "ℏ", "\\hslash");
25765
- z(q, xe, Ce, "▽", "\\triangledown");
25766
- z(q, xe, Ce, "◊", "\\lozenge");
25767
- z(q, xe, Ce, "Ⓢ", "\\circledS");
25768
- z(q, xe, Ce, "®", "\\circledR");
25769
- z(He, xe, Ce, "®", "\\circledR");
25770
- z(q, xe, Ce, "∡", "\\measuredangle", !0);
25771
- z(q, xe, Ce, "∄", "\\nexists");
25772
- z(q, xe, Ce, "℧", "\\mho");
25773
- z(q, xe, Ce, "Ⅎ", "\\Finv", !0);
25774
- z(q, xe, Ce, "⅁", "\\Game", !0);
25775
- z(q, xe, Ce, "‵", "\\backprime");
25776
- z(q, xe, Ce, "▲", "\\blacktriangle");
25777
- z(q, xe, Ce, "▼", "\\blacktriangledown");
25778
- z(q, xe, Ce, "■", "\\blacksquare");
25779
- z(q, xe, Ce, "⧫", "\\blacklozenge");
25780
- z(q, xe, Ce, "★", "\\bigstar");
25781
- z(q, xe, Ce, "∢", "\\sphericalangle", !0);
25782
- z(q, xe, Ce, "∁", "\\complement", !0);
25783
- z(q, xe, Ce, "ð", "\\eth", !0);
25784
- z(He, ne, Ce, "ð", "ð");
25785
- z(q, xe, Ce, "╱", "\\diagup");
25786
- z(q, xe, Ce, "╲", "\\diagdown");
25787
- z(q, xe, Ce, "□", "\\square");
25788
- z(q, xe, Ce, "□", "\\Box");
25789
- z(q, xe, Ce, "◊", "\\Diamond");
25790
- z(q, xe, Ce, "¥", "\\yen", !0);
25791
- z(He, xe, Ce, "¥", "\\yen", !0);
25792
- z(q, xe, Ce, "✓", "\\checkmark", !0);
25793
- z(He, xe, Ce, "✓", "\\checkmark");
25794
- z(q, xe, Ce, "ℶ", "\\beth", !0);
25795
- z(q, xe, Ce, "ℸ", "\\daleth", !0);
25796
- z(q, xe, Ce, "ℷ", "\\gimel", !0);
25797
- z(q, xe, Ce, "ϝ", "\\digamma", !0);
25798
- z(q, xe, Ce, "ϰ", "\\varkappa");
25764
+ z(q, xe, Ae, "ℏ", "\\hslash");
25765
+ z(q, xe, Ae, "▽", "\\triangledown");
25766
+ z(q, xe, Ae, "◊", "\\lozenge");
25767
+ z(q, xe, Ae, "Ⓢ", "\\circledS");
25768
+ z(q, xe, Ae, "®", "\\circledR");
25769
+ z(He, xe, Ae, "®", "\\circledR");
25770
+ z(q, xe, Ae, "∡", "\\measuredangle", !0);
25771
+ z(q, xe, Ae, "∄", "\\nexists");
25772
+ z(q, xe, Ae, "℧", "\\mho");
25773
+ z(q, xe, Ae, "Ⅎ", "\\Finv", !0);
25774
+ z(q, xe, Ae, "⅁", "\\Game", !0);
25775
+ z(q, xe, Ae, "‵", "\\backprime");
25776
+ z(q, xe, Ae, "▲", "\\blacktriangle");
25777
+ z(q, xe, Ae, "▼", "\\blacktriangledown");
25778
+ z(q, xe, Ae, "■", "\\blacksquare");
25779
+ z(q, xe, Ae, "⧫", "\\blacklozenge");
25780
+ z(q, xe, Ae, "★", "\\bigstar");
25781
+ z(q, xe, Ae, "∢", "\\sphericalangle", !0);
25782
+ z(q, xe, Ae, "∁", "\\complement", !0);
25783
+ z(q, xe, Ae, "ð", "\\eth", !0);
25784
+ z(He, ne, Ae, "ð", "ð");
25785
+ z(q, xe, Ae, "╱", "\\diagup");
25786
+ z(q, xe, Ae, "╲", "\\diagdown");
25787
+ z(q, xe, Ae, "□", "\\square");
25788
+ z(q, xe, Ae, "□", "\\Box");
25789
+ z(q, xe, Ae, "◊", "\\Diamond");
25790
+ z(q, xe, Ae, "¥", "\\yen", !0);
25791
+ z(He, xe, Ae, "¥", "\\yen", !0);
25792
+ z(q, xe, Ae, "✓", "\\checkmark", !0);
25793
+ z(He, xe, Ae, "✓", "\\checkmark");
25794
+ z(q, xe, Ae, "ℶ", "\\beth", !0);
25795
+ z(q, xe, Ae, "ℸ", "\\daleth", !0);
25796
+ z(q, xe, Ae, "ℷ", "\\gimel", !0);
25797
+ z(q, xe, Ae, "ϝ", "\\digamma", !0);
25798
+ z(q, xe, Ae, "ϰ", "\\varkappa");
25799
25799
  z(q, xe, Vi, "┌", "\\@ulcorner", !0);
25800
25800
  z(q, xe, Yo, "┐", "\\@urcorner", !0);
25801
25801
  z(q, xe, Vi, "└", "\\@llcorner", !0);
@@ -25806,7 +25806,7 @@ z(q, xe, we, "⪕", "\\eqslantless", !0);
25806
25806
  z(q, xe, we, "≲", "\\lesssim", !0);
25807
25807
  z(q, xe, we, "⪅", "\\lessapprox", !0);
25808
25808
  z(q, xe, we, "≊", "\\approxeq", !0);
25809
- z(q, xe, mt, "⋖", "\\lessdot");
25809
+ z(q, xe, bt, "⋖", "\\lessdot");
25810
25810
  z(q, xe, we, "⋘", "\\lll", !0);
25811
25811
  z(q, xe, we, "≶", "\\lessgtr", !0);
25812
25812
  z(q, xe, we, "⋚", "\\lesseqgtr", !0);
@@ -25836,7 +25836,7 @@ z(q, xe, we, "⩾", "\\geqslant", !0);
25836
25836
  z(q, xe, we, "⪖", "\\eqslantgtr", !0);
25837
25837
  z(q, xe, we, "≳", "\\gtrsim", !0);
25838
25838
  z(q, xe, we, "⪆", "\\gtrapprox", !0);
25839
- z(q, xe, mt, "⋗", "\\gtrdot");
25839
+ z(q, xe, bt, "⋗", "\\gtrdot");
25840
25840
  z(q, xe, we, "⋙", "\\ggg", !0);
25841
25841
  z(q, xe, we, "≷", "\\gtrless", !0);
25842
25842
  z(q, xe, we, "⋛", "\\gtreqless", !0);
@@ -25868,32 +25868,32 @@ z(q, xe, we, "▶", "\\blacktriangleright");
25868
25868
  z(q, xe, we, "∵", "\\because", !0);
25869
25869
  z(q, xe, we, "⋘", "\\llless");
25870
25870
  z(q, xe, we, "⋙", "\\gggtr");
25871
- z(q, xe, mt, "⊲", "\\lhd");
25872
- z(q, xe, mt, "⊳", "\\rhd");
25871
+ z(q, xe, bt, "⊲", "\\lhd");
25872
+ z(q, xe, bt, "⊳", "\\rhd");
25873
25873
  z(q, xe, we, "≂", "\\eqsim", !0);
25874
25874
  z(q, ne, we, "⋈", "\\Join");
25875
25875
  z(q, xe, we, "≑", "\\Doteq", !0);
25876
- z(q, xe, mt, "∔", "\\dotplus", !0);
25877
- z(q, xe, mt, "∖", "\\smallsetminus");
25878
- z(q, xe, mt, "⋒", "\\Cap", !0);
25879
- z(q, xe, mt, "⋓", "\\Cup", !0);
25880
- z(q, xe, mt, "⩞", "\\doublebarwedge", !0);
25881
- z(q, xe, mt, "⊟", "\\boxminus", !0);
25882
- z(q, xe, mt, "⊞", "\\boxplus", !0);
25883
- z(q, xe, mt, "⋇", "\\divideontimes", !0);
25884
- z(q, xe, mt, "⋉", "\\ltimes", !0);
25885
- z(q, xe, mt, "⋊", "\\rtimes", !0);
25886
- z(q, xe, mt, "⋋", "\\leftthreetimes", !0);
25887
- z(q, xe, mt, "⋌", "\\rightthreetimes", !0);
25888
- z(q, xe, mt, "⋏", "\\curlywedge", !0);
25889
- z(q, xe, mt, "⋎", "\\curlyvee", !0);
25890
- z(q, xe, mt, "⊝", "\\circleddash", !0);
25891
- z(q, xe, mt, "⊛", "\\circledast", !0);
25892
- z(q, xe, mt, "⋅", "\\centerdot");
25893
- z(q, xe, mt, "⊺", "\\intercal", !0);
25894
- z(q, xe, mt, "⋒", "\\doublecap");
25895
- z(q, xe, mt, "⋓", "\\doublecup");
25896
- z(q, xe, mt, "⊠", "\\boxtimes", !0);
25876
+ z(q, xe, bt, "∔", "\\dotplus", !0);
25877
+ z(q, xe, bt, "∖", "\\smallsetminus");
25878
+ z(q, xe, bt, "⋒", "\\Cap", !0);
25879
+ z(q, xe, bt, "⋓", "\\Cup", !0);
25880
+ z(q, xe, bt, "⩞", "\\doublebarwedge", !0);
25881
+ z(q, xe, bt, "⊟", "\\boxminus", !0);
25882
+ z(q, xe, bt, "⊞", "\\boxplus", !0);
25883
+ z(q, xe, bt, "⋇", "\\divideontimes", !0);
25884
+ z(q, xe, bt, "⋉", "\\ltimes", !0);
25885
+ z(q, xe, bt, "⋊", "\\rtimes", !0);
25886
+ z(q, xe, bt, "⋋", "\\leftthreetimes", !0);
25887
+ z(q, xe, bt, "⋌", "\\rightthreetimes", !0);
25888
+ z(q, xe, bt, "⋏", "\\curlywedge", !0);
25889
+ z(q, xe, bt, "⋎", "\\curlyvee", !0);
25890
+ z(q, xe, bt, "⊝", "\\circleddash", !0);
25891
+ z(q, xe, bt, "⊛", "\\circledast", !0);
25892
+ z(q, xe, bt, "⋅", "\\centerdot");
25893
+ z(q, xe, bt, "⊺", "\\intercal", !0);
25894
+ z(q, xe, bt, "⋒", "\\doublecap");
25895
+ z(q, xe, bt, "⋓", "\\doublecup");
25896
+ z(q, xe, bt, "⊠", "\\boxtimes", !0);
25897
25897
  z(q, xe, we, "⇢", "\\dashrightarrow", !0);
25898
25898
  z(q, xe, we, "⇠", "\\dashleftarrow", !0);
25899
25899
  z(q, xe, we, "⇇", "\\leftleftarrows", !0);
@@ -25928,49 +25928,49 @@ z(q, xe, we, "⇝", "\\rightsquigarrow", !0);
25928
25928
  z(q, xe, we, "⇝", "\\leadsto");
25929
25929
  z(q, xe, we, "⇛", "\\Rrightarrow", !0);
25930
25930
  z(q, xe, we, "↾", "\\restriction");
25931
- z(q, ne, Ce, "‘", "`");
25932
- z(q, ne, Ce, "$", "\\$");
25933
- z(He, ne, Ce, "$", "\\$");
25934
- z(He, ne, Ce, "$", "\\textdollar");
25935
- z(q, ne, Ce, "%", "\\%");
25936
- z(He, ne, Ce, "%", "\\%");
25937
- z(q, ne, Ce, "_", "\\_");
25938
- z(He, ne, Ce, "_", "\\_");
25939
- z(He, ne, Ce, "_", "\\textunderscore");
25940
- z(q, ne, Ce, "∠", "\\angle", !0);
25941
- z(q, ne, Ce, "∞", "\\infty", !0);
25942
- z(q, ne, Ce, "′", "\\prime");
25943
- z(q, ne, Ce, "△", "\\triangle");
25944
- z(q, ne, Ce, "Γ", "\\Gamma", !0);
25945
- z(q, ne, Ce, "Δ", "\\Delta", !0);
25946
- z(q, ne, Ce, "Θ", "\\Theta", !0);
25947
- z(q, ne, Ce, "Λ", "\\Lambda", !0);
25948
- z(q, ne, Ce, "Ξ", "\\Xi", !0);
25949
- z(q, ne, Ce, "Π", "\\Pi", !0);
25950
- z(q, ne, Ce, "Σ", "\\Sigma", !0);
25951
- z(q, ne, Ce, "Υ", "\\Upsilon", !0);
25952
- z(q, ne, Ce, "Φ", "\\Phi", !0);
25953
- z(q, ne, Ce, "Ψ", "\\Psi", !0);
25954
- z(q, ne, Ce, "Ω", "\\Omega", !0);
25955
- z(q, ne, Ce, "A", "Α");
25956
- z(q, ne, Ce, "B", "Β");
25957
- z(q, ne, Ce, "E", "Ε");
25958
- z(q, ne, Ce, "Z", "Ζ");
25959
- z(q, ne, Ce, "H", "Η");
25960
- z(q, ne, Ce, "I", "Ι");
25961
- z(q, ne, Ce, "K", "Κ");
25962
- z(q, ne, Ce, "M", "Μ");
25963
- z(q, ne, Ce, "N", "Ν");
25964
- z(q, ne, Ce, "O", "Ο");
25965
- z(q, ne, Ce, "P", "Ρ");
25966
- z(q, ne, Ce, "T", "Τ");
25967
- z(q, ne, Ce, "X", "Χ");
25968
- z(q, ne, Ce, "¬", "\\neg", !0);
25969
- z(q, ne, Ce, "¬", "\\lnot");
25970
- z(q, ne, Ce, "⊤", "\\top");
25971
- z(q, ne, Ce, "⊥", "\\bot");
25972
- z(q, ne, Ce, "∅", "\\emptyset");
25973
- z(q, xe, Ce, "∅", "\\varnothing");
25931
+ z(q, ne, Ae, "‘", "`");
25932
+ z(q, ne, Ae, "$", "\\$");
25933
+ z(He, ne, Ae, "$", "\\$");
25934
+ z(He, ne, Ae, "$", "\\textdollar");
25935
+ z(q, ne, Ae, "%", "\\%");
25936
+ z(He, ne, Ae, "%", "\\%");
25937
+ z(q, ne, Ae, "_", "\\_");
25938
+ z(He, ne, Ae, "_", "\\_");
25939
+ z(He, ne, Ae, "_", "\\textunderscore");
25940
+ z(q, ne, Ae, "∠", "\\angle", !0);
25941
+ z(q, ne, Ae, "∞", "\\infty", !0);
25942
+ z(q, ne, Ae, "′", "\\prime");
25943
+ z(q, ne, Ae, "△", "\\triangle");
25944
+ z(q, ne, Ae, "Γ", "\\Gamma", !0);
25945
+ z(q, ne, Ae, "Δ", "\\Delta", !0);
25946
+ z(q, ne, Ae, "Θ", "\\Theta", !0);
25947
+ z(q, ne, Ae, "Λ", "\\Lambda", !0);
25948
+ z(q, ne, Ae, "Ξ", "\\Xi", !0);
25949
+ z(q, ne, Ae, "Π", "\\Pi", !0);
25950
+ z(q, ne, Ae, "Σ", "\\Sigma", !0);
25951
+ z(q, ne, Ae, "Υ", "\\Upsilon", !0);
25952
+ z(q, ne, Ae, "Φ", "\\Phi", !0);
25953
+ z(q, ne, Ae, "Ψ", "\\Psi", !0);
25954
+ z(q, ne, Ae, "Ω", "\\Omega", !0);
25955
+ z(q, ne, Ae, "A", "Α");
25956
+ z(q, ne, Ae, "B", "Β");
25957
+ z(q, ne, Ae, "E", "Ε");
25958
+ z(q, ne, Ae, "Z", "Ζ");
25959
+ z(q, ne, Ae, "H", "Η");
25960
+ z(q, ne, Ae, "I", "Ι");
25961
+ z(q, ne, Ae, "K", "Κ");
25962
+ z(q, ne, Ae, "M", "Μ");
25963
+ z(q, ne, Ae, "N", "Ν");
25964
+ z(q, ne, Ae, "O", "Ο");
25965
+ z(q, ne, Ae, "P", "Ρ");
25966
+ z(q, ne, Ae, "T", "Τ");
25967
+ z(q, ne, Ae, "X", "Χ");
25968
+ z(q, ne, Ae, "¬", "\\neg", !0);
25969
+ z(q, ne, Ae, "¬", "\\lnot");
25970
+ z(q, ne, Ae, "⊤", "\\top");
25971
+ z(q, ne, Ae, "⊥", "\\bot");
25972
+ z(q, ne, Ae, "∅", "\\emptyset");
25973
+ z(q, xe, Ae, "∅", "\\varnothing");
25974
25974
  z(q, ne, It, "α", "\\alpha", !0);
25975
25975
  z(q, ne, It, "β", "\\beta", !0);
25976
25976
  z(q, ne, It, "γ", "\\gamma", !0);
@@ -26001,22 +26001,22 @@ z(q, ne, It, "ϖ", "\\varpi", !0);
26001
26001
  z(q, ne, It, "ϱ", "\\varrho", !0);
26002
26002
  z(q, ne, It, "ς", "\\varsigma", !0);
26003
26003
  z(q, ne, It, "φ", "\\varphi", !0);
26004
- z(q, ne, mt, "∗", "*", !0);
26005
- z(q, ne, mt, "+", "+");
26006
- z(q, ne, mt, "−", "-", !0);
26007
- z(q, ne, mt, "⋅", "\\cdot", !0);
26008
- z(q, ne, mt, "∘", "\\circ", !0);
26009
- z(q, ne, mt, "÷", "\\div", !0);
26010
- z(q, ne, mt, "±", "\\pm", !0);
26011
- z(q, ne, mt, "×", "\\times", !0);
26012
- z(q, ne, mt, "∩", "\\cap", !0);
26013
- z(q, ne, mt, "∪", "\\cup", !0);
26014
- z(q, ne, mt, "∖", "\\setminus", !0);
26015
- z(q, ne, mt, "∧", "\\land");
26016
- z(q, ne, mt, "∨", "\\lor");
26017
- z(q, ne, mt, "∧", "\\wedge", !0);
26018
- z(q, ne, mt, "∨", "\\vee", !0);
26019
- z(q, ne, Ce, "√", "\\surd");
26004
+ z(q, ne, bt, "∗", "*", !0);
26005
+ z(q, ne, bt, "+", "+");
26006
+ z(q, ne, bt, "−", "-", !0);
26007
+ z(q, ne, bt, "⋅", "\\cdot", !0);
26008
+ z(q, ne, bt, "∘", "\\circ", !0);
26009
+ z(q, ne, bt, "÷", "\\div", !0);
26010
+ z(q, ne, bt, "±", "\\pm", !0);
26011
+ z(q, ne, bt, "×", "\\times", !0);
26012
+ z(q, ne, bt, "∩", "\\cap", !0);
26013
+ z(q, ne, bt, "∪", "\\cup", !0);
26014
+ z(q, ne, bt, "∖", "\\setminus", !0);
26015
+ z(q, ne, bt, "∧", "\\land");
26016
+ z(q, ne, bt, "∨", "\\lor");
26017
+ z(q, ne, bt, "∧", "\\wedge", !0);
26018
+ z(q, ne, bt, "∨", "\\vee", !0);
26019
+ z(q, ne, Ae, "√", "\\surd");
26020
26020
  z(q, ne, Vi, "⟨", "\\langle", !0);
26021
26021
  z(q, ne, Vi, "∣", "\\lvert");
26022
26022
  z(q, ne, Vi, "∥", "\\lVert");
@@ -26061,52 +26061,52 @@ z(q, ne, Ql, null, "\\nobreak");
26061
26061
  z(q, ne, Ql, null, "\\allowbreak");
26062
26062
  z(q, ne, f3, ",", ",");
26063
26063
  z(q, ne, f3, ";", ";");
26064
- z(q, xe, mt, "⊼", "\\barwedge", !0);
26065
- z(q, xe, mt, "⊻", "\\veebar", !0);
26066
- z(q, ne, mt, "⊙", "\\odot", !0);
26067
- z(q, ne, mt, "⊕", "\\oplus", !0);
26068
- z(q, ne, mt, "⊗", "\\otimes", !0);
26069
- z(q, ne, Ce, "∂", "\\partial", !0);
26070
- z(q, ne, mt, "⊘", "\\oslash", !0);
26071
- z(q, xe, mt, "⊚", "\\circledcirc", !0);
26072
- z(q, xe, mt, "⊡", "\\boxdot", !0);
26073
- z(q, ne, mt, "△", "\\bigtriangleup");
26074
- z(q, ne, mt, "▽", "\\bigtriangledown");
26075
- z(q, ne, mt, "†", "\\dagger");
26076
- z(q, ne, mt, "⋄", "\\diamond");
26077
- z(q, ne, mt, "⋆", "\\star");
26078
- z(q, ne, mt, "◃", "\\triangleleft");
26079
- z(q, ne, mt, "▹", "\\triangleright");
26064
+ z(q, xe, bt, "⊼", "\\barwedge", !0);
26065
+ z(q, xe, bt, "⊻", "\\veebar", !0);
26066
+ z(q, ne, bt, "⊙", "\\odot", !0);
26067
+ z(q, ne, bt, "⊕", "\\oplus", !0);
26068
+ z(q, ne, bt, "⊗", "\\otimes", !0);
26069
+ z(q, ne, Ae, "∂", "\\partial", !0);
26070
+ z(q, ne, bt, "⊘", "\\oslash", !0);
26071
+ z(q, xe, bt, "⊚", "\\circledcirc", !0);
26072
+ z(q, xe, bt, "⊡", "\\boxdot", !0);
26073
+ z(q, ne, bt, "△", "\\bigtriangleup");
26074
+ z(q, ne, bt, "▽", "\\bigtriangledown");
26075
+ z(q, ne, bt, "†", "\\dagger");
26076
+ z(q, ne, bt, "⋄", "\\diamond");
26077
+ z(q, ne, bt, "⋆", "\\star");
26078
+ z(q, ne, bt, "◃", "\\triangleleft");
26079
+ z(q, ne, bt, "▹", "\\triangleright");
26080
26080
  z(q, ne, Vi, "{", "\\{");
26081
- z(He, ne, Ce, "{", "\\{");
26082
- z(He, ne, Ce, "{", "\\textbraceleft");
26081
+ z(He, ne, Ae, "{", "\\{");
26082
+ z(He, ne, Ae, "{", "\\textbraceleft");
26083
26083
  z(q, ne, Yo, "}", "\\}");
26084
- z(He, ne, Ce, "}", "\\}");
26085
- z(He, ne, Ce, "}", "\\textbraceright");
26084
+ z(He, ne, Ae, "}", "\\}");
26085
+ z(He, ne, Ae, "}", "\\textbraceright");
26086
26086
  z(q, ne, Vi, "{", "\\lbrace");
26087
26087
  z(q, ne, Yo, "}", "\\rbrace");
26088
26088
  z(q, ne, Vi, "[", "\\lbrack", !0);
26089
- z(He, ne, Ce, "[", "\\lbrack", !0);
26089
+ z(He, ne, Ae, "[", "\\lbrack", !0);
26090
26090
  z(q, ne, Yo, "]", "\\rbrack", !0);
26091
- z(He, ne, Ce, "]", "\\rbrack", !0);
26091
+ z(He, ne, Ae, "]", "\\rbrack", !0);
26092
26092
  z(q, ne, Vi, "(", "\\lparen", !0);
26093
26093
  z(q, ne, Yo, ")", "\\rparen", !0);
26094
- z(He, ne, Ce, "<", "\\textless", !0);
26095
- z(He, ne, Ce, ">", "\\textgreater", !0);
26094
+ z(He, ne, Ae, "<", "\\textless", !0);
26095
+ z(He, ne, Ae, ">", "\\textgreater", !0);
26096
26096
  z(q, ne, Vi, "⌊", "\\lfloor", !0);
26097
26097
  z(q, ne, Yo, "⌋", "\\rfloor", !0);
26098
26098
  z(q, ne, Vi, "⌈", "\\lceil", !0);
26099
26099
  z(q, ne, Yo, "⌉", "\\rceil", !0);
26100
- z(q, ne, Ce, "\\", "\\backslash");
26101
- z(q, ne, Ce, "∣", "|");
26102
- z(q, ne, Ce, "∣", "\\vert");
26103
- z(He, ne, Ce, "|", "\\textbar", !0);
26104
- z(q, ne, Ce, "∥", "\\|");
26105
- z(q, ne, Ce, "∥", "\\Vert");
26106
- z(He, ne, Ce, "∥", "\\textbardbl");
26107
- z(He, ne, Ce, "~", "\\textasciitilde");
26108
- z(He, ne, Ce, "\\", "\\textbackslash");
26109
- z(He, ne, Ce, "^", "\\textasciicircum");
26100
+ z(q, ne, Ae, "\\", "\\backslash");
26101
+ z(q, ne, Ae, "∣", "|");
26102
+ z(q, ne, Ae, "∣", "\\vert");
26103
+ z(He, ne, Ae, "|", "\\textbar", !0);
26104
+ z(q, ne, Ae, "∥", "\\|");
26105
+ z(q, ne, Ae, "∥", "\\Vert");
26106
+ z(He, ne, Ae, "∥", "\\textbardbl");
26107
+ z(He, ne, Ae, "~", "\\textasciitilde");
26108
+ z(He, ne, Ae, "\\", "\\textbackslash");
26109
+ z(He, ne, Ae, "^", "\\textasciicircum");
26110
26110
  z(q, ne, we, "↑", "\\uparrow", !0);
26111
26111
  z(q, ne, we, "⇑", "\\Uparrow", !0);
26112
26112
  z(q, ne, we, "↓", "\\downarrow", !0);
@@ -26139,8 +26139,8 @@ z(He, ne, Df, "…", "\\ldots", !0);
26139
26139
  z(q, ne, Df, "…", "\\ldots", !0);
26140
26140
  z(q, ne, Df, "⋯", "\\@cdots", !0);
26141
26141
  z(q, ne, Df, "⋱", "\\ddots", !0);
26142
- z(q, ne, Ce, "⋮", "\\varvdots");
26143
- z(He, ne, Ce, "⋮", "\\varvdots");
26142
+ z(q, ne, Ae, "⋮", "\\varvdots");
26143
+ z(He, ne, Ae, "⋮", "\\varvdots");
26144
26144
  z(q, ne, Qn, "ˊ", "\\acute");
26145
26145
  z(q, ne, Qn, "ˋ", "\\grave");
26146
26146
  z(q, ne, Qn, "¨", "\\ddot");
@@ -26154,17 +26154,17 @@ z(q, ne, Qn, "˙", "\\dot");
26154
26154
  z(q, ne, Qn, "˚", "\\mathring");
26155
26155
  z(q, ne, It, "", "\\@imath");
26156
26156
  z(q, ne, It, "", "\\@jmath");
26157
- z(q, ne, Ce, "ı", "ı");
26158
- z(q, ne, Ce, "ȷ", "ȷ");
26159
- z(He, ne, Ce, "ı", "\\i", !0);
26160
- z(He, ne, Ce, "ȷ", "\\j", !0);
26161
- z(He, ne, Ce, "ß", "\\ss", !0);
26162
- z(He, ne, Ce, "æ", "\\ae", !0);
26163
- z(He, ne, Ce, "œ", "\\oe", !0);
26164
- z(He, ne, Ce, "ø", "\\o", !0);
26165
- z(He, ne, Ce, "Æ", "\\AE", !0);
26166
- z(He, ne, Ce, "Œ", "\\OE", !0);
26167
- z(He, ne, Ce, "Ø", "\\O", !0);
26157
+ z(q, ne, Ae, "ı", "ı");
26158
+ z(q, ne, Ae, "ȷ", "ȷ");
26159
+ z(He, ne, Ae, "ı", "\\i", !0);
26160
+ z(He, ne, Ae, "ȷ", "\\j", !0);
26161
+ z(He, ne, Ae, "ß", "\\ss", !0);
26162
+ z(He, ne, Ae, "æ", "\\ae", !0);
26163
+ z(He, ne, Ae, "œ", "\\oe", !0);
26164
+ z(He, ne, Ae, "ø", "\\o", !0);
26165
+ z(He, ne, Ae, "Æ", "\\AE", !0);
26166
+ z(He, ne, Ae, "Œ", "\\OE", !0);
26167
+ z(He, ne, Ae, "Ø", "\\O", !0);
26168
26168
  z(He, ne, Qn, "ˊ", "\\'");
26169
26169
  z(He, ne, Qn, "ˋ", "\\`");
26170
26170
  z(He, ne, Qn, "ˆ", "\\^");
@@ -26184,74 +26184,74 @@ var F$ = {
26184
26184
  "``": !0,
26185
26185
  "''": !0
26186
26186
  };
26187
- z(He, ne, Ce, "–", "--", !0);
26188
- z(He, ne, Ce, "–", "\\textendash");
26189
- z(He, ne, Ce, "—", "---", !0);
26190
- z(He, ne, Ce, "—", "\\textemdash");
26191
- z(He, ne, Ce, "‘", "`", !0);
26192
- z(He, ne, Ce, "‘", "\\textquoteleft");
26193
- z(He, ne, Ce, "’", "'", !0);
26194
- z(He, ne, Ce, "’", "\\textquoteright");
26195
- z(He, ne, Ce, "“", "``", !0);
26196
- z(He, ne, Ce, "“", "\\textquotedblleft");
26197
- z(He, ne, Ce, "”", "''", !0);
26198
- z(He, ne, Ce, "”", "\\textquotedblright");
26199
- z(q, ne, Ce, "°", "\\degree", !0);
26200
- z(He, ne, Ce, "°", "\\degree");
26201
- z(He, ne, Ce, "°", "\\textdegree", !0);
26202
- z(q, ne, Ce, "£", "\\pounds");
26203
- z(q, ne, Ce, "£", "\\mathsterling", !0);
26204
- z(He, ne, Ce, "£", "\\pounds");
26205
- z(He, ne, Ce, "£", "\\textsterling", !0);
26206
- z(q, xe, Ce, "✠", "\\maltese");
26207
- z(He, xe, Ce, "✠", "\\maltese");
26187
+ z(He, ne, Ae, "–", "--", !0);
26188
+ z(He, ne, Ae, "–", "\\textendash");
26189
+ z(He, ne, Ae, "—", "---", !0);
26190
+ z(He, ne, Ae, "—", "\\textemdash");
26191
+ z(He, ne, Ae, "‘", "`", !0);
26192
+ z(He, ne, Ae, "‘", "\\textquoteleft");
26193
+ z(He, ne, Ae, "’", "'", !0);
26194
+ z(He, ne, Ae, "’", "\\textquoteright");
26195
+ z(He, ne, Ae, "“", "``", !0);
26196
+ z(He, ne, Ae, "“", "\\textquotedblleft");
26197
+ z(He, ne, Ae, "”", "''", !0);
26198
+ z(He, ne, Ae, "”", "\\textquotedblright");
26199
+ z(q, ne, Ae, "°", "\\degree", !0);
26200
+ z(He, ne, Ae, "°", "\\degree");
26201
+ z(He, ne, Ae, "°", "\\textdegree", !0);
26202
+ z(q, ne, Ae, "£", "\\pounds");
26203
+ z(q, ne, Ae, "£", "\\mathsterling", !0);
26204
+ z(He, ne, Ae, "£", "\\pounds");
26205
+ z(He, ne, Ae, "£", "\\textsterling", !0);
26206
+ z(q, xe, Ae, "✠", "\\maltese");
26207
+ z(He, xe, Ae, "✠", "\\maltese");
26208
26208
  var uT = '0123456789/@."';
26209
26209
  for (var q4 = 0; q4 < uT.length; q4++) {
26210
26210
  var cT = uT.charAt(q4);
26211
- z(q, ne, Ce, cT, cT);
26211
+ z(q, ne, Ae, cT, cT);
26212
26212
  }
26213
26213
  var dT = '0123456789!@*()-=+";:?/.,';
26214
26214
  for (var V4 = 0; V4 < dT.length; V4++) {
26215
26215
  var pT = dT.charAt(V4);
26216
- z(He, ne, Ce, pT, pT);
26216
+ z(He, ne, Ae, pT, pT);
26217
26217
  }
26218
26218
  var Yb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
26219
26219
  for (var K4 = 0; K4 < Yb.length; K4++) {
26220
26220
  var Vm = Yb.charAt(K4);
26221
- z(q, ne, It, Vm, Vm), z(He, ne, Ce, Vm, Vm);
26222
- }
26223
- z(q, xe, Ce, "C", "ℂ");
26224
- z(He, xe, Ce, "C", "ℂ");
26225
- z(q, xe, Ce, "H", "ℍ");
26226
- z(He, xe, Ce, "H", "ℍ");
26227
- z(q, xe, Ce, "N", "ℕ");
26228
- z(He, xe, Ce, "N", "ℕ");
26229
- z(q, xe, Ce, "P", "ℙ");
26230
- z(He, xe, Ce, "P", "ℙ");
26231
- z(q, xe, Ce, "Q", "ℚ");
26232
- z(He, xe, Ce, "Q", "ℚ");
26233
- z(q, xe, Ce, "R", "ℝ");
26234
- z(He, xe, Ce, "R", "ℝ");
26235
- z(q, xe, Ce, "Z", "ℤ");
26236
- z(He, xe, Ce, "Z", "ℤ");
26221
+ z(q, ne, It, Vm, Vm), z(He, ne, Ae, Vm, Vm);
26222
+ }
26223
+ z(q, xe, Ae, "C", "ℂ");
26224
+ z(He, xe, Ae, "C", "ℂ");
26225
+ z(q, xe, Ae, "H", "ℍ");
26226
+ z(He, xe, Ae, "H", "ℍ");
26227
+ z(q, xe, Ae, "N", "ℕ");
26228
+ z(He, xe, Ae, "N", "ℕ");
26229
+ z(q, xe, Ae, "P", "ℙ");
26230
+ z(He, xe, Ae, "P", "ℙ");
26231
+ z(q, xe, Ae, "Q", "ℚ");
26232
+ z(He, xe, Ae, "Q", "ℚ");
26233
+ z(q, xe, Ae, "R", "ℝ");
26234
+ z(He, xe, Ae, "R", "ℝ");
26235
+ z(q, xe, Ae, "Z", "ℤ");
26236
+ z(He, xe, Ae, "Z", "ℤ");
26237
26237
  z(q, ne, It, "h", "ℎ");
26238
26238
  z(He, ne, It, "h", "ℎ");
26239
26239
  var Ht = "";
26240
26240
  for (var No = 0; No < Yb.length; No++) {
26241
26241
  var sr = Yb.charAt(No);
26242
- Ht = String.fromCharCode(55349, 56320 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56372 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56424 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56580 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56684 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56736 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56788 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56840 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56944 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), No < 26 && (Ht = String.fromCharCode(55349, 56632 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht), Ht = String.fromCharCode(55349, 56476 + No), z(q, ne, It, sr, Ht), z(He, ne, Ce, sr, Ht));
26242
+ Ht = String.fromCharCode(55349, 56320 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56372 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56424 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56580 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56684 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56736 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56788 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56840 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56944 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), No < 26 && (Ht = String.fromCharCode(55349, 56632 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56476 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht));
26243
26243
  }
26244
26244
  Ht = "𝕜";
26245
26245
  z(q, ne, It, "k", Ht);
26246
- z(He, ne, Ce, "k", Ht);
26246
+ z(He, ne, Ae, "k", Ht);
26247
26247
  for (var Lc = 0; Lc < 10; Lc++) {
26248
26248
  var fu = Lc.toString();
26249
- Ht = String.fromCharCode(55349, 57294 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht), Ht = String.fromCharCode(55349, 57314 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht), Ht = String.fromCharCode(55349, 57324 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht), Ht = String.fromCharCode(55349, 57334 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ce, fu, Ht);
26249
+ Ht = String.fromCharCode(55349, 57294 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht), Ht = String.fromCharCode(55349, 57314 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht), Ht = String.fromCharCode(55349, 57324 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht), Ht = String.fromCharCode(55349, 57334 + Lc), z(q, ne, It, fu, Ht), z(He, ne, Ae, fu, Ht);
26250
26250
  }
26251
26251
  var lD = "ÐÞþ";
26252
26252
  for (var G4 = 0; G4 < lD.length; G4++) {
26253
26253
  var Km = lD.charAt(G4);
26254
- z(q, ne, It, Km, Km), z(He, ne, Ce, Km, Km);
26254
+ z(q, ne, It, Km, Km), z(He, ne, Ae, Km, Km);
26255
26255
  }
26256
26256
  var Gm = [
26257
26257
  ["mathbf", "textbf", "Main-Bold"],
@@ -45080,11 +45080,11 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45080
45080
  isLoading: j = !1,
45081
45081
  isDDocOwner: S = !1
45082
45082
  }) => {
45083
- const R = wt(() => K2e(), []), { isBelow1280px: U, isNativeMobile: $ } = Ki(), H = !U && !$ && !r, L = Se(null), P = Se(/* @__PURE__ */ new Map()), [K, oe] = Ne(() => /* @__PURE__ */ new Set()), [ee, J] = Ne(M), le = Se(M), G = Se(""), Z = Se(null), T = Se(null), X = Ae(() => {
45083
+ const R = wt(() => K2e(), []), { isBelow1280px: U, isNativeMobile: $ } = Ki(), H = !U && !$ && !r, L = Se(null), P = Se(/* @__PURE__ */ new Map()), [K, oe] = Ne(() => /* @__PURE__ */ new Set()), [ee, J] = Ne(M), le = Se(M), G = Se(""), Z = Se(null), T = Se(null), X = Ce(() => {
45084
45084
  Z.current !== null && (window.cancelAnimationFrame(Z.current), Z.current = null), T.current !== null && (window.cancelAnimationFrame(
45085
45085
  T.current
45086
45086
  ), T.current = null);
45087
- }, []), Y = Ae(
45087
+ }, []), Y = Ce(
45088
45088
  (I) => {
45089
45089
  t && (X(), Z.current = window.requestAnimationFrame(
45090
45090
  () => {
@@ -45104,7 +45104,7 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45104
45104
  ));
45105
45105
  },
45106
45106
  [X, w, t]
45107
- ), pe = Ae(() => {
45107
+ ), pe = Ce(() => {
45108
45108
  const I = t && w ? w.current.filter(
45109
45109
  (ae) => !ae.deleted && G2e(ae, t.state)
45110
45110
  ).map((ae) => ae.id) : [], W = `${M}:${I.join(",")}`;
@@ -45305,29 +45305,29 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45305
45305
  commentId: ((pt = t.getAttributes("comment")) == null ? void 0 : pt.commentId) ?? null,
45306
45306
  resolved: !!((Qt = t.getAttributes("comment")) != null && Qt.resolved)
45307
45307
  } : null, Oe = t.state.selection.from, ze = t.state.selection.to, qe = t.state.doc.content.size;
45308
- let ft = null, at = Be;
45309
- const Mt = !!(Ee != null && Ee.getMeta("pointer")), gn = (bt) => {
45310
- for (const jt of bt) {
45311
- if (at || (at = Yge(t.state, jt)), !ft && w) {
45308
+ let gt = null, at = Be;
45309
+ const Mt = !!(Ee != null && Ee.getMeta("pointer")), gn = (yt) => {
45310
+ for (const jt of yt) {
45311
+ if (at || (at = Yge(t.state, jt)), !gt && w) {
45312
45312
  const kn = r2e(
45313
45313
  t,
45314
45314
  jt,
45315
45315
  () => w.current
45316
45316
  );
45317
- kn && (ft = kn);
45317
+ kn && (gt = kn);
45318
45318
  }
45319
- if (at && ft)
45319
+ if (at && gt)
45320
45320
  break;
45321
45321
  }
45322
45322
  }, At = Array.from(
45323
45323
  new Set(
45324
45324
  [Oe, ze].filter(
45325
- (bt) => bt >= 0 && bt <= qe
45325
+ (yt) => yt >= 0 && yt <= qe
45326
45326
  )
45327
45327
  )
45328
45328
  );
45329
- if (gn(At), (!at || !ft) && Mt) {
45330
- const bt = Array.from(
45329
+ if (gn(At), (!at || !gt) && Mt) {
45330
+ const yt = Array.from(
45331
45331
  new Set(
45332
45332
  [
45333
45333
  Oe - 1,
@@ -45337,14 +45337,14 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45337
45337
  ].filter((jt) => jt >= 0 && jt <= qe)
45338
45338
  )
45339
45339
  );
45340
- gn(bt);
45340
+ gn(yt);
45341
45341
  }
45342
- const Le = ft, _t = (at == null ? void 0 : at.commentId) ?? null, Qe = _t ?? (Le == null ? void 0 : Le.id) ?? null, ut = (_t ? at == null ? void 0 : at.resolved : void 0) ?? (Le == null ? void 0 : Le.resolved) ?? !1, Vt = !!(_t && !ut), gt = !!(Le && !Le.resolved), xt = !!Qe, zt = !!Qe && ut, dt = !!(Ee != null && Ee.getMeta(YW)), vt = H ? De.floatingCards.find(
45343
- (bt) => bt.type === "thread" && bt.isFocused
45344
- ) : null, St = (vt == null ? void 0 : vt.type) === "thread" ? vt.commentId : null, $t = !Qe || (H ? !St || St === Qe : De.openReplyId === Qe) || Mt || dt, bn = !!(r && Qe && Mt && !dt), he = !!(Qe && !bn && $t && H && (Vt || gt)), Ie = xt !== I, et = zt !== W;
45342
+ const Le = gt, _t = (at == null ? void 0 : at.commentId) ?? null, Qe = _t ?? (Le == null ? void 0 : Le.id) ?? null, ut = (_t ? at == null ? void 0 : at.resolved : void 0) ?? (Le == null ? void 0 : Le.resolved) ?? !1, Vt = !!(_t && !ut), mt = !!(Le && !Le.resolved), xt = !!Qe, zt = !!Qe && ut, dt = !!(Ee != null && Ee.getMeta(YW)), vt = H ? De.floatingCards.find(
45343
+ (yt) => yt.type === "thread" && yt.isFocused
45344
+ ) : null, St = (vt == null ? void 0 : vt.type) === "thread" ? vt.commentId : null, $t = !Qe || (H ? !St || St === Qe : De.openReplyId === Qe) || Mt || dt, bn = !!(r && Qe && Mt && !dt), he = !!(Qe && !bn && $t && H && (Vt || mt)), Ie = xt !== I, et = zt !== W;
45345
45345
  if (Ie && (I = xt, De.setIsCommentActive(xt)), et && (W = zt, De.setIsCommentResolved(zt)), Qe && $t && !bn) {
45346
- const bt = !H && !!(Mt || De.openReplyId !== Qe);
45347
- De.activeCommentId !== Qe && De.setActiveCommentId(Qe), H || (De.setOpenReplyId(Qe), (rn = De.setCommentDrawerOpen) == null || rn.call(De, !0), bt && Y(Qe));
45346
+ const yt = !H && !!(Mt || De.openReplyId !== Qe);
45347
+ De.activeCommentId !== Qe && De.setActiveCommentId(Qe), H || (De.setOpenReplyId(Qe), (rn = De.setCommentDrawerOpen) == null || rn.call(De, !0), yt && Y(Qe));
45348
45348
  }
45349
45349
  he && Qe && (dt || o(Qe), De.openFloatingThread(Qe));
45350
45350
  }, ae = ({
@@ -45368,27 +45368,27 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45368
45368
  ui(at, t.state) && (qe.push(at), P.current.delete(Mt));
45369
45369
  }), qe.length === 0)
45370
45370
  return !1;
45371
- const ft = new Set(
45371
+ const gt = new Set(
45372
45372
  w.current.map((at) => at.id)
45373
45373
  );
45374
45374
  return w.current = [
45375
45375
  ...w.current,
45376
45376
  ...qe.filter(
45377
- (at) => !ft.has(at.id)
45377
+ (at) => !gt.has(at.id)
45378
45378
  )
45379
45379
  ], Be = !0, !0;
45380
45380
  };
45381
45381
  if (w && fe) {
45382
- const qe = w.current.filter((ft) => ft.deleted || ft.resolved ? !1 : ft.isSuggestion && ft.suggestionType === "add" ? !0 : NW(ft, fe) !== null);
45382
+ const qe = w.current.filter((gt) => gt.deleted || gt.resolved ? !1 : gt.isSuggestion && gt.suggestionType === "add" ? !0 : NW(gt, fe) !== null);
45383
45383
  if (qe.length > 0) {
45384
- const ft = Y8(
45384
+ const gt = Y8(
45385
45385
  Ee.before,
45386
45386
  [Ee, ...De]
45387
45387
  ), at = e2e(
45388
45388
  qe,
45389
45389
  fe,
45390
45390
  t.state,
45391
- ft
45391
+ gt
45392
45392
  ), Mt = at.filter(
45393
45393
  (_t) => _t.type === "edited"
45394
45394
  ), gn = at.filter(
@@ -45501,7 +45501,7 @@ const G2e = (e, t) => e.isSuggestion && e.suggestionType === "add" ? tu(e, t) !=
45501
45501
  const I = R.getState(), W = I.activeDraftId ? I.inlineDrafts[I.activeDraftId] ?? null : null;
45502
45502
  (W == null ? void 0 : W.location) === "drawer" && I.isCommentOpen || I.isCommentOpen && (I.setIsBubbleMenuSuppressed(!0), I.setIsCommentOpen(!1));
45503
45503
  });
45504
- const ce = Ae(
45504
+ const ce = Ce(
45505
45505
  (I) => {
45506
45506
  var Q;
45507
45507
  if (!((Q = t == null ? void 0 : t.view) != null && Q.dom))
@@ -48895,22 +48895,22 @@ function Tq() {
48895
48895
  let ve = null;
48896
48896
  const Ee = on({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), De = "http://www.w3.org/1998/Math/MathML", fe = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
48897
48897
  let Oe = Be, ze = !1, qe = null;
48898
- const ft = on({}, [De, fe, Be], AF);
48898
+ const gt = on({}, [De, fe, Be], AF);
48899
48899
  let at = on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = on({}, ["annotation-xml"]);
48900
48900
  const gn = on({}, ["title", "style", "font", "a", "script"]);
48901
48901
  let At = null;
48902
48902
  const Le = ["application/xhtml+xml", "text/html"], _t = "text/html";
48903
48903
  let Qe = null, ut = null;
48904
- const Vt = n.createElement("form"), gt = function(Fe) {
48904
+ const Vt = n.createElement("form"), mt = function(Fe) {
48905
48905
  return Fe instanceof RegExp || Fe instanceof Function;
48906
48906
  }, xt = function() {
48907
48907
  let Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
48908
48908
  if (ut && ut === Fe)
48909
48909
  return;
48910
48910
  (!Fe || typeof Fe != "object") && (Fe = {}), Fe = Zo(Fe), At = // eslint-disable-next-line unicorn/prefer-includes
48911
- Le.indexOf(Fe.PARSER_MEDIA_TYPE) === -1 ? _t : Fe.PARSER_MEDIA_TYPE, Qe = At === "application/xhtml+xml" ? AF : O0, L = ur(Fe, "ALLOWED_TAGS") && Oo(Fe.ALLOWED_TAGS) ? on({}, Fe.ALLOWED_TAGS, Qe) : P, K = ur(Fe, "ALLOWED_ATTR") && Oo(Fe.ALLOWED_ATTR) ? on({}, Fe.ALLOWED_ATTR, Qe) : oe, qe = ur(Fe, "ALLOWED_NAMESPACES") && Oo(Fe.ALLOWED_NAMESPACES) ? on({}, Fe.ALLOWED_NAMESPACES, AF) : ft, ve = ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) ? on(Zo(Ee), Fe.ADD_URI_SAFE_ATTR, Qe) : Ee, ae = ur(Fe, "ADD_DATA_URI_TAGS") && Oo(Fe.ADD_DATA_URI_TAGS) ? on(Zo(me), Fe.ADD_DATA_URI_TAGS, Qe) : me, W = ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) ? on({}, Fe.FORBID_CONTENTS, Qe) : Q, J = ur(Fe, "FORBID_TAGS") && Oo(Fe.FORBID_TAGS) ? on({}, Fe.FORBID_TAGS, Qe) : Zo({}), le = ur(Fe, "FORBID_ATTR") && Oo(Fe.FORBID_ATTR) ? on({}, Fe.FORBID_ATTR, Qe) : Zo({}), I = ur(Fe, "USE_PROFILES") ? Fe.USE_PROFILES && typeof Fe.USE_PROFILES == "object" ? Zo(Fe.USE_PROFILES) : Fe.USE_PROFILES : !1, Z = Fe.ALLOW_ARIA_ATTR !== !1, T = Fe.ALLOW_DATA_ATTR !== !1, X = Fe.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = Fe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pe = Fe.SAFE_FOR_TEMPLATES || !1, B = Fe.SAFE_FOR_XML !== !1, re = Fe.WHOLE_DOCUMENT || !1, te = Fe.RETURN_DOM || !1, se = Fe.RETURN_DOM_FRAGMENT || !1, ye = Fe.RETURN_TRUSTED_TYPE || !1, V = Fe.FORCE_BODY || !1, ke = Fe.SANITIZE_DOM !== !1, ge = Fe.SANITIZE_NAMED_PROPS || !1, ce = Fe.KEEP_CONTENT !== !1, be = Fe.IN_PLACE || !1, H = Kxe(Fe.ALLOWED_URI_REGEXP) ? Fe.ALLOWED_URI_REGEXP : _q, Oe = typeof Fe.NAMESPACE == "string" ? Fe.NAMESPACE : Be, at = ur(Fe, "MATHML_TEXT_INTEGRATION_POINTS") && Fe.MATHML_TEXT_INTEGRATION_POINTS && typeof Fe.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Zo(Fe.MATHML_TEXT_INTEGRATION_POINTS) : on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = ur(Fe, "HTML_INTEGRATION_POINTS") && Fe.HTML_INTEGRATION_POINTS && typeof Fe.HTML_INTEGRATION_POINTS == "object" ? Zo(Fe.HTML_INTEGRATION_POINTS) : on({}, ["annotation-xml"]);
48911
+ Le.indexOf(Fe.PARSER_MEDIA_TYPE) === -1 ? _t : Fe.PARSER_MEDIA_TYPE, Qe = At === "application/xhtml+xml" ? AF : O0, L = ur(Fe, "ALLOWED_TAGS") && Oo(Fe.ALLOWED_TAGS) ? on({}, Fe.ALLOWED_TAGS, Qe) : P, K = ur(Fe, "ALLOWED_ATTR") && Oo(Fe.ALLOWED_ATTR) ? on({}, Fe.ALLOWED_ATTR, Qe) : oe, qe = ur(Fe, "ALLOWED_NAMESPACES") && Oo(Fe.ALLOWED_NAMESPACES) ? on({}, Fe.ALLOWED_NAMESPACES, AF) : gt, ve = ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) ? on(Zo(Ee), Fe.ADD_URI_SAFE_ATTR, Qe) : Ee, ae = ur(Fe, "ADD_DATA_URI_TAGS") && Oo(Fe.ADD_DATA_URI_TAGS) ? on(Zo(me), Fe.ADD_DATA_URI_TAGS, Qe) : me, W = ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) ? on({}, Fe.FORBID_CONTENTS, Qe) : Q, J = ur(Fe, "FORBID_TAGS") && Oo(Fe.FORBID_TAGS) ? on({}, Fe.FORBID_TAGS, Qe) : Zo({}), le = ur(Fe, "FORBID_ATTR") && Oo(Fe.FORBID_ATTR) ? on({}, Fe.FORBID_ATTR, Qe) : Zo({}), I = ur(Fe, "USE_PROFILES") ? Fe.USE_PROFILES && typeof Fe.USE_PROFILES == "object" ? Zo(Fe.USE_PROFILES) : Fe.USE_PROFILES : !1, Z = Fe.ALLOW_ARIA_ATTR !== !1, T = Fe.ALLOW_DATA_ATTR !== !1, X = Fe.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = Fe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pe = Fe.SAFE_FOR_TEMPLATES || !1, B = Fe.SAFE_FOR_XML !== !1, re = Fe.WHOLE_DOCUMENT || !1, te = Fe.RETURN_DOM || !1, se = Fe.RETURN_DOM_FRAGMENT || !1, ye = Fe.RETURN_TRUSTED_TYPE || !1, V = Fe.FORCE_BODY || !1, ke = Fe.SANITIZE_DOM !== !1, ge = Fe.SANITIZE_NAMED_PROPS || !1, ce = Fe.KEEP_CONTENT !== !1, be = Fe.IN_PLACE || !1, H = Kxe(Fe.ALLOWED_URI_REGEXP) ? Fe.ALLOWED_URI_REGEXP : _q, Oe = typeof Fe.NAMESPACE == "string" ? Fe.NAMESPACE : Be, at = ur(Fe, "MATHML_TEXT_INTEGRATION_POINTS") && Fe.MATHML_TEXT_INTEGRATION_POINTS && typeof Fe.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Zo(Fe.MATHML_TEXT_INTEGRATION_POINTS) : on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = ur(Fe, "HTML_INTEGRATION_POINTS") && Fe.HTML_INTEGRATION_POINTS && typeof Fe.HTML_INTEGRATION_POINTS == "object" ? Zo(Fe.HTML_INTEGRATION_POINTS) : on({}, ["annotation-xml"]);
48912
48912
  const Te = ur(Fe, "CUSTOM_ELEMENT_HANDLING") && Fe.CUSTOM_ELEMENT_HANDLING && typeof Fe.CUSTOM_ELEMENT_HANDLING == "object" ? Zo(Fe.CUSTOM_ELEMENT_HANDLING) : Yp(null);
48913
- if (ee = Yp(null), ur(Te, "tagNameCheck") && gt(Te.tagNameCheck) && (ee.tagNameCheck = Te.tagNameCheck), ur(Te, "attributeNameCheck") && gt(Te.attributeNameCheck) && (ee.attributeNameCheck = Te.attributeNameCheck), ur(Te, "allowCustomizedBuiltInElements") && typeof Te.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = Te.allowCustomizedBuiltInElements), pe && (T = !1), se && (te = !0), I && (L = on({}, lB), K = Yp(null), I.html === !0 && (on(L, aB), on(K, uB)), I.svg === !0 && (on(L, _F), on(K, jF), on(K, u2)), I.svgFilters === !0 && (on(L, SF), on(K, jF), on(K, u2)), I.mathMl === !0 && (on(L, TF), on(K, cB), on(K, u2))), G.tagCheck = null, G.attributeCheck = null, ur(Fe, "ADD_TAGS") && (typeof Fe.ADD_TAGS == "function" ? G.tagCheck = Fe.ADD_TAGS : Oo(Fe.ADD_TAGS) && (L === P && (L = Zo(L)), on(L, Fe.ADD_TAGS, Qe))), ur(Fe, "ADD_ATTR") && (typeof Fe.ADD_ATTR == "function" ? G.attributeCheck = Fe.ADD_ATTR : Oo(Fe.ADD_ATTR) && (K === oe && (K = Zo(K)), on(K, Fe.ADD_ATTR, Qe))), ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) && on(ve, Fe.ADD_URI_SAFE_ATTR, Qe), ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.FORBID_CONTENTS, Qe)), ur(Fe, "ADD_FORBID_CONTENTS") && Oo(Fe.ADD_FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.ADD_FORBID_CONTENTS, Qe)), ce && (L["#text"] = !0), re && on(L, ["html", "head", "body"]), L.table && (on(L, ["tbody"]), delete J.tbody), Fe.TRUSTED_TYPES_POLICY) {
48913
+ if (ee = Yp(null), ur(Te, "tagNameCheck") && mt(Te.tagNameCheck) && (ee.tagNameCheck = Te.tagNameCheck), ur(Te, "attributeNameCheck") && mt(Te.attributeNameCheck) && (ee.attributeNameCheck = Te.attributeNameCheck), ur(Te, "allowCustomizedBuiltInElements") && typeof Te.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = Te.allowCustomizedBuiltInElements), pe && (T = !1), se && (te = !0), I && (L = on({}, lB), K = Yp(null), I.html === !0 && (on(L, aB), on(K, uB)), I.svg === !0 && (on(L, _F), on(K, jF), on(K, u2)), I.svgFilters === !0 && (on(L, SF), on(K, jF), on(K, u2)), I.mathMl === !0 && (on(L, TF), on(K, cB), on(K, u2))), G.tagCheck = null, G.attributeCheck = null, ur(Fe, "ADD_TAGS") && (typeof Fe.ADD_TAGS == "function" ? G.tagCheck = Fe.ADD_TAGS : Oo(Fe.ADD_TAGS) && (L === P && (L = Zo(L)), on(L, Fe.ADD_TAGS, Qe))), ur(Fe, "ADD_ATTR") && (typeof Fe.ADD_ATTR == "function" ? G.attributeCheck = Fe.ADD_ATTR : Oo(Fe.ADD_ATTR) && (K === oe && (K = Zo(K)), on(K, Fe.ADD_ATTR, Qe))), ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) && on(ve, Fe.ADD_URI_SAFE_ATTR, Qe), ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.FORBID_CONTENTS, Qe)), ur(Fe, "ADD_FORBID_CONTENTS") && Oo(Fe.ADD_FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.ADD_FORBID_CONTENTS, Qe)), ce && (L["#text"] = !0), re && on(L, ["html", "head", "body"]), L.table && (on(L, ["tbody"]), delete J.tbody), Fe.TRUSTED_TYPES_POLICY) {
48914
48914
  if (typeof Fe.TRUSTED_TYPES_POLICY.createHTML != "function")
48915
48915
  throw l2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
48916
48916
  if (typeof Fe.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -49059,8 +49059,8 @@ function Tq() {
49059
49059
  }
49060
49060
  }
49061
49061
  return !0;
49062
- }, bt = on({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), jt = function(Fe) {
49063
- return !bt[O0(Fe)] && Jr($, Fe);
49062
+ }, yt = on({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), jt = function(Fe) {
49063
+ return !yt[O0(Fe)] && Jr($, Fe);
49064
49064
  }, kn = function(Fe) {
49065
49065
  pt(O.beforeSanitizeAttributes, Fe, null);
49066
49066
  const {
@@ -49101,8 +49101,8 @@ function Tq() {
49101
49101
  $t(Dt, Fe);
49102
49102
  continue;
49103
49103
  }
49104
- pe && n0([A, M, C], (yt) => {
49105
- mn = jp(mn, yt, " ");
49104
+ pe && n0([A, M, C], (ft) => {
49105
+ mn = jp(mn, ft, " ");
49106
49106
  });
49107
49107
  const Ci = Qe(Fe.nodeName);
49108
49108
  if (!rn(Ci, pn, mn)) {
@@ -52785,7 +52785,7 @@ const GD = [
52785
52785
  setIsLinkPopupOpen: o,
52786
52786
  onError: i
52787
52787
  }) => {
52788
- const [s, a] = Ne(t.getAttributes("link").href), l = Ae(() => {
52788
+ const [s, a] = Ne(t.getAttributes("link").href), l = Ce(() => {
52789
52789
  if (s === "" || s === void 0) {
52790
52790
  t.chain().focus().extendMarkRange("link").unsetLink().run();
52791
52791
  return;
@@ -54819,12 +54819,12 @@ const GD = [
54819
54819
  });
54820
54820
  }), !d;
54821
54821
  }, Vve = ({ editor: e }) => dV(e), Kve = (e) => dV(e, !0), pV = (e) => {
54822
- const t = Ae(
54822
+ const t = Ce(
54823
54823
  (o) => {
54824
54824
  e && e.chain().focus().setFontSize(o).run();
54825
54825
  },
54826
54826
  [e]
54827
- ), n = Ae(
54827
+ ), n = Ce(
54828
54828
  (o) => {
54829
54829
  if (!e) return;
54830
54830
  const { from: i, to: s } = e.state.selection;
@@ -54911,9 +54911,9 @@ const GD = [
54911
54911
  t.off("selectionUpdate", K);
54912
54912
  };
54913
54913
  }, [t, M, C]);
54914
- const S = Ae((K) => {
54914
+ const S = Ce((K) => {
54915
54915
  K == null || K.style.setProperty("z-index", Yve);
54916
- }, []), R = Ae(
54916
+ }, []), R = Ce(
54917
54917
  ({ editor: K }) => Vve({ editor: K }) ? !0 : (F || o) && qve(K) && Kve(K),
54918
54918
  [F, o]
54919
54919
  ), U = wt(() => [
@@ -54972,7 +54972,7 @@ const GD = [
54972
54972
  },
54973
54973
  icon: "MessageSquarePlus"
54974
54974
  }
54975
- ], [t, O, D, k]), $ = Ae(
54975
+ ], [t, O, D, k]), $ = Ce(
54976
54976
  (K) => {
54977
54977
  if (!t) return null;
54978
54978
  switch (K.name) {
@@ -55021,7 +55021,7 @@ const GD = [
55021
55021
  D,
55022
55022
  w
55023
55023
  ]
55024
- ), H = Ae(() => {
55024
+ ), H = Ce(() => {
55025
55025
  i == null || i(!0), N();
55026
55026
  }, [N, i]), L = /* @__PURE__ */ x.jsx(Tt.Fragment, { children: /* @__PURE__ */ x.jsx(
55027
55027
  cr,
@@ -55618,16 +55618,16 @@ const n4e = {
55618
55618
  );
55619
55619
  return /* @__PURE__ */ x.jsx(yV.Provider, { value: s, children: e });
55620
55620
  }, r4e = ({ editor: e, appendTo: t }) => {
55621
- const { isSuggestionMode: n } = fp(), r = Ae(() => e4e(e, "columns"), [e]), o = Ae(() => {
55621
+ const { isSuggestionMode: n } = fp(), r = Ce(() => e4e(e, "columns"), [e]), o = Ce(() => {
55622
55622
  const u = !e.isEditable || !!n;
55623
55623
  return e.isActive("columns") && !u;
55624
- }, [e, n]), i = Ae(() => {
55624
+ }, [e, n]), i = Ce(() => {
55625
55625
  e.chain().focus().setLayout(Kc.AlignLeft).run();
55626
- }, [e]), s = Ae(() => {
55626
+ }, [e]), s = Ce(() => {
55627
55627
  e.chain().focus().setLayout(Kc.AlignRight).run();
55628
- }, [e]), a = Ae(() => {
55628
+ }, [e]), a = Ce(() => {
55629
55629
  e.chain().focus().setLayout(Kc.AlignCenter).run();
55630
- }, [e]), l = Ae(() => {
55630
+ }, [e]), l = Ce(() => {
55631
55631
  e.chain().focus().deleteNode("columns").run();
55632
55632
  }, [e]);
55633
55633
  return /* @__PURE__ */ x.jsx(
@@ -58216,13 +58216,13 @@ const RFe = (e, t) => Ct.create({
58216
58216
  ydoc: n,
58217
58217
  exportOptions: r
58218
58218
  }) => {
58219
- const o = Ae(
58219
+ const o = Ce(
58220
58220
  (v) => (v || "Untitled").replace(/\s+/g, " ").trim(),
58221
58221
  []
58222
- ), i = Ae(
58222
+ ), i = Ce(
58223
58223
  (v) => v.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"),
58224
58224
  []
58225
- ), s = Ae((v) => v.includes("(.pdf)") ? "pdf" : v.includes("with CSS") ? "md-css" : v.includes("(.md)") ? "md" : v.includes("(.html)") ? "html" : v.includes("(.txt)") ? "txt" : v.includes("(.odt)") ? "odt" : "", []), a = wt(
58225
+ ), s = Ce((v) => v.includes("(.pdf)") ? "pdf" : v.includes("with CSS") ? "md-css" : v.includes("(.md)") ? "md" : v.includes("(.html)") ? "html" : v.includes("(.txt)") ? "txt" : v.includes("(.odt)") ? "odt" : "", []), a = wt(
58226
58226
  () => r.filter((v) => v !== null).reduce((v, w) => {
58227
58227
  const D = s(w.title);
58228
58228
  return D && (v[D] = w), v;
@@ -58234,26 +58234,26 @@ const RFe = (e, t) => Ct.create({
58234
58234
  label: w.title
58235
58235
  })),
58236
58236
  [a]
58237
- ), u = Ae(() => {
58237
+ ), u = Ce(() => {
58238
58238
  if (!e) return "Untitled";
58239
58239
  const v = e.getJSON();
58240
58240
  return ed(
58241
58241
  v
58242
58242
  ) || "Untitled";
58243
- }, [e]), c = Ae(
58243
+ }, [e]), c = Ce(
58244
58244
  async (v, w) => {
58245
58245
  const D = a[v];
58246
58246
  !D || D.disabled || D.onClick(w);
58247
58247
  },
58248
58248
  [a]
58249
- ), d = Ae(
58249
+ ), d = Ce(
58250
58250
  (v) => {
58251
58251
  if (!e || !n) return null;
58252
58252
  const w = n.getXmlFragment(v), D = ME(w);
58253
58253
  return bc(e, D);
58254
58254
  },
58255
58255
  [e, n]
58256
- ), p = Ae(async () => {
58256
+ ), p = Ce(async () => {
58257
58257
  if (!e || !n || t.length === 0) return;
58258
58258
  const v = [];
58259
58259
  try {
@@ -58283,7 +58283,7 @@ const RFe = (e, t) => Ct.create({
58283
58283
  o,
58284
58284
  t,
58285
58285
  n
58286
- ]), h = Ae(
58286
+ ]), h = Ce(
58287
58287
  async (v, w) => {
58288
58288
  if (!e || !n || t.length === 0) return;
58289
58289
  const D = v || u(), k = [];
@@ -58313,7 +58313,7 @@ ${R}`.trim());
58313
58313
  }
58314
58314
  },
58315
58315
  [d, e, u, o, t, n]
58316
- ), f = Ae(
58316
+ ), f = Ce(
58317
58317
  async (v) => {
58318
58318
  if (!e || !n || t.length === 0) return;
58319
58319
  const w = v || u(), D = [];
@@ -58347,7 +58347,7 @@ ${C.getHTML()}`
58347
58347
  t,
58348
58348
  n
58349
58349
  ]
58350
- ), g = Ae(
58350
+ ), g = Ce(
58351
58351
  async (v) => {
58352
58352
  if (!e || !n || t.length === 0) return;
58353
58353
  const w = v || u(), D = [];
@@ -58375,7 +58375,7 @@ ${C.getHTML()}`
58375
58375
  }
58376
58376
  },
58377
58377
  [d, e, u, t, n]
58378
- ), m = Ae(
58378
+ ), m = Ce(
58379
58379
  async (v) => {
58380
58380
  if (!e || !n || t.length === 0) return;
58381
58381
  const w = v || u(), D = [];
@@ -58412,7 +58412,7 @@ ${j.getHTML()}`
58412
58412
  t,
58413
58413
  n
58414
58414
  ]
58415
- ), b = Ae(
58415
+ ), b = Ce(
58416
58416
  async ({
58417
58417
  format: v,
58418
58418
  tab: w,
@@ -58457,12 +58457,12 @@ ${j.getHTML()}`
58457
58457
  g,
58458
58458
  c
58459
58459
  ]
58460
- ), y = Ae(
58460
+ ), y = Ce(
58461
58461
  ({ format: v, tab: w, name: D }) => {
58462
58462
  b({ format: v, tab: w, name: D });
58463
58463
  },
58464
58464
  [b]
58465
- ), F = Ae(
58465
+ ), F = Ce(
58466
58466
  async ({
58467
58467
  format: v,
58468
58468
  tab: w,
@@ -58502,7 +58502,7 @@ ${j.getHTML()}`
58502
58502
  { id: "all", label: "All tabs" }
58503
58503
  ],
58504
58504
  []
58505
- ), N = s.length > 1, O = Ae(
58505
+ ), N = s.length > 1, O = Ce(
58506
58506
  (A = "pdf", M) => {
58507
58507
  if (w.find(
58508
58508
  (j) => j.id === A
@@ -58793,7 +58793,7 @@ ${j.getHTML()}`
58793
58793
  ipfsImageFetchFn: y,
58794
58794
  onDocxImport: m,
58795
58795
  fetchV1ImageFn: F
58796
- }), H = pV(e), L = Ae(() => {
58796
+ }), H = pV(e), L = Ce(() => {
58797
58797
  }, []), P = e ? H.currentSize : void 0, K = e ? H.onSetFontSize : L, oe = e ? H.currentLineHeight : void 0, ee = e ? H.onSetLineHeight : L, J = or("(max-width: 1560px)"), le = or("(max-width: 1370px)"), G = or("(max-width: 1270px)"), Z = or("(max-width: 1160px)"), T = or("(max-width: 1030px)"), [X, Y] = Ne(!1), [pe, B] = Ne("Default"), re = wt(
58798
58798
  () => Jq(O ?? []),
58799
58799
  [O]
@@ -58812,7 +58812,7 @@ ${j.getHTML()}`
58812
58812
  e.off("selectionUpdate", ie), e.off("transaction", ce);
58813
58813
  };
58814
58814
  }, [e]);
58815
- const V = Ae(
58815
+ const V = Ce(
58816
58816
  (ie) => {
58817
58817
  switch (ie.title) {
58818
58818
  case "Highlight":
@@ -58896,9 +58896,9 @@ ${j.getHTML()}`
58896
58896
  G,
58897
58897
  le,
58898
58898
  J
58899
- ]), se = Ae(() => Y(!1), []), ye = Ae(() => {
58899
+ ]), se = Ce(() => Y(!1), []), ye = Ce(() => {
58900
58900
  Y((ie) => !ie), $(!1);
58901
- }, [$]), ke = Ae(
58901
+ }, [$]), ke = Ce(
58902
58902
  () => l((ie) => !ie),
58903
58903
  [l]
58904
58904
  );
@@ -65476,7 +65476,8 @@ const rke = Ct.create({
65476
65476
  isPresentationMode: !1,
65477
65477
  isPreviewEditor: !1,
65478
65478
  isCollaboratorsDoc: !1,
65479
- isSplitView: !1
65479
+ isSplitView: !1,
65480
+ isFocusMode: !1
65480
65481
  }, VK = (e) => (e == null ? void 0 : e()) ?? r7, Gc = /* @__PURE__ */ new WeakMap(), gk = /* @__PURE__ */ new Set(), yke = (e) => typeof Element < "u" && e instanceof Element, xke = (e) => e ? yke(e) ? e : typeof Node < "u" && e instanceof Node && e.parentElement ? e.parentElement : null : null, vke = (e) => (gk.add(e), Gc.set(e.dom, e), Gc.set(e.gutterElement, e), Gc.set(e.contentElement, e), () => {
65481
65482
  gk.delete(e), Gc.delete(e.dom), Gc.delete(e.gutterElement), Gc.delete(e.contentElement);
65482
65483
  }), KK = (e) => {
@@ -67754,11 +67755,11 @@ function m9e(e, t) {
67754
67755
  if (fe.content) {
67755
67756
  var Be = "aria-" + fe.content, Oe = D.id, ze = Qp(v.props.triggerTarget || e);
67756
67757
  ze.forEach(function(qe) {
67757
- var ft = qe.getAttribute(Be);
67758
+ var gt = qe.getAttribute(Be);
67758
67759
  if (v.state.isVisible)
67759
- qe.setAttribute(Be, ft ? ft + " " + Oe : Oe);
67760
+ qe.setAttribute(Be, gt ? gt + " " + Oe : Oe);
67760
67761
  else {
67761
- var at = ft && ft.replace(Oe, "").trim();
67762
+ var at = gt && gt.replace(Oe, "").trim();
67762
67763
  at ? qe.setAttribute(Be, at) : qe.removeAttribute(Be);
67763
67764
  }
67764
67765
  });
@@ -67876,7 +67877,7 @@ function m9e(e, t) {
67876
67877
  var Be = fe.target, Oe = M().contains(Be) || D.contains(Be);
67877
67878
  if (!(fe.type === "mousemove" && Oe)) {
67878
67879
  var ze = ke().concat(D).map(function(qe) {
67879
- var ft, at = qe._tippy, Mt = (ft = at.popperInstance) == null ? void 0 : ft.state;
67880
+ var gt, at = qe._tippy, Mt = (gt = at.popperInstance) == null ? void 0 : gt.state;
67880
67881
  return Mt ? {
67881
67882
  popperRect: qe.getBoundingClientRect(),
67882
67883
  popperState: Mt,
@@ -67904,7 +67905,7 @@ function m9e(e, t) {
67904
67905
  }
67905
67906
  function te() {
67906
67907
  se();
67907
- var fe = v.props, Be = fe.popperOptions, Oe = fe.placement, ze = fe.offset, qe = fe.getReferenceClientRect, ft = fe.moveTransition, at = A() ? Fk(D).arrow : null, Mt = qe ? {
67908
+ var fe = v.props, Be = fe.popperOptions, Oe = fe.placement, ze = fe.offset, qe = fe.getReferenceClientRect, gt = fe.moveTransition, at = A() ? Fk(D).arrow : null, Mt = qe ? {
67908
67909
  getBoundingClientRect: qe,
67909
67910
  contextElement: qe.contextElement || M()
67910
67911
  } : e, gn = {
@@ -67916,8 +67917,8 @@ function m9e(e, t) {
67916
67917
  var Qe = _t.state;
67917
67918
  if (A()) {
67918
67919
  var ut = j(), Vt = ut.box;
67919
- ["placement", "reference-hidden", "escaped"].forEach(function(gt) {
67920
- gt === "placement" ? Vt.setAttribute("data-placement", Qe.placement) : Qe.attributes.popper["data-popper-" + gt] ? Vt.setAttribute("data-" + gt, "") : Vt.removeAttribute("data-" + gt);
67920
+ ["placement", "reference-hidden", "escaped"].forEach(function(mt) {
67921
+ mt === "placement" ? Vt.setAttribute("data-placement", Qe.placement) : Qe.attributes.popper["data-popper-" + mt] ? Vt.setAttribute("data-" + mt, "") : Vt.removeAttribute("data-" + mt);
67921
67922
  }), Qe.attributes.popper = {};
67922
67923
  }
67923
67924
  }
@@ -67944,7 +67945,7 @@ function m9e(e, t) {
67944
67945
  }, {
67945
67946
  name: "computeStyles",
67946
67947
  options: {
67947
- adaptive: !ft
67948
+ adaptive: !gt
67948
67949
  }
67949
67950
  }, gn];
67950
67951
  A() && at && At.push({
@@ -68028,7 +68029,7 @@ function m9e(e, t) {
68028
68029
  var fe = v.state.isVisible, Be = v.state.isDestroyed, Oe = !v.state.isEnabled, ze = ka.isTouch && !v.props.touch, qe = t6(v.props.duration, 0, Ri.duration);
68029
68030
  if (!(fe || Be || Oe || ze) && !M().hasAttribute("disabled") && (U("onShow", [v], !1), v.props.onShow(v) !== !1)) {
68030
68031
  if (v.state.isVisible = !0, A() && (D.style.visibility = "visible"), R(), ee(), v.state.isMounted || (D.style.transition = "none"), A()) {
68031
- var ft = j(), at = ft.box, Mt = ft.content;
68032
+ var gt = j(), at = gt.box, Mt = gt.content;
68032
68033
  n6([at, Mt], 0);
68033
68034
  }
68034
68035
  p = function() {
@@ -68050,8 +68051,8 @@ function m9e(e, t) {
68050
68051
  var fe = !v.state.isVisible, Be = v.state.isDestroyed, Oe = !v.state.isEnabled, ze = t6(v.props.duration, 1, Ri.duration);
68051
68052
  if (!(fe || Be || Oe) && (U("onHide", [v], !1), v.props.onHide(v) !== !1)) {
68052
68053
  if (v.state.isVisible = !1, v.state.isShown = !1, u = !1, s = !1, A() && (D.style.visibility = "hidden"), L(), J(), R(!0), A()) {
68053
- var qe = j(), ft = qe.box, at = qe.content;
68054
- v.props.animation && (n6([ft, at], ze), jN([ft, at], "hidden"));
68054
+ var qe = j(), gt = qe.box, at = qe.content;
68055
+ v.props.animation && (n6([gt, at], ze), jN([gt, at], "hidden"));
68055
68056
  }
68056
68057
  $(), H(), v.props.animation ? A() && le(ze, v.unmount) : v.unmount();
68057
68058
  }
@@ -82636,9 +82637,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
82636
82637
  for (se.max_code = W, ye = te.heap_len >> 1; 1 <= ye; ye--) X(te, ie, ye);
82637
82638
  for (ge = I; ye = te.heap[1], te.heap[1] = te.heap[te.heap_len--], X(te, ie, 1), ke = te.heap[1], te.heap[--te.heap_max] = ye, te.heap[--te.heap_max] = ke, ie[2 * ge] = ie[2 * ye] + ie[2 * ke], te.depth[ge] = (te.depth[ye] >= te.depth[ke] ? te.depth[ye] : te.depth[ke]) + 1, ie[2 * ye + 1] = ie[2 * ke + 1] = ge, te.heap[1] = ge++, X(te, ie, 1), 2 <= te.heap_len; ) ;
82638
82639
  te.heap[--te.heap_max] = te.heap[1], function(Q, ae) {
82639
- var me, ve, Ee, De, fe, Be, Oe = ae.dyn_tree, ze = ae.max_code, qe = ae.stat_desc.static_tree, ft = ae.stat_desc.has_stree, at = ae.stat_desc.extra_bits, Mt = ae.stat_desc.extra_base, gn = ae.stat_desc.max_length, At = 0;
82640
+ var me, ve, Ee, De, fe, Be, Oe = ae.dyn_tree, ze = ae.max_code, qe = ae.stat_desc.static_tree, gt = ae.stat_desc.has_stree, at = ae.stat_desc.extra_bits, Mt = ae.stat_desc.extra_base, gn = ae.stat_desc.max_length, At = 0;
82640
82641
  for (De = 0; De <= m; De++) Q.bl_count[De] = 0;
82641
- for (Oe[2 * Q.heap[Q.heap_max] + 1] = 0, me = Q.heap_max + 1; me < g; me++) gn < (De = Oe[2 * Oe[2 * (ve = Q.heap[me]) + 1] + 1] + 1) && (De = gn, At++), Oe[2 * ve + 1] = De, ze < ve || (Q.bl_count[De]++, fe = 0, Mt <= ve && (fe = at[ve - Mt]), Be = Oe[2 * ve], Q.opt_len += Be * (De + fe), ft && (Q.static_len += Be * (qe[2 * ve + 1] + fe)));
82642
+ for (Oe[2 * Q.heap[Q.heap_max] + 1] = 0, me = Q.heap_max + 1; me < g; me++) gn < (De = Oe[2 * Oe[2 * (ve = Q.heap[me]) + 1] + 1] + 1) && (De = gn, At++), Oe[2 * ve + 1] = De, ze < ve || (Q.bl_count[De]++, fe = 0, Mt <= ve && (fe = at[ve - Mt]), Be = Oe[2 * ve], Q.opt_len += Be * (De + fe), gt && (Q.static_len += Be * (qe[2 * ve + 1] + fe)));
82642
82643
  if (At !== 0) {
82643
82644
  do {
82644
82645
  for (De = gn - 1; Q.bl_count[De] === 0; ) De--;
@@ -108885,19 +108886,19 @@ function Gze({
108885
108886
  var pee = Gze;
108886
108887
  const hee = Yn(
108887
108888
  (e, t) => {
108888
- const [n, r] = Ne(0), o = Ae(
108889
+ const [n, r] = Ne(0), o = Ce(
108889
108890
  (l) => {
108890
108891
  const u = e.items[l];
108891
108892
  u && e.command(u);
108892
108893
  },
108893
108894
  [e]
108894
- ), i = Ae(() => {
108895
+ ), i = Ce(() => {
108895
108896
  r(
108896
108897
  (l) => (l + e.items.length - 1) % e.items.length
108897
108898
  );
108898
- }, [e.items.length]), s = Ae(() => {
108899
+ }, [e.items.length]), s = Ce(() => {
108899
108900
  r((l) => (l + 1) % e.items.length);
108900
- }, [e.items.length]), a = Ae(() => {
108901
+ }, [e.items.length]), a = Ce(() => {
108901
108902
  o(n);
108902
108903
  }, [o, n]);
108903
108904
  return _e(() => {
@@ -169733,7 +169734,7 @@ const s$e = (e, t, { state: n, dispatch: r }) => {
169733
169734
  command: t,
169734
169735
  editor: n
169735
169736
  }) => {
169736
- const [r, o] = Ne(0), [i, s] = Ne(e), a = or("(max-width: 640px)"), l = q2(n, "callout"), u = q2(n, "codeBlock"), c = q2(n, "column"), d = q2(n, "table"), p = Ae(
169737
+ const [r, o] = Ne(0), [i, s] = Ne(e), a = or("(max-width: 640px)"), l = q2(n, "callout"), u = q2(n, "codeBlock"), c = q2(n, "column"), d = q2(n, "table"), p = Ce(
169737
169738
  (f) => {
169738
169739
  const g = i[f];
169739
169740
  g && (g.title === "Continue writing" || t(g));
@@ -171279,7 +171280,7 @@ const MR = () => {
171279
171280
  }, [u]), _e(() => {
171280
171281
  c(_), p(!!N);
171281
171282
  }, [_, N]);
171282
- const K = Ae(() => {
171283
+ const K = Ce(() => {
171283
171284
  var me, ve;
171284
171285
  if (!w) return "";
171285
171286
  const se = t.getJSON();
@@ -171311,7 +171312,7 @@ const MR = () => {
171311
171312
  }
171312
171313
  return ge = (ce + W).trim(), ge && (ge = `Document context (${be} chars before, ${Q} chars after):
171313
171314
  ${ge}`), ge;
171314
- }, [t, n, w]), oe = Ae(async () => {
171315
+ }, [t, n, w]), oe = Ce(async () => {
171315
171316
  var se;
171316
171317
  if (u.trim())
171317
171318
  try {
@@ -171368,7 +171369,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171368
171369
  K,
171369
171370
  w,
171370
171371
  r
171371
- ]), ee = Ae(() => {
171372
+ ]), ee = Ce(() => {
171372
171373
  if ($.current) {
171373
171374
  $.current.abort(), l(!1), s(!1);
171374
171375
  const se = setTimeout(() => {
@@ -171380,7 +171381,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171380
171381
  }, 0);
171381
171382
  return () => clearTimeout(se);
171382
171383
  }
171383
- }, []), J = Ae(() => {
171384
+ }, []), J = Ce(() => {
171384
171385
  if (typeof n == "function") {
171385
171386
  m(!0);
171386
171387
  const se = setTimeout(() => {
@@ -171399,7 +171400,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171399
171400
  }, 150);
171400
171401
  return () => clearTimeout(se);
171401
171402
  }
171402
- }, [n, t, e.nodeSize, N, o]), le = Ae(() => {
171403
+ }, [n, t, e.nodeSize, N, o]), le = Ce(() => {
171403
171404
  if (typeof n == "function") {
171404
171405
  m(!0);
171405
171406
  const se = setTimeout(() => {
@@ -171418,14 +171419,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171418
171419
  }, 150);
171419
171420
  return () => clearTimeout(se);
171420
171421
  }
171421
- }, [n, t, e.nodeSize, o]), G = Ae(
171422
+ }, [n, t, e.nodeSize, o]), G = Ce(
171422
171423
  (se) => {
171423
171424
  c(se.target.value);
171424
171425
  },
171425
171426
  []
171426
- ), Z = Ae(() => {
171427
+ ), Z = Ce(() => {
171427
171428
  r && u !== _ && r({ prompt: u });
171428
- }, [r, u, _]), T = Ae(
171429
+ }, [r, u, _]), T = Ce(
171429
171430
  (se) => {
171430
171431
  r == null || r({ model: se });
171431
171432
  const ye = U == null ? void 0 : U.defaultModels.find(
@@ -171434,22 +171435,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171434
171435
  ye && (U != null && U.setActiveModel) && U.setActiveModel(ye);
171435
171436
  },
171436
171437
  [r, U]
171437
- ), X = Ae(() => {
171438
+ ), X = Ce(() => {
171438
171439
  var ye, ke;
171439
171440
  if (r == null || r({ content: "" }), p(!1), f(""), !O.current) return;
171440
171441
  (ye = O.current) == null || ye.focus();
171441
171442
  const se = O.current.value.length;
171442
171443
  (ke = O.current) == null || ke.setSelectionRange(se, se), O.current.scrollTop = O.current.scrollHeight;
171443
- }, [r]), Y = Ae(() => {
171444
+ }, [r]), Y = Ce(() => {
171444
171445
  y(!0);
171445
- }, []), pe = Ae(() => {
171446
+ }, []), pe = Ce(() => {
171446
171447
  if (P) {
171447
171448
  const se = P.getHTML();
171448
171449
  y(!1), r == null || r({ content: se }), f(se);
171449
171450
  }
171450
- }, [P, r]), B = Ae(() => {
171451
+ }, [P, r]), B = Ce(() => {
171451
171452
  y(!1), P && P.commands.setContent(h || N || "");
171452
- }, [P, h, N]), re = Ae(
171453
+ }, [P, h, N]), re = Ce(
171453
171454
  (se) => {
171454
171455
  se.key === "Enter" && (se.ctrlKey || se.metaKey) && !se.shiftKey ? (se.preventDefault(), d && J()) : se.key === "Enter" && !se.shiftKey && !b ? (se.preventDefault(), u.trim() && oe()) : se.key === "Escape" ? (se.preventDefault(), a ? ee() : le()) : se.key === " " && !u.trim() ? (se.preventDefault(), le()) : se.key === "r" && (se.ctrlKey || se.metaKey) ? (se.preventDefault(), X()) : se.key === "e" && (se.ctrlKey || se.metaKey) && (se.preventDefault(), Y());
171455
171456
  },
@@ -171465,7 +171466,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171465
171466
  a,
171466
171467
  ee
171467
171468
  ]
171468
- ), de = Ae((se) => {
171469
+ ), de = Ce((se) => {
171469
171470
  se ? localStorage.setItem("include-ddoc-context", "true") : localStorage.removeItem("include-ddoc-context");
171470
171471
  }, []);
171471
171472
  _e(() => {
@@ -171499,7 +171500,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171499
171500
  return () => clearInterval(se);
171500
171501
  }
171501
171502
  }, [i]);
171502
- const V = Ae(
171503
+ const V = Ce(
171503
171504
  () => /* @__PURE__ */ x.jsx("span", { className: "text-body-sm color-text-secondary pt-1 flex items-center gap-1", children: /* @__PURE__ */ x.jsx(lp, { mode: "wait", children: /* @__PURE__ */ x.jsxs(
171504
171505
  "span",
171505
171506
  {
@@ -171882,7 +171883,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171882
171883
  }) => {
171883
171884
  const [l, u] = Ne(null), [c, d] = Ne([]), p = Se(/* @__PURE__ */ new Map()), h = Se([]), f = Se(i);
171884
171885
  f.current = i;
171885
- const g = Ae(() => {
171886
+ const g = Ce(() => {
171886
171887
  const E = n.current, _ = p.current;
171887
171888
  d(
171888
171889
  h.current.map((N) => _.get(N)).filter((N) => !!N).map((N) => ({
@@ -171891,16 +171892,16 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171891
171892
  isActive: N.tabId === E
171892
171893
  }))
171893
171894
  );
171894
- }, [n]), m = Ae(
171895
+ }, [n]), m = Ce(
171895
171896
  (E) => {
171896
171897
  a(E.editor), r.current === E.editor && (r.current = null), (o == null ? void 0 : o.current) === E.editor && (o.current = null);
171897
171898
  },
171898
171899
  [r, a, o]
171899
- ), b = Ae(() => {
171900
+ ), b = Ce(() => {
171900
171901
  p.current.forEach((E) => {
171901
171902
  m(E);
171902
171903
  }), p.current.clear(), h.current = [], r.current = null, o && (o.current = null), u(null), d([]);
171903
- }, [r, m, o]), y = Ae(() => {
171904
+ }, [r, m, o]), y = Ce(() => {
171904
171905
  const E = n.current;
171905
171906
  p.current.forEach((_) => {
171906
171907
  const N = _.tabId === E;
@@ -171912,7 +171913,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171912
171913
  LR(_.editor, !1), hHe(_.editor);
171913
171914
  }
171914
171915
  });
171915
- }, [n]), F = Ae(
171916
+ }, [n]), F = Ce(
171916
171917
  (E) => {
171917
171918
  const _ = p.current;
171918
171919
  let N = _.get(E);
@@ -171922,17 +171923,17 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
171922
171923
  }, _.set(E, N)), N;
171923
171924
  },
171924
171925
  [s]
171925
- ), v = Ae((E) => {
171926
+ ), v = Ce((E) => {
171926
171927
  h.current = [
171927
171928
  E,
171928
171929
  ...h.current.filter((_) => _ !== E)
171929
171930
  ].slice(0, dHe);
171930
- }, []), w = Ae(() => {
171931
+ }, []), w = Ce(() => {
171931
171932
  const E = new Set(h.current);
171932
171933
  p.current.forEach((_, N) => {
171933
171934
  E.has(N) || (m(_), p.current.delete(N));
171934
171935
  });
171935
- }, [m]), D = Ae(
171936
+ }, [m]), D = Ce(
171936
171937
  (E) => {
171937
171938
  const _ = F(E);
171938
171939
  return v(E), w(), r.current = _.editor, u(
@@ -172090,12 +172091,12 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172090
172091
  }) => {
172091
172092
  const X = (a == null ? void 0 : a.enabled) === !0, Y = X ? a.connection : null, { activeCommentId: pe, setActiveCommentId: B, focusCommentWithActiveId: re } = yHe(), de = Se(ee);
172092
172093
  de.current = ee;
172093
- const V = Se(null), te = !!(w && k), { tocItems: se, setTocItems: ye, handleTocUpdateForTab: ke } = xHe(ee), ge = !!(o && i === "suggest"), ie = Se(r7), ce = T ?? ie, be = Ae(
172094
+ const V = Se(null), te = !!(w && k), { tocItems: se, setTocItems: ye, handleTocUpdateForTab: ke } = xHe(ee), ge = !!(o && i === "suggest"), ie = Se(r7), ce = T ?? ie, be = Ce(
172094
172095
  (Te, Re) => {
172095
172096
  de.current === Te && (B(Re || null), Re && setTimeout(() => re(Re)));
172096
172097
  },
172097
172098
  [re, B]
172098
- ), I = Ae(
172099
+ ), I = Ce(
172099
172100
  (Te, Re, ot) => {
172100
172101
  de.current === Te && ke(Te, Re, ot);
172101
172102
  },
@@ -172133,7 +172134,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172133
172134
  _e(() => {
172134
172135
  De.current = p;
172135
172136
  }, [p]);
172136
- const fe = Ae(
172137
+ const fe = Ce(
172137
172138
  (Te, Re) => {
172138
172139
  var Gt;
172139
172140
  if (!E0(Te, V.current) || De.current)
@@ -172146,13 +172147,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172146
172147
  [me]
172147
172148
  ), Be = Se(!0), [Oe, ze] = Ne([]), qe = Se(o);
172148
172149
  qe.current = o;
172149
- const ft = Se(C);
172150
- ft.current = C, _e(() => {
172150
+ const gt = Se(C);
172151
+ gt.current = C, _e(() => {
172151
172152
  ee && B(null);
172152
172153
  }, [ee, B]);
172153
- const at = Ae(
172154
+ const at = Ce(
172154
172155
  (Te) => {
172155
- const Re = !ft.current && Be.current && de.current === Te, ot = new Ug({
172156
+ const Re = !gt.current && Be.current && de.current === Te, ot = new Ug({
172156
172157
  extensions: W(Te),
172157
172158
  editorProps: {
172158
172159
  clipboardTextSerializer(ht) {
@@ -172242,7 +172243,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172242
172243
  Ee,
172243
172244
  ve
172244
172245
  ]
172245
- ), Mt = wt(() => X, [X]), gn = wt(() => o && !ge ? !1 : Mt ? !u : !0, [o, ge, Mt, u]), At = Ae((Te) => {
172246
+ ), Mt = wt(() => X, [X]), gn = wt(() => o && !ge ? !1 : Mt ? !u : !0, [o, ge, Mt, u]), At = Ce((Te) => {
172246
172247
  Gk(Te), cHe(Te), Gk(Te);
172247
172248
  }, []), { editor: Le, cachedEditorEntries: _t } = fHe({
172248
172249
  activeTabId: ee,
@@ -172262,7 +172263,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172262
172263
  const Te = (Re = Le.view) == null ? void 0 : Re.dom;
172263
172264
  Te && (ge ? Te.setAttribute("data-suggestion-mode", "true") : Te.removeAttribute("data-suggestion-mode"));
172264
172265
  }, [Le, ge]);
172265
- const Qe = Se(null), ut = Se(null), Vt = Se(0), gt = Se(""), xt = Ae(
172266
+ const Qe = Se(null), ut = Se(null), Vt = Se(0), mt = Se(""), xt = Ce(
172266
172267
  (Te) => {
172267
172268
  !Le || Le.isDestroyed || (Qe.current && clearTimeout(Qe.current), Qe.current = setTimeout(() => {
172268
172269
  Qe.current = null;
@@ -172276,14 +172277,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172276
172277
  );
172277
172278
  _e(() => {
172278
172279
  if (!Le) return;
172279
- gt.current = zR(Le.state.doc), xt(0);
172280
+ mt.current = zR(Le.state.doc), xt(0);
172280
172281
  const Te = ({
172281
172282
  transaction: Re
172282
172283
  }) => {
172283
172284
  if (V.current !== Le || !mHe(Re))
172284
172285
  return;
172285
172286
  const ot = zR(Re.doc);
172286
- ot !== gt.current && (gt.current = ot, xt(300));
172287
+ ot !== mt.current && (mt.current = ot, xt(300));
172287
172288
  };
172288
172289
  return Le.on("transaction", Te), () => {
172289
172290
  Le.off("transaction", Te), Qe.current && clearTimeout(Qe.current), V2(ut.current), ut.current = null, Vt.current += 1;
@@ -172304,20 +172305,20 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172304
172305
  if (!mn) return;
172305
172306
  const Ci = mn.split("-").pop();
172306
172307
  if (Ci) {
172307
- const yt = Array.from(
172308
+ const ft = Array.from(
172308
172309
  ht.querySelectorAll("[data-toc-id]")
172309
172310
  ).find((Zi) => {
172310
172311
  var As;
172311
172312
  return (As = Zi.dataset.tocId) == null ? void 0 : As.includes(Ci);
172312
172313
  });
172313
- if (yt) {
172314
+ if (ft) {
172314
172315
  Re.preventDefault(), Re.stopPropagation();
172315
172316
  const Zi = vh({
172316
- targetElement: yt,
172317
+ targetElement: ft,
172317
172318
  editorRoot: ht
172318
172319
  });
172319
172320
  Zi && requestAnimationFrame(() => {
172320
- const As = Zi.getBoundingClientRect(), al = yt.getBoundingClientRect();
172321
+ const As = Zi.getBoundingClientRect(), al = ft.getBoundingClientRect();
172321
172322
  Zi.scrollBy({
172322
172323
  top: al.top - As.top,
172323
172324
  behavior: "smooth"
@@ -172333,13 +172334,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172333
172334
  }, [o]), _e(() => {
172334
172335
  Mt && M(!l && !L);
172335
172336
  }, [Mt, l, L]);
172336
- const zt = Se(!1), dt = Se(null), vt = Ae(
172337
+ const zt = Se(!1), dt = Se(null), vt = Ce(
172337
172338
  (Te) => {
172338
172339
  const Re = Te.map((ot) => Fo(ot));
172339
172340
  qs(e, ld(Re), "self");
172340
172341
  },
172341
172342
  [e]
172342
- ), St = Ae(
172343
+ ), St = Ce(
172343
172344
  (Te) => Array.isArray(Te) || typeof Te == "string" && !xee(Te),
172344
172345
  []
172345
172346
  );
@@ -172515,7 +172516,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172515
172516
  Y == null ? void 0 : Y.roomId,
172516
172517
  Y == null ? void 0 : Y.wsUrl
172517
172518
  ]);
172518
- const rn = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: bt } = Ki(), jt = new URLSearchParams(rn), kn = jt.get("heading"), wn = kn == null ? void 0 : kn.split("-").pop(), st = Ae(
172519
+ const rn = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: yt } = Ki(), jt = new URLSearchParams(rn), kn = jt.get("heading"), wn = kn == null ? void 0 : kn.split("-").pop(), st = Ce(
172519
172520
  (Te) => {
172520
172521
  if (Le)
172521
172522
  try {
@@ -172537,7 +172538,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172537
172538
  editorRoot: Le.view.dom
172538
172539
  });
172539
172540
  pn && requestAnimationFrame(() => {
172540
- const In = pn.getBoundingClientRect(), mn = ot.getBoundingClientRect(), Ci = mn.top - In.top - In.height / (bt ? 5 : 7) + mn.height / (bt ? 5 : 7);
172541
+ const In = pn.getBoundingClientRect(), mn = ot.getBoundingClientRect(), Ci = mn.top - In.top - In.height / (yt ? 5 : 7) + mn.height / (yt ? 5 : 7);
172541
172542
  pn.scrollBy({
172542
172543
  top: Ci,
172543
172544
  behavior: "smooth"
@@ -172547,7 +172548,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172547
172548
  return;
172548
172549
  }
172549
172550
  },
172550
- [Le, bt]
172551
+ [Le, yt]
172551
172552
  );
172552
172553
  _e(() => {
172553
172554
  !o || !wn || oe || setTimeout(() => {
@@ -172556,7 +172557,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172556
172557
  }, [
172557
172558
  Le,
172558
172559
  o,
172559
- bt,
172560
+ yt,
172560
172561
  wn,
172561
172562
  oe,
172562
172563
  st
@@ -172609,7 +172610,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172609
172610
  storeApiRef: me
172610
172611
  };
172611
172612
  }, yHe = () => {
172612
- const [e, t] = Ne(null), n = Se(null), r = Ae((o) => {
172613
+ const [e, t] = Ne(null), n = Se(null), r = Ce((o) => {
172613
172614
  if (!n.current) return;
172614
172615
  const i = n.current.querySelector(`input#${o}`);
172615
172616
  i && i.scrollIntoView({
@@ -172632,7 +172633,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172632
172633
  const a = o.current[e];
172633
172634
  n(a ?? []);
172634
172635
  }, [e]);
172635
- const s = Ae(
172636
+ const s = Ce(
172636
172637
  (a, l, u) => {
172637
172638
  const c = () => {
172638
172639
  o.current = {
@@ -172685,10 +172686,10 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172685
172686
  v.current = t;
172686
172687
  const w = Se(o);
172687
172688
  w.current = o;
172688
- const D = Ae((U) => {
172689
+ const D = Ce((U) => {
172689
172690
  var $;
172690
172691
  ($ = v.current) == null || $.call(v, U);
172691
- }, []), k = Ae((U) => {
172692
+ }, []), k = Ce((U) => {
172692
172693
  var $;
172693
172694
  ($ = w.current) == null || $.call(w, U);
172694
172695
  }, []), E = Se({
@@ -172703,7 +172704,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172703
172704
  disableInlineComment: l
172704
172705
  };
172705
172706
  }, [u, a, l]);
172706
- const _ = Ae(
172707
+ const _ = Ce(
172707
172708
  () => S$e(
172708
172709
  D,
172709
172710
  n,
@@ -172726,7 +172727,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172726
172727
  null
172727
172728
  );
172728
172729
  return {
172729
- buildExtensionsForTab: Ae(
172730
+ buildExtensionsForTab: Ce(
172730
172731
  (U) => {
172731
172732
  const $ = _W.configure({
172732
172733
  HTMLAttributes: {
@@ -172847,7 +172848,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172847
172848
  }, [e]), _e(() => {
172848
172849
  r.current = t;
172849
172850
  }, [t]);
172850
- const o = Ae(
172851
+ const o = Ce(
172851
172852
  (a, l, u) => {
172852
172853
  let c = !1;
172853
172854
  return a.doc.nodesBetween(l, u, (d) => {
@@ -172857,7 +172858,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172857
172858
  }), c;
172858
172859
  },
172859
172860
  []
172860
- ), i = Ae(
172861
+ ), i = Ce(
172861
172862
  (a, l) => {
172862
172863
  var m;
172863
172864
  if (n.current)
@@ -172883,7 +172884,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172883
172884
  return (m = r.current) == null || m.call(r, g), !1;
172884
172885
  },
172885
172886
  [o]
172886
- ), s = Ae(
172887
+ ), s = Ce(
172887
172888
  (a, l, u) => i(a, u),
172888
172889
  [i]
172889
172890
  );
@@ -172994,7 +172995,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172994
172995
  return () => window.clearTimeout(i);
172995
172996
  }, [e, t, n]);
172996
172997
  }, kHe = (e) => {
172997
- const t = Se([]), n = Se([]), r = Se(!1), o = Ae(
172998
+ const t = Se([]), n = Se([]), r = Se(!1), o = Ce(
172998
172999
  (l, u) => {
172999
173000
  const c = xa(e);
173000
173001
  if (!ng(c, l.tabId))
@@ -173011,15 +173012,15 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173011
173012
  return !0;
173012
173013
  },
173013
173014
  [e]
173014
- ), i = Ae(() => {
173015
+ ), i = Ce(() => {
173015
173016
  const l = t.current.length > 0 ? t.current[t.current.length - 1] : void 0;
173016
173017
  return !l || !o(l, "undo") ? !1 : (t.current.pop(), n.current.push(l), !0);
173017
- }, [o]), s = Ae(() => {
173018
+ }, [o]), s = Ce(() => {
173018
173019
  const l = n.current, u = l.length ? l[l.length - 1] : void 0;
173019
173020
  return !u || !o(u, "redo") ? !1 : (l.pop(), t.current.push(u), !0);
173020
173021
  }, [o]);
173021
173022
  return {
173022
- applyRename: Ae(
173023
+ applyRename: Ce(
173023
173024
  ({ tabId: l, newName: u, emoji: c }) => {
173024
173025
  const d = xa(e), p = ng(d, l);
173025
173026
  if (!p)
@@ -173054,7 +173055,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173054
173055
  getEditor: c
173055
173056
  }) => {
173056
173057
  var $;
173057
- const d = n || t !== null, p = Se(!1), h = r && !n && !t, f = Ae(() => {
173058
+ const d = n || t !== null, p = Se(!1), h = r && !n && !t, f = Ce(() => {
173058
173059
  h || u == null || u();
173059
173060
  }, [h, u]), g = wt(() => {
173060
173061
  if (!e)
@@ -173117,7 +173118,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173117
173118
  const H = m || null;
173118
173119
  l == null || l(H);
173119
173120
  }, [m, l]);
173120
- const O = Ae(
173121
+ const O = Ce(
173121
173122
  (H) => {
173122
173123
  if (!e || H === m) return;
173123
173124
  if (!i || !d) {
@@ -173180,7 +173181,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173180
173181
  o,
173181
173182
  u
173182
173183
  ]);
173183
- const A = Ae(() => {
173184
+ const A = Ce(() => {
173184
173185
  const H = xa(e), L = H.order, P = WR(), K = {
173185
173186
  name: `Tab ${L.length + 1}`,
173186
173187
  emoji: null,
@@ -173189,7 +173190,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173189
173190
  return e.transact(() => {
173190
173191
  H.nameById.set(K.id, K.name), H.emojiById.set(K.id, K.emoji), e.getXmlFragment(K.id), i && H.tabState.set("activeTabId", P), L.push([K.id]);
173191
173192
  }), b(P), u == null || u(), P;
173192
- }, [i, e, u]), M = Ae(
173193
+ }, [i, e, u]), M = Ce(
173193
173194
  (H) => {
173194
173195
  const L = xa(e), { order: P } = L;
173195
173196
  if (P.length <= 1)
@@ -173211,7 +173212,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173211
173212
  }), J && le && b(le), u == null || u();
173212
173213
  },
173213
173214
  [e, i, u]
173214
- ), C = Ae(() => {
173215
+ ), C = Ce(() => {
173215
173216
  const H = w.current;
173216
173217
  if (!H) return !1;
173217
173218
  if (Date.now() - H.timestamp > HR)
@@ -173222,7 +173223,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173222
173223
  const K = Math.min(H.orderIndex, P.length);
173223
173224
  P.insert(K, [H.tabId]), i && L.tabState.set("activeTabId", H.tabId);
173224
173225
  }), b(H.tabId), w.current = null, u == null || u(), !0);
173225
- }, [e, i, u]), j = Ae(() => {
173226
+ }, [e, i, u]), j = Ce(() => {
173226
173227
  const H = c == null ? void 0 : c();
173227
173228
  if (!H || H.isDestroyed)
173228
173229
  return !0;
@@ -173248,7 +173249,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173248
173249
  C,
173249
173250
  _
173250
173251
  ]);
173251
- const S = Ae(
173252
+ const S = Ce(
173252
173253
  (H, { newName: L, emoji: P }) => {
173253
173254
  E({ tabId: H, newName: L, emoji: P }).tabNotFound && C8({
173254
173255
  title: "Rename tab error",
@@ -173256,7 +173257,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173256
173257
  }), u == null || u();
173257
173258
  },
173258
173259
  [E, u]
173259
- ), R = Ae(
173260
+ ), R = Ce(
173260
173261
  (H) => {
173261
173262
  const L = xa(e), { order: P } = L, K = ng(L, H);
173262
173263
  if (!K) {
@@ -173272,7 +173273,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
173272
173273
  }), b(oe), u == null || u(), oe;
173273
173274
  },
173274
173275
  [e, i, u]
173275
- ), U = Ae(
173276
+ ), U = Ce(
173276
173277
  (H, L) => {
173277
173278
  const { order: P } = xa(e), K = P.toArray(), oe = K.indexOf(L), ee = K.indexOf(H);
173278
173279
  oe === -1 || ee === -1 || (e.transact(() => {
@@ -176908,8 +176909,8 @@ var ite = {};
176908
176909
  le[T] = G[T] - Z[T];
176909
176910
  }
176910
176911
  function k(le, G, Z) {
176911
- let T, X, Y = 0, pe = 0, B = 0, re = 0, de = 0, V = 0, te = 0, se = 0, ye = 0, ke = 0, ge = 0, ie = 0, ce = 0, be = 0, I = 0, W = 0, Q = 0, ae = 0, me = 0, ve = 0, Ee = 0, De = 0, fe = 0, Be = 0, Oe = 0, ze = 0, qe = 0, ft = 0, at = 0, Mt = 0, gn = 0, At = Z[0], Le = Z[1], _t = Z[2], Qe = Z[3], ut = Z[4], Vt = Z[5], gt = Z[6], xt = Z[7], zt = Z[8], dt = Z[9], vt = Z[10], St = Z[11], $t = Z[12], bn = Z[13], he = Z[14], Ie = Z[15];
176912
- T = G[0], Y += T * At, pe += T * Le, B += T * _t, re += T * Qe, de += T * ut, V += T * Vt, te += T * gt, se += T * xt, ye += T * zt, ke += T * dt, ge += T * vt, ie += T * St, ce += T * $t, be += T * bn, I += T * he, W += T * Ie, T = G[1], pe += T * At, B += T * Le, re += T * _t, de += T * Qe, V += T * ut, te += T * Vt, se += T * gt, ye += T * xt, ke += T * zt, ge += T * dt, ie += T * vt, ce += T * St, be += T * $t, I += T * bn, W += T * he, Q += T * Ie, T = G[2], B += T * At, re += T * Le, de += T * _t, V += T * Qe, te += T * ut, se += T * Vt, ye += T * gt, ke += T * xt, ge += T * zt, ie += T * dt, ce += T * vt, be += T * St, I += T * $t, W += T * bn, Q += T * he, ae += T * Ie, T = G[3], re += T * At, de += T * Le, V += T * _t, te += T * Qe, se += T * ut, ye += T * Vt, ke += T * gt, ge += T * xt, ie += T * zt, ce += T * dt, be += T * vt, I += T * St, W += T * $t, Q += T * bn, ae += T * he, me += T * Ie, T = G[4], de += T * At, V += T * Le, te += T * _t, se += T * Qe, ye += T * ut, ke += T * Vt, ge += T * gt, ie += T * xt, ce += T * zt, be += T * dt, I += T * vt, W += T * St, Q += T * $t, ae += T * bn, me += T * he, ve += T * Ie, T = G[5], V += T * At, te += T * Le, se += T * _t, ye += T * Qe, ke += T * ut, ge += T * Vt, ie += T * gt, ce += T * xt, be += T * zt, I += T * dt, W += T * vt, Q += T * St, ae += T * $t, me += T * bn, ve += T * he, Ee += T * Ie, T = G[6], te += T * At, se += T * Le, ye += T * _t, ke += T * Qe, ge += T * ut, ie += T * Vt, ce += T * gt, be += T * xt, I += T * zt, W += T * dt, Q += T * vt, ae += T * St, me += T * $t, ve += T * bn, Ee += T * he, De += T * Ie, T = G[7], se += T * At, ye += T * Le, ke += T * _t, ge += T * Qe, ie += T * ut, ce += T * Vt, be += T * gt, I += T * xt, W += T * zt, Q += T * dt, ae += T * vt, me += T * St, ve += T * $t, Ee += T * bn, De += T * he, fe += T * Ie, T = G[8], ye += T * At, ke += T * Le, ge += T * _t, ie += T * Qe, ce += T * ut, be += T * Vt, I += T * gt, W += T * xt, Q += T * zt, ae += T * dt, me += T * vt, ve += T * St, Ee += T * $t, De += T * bn, fe += T * he, Be += T * Ie, T = G[9], ke += T * At, ge += T * Le, ie += T * _t, ce += T * Qe, be += T * ut, I += T * Vt, W += T * gt, Q += T * xt, ae += T * zt, me += T * dt, ve += T * vt, Ee += T * St, De += T * $t, fe += T * bn, Be += T * he, Oe += T * Ie, T = G[10], ge += T * At, ie += T * Le, ce += T * _t, be += T * Qe, I += T * ut, W += T * Vt, Q += T * gt, ae += T * xt, me += T * zt, ve += T * dt, Ee += T * vt, De += T * St, fe += T * $t, Be += T * bn, Oe += T * he, ze += T * Ie, T = G[11], ie += T * At, ce += T * Le, be += T * _t, I += T * Qe, W += T * ut, Q += T * Vt, ae += T * gt, me += T * xt, ve += T * zt, Ee += T * dt, De += T * vt, fe += T * St, Be += T * $t, Oe += T * bn, ze += T * he, qe += T * Ie, T = G[12], ce += T * At, be += T * Le, I += T * _t, W += T * Qe, Q += T * ut, ae += T * Vt, me += T * gt, ve += T * xt, Ee += T * zt, De += T * dt, fe += T * vt, Be += T * St, Oe += T * $t, ze += T * bn, qe += T * he, ft += T * Ie, T = G[13], be += T * At, I += T * Le, W += T * _t, Q += T * Qe, ae += T * ut, me += T * Vt, ve += T * gt, Ee += T * xt, De += T * zt, fe += T * dt, Be += T * vt, Oe += T * St, ze += T * $t, qe += T * bn, ft += T * he, at += T * Ie, T = G[14], I += T * At, W += T * Le, Q += T * _t, ae += T * Qe, me += T * ut, ve += T * Vt, Ee += T * gt, De += T * xt, fe += T * zt, Be += T * dt, Oe += T * vt, ze += T * St, qe += T * $t, ft += T * bn, at += T * he, Mt += T * Ie, T = G[15], W += T * At, Q += T * Le, ae += T * _t, me += T * Qe, ve += T * ut, Ee += T * Vt, De += T * gt, fe += T * xt, Be += T * zt, Oe += T * dt, ze += T * vt, qe += T * St, ft += T * $t, at += T * bn, Mt += T * he, gn += T * Ie, Y += 38 * Q, pe += 38 * ae, B += 38 * me, re += 38 * ve, de += 38 * Ee, V += 38 * De, te += 38 * fe, se += 38 * Be, ye += 38 * Oe, ke += 38 * ze, ge += 38 * qe, ie += 38 * ft, ce += 38 * at, be += 38 * Mt, I += 38 * gn, X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), le[0] = Y, le[1] = pe, le[2] = B, le[3] = re, le[4] = de, le[5] = V, le[6] = te, le[7] = se, le[8] = ye, le[9] = ke, le[10] = ge, le[11] = ie, le[12] = ce, le[13] = be, le[14] = I, le[15] = W;
176912
+ let T, X, Y = 0, pe = 0, B = 0, re = 0, de = 0, V = 0, te = 0, se = 0, ye = 0, ke = 0, ge = 0, ie = 0, ce = 0, be = 0, I = 0, W = 0, Q = 0, ae = 0, me = 0, ve = 0, Ee = 0, De = 0, fe = 0, Be = 0, Oe = 0, ze = 0, qe = 0, gt = 0, at = 0, Mt = 0, gn = 0, At = Z[0], Le = Z[1], _t = Z[2], Qe = Z[3], ut = Z[4], Vt = Z[5], mt = Z[6], xt = Z[7], zt = Z[8], dt = Z[9], vt = Z[10], St = Z[11], $t = Z[12], bn = Z[13], he = Z[14], Ie = Z[15];
176913
+ T = G[0], Y += T * At, pe += T * Le, B += T * _t, re += T * Qe, de += T * ut, V += T * Vt, te += T * mt, se += T * xt, ye += T * zt, ke += T * dt, ge += T * vt, ie += T * St, ce += T * $t, be += T * bn, I += T * he, W += T * Ie, T = G[1], pe += T * At, B += T * Le, re += T * _t, de += T * Qe, V += T * ut, te += T * Vt, se += T * mt, ye += T * xt, ke += T * zt, ge += T * dt, ie += T * vt, ce += T * St, be += T * $t, I += T * bn, W += T * he, Q += T * Ie, T = G[2], B += T * At, re += T * Le, de += T * _t, V += T * Qe, te += T * ut, se += T * Vt, ye += T * mt, ke += T * xt, ge += T * zt, ie += T * dt, ce += T * vt, be += T * St, I += T * $t, W += T * bn, Q += T * he, ae += T * Ie, T = G[3], re += T * At, de += T * Le, V += T * _t, te += T * Qe, se += T * ut, ye += T * Vt, ke += T * mt, ge += T * xt, ie += T * zt, ce += T * dt, be += T * vt, I += T * St, W += T * $t, Q += T * bn, ae += T * he, me += T * Ie, T = G[4], de += T * At, V += T * Le, te += T * _t, se += T * Qe, ye += T * ut, ke += T * Vt, ge += T * mt, ie += T * xt, ce += T * zt, be += T * dt, I += T * vt, W += T * St, Q += T * $t, ae += T * bn, me += T * he, ve += T * Ie, T = G[5], V += T * At, te += T * Le, se += T * _t, ye += T * Qe, ke += T * ut, ge += T * Vt, ie += T * mt, ce += T * xt, be += T * zt, I += T * dt, W += T * vt, Q += T * St, ae += T * $t, me += T * bn, ve += T * he, Ee += T * Ie, T = G[6], te += T * At, se += T * Le, ye += T * _t, ke += T * Qe, ge += T * ut, ie += T * Vt, ce += T * mt, be += T * xt, I += T * zt, W += T * dt, Q += T * vt, ae += T * St, me += T * $t, ve += T * bn, Ee += T * he, De += T * Ie, T = G[7], se += T * At, ye += T * Le, ke += T * _t, ge += T * Qe, ie += T * ut, ce += T * Vt, be += T * mt, I += T * xt, W += T * zt, Q += T * dt, ae += T * vt, me += T * St, ve += T * $t, Ee += T * bn, De += T * he, fe += T * Ie, T = G[8], ye += T * At, ke += T * Le, ge += T * _t, ie += T * Qe, ce += T * ut, be += T * Vt, I += T * mt, W += T * xt, Q += T * zt, ae += T * dt, me += T * vt, ve += T * St, Ee += T * $t, De += T * bn, fe += T * he, Be += T * Ie, T = G[9], ke += T * At, ge += T * Le, ie += T * _t, ce += T * Qe, be += T * ut, I += T * Vt, W += T * mt, Q += T * xt, ae += T * zt, me += T * dt, ve += T * vt, Ee += T * St, De += T * $t, fe += T * bn, Be += T * he, Oe += T * Ie, T = G[10], ge += T * At, ie += T * Le, ce += T * _t, be += T * Qe, I += T * ut, W += T * Vt, Q += T * mt, ae += T * xt, me += T * zt, ve += T * dt, Ee += T * vt, De += T * St, fe += T * $t, Be += T * bn, Oe += T * he, ze += T * Ie, T = G[11], ie += T * At, ce += T * Le, be += T * _t, I += T * Qe, W += T * ut, Q += T * Vt, ae += T * mt, me += T * xt, ve += T * zt, Ee += T * dt, De += T * vt, fe += T * St, Be += T * $t, Oe += T * bn, ze += T * he, qe += T * Ie, T = G[12], ce += T * At, be += T * Le, I += T * _t, W += T * Qe, Q += T * ut, ae += T * Vt, me += T * mt, ve += T * xt, Ee += T * zt, De += T * dt, fe += T * vt, Be += T * St, Oe += T * $t, ze += T * bn, qe += T * he, gt += T * Ie, T = G[13], be += T * At, I += T * Le, W += T * _t, Q += T * Qe, ae += T * ut, me += T * Vt, ve += T * mt, Ee += T * xt, De += T * zt, fe += T * dt, Be += T * vt, Oe += T * St, ze += T * $t, qe += T * bn, gt += T * he, at += T * Ie, T = G[14], I += T * At, W += T * Le, Q += T * _t, ae += T * Qe, me += T * ut, ve += T * Vt, Ee += T * mt, De += T * xt, fe += T * zt, Be += T * dt, Oe += T * vt, ze += T * St, qe += T * $t, gt += T * bn, at += T * he, Mt += T * Ie, T = G[15], W += T * At, Q += T * Le, ae += T * _t, me += T * Qe, ve += T * ut, Ee += T * Vt, De += T * mt, fe += T * xt, Be += T * zt, Oe += T * dt, ze += T * vt, qe += T * St, gt += T * $t, at += T * bn, Mt += T * he, gn += T * Ie, Y += 38 * Q, pe += 38 * ae, B += 38 * me, re += 38 * ve, de += 38 * Ee, V += 38 * De, te += 38 * fe, se += 38 * Be, ye += 38 * Oe, ke += 38 * ze, ge += 38 * qe, ie += 38 * gt, ce += 38 * at, be += 38 * Mt, I += 38 * gn, X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), X = 1, T = Y + X + 65535, X = Math.floor(T / 65536), Y = T - X * 65536, T = pe + X + 65535, X = Math.floor(T / 65536), pe = T - X * 65536, T = B + X + 65535, X = Math.floor(T / 65536), B = T - X * 65536, T = re + X + 65535, X = Math.floor(T / 65536), re = T - X * 65536, T = de + X + 65535, X = Math.floor(T / 65536), de = T - X * 65536, T = V + X + 65535, X = Math.floor(T / 65536), V = T - X * 65536, T = te + X + 65535, X = Math.floor(T / 65536), te = T - X * 65536, T = se + X + 65535, X = Math.floor(T / 65536), se = T - X * 65536, T = ye + X + 65535, X = Math.floor(T / 65536), ye = T - X * 65536, T = ke + X + 65535, X = Math.floor(T / 65536), ke = T - X * 65536, T = ge + X + 65535, X = Math.floor(T / 65536), ge = T - X * 65536, T = ie + X + 65535, X = Math.floor(T / 65536), ie = T - X * 65536, T = ce + X + 65535, X = Math.floor(T / 65536), ce = T - X * 65536, T = be + X + 65535, X = Math.floor(T / 65536), be = T - X * 65536, T = I + X + 65535, X = Math.floor(T / 65536), I = T - X * 65536, T = W + X + 65535, X = Math.floor(T / 65536), W = T - X * 65536, Y += X - 1 + 37 * (X - 1), le[0] = Y, le[1] = pe, le[2] = B, le[3] = re, le[4] = de, le[5] = V, le[6] = te, le[7] = se, le[8] = ye, le[9] = ke, le[10] = ge, le[11] = ie, le[12] = ce, le[13] = be, le[14] = I, le[15] = W;
176913
176914
  }
176914
176915
  function E(le, G) {
176915
176916
  k(le, G, G);
@@ -177440,14 +177441,14 @@ var pte = { exports: {} };
177440
177441
  return new p(this.value * this.value);
177441
177442
  };
177442
177443
  function S(I, W) {
177443
- var Q = I.length, ae = W.length, me = r, ve = b(W.length), Ee = W[ae - 1], De = Math.ceil(me / (2 * Ee)), fe = N(I, De), Be = N(W, De), Oe, ze, qe, ft, at, Mt, gn;
177444
+ var Q = I.length, ae = W.length, me = r, ve = b(W.length), Ee = W[ae - 1], De = Math.ceil(me / (2 * Ee)), fe = N(I, De), Be = N(W, De), Oe, ze, qe, gt, at, Mt, gn;
177444
177445
  for (fe.length <= Q && fe.push(0), Be.push(0), Ee = Be[ae - 1], ze = Q - ae; ze >= 0; ze--) {
177445
- for (Oe = me - 1, fe[ze + ae] !== Ee && (Oe = Math.floor((fe[ze + ae] * me + fe[ze + ae - 1]) / Ee)), qe = 0, ft = 0, Mt = Be.length, at = 0; at < Mt; at++)
177446
- qe += Oe * Be[at], gn = Math.floor(qe / me), ft += fe[ze + at] - (qe - gn * me), qe = gn, ft < 0 ? (fe[ze + at] = ft + me, ft = -1) : (fe[ze + at] = ft, ft = 0);
177447
- for (; ft !== 0; ) {
177446
+ for (Oe = me - 1, fe[ze + ae] !== Ee && (Oe = Math.floor((fe[ze + ae] * me + fe[ze + ae - 1]) / Ee)), qe = 0, gt = 0, Mt = Be.length, at = 0; at < Mt; at++)
177447
+ qe += Oe * Be[at], gn = Math.floor(qe / me), gt += fe[ze + at] - (qe - gn * me), qe = gn, gt < 0 ? (fe[ze + at] = gt + me, gt = -1) : (fe[ze + at] = gt, gt = 0);
177448
+ for (; gt !== 0; ) {
177448
177449
  for (Oe -= 1, qe = 0, at = 0; at < Mt; at++)
177449
177450
  qe += fe[ze + at] - me + Be[at], qe < 0 ? (fe[ze + at] = qe + me, qe = 0) : (fe[ze + at] = qe, qe = 1);
177450
- ft += qe;
177451
+ gt += qe;
177451
177452
  }
177452
177453
  ve[ze] = Oe;
177453
177454
  }
@@ -177718,8 +177719,8 @@ var pte = { exports: {} };
177718
177719
  W = ce(W);
177719
177720
  for (var ae = I.isNegative(), me = W.isNegative(), ve = ae ? I.not() : I, Ee = me ? W.not() : W, De = 0, fe = 0, Be = null, Oe = null, ze = []; !ve.isZero() || !Ee.isZero(); )
177720
177721
  Be = $(ve, ee), De = Be[1].toJSNumber(), ae && (De = ee - 1 - De), Oe = $(Ee, ee), fe = Oe[1].toJSNumber(), me && (fe = ee - 1 - fe), ve = Be[0], Ee = Oe[0], ze.push(Q(De, fe));
177721
- for (var qe = Q(ae ? 1 : 0, me ? 1 : 0) !== 0 ? t(-1) : t(0), ft = ze.length - 1; ft >= 0; ft -= 1)
177722
- qe = qe.multiply(ee).add(t(ze[ft]));
177722
+ for (var qe = Q(ae ? 1 : 0, me ? 1 : 0) !== 0 ? t(-1) : t(0), gt = ze.length - 1; gt >= 0; gt -= 1)
177723
+ qe = qe.multiply(ee).add(t(ze[gt]));
177723
177724
  return qe;
177724
177725
  }
177725
177726
  c.prototype.not = function() {
@@ -182568,7 +182569,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182568
182569
  var h;
182569
182570
  (h = r.current) == null || h.forceCleanup();
182570
182571
  }, []);
182571
- const a = Ae(
182572
+ const a = Ce(
182572
182573
  (h) => {
182573
182574
  o.connect(h).catch((f) => {
182574
182575
  console.error("useSyncManager: connect failed", f);
@@ -182576,9 +182577,9 @@ const KGe = { status: "idle" }, GGe = (e) => {
182576
182577
  },
182577
182578
  // eslint-disable-next-line react-hooks/exhaustive-deps
182578
182579
  [e.ydoc]
182579
- ), l = Ae(() => {
182580
+ ), l = Ce(() => {
182580
182581
  o.disconnect();
182581
- }, [o]), u = Ae(() => {
182582
+ }, [o]), u = Ce(() => {
182582
182583
  o.terminateSession();
182583
182584
  }, [o]), c = t.status === "syncing", d = t.status === "ready" && !!s, p = t.status === "ready" || t.status === "reconnecting";
182584
182585
  return {
@@ -182612,7 +182613,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182612
182613
  callbacks: c,
182613
182614
  onLocalUpdate: e,
182614
182615
  ignoredOrigins: [d]
182615
- }), F = Ae(async () => {
182616
+ }), F = Ce(async () => {
182616
182617
  const k = d.current;
182617
182618
  if (k && await k.destroy(), t && n) {
182618
182619
  a(!1);
@@ -182632,7 +182633,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182632
182633
  _e(() => {
182633
182634
  w.current = e;
182634
182635
  }, [e]);
182635
- const D = Ae(() => {
182636
+ const D = Ce(() => {
182636
182637
  var k;
182637
182638
  v.current && (clearTimeout(v.current), v.current = null), (k = w.current) == null || k.call(w, tr(yo(i)), "");
182638
182639
  }, [i]);
@@ -182717,10 +182718,17 @@ const KGe = { status: "idle" }, GGe = (e) => {
182717
182718
  isPresentationMode: !!D,
182718
182719
  isPreviewEditor: !!$,
182719
182720
  isCollaboratorsDoc: T,
182721
+ isFocusMode: !!b,
182720
182722
  // Real value is merged in by ddoc-editor (which knows Split View state).
182721
182723
  isSplitView: !1
182722
182724
  }),
182723
- [T, D, $, e]
182725
+ [
182726
+ T,
182727
+ b,
182728
+ D,
182729
+ $,
182730
+ e
182731
+ ]
182724
182732
  ), Y = Se(X);
182725
182733
  Y.current = X;
182726
182734
  const pe = XGe({
@@ -182838,7 +182846,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182838
182846
  ipfsImageFetchFn: a,
182839
182847
  fetchV1ImageFn: l
182840
182848
  }
182841
- ), [p, h] = Ne(""), [f, g] = Ne(""), [m, b] = Ne(!0), [y, F] = Ne(!0), v = Ae(() => {
182849
+ ), [p, h] = Ne(""), [f, g] = Ne(""), [m, b] = Ne(!0), [y, F] = Ne(!0), v = Ce(() => {
182842
182850
  if (!e) return;
182843
182851
  if ((p === null || p === "") && (f === "" || f === null)) {
182844
182852
  c(tt.NONE);
@@ -182862,7 +182870,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182862
182870
  }).run(), F(!0), b(!0), c(tt.NONE);
182863
182871
  const A = I3(p);
182864
182872
  A && !A.headingEl && (t == null || t("This heading link belongs to a different document."));
182865
- }, [e, f, t, c, p]), w = Ae(() => {
182873
+ }, [e, f, t, c, p]), w = Ce(() => {
182866
182874
  if (!e) return { text: "", url: "" };
182867
182875
  const { from: k, to: E } = e.state.selection, _ = e.state.doc.textBetween(k, E), N = e.getAttributes("link");
182868
182876
  return {
@@ -182886,7 +182894,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182886
182894
  g(k), h(E);
182887
182895
  }
182888
182896
  }, [u, e, w]);
182889
- const D = Ae(
182897
+ const D = Ce(
182890
182898
  () => o((k) => !k),
182891
182899
  [o]
182892
182900
  );
@@ -183682,7 +183690,7 @@ const dXe = ({
183682
183690
  ].includes(ee.name)
183683
183691
  ),
183684
183692
  editable: !a
183685
- }), [a]), U = Ae(async () => {
183693
+ }), [a]), U = Ce(async () => {
183686
183694
  var T;
183687
183695
  if (!e || !((T = e.view) != null && T.dom)) return;
183688
183696
  if (!a && e.view.dom.querySelector(".is-editor-empty")) {
@@ -183725,13 +183733,13 @@ const dXe = ({
183725
183733
  _e(() => {
183726
183734
  U();
183727
183735
  }, [e.state.doc]);
183728
- const $ = Ae(() => {
183736
+ const $ = Ce(() => {
183729
183737
  E ? r((ee) => !ee) : document.fullscreenElement ? document.exitFullscreen ? document.exitFullscreen().then(() => r(!1)).catch(() => {
183730
183738
  r(!1);
183731
183739
  }) : r(!1) : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen().then(() => r(!0)).catch(() => {
183732
183740
  r(!0);
183733
183741
  }) : r(!0);
183734
- }, [E]), H = Ae(
183742
+ }, [E]), H = Ce(
183735
183743
  (ee) => {
183736
183744
  ee.key === "ArrowRight" || ee.key === "ArrowDown" || ee.code === "Space" ? (ee.preventDefault(), ee.stopPropagation(), j("forward"), w((J) => Math.min(J + 1, c.length - 1))) : ee.key === "ArrowLeft" || ee.key === "ArrowUp" ? (j("backward"), w((J) => Math.max(J - 1, 0))) : ee.key === "Escape" ? !a && t() : (ee.key === "f" || ee.key === "F") && $();
183737
183745
  },
@@ -183749,7 +183757,7 @@ const dXe = ({
183749
183757
  A(null), N(ee.targetTouches[0].clientX);
183750
183758
  }, P = (ee) => {
183751
183759
  A(ee.targetTouches[0].clientX);
183752
- }, K = Ae(() => {
183760
+ }, K = Ce(() => {
183753
183761
  if (!_ || !O) return;
183754
183762
  const ee = _ - O, J = ee > M, le = ee < -M;
183755
183763
  J && (j("forward"), w((G) => Math.min(G + 1, c.length - 1))), le && (j("backward"), w((G) => Math.max(G - 1, 0)));
@@ -185132,18 +185140,18 @@ const Qte = ({
185132
185140
  f
185133
185141
  ] = Ne(!1), g = r !== null && n !== null && r.location === "drawer" && // Auth-pending drafts intentionally fall back to the non-draft drawer route so
185134
185142
  // mobile can show the auth screen without discarding the tracked draft.
185135
- !r.isAuthPending, m = Ae(() => {
185143
+ !r.isAuthPending, m = Ce(() => {
185136
185144
  n && u(n);
185137
- }, [n, u]), b = Ae(() => {
185145
+ }, [n, u]), b = Ce(() => {
185138
185146
  o && (f(!1), l(o.suggestionId), t(null), a == null || a(!0));
185139
185147
  }, [
185140
185148
  o,
185141
185149
  a,
185142
185150
  t,
185143
185151
  l
185144
- ]), y = Ae(() => {
185152
+ ]), y = Ce(() => {
185145
185153
  o && (f(!1), s(o.suggestionId));
185146
- }, [o, s]), F = Ae(() => {
185154
+ }, [o, s]), F = Ce(() => {
185147
185155
  i({
185148
185156
  location: "drawer",
185149
185157
  allowEmptySelection: !0,
@@ -185186,15 +185194,15 @@ const Qte = ({
185186
185194
  ), f = i === _0 ? e : i, g = ((D = p.find((k) => k.id === i)) == null ? void 0 : D.label) ?? Xd, m = t.filter((k) => {
185187
185195
  const E = k.tabId || Nn;
185188
185196
  return !(i === _0 || E === i) || k.deleted ? !1 : r === "active" ? !k.resolved : r === "resolved" ? !!k.resolved : !0;
185189
- }), b = r === "resolved" ? "Resolved" : r === "all" ? "All comments" : "Active", y = Ae((k) => {
185197
+ }), b = r === "resolved" ? "Resolved" : r === "all" ? "All comments" : "Active", y = Ce((k) => {
185190
185198
  l(k), k && c(!1);
185191
- }, []), F = Ae((k) => {
185199
+ }, []), F = Ce((k) => {
185192
185200
  c(k), k && l(!1);
185193
- }, []), v = Ae(() => {
185201
+ }, []), v = Ce(() => {
185194
185202
  o("all"), s(_0);
185195
185203
  }, []);
185196
185204
  return {
185197
- closeFilterSelects: Ae(() => {
185205
+ closeFilterSelects: Ce(() => {
185198
185206
  l(!1), c(!1);
185199
185207
  }, []),
185200
185208
  commentType: r,
@@ -185222,7 +185230,7 @@ const Qte = ({
185222
185230
  onTabChange: o,
185223
185231
  setOpenReplyId: i
185224
185232
  }) => {
185225
- const [s, a] = Ne(null), l = Ae(
185233
+ const [s, a] = Ne(null), l = Ce(
185226
185234
  (c, d) => {
185227
185235
  const p = d || Nn;
185228
185236
  if (p !== e) {
@@ -185256,7 +185264,7 @@ const Qte = ({
185256
185264
  s,
185257
185265
  i
185258
185266
  ]), {
185259
- clearPendingCommentFocus: Ae(
185267
+ clearPendingCommentFocus: Ce(
185260
185268
  () => a(null),
185261
185269
  []
185262
185270
  ),
@@ -185320,9 +185328,9 @@ const Qte = ({
185320
185328
  [e]
185321
185329
  ), s = i.findIndex(
185322
185330
  (h) => h.id === r
185323
- ), a = s > 0, l = s >= 0 && s < i.length - 1, u = Ae(() => {
185331
+ ), a = s > 0, l = s >= 0 && s < i.length - 1, u = Ce(() => {
185324
185332
  o(null);
185325
- }, [o]), c = Ae(
185333
+ }, [o]), c = Ce(
185326
185334
  (h) => {
185327
185335
  const f = i[h];
185328
185336
  f != null && f.id && (o(f.id), n(f.id, f.tabId), requestAnimationFrame(() => {
@@ -185337,13 +185345,13 @@ const Qte = ({
185337
185345
  }));
185338
185346
  },
185339
185347
  [i, t, n, o]
185340
- ), d = Ae(() => {
185348
+ ), d = Ce(() => {
185341
185349
  a && c(s - 1);
185342
185350
  }, [
185343
185351
  a,
185344
185352
  c,
185345
185353
  s
185346
- ]), p = Ae(() => {
185354
+ ]), p = Ce(() => {
185347
185355
  l && c(s + 1);
185348
185356
  }, [l, c, s]);
185349
185357
  return {
@@ -185828,18 +185836,18 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
185828
185836
  lastCommittedTranslateY: e.lastCommittedTranslateY,
185829
185837
  invalidationFlags: e.invalidationFlags
185830
185838
  }), JXe = () => {
185831
- const e = Se(/* @__PURE__ */ new Map()), t = Se(/* @__PURE__ */ new Set()), n = Se(null), r = Se(null), o = Ae((l) => {
185839
+ const e = Se(/* @__PURE__ */ new Map()), t = Se(/* @__PURE__ */ new Set()), n = Se(null), r = Se(null), o = Ce((l) => {
185832
185840
  t.current.add(l);
185833
- }, []), i = Ae(
185841
+ }, []), i = Ce(
185834
185842
  (l) => {
185835
185843
  l.forEach((u) => {
185836
185844
  t.current.add(u.floatingCardId);
185837
185845
  });
185838
185846
  },
185839
185847
  []
185840
- ), s = Ae(() => {
185848
+ ), s = Ce(() => {
185841
185849
  e.current.clear(), t.current.clear(), n.current = null, r.current = null;
185842
- }, []), a = Ae(
185850
+ }, []), a = Ce(
185843
185851
  ({
185844
185852
  currentCycle: l,
185845
185853
  currentDocVersion: u,
@@ -185959,7 +185967,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
185959
185967
  ), t = Se([]), n = Se(/* @__PURE__ */ new Map()), r = Se(!0), o = Se(/* @__PURE__ */ new Set()), i = Se({
185960
185968
  recomputeFromIndex: 0
185961
185969
  // When something changes, layout restarts from recomputeFromIndex instead of from the top.
185962
- }), s = Se([]), [a, l] = Ne([]), u = Ae((v) => {
185970
+ }), s = Se([]), [a, l] = Ne([]), u = Ce((v) => {
185963
185971
  const w = e.current.get(v);
185964
185972
  if (w)
185965
185973
  return w;
@@ -185979,20 +185987,20 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
185979
185987
  invalidationFlags: _r.Anchor
185980
185988
  };
185981
185989
  return e.current.set(v, D), D;
185982
- }, []), c = Ae((v) => n.current.get(v) ?? null, []), d = Ae((v) => {
185990
+ }, []), c = Ce((v) => n.current.get(v) ?? null, []), d = Ce((v) => {
185983
185991
  i.current.recomputeFromIndex = Math.min(
185984
185992
  i.current.recomputeFromIndex,
185985
185993
  Math.max(0, v)
185986
185994
  );
185987
- }, []), p = Ae(
185995
+ }, []), p = Ce(
185988
185996
  (v, w) => {
185989
185997
  const D = u(v);
185990
185998
  D.invalidationFlags |= w;
185991
185999
  },
185992
186000
  [u]
185993
- ), h = Ae(() => {
186001
+ ), h = Ce(() => {
185994
186002
  r.current = !0;
185995
- }, []), f = Ae(
186003
+ }, []), f = Ce(
185996
186004
  (v) => {
185997
186005
  const w = v.map(
185998
186006
  (k) => k.floatingCardId
@@ -186017,7 +186025,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186017
186025
  ), r.current = !1, D;
186018
186026
  },
186019
186027
  [u]
186020
- ), g = Ae(
186028
+ ), g = Ce(
186021
186029
  (v) => {
186022
186030
  Array.from(e.current.keys()).forEach(
186023
186031
  (w) => {
@@ -186026,7 +186034,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186026
186034
  );
186027
186035
  },
186028
186036
  []
186029
- ), m = Ae(
186037
+ ), m = Ce(
186030
186038
  (v) => {
186031
186039
  const w = new Set(
186032
186040
  s.current
@@ -186043,7 +186051,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186043
186051
  });
186044
186052
  },
186045
186053
  []
186046
- ), b = Ae(
186054
+ ), b = Ce(
186047
186055
  (v) => {
186048
186056
  t.current.forEach((w, D) => {
186049
186057
  if (D > v)
@@ -186053,12 +186061,12 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186053
186061
  });
186054
186062
  },
186055
186063
  []
186056
- ), y = Ae(
186064
+ ), y = Ce(
186057
186065
  () => t.current.map(
186058
186066
  (v) => ZXe(u(v))
186059
186067
  ),
186060
186068
  [u]
186061
- ), F = Ae(() => {
186069
+ ), F = Ce(() => {
186062
186070
  e.current.clear(), t.current = [], n.current.clear(), r.current = !0, o.current.clear(), i.current.recomputeFromIndex = 0, s.current = [], l([]);
186063
186071
  }, []);
186064
186072
  return {
@@ -186157,7 +186165,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186157
186165
  B
186158
186166
  ])
186159
186167
  );
186160
- const Y = Ae(() => {
186168
+ const Y = Ce(() => {
186161
186169
  X.current.rafId === null && (X.current.rafId = window.requestAnimationFrame(() => {
186162
186170
  var Vt;
186163
186171
  X.current.rafId = null;
@@ -186193,9 +186201,9 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186193
186201
  const { orderedFloatingCardIds: I, firstChangedIndex: W } = C(ge);
186194
186202
  if (W !== null) {
186195
186203
  N(W);
186196
- const gt = I[W];
186197
- gt && E(
186198
- gt,
186204
+ const mt = I[W];
186205
+ mt && E(
186206
+ mt,
186199
186207
  _r.Anchor
186200
186208
  );
186201
186209
  }
@@ -186208,14 +186216,14 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186208
186216
  le.current - ae.top
186209
186217
  ) > 0.5) && (le.current = ae.top, T.current.containerOffset += 1);
186210
186218
  const Ee = Q.height, De = Q.top - ae.top, fe = De + Ee, Be = T.current.appliedScroll !== T.current.scroll, Oe = T.current.appliedContainerOffset !== T.current.containerOffset;
186211
- A.current.forEach((gt, xt) => {
186212
- const zt = ie.get(gt);
186219
+ A.current.forEach((mt, xt) => {
186220
+ const zt = ie.get(mt);
186213
186221
  if (!zt)
186214
186222
  return;
186215
- const dt = w(gt), { anchorId: vt } = Rx(zt), St = p.current.get(vt);
186223
+ const dt = w(mt), { anchorId: vt } = Rx(zt), St = p.current.get(vt);
186216
186224
  if (!St) {
186217
186225
  dt.isInViewport && (dt.isInViewport = !1, E(
186218
- gt,
186226
+ mt,
186219
186227
  _r.Visibility
186220
186228
  ), N(xt)), dt.anchorTop = null, dt.anchorHeight = 0;
186221
186229
  return;
@@ -186234,19 +186242,19 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186234
186242
  viewportHeight: Ee
186235
186243
  }), he = dt.anchorVersion !== St.anchorVersion;
186236
186244
  if ((!St.cachedRect || dt.isInViewport || bn || he || !dt.isMeasured || Oe && bn || Be && dt.isInViewport) && ML(St, re)) {
186237
- const bt = GXe({
186245
+ const yt = GXe({
186238
186246
  elements: St.elements,
186239
186247
  viewportTop: Q.top,
186240
186248
  viewportBottom: Q.bottom
186241
186249
  });
186242
- if (bt) {
186243
- const jt = bt.top - ae.top;
186244
- dt.anchorTop = jt, dt.anchorHeight = bt.height, St.cachedRect = {
186250
+ if (yt) {
186251
+ const jt = yt.top - ae.top;
186252
+ dt.anchorTop = jt, dt.anchorHeight = yt.height, St.cachedRect = {
186245
186253
  top: jt,
186246
- height: bt.height,
186254
+ height: yt.height,
186247
186255
  scrollTop: de.scrollTop,
186248
186256
  containerTop: ae.top
186249
- }, $t = { top: jt, height: bt.height };
186257
+ }, $t = { top: jt, height: yt.height };
186250
186258
  } else $t && (dt.anchorTop = $t.top, dt.anchorHeight = $t.height);
186251
186259
  }
186252
186260
  dt.anchorVersion = St.anchorVersion;
@@ -186264,45 +186272,45 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186264
186272
  viewportHeight: Ee
186265
186273
  }), rn = et || Qt;
186266
186274
  if (dt.isInViewport !== rn) {
186267
- const bt = dt.isInViewport;
186275
+ const yt = dt.isInViewport;
186268
186276
  dt.isInViewport = rn, E(
186269
- gt,
186277
+ mt,
186270
186278
  _r.Visibility
186271
- ), N(xt), !bt && rn && (dt.needsTransformSync = !0, D.current.add(gt), ye = !0);
186279
+ ), N(xt), !yt && rn && (dt.needsTransformSync = !0, D.current.add(mt), ye = !0);
186272
186280
  }
186273
186281
  }), T.current.appliedScroll = T.current.scroll, T.current.appliedContainerOffset = T.current.containerOffset;
186274
- const ze = A.current.filter((gt) => {
186275
- const xt = y.current.get(gt);
186282
+ const ze = A.current.filter((mt) => {
186283
+ const xt = y.current.get(mt);
186276
186284
  return !!(xt != null && xt.isInViewport);
186277
- }), { didChange: qe, previousMountedFloatingCardIds: ft } = S(ze);
186278
- qe && ze.forEach((gt) => {
186279
- if (ft.has(gt))
186285
+ }), { didChange: qe, previousMountedFloatingCardIds: gt } = S(ze);
186286
+ qe && ze.forEach((mt) => {
186287
+ if (gt.has(mt))
186280
186288
  return;
186281
- D.current.add(gt);
186282
- const xt = v(gt);
186289
+ D.current.add(mt);
186290
+ const xt = v(mt);
186283
186291
  E(
186284
- gt,
186292
+ mt,
186285
186293
  _r.Height | _r.Visibility
186286
186294
  ), N(xt ?? 0), ye = !0;
186287
- }), D.current.forEach((gt) => {
186288
- const xt = P.current.cardNodes.get(gt), zt = y.current.get(gt);
186295
+ }), D.current.forEach((mt) => {
186296
+ const xt = P.current.cardNodes.get(mt), zt = y.current.get(mt);
186289
186297
  if (!xt || !zt)
186290
186298
  return;
186291
186299
  const dt = Math.round(xt.offsetHeight);
186292
186300
  if (dt > 0 && (!zt.isMeasured || zt.height !== dt)) {
186293
186301
  zt.height = dt, zt.isMeasured = !0;
186294
- const vt = v(gt);
186302
+ const vt = v(mt);
186295
186303
  E(
186296
- gt,
186304
+ mt,
186297
186305
  _r.Height
186298
186306
  ), N(vt ?? 0);
186299
186307
  }
186300
186308
  }), D.current.clear();
186301
186309
  let at = Number.POSITIVE_INFINITY;
186302
186310
  const Mt = A.current.reduce(
186303
- (gt, xt, zt) => {
186311
+ (mt, xt, zt) => {
186304
186312
  const dt = y.current.get(xt);
186305
- return !dt || dt.invalidationFlags === _r.None ? gt : (at = Math.min(at, zt), zt);
186313
+ return !dt || dt.invalidationFlags === _r.None ? mt : (at = Math.min(at, zt), zt);
186306
186314
  },
186307
186315
  -1
186308
186316
  ), gn = Math.min(
@@ -186318,11 +186326,11 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186318
186326
  });
186319
186327
  At && Le.usedFocusedLayout && (ee.current = !1);
186320
186328
  let _t = 0;
186321
- A.current.forEach((gt) => {
186322
- const xt = y.current.get(gt), zt = P.current.cardNodes.get(gt);
186329
+ A.current.forEach((mt) => {
186330
+ const xt = y.current.get(mt), zt = P.current.cardNodes.get(mt);
186323
186331
  if (!xt)
186324
186332
  return;
186325
- const dt = Le.placements.get(gt) ?? {
186333
+ const dt = Le.placements.get(mt) ?? {
186326
186334
  translateY: xt.translateY,
186327
186335
  isVisible: xt.lastCommittedVisible
186328
186336
  }, vt = dt.translateY ?? xt.translateY ?? xt.lastCommittedTranslateY;
@@ -186335,7 +186343,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186335
186343
  }
186336
186344
  if (!zt)
186337
186345
  return;
186338
- Le.placements.has(gt) && (xt.translateY = dt.translateY);
186346
+ Le.placements.has(mt) && (xt.translateY = dt.translateY);
186339
186347
  const St = b8(dt.translateY);
186340
186348
  (xt.needsTransformSync && St !== null || St !== xt.lastCommittedTranslateY) && St !== null && (zt.style.transform = `translateY(${St}px)`, xt.lastCommittedTranslateY = St, xt.needsTransformSync = !1);
186341
186349
  const bn = !!dt.isVisible && xt.isMeasured && xt.anchorTop !== null && !l;
@@ -186347,8 +186355,8 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186347
186355
  Z.current !== ut && (V.style.setProperty(
186348
186356
  tYe,
186349
186357
  `${ut}px`
186350
- ), Z.current = ut), b(Le.stopIndex), k.current.recomputeFromIndex = A.current.length, ce.size > 0 && ce.forEach((gt) => {
186351
- t(gt);
186358
+ ), Z.current = ut), b(Le.stopIndex), k.current.recomputeFromIndex = A.current.length, ce.size > 0 && ce.forEach((mt) => {
186359
+ t(mt);
186352
186360
  }), ye && ge.length > 0 && Y();
186353
186361
  }));
186354
186362
  }, [
@@ -186376,7 +186384,7 @@ const LXe = Number.POSITIVE_INFINITY, jb = (e) => e.isVisible && e.isMeasured &&
186376
186384
  m,
186377
186385
  S,
186378
186386
  p
186379
- ]), pe = Ae(
186387
+ ]), pe = Ce(
186380
186388
  (B, re) => {
186381
186389
  var V, te;
186382
186390
  const de = P.current.cardNodes.get(B);
@@ -186722,7 +186730,7 @@ const uYe = ({
186722
186730
  isHidden: t,
186723
186731
  registerCardNode: n
186724
186732
  }) => {
186725
- const r = Me((c) => c.focusFloatingCard), o = Me((c) => c.inlineDrafts[e.draftId]), i = Me((c) => c.username), s = Me((c) => c.isConnected), a = Se(null), l = la(i), u = Ae(
186733
+ const r = Me((c) => c.focusFloatingCard), o = Me((c) => c.inlineDrafts[e.draftId]), i = Me((c) => c.username), s = Me((c) => c.isConnected), a = Se(null), l = la(i), u = Ce(
186726
186734
  (c) => {
186727
186735
  a.current = c, n(e.floatingCardId, c);
186728
186736
  },
@@ -186825,7 +186833,7 @@ const uYe = ({
186825
186833
  isHidden: t,
186826
186834
  registerCardNode: n
186827
186835
  }) => {
186828
- const r = Me((g) => g.focusFloatingCard), o = Me((g) => g.submitDraft), i = Me((g) => g.discardDraft), s = Me((g) => g.isConnected), a = !!e.selectedText, l = !!e.insertedText, u = !!e.linkHref, c = a || l || u, d = Me((g) => g.username), p = la(d), h = Ae(
186836
+ const r = Me((g) => g.focusFloatingCard), o = Me((g) => g.submitDraft), i = Me((g) => g.discardDraft), s = Me((g) => g.isConnected), a = !!e.selectedText, l = !!e.insertedText, u = !!e.linkHref, c = a || l || u, d = Me((g) => g.username), p = la(d), h = Ce(
186829
186837
  (g) => {
186830
186838
  n(e.floatingCardId, g);
186831
186839
  },
@@ -186903,7 +186911,7 @@ const uYe = ({
186903
186911
  registerCardNode: r,
186904
186912
  isCollaborationEnabled: o
186905
186913
  }) => {
186906
- const i = Me((y) => y.focusFloatingCard), s = Me((y) => y.focusCommentInEditor), a = Me((y) => y.isDDocOwner), l = Me((y) => y.username), u = Me((y) => y.acceptSuggestion), c = Me((y) => y.deleteComment), d = Ae(
186914
+ const i = Me((y) => y.focusFloatingCard), s = Me((y) => y.focusCommentInEditor), a = Me((y) => y.isDDocOwner), l = Me((y) => y.username), u = Me((y) => y.acceptSuggestion), c = Me((y) => y.deleteComment), d = Ce(
186907
186915
  (y) => {
186908
186916
  r(e.floatingCardId, y);
186909
186917
  },
@@ -187172,7 +187180,7 @@ const uYe = ({
187172
187180
  e.commentId && (f(!1), d(e.commentId));
187173
187181
  }, F = () => {
187174
187182
  s(e.floatingCardId), !e.isFocused && e.commentId && a(e.commentId);
187175
- }, v = Ae(
187183
+ }, v = Ce(
187176
187184
  (w) => {
187177
187185
  o(e.floatingCardId, w);
187178
187186
  },
@@ -187442,7 +187450,7 @@ const uYe = ({
187442
187450
  }, 500)
187443
187451
  );
187444
187452
  }
187445
- const u = Ae(
187453
+ const u = Ce(
187446
187454
  (p) => {
187447
187455
  p.preventDefault(), p.stopPropagation(), rd(a) && t(p, a);
187448
187456
  },
@@ -187509,7 +187517,7 @@ const sne = bf(
187509
187517
  const [o, i] = Ne(null), s = or("(max-width: 1280px)"), a = Se(null), l = Se(0), u = Se(null), c = wt(() => e.map((m) => ({
187510
187518
  ...m,
187511
187519
  isActive: rd(m.id) && m.id === o
187512
- })), [e, o]), d = Ae(() => {
187520
+ })), [e, o]), d = Ce(() => {
187513
187521
  var m;
187514
187522
  if (t && ((m = t.view) != null && m.dom) && (!a.current || Date.now() - l.current > 250)) {
187515
187523
  const b = /* @__PURE__ */ new Map();
@@ -187531,7 +187539,7 @@ const sne = bf(
187531
187539
  t.off("update", m), t.off("selectionUpdate", m), u.current && cancelAnimationFrame(u.current);
187532
187540
  };
187533
187541
  }, [t, d]);
187534
- const p = Ae(
187542
+ const p = Ce(
187535
187543
  (m) => {
187536
187544
  if (!t) return;
187537
187545
  const { doc: b } = t.state;
@@ -187546,7 +187554,7 @@ const sne = bf(
187546
187554
  }), y !== -1 && t.chain().setNodeSelection(y).updateAttributes("heading", { isCollapsed: !1 }).run();
187547
187555
  },
187548
187556
  [t]
187549
- ), h = Ae(
187557
+ ), h = Ce(
187550
187558
  (m) => {
187551
187559
  if (!t) return;
187552
187560
  p(m);
@@ -187574,7 +187582,7 @@ const sne = bf(
187574
187582
  }
187575
187583
  },
187576
187584
  [e, t, p]
187577
- ), f = Ae(
187585
+ ), f = Ce(
187578
187586
  (m, b) => {
187579
187587
  var y;
187580
187588
  if (m.preventDefault(), m.stopPropagation(), i(b), t && ((y = t.view) != null && y.dom)) {
@@ -187604,7 +187612,7 @@ const sne = bf(
187604
187612
  }
187605
187613
  },
187606
187614
  [t, h, d, s]
187607
- ), g = Ae(
187615
+ ), g = Ce(
187608
187616
  (m, b) => {
187609
187617
  m.preventDefault(), m.stopPropagation(), n((y) => {
187610
187618
  const F = y.findIndex((w) => w.id === b), v = y.filter((w) => w.id !== b);
@@ -187745,7 +187753,7 @@ const kYe = [
187745
187753
  // @ts-ignore
187746
187754
  !a.current.contains(g.target) && s(!1);
187747
187755
  });
187748
- const f = Ae(() => {
187756
+ const f = Ce(() => {
187749
187757
  var m;
187750
187758
  const g = (m = l.current) == null ? void 0 : m.getBoundingClientRect();
187751
187759
  if (g) {
@@ -188455,10 +188463,10 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188455
188463
  ), O = wt(
188456
188464
  () => e.find((P) => P.id === E),
188457
188465
  [e, E]
188458
- ), [A, M] = Ne(null), [C, j] = Ne(!1), [S, R] = Ne({}), U = Ae(
188466
+ ), [A, M] = Ne(null), [C, j] = Ne(!1), [S, R] = Ne({}), U = Ce(
188459
188467
  (P) => P === t ? S[P] ?? !1 : !1,
188460
188468
  [t, S]
188461
- ), $ = Ae(
188469
+ ), $ = Ce(
188462
188470
  (P, K) => {
188463
188471
  if (P !== t) {
188464
188472
  n(P), R((oe) => ({
@@ -188474,7 +188482,7 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
188474
188482
  }));
188475
188483
  },
188476
188484
  [t, n]
188477
- ), H = Ae(
188485
+ ), H = Ce(
188478
188486
  (P) => {
188479
188487
  if (P !== t) {
188480
188488
  n(P), R((K) => ({
@@ -189335,15 +189343,15 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189335
189343
  )) return !1;
189336
189344
  const { state: p } = u, { selection: h } = p, f = Jx(h.$from, u.schema.marks.link);
189337
189345
  return f ? p.doc.textBetween(f.from, f.to) === c : !1;
189338
- }, i = Ae(() => {
189346
+ }, i = Ce(() => {
189339
189347
  const u = e.state.selection.to, c = e.getAttributes("link").href;
189340
189348
  e.commands.extendMarkRange("link", { href: c }), e.chain().focus().setTextSelection(u).unsetMark("link").insertContent(" ").run();
189341
- }, [e]), s = Ae(
189349
+ }, [e]), s = Ce(
189342
189350
  (u) => {
189343
189351
  r.current && r.current.contains(u.target) || i();
189344
189352
  },
189345
189353
  [i]
189346
- ), a = Ae(
189354
+ ), a = Ce(
189347
189355
  (u) => {
189348
189356
  var f, g;
189349
189357
  const { key: c } = u, d = document.activeElement;
@@ -189465,19 +189473,17 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189465
189473
  }
189466
189474
  ) });
189467
189475
  }, WYe = ({ onFocusMode: e } = {}) => {
189468
- const [t, n] = Ne(!1), r = or("(max-width: 1024px)");
189469
- _e(() => {
189476
+ const [t, n] = Ne(!1), r = or("(max-width: 1024px)"), o = Ce(async () => {
189477
+ n((i) => (e == null || e(!i), !i));
189478
+ }, [e]);
189479
+ return _e(() => {
189470
189480
  const i = (s) => {
189471
189481
  s.metaKey && s.shiftKey && s.key.toLowerCase() === "f" && (s.preventDefault(), o());
189472
189482
  };
189473
189483
  return window.addEventListener("keydown", i), () => {
189474
189484
  window.removeEventListener("keydown", i);
189475
189485
  };
189476
- }, [r]);
189477
- const o = async () => {
189478
- n((i) => (e == null || e(!i), !i));
189479
- };
189480
- return { isFocusMode: t, toggleFocusMode: o };
189486
+ }, [r, o]), { isFocusMode: t, toggleFocusMode: o };
189481
189487
  }, qYe = ({
189482
189488
  dropdownOpen: e,
189483
189489
  setDropdownOpen: t,
@@ -189556,7 +189562,7 @@ const NYe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
189556
189562
  ] });
189557
189563
  };
189558
189564
  function VYe(e) {
189559
- const [t, n] = Ne(!1), r = Se(e), o = Se(null), i = Ae(() => {
189565
+ const [t, n] = Ne(!1), r = Se(e), o = Se(null), i = Ce(() => {
189560
189566
  if (!r.current) {
189561
189567
  n(!1);
189562
189568
  return;
@@ -189587,13 +189593,13 @@ function VYe(e) {
189587
189593
  );
189588
189594
  }
189589
189595
  const KYe = (e, t) => {
189590
- const { hasAIWriter: n } = VYe(e), r = Ae(() => {
189596
+ const { hasAIWriter: n } = VYe(e), r = Ce(() => {
189591
189597
  const a = t();
189592
189598
  if (!a)
189593
189599
  return;
189594
189600
  const l = a.editor.chain();
189595
189601
  l.setNodeSelection(a.pos).unsetAllMarks(), a.node.type.name !== "paragraph" && l.setParagraph(), l.run();
189596
- }, [t]), o = Ae(() => {
189602
+ }, [t]), o = Ce(() => {
189597
189603
  if (n)
189598
189604
  return;
189599
189605
  const a = t();
@@ -189605,14 +189611,14 @@ const KYe = (e, t) => {
189605
189611
  a.pos + a.node.nodeSize,
189606
189612
  u.toJSON()
189607
189613
  ).run();
189608
- }, [n, t]), i = Ae(() => {
189614
+ }, [n, t]), i = Ce(() => {
189609
189615
  const a = t();
189610
189616
  a && (a.editor.chain().setMeta("hideDragHandle", !0).setNodeSelection(a.pos).run(), document.execCommand("copy"), C8({
189611
189617
  title: "Copied to clipboard",
189612
189618
  toastType: "mini",
189613
189619
  variant: "success"
189614
189620
  }));
189615
- }, [t]), s = Ae(() => {
189621
+ }, [t]), s = Ce(() => {
189616
189622
  const a = t();
189617
189623
  a && (pke(a.editor, a.pos), a.editor.chain().setMeta("hideDragHandle", !0).setNodeSelection(a.pos).deleteSelection().run());
189618
189624
  }, [t]);
@@ -192453,19 +192459,19 @@ const KYe = (e, t) => {
192453
192459
  name: e,
192454
192460
  className: t
192455
192461
  }
192456
- ) : typeof e == "string" ? /* @__PURE__ */ x.jsx("span", { className: t, children: e }) : null, QYe = (e, t, n, r, o, i, s) => i || s ? null : /* @__PURE__ */ x.jsxs(vre, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!left-0 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!right-[unset]", children: [
192457
- e.map((a, l) => /* @__PURE__ */ x.jsxs(
192462
+ ) : typeof e == "string" ? /* @__PURE__ */ x.jsx("span", { className: t, children: e }) : null, QYe = (e, t, n, r, o, i, s, a) => i || s || a ? null : /* @__PURE__ */ x.jsxs(vre, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!left-0 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!right-[unset]", children: [
192463
+ e.map((l, u) => /* @__PURE__ */ x.jsxs(
192458
192464
  Nt,
192459
192465
  {
192460
- onClick: a.onClick,
192466
+ onClick: l.onClick,
192461
192467
  variant: "ghost",
192462
192468
  className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all min-w-fit",
192463
192469
  children: [
192464
- RL(a.icon),
192465
- /* @__PURE__ */ x.jsx("span", { children: a.label })
192470
+ RL(l.icon),
192471
+ /* @__PURE__ */ x.jsx("span", { children: l.label })
192466
192472
  ]
192467
192473
  },
192468
- l
192474
+ u
192469
192475
  )),
192470
192476
  /* @__PURE__ */ x.jsx(
192471
192477
  Sr,
@@ -192481,18 +192487,18 @@ const KYe = (e, t) => {
192481
192487
  }
192482
192488
  ),
192483
192489
  content: /* @__PURE__ */ x.jsxs("div", { className: "flex flex-col gap-1 p-2 w-[12rem]", children: [
192484
- /* @__PURE__ */ x.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: t.slice(0, n).map((a, l) => /* @__PURE__ */ x.jsxs(
192490
+ /* @__PURE__ */ x.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: t.slice(0, n).map((l, u) => /* @__PURE__ */ x.jsxs(
192485
192491
  Nt,
192486
192492
  {
192487
- onClick: a.onClick,
192493
+ onClick: l.onClick,
192488
192494
  variant: "ghost",
192489
192495
  className: "justify-start gap-2 text-body-sm color-text-default min-w-fit px-2 rounded-lg",
192490
192496
  children: [
192491
- RL(a.icon),
192492
- /* @__PURE__ */ x.jsx("span", { children: a.label })
192497
+ RL(l.icon),
192498
+ /* @__PURE__ */ x.jsx("span", { children: l.label })
192493
192499
  ]
192494
192500
  },
192495
- l
192501
+ u
192496
192502
  )) }),
192497
192503
  /* @__PURE__ */ x.jsx(Bb, { className: "w-full !border-t-[1px]" }),
192498
192504
  /* @__PURE__ */ x.jsxs(
@@ -192959,7 +192965,7 @@ const yZe = Tt.memo(
192959
192965
  runtimeState: n,
192960
192966
  refreshKey: r
192961
192967
  }) => {
192962
- const o = or("(max-width: 1024px)"), [i, s] = Ne(!1), a = wt(() => D8(e, t), [e, t, r]), l = Ae(
192968
+ const o = or("(max-width: 1024px)"), [i, s] = Ne(!1), a = wt(() => D8(e, t), [e, t, r]), l = Ce(
192963
192969
  () => D8(e, t),
192964
192970
  [e, t]
192965
192971
  ), u = KYe(e, l);
@@ -193073,36 +193079,37 @@ const WL = (e, t) => {
193073
193079
  runtimeState: t,
193074
193080
  refreshKey: n
193075
193081
  }) => {
193076
- const [r, o] = Ne(!1), [i, s] = Ne(2), a = wt(() => WL(e, t), [e, t, n]), l = Ae(
193077
- (p) => {
193078
- const h = WL(e, t);
193079
- h && (e == null || e.commands.insertContentAt(
193080
- h.pos + h.node.nodeSize - 4,
193081
- p
193082
+ const [r, o] = Ne(!1), [i, s] = Ne(2), a = t.isFocusMode, l = wt(() => WL(e, t), [e, t, n]), u = Ce(
193083
+ (h) => {
193084
+ const f = WL(e, t);
193085
+ f && (e == null || e.commands.insertContentAt(
193086
+ f.pos + f.node.nodeSize - 4,
193087
+ h
193082
193088
  ));
193083
193089
  },
193084
193090
  [e, t]
193085
- ), u = wt(
193086
- () => JYe(l),
193087
- [l]
193088
193091
  ), c = wt(
193089
- () => ZYe(l),
193090
- [l]
193091
- ), d = Ae(() => {
193092
- o((p) => (s(p ? 2 : c.length), !p));
193093
- }, [c.length]);
193094
- return a ? yf(
193092
+ () => JYe(u),
193093
+ [u]
193094
+ ), d = wt(
193095
+ () => ZYe(u),
193096
+ [u]
193097
+ ), p = Ce(() => {
193098
+ o((h) => (s(h ? 2 : d.length), !h));
193099
+ }, [d.length]);
193100
+ return !l || a ? null : yf(
193095
193101
  QYe(
193096
- u,
193097
193102
  c,
193098
- i,
193099
193103
  d,
193104
+ i,
193105
+ p,
193100
193106
  r,
193101
193107
  t.isCollaboratorsDoc,
193102
- t.isPreviewMode
193108
+ t.isPreviewMode,
193109
+ a
193103
193110
  ),
193104
- a.handle.contentElement
193105
- ) : null;
193111
+ l.handle.contentElement
193112
+ );
193106
193113
  }, kne = ({
193107
193114
  children: e,
193108
193115
  editor: t,
@@ -193110,9 +193117,9 @@ const WL = (e, t) => {
193110
193117
  }) => {
193111
193118
  const [r, o] = Ne(
193112
193119
  null
193113
- ), [i, s] = Ne(0), a = Se(null), l = Ae((c) => {
193120
+ ), [i, s] = Ne(0), a = Se(null), l = Ce((c) => {
193114
193121
  a.current = c, o(c);
193115
- }, []), u = Ae(() => {
193122
+ }, []), u = Ce(() => {
193116
193123
  const c = a.current;
193117
193124
  if (c == null || c.refresh(), c && !D8(t, c)) {
193118
193125
  l(null);
@@ -193213,7 +193220,7 @@ const AZe = ({
193213
193220
  replaceTerm: N.replaceTerm,
193214
193221
  showSearchReplacePopover: N.showSearchReplacePopover
193215
193222
  }))
193216
- ), { setShowReplacePopover: u, setSearchTerm: c, setReplaceTerm: d } = KD((N) => N.actions), p = Ae(
193223
+ ), { setShowReplacePopover: u, setSearchTerm: c, setReplaceTerm: d } = KD((N) => N.actions), p = Ce(
193217
193224
  function() {
193218
193225
  if (!e) return;
193219
193226
  const { results: O, resultIndex: A } = e.storage.searchAndReplace, M = O[A];
@@ -193380,7 +193387,7 @@ const AZe = ({
193380
193387
  }
193381
193388
  )
193382
193389
  ] });
193383
- }, _Ze = QL(() => import("./markdown-source-pane-DVl_Wt4s.mjs")), SZe = QL(() => import("./split-view-toolbar-DOXYj9CC.mjs")), TZe = ({
193390
+ }, _Ze = QL(() => import("./markdown-source-pane-DFe4Z8Le.mjs")), SZe = QL(() => import("./split-view-toolbar-KDZTqg8P.mjs")), TZe = ({
193384
193391
  markdown: e,
193385
193392
  onMarkdownChange: t,
193386
193393
  onExitSplitView: n,
@@ -193388,7 +193395,7 @@ const AZe = ({
193388
193395
  onError: o,
193389
193396
  style: i
193390
193397
  }) => {
193391
- const [s, a] = Ne(null), l = Ae((u) => {
193398
+ const [s, a] = Ne(null), l = Ce((u) => {
193392
193399
  a(u);
193393
193400
  }, []);
193394
193401
  return /* @__PURE__ */ x.jsxs(
@@ -193499,7 +193506,7 @@ const AZe = ({
193499
193506
  }) => {
193500
193507
  const [a, l] = Ne(""), u = Se(null), c = Se(null), d = Se(!1), p = Se(null), h = Se(s);
193501
193508
  h.current = s;
193502
- const f = Se(!1), g = Se(null), m = Ae(
193509
+ const f = Se(!1), g = Se(null), m = Ce(
193503
193510
  async (F) => {
193504
193511
  if (!e || e.isDestroyed) return;
193505
193512
  if (f.current) {
@@ -193558,7 +193565,7 @@ const AZe = ({
193558
193565
  e.isDestroyed || e.setEditable(!n);
193559
193566
  };
193560
193567
  }, [e, t, n, r]);
193561
- const y = Ae(
193568
+ const y = Ce(
193562
193569
  (F) => {
193563
193570
  d.current && (l(F), c.current = F, u.current && clearTimeout(u.current), u.current = setTimeout(() => {
193564
193571
  c.current = null, m(F);
@@ -193576,7 +193583,7 @@ const AZe = ({
193576
193583
  min: t = 0.2,
193577
193584
  max: n = 0.8
193578
193585
  } = {}) => {
193579
- const r = Se(null), [o, i] = Ne(e), s = Se(null), a = Ae(
193586
+ const r = Se(null), [o, i] = Ne(e), s = Se(null), a = Ce(
193580
193587
  (l) => {
193581
193588
  l.preventDefault();
193582
193589
  const u = r.current;
@@ -193674,7 +193681,7 @@ const AZe = ({
193674
193681
  connectViaWallet: Oe,
193675
193682
  isLoading: ze,
193676
193683
  connectViaUsername: qe,
193677
- isDDocOwner: ft,
193684
+ isDDocOwner: gt,
193678
193685
  isCollabDocumentPublished: at = !0,
193679
193686
  disableInlineComment: Mt,
193680
193687
  renderThemeToggle: gn,
@@ -193684,7 +193691,7 @@ const AZe = ({
193684
193691
  tabConfig: Qe,
193685
193692
  footerHeight: ut,
193686
193693
  ipfsImageFetchFn: Vt,
193687
- fetchV1ImageFn: gt,
193694
+ fetchV1ImageFn: mt,
193688
193695
  activeModel: xt,
193689
193696
  maxTokens: zt,
193690
193697
  isAIAgentEnabled: dt,
@@ -193698,7 +193705,7 @@ const AZe = ({
193698
193705
  onFocusMode: (Ye) => {
193699
193706
  te && (se == null || se(!1)), ee == null || ee(Ye);
193700
193707
  }
193701
- }), [et, pt] = Ne(!1), [Qt, rn] = Ne(!1), bt = Se(null), kn = (() => {
193708
+ }), [et, pt] = Ne(!1), [Qt, rn] = Ne(!1), yt = Se(null), kn = (() => {
193702
193709
  if (!vt)
193703
193710
  return { canvas: void 0, background: void 0 };
193704
193711
  const Ye = {}, Pt = {}, Cn = Ee ?? "light";
@@ -193734,7 +193741,7 @@ const AZe = ({
193734
193741
  k && k.length <= 4 && Ot(!1);
193735
193742
  }, [k]);
193736
193743
  const [mn, Ci] = Ne(!1), {
193737
- editor: yt,
193744
+ editor: ft,
193738
193745
  cachedEditorEntries: Zi,
193739
193746
  ref: As,
193740
193747
  isContentLoading: al,
@@ -193765,7 +193772,7 @@ const AZe = ({
193765
193772
  } = Yte({
193766
193773
  documentStyling: vt,
193767
193774
  ipfsImageFetchFn: Vt,
193768
- fetchV1ImageFn: gt,
193775
+ fetchV1ImageFn: mt,
193769
193776
  enableIndexeddbSync: M,
193770
193777
  ddocId: C,
193771
193778
  isPreviewMode: e,
@@ -193808,7 +193815,7 @@ const AZe = ({
193808
193815
  activeModel: xt,
193809
193816
  maxTokens: zt,
193810
193817
  isAIAgentEnabled: dt,
193811
- isDDocOwner: ft,
193818
+ isDDocOwner: gt,
193812
193819
  tabConfig: Qe,
193813
193820
  onNewComment: ge,
193814
193821
  fonts: St,
@@ -193835,7 +193842,7 @@ const AZe = ({
193835
193842
  onMarkdownChange: Rne,
193836
193843
  rightScrollRef: Lne
193837
193844
  } = BZe({
193838
- editor: yt,
193845
+ editor: ft,
193839
193846
  isSplitView: En,
193840
193847
  isPreviewMode: e,
193841
193848
  activeTabId: pu,
@@ -193847,7 +193854,7 @@ const AZe = ({
193847
193854
  k8(
193848
193855
  bn,
193849
193856
  () => ({
193850
- getEditor: () => yt,
193857
+ getEditor: () => ft,
193851
193858
  getYdoc: () => pa,
193852
193859
  refreshYjsIndexedDbProvider: Xf,
193853
193860
  mergeYjsContents: (Ye) => {
@@ -193859,8 +193866,8 @@ const AZe = ({
193859
193866
  ), Pt;
193860
193867
  },
193861
193868
  exportContentAsMarkDown: async (Ye) => {
193862
- if (yt) {
193863
- const Pt = await yt.commands.exportMarkdownFile();
193869
+ if (ft) {
193870
+ const Pt = await ft.commands.exportMarkdownFile();
193864
193871
  if (Pt) {
193865
193872
  const Cn = Pt, Vn = document.createElement("a");
193866
193873
  Vn.href = Cn, Vn.download = Ye, document.body.appendChild(Vn), Vn.click(), document.body.removeChild(Vn), URL.revokeObjectURL(Cn);
@@ -193868,7 +193875,7 @@ const AZe = ({
193868
193875
  }
193869
193876
  },
193870
193877
  updateCollaboratorName: (Ye) => {
193871
- if (!yt || !kp) {
193878
+ if (!ft || !kp) {
193872
193879
  console.debug("collab: cannot find editor or awareness");
193873
193880
  return;
193874
193881
  }
@@ -193877,16 +193884,16 @@ const AZe = ({
193877
193884
  color: Cn == null ? void 0 : Cn.color,
193878
193885
  isEns: Cn == null ? void 0 : Cn.isEns
193879
193886
  };
193880
- kp.setLocalStateField("user", Vn), yt.setEditable(!0);
193887
+ kp.setLocalStateField("user", Vn), ft.setEditable(!0);
193881
193888
  },
193882
193889
  exportCurrentTabOrOpenExportModal: (Ye = "pdf", Pt) => {
193883
193890
  var Cn;
193884
- (Cn = bt.current) == null || Cn.call(bt, Ye, Pt);
193891
+ (Cn = yt.current) == null || Cn.call(yt, Ye, Pt);
193885
193892
  },
193886
193893
  terminateSession: Ane
193887
193894
  }),
193888
193895
  // eslint-disable-next-line react-hooks/exhaustive-deps
193889
- [yt, kp]
193896
+ [ft, kp]
193890
193897
  );
193891
193898
  const Une = (Ye) => {
193892
193899
  E == null || E((Pt) => {
@@ -193916,23 +193923,23 @@ const AZe = ({
193916
193923
  U == null || U(!0), te && (se == null || se(!1));
193917
193924
  };
193918
193925
  _e(() => {
193919
- if (yt && ht) {
193920
- const { selection: Ye } = yt.state, Pt = Qx(Ye), Cn = () => {
193926
+ if (ft && ht) {
193927
+ const { selection: Ye } = ft.state, Pt = Qx(Ye), Cn = () => {
193921
193928
  pt(!0);
193922
193929
  }, Vn = () => {
193923
193930
  pt(!1);
193924
193931
  };
193925
- return !Pt && yt.on("focus", Cn), Pt && yt.on("blur", Vn), () => {
193926
- yt.off("focus", Cn), yt.off("blur", Vn);
193932
+ return !Pt && ft.on("focus", Cn), Pt && ft.on("blur", Vn), () => {
193933
+ ft.off("focus", Cn), ft.off("blur", Vn);
193927
193934
  };
193928
193935
  }
193929
- }, [ht, yt]), _e(() => {
193930
- if (yt)
193936
+ }, [ht, ft]), _e(() => {
193937
+ if (ft)
193931
193938
  try {
193932
- const Ye = yt.view.dom;
193939
+ const Ye = ft.view.dom;
193933
193940
  if (!Ye) return;
193934
193941
  const Pt = (Cn) => {
193935
- Cn.key === "Enter" && yt.commands.scrollIntoView();
193942
+ Cn.key === "Enter" && ft.commands.scrollIntoView();
193936
193943
  };
193937
193944
  return Ye.addEventListener("keydown", Pt), () => {
193938
193945
  Ye.removeEventListener("keydown", Pt);
@@ -193940,10 +193947,10 @@ const AZe = ({
193940
193947
  } catch {
193941
193948
  return;
193942
193949
  }
193943
- }, [yt]), _e(() => {
193944
- if (!(!ht || !yt))
193950
+ }, [ft]), _e(() => {
193951
+ if (!(!ht || !ft))
193945
193952
  try {
193946
- const Ye = yt.view.dom;
193953
+ const Ye = ft.view.dom;
193947
193954
  if (!Ye) return;
193948
193955
  const Pt = () => {
193949
193956
  As.current && As.current.scrollIntoView();
@@ -193954,7 +193961,9 @@ const AZe = ({
193954
193961
  } catch {
193955
193962
  return;
193956
193963
  }
193957
- }, [yt, As, ht]);
193964
+ }, [ft, As, ht]), _e(() => {
193965
+ !he || !ft || ft.isDestroyed || ft.commands.focus();
193966
+ }, [he, ft]);
193958
193967
  const fa = or("(max-width: 768px)"), r_ = wt(() => (ye || []).reduce(
193959
193968
  (Ye, Pt) => {
193960
193969
  if (Pt.deleted) return Ye;
@@ -193967,7 +193976,7 @@ const AZe = ({
193967
193976
  // List button in the split header), so the editor's native left rail
193968
193977
  // would just duplicate it.
193969
193978
  !En && (du.length > 0 || p4.length > 0 && !((l_ = $t.versionHistoryState) != null && l_.enabled)) && (!he || De)
193970
- ), s_ = typeof window < "u" ? window.innerWidth : 0, a_ = Bm + 148 * 2 > s_, $ne = s_ - (m4 ? 148 : 0), Hne = Bm > $ne, Nm = Se(null), Wne = Ae(
193979
+ ), s_ = typeof window < "u" ? window.innerWidth : 0, a_ = Bm + 148 * 2 > s_, $ne = s_ - (m4 ? 148 : 0), Hne = Bm > $ne, Nm = Se(null), Wne = Ce(
193971
193980
  (Ye, Pt) => {
193972
193981
  if (Pt) {
193973
193982
  Nm.current = Ye;
@@ -193978,13 +193987,13 @@ const AZe = ({
193978
193987
  []
193979
193988
  ), qne = (Ye) => {
193980
193989
  var Rc;
193981
- if (!he || !yt || Ye.button !== 0) return;
193990
+ if (!he || !ft || Ye.button !== 0) return;
193982
193991
  const Pt = Ye.target;
193983
193992
  (Rc = Nm.current) != null && Rc.contains(Pt) || Pt.closest(
193984
193993
  '[data-radix-dialog-content], [role="dialog"], [data-modal], [data-overlay]'
193985
193994
  ) || Pt.closest(
193986
193995
  "[data-radix-popper-content-wrapper], [data-floating-ui-portal]"
193987
- ) || (Ye.preventDefault(), yt.commands.focus("end", { scrollIntoView: !1 }));
193996
+ ) || (Ye.preventDefault(), ft.commands.focus("end", { scrollIntoView: !1 }));
193988
193997
  }, Vne = e ? null : /* @__PURE__ */ x.jsx(
193989
193998
  "div",
193990
193999
  {
@@ -194004,7 +194013,7 @@ const AZe = ({
194004
194013
  setIsPresentationMode: zne,
194005
194014
  enableCollaboration: r == null ? void 0 : r.enabled,
194006
194015
  onError: b,
194007
- editor: yt,
194016
+ editor: ft,
194008
194017
  zoomLevel: j,
194009
194018
  setZoomLevel: S,
194010
194019
  isNavbarVisible: L,
@@ -194017,9 +194026,9 @@ const AZe = ({
194017
194026
  onTxtExport: T,
194018
194027
  onOdtExport: X,
194019
194028
  onDocxImport: Y,
194020
- isLoading: !yt || al,
194029
+ isLoading: !ft || al,
194021
194030
  ipfsImageFetchFn: Vt,
194022
- fetchV1ImageFn: gt,
194031
+ fetchV1ImageFn: mt,
194023
194032
  isConnected: Be,
194024
194033
  tabs: du,
194025
194034
  ydoc: pa,
@@ -194030,7 +194039,7 @@ const AZe = ({
194030
194039
  H && !Tm ? () => H((Ye) => !Ye) : void 0
194031
194040
  ),
194032
194041
  onRegisterExportTrigger: (Ye) => {
194033
- bt.current = Ye;
194042
+ yt.current = Ye;
194034
194043
  },
194035
194044
  fonts: St
194036
194045
  }
@@ -194050,14 +194059,14 @@ const AZe = ({
194050
194059
  }
194051
194060
  ),
194052
194061
  !En && Vne,
194053
- (e || En) && yt && /* @__PURE__ */ x.jsx(
194062
+ (e || En) && ft && /* @__PURE__ */ x.jsx(
194054
194063
  HYe,
194055
194064
  {
194056
- editor: yt,
194065
+ editor: ft,
194057
194066
  ydoc: pa,
194058
194067
  tabs: du,
194059
194068
  onRegisterExportTrigger: (Ye) => {
194060
- bt.current = Ye;
194069
+ yt.current = Ye;
194061
194070
  },
194062
194071
  onError: b,
194063
194072
  ipfsImageUploadFn: g,
@@ -194069,14 +194078,14 @@ const AZe = ({
194069
194078
  onOdtExport: X,
194070
194079
  ipfsImageFetchFn: Vt,
194071
194080
  onDocxImport: Y,
194072
- fetchV1ImageFn: gt,
194081
+ fetchV1ImageFn: mt,
194073
194082
  isConnected: Be
194074
194083
  }
194075
194084
  ),
194076
- R && yt && /* @__PURE__ */ x.jsx(
194085
+ R && ft && /* @__PURE__ */ x.jsx(
194077
194086
  pXe,
194078
194087
  {
194079
- editor: yt,
194088
+ editor: ft,
194080
194089
  onClose: Pne,
194081
194090
  isFullscreen: Qt,
194082
194091
  setIsFullscreen: rn,
@@ -194092,7 +194101,7 @@ const AZe = ({
194092
194101
  isContentLoading: al,
194093
194102
  ipfsImageFetchFn: Vt,
194094
194103
  documentStyling: vt,
194095
- fetchV1ImageFn: gt,
194104
+ fetchV1ImageFn: mt,
194096
194105
  theme: Ee ?? "light"
194097
194106
  }
194098
194107
  ),
@@ -194112,10 +194121,10 @@ const AZe = ({
194112
194121
  he && "mt-[48px]",
194113
194122
  he && !De && a_ && "hidden"
194114
194123
  ),
194115
- children: yt && m4 && /* @__PURE__ */ x.jsx(
194124
+ children: ft && m4 && /* @__PURE__ */ x.jsx(
194116
194125
  w8,
194117
194126
  {
194118
- editor: yt,
194127
+ editor: ft,
194119
194128
  hasToC: !0,
194120
194129
  items: p4,
194121
194130
  setItems: KA,
@@ -194259,11 +194268,11 @@ const AZe = ({
194259
194268
  },
194260
194269
  children: [
194261
194270
  /* @__PURE__ */ x.jsxs("div", { children: [
194262
- yt && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
194271
+ ft && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
194263
194272
  /* @__PURE__ */ x.jsx(
194264
194273
  hV,
194265
194274
  {
194266
- editor: yt,
194275
+ editor: ft,
194267
194276
  onError: b,
194268
194277
  zoomLevel: j,
194269
194278
  disableInlineComment: Mt || !1,
@@ -194278,23 +194287,23 @@ const AZe = ({
194278
194287
  activeCommentId: ha,
194279
194288
  isCollabDocumentPublished: at,
194280
194289
  ipfsImageFetchFn: Vt,
194281
- fetchV1ImageFn: gt,
194290
+ fetchV1ImageFn: mt,
194282
194291
  ipfsImageUploadFn: g,
194283
194292
  enableCollaboration: r == null ? void 0 : r.enabled,
194284
194293
  isCollabDocOwner: r != null && r.enabled ? r.connection.isOwner : !0
194285
194294
  }
194286
194295
  ),
194287
- /* @__PURE__ */ x.jsx($Ye, { editor: yt })
194296
+ /* @__PURE__ */ x.jsx($Ye, { editor: ft })
194288
194297
  ] }),
194289
- yt && /* @__PURE__ */ x.jsx(
194298
+ ft && /* @__PURE__ */ x.jsx(
194290
194299
  r4e,
194291
194300
  {
194292
- editor: yt,
194301
+ editor: ft,
194293
194302
  appendTo: As
194294
194303
  }
194295
194304
  )
194296
194305
  ] }),
194297
- !yt || al ? Uo(
194306
+ !ft || al ? Uo(
194298
194307
  /* @__PURE__ */ x.jsx(
194299
194308
  "div",
194300
194309
  {
@@ -194394,12 +194403,12 @@ const AZe = ({
194394
194403
  /* @__PURE__ */ x.jsx(
194395
194404
  kne,
194396
194405
  {
194397
- editor: yt,
194406
+ editor: ft,
194398
194407
  runtimeState: Bne,
194399
- children: /* @__PURE__ */ x.jsx("div", { className: "grammarly-wrapper", children: (Zi != null && Zi.length ? Zi : yt ? [
194408
+ children: /* @__PURE__ */ x.jsx("div", { className: "grammarly-wrapper", children: (Zi != null && Zi.length ? Zi : ft ? [
194400
194409
  {
194401
194410
  tabId: pu,
194402
- editor: yt,
194411
+ editor: ft,
194403
194412
  isActive: !0
194404
194413
  }
194405
194414
  ] : []).map((Ye) => /* @__PURE__ */ x.jsx(
@@ -194448,10 +194457,10 @@ const AZe = ({
194448
194457
  )
194449
194458
  }
194450
194459
  ),
194451
- yt && !he && /* @__PURE__ */ x.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ x.jsx(
194460
+ ft && !he && /* @__PURE__ */ x.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ x.jsx(
194452
194461
  yYe,
194453
194462
  {
194454
- editor: yt,
194463
+ editor: ft,
194455
194464
  editorWrapperRef: Re,
194456
194465
  scrollContainerRef: Te,
194457
194466
  tabName: jne,
@@ -194493,7 +194502,7 @@ const AZe = ({
194493
194502
  {
194494
194503
  ref: Fe,
194495
194504
  onClick: () => {
194496
- yt && (p == null || p(yt));
194505
+ ft && (p == null || p(ft));
194497
194506
  },
194498
194507
  variant: "ghost",
194499
194508
  className: Je(
@@ -194514,19 +194523,19 @@ const AZe = ({
194514
194523
  Zte,
194515
194524
  {
194516
194525
  onError: b,
194517
- editor: yt,
194526
+ editor: ft,
194518
194527
  isKeyboardVisible: et,
194519
194528
  isNavbarVisible: L,
194520
194529
  setIsNavbarVisible: P,
194521
194530
  ipfsImageUploadFn: g,
194522
- isLoading: !yt || al,
194531
+ isLoading: !ft || al,
194523
194532
  ipfsImageFetchFn: Vt,
194524
- fetchV1ImageFn: gt
194533
+ fetchV1ImageFn: mt
194525
194534
  }
194526
194535
  )
194527
194536
  }
194528
194537
  ),
194529
- yt && /* @__PURE__ */ x.jsx(
194538
+ ft && /* @__PURE__ */ x.jsx(
194530
194539
  MXe,
194531
194540
  {
194532
194541
  isOpen: te,
@@ -194541,10 +194550,10 @@ const AZe = ({
194541
194550
  isCollaborationEnabled: (r == null ? void 0 : r.enabled) || !1
194542
194551
  }
194543
194552
  ),
194544
- /* @__PURE__ */ x.jsx("div", { children: yt && ot && !he && /* @__PURE__ */ x.jsx(
194553
+ /* @__PURE__ */ x.jsx("div", { children: ft && ot && !he && /* @__PURE__ */ x.jsx(
194545
194554
  OXe,
194546
194555
  {
194547
- editor: yt,
194556
+ editor: ft,
194548
194557
  activeCommentId: ha,
194549
194558
  commentDrawerOpen: te,
194550
194559
  isCollabDocumentPublished: at,
@@ -194586,7 +194595,7 @@ const AZe = ({
194586
194595
  ),
194587
194596
  style: he ? void 0 : st(),
194588
194597
  children: [
194589
- /* @__PURE__ */ x.jsx(AZe, { editor: yt, viewerMode: t }),
194598
+ /* @__PURE__ */ x.jsx(AZe, { editor: ft, viewerMode: t }),
194590
194599
  /* @__PURE__ */ x.jsx(
194591
194600
  "nav",
194592
194601
  {
@@ -194598,9 +194607,9 @@ const AZe = ({
194598
194607
  "translate-y-[-100%] opacity-0 pointer-events-none": he || !L || R
194599
194608
  }
194600
194609
  ),
194601
- children: yt && (s == null ? void 0 : s({
194610
+ children: ft && (s == null ? void 0 : s({
194602
194611
  get editor() {
194603
- return yt.getJSON();
194612
+ return ft.getJSON();
194604
194613
  }
194605
194614
  }))
194606
194615
  }
@@ -194608,7 +194617,7 @@ const AZe = ({
194608
194617
  /* @__PURE__ */ x.jsx(
194609
194618
  X2e,
194610
194619
  {
194611
- editor: yt ?? null,
194620
+ editor: ft ?? null,
194612
194621
  ydoc: pa,
194613
194622
  isFocusMode: he,
194614
194623
  username: o,
@@ -194632,7 +194641,7 @@ const AZe = ({
194632
194641
  connectViaWallet: Oe,
194633
194642
  isLoading: ze,
194634
194643
  connectViaUsername: qe,
194635
- isDDocOwner: ft,
194644
+ isDDocOwner: gt,
194636
194645
  onInlineComment: oe,
194637
194646
  onComment: K,
194638
194647
  setCommentDrawerOpen: se,
@@ -194648,7 +194657,7 @@ const AZe = ({
194648
194657
  En ? "flex w-full h-full p-4 color-bg-secondary overflow-hidden" : "contents"
194649
194658
  ),
194650
194659
  children: [
194651
- yt && En && /* @__PURE__ */ x.jsx(
194660
+ ft && En && /* @__PURE__ */ x.jsx(
194652
194661
  TZe,
194653
194662
  {
194654
194663
  markdown: Ine,
@@ -194659,7 +194668,7 @@ const AZe = ({
194659
194668
  style: { flexGrow: g4 }
194660
194669
  }
194661
194670
  ),
194662
- yt && En && /* @__PURE__ */ x.jsx(
194671
+ ft && En && /* @__PURE__ */ x.jsx(
194663
194672
  "div",
194664
194673
  {
194665
194674
  role: "separator",
@@ -194680,10 +194689,10 @@ const AZe = ({
194680
194689
  En ? "flex-1 min-w-0 h-full flex flex-col color-bg-default rounded border color-border-default overflow-hidden relative" : "contents"
194681
194690
  ),
194682
194691
  children: [
194683
- yt && En && /* @__PURE__ */ x.jsx(
194692
+ ft && En && /* @__PURE__ */ x.jsx(
194684
194693
  jZe,
194685
194694
  {
194686
- editor: yt,
194695
+ editor: ft,
194687
194696
  showTabsPanel: t_,
194688
194697
  onToggleTabsPanel: () => One((Ye) => !Ye)
194689
194698
  }
@@ -194706,10 +194715,10 @@ const AZe = ({
194706
194715
  children: Kne()
194707
194716
  }
194708
194717
  ),
194709
- yt && En && t_ && /* @__PURE__ */ x.jsx("div", { className: "absolute top-0 left-0 h-full w-[263px] z-20 color-bg-default border-r color-border-default shadow-elevation-3 overflow-y-auto", children: /* @__PURE__ */ x.jsx(
194718
+ ft && En && t_ && /* @__PURE__ */ x.jsx("div", { className: "absolute top-0 left-0 h-full w-[263px] z-20 color-bg-default border-r color-border-default shadow-elevation-3 overflow-y-auto", children: /* @__PURE__ */ x.jsx(
194710
194719
  w8,
194711
194720
  {
194712
- editor: yt,
194721
+ editor: ft,
194713
194722
  hasToC: !0,
194714
194723
  items: p4,
194715
194724
  setItems: KA,
@@ -195150,20 +195159,20 @@ const AZe = ({
195150
195159
  "txt",
195151
195160
  "odt"
195152
195161
  ], RZe = (e) => e !== void 0 && IZe.includes(e), NJe = (e) => {
195153
- const t = Se(null), n = Se(!1), [r, o] = Ne(null), [i, s] = Ne(!1), a = OZe(e), { getEditor: l, setContent: u } = a, c = Ae(
195162
+ const t = Se(null), n = Se(!1), [r, o] = Ne(null), [i, s] = Ne(!1), a = OZe(e), { getEditor: l, setContent: u } = a, c = Ce(
195154
195163
  (_, N) => {
195155
195164
  _ && !_.isDestroyed && _.destroy(), N && !N.isDestroyed && N.destroy();
195156
195165
  },
195157
195166
  []
195158
- ), d = Ae(
195167
+ ), d = Ce(
195159
195168
  (_) => {
195160
195169
  const N = t.current;
195161
195170
  N && c(N.editor, N.ydoc), t.current = _, o(_);
195162
195171
  },
195163
195172
  [c]
195164
- ), p = Ae(() => {
195173
+ ), p = Ce(() => {
195165
195174
  s(!1), d(null);
195166
- }, [d]), h = Ae(
195175
+ }, [d]), h = Ce(
195167
195176
  (_) => {
195168
195177
  s(_), !_ && (n.current || d(null));
195169
195178
  },
@@ -195175,15 +195184,15 @@ const AZe = ({
195175
195184
  t.current.ydoc
195176
195185
  ), t.current = null);
195177
195186
  }, [c]);
195178
- const f = Ae((_, N) => {
195187
+ const f = Ce((_, N) => {
195179
195188
  const O = _.getXmlFragment(N);
195180
195189
  return ME(O);
195181
- }, []), g = Ae((_) => ed(
195190
+ }, []), g = Ce((_) => ed(
195182
195191
  _
195183
- ) || null, []), m = Ae((_, N) => {
195192
+ ) || null, []), m = Ce((_, N) => {
195184
195193
  const O = document.createElement("a");
195185
195194
  O.href = _, O.download = N, document.body.appendChild(O), O.click(), document.body.removeChild(O), URL.revokeObjectURL(_);
195186
- }, []), b = Ae(() => {
195195
+ }, []), b = Ce(() => {
195187
195196
  if (!r) return null;
195188
195197
  const _ = r.activeTabId, N = f(r.ydoc, _);
195189
195198
  return bc(r.editor, N);
@@ -195292,7 +195301,7 @@ const AZe = ({
195292
195301
  }), w = wt(() => !r || r.tabs.length <= 1 ? [{ id: "current", label: "Current tab" }] : [
195293
195302
  { id: "current", label: "Current tab" },
195294
195303
  { id: "all", label: "All tabs" }
195295
- ], [r]), D = Ae(
195304
+ ], [r]), D = Ce(
195296
195305
  (_) => {
195297
195306
  var A;
195298
195307
  if (n.current) return;
@@ -195323,7 +195332,7 @@ const AZe = ({
195323
195332
  d,
195324
195333
  s
195325
195334
  ]
195326
- ), k = Ae(
195335
+ ), k = Ce(
195327
195336
  async ({ format: _, tab: N }) => {
195328
195337
  r && (n.current = !0, v({
195329
195338
  format: _,