sykpcomposer 1.20.52 → 1.20.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var nT = Object.defineProperty;
2
2
  var rT = (c, t, n) => t in c ? nT(c, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[t] = n;
3
3
  var Un = (c, t, n) => (rT(c, typeof t != "symbol" ? t + "" : t, n), n);
4
- import * as sr from "react";
4
+ import * as ar from "react";
5
5
  import Ri, { createContext as xh, useContext as i0, useMemo as Fr, useLayoutEffect as as, useEffect as qt, useState as Ft, useCallback as mn, useRef as tr, Suspense as Vd } from "react";
6
6
  import * as wh from "react-dom";
7
7
  import { flushSync as tw, createPortal as Na } from "react-dom";
@@ -695,7 +695,7 @@ function kn() {
695
695
  function Ao(c) {
696
696
  return {};
697
697
  }
698
- const ka = {}, nw = {}, Gd = {}, ca = {}, Ws = {}, Bl = {}, Js = {}, Xs = {}, Bp = {}, zl = {}, Ks = {}, ei = {}, ru = {}, ou = {}, rw = {}, Eh = {}, cT = {}, Ch = {}, uT = {}, Yd = {}, Zd = {}, $l = {}, dT = {}, el = {}, Zl = {}, tl = {}, Th = {}, fT = {}, ow = {}, Iv = {}, kh = {}, Tl = {}, Oh = {}, s0 = {}, pT = {}, Qd = {}, Xd = {}, zp = {}, Nh = {}, hT = {}, Jc = {}, Vc = {}, l0 = {}, gT = {}, iw = {}, ha = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mT = ha && "documentMode" in document ? document.documentMode : null, oa = ha && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Vs = ha && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), $p = !(!ha || !("InputEvent" in window) || mT) && "getTargetRanges" in new window.InputEvent("input"), c0 = ha && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Ah = ha && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, yT = ha && /Android/.test(navigator.userAgent), aw = ha && /^(?=.*Chrome).*/i.test(navigator.userAgent), bT = ha && yT && aw, u0 = ha && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !aw, ef = 1, nl = 3, Ul = 0, sw = 1, iu = 2, vT = 0, _T = 1, xT = 2, Up = 4, Hp = 8, d0 = 128, wT = 112 | (3 | Up | Hp) | d0, f0 = 1, p0 = 2, h0 = 3, g0 = 4, m0 = 5, y0 = 6, jh = c0 || Ah || u0 ? " " : "​", rs = `
698
+ const ka = {}, nw = {}, Gd = {}, ca = {}, Ws = {}, Bl = {}, Js = {}, Xs = {}, Bp = {}, zl = {}, Ks = {}, ti = {}, ru = {}, ou = {}, rw = {}, Eh = {}, cT = {}, Ch = {}, uT = {}, Yd = {}, Zd = {}, $l = {}, dT = {}, el = {}, Zl = {}, tl = {}, Th = {}, fT = {}, ow = {}, Iv = {}, kh = {}, Tl = {}, Oh = {}, s0 = {}, pT = {}, Qd = {}, Xd = {}, zp = {}, Nh = {}, hT = {}, Jc = {}, Vc = {}, l0 = {}, gT = {}, iw = {}, ha = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mT = ha && "documentMode" in document ? document.documentMode : null, oa = ha && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Vs = ha && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), $p = !(!ha || !("InputEvent" in window) || mT) && "getTargetRanges" in new window.InputEvent("input"), c0 = ha && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Ah = ha && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, yT = ha && /Android/.test(navigator.userAgent), aw = ha && /^(?=.*Chrome).*/i.test(navigator.userAgent), bT = ha && yT && aw, u0 = ha && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !aw, ef = 1, nl = 3, Ul = 0, sw = 1, iu = 2, vT = 0, _T = 1, xT = 2, Up = 4, Hp = 8, d0 = 128, wT = 112 | (3 | Up | Hp) | d0, f0 = 1, p0 = 2, h0 = 3, g0 = 4, m0 = 5, y0 = 6, jh = c0 || Ah || u0 ? " " : "​", rs = `
699
699
 
700
700
  `, ST = Vs ? " " : jh, lw = "֑-߿יִ-﷽ﹰ-ﻼ", cw = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", ET = new RegExp("^[^" + cw + "]*[" + lw + "]"), CT = new RegExp("^[^" + lw + "]*[" + cw + "]"), ts = { bold: 1, code: 16, highlight: d0, italic: 2, strikethrough: Up, subscript: 32, superscript: 64, underline: Hp }, TT = { directionless: 1, unmergeable: 2 }, Pv = { center: p0, end: y0, justify: g0, left: f0, right: h0, start: m0 }, kT = { [p0]: "center", [y0]: "end", [g0]: "justify", [f0]: "left", [h0]: "right", [m0]: "start" }, OT = { normal: 0, segmented: 2, token: 1 }, NT = { [vT]: "normal", [xT]: "segmented", [_T]: "token" };
701
701
  function AT(c) {
@@ -928,7 +928,7 @@ function x0(c) {
928
928
  function hw(c, t) {
929
929
  if (t != null)
930
930
  return void (c.__key = t);
931
- ti(), Hw();
931
+ ni(), Hw();
932
932
  const n = Yr(), e = Ra(), s = "" + RT++;
933
933
  e._nodeMap.set(s, c), kt(c) ? n._dirtyElements.set(s, !0) : n._dirtyLeaves.add(s), n._cloneNotNeeded.add(s), n._dirtyType = sw, c.__key = s;
934
934
  }
@@ -987,7 +987,7 @@ function Jp(c) {
987
987
  s._dirtyType = sw, kt(c) ? r.set(a, !0) : s._dirtyLeaves.add(a);
988
988
  }
989
989
  function Fo(c) {
990
- ti();
990
+ ni();
991
991
  const t = Yr(), n = t._compositionKey;
992
992
  if (c !== n) {
993
993
  if (t._compositionKey = c, n !== null) {
@@ -1035,7 +1035,7 @@ function yw(c) {
1035
1035
  return c._nodeMap.get("root");
1036
1036
  }
1037
1037
  function qr(c) {
1038
- ti();
1038
+ ni();
1039
1039
  const t = Ra();
1040
1040
  c !== null && (c.dirty = !0, c.setCachedNodes(null)), t._selection = c;
1041
1041
  }
@@ -1117,7 +1117,7 @@ function E0(c, t, n, e, s) {
1117
1117
  if (!Tt(h) || n === null || e === null)
1118
1118
  return void o.setTextContent(a);
1119
1119
  if (h.setTextNodeRange(o, n, o, e), o.isSegmented()) {
1120
- const m = ar(o.getTextContent());
1120
+ const m = sr(o.getTextContent());
1121
1121
  o.replace(m), o = m;
1122
1122
  }
1123
1123
  o.setTextContent(a);
@@ -1226,7 +1226,7 @@ function Ph(c) {
1226
1226
  return t !== null && t.nodeType === 11 ? t.host : t;
1227
1227
  }
1228
1228
  function BT(c) {
1229
- ti(), Yr()._updateTags.add(c);
1229
+ ni(), Yr()._updateTags.add(c);
1230
1230
  }
1231
1231
  function Kp(c, t) {
1232
1232
  let n = c.getParent();
@@ -1257,7 +1257,7 @@ function $T(c) {
1257
1257
  const t = c.constructor.clone(c);
1258
1258
  return hw(t, null), t;
1259
1259
  }
1260
- function Ir(c) {
1260
+ function Pr(c) {
1261
1261
  const t = Yr(), n = c.constructor.getType(), e = t._nodes.get(n);
1262
1262
  e === void 0 && fn(97);
1263
1263
  const s = e.replace;
@@ -1366,7 +1366,7 @@ function Ew(c, t, n, e, s, o) {
1366
1366
  r.__parent === t && (kt(r) && Ew(r, a, n, e, s, o), n.has(a) || o.delete(a), s.push(a)), r = r.getNextSibling();
1367
1367
  }
1368
1368
  }
1369
- let Gs, oi, Pd, Rh, iy, ay, Hl, ua, sy, Md, mo = "", ni = "", ia = null, Za = "", Cw = !1, Dh = !1, bp = null;
1369
+ let Gs, oi, Pd, Rh, iy, ay, Hl, ua, sy, Md, mo = "", ri = "", ia = null, Za = "", Cw = !1, Dh = !1, bp = null;
1370
1370
  function Gp(c, t) {
1371
1371
  const n = Hl.get(c);
1372
1372
  if (t !== null) {
@@ -1415,8 +1415,8 @@ function Yp(c, t, n) {
1415
1415
  if (o !== 0 && Tw(s, o), r !== 0) {
1416
1416
  const l = r - 1;
1417
1417
  (function(i, u, f, d) {
1418
- const p = ni;
1419
- ni = "", cy(i, f, 0, u, d, null), Nw(f, d), ni = p;
1418
+ const p = ri;
1419
+ ri = "", cy(i, f, 0, u, d, null), Nw(f, d), ri = p;
1420
1420
  })(Zp(e, ua), l, e, s);
1421
1421
  }
1422
1422
  const a = e.__format;
@@ -1427,7 +1427,7 @@ function Yp(c, t, n) {
1427
1427
  const r = e.decorate(oi, Gs);
1428
1428
  r !== null && Aw(c, r), s.contentEditable = "false";
1429
1429
  } else
1430
- Kt(e) && (e.isDirectionless() || (ni += o));
1430
+ Kt(e) && (e.isDirectionless() || (ri += o));
1431
1431
  mo += o, Za += o;
1432
1432
  }
1433
1433
  if (t !== null)
@@ -1468,8 +1468,8 @@ function Ow(c, t, n) {
1468
1468
  }
1469
1469
  function Nw(c, t) {
1470
1470
  const n = t.__lexicalDirTextContent, e = t.__lexicalDir;
1471
- if (n !== ni || e !== bp) {
1472
- const o = ni === "", r = o ? bp : (s = ni, ET.test(s) ? "rtl" : CT.test(s) ? "ltr" : null);
1471
+ if (n !== ri || e !== bp) {
1472
+ const o = ri === "", r = o ? bp : (s = ri, ET.test(s) ? "rtl" : CT.test(s) ? "ltr" : null);
1473
1473
  if (r !== e) {
1474
1474
  const a = t.classList, l = Gs.theme;
1475
1475
  let i = e !== null ? l[e] : void 0, u = r !== null ? l[r] : void 0;
@@ -1494,14 +1494,14 @@ function Nw(c, t) {
1494
1494
  }
1495
1495
  Dh || (c.getWritable().__dir = r);
1496
1496
  }
1497
- bp = r, t.__lexicalDirTextContent = ni, t.__lexicalDir = r;
1497
+ bp = r, t.__lexicalDirTextContent = ri, t.__lexicalDir = r;
1498
1498
  }
1499
1499
  var s;
1500
1500
  }
1501
1501
  function GT(c, t, n) {
1502
- const e = ni;
1502
+ const e = ri;
1503
1503
  var s;
1504
- ni = "", ia = null, function(o, r, a) {
1504
+ ri = "", ia = null, function(o, r, a) {
1505
1505
  const l = mo, i = o.__size, u = r.__size;
1506
1506
  if (mo = "", i === 1 && u === 1) {
1507
1507
  const f = o.__first, d = r.__first;
@@ -1554,7 +1554,7 @@ function GT(c, t, n) {
1554
1554
  })(r, f, d, i, u, a);
1555
1555
  }
1556
1556
  Ih(r) && (mo += rs), a.__lexicalTextContent = mo, mo = l + mo;
1557
- }(c, t, n), Nw(t, n), Rr(s = t) && ia != null && ia !== s.__textFormat && !Dh && s.setTextFormat(ia), ni = e, ia = null;
1557
+ }(c, t, n), Nw(t, n), Ir(s = t) && ia != null && ia !== s.__textFormat && !Dh && s.setTextFormat(ia), ri = e, ia = null;
1558
1558
  }
1559
1559
  function Zp(c, t) {
1560
1560
  const n = [];
@@ -1575,10 +1575,10 @@ function pd(c, t) {
1575
1575
  const r = o.__lexicalTextContent;
1576
1576
  r !== void 0 && (mo += r, Za += r);
1577
1577
  const a = o.__lexicalDirTextContent;
1578
- a !== void 0 && (ni += a);
1578
+ a !== void 0 && (ri += a);
1579
1579
  } else {
1580
1580
  const r = n.getTextContent();
1581
- Kt(n) && !n.isDirectionless() && (ni += r), Za += r, mo += r;
1581
+ Kt(n) && !n.isDirectionless() && (ri += r), Za += r, mo += r;
1582
1582
  }
1583
1583
  return o;
1584
1584
  }
@@ -1597,7 +1597,7 @@ function pd(c, t) {
1597
1597
  const a = e.decorate(oi, Gs);
1598
1598
  a !== null && Aw(c, a);
1599
1599
  } else
1600
- Kt(e) && !e.isDirectionless() && (ni += r);
1600
+ Kt(e) && !e.isDirectionless() && (ri += r);
1601
1601
  mo += r, Za += r;
1602
1602
  }
1603
1603
  if (!Dh && Vo(e) && e.__cachedText !== Za) {
@@ -1621,7 +1621,7 @@ function mm(c) {
1621
1621
  return t !== null && t === oi._blockCursorElement && (t = t.nextSibling), t;
1622
1622
  }
1623
1623
  function YT(c, t, n, e, s, o) {
1624
- mo = "", Za = "", ni = "", Cw = e === iu, bp = null, oi = n, Gs = n._config, Pd = n._nodes, Rh = oi._listeners.mutation, iy = s, ay = o, Hl = c._nodeMap, ua = t._nodeMap, Dh = t._readOnly, sy = new Map(n._keyToDOMMap);
1624
+ mo = "", Za = "", ri = "", Cw = e === iu, bp = null, oi = n, Gs = n._config, Pd = n._nodes, Rh = oi._listeners.mutation, iy = s, ay = o, Hl = c._nodeMap, ua = t._nodeMap, Dh = t._readOnly, sy = new Map(n._keyToDOMMap);
1625
1625
  const r = /* @__PURE__ */ new Map();
1626
1626
  return Md = r, pd("root", null), oi = void 0, Pd = void 0, iy = void 0, ay = void 0, Hl = void 0, ua = void 0, Gs = void 0, sy = void 0, Md = void 0, r;
1627
1627
  }
@@ -1673,11 +1673,11 @@ const Va = Object.freeze({}), dy = 30, fy = [["keydown", function(c, t) {
1673
1673
  return oa && l && od(a);
1674
1674
  }(n, o) ? (c.preventDefault(), bn(t, Ks, !1)) : function(a, l, i, u) {
1675
1675
  return a.toLowerCase() === "b" && !l && fd(i, u);
1676
- }(n, r, o, s) ? (c.preventDefault(), bn(t, ei, "bold")) : function(a, l, i, u) {
1676
+ }(n, r, o, s) ? (c.preventDefault(), bn(t, ti, "bold")) : function(a, l, i, u) {
1677
1677
  return a.toLowerCase() === "u" && !l && fd(i, u);
1678
- }(n, r, o, s) ? (c.preventDefault(), bn(t, ei, "underline")) : function(a, l, i, u) {
1678
+ }(n, r, o, s) ? (c.preventDefault(), bn(t, ti, "underline")) : function(a, l, i, u) {
1679
1679
  return a.toLowerCase() === "i" && !l && fd(i, u);
1680
- }(n, r, o, s) ? (c.preventDefault(), bn(t, ei, "italic")) : function(a, l, i, u) {
1680
+ }(n, r, o, s) ? (c.preventDefault(), bn(t, ti, "italic")) : function(a, l, i, u) {
1681
1681
  return a === "Tab" && !l && !i && !u;
1682
1682
  }(n, r, s, o) ? bn(t, Th, c) : function(a, l, i, u) {
1683
1683
  return a.toLowerCase() === "z" && !l && fd(i, u);
@@ -1721,7 +1721,7 @@ const Va = Object.freeze({}), dy = 30, fy = [["keydown", function(c, t) {
1721
1721
  Vs && u > 1 && c.inputType === "insertCompositionText" && !t.isComposing() && (n.anchor.offset -= u), c0 || Ah || u0 || !t.isComposing() || (xd = 0, Fo(null));
1722
1722
  } else
1723
1723
  S0(!1, t, e !== null ? e : void 0), id && (ym(t, e || void 0), id = !1);
1724
- ti(), dw(Yr());
1724
+ ni(), dw(Yr());
1725
1725
  }), Ic = null;
1726
1726
  }], ["click", function(c, t) {
1727
1727
  Pi(t, () => {
@@ -1825,16 +1825,16 @@ $p && fy.push(["beforeinput", (c, t) => function(n, e) {
1825
1825
  bn(e, Ks, !1);
1826
1826
  break;
1827
1827
  case "formatStrikeThrough":
1828
- bn(e, ei, "strikethrough");
1828
+ bn(e, ti, "strikethrough");
1829
1829
  break;
1830
1830
  case "formatBold":
1831
- bn(e, ei, "bold");
1831
+ bn(e, ti, "bold");
1832
1832
  break;
1833
1833
  case "formatItalic":
1834
- bn(e, ei, "italic");
1834
+ bn(e, ti, "italic");
1835
1835
  break;
1836
1836
  case "formatUnderline":
1837
- bn(e, ei, "underline");
1837
+ bn(e, ti, "underline");
1838
1838
  break;
1839
1839
  case "historyUndo":
1840
1840
  bn(e, ru, void 0);
@@ -1973,7 +1973,7 @@ function ZT(c) {
1973
1973
  c.__lexicalEventHandles = [];
1974
1974
  }
1975
1975
  function gy(c, t, n) {
1976
- ti();
1976
+ ni();
1977
1977
  const e = c.__key, s = c.getParent();
1978
1978
  if (s === null)
1979
1979
  return;
@@ -2202,12 +2202,12 @@ class Lh {
2202
2202
  return t === null && fn(113), t;
2203
2203
  }
2204
2204
  getWritable() {
2205
- ti();
2205
+ ni();
2206
2206
  const t = Ra(), n = Yr(), e = t._nodeMap, s = this.__key, o = this.getLatest(), r = o.__parent, a = n._cloneNotNeeded, l = jt();
2207
2207
  if (l !== null && l.setCachedNodes(null), a.has(s))
2208
2208
  return Jp(o), o;
2209
2209
  const i = o.constructor.clone(o);
2210
- return i.__parent = r, i.__next = o.__next, i.__prev = o.__prev, kt(o) && kt(i) ? (Rr(o) && Rr(i) && (i.__textFormat = o.__textFormat), i.__first = o.__first, i.__last = o.__last, i.__size = o.__size, i.__indent = o.__indent, i.__format = o.__format, i.__dir = o.__dir) : Kt(o) && Kt(i) && (i.__format = o.__format, i.__style = o.__style, i.__mode = o.__mode, i.__detail = o.__detail), a.add(s), i.__key = s, Jp(i), e.set(s, i), i;
2210
+ return i.__parent = r, i.__next = o.__next, i.__prev = o.__prev, kt(o) && kt(i) ? (Ir(o) && Ir(i) && (i.__textFormat = o.__textFormat), i.__first = o.__first, i.__last = o.__last, i.__size = o.__size, i.__indent = o.__indent, i.__format = o.__format, i.__dir = o.__dir) : Kt(o) && Kt(i) && (i.__format = o.__format, i.__style = o.__style, i.__mode = o.__mode, i.__detail = o.__detail), a.add(s), i.__key = s, Jp(i), e.set(s, i), i;
2211
2211
  }
2212
2212
  getTextContent() {
2213
2213
  return "";
@@ -2237,7 +2237,7 @@ class Lh {
2237
2237
  gy(this, !0, t);
2238
2238
  }
2239
2239
  replace(t, n) {
2240
- ti();
2240
+ ni();
2241
2241
  let e = jt();
2242
2242
  e !== null && (e = e.clone()), pm(this, t);
2243
2243
  const s = this.getLatest(), o = this.__key, r = t.__key, a = t.getWritable(), l = this.getParentOrThrow().getWritable(), i = l.__size;
@@ -2253,7 +2253,7 @@ class Lh {
2253
2253
  return Us() === o && Fo(r), a;
2254
2254
  }
2255
2255
  insertAfter(t, n = !0) {
2256
- ti(), pm(this, t);
2256
+ ni(), pm(this, t);
2257
2257
  const e = this.getWritable(), s = t.getWritable(), o = s.getParent(), r = jt();
2258
2258
  let a = !1, l = !1;
2259
2259
  if (o !== null) {
@@ -2273,7 +2273,7 @@ class Lh {
2273
2273
  return t;
2274
2274
  }
2275
2275
  insertBefore(t, n = !0) {
2276
- ti(), pm(this, t);
2276
+ ni(), pm(this, t);
2277
2277
  const e = this.getWritable(), s = t.getWritable(), o = s.__key;
2278
2278
  Nl(s);
2279
2279
  const r = this.getPreviousSibling(), a = this.getParentOrThrow().getWritable(), l = e.__prev, i = this.getIndexWithinParent();
@@ -2294,7 +2294,7 @@ class Lh {
2294
2294
  return this.selectNext(0, 0);
2295
2295
  }
2296
2296
  selectPrevious(t, n) {
2297
- ti();
2297
+ ni();
2298
2298
  const e = this.getPreviousSibling(), s = this.getParentOrThrow();
2299
2299
  if (e === null)
2300
2300
  return s.select(0, 0);
@@ -2307,7 +2307,7 @@ class Lh {
2307
2307
  return e.select(t, n);
2308
2308
  }
2309
2309
  selectNext(t, n) {
2310
- ti();
2310
+ ni();
2311
2311
  const e = this.getNextSibling(), s = this.getParentOrThrow();
2312
2312
  if (e === null)
2313
2313
  return s.select();
@@ -2368,7 +2368,7 @@ function QT(c) {
2368
2368
  return { node: fa() };
2369
2369
  }
2370
2370
  function fa() {
2371
- return Ir(new gu());
2371
+ return Pr(new gu());
2372
2372
  }
2373
2373
  function Aa(c) {
2374
2374
  return c instanceof gu;
@@ -2515,7 +2515,7 @@ class ao extends Lh {
2515
2515
  return { "#text": () => ({ conversion: nk, priority: 0 }), b: () => ({ conversion: ek, priority: 0 }), code: () => ({ conversion: Is, priority: 0 }), em: () => ({ conversion: Is, priority: 0 }), i: () => ({ conversion: Is, priority: 0 }), s: () => ({ conversion: Is, priority: 0 }), span: () => ({ conversion: XT, priority: 0 }), strong: () => ({ conversion: Is, priority: 0 }), sub: () => ({ conversion: Is, priority: 0 }), sup: () => ({ conversion: Is, priority: 0 }), u: () => ({ conversion: Is, priority: 0 }) };
2516
2516
  }
2517
2517
  static importJSON(t) {
2518
- const n = ar(t.text);
2518
+ const n = sr(t.text);
2519
2519
  return n.setFormat(t.format), n.setDetail(t.detail), n.setMode(t.mode), n.setStyle(t.style), n;
2520
2520
  }
2521
2521
  exportDOM(t) {
@@ -2565,7 +2565,7 @@ class ao extends Lh {
2565
2565
  return n.__text = t, n;
2566
2566
  }
2567
2567
  select(t, n) {
2568
- ti();
2568
+ ni();
2569
2569
  let e = t, s = n;
2570
2570
  const o = jt(), r = this.getTextContent(), a = this.__key;
2571
2571
  if (typeof r == "string") {
@@ -2607,7 +2607,7 @@ class ao extends Lh {
2607
2607
  return !0;
2608
2608
  }
2609
2609
  splitText(...t) {
2610
- ti();
2610
+ ni();
2611
2611
  const n = this.getLatest(), e = n.getTextContent(), s = n.__key, o = Us(), r = new Set(t), a = [], l = e.length;
2612
2612
  let i = "";
2613
2613
  for (let y = 0; y < l; y++)
@@ -2622,11 +2622,11 @@ class ao extends Lh {
2622
2622
  let p;
2623
2623
  const h = n.getFormat(), m = n.getStyle(), g = n.__detail;
2624
2624
  let v = !1;
2625
- n.isSegmented() ? (p = ar(f), p.__format = h, p.__style = m, p.__detail = g, v = !0) : (p = n.getWritable(), p.__text = f);
2625
+ n.isSegmented() ? (p = sr(f), p.__format = h, p.__style = m, p.__detail = g, v = !0) : (p = n.getWritable(), p.__text = f);
2626
2626
  const b = jt(), _ = [p];
2627
2627
  let E = f.length;
2628
2628
  for (let y = 1; y < u; y++) {
2629
- const S = a[y], C = S.length, O = ar(S).getWritable();
2629
+ const S = a[y], C = S.length, O = sr(S).getWritable();
2630
2630
  O.__format = h, O.__style = m, O.__detail = g;
2631
2631
  const F = O.__key, B = E + C;
2632
2632
  if (Tt(b)) {
@@ -2691,7 +2691,7 @@ function nk(c) {
2691
2691
  const a = e[r];
2692
2692
  a === `
2693
2693
  ` || a === `\r
2694
- ` ? s.push(fa()) : a === " " ? s.push(mu()) : a !== "" && s.push(ar(a));
2694
+ ` ? s.push(fa()) : a === " " ? s.push(mu()) : a !== "" && s.push(sr(a));
2695
2695
  }
2696
2696
  return { node: s };
2697
2697
  }
@@ -2717,7 +2717,7 @@ function nk(c) {
2717
2717
  }
2718
2718
  s && (n = n.slice(0, n.length - 1));
2719
2719
  }
2720
- return n === "" ? { node: null } : { node: ar(n) };
2720
+ return n === "" ? { node: null } : { node: sr(n) };
2721
2721
  }
2722
2722
  function Xv(c, t) {
2723
2723
  let n = c;
@@ -2748,8 +2748,8 @@ function Is(c) {
2748
2748
  const t = rk[c.nodeName.toLowerCase()];
2749
2749
  return t === void 0 ? { node: null } : { forChild: k0(c.style, t), node: null };
2750
2750
  }
2751
- function ar(c = "") {
2752
- return Ir(new ao(c));
2751
+ function sr(c = "") {
2752
+ return Pr(new ao(c));
2753
2753
  }
2754
2754
  function Kt(c) {
2755
2755
  return c instanceof ao;
@@ -2796,7 +2796,7 @@ class nf extends ao {
2796
2796
  }
2797
2797
  }
2798
2798
  function mu() {
2799
- return Ir(new nf());
2799
+ return Pr(new nf());
2800
2800
  }
2801
2801
  function O0(c) {
2802
2802
  return c instanceof nf;
@@ -3025,7 +3025,7 @@ class rl {
3025
3025
  const r = n[o];
3026
3026
  r === `
3027
3027
  ` || r === `\r
3028
- ` ? e.push(fa()) : r === " " ? e.push(mu()) : e.push(ar(r));
3028
+ ` ? e.push(fa()) : r === " " ? e.push(mu()) : e.push(sr(r));
3029
3029
  }
3030
3030
  this.insertNodes(e);
3031
3031
  }
@@ -3033,7 +3033,7 @@ class rl {
3033
3033
  const n = this.anchor, e = this.focus, s = this.format, o = this.style;
3034
3034
  let r = n, a = e;
3035
3035
  !this.isCollapsed() && e.isBefore(n) && (r = e, a = n), r.type === "element" && function(g, v, b, _) {
3036
- const E = g.getNode(), w = E.getChildAtIndex(g.offset), x = ar(), y = Vo(E) ? Tn().append(x) : x;
3036
+ const E = g.getNode(), w = E.getChildAtIndex(g.offset), x = sr(), y = Vo(E) ? Tn().append(x) : x;
3037
3037
  x.setFormat(b), x.setStyle(_), w === null ? E.append(y) : w.insertBefore(y), g.is(v) && v.set(x.__key, 0, "text"), g.set(x.__key, 0, "text");
3038
3038
  }(r, a, s, o);
3039
3039
  const l = r.offset;
@@ -3045,14 +3045,14 @@ class rl {
3045
3045
  let m = u[f - 1];
3046
3046
  if (f === 1 && a.type === "element" && (i = p, a.set(r.key, i, "text")), this.isCollapsed() && l === p && (d.isSegmented() || d.isToken() || !d.canInsertTextAfter() || !h.canInsertTextAfter() && d.getNextSibling() === null)) {
3047
3047
  let g = d.getNextSibling();
3048
- if (Kt(g) && g.canInsertTextBefore() && !Ac(g) || (g = ar(), g.setFormat(s), g.setStyle(o), h.canInsertTextAfter() ? d.insertAfter(g) : h.insertAfter(g)), g.select(0, 0), d = g, t !== "")
3048
+ if (Kt(g) && g.canInsertTextBefore() && !Ac(g) || (g = sr(), g.setFormat(s), g.setStyle(o), h.canInsertTextAfter() ? d.insertAfter(g) : h.insertAfter(g)), g.select(0, 0), d = g, t !== "")
3049
3049
  return void this.insertText(t);
3050
3050
  } else if (this.isCollapsed() && l === 0 && (d.isSegmented() || d.isToken() || !d.canInsertTextBefore() || !h.canInsertTextBefore() && d.getPreviousSibling() === null)) {
3051
3051
  let g = d.getPreviousSibling();
3052
- if (Kt(g) && !Ac(g) || (g = ar(), g.setFormat(s), h.canInsertTextBefore() ? d.insertBefore(g) : h.insertBefore(g)), g.select(), d = g, t !== "")
3052
+ if (Kt(g) && !Ac(g) || (g = sr(), g.setFormat(s), h.canInsertTextBefore() ? d.insertBefore(g) : h.insertBefore(g)), g.select(), d = g, t !== "")
3053
3053
  return void this.insertText(t);
3054
3054
  } else if (d.isSegmented() && l !== p) {
3055
- const g = ar(d.getTextContent());
3055
+ const g = sr(d.getTextContent());
3056
3056
  g.setFormat(s), d.replace(g), d = g;
3057
3057
  } else if (!this.isCollapsed() && t !== "") {
3058
3058
  const g = m.getParent();
@@ -3061,18 +3061,18 @@ class rl {
3061
3061
  }
3062
3062
  if (f === 1) {
3063
3063
  if (d.isToken()) {
3064
- const _ = ar(t);
3064
+ const _ = sr(t);
3065
3065
  return _.select(), void d.replace(_);
3066
3066
  }
3067
3067
  const g = d.getFormat(), v = d.getStyle();
3068
3068
  if (l !== i || g === s && v === o) {
3069
3069
  if (O0(d)) {
3070
- const _ = ar(t);
3070
+ const _ = sr(t);
3071
3071
  return _.setFormat(s), _.setStyle(o), _.select(), void d.replace(_);
3072
3072
  }
3073
3073
  } else {
3074
3074
  if (d.getTextContent() !== "") {
3075
- const _ = ar(t);
3075
+ const _ = sr(t);
3076
3076
  if (_.setFormat(s), _.setStyle(o), _.select(), l === 0)
3077
3077
  d.insertBefore(_, !1);
3078
3078
  else {
@@ -3095,7 +3095,7 @@ class rl {
3095
3095
  if (a.type === "text" && (i !== 0 || m.getTextContent() === "") || a.type === "element" && m.getIndexWithinParent() < i)
3096
3096
  if (Kt(m) && !m.isToken() && i !== m.getTextContentSize()) {
3097
3097
  if (m.isSegmented()) {
3098
- const S = ar(m.getTextContent());
3098
+ const S = sr(m.getTextContent());
3099
3099
  m.replace(S), m = S;
3100
3100
  }
3101
3101
  Vo(a.getNode()) || a.type !== "text" || (m = m.spliceText(0, i, "")), g.add(m.__key);
@@ -3123,7 +3123,7 @@ class rl {
3123
3123
  if (l === p)
3124
3124
  d.select();
3125
3125
  else {
3126
- const S = ar(t);
3126
+ const S = sr(t);
3127
3127
  S.select(), d.replace(S);
3128
3128
  }
3129
3129
  else
@@ -3719,7 +3719,7 @@ const s1 = { characterData: !0, childList: !0, subtree: !0 };
3719
3719
  function bu() {
3720
3720
  return vi || ko !== null && ko._readOnly;
3721
3721
  }
3722
- function ti() {
3722
+ function ni() {
3723
3723
  vi && fn(13);
3724
3724
  }
3725
3725
  function Hw() {
@@ -4137,7 +4137,7 @@ class Vr extends Lh {
4137
4137
  return !1;
4138
4138
  }
4139
4139
  select(t, n) {
4140
- ti();
4140
+ ni();
4141
4141
  const e = jt();
4142
4142
  let s = t, o = n;
4143
4143
  const r = this.getChildrenSize();
@@ -4482,9 +4482,9 @@ function uk(c) {
4482
4482
  return { node: t };
4483
4483
  }
4484
4484
  function Tn() {
4485
- return Ir(new il());
4485
+ return Pr(new il());
4486
4486
  }
4487
- function Rr(c) {
4487
+ function Ir(c) {
4488
4488
  return c instanceof il;
4489
4489
  }
4490
4490
  const jn = 0, Dr = 1, dk = 2, Ii = 3, Jo = 4;
@@ -4854,7 +4854,7 @@ function Xw(c) {
4854
4854
  const t = c.constructor.clone(c);
4855
4855
  return t.__parent = c.__parent, t.__next = c.__next, t.__prev = c.__prev, kt(c) && kt(t) ? (e = c, (n = t).__first = e.__first, n.__last = e.__last, n.__size = e.__size, n.__format = e.__format, n.__indent = e.__indent, n.__dir = e.__dir, n) : Kt(c) && Kt(t) ? function(s, o) {
4856
4856
  return s.__format = o.__format, s.__style = o.__style, s.__mode = o.__mode, s.__detail = o.__detail, s;
4857
- }(t, c) : Rr(c) && Rr(t) ? function(s, o) {
4857
+ }(t, c) : Ir(c) && Ir(t) ? function(s, o) {
4858
4858
  return s.__textFormat = o.__textFormat, s;
4859
4859
  }(t, c) : t;
4860
4860
  var n, e;
@@ -8025,7 +8025,7 @@ let R0 = class fS extends Vr {
8025
8025
  }
8026
8026
  };
8027
8027
  function rf(c) {
8028
- return Ir(new R0(c));
8028
+ return Pr(new R0(c));
8029
8029
  }
8030
8030
  function xy(c) {
8031
8031
  return c instanceof R0;
@@ -8110,7 +8110,7 @@ function Cm(c, t) {
8110
8110
  return t && c && c.codeHighlight && c.codeHighlight[t];
8111
8111
  }
8112
8112
  function gS(c, t) {
8113
- return Ir(new of(c, t));
8113
+ return Pr(new of(c, t));
8114
8114
  }
8115
8115
  function mS(c) {
8116
8116
  return c instanceof of;
@@ -8150,7 +8150,7 @@ let ih = class yS extends ao {
8150
8150
  }
8151
8151
  };
8152
8152
  function bS(c = "") {
8153
- return Ir(new ih(c));
8153
+ return Pr(new ih(c));
8154
8154
  }
8155
8155
  const Lk = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "sms:", "tel:"]);
8156
8156
  let xu = class vS extends Vr {
@@ -8252,7 +8252,7 @@ function Fk(c) {
8252
8252
  return { node: t };
8253
8253
  }
8254
8254
  function Rd(c, t) {
8255
- return Ir(new xu(c, t));
8255
+ return Pr(new xu(c, t));
8256
8256
  }
8257
8257
  function Mi(c) {
8258
8258
  return c instanceof xu;
@@ -8300,7 +8300,7 @@ let af = class _S extends xu {
8300
8300
  }
8301
8301
  };
8302
8302
  function wy(c, t) {
8303
- return Ir(new af(c, t));
8303
+ return Pr(new af(c, t));
8304
8304
  }
8305
8305
  function Pc(c) {
8306
8306
  return c instanceof af;
@@ -8414,7 +8414,7 @@ function C1(c, t) {
8414
8414
  o === null && Xa(143);
8415
8415
  const [r] = o, a = r.getNode(), l = a.getParent();
8416
8416
  if (wS(a, e)) {
8417
- const i = Go(t);
8417
+ const i = Yo(t);
8418
8418
  if (so(l)) {
8419
8419
  a.replace(i);
8420
8420
  const u = ii();
@@ -8436,7 +8436,7 @@ function C1(c, t) {
8436
8436
  const l = a.getKey();
8437
8437
  if (ur(a)) {
8438
8438
  if (!s.has(l)) {
8439
- const i = Go(t);
8439
+ const i = Yo(t);
8440
8440
  ql(i, a.getChildren()), a.replace(i), s.add(l);
8441
8441
  }
8442
8442
  break;
@@ -8469,7 +8469,7 @@ function T1(c, t) {
8469
8469
  if (ur(e) && t === e.getListType())
8470
8470
  return e.getFirstChildOrThrow().insertBefore(s), c.remove(), e;
8471
8471
  {
8472
- const o = Go(t);
8472
+ const o = Yo(t);
8473
8473
  return o.append(s), c.replace(o), o;
8474
8474
  }
8475
8475
  }
@@ -8528,7 +8528,7 @@ function $k(c) {
8528
8528
  const o = s.getFirstChild();
8529
8529
  ur(o) && o.append(c);
8530
8530
  } else if (ur(n)) {
8531
- const o = ii(), r = Go(n.getListType());
8531
+ const o = ii(), r = Yo(n.getListType());
8532
8532
  o.append(r), r.append(c), s ? s.insertAfter(o) : e ? e.insertBefore(o) : n.append(o);
8533
8533
  }
8534
8534
  }
@@ -8543,9 +8543,9 @@ function Uk(c) {
8543
8543
  else if (c.is(s))
8544
8544
  n.insertAfter(c), t.isEmpty() && n.remove();
8545
8545
  else {
8546
- const o = t.getListType(), r = ii(), a = Go(o);
8546
+ const o = t.getListType(), r = ii(), a = Yo(o);
8547
8547
  r.append(a), c.getPreviousSiblings().forEach((u) => a.append(u));
8548
- const l = ii(), i = Go(o);
8548
+ const l = ii(), i = Yo(o);
8549
8549
  l.append(i), ql(i, c.getNextSiblings()), n.insertBefore(r), n.insertAfter(l), n.replace(c);
8550
8550
  }
8551
8551
  }
@@ -8571,8 +8571,8 @@ function Hk() {
8571
8571
  o.select();
8572
8572
  const r = t.getNextSiblings();
8573
8573
  if (r.length > 0) {
8574
- const a = Go(e.getListType());
8575
- if (Rr(o))
8574
+ const a = Yo(e.getListType());
8575
+ if (Ir(o))
8576
8576
  o.insertAfter(a);
8577
8577
  else {
8578
8578
  const l = ii();
@@ -8664,7 +8664,7 @@ let sf = class SS extends Vr {
8664
8664
  else if (e.__last === this.getKey())
8665
8665
  e.insertAfter(t);
8666
8666
  else {
8667
- const s = Go(e.getListType());
8667
+ const s = Yo(e.getListType());
8668
8668
  let o = this.getNextSibling();
8669
8669
  for (; o; ) {
8670
8670
  const r = o;
@@ -8682,7 +8682,7 @@ let sf = class SS extends Vr {
8682
8682
  return super.insertAfter(t, n);
8683
8683
  const s = this.getNextSiblings();
8684
8684
  if (e.insertAfter(t, n), s.length !== 0) {
8685
- const o = Go(e.getListType());
8685
+ const o = Yo(e.getListType());
8686
8686
  s.forEach((r) => o.append(r)), t.insertAfter(o, n);
8687
8687
  }
8688
8688
  return t;
@@ -8749,7 +8749,7 @@ let sf = class SS extends Vr {
8749
8749
  return Gr(t);
8750
8750
  }
8751
8751
  canMergeWith(t) {
8752
- return Rr(t) || Gr(t);
8752
+ return Ir(t) || Gr(t);
8753
8753
  }
8754
8754
  extractWithChild(t, n) {
8755
8755
  if (!Tt(n))
@@ -8761,7 +8761,7 @@ let sf = class SS extends Vr {
8761
8761
  return !0;
8762
8762
  }
8763
8763
  createParentElementNode() {
8764
- return Go("bullet");
8764
+ return Yo("bullet");
8765
8765
  }
8766
8766
  };
8767
8767
  function k1(c, t, n) {
@@ -8793,7 +8793,7 @@ function Wk(c) {
8793
8793
  return c.getAttribute("type") !== "checkbox" ? { node: null } : { node: ii(c.hasAttribute("checked")) };
8794
8794
  }
8795
8795
  function ii(c) {
8796
- return Ir(new sf(void 0, c));
8796
+ return Pr(new sf(void 0, c));
8797
8797
  }
8798
8798
  function Gr(c) {
8799
8799
  return c instanceof sf;
@@ -8848,7 +8848,7 @@ let lf = class ES extends Vr {
8848
8848
  return { ol: () => ({ conversion: A1, priority: 0 }), ul: () => ({ conversion: A1, priority: 0 }) };
8849
8849
  }
8850
8850
  static importJSON(t) {
8851
- const n = Go(t.listType, t.start);
8851
+ const n = Yo(t.listType, t.start);
8852
8852
  return n.setFormat(t.format), n.setIndent(t.indent), n.setDirection(t.direction), n;
8853
8853
  }
8854
8854
  exportDOM(t) {
@@ -8874,7 +8874,7 @@ let lf = class ES extends Vr {
8874
8874
  if (ur(e))
8875
8875
  s.append(e);
8876
8876
  else if (kt(e)) {
8877
- const o = ar(e.getTextContent());
8877
+ const o = sr(e.getTextContent());
8878
8878
  s.append(o);
8879
8879
  } else
8880
8880
  s.append(e);
@@ -8923,18 +8923,18 @@ function Jk(c) {
8923
8923
  function A1(c) {
8924
8924
  const t = c.nodeName.toLowerCase();
8925
8925
  let n = null;
8926
- return t === "ol" ? n = Go("number", c.start) : t === "ul" && (n = function(e) {
8926
+ return t === "ol" ? n = Yo("number", c.start) : t === "ul" && (n = function(e) {
8927
8927
  if (e.getAttribute("__lexicallisttype") === "check" || e.classList.contains("contains-task-list"))
8928
8928
  return !0;
8929
8929
  for (const s of e.childNodes)
8930
8930
  if (Gi(s) && s.hasAttribute("aria-checked"))
8931
8931
  return !0;
8932
8932
  return !1;
8933
- }(c) ? Go("check") : Go("bullet")), { after: Jk, node: n };
8933
+ }(c) ? Yo("check") : Yo("bullet")), { after: Jk, node: n };
8934
8934
  }
8935
8935
  const j1 = { ol: "number", ul: "bullet" };
8936
- function Go(c, t = 1) {
8937
- return Ir(new lf(c, t));
8936
+ function Yo(c, t = 1) {
8937
+ return Pr(new lf(c, t));
8938
8938
  }
8939
8939
  function ur(c) {
8940
8940
  return c instanceof lf;
@@ -8974,7 +8974,7 @@ let OS = class NS extends Vr {
8974
8974
  }
8975
8975
  };
8976
8976
  function Vk() {
8977
- return Ir(new OS());
8977
+ return Pr(new OS());
8978
8978
  }
8979
8979
  function I1(c, t) {
8980
8980
  return c.getEditorState().read(() => {
@@ -9063,7 +9063,7 @@ function Gk() {
9063
9063
  return { node: jS() };
9064
9064
  }
9065
9065
  function jS() {
9066
- return Ir(new F0());
9066
+ return Pr(new F0());
9067
9067
  }
9068
9068
  function Yk(c) {
9069
9069
  return c instanceof F0;
@@ -9130,7 +9130,7 @@ class qh extends Vr {
9130
9130
  }
9131
9131
  }
9132
9132
  function PS() {
9133
- return Ir(new qh());
9133
+ return Pr(new qh());
9134
9134
  }
9135
9135
  function P1(c, t) {
9136
9136
  return `${t || "56"}-${Math.floor(Math.random() * 1e3) + 1}`;
@@ -9347,7 +9347,7 @@ function Zk(c) {
9347
9347
  return c.style !== null && (t.setFormat(c.style.textAlign), IS(c, t)), { node: t };
9348
9348
  }
9349
9349
  function kl(c = "h1", t) {
9350
- return Ir(new Wh(c, void 0, t));
9350
+ return Pr(new Wh(c, void 0, t));
9351
9351
  }
9352
9352
  const MS = /^(\d+(?:\.\d+)?)px$/, Hr = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 };
9353
9353
  class da extends Vr {
@@ -9463,7 +9463,7 @@ function R1(c) {
9463
9463
  }, node: s };
9464
9464
  }
9465
9465
  function Di(c, t = 1, n) {
9466
- return Ir(new da(c, t, n));
9466
+ return Pr(new da(c, t, n));
9467
9467
  }
9468
9468
  function xn(c) {
9469
9469
  return c instanceof da;
@@ -9517,7 +9517,7 @@ function Xk(c) {
9517
9517
  return MS.test(t.style.height) && (n = parseFloat(t.style.height)), { node: Wl(n) };
9518
9518
  }
9519
9519
  function Wl(c) {
9520
- return Ir(new Ql(c));
9520
+ return Pr(new Ql(c));
9521
9521
  }
9522
9522
  function Lr(c) {
9523
9523
  return c instanceof Ql;
@@ -9541,7 +9541,7 @@ function Cy(c, t, n = !0) {
9541
9541
  let a = Hr.NO_STATUS;
9542
9542
  typeof n == "object" ? (s === 0 && n.rows && (a |= Hr.ROW), r === 0 && n.columns && (a |= Hr.COLUMN)) : n && (s === 0 && (a |= Hr.ROW), r === 0 && (a |= Hr.COLUMN));
9543
9543
  const l = Di(a), i = Tn();
9544
- i.append(ar()), l.append(i), o.append(l);
9544
+ i.append(sr()), l.append(i), o.append(l);
9545
9545
  }
9546
9546
  e.append(o);
9547
9547
  }
@@ -10077,7 +10077,7 @@ class cO {
10077
10077
  const s = e.getNodes().filter(xn);
10078
10078
  s.length !== this.table.columns * this.table.rows ? (s.forEach((o) => {
10079
10079
  if (kt(o)) {
10080
- const r = Tn(), a = ar();
10080
+ const r = Tn(), a = sr();
10081
10081
  r.append(a), o.append(r), o.getChildren().forEach((l) => {
10082
10082
  l !== r && l.remove();
10083
10083
  });
@@ -10184,7 +10184,7 @@ function uO(c, t, n, e) {
10184
10184
  const d = c.getCordsFromCellNode(f, o.table);
10185
10185
  return c.getDOMCellFromCordsOrThrow(d.x, d.y, o.table);
10186
10186
  }
10187
- return o.listenersToRemove.add(n.registerCommand(el, i, Jo)), o.listenersToRemove.add(n.registerCommand(tl, i, Jo)), o.listenersToRemove.add(n.registerCommand(ei, (f) => {
10187
+ return o.listenersToRemove.add(n.registerCommand(el, i, Jo)), o.listenersToRemove.add(n.registerCommand(tl, i, Jo)), o.listenersToRemove.add(n.registerCommand(ti, (f) => {
10188
10188
  const d = jt();
10189
10189
  if (!Ls(d, c))
10190
10190
  return !1;
@@ -10228,7 +10228,7 @@ function uO(c, t, n, e) {
10228
10228
  if (typeof f == "string") {
10229
10229
  const h = B1(n, d, c);
10230
10230
  if (h)
10231
- return F1(h, c, [ar(f)]), !0;
10231
+ return F1(h, c, [sr(f)]), !0;
10232
10232
  }
10233
10233
  }
10234
10234
  return !1;
@@ -10721,7 +10721,7 @@ function pO(c) {
10721
10721
  return { node: Vh() };
10722
10722
  }
10723
10723
  function Vh() {
10724
- return Ir(new Oa());
10724
+ return Pr(new Oa());
10725
10725
  }
10726
10726
  function pr(c) {
10727
10727
  return c instanceof Oa;
@@ -10955,7 +10955,7 @@ class df extends ao {
10955
10955
  }
10956
10956
  function JS(c, t) {
10957
10957
  const n = new df(c, t).setMode("token");
10958
- return Ir(n);
10958
+ return Pr(n);
10959
10959
  }
10960
10960
  let U0 = class extends ss {
10961
10961
  constructor(t, n) {
@@ -11085,7 +11085,7 @@ class Gh extends U0 {
11085
11085
  function _O(c) {
11086
11086
  return new Gh(c);
11087
11087
  }
11088
- const xO = sr.lazy(() => import("./ImageComponent-9e3f6ef6.js"));
11088
+ const xO = ar.lazy(() => import("./ImageComponent-cd57bf51.js"));
11089
11089
  function wO(c) {
11090
11090
  const t = c;
11091
11091
  if (t.src.startsWith("file:///"))
@@ -11214,7 +11214,7 @@ function au({
11214
11214
  caption: a,
11215
11215
  key: l
11216
11216
  }) {
11217
- return Ir(
11217
+ return Pr(
11218
11218
  new wu(
11219
11219
  s,
11220
11220
  c,
@@ -11231,7 +11231,7 @@ function au({
11231
11231
  function Yh(c) {
11232
11232
  return c instanceof wu;
11233
11233
  }
11234
- const SO = sr.lazy(() => import("./InlineImageComponent-50f422ba.js"));
11234
+ const SO = ar.lazy(() => import("./InlineImageComponent-64e6f0d7.js"));
11235
11235
  function EO(c) {
11236
11236
  if (c instanceof HTMLImageElement) {
11237
11237
  const { alt: t, src: n, width: e, height: s } = c;
@@ -11373,7 +11373,7 @@ function KS({
11373
11373
  caption: r,
11374
11374
  key: a
11375
11375
  }) {
11376
- return Ir(
11376
+ return Pr(
11377
11377
  new ff(
11378
11378
  e,
11379
11379
  c,
@@ -11581,7 +11581,7 @@ class pf extends ao {
11581
11581
  }
11582
11582
  function H0(c) {
11583
11583
  const t = new pf(c);
11584
- return t.setMode("segmented").toggleDirectionless(), Ir(t);
11584
+ return t.setMode("segmented").toggleDirectionless(), Pr(t);
11585
11585
  }
11586
11586
  var ZS = { exports: {} };
11587
11587
  /*!
@@ -14343,7 +14343,7 @@ var ZS = { exports: {} };
14343
14343
  ], function() {
14344
14344
  y.propFix[this.toLowerCase()] = this;
14345
14345
  });
14346
- function Yo(H) {
14346
+ function Zo(H) {
14347
14347
  var Q = H.match(Z) || [];
14348
14348
  return Q.join(" ");
14349
14349
  }
@@ -14359,10 +14359,10 @@ var ZS = { exports: {} };
14359
14359
  return m(H) ? this.each(function(tt) {
14360
14360
  y(this).addClass(H.call(this, tt, co(this)));
14361
14361
  }) : (Q = ai(H), Q.length ? this.each(function() {
14362
- if (se = co(this), te = this.nodeType === 1 && " " + Yo(se) + " ", te) {
14362
+ if (se = co(this), te = this.nodeType === 1 && " " + Zo(se) + " ", te) {
14363
14363
  for (be = 0; be < Q.length; be++)
14364
14364
  me = Q[be], te.indexOf(" " + me + " ") < 0 && (te += me + " ");
14365
- Ne = Yo(te), se !== Ne && this.setAttribute("class", Ne);
14365
+ Ne = Zo(te), se !== Ne && this.setAttribute("class", Ne);
14366
14366
  }
14367
14367
  }) : this);
14368
14368
  },
@@ -14371,11 +14371,11 @@ var ZS = { exports: {} };
14371
14371
  return m(H) ? this.each(function(tt) {
14372
14372
  y(this).removeClass(H.call(this, tt, co(this)));
14373
14373
  }) : arguments.length ? (Q = ai(H), Q.length ? this.each(function() {
14374
- if (se = co(this), te = this.nodeType === 1 && " " + Yo(se) + " ", te) {
14374
+ if (se = co(this), te = this.nodeType === 1 && " " + Zo(se) + " ", te) {
14375
14375
  for (be = 0; be < Q.length; be++)
14376
14376
  for (me = Q[be]; te.indexOf(" " + me + " ") > -1; )
14377
14377
  te = te.replace(" " + me + " ", " ");
14378
- Ne = Yo(te), se !== Ne && this.setAttribute("class", Ne);
14378
+ Ne = Zo(te), se !== Ne && this.setAttribute("class", Ne);
14379
14379
  }
14380
14380
  }) : this) : this.attr("class", "");
14381
14381
  },
@@ -14400,7 +14400,7 @@ var ZS = { exports: {} };
14400
14400
  hasClass: function(H) {
14401
14401
  var Q, te, se = 0;
14402
14402
  for (Q = " " + H + " "; te = this[se++]; )
14403
- if (te.nodeType === 1 && (" " + Yo(co(te)) + " ").indexOf(Q) > -1)
14403
+ if (te.nodeType === 1 && (" " + Zo(co(te)) + " ").indexOf(Q) > -1)
14404
14404
  return !0;
14405
14405
  return !1;
14406
14406
  }
@@ -14425,7 +14425,7 @@ var ZS = { exports: {} };
14425
14425
  // option.text throws exceptions (trac-14686, trac-14858)
14426
14426
  // Strip and collapse whitespace
14427
14427
  // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
14428
- Yo(y.text(H));
14428
+ Zo(y.text(H));
14429
14429
  }
14430
14430
  },
14431
14431
  select: {
@@ -14513,12 +14513,12 @@ var ZS = { exports: {} };
14513
14513
  return y.event.trigger(H, Q, te, !0);
14514
14514
  }
14515
14515
  });
14516
- var Zo = /\[\]$/, Uo = /\r?\n/g, xi = /^(?:submit|button|image|reset|file)$/i, Yi = /^(?:input|select|textarea|keygen)/i;
14516
+ var Qo = /\[\]$/, Uo = /\r?\n/g, xi = /^(?:submit|button|image|reset|file)$/i, Yi = /^(?:input|select|textarea|keygen)/i;
14517
14517
  function Zi(H, Q, te, se) {
14518
14518
  var me;
14519
14519
  if (Array.isArray(Q))
14520
14520
  y.each(Q, function(be, Ne) {
14521
- te || Zo.test(H) ? se(H, Ne) : Zi(
14521
+ te || Qo.test(H) ? se(H, Ne) : Zi(
14522
14522
  H + "[" + (typeof Ne == "object" && Ne != null ? be : "") + "]",
14523
14523
  Ne,
14524
14524
  te,
@@ -15016,7 +15016,7 @@ var ZS = { exports: {} };
15016
15016
  return Q || (h.createHTMLDocument ? (Q = v.implementation.createHTMLDocument(""), se = Q.createElement("base"), se.href = v.location.href, Q.head.appendChild(se)) : Q = v), me = z.exec(H), be = !te && [], me ? [Q.createElement(me[1])] : (me = Nt([H], Q, be), be && be.length && y(be).remove(), y.merge([], me.childNodes));
15017
15017
  }, y.fn.load = function(H, Q, te) {
15018
15018
  var se, me, be, Ne = this, tt = H.indexOf(" ");
15019
- return tt > -1 && (se = Yo(H.slice(tt)), H = H.slice(0, tt)), m(Q) ? (te = Q, Q = void 0) : Q && typeof Q == "object" && (me = "POST"), Ne.length > 0 && y.ajax({
15019
+ return tt > -1 && (se = Zo(H.slice(tt)), H = H.slice(0, tt)), m(Q) ? (te = Q, Q = void 0) : Q && typeof Q == "object" && (me = "POST"), Ne.length > 0 && y.ajax({
15020
15020
  url: H,
15021
15021
  // If "type" variable is undefined, then "GET" method will be used.
15022
15022
  // Make value of this field explicit since
@@ -15358,7 +15358,7 @@ function QS(c) {
15358
15358
  function Ny(c) {
15359
15359
  return c instanceof Il;
15360
15360
  }
15361
- const IO = sr.lazy(() => import("./PollComponent-68367184.js"));
15361
+ const IO = ar.lazy(() => import("./PollComponent-9461d14e.js"));
15362
15362
  function PO() {
15363
15363
  return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
15364
15364
  }
@@ -15883,7 +15883,7 @@ function rE() {
15883
15883
  const i = l + 1;
15884
15884
  a.setNumber(i);
15885
15885
  const u = a.getContentKey(), f = er(u);
15886
- if (Rr(f)) {
15886
+ if (Ir(f)) {
15887
15887
  const d = f.getFirstChild();
15888
15888
  if (Kt(d)) {
15889
15889
  const p = d.getTextContent(), h = p.replace(/^\[[^\]]*\]/, `[${Ay(i)}]`);
@@ -15893,63 +15893,66 @@ function rE() {
15893
15893
  });
15894
15894
  });
15895
15895
  }, e = () => {
15896
+ let s = null;
15896
15897
  c.update(() => {
15897
- var v;
15898
- const s = Ln(), o = jt(), r = BO(0);
15899
- o && o.insertNodes([r]);
15900
- const a = Tn(), l = ar("[?] ");
15901
- a.append(l), s.append(a), r.setContentKey(a.getKey());
15902
- const i = [];
15903
- t(s, (b) => {
15904
- Am(b) && i.push(b);
15898
+ var b;
15899
+ const o = Ln(), r = jt(), a = BO(0);
15900
+ r && r.insertNodes([a]);
15901
+ const l = Tn(), i = sr("[?] ");
15902
+ l.append(i), o.append(l), s = l.getKey(), a.setContentKey(s);
15903
+ const u = [];
15904
+ t(o, (_) => {
15905
+ Am(_) && u.push(_);
15905
15906
  });
15906
- const f = i.map((b) => b.getContentKey()).map((b) => er(b)).filter((b) => b !== null);
15907
- f == null || f.forEach((b) => {
15908
- b && s.append(b);
15907
+ const d = u.map((_) => _.getContentKey()).map((_) => er(_)).filter((_) => _ !== null);
15908
+ d == null || d.forEach((_) => {
15909
+ _ && o.append(_);
15909
15910
  });
15910
- let d = !1;
15911
- if (s.getChildren().forEach((b) => {
15912
- if (Rr(b)) {
15913
- const _ = b.getFirstChild();
15914
- if ((_ && Nm(_) || _ && Kt(_) && _.getTextContent().includes("_______________________________")) && (d = !0, !Nm(_) && _.getTextContent().includes("_______________________________"))) {
15915
- const E = U1();
15916
- _.replace(E);
15917
- }
15918
- }
15919
- }), !d && (f == null ? void 0 : f.length) > 0) {
15920
- const b = Tn();
15921
- b.append(U1()), (v = f[0]) == null || v.insertBefore(b);
15922
- }
15923
- const p = [];
15924
- if (s.getChildren().forEach((b) => {
15925
- if (Rr(b)) {
15926
- const _ = b.getFirstChild();
15927
- (_ && Nm(_) || _ && Kt(_) && _.getTextContent().includes("_______________________________")) && p.push(b);
15928
- }
15929
- }), p.length > 1)
15930
- for (let b = 1; b < p.length; b++)
15931
- p[b].remove();
15911
+ let p = !1;
15912
+ if (o.getChildren().forEach((_) => {
15913
+ if (Ir(_)) {
15914
+ const E = _.getFirstChild();
15915
+ if ((E && Nm(E) || E && Kt(E) && E.getTextContent().includes("_______________________________")) && (p = !0, !Nm(E) && E.getTextContent().includes("_______________________________"))) {
15916
+ const w = U1();
15917
+ E.replace(w);
15918
+ }
15919
+ }
15920
+ }), !p && (d == null ? void 0 : d.length) > 0) {
15921
+ const _ = Tn();
15922
+ _.append(U1()), (b = d[0]) == null || b.insertBefore(_);
15923
+ }
15932
15924
  const h = [];
15933
- t(s, (b) => {
15934
- Am(b) && h.push(b);
15935
- }), h.forEach((b, _) => {
15936
- const E = _ + 1;
15937
- b.setNumber(E);
15938
- const w = b.getContentKey(), x = er(w);
15939
- if (Rr(x)) {
15940
- const y = x.getFirstChild();
15941
- if (Kt(y)) {
15942
- const S = y.getTextContent(), C = S.replace(/^\[[^\]]*\]/, `[${Ay(E)}]`);
15943
- C !== S && y.setTextContent(C);
15925
+ if (o.getChildren().forEach((_) => {
15926
+ if (Ir(_)) {
15927
+ const E = _.getFirstChild();
15928
+ (E && Nm(E) || E && Kt(E) && E.getTextContent().includes("_______________________________")) && h.push(_);
15929
+ }
15930
+ }), h.length > 1)
15931
+ for (let _ = 1; _ < h.length; _++)
15932
+ h[_].remove();
15933
+ const m = [];
15934
+ t(o, (_) => {
15935
+ Am(_) && m.push(_);
15936
+ }), m.forEach((_, E) => {
15937
+ const w = E + 1;
15938
+ _.setNumber(w);
15939
+ const x = _.getContentKey(), y = er(x);
15940
+ if (Ir(y)) {
15941
+ const S = y.getFirstChild();
15942
+ if (Kt(S)) {
15943
+ const C = S.getTextContent(), O = C.replace(/^\[[^\]]*\]/, `[${Ay(w)}]`);
15944
+ O !== C && S.setTextContent(O);
15944
15945
  }
15945
15946
  }
15946
15947
  });
15947
- const m = l.getTextContentSize(), g = yu();
15948
- g.anchor.set(l.getKey(), m, "text"), g.focus.set(l.getKey(), m, "text"), qr(g), setTimeout(() => {
15949
- const b = c.getElementByKey(a.getKey());
15950
- b && b.scrollIntoView({ behavior: "smooth", block: "end" });
15951
- }, 100);
15952
- });
15948
+ const g = i.getTextContentSize(), v = yu();
15949
+ v.anchor.set(i.getKey(), g, "text"), v.focus.set(i.getKey(), g, "text"), qr(v);
15950
+ }), s && setTimeout(() => {
15951
+ c.getEditorState().read(() => {
15952
+ const o = c.getElementByKey(s);
15953
+ o && o.scrollIntoView({ behavior: "smooth", block: "end" });
15954
+ });
15955
+ }, 100);
15953
15956
  };
15954
15957
  return qt(() => {
15955
15958
  const s = c.registerCommand(
@@ -16096,7 +16099,7 @@ function BO(c, t) {
16096
16099
  function Am(c) {
16097
16100
  return c instanceof Jl;
16098
16101
  }
16099
- class ri extends ao {
16102
+ class Ko extends ao {
16100
16103
  constructor(n, e, s, o) {
16101
16104
  super(n, o);
16102
16105
  Un(this, "__color");
@@ -16110,7 +16113,7 @@ class ri extends ao {
16110
16113
  return this.__id;
16111
16114
  }
16112
16115
  static clone(n) {
16113
- return new ri(n.__text, n.__color, n.__id, n.__key);
16116
+ return new Ko(n.__text, n.__color, n.__id, n.__key);
16114
16117
  }
16115
16118
  createDOM(n) {
16116
16119
  const e = super.createDOM(n);
@@ -16129,7 +16132,7 @@ class ri extends ao {
16129
16132
  };
16130
16133
  }
16131
16134
  static importJSON(n) {
16132
- return new ri(
16135
+ return new Ko(
16133
16136
  n.text,
16134
16137
  n.color,
16135
16138
  n.id
@@ -16276,7 +16279,7 @@ class ns extends Vr {
16276
16279
  }
16277
16280
  }
16278
16281
  function q0(c = oE) {
16279
- return Ir(new ns(c));
16282
+ return Pr(new ns(c));
16280
16283
  }
16281
16284
  function Ml(c) {
16282
16285
  return c instanceof ns;
@@ -16366,7 +16369,7 @@ const iE = [
16366
16369
  Qh,
16367
16370
  Ld,
16368
16371
  Jl,
16369
- ri,
16372
+ Ko,
16370
16373
  il,
16371
16374
  Pl
16372
16375
  ];
@@ -16488,7 +16491,7 @@ function qO({
16488
16491
  const g = m.map((v) => {
16489
16492
  let b = a;
16490
16493
  const _ = v.getPreviousSibling();
16491
- if (_ && Rr(_)) {
16494
+ if (_ && Ir(_)) {
16492
16495
  const E = _.getChildren().filter((w) => w.getType() === "text");
16493
16496
  E.length > 1 && (b = E[1].getTextContent());
16494
16497
  }
@@ -16509,13 +16512,13 @@ function qO({
16509
16512
  if (n) {
16510
16513
  const m = Tn();
16511
16514
  m.setFormat("left");
16512
- const b = Ln().getChildren().filter(pr).length, _ = lh(a || `Table ${h}`, b), E = new ri(
16515
+ const b = Ln().getChildren().filter(pr).length, _ = lh(a || `Table ${h}`, b), E = new Ko(
16513
16516
  `Table ${h}:`,
16514
16517
  "black",
16515
16518
  _
16516
16519
  );
16517
16520
  E.setStyle("font-weight: bold; margin-right: 8px;");
16518
- const w = a.trim() === "" ? "." : a, x = ar(w);
16521
+ const w = a.trim() === "" ? "." : a, x = sr(w);
16519
16522
  x.setStyle(
16520
16523
  a ? "color: black; font-style: italic; font-weight: bold;" : "color: gray; font-style: italic; font-weight: normal;"
16521
16524
  ), m.getChildren().forEach((O) => O.remove());
@@ -16548,23 +16551,23 @@ function qO({
16548
16551
  g.forEach((b) => {
16549
16552
  var C;
16550
16553
  const _ = b.getPreviousSibling(), x = Ln().getChildren().filter(pr).length, y = b.__captionId || lh(`Table ${v}`, x), S = b.getNextSibling();
16551
- if (S && Rr(S) && S.getChildren().forEach((O) => {
16554
+ if (S && Ir(S) && S.getChildren().forEach((O) => {
16552
16555
  O.getTextContent().startsWith("Table") && O.remove();
16553
- }), _ && Rr(_)) {
16556
+ }), _ && Ir(_)) {
16554
16557
  let O = null;
16555
16558
  if (_.getChildren().forEach((F) => {
16556
16559
  F.getTextContent().startsWith("Table") && (O = F);
16557
16560
  }), O) {
16558
16561
  const F = ((C = O.getId) == null ? void 0 : C.call(O)) || y;
16559
16562
  O.remove();
16560
- const B = new ri(
16563
+ const B = new Ko(
16561
16564
  `Table ${v}:`,
16562
16565
  "black",
16563
16566
  F
16564
16567
  ), R = _.getFirstChild();
16565
16568
  R !== null ? R.insertBefore(B) : _.append(B);
16566
16569
  } else if (n) {
16567
- const F = new ri(
16570
+ const F = new Ko(
16568
16571
  `Table ${v}:`,
16569
16572
  "black",
16570
16573
  y
@@ -16574,14 +16577,14 @@ function qO({
16574
16577
  } else {
16575
16578
  const O = `Table ${v}:`, F = Tn();
16576
16579
  F.setFormat("left");
16577
- const B = new ri(
16580
+ const B = new Ko(
16578
16581
  O,
16579
16582
  "black",
16580
16583
  y
16581
16584
  );
16582
16585
  B.setStyle("font-weight: bold; margin-right: 5px;");
16583
- const R = a.trim() === "" ? "Caption text here" : a, L = ar(R);
16584
- L.setStyle("color: black; font-style: italic; font-weight: normal;"), F.append(B), F.append(ar(" ")), F.append(L), b.insertBefore(F);
16586
+ const R = a.trim() === "" ? "Caption text here" : a, L = sr(R);
16587
+ L.setStyle("color: black; font-style: italic; font-weight: normal;"), F.append(B), F.append(sr(" ")), F.append(L), b.insertBefore(F);
16585
16588
  }
16586
16589
  v++;
16587
16590
  });
@@ -16756,7 +16759,7 @@ function WO(c) {
16756
16759
  if (_r(s))
16757
16760
  return !1;
16758
16761
  if (kt(s)) {
16759
- if (!Rr(s) || s.__indent !== 0)
16762
+ if (!Ir(s) || s.__indent !== 0)
16760
16763
  return !1;
16761
16764
  const o = s.getChildren(), r = o.length;
16762
16765
  for (let a = 0; a < r; a++) {
@@ -16783,7 +16786,7 @@ var VO = JO(function(c) {
16783
16786
  });
16784
16787
  function KO(c, t, n, e) {
16785
16788
  const s = (r) => r instanceof n, o = (r) => {
16786
- const a = ar(r.getTextContent());
16789
+ const a = sr(r.getTextContent());
16787
16790
  a.setFormat(r.getFormat()), r.replace(a);
16788
16791
  };
16789
16792
  return [c.registerNodeTransform(ao, (r) => {
@@ -17257,7 +17260,7 @@ class tg extends Vr {
17257
17260
  }
17258
17261
  }
17259
17262
  function vE() {
17260
- return Ir(new tg());
17263
+ return Pr(new tg());
17261
17264
  }
17262
17265
  function uN(c) {
17263
17266
  return c instanceof tg;
@@ -17339,7 +17342,7 @@ function dN(c) {
17339
17342
  return c.style !== null && t.setFormat(c.style.textAlign), { node: t };
17340
17343
  }
17341
17344
  function yd(c) {
17342
- return Ir(new ng(c));
17345
+ return Pr(new ng(c));
17343
17346
  }
17344
17347
  function uh(c) {
17345
17348
  return c instanceof ng;
@@ -17404,7 +17407,7 @@ function fN(c) {
17404
17407
  }, jn), c.registerCommand(Bp, () => {
17405
17408
  const t = jt();
17406
17409
  return !!Tt(t) && (t.removeText(), !0);
17407
- }, jn), c.registerCommand(ei, (t) => {
17410
+ }, jn), c.registerCommand(ti, (t) => {
17408
17411
  const n = jt();
17409
17412
  return !!Tt(n) && (n.formatText(t), !0);
17410
17413
  }, jn), c.registerCommand(Tl, (t) => {
@@ -17757,7 +17760,7 @@ function _N(c, t, n, e) {
17757
17760
  if (c.length === 1) {
17758
17761
  let o, r = c[0];
17759
17762
  t === 0 ? [o, r] = r.splitText(n) : [, o, r] = r.splitText(t, n);
17760
- const a = ar(e.text);
17763
+ const a = sr(e.text);
17761
17764
  return a.setFormat(o.getFormat()), a.setDetail(o.getDetail()), a.setStyle(o.getStyle()), s.append(a), o.replace(s), r;
17762
17765
  }
17763
17766
  if (c.length > 1) {
@@ -17777,7 +17780,7 @@ function _N(c, t, n, e) {
17777
17780
  }
17778
17781
  a += m;
17779
17782
  }
17780
- const u = jt(), f = u ? u.getNodes().find(Kt) : void 0, d = ar(r.getTextContent());
17783
+ const u = jt(), f = u ? u.getNodes().find(Kt) : void 0, d = sr(r.getTextContent());
17781
17784
  return d.setFormat(r.getFormat()), d.setDetail(r.getDetail()), d.setStyle(r.getStyle()), s.append(d, ...l), f && f === r && (Tt(u) ? d.select(u.anchor.offset, u.focus.offset) : io(u) && d.select(0, d.getTextContent().length)), r.replace(s), i;
17782
17785
  }
17783
17786
  }
@@ -17978,34 +17981,36 @@ function e_(c, t, n, e) {
17978
17981
  s.onload = () => {
17979
17982
  const o = s.result, a = { altText: c.name, src: o };
17980
17983
  t.update(() => {
17981
- const f = `Figure ${Ln().getChildren().filter(
17982
- (g) => Kt(g) && g.getTextContent().startsWith("Figure")
17983
- ).length + 1}`, d = ar(f);
17984
- d.setStyle(
17985
- "font-weight: bold; display: block; margin-top: 5px; font-size: 14px;"
17986
- );
17987
- const p = au({ ...a, figureLabel: f }), h = Tn();
17988
- h.setFormat("left");
17989
- const m = fa();
17990
- if (h.append(p, m), n) {
17991
- const v = ar("");
17992
- v.setStyle(
17984
+ const u = Ln().getChildren().filter(
17985
+ (v) => Ir(v) && v.getChildren().some(
17986
+ (b) => b.getTextContent().startsWith("Figure")
17987
+ )
17988
+ ).length + 1, f = `Figure ${u}:`, d = Xc("Figure", u, e), p = new Ko(f, "black", d);
17989
+ p.__captionId = d;
17990
+ const h = au({ ...a, figureLabel: f });
17991
+ h.__captionId = d;
17992
+ const m = Tn();
17993
+ m.setFormat("left");
17994
+ const g = fa();
17995
+ if (m.append(h, g), n) {
17996
+ const b = sr("");
17997
+ b.setStyle(
17993
17998
  "color: black; font-style: italic; font-weight: bold;"
17994
- ), h.append(d, v);
17999
+ ), m.append(p, b);
17995
18000
  }
17996
- bi([h]), so(p.getParentOrThrow()) && by(p, Tn).selectEnd(), n && t.update(() => {
17997
- const v = Ln().getChildren().filter((_) => Rr(_));
18001
+ if (bi([m]), so(h.getParentOrThrow()) && by(h, Tn).selectEnd(), n) {
18002
+ const v = Ln().getChildren();
17998
18003
  let b = 1;
17999
18004
  v.forEach((_) => {
18000
- const E = _.getChildren().find(
18001
- (w) => w.getTextContent().startsWith("Figure")
18002
- );
18003
- if (E) {
18004
- const w = `Figure ${b}:`, x = Xc("labelText", b, e), y = new ri(w, "black", x);
18005
- E.replace(y), b++;
18005
+ if (Ir(_)) {
18006
+ const E = _.getChildren().find((w) => w.getTextContent().startsWith("Figure"));
18007
+ if (E) {
18008
+ const w = E.getTextContent(), x = w.indexOf(":"), y = x !== -1 ? w.slice(x) : "", S = `Figure ${b++}${y}`;
18009
+ (Kt(E) || E instanceof Ko) && E.setTextContent(S);
18010
+ }
18006
18011
  }
18007
18012
  });
18008
- });
18013
+ }
18009
18014
  });
18010
18015
  }, s.readAsDataURL(c);
18011
18016
  }
@@ -18089,13 +18094,13 @@ function OE({
18089
18094
  o += 1;
18090
18095
  const a = Xc("Figure", o, t);
18091
18096
  if (c) {
18092
- const l = `Figure ${o}:`, i = Xc("Figure", o, t), u = new ri(l, "black", i);
18097
+ const l = `Figure ${o}:`, i = Xc("Figure", o, t), u = new Ko(l, "black", i);
18093
18098
  u.__captionId = i, u.__captionId = a;
18094
18099
  const f = au({ ...r });
18095
18100
  f.__captionId = a;
18096
18101
  const d = Tn();
18097
18102
  d.setFormat("left");
18098
- const p = e.trim() === "" ? "" : e, h = ar(p);
18103
+ const p = e.trim() === "" ? "" : e, h = sr(p);
18099
18104
  h.setStyle(
18100
18105
  p ? "color: black; font-style: italic; font-weight: bold;" : "color: gray; font-style: italic; font-weight: normal;"
18101
18106
  ), d.append(f, u, h), bi([d]), so(f.getParentOrThrow()) && by(f, Tn).selectEnd();
@@ -18104,13 +18109,13 @@ function OE({
18104
18109
  i.setFormat("left"), i.append(l), bi([i]), so(l.getParentOrThrow()) && by(l, Tn).selectEnd();
18105
18110
  }
18106
18111
  return n.update(() => {
18107
- const i = Ln().getChildren().filter(Rr);
18112
+ const i = Ln().getChildren().filter(Ir);
18108
18113
  let u = 1;
18109
18114
  i.forEach((f) => {
18110
18115
  const d = f.getChildren().find((b) => b.getTextContent().startsWith("Figure"));
18111
18116
  if (!d)
18112
18117
  return;
18113
- const p = d.__captionId, h = f.getChildren().find(Yh), m = h ? h.__captionId : void 0, g = p ?? m ?? Xc(d.getTextContent(), u, t), v = new ri(
18118
+ const p = d.__captionId, h = f.getChildren().find(Yh), m = h ? h.__captionId : void 0, g = p ?? m ?? Xc(d.getTextContent(), u, t), v = new Ko(
18114
18119
  `Figure ${u}:`,
18115
18120
  "black",
18116
18121
  g
@@ -18141,7 +18146,7 @@ function OE({
18141
18146
  (r) => {
18142
18147
  var l;
18143
18148
  const a = (l = r.clipboardData) == null ? void 0 : l.items;
18144
- return a.length <= 2 && a.length ? kE(r, n, e, c, t) : !1;
18149
+ return a && a.length <= 2 && a.length ? kE(r, n, e, c, t) : !1;
18145
18150
  },
18146
18151
  Ii
18147
18152
  )
@@ -18703,7 +18708,7 @@ function u_(c) {
18703
18708
  if (c.getChildrenSize() !== 1)
18704
18709
  return !1;
18705
18710
  const t = c.getFirstChildOrThrow();
18706
- return !(!Rr(t) || !t.isEmpty());
18711
+ return !(!Ir(t) || !t.isEmpty());
18707
18712
  }
18708
18713
  function eA(c) {
18709
18714
  const t = c.getLastDescendant();
@@ -18800,7 +18805,7 @@ function tA({
18800
18805
  $.setColSpan(N).setRowSpan(T), D = $;
18801
18806
  const M = u_($);
18802
18807
  let z;
18803
- M && Rr(z = $.getFirstChild()) && z.remove();
18808
+ M && Ir(z = $.getFirstChild()) && z.remove();
18804
18809
  } else
18805
18810
  xn(D) && (u_($) || D.append(...$.getChildren()), $.remove());
18806
18811
  }
@@ -19380,14 +19385,14 @@ function FE({ isEditable: c = !0 }) {
19380
19385
  [t, c]
19381
19386
  );
19382
19387
  }
19383
- const BE = sr.createContext(null), f_ = 4;
19388
+ const BE = ar.createContext(null), f_ = 4;
19384
19389
  function To({
19385
19390
  children: c,
19386
19391
  className: t,
19387
19392
  onClick: n,
19388
19393
  title: e
19389
19394
  }) {
19390
- const s = tr(null), o = sr.useContext(BE);
19395
+ const s = tr(null), o = ar.useContext(BE);
19391
19396
  if (o === null)
19392
19397
  throw new Error("DropDownItem must be used within a DropDown");
19393
19398
  const { registerItem: r } = o;
@@ -19539,8 +19544,8 @@ const p_ = 8, h_ = 72, Ps = {
19539
19544
  currentElementSelect: a,
19540
19545
  wpAndTaskId: l
19541
19546
  }) => {
19542
- const [i, u] = sr.useState(c), [f, d] = sr.useState(e), [p, h] = sr.useState("");
19543
- sr.useState([]), sr.useState("");
19547
+ const [i, u] = ar.useState(c), [f, d] = ar.useState(e), [p, h] = ar.useState("");
19548
+ ar.useState([]), ar.useState("");
19544
19549
  const { heading: m } = s || {}, g = (w) => {
19545
19550
  w && w.title && n.update(() => {
19546
19551
  if (n.isEditable()) {
@@ -19593,9 +19598,9 @@ const p_ = 8, h_ = 72, Ps = {
19593
19598
  }, E = () => {
19594
19599
  u("15");
19595
19600
  };
19596
- return sr.useEffect(() => {
19601
+ return ar.useEffect(() => {
19597
19602
  E();
19598
- }, [o]), sr.useEffect(() => {
19603
+ }, [o]), ar.useEffect(() => {
19599
19604
  const w = () => {
19600
19605
  n.update(() => {
19601
19606
  const x = jt();
@@ -19611,7 +19616,7 @@ const p_ = 8, h_ = 72, Ps = {
19611
19616
  return n.registerUpdateListener(w), () => {
19612
19617
  n.registerUpdateListener(w);
19613
19618
  };
19614
- }, [n]), sr.useEffect(() => {
19619
+ }, [n]), ar.useEffect(() => {
19615
19620
  var w, x, y, S, C;
19616
19621
  switch (r.tagName) {
19617
19622
  case "P":
@@ -19646,7 +19651,7 @@ const p_ = 8, h_ = 72, Ps = {
19646
19651
  d("paragraph"), u("15");
19647
19652
  break;
19648
19653
  }
19649
- }, [r]), sr.useEffect(() => {
19654
+ }, [r]), ar.useEffect(() => {
19650
19655
  var x, y, S, C, O;
19651
19656
  if (!a) {
19652
19657
  u("15"), d("paragraph");
@@ -19945,7 +19950,14 @@ function UE(c) {
19945
19950
  const gA = async (c, t, n, e) => {
19946
19951
  await mA({ title: t, parsedHtmlString: e, styleConfig: n });
19947
19952
  }, mA = async ({ title: c, parsedHtmlString: t, styleConfig: n }) => {
19948
- const e = '<!DOCTYPE html><html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head><meta charset="UTF-8"><title>Document</title></head><body>', s = "</body></html>", o = t || jl(".ContentEditable__root").html(), r = hA(o), a = pA(r), l = await yA(a, n), i = e + l + s, u = new Blob([i], { type: "application/msword" });
19953
+ const e = `<!DOCTYPE html><html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head><meta charset="UTF-8"><title>Document</title>
19954
+ <style>
19955
+ body {
19956
+ font-family: "Times New Roman", Times, serif;
19957
+ font-size: 14.5px;
19958
+ }
19959
+ </style>
19960
+ </head><body>`, s = "</body></html>", o = t || jl(".ContentEditable__root").html(), r = hA(o), a = pA(r), l = await yA(a, n), i = e + l + s, u = new Blob([i], { type: "application/msword" });
19949
19961
  fA.saveAs(u, `${c || "Exported"}.doc`);
19950
19962
  };
19951
19963
  async function yA(c, t) {
@@ -20020,7 +20032,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20020
20032
  function g() {
20021
20033
  const [C] = kn(), O = (B, R) => {
20022
20034
  C.update(() => {
20023
- const L = Tn(), N = ar(`${B}`);
20035
+ const L = Tn(), N = sr(`${B}`);
20024
20036
  N.setStyle(R.style), N.setFormat(R.format), L.append(N), C.getRootElement() && B && B.length > 0 && (C.getEditorState().read(() => Ln()), El(L));
20025
20037
  });
20026
20038
  }, F = () => {
@@ -20090,7 +20102,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20090
20102
  }).map((X) => X.style).filter((X) => X).map((X) => X.split(";").map((G) => G.trim()).filter((G) => !G.startsWith("font-family")).filter((G) => !G.startsWith("font-size")).filter((G) => !G.startsWith("border")).filter((G) => !G.startsWith("width")).join("; ")).join("; ");
20091
20103
  const I = b(K, "font-weight"), q = b(K, "font-style"), W = b(K, "text-decoration");
20092
20104
  K = `${K}; font-weight: ${I}`, K = `${K}; font-style: ${q}`, K = `${K}; color: black`, K = `${K}; text-decoration: ${W}`;
20093
- const U = ar($.innerText.trim()), Y = w(I, q, W);
20105
+ const U = sr($.innerText.trim()), Y = w(I, q, W);
20094
20106
  U.setFormat(Y), K && U.setStyle(K);
20095
20107
  const Z = Tn();
20096
20108
  Z.append(U), M.append(Z), D.append(M);
@@ -20120,7 +20132,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20120
20132
  const V = $.getAttribute("id").split("_")[1] * 2;
20121
20133
  setTimeout(() => {
20122
20134
  f.update(() => {
20123
- const K = kl(`${$.getAttribute("aria-level") === "1" ? "h1" : $.getAttribute("aria-level") === "2" ? "h2" : $.getAttribute("aria-level") === "3" ? "h3" : $.getAttribute("aria-level") === "4" ? "h4" : "h5"}`), I = ar($.innerText);
20135
+ const K = kl(`${$.getAttribute("aria-level") === "1" ? "h1" : $.getAttribute("aria-level") === "2" ? "h2" : $.getAttribute("aria-level") === "3" ? "h3" : $.getAttribute("aria-level") === "4" ? "h4" : "h5"}`), I = sr($.innerText);
20124
20136
  K.append(I), El(K);
20125
20137
  });
20126
20138
  }, V);
@@ -20128,7 +20140,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20128
20140
  const V = $.getAttribute("id").split("_")[1] * 2;
20129
20141
  setTimeout(() => {
20130
20142
  f.update(() => {
20131
- const K = Go("ul"), I = ii(), q = ar(`${$.textContent}`);
20143
+ const K = Yo("ul"), I = ii(), q = sr(`${$.textContent}`);
20132
20144
  let Y = Array.from($.querySelectorAll("span")).map((ee) => {
20133
20145
  const oe = ee.getAttribute("style") || "";
20134
20146
  return {
@@ -20144,7 +20156,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20144
20156
  const V = $.getAttribute("id").split("_")[1] * 2;
20145
20157
  setTimeout(() => {
20146
20158
  f.update(() => {
20147
- const K = Go("ol"), I = ii(), q = ar(`${$.textContent}`);
20159
+ const K = Yo("ol"), I = ii(), q = sr(`${$.textContent}`);
20148
20160
  let Y = Array.from($.querySelectorAll("span")).map((oe) => {
20149
20161
  const ue = oe.getAttribute("style") || "";
20150
20162
  return {
@@ -20366,7 +20378,7 @@ function HE({
20366
20378
  return dt != null && dt.includes(
20367
20379
  '<meta http-equiv=Content-Type content="text/html; charset=utf-8">'
20368
20380
  ) && (dt != null && dt.includes("microsoft-com")) ? (kE(Bt, d, "", i), !1) : /^https?:\/\/\S+$/.test(Mt) ? (Bt.preventDefault(), d.update(() => {
20369
- const tn = Tn(), Nt = ar(Mt), rn = Rd(Mt);
20381
+ const tn = Tn(), Nt = sr(Mt), rn = Rd(Mt);
20370
20382
  rn.append(Nt), tn.append(rn), bi([tn]);
20371
20383
  }), !0) : dt && !(dt != null && dt.includes("Outline")) && !(dt != null && dt.includes(
20372
20384
  '<meta http-equiv=Content-Type content="text/html; charset=utf-8">'
@@ -20620,7 +20632,7 @@ function HE({
20620
20632
  {
20621
20633
  disabled: !Se,
20622
20634
  onClick: () => {
20623
- p.dispatchCommand(ei, "bold");
20635
+ p.dispatchCommand(ti, "bold");
20624
20636
  },
20625
20637
  className: "toolbar-item spaced " + (A ? "active" : ""),
20626
20638
  title: Ms ? "Bold (⌘B)" : "Bold (Ctrl+B)",
@@ -20634,7 +20646,7 @@ function HE({
20634
20646
  {
20635
20647
  disabled: !Se,
20636
20648
  onClick: () => {
20637
- p.dispatchCommand(ei, "italic");
20649
+ p.dispatchCommand(ti, "italic");
20638
20650
  },
20639
20651
  className: "toolbar-item spaced " + (j ? "active" : ""),
20640
20652
  title: Ms ? "Italic (⌘I)" : "Italic (Ctrl+I)",
@@ -20648,7 +20660,7 @@ function HE({
20648
20660
  {
20649
20661
  disabled: !Se,
20650
20662
  onClick: () => {
20651
- p.dispatchCommand(ei, "underline");
20663
+ p.dispatchCommand(ti, "underline");
20652
20664
  },
20653
20665
  className: "toolbar-item spaced " + (M ? "active" : ""),
20654
20666
  title: Ms ? "Underline (⌘U)" : "Underline (Ctrl+U)",
@@ -20680,7 +20692,7 @@ function HE({
20680
20692
  {
20681
20693
  onClick: () => {
20682
20694
  p.dispatchCommand(
20683
- ei,
20695
+ ti,
20684
20696
  "strikethrough"
20685
20697
  );
20686
20698
  },
@@ -20697,7 +20709,7 @@ function HE({
20697
20709
  To,
20698
20710
  {
20699
20711
  onClick: () => {
20700
- p.dispatchCommand(ei, "subscript");
20712
+ p.dispatchCommand(ti, "subscript");
20701
20713
  },
20702
20714
  className: "item " + lp(I),
20703
20715
  title: "Subscript",
@@ -20713,7 +20725,7 @@ function HE({
20713
20725
  {
20714
20726
  onClick: () => {
20715
20727
  p.dispatchCommand(
20716
- ei,
20728
+ ti,
20717
20729
  "superscript"
20718
20730
  );
20719
20731
  },
@@ -20967,7 +20979,7 @@ let eb = class WE extends Vr {
20967
20979
  }
20968
20980
  };
20969
20981
  function fh(c) {
20970
- return Ir(new eb(c));
20982
+ return Pr(new eb(c));
20971
20983
  }
20972
20984
  function Rl(c) {
20973
20985
  return c instanceof eb;
@@ -21075,17 +21087,17 @@ var y_ = { error: null }, RA = function(c) {
21075
21087
  var o = this.state.error, r = this.props, a = r.fallbackRender, l = r.FallbackComponent, i = r.fallback;
21076
21088
  if (o !== null) {
21077
21089
  var u = { error: o, resetErrorBoundary: this.resetErrorBoundary };
21078
- if (sr.isValidElement(i))
21090
+ if (ar.isValidElement(i))
21079
21091
  return i;
21080
21092
  if (typeof a == "function")
21081
21093
  return a(u);
21082
21094
  if (l)
21083
- return sr.createElement(l, u);
21095
+ return ar.createElement(l, u);
21084
21096
  throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
21085
21097
  }
21086
21098
  return this.props.children;
21087
21099
  }, e;
21088
- }(sr.Component);
21100
+ }(ar.Component);
21089
21101
  function Fd({ children: c, onError: t }) {
21090
21102
  return ge.jsx(RA, { fallback: ge.jsx("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: t, children: c });
21091
21103
  }
@@ -35690,7 +35702,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
35690
35702
  return k;
35691
35703
  }
35692
35704
  e && (_i = document.createElement("div").style, "AnimationEvent" in window || (delete xr.animationend.animation, delete xr.animationiteration.animation, delete xr.animationstart.animation), "TransitionEvent" in window || delete xr.transitionend.transition);
35693
- var bo = lo("animationend"), Yo = lo("animationiteration"), co = lo("animationstart"), ai = lo("transitionend"), Da = /* @__PURE__ */ new Map(), vo = /* @__PURE__ */ new Map(), dr = ["abort", "abort", bo, "animationEnd", Yo, "animationIteration", co, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", ai, "transitionEnd", "waiting", "waiting"];
35705
+ var bo = lo("animationend"), Zo = lo("animationiteration"), co = lo("animationstart"), ai = lo("transitionend"), Da = /* @__PURE__ */ new Map(), vo = /* @__PURE__ */ new Map(), dr = ["abort", "abort", bo, "animationEnd", Zo, "animationIteration", co, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", ai, "transitionEnd", "waiting", "waiting"];
35694
35706
  function Li(k, P) {
35695
35707
  for (var J = 0; J < k.length; J += 2) {
35696
35708
  var re = k[J], ie = "on" + ((ie = k[J + 1])[0].toUpperCase() + ie.slice(1));
@@ -35703,7 +35715,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
35703
35715
  var P;
35704
35716
  return 1 & k ? (zn = 15, 1) : 2 & k ? (zn = 14, 2) : 4 & k ? (zn = 13, 4) : (P = 24 & k) != 0 ? (zn = 12, P) : 32 & k ? (zn = 11, 32) : (P = 192 & k) != 0 ? (zn = 10, P) : 256 & k ? (zn = 9, 256) : (P = 3584 & k) != 0 ? (zn = 8, P) : 4096 & k ? (zn = 7, 4096) : (P = 4186112 & k) != 0 ? (zn = 6, P) : (P = 62914560 & k) != 0 ? (zn = 5, P) : 67108864 & k ? (zn = 4, 67108864) : 134217728 & k ? (zn = 3, 134217728) : (P = 805306368 & k) != 0 ? (zn = 2, P) : 1073741824 & k ? (zn = 1, 1073741824) : (zn = 8, k);
35705
35717
  }
35706
- function Zo(k, P) {
35718
+ function Qo(k, P) {
35707
35719
  var J = k.pendingLanes;
35708
35720
  if (J === 0)
35709
35721
  return zn = 0;
@@ -36190,7 +36202,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
36190
36202
  hn = nr;
36191
36203
  break;
36192
36204
  case bo:
36193
- case Yo:
36205
+ case Zo:
36194
36206
  case co:
36195
36207
  hn = be;
36196
36208
  break;
@@ -37068,7 +37080,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
37068
37080
  pc[k]._workInProgressVersionPrimary = null;
37069
37081
  pc.length = 0;
37070
37082
  }
37071
- var Hu = S.ReactCurrentDispatcher, Hi = S.ReactCurrentBatchConfig, qu = 0, oo = null, Qo = null, Ro = null, Df = !1, Wu = !1;
37083
+ var Hu = S.ReactCurrentDispatcher, Hi = S.ReactCurrentBatchConfig, qu = 0, oo = null, Xo = null, Ro = null, Df = !1, Wu = !1;
37072
37084
  function hi() {
37073
37085
  throw Error(i(321));
37074
37086
  }
@@ -37086,9 +37098,9 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
37086
37098
  do
37087
37099
  if (Wu = !1, !(pe < 25))
37088
37100
  throw Error(i(301));
37089
- while (pe += 1, Ro = Qo = null, P.updateQueue = null, Hu.current = H2, k = J(re, ie), Wu);
37101
+ while (pe += 1, Ro = Xo = null, P.updateQueue = null, Hu.current = H2, k = J(re, ie), Wu);
37090
37102
  }
37091
- if (Hu.current = zf, P = Qo !== null && Qo.next !== null, qu = 0, Ro = Qo = oo = null, Df = !1, P)
37103
+ if (Hu.current = zf, P = Xo !== null && Xo.next !== null, qu = 0, Ro = Xo = oo = null, Df = !1, P)
37092
37104
  throw Error(i(300));
37093
37105
  return k;
37094
37106
  }
@@ -37097,14 +37109,14 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
37097
37109
  return Ro === null ? oo.memoizedState = Ro = k : Ro = Ro.next = k, Ro;
37098
37110
  }
37099
37111
  function _l() {
37100
- k = Qo === null ? (k = oo.alternate) !== null ? k.memoizedState : null : Qo.next;
37112
+ k = Xo === null ? (k = oo.alternate) !== null ? k.memoizedState : null : Xo.next;
37101
37113
  var k, P = Ro === null ? oo.memoizedState : Ro.next;
37102
37114
  if (P !== null)
37103
- Ro = P, Qo = k;
37115
+ Ro = P, Xo = k;
37104
37116
  else {
37105
37117
  if (k === null)
37106
37118
  throw Error(i(310));
37107
- k = { memoizedState: (Qo = k).memoizedState, baseState: Qo.baseState, baseQueue: Qo.baseQueue, queue: Qo.queue, next: null }, Ro === null ? oo.memoizedState = Ro = k : Ro = Ro.next = k;
37119
+ k = { memoizedState: (Xo = k).memoizedState, baseState: Xo.baseState, baseQueue: Xo.baseQueue, queue: Xo.queue, next: null }, Ro === null ? oo.memoizedState = Ro = k : Ro = Ro.next = k;
37108
37120
  }
37109
37121
  return Ro;
37110
37122
  }
@@ -37116,7 +37128,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
37116
37128
  if (J === null)
37117
37129
  throw Error(i(311));
37118
37130
  J.lastRenderedReducer = k;
37119
- var re, ie = (ve = Qo).baseQueue, pe = J.pending;
37131
+ var re, ie = (ve = Xo).baseQueue, pe = J.pending;
37120
37132
  if (pe !== null && (ie !== null && (re = ie.next, ie.next = pe.next, pe.next = re), ve.baseQueue = ie = pe, J.pending = null), ie !== null) {
37121
37133
  ie = ie.next;
37122
37134
  var ve = ve.baseState, Fe = re = pe = null, Me = ie;
@@ -37148,7 +37160,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
37148
37160
  throw pc.push(P), Error(i(350));
37149
37161
  }
37150
37162
  function $b(k, P, J, re) {
37151
- var ie = Xo;
37163
+ var ie = ei;
37152
37164
  if (ie === null)
37153
37165
  throw Error(i(349));
37154
37166
  var pe = P._getVersion, ve = pe(P._source), Fe = Hu.current, Me = (Vt = Fe.useState(function() {
@@ -37201,8 +37213,8 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
37201
37213
  }
37202
37214
  function Pg(k, P, J, re) {
37203
37215
  var ie = _l(), pe = void (re = re === void 0 ? null : re);
37204
- if (Qo !== null) {
37205
- var ve = Qo.memoizedState;
37216
+ if (Xo !== null) {
37217
+ var ve = Xo.memoizedState;
37206
37218
  if (pe = ve.destroy, re !== null && Ag(re, ve.deps))
37207
37219
  return void Lf(P, J, pe, re);
37208
37220
  }
@@ -37947,7 +37959,7 @@ Error generating stack: ` + pe.message + `
37947
37959
  P.has(re) || (P.add(re), re.then(ie, ie));
37948
37960
  }));
37949
37961
  }
37950
- var Z2 = Math.ceil, $f = S.ReactCurrentDispatcher, Hg = S.ReactCurrentOwner, Zn = 0, Xo = null, go = null, Wo = 0, xl = 0, qg = vs(0), Do = 0, Uf = null, hc = 0, Yu = 0, gc = 0, Wg = 0, Jg = null, Vg = 0, Kg = 1 / 0;
37962
+ var Z2 = Math.ceil, $f = S.ReactCurrentDispatcher, Hg = S.ReactCurrentOwner, Zn = 0, ei = null, go = null, Wo = 0, xl = 0, qg = vs(0), Do = 0, Uf = null, hc = 0, Yu = 0, gc = 0, Wg = 0, Jg = null, Vg = 0, Kg = 1 / 0;
37951
37963
  function mc() {
37952
37964
  Kg = qo() + 500;
37953
37965
  }
@@ -37977,7 +37989,7 @@ Error generating stack: ` + pe.message + `
37977
37989
  if (50 < Xu)
37978
37990
  throw Xu = 0, Qg = null, Error(i(185));
37979
37991
  var re;
37980
- (k = Vf(k, P)) !== null && (ga(k, P, J), k === Xo && (gc |= P, Do === 4) && yc(k, Wo), re = cc(), P === 1 ? 8 & Zn && !(48 & Zn) ? Xg(k) : (qi(k, J), Zn === 0 && (mc(), va())) : (!(4 & Zn) || re !== 98 && re !== 99 || (qa === null ? qa = /* @__PURE__ */ new Set([k]) : qa.add(k)), qi(k, J)), Jg = k);
37992
+ (k = Vf(k, P)) !== null && (ga(k, P, J), k === ei && (gc |= P, Do === 4) && yc(k, Wo), re = cc(), P === 1 ? 8 & Zn && !(48 & Zn) ? Xg(k) : (qi(k, J), Zn === 0 && (mc(), va())) : (!(4 & Zn) || re !== 98 && re !== 99 || (qa === null ? qa = /* @__PURE__ */ new Set([k]) : qa.add(k)), qi(k, J)), Jg = k);
37981
37993
  }
37982
37994
  function Vf(k, P) {
37983
37995
  k.lanes |= P;
@@ -37991,7 +38003,7 @@ Error generating stack: ` + pe.message + `
37991
38003
  var Fe, Me = 31 - jo(ve), at = 1 << Me, Vt = pe[Me];
37992
38004
  Vt === -1 ? at & re && !(at & ie) || (Vt = P, $n(at), Fe = zn, pe[Me] = 10 <= Fe ? Vt + 250 : 6 <= Fe ? Vt + 5e3 : -1) : Vt <= P && (k.expiredLanes |= at), ve &= ~at;
37993
38005
  }
37994
- if (re = Zo(k, k === Xo ? Wo : 0), P = zn, re === 0)
38006
+ if (re = Qo(k, k === ei ? Wo : 0), P = zn, re === 0)
37995
38007
  J !== null && (J !== vg && yg(J), k.callbackNode = null, k.callbackPriority = 0);
37996
38008
  else {
37997
38009
  if (J !== null) {
@@ -38034,11 +38046,11 @@ Error generating stack: ` + pe.message + `
38034
38046
  var P = k.callbackNode;
38035
38047
  if (Ns() && k.callbackNode !== P)
38036
38048
  return null;
38037
- var J = Zo(k, k === Xo ? Wo : 0);
38049
+ var J = Qo(k, k === ei ? Wo : 0);
38038
38050
  if (J === 0)
38039
38051
  return null;
38040
38052
  var re = J, ie = Zn, pe = (Zn |= 16, wv());
38041
- for (Xo === k && Wo === re || (mc(), bc(k, re)); ; )
38053
+ for (ei === k && Wo === re || (mc(), bc(k, re)); ; )
38042
38054
  try {
38043
38055
  for (; go !== null && !L2(); )
38044
38056
  Sv(go);
@@ -38046,7 +38058,7 @@ Error generating stack: ` + pe.message + `
38046
38058
  } catch (Fe) {
38047
38059
  xv(k, Fe);
38048
38060
  }
38049
- if (xg(), $f.current = pe, Zn = ie, re = go !== null ? 0 : (Xo = null, Wo = 0, Do), hc & gc)
38061
+ if (xg(), $f.current = pe, Zn = ie, re = go !== null ? 0 : (ei = null, Wo = 0, Do), hc & gc)
38050
38062
  bc(k, 0);
38051
38063
  else if (re !== 0) {
38052
38064
  if ((re = re === 2 && (Zn |= 64, k.hydrate && (k.hydrate = !1, fi(k.containerInfo)), (J = Uo(k)) !== 0) ? td(k, J) : re) === 1)
@@ -38061,7 +38073,7 @@ Error generating stack: ` + pe.message + `
38061
38073
  break;
38062
38074
  case 3:
38063
38075
  if (yc(k, J), (62914560 & J) === J && 10 < (re = Vg + 500 - qo())) {
38064
- if (Zo(k, 0) !== 0)
38076
+ if (Qo(k, 0) !== 0)
38065
38077
  break;
38066
38078
  if (((ie = k.suspendedLanes) & J) !== J) {
38067
38079
  Ni(), k.pingedLanes |= k.suspendedLanes & ie;
@@ -38096,7 +38108,7 @@ Error generating stack: ` + pe.message + `
38096
38108
  if (48 & Zn)
38097
38109
  throw Error(i(327));
38098
38110
  var P, J;
38099
- if (Ns(), k === Xo && k.expiredLanes & Wo ? (J = td(k, P = Wo), hc & gc && (J = td(k, P = Zo(k, P)))) : J = td(k, P = Zo(k, 0)), (J = k.tag !== 0 && J === 2 && (Zn |= 64, k.hydrate && (k.hydrate = !1, fi(k.containerInfo)), (P = Uo(k)) !== 0) ? td(k, P) : J) === 1)
38111
+ if (Ns(), k === ei && k.expiredLanes & Wo ? (J = td(k, P = Wo), hc & gc && (J = td(k, P = Qo(k, P)))) : J = td(k, P = Qo(k, 0)), (J = k.tag !== 0 && J === 2 && (Zn |= 64, k.hydrate && (k.hydrate = !1, fi(k.containerInfo)), (P = Uo(k)) !== 0) ? td(k, P) : J) === 1)
38100
38112
  throw J = Uf, bc(k, 0), yc(k, P), qi(k, qo()), J;
38101
38113
  return k.finishedWork = k.current.alternate, k.finishedLanes = P, vc(k), qi(k, qo()), null;
38102
38114
  }
@@ -38156,7 +38168,7 @@ Error generating stack: ` + pe.message + `
38156
38168
  }
38157
38169
  J = J.return;
38158
38170
  }
38159
- go = js((Xo = k).current, null), Wo = xl = hc = P, Uf = null, Wg = gc = Yu = Do = 0;
38171
+ go = js((ei = k).current, null), Wo = xl = hc = P, Uf = null, Wg = gc = Yu = Do = 0;
38160
38172
  }
38161
38173
  function xv(k, P) {
38162
38174
  for (; ; ) {
@@ -38169,7 +38181,7 @@ Error generating stack: ` + pe.message + `
38169
38181
  }
38170
38182
  Df = !1;
38171
38183
  }
38172
- if (qu = 0, Ro = Qo = oo = null, Wu = !1, (Hg.current = null) === J || J.return === null) {
38184
+ if (qu = 0, Ro = Xo = oo = null, Wu = !1, (Hg.current = null) === J || J.return === null) {
38173
38185
  Do = 1, Uf = P, go = null;
38174
38186
  break;
38175
38187
  }
@@ -38224,7 +38236,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
38224
38236
  }
38225
38237
  function td(k, P) {
38226
38238
  var J = Zn, re = (Zn |= 16, wv());
38227
- for (Xo === k && Wo === P || bc(k, P); ; )
38239
+ for (ei === k && Wo === P || bc(k, P); ; )
38228
38240
  try {
38229
38241
  for (; go !== null; )
38230
38242
  Sv(go);
@@ -38234,7 +38246,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
38234
38246
  }
38235
38247
  if (xg(), Zn = J, $f.current = re, go !== null)
38236
38248
  throw Error(i(261));
38237
- return Xo = null, Wo = 0, Do;
38249
+ return ei = null, Wo = 0, Do;
38238
38250
  }
38239
38251
  function Sv(k) {
38240
38252
  var P = yv(k.alternate, k, xl);
@@ -38435,7 +38447,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
38435
38447
  }
38436
38448
  return null;
38437
38449
  case 13:
38438
- return zr(ro), Me = ve.memoizedState, 64 & ve.flags ? (ve.lanes = Fe, ve) : (Me = Me !== null, Fe = !1, pe === null ? ve.memoizedProps.fallback !== void 0 && Rf(ve) : Fe = pe.memoizedState !== null, Me && !Fe && 2 & ve.mode && (pe === null && ve.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & ro.current ? Do === 0 && (Do = 3) : (Do !== 0 && Do !== 3 || (Do = 4), Xo === null || !(134217727 & Yu) && !(134217727 & gc) || yc(Xo, Wo))), (Me || Fe) && (ve.flags |= 4), null);
38450
+ return zr(ro), Me = ve.memoizedState, 64 & ve.flags ? (ve.lanes = Fe, ve) : (Me = Me !== null, Fe = !1, pe === null ? ve.memoizedProps.fallback !== void 0 && Rf(ve) : Fe = pe.memoizedState !== null, Me && !Fe && 2 & ve.mode && (pe === null && ve.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & ro.current ? Do === 0 && (Do = 3) : (Do !== 0 && Do !== 3 || (Do = 4), ei === null || !(134217727 & Yu) && !(134217727 & gc) || yc(ei, Wo))), (Me || Fe) && (ve.flags |= 4), null);
38439
38451
  case 4:
38440
38452
  return fc(), pe === null && Ot(ve.stateNode.containerInfo), null;
38441
38453
  case 10:
@@ -38505,7 +38517,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
38505
38517
  var Vt = 31 - jo(Fe), Jt = 1 << Vt;
38506
38518
  ve[Vt] = 0, Me[Vt] = -1, at[Vt] = -1, Fe &= ~Jt;
38507
38519
  }
38508
- if (qa !== null && !(24 & pe) && qa.has(J) && qa.delete(J), J === Xo && (go = Xo = null, Wo = 0), (pe = 1 < ie.flags ? ie.lastEffect !== null ? (ie.lastEffect.nextEffect = ie).firstEffect : ie : ie.firstEffect) !== null) {
38520
+ if (qa !== null && !(24 & pe) && qa.has(J) && qa.delete(J), J === ei && (go = ei = null, Wo = 0), (pe = 1 < ie.flags ? ie.lastEffect !== null ? (ie.lastEffect.nextEffect = ie).firstEffect : ie : ie.firstEffect) !== null) {
38509
38521
  if (ve = Zn, Zn |= 32, Hg.current = null, Xn = La, rc(Me = ea())) {
38510
38522
  if ("selectionStart" in Me)
38511
38523
  at = { start: Me.selectionStart, end: Me.selectionEnd };
@@ -38722,7 +38734,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
38722
38734
  }
38723
38735
  function X2(k, P, J) {
38724
38736
  var re = k.pingCache;
38725
- re !== null && re.delete(P), P = Ni(), k.pingedLanes |= k.suspendedLanes & J, Xo === k && (Wo & J) === J && (Do === 4 || Do === 3 && (62914560 & Wo) === Wo && qo() - Vg < 500 ? bc(k, 0) : Wg |= J), qi(k, P);
38737
+ re !== null && re.delete(P), P = Ni(), k.pingedLanes |= k.suspendedLanes & J, ei === k && (Wo & J) === J && (Do === 4 || Do === 3 && (62914560 & Wo) === Wo && qo() - Vg < 500 ? bc(k, 0) : Wg |= J), qi(k, P);
38726
38738
  }
38727
38739
  function eT(k, P, J, re) {
38728
38740
  this.tag = k, this.key = J, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = P, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = re, this.flags = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, this.childLanes = this.lanes = 0, this.alternate = null;
@@ -40247,11 +40259,11 @@ To resolve this only create new StyledComponents outside of any render method an
40247
40259
  function It(ye, Ue, rt) {
40248
40260
  var et = y(ye), gt = !lt(ye), pt = (pt = Ue.attrs) === void 0 ? _ : pt, xe = (xe = Ue.componentId) === void 0 ? ((Sn, Cn) => (Sn = typeof Sn != "string" ? "sc" : je(Sn), st[Sn] = (st[Sn] || 0) + 1, Sn = Sn + "-" + ze("5.3.11" + Sn + st[Sn]), Cn ? Cn + "-" + Sn : Sn))(Ue.displayName, Ue.parentComponentId) : xe, Ke = (ht = Ue.displayName) === void 0 ? lt(Ke = ye) ? "styled." + Ke : "Styled(" + x(Ke) + ")" : ht, ht = Ue.displayName && Ue.componentId ? je(Ue.displayName) + "-" + Ue.componentId : Ue.componentId || xe, zt = et && ye.attrs ? Array.prototype.concat(ye.attrs, pt).filter(Boolean) : pt;
40249
40261
  function Ut(Sn, Cn) {
40250
- var Yn, gr, po, Nr, Ar = nn, $o = qn, mr = Ar.attrs, xr = Ar.componentStyle, Br = Ar.defaultProps, _i = Ar.foldedComponentIds, lo = Ar.shouldForwardProp, bo = Ar.styledComponentId, Yo = Ar.target, co = (Br = rn(Sn, i.useContext(Le), Br) || E, gr = g({}, Sn, { theme: Br = Br === void 0 ? E : Br }), po = {}, mr.forEach(function(Li) {
40251
- var zn, $n, Zo, Uo = Li;
40262
+ var Yn, gr, po, Nr, Ar = nn, $o = qn, mr = Ar.attrs, xr = Ar.componentStyle, Br = Ar.defaultProps, _i = Ar.foldedComponentIds, lo = Ar.shouldForwardProp, bo = Ar.styledComponentId, Zo = Ar.target, co = (Br = rn(Sn, i.useContext(Le), Br) || E, gr = g({}, Sn, { theme: Br = Br === void 0 ? E : Br }), po = {}, mr.forEach(function(Li) {
40263
+ var zn, $n, Qo, Uo = Li;
40252
40264
  for (zn in Uo = w(Uo) ? Uo(gr) : Uo)
40253
- gr[zn] = po[zn] = zn === "className" ? ($n = po[zn], Zo = Uo[zn], $n && Zo ? $n + " " + Zo : $n || Zo) : Uo[zn];
40254
- }), mr = (Br = [gr, po])[1], Br = Br[0], Ar = r.env.NODE_ENV !== "production" ? Ar.warnTooManyClasses : void 0, co = Ee(), Yn = Xe(), xr = $o ? xr.generateAndInjectStyles(E, co, Yn) : xr.generateAndInjectStyles(Br, co, Yn), r.env.NODE_ENV !== "production" && !$o && Ar && Ar(xr), Br = xr, Cn), ai = mr.$as || Sn.$as || mr.as || Sn.as || Yo, Da = lt(ai), vo = mr !== Sn ? g({}, Sn, {}, mr) : Sn, dr = {};
40265
+ gr[zn] = po[zn] = zn === "className" ? ($n = po[zn], Qo = Uo[zn], $n && Qo ? $n + " " + Qo : $n || Qo) : Uo[zn];
40266
+ }), mr = (Br = [gr, po])[1], Br = Br[0], Ar = r.env.NODE_ENV !== "production" ? Ar.warnTooManyClasses : void 0, co = Ee(), Yn = Xe(), xr = $o ? xr.generateAndInjectStyles(E, co, Yn) : xr.generateAndInjectStyles(Br, co, Yn), r.env.NODE_ENV !== "production" && !$o && Ar && Ar(xr), Br = xr, Cn), ai = mr.$as || Sn.$as || mr.as || Sn.as || Zo, Da = lt(ai), vo = mr !== Sn ? g({}, Sn, {}, mr) : Sn, dr = {};
40255
40267
  for (Nr in vo)
40256
40268
  Nr[0] !== "$" && Nr !== "as" && (Nr === "forwardedAs" ? dr.as = vo[Nr] : (lo ? lo(Nr, h, ai) : !Da || h(Nr)) && (dr[Nr] = vo[Nr]));
40257
40269
  return Sn.style && mr.style !== Sn.style && (dr.style = g({}, Sn.style, {}, mr.style)), dr.className = Array.prototype.concat(_i, bo, Br !== bo ? Br : null, Sn.className, mr.className).filter(Boolean).join(" "), dr.ref = co, i.createElement(ai, dr);
@@ -47340,7 +47352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47340
47352
  Ye = Je;
47341
47353
  }, 1), Et = f, Bt = Re.codoxLogger, Gt = Re.startCb, dt = Re.sockOpenTimer, Mt = Re.editorInstance, tn = v.reportError.bind(v), Nt = v.addBreadcrumb.bind(v), rn = v.addTag.bind(v), Oe = (this.breadCrumb = Nt, this.editorInstance = Mt, Nt("[codoxi]* ccw: t = 0; CV=" + Lt + "; seid = " + Re.sid, b), rn("clientVersion", Lt), Re.ver), $e = this, je = (this.app = Re).appType, ze = Re.sid, lt = Re.domains, bt = Re.cid, At = (lt.b(), lt.c()), Ge = (At.sw && At.sw(this), Re.sysInfo), Le = Re.anyClient, Ve = Re.founder, st = He.Write, It = (Re.role && (st = Re.role), Gt), Qt = { sid: Ye, jointime: /* @__PURE__ */ new Date(), userinfo: Object.assign({}, Re.user), role: st, founder: Ve }, Xt = (this.minfo = Qt, null), Rt = null, Ae = null, Be = (d || (this.rangy || (this.rangy = e("rangy/lib/rangy-selectionsaverestore")), this.rangy.initialized) || this.rangy.init(), this.rangy = e("rangy/lib/rangy-selectionsaverestore"), this.rangy.init(), 0), ut = null, ye = null, Ue = [], rt = null, et = l.now(), gt = 0, pt = _, xe = ee.pmod(), Ke = !1, ht = null, zt = !1, Ut = (this.setSMC = function(Je) {
47342
47354
  zt = Je;
47343
- }, null), nn = null, Yt = null, on = null, sn = null, qn = null, Sn = null, Cn = null, Yn = null, gr = null, po = !0, Nr = !0, Ar = !0, $o = !0, mr = !0, xr = !0, Br = !0, _i = !0, lo = null, bo = null, Yo = null, co = null, ai = null, Da = null, vo = null, dr = null, Li = null, zn = null, $n = null, Zo = null, Uo = null, xi = null, Yi = null, Zi = null, ga = null;
47355
+ }, null), nn = null, Yt = null, on = null, sn = null, qn = null, Sn = null, Cn = null, Yn = null, gr = null, po = !0, Nr = !0, Ar = !0, $o = !0, mr = !0, xr = !0, Br = !0, _i = !0, lo = null, bo = null, Zo = null, co = null, ai = null, Da = null, vo = null, dr = null, Li = null, zn = null, $n = null, Qo = null, Uo = null, xi = null, Yi = null, Zi = null, ga = null;
47344
47356
  function jo(Je) {
47345
47357
  return Je && Je !== "pt" && $n.mbs.length, pt !== x && $n && $n.mbs && $n.mbs.length === 1;
47346
47358
  }
@@ -47522,7 +47534,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47522
47534
  var vn, pn;
47523
47535
  Ue.length != 0 && (pn = l.now() - ut, xe && !Ne() && pt === E && pn < 250 && An < 2e3 ? (g(ye), ye = setTimeout(function() {
47524
47536
  On(An + 250), ye = null;
47525
- }, 250)) : (pn = Ue.shift(), po && (mr = !mr), mr || pt === _ || !pn.context || pn.context.sid === Ye || $e.bium() || Q("ROH"), pn.so ? M(pn, $e) : z(pn) || (pn.hasOwnProperty("to") && bo && (bo.rto = pn.to, pn.context) && (pn.context.to = pn.to), pn.cmd ? Zo(pn) : (vn = {}, !Si || pn.t && pn.t === "sl" ? vn.op = pn.op : (vn.op = pn.op[0].po, vn.ao = pn.op[0].ao), vn.context = pn.context, pn.t && (vn.t = pn.t), mr || (we(pn = vn) ? Re.a.j(bt, { coords: pn.op, sid: pn.context.sid }) : (pn = Yo(pn)) != null && pn.op.length !== 0 && (ne(pn) ? nr(pn) : !be() && !me() || mr ? (pn.context.CAID = !1, vn = le.ccp, $n.DCPRops = vn($n.DCPRops, pn.op, $e, "ROHdmod"), $n.DCPRopsN++, $n.DCPRopsN, h($n.DCPRops)) : (_e($e) ? Z.roh(pn, $e) : U(pn, $e), !$e.bium() && pn.context.CAID && (h(pn), Ze(tt(), pn.context.caidinfo)))))), l.now()), 0 < Ue.length && On(1500)));
47537
+ }, 250)) : (pn = Ue.shift(), po && (mr = !mr), mr || pt === _ || !pn.context || pn.context.sid === Ye || $e.bium() || Q("ROH"), pn.so ? M(pn, $e) : z(pn) || (pn.hasOwnProperty("to") && bo && (bo.rto = pn.to, pn.context) && (pn.context.to = pn.to), pn.cmd ? Qo(pn) : (vn = {}, !Si || pn.t && pn.t === "sl" ? vn.op = pn.op : (vn.op = pn.op[0].po, vn.ao = pn.op[0].ao), vn.context = pn.context, pn.t && (vn.t = pn.t), mr || (we(pn = vn) ? Re.a.j(bt, { coords: pn.op, sid: pn.context.sid }) : (pn = Zo(pn)) != null && pn.op.length !== 0 && (ne(pn) ? nr(pn) : !be() && !me() || mr ? (pn.context.CAID = !1, vn = le.ccp, $n.DCPRops = vn($n.DCPRops, pn.op, $e, "ROHdmod"), $n.DCPRopsN++, $n.DCPRopsN, h($n.DCPRops)) : (_e($e) ? Z.roh(pn, $e) : U(pn, $e), !$e.bium() && pn.context.CAID && (h(pn), Ze(tt(), pn.context.caidinfo)))))), l.now()), 0 < Ue.length && On(1500)));
47526
47538
  }(0), l.now());
47527
47539
  }, this.gls = function() {
47528
47540
  var Je;
@@ -47767,7 +47779,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47767
47779
  }
47768
47780
  wi = Zr || uo || $i || H;
47769
47781
  }
47770
- if (vt.sot && (Ut = vt.sot, $e.jstp = Ut), vt.tmk && (qn = vt.tmk.o, Sn = vt.tmk.c, gr = vt.tmk.tn, Cn = vt.tmk.m, Yn = '<span id="' + Cn + "_"), vt.lmt && (vt.lmt.mos, on = vt.lmt.mms, sn = vt.lmt.dms, $e.lmt = vt.lmt), vt.dt && (Yt = vt.dt, $e.dlttp = Yt), xr || (Zt = Ye, lo = new B($e, !1, xr), (bo = lo.gct()).sid = Zt, Yo = lo.pr, lo.pl, co = lo.sc, ai = lo.aptm, Da = lo.rstm, lo.satm, $e.pt = lo, vo = new R($e, lo, xr, Ut), dr = vo.pu, Li = vo.gfdt, $e.pu = vo), !$o && !Br)
47782
+ if (vt.sot && (Ut = vt.sot, $e.jstp = Ut), vt.tmk && (qn = vt.tmk.o, Sn = vt.tmk.c, gr = vt.tmk.tn, Cn = vt.tmk.m, Yn = '<span id="' + Cn + "_"), vt.lmt && (vt.lmt.mos, on = vt.lmt.mms, sn = vt.lmt.dms, $e.lmt = vt.lmt), vt.dt && (Yt = vt.dt, $e.dlttp = Yt), xr || (Zt = Ye, lo = new B($e, !1, xr), (bo = lo.gct()).sid = Zt, Zo = lo.pr, lo.pl, co = lo.sc, ai = lo.aptm, Da = lo.rstm, lo.satm, $e.pt = lo, vo = new R($e, lo, xr, Ut), dr = vo.pu, Li = vo.gfdt, $e.pu = vo), !$o && !Br)
47771
47783
  if (_i || !zi && !Qi)
47772
47784
  if (uo || Io) {
47773
47785
  vt = { obf: Br, types: Ut }, Ce.type.init(vt), Zt = { obf: $o, ob: qn, cb: Sn, tiny: H, tinysc: gr };
@@ -47779,7 +47791,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
47779
47791
  vt = { obf: $o, ob: qn, cb: Sn, tiny: H, tinysc: gr }, Zt = { obf: Br, types: Ut }, Te.sdfi(vt), ke.rtfi(Zt), $e.rtf = ke, $e.sdf = Te;
47780
47792
  else
47781
47793
  On = { types: Ut, dt: Yt, obf: !1 }, de.di(On), $e.dtf = de;
47782
- mr || (xi = new O({ cw: $e, app: Re, cmd: At, type: Ut, obfroh: mr, obfcr: Ar }), Yi = xi.urcs, Zi = xi.uc, ga = xi.nuc, $e.rcs = xi), vt = je == "quilljs" || je == "quilljs_clickup" ? At.getContents() : Po || li ? At.gj() : At.d(), zn = new F({ cw: $e, cb: It, app: Re, cd: lt, cmd: At, mi: Qt, lidoc: vt, log: Bt, tm: Ee, obf: Nr, bv: Oe }), Uo = zn.rs, $n = zn.se, $e.se = $n, Zo = zn.pc, $e.dsm = zn, li || Po || lt.a(), Bi[0] = H ? { pos: 48 } : { pos: -1 };
47794
+ mr || (xi = new O({ cw: $e, app: Re, cmd: At, type: Ut, obfroh: mr, obfcr: Ar }), Yi = xi.urcs, Zi = xi.uc, ga = xi.nuc, $e.rcs = xi), vt = je == "quilljs" || je == "quilljs_clickup" ? At.getContents() : Po || li ? At.gj() : At.d(), zn = new F({ cw: $e, cb: It, app: Re, cd: lt, cmd: At, mi: Qt, lidoc: vt, log: Bt, tm: Ee, obf: Nr, bv: Oe }), Uo = zn.rs, $n = zn.se, $e.se = $n, Qo = zn.pc, $e.dsm = zn, li || Po || lt.a(), Bi[0] = H ? { pos: 48 } : { pos: -1 };
47783
47795
  for (var An = 1; An < 5; An++)
47784
47796
  Bi[An] = { pos: -1 };
47785
47797
  if (Ve) {
@@ -54649,7 +54661,7 @@ var VA = (c) => {
54649
54661
  var t = {};
54650
54662
  return In.d(t, c), t;
54651
54663
  };
54652
- const $t = VA({ $addUpdateTag: () => BT, $createNodeSelection: () => Xp, $createParagraphNode: () => Tn, $createRangeSelection: () => yu, $getEditor: () => VT, $getNodeByKey: () => er, $getRoot: () => Ln, $getSelection: () => jt, $isDecoratorNode: () => _r, $isElementNode: () => kt, $isLineBreakNode: () => Aa, $isNodeSelection: () => io, $isParagraphNode: () => Rr, $isRangeSelection: () => Tt, $isTextNode: () => Kt, $nodesOfType: () => ww, $setSelection: () => qr, CAN_REDO_COMMAND: () => Jc, CAN_UNDO_COMMAND: () => Vc, CLEAR_EDITOR_COMMAND: () => Nh, COMMAND_PRIORITY_CRITICAL: () => Jo, COMMAND_PRIORITY_EDITOR: () => jn, CUT_COMMAND: () => Xd, DecoratorNode: () => ss, ElementNode: () => Vr, KEY_BACKSPACE_COMMAND: () => el, KEY_DELETE_COMMAND: () => tl, KEY_ESCAPE_COMMAND: () => Zl, LineBreakNode: () => gu, PASTE_COMMAND: () => Xs, ParagraphNode: () => il, REDO_COMMAND: () => ou, RootNode: () => vu, TextNode: () => ao, UNDO_COMMAND: () => ru, createCommand: () => Ao, createEditor: () => $h });
54664
+ const $t = VA({ $addUpdateTag: () => BT, $createNodeSelection: () => Xp, $createParagraphNode: () => Tn, $createRangeSelection: () => yu, $getEditor: () => VT, $getNodeByKey: () => er, $getRoot: () => Ln, $getSelection: () => jt, $isDecoratorNode: () => _r, $isElementNode: () => kt, $isLineBreakNode: () => Aa, $isNodeSelection: () => io, $isParagraphNode: () => Ir, $isRangeSelection: () => Tt, $isTextNode: () => Kt, $nodesOfType: () => ww, $setSelection: () => qr, CAN_REDO_COMMAND: () => Jc, CAN_UNDO_COMMAND: () => Vc, CLEAR_EDITOR_COMMAND: () => Nh, COMMAND_PRIORITY_CRITICAL: () => Jo, COMMAND_PRIORITY_EDITOR: () => jn, CUT_COMMAND: () => Xd, DecoratorNode: () => ss, ElementNode: () => Vr, KEY_BACKSPACE_COMMAND: () => el, KEY_DELETE_COMMAND: () => tl, KEY_ESCAPE_COMMAND: () => Zl, LineBreakNode: () => gu, PASTE_COMMAND: () => Xs, ParagraphNode: () => il, REDO_COMMAND: () => ou, RootNode: () => vu, TextNode: () => ao, UNDO_COMMAND: () => ru, createCommand: () => Ao, createEditor: () => $h });
54653
54665
  var KA = (c) => {
54654
54666
  var t = {};
54655
54667
  return In.d(t, c), t;
@@ -54827,7 +54839,7 @@ var vj = (c) => {
54827
54839
  var t = {};
54828
54840
  return In.d(t, c), t;
54829
54841
  };
54830
- const ft = vj({ Fragment: () => sr.Fragment, createContext: () => sr.createContext, createElement: () => sr.createElement, forwardRef: () => sr.forwardRef, useCallback: () => sr.useCallback, useContext: () => sr.useContext, useEffect: () => sr.useEffect, useImperativeHandle: () => sr.useImperativeHandle, useLayoutEffect: () => sr.useLayoutEffect, useMemo: () => sr.useMemo, useRef: () => sr.useRef, useState: () => sr.useState });
54842
+ const ft = vj({ Fragment: () => ar.Fragment, createContext: () => ar.createContext, createElement: () => ar.createElement, forwardRef: () => ar.forwardRef, useCallback: () => ar.useCallback, useContext: () => ar.useContext, useEffect: () => ar.useEffect, useImperativeHandle: () => ar.useImperativeHandle, useLayoutEffect: () => ar.useLayoutEffect, useMemo: () => ar.useMemo, useRef: () => ar.useRef, useState: () => ar.useState });
54831
54843
  class _j {
54832
54844
  constructor() {
54833
54845
  this.subscribers = {};
@@ -55476,21 +55488,21 @@ class gn {
55476
55488
  }
55477
55489
  static createRangeSelection(t, n, e, s, o, r) {
55478
55490
  if (!(arguments.length > 6 && arguments[6] !== void 0 && arguments[6])) {
55479
- if (!(Pr(t) || Rc(t) || (mt.default.warn("[createRangeSelection] anchor node is not text or element node - finding closest parent element node "), t = gn.findClosestParentElementNode(t))))
55491
+ if (!(Mr(t) || Rc(t) || (mt.default.warn("[createRangeSelection] anchor node is not text or element node - finding closest parent element node "), t = gn.findClosestParentElementNode(t))))
55480
55492
  return mt.default.warn("[createRangeSelection] unable to find anchor closest parent element node - dropping to null"), null;
55481
- if (!(Pr(n) || Rc(n) || (mt.default.warn("[createRangeSelection] focus node is not text or element node - finding closest parent element node "), n = gn.findClosestParentElementNode(n))))
55493
+ if (!(Mr(n) || Rc(n) || (mt.default.warn("[createRangeSelection] focus node is not text or element node - finding closest parent element node "), n = gn.findClosestParentElementNode(n))))
55482
55494
  return mt.default.warn("[createRangeSelection] unable to find focus closest parent element node - dropping to null"), null;
55483
55495
  }
55484
55496
  let a = (0, $t.$createRangeSelection)();
55485
55497
  a.dirty = !1, a.format = o, a.setStyle(r);
55486
- let l = Pr(t) ? Rs.text : Rs.element, i = Pr(n) ? Rs.text : Rs.element;
55498
+ let l = Mr(t) ? Rs.text : Rs.element, i = Mr(n) ? Rs.text : Rs.element;
55487
55499
  return a.anchor.set(t.getKey(), e, l), a.focus.set(n.getKey(), s, i), a;
55488
55500
  }
55489
55501
  static getSelectedCandidateFromParentChildren(t, n) {
55490
55502
  let e = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], s = null, o = n;
55491
55503
  if (n === 0) {
55492
55504
  const r = t.getFirstChild();
55493
- s = Pr(r) ? r : t;
55505
+ s = Mr(r) ? r : t;
55494
55506
  } else {
55495
55507
  let r = t.getChildren(), a = [];
55496
55508
  for (let i of r)
@@ -55507,7 +55519,7 @@ class gn {
55507
55519
  if (l <= u) {
55508
55520
  if (nb(i)) {
55509
55521
  let f = i.getNextSibling();
55510
- f && Pr(f) ? (s = f, o = 0) : (s = t, o = i.getPreviousSiblings().length + 1);
55522
+ f && Mr(f) ? (s = f, o = 0) : (s = t, o = i.getPreviousSiblings().length + 1);
55511
55523
  break;
55512
55524
  }
55513
55525
  Tr(i) && (e || (l = 0)), s = i, o = l;
@@ -55517,7 +55529,7 @@ class gn {
55517
55529
  }
55518
55530
  if (!s) {
55519
55531
  const i = t.getLastChild();
55520
- Pr(i) ? (s = i, o = i.getTextContentSize()) : (s = t, o = t.getChildrenSize());
55532
+ Mr(i) ? (s = i, o = i.getTextContentSize()) : (s = t, o = t.getChildrenSize());
55521
55533
  }
55522
55534
  }
55523
55535
  return { candidate: s, candidateOffset: o };
@@ -55575,10 +55587,10 @@ class gn {
55575
55587
  }
55576
55588
  if (!p || !h)
55577
55589
  return null;
55578
- let y = Pr(p), S = Pr(h), C = Tr(p), O = Tr(h), F = u.getKey() === d.getKey(), B = F && r - s == 1, R = F && r === s && p.getKey() === h.getKey(), L = s !== r, N = p.getKey() === h.getKey();
55590
+ let y = Mr(p), S = Mr(h), C = Tr(p), O = Tr(h), F = u.getKey() === d.getKey(), B = F && r - s == 1, R = F && r === s && p.getKey() === h.getKey(), L = s !== r, N = p.getKey() === h.getKey();
55579
55591
  if (C && O && R) {
55580
55592
  let j = p.getNextSibling();
55581
- if (j && Pr(j))
55593
+ if (j && Mr(j))
55582
55594
  return gn.createRangeSelection(j, j, 0, 0, a, l);
55583
55595
  if (j && (0, $t.$isParagraphNode)(j))
55584
55596
  return gn.createNodeSelection(p, h);
@@ -55593,14 +55605,14 @@ class gn {
55593
55605
  return gn.createNodeSelection(p, h);
55594
55606
  {
55595
55607
  let j, $, M, z, V = p.getNextSibling();
55596
- if (V && Pr(V))
55608
+ if (V && Mr(V))
55597
55609
  j = V, M = 0;
55598
55610
  else {
55599
55611
  let { parent: I, parentOffset: q } = gn.getSelectedParentAndOffset(p);
55600
55612
  j = I, M = q;
55601
55613
  }
55602
55614
  let K = h.getNextSibling();
55603
- if (K && Pr(K))
55615
+ if (K && Mr(K))
55604
55616
  $ = K, z = 0;
55605
55617
  else {
55606
55618
  let { parent: I, parentOffset: q } = gn.getSelectedParentAndOffset(h);
@@ -55612,25 +55624,25 @@ class gn {
55612
55624
  if (y && S && L)
55613
55625
  if (A) {
55614
55626
  let j = g === h.getTextContentSize(), $ = h.getNextSibling();
55615
- if (j && $ && Pr($))
55627
+ if (j && $ && Mr($))
55616
55628
  return gn.createRangeSelection(p, $, m, 0, a, l);
55617
55629
  } else {
55618
55630
  let j = m === p.getTextContentSize(), $ = p.getNextSibling();
55619
- if (j && $ && Pr($))
55631
+ if (j && $ && Mr($))
55620
55632
  return gn.createRangeSelection($, h, 0, g, a, l);
55621
55633
  }
55622
55634
  if (L && !C && O) {
55623
55635
  if (B)
55624
55636
  return gn.createNodeSelection(h);
55625
55637
  let [j, ...$] = D, M = $.every((V) => Tr(V));
55626
- if (Pr(j) && m === j.getTextContentSize() && M)
55638
+ if (Mr(j) && m === j.getTextContentSize() && M)
55627
55639
  return gn.createNodeSelection($[0], h);
55628
55640
  let z = h.getNextSibling();
55629
- if (Pr(p) && p.getTextContentSize() === m && !A) {
55641
+ if (Mr(p) && p.getTextContentSize() === m && !A) {
55630
55642
  let V = p.getNextSibling();
55631
- V && Pr(V) && (p = V, m = 0);
55643
+ V && Mr(V) && (p = V, m = 0);
55632
55644
  }
55633
- if (z && Pr(z))
55645
+ if (z && Mr(z))
55634
55646
  return gn.createRangeSelection(p, z, m, 0, a, l);
55635
55647
  {
55636
55648
  let { parent: V, parentOffset: K } = gn.getSelectedParentAndOffset(h);
@@ -55639,10 +55651,10 @@ class gn {
55639
55651
  }
55640
55652
  if (L && C && !O) {
55641
55653
  let [j, ...$] = D, M = $.every((V) => Tr(V));
55642
- if (Pr(j) && g === j.getTextContentSize() && M)
55654
+ if (Mr(j) && g === j.getTextContentSize() && M)
55643
55655
  return gn.createNodeSelection(p, $[0]);
55644
55656
  let z = p.getNextSibling();
55645
- if (z && Pr(z))
55657
+ if (z && Mr(z))
55646
55658
  return gn.createRangeSelection(z, h, 0, g, a, l);
55647
55659
  {
55648
55660
  let { parent: V, parentOffset: K } = gn.getSelectedParentAndOffset(p);
@@ -57153,7 +57165,7 @@ function ku(c) {
57153
57165
  };
57154
57166
  return Object.defineProperty(n, "name", { value: t, writable: !0 }), n;
57155
57167
  }
57156
- const Dl = (c) => c.__type === "root" || c.type === "root", J_ = (c) => Dl(c.getParent()), Pr = (c) => c.__type === ph.text || c.type === ph.text || c.hasOwnProperty("__text") || c.hasOwnProperty("text"), Rc = (c) => (0, $t.$isElementNode)(c), Dc = (c) => (0, kr.$isTableNode)(c) || (0, kr.$isTableRowNode)(c) || (0, kr.$isTableCellNode)(c), VI = (c) => !c.getChildren, V_ = (c) => !!c.getChildren, Tr = (c) => (0, $t.$isDecoratorNode)(c), Od = (c) => (0, GA.$isLinkNode)(c), Nd = (c) => c.__type === "mark" || c.type === "mark", nb = (c) => (0, $t.$isLineBreakNode)(c), zs = (c) => Pr(c) || nb(c), $y = (c) => c.__type === ph.horizontalrule || c.type === ph.horizontalrule, KI = (c) => c.__type === "image" || c.type === "image", GI = (c) => c.__type === "inline-image" || c.type === "inline-image", oC = (c) => {
57168
+ const Dl = (c) => c.__type === "root" || c.type === "root", J_ = (c) => Dl(c.getParent()), Mr = (c) => c.__type === ph.text || c.type === ph.text || c.hasOwnProperty("__text") || c.hasOwnProperty("text"), Rc = (c) => (0, $t.$isElementNode)(c), Dc = (c) => (0, kr.$isTableNode)(c) || (0, kr.$isTableRowNode)(c) || (0, kr.$isTableCellNode)(c), VI = (c) => !c.getChildren, V_ = (c) => !!c.getChildren, Tr = (c) => (0, $t.$isDecoratorNode)(c), Od = (c) => (0, GA.$isLinkNode)(c), Nd = (c) => c.__type === "mark" || c.type === "mark", nb = (c) => (0, $t.$isLineBreakNode)(c), zs = (c) => Mr(c) || nb(c), $y = (c) => c.__type === ph.horizontalrule || c.type === ph.horizontalrule, KI = (c) => c.__type === "image" || c.type === "image", GI = (c) => c.__type === "inline-image" || c.type === "inline-image", oC = (c) => {
57157
57169
  if (zs(c) || Od(c) || Nd(c))
57158
57170
  return !1;
57159
57171
  if (!c.__parent || c.__parent === "root" || (0, $t.$isParagraphNode)(c))
@@ -57255,14 +57267,14 @@ const Dl = (c) => c.__type === "root" || c.type === "root", J_ = (c) => Dl(c.get
57255
57267
  const t = `__nativeExportJSON_${c.name}`;
57256
57268
  c.prototype[t] = ku(c.prototype.exportJSON, t), c.prototype.exportJSON = function() {
57257
57269
  const n = this[t]();
57258
- return this.codoxId && (n.codoxId = this.codoxId), this.codoxDId && (n.codoxDId = this.codoxDId), Pr(this) && rC(n.format) && this.hasFormat && (n.format = sj(this)), Pr(n) && n.style && (n.style.endsWith(";") || (n.style += ";")), ZI(n);
57270
+ return this.codoxId && (n.codoxId = this.codoxId), this.codoxDId && (n.codoxDId = this.codoxDId), Mr(this) && rC(n.format) && this.hasFormat && (n.format = sj(this)), Mr(n) && n.style && (n.style.endsWith(";") || (n.style += ";")), ZI(n);
57259
57271
  };
57260
57272
  }, nP = (c) => {
57261
57273
  const t = "__nativeImportJSON";
57262
57274
  c[t] = ku(c.importJSON, t), c.importJSON = function(n) {
57263
57275
  let { ___ignoreCodox: e } = n;
57264
57276
  const s = nC({}, UI(n, $I));
57265
- Pr(s) && !rC(s.format) && (s.format = aj(s.format)), Pr(s) && s.style && (s.style.endsWith(";") || (s.style += ";"));
57277
+ Mr(s) && !rC(s.format) && (s.format = aj(s.format)), Mr(s) && s.style && (s.style.endsWith(";") || (s.style += ";"));
57266
57278
  const o = c[t](s);
57267
57279
  if (e)
57268
57280
  return o;
@@ -60060,7 +60072,7 @@ const NC = ({ styleConfig: c }) => {
60060
60072
  return;
60061
60073
  function d(h, m, g, v, b, _) {
60062
60074
  var S, C, O;
60063
- const E = (S = h.getTextContent) == null ? void 0 : S.call(h), w = (C = h.getKey) == null ? void 0 : C.call(h), x = uh(h), y = Rr(h);
60075
+ const E = (S = h.getTextContent) == null ? void 0 : S.call(h), w = (C = h.getKey) == null ? void 0 : C.call(h), x = uh(h), y = Ir(h);
60064
60076
  if (!b && E && E.trim() && w) {
60065
60077
  const F = m.getElementByKey(w);
60066
60078
  if (F) {
@@ -60105,7 +60117,7 @@ const NC = ({ styleConfig: c }) => {
60105
60117
  }
60106
60118
  }
60107
60119
  });
60108
- }) : void 0, [o]), console.log("refs2", r);
60120
+ }) : void 0, [o]);
60109
60121
  const u = l ? r.filter(
60110
60122
  (d) => d.label.toLowerCase().includes(l.toLowerCase())
60111
60123
  ) : r;
@@ -60636,7 +60648,7 @@ function MC() {
60636
60648
  }
60637
60649
  function jM({ editorRef: c }) {
60638
60650
  const [t] = kn();
60639
- return sr.useEffect(() => {
60651
+ return ar.useEffect(() => {
60640
60652
  typeof c == "function" ? c(t) : typeof c == "object" && (c.current = t);
60641
60653
  }, [t]), null;
60642
60654
  }
@@ -61172,7 +61184,7 @@ class yf extends RM {
61172
61184
  */
61173
61185
  load() {
61174
61186
  const t = this._item;
61175
- t !== null && !this.shouldLoad && Mr(
61187
+ t !== null && !this.shouldLoad && Rr(
61176
61188
  /** @type {any} */
61177
61189
  t.parent.doc,
61178
61190
  (n) => {
@@ -61202,7 +61214,7 @@ class yf extends RM {
61202
61214
  * @public
61203
61215
  */
61204
61216
  transact(t, n = null) {
61205
- return Mr(this, t, n);
61217
+ return Rr(this, t, n);
61206
61218
  }
61207
61219
  /**
61208
61220
  * Define a shared data type.
@@ -61342,7 +61354,7 @@ class yf extends RM {
61342
61354
  /** @type {ContentDoc} */
61343
61355
  t.content
61344
61356
  );
61345
- n.doc = new yf({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, Mr(
61357
+ n.doc = new yf({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, Rr(
61346
61358
  /** @type {any} */
61347
61359
  t.parent.doc,
61348
61360
  (e) => {
@@ -61676,7 +61688,7 @@ const cb = (c) => {
61676
61688
  G4
61677
61689
  ), r0 = (c, t, n) => {
61678
61690
  const e = os(t, n), s = t[e];
61679
- return s.id.clock < n && s instanceof Ko ? (t.splice(e + 1, 0, y2(c, s, n - s.id.clock)), e + 1) : e;
61691
+ return s.id.clock < n && s instanceof Go ? (t.splice(e + 1, 0, y2(c, s, n - s.id.clock)), e + 1) : e;
61680
61692
  }, Qs = (c, t) => {
61681
61693
  const n = (
61682
61694
  /** @type {Array<Item>} */
@@ -61718,7 +61730,7 @@ const Dx = (c, t) => t.deleteSet.clients.size === 0 && !PM(t.afterState, (n, e)
61718
61730
  let n = c[t], e = c[t - 1], s = t;
61719
61731
  for (; s > 0; n = e, e = c[--s - 1]) {
61720
61732
  if (e.deleted === n.deleted && e.constructor === n.constructor && e.mergeWith(n)) {
61721
- n instanceof Ko && n.parentSub !== null && /** @type {AbstractType<any>} */
61733
+ n instanceof Go && n.parentSub !== null && /** @type {AbstractType<any>} */
61722
61734
  n.parent._map.get(n.parentSub) === n && n.parent._map.set(
61723
61735
  n.parentSub,
61724
61736
  /** @type {Item} */
@@ -61742,7 +61754,7 @@ const Dx = (c, t) => t.deleteSet.clients.size === 0 && !PM(t.afterState, (n, e)
61742
61754
  const f = o[i];
61743
61755
  if (a.clock + a.len <= f.id.clock)
61744
61756
  break;
61745
- f instanceof Ko && f.deleted && !f.keep && n(f) && f.gc(t, !1);
61757
+ f instanceof Go && f.deleted && !f.keep && n(f) && f.gc(t, !1);
61746
61758
  }
61747
61759
  }
61748
61760
  }
@@ -61810,7 +61822,7 @@ const Dx = (c, t) => t.deleteSet.clients.size === 0 && !PM(t.afterState, (n, e)
61810
61822
  }), i.forEach((u) => e.subdocs.delete(u)), e.emit("subdocs", [{ loaded: l, added: a, removed: i }, e, n]), i.forEach((u) => u.destroy())), c.length <= t + 1 ? (e._transactionCleanups = [], e.emit("afterAllTransactions", [e, c])) : XC(c, t + 1);
61811
61823
  }
61812
61824
  }
61813
- }, Mr = (c, t, n = null, e = !0) => {
61825
+ }, Rr = (c, t, n = null, e = !0) => {
61814
61826
  const s = c._transactionCleanups;
61815
61827
  let o = !1, r = null;
61816
61828
  c._transaction === null && (o = !0, c._transaction = new Z4(c, n, e), s.push(c._transaction), s.length === 1 && c.emit("beforeAllTransactions", [c]), c.emit("beforeTransaction", [c._transaction, c]));
@@ -62229,7 +62241,7 @@ const n2 = (c, t, n) => {
62229
62241
  const o = c.doc, r = o.clientID, a = o.store, l = n === null ? t._start : n.right;
62230
62242
  let i = [];
62231
62243
  const u = () => {
62232
- i.length > 0 && (s = new Ko(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new hu(i)), s.integrate(c, 0), i = []);
62244
+ i.length > 0 && (s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new hu(i)), s.integrate(c, 0), i = []);
62233
62245
  };
62234
62246
  e.forEach((f) => {
62235
62247
  if (f === null)
@@ -62247,20 +62259,20 @@ const n2 = (c, t, n) => {
62247
62259
  switch (u(), f.constructor) {
62248
62260
  case Uint8Array:
62249
62261
  case ArrayBuffer:
62250
- s = new Ko(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new cg(new Uint8Array(
62262
+ s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new cg(new Uint8Array(
62251
62263
  /** @type {Uint8Array} */
62252
62264
  f
62253
62265
  ))), s.integrate(c, 0);
62254
62266
  break;
62255
62267
  case yf:
62256
- s = new Ko(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new ug(
62268
+ s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new ug(
62257
62269
  /** @type {Doc} */
62258
62270
  f
62259
62271
  )), s.integrate(c, 0);
62260
62272
  break;
62261
62273
  default:
62262
62274
  if (f instanceof zo)
62263
- s = new Ko(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new ll(f)), s.integrate(c, 0);
62275
+ s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new ll(f)), s.integrate(c, 0);
62264
62276
  else
62265
62277
  throw new Error("Unexpected content type in insert operation");
62266
62278
  }
@@ -62340,7 +62352,7 @@ const n2 = (c, t, n) => {
62340
62352
  else
62341
62353
  throw new Error("Unexpected content type");
62342
62354
  }
62343
- new Ko(to(r, yi(o.store, r)), s, s && s.lastId, null, null, t, n, a).integrate(c, 0);
62355
+ new Go(to(r, yi(o.store, r)), s, s && s.lastId, null, null, t, n, a).integrate(c, 0);
62344
62356
  }, fb = (c, t) => {
62345
62357
  const n = c._map.get(t);
62346
62358
  return n !== void 0 && !n.deleted ? n.content.getContent()[n.length - 1] : void 0;
@@ -62456,7 +62468,7 @@ class Fl extends zo {
62456
62468
  * @param {Array<T>} content The array of content
62457
62469
  */
62458
62470
  insert(t, n) {
62459
- this.doc !== null ? Mr(this.doc, (e) => {
62471
+ this.doc !== null ? Rr(this.doc, (e) => {
62460
62472
  s2(
62461
62473
  e,
62462
62474
  this,
@@ -62474,7 +62486,7 @@ class Fl extends zo {
62474
62486
  * @todo Use the following implementation in all types.
62475
62487
  */
62476
62488
  push(t) {
62477
- this.doc !== null ? Mr(this.doc, (n) => {
62489
+ this.doc !== null ? Rr(this.doc, (n) => {
62478
62490
  iR(
62479
62491
  n,
62480
62492
  this,
@@ -62498,7 +62510,7 @@ class Fl extends zo {
62498
62510
  * @param {number} length The number of elements to remove. Defaults to 1.
62499
62511
  */
62500
62512
  delete(t, n = 1) {
62501
- this.doc !== null ? Mr(this.doc, (e) => {
62513
+ this.doc !== null ? Rr(this.doc, (e) => {
62502
62514
  l2(e, this, t, n);
62503
62515
  }) : this._prelimContent.splice(t, n);
62504
62516
  }
@@ -62723,7 +62735,7 @@ class fu extends zo {
62723
62735
  * @param {string} key The key of the element to remove.
62724
62736
  */
62725
62737
  delete(t) {
62726
- this.doc !== null ? Mr(this.doc, (n) => {
62738
+ this.doc !== null ? Rr(this.doc, (n) => {
62727
62739
  yh(n, this, t);
62728
62740
  }) : this._prelimContent.delete(t);
62729
62741
  }
@@ -62736,7 +62748,7 @@ class fu extends zo {
62736
62748
  * @return {VAL}
62737
62749
  */
62738
62750
  set(t, n) {
62739
- return this.doc !== null ? Mr(this.doc, (e) => {
62751
+ return this.doc !== null ? Rr(this.doc, (e) => {
62740
62752
  db(
62741
62753
  e,
62742
62754
  this,
@@ -62771,7 +62783,7 @@ class fu extends zo {
62771
62783
  * Removes all elements from this YMap.
62772
62784
  */
62773
62785
  clear() {
62774
- this.doc !== null ? Mr(this.doc, (t) => {
62786
+ this.doc !== null ? Rr(this.doc, (t) => {
62775
62787
  this.forEach(function(n, e, s) {
62776
62788
  yh(t, s, e);
62777
62789
  });
@@ -62855,7 +62867,7 @@ const Bx = (c, t, n) => {
62855
62867
  ), n.forward();
62856
62868
  const s = c.doc, o = s.clientID;
62857
62869
  e.forEach((r, a) => {
62858
- const l = n.left, i = n.right, u = new Ko(to(o, yi(s.store, o)), l, l && l.lastId, i, i && i.id, t, null, new No(a, r));
62870
+ const l = n.left, i = n.right, u = new Go(to(o, yi(s.store, o)), l, l && l.lastId, i, i && i.id, t, null, new No(a, r));
62859
62871
  u.integrate(c, 0), n.right = u, n.forward();
62860
62872
  });
62861
62873
  }, Au = (c, t) => {
@@ -62881,7 +62893,7 @@ const Bx = (c, t, n) => {
62881
62893
  if (!qs(i, l)) {
62882
62894
  r.set(a, i);
62883
62895
  const { left: u, right: f } = n;
62884
- n.right = new Ko(to(o, yi(s.store, o)), u, u && u.lastId, f, f && f.id, t, null, new No(a, l)), n.right.integrate(c, 0), n.forward();
62896
+ n.right = new Go(to(o, yi(s.store, o)), u, u && u.lastId, f, f && f.id, t, null, new No(a, l)), n.right.integrate(c, 0), n.forward();
62885
62897
  }
62886
62898
  }
62887
62899
  return r;
@@ -62896,7 +62908,7 @@ const Bx = (c, t, n) => {
62896
62908
  e
62897
62909
  ) : e instanceof zo ? new ll(e) : new ju(e);
62898
62910
  let { left: i, right: u, index: f } = n;
62899
- t._searchMarker && Hd(t._searchMarker, n.index, l.getLength()), u = new Ko(to(r, yi(o.store, r)), i, i && i.lastId, u, u && u.id, t, null, l), u.integrate(c, 0), n.right = u, n.index = f, n.forward(), f2(c, t, n, a);
62911
+ t._searchMarker && Hd(t._searchMarker, n.index, l.getLength()), u = new Go(to(r, yi(o.store, r)), i, i && i.lastId, u, u && u.id, t, null, l), u.integrate(c, 0), n.right = u, n.index = f, n.forward(), f2(c, t, n, a);
62900
62912
  }, zx = (c, t, n, e, s) => {
62901
62913
  const o = c.doc, r = o.clientID;
62902
62914
  p2(n, s);
@@ -62934,7 +62946,7 @@ const Bx = (c, t, n) => {
62934
62946
  for (; e > 0; e--)
62935
62947
  l += `
62936
62948
  `;
62937
- n.right = new Ko(to(r, yi(o.store, r)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new is(l)), n.right.integrate(c, 0), n.forward();
62949
+ n.right = new Go(to(r, yi(o.store, r)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new is(l)), n.right.integrate(c, 0), n.forward();
62938
62950
  }
62939
62951
  f2(c, t, n, a);
62940
62952
  }, g2 = (c, t, n, e, s) => {
@@ -62989,7 +63001,7 @@ const Bx = (c, t, n) => {
62989
63001
  }
62990
63002
  }, cR = (c) => {
62991
63003
  let t = 0;
62992
- return Mr(
63004
+ return Rr(
62993
63005
  /** @type {Doc} */
62994
63006
  c.doc,
62995
63007
  (n) => {
@@ -63035,7 +63047,7 @@ const Bx = (c, t, n) => {
63035
63047
  }
63036
63048
  );
63037
63049
  }
63038
- Mr(n, (e) => {
63050
+ Rr(n, (e) => {
63039
63051
  WC(c, c.deleteSet, (s) => {
63040
63052
  if (s instanceof $s || !/** @type {YText} */
63041
63053
  s.parent._hasFormatting || t.has(
@@ -63116,7 +63128,7 @@ class dR extends ag {
63116
63128
  /** @type {Doc} */
63117
63129
  this.target.doc
63118
63130
  ), n = [];
63119
- Mr(t, (e) => {
63131
+ Rr(t, (e) => {
63120
63132
  const s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
63121
63133
  let r = this.target._start, a = null;
63122
63134
  const l = {};
@@ -63279,7 +63291,7 @@ class bh extends zo {
63279
63291
  * @public
63280
63292
  */
63281
63293
  applyDelta(t, { sanitize: n = !0 } = {}) {
63282
- this.doc !== null ? Mr(this.doc, (e) => {
63294
+ this.doc !== null ? Rr(this.doc, (e) => {
63283
63295
  const s = new o0(null, this._start, 0, /* @__PURE__ */ new Map());
63284
63296
  for (let o = 0; o < t.length; o++) {
63285
63297
  const r = t[o];
@@ -63359,7 +63371,7 @@ class bh extends zo {
63359
63371
  }
63360
63372
  i();
63361
63373
  };
63362
- return t || n ? Mr(r, (f) => {
63374
+ return t || n ? Rr(r, (f) => {
63363
63375
  t && n0(f, t), n && n0(f, n), u();
63364
63376
  }, "cleanup") : u(), s;
63365
63377
  }
@@ -63377,7 +63389,7 @@ class bh extends zo {
63377
63389
  if (n.length <= 0)
63378
63390
  return;
63379
63391
  const s = this.doc;
63380
- s !== null ? Mr(s, (o) => {
63392
+ s !== null ? Rr(s, (o) => {
63381
63393
  const r = mp(o, this, t, !e);
63382
63394
  e || (e = {}, r.currentAttributes.forEach((a, l) => {
63383
63395
  e[l] = a;
@@ -63396,7 +63408,7 @@ class bh extends zo {
63396
63408
  */
63397
63409
  insertEmbed(t, n, e) {
63398
63410
  const s = this.doc;
63399
- s !== null ? Mr(s, (o) => {
63411
+ s !== null ? Rr(s, (o) => {
63400
63412
  const r = mp(o, this, t, !e);
63401
63413
  Xm(o, this, r, n, e || {});
63402
63414
  }) : this._pending.push(() => this.insertEmbed(t, n, e || {}));
@@ -63413,7 +63425,7 @@ class bh extends zo {
63413
63425
  if (n === 0)
63414
63426
  return;
63415
63427
  const e = this.doc;
63416
- e !== null ? Mr(e, (s) => {
63428
+ e !== null ? Rr(e, (s) => {
63417
63429
  $x(s, mp(s, this, t, !0), n);
63418
63430
  }) : this._pending.push(() => this.delete(t, n));
63419
63431
  }
@@ -63431,7 +63443,7 @@ class bh extends zo {
63431
63443
  if (n === 0)
63432
63444
  return;
63433
63445
  const s = this.doc;
63434
- s !== null ? Mr(s, (o) => {
63446
+ s !== null ? Rr(s, (o) => {
63435
63447
  const r = mp(o, this, t, !1);
63436
63448
  r.right !== null && zx(o, this, r, n, e);
63437
63449
  }) : this._pending.push(() => this.format(t, n, e));
@@ -63446,7 +63458,7 @@ class bh extends zo {
63446
63458
  * @public
63447
63459
  */
63448
63460
  removeAttribute(t) {
63449
- this.doc !== null ? Mr(this.doc, (n) => {
63461
+ this.doc !== null ? Rr(this.doc, (n) => {
63450
63462
  yh(n, this, t);
63451
63463
  }) : this._pending.push(() => this.removeAttribute(t));
63452
63464
  }
@@ -63461,7 +63473,7 @@ class bh extends zo {
63461
63473
  * @public
63462
63474
  */
63463
63475
  setAttribute(t, n) {
63464
- this.doc !== null ? Mr(this.doc, (e) => {
63476
+ this.doc !== null ? Rr(this.doc, (e) => {
63465
63477
  db(e, this, t, n);
63466
63478
  }) : this._pending.push(() => this.setAttribute(t, n));
63467
63479
  }
@@ -63700,7 +63712,7 @@ class pu extends zo {
63700
63712
  * @param {Array<YXmlElement|YXmlText>} content The array of content
63701
63713
  */
63702
63714
  insert(t, n) {
63703
- this.doc !== null ? Mr(this.doc, (e) => {
63715
+ this.doc !== null ? Rr(this.doc, (e) => {
63704
63716
  s2(e, this, t, n);
63705
63717
  }) : this._prelimContent.splice(t, 0, ...n);
63706
63718
  }
@@ -63716,7 +63728,7 @@ class pu extends zo {
63716
63728
  */
63717
63729
  insertAfter(t, n) {
63718
63730
  if (this.doc !== null)
63719
- Mr(this.doc, (e) => {
63731
+ Rr(this.doc, (e) => {
63720
63732
  const s = t && t instanceof zo ? t._item : t;
63721
63733
  mh(e, this, s, n);
63722
63734
  });
@@ -63737,7 +63749,7 @@ class pu extends zo {
63737
63749
  * @param {number} [length=1] The number of elements to remove. Defaults to 1.
63738
63750
  */
63739
63751
  delete(t, n = 1) {
63740
- this.doc !== null ? Mr(this.doc, (e) => {
63752
+ this.doc !== null ? Rr(this.doc, (e) => {
63741
63753
  l2(e, this, t, n);
63742
63754
  }) : this._prelimContent.splice(t, n);
63743
63755
  }
@@ -63897,7 +63909,7 @@ class Wd extends pu {
63897
63909
  * @public
63898
63910
  */
63899
63911
  removeAttribute(t) {
63900
- this.doc !== null ? Mr(this.doc, (n) => {
63912
+ this.doc !== null ? Rr(this.doc, (n) => {
63901
63913
  yh(n, this, t);
63902
63914
  }) : this._prelimAttrs.delete(t);
63903
63915
  }
@@ -63912,7 +63924,7 @@ class Wd extends pu {
63912
63924
  * @public
63913
63925
  */
63914
63926
  setAttribute(t, n) {
63915
- this.doc !== null ? Mr(this.doc, (e) => {
63927
+ this.doc !== null ? Rr(this.doc, (e) => {
63916
63928
  db(e, this, t, n);
63917
63929
  }) : this._prelimAttrs.set(t, n);
63918
63930
  }
@@ -64730,7 +64742,7 @@ class ll {
64730
64742
  }
64731
64743
  }
64732
64744
  const y2 = (c, t, n) => {
64733
- const { client: e, clock: s } = t.id, o = new Ko(
64745
+ const { client: e, clock: s } = t.id, o = new Go(
64734
64746
  to(e, s + n),
64735
64747
  t,
64736
64748
  to(e, s + n - 1),
@@ -64742,7 +64754,7 @@ const y2 = (c, t, n) => {
64742
64754
  );
64743
64755
  return t.deleted && o.markDeleted(), t.keep && (o.keep = !0), t.redone !== null && (o.redone = to(t.redone.client, t.redone.clock + n)), t.right = o, o.right !== null && (o.right.left = o), c._mergeStructs.push(o), o.parentSub !== null && o.right === null && o.parent._map.set(o.parentSub, o), t.length = n, o;
64744
64756
  };
64745
- class Ko extends m2 {
64757
+ class Go extends m2 {
64746
64758
  /**
64747
64759
  * @param {ID} id
64748
64760
  * @param {Item | null} left
@@ -64809,7 +64821,7 @@ class Ko extends m2 {
64809
64821
  if (this.origin && (this.left = Rx(t, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Qs(t, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === $s || this.right && this.right.constructor === $s)
64810
64822
  this.parent = null;
64811
64823
  else if (!this.parent)
64812
- this.left && this.left.constructor === Ko && (this.parent = this.left.parent, this.parentSub = this.left.parentSub), this.right && this.right.constructor === Ko && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
64824
+ this.left && this.left.constructor === Go && (this.parent = this.left.parent, this.parentSub = this.left.parentSub), this.right && this.right.constructor === Go && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
64813
64825
  else if (this.parent.constructor === Lp) {
64814
64826
  const e = Qm(n, this.parent);
64815
64827
  e.constructor === $s ? this.parent = null : this.parent = /** @type {ContentType} */
@@ -65464,7 +65476,7 @@ function C2({ options: c, onQueryChange: t, onSelectOption: n, onOpen: e, onClos
65464
65476
  }
65465
65477
  return !0;
65466
65478
  }(w.leadOffset, b, v) !== null)
65467
- return x = () => m({ getRect: () => b.getBoundingClientRect(), match: w }), void (sr.startTransition ? sr.startTransition(x) : x());
65479
+ return x = () => m({ getRect: () => b.getBoundingClientRect(), match: w }), void (ar.startTransition ? ar.startTransition(x) : x());
65468
65480
  var x;
65469
65481
  h();
65470
65482
  });
@@ -65632,7 +65644,7 @@ function KR({
65632
65644
  }, [c, t]);
65633
65645
  return qt(() => (window.addEventListener("resize", s), () => {
65634
65646
  window.removeEventListener("resize", s);
65635
- }), [t, s]), sr.useLayoutEffect(() => {
65647
+ }), [t, s]), ar.useLayoutEffect(() => {
65636
65648
  s();
65637
65649
  }, [c, t, s]), /* @__PURE__ */ ge.jsx("div", { className: "CommentPlugin_AddCommentBox", ref: e, children: /* @__PURE__ */ ge.jsx(
65638
65650
  "button",
@@ -65754,7 +65766,7 @@ function YR({
65754
65766
  }
65755
65767
  });
65756
65768
  }, [c, m]);
65757
- sr.useLayoutEffect(() => {
65769
+ ar.useLayoutEffect(() => {
65758
65770
  b();
65759
65771
  const x = m.container, y = document.body;
65760
65772
  if (y !== null)
@@ -66364,7 +66376,7 @@ function e3({ htmlString: c, wpAndTaskId: t }) {
66364
66376
  const [n] = kn();
66365
66377
  return qt(() => {
66366
66378
  !c || !t || n.update(() => {
66367
- const s = Ln().getChildren().filter(Rr);
66379
+ const s = Ln().getChildren().filter(Ir);
66368
66380
  s.forEach((o, r) => {
66369
66381
  var h;
66370
66382
  const a = o.getChildren().find(Yh);
@@ -66389,7 +66401,7 @@ function e3({ htmlString: c, wpAndTaskId: t }) {
66389
66401
  return;
66390
66402
  const i = typeof l.getId == "function" ? l.getId() : void 0, u = l.getTextContent(), f = parseInt(((h = u.match(/\d+/)) == null ? void 0 : h[0]) || "1"), d = i || Xc(u, f, t);
66391
66403
  a.__captionId = d;
66392
- const p = new ri(l.getTextContent(), "black", d);
66404
+ const p = new Ko(l.getTextContent(), "black", d);
66393
66405
  l.replace(p);
66394
66406
  });
66395
66407
  });
@@ -66404,7 +66416,7 @@ function t3({
66404
66416
  const e = Ln().getChildren().filter(pr);
66405
66417
  console.log("captionId", e), e.forEach((s, o) => {
66406
66418
  const r = s.getPreviousSibling();
66407
- if (r && Rr(r)) {
66419
+ if (r && Ir(r)) {
66408
66420
  const a = r.getChildren();
66409
66421
  console.log("children", a.find((i) => console.log("child", i)));
66410
66422
  const l = a.find(
@@ -66420,7 +66432,7 @@ function t3({
66420
66432
  console.log("captionId", u), s.__captionId = u, a.forEach((f) => {
66421
66433
  if (f.getTextContent().startsWith("Table")) {
66422
66434
  console.log("gtting here");
66423
- const d = new ri(
66435
+ const d = new Ko(
66424
66436
  f.getTextContent(),
66425
66437
  "black",
66426
66438
  u
@@ -66459,7 +66471,7 @@ function n3({ setEditorEditable: c, htmlString: t, isEditable: n, setIsexistingI
66459
66471
  const f = Tn();
66460
66472
  bi(i), bi([f]), s.setEditable(!1), setTimeout(() => {
66461
66473
  s.setEditable(n), c(!0);
66462
- }, 500);
66474
+ }, 5e3);
66463
66475
  });
66464
66476
  }, [s, t]), null;
66465
66477
  }
@@ -66912,7 +66924,7 @@ function s3({ options: c, nodeKey: t, onClose: n, onOpen: e, onSelectOption: s,
66912
66924
  t ? i.update(() => {
66913
66925
  const g = er(t), v = i.getElementByKey(t);
66914
66926
  var b;
66915
- g != null && v != null && u == null && (b = () => h({ getRect: () => v.getBoundingClientRect() }), sr.startTransition ? sr.startTransition(b) : b());
66927
+ g != null && v != null && u == null && (b = () => h({ getRect: () => v.getBoundingClientRect() }), ar.startTransition ? ar.startTransition(b) : b());
66916
66928
  }) : t == null && u != null && p();
66917
66929
  }, [p, i, t, h, u]);
66918
66930
  return qt(() => {
@@ -67235,7 +67247,7 @@ function T3() {
67235
67247
  (i, u, f) => {
67236
67248
  c.update(() => {
67237
67249
  const d = jt();
67238
- !Tt(d) || i == null || (u && u.remove(), d.insertNodes([ar(i.emoji)]), f());
67250
+ !Tt(d) || i == null || (u && u.remove(), d.insertNodes([sr(i.emoji)]), f());
67239
67251
  });
67240
67252
  },
67241
67253
  [c]
@@ -67315,7 +67327,7 @@ function j3({ htmlString: c, wpAndTaskId: t }) {
67315
67327
  const [n] = kn();
67316
67328
  return qt(() => {
67317
67329
  !c || !t || n.update(() => {
67318
- const s = Ln().getChildren().filter(Rr);
67330
+ const s = Ln().getChildren().filter(Ir);
67319
67331
  s.forEach((o, r) => {
67320
67332
  var h;
67321
67333
  const a = o.getChildren().find(Yh);
@@ -67340,7 +67352,7 @@ function j3({ htmlString: c, wpAndTaskId: t }) {
67340
67352
  return;
67341
67353
  const i = typeof l.getId == "function" ? l.getId() : void 0, u = l.getTextContent(), f = parseInt(((h = u.match(/\d+/)) == null ? void 0 : h[0]) || "1"), d = i || Xc(u, f, t);
67342
67354
  a.__captionId = d;
67343
- const p = new ri(l.getTextContent(), "black", d);
67355
+ const p = new Ko(l.getTextContent(), "black", d);
67344
67356
  l.replace(p);
67345
67357
  });
67346
67358
  });
@@ -67355,7 +67367,7 @@ function I3({
67355
67367
  const e = Ln().getChildren().filter(pr);
67356
67368
  console.log("captionId", e), e.forEach((s, o) => {
67357
67369
  const r = s.getPreviousSibling();
67358
- if (r && Rr(r)) {
67370
+ if (r && Ir(r)) {
67359
67371
  const a = r.getChildren();
67360
67372
  console.log("children", a.find((i) => console.log("child", i)));
67361
67373
  const l = a.find(
@@ -67371,7 +67383,7 @@ function I3({
67371
67383
  console.log("captionId", u), s.__captionId = u, a.forEach((f) => {
67372
67384
  if (f.getTextContent().startsWith("Table")) {
67373
67385
  console.log("gtting here");
67374
- const d = new ri(
67386
+ const d = new Ko(
67375
67387
  f.getTextContent(),
67376
67388
  "black",
67377
67389
  u
@@ -67714,15 +67726,15 @@ export {
67714
67726
  sA as n,
67715
67727
  Mi as o,
67716
67728
  Qc as p,
67717
- ei as q,
67729
+ ti as q,
67718
67730
  Gd as r,
67719
67731
  Jx as s,
67720
67732
  Ao as t,
67721
67733
  L0 as u,
67722
- Rr as v,
67734
+ Ir as v,
67723
67735
  jt as w,
67724
67736
  er as x,
67725
67737
  Xl as y,
67726
67738
  L3 as z
67727
67739
  };
67728
- //# sourceMappingURL=index-1ad7861a.js.map
67740
+ //# sourceMappingURL=index-fe878cc1.js.map