sykpcomposer 0.0.49 → 0.0.50

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.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var av = Object.defineProperty;
2
2
  var sv = (y, d, g) => d in y ? av(y, d, { enumerable: !0, configurable: !0, writable: !0, value: g }) : y[d] = g;
3
3
  var zl = (y, d, g) => (sv(y, typeof d != "symbol" ? d + "" : d, g), g);
4
4
  import * as er from "react";
5
- import P0, { createContext as I0, useContext as R0, useMemo as el, useLayoutEffect as Wa, useEffect as rr, useState as Ln, useCallback as M0, useRef as Ep, Suspense as D0 } from "react";
5
+ import P0, { createContext as I0, useContext as R0, useMemo as el, useLayoutEffect as Wa, useEffect as sr, useState as Ln, useCallback as M0, useRef as Cp, Suspense as D0 } from "react";
6
6
  import * as lv from "react-dom";
7
7
  import { flushSync as L0, createPortal as B0 } from "react-dom";
8
8
  var qf = { exports: {} }, _s = {};
@@ -11,11 +11,11 @@ object-assign
11
11
  (c) Sindre Sorhus
12
12
  @license MIT
13
13
  */
14
- var Sf, Bg;
14
+ var Sf, Fg;
15
15
  function F0() {
16
- if (Bg)
16
+ if (Fg)
17
17
  return Sf;
18
- Bg = 1;
18
+ Fg = 1;
19
19
  var y = Object.getOwnPropertySymbols, d = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
20
20
  function t(r) {
21
21
  if (r == null)
@@ -66,11 +66,11 @@ function F0() {
66
66
  * This source code is licensed under the MIT license found in the
67
67
  * LICENSE file in the root directory of this source tree.
68
68
  */
69
- var Fg;
69
+ var zg;
70
70
  function cv() {
71
- if (Fg)
71
+ if (zg)
72
72
  return _s;
73
- Fg = 1, F0();
73
+ zg = 1, F0();
74
74
  var y = P0, d = 60103;
75
75
  if (_s.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
76
76
  var g = Symbol.for;
@@ -98,9 +98,9 @@ var Ef = {};
98
98
  * This source code is licensed under the MIT license found in the
99
99
  * LICENSE file in the root directory of this source tree.
100
100
  */
101
- var zg;
101
+ var Ug;
102
102
  function uv() {
103
- return zg || (zg = 1, function(y) {
103
+ return Ug || (Ug = 1, function(y) {
104
104
  process.env.NODE_ENV !== "production" && function() {
105
105
  var d = P0, g = F0(), t = 60103, f = 60106;
106
106
  y.Fragment = 60107;
@@ -667,12 +667,12 @@ Check the top-level render call using <` + de + ">.");
667
667
  }
668
668
  process.env.NODE_ENV === "production" ? qf.exports = cv() : qf.exports = uv();
669
669
  var Ee = qf.exports;
670
- function Cp(y) {
670
+ function kp(y) {
671
671
  return {};
672
672
  }
673
- const li = {}, z0 = {}, U0 = {}, bo = {}, Vi = {}, Gs = {}, Ki = {}, cc = {}, Pu = {}, za = {}, Zi = {}, Ar = {}, uc = {}, dc = {}, dv = {}, td = {}, fv = {}, ed = {}, pv = {}, kp = {}, Op = {}, ic = {}, hv = {}, fc = {}, nd = {}, pc = {}, $0 = {}, gv = {}, mv = {}, Ug = {}, Tp = {}, zs = {}, Ap = {}, H0 = {}, yv = {}, hc = {}, gc = {}, Iu = {}, jp = {}, bv = {}, Us = {}, $s = {}, q0 = {}, vv = {}, _v = {}, _o = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, xv = _o && "documentMode" in document ? document.documentMode : null, go = _o && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Gi = _o && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Ru = !(!_o || !("InputEvent" in window) || xv) && "getTargetRanges" in new window.InputEvent("input"), Np = _o && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), rd = _o && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, wv = _o && /Android/.test(navigator.userAgent), W0 = _o && /^(?=.*Chrome).*/i.test(navigator.userAgent), Sv = _o && wv && W0, Pp = _o && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !W0, mc = 1, ea = 3, Ua = 0, J0 = 1, Ys = 2, Ev = 0, Cv = 1, kv = 2, Mu = 4, Du = 8, Ip = 128, Ov = 112 | (3 | Mu | Du) | Ip, Rp = 1, Mp = 2, Dp = 3, Lp = 4, Bp = 5, Fp = 6, od = Np || rd || Pp ? " " : "​", ui = `
673
+ const li = {}, z0 = {}, U0 = {}, bo = {}, Vi = {}, Gs = {}, Ki = {}, cc = {}, Pu = {}, za = {}, Zi = {}, Ar = {}, uc = {}, dc = {}, dv = {}, td = {}, fv = {}, ed = {}, pv = {}, Op = {}, Tp = {}, ic = {}, hv = {}, fc = {}, nd = {}, pc = {}, $0 = {}, gv = {}, mv = {}, $g = {}, Ap = {}, zs = {}, jp = {}, H0 = {}, yv = {}, hc = {}, gc = {}, Iu = {}, Np = {}, bv = {}, Us = {}, $s = {}, q0 = {}, vv = {}, _v = {}, _o = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, xv = _o && "documentMode" in document ? document.documentMode : null, go = _o && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Gi = _o && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Ru = !(!_o || !("InputEvent" in window) || xv) && "getTargetRanges" in new window.InputEvent("input"), Pp = _o && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), rd = _o && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, wv = _o && /Android/.test(navigator.userAgent), W0 = _o && /^(?=.*Chrome).*/i.test(navigator.userAgent), Sv = _o && wv && W0, Ip = _o && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !W0, mc = 1, ea = 3, Ua = 0, J0 = 1, Ys = 2, Ev = 0, Cv = 1, kv = 2, Mu = 4, Du = 8, Rp = 128, Ov = 112 | (3 | Mu | Du) | Rp, Mp = 1, Dp = 2, Lp = 3, Bp = 4, Fp = 5, zp = 6, od = Pp || rd || Ip ? " " : "​", ui = `
674
674
 
675
- `, Tv = Gi ? " " : od, V0 = "֑-߿יִ-﷽ﹰ-ﻼ", K0 = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", Av = new RegExp("^[^" + K0 + "]*[" + V0 + "]"), jv = new RegExp("^[^" + V0 + "]*[" + K0 + "]"), ci = { bold: 1, code: 16, highlight: Ip, italic: 2, strikethrough: Mu, subscript: 32, superscript: 64, underline: Du }, Nv = { directionless: 1, unmergeable: 2 }, $g = { center: Mp, end: Fp, justify: Lp, left: Rp, right: Dp, start: Bp }, Pv = { [Mp]: "center", [Fp]: "end", [Lp]: "justify", [Rp]: "left", [Dp]: "right", [Bp]: "start" }, Iv = { normal: 0, segmented: 2, token: 1 }, Rv = { [Ev]: "normal", [kv]: "segmented", [Cv]: "token" };
675
+ `, Tv = Gi ? " " : od, V0 = "֑-߿יִ-﷽ﹰ-ﻼ", K0 = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", Av = new RegExp("^[^" + K0 + "]*[" + V0 + "]"), jv = new RegExp("^[^" + V0 + "]*[" + K0 + "]"), ci = { bold: 1, code: 16, highlight: Rp, italic: 2, strikethrough: Mu, subscript: 32, superscript: 64, underline: Du }, Nv = { directionless: 1, unmergeable: 2 }, Hg = { center: Dp, end: zp, justify: Bp, left: Mp, right: Lp, start: Fp }, Pv = { [Dp]: "center", [zp]: "end", [Bp]: "justify", [Mp]: "left", [Lp]: "right", [Fp]: "start" }, Iv = { normal: 0, segmented: 2, token: 1 }, Rv = { [Ev]: "normal", [kv]: "segmented", [Cv]: "token" };
676
676
  function Mv(y) {
677
677
  return y && y.__esModule && Object.prototype.hasOwnProperty.call(y, "default") ? y.default : y;
678
678
  }
@@ -692,9 +692,9 @@ function Lu(...y) {
692
692
  return d;
693
693
  }
694
694
  const Dv = 100;
695
- let Wf = !1, zp = 0;
695
+ let Wf = !1, Up = 0;
696
696
  function Lv(y) {
697
- zp = y.timeStamp;
697
+ Up = y.timeStamp;
698
698
  }
699
699
  function Cf(y, d, g) {
700
700
  return d.__lexicalLineBreak === y || y[`__lexicalKey_${g._key}`] !== void 0;
@@ -704,7 +704,7 @@ function Bv(y, d, g) {
704
704
  let f = null, r = null;
705
705
  t !== null && t.anchorNode === y && (f = t.anchorOffset, r = t.focusOffset);
706
706
  const n = y.nodeValue;
707
- n !== null && Wp(d, n, f, r, !1);
707
+ n !== null && Jp(d, n, f, r, !1);
708
708
  }
709
709
  function Fv(y, d, g) {
710
710
  if (xe(y)) {
@@ -716,7 +716,7 @@ function Fv(y, d, g) {
716
716
  }
717
717
  function G0(y, d, g) {
718
718
  Wf = !0;
719
- const t = performance.now() - zp > Dv;
719
+ const t = performance.now() - Up > Dv;
720
720
  try {
721
721
  Kr(y, () => {
722
722
  const f = Ae() || function(a) {
@@ -791,26 +791,26 @@ function Y0(y) {
791
791
  }
792
792
  function Z0(y) {
793
793
  (function(d) {
794
- zp === 0 && sd(d).addEventListener("textInput", Lv, !0);
794
+ Up === 0 && sd(d).addEventListener("textInput", Lv, !0);
795
795
  })(y), y._observer = new MutationObserver((d, g) => {
796
796
  G0(y, d, g);
797
797
  });
798
798
  }
799
- function Hg(y, d) {
799
+ function qg(y, d) {
800
800
  const g = y.__mode, t = y.__format, f = y.__style, r = d.__mode, n = d.__format, e = d.__style;
801
801
  return !(g !== null && g !== r || t !== null && t !== n || f !== null && f !== e);
802
802
  }
803
- function qg(y, d) {
803
+ function Wg(y, d) {
804
804
  const g = y.mergeWithSibling(d), t = Vn()._normalizedNodes;
805
805
  return t.add(y.__key), t.add(d.__key), g;
806
806
  }
807
- function Wg(y) {
807
+ function Jg(y) {
808
808
  let d, g, t = y;
809
809
  if (t.__text !== "" || !t.isSimpleText() || t.isUnmergeable()) {
810
810
  for (; (d = t.getPreviousSibling()) !== null && Pe(d) && d.isSimpleText() && !d.isUnmergeable(); ) {
811
811
  if (d.__text !== "") {
812
- if (Hg(d, t)) {
813
- t = qg(d, t);
812
+ if (qg(d, t)) {
813
+ t = Wg(d, t);
814
814
  break;
815
815
  }
816
816
  break;
@@ -819,8 +819,8 @@ function Wg(y) {
819
819
  }
820
820
  for (; (g = t.getNextSibling()) !== null && Pe(g) && g.isSimpleText() && !g.isUnmergeable(); ) {
821
821
  if (g.__text !== "") {
822
- if (Hg(t, g)) {
823
- t = qg(t, g);
822
+ if (qg(t, g)) {
823
+ t = Wg(t, g);
824
824
  break;
825
825
  }
826
826
  break;
@@ -830,10 +830,10 @@ function Wg(y) {
830
830
  } else
831
831
  t.remove();
832
832
  }
833
- function Up(y) {
834
- return Jg(y.anchor), Jg(y.focus), y;
833
+ function $p(y) {
834
+ return Vg(y.anchor), Vg(y.focus), y;
835
835
  }
836
- function Jg(y) {
836
+ function Vg(y) {
837
837
  for (; y.type === "element"; ) {
838
838
  const d = y.getNode(), g = y.offset;
839
839
  let t, f;
@@ -850,7 +850,7 @@ let zv = 1;
850
850
  const Uv = typeof queueMicrotask == "function" ? queueMicrotask : (y) => {
851
851
  Promise.resolve().then(y);
852
852
  };
853
- function $p(y) {
853
+ function Hp(y) {
854
854
  const d = document.activeElement;
855
855
  if (d === null)
856
856
  return !1;
@@ -860,7 +860,7 @@ function $p(y) {
860
860
  function yc(y, d, g) {
861
861
  const t = y.getRootElement();
862
862
  try {
863
- return t !== null && t.contains(d) && t.contains(g) && d !== null && !$p(d) && X0(d) === y;
863
+ return t !== null && t.contains(d) && t.contains(g) && d !== null && !Hp(d) && X0(d) === y;
864
864
  } catch {
865
865
  return !1;
866
866
  }
@@ -997,7 +997,7 @@ function ey(y) {
997
997
  const d = y._decorators, g = Object.assign({}, d);
998
998
  return y._pendingDecorators = g, g;
999
999
  }
1000
- function Vg(y) {
1000
+ function Kg(y) {
1001
1001
  return y.read(() => Bn().getTextContent());
1002
1002
  }
1003
1003
  function Bn() {
@@ -1024,13 +1024,13 @@ function Hs(y) {
1024
1024
  }(y, d);
1025
1025
  return g === null ? y === d.getRootElement() ? Wn("root") : null : Wn(g);
1026
1026
  }
1027
- function Kg(y, d) {
1027
+ function Gg(y, d) {
1028
1028
  return d ? y.getTextContentSize() : 0;
1029
1029
  }
1030
1030
  function ry(y) {
1031
1031
  return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(y);
1032
1032
  }
1033
- function Hp(y) {
1033
+ function qp(y) {
1034
1034
  const d = [];
1035
1035
  let g = y;
1036
1036
  for (; g !== null; )
@@ -1043,7 +1043,7 @@ function oy() {
1043
1043
  function iy(y) {
1044
1044
  return y.nodeType === ea ? y.nodeValue : null;
1045
1045
  }
1046
- function qp(y, d, g) {
1046
+ function Wp(y, d, g) {
1047
1047
  const t = Fo(d._window);
1048
1048
  if (t === null)
1049
1049
  return;
@@ -1057,11 +1057,11 @@ function qp(y, d, g) {
1057
1057
  const i = g.length;
1058
1058
  e = g, r = i, n = i;
1059
1059
  }
1060
- e !== null && Wp(s, e, r, n, y);
1060
+ e !== null && Jp(s, e, r, n, y);
1061
1061
  }
1062
1062
  }
1063
1063
  }
1064
- function Wp(y, d, g, t, f) {
1064
+ function Jp(y, d, g, t, f) {
1065
1065
  let r = y;
1066
1066
  if (r.isAttached() && (f || !r.isDirty())) {
1067
1067
  const n = r.isComposing();
@@ -1070,7 +1070,7 @@ function Wp(y, d, g, t, f) {
1070
1070
  const s = r.getTextContent();
1071
1071
  if (f || e !== s) {
1072
1072
  if (e === "") {
1073
- if (yr(null), Np || rd || Pp)
1073
+ if (yr(null), Pp || rd || Ip)
1074
1074
  r.remove();
1075
1075
  else {
1076
1076
  const h = Vn();
@@ -1107,16 +1107,16 @@ function Hv(y, d) {
1107
1107
  return (Pe(n) || ge(n) && n.isInline()) && !n.canInsertTextAfter();
1108
1108
  }(d) : g === d.getTextContentSize() && (!d.canInsertTextAfter() || !t.canInsertTextAfter() && !d.isComposing() || f);
1109
1109
  }
1110
- function Gg(y) {
1110
+ function Yg(y) {
1111
1111
  return y === "ArrowLeft";
1112
1112
  }
1113
- function Yg(y) {
1113
+ function Zg(y) {
1114
1114
  return y === "ArrowRight";
1115
1115
  }
1116
1116
  function Jl(y, d) {
1117
1117
  return go ? y : d;
1118
1118
  }
1119
- function Zg(y) {
1119
+ function Xg(y) {
1120
1120
  return y === "Enter";
1121
1121
  }
1122
1122
  function Ul(y) {
@@ -1125,12 +1125,12 @@ function Ul(y) {
1125
1125
  function $l(y) {
1126
1126
  return y === "Delete";
1127
1127
  }
1128
- function Xg(y, d, g) {
1128
+ function Qg(y, d, g) {
1129
1129
  return y.toLowerCase() === "a" && Jl(d, g);
1130
1130
  }
1131
1131
  function ay() {
1132
1132
  const y = Bn();
1133
- lr(Up(y.select(0, y.getChildrenSize())));
1133
+ lr($p(y.select(0, y.getChildrenSize())));
1134
1134
  }
1135
1135
  function Zl(y, d) {
1136
1136
  y.__lexicalClassNameCache === void 0 && (y.__lexicalClassNameCache = {});
@@ -1144,7 +1144,7 @@ function Zl(y, d) {
1144
1144
  }
1145
1145
  return f;
1146
1146
  }
1147
- function Jp(y, d, g, t, f) {
1147
+ function Vp(y, d, g, t, f) {
1148
1148
  if (g.size === 0)
1149
1149
  return;
1150
1150
  const r = t.__type, n = t.__key, e = d.get(r);
@@ -1161,7 +1161,7 @@ function sy(y) {
1161
1161
  n instanceof y && n.__type === t && (g || n.isAttached()) && r.push(n);
1162
1162
  return r;
1163
1163
  }
1164
- function Qg(y, d, g) {
1164
+ function tm(y, d, g) {
1165
1165
  const t = y.getParent();
1166
1166
  let f = g, r = y;
1167
1167
  return t !== null && (d && g === 0 ? (f = r.getIndexWithinParent(), r = t) : d || g !== r.getChildrenSize() || (f = r.getIndexWithinParent() + 1, r = t)), r.getChildAtIndex(d ? f - 1 : f);
@@ -1169,12 +1169,12 @@ function Qg(y, d, g) {
1169
1169
  function ac(y, d) {
1170
1170
  const g = y.offset;
1171
1171
  if (y.type === "element")
1172
- return Qg(y.getNode(), d, g);
1172
+ return tm(y.getNode(), d, g);
1173
1173
  {
1174
1174
  const t = y.getNode();
1175
1175
  if (d && g === 0 || !d && g === t.getTextContentSize()) {
1176
1176
  const f = d ? t.getPreviousSibling() : t.getNextSibling();
1177
- return f === null ? Qg(t.getParentOrThrow(), d, t.getIndexWithinParent() + (d ? 0 : 1)) : f;
1177
+ return f === null ? tm(t.getParentOrThrow(), d, t.getIndexWithinParent() + (d ? 0 : 1)) : f;
1178
1178
  }
1179
1179
  }
1180
1180
  return null;
@@ -1245,7 +1245,7 @@ function kf(y, d) {
1245
1245
  function Of(y) {
1246
1246
  return (Tn(y) || ge(y) && !y.canBeEmpty()) && !y.isInline();
1247
1247
  }
1248
- function Vp(y, d, g) {
1248
+ function Kp(y, d, g) {
1249
1249
  g.style.removeProperty("caret-color"), d._blockCursorElement = null;
1250
1250
  const t = y.parentElement;
1251
1251
  t !== null && t.removeChild(y);
@@ -1281,7 +1281,7 @@ function Vv(y, d, g) {
1281
1281
  }(y._config)), d.style.caretColor = "transparent", void (s === null ? i.appendChild(t) : i.insertBefore(t, s));
1282
1282
  }
1283
1283
  }
1284
- t !== null && Vp(t, y, d);
1284
+ t !== null && Kp(t, y, d);
1285
1285
  }
1286
1286
  function Fo(y) {
1287
1287
  return _o ? (y || window).getSelection() : null;
@@ -1335,7 +1335,7 @@ function cy(y, d, g, t, f, r) {
1335
1335
  n.__parent === d && (ge(n) && cy(n, e, g, t, f, r), g.has(e) || r.delete(e), f.push(e)), n = n.getNextSibling();
1336
1336
  }
1337
1337
  }
1338
- let Xi, Pr, sc, ld, Kf, Gf, $a, vo, Yf, lc, sr = "", Nr = "", mo = null, ii = "", uy = !1, cd = !1, bu = null;
1338
+ let Xi, Pr, sc, ld, Kf, Gf, $a, vo, Yf, lc, ar = "", Nr = "", mo = null, ii = "", uy = !1, cd = !1, bu = null;
1339
1339
  function Uu(y, d) {
1340
1340
  const g = $a.get(y);
1341
1341
  if (d !== null) {
@@ -1346,7 +1346,7 @@ function Uu(y, d) {
1346
1346
  const t = Hu(g, $a);
1347
1347
  Zf(t, 0, t.length - 1, null);
1348
1348
  }
1349
- g !== void 0 && Jp(lc, sc, ld, g, "destroyed");
1349
+ g !== void 0 && Vp(lc, sc, ld, g, "destroyed");
1350
1350
  }
1351
1351
  function Zf(y, d, g, t) {
1352
1352
  let f = d;
@@ -1370,7 +1370,7 @@ function dy(y, d) {
1370
1370
  }
1371
1371
  function fy(y, d) {
1372
1372
  const g = y.style;
1373
- d === 0 ? Aa(g, "") : d === Rp ? Aa(g, "left") : d === Mp ? Aa(g, "center") : d === Dp ? Aa(g, "right") : d === Lp ? Aa(g, "justify") : d === Bp ? Aa(g, "start") : d === Fp && Aa(g, "end");
1373
+ d === 0 ? Aa(g, "") : d === Mp ? Aa(g, "left") : d === Dp ? Aa(g, "center") : d === Lp ? Aa(g, "right") : d === Bp ? Aa(g, "justify") : d === Fp ? Aa(g, "start") : d === zp && Aa(g, "end");
1374
1374
  }
1375
1375
  function $u(y, d, g) {
1376
1376
  const t = vo.get(y);
@@ -1389,7 +1389,7 @@ function $u(y, d, g) {
1389
1389
  })(Hu(t, vo), s, t, f);
1390
1390
  }
1391
1391
  const e = t.__format;
1392
- e !== 0 && fy(f, e), t.isInline() || py(null, t, f), id(t) && (sr += ui, ii += ui);
1392
+ e !== 0 && fy(f, e), t.isInline() || py(null, t, f), id(t) && (ar += ui, ii += ui);
1393
1393
  } else {
1394
1394
  const r = t.getTextContent();
1395
1395
  if (Tn(t)) {
@@ -1397,7 +1397,7 @@ function $u(y, d, g) {
1397
1397
  n !== null && gy(y, n), f.contentEditable = "false";
1398
1398
  } else
1399
1399
  Pe(t) && (t.isDirectionless() || (Nr += r));
1400
- sr += r, ii += r;
1400
+ ar += r, ii += r;
1401
1401
  }
1402
1402
  if (d !== null)
1403
1403
  if (g != null)
@@ -1406,25 +1406,25 @@ function $u(y, d, g) {
1406
1406
  const r = d.__lexicalLineBreak;
1407
1407
  r != null ? d.insertBefore(f, r) : d.appendChild(f);
1408
1408
  }
1409
- return Jp(lc, sc, ld, t, "created"), f;
1409
+ return Vp(lc, sc, ld, t, "created"), f;
1410
1410
  }
1411
1411
  function Xf(y, d, g, t, f, r) {
1412
- const n = sr;
1413
- sr = "";
1412
+ const n = ar;
1413
+ ar = "";
1414
1414
  let e = g;
1415
1415
  for (; e <= t; ++e) {
1416
1416
  $u(y[e], f, r);
1417
1417
  const s = vo.get(y[e]);
1418
1418
  s !== null && mo === null && Pe(s) && (mo = s.getFormat());
1419
1419
  }
1420
- id(d) && (sr += ui), f.__lexicalTextContent = sr, sr = n + sr;
1420
+ id(d) && (ar += ui), f.__lexicalTextContent = ar, ar = n + ar;
1421
1421
  }
1422
- function tm(y, d) {
1422
+ function em(y, d) {
1423
1423
  const g = d.get(y);
1424
1424
  return Da(g) || Tn(g) && g.isInline();
1425
1425
  }
1426
1426
  function py(y, d, g) {
1427
- const t = y !== null && (y.__size === 0 || tm(y.__last, $a)), f = d.__size === 0 || tm(d.__last, vo);
1427
+ const t = y !== null && (y.__size === 0 || em(y.__last, $a)), f = d.__size === 0 || em(d.__last, vo);
1428
1428
  if (t) {
1429
1429
  if (!f) {
1430
1430
  const r = g.__lexicalLineBreak;
@@ -1471,8 +1471,8 @@ function Qv(y, d, g) {
1471
1471
  const t = Nr;
1472
1472
  var f;
1473
1473
  Nr = "", mo = null, function(r, n, e) {
1474
- const s = sr, i = r.__size, l = n.__size;
1475
- if (sr = "", i === 1 && l === 1) {
1474
+ const s = ar, i = r.__size, l = n.__size;
1475
+ if (ar = "", i === 1 && l === 1) {
1476
1476
  const o = r.__first, a = n.__first;
1477
1477
  if (o === a)
1478
1478
  Vl(o, e);
@@ -1522,7 +1522,7 @@ function Qv(y, d, g) {
1522
1522
  O && !N && Zf(u, C, _, b);
1523
1523
  })(n, o, a, i, l, e);
1524
1524
  }
1525
- id(n) && (sr += ui), e.__lexicalTextContent = sr, sr = s + sr;
1525
+ id(n) && (ar += ui), e.__lexicalTextContent = ar, ar = s + ar;
1526
1526
  }(y, d, g), hy(d, g), Ha(f = d) && mo != null && mo !== f.__textFormat && !cd && f.setTextFormat(mo), Nr = t, mo = null;
1527
1527
  }
1528
1528
  function Hu(y, d) {
@@ -1542,16 +1542,16 @@ function Vl(y, d) {
1542
1542
  if (g === t && !f) {
1543
1543
  if (ge(g)) {
1544
1544
  const n = r.__lexicalTextContent;
1545
- n !== void 0 && (sr += n, ii += n);
1545
+ n !== void 0 && (ar += n, ii += n);
1546
1546
  const e = r.__lexicalDirTextContent;
1547
1547
  e !== void 0 && (Nr += e);
1548
1548
  } else {
1549
1549
  const n = g.getTextContent();
1550
- Pe(g) && !g.isDirectionless() && (Nr += n), ii += n, sr += n;
1550
+ Pe(g) && !g.isDirectionless() && (Nr += n), ii += n, ar += n;
1551
1551
  }
1552
1552
  return r;
1553
1553
  }
1554
- if (g !== t && f && Jp(lc, sc, ld, t, "updated"), t.updateDOM(g, r, Xi)) {
1554
+ if (g !== t && f && Vp(lc, sc, ld, t, "updated"), t.updateDOM(g, r, Xi)) {
1555
1555
  const n = $u(y, null, null);
1556
1556
  return d === null && qe(62), d.replaceChild(n, r), Uu(y, null), n;
1557
1557
  }
@@ -1559,7 +1559,7 @@ function Vl(y, d) {
1559
1559
  const n = t.__indent;
1560
1560
  n !== g.__indent && dy(r, n);
1561
1561
  const e = t.__format;
1562
- e !== g.__format && fy(r, e), f && (Qv(g, t, r), Sr(t) || t.isInline() || py(g, t, r)), id(t) && (sr += ui, ii += ui);
1562
+ e !== g.__format && fy(r, e), f && (Qv(g, t, r), Sr(t) || t.isInline() || py(g, t, r)), id(t) && (ar += ui, ii += ui);
1563
1563
  } else {
1564
1564
  const n = t.getTextContent();
1565
1565
  if (Tn(t)) {
@@ -1567,7 +1567,7 @@ function Vl(y, d) {
1567
1567
  e !== null && gy(y, e);
1568
1568
  } else
1569
1569
  Pe(t) && !t.isDirectionless() && (Nr += n);
1570
- sr += n, ii += n;
1570
+ ar += n, ii += n;
1571
1571
  }
1572
1572
  if (!cd && Sr(t) && t.__cachedText !== ii) {
1573
1573
  const n = t.getWritable();
@@ -1590,7 +1590,7 @@ function Af(y) {
1590
1590
  return d !== null && d === Pr._blockCursorElement && (d = d.nextSibling), d;
1591
1591
  }
1592
1592
  function t1(y, d, g, t, f, r) {
1593
- sr = "", ii = "", Nr = "", uy = t === Ys, bu = null, Pr = g, Xi = g._config, sc = g._nodes, ld = Pr._listeners.mutation, Kf = f, Gf = r, $a = y._nodeMap, vo = d._nodeMap, cd = d._readOnly, Yf = new Map(g._keyToDOMMap);
1593
+ ar = "", ii = "", Nr = "", uy = t === Ys, bu = null, Pr = g, Xi = g._config, sc = g._nodes, ld = Pr._listeners.mutation, Kf = f, Gf = r, $a = y._nodeMap, vo = d._nodeMap, cd = d._readOnly, Yf = new Map(g._keyToDOMMap);
1594
1594
  const n = /* @__PURE__ */ new Map();
1595
1595
  return lc = n, Vl("root", null), Pr = void 0, sc = void 0, Kf = void 0, Gf = void 0, $a = void 0, vo = void 0, Xi = void 0, Yf = void 0, lc = void 0, n;
1596
1596
  }
@@ -1603,29 +1603,29 @@ const ni = Object.freeze({}), tp = 30, ep = [["keydown", function(y, d) {
1603
1603
  return;
1604
1604
  const { key: g, shiftKey: t, ctrlKey: f, metaKey: r, altKey: n } = y;
1605
1605
  Ve(d, dv, y) || g != null && (function(e, s, i, l) {
1606
- return Yg(e) && !s && !l && !i;
1606
+ return Zg(e) && !s && !l && !i;
1607
1607
  }(g, f, n, r) ? Ve(d, td, y) : function(e, s, i, l, o) {
1608
- return Yg(e) && !l && !i && (s || o);
1608
+ return Zg(e) && !l && !i && (s || o);
1609
1609
  }(g, f, t, n, r) ? Ve(d, fv, y) : function(e, s, i, l) {
1610
- return Gg(e) && !s && !l && !i;
1610
+ return Yg(e) && !s && !l && !i;
1611
1611
  }(g, f, n, r) ? Ve(d, ed, y) : function(e, s, i, l, o) {
1612
- return Gg(e) && !l && !i && (s || o);
1612
+ return Yg(e) && !l && !i && (s || o);
1613
1613
  }(g, f, t, n, r) ? Ve(d, pv, y) : function(e, s, i) {
1614
1614
  return function(l) {
1615
1615
  return l === "ArrowUp";
1616
1616
  }(e) && !s && !i;
1617
- }(g, f, r) ? Ve(d, kp, y) : function(e, s, i) {
1617
+ }(g, f, r) ? Ve(d, Op, y) : function(e, s, i) {
1618
1618
  return function(l) {
1619
1619
  return l === "ArrowDown";
1620
1620
  }(e) && !s && !i;
1621
- }(g, f, r) ? Ve(d, Op, y) : function(e, s) {
1622
- return Zg(e) && s;
1621
+ }(g, f, r) ? Ve(d, Tp, y) : function(e, s) {
1622
+ return Xg(e) && s;
1623
1623
  }(g, t) ? (Ql = !0, Ve(d, ic, y)) : function(e) {
1624
1624
  return e === " ";
1625
1625
  }(g) ? Ve(d, hv, y) : function(e, s) {
1626
1626
  return go && s && e.toLowerCase() === "o";
1627
1627
  }(g, f) ? (y.preventDefault(), Ql = !0, Ve(d, Vi, !0)) : function(e, s) {
1628
- return Zg(e) && !s;
1628
+ return Xg(e) && !s;
1629
1629
  }(g, t) ? (Ql = !1, Ve(d, ic, y)) : function(e, s, i, l) {
1630
1630
  return go ? !s && !i && (Ul(e) || e.toLowerCase() === "h" && l) : !(l || s || i) && Ul(e);
1631
1631
  }(g, n, r, f) ? Ul(g) ? Ve(d, fc, y) : (y.preventDefault(), Ve(d, bo, !0)) : function(e) {
@@ -1656,7 +1656,7 @@ const ni = Object.freeze({}), tp = 30, ep = [["keydown", function(y, d) {
1656
1656
  return !s && e.toLowerCase() === "c" && (go ? i : l);
1657
1657
  }(g, t, r, f) ? (y.preventDefault(), Ve(d, hc, y)) : function(e, s, i, l) {
1658
1658
  return !s && e.toLowerCase() === "x" && (go ? i : l);
1659
- }(g, t, r, f) ? (y.preventDefault(), Ve(d, gc, y)) : Xg(g, r, f) && (y.preventDefault(), Ve(d, Iu, y)) : !Gi && Xg(g, r, f) && (y.preventDefault(), Ve(d, Iu, y)), function(e, s, i, l) {
1659
+ }(g, t, r, f) ? (y.preventDefault(), Ve(d, gc, y)) : Qg(g, r, f) && (y.preventDefault(), Ve(d, Iu, y)) : !Gi && Qg(g, r, f) && (y.preventDefault(), Ve(d, Iu, y)), function(e, s, i, l) {
1660
1660
  return e || s || i || l;
1661
1661
  }(f, t, n, r) && Ve(d, _v, y));
1662
1662
  }], ["pointerdown", function(y, d) {
@@ -1687,9 +1687,9 @@ const ni = Object.freeze({}), tp = 30, ep = [["keydown", function(y, d) {
1687
1687
  const e = g.isBackward(), s = e ? g.anchor.offset : g.focus.offset, i = e ? g.focus.offset : g.anchor.offset;
1688
1688
  Ru && !g.isCollapsed() && Pe(r) && n.anchorNode !== null && r.getTextContent().slice(0, s) + t + r.getTextContent().slice(s + i) === iy(n.anchorNode) || Ve(d, Ki, t);
1689
1689
  const l = t.length;
1690
- Gi && l > 1 && y.inputType === "insertCompositionText" && !d.isComposing() && (g.anchor.offset -= l), Np || rd || Pp || !d.isComposing() || (Xl = 0, yr(null));
1690
+ Gi && l > 1 && y.inputType === "insertCompositionText" && !d.isComposing() && (g.anchor.offset -= l), Pp || rd || Ip || !d.isComposing() || (Xl = 0, yr(null));
1691
1691
  } else
1692
- qp(!1, d, t !== null ? t : void 0), Hl && (jf(d, t || void 0), Hl = !1);
1692
+ Wp(!1, d, t !== null ? t : void 0), Hl && (jf(d, t || void 0), Hl = !1);
1693
1693
  jr(), Y0(Vn());
1694
1694
  }), Ts = null;
1695
1695
  }], ["click", function(y, d) {
@@ -1744,7 +1744,7 @@ Ru && ep.push(["beforeinput", (y, d) => function(g, t) {
1744
1744
  if (!xe(n))
1745
1745
  return;
1746
1746
  const s = g.data;
1747
- Ts !== null && qp(!1, t, Ts), n.dirty && Ts === null || !n.isCollapsed() || Sr(n.anchor.getNode()) || r === null || n.applyDOMRange(r), Ts = null;
1747
+ Ts !== null && Wp(!1, t, Ts), n.dirty && Ts === null || !n.isCollapsed() || Sr(n.anchor.getNode()) || r === null || n.applyDOMRange(r), Ts = null;
1748
1748
  const i = n.anchor, l = n.focus, o = i.getNode(), a = l.getNode();
1749
1749
  if (f !== "insertText" && f !== "insertTranspose")
1750
1750
  switch (g.preventDefault(), f) {
@@ -1833,12 +1833,12 @@ function vy(y, d, g, t, f) {
1833
1833
  const r = y.anchor, n = y.focus, e = r.getNode(), s = Vn(), i = Fo(s._window), l = i !== null ? i.anchorNode : null, o = r.key, a = s.getElementByKey(o), c = g.length;
1834
1834
  return o !== n.key || !Pe(e) || (!f && (!Ru || yy < t + 50) || e.isDirty() && c < 2 || ry(g)) && r.offset !== n.offset && !e.isComposing() || ks(e) || e.isDirty() && c > 1 || (f || !Ru) && a !== null && !e.isComposing() && l !== Bu(a) || i !== null && d !== null && (!d.collapsed || d.startContainer !== i.anchorNode || d.startOffset !== i.anchorOffset) || e.getFormat() !== y.format || e.getStyle() !== y.style || Hv(y, e);
1835
1835
  }
1836
- function em(y, d) {
1836
+ function nm(y, d) {
1837
1837
  return y !== null && y.nodeValue !== null && y.nodeType === ea && d !== 0 && d !== y.nodeValue.length;
1838
1838
  }
1839
- function nm(y, d, g) {
1839
+ function rm(y, d, g) {
1840
1840
  const { anchorNode: t, anchorOffset: f, focusNode: r, focusOffset: n } = y;
1841
- np && (np = !1, em(t, f) && em(r, n)) || Kr(d, () => {
1841
+ np && (np = !1, nm(t, f) && nm(r, n)) || Kr(d, () => {
1842
1842
  if (!g)
1843
1843
  return void lr(null);
1844
1844
  if (!yc(d, t, r))
@@ -1882,7 +1882,7 @@ function jf(y, d) {
1882
1882
  if (yr(null), g !== null && d != null) {
1883
1883
  if (d === "") {
1884
1884
  const t = Wn(g), f = Bu(y.getElementByKey(g));
1885
- return void (f !== null && f.nodeValue !== null && Pe(t) && Wp(t, f.nodeValue, null, null, !0));
1885
+ return void (f !== null && f.nodeValue !== null && Pe(t) && Jp(t, f.nodeValue, null, null, !0));
1886
1886
  }
1887
1887
  if (d[d.length - 1] === `
1888
1888
  `) {
@@ -1893,7 +1893,7 @@ function jf(y, d) {
1893
1893
  }
1894
1894
  }
1895
1895
  }
1896
- qp(!0, y, d);
1896
+ Wp(!0, y, d);
1897
1897
  }
1898
1898
  function xy(y) {
1899
1899
  let d = y.__lexicalEventHandles;
@@ -1914,13 +1914,13 @@ function wy(y) {
1914
1914
  const o = l.nodeType;
1915
1915
  o !== mc && o !== ea || lr(fd(i, g, t, y));
1916
1916
  }));
1917
- const f = Hp(t), r = f[f.length - 1], n = r._key, e = Vs.get(n), s = e || r;
1918
- s !== t && nm(g, s, !1), nm(g, t, !0), t !== r ? Vs.set(n, t) : e && Vs.delete(n);
1917
+ const f = qp(t), r = f[f.length - 1], n = r._key, e = Vs.get(n), s = e || r;
1918
+ s !== t && rm(g, s, !1), rm(g, t, !0), t !== r ? Vs.set(n, t) : e && Vs.delete(n);
1919
1919
  }
1920
- function rm(y) {
1920
+ function om(y) {
1921
1921
  y._lexicalHandled = !0;
1922
1922
  }
1923
- function om(y) {
1923
+ function im(y) {
1924
1924
  return y._lexicalHandled === !0;
1925
1925
  }
1926
1926
  function e1(y) {
@@ -1931,7 +1931,7 @@ function e1(y) {
1931
1931
  const f = y.__lexicalEditor;
1932
1932
  f != null && (function(n) {
1933
1933
  if (n._parentEditor !== null) {
1934
- const e = Hp(n), s = e[e.length - 1]._key;
1934
+ const e = qp(n), s = e[e.length - 1]._key;
1935
1935
  Vs.get(s) === n && Vs.delete(s);
1936
1936
  } else
1937
1937
  Vs.delete(n._key);
@@ -2217,7 +2217,7 @@ class ud {
2217
2217
  })), xe(t)) {
2218
2218
  lr(t);
2219
2219
  const h = t.anchor, p = t.focus;
2220
- h.key === r && cm(h, e), p.key === r && cm(p, e);
2220
+ h.key === r && um(h, e), p.key === r && um(p, e);
2221
2221
  }
2222
2222
  return Wi() === r && yr(n), e;
2223
2223
  }
@@ -2254,7 +2254,7 @@ class ud {
2254
2254
  return !1;
2255
2255
  }
2256
2256
  createParentElementNode() {
2257
- return or();
2257
+ return rr();
2258
2258
  }
2259
2259
  selectStart() {
2260
2260
  return this.selectPrevious();
@@ -2317,9 +2317,9 @@ class nl extends ud {
2317
2317
  const t = g.parentElement;
2318
2318
  if (t !== null) {
2319
2319
  const f = t.firstChild;
2320
- if (f === g || f.nextSibling === g && im(f)) {
2320
+ if (f === g || f.nextSibling === g && am(f)) {
2321
2321
  const r = t.lastChild;
2322
- if (r === g || r.previousSibling === g && im(r))
2322
+ if (r === g || r.previousSibling === g && am(r))
2323
2323
  return !0;
2324
2324
  }
2325
2325
  }
@@ -2342,11 +2342,11 @@ function Zs() {
2342
2342
  function Da(y) {
2343
2343
  return y instanceof nl;
2344
2344
  }
2345
- function im(y) {
2345
+ function am(y) {
2346
2346
  return y.nodeType === ea && /^( |\t|\r?\n)+$/.test(y.textContent || "");
2347
2347
  }
2348
2348
  function Nf(y, d) {
2349
- return 16 & d ? "code" : d & Ip ? "mark" : 32 & d ? "sub" : 64 & d ? "sup" : null;
2349
+ return 16 & d ? "code" : d & Rp ? "mark" : 32 & d ? "sub" : 64 & d ? "sup" : null;
2350
2350
  }
2351
2351
  function Pf(y, d) {
2352
2352
  return 1 & d ? "strong" : 2 & d ? "em" : "span";
@@ -2393,7 +2393,7 @@ function Ey(y, d, g) {
2393
2393
  t.nodeValue = r;
2394
2394
  }
2395
2395
  }
2396
- function am(y, d, g, t, f, r) {
2396
+ function sm(y, d, g, t, f, r) {
2397
2397
  Ey(f, y, d);
2398
2398
  const n = r.theme.text;
2399
2399
  n !== void 0 && Sy(0, 0, t, y, n);
@@ -2459,7 +2459,7 @@ class na extends ud {
2459
2459
  createDOM(d, g) {
2460
2460
  const t = this.__format, f = Nf(0, t), r = Pf(0, t), n = f === null ? r : f, e = document.createElement(n);
2461
2461
  let s = e;
2462
- this.hasFormat("code") && e.setAttribute("spellcheck", "false"), f !== null && (s = document.createElement(r), e.appendChild(s)), am(s, this, 0, t, this.__text, d);
2462
+ this.hasFormat("code") && e.setAttribute("spellcheck", "false"), f !== null && (s = document.createElement(r), e.appendChild(s)), sm(s, this, 0, t, this.__text, d);
2463
2463
  const i = this.__style;
2464
2464
  return i !== "" && (e.style.cssText = i), e;
2465
2465
  }
@@ -2471,7 +2471,7 @@ class na extends ud {
2471
2471
  const h = g.firstChild;
2472
2472
  h == null && qe(48);
2473
2473
  const p = document.createElement(l);
2474
- return am(p, this, 0, n, f, t), g.replaceChild(p, h), !1;
2474
+ return sm(p, this, 0, n, f, t), g.replaceChild(p, h), !1;
2475
2475
  }
2476
2476
  let o = g;
2477
2477
  s !== null && e !== null && (o = g.firstChild, o == null && qe(49)), Ey(f, o, this);
@@ -2619,7 +2619,7 @@ class na extends ud {
2619
2619
  const e = Ae();
2620
2620
  if (xe(e)) {
2621
2621
  const o = e.anchor, a = e.focus;
2622
- o !== null && o.key === f && (gm(o, g, t, d, n), e.dirty = !0), a !== null && a.key === f && (gm(a, g, t, d, n), e.dirty = !0);
2622
+ o !== null && o.key === f && (mm(o, g, t, d, n), e.dirty = !0), a !== null && a.key === f && (mm(a, g, t, d, n), e.dirty = !0);
2623
2623
  }
2624
2624
  const s = d.__text, i = g ? s + r : r + s;
2625
2625
  this.setTextContent(i);
@@ -2631,13 +2631,13 @@ class na extends ud {
2631
2631
  }
2632
2632
  }
2633
2633
  function r1(y) {
2634
- return { forChild: Kp(y.style), node: null };
2634
+ return { forChild: Gp(y.style), node: null };
2635
2635
  }
2636
2636
  function o1(y) {
2637
2637
  const d = y, g = d.style.fontWeight === "normal";
2638
- return { forChild: Kp(d.style, g ? void 0 : "bold"), node: null };
2638
+ return { forChild: Gp(d.style, g ? void 0 : "bold"), node: null };
2639
2639
  }
2640
- const sm = /* @__PURE__ */ new WeakMap();
2640
+ const lm = /* @__PURE__ */ new WeakMap();
2641
2641
  function i1(y) {
2642
2642
  return y.nodeName === "PRE" || y.nodeType === mc && y.style !== void 0 && y.style.whiteSpace !== void 0 && y.style.whiteSpace.startsWith("pre");
2643
2643
  }
@@ -2648,11 +2648,11 @@ function a1(y) {
2648
2648
  if (function(t) {
2649
2649
  let f, r = t.parentNode;
2650
2650
  const n = [t];
2651
- for (; r !== null && (f = sm.get(r)) === void 0 && !i1(r); )
2651
+ for (; r !== null && (f = lm.get(r)) === void 0 && !i1(r); )
2652
2652
  n.push(r), r = r.parentNode;
2653
2653
  const e = f === void 0 ? r : f;
2654
2654
  for (let s = 0; s < n.length; s++)
2655
- sm.set(n[s], e);
2655
+ lm.set(n[s], e);
2656
2656
  return e;
2657
2657
  }(d) !== null) {
2658
2658
  const t = g.split(/(\r?\n|\t)/), f = [], r = t.length;
@@ -2668,7 +2668,7 @@ function a1(y) {
2668
2668
  return { node: null };
2669
2669
  if (g[0] === " ") {
2670
2670
  let t = d, f = !0;
2671
- for (; t !== null && (t = lm(t, !1)) !== null; ) {
2671
+ for (; t !== null && (t = cm(t, !1)) !== null; ) {
2672
2672
  const r = t.textContent || "";
2673
2673
  if (r.length > 0) {
2674
2674
  /[ \t\n]$/.test(r) && (g = g.slice(1)), f = !1;
@@ -2679,7 +2679,7 @@ function a1(y) {
2679
2679
  }
2680
2680
  if (g[g.length - 1] === " ") {
2681
2681
  let t = d, f = !0;
2682
- for (; t !== null && (t = lm(t, !0)) !== null; )
2682
+ for (; t !== null && (t = cm(t, !0)) !== null; )
2683
2683
  if ((t.textContent || "").replace(/^( |\t|\r?\n)+/, "").length > 0) {
2684
2684
  f = !1;
2685
2685
  break;
@@ -2688,7 +2688,7 @@ function a1(y) {
2688
2688
  }
2689
2689
  return g === "" ? { node: null } : { node: nr(g) };
2690
2690
  }
2691
- function lm(y, d) {
2691
+ function cm(y, d) {
2692
2692
  let g = y;
2693
2693
  for (; ; ) {
2694
2694
  let t;
@@ -2715,7 +2715,7 @@ function lm(y, d) {
2715
2715
  const s1 = { code: "code", em: "italic", i: "italic", s: "strikethrough", strong: "bold", sub: "subscript", sup: "superscript", u: "underline" };
2716
2716
  function Bi(y) {
2717
2717
  const d = s1[y.nodeName.toLowerCase()];
2718
- return d === void 0 ? { node: null } : { forChild: Kp(y.style, d), node: null };
2718
+ return d === void 0 ? { node: null } : { forChild: Gp(y.style, d), node: null };
2719
2719
  }
2720
2720
  function nr(y = "") {
2721
2721
  return di(new na(y));
@@ -2723,7 +2723,7 @@ function nr(y = "") {
2723
2723
  function Pe(y) {
2724
2724
  return y instanceof na;
2725
2725
  }
2726
- function Kp(y, d) {
2726
+ function Gp(y, d) {
2727
2727
  const g = y.fontWeight, t = y.textDecoration.split(" "), f = g === "700" || g === "bold", r = t.includes("line-through"), n = y.fontStyle === "italic", e = t.includes("underline"), s = y.verticalAlign;
2728
2728
  return (i) => (Pe(i) && (f && !i.hasFormat("bold") && i.toggleFormat("bold"), r && !i.hasFormat("strikethrough") && i.toggleFormat("strikethrough"), n && !i.hasFormat("italic") && i.toggleFormat("italic"), e && !i.hasFormat("underline") && i.toggleFormat("underline"), s !== "sub" || i.hasFormat("subscript") || i.toggleFormat("subscript"), s !== "super" || i.hasFormat("superscript") || i.toggleFormat("superscript"), d && !i.hasFormat(d) && i.toggleFormat(d)), i);
2729
2729
  }
@@ -2819,7 +2819,7 @@ function If(y, d) {
2819
2819
  }
2820
2820
  y.set(g, t, f);
2821
2821
  }
2822
- function cm(y, d) {
2822
+ function um(y, d) {
2823
2823
  if (ge(d)) {
2824
2824
  const g = d.getLastDescendant();
2825
2825
  ge(g) || Pe(g) ? If(y, g) : If(y, d);
@@ -3002,7 +3002,7 @@ class ra {
3002
3002
  const g = this.anchor, t = this.focus, f = this.format, r = this.style;
3003
3003
  let n = g, e = t;
3004
3004
  !this.isCollapsed() && t.isBefore(g) && (n = t, e = g), n.type === "element" && function(p, m, b, _) {
3005
- const v = p.getNode(), w = v.getChildAtIndex(p.offset), x = nr(), S = Sr(v) ? or().append(x) : x;
3005
+ const v = p.getNode(), w = v.getChildAtIndex(p.offset), x = nr(), S = Sr(v) ? rr().append(x) : x;
3006
3006
  x.setFormat(b), x.setStyle(_), w === null ? v.append(S) : w.insertBefore(S), p.is(m) && m.set(x.__key, 0, "text"), p.set(x.__key, 0, "text");
3007
3007
  }(n, e, f, r);
3008
3008
  const s = n.offset;
@@ -3166,7 +3166,7 @@ class ra {
3166
3166
  return g.splice(u, 0, d), void t.selectEnd();
3167
3167
  }
3168
3168
  const f = function(u) {
3169
- const h = or();
3169
+ const h = rr();
3170
3170
  let p = null;
3171
3171
  for (let m = 0; m < u.length; m++) {
3172
3172
  const b = u[m], _ = Da(b);
@@ -3198,7 +3198,7 @@ class ra {
3198
3198
  }
3199
3199
  insertParagraph() {
3200
3200
  if (this.anchor.key === "root") {
3201
- const n = or();
3201
+ const n = rr();
3202
3202
  return Bn().splice(this.anchor.offset, 0, [n]), n.select(), n;
3203
3203
  }
3204
3204
  const d = Rf(this), g = Tf(this.anchor.getNode(), Os);
@@ -3259,7 +3259,7 @@ class ra {
3259
3259
  if (!i)
3260
3260
  return;
3261
3261
  const l = s._blockCursorElement, o = s._rootElement;
3262
- if (o === null || l === null || !ge(e) || e.isInline() || e.canBeEmpty() || Vp(l, s, o), function(a, c, u, h) {
3262
+ if (o === null || l === null || !ge(e) || e.isInline() || e.canBeEmpty() || Kp(l, s, o), function(a, c, u, h) {
3263
3263
  a.modify(c, u, h);
3264
3264
  }(i, d, g ? "backward" : "forward", t), i.rangeCount > 0) {
3265
3265
  const a = i.getRangeAt(0), c = this.anchor.getNode(), u = Sr(c) ? c : Wv(c);
@@ -3320,11 +3320,11 @@ class ra {
3320
3320
  if (f = t.type === "text" ? t.getNode() : null, e !== null && e.isSegmented()) {
3321
3321
  const s = r.offset, i = e.getTextContentSize();
3322
3322
  if (e.is(f) || d && s !== i || !d && s !== 0)
3323
- return void dm(e, d, s);
3323
+ return void fm(e, d, s);
3324
3324
  } else if (f !== null && f.isSegmented()) {
3325
3325
  const s = t.offset, i = f.getTextContentSize();
3326
3326
  if (f.is(e) || d && s !== 0 || !d && s !== i)
3327
- return void dm(f, d, s);
3327
+ return void fm(f, d, s);
3328
3328
  }
3329
3329
  (function(s, i) {
3330
3330
  const l = s.anchor, o = s.focus, a = l.getNode(), c = o.getNode();
@@ -3369,7 +3369,7 @@ class ra {
3369
3369
  function oo(y) {
3370
3370
  return y instanceof dd;
3371
3371
  }
3372
- function um(y) {
3372
+ function dm(y) {
3373
3373
  const d = y.offset;
3374
3374
  if (y.type === "text")
3375
3375
  return d;
@@ -3381,9 +3381,9 @@ function ip(y) {
3381
3381
  if (d === null)
3382
3382
  return [0, 0];
3383
3383
  const [g, t] = d;
3384
- return g.type === "element" && t.type === "element" && g.key === t.key && g.offset === t.offset ? [0, 0] : [um(g), um(t)];
3384
+ return g.type === "element" && t.type === "element" && g.key === t.key && g.offset === t.offset ? [0, 0] : [dm(g), dm(t)];
3385
3385
  }
3386
- function dm(y, d, g) {
3386
+ function fm(y, d, g) {
3387
3387
  const t = y, f = t.getTextContent().split(/(?=\s)/g), r = f.length;
3388
3388
  let n = 0, e = 0;
3389
3389
  for (let i = 0; i < r; i++) {
@@ -3396,7 +3396,7 @@ function dm(y, d, g) {
3396
3396
  const s = f.join("").trim();
3397
3397
  s === "" ? t.remove() : (t.setTextContent(s), t.select(e, e));
3398
3398
  }
3399
- function fm(y, d, g, t) {
3399
+ function pm(y, d, g, t) {
3400
3400
  let f, r = d;
3401
3401
  if (y.nodeType === mc) {
3402
3402
  let n = !1;
@@ -3410,7 +3410,7 @@ function fm(y, d, g, t) {
3410
3410
  y === a && d > Array.prototype.indexOf.call(a.children, i) && r--;
3411
3411
  }
3412
3412
  if (f = Hs(l), Pe(f))
3413
- r = Kg(f, n);
3413
+ r = Gg(f, n);
3414
3414
  else {
3415
3415
  let a = Hs(y);
3416
3416
  if (a === null)
@@ -3425,7 +3425,7 @@ function fm(y, d, g, t) {
3425
3425
  const u = n ? c.getLastDescendant() : c.getFirstDescendant();
3426
3426
  u === null ? a = c : (c = u, a = ge(c) ? c : c.getParentOrThrow()), r = 0;
3427
3427
  }
3428
- Pe(c) ? (f = c, a = null, r = Kg(c, n)) : c !== a && n && !o && r++;
3428
+ Pe(c) ? (f = c, a = null, r = Gg(c, n)) : c !== a && n && !o && r++;
3429
3429
  } else {
3430
3430
  const c = a.getIndexWithinParent();
3431
3431
  r = d === 0 && Tn(a) && Hs(y) === a ? c : c + 1, a = a.getParentOrThrow();
@@ -3437,7 +3437,7 @@ function fm(y, d, g, t) {
3437
3437
  f = Hs(y);
3438
3438
  return Pe(f) ? ao(f.__key, r, "text") : null;
3439
3439
  }
3440
- function pm(y, d, g) {
3440
+ function hm(y, d, g) {
3441
3441
  const t = y.offset, f = y.getNode();
3442
3442
  if (t === 0) {
3443
3443
  const r = f.getPreviousSibling(), n = f.getParent();
@@ -3461,7 +3461,7 @@ function pm(y, d, g) {
3461
3461
  function Cy(y, d, g) {
3462
3462
  if (y.type === "text" && d.type === "text") {
3463
3463
  const t = y.isBefore(d), f = y.is(d);
3464
- pm(y, t, f), pm(d, !t, f), f && (d.key = y.key, d.offset = y.offset, d.type = y.type);
3464
+ hm(y, t, f), hm(d, !t, f), f && (d.key = y.key, d.offset = y.offset, d.type = y.type);
3465
3465
  const r = Vn();
3466
3466
  if (r.isComposing() && r._compositionKey !== y.key && xe(g)) {
3467
3467
  const n = g.anchor, e = g.focus;
@@ -3472,10 +3472,10 @@ function Cy(y, d, g) {
3472
3472
  function ky(y, d, g, t, f, r) {
3473
3473
  if (y === null || g === null || !yc(f, y, g))
3474
3474
  return null;
3475
- const n = fm(y, d, xe(r) ? r.anchor : null, f);
3475
+ const n = pm(y, d, xe(r) ? r.anchor : null, f);
3476
3476
  if (n === null)
3477
3477
  return null;
3478
- const e = fm(g, t, xe(r) ? r.focus : null, f);
3478
+ const e = pm(g, t, xe(r) ? r.focus : null, f);
3479
3479
  if (e === null)
3480
3480
  return null;
3481
3481
  if (n.type === "element" && e.type === "element") {
@@ -3492,7 +3492,7 @@ function Oy(y, d, g, t, f, r) {
3492
3492
  const n = zo(), e = new ra(ao(y, d, f), ao(g, t, r), 0, "");
3493
3493
  return e.dirty = !0, n._selection = e, e;
3494
3494
  }
3495
- function Gp() {
3495
+ function Yp() {
3496
3496
  const y = ao("root", 0, "element"), d = ao("root", 0, "element");
3497
3497
  return new ra(y, d, 0, "");
3498
3498
  }
@@ -3535,7 +3535,7 @@ function Wu(y, d, g, t = 1) {
3535
3535
  const i = f.offset;
3536
3536
  if (g <= i && t > 0 || g < i && t < 0) {
3537
3537
  const l = Math.max(0, i + t);
3538
- f.set(s, l, "element"), r.set(s, l, "element"), hm(y);
3538
+ f.set(s, l, "element"), r.set(s, l, "element"), gm(y);
3539
3539
  }
3540
3540
  } else {
3541
3541
  const i = y.isBackward(), l = i ? r : f, o = l.getNode(), a = i ? f : r, c = a.getNode();
@@ -3548,9 +3548,9 @@ function Wu(y, d, g, t = 1) {
3548
3548
  (g <= u && t > 0 || g < u && t < 0) && a.set(s, Math.max(0, u + t), "element");
3549
3549
  }
3550
3550
  }
3551
- hm(y);
3551
+ gm(y);
3552
3552
  }
3553
- function hm(y) {
3553
+ function gm(y) {
3554
3554
  const d = y.anchor, g = d.offset, t = y.focus, f = t.offset, r = d.getNode(), n = t.getNode();
3555
3555
  if (y.isCollapsed()) {
3556
3556
  if (!ge(r))
@@ -3581,12 +3581,12 @@ function Ju(y, d, g, t, f) {
3581
3581
  let r = null, n = 0, e = null;
3582
3582
  t !== null ? (r = t.__key, Pe(t) ? (n = t.getTextContentSize(), e = "text") : ge(t) && (n = t.getChildrenSize(), e = "element")) : f !== null && (r = f.__key, Pe(f) ? e = "text" : ge(f) && (e = "element")), r !== null && e !== null ? y.set(r, n, e) : (n = d.getIndexWithinParent(), n === -1 && (n = g.getChildrenSize()), y.set(g.__key, n, "element"));
3583
3583
  }
3584
- function gm(y, d, g, t, f) {
3584
+ function mm(y, d, g, t, f) {
3585
3585
  y.type === "text" ? (y.key = g, d || (y.offset += f)) : y.offset > t.getIndexWithinParent() && (y.offset -= 1);
3586
3586
  }
3587
3587
  function d1(y, d, g, t, f, r, n) {
3588
3588
  const e = t.anchorNode, s = t.focusNode, i = t.anchorOffset, l = t.focusOffset, o = document.activeElement;
3589
- if (f.has("collaboration") && o !== r || o !== null && $p(o))
3589
+ if (f.has("collaboration") && o !== r || o !== null && Hp(o))
3590
3590
  return;
3591
3591
  if (!xe(d))
3592
3592
  return void (y !== null && yc(g, e, s) && t.removeAllRanges());
@@ -3664,7 +3664,7 @@ function Rf(y) {
3664
3664
  function p1(y, d) {
3665
3665
  const g = y.getParent();
3666
3666
  if (!g) {
3667
- const f = or();
3667
+ const f = rr();
3668
3668
  return Bn().append(f), f.select(), [Bn(), 0];
3669
3669
  }
3670
3670
  if (Pe(y)) {
@@ -3684,7 +3684,7 @@ function p1(y, d) {
3684
3684
  return [g, y.getIndexWithinParent() + 1];
3685
3685
  }
3686
3686
  let dr = null, fr = null, zr = !1, Mf = !1, vu = 0;
3687
- const mm = { characterData: !0, childList: !0, subtree: !0 };
3687
+ const ym = { characterData: !0, childList: !0, subtree: !0 };
3688
3688
  function rl() {
3689
3689
  return zr || dr !== null && dr._readOnly;
3690
3690
  }
@@ -3703,7 +3703,7 @@ function Vn() {
3703
3703
  function h1() {
3704
3704
  return fr;
3705
3705
  }
3706
- function ym(y, d, g) {
3706
+ function bm(y, d, g) {
3707
3707
  const t = d.__type, f = function(e, s) {
3708
3708
  const i = e._nodes.get(s);
3709
3709
  return i === void 0 && qe(30, s), i;
@@ -3714,13 +3714,13 @@ function ym(y, d, g) {
3714
3714
  for (let e = 0; e < n && (r[e](d), d.isAttached()); e++)
3715
3715
  ;
3716
3716
  }
3717
- function bm(y, d) {
3717
+ function vm(y, d) {
3718
3718
  return y !== void 0 && y.__key !== d && y.isAttached();
3719
3719
  }
3720
3720
  function g1(y) {
3721
- return Yp(y, Vn()._nodes);
3721
+ return Zp(y, Vn()._nodes);
3722
3722
  }
3723
- function Yp(y, d) {
3723
+ function Zp(y, d) {
3724
3724
  const g = y.type, t = d.get(g);
3725
3725
  t === void 0 && qe(17, g);
3726
3726
  const f = t.klass;
@@ -3728,12 +3728,12 @@ function Yp(y, d) {
3728
3728
  const r = f.importJSON(y), n = y.children;
3729
3729
  if (ge(r) && Array.isArray(n))
3730
3730
  for (let e = 0; e < n.length; e++) {
3731
- const s = Yp(n[e], d);
3731
+ const s = Zp(n[e], d);
3732
3732
  r.append(s);
3733
3733
  }
3734
3734
  return r;
3735
3735
  }
3736
- function vm(y, d) {
3736
+ function _m(y, d) {
3737
3737
  const g = dr, t = zr, f = fr;
3738
3738
  dr = y, zr = !0, fr = null;
3739
3739
  try {
@@ -3758,7 +3758,7 @@ function La(y, d) {
3758
3758
  throw x;
3759
3759
  return Iy(y, null, t, g), Z0(y), y._dirtyType = Ys, Mf = !0, La(y, r), void (Mf = !1);
3760
3760
  } finally {
3761
- c.observe(t, mm), y._updating = a, dr = i, zr = l, fr = o;
3761
+ c.observe(t, ym), y._updating = a, dr = i, zr = l, fr = o;
3762
3762
  }
3763
3763
  }
3764
3764
  g._readOnly || (g._readOnly = !0);
@@ -3777,9 +3777,9 @@ function La(y, d) {
3777
3777
  try {
3778
3778
  if (c !== null && c.disconnect(), s || e === null || e.dirty) {
3779
3779
  const x = y._blockCursorElement;
3780
- x !== null && Vp(x, y, t), d1(n, e, y, v, b, t);
3780
+ x !== null && Kp(x, y, t), d1(n, e, y, v, b, t);
3781
3781
  }
3782
- Vv(y, t, e), c !== null && c.observe(t, mm);
3782
+ Vv(y, t, e), c !== null && c.observe(t, ym);
3783
3783
  } finally {
3784
3784
  fr = o, dr = i;
3785
3785
  }
@@ -3793,7 +3793,7 @@ function La(y, d) {
3793
3793
  }(y, u, b, h, r), xe(e) || e === null || n !== null && n.is(e) || y.dispatchCommand(li, void 0);
3794
3794
  const w = y._pendingDecorators;
3795
3795
  w !== null && (y._decorators = w, y._pendingDecorators = null, tc("decorator", y, !0, w)), function(x, S, C) {
3796
- const k = Vg(S), D = Vg(C);
3796
+ const k = Kg(S), D = Kg(C);
3797
3797
  k !== D && tc("textcontent", x, !0, D);
3798
3798
  }(y, d || r, g), tc("update", y, !0, { dirtyElements: p, dirtyLeaves: h, editorState: g, normalizedNodes: m, prevEditorState: d || r, tags: b }), function(x, S) {
3799
3799
  if (x._deferred = [], S.length !== 0) {
@@ -3835,7 +3835,7 @@ function Ay(y, d, g) {
3835
3835
  f = Ay(y, d, g);
3836
3836
  }), f;
3837
3837
  }
3838
- const t = Hp(y);
3838
+ const t = qp(y);
3839
3839
  for (let f = 4; f >= 0; f--)
3840
3840
  for (let r = 0; r < t.length; r++) {
3841
3841
  const n = t[r]._commands.get(d);
@@ -3851,7 +3851,7 @@ function Ay(y, d, g) {
3851
3851
  }
3852
3852
  return !1;
3853
3853
  }
3854
- function _m(y, d) {
3854
+ function xm(y, d) {
3855
3855
  const g = y._updates;
3856
3856
  let t = d || !1;
3857
3857
  for (; g.length !== 0; ) {
@@ -3879,7 +3879,7 @@ function jy(y, d, g) {
3879
3879
  return xe(_) || _ == null ? fd(_, v, b, null) : _.clone();
3880
3880
  }(y));
3881
3881
  const p = y._compositionKey;
3882
- d(), n = _m(y, n), function(b, _) {
3882
+ d(), n = xm(y, n), function(b, _) {
3883
3883
  const v = _.getEditorState()._selection, w = b._selection;
3884
3884
  if (xe(w)) {
3885
3885
  const x = w.anchor, S = w.focus;
@@ -3893,7 +3893,7 @@ function jy(y, d, g) {
3893
3893
  const v = _._dirtyLeaves, w = b._nodeMap;
3894
3894
  for (const x of v) {
3895
3895
  const S = w.get(x);
3896
- Pe(S) && S.isAttached() && S.isSimpleText() && !S.isUnmergeable() && Wg(S);
3896
+ Pe(S) && S.isAttached() && S.isSimpleText() && !S.isUnmergeable() && Jg(S);
3897
3897
  }
3898
3898
  }(i, y) : function(b, _) {
3899
3899
  const v = _._dirtyLeaves, w = _._dirtyElements, x = b._nodeMap, S = Wi(), C = /* @__PURE__ */ new Map();
@@ -3903,7 +3903,7 @@ function jy(y, d, g) {
3903
3903
  _._dirtyLeaves = /* @__PURE__ */ new Set();
3904
3904
  for (const R of k) {
3905
3905
  const j = x.get(R);
3906
- Pe(j) && j.isAttached() && j.isSimpleText() && !j.isUnmergeable() && Wg(j), j !== void 0 && bm(j, S) && ym(_, j, C), v.add(R);
3906
+ Pe(j) && j.isAttached() && j.isSimpleText() && !j.isUnmergeable() && Jg(j), j !== void 0 && vm(j, S) && bm(_, j, C), v.add(R);
3907
3907
  }
3908
3908
  if (k = _._dirtyLeaves, D = k.size, D > 0) {
3909
3909
  vu++;
@@ -3916,12 +3916,12 @@ function jy(y, d, g) {
3916
3916
  if (j !== "root" && !z)
3917
3917
  continue;
3918
3918
  const H = x.get(j);
3919
- H !== void 0 && bm(H, S) && ym(_, H, C), w.set(j, z);
3919
+ H !== void 0 && vm(H, S) && bm(_, H, C), w.set(j, z);
3920
3920
  }
3921
3921
  k = _._dirtyLeaves, D = k.size, N = _._dirtyElements, O = N.size, vu++;
3922
3922
  }
3923
3923
  _._dirtyLeaves = v, _._dirtyElements = w;
3924
- }(i, y), _m(y), function(b, _, v, w) {
3924
+ }(i, y), xm(y), function(b, _, v, w) {
3925
3925
  const x = b._nodeMap, S = _._nodeMap, C = [];
3926
3926
  for (const [k] of w) {
3927
3927
  const D = S.get(k);
@@ -4100,7 +4100,7 @@ class Uo extends ud {
4100
4100
  }
4101
4101
  hasFormat(d) {
4102
4102
  if (d !== "") {
4103
- const g = $g[d];
4103
+ const g = Hg[d];
4104
4104
  return !!(this.getFormat() & g);
4105
4105
  }
4106
4106
  return !1;
@@ -4145,7 +4145,7 @@ class Uo extends ud {
4145
4145
  return g.__dir = d, g;
4146
4146
  }
4147
4147
  setFormat(d) {
4148
- return this.getWritable().__format = d !== "" ? $g[d] : 0, this;
4148
+ return this.getWritable().__format = d !== "" ? Hg[d] : 0, this;
4149
4149
  }
4150
4150
  setIndent(d) {
4151
4151
  return this.getWritable().__indent = d, this;
@@ -4197,7 +4197,7 @@ class Uo extends ud {
4197
4197
  const u = Ae();
4198
4198
  if (xe(u)) {
4199
4199
  const h = new Set(i), p = new Set(s), { anchor: m, focus: b } = u;
4200
- xm(m, h, p) && Ju(m, m.getNode(), this, o, l), xm(b, h, p) && Ju(b, b.getNode(), this, o, l), a !== 0 || this.canBeEmpty() || Bo(this) || this.remove();
4200
+ wm(m, h, p) && Ju(m, m.getNode(), this, o, l), wm(b, h, p) && Ju(b, b.getNode(), this, o, l), a !== 0 || this.canBeEmpty() || Bo(this) || this.remove();
4201
4201
  }
4202
4202
  }
4203
4203
  return n;
@@ -4248,7 +4248,7 @@ class Uo extends ud {
4248
4248
  function ge(y) {
4249
4249
  return y instanceof Uo;
4250
4250
  }
4251
- function xm(y, d, g) {
4251
+ function wm(y, d, g) {
4252
4252
  let t = y.getNode();
4253
4253
  for (; t; ) {
4254
4254
  const f = t.__key;
@@ -4331,7 +4331,7 @@ class ol extends Uo {
4331
4331
  function Sr(y) {
4332
4332
  return y instanceof ol;
4333
4333
  }
4334
- function Zp() {
4334
+ function Xp() {
4335
4335
  return new pd(/* @__PURE__ */ new Map([["root", new ol()]]));
4336
4336
  }
4337
4337
  function Py(y) {
@@ -4355,17 +4355,17 @@ class pd {
4355
4355
  return this._nodeMap.size === 1 && this._selection === null;
4356
4356
  }
4357
4357
  read(d) {
4358
- return vm(this, d);
4358
+ return _m(this, d);
4359
4359
  }
4360
4360
  clone(d) {
4361
4361
  const g = new pd(this._nodeMap, d === void 0 ? this._selection : d);
4362
4362
  return g._readOnly = !0, g;
4363
4363
  }
4364
4364
  toJSON() {
4365
- return vm(this, () => ({ root: Py(Bn()) }));
4365
+ return _m(this, () => ({ root: Py(Bn()) }));
4366
4366
  }
4367
4367
  }
4368
- class Xp extends Uo {
4368
+ class Qp extends Uo {
4369
4369
  static getType() {
4370
4370
  return "artificial";
4371
4371
  }
@@ -4418,14 +4418,14 @@ class Va extends Uo {
4418
4418
  return { element: g };
4419
4419
  }
4420
4420
  static importJSON(d) {
4421
- const g = or();
4421
+ const g = rr();
4422
4422
  return g.setFormat(d.format), g.setIndent(d.indent), g.setDirection(d.direction), g.setTextFormat(d.textFormat), g;
4423
4423
  }
4424
4424
  exportJSON() {
4425
4425
  return { ...super.exportJSON(), textFormat: this.getTextFormat(), type: "paragraph", version: 1 };
4426
4426
  }
4427
4427
  insertNewAfter(d, g) {
4428
- const t = or();
4428
+ const t = rr();
4429
4429
  t.setTextFormat(d.format);
4430
4430
  const f = this.getDirection();
4431
4431
  return t.setDirection(f), t.setFormat(this.getFormatType()), this.insertAfter(t, g), t;
@@ -4442,7 +4442,7 @@ class Va extends Uo {
4442
4442
  }
4443
4443
  }
4444
4444
  function m1(y) {
4445
- const d = or();
4445
+ const d = rr();
4446
4446
  if (y.style) {
4447
4447
  d.setFormat(y.style.textAlign);
4448
4448
  const g = parseInt(y.style.textIndent, 10) / 20;
@@ -4450,7 +4450,7 @@ function m1(y) {
4450
4450
  }
4451
4451
  return { node: d };
4452
4452
  }
4453
- function or() {
4453
+ function rr() {
4454
4454
  return di(new Va());
4455
4455
  }
4456
4456
  function Ha(y) {
@@ -4459,12 +4459,12 @@ function Ha(y) {
4459
4459
  const on = 0, xs = 3, no = 4;
4460
4460
  function Iy(y, d, g, t) {
4461
4461
  const f = y._keyToDOMMap;
4462
- f.clear(), y._editorState = Zp(), y._pendingEditorState = t, y._compositionKey = null, y._dirtyType = Ua, y._cloneNotNeeded.clear(), y._dirtyLeaves = /* @__PURE__ */ new Set(), y._dirtyElements.clear(), y._normalizedNodes = /* @__PURE__ */ new Set(), y._updateTags = /* @__PURE__ */ new Set(), y._updates = [], y._blockCursorElement = null;
4462
+ f.clear(), y._editorState = Xp(), y._pendingEditorState = t, y._compositionKey = null, y._dirtyType = Ua, y._cloneNotNeeded.clear(), y._dirtyLeaves = /* @__PURE__ */ new Set(), y._dirtyElements.clear(), y._normalizedNodes = /* @__PURE__ */ new Set(), y._updateTags = /* @__PURE__ */ new Set(), y._updates = [], y._blockCursorElement = null;
4463
4463
  const r = y._observer;
4464
4464
  r !== null && (r.disconnect(), y._observer = null), d !== null && (d.textContent = ""), g !== null && (g.textContent = "", f.set("root", g));
4465
4465
  }
4466
4466
  function Ry(y) {
4467
- const d = y || {}, g = h1(), t = d.theme || {}, f = y === void 0 ? g : d.parentEditor || null, r = d.disableEvents || !1, n = Zp(), e = d.namespace || (f !== null ? f._config.namespace : oy()), s = d.editorState, i = [ol, na, nl, vc, Va, Xp, ...d.nodes || []], { onError: l, html: o } = d, a = d.editable === void 0 || d.editable;
4467
+ const d = y || {}, g = h1(), t = d.theme || {}, f = y === void 0 ? g : d.parentEditor || null, r = d.disableEvents || !1, n = Xp(), e = d.namespace || (f !== null ? f._config.namespace : oy()), s = d.editorState, i = [ol, na, nl, vc, Va, Qp, ...d.nodes || []], { onError: l, html: o } = d, a = d.editable === void 0 || d.editable;
4468
4468
  let c;
4469
4469
  if (y === void 0 && g !== null)
4470
4470
  c = g._nodes;
@@ -4614,11 +4614,11 @@ class y1 {
4614
4614
  const o = xy(e);
4615
4615
  for (let a = 0; a < ep.length; a++) {
4616
4616
  const [c, u] = ep[a], h = typeof u == "function" ? (p) => {
4617
- om(p) || (rm(p), (s.isEditable() || c === "click") && u(p, s));
4617
+ im(p) || (om(p), (s.isEditable() || c === "click") && u(p, s));
4618
4618
  } : (p) => {
4619
- if (om(p))
4619
+ if (im(p))
4620
4620
  return;
4621
- rm(p);
4621
+ om(p);
4622
4622
  const m = s.isEditable();
4623
4623
  switch (c) {
4624
4624
  case "cut":
@@ -4628,7 +4628,7 @@ class y1 {
4628
4628
  case "paste":
4629
4629
  return m && Ve(s, cc, p);
4630
4630
  case "dragstart":
4631
- return m && Ve(s, Ap, p);
4631
+ return m && Ve(s, jp, p);
4632
4632
  case "dragover":
4633
4633
  return m && Ve(s, H0, p);
4634
4634
  case "dragend":
@@ -4638,7 +4638,7 @@ class y1 {
4638
4638
  case "blur":
4639
4639
  return m && Ve(s, vv, p);
4640
4640
  case "drop":
4641
- return m && Ve(s, Tp, p);
4641
+ return m && Ve(s, Ap, p);
4642
4642
  }
4643
4643
  };
4644
4644
  e.addEventListener(c, h), o.push(() => {
@@ -4664,11 +4664,11 @@ class y1 {
4664
4664
  }
4665
4665
  parseEditorState(d, g) {
4666
4666
  return function(t, f, r) {
4667
- const n = Zp(), e = dr, s = zr, i = fr, l = f._dirtyElements, o = f._dirtyLeaves, a = f._cloneNotNeeded, c = f._dirtyType;
4667
+ const n = Xp(), e = dr, s = zr, i = fr, l = f._dirtyElements, o = f._dirtyLeaves, a = f._cloneNotNeeded, c = f._dirtyType;
4668
4668
  f._dirtyElements = /* @__PURE__ */ new Map(), f._dirtyLeaves = /* @__PURE__ */ new Set(), f._cloneNotNeeded = /* @__PURE__ */ new Set(), f._dirtyType = 0, dr = n, zr = !1, fr = f;
4669
4669
  try {
4670
4670
  const u = f._nodes;
4671
- Yp(t.root, u), r && r(), n._readOnly = !0;
4671
+ Zp(t.root, u), r && r(), n._readOnly = !0;
4672
4672
  } catch (u) {
4673
4673
  u instanceof Error && f._onError(u);
4674
4674
  } finally {
@@ -4715,7 +4715,7 @@ var v1 = b1(function(y) {
4715
4715
  d.append("v", arguments[g]);
4716
4716
  throw Error(`Minified Lexical error #${y}; visit https://lexical.dev/docs/error?${d} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
4717
4717
  });
4718
- const Qp = I0(null);
4718
+ const th = I0(null);
4719
4719
  function _1(y, d) {
4720
4720
  let g = null;
4721
4721
  return y != null && (g = y[1]), { getTheme: function() {
@@ -4723,10 +4723,10 @@ function _1(y, d) {
4723
4723
  } };
4724
4724
  }
4725
4725
  function Ir() {
4726
- const y = R0(Qp);
4726
+ const y = R0(th);
4727
4727
  return y == null && v1(8), y;
4728
4728
  }
4729
- const My = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, x1 = My ? Wa : rr, su = { tag: "history-merge" };
4729
+ const My = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, x1 = My ? Wa : sr, su = { tag: "history-merge" };
4730
4730
  function Dy({ initialConfig: y, children: d }) {
4731
4731
  const g = el(() => {
4732
4732
  const { theme: t, namespace: f, editor__DEPRECATED: r, nodes: n, onError: e, editorState: s, html: i } = y, l = _1(null, t);
@@ -4739,7 +4739,7 @@ function Dy({ initialConfig: y, children: d }) {
4739
4739
  c.update(() => {
4740
4740
  const h = Bn();
4741
4741
  if (h.isEmpty()) {
4742
- const p = or();
4742
+ const p = rr();
4743
4743
  h.append(p);
4744
4744
  const m = My ? document.activeElement : null;
4745
4745
  (Ae() !== null || m !== null && m === c.getRootElement()) && p.select();
@@ -4768,18 +4768,18 @@ function Dy({ initialConfig: y, children: d }) {
4768
4768
  return x1(() => {
4769
4769
  const t = y.editable, [f] = g;
4770
4770
  f.setEditable(t === void 0 || t);
4771
- }, []), Ee.jsx(Qp.Provider, { value: g, children: d });
4771
+ }, []), Ee.jsx(th.Provider, { value: g, children: d });
4772
4772
  }
4773
4773
  function Ly({ defaultSelection: y }) {
4774
4774
  const [d] = Ir();
4775
- return rr(() => {
4775
+ return sr(() => {
4776
4776
  d.focus(() => {
4777
4777
  const g = document.activeElement, t = d.getRootElement();
4778
4778
  t === null || g !== null && t.contains(g) || t.focus({ preventScroll: !0 });
4779
4779
  }, { defaultSelection: y });
4780
4780
  }, [y, d]), null;
4781
4781
  }
4782
- const w1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : rr;
4782
+ const w1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
4783
4783
  function By({ ariaActiveDescendant: y, ariaAutoComplete: d, ariaControls: g, ariaDescribedBy: t, ariaExpanded: f, ariaLabel: r, ariaLabelledBy: n, ariaMultiline: e, ariaOwns: s, ariaRequired: i, autoCapitalize: l, className: o, id: a, role: c = "textbox", spellCheck: u = !0, style: h, tabIndex: p, "data-testid": m, ...b }) {
4784
4784
  const [_] = Ir(), [v, w] = Ln(!1), x = M0((S) => {
4785
4785
  S && S.ownerDocument && S.ownerDocument.defaultView && _.setRootElement(S);
@@ -4799,7 +4799,7 @@ S1(function(y) {
4799
4799
  throw Error(`Minified Lexical error #${y}; visit https://lexical.dev/docs/error?${d} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
4800
4800
  });
4801
4801
  const Vu = /* @__PURE__ */ new Map();
4802
- function wm(y) {
4802
+ function Sm(y) {
4803
4803
  let d = y;
4804
4804
  for (; d != null; ) {
4805
4805
  if (d.nodeType === Node.TEXT_NODE)
@@ -4808,7 +4808,7 @@ function wm(y) {
4808
4808
  }
4809
4809
  return null;
4810
4810
  }
4811
- function Sm(y) {
4811
+ function Em(y) {
4812
4812
  const d = y.parentNode;
4813
4813
  if (d == null)
4814
4814
  throw new Error("Should never happen");
@@ -4817,9 +4817,9 @@ function Sm(y) {
4817
4817
  function E1(y, d, g, t, f) {
4818
4818
  const r = d.getKey(), n = t.getKey(), e = document.createRange();
4819
4819
  let s = y.getElementByKey(r), i = y.getElementByKey(n), l = g, o = f;
4820
- if (Pe(d) && (s = wm(s)), Pe(t) && (i = wm(i)), d === void 0 || t === void 0 || s === null || i === null)
4820
+ if (Pe(d) && (s = Sm(s)), Pe(t) && (i = Sm(i)), d === void 0 || t === void 0 || s === null || i === null)
4821
4821
  return null;
4822
- s.nodeName === "BR" && ([s, l] = Sm(s)), i.nodeName === "BR" && ([i, o] = Sm(i));
4822
+ s.nodeName === "BR" && ([s, l] = Em(s)), i.nodeName === "BR" && ([i, o] = Em(i));
4823
4823
  const a = s.firstChild;
4824
4824
  s === i && a != null && a.nodeName === "BR" && l === 0 && o === 0 && (o = 1);
4825
4825
  try {
@@ -4854,7 +4854,7 @@ function Fy(y) {
4854
4854
  }
4855
4855
  return d;
4856
4856
  }
4857
- function th(y) {
4857
+ function eh(y) {
4858
4858
  let d = Vu.get(y);
4859
4859
  return d === void 0 && (d = Fy(y), Vu.set(y, d)), d;
4860
4860
  }
@@ -4884,7 +4884,7 @@ function k1(y) {
4884
4884
  Vu.set(d, g);
4885
4885
  }
4886
4886
  function ws(y, d) {
4887
- const g = th("getStyle" in y ? y.getStyle() : y.style), t = Object.entries(d).reduce((r, [n, e]) => (e instanceof Function ? r[n] = e(g[n]) : e === null ? delete r[n] : r[n] = e, r), { ...g }), f = function(r) {
4887
+ const g = eh("getStyle" in y ? y.getStyle() : y.style), t = Object.entries(d).reduce((r, [n, e]) => (e instanceof Function ? r[n] = e(g[n]) : e === null ? delete r[n] : r[n] = e, r), { ...g }), f = function(r) {
4888
4888
  let n = "";
4889
4889
  for (const e in r)
4890
4890
  e && (n += `${e}: ${r[e]};`);
@@ -4947,14 +4947,14 @@ function Gu(y, d, g) {
4947
4947
  O1(y, d, g ? !t : t, "character");
4948
4948
  }
4949
4949
  function A1(y, d, g) {
4950
- const t = th(y.getStyle());
4950
+ const t = eh(y.getStyle());
4951
4951
  return t !== null && t[d] || g;
4952
4952
  }
4953
4953
  function Hy(y, d, g = "") {
4954
4954
  let t = null;
4955
4955
  const f = y.getNodes(), r = y.anchor, n = y.focus, e = y.isBackward(), s = e ? n.offset : r.offset, i = e ? n.getNode() : r.getNode();
4956
4956
  if (xe(y) && y.isCollapsed() && y.style !== "") {
4957
- const l = th(y.style);
4957
+ const l = eh(y.style);
4958
4958
  if (l !== null && d in l)
4959
4959
  return l[d];
4960
4960
  }
@@ -5071,7 +5071,7 @@ function Vy(y) {
5071
5071
  t[t.length - 1].getTopLevelElementOrThrow().insertAfter(y);
5072
5072
  } else
5073
5073
  Bn().append(y);
5074
- const g = or();
5074
+ const g = rr();
5075
5075
  y.insertAfter(g), g.select();
5076
5076
  }
5077
5077
  return y.getLatest();
@@ -5079,11 +5079,11 @@ function Vy(y) {
5079
5079
  function Ji(y, d) {
5080
5080
  return y !== null && Object.getPrototypeOf(y).constructor.name === d.name;
5081
5081
  }
5082
- function Em(y, d) {
5082
+ function Cm(y, d) {
5083
5083
  const g = y.getFirstChild();
5084
5084
  g !== null ? g.insertBefore(d) : y.append(d);
5085
5085
  }
5086
- const lu = 0, lp = 1, cp = 2, yo = 0, M1 = 1, Cm = 2, D1 = 3, L1 = 4;
5086
+ const lu = 0, lp = 1, cp = 2, yo = 0, M1 = 1, km = 2, D1 = 3, L1 = 4;
5087
5087
  function B1(y, d, g, t, f) {
5088
5088
  if (y === null || g.size === 0 && t.size === 0 && !f)
5089
5089
  return yo;
@@ -5110,7 +5110,7 @@ function B1(y, d, g, t, f) {
5110
5110
  return yo;
5111
5111
  if (e.length > 1) {
5112
5112
  const m = d._nodeMap, b = m.get(r.anchor.key), _ = m.get(n.anchor.key);
5113
- return b && _ && !y._nodeMap.has(b.__key) && Pe(b) && b.__text.length === 1 && r.anchor.offset === 1 ? Cm : yo;
5113
+ return b && _ && !y._nodeMap.has(b.__key) && Pe(b) && b.__text.length === 1 && r.anchor.offset === 1 ? km : yo;
5114
5114
  }
5115
5115
  const s = e[0], i = y._nodeMap.get(s.__key);
5116
5116
  if (!Pe(i) || !Pe(s) || i.__mode !== s.__mode)
@@ -5122,7 +5122,7 @@ function B1(y, d, g, t, f) {
5122
5122
  if (a.key !== c.key || a.type !== "text")
5123
5123
  return yo;
5124
5124
  const u = a.offset, h = c.offset, p = o.length - l.length;
5125
- return p === 1 && h === u - 1 ? Cm : p === -1 && h === u + 1 ? D1 : p === -1 && h === u ? L1 : yo;
5125
+ return p === 1 && h === u - 1 ? km : p === -1 && h === u + 1 ? D1 : p === -1 && h === u ? L1 : yo;
5126
5126
  }
5127
5127
  function F1(y, d) {
5128
5128
  let g = Date.now(), t = yo;
@@ -5146,7 +5146,7 @@ function F1(y, d) {
5146
5146
  return g = l, t = o, a;
5147
5147
  };
5148
5148
  }
5149
- function km(y) {
5149
+ function Om(y) {
5150
5150
  y.undoStack = [], y.redoStack = [], y.current = null;
5151
5151
  }
5152
5152
  function z1(y, d, g) {
@@ -5165,7 +5165,7 @@ function z1(y, d, g) {
5165
5165
  const l = e.pop();
5166
5166
  e.length === 0 && r.dispatchCommand(Us, !1), n.current = l || null, l && l.editor.setEditorState(l.editorState, { tag: "historic" });
5167
5167
  }
5168
- }(y, d), !0), on), y.registerCommand(jp, () => (km(d), !1), on), y.registerCommand(bv, () => (km(d), y.dispatchCommand(Us, !1), y.dispatchCommand($s, !1), !0), on), y.registerUpdateListener(({ editorState: r, prevEditorState: n, dirtyLeaves: e, dirtyElements: s, tags: i }) => {
5168
+ }(y, d), !0), on), y.registerCommand(Np, () => (Om(d), !1), on), y.registerCommand(bv, () => (Om(d), y.dispatchCommand(Us, !1), y.dispatchCommand($s, !1), !0), on), y.registerUpdateListener(({ editorState: r, prevEditorState: n, dirtyLeaves: e, dirtyElements: s, tags: i }) => {
5169
5169
  const l = d.current, o = d.redoStack, a = d.undoStack, c = l === null ? null : l.editorState;
5170
5170
  if (l !== null && r === c)
5171
5171
  return;
@@ -5184,16 +5184,16 @@ function Ky({ externalHistoryState: y }) {
5184
5184
  const [d] = Ir();
5185
5185
  return function(g, t, f = 1e3) {
5186
5186
  const r = el(() => t || U1(), [t]);
5187
- rr(() => z1(g, r, f), [f, g, r]);
5187
+ sr(() => z1(g, r, f), [f, g, r]);
5188
5188
  }(d, y), null;
5189
5189
  }
5190
- const $1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : rr;
5190
+ const $1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
5191
5191
  function H1(y) {
5192
5192
  return { initialValueFn: () => y.isEditable(), subscribe: (d) => y.registerEditableListener(d) };
5193
5193
  }
5194
5194
  function Gy() {
5195
5195
  return function(y) {
5196
- const [d] = Ir(), g = el(() => y(d), [d, y]), t = Ep(g.initialValueFn()), [f, r] = Ln(t.current);
5196
+ const [d] = Ir(), g = el(() => y(d), [d, y]), t = Cp(g.initialValueFn()), [f, r] = Ln(t.current);
5197
5197
  return $1(() => {
5198
5198
  const { initialValueFn: n, subscribe: e } = g, s = n();
5199
5199
  return t.current !== s && (t.current = s, r(s)), e((i) => {
@@ -5303,7 +5303,7 @@ function J1(y, d) {
5303
5303
  }
5304
5304
  return function(r) {
5305
5305
  for (const n of r)
5306
- n.getNextSibling() instanceof Xp && n.insertAfter(Zs());
5306
+ n.getNextSibling() instanceof Qp && n.insertAfter(Zs());
5307
5307
  for (const n of r) {
5308
5308
  const e = n.getChildren();
5309
5309
  for (const s of e)
@@ -5382,9 +5382,9 @@ function nb(y, d, g, t, f = /* @__PURE__ */ new Map(), r) {
5382
5382
  for (let u = 0; u < o.length; u++)
5383
5383
  a.push(...nb(o[u], d, g, c, new Map(f), e));
5384
5384
  return l != null && (a = l(a)), Zv(y) && (a = K1(y, a, c ? () => {
5385
- const u = new Xp();
5385
+ const u = new Qp();
5386
5386
  return g.push(u), u;
5387
- } : or)), e == null ? n = n.concat(a) : ge(e) && e.append(...a), n;
5387
+ } : rr)), e == null ? n = n.concat(a) : ge(e) && e.append(...a), n;
5388
5388
  }
5389
5389
  function K1(y, d, g) {
5390
5390
  const t = y.style.textAlign, f = [];
@@ -5419,24 +5419,24 @@ function Z1(y) {
5419
5419
  const d = Ae();
5420
5420
  return d == null && Yu(166), xe(d) && d.isCollapsed() || d.getNodes().length === 0 ? null : JSON.stringify(X1(y, d));
5421
5421
  }
5422
- function Om(y, d) {
5422
+ function Tm(y, d) {
5423
5423
  const g = y.getData("text/plain") || y.getData("text/uri-list");
5424
5424
  g != null && d.insertRawText(g);
5425
5425
  }
5426
- function Tm(y, d, g) {
5426
+ function Am(y, d, g) {
5427
5427
  const t = y.getData("application/x-lexical-editor");
5428
5428
  if (t)
5429
5429
  try {
5430
5430
  const n = JSON.parse(t);
5431
5431
  if (n.namespace === g._config.namespace && Array.isArray(n.nodes))
5432
- return Am(g, Q1(n.nodes), d);
5432
+ return jm(g, Q1(n.nodes), d);
5433
5433
  } catch {
5434
5434
  }
5435
5435
  const f = y.getData("text/html");
5436
5436
  if (f)
5437
5437
  try {
5438
5438
  const n = new DOMParser().parseFromString(f, "text/html");
5439
- return Am(g, J1(g, n), d);
5439
+ return jm(g, J1(g, n), d);
5440
5440
  } catch {
5441
5441
  }
5442
5442
  const r = y.getData("text/plain") || y.getData("text/uri-list");
@@ -5456,7 +5456,7 @@ function Tm(y, d, g) {
5456
5456
  } else
5457
5457
  d.insertRawText(r);
5458
5458
  }
5459
- function Am(y, d, g) {
5459
+ function jm(y, d, g) {
5460
5460
  y.dispatchCommand(z0, { nodes: d, selection: g }) || g.insertNodes(d);
5461
5461
  }
5462
5462
  function ib(y, d, g, t = []) {
@@ -5507,13 +5507,13 @@ function Q1(y) {
5507
5507
  return d;
5508
5508
  }
5509
5509
  let Ss = null;
5510
- async function jm(y, d) {
5510
+ async function Nm(y, d) {
5511
5511
  if (Ss !== null)
5512
5512
  return !1;
5513
5513
  if (d !== null)
5514
5514
  return new Promise((e, s) => {
5515
5515
  y.update(() => {
5516
- e(Nm(y, d));
5516
+ e(Pm(y, d));
5517
5517
  });
5518
5518
  });
5519
5519
  const g = y.getRootElement(), t = y._window == null ? window.document : y._window.document, f = rb(y._window);
@@ -5523,13 +5523,13 @@ async function jm(y, d) {
5523
5523
  r.style.cssText = "position: fixed; top: -1000px;", r.append(t.createTextNode("#")), g.append(r);
5524
5524
  const n = new Range();
5525
5525
  return n.setStart(r, 0), n.setEnd(r, 1), f.removeAllRanges(), f.addRange(n), new Promise((e, s) => {
5526
- const i = y.registerCommand(hc, (l) => (Ji(l, ClipboardEvent) && (i(), Ss !== null && (window.clearTimeout(Ss), Ss = null), e(Nm(y, l))), !0), no);
5526
+ const i = y.registerCommand(hc, (l) => (Ji(l, ClipboardEvent) && (i(), Ss !== null && (window.clearTimeout(Ss), Ss = null), e(Pm(y, l))), !0), no);
5527
5527
  Ss = window.setTimeout(() => {
5528
5528
  i(), Ss = null, e(!1);
5529
5529
  }, 50), t.execCommand("copy"), r.remove();
5530
5530
  });
5531
5531
  }
5532
- function Nm(y, d) {
5532
+ function Pm(y, d) {
5533
5533
  const g = rb(y._window);
5534
5534
  if (!g)
5535
5535
  return !1;
@@ -5544,7 +5544,7 @@ function Nm(y, d) {
5544
5544
  let i = "";
5545
5545
  return n !== null && (i = n.getTextContent()), e !== null && r.setData("text/html", e), s !== null && r.setData("application/x-lexical-editor", s), r.setData("text/plain", i), !0;
5546
5546
  }
5547
- function Pm(y, d) {
5547
+ function Im(y, d) {
5548
5548
  if (document.caretRangeFromPoint !== void 0) {
5549
5549
  const g = document.caretRangeFromPoint(y, d);
5550
5550
  return g === null ? null : { node: g.startContainer, offset: g.startOffset };
@@ -5555,7 +5555,7 @@ function Pm(y, d) {
5555
5555
  }
5556
5556
  return null;
5557
5557
  }
5558
- const il = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, t_ = il && "documentMode" in document ? document.documentMode : null, e_ = !(!il || !("InputEvent" in window) || t_) && "getTargetRanges" in new window.InputEvent("input"), n_ = il && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), r_ = il && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, o_ = il && /^(?=.*Chrome).*/i.test(navigator.userAgent), i_ = il && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !o_, Im = Cp();
5558
+ const il = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, t_ = il && "documentMode" in document ? document.documentMode : null, e_ = !(!il || !("InputEvent" in window) || t_) && "getTargetRanges" in new window.InputEvent("input"), n_ = il && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), r_ = il && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, o_ = il && /^(?=.*Chrome).*/i.test(navigator.userAgent), i_ = il && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !o_, Rm = kp();
5559
5559
  function cu(y) {
5560
5560
  let d = null;
5561
5561
  if (Ji(y, DragEvent) ? d = y.dataTransfer : Ji(y, ClipboardEvent) && (d = y.clipboardData), d === null)
@@ -5563,7 +5563,7 @@ function cu(y) {
5563
5563
  const g = d.types, t = g.includes("Files"), f = g.includes("text/html") || g.includes("text/plain");
5564
5564
  return [t, Array.from(d.files), f];
5565
5565
  }
5566
- function Rm(y) {
5566
+ function Mm(y) {
5567
5567
  const d = Ae();
5568
5568
  if (!xe(d))
5569
5569
  return !1;
@@ -5606,7 +5606,7 @@ function a_(y) {
5606
5606
  return !1;
5607
5607
  const t = d.dataTransfer;
5608
5608
  if (t != null)
5609
- Tm(t, g, y);
5609
+ Am(t, g, y);
5610
5610
  else if (xe(g)) {
5611
5611
  const f = d.data;
5612
5612
  return f && g.insertText(f), !0;
@@ -5635,13 +5635,13 @@ function a_(y) {
5635
5635
  }, on), y.registerCommand(Gs, () => {
5636
5636
  const d = Ae();
5637
5637
  return !!xe(d) && (d.insertParagraph(), !0);
5638
- }, on), y.registerCommand(gv, () => (f1([_c()]), !0), on), y.registerCommand(mv, () => Rm((d) => {
5638
+ }, on), y.registerCommand(gv, () => (f1([_c()]), !0), on), y.registerCommand(mv, () => Mm((d) => {
5639
5639
  const g = d.getIndent();
5640
5640
  d.setIndent(g + 1);
5641
- }), on), y.registerCommand(Ug, () => Rm((d) => {
5641
+ }), on), y.registerCommand($g, () => Mm((d) => {
5642
5642
  const g = d.getIndent();
5643
5643
  g > 0 && d.setIndent(g - 1);
5644
- }), on), y.registerCommand(kp, (d) => {
5644
+ }), on), y.registerCommand(Op, (d) => {
5645
5645
  const g = Ae();
5646
5646
  if (oo(g) && !uu(d.target)) {
5647
5647
  const t = g.getNodes();
@@ -5653,7 +5653,7 @@ function a_(y) {
5653
5653
  return t.selectPrevious(), d.preventDefault(), !0;
5654
5654
  }
5655
5655
  return !1;
5656
- }, on), y.registerCommand(Op, (d) => {
5656
+ }, on), y.registerCommand(Tp, (d) => {
5657
5657
  const g = Ae();
5658
5658
  if (oo(g)) {
5659
5659
  const t = g.getNodes();
@@ -5703,7 +5703,7 @@ function a_(y) {
5703
5703
  return !1;
5704
5704
  d.preventDefault();
5705
5705
  const { anchor: t } = g, f = t.getNode();
5706
- return g.isCollapsed() && t.offset === 0 && !Sr(f) && I1(f).getIndent() > 0 ? y.dispatchCommand(Ug, void 0) : y.dispatchCommand(bo, !0);
5706
+ return g.isCollapsed() && t.offset === 0 && !Sr(f) && I1(f).getIndent() > 0 ? y.dispatchCommand($g, void 0) : y.dispatchCommand(bo, !0);
5707
5707
  }, on), y.registerCommand(pc, (d) => {
5708
5708
  if (uu(d.target))
5709
5709
  return !1;
@@ -5723,59 +5723,59 @@ function a_(y) {
5723
5723
  }, on), y.registerCommand(nd, () => {
5724
5724
  const d = Ae();
5725
5725
  return !!xe(d) && (y.blur(), !0);
5726
- }, on), y.registerCommand(Tp, (d) => {
5726
+ }, on), y.registerCommand(Ap, (d) => {
5727
5727
  const [, g] = cu(d);
5728
5728
  if (g.length > 0) {
5729
- const f = Pm(d.clientX, d.clientY);
5729
+ const f = Im(d.clientX, d.clientY);
5730
5730
  if (f !== null) {
5731
5731
  const { offset: r, node: n } = f, e = Er(n);
5732
5732
  if (e !== null) {
5733
- const s = Gp();
5733
+ const s = Yp();
5734
5734
  if (Pe(e))
5735
5735
  s.anchor.set(e.getKey(), r, "text"), s.focus.set(e.getKey(), r, "text");
5736
5736
  else {
5737
5737
  const l = e.getParentOrThrow().getKey(), o = e.getIndexWithinParent() + 1;
5738
5738
  s.anchor.set(l, o, "element"), s.focus.set(l, o, "element");
5739
5739
  }
5740
- const i = Up(s);
5740
+ const i = $p(s);
5741
5741
  lr(i);
5742
5742
  }
5743
- y.dispatchCommand(Im, g);
5743
+ y.dispatchCommand(Rm, g);
5744
5744
  }
5745
5745
  return d.preventDefault(), !0;
5746
5746
  }
5747
5747
  const t = Ae();
5748
5748
  return !!xe(t);
5749
- }, on), y.registerCommand(Ap, (d) => {
5749
+ }, on), y.registerCommand(jp, (d) => {
5750
5750
  const [g] = cu(d), t = Ae();
5751
5751
  return !(g && !xe(t));
5752
5752
  }, on), y.registerCommand(H0, (d) => {
5753
5753
  const [g] = cu(d), t = Ae();
5754
5754
  if (g && !xe(t))
5755
5755
  return !1;
5756
- const f = Pm(d.clientX, d.clientY);
5756
+ const f = Im(d.clientX, d.clientY);
5757
5757
  if (f !== null) {
5758
5758
  const r = Er(f.node);
5759
5759
  Tn(r) && d.preventDefault();
5760
5760
  }
5761
5761
  return !0;
5762
- }, on), y.registerCommand(Iu, () => (ay(), !0), on), y.registerCommand(hc, (d) => (jm(y, Ji(d, ClipboardEvent) ? d : null), !0), on), y.registerCommand(gc, (d) => (async function(g, t) {
5763
- await jm(t, Ji(g, ClipboardEvent) ? g : null), t.update(() => {
5762
+ }, on), y.registerCommand(Iu, () => (ay(), !0), on), y.registerCommand(hc, (d) => (Nm(y, Ji(d, ClipboardEvent) ? d : null), !0), on), y.registerCommand(gc, (d) => (async function(g, t) {
5763
+ await Nm(t, Ji(g, ClipboardEvent) ? g : null), t.update(() => {
5764
5764
  const f = Ae();
5765
5765
  xe(f) ? f.removeText() : oo(f) && f.getNodes().forEach((r) => r.remove());
5766
5766
  });
5767
5767
  }(d, y), !0), on), y.registerCommand(cc, (d) => {
5768
5768
  const [, g, t] = cu(d);
5769
- return g.length > 0 && !t ? (y.dispatchCommand(Im, g), !0) : $p(d.target) ? !1 : Ae() !== null && (function(f, r) {
5769
+ return g.length > 0 && !t ? (y.dispatchCommand(Rm, g), !0) : Hp(d.target) ? !1 : Ae() !== null && (function(f, r) {
5770
5770
  f.preventDefault(), r.update(() => {
5771
5771
  const n = Ae(), e = Ji(f, InputEvent) || Ji(f, KeyboardEvent) ? null : f.clipboardData;
5772
- e != null && n !== null && Tm(e, n, r);
5772
+ e != null && n !== null && Am(e, n, r);
5773
5773
  }, { tag: "paste" });
5774
5774
  }(d, y), !0);
5775
5775
  }, on));
5776
5776
  }
5777
- const up = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : rr;
5778
- function Mm(y) {
5777
+ const up = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
5778
+ function Dm(y) {
5779
5779
  return y.getEditorState().read(Xy(y.isComposing()));
5780
5780
  }
5781
5781
  function s_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
@@ -5785,7 +5785,7 @@ function s_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
5785
5785
  L0(() => {
5786
5786
  s(i);
5787
5787
  });
5788
- }), [r]), rr(() => {
5788
+ }), [r]), sr(() => {
5789
5789
  s(r.getDecorators());
5790
5790
  }, [r]), el(() => {
5791
5791
  const i = [], l = Object.keys(e);
@@ -5802,10 +5802,10 @@ function s_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
5802
5802
  }
5803
5803
  function l_({ content: y }) {
5804
5804
  const [d] = Ir(), g = function(f) {
5805
- const [r, n] = Ln(() => Mm(f));
5805
+ const [r, n] = Ln(() => Dm(f));
5806
5806
  return up(() => {
5807
5807
  function e() {
5808
- const s = Mm(f);
5808
+ const s = Dm(f);
5809
5809
  n(s);
5810
5810
  }
5811
5811
  return e(), $o(f.registerUpdateListener(() => {
@@ -5922,7 +5922,7 @@ function dp(y, d) {
5922
5922
  function d_(y) {
5923
5923
  return y instanceof ab;
5924
5924
  }
5925
- let eh = class lb extends Uo {
5925
+ let nh = class lb extends Uo {
5926
5926
  static getType() {
5927
5927
  return "mark";
5928
5928
  }
@@ -6009,10 +6009,10 @@ let eh = class lb extends Uo {
6009
6009
  }
6010
6010
  };
6011
6011
  function Zu(y) {
6012
- return di(new eh(y));
6012
+ return di(new nh(y));
6013
6013
  }
6014
6014
  function Ba(y) {
6015
- return y instanceof eh;
6015
+ return y instanceof nh;
6016
6016
  }
6017
6017
  function f_(y) {
6018
6018
  const d = y.getChildren();
@@ -6077,7 +6077,7 @@ class Lo extends Uo {
6077
6077
  return g.__rowSpan = d.__rowSpan, g.__backgroundColor = d.__backgroundColor, g;
6078
6078
  }
6079
6079
  static importDOM() {
6080
- return { td: (d) => ({ conversion: Dm, priority: 0 }), th: (d) => ({ conversion: Dm, priority: 0 }) };
6080
+ return { td: (d) => ({ conversion: Lm, priority: 0 }), th: (d) => ({ conversion: Lm, priority: 0 }) };
6081
6081
  }
6082
6082
  static importJSON(d) {
6083
6083
  const g = d.colSpan || 1, t = d.rowSpan || 1, f = Xs(d.headerState, g, d.width || void 0);
@@ -6162,7 +6162,7 @@ class Lo extends Uo {
6162
6162
  return !1;
6163
6163
  }
6164
6164
  }
6165
- function Dm(y) {
6165
+ function Lm(y) {
6166
6166
  const d = y, g = y.nodeName.toLowerCase();
6167
6167
  let t;
6168
6168
  cb.test(d.style.width) && (t = parseFloat(d.style.width));
@@ -6171,9 +6171,9 @@ function Dm(y) {
6171
6171
  const r = d.style.backgroundColor;
6172
6172
  r !== "" && (f.__backgroundColor = r);
6173
6173
  const n = d.style, e = n.textDecoration.split(" "), s = n.fontWeight === "700" || n.fontWeight === "bold", i = e.includes("line-through"), l = n.fontStyle === "italic", o = e.includes("underline");
6174
- return { after: (a) => (a.length === 0 && a.push(or()), a), forChild: (a, c) => {
6174
+ return { after: (a) => (a.length === 0 && a.push(rr()), a), forChild: (a, c) => {
6175
6175
  if (rn(c) && !ge(a)) {
6176
- const u = or();
6176
+ const u = rr();
6177
6177
  return Da(a) && a.getTextContent() === `
6178
6178
  ` ? null : (Pe(a) && (s && a.toggleFormat("bold"), i && a.toggleFormat("strikethrough"), l && a.toggleFormat("italic"), o && a.toggleFormat("underline")), u.append(a), u);
6179
6179
  }
@@ -6186,7 +6186,7 @@ function Xs(y, d = 1, g) {
6186
6186
  function rn(y) {
6187
6187
  return y instanceof Lo;
6188
6188
  }
6189
- const g_ = Cp();
6189
+ const g_ = kp();
6190
6190
  class Ka extends Uo {
6191
6191
  static getType() {
6192
6192
  return "tablerow";
@@ -6252,13 +6252,13 @@ var Rn = y_(function(y) {
6252
6252
  });
6253
6253
  const b_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
6254
6254
  function ub(y, d, g = !0) {
6255
- const t = rh();
6255
+ const t = oh();
6256
6256
  for (let f = 0; f < y; f++) {
6257
6257
  const r = hd();
6258
6258
  for (let n = 0; n < d; n++) {
6259
6259
  let e = ai.NO_STATUS;
6260
6260
  typeof g == "object" ? (f === 0 && g.rows && (e |= ai.ROW), n === 0 && g.columns && (e |= ai.COLUMN)) : g && (f === 0 && (e |= ai.ROW), n === 0 && (e |= ai.COLUMN));
6261
- const s = Xs(e), i = or();
6261
+ const s = Xs(e), i = rr();
6262
6262
  i.append(nr()), s.append(i), r.append(s);
6263
6263
  }
6264
6264
  t.append(r);
@@ -6323,7 +6323,7 @@ function qs(y) {
6323
6323
  const t = g.getParent();
6324
6324
  return Jn(t) || Rn(150), [d, g, t];
6325
6325
  }
6326
- function Lm(y) {
6326
+ function Bm(y) {
6327
6327
  const [d, , g] = qs(y), t = g.getChildren(), f = t.length, r = t[0].getChildren().length, n = new Array(f);
6328
6328
  for (let e = 0; e < f; e++)
6329
6329
  n[e] = new Array(r);
@@ -6381,16 +6381,16 @@ class gd {
6381
6381
  }
6382
6382
  insertNodes(d) {
6383
6383
  const g = this.focus.getNode();
6384
- ge(g) || Rn(151), Up(g.select(0, g.getChildrenSize())).insertNodes(d);
6384
+ ge(g) || Rn(151), $p(g.select(0, g.getChildrenSize())).insertNodes(d);
6385
6385
  }
6386
6386
  getShape() {
6387
6387
  const d = Wn(this.anchor.key);
6388
6388
  rn(d) || Rn(152);
6389
- const g = Lm(d);
6389
+ const g = Bm(d);
6390
6390
  g === null && Rn(153);
6391
6391
  const t = Wn(this.focus.key);
6392
6392
  rn(t) || Rn(154);
6393
- const f = Lm(t);
6393
+ const f = Bm(t);
6394
6394
  f === null && Rn(155);
6395
6395
  const r = Math.min(g.columnIndex, f.columnIndex), n = Math.max(g.columnIndex, f.columnIndex), e = Math.min(g.rowIndex, f.rowIndex), s = Math.max(g.rowIndex, f.rowIndex);
6396
6396
  return { fromX: Math.min(r, n), fromY: Math.min(e, s), toX: Math.max(r, n), toY: Math.max(e, s) };
@@ -6593,7 +6593,7 @@ class w_ {
6593
6593
  this.editor.update(() => {
6594
6594
  const g = Ae();
6595
6595
  tr(g) || Rn(11);
6596
- const t = Gp(), f = t.anchor, r = t.focus;
6596
+ const t = Yp(), f = t.anchor, r = t.focus;
6597
6597
  g.getNodes().forEach((n) => {
6598
6598
  rn(n) && n.getTextContentSize() !== 0 && (f.set(n.getKey(), 0, "element"), r.set(n.getKey(), n.getChildrenSize(), "element"), t.formatText(d));
6599
6599
  }), lr(g), this.editor.dispatchCommand(li, void 0);
@@ -6610,7 +6610,7 @@ class w_ {
6610
6610
  const f = t.getNodes().filter(rn);
6611
6611
  f.length !== this.table.columns * this.table.rows ? (f.forEach((r) => {
6612
6612
  if (ge(r)) {
6613
- const n = or(), e = nr();
6613
+ const n = rr(), e = nr();
6614
6614
  n.append(e), r.append(n), r.getChildren().forEach((s) => {
6615
6615
  s !== n && s.remove();
6616
6616
  });
@@ -6635,7 +6635,7 @@ function E_(y, d, g, t) {
6635
6635
  setTimeout(() => {
6636
6636
  if (1 & ~c.buttons && r.isSelecting)
6637
6637
  return r.isSelecting = !1, n.removeEventListener("mouseup", o), void n.removeEventListener("mousemove", a);
6638
- const u = Bm(c.target);
6638
+ const u = Fm(c.target);
6639
6639
  u === null || r.anchorX === u.x && r.anchorY === u.y || (c.preventDefault(), r.setFocusCellForSelection(u));
6640
6640
  }, 0);
6641
6641
  };
@@ -6645,7 +6645,7 @@ function E_(y, d, g, t) {
6645
6645
  setTimeout(() => {
6646
6646
  if (o.button !== 0 || !n)
6647
6647
  return;
6648
- const a = Bm(o.target);
6648
+ const a = Fm(o.target);
6649
6649
  a !== null && (Ra(o), r.setAnchorCellForSelection(a));
6650
6650
  const { onMouseUp: c, onMouseMove: u } = e();
6651
6651
  r.isSelecting = !0, n.addEventListener("mouseup", c), n.addEventListener("mousemove", u);
@@ -6657,7 +6657,7 @@ function E_(y, d, g, t) {
6657
6657
  tr(a) && a.tableKey === r.tableNodeKey && f.contains(c) && r.clearHighlight();
6658
6658
  });
6659
6659
  };
6660
- n.addEventListener("mousedown", s), r.listenersToRemove.add(() => n.removeEventListener("mousedown", s)), r.listenersToRemove.add(g.registerCommand(Op, (o) => Kl(g, o, "down", y, r), xs)), r.listenersToRemove.add(g.registerCommand(kp, (o) => Kl(g, o, "up", y, r), xs)), r.listenersToRemove.add(g.registerCommand(ed, (o) => Kl(g, o, "backward", y, r), xs)), r.listenersToRemove.add(g.registerCommand(td, (o) => Kl(g, o, "forward", y, r), xs)), r.listenersToRemove.add(g.registerCommand(nd, (o) => {
6660
+ n.addEventListener("mousedown", s), r.listenersToRemove.add(() => n.removeEventListener("mousedown", s)), r.listenersToRemove.add(g.registerCommand(Tp, (o) => Kl(g, o, "down", y, r), xs)), r.listenersToRemove.add(g.registerCommand(Op, (o) => Kl(g, o, "up", y, r), xs)), r.listenersToRemove.add(g.registerCommand(ed, (o) => Kl(g, o, "backward", y, r), xs)), r.listenersToRemove.add(g.registerCommand(td, (o) => Kl(g, o, "forward", y, r), xs)), r.listenersToRemove.add(g.registerCommand(nd, (o) => {
6661
6661
  const a = Ae();
6662
6662
  if (tr(a)) {
6663
6663
  const c = vn(a.focus.getNode(), rn);
@@ -6759,9 +6759,9 @@ function E_(y, d, g, t) {
6759
6759
  if (!rn(c))
6760
6760
  return !1;
6761
6761
  if (typeof o == "string") {
6762
- const u = Um(g, a, y);
6762
+ const u = $m(g, a, y);
6763
6763
  if (u)
6764
- return zm(u, y, [nr(o)]), !0;
6764
+ return Um(u, y, [nr(o)]), !0;
6765
6765
  }
6766
6766
  }
6767
6767
  return !1;
@@ -6803,7 +6803,7 @@ function E_(y, d, g, t) {
6803
6803
  P === j && T === R ? M = I.getKey() : P === H && T === z && (W = I.getKey());
6804
6804
  const B = I.getChildren();
6805
6805
  L.getChildren().forEach((Y) => {
6806
- Pe(Y) && or().append(Y), I.append(Y);
6806
+ Pe(Y) && rr().append(Y), I.append(Y);
6807
6807
  }), B.forEach((Y) => Y.remove()), q++;
6808
6808
  }
6809
6809
  K++;
@@ -6824,7 +6824,7 @@ function E_(y, d, g, t) {
6824
6824
  C.focus.set(S ? D.getKey() : N.getKey(), S ? D.getChildrenSize() : N.getChildrenSize(), "element");
6825
6825
  } else
6826
6826
  C.anchor.set(y.getParentOrThrow().getKey(), S ? y.getIndexWithinParent() + 1 : y.getIndexWithinParent(), "element");
6827
- lr(C), Fm(g, r);
6827
+ lr(C), zm(g, r);
6828
6828
  } else
6829
6829
  x && (m.is(b) || (r.setAnchorCellForSelection(l(m)), r.setFocusCellForSelection(l(b), !0), r.isSelecting || setTimeout(() => {
6830
6830
  const { onMouseUp: C, onMouseMove: k } = e();
@@ -6841,20 +6841,20 @@ function E_(y, d, g, t) {
6841
6841
  }
6842
6842
  }
6843
6843
  return o && !o.is(a) && (tr(o) || tr(a)) && r.tableSelection && !r.tableSelection.is(a) ? (tr(o) && o.tableKey === r.tableNodeKey ? r.updateTableTableSelection(o) : !tr(o) && tr(a) && a.tableKey === r.tableNodeKey && r.updateTableTableSelection(null), !1) : (r.hasHijackedSelectionStyles && !y.isSelected() ? function(c, u) {
6844
- u.enableHighlightStyle(), nh(u.table, (h) => {
6844
+ u.enableHighlightStyle(), rh(u.table, (h) => {
6845
6845
  const p = h.elem;
6846
6846
  h.highlighted = !1, gb(c, h), p.getAttribute("style") || p.removeAttribute("style");
6847
6847
  });
6848
- }(g, r) : !r.hasHijackedSelectionStyles && y.isSelected() && Fm(g, r), !1);
6848
+ }(g, r) : !r.hasHijackedSelectionStyles && y.isSelected() && zm(g, r), !1);
6849
6849
  }, no)), r.listenersToRemove.add(g.registerCommand(Gs, () => {
6850
6850
  const o = Ae();
6851
6851
  if (!xe(o) || !o.isCollapsed() || !Ui(o, y))
6852
6852
  return !1;
6853
- const a = Um(g, o, y);
6854
- return !!a && (zm(a, y), !0);
6853
+ const a = $m(g, o, y);
6854
+ return !!a && (Um(a, y), !0);
6855
6855
  }, no)), r;
6856
6856
  }
6857
- function Bm(y) {
6857
+ function Fm(y) {
6858
6858
  let d = y;
6859
6859
  for (; d != null; ) {
6860
6860
  const g = d.nodeName;
@@ -6900,12 +6900,12 @@ function ec(y) {
6900
6900
  }
6901
6901
  function du(y, d, g) {
6902
6902
  const t = new Set(g ? g.getNodes() : []);
6903
- nh(d, (f, r) => {
6903
+ rh(d, (f, r) => {
6904
6904
  const n = f.elem;
6905
6905
  t.has(r) ? (f.highlighted = !0, hb(y, f)) : (f.highlighted = !1, gb(y, f), n.getAttribute("style") || n.removeAttribute("style"));
6906
6906
  });
6907
6907
  }
6908
- function nh(y, d) {
6908
+ function rh(y, d) {
6909
6909
  const { domRows: g } = y;
6910
6910
  for (let t = 0; t < g.length; t++) {
6911
6911
  const f = g[t];
@@ -6919,8 +6919,8 @@ function nh(y, d) {
6919
6919
  }
6920
6920
  }
6921
6921
  }
6922
- function Fm(y, d) {
6923
- d.disableHighlightStyle(), nh(d.table, (g) => {
6922
+ function zm(y, d) {
6923
+ d.disableHighlightStyle(), rh(d.table, (g) => {
6924
6924
  g.highlighted = !0, hb(y, g);
6925
6925
  });
6926
6926
  }
@@ -7125,11 +7125,11 @@ function Kl(y, d, g, t, f) {
7125
7125
  function Ra(y) {
7126
7126
  y.preventDefault(), y.stopImmediatePropagation(), y.stopPropagation();
7127
7127
  }
7128
- function zm(y, d, g) {
7129
- const t = or();
7128
+ function Um(y, d, g) {
7129
+ const t = rr();
7130
7130
  y === "first" ? d.insertBefore(t) : d.insertAfter(t), t.append(...g || []), t.selectEnd();
7131
7131
  }
7132
- function Um(y, d, g) {
7132
+ function $m(y, d, g) {
7133
7133
  const t = g.getParent();
7134
7134
  if (!t)
7135
7135
  return;
@@ -7159,7 +7159,7 @@ class Do extends Uo {
7159
7159
  return { table: (d) => ({ conversion: k_, priority: 1 }) };
7160
7160
  }
7161
7161
  static importJSON(d) {
7162
- return rh();
7162
+ return oh();
7163
7163
  }
7164
7164
  constructor(d) {
7165
7165
  super(d);
@@ -7248,25 +7248,25 @@ class Do extends Uo {
7248
7248
  }
7249
7249
  }
7250
7250
  function k_(y) {
7251
- return { node: rh() };
7251
+ return { node: oh() };
7252
7252
  }
7253
- function rh() {
7253
+ function oh() {
7254
7254
  return di(new Do());
7255
7255
  }
7256
7256
  function Jn(y) {
7257
7257
  return y instanceof Do;
7258
7258
  }
7259
- const $m = [["Cat", "rgb(125, 50, 0)"], ["Dog", "rgb(100, 0, 0)"], ["Rabbit", "rgb(150, 0, 0)"], ["Frog", "rgb(200, 0, 0)"], ["Fox", "rgb(200, 75, 0)"], ["Hedgehog", "rgb(0, 75, 0)"], ["Pigeon", "rgb(0, 125, 0)"], ["Squirrel", "rgb(75, 100, 0)"], ["Bear", "rgb(125, 100, 0)"], ["Tiger", "rgb(0, 0, 150)"], ["Leopard", "rgb(0, 0, 200)"], ["Zebra", "rgb(0, 0, 250)"], ["Wolf", "rgb(0, 100, 150)"], ["Owl", "rgb(0, 100, 100)"], ["Gull", "rgb(100, 0, 100)"], ["Squid", "rgb(150, 0, 150)"]], Hm = $m[Math.floor(Math.random() * $m.length)], O_ = I0({ clientID: 0, color: Hm[1], isCollabActive: !1, name: Hm[0], yjsDocMap: /* @__PURE__ */ new Map() });
7259
+ const Hm = [["Cat", "rgb(125, 50, 0)"], ["Dog", "rgb(100, 0, 0)"], ["Rabbit", "rgb(150, 0, 0)"], ["Frog", "rgb(200, 0, 0)"], ["Fox", "rgb(200, 75, 0)"], ["Hedgehog", "rgb(0, 75, 0)"], ["Pigeon", "rgb(0, 125, 0)"], ["Squirrel", "rgb(75, 100, 0)"], ["Bear", "rgb(125, 100, 0)"], ["Tiger", "rgb(0, 0, 150)"], ["Leopard", "rgb(0, 0, 200)"], ["Zebra", "rgb(0, 0, 250)"], ["Wolf", "rgb(0, 100, 150)"], ["Owl", "rgb(0, 100, 100)"], ["Gull", "rgb(100, 0, 100)"], ["Squid", "rgb(150, 0, 150)"]], qm = Hm[Math.floor(Math.random() * Hm.length)], O_ = I0({ clientID: 0, color: qm[1], isCollabActive: !1, name: qm[0], yjsDocMap: /* @__PURE__ */ new Map() });
7260
7260
  function T_(y, d) {
7261
7261
  const g = R0(O_);
7262
7262
  return y != null && (g.name = y), d != null && (g.color = d), g;
7263
7263
  }
7264
- const A_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : rr;
7264
+ const A_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
7265
7265
  function j_({ onClear: y }) {
7266
7266
  const [d] = Ir();
7267
- return A_(() => d.registerCommand(jp, (g) => (d.update(() => {
7267
+ return A_(() => d.registerCommand(Np, (g) => (d.update(() => {
7268
7268
  if (y == null) {
7269
- const t = Bn(), f = Ae(), r = or();
7269
+ const t = Bn(), f = Ae(), r = rr();
7270
7270
  t.clear(), t.append(r), f !== null && r.select(), xe(f) && (f.format = 0);
7271
7271
  } else
7272
7272
  y();
@@ -7277,12 +7277,12 @@ function fp(y, d) {
7277
7277
  return g.__proto__ = t, g;
7278
7278
  }, fp(y, d);
7279
7279
  }
7280
- var qm = { error: null }, N_ = function(y) {
7280
+ var Wm = { error: null }, N_ = function(y) {
7281
7281
  var d, g;
7282
7282
  function t() {
7283
7283
  for (var r, n = arguments.length, e = new Array(n), s = 0; s < n; s++)
7284
7284
  e[s] = arguments[s];
7285
- return (r = y.call.apply(y, [this].concat(e)) || this).state = qm, r.resetErrorBoundary = function() {
7285
+ return (r = y.call.apply(y, [this].concat(e)) || this).state = Wm, r.resetErrorBoundary = function() {
7286
7286
  for (var i, l = arguments.length, o = new Array(l), a = 0; a < l; a++)
7287
7287
  o[a] = arguments[a];
7288
7288
  r.props.onReset == null || (i = r.props).onReset.apply(i, o), r.reset();
@@ -7293,7 +7293,7 @@ var qm = { error: null }, N_ = function(y) {
7293
7293
  };
7294
7294
  var f = t.prototype;
7295
7295
  return f.reset = function() {
7296
- this.setState(qm);
7296
+ this.setState(Wm);
7297
7297
  }, f.componentDidCatch = function(r, n) {
7298
7298
  var e, s;
7299
7299
  (e = (s = this.props).onError) == null || e.call(s, r, n);
@@ -7320,7 +7320,7 @@ var qm = { error: null }, N_ = function(y) {
7320
7320
  function P_({ children: y, onError: d }) {
7321
7321
  return Ee.jsx(N_, { fallback: Ee.jsx("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: d, children: y });
7322
7322
  }
7323
- const I_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : rr;
7323
+ const I_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
7324
7324
  function R_({ ignoreHistoryMergeTagChange: y = !0, ignoreSelectionChange: d = !1, onChange: g }) {
7325
7325
  const [t] = Ir();
7326
7326
  return I_(() => {
@@ -7331,7 +7331,7 @@ function R_({ ignoreHistoryMergeTagChange: y = !0, ignoreSelectionChange: d = !1
7331
7331
  }, [t, y, d, g]), null;
7332
7332
  }
7333
7333
  const al = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, M_ = al && "documentMode" in document ? document.documentMode : null, D_ = !(!al || !("InputEvent" in window) || M_) && "getTargetRanges" in new window.InputEvent("input"), L_ = al && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), B_ = al && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, F_ = al && /^(?=.*Chrome).*/i.test(navigator.userAgent), z_ = al && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !F_;
7334
- function Wm(y, d) {
7334
+ function Jm(y, d) {
7335
7335
  d.update(() => {
7336
7336
  if (y !== null) {
7337
7337
  const g = Ji(y, KeyboardEvent) ? null : y.clipboardData, t = Ae();
@@ -7362,7 +7362,7 @@ function U_(y) {
7362
7362
  else {
7363
7363
  const t = d.dataTransfer;
7364
7364
  if (t != null)
7365
- Om(t, g);
7365
+ Tm(t, g);
7366
7366
  else {
7367
7367
  const f = d.data;
7368
7368
  f && g.insertText(f);
@@ -7408,11 +7408,11 @@ function U_(y) {
7408
7408
  return y.dispatchCommand(Vi, !1);
7409
7409
  }, on), y.registerCommand(Iu, () => (ay(), !0), on), y.registerCommand(hc, (d) => {
7410
7410
  const g = Ae();
7411
- return !!xe(g) && (Wm(d, y), !0);
7411
+ return !!xe(g) && (Jm(d, y), !0);
7412
7412
  }, on), y.registerCommand(gc, (d) => {
7413
7413
  const g = Ae();
7414
7414
  return !!xe(g) && (function(t, f) {
7415
- Wm(t, f), f.update(() => {
7415
+ Jm(t, f), f.update(() => {
7416
7416
  const r = Ae();
7417
7417
  xe(r) && r.removeText();
7418
7418
  });
@@ -7422,19 +7422,19 @@ function U_(y) {
7422
7422
  return !!xe(g) && (function(t, f) {
7423
7423
  t.preventDefault(), f.update(() => {
7424
7424
  const r = Ae(), { clipboardData: n } = t;
7425
- n != null && xe(r) && Om(n, r);
7425
+ n != null && xe(r) && Tm(n, r);
7426
7426
  }, { tag: "paste" });
7427
7427
  }(d, y), !0);
7428
- }, on), y.registerCommand(Tp, (d) => {
7428
+ }, on), y.registerCommand(Ap, (d) => {
7429
7429
  const g = Ae();
7430
7430
  return !!xe(g) && (d.preventDefault(), !0);
7431
- }, on), y.registerCommand(Ap, (d) => {
7431
+ }, on), y.registerCommand(jp, (d) => {
7432
7432
  const g = Ae();
7433
7433
  return !!xe(g) && (d.preventDefault(), !0);
7434
7434
  }, on));
7435
7435
  }
7436
- const pp = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : rr;
7437
- function Jm(y) {
7436
+ const pp = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
7437
+ function Vm(y) {
7438
7438
  return y.getEditorState().read(Xy(y.isComposing()));
7439
7439
  }
7440
7440
  function $_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
@@ -7444,7 +7444,7 @@ function $_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
7444
7444
  L0(() => {
7445
7445
  s(i);
7446
7446
  });
7447
- }), [r]), rr(() => {
7447
+ }), [r]), sr(() => {
7448
7448
  s(r.getDecorators());
7449
7449
  }, [r]), el(() => {
7450
7450
  const i = [], l = Object.keys(e);
@@ -7461,10 +7461,10 @@ function $_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
7461
7461
  }
7462
7462
  function H_({ content: y }) {
7463
7463
  const [d] = Ir(), g = function(f) {
7464
- const [r, n] = Ln(() => Jm(f));
7464
+ const [r, n] = Ln(() => Vm(f));
7465
7465
  return pp(() => {
7466
7466
  function e() {
7467
- const s = Jm(f);
7467
+ const s = Vm(f);
7468
7468
  n(s);
7469
7469
  }
7470
7470
  return e(), $o(f.registerUpdateListener(() => {
@@ -21314,7 +21314,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21314
21314
  return;
21315
21315
  Ce(E, it);
21316
21316
  }
21317
- bh(E, A, it, null, J);
21317
+ vh(E, A, it, null, J);
21318
21318
  }
21319
21319
  }
21320
21320
  }
@@ -21338,7 +21338,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21338
21338
  st !== ot && (ot = null);
21339
21339
  }
21340
21340
  }
21341
- return bh(E, A, it, ot, J), null;
21341
+ return vh(E, A, it, ot, J), null;
21342
21342
  }
21343
21343
  var So = null, Eo = null, Ho = null;
21344
21344
  function Ga() {
@@ -21440,7 +21440,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21440
21440
  }
21441
21441
  var zt = null, ne = null;
21442
21442
  function fe(E) {
21443
- ph(E, 0);
21443
+ hh(E, 0);
21444
21444
  }
21445
21445
  function ke(E) {
21446
21446
  if (tt(is(E)))
@@ -21472,7 +21472,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21472
21472
  function zn(E, A, J) {
21473
21473
  E === "focusin" ? (tn(), ne = J, (zt = A).attachEvent("onpropertychange", Je)) : E === "focusout" && tn();
21474
21474
  }
21475
- function ir(E) {
21475
+ function or(E) {
21476
21476
  if (E === "selectionchange" || E === "keyup" || E === "keydown")
21477
21477
  return ke(ne);
21478
21478
  }
@@ -21501,13 +21501,13 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21501
21501
  return !1;
21502
21502
  return !0;
21503
21503
  }
21504
- function ah(E) {
21504
+ function sh(E) {
21505
21505
  for (; E && E.firstChild; )
21506
21506
  E = E.firstChild;
21507
21507
  return E;
21508
21508
  }
21509
- function sh(E, A) {
21510
- var J, it = ah(E);
21509
+ function lh(E, A) {
21510
+ var J, it = sh(E);
21511
21511
  for (E = 0; it; ) {
21512
21512
  if (it.nodeType === 3) {
21513
21513
  if (J = E + it.textContent.length, E <= A && A <= J)
@@ -21524,10 +21524,10 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21524
21524
  }
21525
21525
  it = void 0;
21526
21526
  }
21527
- it = ah(it);
21527
+ it = sh(it);
21528
21528
  }
21529
21529
  }
21530
- function lh() {
21530
+ function ch() {
21531
21531
  for (var E = window, A = nt(); A instanceof E.HTMLIFrameElement; ) {
21532
21532
  try {
21533
21533
  var J = typeof A.contentWindow.location.href == "string";
@@ -21545,23 +21545,23 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21545
21545
  return A && (A === "input" && (E.type === "text" || E.type === "search" || E.type === "tel" || E.type === "url" || E.type === "password") || A === "textarea" || E.contentEditable === "true");
21546
21546
  }
21547
21547
  var Lb = t && "documentMode" in document && document.documentMode <= 11, es = null, yd = null, gl = null, bd = !1;
21548
- function ch(E, A, J) {
21548
+ function uh(E, A, J) {
21549
21549
  var it = J.window === J ? J.document : J.nodeType === 9 ? J : J.ownerDocument;
21550
21550
  bd || es == null || es !== nt(it) || (it = "selectionStart" in (it = es) && md(it) ? { start: it.selectionStart, end: it.selectionEnd } : { anchorNode: (it = (it.ownerDocument && it.ownerDocument.defaultView || window).getSelection()).anchorNode, anchorOffset: it.anchorOffset, focusNode: it.focusNode, focusOffset: it.focusOffset }, gl && hl(gl, it) || (gl = it, 0 < (it = kc(yd, "onSelect")).length && (A = new Wo("onSelect", "select", null, A, J), E.push({ event: A, listeners: it }), A.target = es)));
21551
21551
  }
21552
21552
  vi("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "), 0), vi("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "), 1), vi(xn, 2);
21553
- for (var uh = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), vd = 0; vd < uh.length; vd++)
21554
- Ur.set(uh[vd], 0);
21553
+ for (var dh = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), vd = 0; vd < dh.length; vd++)
21554
+ Ur.set(dh[vd], 0);
21555
21555
  c("onMouseEnter", ["mouseout", "mouseover"]), c("onMouseLeave", ["mouseout", "mouseover"]), c("onPointerEnter", ["pointerout", "pointerover"]), c("onPointerLeave", ["pointerout", "pointerover"]), a("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), a("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), a("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), a("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), a("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), a("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
21556
- var ml = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), dh = new Set("cancel close invalid load scroll toggle".split(" ").concat(ml));
21557
- function fh(E, A, J) {
21556
+ var ml = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), fh = new Set("cancel close invalid load scroll toggle".split(" ").concat(ml));
21557
+ function ph(E, A, J) {
21558
21558
  var it = E.type || "unknown-event";
21559
21559
  E.currentTarget = J, function() {
21560
21560
  var ot;
21561
21561
  Se.apply(this, arguments), bt && (ot = ft, bt = !1, ft = null, xt || (xt = !0, Bt = ot));
21562
21562
  }(it, A, void 0, E), E.currentTarget = null;
21563
21563
  }
21564
- function ph(E, A) {
21564
+ function hh(E, A) {
21565
21565
  A = !!(4 & A);
21566
21566
  for (var J = 0; J < E.length; J++) {
21567
21567
  var it = (ot = E[J]).event, ot = ot.listeners;
@@ -21572,13 +21572,13 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21572
21572
  var _t = (Ht = ot[ut]).instance, mt = Ht.currentTarget, Ht = Ht.listener;
21573
21573
  if (_t !== st && it.isPropagationStopped())
21574
21574
  break t;
21575
- fh(it, Ht, mt), st = _t;
21575
+ ph(it, Ht, mt), st = _t;
21576
21576
  }
21577
21577
  else
21578
21578
  for (ut = 0; ut < ot.length; ut++) {
21579
21579
  if (_t = (Ht = ot[ut]).instance, mt = Ht.currentTarget, Ht = Ht.listener, _t !== st && it.isPropagationStopped())
21580
21580
  break t;
21581
- fh(it, Ht, mt), st = _t;
21581
+ ph(it, Ht, mt), st = _t;
21582
21582
  }
21583
21583
  }
21584
21584
  }
@@ -21586,26 +21586,26 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21586
21586
  throw E = Bt, xt = !1, Bt = null, E;
21587
21587
  }
21588
21588
  function Pn(E, A) {
21589
- var J = Eh(A), it = E + "__bubble";
21590
- J.has(it) || (yh(A, E, 2, !1), J.add(it));
21589
+ var J = Ch(A), it = E + "__bubble";
21590
+ J.has(it) || (bh(A, E, 2, !1), J.add(it));
21591
21591
  }
21592
- var hh = "_reactListening" + Math.random().toString(36).slice(2);
21593
- function gh(E) {
21594
- E[hh] || (E[hh] = !0, l.forEach(function(A) {
21595
- dh.has(A) || mh(A, !1, E, null), mh(A, !0, E, null);
21592
+ var gh = "_reactListening" + Math.random().toString(36).slice(2);
21593
+ function mh(E) {
21594
+ E[gh] || (E[gh] = !0, l.forEach(function(A) {
21595
+ fh.has(A) || yh(A, !1, E, null), yh(A, !0, E, null);
21596
21596
  }));
21597
21597
  }
21598
- function mh(E, A, J, it, ot) {
21598
+ function yh(E, A, J, it, ot) {
21599
21599
  ot = 4 < arguments.length && ot !== void 0 ? ot : 0;
21600
21600
  var st = J;
21601
- if (E === "selectionchange" && J.nodeType !== 9 && (st = J.ownerDocument), it !== null && !A && dh.has(E)) {
21601
+ if (E === "selectionchange" && J.nodeType !== 9 && (st = J.ownerDocument), it !== null && !A && fh.has(E)) {
21602
21602
  if (E !== "scroll")
21603
21603
  return;
21604
21604
  ot |= 2, st = it;
21605
21605
  }
21606
- it = E + "__" + (A ? "capture" : "bubble"), (J = Eh(st)).has(it) || (A && (ot |= 4), yh(st, E, ot, A), J.add(it));
21606
+ it = E + "__" + (A ? "capture" : "bubble"), (J = Ch(st)).has(it) || (A && (ot |= 4), bh(st, E, ot, A), J.add(it));
21607
21607
  }
21608
- function yh(E, A, J, it) {
21608
+ function bh(E, A, J, it) {
21609
21609
  var ot = Ur.get(A);
21610
21610
  switch (ot === void 0 ? 2 : ot) {
21611
21611
  case 0:
@@ -21619,7 +21619,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21619
21619
  }
21620
21620
  J = ot.bind(null, A, J, E), ot = !(!Ut || A !== "touchstart" && A !== "touchmove" && A !== "wheel") || void 0, it ? ot !== void 0 ? E.addEventListener(A, J, { capture: !0, passive: ot }) : E.addEventListener(A, J, !0) : ot !== void 0 ? E.addEventListener(A, J, { passive: ot }) : E.addEventListener(A, J, !1);
21621
21621
  }
21622
- function bh(E, A, J, it, ot) {
21622
+ function vh(E, A, J, it, ot) {
21623
21623
  var st = it;
21624
21624
  if (!(1 & A || 2 & A || it === null))
21625
21625
  t:
@@ -21762,9 +21762,9 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21762
21762
  }
21763
21763
  else
21764
21764
  Ze = null;
21765
- Re !== null && vh(he, De, Re, Ze, !1), Ye !== null && sn !== null && vh(he, sn, Ye, Ze, !0);
21765
+ Re !== null && _h(he, De, Re, Ze, !1), Ye !== null && sn !== null && _h(he, sn, Ye, Ze, !0);
21766
21766
  }
21767
- switch ((Re = (De = Kt ? is(Kt) : window).nodeName && De.nodeName.toLowerCase()) === "select" || Re === "input" && De.type === "file" ? ue = an : ts(De) ? Qe ? ue = Cc : (ue = ir, Me = zn) : !(Re = De.nodeName) || Re.toLowerCase() !== "input" || De.type !== "checkbox" && De.type !== "radio" || (ue = pl), (ue = ue && ue(E, Kt)) ? _a(he, ue, J, re) : (Me && Me(E, De, Kt), E === "focusout" && (Me = De._wrapperState) && Me.controlled && De.type === "number" && St(De, "number", De.value)), Me = Kt ? is(Kt) : window, E) {
21767
+ switch ((Re = (De = Kt ? is(Kt) : window).nodeName && De.nodeName.toLowerCase()) === "select" || Re === "input" && De.type === "file" ? ue = an : ts(De) ? Qe ? ue = Cc : (ue = or, Me = zn) : !(Re = De.nodeName) || Re.toLowerCase() !== "input" || De.type !== "checkbox" && De.type !== "radio" || (ue = pl), (ue = ue && ue(E, Kt)) ? _a(he, ue, J, re) : (Me && Me(E, De, Kt), E === "focusout" && (Me = De._wrapperState) && Me.controlled && De.type === "number" && St(De, "number", De.value)), Me = Kt ? is(Kt) : window, E) {
21768
21768
  case "focusin":
21769
21769
  !ts(Me) && Me.contentEditable !== "true" || (es = Me, yd = Kt, gl = null);
21770
21770
  break;
@@ -21777,14 +21777,14 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21777
21777
  case "contextmenu":
21778
21778
  case "mouseup":
21779
21779
  case "dragend":
21780
- bd = !1, ch(he, J, re);
21780
+ bd = !1, uh(he, J, re);
21781
21781
  break;
21782
21782
  case "selectionchange":
21783
21783
  if (Lb)
21784
21784
  break;
21785
21785
  case "keydown":
21786
21786
  case "keyup":
21787
- ch(he, J, re);
21787
+ uh(he, J, re);
21788
21788
  }
21789
21789
  if (ya)
21790
21790
  t: {
@@ -21834,7 +21834,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21834
21834
  }
21835
21835
  })(E, J)) && 0 < (Kt = kc(Kt, "onBeforeInput")).length && (re = new lo("onBeforeInput", "beforeinput", null, J, re), he.push({ event: re, listeners: Kt }), re.data = gn);
21836
21836
  }
21837
- ph(he, A);
21837
+ hh(he, A);
21838
21838
  }, ie = void 0;
21839
21839
  if (we)
21840
21840
  Ht();
@@ -21864,7 +21864,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21864
21864
  ;
21865
21865
  return E || null;
21866
21866
  }
21867
- function vh(E, A, J, it, ot) {
21867
+ function _h(E, A, J, it, ot) {
21868
21868
  for (var st = A._reactName, ut = []; J !== null && J !== it; ) {
21869
21869
  var _t = J, mt = _t.alternate, Ht = _t.stateNode;
21870
21870
  if (mt !== null && mt === it)
@@ -21876,7 +21876,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21876
21876
  function Oc() {
21877
21877
  }
21878
21878
  var _d = null, xd = null;
21879
- function _h(E, A) {
21879
+ function xh(E, A) {
21880
21880
  switch (E) {
21881
21881
  case "button":
21882
21882
  case "input":
@@ -21888,7 +21888,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21888
21888
  function wd(E, A) {
21889
21889
  return E === "textarea" || E === "option" || E === "noscript" || typeof A.children == "string" || typeof A.children == "number" || typeof A.dangerouslySetInnerHTML == "object" && A.dangerouslySetInnerHTML !== null && A.dangerouslySetInnerHTML.__html != null;
21890
21890
  }
21891
- var xh = typeof setTimeout == "function" ? setTimeout : void 0, Bb = typeof clearTimeout == "function" ? clearTimeout : void 0;
21891
+ var wh = typeof setTimeout == "function" ? setTimeout : void 0, Bb = typeof clearTimeout == "function" ? clearTimeout : void 0;
21892
21892
  function Sd(E) {
21893
21893
  (E.nodeType === 1 || E.nodeType === 9 && (E = E.body) != null) && (E.textContent = "");
21894
21894
  }
@@ -21900,7 +21900,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21900
21900
  }
21901
21901
  return E;
21902
21902
  }
21903
- function wh(E) {
21903
+ function Sh(E) {
21904
21904
  E = E.previousSibling;
21905
21905
  for (var A = 0; E; ) {
21906
21906
  if (E.nodeType === 8) {
@@ -21916,7 +21916,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21916
21916
  }
21917
21917
  return null;
21918
21918
  }
21919
- var Ed = 0, Ei = "__reactFiber$" + (Fn = Math.random().toString(36).slice(2)), Tc = "__reactProps$" + Fn, os = "__reactContainer$" + Fn, Sh = "__reactEvents$" + Fn;
21919
+ var Ed = 0, Ei = "__reactFiber$" + (Fn = Math.random().toString(36).slice(2)), Tc = "__reactProps$" + Fn, os = "__reactContainer$" + Fn, Eh = "__reactEvents$" + Fn;
21920
21920
  function xa(E) {
21921
21921
  var A = E[Ei];
21922
21922
  if (A)
@@ -21924,10 +21924,10 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21924
21924
  for (var J = E.parentNode; J; ) {
21925
21925
  if (A = J[os] || J[Ei]) {
21926
21926
  if (J = A.alternate, A.child !== null || J !== null && J.child !== null)
21927
- for (E = wh(E); E !== null; ) {
21927
+ for (E = Sh(E); E !== null; ) {
21928
21928
  if (J = E[Ei])
21929
21929
  return J;
21930
- E = wh(E);
21930
+ E = Sh(E);
21931
21931
  }
21932
21932
  return A;
21933
21933
  }
@@ -21946,9 +21946,9 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21946
21946
  function Ac(E) {
21947
21947
  return E[Tc] || null;
21948
21948
  }
21949
- function Eh(E) {
21950
- var A = E[Sh];
21951
- return A === void 0 ? E[Sh] = /* @__PURE__ */ new Set() : A;
21949
+ function Ch(E) {
21950
+ var A = E[Eh];
21951
+ return A === void 0 ? E[Eh] = /* @__PURE__ */ new Set() : A;
21952
21952
  }
21953
21953
  var Cd = [], vl = -1;
21954
21954
  function Ci(E) {
@@ -21979,12 +21979,12 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21979
21979
  function kd() {
21980
21980
  Dn(Dr), Dn(vr);
21981
21981
  }
21982
- function Ch(E, A, J) {
21982
+ function kh(E, A, J) {
21983
21983
  if (vr.current !== ki)
21984
21984
  throw Error(i(168));
21985
21985
  Hn(vr, A), Hn(Dr, J);
21986
21986
  }
21987
- function kh(E, A, J) {
21987
+ function Oh(E, A, J) {
21988
21988
  var it, ot = E.stateNode;
21989
21989
  if (E = A.childContextTypes, typeof ot.getChildContext != "function")
21990
21990
  return J;
@@ -21996,59 +21996,59 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
21996
21996
  function jc(E) {
21997
21997
  E = (E = E.stateNode) && E.__reactInternalMemoizedMergedChildContext || ki, wa = vr.current, Hn(vr, E), Hn(Dr, Dr.current);
21998
21998
  }
21999
- function Oh(E, A, J) {
21999
+ function Th(E, A, J) {
22000
22000
  var it = E.stateNode;
22001
22001
  if (!it)
22002
22002
  throw Error(i(169));
22003
- J ? (E = kh(E, A, wa), it.__reactInternalMemoizedMergedChildContext = E, Dn(Dr), Dn(vr), Hn(vr, E)) : Dn(Dr), Hn(Dr, J);
22003
+ J ? (E = Oh(E, A, wa), it.__reactInternalMemoizedMergedChildContext = E, Dn(Dr), Dn(vr), Hn(vr, E)) : Dn(Dr), Hn(Dr, J);
22004
22004
  }
22005
- var Od = null, Sa = null, Fb = s.unstable_runWithPriority, Td = s.unstable_scheduleCallback, Ad = s.unstable_cancelCallback, zb = s.unstable_shouldYield, jd = (se = s.unstable_requestPaint, s.unstable_now), Ub = s.unstable_getCurrentPriorityLevel, Nc = s.unstable_ImmediatePriority, Th = s.unstable_UserBlockingPriority, Ah = s.unstable_NormalPriority, jh = s.unstable_LowPriority, Nh = s.unstable_IdlePriority, Nd = {}, $b = se !== void 0 ? se : function() {
22006
- }, Go = null, Pc = null, Pd = !1, Ph = jd(), _r = Ph < 1e4 ? jd : function() {
22007
- return jd() - Ph;
22005
+ var Od = null, Sa = null, Fb = s.unstable_runWithPriority, Td = s.unstable_scheduleCallback, Ad = s.unstable_cancelCallback, zb = s.unstable_shouldYield, jd = (se = s.unstable_requestPaint, s.unstable_now), Ub = s.unstable_getCurrentPriorityLevel, Nc = s.unstable_ImmediatePriority, Ah = s.unstable_UserBlockingPriority, jh = s.unstable_NormalPriority, Nh = s.unstable_LowPriority, Ph = s.unstable_IdlePriority, Nd = {}, $b = se !== void 0 ? se : function() {
22006
+ }, Go = null, Pc = null, Pd = !1, Ih = jd(), _r = Ih < 1e4 ? jd : function() {
22007
+ return jd() - Ih;
22008
22008
  };
22009
22009
  function ss() {
22010
22010
  switch (Ub()) {
22011
22011
  case Nc:
22012
22012
  return 99;
22013
- case Th:
22014
- return 98;
22015
22013
  case Ah:
22016
- return 97;
22014
+ return 98;
22017
22015
  case jh:
22018
- return 96;
22016
+ return 97;
22019
22017
  case Nh:
22018
+ return 96;
22019
+ case Ph:
22020
22020
  return 95;
22021
22021
  default:
22022
22022
  throw Error(i(332));
22023
22023
  }
22024
22024
  }
22025
- function Ih(E) {
22025
+ function Rh(E) {
22026
22026
  switch (E) {
22027
22027
  case 99:
22028
22028
  return Nc;
22029
22029
  case 98:
22030
- return Th;
22031
- case 97:
22032
22030
  return Ah;
22033
- case 96:
22031
+ case 97:
22034
22032
  return jh;
22035
- case 95:
22033
+ case 96:
22036
22034
  return Nh;
22035
+ case 95:
22036
+ return Ph;
22037
22037
  default:
22038
22038
  throw Error(i(332));
22039
22039
  }
22040
22040
  }
22041
22041
  function Ea(E, A) {
22042
- return E = Ih(E), Fb(E, A);
22042
+ return E = Rh(E), Fb(E, A);
22043
22043
  }
22044
22044
  function _l(E, A, J) {
22045
- return E = Ih(E), Td(E, A, J);
22045
+ return E = Rh(E), Td(E, A, J);
22046
22046
  }
22047
22047
  function Ao() {
22048
22048
  var E;
22049
- Pc !== null && (E = Pc, Pc = null, Ad(E)), Rh();
22049
+ Pc !== null && (E = Pc, Pc = null, Ad(E)), Mh();
22050
22050
  }
22051
- function Rh() {
22051
+ function Mh() {
22052
22052
  if (!Pd && Go !== null) {
22053
22053
  Pd = !0;
22054
22054
  var E = 0;
@@ -22083,7 +22083,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22083
22083
  var A = Ic.current;
22084
22084
  Dn(Ic), E.type._context._currentValue = A;
22085
22085
  }
22086
- function Mh(E, A) {
22086
+ function Dh(E, A) {
22087
22087
  for (; E !== null; ) {
22088
22088
  var J = E.alternate;
22089
22089
  if ((E.childLanes & A) === A) {
@@ -22112,7 +22112,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22112
22112
  function Md(E) {
22113
22113
  E.updateQueue = { baseState: E.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null }, effects: null };
22114
22114
  }
22115
- function Dh(E, A) {
22115
+ function Lh(E, A) {
22116
22116
  E = E.updateQueue, A.updateQueue === E && (A.updateQueue = { baseState: E.baseState, firstBaseUpdate: E.firstBaseUpdate, lastBaseUpdate: E.lastBaseUpdate, shared: E.shared, effects: E.effects });
22117
22117
  }
22118
22118
  function Ti(E, A) {
@@ -22122,7 +22122,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22122
22122
  var J;
22123
22123
  (E = E.updateQueue) !== null && ((J = (E = E.shared).pending) === null ? A.next = A : (A.next = J.next, J.next = A), E.pending = A);
22124
22124
  }
22125
- function Lh(E, A) {
22125
+ function Bh(E, A) {
22126
22126
  var J = E.updateQueue, it = E.alternate;
22127
22127
  if (it !== null && J === (it = it.updateQueue)) {
22128
22128
  var ot = null, st = null;
@@ -22178,7 +22178,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22178
22178
  ut === null && (ot = _t), mt.baseState = ot, mt.firstBaseUpdate = st, mt.lastBaseUpdate = ut, Il |= ie, E.lanes = ie, E.memoizedState = _t;
22179
22179
  }
22180
22180
  }
22181
- function Bh(E, A, J) {
22181
+ function Fh(E, A, J) {
22182
22182
  if (E = A.effects, (A.effects = null) !== E)
22183
22183
  for (A = 0; A < E.length; A++) {
22184
22184
  var it = E[A], ot = it.callback;
@@ -22189,7 +22189,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22189
22189
  }
22190
22190
  }
22191
22191
  }
22192
- var Fh = new n.Component().refs;
22192
+ var zh = new n.Component().refs;
22193
22193
  function Dc(E, A, J, it) {
22194
22194
  J = (J = J(it, A = E.memoizedState)) == null ? A : e({}, A, J), E.memoizedState = J, E.lanes === 0 && (E.updateQueue.baseState = J);
22195
22195
  }
@@ -22208,18 +22208,18 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22208
22208
  var J = Jr(), it = Ii(E), ot = Ti(J, it);
22209
22209
  ot.tag = 2, A != null && (ot.callback = A), Ai(E, ot), Ri(E, it, J);
22210
22210
  } };
22211
- function zh(E, A, J, it, ot, st, ut) {
22211
+ function Uh(E, A, J, it, ot, st, ut) {
22212
22212
  return typeof (E = E.stateNode).shouldComponentUpdate == "function" ? E.shouldComponentUpdate(it, st, ut) : !(A.prototype && A.prototype.isPureReactComponent && hl(J, it) && hl(ot, st));
22213
22213
  }
22214
- function Uh(E, A, J) {
22214
+ function $h(E, A, J) {
22215
22215
  var it = !1, ot = ki, st = A.contextType;
22216
22216
  A = new A(J, st = typeof st == "object" && st !== null ? Zr(st) : (ot = qr(A) ? wa : vr.current, (it = (it = A.contextTypes) != null) ? as(E, ot) : ki)), E.memoizedState = A.state !== null && A.state !== void 0 ? A.state : null, A.updater = Lc, (E.stateNode = A)._reactInternals = E, it && ((E = E.stateNode).__reactInternalMemoizedUnmaskedChildContext = ot, E.__reactInternalMemoizedMaskedChildContext = st);
22217
22217
  }
22218
- function $h(E, A, J, it) {
22218
+ function Hh(E, A, J, it) {
22219
22219
  E = A.state, typeof A.componentWillReceiveProps == "function" && A.componentWillReceiveProps(J, it), typeof A.UNSAFE_componentWillReceiveProps == "function" && A.UNSAFE_componentWillReceiveProps(J, it), A.state !== E && Lc.enqueueReplaceState(A, A.state, null);
22220
22220
  }
22221
22221
  function Dd(E, A, J, it) {
22222
- var ot = E.stateNode, st = (ot.props = J, ot.state = E.memoizedState, ot.refs = Fh, Md(E), A.contextType);
22222
+ var ot = E.stateNode, st = (ot.props = J, ot.state = E.memoizedState, ot.refs = zh, Md(E), A.contextType);
22223
22223
  typeof st == "object" && st !== null ? ot.context = Zr(st) : (st = qr(A) ? wa : vr.current, ot.context = as(E, st)), xl(E, J, ot, it), ot.state = E.memoizedState, typeof (st = A.getDerivedStateFromProps) == "function" && (Dc(E, 0, st, J), ot.state = E.memoizedState), typeof A.getDerivedStateFromProps == "function" || typeof ot.getSnapshotBeforeUpdate == "function" || typeof ot.UNSAFE_componentWillMount != "function" && typeof ot.componentWillMount != "function" || (A = ot.state, typeof ot.componentWillMount == "function" && ot.componentWillMount(), typeof ot.UNSAFE_componentWillMount == "function" && ot.UNSAFE_componentWillMount(), A !== ot.state && Lc.enqueueReplaceState(ot, ot.state, null), xl(E, J, ot, it), ot.state = E.memoizedState), typeof ot.componentDidMount == "function" && (E.flags |= 4);
22224
22224
  }
22225
22225
  var Bc = Array.isArray;
@@ -22236,7 +22236,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22236
22236
  var ot = "" + E;
22237
22237
  return A !== null && A.ref !== null && typeof A.ref == "function" && A.ref._stringRef === ot ? A.ref : ((A = function(st) {
22238
22238
  var ut = it.refs;
22239
- ut === Fh && (ut = it.refs = {}), st === null ? delete ut[ot] : ut[ot] = st;
22239
+ ut === zh && (ut = it.refs = {}), st === null ? delete ut[ot] : ut[ot] = st;
22240
22240
  })._stringRef = ot, A);
22241
22241
  }
22242
22242
  if (typeof E != "string")
@@ -22250,7 +22250,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22250
22250
  if (E.type !== "textarea")
22251
22251
  throw Error(i(31, Object.prototype.toString.call(A) === "[object Object]" ? "object with keys {" + Object.keys(A).join(", ") + "}" : A));
22252
22252
  }
22253
- function Hh(E) {
22253
+ function qh(E) {
22254
22254
  function A(Kt, re) {
22255
22255
  var he;
22256
22256
  E && ((he = Kt.lastEffect) !== null ? (he.nextEffect = re, Kt.lastEffect = re) : Kt.firstEffect = Kt.lastEffect = re, re.nextEffect = null, re.flags = 8);
@@ -22447,7 +22447,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22447
22447
  return J(Kt, re);
22448
22448
  };
22449
22449
  }
22450
- var zc = Hh(!0), qh = Hh(!1), Sl = {}, jo = Ci(Sl), El = Ci(Sl), Cl = Ci(Sl);
22450
+ var zc = qh(!0), Wh = qh(!1), Sl = {}, jo = Ci(Sl), El = Ci(Sl), Cl = Ci(Sl);
22451
22451
  function Ca(E) {
22452
22452
  if (E === Sl)
22453
22453
  throw Error(i(174));
@@ -22467,7 +22467,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22467
22467
  function us() {
22468
22468
  Dn(jo), Dn(El), Dn(Cl);
22469
22469
  }
22470
- function Wh(E) {
22470
+ function Jh(E) {
22471
22471
  Ca(Cl.current);
22472
22472
  var A = Ca(jo.current), J = Ct(A, E.type);
22473
22473
  A !== J && (Hn(El, E), Hn(jo, J));
@@ -22501,11 +22501,11 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22501
22501
  return null;
22502
22502
  }
22503
22503
  var Yo = null, ji = null, No = !1;
22504
- function Jh(E, A) {
22504
+ function Vh(E, A) {
22505
22505
  var J = to(5, null, null, 0);
22506
22506
  J.elementType = "DELETED", J.type = "DELETED", J.stateNode = A, J.return = E, J.flags = 8, E.lastEffect !== null ? (E.lastEffect.nextEffect = J, E.lastEffect = J) : E.firstEffect = E.lastEffect = J;
22507
22507
  }
22508
- function Vh(E, A) {
22508
+ function Kh(E, A) {
22509
22509
  switch (E.tag) {
22510
22510
  case 5:
22511
22511
  var J = E.type;
@@ -22521,17 +22521,17 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22521
22521
  var A = ji;
22522
22522
  if (A) {
22523
22523
  var J = A;
22524
- if (!Vh(E, A)) {
22525
- if (!(A = rs(J.nextSibling)) || !Vh(E, A))
22524
+ if (!Kh(E, A)) {
22525
+ if (!(A = rs(J.nextSibling)) || !Kh(E, A))
22526
22526
  return E.flags = -1025 & E.flags | 2, No = !1, void (Yo = E);
22527
- Jh(Yo, J);
22527
+ Vh(Yo, J);
22528
22528
  }
22529
22529
  Yo = E, ji = rs(A.firstChild);
22530
22530
  } else
22531
22531
  E.flags = -1025 & E.flags | 2, No = !1, Yo = E;
22532
22532
  }
22533
22533
  }
22534
- function Kh(E) {
22534
+ function Gh(E) {
22535
22535
  for (E = E.return; E !== null && E.tag !== 5 && E.tag !== 3 && E.tag !== 13; )
22536
22536
  E = E.return;
22537
22537
  Yo = E;
@@ -22539,12 +22539,12 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22539
22539
  function $c(E) {
22540
22540
  if (E === Yo) {
22541
22541
  if (!No)
22542
- return Kh(E), No = !0, 0;
22542
+ return Gh(E), No = !0, 0;
22543
22543
  var A = E.type;
22544
22544
  if (E.tag !== 5 || A !== "head" && A !== "body" && !wd(A, E.memoizedProps))
22545
22545
  for (A = ji; A; )
22546
- Jh(E, A), A = rs(A.nextSibling);
22547
- if (Kh(E), E.tag === 13) {
22546
+ Vh(E, A), A = rs(A.nextSibling);
22547
+ if (Gh(E), E.tag === 13) {
22548
22548
  if (!(E = (E = E.memoizedState) !== null ? E.dehydrated : null))
22549
22549
  throw Error(i(317));
22550
22550
  t: {
@@ -22651,18 +22651,18 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22651
22651
  }
22652
22652
  return [st, it];
22653
22653
  }
22654
- function Gh(E, A, J) {
22654
+ function Yh(E, A, J) {
22655
22655
  var it = (it = A._getVersion)(A._source), ot = A._workInProgressVersionPrimary;
22656
22656
  if (ot !== null ? E = ot === it : (E = E.mutableReadLanes, (E = (Ol & E) === E) && (A._workInProgressVersionPrimary = it, ds.push(A))), E)
22657
22657
  return J(A._source);
22658
22658
  throw ds.push(A), Error(i(350));
22659
22659
  }
22660
- function Yh(E, A, J, it) {
22660
+ function Zh(E, A, J, it) {
22661
22661
  var ot = Tr;
22662
22662
  if (ot === null)
22663
22663
  throw Error(i(349));
22664
22664
  var st = A._getVersion, ut = st(A._source), _t = kl.current, mt = (ie = _t.useState(function() {
22665
- return Gh(ot, A, J);
22665
+ return Yh(ot, A, J);
22666
22666
  }))[1], Ht = ie[0], ie = hr, ue = (Kt = E.memoizedState).refs, Me = ue.getSnapshot, gn = Kt.source, Kt = Kt.subscribe, re = Gn;
22667
22667
  return E.memoizedState = { refs: ue, source: A, subscribe: it }, _t.useEffect(function() {
22668
22668
  ue.getSnapshot = J, ue.setSnapshot = mt;
@@ -22687,10 +22687,10 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22687
22687
  });
22688
22688
  }
22689
22689
  });
22690
- }, [A, it]), Xn(Me, J) && Xn(gn, A) && Xn(Kt, it) || ((E = { pending: null, dispatch: null, lastRenderedReducer: Po, lastRenderedState: Ht }).dispatch = mt = Vd.bind(null, Gn, E), ie.queue = E, ie.baseQueue = null, Ht = Gh(ot, A, J), ie.memoizedState = ie.baseState = Ht), Ht;
22690
+ }, [A, it]), Xn(Me, J) && Xn(gn, A) && Xn(Kt, it) || ((E = { pending: null, dispatch: null, lastRenderedReducer: Po, lastRenderedState: Ht }).dispatch = mt = Vd.bind(null, Gn, E), ie.queue = E, ie.baseQueue = null, Ht = Yh(ot, A, J), ie.memoizedState = ie.baseState = Ht), Ht;
22691
22691
  }
22692
- function Zh(E, A, J) {
22693
- return Yh(Oa(), E, A, J);
22692
+ function Xh(E, A, J) {
22693
+ return Zh(Oa(), E, A, J);
22694
22694
  }
22695
22695
  function Nl(E) {
22696
22696
  var A = ka();
@@ -22699,7 +22699,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22699
22699
  function qc(E, A, J, it) {
22700
22700
  return E = { tag: E, create: A, destroy: J, deps: it, next: null }, (A = Gn.updateQueue) === null ? (Gn.updateQueue = A = { lastEffect: null }).lastEffect = E.next = E : (J = A.lastEffect) === null ? A.lastEffect = E.next = E : (it = J.next, (J.next = E).next = it, A.lastEffect = E), E;
22701
22701
  }
22702
- function Xh(E) {
22702
+ function Qh(E) {
22703
22703
  return ka().memoizedState = { current: E };
22704
22704
  }
22705
22705
  function Wc() {
@@ -22718,32 +22718,32 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22718
22718
  }
22719
22719
  Gn.flags |= E, ot.memoizedState = qc(1 | A, J, st, it);
22720
22720
  }
22721
- function Qh(E, A) {
22721
+ function tg(E, A) {
22722
22722
  return qd(516, 4, E, A);
22723
22723
  }
22724
22724
  function Jc(E, A) {
22725
22725
  return Wd(516, 4, E, A);
22726
22726
  }
22727
- function tg(E, A) {
22727
+ function eg(E, A) {
22728
22728
  return Wd(4, 2, E, A);
22729
22729
  }
22730
- function eg(E, A) {
22730
+ function ng(E, A) {
22731
22731
  return typeof A == "function" ? (E = E(), A(E), function() {
22732
22732
  A(null);
22733
22733
  }) : A != null ? (E = E(), A.current = E, function() {
22734
22734
  A.current = null;
22735
22735
  }) : void 0;
22736
22736
  }
22737
- function ng(E, A, J) {
22738
- return J = J != null ? J.concat([E]) : null, Wd(4, 2, eg.bind(null, A, E), J);
22737
+ function rg(E, A, J) {
22738
+ return J = J != null ? J.concat([E]) : null, Wd(4, 2, ng.bind(null, A, E), J);
22739
22739
  }
22740
22740
  function Jd() {
22741
22741
  }
22742
- function rg(E, A) {
22742
+ function og(E, A) {
22743
22743
  var J = Oa(), it = (A = A === void 0 ? null : A, J.memoizedState);
22744
22744
  return it !== null && A !== null && $d(A, it[1]) ? it[0] : (J.memoizedState = [E, A], E);
22745
22745
  }
22746
- function og(E, A) {
22746
+ function ig(E, A) {
22747
22747
  var J = Oa(), it = (A = A === void 0 ? null : A, J.memoizedState);
22748
22748
  return it !== null && A !== null && $d(A, it[1]) ? it[0] : (E = E(), J.memoizedState = [E, A], E);
22749
22749
  }
@@ -22764,8 +22764,8 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22764
22764
  }
22765
22765
  var Vc = { readContext: Zr, useCallback: Lr, useContext: Lr, useEffect: Lr, useImperativeHandle: Lr, useLayoutEffect: Lr, useMemo: Lr, useReducer: Lr, useRef: Lr, useState: Lr, useDebugValue: Lr, useDeferredValue: Lr, useTransition: Lr, useMutableSource: Lr, useOpaqueIdentifier: Lr, unstable_isNewReconciler: !1 }, qb = { readContext: Zr, useCallback: function(E, A) {
22766
22766
  return ka().memoizedState = [E, A === void 0 ? null : A], E;
22767
- }, useContext: Zr, useEffect: Qh, useImperativeHandle: function(E, A, J) {
22768
- return J = J != null ? J.concat([E]) : null, qd(4, 2, eg.bind(null, A, E), J);
22767
+ }, useContext: Zr, useEffect: tg, useImperativeHandle: function(E, A, J) {
22768
+ return J = J != null ? J.concat([E]) : null, qd(4, 2, ng.bind(null, A, E), J);
22769
22769
  }, useLayoutEffect: function(E, A) {
22770
22770
  return qd(4, 2, E, A);
22771
22771
  }, useMemo: function(E, A) {
@@ -22774,9 +22774,9 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22774
22774
  }, useReducer: function(E, A, J) {
22775
22775
  var it = ka();
22776
22776
  return A = J !== void 0 ? J(A) : A, it.memoizedState = it.baseState = A, E = (E = it.queue = { pending: null, dispatch: null, lastRenderedReducer: E, lastRenderedState: A }).dispatch = Vd.bind(null, Gn, E), [it.memoizedState, E];
22777
- }, useRef: Xh, useState: Nl, useDebugValue: Jd, useDeferredValue: function(E) {
22777
+ }, useRef: Qh, useState: Nl, useDebugValue: Jd, useDeferredValue: function(E) {
22778
22778
  var A = Nl(E), J = A[0], it = A[1];
22779
- return Qh(function() {
22779
+ return tg(function() {
22780
22780
  var ot = Xr.transition;
22781
22781
  Xr.transition = 1;
22782
22782
  try {
@@ -22787,7 +22787,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22787
22787
  }, [E]), J;
22788
22788
  }, useTransition: function() {
22789
22789
  var E = Nl(!1), A = E[0];
22790
- return Xh(E = (function(J, it) {
22790
+ return Qh(E = (function(J, it) {
22791
22791
  var ot = ss();
22792
22792
  Ea(ot < 98 ? 98 : ot, function() {
22793
22793
  J(!0);
@@ -22803,7 +22803,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22803
22803
  }).bind(null, E[1])), [E, A];
22804
22804
  }, useMutableSource: function(E, A, J) {
22805
22805
  var it = ka();
22806
- return it.memoizedState = { refs: { getSnapshot: A, setSnapshot: null }, source: E, subscribe: J }, Yh(it, E, A, J);
22806
+ return it.memoizedState = { refs: { getSnapshot: A, setSnapshot: null }, source: E, subscribe: J }, Zh(it, E, A, J);
22807
22807
  }, useOpaqueIdentifier: function() {
22808
22808
  var E, A, J;
22809
22809
  return No ? (E = !1, J = { $$typeof: U, toString: J = function() {
@@ -22811,7 +22811,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22811
22811
  }, valueOf: J }, A = Nl(J)[1], !(2 & Gn.mode) && (Gn.flags |= 516, qc(5, function() {
22812
22812
  A("r:" + (Ed++).toString(36));
22813
22813
  }, void 0, null))) : Nl(J = "r:" + (Ed++).toString(36)), J;
22814
- }, unstable_isNewReconciler: !1 }, Wb = { readContext: Zr, useCallback: rg, useContext: Zr, useEffect: Jc, useImperativeHandle: ng, useLayoutEffect: tg, useMemo: og, useReducer: Al, useRef: Wc, useState: function() {
22814
+ }, unstable_isNewReconciler: !1 }, Wb = { readContext: Zr, useCallback: og, useContext: Zr, useEffect: Jc, useImperativeHandle: rg, useLayoutEffect: eg, useMemo: ig, useReducer: Al, useRef: Wc, useState: function() {
22815
22815
  return Al(Po);
22816
22816
  }, useDebugValue: Jd, useDeferredValue: function(E) {
22817
22817
  var A = Al(Po), J = A[0], it = A[1];
@@ -22827,9 +22827,9 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22827
22827
  }, useTransition: function() {
22828
22828
  var E = Al(Po)[0];
22829
22829
  return [Wc().current, E];
22830
- }, useMutableSource: Zh, useOpaqueIdentifier: function() {
22830
+ }, useMutableSource: Xh, useOpaqueIdentifier: function() {
22831
22831
  return Al(Po)[0];
22832
- }, unstable_isNewReconciler: !1 }, Jb = { readContext: Zr, useCallback: rg, useContext: Zr, useEffect: Jc, useImperativeHandle: ng, useLayoutEffect: tg, useMemo: og, useReducer: jl, useRef: Wc, useState: function() {
22832
+ }, unstable_isNewReconciler: !1 }, Jb = { readContext: Zr, useCallback: og, useContext: Zr, useEffect: Jc, useImperativeHandle: rg, useLayoutEffect: eg, useMemo: ig, useReducer: jl, useRef: Wc, useState: function() {
22833
22833
  return jl(Po);
22834
22834
  }, useDebugValue: Jd, useDeferredValue: function(E) {
22835
22835
  var A = jl(Po), J = A[0], it = A[1];
@@ -22845,22 +22845,22 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22845
22845
  }, useTransition: function() {
22846
22846
  var E = jl(Po)[0];
22847
22847
  return [Wc().current, E];
22848
- }, useMutableSource: Zh, useOpaqueIdentifier: function() {
22848
+ }, useMutableSource: Xh, useOpaqueIdentifier: function() {
22849
22849
  return jl(Po)[0];
22850
22850
  }, unstable_isNewReconciler: !1 }, Vb = C.ReactCurrentOwner, fo = !1;
22851
22851
  function Wr(E, A, J, it) {
22852
- A.child = E === null ? qh(A, null, J, it) : zc(A, E.child, J, it);
22852
+ A.child = E === null ? Wh(A, null, J, it) : zc(A, E.child, J, it);
22853
22853
  }
22854
- function ig(E, A, J, it, ot) {
22854
+ function ag(E, A, J, it, ot) {
22855
22855
  J = J.render;
22856
22856
  var st = A.ref;
22857
22857
  return cs(A, ot), it = Hd(E, A, J, it, st, ot), E === null || fo ? (A.flags |= 1, Wr(E, A, it, ot), A.child) : (A.updateQueue = E.updateQueue, A.flags &= -517, E.lanes &= ~ot, Zo(E, A, ot));
22858
22858
  }
22859
- function ag(E, A, J, it, ot, st) {
22859
+ function sg(E, A, J, it, ot, st) {
22860
22860
  var ut;
22861
- return E === null ? typeof (ut = J.type) != "function" || hf(ut) || ut.defaultProps !== void 0 || J.compare !== null || J.defaultProps !== void 0 ? ((E = nu(J.type, null, it, A, A.mode, st)).ref = A.ref, (E.return = A).child = E) : (A.tag = 15, A.type = ut, sg(E, A, ut, it, ot, st)) : (ut = E.child, ot & st || (ot = ut.memoizedProps, !(J = (J = J.compare) !== null ? J : hl)(ot, it) || E.ref !== A.ref) ? (A.flags |= 1, (E = Li(ut, it)).ref = A.ref, (E.return = A).child = E) : Zo(E, A, st));
22861
+ return E === null ? typeof (ut = J.type) != "function" || hf(ut) || ut.defaultProps !== void 0 || J.compare !== null || J.defaultProps !== void 0 ? ((E = nu(J.type, null, it, A, A.mode, st)).ref = A.ref, (E.return = A).child = E) : (A.tag = 15, A.type = ut, lg(E, A, ut, it, ot, st)) : (ut = E.child, ot & st || (ot = ut.memoizedProps, !(J = (J = J.compare) !== null ? J : hl)(ot, it) || E.ref !== A.ref) ? (A.flags |= 1, (E = Li(ut, it)).ref = A.ref, (E.return = A).child = E) : Zo(E, A, st));
22862
22862
  }
22863
- function sg(E, A, J, it, ot, st) {
22863
+ function lg(E, A, J, it, ot, st) {
22864
22864
  if (E !== null && hl(E.memoizedProps, it) && E.ref === A.ref) {
22865
22865
  if (fo = !1, !(st & ot))
22866
22866
  return A.lanes = E.lanes, Zo(E, A, st);
@@ -22868,7 +22868,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22868
22868
  }
22869
22869
  return Kd(E, A, J, it, st);
22870
22870
  }
22871
- function lg(E, A, J) {
22871
+ function cg(E, A, J) {
22872
22872
  var it = A.pendingProps, ot = it.children, st = E !== null ? E.memoizedState : null;
22873
22873
  if (it.mode === "hidden" || it.mode === "unstable-defer-without-hiding")
22874
22874
  if (4 & A.mode) {
@@ -22881,7 +22881,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22881
22881
  st !== null ? (it = st.baseLanes | J, A.memoizedState = null) : it = J, eu(0, it);
22882
22882
  return Wr(E, A, ot, J), A.child;
22883
22883
  }
22884
- function cg(E, A) {
22884
+ function ug(E, A) {
22885
22885
  var J = A.ref;
22886
22886
  (E === null && J !== null || E !== null && E.ref !== J) && (A.flags |= 128);
22887
22887
  }
@@ -22889,27 +22889,27 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22889
22889
  var st = as(A, qr(J) ? wa : vr.current);
22890
22890
  return cs(A, ot), J = Hd(E, A, J, it, st, ot), E === null || fo ? (A.flags |= 1, Wr(E, A, J, ot), A.child) : (A.updateQueue = E.updateQueue, A.flags &= -517, E.lanes &= ~ot, Zo(E, A, ot));
22891
22891
  }
22892
- function ug(E, A, J, it, ot) {
22892
+ function dg(E, A, J, it, ot) {
22893
22893
  var st, ut, _t, mt, Ht, ie, ue, Me, gn, Kt;
22894
- return qr(J) ? (st = !0, jc(A)) : st = !1, cs(A, ot), it = A.stateNode === null ? (E !== null && (E.alternate = null, A.alternate = null, A.flags |= 2), Uh(A, J, it), Dd(A, J, it, ot), !0) : E === null ? (ut = A.stateNode, _t = A.memoizedProps, ut.props = _t, Me = ut.context, mt = typeof (mt = J.contextType) == "object" && mt !== null ? Zr(mt) : as(A, mt = qr(J) ? wa : vr.current), (ie = typeof (Ht = J.getDerivedStateFromProps) == "function" || typeof ut.getSnapshotBeforeUpdate == "function") || typeof ut.UNSAFE_componentWillReceiveProps != "function" && typeof ut.componentWillReceiveProps != "function" || _t === it && Me === mt || $h(0, ut, it, mt), Oi = !1, ue = A.memoizedState, ut.state = ue, xl(A, it, ut, ot), Me = A.memoizedState, _t !== it || ue !== Me || Dr.current || Oi ? (typeof Ht == "function" && (Dc(A, 0, Ht, it), Me = A.memoizedState), (_t = Oi || zh(A, J, _t, it, ue, Me, mt)) ? (ie || typeof ut.UNSAFE_componentWillMount != "function" && typeof ut.componentWillMount != "function" || (typeof ut.componentWillMount == "function" && ut.componentWillMount(), typeof ut.UNSAFE_componentWillMount == "function" && ut.UNSAFE_componentWillMount()), typeof ut.componentDidMount == "function" && (A.flags |= 4)) : (typeof ut.componentDidMount == "function" && (A.flags |= 4), A.memoizedProps = it, A.memoizedState = Me), ut.props = it, ut.state = Me, ut.context = mt, _t) : (typeof ut.componentDidMount == "function" && (A.flags |= 4), !1)) : (ut = A.stateNode, Dh(E, A), _t = A.memoizedProps, mt = A.type === A.elementType ? _t : uo(A.type, _t), ut.props = mt, ie = A.pendingProps, ue = ut.context, Me = typeof (Me = J.contextType) == "object" && Me !== null ? Zr(Me) : as(A, Me = qr(J) ? wa : vr.current), (Ht = typeof (gn = J.getDerivedStateFromProps) == "function" || typeof ut.getSnapshotBeforeUpdate == "function") || typeof ut.UNSAFE_componentWillReceiveProps != "function" && typeof ut.componentWillReceiveProps != "function" || _t === ie && ue === Me || $h(0, ut, it, Me), Oi = !1, ue = A.memoizedState, ut.state = ue, xl(A, it, ut, ot), Kt = A.memoizedState, _t !== ie || ue !== Kt || Dr.current || Oi ? (typeof gn == "function" && (Dc(A, 0, gn, it), Kt = A.memoizedState), (mt = Oi || zh(A, J, mt, it, ue, Kt, Me)) ? (Ht || typeof ut.UNSAFE_componentWillUpdate != "function" && typeof ut.componentWillUpdate != "function" || (typeof ut.componentWillUpdate == "function" && ut.componentWillUpdate(it, Kt, Me), typeof ut.UNSAFE_componentWillUpdate == "function" && ut.UNSAFE_componentWillUpdate(it, Kt, Me)), typeof ut.componentDidUpdate == "function" && (A.flags |= 4), typeof ut.getSnapshotBeforeUpdate == "function" && (A.flags |= 256)) : (typeof ut.componentDidUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 4), typeof ut.getSnapshotBeforeUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 256), A.memoizedProps = it, A.memoizedState = Kt), ut.props = it, ut.state = Kt, ut.context = Me, mt) : (typeof ut.componentDidUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 4), typeof ut.getSnapshotBeforeUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 256), !1)), Gd(E, A, J, it, st, ot);
22894
+ return qr(J) ? (st = !0, jc(A)) : st = !1, cs(A, ot), it = A.stateNode === null ? (E !== null && (E.alternate = null, A.alternate = null, A.flags |= 2), $h(A, J, it), Dd(A, J, it, ot), !0) : E === null ? (ut = A.stateNode, _t = A.memoizedProps, ut.props = _t, Me = ut.context, mt = typeof (mt = J.contextType) == "object" && mt !== null ? Zr(mt) : as(A, mt = qr(J) ? wa : vr.current), (ie = typeof (Ht = J.getDerivedStateFromProps) == "function" || typeof ut.getSnapshotBeforeUpdate == "function") || typeof ut.UNSAFE_componentWillReceiveProps != "function" && typeof ut.componentWillReceiveProps != "function" || _t === it && Me === mt || Hh(0, ut, it, mt), Oi = !1, ue = A.memoizedState, ut.state = ue, xl(A, it, ut, ot), Me = A.memoizedState, _t !== it || ue !== Me || Dr.current || Oi ? (typeof Ht == "function" && (Dc(A, 0, Ht, it), Me = A.memoizedState), (_t = Oi || Uh(A, J, _t, it, ue, Me, mt)) ? (ie || typeof ut.UNSAFE_componentWillMount != "function" && typeof ut.componentWillMount != "function" || (typeof ut.componentWillMount == "function" && ut.componentWillMount(), typeof ut.UNSAFE_componentWillMount == "function" && ut.UNSAFE_componentWillMount()), typeof ut.componentDidMount == "function" && (A.flags |= 4)) : (typeof ut.componentDidMount == "function" && (A.flags |= 4), A.memoizedProps = it, A.memoizedState = Me), ut.props = it, ut.state = Me, ut.context = mt, _t) : (typeof ut.componentDidMount == "function" && (A.flags |= 4), !1)) : (ut = A.stateNode, Lh(E, A), _t = A.memoizedProps, mt = A.type === A.elementType ? _t : uo(A.type, _t), ut.props = mt, ie = A.pendingProps, ue = ut.context, Me = typeof (Me = J.contextType) == "object" && Me !== null ? Zr(Me) : as(A, Me = qr(J) ? wa : vr.current), (Ht = typeof (gn = J.getDerivedStateFromProps) == "function" || typeof ut.getSnapshotBeforeUpdate == "function") || typeof ut.UNSAFE_componentWillReceiveProps != "function" && typeof ut.componentWillReceiveProps != "function" || _t === ie && ue === Me || Hh(0, ut, it, Me), Oi = !1, ue = A.memoizedState, ut.state = ue, xl(A, it, ut, ot), Kt = A.memoizedState, _t !== ie || ue !== Kt || Dr.current || Oi ? (typeof gn == "function" && (Dc(A, 0, gn, it), Kt = A.memoizedState), (mt = Oi || Uh(A, J, mt, it, ue, Kt, Me)) ? (Ht || typeof ut.UNSAFE_componentWillUpdate != "function" && typeof ut.componentWillUpdate != "function" || (typeof ut.componentWillUpdate == "function" && ut.componentWillUpdate(it, Kt, Me), typeof ut.UNSAFE_componentWillUpdate == "function" && ut.UNSAFE_componentWillUpdate(it, Kt, Me)), typeof ut.componentDidUpdate == "function" && (A.flags |= 4), typeof ut.getSnapshotBeforeUpdate == "function" && (A.flags |= 256)) : (typeof ut.componentDidUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 4), typeof ut.getSnapshotBeforeUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 256), A.memoizedProps = it, A.memoizedState = Kt), ut.props = it, ut.state = Kt, ut.context = Me, mt) : (typeof ut.componentDidUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 4), typeof ut.getSnapshotBeforeUpdate != "function" || _t === E.memoizedProps && ue === E.memoizedState || (A.flags |= 256), !1)), Gd(E, A, J, it, st, ot);
22895
22895
  }
22896
22896
  function Gd(E, A, J, it, ot, st) {
22897
- cg(E, A);
22897
+ ug(E, A);
22898
22898
  var ut = !!(64 & A.flags);
22899
22899
  if (!it && !ut)
22900
- return ot && Oh(A, J, !1), Zo(E, A, st);
22900
+ return ot && Th(A, J, !1), Zo(E, A, st);
22901
22901
  it = A.stateNode, Vb.current = A;
22902
22902
  var _t = ut && typeof J.getDerivedStateFromError != "function" ? null : it.render();
22903
- return A.flags |= 1, E !== null && ut ? (A.child = zc(A, E.child, null, st), A.child = zc(A, null, _t, st)) : Wr(E, A, _t, st), A.memoizedState = it.state, ot && Oh(A, J, !0), A.child;
22903
+ return A.flags |= 1, E !== null && ut ? (A.child = zc(A, E.child, null, st), A.child = zc(A, null, _t, st)) : Wr(E, A, _t, st), A.memoizedState = it.state, ot && Th(A, J, !0), A.child;
22904
22904
  }
22905
- function dg(E) {
22905
+ function fg(E) {
22906
22906
  var A = E.stateNode;
22907
- A.pendingContext ? Ch(0, A.pendingContext, A.pendingContext !== A.context) : A.context && Ch(0, A.context, !1), Ld(E, A.containerInfo);
22907
+ A.pendingContext ? kh(0, A.pendingContext, A.pendingContext !== A.context) : A.context && kh(0, A.context, !1), Ld(E, A.containerInfo);
22908
22908
  }
22909
22909
  var Yd = { dehydrated: null, retryLane: 0 };
22910
- function fg(E, A, J) {
22910
+ function pg(E, A, J) {
22911
22911
  var it, ot = A.pendingProps, st = Kn.current, ut = !1;
22912
- return (it = (it = !!(64 & A.flags)) ? it : (E === null || E.memoizedState !== null) && !!(2 & st)) ? (ut = !0, A.flags &= -65) : E !== null && E.memoizedState === null || ot.fallback === void 0 || ot.unstable_avoidThisFallback === !0 || (st |= 1), Hn(Kn, 1 & st), E === null ? (ot.fallback !== void 0 && Fd(A), E = ot.children, st = ot.fallback, ut ? (E = pg(A, E, st, J), A.child.memoizedState = { baseLanes: J }, A.memoizedState = Yd, E) : typeof ot.unstable_expectedLoadTime == "number" ? (E = pg(A, E, st, J), A.child.memoizedState = { baseLanes: J }, A.memoizedState = Yd, A.lanes = 33554432, E) : ((J = gf({ mode: "visible", children: E }, A.mode, J, null)).return = A).child = J) : (E.memoizedState, ut ? (ot = function(_t, mt, Ht, ie, ue) {
22912
+ return (it = (it = !!(64 & A.flags)) ? it : (E === null || E.memoizedState !== null) && !!(2 & st)) ? (ut = !0, A.flags &= -65) : E !== null && E.memoizedState === null || ot.fallback === void 0 || ot.unstable_avoidThisFallback === !0 || (st |= 1), Hn(Kn, 1 & st), E === null ? (ot.fallback !== void 0 && Fd(A), E = ot.children, st = ot.fallback, ut ? (E = hg(A, E, st, J), A.child.memoizedState = { baseLanes: J }, A.memoizedState = Yd, E) : typeof ot.unstable_expectedLoadTime == "number" ? (E = hg(A, E, st, J), A.child.memoizedState = { baseLanes: J }, A.memoizedState = Yd, A.lanes = 33554432, E) : ((J = gf({ mode: "visible", children: E }, A.mode, J, null)).return = A).child = J) : (E.memoizedState, ut ? (ot = function(_t, mt, Ht, ie, ue) {
22913
22913
  var Me = mt.mode, gn = _t.child, Kt = (_t = gn.sibling, { mode: "hidden", children: Ht });
22914
22914
  return 2 & Me || mt.child === gn ? Ht = Li(gn, Kt) : ((Ht = mt.child).childLanes = 0, Ht.pendingProps = Kt, (gn = Ht.lastEffect) !== null ? (mt.firstEffect = Ht.firstEffect, (mt.lastEffect = gn).nextEffect = null) : mt.firstEffect = mt.lastEffect = null), _t !== null ? ie = Li(_t, ie) : (ie = bs(ie, Me, ue, null)).flags |= 2, ie.return = mt, Ht.return = mt, Ht.sibling = ie, mt.child = Ht, ie;
22915
22915
  }(E, A, ot.children, ot.fallback, J), ut = A.child, st = E.child.memoizedState, ut.memoizedState = st === null ? { baseLanes: J } : { baseLanes: st.baseLanes | J }, ut.childLanes = E.childLanes & ~J, A.memoizedState = Yd, ot) : (J = function(_t, mt, Ht, ie) {
@@ -22917,20 +22917,20 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22917
22917
  return _t = ue.sibling, Ht = Li(ue, { mode: "visible", children: Ht }), !(2 & mt.mode) && (Ht.lanes = ie), Ht.return = mt, (Ht.sibling = null) !== _t && (_t.nextEffect = null, _t.flags = 8, mt.firstEffect = mt.lastEffect = _t), mt.child = Ht;
22918
22918
  }(E, A, ot.children, J), A.memoizedState = null, J));
22919
22919
  }
22920
- function pg(E, A, J, it) {
22920
+ function hg(E, A, J, it) {
22921
22921
  var ot = E.mode, st = E.child;
22922
22922
  return A = { mode: "hidden", children: A }, 2 & ot || st === null ? st = gf(A, ot, 0, null) : (st.childLanes = 0, st.pendingProps = A), J = bs(J, ot, it, null), st.return = E, J.return = E, st.sibling = J, E.child = st, J;
22923
22923
  }
22924
- function hg(E, A) {
22924
+ function gg(E, A) {
22925
22925
  E.lanes |= A;
22926
22926
  var J = E.alternate;
22927
- J !== null && (J.lanes |= A), Mh(E.return, A);
22927
+ J !== null && (J.lanes |= A), Dh(E.return, A);
22928
22928
  }
22929
22929
  function Zd(E, A, J, it, ot, st) {
22930
22930
  var ut = E.memoizedState;
22931
22931
  ut === null ? E.memoizedState = { isBackwards: A, rendering: null, renderingStartTime: 0, last: it, tail: J, tailMode: ot, lastEffect: st } : (ut.isBackwards = A, ut.rendering = null, ut.renderingStartTime = 0, ut.last = it, ut.tail = J, ut.tailMode = ot, ut.lastEffect = st);
22932
22932
  }
22933
- function gg(E, A, J) {
22933
+ function mg(E, A, J) {
22934
22934
  var it = A.pendingProps, ot = it.revealOrder, st = it.tail;
22935
22935
  if (Wr(E, A, it.children, J), 2 & (it = Kn.current))
22936
22936
  it = 1 & it | 2, A.flags |= 64;
@@ -22939,9 +22939,9 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
22939
22939
  t:
22940
22940
  for (E = A.child; E !== null; ) {
22941
22941
  if (E.tag === 13)
22942
- E.memoizedState !== null && hg(E, J);
22942
+ E.memoizedState !== null && gg(E, J);
22943
22943
  else if (E.tag === 19)
22944
- hg(E, J);
22944
+ gg(E, J);
22945
22945
  else if (E.child !== null) {
22946
22946
  E = (E.child.return = E).child;
22947
22947
  continue;
@@ -23123,14 +23123,14 @@ Error generating stack: ` + st.message + `
23123
23123
  }, Yb = function(E, A, J, it) {
23124
23124
  J !== it && (A.flags |= 4);
23125
23125
  }, Zb = typeof WeakMap == "function" ? WeakMap : Map;
23126
- function mg(E, A, J) {
23126
+ function yg(E, A, J) {
23127
23127
  (J = Ti(-1, J)).tag = 3, J.payload = { element: null };
23128
23128
  var it = A.value;
23129
23129
  return J.callback = function() {
23130
23130
  Yc || (Yc = !0, lf = it), Qd(0, A);
23131
23131
  }, J;
23132
23132
  }
23133
- function yg(E, A, J) {
23133
+ function bg(E, A, J) {
23134
23134
  (J = Ti(-1, J)).tag = 3;
23135
23135
  var it, ot = E.type.getDerivedStateFromError;
23136
23136
  return typeof ot == "function" && (it = A.value, J.payload = function() {
@@ -23142,7 +23142,7 @@ Error generating stack: ` + st.message + `
23142
23142
  }), J;
23143
23143
  }
23144
23144
  var Xb = typeof WeakSet == "function" ? WeakSet : Set;
23145
- function bg(E) {
23145
+ function vg(E) {
23146
23146
  var A = E.ref;
23147
23147
  if (A !== null)
23148
23148
  if (typeof A == "function")
@@ -23170,14 +23170,14 @@ Error generating stack: ` + st.message + `
23170
23170
  E = A = A.next;
23171
23171
  do {
23172
23172
  var it = E, ot = it.next;
23173
- 4 & (it = it.tag) && 1 & it && (Rg(J, E), it = J, st = E, cf.push(st, it), Ni || (Ni = !0, _l(97, function() {
23173
+ 4 & (it = it.tag) && 1 & it && (Mg(J, E), it = J, st = E, cf.push(st, it), Ni || (Ni = !0, _l(97, function() {
23174
23174
  return Mi(), null;
23175
23175
  }))), E = ot;
23176
23176
  } while (E !== A);
23177
23177
  }
23178
23178
  return;
23179
23179
  case 1:
23180
- return E = J.stateNode, 4 & J.flags && (A === null ? E.componentDidMount() : (ot = J.elementType === J.type ? A.memoizedProps : uo(J.type, A.memoizedProps), E.componentDidUpdate(ot, A.memoizedState, E.__reactInternalSnapshotBeforeUpdate))), void ((A = J.updateQueue) !== null && Bh(0, A, E));
23180
+ return E = J.stateNode, 4 & J.flags && (A === null ? E.componentDidMount() : (ot = J.elementType === J.type ? A.memoizedProps : uo(J.type, A.memoizedProps), E.componentDidUpdate(ot, A.memoizedState, E.__reactInternalSnapshotBeforeUpdate))), void ((A = J.updateQueue) !== null && Fh(0, A, E));
23181
23181
  case 3:
23182
23182
  if ((A = J.updateQueue) !== null) {
23183
23183
  if ((E = null) !== J.child)
@@ -23186,11 +23186,11 @@ Error generating stack: ` + st.message + `
23186
23186
  case 1:
23187
23187
  E = J.child.stateNode;
23188
23188
  }
23189
- Bh(0, A, E);
23189
+ Fh(0, A, E);
23190
23190
  }
23191
23191
  return;
23192
23192
  case 5:
23193
- return E = J.stateNode, void (A === null && 4 & J.flags && _h(J.type, J.memoizedProps) && E.focus());
23193
+ return E = J.stateNode, void (A === null && 4 & J.flags && xh(J.type, J.memoizedProps) && E.focus());
23194
23194
  case 6:
23195
23195
  case 4:
23196
23196
  case 12:
@@ -23207,7 +23207,7 @@ Error generating stack: ` + st.message + `
23207
23207
  var st;
23208
23208
  throw Error(i(163));
23209
23209
  }
23210
- function vg(E, A) {
23210
+ function _g(E, A) {
23211
23211
  for (var J = E; ; ) {
23212
23212
  if (J.tag === 5) {
23213
23213
  var it, ot = J.stateNode;
@@ -23228,7 +23228,7 @@ Error generating stack: ` + st.message + `
23228
23228
  J.sibling.return = J.return, J = J.sibling;
23229
23229
  }
23230
23230
  }
23231
- function _g(E, A) {
23231
+ function xg(E, A) {
23232
23232
  if (Sa && typeof Sa.onCommitFiberUnmount == "function")
23233
23233
  try {
23234
23234
  Sa.onCommitFiberUnmount(Od, A);
@@ -23246,7 +23246,7 @@ Error generating stack: ` + st.message + `
23246
23246
  var it = (ot = J).destroy, ot = ot.tag;
23247
23247
  if (it !== void 0)
23248
23248
  if (4 & ot)
23249
- Rg(A, J);
23249
+ Mg(A, J);
23250
23250
  else {
23251
23251
  ot = A;
23252
23252
  try {
@@ -23259,7 +23259,7 @@ Error generating stack: ` + st.message + `
23259
23259
  }
23260
23260
  break;
23261
23261
  case 1:
23262
- if (bg(A), typeof (E = A.stateNode).componentWillUnmount == "function")
23262
+ if (vg(A), typeof (E = A.stateNode).componentWillUnmount == "function")
23263
23263
  try {
23264
23264
  E.props = A.memoizedProps, E.state = A.memoizedState, E.componentWillUnmount();
23265
23265
  } catch (st) {
@@ -23267,22 +23267,22 @@ Error generating stack: ` + st.message + `
23267
23267
  }
23268
23268
  break;
23269
23269
  case 5:
23270
- bg(A);
23270
+ vg(A);
23271
23271
  break;
23272
23272
  case 4:
23273
- Eg(E, A);
23273
+ Cg(E, A);
23274
23274
  }
23275
23275
  }
23276
- function xg(E) {
23276
+ function wg(E) {
23277
23277
  E.alternate = null, E.child = null, E.dependencies = null, E.firstEffect = null, E.lastEffect = null, E.memoizedProps = null, E.memoizedState = null, E.pendingProps = null, E.return = null, E.updateQueue = null;
23278
23278
  }
23279
- function wg(E) {
23279
+ function Sg(E) {
23280
23280
  return E.tag === 5 || E.tag === 3 || E.tag === 4;
23281
23281
  }
23282
- function Sg(E) {
23282
+ function Eg(E) {
23283
23283
  t: {
23284
23284
  for (var A = E.return; A !== null; ) {
23285
- if (wg(A))
23285
+ if (Sg(A))
23286
23286
  break t;
23287
23287
  A = A.return;
23288
23288
  }
@@ -23305,7 +23305,7 @@ Error generating stack: ` + st.message + `
23305
23305
  e:
23306
23306
  for (J = E; ; ) {
23307
23307
  for (; J.sibling === null; ) {
23308
- if (J.return === null || wg(J.return)) {
23308
+ if (J.return === null || Sg(J.return)) {
23309
23309
  J = null;
23310
23310
  break t;
23311
23311
  }
@@ -23337,7 +23337,7 @@ Error generating stack: ` + st.message + `
23337
23337
  ot(st, ut, _t), st = st.sibling;
23338
23338
  })(E, J, A);
23339
23339
  }
23340
- function Eg(E, A) {
23340
+ function Cg(E, A) {
23341
23341
  for (var J, it, ot = A, st = !1; ; ) {
23342
23342
  if (!st) {
23343
23343
  st = ot.return;
@@ -23361,7 +23361,7 @@ Error generating stack: ` + st.message + `
23361
23361
  if (ot.tag === 5 || ot.tag === 6) {
23362
23362
  t:
23363
23363
  for (var ut = E, _t = ot, mt = _t; ; )
23364
- if (_g(ut, mt), mt.child !== null && mt.tag !== 4)
23364
+ if (xg(ut, mt), mt.child !== null && mt.tag !== 4)
23365
23365
  mt.child.return = mt, mt = mt.child;
23366
23366
  else {
23367
23367
  if (mt === _t)
@@ -23379,7 +23379,7 @@ Error generating stack: ` + st.message + `
23379
23379
  J = ot.stateNode.containerInfo, it = !0, ot = (ot.child.return = ot).child;
23380
23380
  continue;
23381
23381
  }
23382
- } else if (_g(E, ot), ot.child !== null) {
23382
+ } else if (xg(E, ot), ot.child !== null) {
23383
23383
  ot = (ot.child.return = ot).child;
23384
23384
  continue;
23385
23385
  }
@@ -23438,16 +23438,16 @@ Error generating stack: ` + st.message + `
23438
23438
  case 3:
23439
23439
  return void ((J = A.stateNode).hydrate && (J.hydrate = !1, An(J.containerInfo)));
23440
23440
  case 13:
23441
- return A.memoizedState !== null && (af = _r(), vg(A.child, !0)), void Cg(A);
23441
+ return A.memoizedState !== null && (af = _r(), _g(A.child, !0)), void kg(A);
23442
23442
  case 19:
23443
- return void Cg(A);
23443
+ return void kg(A);
23444
23444
  case 23:
23445
23445
  case 24:
23446
- return void vg(A, A.memoizedState !== null);
23446
+ return void _g(A, A.memoizedState !== null);
23447
23447
  }
23448
23448
  throw Error(i(163));
23449
23449
  }
23450
- function Cg(E) {
23450
+ function kg(E) {
23451
23451
  var A, J = E.updateQueue;
23452
23452
  J !== null && ((E.updateQueue = null) === (A = E.stateNode) && (A = E.stateNode = new Xb()), J.forEach(function(it) {
23453
23453
  var ot = (function(st, ut) {
@@ -23457,11 +23457,11 @@ Error generating stack: ` + st.message + `
23457
23457
  A.has(it) || (A.add(it), it.then(ot, ot));
23458
23458
  }));
23459
23459
  }
23460
- var tv = Math.ceil, Kc = C.ReactCurrentDispatcher, ef = C.ReactCurrentOwner, dn = 0, Tr = null, ar = null, xr = 0, Ta = 0, nf = Ci(0), gr = 0, Gc = null, fs = 0, Il = 0, ps = 0, rf = 0, of = null, af = 0, sf = 1 / 0;
23460
+ var tv = Math.ceil, Kc = C.ReactCurrentDispatcher, ef = C.ReactCurrentOwner, dn = 0, Tr = null, ir = null, xr = 0, Ta = 0, nf = Ci(0), gr = 0, Gc = null, fs = 0, Il = 0, ps = 0, rf = 0, of = null, af = 0, sf = 1 / 0;
23461
23461
  function hs() {
23462
23462
  sf = _r() + 500;
23463
23463
  }
23464
- var kg, Ge = null, Yc = !1, lf = null, Io = null, Ni = !1, Rl = null, Ml = 90, cf = [], uf = [], Xo = null, Dl = 0, df = null, Zc = -1, Pi = 0, Xc = 0, Ll = null, Qc = !1;
23464
+ var Og, Ge = null, Yc = !1, lf = null, Io = null, Ni = !1, Rl = null, Ml = 90, cf = [], uf = [], Xo = null, Dl = 0, df = null, Zc = -1, Pi = 0, Xc = 0, Ll = null, Qc = !1;
23465
23465
  function Jr() {
23466
23466
  return 48 & dn ? _r() : Zc !== -1 ? Zc : Zc = _r();
23467
23467
  }
@@ -23509,7 +23509,7 @@ Error generating stack: ` + st.message + `
23509
23509
  return;
23510
23510
  J !== Nd && Ad(J);
23511
23511
  }
23512
- J = A === 15 ? (J = ff.bind(null, E), Go === null ? (Go = [J], Pc = Td(Nc, Rh)) : Go.push(J), Nd) : A === 14 ? _l(99, ff.bind(null, E)) : _l(J = function(ue) {
23512
+ J = A === 15 ? (J = ff.bind(null, E), Go === null ? (Go = [J], Pc = Td(Nc, Mh)) : Go.push(J), Nd) : A === 14 ? _l(99, ff.bind(null, E)) : _l(J = function(ue) {
23513
23513
  switch (ue) {
23514
23514
  case 15:
23515
23515
  case 14:
@@ -23535,10 +23535,10 @@ Error generating stack: ` + st.message + `
23535
23535
  default:
23536
23536
  throw Error(i(358, ue));
23537
23537
  }
23538
- }(A), Og.bind(null, E)), E.callbackPriority = A, E.callbackNode = J;
23538
+ }(A), Tg.bind(null, E)), E.callbackPriority = A, E.callbackNode = J;
23539
23539
  }
23540
23540
  }
23541
- function Og(E) {
23541
+ function Tg(E) {
23542
23542
  if (Zc = -1, (Xc = Pi = 0) != (48 & dn))
23543
23543
  throw Error(i(327));
23544
23544
  var A = E.callbackNode;
@@ -23547,16 +23547,16 @@ Error generating stack: ` + st.message + `
23547
23547
  var J = xo(E, E === Tr ? xr : 0);
23548
23548
  if (J === 0)
23549
23549
  return null;
23550
- var it = J, ot = dn, st = (dn |= 16, Ng());
23550
+ var it = J, ot = dn, st = (dn |= 16, Pg());
23551
23551
  for (Tr === E && xr === it || (hs(), ms(E, it)); ; )
23552
23552
  try {
23553
- for (; ar !== null && !zb(); )
23554
- Pg(ar);
23553
+ for (; ir !== null && !zb(); )
23554
+ Ig(ir);
23555
23555
  break;
23556
23556
  } catch (_t) {
23557
- jg(E, _t);
23557
+ Ng(E, _t);
23558
23558
  }
23559
- if (Id(), Kc.current = st, dn = ot, it = ar !== null ? 0 : (Tr = null, xr = 0, gr), fs & ps)
23559
+ if (Id(), Kc.current = st, dn = ot, it = ir !== null ? 0 : (Tr = null, xr = 0, gr), fs & ps)
23560
23560
  ms(E, 0);
23561
23561
  else if (it !== 0) {
23562
23562
  if (it === 2 && (dn |= 64, E.hydrate && (E.hydrate = !1, Sd(E.containerInfo)), (J = Cr(E)) !== 0 && (it = Bl(E, J))), it === 1)
@@ -23577,7 +23577,7 @@ Error generating stack: ` + st.message + `
23577
23577
  Jr(), E.pingedLanes |= E.suspendedLanes & ot;
23578
23578
  break;
23579
23579
  }
23580
- E.timeoutHandle = xh(ys.bind(null, E), it);
23580
+ E.timeoutHandle = wh(ys.bind(null, E), it);
23581
23581
  break;
23582
23582
  }
23583
23583
  ys(E);
@@ -23590,7 +23590,7 @@ Error generating stack: ` + st.message + `
23590
23590
  st = 1 << ut, ot < (ut = it[ut]) && (ot = ut), J &= ~st;
23591
23591
  }
23592
23592
  if (J = ot, 10 < (J = ((J = _r() - J) < 120 ? 120 : J < 480 ? 480 : J < 1080 ? 1080 : J < 1920 ? 1920 : J < 3e3 ? 3e3 : J < 4320 ? 4320 : 1960 * tv(J / 1960)) - J)) {
23593
- E.timeoutHandle = xh(ys.bind(null, E), J);
23593
+ E.timeoutHandle = wh(ys.bind(null, E), J);
23594
23594
  break;
23595
23595
  }
23596
23596
  ys(E);
@@ -23599,7 +23599,7 @@ Error generating stack: ` + st.message + `
23599
23599
  throw Error(i(329));
23600
23600
  }
23601
23601
  }
23602
- return Qr(E, _r()), E.callbackNode === A ? Og.bind(null, E) : null;
23602
+ return Qr(E, _r()), E.callbackNode === A ? Tg.bind(null, E) : null;
23603
23603
  }
23604
23604
  function gs(E, A) {
23605
23605
  for (A = A & ~rf & ~ps, E.suspendedLanes |= A, E.pingedLanes &= ~A, E = E.expirationTimes; 0 < A; ) {
@@ -23615,7 +23615,7 @@ Error generating stack: ` + st.message + `
23615
23615
  throw J = Gc, ms(E, 0), gs(E, A), Qr(E, _r()), J;
23616
23616
  return E.finishedWork = E.current.alternate, E.finishedLanes = A, ys(E), Qr(E, _r()), null;
23617
23617
  }
23618
- function Tg(E, A) {
23618
+ function Ag(E, A) {
23619
23619
  var J = dn;
23620
23620
  dn |= 1;
23621
23621
  try {
@@ -23624,7 +23624,7 @@ Error generating stack: ` + st.message + `
23624
23624
  (dn = J) === 0 && (hs(), Ao());
23625
23625
  }
23626
23626
  }
23627
- function Ag(E, A) {
23627
+ function jg(E, A) {
23628
23628
  var J = dn;
23629
23629
  dn = -2 & dn | 8;
23630
23630
  try {
@@ -23642,8 +23642,8 @@ Error generating stack: ` + st.message + `
23642
23642
  function ms(E, A) {
23643
23643
  E.finishedWork = null, E.finishedLanes = 0;
23644
23644
  var J = E.timeoutHandle;
23645
- if (J !== -1 && (E.timeoutHandle = -1, Bb(J)), ar !== null)
23646
- for (J = ar.return; J !== null; ) {
23645
+ if (J !== -1 && (E.timeoutHandle = -1, Bb(J)), ir !== null)
23646
+ for (J = ir.return; J !== null; ) {
23647
23647
  var it = J;
23648
23648
  switch (it.tag) {
23649
23649
  case 1:
@@ -23671,11 +23671,11 @@ Error generating stack: ` + st.message + `
23671
23671
  }
23672
23672
  J = J.return;
23673
23673
  }
23674
- ar = Li((Tr = E).current, null), xr = Ta = fs = A, Gc = null, rf = ps = Il = gr = 0;
23674
+ ir = Li((Tr = E).current, null), xr = Ta = fs = A, Gc = null, rf = ps = Il = gr = 0;
23675
23675
  }
23676
- function jg(E, A) {
23676
+ function Ng(E, A) {
23677
23677
  for (; ; ) {
23678
- var J = ar;
23678
+ var J = ir;
23679
23679
  try {
23680
23680
  if (Id(), kl.current = Vc, Hc) {
23681
23681
  for (var it = Gn.memoizedState; it !== null; ) {
@@ -23685,7 +23685,7 @@ Error generating stack: ` + st.message + `
23685
23685
  Hc = !1;
23686
23686
  }
23687
23687
  if (Ol = 0, hr = Or = Gn = null, Tl = !1, (ef.current = null) === J || J.return === null) {
23688
- gr = 1, Gc = A, ar = null;
23688
+ gr = 1, Gc = A, ir = null;
23689
23689
  break;
23690
23690
  }
23691
23691
  t: {
@@ -23713,49 +23713,49 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
23713
23713
  do
23714
23714
  switch (Kt.tag) {
23715
23715
  case 3:
23716
- st = _t, Kt.flags |= 4096, A &= -A, Kt.lanes |= A, Lh(Kt, mg(0, st, A));
23716
+ st = _t, Kt.flags |= 4096, A &= -A, Kt.lanes |= A, Bh(Kt, yg(0, st, A));
23717
23717
  break t;
23718
23718
  case 1:
23719
23719
  st = _t;
23720
23720
  var Xe = Kt.type, Ze = Kt.stateNode;
23721
23721
  if (!(64 & Kt.flags || typeof Xe.getDerivedStateFromError != "function" && (Ze === null || typeof Ze.componentDidCatch != "function" || Io !== null && Io.has(Ze)))) {
23722
- Kt.flags |= 4096, A &= -A, Kt.lanes |= A, Lh(Kt, yg(Kt, st, A));
23722
+ Kt.flags |= 4096, A &= -A, Kt.lanes |= A, Bh(Kt, bg(Kt, st, A));
23723
23723
  break t;
23724
23724
  }
23725
23725
  }
23726
23726
  while ((Kt = Kt.return) !== null);
23727
23727
  }
23728
- Ig(J);
23728
+ Rg(J);
23729
23729
  } catch (_n) {
23730
- A = _n, ar === J && J !== null && (ar = J = J.return);
23730
+ A = _n, ir === J && J !== null && (ir = J = J.return);
23731
23731
  continue;
23732
23732
  }
23733
23733
  break;
23734
23734
  }
23735
23735
  }
23736
- function Ng() {
23736
+ function Pg() {
23737
23737
  var E = Kc.current;
23738
23738
  return Kc.current = Vc, E === null ? Vc : E;
23739
23739
  }
23740
23740
  function Bl(E, A) {
23741
- var J = dn, it = (dn |= 16, Ng());
23741
+ var J = dn, it = (dn |= 16, Pg());
23742
23742
  for (Tr === E && xr === A || ms(E, A); ; )
23743
23743
  try {
23744
- for (; ar !== null; )
23745
- Pg(ar);
23744
+ for (; ir !== null; )
23745
+ Ig(ir);
23746
23746
  break;
23747
23747
  } catch (ot) {
23748
- jg(E, ot);
23748
+ Ng(E, ot);
23749
23749
  }
23750
- if (Id(), dn = J, Kc.current = it, ar !== null)
23750
+ if (Id(), dn = J, Kc.current = it, ir !== null)
23751
23751
  throw Error(i(261));
23752
23752
  return Tr = null, xr = 0, gr;
23753
23753
  }
23754
- function Pg(E) {
23755
- var A = kg(E.alternate, E, Ta);
23756
- E.memoizedProps = E.pendingProps, A === null ? Ig(E) : ar = A, ef.current = null;
23757
- }
23758
23754
  function Ig(E) {
23755
+ var A = Og(E.alternate, E, Ta);
23756
+ E.memoizedProps = E.pendingProps, A === null ? Rg(E) : ir = A, ef.current = null;
23757
+ }
23758
+ function Rg(E) {
23759
23759
  var A = E;
23760
23760
  do {
23761
23761
  var J = A.alternate;
@@ -23787,7 +23787,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
23787
23787
  return null;
23788
23788
  }
23789
23789
  }(A)) !== null)
23790
- return J.flags &= 2047, void (ar = J);
23790
+ return J.flags &= 2047, void (ir = J);
23791
23791
  E !== null && (E.firstEffect = E.lastEffect = null, E.flags |= 2048);
23792
23792
  } else {
23793
23793
  if ((J = function(st, ut, _t) {
@@ -23935,7 +23935,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
23935
23935
  default:
23936
23936
  typeof Ht.onClick == "function" && (st.onclick = Oc);
23937
23937
  }
23938
- _h(_t, mt) && (ut.flags |= 4);
23938
+ xh(_t, mt) && (ut.flags |= 4);
23939
23939
  }
23940
23940
  ut.ref !== null && (ut.flags |= 128);
23941
23941
  }
@@ -23952,7 +23952,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
23952
23952
  case 13:
23953
23953
  return Dn(Kn), mt = ut.memoizedState, 64 & ut.flags ? (ut.lanes = _t, ut) : (mt = mt !== null, _t = !1, st === null ? ut.memoizedProps.fallback !== void 0 && $c(ut) : _t = st.memoizedState !== null, mt && !_t && 2 & ut.mode && (st === null && ut.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & Kn.current ? gr === 0 && (gr = 3) : (gr !== 0 && gr !== 3 || (gr = 4), Tr === null || !(134217727 & Il) && !(134217727 & ps) || gs(Tr, xr))), (mt || _t) && (ut.flags |= 4), null);
23954
23954
  case 4:
23955
- return us(), st === null && gh(ut.stateNode.containerInfo), null;
23955
+ return us(), st === null && mh(ut.stateNode.containerInfo), null;
23956
23956
  case 10:
23957
23957
  return Rd(ut), null;
23958
23958
  case 19:
@@ -23989,7 +23989,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
23989
23989
  }
23990
23990
  throw Error(i(156, ut.tag));
23991
23991
  }(J, A, Ta)) !== null)
23992
- return void (ar = J);
23992
+ return void (ir = J);
23993
23993
  if ((J = A).tag !== 24 && J.tag !== 23 || J.memoizedState === null || 1073741824 & Ta || !(4 & J.mode)) {
23994
23994
  for (var it = 0, ot = J.child; ot !== null; )
23995
23995
  it |= ot.lanes | ot.childLanes, ot = ot.sibling;
@@ -23998,8 +23998,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
23998
23998
  E !== null && !(2048 & E.flags) && (E.firstEffect === null && (E.firstEffect = A.firstEffect), A.lastEffect !== null && (E.lastEffect !== null && (E.lastEffect.nextEffect = A.firstEffect), E.lastEffect = A.lastEffect), 1 < A.flags && (E.lastEffect !== null ? E.lastEffect.nextEffect = A : E.firstEffect = A, E.lastEffect = A));
23999
23999
  }
24000
24000
  if ((A = A.sibling) !== null)
24001
- return void (ar = A);
24002
- } while (ar = A = E, A !== null);
24001
+ return void (ir = A);
24002
+ } while (ir = A = E, A !== null);
24003
24003
  gr === 0 && (gr = 5);
24004
24004
  }
24005
24005
  function ys(E) {
@@ -24021,8 +24021,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24021
24021
  var ue = 31 - so(_t), Me = 1 << ue;
24022
24022
  ut[ue] = 0, Ht[ue] = -1, ie[ue] = -1, _t &= ~Me;
24023
24023
  }
24024
- if (Xo !== null && !(24 & st) && Xo.has(J) && Xo.delete(J), J === Tr && (ar = Tr = null, xr = 0), (st = 1 < ot.flags ? ot.lastEffect !== null ? (ot.lastEffect.nextEffect = ot, ot.firstEffect) : ot : ot.firstEffect) !== null) {
24025
- if (ut = dn, dn |= 32, ef.current = null, _d = Hr, md(Ht = lh())) {
24024
+ if (Xo !== null && !(24 & st) && Xo.has(J) && Xo.delete(J), J === Tr && (ir = Tr = null, xr = 0), (st = 1 < ot.flags ? ot.lastEffect !== null ? (ot.lastEffect.nextEffect = ot, ot.firstEffect) : ot : ot.firstEffect) !== null) {
24025
+ if (ut = dn, dn |= 32, ef.current = null, _d = Hr, md(Ht = ch())) {
24026
24026
  if ("selectionStart" in Ht)
24027
24027
  ie = { start: Ht.selectionStart, end: Ht.selectionEnd };
24028
24028
  else
@@ -24099,10 +24099,10 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24099
24099
  var sn, Xe, Ze = Ge.flags;
24100
24100
  switch (16 & Ze && dt(Ge.stateNode, ""), 128 & Ze && (sn = Ge.alternate) !== null && (Xe = sn.ref) !== null && (typeof Xe == "function" ? Xe(null) : Xe.current = null), 1038 & Ze) {
24101
24101
  case 2:
24102
- Sg(Ge), Ge.flags &= -3;
24102
+ Eg(Ge), Ge.flags &= -3;
24103
24103
  break;
24104
24104
  case 6:
24105
- Sg(Ge), Ge.flags &= -3, tf(Ge.alternate, Ge);
24105
+ Eg(Ge), Ge.flags &= -3, tf(Ge.alternate, Ge);
24106
24106
  break;
24107
24107
  case 1024:
24108
24108
  Ge.flags &= -1025;
@@ -24114,9 +24114,9 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24114
24114
  tf(Ge.alternate, Ge);
24115
24115
  break;
24116
24116
  case 8:
24117
- Eg(Ht, ie = Ge);
24117
+ Cg(Ht, ie = Ge);
24118
24118
  var _n = ie.alternate;
24119
- xg(ie), _n !== null && xg(_n);
24119
+ wg(ie), _n !== null && wg(_n);
24120
24120
  }
24121
24121
  Ge = Ge.nextEffect;
24122
24122
  }
@@ -24126,10 +24126,10 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24126
24126
  Di(Ge, mn), Ge = Ge.nextEffect;
24127
24127
  }
24128
24128
  while (Ge !== null);
24129
- if (Xe = xd, sn = lh(), Ze = Xe.focusedElem, Ht = Xe.selectionRange, sn !== Ze && Ze && Ze.ownerDocument && function mn(un, In) {
24129
+ if (Xe = xd, sn = ch(), Ze = Xe.focusedElem, Ht = Xe.selectionRange, sn !== Ze && Ze && Ze.ownerDocument && function mn(un, In) {
24130
24130
  return !(!un || !In) && (un === In || (!un || un.nodeType !== 3) && (In && In.nodeType === 3 ? mn(un, In.parentNode) : "contains" in un ? un.contains(In) : !!un.compareDocumentPosition && !!(16 & un.compareDocumentPosition(In))));
24131
24131
  }(Ze.ownerDocument.documentElement, Ze)) {
24132
- for (Ht !== null && md(Ze) && (sn = Ht.start, (Xe = Ht.end) === void 0 && (Xe = sn), "selectionStart" in Ze ? (Ze.selectionStart = sn, Ze.selectionEnd = Math.min(Xe, Ze.value.length)) : (Xe = (sn = Ze.ownerDocument || document) && sn.defaultView || window).getSelection && (Xe = Xe.getSelection(), ie = Ze.textContent.length, _n = Math.min(Ht.start, ie), Ht = Ht.end === void 0 ? _n : Math.min(Ht.end, ie), !Xe.extend && Ht < _n && (ie = Ht, Ht = _n, _n = ie), ie = sh(Ze, _n), _t = sh(Ze, Ht), ie && _t && (Xe.rangeCount !== 1 || Xe.anchorNode !== ie.node || Xe.anchorOffset !== ie.offset || Xe.focusNode !== _t.node || Xe.focusOffset !== _t.offset) && ((sn = sn.createRange()).setStart(ie.node, ie.offset), Xe.removeAllRanges(), Ht < _n ? (Xe.addRange(sn), Xe.extend(_t.node, _t.offset)) : (sn.setEnd(_t.node, _t.offset), Xe.addRange(sn))))), sn = [], Xe = Ze; Xe = Xe.parentNode; )
24132
+ for (Ht !== null && md(Ze) && (sn = Ht.start, (Xe = Ht.end) === void 0 && (Xe = sn), "selectionStart" in Ze ? (Ze.selectionStart = sn, Ze.selectionEnd = Math.min(Xe, Ze.value.length)) : (Xe = (sn = Ze.ownerDocument || document) && sn.defaultView || window).getSelection && (Xe = Xe.getSelection(), ie = Ze.textContent.length, _n = Math.min(Ht.start, ie), Ht = Ht.end === void 0 ? _n : Math.min(Ht.end, ie), !Xe.extend && Ht < _n && (ie = Ht, Ht = _n, _n = ie), ie = lh(Ze, _n), _t = lh(Ze, Ht), ie && _t && (Xe.rangeCount !== 1 || Xe.anchorNode !== ie.node || Xe.anchorOffset !== ie.offset || Xe.focusNode !== _t.node || Xe.focusOffset !== _t.offset) && ((sn = sn.createRange()).setStart(ie.node, ie.offset), Xe.removeAllRanges(), Ht < _n ? (Xe.addRange(sn), Xe.extend(_t.node, _t.offset)) : (sn.setEnd(_t.node, _t.offset), Xe.addRange(sn))))), sn = [], Xe = Ze; Xe = Xe.parentNode; )
24133
24133
  Xe.nodeType === 1 && sn.push({ element: Xe, left: Xe.scrollLeft, top: Xe.scrollTop });
24134
24134
  for (typeof Ze.focus == "function" && Ze.focus(), Ze = 0; Ze < sn.length; Ze++)
24135
24135
  (Xe = sn[Ze]).element.scrollLeft = Xe.left, Xe.element.scrollTop = Xe.top;
@@ -24169,7 +24169,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24169
24169
  var E;
24170
24170
  return Ml !== 90 && (E = 97 < Ml ? 97 : Ml, Ml = 90, Ea(E, ev));
24171
24171
  }
24172
- function Rg(E, A) {
24172
+ function Mg(E, A) {
24173
24173
  uf.push(A, E), Ni || (Ni = !0, _l(97, function() {
24174
24174
  return Mi(), null;
24175
24175
  }));
@@ -24208,22 +24208,22 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24208
24208
  E = _t.nextEffect, _t.nextEffect = null, 8 & _t.flags && (_t.sibling = null, _t.stateNode = null), _t = E;
24209
24209
  return dn = A, Ao(), !0;
24210
24210
  }
24211
- function Mg(E, A, J) {
24212
- Ai(E, A = mg(0, A = Xd(J, A), 1)), A = Jr(), (E = tu(E, 1)) !== null && (sa(E, 1, A), Qr(E, A));
24211
+ function Dg(E, A, J) {
24212
+ Ai(E, A = yg(0, A = Xd(J, A), 1)), A = Jr(), (E = tu(E, 1)) !== null && (sa(E, 1, A), Qr(E, A));
24213
24213
  }
24214
24214
  function Di(E, A) {
24215
24215
  if (E.tag === 3)
24216
- Mg(E, E, A);
24216
+ Dg(E, E, A);
24217
24217
  else
24218
24218
  for (var J = E.return; J !== null; ) {
24219
24219
  if (J.tag === 3) {
24220
- Mg(J, E, A);
24220
+ Dg(J, E, A);
24221
24221
  break;
24222
24222
  }
24223
24223
  if (J.tag === 1) {
24224
24224
  var it, ot = J.stateNode;
24225
24225
  if (typeof J.type.getDerivedStateFromError == "function" || typeof ot.componentDidCatch == "function" && (Io === null || !Io.has(ot))) {
24226
- if (Ai(J, yg(J, E = Xd(A, E), 1)), it = Jr(), (J = tu(J, 1)) !== null)
24226
+ if (Ai(J, bg(J, E = Xd(A, E), 1)), it = Jr(), (J = tu(J, 1)) !== null)
24227
24227
  sa(J, 1, it), Qr(J, it);
24228
24228
  else if (typeof ot.componentDidCatch == "function" && (Io === null || !Io.has(ot)))
24229
24229
  try {
@@ -24346,7 +24346,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24346
24346
  if (J.tag === 1) {
24347
24347
  var mt = J.type;
24348
24348
  if (qr(mt)) {
24349
- J = kh(J, mt, _t);
24349
+ J = Oh(J, mt, _t);
24350
24350
  break t;
24351
24351
  }
24352
24352
  }
@@ -24358,16 +24358,16 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24358
24358
  function bf(E) {
24359
24359
  return (E = E.current).child ? (E.child.tag, E.child.stateNode) : null;
24360
24360
  }
24361
- function Dg(E, A) {
24361
+ function Lg(E, A) {
24362
24362
  var J;
24363
24363
  (E = E.memoizedState) !== null && E.dehydrated !== null && (J = E.retryLane, E.retryLane = J !== 0 && J < A ? J : A);
24364
24364
  }
24365
24365
  function vf(E, A) {
24366
- Dg(E, A), (E = E.alternate) && Dg(E, A);
24366
+ Lg(E, A), (E = E.alternate) && Lg(E, A);
24367
24367
  }
24368
24368
  function _f(E, A, J) {
24369
24369
  var it = J != null && J.hydrationOptions != null && J.hydrationOptions.mutableSources || null;
24370
- if (J = new ov(E, A, J != null && J.hydrate === !0), A = to(3, null, null, A === 2 ? 7 : A === 1 ? 3 : 0), (J.current = A).stateNode = J, Md(A), E[os] = J.current, gh(E.nodeType === 8 ? E.parentNode : E), it)
24370
+ if (J = new ov(E, A, J != null && J.hydrate === !0), A = to(3, null, null, A === 2 ? 7 : A === 1 ? 3 : 0), (J.current = A).stateNode = J, Md(A), E[os] = J.current, mh(E.nodeType === 8 ? E.parentNode : E), it)
24371
24371
  for (E = 0; E < it.length; E++) {
24372
24372
  var ot = (ot = (A = it[E])._getVersion)(A._source);
24373
24373
  J.mutableSourceEagerHydrationData == null ? J.mutableSourceEagerHydrationData = [A, ot] : J.mutableSourceEagerHydrationData.push(A, ot);
@@ -24390,18 +24390,18 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24390
24390
  }(J, it))._internalRoot, typeof ot == "function" && (ut = ot, ot = function() {
24391
24391
  var Ht = bf(_t);
24392
24392
  ut.call(Ht);
24393
- }), Ag(function() {
24393
+ }), jg(function() {
24394
24394
  ru(A, _t, E, ot);
24395
24395
  })), bf(_t);
24396
24396
  }
24397
- function Lg(E, A) {
24397
+ function Bg(E, A) {
24398
24398
  if (Fl(A))
24399
24399
  return function(J, it, ot, st) {
24400
24400
  return { $$typeof: D, key: (st = 3 < arguments.length && st !== void 0 ? st : null) == null ? null : "" + st, children: J, containerInfo: it, implementation: ot };
24401
24401
  }(E, A, null, 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null);
24402
24402
  throw Error(i(200));
24403
24403
  }
24404
- kg = function(E, A, J) {
24404
+ Og = function(E, A, J) {
24405
24405
  var it = A.lanes;
24406
24406
  if (E !== null)
24407
24407
  if (E.memoizedProps !== A.pendingProps || Dr.current)
@@ -24410,10 +24410,10 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24410
24410
  if (!(J & it)) {
24411
24411
  switch (fo = !1, A.tag) {
24412
24412
  case 3:
24413
- dg(A), zd();
24413
+ fg(A), zd();
24414
24414
  break;
24415
24415
  case 5:
24416
- Wh(A);
24416
+ Jh(A);
24417
24417
  break;
24418
24418
  case 1:
24419
24419
  qr(A.type) && jc(A);
@@ -24428,13 +24428,13 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24428
24428
  break;
24429
24429
  case 13:
24430
24430
  if (A.memoizedState !== null)
24431
- return J & A.child.childLanes ? fg(E, A, J) : (Hn(Kn, 1 & Kn.current), (A = Zo(E, A, J)) !== null ? A.sibling : null);
24431
+ return J & A.child.childLanes ? pg(E, A, J) : (Hn(Kn, 1 & Kn.current), (A = Zo(E, A, J)) !== null ? A.sibling : null);
24432
24432
  Hn(Kn, 1 & Kn.current);
24433
24433
  break;
24434
24434
  case 19:
24435
24435
  if (it = !!(J & A.childLanes), 64 & E.flags) {
24436
24436
  if (it)
24437
- return gg(E, A, J);
24437
+ return mg(E, A, J);
24438
24438
  A.flags |= 64;
24439
24439
  }
24440
24440
  if ((ot = A.memoizedState) !== null && (ot.rendering = null, ot.tail = null, ot.lastEffect = null), Hn(Kn, Kn.current), it)
@@ -24442,7 +24442,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24442
24442
  return null;
24443
24443
  case 23:
24444
24444
  case 24:
24445
- return A.lanes = 0, lg(E, A, J);
24445
+ return A.lanes = 0, cg(E, A, J);
24446
24446
  }
24447
24447
  return Zo(E, A, J);
24448
24448
  }
@@ -24471,13 +24471,13 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24471
24471
  A = Kd(null, A, ot, E, J);
24472
24472
  break t;
24473
24473
  case 1:
24474
- A = ug(null, A, ot, E, J);
24474
+ A = dg(null, A, ot, E, J);
24475
24475
  break t;
24476
24476
  case 11:
24477
- A = ig(null, A, ot, E, J);
24477
+ A = ag(null, A, ot, E, J);
24478
24478
  break t;
24479
24479
  case 14:
24480
- A = ag(null, A, ot, uo(ot.type, E), it, J);
24480
+ A = sg(null, A, ot, uo(ot.type, E), it, J);
24481
24481
  break t;
24482
24482
  }
24483
24483
  throw Error(i(306, ot, ""));
@@ -24486,18 +24486,18 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24486
24486
  case 0:
24487
24487
  return it = A.type, ot = A.pendingProps, Kd(E, A, it, ot = A.elementType === it ? ot : uo(it, ot), J);
24488
24488
  case 1:
24489
- return it = A.type, ot = A.pendingProps, ug(E, A, it, ot = A.elementType === it ? ot : uo(it, ot), J);
24489
+ return it = A.type, ot = A.pendingProps, dg(E, A, it, ot = A.elementType === it ? ot : uo(it, ot), J);
24490
24490
  case 3:
24491
- if (dg(A), it = A.updateQueue, E === null || it === null)
24491
+ if (fg(A), it = A.updateQueue, E === null || it === null)
24492
24492
  throw Error(i(282));
24493
- if (it = A.pendingProps, ot = (ot = A.memoizedState) !== null ? ot.element : null, Dh(E, A), xl(A, it, null, J), (it = A.memoizedState.element) === ot)
24493
+ if (it = A.pendingProps, ot = (ot = A.memoizedState) !== null ? ot.element : null, Lh(E, A), xl(A, it, null, J), (it = A.memoizedState.element) === ot)
24494
24494
  zd(), A = Zo(E, A, J);
24495
24495
  else {
24496
24496
  if ((st = (ot = A.stateNode).hydrate) && (ji = rs(A.stateNode.containerInfo.firstChild), Yo = A, st = No = !0), st) {
24497
24497
  if ((E = ot.mutableSourceEagerHydrationData) != null)
24498
24498
  for (ot = 0; ot < E.length; ot += 2)
24499
24499
  (st = E[ot])._workInProgressVersionPrimary = E[ot + 1], ds.push(st);
24500
- for (J = qh(A, null, it, J), A.child = J; J; )
24500
+ for (J = Wh(A, null, it, J), A.child = J; J; )
24501
24501
  J.flags = -3 & J.flags | 1024, J = J.sibling;
24502
24502
  } else
24503
24503
  Wr(E, A, it, J), zd();
@@ -24505,15 +24505,15 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24505
24505
  }
24506
24506
  return A;
24507
24507
  case 5:
24508
- return Wh(A), E === null && Fd(A), it = A.type, ot = A.pendingProps, st = E !== null ? E.memoizedProps : null, mt = ot.children, wd(it, ot) ? mt = null : st !== null && wd(it, st) && (A.flags |= 16), cg(E, A), Wr(E, A, mt, J), A.child;
24508
+ return Jh(A), E === null && Fd(A), it = A.type, ot = A.pendingProps, st = E !== null ? E.memoizedProps : null, mt = ot.children, wd(it, ot) ? mt = null : st !== null && wd(it, st) && (A.flags |= 16), ug(E, A), Wr(E, A, mt, J), A.child;
24509
24509
  case 6:
24510
24510
  return E === null && Fd(A), null;
24511
24511
  case 13:
24512
- return fg(E, A, J);
24512
+ return pg(E, A, J);
24513
24513
  case 4:
24514
24514
  return Ld(A, A.stateNode.containerInfo), it = A.pendingProps, E === null ? A.child = zc(A, null, it, J) : Wr(E, A, it, J), A.child;
24515
24515
  case 11:
24516
- return it = A.type, ot = A.pendingProps, ig(E, A, it, ot = A.elementType === it ? ot : uo(it, ot), J);
24516
+ return it = A.type, ot = A.pendingProps, ag(E, A, it, ot = A.elementType === it ? ot : uo(it, ot), J);
24517
24517
  case 7:
24518
24518
  return Wr(E, A, A.pendingProps, J), A.child;
24519
24519
  case 8:
@@ -24535,7 +24535,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24535
24535
  if (_t !== null)
24536
24536
  for (var mt = ut.child, Ht = _t.firstContext; Ht !== null; ) {
24537
24537
  if (Ht.context === it && Ht.observedBits & st) {
24538
- ut.tag === 1 && ((Ht = Ti(-1, J & -J)).tag = 2, Ai(ut, Ht)), ut.lanes |= J, (Ht = ut.alternate) !== null && (Ht.lanes |= J), Mh(ut.return, J), _t.lanes |= J;
24538
+ ut.tag === 1 && ((Ht = Ti(-1, J & -J)).tag = 2, Ai(ut, Ht)), ut.lanes |= J, (Ht = ut.alternate) !== null && (Ht.lanes |= J), Dh(ut.return, J), _t.lanes |= J;
24539
24539
  break;
24540
24540
  }
24541
24541
  Ht = Ht.next;
@@ -24564,16 +24564,16 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24564
24564
  case 9:
24565
24565
  return ot = A.type, it = (st = A.pendingProps).children, cs(A, J), it = it(ot = Zr(ot, st.unstable_observedBits)), A.flags |= 1, Wr(E, A, it, J), A.child;
24566
24566
  case 14:
24567
- return st = uo(ot = A.type, A.pendingProps), ag(E, A, ot, st = uo(ot.type, st), it, J);
24567
+ return st = uo(ot = A.type, A.pendingProps), sg(E, A, ot, st = uo(ot.type, st), it, J);
24568
24568
  case 15:
24569
- return sg(E, A, A.type, A.pendingProps, it, J);
24569
+ return lg(E, A, A.type, A.pendingProps, it, J);
24570
24570
  case 17:
24571
- return it = A.type, ot = A.pendingProps, ot = A.elementType === it ? ot : uo(it, ot), E !== null && (E.alternate = null, A.alternate = null, A.flags |= 2), A.tag = 1, qr(it) ? (E = !0, jc(A)) : E = !1, cs(A, J), Uh(A, it, ot), Dd(A, it, ot, J), Gd(null, A, it, !0, E, J);
24571
+ return it = A.type, ot = A.pendingProps, ot = A.elementType === it ? ot : uo(it, ot), E !== null && (E.alternate = null, A.alternate = null, A.flags |= 2), A.tag = 1, qr(it) ? (E = !0, jc(A)) : E = !1, cs(A, J), $h(A, it, ot), Dd(A, it, ot, J), Gd(null, A, it, !0, E, J);
24572
24572
  case 19:
24573
- return gg(E, A, J);
24573
+ return mg(E, A, J);
24574
24574
  case 23:
24575
24575
  case 24:
24576
- return lg(E, A, J);
24576
+ return cg(E, A, J);
24577
24577
  }
24578
24578
  throw Error(i(156, A.tag));
24579
24579
  }, _f.prototype.render = function(E) {
@@ -24613,7 +24613,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24613
24613
  case "select":
24614
24614
  (A = J.value) != null && Lt(E, !!J.multiple, A, !1);
24615
24615
  }
24616
- }, pn = Tg, Tt = function(E, A, J, it, ot) {
24616
+ }, pn = Ag, Tt = function(E, A, J, it, ot) {
24617
24617
  var st = dn;
24618
24618
  dn |= 4;
24619
24619
  try {
@@ -24645,7 +24645,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24645
24645
  Od = Fn.inject(xn), Sa = Fn;
24646
24646
  } catch {
24647
24647
  }
24648
- r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = cr, r.createPortal = Lg, r.findDOMNode = function(E) {
24648
+ r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = cr, r.createPortal = Bg, r.findDOMNode = function(E) {
24649
24649
  if (E == null)
24650
24650
  return null;
24651
24651
  if (E.nodeType === 1)
@@ -24675,14 +24675,14 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
24675
24675
  throw Error(i(200));
24676
24676
  }, r.unmountComponentAtNode = function(E) {
24677
24677
  if (Fl(E))
24678
- return !!E._reactRootContainer && (Ag(function() {
24678
+ return !!E._reactRootContainer && (jg(function() {
24679
24679
  ou(null, null, E, !1, function() {
24680
24680
  E._reactRootContainer = null, E[os] = null;
24681
24681
  });
24682
24682
  }), !0);
24683
24683
  throw Error(i(40));
24684
- }, r.unstable_batchedUpdates = Tg, r.unstable_createPortal = function(E, A) {
24685
- return Lg(E, A, 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null);
24684
+ }, r.unstable_batchedUpdates = Ag, r.unstable_createPortal = function(E, A) {
24685
+ return Bg(E, A, 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null);
24686
24686
  }, r.unstable_renderSubtreeIntoContainer = function(E, A, J, it) {
24687
24687
  if (!Fl(J))
24688
24688
  throw Error(i(200));
@@ -33828,9 +33828,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
33828
33828
  if (u(zt), u(Qe), ne = Qe[an], fe = zt.op, ne != null && fe != null && (ko ? ne.start == fe.start && ne.end == fe.end && dl(ne.startBlkPos, fe.startBlkPos) && dl(ne.endBlkPos, fe.endBlkPos) : lo && ne.start == fe.start && ne.end == fe.end && ne.startBlkPos == fe.startBlkPos && ne.endBlkPos == fe.endBlkPos))
33829
33829
  return u(zt), void u(Qe);
33830
33830
  Qe[an] = zt.op, u(zt), u(Qe), ma() || Xa() ? kr ? la("exe-slop", { rcsobj: tn }, an) : ul("exe-slop", an) : (ke = { rcsobj: tn }, p(va), va = setTimeout(function() {
33831
- (function Je(zn, ir) {
33832
- va = ma() || Xa() ? (kr ? la("missed-cr", zn, ir) : ul("missed-cr", ir), null) : (p(va), setTimeout(function() {
33833
- Je(zn, ir);
33831
+ (function Je(zn, or) {
33832
+ va = ma() || Xa() ? (kr ? la("missed-cr", zn, or) : ul("missed-cr", or), null) : (p(va), setTimeout(function() {
33833
+ Je(zn, or);
33834
33834
  }, 1e3));
33835
33835
  })(ke, an);
33836
33836
  }, 1e3));
@@ -33867,8 +33867,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
33867
33867
  if (ke = Qe, tn === "e" && wo() && (gt(Ut) ? (an = (Je = ft.d(Je)).d(), Je.gj() !== an && Ct.a.i({ source: "l" })) : ke.delta ? Ct.a.i({ source: "l", delta: ke.delta }) : Ct.a.i({ source: "l", delta: ke })), (function() {
33868
33868
  return !Ga() || (we("[codoxi]- rv1; sid = " + kt, b), Ya.apply(void 0, arguments), !1);
33869
33869
  }).apply(void 0, ne) && Zt !== _ && Zt !== w)
33870
- return tn === "pt" ? ca("pt") ? void 0 : function(zn, ir) {
33871
- u(ir = { t: 1 < arguments.length && ir !== void 0 ? ir : "pt", op: zn }), Cr(ir), _i(ir, null);
33870
+ return tn === "pt" ? ca("pt") ? void 0 : function(zn, or) {
33871
+ u(or = { t: 1 < arguments.length && or !== void 0 ? or : "pt", op: zn }), Cr(or), _i(or, null);
33872
33872
  }(Qe, tn) : ct(Ut) ? B.loh.apply(B, ne.concat([Ut])) : void T.apply(void 0, ne.concat([Ut]));
33873
33873
  }).apply(void 0, arguments);
33874
33874
  } catch (zt) {
@@ -34036,23 +34036,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
34036
34036
  }
34037
34037
  return !!function(Qe, tn) {
34038
34038
  Wt(tn);
34039
- for (var Je = "", zn = Qe.gj(), ir = 0, pl = 0; pl < tn.length; pl++) {
34039
+ for (var Je = "", zn = Qe.gj(), or = 0, pl = 0; pl < tn.length; pl++) {
34040
34040
  var Cc, Xn = tn[pl];
34041
34041
  switch ((0, e.default)(Xn)) {
34042
34042
  case je[0]:
34043
34043
  Je += Xn;
34044
34044
  break;
34045
34045
  case je[1]:
34046
- if ((ir += Xn.d) > zn.length)
34046
+ if ((or += Xn.d) > zn.length)
34047
34047
  return zn.length, 0;
34048
34048
  break;
34049
34049
  case je[2]:
34050
- if (ir + Xn > zn.length)
34051
- throw zn.length, Cc = "perr=1001; epos =" + (ir + Xn) + "; doclen = " + zn.length, new Error("ESTOP:" + Cc);
34052
- Je += zn.slice(ir, ir + Xn), ir += Xn;
34050
+ if (or + Xn > zn.length)
34051
+ throw zn.length, Cc = "perr=1001; epos =" + (or + Xn) + "; doclen = " + zn.length, new Error("ESTOP:" + Cc);
34052
+ Je += zn.slice(or, or + Xn), or += Xn;
34053
34053
  }
34054
34054
  }
34055
- return Je += zn.slice(ir), Qe.sj(Je), 1;
34055
+ return Je += zn.slice(or), Qe.sj(Je), 1;
34056
34056
  }(ne, zt.op) && (ft.d(zt.context.dmid).y !== "rt" || function(Qe) {
34057
34057
  return co ? 1 : ((tn = document.createElement("div")).innerHTML = Qe, (tn = tn.innerHTML) === Qe || (Qe.length, tn.length, 0));
34058
34058
  var tn;
@@ -40942,12 +40942,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
40942
40942
  g.appendChild(document.createTextNode(d));
40943
40943
  }
40944
40944
  };
40945
- } }, Vm = {};
40945
+ } }, Km = {};
40946
40946
  function nn(y) {
40947
- var d = Vm[y];
40947
+ var d = Km[y];
40948
40948
  if (d !== void 0)
40949
40949
  return d.exports;
40950
- var g = Vm[y] = { id: y, exports: {} };
40950
+ var g = Km[y] = { id: y, exports: {} };
40951
40951
  return q_[y](g, g.exports, nn), g.exports;
40952
40952
  }
40953
40953
  nn.n = (y) => {
@@ -40972,7 +40972,7 @@ var W_ = (y) => {
40972
40972
  var d = {};
40973
40973
  return nn.d(d, y), d;
40974
40974
  };
40975
- const ye = W_({ $addUpdateTag: () => qv, $createNodeSelection: () => sp, $createParagraphNode: () => or, $createRangeSelection: () => Gp, $getNodeByKey: () => Wn, $getRoot: () => Bn, $getSelection: () => Ae, $isDecoratorNode: () => Tn, $isElementNode: () => ge, $isLineBreakNode: () => Da, $isNodeSelection: () => oo, $isParagraphNode: () => Ha, $isRangeSelection: () => xe, $isTextNode: () => Pe, $nodesOfType: () => sy, $setSelection: () => lr, CAN_REDO_COMMAND: () => Us, CAN_UNDO_COMMAND: () => $s, CLEAR_EDITOR_COMMAND: () => jp, COMMAND_PRIORITY_CRITICAL: () => no, COMMAND_PRIORITY_EDITOR: () => on, CUT_COMMAND: () => gc, DecoratorNode: () => Ny, ElementNode: () => Uo, KEY_BACKSPACE_COMMAND: () => fc, KEY_DELETE_COMMAND: () => pc, KEY_ESCAPE_COMMAND: () => nd, LineBreakNode: () => nl, PASTE_COMMAND: () => cc, ParagraphNode: () => Va, REDO_COMMAND: () => dc, RootNode: () => ol, TextNode: () => na, UNDO_COMMAND: () => uc, createCommand: () => Cp, createEditor: () => Ry });
40975
+ const ye = W_({ $addUpdateTag: () => qv, $createNodeSelection: () => sp, $createParagraphNode: () => rr, $createRangeSelection: () => Yp, $getNodeByKey: () => Wn, $getRoot: () => Bn, $getSelection: () => Ae, $isDecoratorNode: () => Tn, $isElementNode: () => ge, $isLineBreakNode: () => Da, $isNodeSelection: () => oo, $isParagraphNode: () => Ha, $isRangeSelection: () => xe, $isTextNode: () => Pe, $nodesOfType: () => sy, $setSelection: () => lr, CAN_REDO_COMMAND: () => Us, CAN_UNDO_COMMAND: () => $s, CLEAR_EDITOR_COMMAND: () => Np, COMMAND_PRIORITY_CRITICAL: () => no, COMMAND_PRIORITY_EDITOR: () => on, CUT_COMMAND: () => gc, DecoratorNode: () => Ny, ElementNode: () => Uo, KEY_BACKSPACE_COMMAND: () => fc, KEY_DELETE_COMMAND: () => pc, KEY_ESCAPE_COMMAND: () => nd, LineBreakNode: () => nl, PASTE_COMMAND: () => cc, ParagraphNode: () => Va, REDO_COMMAND: () => dc, RootNode: () => ol, TextNode: () => na, UNDO_COMMAND: () => uc, createCommand: () => kp, createEditor: () => Ry });
40976
40976
  var J_ = (y) => {
40977
40977
  var d = {};
40978
40978
  return nn.d(d, y), d;
@@ -40982,12 +40982,12 @@ var K_ = (y) => {
40982
40982
  var d = {};
40983
40983
  return nn.d(d, y), d;
40984
40984
  };
40985
- const ro = K_({ $createMarkNode: () => Zu, $getMarkIDs: () => h_, $isMarkNode: () => Ba, $unwrapMarkNode: () => f_, $wrapSelectionInMarkNode: () => p_, MarkNode: () => eh });
40985
+ const ro = K_({ $createMarkNode: () => Zu, $getMarkIDs: () => h_, $isMarkNode: () => Ba, $unwrapMarkNode: () => f_, $wrapSelectionInMarkNode: () => p_, MarkNode: () => nh });
40986
40986
  var G_ = (y) => {
40987
40987
  var d = {};
40988
40988
  return nn.d(d, y), d;
40989
40989
  };
40990
- const Cn = G_({ $createTableCellNode: () => Xs, $createTableRowNode: () => hd, $createTableSelection: () => Xu, $getTableColumnIndexFromTableCellNode: () => __, $isTableCellNode: () => rn, $isTableNode: () => Jn, $isTableRowNode: () => Fr, $isTableSelection: () => tr, TableCellNode: () => Lo, TableNode: () => Do, TableRowNode: () => Ka }), Y_ = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Km = { randomUUID: Y_ };
40990
+ const Cn = G_({ $createTableCellNode: () => Xs, $createTableRowNode: () => hd, $createTableSelection: () => Xu, $getTableColumnIndexFromTableCellNode: () => __, $isTableCellNode: () => rn, $isTableNode: () => Jn, $isTableRowNode: () => Fr, $isTableSelection: () => tr, TableCellNode: () => Lo, TableNode: () => Do, TableRowNode: () => Ka }), Y_ = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Gm = { randomUUID: Y_ };
40991
40991
  let pu;
40992
40992
  const Z_ = new Uint8Array(16);
40993
40993
  function X_() {
@@ -41002,8 +41002,8 @@ function Q_(y, d = 0) {
41002
41002
  return mr[y[d + 0]] + mr[y[d + 1]] + mr[y[d + 2]] + mr[y[d + 3]] + "-" + mr[y[d + 4]] + mr[y[d + 5]] + "-" + mr[y[d + 6]] + mr[y[d + 7]] + "-" + mr[y[d + 8]] + mr[y[d + 9]] + "-" + mr[y[d + 10]] + mr[y[d + 11]] + mr[y[d + 12]] + mr[y[d + 13]] + mr[y[d + 14]] + mr[y[d + 15]];
41003
41003
  }
41004
41004
  function tx(y, d, g) {
41005
- if (Km.randomUUID && !d && !y)
41006
- return Km.randomUUID();
41005
+ if (Gm.randomUUID && !d && !y)
41006
+ return Gm.randomUUID();
41007
41007
  const t = (y = y || {}).random || (y.rng || X_)();
41008
41008
  if (t[6] = 15 & t[6] | 64, t[8] = 63 & t[8] | 128, d) {
41009
41009
  g = g || 0;
@@ -41018,16 +41018,16 @@ let nx = () => {
41018
41018
  }, xc = function() {
41019
41019
  return nx;
41020
41020
  };
41021
- const rx = xc(), ox = xc(), ix = xc(), ax = xc(), sx = xc(), lx = { log: rx, info: ox, warn: ax, debug: ix, error: sx }, le = lx, cx = [(y) => y.hasFormat("bold") && "bold", (y) => y.hasFormat("code") && "code", (y) => y.hasFormat("italic") && "italic", (y) => y.hasFormat("strikethrough") && "strikethrough", (y) => y.hasFormat("subscript") && "subscript", (y) => y.hasFormat("superscript") && "superscript", (y) => y.hasFormat("underline") && "underline"], Gm = { bold: 1, code: 16, highlight: 128, italic: 2, strikethrough: 4, subscript: 32, superscript: 64, underline: 8 }, ux = { center: 2, end: 6, justify: 4, left: 1, right: 3, start: 5 };
41021
+ const rx = xc(), ox = xc(), ix = xc(), ax = xc(), sx = xc(), lx = { log: rx, info: ox, warn: ax, debug: ix, error: sx }, le = lx, cx = [(y) => y.hasFormat("bold") && "bold", (y) => y.hasFormat("code") && "code", (y) => y.hasFormat("italic") && "italic", (y) => y.hasFormat("strikethrough") && "strikethrough", (y) => y.hasFormat("subscript") && "subscript", (y) => y.hasFormat("superscript") && "superscript", (y) => y.hasFormat("underline") && "underline"], Ym = { bold: 1, code: 16, highlight: 128, italic: 2, strikethrough: 4, subscript: 32, superscript: 64, underline: 8 }, ux = { center: 2, end: 6, justify: 4, left: 1, right: 3, start: 5 };
41022
41022
  function dx(y) {
41023
41023
  if (!y || !y.length)
41024
41024
  return 0;
41025
41025
  let d = y.split(",");
41026
- if (d = d.map((t) => t.trim()), d.length === 1 && !Gm[d[0]])
41026
+ if (d = d.map((t) => t.trim()), d.length === 1 && !Ym[d[0]])
41027
41027
  return y;
41028
41028
  let g = 0;
41029
41029
  for (const t of d) {
41030
- const f = Gm[t];
41030
+ const f = Ym[t];
41031
41031
  f && (g ^= f);
41032
41032
  }
41033
41033
  return g;
@@ -41062,8 +41062,8 @@ class hx {
41062
41062
  this.subscribers = {};
41063
41063
  }
41064
41064
  }
41065
- const mb = hx, io = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, gx = { paste: "application/x-lexical-editor", drag: "application/x-lexical-drag", dragBlock: "application/x-lexical-drag-block", plainText: "text/plain" }, Vr = { created: "created", updated: "updated", destroyed: "destroyed" }, Fi = { text: "text", element: "element", whitelist: ["text", "element"] }, wr = { mouseover: "mouseover", mouseout: "mouseout", mousemove: "mousemove", keypress: "keypress", keyup: "keyup", resize: "resize", scroll: "scroll" }, Ym = [wr.mousemove, wr.mouseover, wr.mouseout], Qu = { text: "text", linebreak: "linebreak", horizontalrule: "horizontalrule" }, gp = { local: "local", remote: "remote" }, Ia = { editorState: "editorState", root: "root" }, zi = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 }, Yl = "codox_comments_change", Zm = { horizontalrule: ["table", "image", "inline-image", "sticky"], "page-break": ["image", "inline-image", "table", "sticky"], "collapsible-container": ["table", "image", "inline-image", "collapsible-container", "sticky"], "layout-container": ["table", "image", "inline-image", "layout-container", "sticky"], image: ["image", "inline-image", "sticky"], "inline-image": ["image", "inline-image", "sticky"], table: ["image", "inline-image", "table", "sticky"], poll: ["image", "inline-image", "sticky"], excalidraw: ["image", "inline-image", "sticky"] }, mx = "Invalid state - forbidden content nesting found", Xm = { local: "local", remote: "remote" };
41066
- function Qm(y, d) {
41065
+ const mb = hx, io = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, gx = { paste: "application/x-lexical-editor", drag: "application/x-lexical-drag", dragBlock: "application/x-lexical-drag-block", plainText: "text/plain" }, Vr = { created: "created", updated: "updated", destroyed: "destroyed" }, Fi = { text: "text", element: "element", whitelist: ["text", "element"] }, wr = { mouseover: "mouseover", mouseout: "mouseout", mousemove: "mousemove", keypress: "keypress", keyup: "keyup", resize: "resize", scroll: "scroll" }, Zm = [wr.mousemove, wr.mouseover, wr.mouseout], Qu = { text: "text", linebreak: "linebreak", horizontalrule: "horizontalrule" }, gp = { local: "local", remote: "remote" }, Ia = { editorState: "editorState", root: "root" }, zi = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 }, Yl = "codox_comments_change", Xm = { horizontalrule: ["table", "image", "inline-image", "sticky"], "page-break": ["image", "inline-image", "table", "sticky"], "collapsible-container": ["table", "image", "inline-image", "collapsible-container", "sticky"], "layout-container": ["table", "image", "inline-image", "layout-container", "sticky"], image: ["image", "inline-image", "sticky"], "inline-image": ["image", "inline-image", "sticky"], table: ["image", "inline-image", "table", "sticky"], poll: ["image", "inline-image", "sticky"], excalidraw: ["image", "inline-image", "sticky"] }, mx = "Invalid state - forbidden content nesting found", Qm = { local: "local", remote: "remote" };
41066
+ function t0(y, d) {
41067
41067
  var g = Object.keys(y);
41068
41068
  if (Object.getOwnPropertySymbols) {
41069
41069
  var t = Object.getOwnPropertySymbols(y);
@@ -41073,12 +41073,12 @@ function Qm(y, d) {
41073
41073
  }
41074
41074
  return g;
41075
41075
  }
41076
- function t0(y) {
41076
+ function e0(y) {
41077
41077
  for (var d = 1; d < arguments.length; d++) {
41078
41078
  var g = arguments[d] != null ? arguments[d] : {};
41079
- d % 2 ? Qm(Object(g), !0).forEach(function(t) {
41079
+ d % 2 ? t0(Object(g), !0).forEach(function(t) {
41080
41080
  yx(y, t, g[t]);
41081
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : Qm(Object(g)).forEach(function(t) {
41081
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : t0(Object(g)).forEach(function(t) {
41082
41082
  Object.defineProperty(y, t, Object.getOwnPropertyDescriptor(g, t));
41083
41083
  });
41084
41084
  }
@@ -41153,7 +41153,7 @@ class Ue {
41153
41153
  if (!l)
41154
41154
  return le.debug("[getNestedSelectionJSONFromMainSelectionJSON]: Lexical node with nested editor not found in codox nodes map - selection will be dropped", { jsonSelection: d, targetNodeCodoxId: i }), g;
41155
41155
  let o = Gl(s), a = l[o];
41156
- return _e.isLexicalEditorInstance(a) ? (g.nestedSelectionJSON = t0(t0({}, d), {}, { anchor: { codoxId: f, offset: d.anchor.offset }, focus: { codoxId: n, offset: d.focus.offset } }), g.nestedEditor = a, g) : (le.debug("[getNestedSelectionJSONFromMainSelectionJSON]: Found nested editor is not LexicalEditor instance", { jsonSelection: d, targetLexicalNode: l, targetLexicalNodeAttrName: o, nestedEditorCandidate: a }), g);
41156
+ return _e.isLexicalEditorInstance(a) ? (g.nestedSelectionJSON = e0(e0({}, d), {}, { anchor: { codoxId: f, offset: d.anchor.offset }, focus: { codoxId: n, offset: d.focus.offset } }), g.nestedEditor = a, g) : (le.debug("[getNestedSelectionJSONFromMainSelectionJSON]: Found nested editor is not LexicalEditor instance", { jsonSelection: d, targetLexicalNode: l, targetLexicalNodeAttrName: o, nestedEditorCandidate: a }), g);
41157
41157
  }
41158
41158
  static getNodeAncestorsCodoxIds(d) {
41159
41159
  let g = [], t = Ue.getNodeAncestorsList(d);
@@ -41324,7 +41324,7 @@ class Ue {
41324
41324
  if (qi(i) || wn(i)) {
41325
41325
  let l = wn(i) ? 1 : i.getTextContentSize();
41326
41326
  if (s <= l) {
41327
- if (ih(i)) {
41327
+ if (ah(i)) {
41328
41328
  let o = i.getNextSibling();
41329
41329
  o && $n(o) ? (f = o, r = 0) : (f = d, r = i.getPreviousSiblings().length + 1);
41330
41330
  break;
@@ -41370,7 +41370,7 @@ class Ue {
41370
41370
  return Ue.createTableSelection(i, o);
41371
41371
  if (wn(i) && wn(o) && t !== r)
41372
41372
  return Ue.createNodeSelection(i, o);
41373
- if (wn(i) && wn(o) && t === r && b0(i) && b0(o)) {
41373
+ if (wn(i) && wn(o) && t === r && v0(i) && v0(o)) {
41374
41374
  let M = (0, ye.$getRoot)(), W = M.getChildren(), K = W.findIndex((U) => U.getKey() === i.getKey()), P = W.findIndex((U) => U.getKey() === o.getKey());
41375
41375
  return Ue.createRangeSelection(M, M, K, P, n, e);
41376
41376
  }
@@ -41476,7 +41476,7 @@ var _x = (y) => {
41476
41476
  return nn.d(d, y), d;
41477
41477
  };
41478
41478
  const Gt = _x({ Fragment: () => er.Fragment, createContext: () => er.createContext, createElement: () => er.createElement, forwardRef: () => er.forwardRef, useCallback: () => er.useCallback, useContext: () => er.useContext, useEffect: () => er.useEffect, useImperativeHandle: () => er.useImperativeHandle, useLayoutEffect: () => er.useLayoutEffect, useMemo: () => er.useMemo, useRef: () => er.useRef, useState: () => er.useState });
41479
- function e0(y, d) {
41479
+ function n0(y, d) {
41480
41480
  var g = Object.keys(y);
41481
41481
  if (Object.getOwnPropertySymbols) {
41482
41482
  var t = Object.getOwnPropertySymbols(y);
@@ -41486,12 +41486,12 @@ function e0(y, d) {
41486
41486
  }
41487
41487
  return g;
41488
41488
  }
41489
- function n0(y) {
41489
+ function r0(y) {
41490
41490
  for (var d = 1; d < arguments.length; d++) {
41491
41491
  var g = arguments[d] != null ? arguments[d] : {};
41492
- d % 2 ? e0(Object(g), !0).forEach(function(t) {
41492
+ d % 2 ? n0(Object(g), !0).forEach(function(t) {
41493
41493
  xx(y, t, g[t]);
41494
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : e0(Object(g)).forEach(function(t) {
41494
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : n0(Object(g)).forEach(function(t) {
41495
41495
  Object.defineProperty(y, t, Object.getOwnPropertyDescriptor(g, t));
41496
41496
  });
41497
41497
  }
@@ -41580,7 +41580,7 @@ class Ex extends mb {
41580
41580
  }
41581
41581
  }
41582
41582
  createCommentId() {
41583
- return `${this.ID_PREFIX}-${oh()}`;
41583
+ return `${this.ID_PREFIX}-${ih()}`;
41584
41584
  }
41585
41585
  createNewCommentObj(d) {
41586
41586
  let { content: g, author: t, codoxId: f, timeStamp: r } = d;
@@ -41597,7 +41597,7 @@ class Ex extends mb {
41597
41597
  addComment(d, g) {
41598
41598
  let t = this.commentThreads.map((f) => {
41599
41599
  if (f.codoxId === d) {
41600
- let r = n0({}, f);
41600
+ let r = r0({}, f);
41601
41601
  return r.comments = [...r.comments, g], r;
41602
41602
  }
41603
41603
  return f;
@@ -41610,7 +41610,7 @@ class Ex extends mb {
41610
41610
  le.debug("[CodoxComments][removeCommentFromPlugin]: ", { commentId: g, threadId: d });
41611
41611
  let t = this.commentThreads.map((f) => {
41612
41612
  if (f.codoxId === d) {
41613
- let r = n0({}, f);
41613
+ let r = r0({}, f);
41614
41614
  return r.comments = r.comments.filter((n) => n.codoxId !== g), r;
41615
41615
  }
41616
41616
  return f;
@@ -41658,7 +41658,7 @@ var kx = (y) => {
41658
41658
  };
41659
41659
  const tl = kx({ mergeRegister: () => $o, registerNestedElementResolver: () => R1 });
41660
41660
  var Ox = nn(967), ri = nn.n(Ox), Tx = Object.getOwnPropertyNames, Ax = Object.getOwnPropertySymbols, jx = Object.prototype.hasOwnProperty;
41661
- function r0(y, d) {
41661
+ function o0(y, d) {
41662
41662
  return function(g, t, f) {
41663
41663
  return y(g, t, f) && d(g, t, f);
41664
41664
  };
@@ -41675,7 +41675,7 @@ function hu(y) {
41675
41675
  return f.delete(d), f.delete(g), e;
41676
41676
  };
41677
41677
  }
41678
- function o0(y) {
41678
+ function i0(y) {
41679
41679
  return Tx(y).concat(Ax(y));
41680
41680
  }
41681
41681
  var yb = Object.hasOwn || function(y, d) {
@@ -41684,7 +41684,7 @@ var yb = Object.hasOwn || function(y, d) {
41684
41684
  function sl(y, d) {
41685
41685
  return y || d ? y === d : y === d || y != y && d != d;
41686
41686
  }
41687
- var bb = "_owner", i0 = Object.getOwnPropertyDescriptor, a0 = Object.keys;
41687
+ var bb = "_owner", a0 = Object.getOwnPropertyDescriptor, s0 = Object.keys;
41688
41688
  function Nx(y, d, g) {
41689
41689
  var t = y.length;
41690
41690
  if (d.length !== t)
@@ -41697,7 +41697,7 @@ function Nx(y, d, g) {
41697
41697
  function Px(y, d) {
41698
41698
  return sl(y.getTime(), d.getTime());
41699
41699
  }
41700
- function s0(y, d, g) {
41700
+ function l0(y, d, g) {
41701
41701
  if (y.size !== d.size)
41702
41702
  return !1;
41703
41703
  for (var t, f, r = {}, n = y.entries(), e = 0; (t = n.next()) && !t.done; ) {
@@ -41712,8 +41712,8 @@ function s0(y, d, g) {
41712
41712
  return !0;
41713
41713
  }
41714
41714
  function Ix(y, d, g) {
41715
- var t, f = a0(y), r = f.length;
41716
- if (a0(d).length !== r)
41715
+ var t, f = s0(y), r = f.length;
41716
+ if (s0(d).length !== r)
41717
41717
  return !1;
41718
41718
  for (; r-- > 0; )
41719
41719
  if ((t = f[r]) === bb && (y.$$typeof || d.$$typeof) && y.$$typeof !== d.$$typeof || !yb(d, t) || !g.equals(y[t], d[t], t, t, y, d, g))
@@ -41721,11 +41721,11 @@ function Ix(y, d, g) {
41721
41721
  return !0;
41722
41722
  }
41723
41723
  function ql(y, d, g) {
41724
- var t, f, r, n = o0(y), e = n.length;
41725
- if (o0(d).length !== e)
41724
+ var t, f, r, n = i0(y), e = n.length;
41725
+ if (i0(d).length !== e)
41726
41726
  return !1;
41727
41727
  for (; e-- > 0; )
41728
- if ((t = n[e]) === bb && (y.$$typeof || d.$$typeof) && y.$$typeof !== d.$$typeof || !yb(d, t) || !g.equals(y[t], d[t], t, t, y, d, g) || (f = i0(y, t), r = i0(d, t), (f || r) && (!f || !r || f.configurable !== r.configurable || f.enumerable !== r.enumerable || f.writable !== r.writable)))
41728
+ if ((t = n[e]) === bb && (y.$$typeof || d.$$typeof) && y.$$typeof !== d.$$typeof || !yb(d, t) || !g.equals(y[t], d[t], t, t, y, d, g) || (f = a0(y, t), r = a0(d, t), (f || r) && (!f || !r || f.configurable !== r.configurable || f.enumerable !== r.enumerable || f.writable !== r.writable)))
41729
41729
  return !1;
41730
41730
  return !0;
41731
41731
  }
@@ -41735,7 +41735,7 @@ function Rx(y, d) {
41735
41735
  function Mx(y, d) {
41736
41736
  return y.source === d.source && y.flags === d.flags;
41737
41737
  }
41738
- function l0(y, d, g) {
41738
+ function c0(y, d, g) {
41739
41739
  if (y.size !== d.size)
41740
41740
  return !1;
41741
41741
  for (var t, f, r = {}, n = y.values(); (t = n.next()) && !t.done; ) {
@@ -41755,7 +41755,7 @@ function Dx(y, d) {
41755
41755
  return !1;
41756
41756
  return !0;
41757
41757
  }
41758
- var Lx = "[object Arguments]", Bx = "[object Boolean]", Fx = "[object Date]", zx = "[object Map]", Ux = "[object Number]", $x = "[object Object]", Hx = "[object RegExp]", qx = "[object Set]", Wx = "[object String]", Jx = Array.isArray, c0 = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, u0 = Object.assign, Vx = Object.prototype.toString.call.bind(Object.prototype.toString);
41758
+ var Lx = "[object Arguments]", Bx = "[object Boolean]", Fx = "[object Date]", zx = "[object Map]", Ux = "[object Number]", $x = "[object Object]", Hx = "[object RegExp]", qx = "[object Set]", Wx = "[object String]", Jx = Array.isArray, u0 = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, d0 = Object.assign, Vx = Object.prototype.toString.call.bind(Object.prototype.toString);
41759
41759
  function Kx(y) {
41760
41760
  var d = y.areArraysEqual, g = y.areDatesEqual, t = y.areMapsEqual, f = y.areObjectsEqual, r = y.arePrimitiveWrappersEqual, n = y.areRegExpsEqual, e = y.areSetsEqual, s = y.areTypedArraysEqual;
41761
41761
  return function(i, l, o) {
@@ -41770,7 +41770,7 @@ function Kx(y) {
41770
41770
  return f(i, l, o);
41771
41771
  if (Jx(i))
41772
41772
  return d(i, l, o);
41773
- if (c0 != null && c0(i))
41773
+ if (u0 != null && u0(i))
41774
41774
  return s(i, l, o);
41775
41775
  if (a === Date)
41776
41776
  return g(i, l, o);
@@ -41785,10 +41785,10 @@ function Kx(y) {
41785
41785
  };
41786
41786
  }
41787
41787
  function Gx(y) {
41788
- var d = y.circular, g = y.createCustomConfig, t = y.strict, f = { areArraysEqual: t ? ql : Nx, areDatesEqual: Px, areMapsEqual: t ? r0(s0, ql) : s0, areObjectsEqual: t ? ql : Ix, arePrimitiveWrappersEqual: Rx, areRegExpsEqual: Mx, areSetsEqual: t ? r0(l0, ql) : l0, areTypedArraysEqual: t ? ql : Dx };
41789
- if (g && (f = u0({}, f, g(f))), d) {
41788
+ var d = y.circular, g = y.createCustomConfig, t = y.strict, f = { areArraysEqual: t ? ql : Nx, areDatesEqual: Px, areMapsEqual: t ? o0(l0, ql) : l0, areObjectsEqual: t ? ql : Ix, arePrimitiveWrappersEqual: Rx, areRegExpsEqual: Mx, areSetsEqual: t ? o0(c0, ql) : c0, areTypedArraysEqual: t ? ql : Dx };
41789
+ if (g && (f = d0({}, f, g(f))), d) {
41790
41790
  var r = hu(f.areArraysEqual), n = hu(f.areMapsEqual), e = hu(f.areObjectsEqual), s = hu(f.areSetsEqual);
41791
- f = u0({}, f, { areArraysEqual: r, areMapsEqual: n, areObjectsEqual: e, areSetsEqual: s });
41791
+ f = d0({}, f, { areArraysEqual: r, areMapsEqual: n, areObjectsEqual: e, areSetsEqual: s });
41792
41792
  }
41793
41793
  return f;
41794
41794
  }
@@ -41903,7 +41903,7 @@ class _u {
41903
41903
  }
41904
41904
  zl(_u, "remoteSelectionClassName", "codox_remote_selection"), zl(_u, "remoteSelectionRect", "codox_remote_selection_rect"), zl(_u, "tooltipAnimations", { hideAtOnce: "codox_hide_tooltip 0s linear 0s forwards", hideWithDelay: "codox_hide_tooltip 0s linear 2s forwards", showAtOnce: "codox_show_tooltip 0s linear 0s forwards", unset: "unset" });
41905
41905
  const Qn = _u;
41906
- function d0(y, d) {
41906
+ function f0(y, d) {
41907
41907
  var g = Object.keys(y);
41908
41908
  if (Object.getOwnPropertySymbols) {
41909
41909
  var t = Object.getOwnPropertySymbols(y);
@@ -41916,9 +41916,9 @@ function d0(y, d) {
41916
41916
  function ew(y) {
41917
41917
  for (var d = 1; d < arguments.length; d++) {
41918
41918
  var g = arguments[d] != null ? arguments[d] : {};
41919
- d % 2 ? d0(Object(g), !0).forEach(function(t) {
41919
+ d % 2 ? f0(Object(g), !0).forEach(function(t) {
41920
41920
  nw(y, t, g[t]);
41921
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : d0(Object(g)).forEach(function(t) {
41921
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : f0(Object(g)).forEach(function(t) {
41922
41922
  Object.defineProperty(y, t, Object.getOwnPropertyDescriptor(g, t));
41923
41923
  });
41924
41924
  }
@@ -42005,7 +42005,7 @@ class dw {
42005
42005
  let u = (0, Cn.$isTableSelection)(f), h = (0, ye.$isNodeSelection)(f), p = (0, ye.$isRangeSelection)(f);
42006
42006
  for (let w of r)
42007
42007
  this.trackedNodesKeys.add(`${w.getKey()}__${g._key}`);
42008
- r.length === 1 && ih(r[0]) && a === c && c++;
42008
+ r.length === 1 && ah(r[0]) && a === c && c++;
42009
42009
  let m = null, b = [];
42010
42010
  if (u && (0, Cn.$isTableCellNode)(l) && (0, Cn.$isTableCellNode)(o)) {
42011
42011
  let w = r.filter((x) => (0, Cn.$isTableCellNode)(x));
@@ -42129,12 +42129,12 @@ class dw {
42129
42129
  }
42130
42130
  mount() {
42131
42131
  window.addEventListener(wr.keypress, this.keyboardBindedListener), window.addEventListener(wr.keyup, this.keyboardBindedListener), window.addEventListener(wr.resize, this.resizeBindedListener), window.addEventListener(wr.scroll, this.resizeBindedListener);
42132
- for (const d of Ym)
42132
+ for (const d of Zm)
42133
42133
  window.addEventListener(d, this.mouseBindedListener);
42134
42134
  }
42135
42135
  unmount() {
42136
42136
  window.removeEventListener(wr.keypress, this.keyboardBindedListener), window.removeEventListener(wr.keyup, this.keyboardBindedListener), window.removeEventListener(wr.resize, this.resizeBindedListener), window.removeEventListener(wr.scroll, this.resizeBindedListener);
42137
- for (const d of Ym)
42137
+ for (const d of Zm)
42138
42138
  window.removeEventListener(d, this.mouseBindedListener);
42139
42139
  this.gcPrevPaintedRemoteSelections();
42140
42140
  }
@@ -42229,10 +42229,10 @@ function Su(y) {
42229
42229
  Su(d);
42230
42230
  y.remove();
42231
42231
  }
42232
- function f0(y) {
42232
+ function p0(y) {
42233
42233
  y.__parent = null, y.__next = null, y.__prev = null;
42234
42234
  }
42235
- function p0(y, d) {
42235
+ function h0(y, d) {
42236
42236
  return !!_e.isLexicalEditorInstance(y) && !(typeof d != "object" || !d.editorState || (y.update(() => {
42237
42237
  try {
42238
42238
  let g = (0, ye.$getSelection)();
@@ -42285,7 +42285,7 @@ function hw(y) {
42285
42285
  for (const p of c)
42286
42286
  u = u[p];
42287
42287
  let h = Gl(t[o]);
42288
- p0(a.getWritable()[h], u);
42288
+ h0(a.getWritable()[h], u);
42289
42289
  }
42290
42290
  } else {
42291
42291
  if (r) {
@@ -42328,7 +42328,7 @@ function hw(y) {
42328
42328
  if (S.hasOwnProperty(C) && !h.includes(C))
42329
42329
  if (_e.isLexicalEditorInstance(S[C])) {
42330
42330
  let k = { editorState: S[C].getEditorState().toJSON() };
42331
- p0(x[C], k);
42331
+ h0(x[C], k);
42332
42332
  } else {
42333
42333
  let k = hp(C), D = m[k];
42334
42334
  if (D === x[C] || !m.hasOwnProperty(k))
@@ -42336,14 +42336,14 @@ function hw(y) {
42336
42336
  let N = D !== void 0 && S[C] !== D ? D : S[C];
42337
42337
  k !== "height" && k !== "width" || S[C] === "inherit" && D === 0 && (N = S[C]), x[C] = N;
42338
42338
  }
42339
- S.remove(), f0(x), v = x, delete c[m.codoxDId];
42339
+ S.remove(), p0(x), v = x, delete c[m.codoxDId];
42340
42340
  }
42341
42341
  }
42342
42342
  v || (v = wu(m), v.codoxDId && v.__type === "excalidraw" && v.__data === "[]" && (v.__data = "{}")), v = v.getWritable(), u.push(v), v.__parent = a.__key, b ? (a.__first = v.__key, v.__prev = null, _ && (a.__last = v.__key)) : _ ? (a.__last = v.__key, v.__next = null, v.__prev = w.__key, w.__next = v.__key) : (v.__prev = w.__key, w.__next = v.__key), a.__size = u.length;
42343
42343
  }
42344
42344
  for (let p in c) {
42345
42345
  let m = c[p];
42346
- m = m.getWritable(), f0(m), Su(m), delete c[p];
42346
+ m = m.getWritable(), p0(m), Su(m), delete c[p];
42347
42347
  }
42348
42348
  } else {
42349
42349
  let c = o.map((u) => wu(u));
@@ -42470,11 +42470,11 @@ var yw = (y) => {
42470
42470
  var d = {};
42471
42471
  return nn.d(d, y), d;
42472
42472
  };
42473
- const Qi = yw({ LexicalComposerContext: () => Qp, useLexicalComposerContext: () => Ir });
42473
+ const Qi = yw({ LexicalComposerContext: () => th, useLexicalComposerContext: () => Ir });
42474
42474
  class xb {
42475
42475
  constructor() {
42476
- this.blacklist = Object.keys(Zm).reduce((d, g) => {
42477
- let t = Zm[g];
42476
+ this.blacklist = Object.keys(Xm).reduce((d, g) => {
42477
+ let t = Xm[g];
42478
42478
  return d[g] = t.reduce((f, r) => (f[r] = r, f), {}), d;
42479
42479
  }, {}), this._isBlacklistedFound = !1, this._clientCallback = null;
42480
42480
  }
@@ -42912,7 +42912,7 @@ class Cw {
42912
42912
  }
42913
42913
  }
42914
42914
  const Mo = new Cw(), kw = ["contentChanged"], Ow = ["state", "remoteSelection"];
42915
- function h0(y, d) {
42915
+ function g0(y, d) {
42916
42916
  var g = Object.keys(y);
42917
42917
  if (Object.getOwnPropertySymbols) {
42918
42918
  var t = Object.getOwnPropertySymbols(y);
@@ -42925,9 +42925,9 @@ function h0(y, d) {
42925
42925
  function Es(y) {
42926
42926
  for (var d = 1; d < arguments.length; d++) {
42927
42927
  var g = arguments[d] != null ? arguments[d] : {};
42928
- d % 2 ? h0(Object(g), !0).forEach(function(t) {
42928
+ d % 2 ? g0(Object(g), !0).forEach(function(t) {
42929
42929
  Tw(y, t, g[t]);
42930
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : h0(Object(g)).forEach(function(t) {
42930
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : g0(Object(g)).forEach(function(t) {
42931
42931
  Object.defineProperty(y, t, Object.getOwnPropertyDescriptor(g, t));
42932
42932
  });
42933
42933
  }
@@ -42952,7 +42952,7 @@ function jw(y, d) {
42952
42952
  }
42953
42953
  return (d === "string" ? String : Number)(y);
42954
42954
  }
42955
- function g0(y, d) {
42955
+ function m0(y, d) {
42956
42956
  if (y == null)
42957
42957
  return {};
42958
42958
  var g, t, f = Nw(y, d);
@@ -43030,7 +43030,7 @@ const Iw = (0, Gt.forwardRef)((y, d) => {
43030
43030
  le.log("[startCodoxInstance] starting codox with: ", { docId: oi, initJSONState: v, config: ho, codoxComments: Sn }), _e.currentContentStateJSON || _e.setCurrentContentStateJSON(v), _e.isCodoxStarted && n();
43031
43031
  let { username: w, apiKey: x, getServerState: S, domain: C = "", demo: k = !1, hooks: D } = ho;
43032
43032
  D && D.fetchDocOnNetworkReconnect && (D.fetchDocOnNetworkReconnect = Pw(D.fetchDocOnNetworkReconnect));
43033
- const N = g0(D, kw);
43033
+ const N = m0(D, kw);
43034
43034
  await ri().start(ri().createConfig(Es(Es({}, ho), {}, { docId: oi, username: w, apiKey: x, domain: C, hooks: Es({ syncState: l, getState: i, getServerState: async () => await S(oi) }, N), editorInstanceHooks: { getSelection: () => _e.getCurrentActiveSelectionJSON(), setSelection: (O) => o(O), getState: i, setState: (O) => {
43035
43035
  const { root: R, comments: j } = O;
43036
43036
  le.info("DEBUG: EDITOR INSTANCE setState:", { fullState: O }), a({ state: { root: R }, selection: _e.getCurrentActiveSelectionJSON() }, po.getCurrentRemoteSelections()), Sn.setAllComments(j);
@@ -43049,7 +43049,7 @@ const Iw = (0, Gt.forwardRef)((y, d) => {
43049
43049
  if (!_e.isCodoxStarted)
43050
43050
  return;
43051
43051
  le.log("[SYNC_STATE]: Before sync payload = ", b);
43052
- const _ = ri().sync({ meta: b }), { state: v, remoteSelection: w = [] } = _, x = g0(_, Ow);
43052
+ const _ = ri().sync({ meta: b }), { state: v, remoteSelection: w = [] } = _, x = m0(_, Ow);
43053
43053
  if (le.log("[SYNC_STATE]: After sync", { state: v, remoteSelection: w, rest: x }), !v)
43054
43054
  return le.error("[SYNC_STATE] abort apply - synced state is not valid - restarting codox"), s();
43055
43055
  const S = v.state;
@@ -43155,7 +43155,7 @@ const Iw = (0, Gt.forwardRef)((y, d) => {
43155
43155
  if (!K || z || j) {
43156
43156
  let V = Es({}, K ? R : k), G = Sn.getAllComments();
43157
43157
  G.length && (V.commentThreads = G);
43158
- let F = { source: j ? Xm.remote : Xm.local, content: V };
43158
+ let F = { source: j ? Qm.remote : Qm.local, content: V };
43159
43159
  ho.hooks && ho.hooks.contentChanged && ho.hooks.contentChanged(F), ri().instance.emit("content_changed", F);
43160
43160
  }
43161
43161
  if (U)
@@ -43193,7 +43193,7 @@ const Iw = (0, Gt.forwardRef)((y, d) => {
43193
43193
  } };
43194
43194
  return (0, Gt.useImperativeHandle)(d, () => m), null;
43195
43195
  }), Rw = Iw, Mw = ["comments"];
43196
- function m0(y, d) {
43196
+ function y0(y, d) {
43197
43197
  var g = Object.keys(y);
43198
43198
  if (Object.getOwnPropertySymbols) {
43199
43199
  var t = Object.getOwnPropertySymbols(y);
@@ -43206,9 +43206,9 @@ function m0(y, d) {
43206
43206
  function zf(y) {
43207
43207
  for (var d = 1; d < arguments.length; d++) {
43208
43208
  var g = arguments[d] != null ? arguments[d] : {};
43209
- d % 2 ? m0(Object(g), !0).forEach(function(t) {
43209
+ d % 2 ? y0(Object(g), !0).forEach(function(t) {
43210
43210
  Dw(y, t, g[t]);
43211
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : m0(Object(g)).forEach(function(t) {
43211
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : y0(Object(g)).forEach(function(t) {
43212
43212
  Object.defineProperty(y, t, Object.getOwnPropertyDescriptor(g, t));
43213
43213
  });
43214
43214
  }
@@ -43479,7 +43479,7 @@ class Hw {
43479
43479
  }
43480
43480
  }
43481
43481
  const qw = new Hw(), On = qw;
43482
- function y0(y, d) {
43482
+ function b0(y, d) {
43483
43483
  var g = Object.keys(y);
43484
43484
  if (Object.getOwnPropertySymbols) {
43485
43485
  var t = Object.getOwnPropertySymbols(y);
@@ -43492,9 +43492,9 @@ function y0(y, d) {
43492
43492
  function wb(y) {
43493
43493
  for (var d = 1; d < arguments.length; d++) {
43494
43494
  var g = arguments[d] != null ? arguments[d] : {};
43495
- d % 2 ? y0(Object(g), !0).forEach(function(t) {
43495
+ d % 2 ? b0(Object(g), !0).forEach(function(t) {
43496
43496
  Ww(y, t, g[t]);
43497
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : y0(Object(g)).forEach(function(t) {
43497
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : b0(Object(g)).forEach(function(t) {
43498
43498
  Object.defineProperty(y, t, Object.getOwnPropertyDescriptor(g, t));
43499
43499
  });
43500
43500
  }
@@ -43519,7 +43519,7 @@ function Vw(y, d) {
43519
43519
  }
43520
43520
  return (d === "string" ? String : Number)(y);
43521
43521
  }
43522
- const oh = () => ex(), Sb = (y) => typeof y == "number";
43522
+ const ih = () => ex(), Sb = (y) => typeof y == "number";
43523
43523
  function ll(y) {
43524
43524
  let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
43525
43525
  const g = function() {
@@ -43529,7 +43529,7 @@ function ll(y) {
43529
43529
  };
43530
43530
  return Object.defineProperty(g, "name", { value: d, writable: !0 }), g;
43531
43531
  }
43532
- const Fa = (y) => y.__type === "root" || y.type === "root", b0 = (y) => Fa(y.getParent()), $n = (y) => y.__type === Qu.text || y.type === Qu.text || y.hasOwnProperty("__text") || y.hasOwnProperty("text"), js = (y) => (0, ye.$isElementNode)(y), Ns = (y) => (0, Cn.$isTableNode)(y) || (0, Cn.$isTableRowNode)(y) || (0, Cn.$isTableCellNode)(y), Kw = (y) => !y.getChildren, v0 = (y) => !!y.getChildren, wn = (y) => (0, ye.$isDecoratorNode)(y), nc = (y) => (0, V_.$isLinkNode)(y), rc = (y) => y.__type === "mark" || y.type === "mark", ih = (y) => (0, ye.$isLineBreakNode)(y), qi = (y) => $n(y) || ih(y), xp = (y) => y.__type === Qu.horizontalrule || y.type === Qu.horizontalrule, Eb = (y) => {
43532
+ const Fa = (y) => y.__type === "root" || y.type === "root", v0 = (y) => Fa(y.getParent()), $n = (y) => y.__type === Qu.text || y.type === Qu.text || y.hasOwnProperty("__text") || y.hasOwnProperty("text"), js = (y) => (0, ye.$isElementNode)(y), Ns = (y) => (0, Cn.$isTableNode)(y) || (0, Cn.$isTableRowNode)(y) || (0, Cn.$isTableCellNode)(y), Kw = (y) => !y.getChildren, _0 = (y) => !!y.getChildren, wn = (y) => (0, ye.$isDecoratorNode)(y), nc = (y) => (0, V_.$isLinkNode)(y), rc = (y) => y.__type === "mark" || y.type === "mark", ah = (y) => (0, ye.$isLineBreakNode)(y), qi = (y) => $n(y) || ah(y), xp = (y) => y.__type === Qu.horizontalrule || y.type === Qu.horizontalrule, Eb = (y) => {
43533
43533
  if (qi(y) || nc(y) || rc(y))
43534
43534
  return !1;
43535
43535
  if (!y.__parent || y.__parent === "root" || (0, ye.$isParagraphNode)(y))
@@ -43543,19 +43543,19 @@ const Fa = (y) => y.__type === "root" || y.type === "root", b0 = (y) => Fa(y.get
43543
43543
  const d = On.get(y.codoxId);
43544
43544
  return !d || y.__key === d.__key;
43545
43545
  }, Ks = function(y) {
43546
- const d = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null) || oh();
43546
+ const d = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null) || ih();
43547
43547
  y.codoxId = d, On.add(d, y);
43548
43548
  }, kb = (y) => {
43549
43549
  On.remove(y.codoxId), delete y.codoxId;
43550
43550
  }, Gw = (y) => {
43551
- if (!v0(y) || !y.getChildrenSize())
43551
+ if (!_0(y) || !y.getChildrenSize())
43552
43552
  return;
43553
43553
  const d = y.getChildren();
43554
43554
  if (d.some((f) => !!(0, ye.$isParagraphNode)(f)))
43555
43555
  return;
43556
43556
  let g = !1, t = [];
43557
43557
  for (let f of d)
43558
- (qi(f) || wn(f) || nc(f) || rc(f)) && !g && (xp(f) || (g = !0)), (v0(f) || wn(f)) && t.push(f);
43558
+ (qi(f) || wn(f) || nc(f) || rc(f)) && !g && (xp(f) || (g = !0)), (_0(f) || wn(f)) && t.push(f);
43559
43559
  for (let f of t)
43560
43560
  g || f.codoxId ? g && f.codoxId && (f = f.getWritable(), kb(f)) : (f = f.getWritable(), Ks(f));
43561
43561
  }, Yw = (y) => {
@@ -43576,7 +43576,7 @@ const Fa = (y) => y.__type === "root" || y.type === "root", b0 = (y) => Fa(y.get
43576
43576
  Ks(this);
43577
43577
  else
43578
43578
  this.codoxId && kb(this);
43579
- wn(this) && !this.codoxDId && (this.codoxDId = oh()), si.manageNestedEditorInLexicalNode(this);
43579
+ wn(this) && !this.codoxDId && (this.codoxDId = ih()), si.manageNestedEditorInLexicalNode(this);
43580
43580
  let f = this[d](g, t);
43581
43581
  return f.__codox_track = !0, f;
43582
43582
  };
@@ -43647,7 +43647,7 @@ var dS = (y) => {
43647
43647
  var d = {};
43648
43648
  return nn.d(d, y), d;
43649
43649
  };
43650
- const _0 = dS({ default: () => P_ });
43650
+ const x0 = dS({ default: () => P_ });
43651
43651
  var fS = (y) => {
43652
43652
  var d = {};
43653
43653
  return nn.d(d, y), d;
@@ -43667,7 +43667,7 @@ var bS = (y) => {
43667
43667
  var d = {};
43668
43668
  return nn.d(d, y), d;
43669
43669
  };
43670
- const x0 = bS({ $isRootTextContentEmpty: () => Zy, $rootTextContent: () => Yy });
43670
+ const w0 = bS({ $isRootTextContentEmpty: () => Zy, $rootTextContent: () => Yy });
43671
43671
  var vS = (y) => {
43672
43672
  var d = {};
43673
43673
  return nn.d(d, y), d;
@@ -43761,7 +43761,7 @@ function jS(y) {
43761
43761
  let { children: d, className: g } = y;
43762
43762
  return Gt.createElement("div", { className: g || "Placeholder__root" }, d);
43763
43763
  }
43764
- const NS = _0.default.LexicalErrorBoundary || _0.default, PS = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#050505", className: "codox-add-comment-right" }, Gt.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4.414A2 2 0 0 0 3 11.586l-2 2V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12.793a.5.5 0 0 0 .854.353l2.853-2.853A1 1 0 0 1 4.414 12H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }), Gt.createElement("path", { d: "M3 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zM3 6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 6zm0 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z" })), Ab = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "currentColor", className: "codox-remove-comment" }, Gt.createElement("path", { d: "M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z" })), IS = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "currentColor", className: "codox-add-comment" }, Gt.createElement("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" })), RS = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "#0000008c", className: "codox-hide-show-comments" }, Gt.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 5.885v1.166a3.95 3.95 0 0 1-3.949 3.95H6.917a.748.748 0 0 0-.45.15l-1.345 1.007a.752.752 0 0 0-.032 1.181A2.933 2.933 0 0 0 6.95 14h2.716l2.534 1.901a.506.506 0 0 0 .524.047A.501.501 0 0 0 13 15.5V14h.051a2.949 2.949 0 0 0 2.95-2.949v-3.05a3.002 3.002 0 0 0-2.002-2.83.756.756 0 0 0-.999.714" }), Gt.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.05 1H2.95A2.952 2.952 0 0 0 0 3.949v3.102A2.952 2.952 0 0 0 2.949 10H3v1.5a.502.502 0 0 0 .8.4L6.334 10H9.05A2.952 2.952 0 0 0 12 7.05V3.95A2.952 2.952 0 0 0 9.05 1" }));
43764
+ const NS = x0.default.LexicalErrorBoundary || x0.default, PS = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#050505", className: "codox-add-comment-right" }, Gt.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4.414A2 2 0 0 0 3 11.586l-2 2V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12.793a.5.5 0 0 0 .854.353l2.853-2.853A1 1 0 0 1 4.414 12H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }), Gt.createElement("path", { d: "M3 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zM3 6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 6zm0 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z" })), Ab = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "currentColor", className: "codox-remove-comment" }, Gt.createElement("path", { d: "M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z" })), IS = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "currentColor", className: "codox-add-comment" }, Gt.createElement("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" })), RS = () => Gt.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "#0000008c", className: "codox-hide-show-comments" }, Gt.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 5.885v1.166a3.95 3.95 0 0 1-3.949 3.95H6.917a.748.748 0 0 0-.45.15l-1.345 1.007a.752.752 0 0 0-.032 1.181A2.933 2.933 0 0 0 6.95 14h2.716l2.534 1.901a.506.506 0 0 0 .524.047A.501.501 0 0 0 13 15.5V14h.051a2.949 2.949 0 0 0 2.95-2.949v-3.05a3.002 3.002 0 0 0-2.002-2.83.756.756 0 0 0-.999.714" }), Gt.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.05 1H2.95A2.952 2.952 0 0 0 0 3.949v3.102A2.952 2.952 0 0 0 2.949 10H3v1.5a.502.502 0 0 0 .8.4L6.334 10H9.05A2.952 2.952 0 0 0 12 7.05V3.95A2.952 2.952 0 0 0 9.05 1" }));
43765
43765
  function jb(y, d, g) {
43766
43766
  let t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : performance.now(), f = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
43767
43767
  return Sn.createNewCommentObj({ content: y, author: d, codoxId: g, timeStamp: t, deleted: f });
@@ -43805,7 +43805,7 @@ function Nb(y) {
43805
43805
  function Pb(y, d) {
43806
43806
  return (0, Gt.useCallback)((g, t) => {
43807
43807
  g.read(() => {
43808
- y((0, x0.$rootTextContent)()), d(!(0, x0.$isRootTextContentEmpty)(t.isComposing(), !0));
43808
+ y((0, w0.$rootTextContent)()), d(!(0, w0.$isRootTextContentEmpty)(t.isComposing(), !0));
43809
43809
  });
43810
43810
  }, [d, y]);
43811
43811
  }
@@ -43877,7 +43877,7 @@ function Ib(y) {
43877
43877
  t();
43878
43878
  } }, "Cancel")));
43879
43879
  }
43880
- function w0(y) {
43880
+ function S0(y) {
43881
43881
  let { comment: d, deleteComment: g, thread: t, rtf: f } = y;
43882
43882
  const r = Math.round((d.timeStamp - performance.now()) / 1e3), n = Math.round(r / 60), [e, s] = Tb();
43883
43883
  return Gt.createElement("li", { className: "CodoxCommentPlugin_CommentsPanel_List_Comment" }, Gt.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_List_Details" }, Gt.createElement("span", { className: "CodoxCommentPlugin_CommentsPanel_List_Comment_Author" }, d.author), Gt.createElement("span", { className: "CodoxCommentPlugin_CommentsPanel_List_Comment_Time" }, "· ", r > -10 ? "Just now" : f.format(n, "minute"))), Gt.createElement("p", { className: d.deleted ? "CodoxCommentPlugin_CommentsPanel_DeletedComment" : "" }, d.content), !d.deleted && Gt.createElement(Gt.Fragment, null, Gt.createElement(ta, { onClick: () => {
@@ -43911,9 +43911,9 @@ function US(y) {
43911
43911
  };
43912
43912
  return Gt.createElement("li", { key: u, onClick: h, className: `CodoxCommentPlugin_CommentsPanel_List_Thread ${n.has(u) ? "interactive" : ""} ${d.indexOf(u) === -1 ? "" : "active"}` }, Gt.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_QuoteBox" }, Gt.createElement("blockquote", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Quote" }, "> ", Gt.createElement("span", null, c.quote)), Gt.createElement(ta, { onClick: () => {
43913
43913
  o("Delete Thread", (p) => Gt.createElement(Ib, { commentOrThread: c, deleteCommentOrThread: t, onClose: p }));
43914
- }, className: "CodoxCommentPlugin_CommentsPanel_List_DeleteButton" }, Gt.createElement(Ab, null)), l), Gt.createElement("ul", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Comments" }, c.comments.map((p) => Gt.createElement(w0, { key: p.codoxId, comment: p, deleteComment: t, thread: c, rtf: a }))), Gt.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Editor" }, Gt.createElement(zS, { submitAddComment: r, thread: c, placeholder: "Reply to comment..." })));
43914
+ }, className: "CodoxCommentPlugin_CommentsPanel_List_DeleteButton" }, Gt.createElement(Ab, null)), l), Gt.createElement("ul", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Comments" }, c.comments.map((p) => Gt.createElement(S0, { key: p.codoxId, comment: p, deleteComment: t, thread: c, rtf: a }))), Gt.createElement("div", { className: "CodoxCommentPlugin_CommentsPanel_List_Thread_Editor" }, Gt.createElement(zS, { submitAddComment: r, thread: c, placeholder: "Reply to comment..." })));
43915
43915
  }
43916
- return Gt.createElement(w0, { key: u, comment: c, deleteComment: t, rtf: a });
43916
+ return Gt.createElement(S0, { key: u, comment: c, deleteComment: t, rtf: a });
43917
43917
  }));
43918
43918
  }
43919
43919
  function $S(y) {
@@ -44051,7 +44051,7 @@ function qS(y) {
44051
44051
  t(e.target.value);
44052
44052
  }, "data-test-id": r }));
44053
44053
  }
44054
- function S0(y, d) {
44054
+ function E0(y, d) {
44055
44055
  var g = Object.keys(y);
44056
44056
  if (Object.getOwnPropertySymbols) {
44057
44057
  var t = Object.getOwnPropertySymbols(y);
@@ -44064,9 +44064,9 @@ function S0(y, d) {
44064
44064
  function mu(y) {
44065
44065
  for (var d = 1; d < arguments.length; d++) {
44066
44066
  var g = arguments[d] != null ? arguments[d] : {};
44067
- d % 2 ? S0(Object(g), !0).forEach(function(t) {
44067
+ d % 2 ? E0(Object(g), !0).forEach(function(t) {
44068
44068
  WS(y, t, g[t]);
44069
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : S0(Object(g)).forEach(function(t) {
44069
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(g)) : E0(Object(g)).forEach(function(t) {
44070
44070
  Object.defineProperty(y, t, Object.getOwnPropertyDescriptor(g, t));
44071
44071
  });
44072
44072
  }
@@ -44092,10 +44092,10 @@ function VS(y, d) {
44092
44092
  return (d === "string" ? String : Number)(y);
44093
44093
  }
44094
44094
  let oc = !1;
44095
- const KS = ["#d0021b", "#f5a623", "#f8e71c", "#8b572a", "#7ed321", "#417505", "#bd10e0", "#9013fe", "#4a90e2", "#50e3c2", "#b8e986", "#000000", "#4a4a4a", "#9b9b9b", "#ffffff"], Wl = 214, E0 = 150;
44095
+ const KS = ["#d0021b", "#f5a623", "#f8e71c", "#8b572a", "#7ed321", "#417505", "#bd10e0", "#9013fe", "#4a90e2", "#50e3c2", "#b8e986", "#000000", "#4a4a4a", "#9b9b9b", "#ffffff"], Wl = 214, C0 = 150;
44096
44096
  function GS(y) {
44097
44097
  let { color: d, onChange: g } = y;
44098
- const [t, f] = (0, Gt.useState)(Cs("hex", d)), [r, n] = (0, Gt.useState)(d), e = (0, Gt.useRef)(null), s = (0, Gt.useMemo)(() => ({ x: t.hsv.s / 100 * Wl, y: (100 - t.hsv.v) / 100 * E0 }), [t.hsv.s, t.hsv.v]), i = (0, Gt.useMemo)(() => ({ x: t.hsv.h / 360 * Wl }), [t.hsv]);
44098
+ const [t, f] = (0, Gt.useState)(Cs("hex", d)), [r, n] = (0, Gt.useState)(d), e = (0, Gt.useRef)(null), s = (0, Gt.useMemo)(() => ({ x: t.hsv.s / 100 * Wl, y: (100 - t.hsv.v) / 100 * C0 }), [t.hsv.s, t.hsv.v]), i = (0, Gt.useMemo)(() => ({ x: t.hsv.h / 360 * Wl }), [t.hsv]);
44099
44099
  return (0, Gt.useEffect)(() => {
44100
44100
  e.current !== null && g && n(t.hex);
44101
44101
  }, [t, g]), (0, Gt.useEffect)(() => {
@@ -44112,21 +44112,21 @@ function GS(y) {
44112
44112
  n(o);
44113
44113
  let a = Cs("hex", o);
44114
44114
  f(a), g(a.hex, oc);
44115
- })(l) }))), Gt.createElement(C0, { className: "codox-color-picker-saturation", style: { backgroundColor: `hsl(${t.hsv.h}, 100%, 50%)` }, onChange: (l) => {
44115
+ })(l) }))), Gt.createElement(k0, { className: "codox-color-picker-saturation", style: { backgroundColor: `hsl(${t.hsv.h}, 100%, 50%)` }, onChange: (l) => {
44116
44116
  let { x: o, y: a } = l;
44117
- const c = Cs("hsv", mu(mu({}, t.hsv), {}, { s: o / Wl * 100, v: 100 - a / E0 * 100 }));
44117
+ const c = Cs("hsv", mu(mu({}, t.hsv), {}, { s: o / Wl * 100, v: 100 - a / C0 * 100 }));
44118
44118
  f(c), n(c.hex), g(c.hex, oc);
44119
- } }, Gt.createElement("div", { className: "codox-color-picker-saturation_cursor", style: { backgroundColor: t.hex, left: s.x, top: s.y } })), Gt.createElement(C0, { className: "codox-color-picker-hue", onChange: (l) => {
44119
+ } }, Gt.createElement("div", { className: "codox-color-picker-saturation_cursor", style: { backgroundColor: t.hex, left: s.x, top: s.y } })), Gt.createElement(k0, { className: "codox-color-picker-hue", onChange: (l) => {
44120
44120
  let { x: o } = l;
44121
44121
  const a = Cs("hsv", mu(mu({}, t.hsv), {}, { h: o / Wl * 360 }));
44122
44122
  f(a), n(a.hex), g(a.hex, oc);
44123
44123
  } }, Gt.createElement("div", { className: "codox-color-picker-hue_cursor", style: { backgroundColor: `hsl(${t.hsv.h}, 100%, 50%)`, left: i.x } })), Gt.createElement("div", { className: "codox-color-picker-color", style: { backgroundColor: t.hex } }));
44124
44124
  }
44125
- function C0(y) {
44125
+ function k0(y) {
44126
44126
  let { className: d, style: g, onChange: t, children: f } = y;
44127
44127
  const r = (0, Gt.useRef)(null), n = (0, Gt.useRef)(!1), e = (s) => {
44128
44128
  if (r.current) {
44129
- const { current: i } = r, { width: l, height: o, left: a, top: c } = i.getBoundingClientRect(), u = k0(s.clientX - a, l, 0), h = k0(s.clientY - c, o, 0);
44129
+ const { current: i } = r, { width: l, height: o, left: a, top: c } = i.getBoundingClientRect(), u = O0(s.clientX - a, l, 0), h = O0(s.clientY - c, o, 0);
44130
44130
  t({ x: u, y: h });
44131
44131
  }
44132
44132
  };
@@ -44142,10 +44142,10 @@ function C0(y) {
44142
44142
  document.addEventListener("mousemove", i, !1), document.addEventListener("mouseup", l, !1);
44143
44143
  } }, f);
44144
44144
  }
44145
- function k0(y, d, g) {
44145
+ function O0(y, d, g) {
44146
44146
  return y > d ? d : y < g ? g : y;
44147
44147
  }
44148
- function O0(y) {
44148
+ function T0(y) {
44149
44149
  if (!y.startsWith("#")) {
44150
44150
  const d = document.createElement("canvas").getContext("2d");
44151
44151
  if (!d)
@@ -44154,7 +44154,7 @@ function O0(y) {
44154
44154
  }
44155
44155
  return y.length === 4 || y.length === 5 ? y = y.split("").map((d, g) => g ? d + d : "#").join("") : y.length === 7 || y.length === 9 ? y : "#000000";
44156
44156
  }
44157
- function T0(y) {
44157
+ function A0(y) {
44158
44158
  const d = (y.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (g, t, f, r) => "#" + t + t + f + f + r + r).substring(1).match(/.{2}/g) || []).map((g) => parseInt(g, 16));
44159
44159
  return { b: d[2], g: d[1], r: d[0] };
44160
44160
  }
@@ -44170,15 +44170,15 @@ function YS(y) {
44170
44170
  const f = ~~(d / 60), r = d / 60 - f, n = t * (1 - g), e = t * (1 - g * r), s = t * (1 - g * (1 - r)), i = f % 6, l = Math.round(255 * [t, e, n, n, s, t][i]), o = Math.round(255 * [s, t, t, e, n, n][i]);
44171
44171
  return { b: Math.round(255 * [n, n, s, t, t, e][i]), g: o, r: l };
44172
44172
  }
44173
- function A0(y) {
44173
+ function j0(y) {
44174
44174
  let { b: d, g, r: t } = y;
44175
44175
  return "#" + [t, g, d].map((f) => f.toString(16).padStart(2, "0")).join("");
44176
44176
  }
44177
44177
  function Cs(y, d) {
44178
- let g = O0("#121212"), t = T0(g), f = Uf(t);
44179
- return y === "hex" ? (g = O0(d), t = T0(g), f = Uf(t)) : y === "rgb" ? (t = d, g = A0(t), f = Uf(t)) : y === "hsv" && (f = d, t = YS(f), g = A0(t)), { hex: g, hsv: f, rgb: t };
44178
+ let g = T0("#121212"), t = A0(g), f = Uf(t);
44179
+ return y === "hex" ? (g = T0(d), t = A0(g), f = Uf(t)) : y === "rgb" ? (t = d, g = j0(t), f = Uf(t)) : y === "hsv" && (f = d, t = YS(f), g = j0(t)), { hex: g, hsv: f, rgb: t };
44180
44180
  }
44181
- const ZS = Gt.createContext(null), j0 = 4;
44181
+ const ZS = Gt.createContext(null), N0 = 4;
44182
44182
  function XS(y) {
44183
44183
  let { children: d, dropDownRef: g, onClose: t, dropdownClassName: f } = y;
44184
44184
  const [r, n] = (0, Gt.useState)(), [e, s] = (0, Gt.useState)(), i = (0, Gt.useCallback)((o) => {
@@ -44205,7 +44205,7 @@ function QS(y) {
44205
44205
  const h = a.current, p = o.current;
44206
44206
  if (c && h !== null && p !== null) {
44207
44207
  const { top: m, left: b } = h.getBoundingClientRect();
44208
- p.style.top = `${m + h.offsetHeight + j0}px`, p.style.left = `${Math.min(b, window.innerWidth - p.offsetWidth - 20)}px`;
44208
+ p.style.top = `${m + h.offsetHeight + N0}px`, p.style.left = `${Math.min(b, window.innerWidth - p.offsetWidth - 20)}px`;
44209
44209
  }
44210
44210
  }, [o, a, c]), (0, Gt.useEffect)(() => {
44211
44211
  const h = a.current;
@@ -44223,7 +44223,7 @@ function QS(y) {
44223
44223
  if (c) {
44224
44224
  const p = a.current, m = o.current;
44225
44225
  if (p !== null && m !== null) {
44226
- const { top: b } = p.getBoundingClientRect(), _ = b + p.offsetHeight + j0;
44226
+ const { top: b } = p.getBoundingClientRect(), _ = b + p.offsetHeight + N0;
44227
44227
  _ !== m.getBoundingClientRect().top && (m.style.top = `${_}px`);
44228
44228
  }
44229
44229
  }
@@ -44336,7 +44336,7 @@ var yu = u2(function(y) {
44336
44336
  });
44337
44337
  function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandler: g = !0 }) {
44338
44338
  const [t] = Ir();
44339
- return rr(() => (t.hasNodes([Do, Lo, Ka]) || yu(10), $o(t.registerCommand(g_, ({ columns: f, rows: r, includeHeaders: n }) => {
44339
+ return sr(() => (t.hasNodes([Do, Lo, Ka]) || yu(10), $o(t.registerCommand(g_, ({ columns: f, rows: r, includeHeaders: n }) => {
44340
44340
  const e = ub(Number(r), Number(f), n);
44341
44341
  Vy(e);
44342
44342
  const s = e.getFirstDescendant();
@@ -44350,10 +44350,10 @@ function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandle
44350
44350
  const i = r[e][s - 1].cell;
44351
44351
  for (let l = s; l < n; ++l) {
44352
44352
  const o = Xs(0);
44353
- o.append(or()), i !== null ? i.insertAfter(o) : Em(i, o);
44353
+ o.append(rr()), i !== null ? i.insertAfter(o) : Cm(i, o);
44354
44354
  }
44355
44355
  }
44356
- }))), [t]), rr(() => {
44356
+ }))), [t]), sr(() => {
44357
44357
  const f = /* @__PURE__ */ new Map(), r = (e) => {
44358
44358
  const s = e.getKey(), i = t.getElementByKey(s);
44359
44359
  if (i && !f.has(s)) {
@@ -44383,7 +44383,7 @@ function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandle
44383
44383
  for (const [, e] of f)
44384
44384
  e.removeListeners();
44385
44385
  };
44386
- }, [t, g]), rr(() => {
44386
+ }, [t, g]), sr(() => {
44387
44387
  if (!y)
44388
44388
  return t.registerNodeTransform(Lo, (f) => {
44389
44389
  if (f.getColSpan() > 1 || f.getRowSpan() > 1) {
@@ -44401,7 +44401,7 @@ function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandle
44401
44401
  else if (h.getColSpan() > 1 || h.getRowSpan() > 1) {
44402
44402
  rn(h) || yu(176);
44403
44403
  const p = Xs(h.__headerState);
44404
- a !== null ? a.insertAfter(p) : Em(i, p);
44404
+ a !== null ? a.insertAfter(p) : Cm(i, p);
44405
44405
  }
44406
44406
  }
44407
44407
  }
@@ -44409,7 +44409,7 @@ function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandle
44409
44409
  o.setColSpan(1), o.setRowSpan(1);
44410
44410
  }
44411
44411
  });
44412
- }, [t, y]), rr(() => {
44412
+ }, [t, y]), sr(() => {
44413
44413
  if (!d)
44414
44414
  return t.registerNodeTransform(Lo, (f) => {
44415
44415
  f.getBackgroundColor() !== null && f.setBackgroundColor(null);
@@ -44700,13 +44700,13 @@ function Hf() {
44700
44700
  return /* @__PURE__ */ Ee.jsx("div", { className: "divider" });
44701
44701
  }
44702
44702
  function E2() {
44703
- const [y] = Ir(), d = Ep(null), [g, t] = Ln(!1), [f, r] = Ln(!1), [n, e] = Ln(!1), [s, i] = Ln(!1), [l, o] = Ln(!1), [a, c] = Ln(!1), [u, h] = Ln(!1), [p, m] = Ln(!1), [b, _] = Ln("11px"), [v, w] = Ln(() => y.isEditable()), x = M0(() => {
44703
+ const [y] = Ir(), d = Cp(null), [g, t] = Ln(!1), [f, r] = Ln(!1), [n, e] = Ln(!1), [s, i] = Ln(!1), [l, o] = Ln(!1), [a, c] = Ln(!1), [u, h] = Ln(!1), [p, m] = Ln(!1), [b, _] = Ln("11px"), [v, w] = Ln(() => y.isEditable()), x = M0(() => {
44704
44704
  const S = Ae();
44705
44705
  xe(S) && (e(S.hasFormat("bold")), i(S.hasFormat("italic")), o(S.hasFormat("underline")), c(S.hasFormat("strikethrough")), h(S.hasFormat("subscript")), m(S.hasFormat("superscript")), _(
44706
44706
  Hy(S, "font-size", "11px")
44707
44707
  ));
44708
44708
  }, []);
44709
- return rr(() => $o(
44709
+ return sr(() => $o(
44710
44710
  y.registerUpdateListener(({ editorState: S }) => {
44711
44711
  S.read(() => {
44712
44712
  x();
@@ -44875,13 +44875,21 @@ const C2 = [
44875
44875
  Do,
44876
44876
  Ka,
44877
44877
  Lo
44878
- ], N0 = l2([...C2]);
44878
+ ], Ep = l2([...C2]);
44879
44879
  function k2() {
44880
44880
  return /* @__PURE__ */ Ee.jsx("div", { className: "editor-placeholder" });
44881
44881
  }
44882
- const O2 = () => /* @__PURE__ */ Ee.jsx(Ee.Fragment, { children: "hello" });
44883
- function N2({ collabApiKey: y, spfList: d, userObj: g }) {
44884
- const [t, f] = Ln(!1), [r, n] = Ln([]), [e, s] = Ln("demo_docId_1"), [i, l] = Ln({ root: null }), { userId: o, userName: a, userEmail: c } = g, u = Ep(), p = {
44882
+ const O2 = {
44883
+ namespace: "React.js Demo",
44884
+ nodes: Ep,
44885
+ onError(y) {
44886
+ throw y;
44887
+ },
44888
+ // The editor theme
44889
+ theme: f2
44890
+ }, T2 = () => /* @__PURE__ */ Ee.jsx(Ee.Fragment, { children: "hello" });
44891
+ function P2({ collabApiKey: y, spfList: d, userObj: g }) {
44892
+ const [t, f] = Ln(!1), [r, n] = Ln([]), [e, s] = Ln("demo_docId_1"), [i, l] = Ln({ root: null }), { userId: o, userName: a, userEmail: c } = g, u = Cp(), p = {
44885
44893
  docId: e,
44886
44894
  apiKey: y,
44887
44895
  user: {
@@ -44890,18 +44898,18 @@ function N2({ collabApiKey: y, spfList: d, userObj: g }) {
44890
44898
  email: c
44891
44899
  },
44892
44900
  hooks: {
44893
- contentChanged: ({ source: x, content: S }) => {
44901
+ contentChanged: ({ source: w, content: x }) => {
44894
44902
  },
44895
- usersUpdate: (x) => {
44896
- n(x);
44903
+ usersUpdate: (w) => {
44904
+ n(w);
44897
44905
  }
44898
44906
  }
44899
44907
  }, m = () => {
44900
44908
  u.current && u.current.start(p).then(() => {
44901
44909
  console.log("[Lexical Demo][codox.start] success"), f(!0);
44902
- }).catch((x) => console.log("[Lexical Demo][codox.start] error", x));
44910
+ }).catch((w) => console.log("[Lexical Demo][codox.start] error", w));
44903
44911
  };
44904
- rr(
44912
+ sr(
44905
44913
  () => () => {
44906
44914
  b();
44907
44915
  },
@@ -44931,48 +44939,46 @@ function N2({ collabApiKey: y, spfList: d, userObj: g }) {
44931
44939
  version: 1
44932
44940
  }
44933
44941
  };
44934
- rr(() => {
44942
+ sr(() => {
44935
44943
  (async () => {
44936
44944
  if (!e)
44937
44945
  return;
44938
44946
  t && b();
44939
- let x = _;
44940
- if (x)
44947
+ let w = _;
44948
+ if (w)
44941
44949
  try {
44942
- c2(x, N0), l(x);
44943
- } catch (S) {
44944
- console.error("[APP] error: ", S);
44950
+ c2(w, Ep), console.log("afsjdjs"), l(w);
44951
+ } catch (x) {
44952
+ console.error("[APP] error: ", x);
44945
44953
  }
44946
44954
  })();
44947
- }, [e]), rr(() => {
44948
- console.log("inside lexical package spfList is ", d, u);
44949
- }, [d]), rr(() => {
44955
+ }, [e]), sr(() => {
44950
44956
  i && e && !t && m();
44951
- }, [i, e, t]);
44952
- const v = el(
44957
+ }, [i, e, t]), el(
44953
44958
  () => ({
44954
44959
  editorState: i ? JSON.stringify({ root: i.root }) : null,
44955
44960
  namespace: "Playground",
44956
- nodes: N0,
44957
- onError: (x) => {
44958
- throw x;
44961
+ nodes: Ep,
44962
+ onError: (w) => {
44963
+ throw w;
44959
44964
  },
44960
- theme: f2
44965
+ theme: {}
44961
44966
  }),
44962
44967
  [i]
44963
- ), w = () => {
44964
- let x = [], S = [];
44965
- return r && r.length > 0 && r.map((C, k) => {
44966
- S.includes(C.name) || (S.push(C.name), x.push(
44967
- /* @__PURE__ */ Ee.jsxs("div", { title: C.email, className: `avatarStyle avatar-color-${k + 1}`, children: [
44968
+ );
44969
+ const v = () => {
44970
+ let w = [], x = [];
44971
+ return r && r.length > 0 && r.map((S, C) => {
44972
+ x.includes(S.name) || (x.push(S.name), w.push(
44973
+ /* @__PURE__ */ Ee.jsxs("div", { title: S.email, className: `avatarStyle avatar-color-${C + 1}`, children: [
44968
44974
  " ",
44969
- C.name && C.name[0]
44970
- ] })
44975
+ S.name && S.name[0]
44976
+ ] }, C)
44971
44977
  ));
44972
- }), /* @__PURE__ */ Ee.jsx("div", { className: "flexContainer", children: x });
44978
+ }), /* @__PURE__ */ Ee.jsx("div", { className: "flexContainer", children: w });
44973
44979
  };
44974
- return /* @__PURE__ */ Ee.jsx("div", { children: /* @__PURE__ */ Ee.jsxs(Dy, { initialConfig: v, children: [
44975
- w(),
44980
+ return /* @__PURE__ */ Ee.jsx("div", { children: /* @__PURE__ */ Ee.jsxs(Dy, { initialConfig: O2, children: [
44981
+ v(),
44976
44982
  /* @__PURE__ */ Ee.jsxs("div", { className: "editor-container", children: [
44977
44983
  /* @__PURE__ */ Ee.jsx(E2, {}),
44978
44984
  /* @__PURE__ */ Ee.jsxs("div", { className: "editor-inner", children: [
@@ -44981,7 +44987,7 @@ function N2({ collabApiKey: y, spfList: d, userObj: g }) {
44981
44987
  {
44982
44988
  contentEditable: /* @__PURE__ */ Ee.jsx(By, { className: "editor-input" }),
44983
44989
  placeholder: /* @__PURE__ */ Ee.jsx(k2, {}),
44984
- ErrorBoundary: O2
44990
+ ErrorBoundary: T2
44985
44991
  }
44986
44992
  ),
44987
44993
  /* @__PURE__ */ Ee.jsx(
@@ -44998,6 +45004,6 @@ function N2({ collabApiKey: y, spfList: d, userObj: g }) {
44998
45004
  ] }) });
44999
45005
  }
45000
45006
  export {
45001
- N2 as Editor
45007
+ P2 as Editor
45002
45008
  };
45003
45009
  //# sourceMappingURL=index.es.js.map