@fileverse-dev/ddoc 4.0.2-accessibility-1 → 4.0.2-patch-1

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.
@@ -3847,7 +3847,7 @@ class E1 {
3847
3847
  }
3848
3848
  }
3849
3849
  const F4 = /* @__PURE__ */ Object.create(null);
3850
- class So {
3850
+ class _o {
3851
3851
  /**
3852
3852
  Get the step map that represents the changes made by this step,
3853
3853
  and which can be used to transform between positions in the old
@@ -3930,7 +3930,7 @@ function _8(e, t, n) {
3930
3930
  }
3931
3931
  return Ue.fromArray(r);
3932
3932
  }
3933
- class Lu extends So {
3933
+ class Lu extends _o {
3934
3934
  /**
3935
3935
  Create a mark step.
3936
3936
  */
@@ -3968,8 +3968,8 @@ class Lu extends So {
3968
3968
  return new Lu(n.from, n.to, t.markFromJSON(n.mark));
3969
3969
  }
3970
3970
  }
3971
- So.jsonID("addMark", Lu);
3972
- class Is extends So {
3971
+ _o.jsonID("addMark", Lu);
3972
+ class Is extends _o {
3973
3973
  /**
3974
3974
  Create a mark-removing step.
3975
3975
  */
@@ -4007,8 +4007,8 @@ class Is extends So {
4007
4007
  return new Is(n.from, n.to, t.markFromJSON(n.mark));
4008
4008
  }
4009
4009
  }
4010
- So.jsonID("removeMark", Is);
4011
- class Uu extends So {
4010
+ _o.jsonID("removeMark", Is);
4011
+ class Uu extends _o {
4012
4012
  /**
4013
4013
  Create a node mark step.
4014
4014
  */
@@ -4051,8 +4051,8 @@ class Uu extends So {
4051
4051
  return new Uu(n.pos, t.markFromJSON(n.mark));
4052
4052
  }
4053
4053
  }
4054
- So.jsonID("addNodeMark", Uu);
4055
- class Ud extends So {
4054
+ _o.jsonID("addNodeMark", Uu);
4055
+ class Ud extends _o {
4056
4056
  /**
4057
4057
  Create a mark-removing step.
4058
4058
  */
@@ -4086,8 +4086,8 @@ class Ud extends So {
4086
4086
  return new Ud(n.pos, t.markFromJSON(n.mark));
4087
4087
  }
4088
4088
  }
4089
- So.jsonID("removeNodeMark", Ud);
4090
- class jr extends So {
4089
+ _o.jsonID("removeNodeMark", Ud);
4090
+ class jr extends _o {
4091
4091
  /**
4092
4092
  The given `slice` should fit the 'gap' between `from` and
4093
4093
  `to`—the depths must line up, and the surrounding nodes must be
@@ -4138,8 +4138,8 @@ class jr extends So {
4138
4138
  return new jr(n.from, n.to, rt.fromJSON(t, n.slice), !!n.structure);
4139
4139
  }
4140
4140
  }
4141
- So.jsonID("replace", jr);
4142
- class Wr extends So {
4141
+ _o.jsonID("replace", jr);
4142
+ class Wr extends _o {
4143
4143
  /**
4144
4144
  Create a replace-around step with the given range and gap.
4145
4145
  `insert` should be the point in the slice into which the content
@@ -4196,7 +4196,7 @@ class Wr extends So {
4196
4196
  return new Wr(n.from, n.to, n.gapFrom, n.gapTo, rt.fromJSON(t, n.slice), n.insert, !!n.structure);
4197
4197
  }
4198
4198
  }
4199
- So.jsonID("replaceAround", Wr);
4199
+ _o.jsonID("replaceAround", Wr);
4200
4200
  function D5(e, t, n) {
4201
4201
  let r = e.resolve(t), o = n - t, i = r.depth;
4202
4202
  for (; o > 0 && i > 0 && r.indexAfter(i) == r.node(i).childCount; )
@@ -4783,7 +4783,7 @@ function OU(e, t) {
4783
4783
  }
4784
4784
  return n;
4785
4785
  }
4786
- class ph extends So {
4786
+ class ph extends _o {
4787
4787
  /**
4788
4788
  Construct an attribute step.
4789
4789
  */
@@ -4820,8 +4820,8 @@ class ph extends So {
4820
4820
  return new ph(n.pos, n.attr, n.value);
4821
4821
  }
4822
4822
  }
4823
- So.jsonID("attr", ph);
4824
- class C1 extends So {
4823
+ _o.jsonID("attr", ph);
4824
+ class C1 extends _o {
4825
4825
  /**
4826
4826
  Construct an attribute step.
4827
4827
  */
@@ -4854,7 +4854,7 @@ class C1 extends So {
4854
4854
  return new C1(n.attr, n.value);
4855
4855
  }
4856
4856
  }
4857
- So.jsonID("docAttr", C1);
4857
+ _o.jsonID("docAttr", C1);
4858
4858
  let Bh = class extends Error {
4859
4859
  };
4860
4860
  Bh = function e(t) {
@@ -6454,7 +6454,7 @@ function hie(e, t, n) {
6454
6454
  }
6455
6455
  const Pa = typeof navigator < "u" ? navigator : null, R_ = typeof document < "u" ? document : null, Ec = Pa && Pa.userAgent || "", E5 = /Edge\/(\d+)/.exec(Ec), YU = /MSIE \d/.exec(Ec), C5 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ec), pi = !!(YU || C5 || E5), Ku = YU ? document.documentMode : C5 ? +C5[1] : E5 ? +E5[1] : 0, fs = !pi && /gecko\/(\d+)/i.test(Ec);
6456
6456
  fs && +(/Firefox\/(\d+)/.exec(Ec) || [0, 0])[1];
6457
- const A5 = !pi && /Chrome\/(\d+)/.exec(Ec), vo = !!A5, ZU = A5 ? +A5[1] : 0, qo = !pi && !!Pa && /Apple Computer/.test(Pa.vendor), Oh = qo && (/Mobile\/\w+/.test(Ec) || !!Pa && Pa.maxTouchPoints > 2), ss = Oh || (Pa ? /Mac/.test(Pa.platform) : !1), fie = Pa ? /Win/.test(Pa.platform) : !1, kl = /Android \d/.test(Ec), Ig = !!R_ && "webkitFontSmoothing" in R_.documentElement.style, gie = Ig ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6457
+ const A5 = !pi && /Chrome\/(\d+)/.exec(Ec), vo = !!A5, ZU = A5 ? +A5[1] : 0, Wo = !pi && !!Pa && /Apple Computer/.test(Pa.vendor), Oh = Wo && (/Mobile\/\w+/.test(Ec) || !!Pa && Pa.maxTouchPoints > 2), ss = Oh || (Pa ? /Mac/.test(Pa.platform) : !1), fie = Pa ? /Win/.test(Pa.platform) : !1, kl = /Android \d/.test(Ec), Ig = !!R_ && "webkitFontSmoothing" in R_.documentElement.style, gie = Ig ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6458
6458
  function mie(e) {
6459
6459
  let t = e.defaultView && e.defaultView.visualViewport;
6460
6460
  return t ? {
@@ -6640,7 +6640,7 @@ function Eie(e, t) {
6640
6640
  if (!U8(t, u) || (s = tP(e.dom, t, u), !s))
6641
6641
  return null;
6642
6642
  }
6643
- if (qo)
6643
+ if (Wo)
6644
6644
  for (let u = s; r && u; u = Mh(u))
6645
6645
  u.draggable && (r = void 0);
6646
6646
  if (s = wie(s, t), r) {
@@ -7048,7 +7048,7 @@ class Rg {
7048
7048
  f = m;
7049
7049
  }
7050
7050
  let a = this.domFromPos(t, t ? -1 : 1), l = n == t ? a : this.domFromPos(n, n ? -1 : 1), u = r.root.getSelection(), c = r.domSelectionRange(), d = !1;
7051
- if ((fs || qo) && t == n) {
7051
+ if ((fs || Wo) && t == n) {
7052
7052
  let { node: h, offset: f } = a;
7053
7053
  if (h.nodeType == 3) {
7054
7054
  if (d = !!(f && h.nodeValue[f - 1] == `
@@ -7071,7 +7071,7 @@ class Rg {
7071
7071
  let h = c.focusNode.childNodes[c.focusOffset];
7072
7072
  h && h.contentEditable == "false" && (o = !0);
7073
7073
  }
7074
- if (!(o || d && qo) && Pd(a.node, a.offset, c.anchorNode, c.anchorOffset) && Pd(l.node, l.offset, c.focusNode, c.focusOffset))
7074
+ if (!(o || d && Wo) && Pd(a.node, a.offset, c.anchorNode, c.anchorOffset) && Pd(l.node, l.offset, c.focusNode, c.focusOffset))
7075
7075
  return;
7076
7076
  let p = !1;
7077
7077
  if ((u.extend || t == n) && !(d && fs)) {
@@ -7676,7 +7676,7 @@ class Mie {
7676
7676
  for (; t instanceof zd; )
7677
7677
  n = t, t = n.children[n.children.length - 1];
7678
7678
  (!t || // Empty textblock
7679
- !(t instanceof Gx) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((qo || vo) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
7679
+ !(t instanceof Gx) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((Wo || vo) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
7680
7680
  }
7681
7681
  addHackNode(t, n) {
7682
7682
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(t))
@@ -7868,10 +7868,10 @@ function Tl(e, t = !1) {
7868
7868
  e.domObserver.setCurSelection(), e.domObserver.connectSelection();
7869
7869
  }
7870
7870
  }
7871
- const V_ = qo || vo && ZU < 63;
7871
+ const V_ = Wo || vo && ZU < 63;
7872
7872
  function K_(e, t) {
7873
7873
  let { node: n, offset: r } = e.docView.domFromPos(t, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
7874
- if (qo && o && o.contentEditable == "false")
7874
+ if (Wo && o && o.contentEditable == "false")
7875
7875
  return _4(o);
7876
7876
  if ((!o || o.contentEditable == "false") && (!i || i.contentEditable == "false")) {
7877
7877
  if (o)
@@ -7881,7 +7881,7 @@ function K_(e, t) {
7881
7881
  }
7882
7882
  }
7883
7883
  function _4(e) {
7884
- return e.contentEditable = "true", qo && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
7884
+ return e.contentEditable = "true", Wo && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
7885
7885
  }
7886
7886
  function G_(e) {
7887
7887
  e.contentEditable = "false", e.wasDraggable && (e.draggable = !0, e.wasDraggable = null);
@@ -8148,7 +8148,7 @@ function tS(e, t, n) {
8148
8148
  e.domObserver.stop(), t.contentEditable = n, e.domObserver.start();
8149
8149
  }
8150
8150
  function Kie(e) {
8151
- if (!qo || e.state.selection.$head.parentOffset > 0)
8151
+ if (!Wo || e.state.selection.$head.parentOffset > 0)
8152
8152
  return !1;
8153
8153
  let { focusNode: t, focusOffset: n } = e.domSelectionRange();
8154
8154
  if (t && t.nodeType == 1 && n == 0 && t.firstChild && t.firstChild.contentEditable == "false") {
@@ -8375,20 +8375,20 @@ function tse(e, t) {
8375
8375
  }
8376
8376
  return new rt(o, i, s);
8377
8377
  }
8378
- const Vo = {}, Ko = {}, nse = { touchstart: !0, touchmove: !0 };
8378
+ const qo = {}, Vo = {}, nse = { touchstart: !0, touchmove: !0 };
8379
8379
  class rse {
8380
8380
  constructor() {
8381
8381
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "", button: 0 }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
8382
8382
  }
8383
8383
  }
8384
8384
  function ose(e) {
8385
- for (let t in Vo) {
8386
- let n = Vo[t];
8385
+ for (let t in qo) {
8386
+ let n = qo[t];
8387
8387
  e.dom.addEventListener(t, e.input.eventHandlers[t] = (r) => {
8388
- sse(e, r) && !H8(e, r) && (e.editable || !(r.type in Ko)) && n(e, r);
8388
+ sse(e, r) && !H8(e, r) && (e.editable || !(r.type in Vo)) && n(e, r);
8389
8389
  }, nse[t] ? { passive: !0 } : void 0);
8390
8390
  }
8391
- qo && e.dom.addEventListener("input", () => null), N5(e);
8391
+ Wo && e.dom.addEventListener("input", () => null), N5(e);
8392
8392
  }
8393
8393
  function Pu(e, t) {
8394
8394
  e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
@@ -8422,9 +8422,9 @@ function sse(e, t) {
8422
8422
  return !0;
8423
8423
  }
8424
8424
  function ase(e, t) {
8425
- !H8(e, t) && Vo[t.type] && (e.editable || !(t.type in Ko)) && Vo[t.type](e, t);
8425
+ !H8(e, t) && qo[t.type] && (e.editable || !(t.type in Vo)) && qo[t.type](e, t);
8426
8426
  }
8427
- Ko.keydown = (e, t) => {
8427
+ Vo.keydown = (e, t) => {
8428
8428
  let n = t;
8429
8429
  if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !vP(e, n) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(kl && vo && n.keyCode == 13)))
8430
8430
  if (n.keyCode != 229 && e.domObserver.forceFlush(), Oh && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
@@ -8434,10 +8434,10 @@ Ko.keydown = (e, t) => {
8434
8434
  }, 200);
8435
8435
  } else e.someProp("handleKeyDown", (r) => r(e, n)) || Xie(e, n) ? n.preventDefault() : Pu(e, "key");
8436
8436
  };
8437
- Ko.keyup = (e, t) => {
8437
+ Vo.keyup = (e, t) => {
8438
8438
  t.keyCode == 16 && (e.input.shiftKey = !1);
8439
8439
  };
8440
- Ko.keypress = (e, t) => {
8440
+ Vo.keypress = (e, t) => {
8441
8441
  let n = t;
8442
8442
  if (vP(e, n) || !n.charCode || n.ctrlKey && !n.altKey || ss && n.metaKey)
8443
8443
  return;
@@ -8525,7 +8525,7 @@ function q8(e) {
8525
8525
  return Pb(e);
8526
8526
  }
8527
8527
  const xP = ss ? "metaKey" : "ctrlKey";
8528
- Vo.mousedown = (e, t) => {
8528
+ qo.mousedown = (e, t) => {
8529
8529
  let n = t;
8530
8530
  e.input.shiftKey = n.shiftKey;
8531
8531
  let r = q8(e), o = Date.now(), i = "singleClick";
@@ -8563,7 +8563,7 @@ class gse {
8563
8563
  return;
8564
8564
  let n = this.pos;
8565
8565
  this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Xx(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Pu(this.view, "pointer") : dse(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
8566
- qo && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
8566
+ Wo && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
8567
8567
  // cursor, but still report that the node is selected
8568
8568
  // when asked through getSelection. You'll then get a
8569
8569
  // situation where clicking at the point where that
@@ -8579,18 +8579,18 @@ class gse {
8579
8579
  !this.allowDefault && (Math.abs(this.event.x - t.clientX) > 4 || Math.abs(this.event.y - t.clientY) > 4) && (this.allowDefault = !0);
8580
8580
  }
8581
8581
  }
8582
- Vo.touchstart = (e) => {
8582
+ qo.touchstart = (e) => {
8583
8583
  e.input.lastTouch = Date.now(), q8(e), Pu(e, "pointer");
8584
8584
  };
8585
- Vo.touchmove = (e) => {
8585
+ qo.touchmove = (e) => {
8586
8586
  e.input.lastTouch = Date.now(), Pu(e, "pointer");
8587
8587
  };
8588
- Vo.contextmenu = (e) => q8(e);
8588
+ qo.contextmenu = (e) => q8(e);
8589
8589
  function vP(e, t) {
8590
- return e.composing ? !0 : qo && Math.abs(t.timeStamp - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
8590
+ return e.composing ? !0 : Wo && Math.abs(t.timeStamp - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
8591
8591
  }
8592
8592
  const mse = kl ? 5e3 : -1;
8593
- Ko.compositionstart = Ko.compositionupdate = (e) => {
8593
+ Vo.compositionstart = Vo.compositionupdate = (e) => {
8594
8594
  if (!e.composing) {
8595
8595
  e.domObserver.flush();
8596
8596
  let { state: t } = e, n = t.selection.$to;
@@ -8614,7 +8614,7 @@ Ko.compositionstart = Ko.compositionupdate = (e) => {
8614
8614
  }
8615
8615
  FP(e, mse);
8616
8616
  };
8617
- Ko.compositionend = (e, t) => {
8617
+ Vo.compositionend = (e, t) => {
8618
8618
  e.composing && (e.input.composing = !1, e.input.compositionEndedAt = t.timeStamp, e.input.compositionPendingChanges = e.domObserver.pendingRecords().length ? e.input.compositionID : 0, e.input.compositionNode = null, e.input.compositionPendingChanges && Promise.resolve().then(() => e.domObserver.flush()), e.input.compositionID++, FP(e, 20));
8619
8619
  };
8620
8620
  function FP(e, t) {
@@ -8667,7 +8667,7 @@ function xse(e, t) {
8667
8667
  }, 50);
8668
8668
  }
8669
8669
  const A1 = pi && Ku < 15 || Oh && gie < 604;
8670
- Vo.copy = Ko.cut = (e, t) => {
8670
+ qo.copy = Vo.cut = (e, t) => {
8671
8671
  let n = t, r = e.state.selection, o = n.type == "cut";
8672
8672
  if (r.empty)
8673
8673
  return;
@@ -8703,7 +8703,7 @@ function DP(e) {
8703
8703
  let n = e.getData("text/uri-list");
8704
8704
  return n ? n.replace(/\r?\n/g, " ") : "";
8705
8705
  }
8706
- Ko.paste = (e, t) => {
8706
+ Vo.paste = (e, t) => {
8707
8707
  let n = t;
8708
8708
  if (e.composing && !kl)
8709
8709
  return;
@@ -8720,7 +8720,7 @@ function EP(e, t) {
8720
8720
  let n = e.someProp("dragCopies", (r) => !r(t));
8721
8721
  return n ?? !t[wse];
8722
8722
  }
8723
- Vo.dragstart = (e, t) => {
8723
+ qo.dragstart = (e, t) => {
8724
8724
  let n = t, r = e.input.mouseDown;
8725
8725
  if (r && r.done(), !n.dataTransfer)
8726
8726
  return;
@@ -8736,14 +8736,14 @@ Vo.dragstart = (e, t) => {
8736
8736
  let a = (s || e.state.selection).content(), { dom: l, text: u, slice: c } = $8(e, a);
8737
8737
  (!n.dataTransfer.files.length || !vo || ZU > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(A1 ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", A1 || n.dataTransfer.setData("text/plain", u), e.dragging = new kP(c, EP(e, n), s);
8738
8738
  };
8739
- Vo.dragend = (e) => {
8739
+ qo.dragend = (e) => {
8740
8740
  let t = e.dragging;
8741
8741
  window.setTimeout(() => {
8742
8742
  e.dragging == t && (e.dragging = null);
8743
8743
  }, 50);
8744
8744
  };
8745
- Ko.dragover = Ko.dragenter = (e, t) => t.preventDefault();
8746
- Ko.drop = (e, t) => {
8745
+ Vo.dragover = Vo.dragenter = (e, t) => t.preventDefault();
8746
+ Vo.drop = (e, t) => {
8747
8747
  let n = t, r = e.dragging;
8748
8748
  if (e.dragging = null, !n.dataTransfer)
8749
8749
  return;
@@ -8781,16 +8781,16 @@ Ko.drop = (e, t) => {
8781
8781
  }
8782
8782
  e.focus(), e.dispatch(u.setMeta("uiEvent", "drop"));
8783
8783
  };
8784
- Vo.focus = (e) => {
8784
+ qo.focus = (e) => {
8785
8785
  e.input.lastFocus = Date.now(), e.focused || (e.domObserver.stop(), e.dom.classList.add("ProseMirror-focused"), e.domObserver.start(), e.focused = !0, setTimeout(() => {
8786
8786
  e.docView && e.hasFocus() && !e.domObserver.currentSelection.eq(e.domSelectionRange()) && Tl(e);
8787
8787
  }, 20));
8788
8788
  };
8789
- Vo.blur = (e, t) => {
8789
+ qo.blur = (e, t) => {
8790
8790
  let n = t;
8791
8791
  e.focused && (e.domObserver.stop(), e.dom.classList.remove("ProseMirror-focused"), e.domObserver.start(), n.relatedTarget && e.dom.contains(n.relatedTarget) && e.domObserver.currentSelection.clear(), e.focused = !1);
8792
8792
  };
8793
- Vo.beforeinput = (e, t) => {
8793
+ qo.beforeinput = (e, t) => {
8794
8794
  if (vo && kl && t.inputType == "deleteContentBackward") {
8795
8795
  e.domObserver.flushSoon();
8796
8796
  let { domChangeCount: r } = e.input;
@@ -8802,8 +8802,8 @@ Vo.beforeinput = (e, t) => {
8802
8802
  }, 50);
8803
8803
  }
8804
8804
  };
8805
- for (let e in Ko)
8806
- Vo[e] = Ko[e];
8805
+ for (let e in Vo)
8806
+ qo[e] = Vo[e];
8807
8807
  function S1(e, t) {
8808
8808
  if (e == t)
8809
8809
  return !0;
@@ -9542,10 +9542,10 @@ function Mse(e) {
9542
9542
  if (t)
9543
9543
  return t.parseRule();
9544
9544
  if (e.nodeName == "BR" && e.parentNode) {
9545
- if (qo && /^(ul|ol)$/i.test(e.parentNode.nodeName)) {
9545
+ if (Wo && /^(ul|ol)$/i.test(e.parentNode.nodeName)) {
9546
9546
  let n = document.createElement("div");
9547
9547
  return n.appendChild(document.createElement("li")), { skip: n };
9548
- } else if (e.parentNode.lastChild == e || qo && /^(tr|table)$/i.test(e.parentNode.nodeName))
9548
+ } else if (e.parentNode.lastChild == e || Wo && /^(tr|table)$/i.test(e.parentNode.nodeName))
9549
9549
  return { ignore: !0 };
9550
9550
  } else if (e.nodeName == "IMG" && e.getAttribute("mark-placeholder"))
9551
9551
  return { ignore: !0 };
@@ -10024,7 +10024,7 @@ class TP {
10024
10024
  */
10025
10025
  domSelectionRange() {
10026
10026
  let t = this.domSelection();
10027
- return t ? qo && this.root.nodeType === 11 && pie(this.dom.ownerDocument) == this.dom && jse(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
10027
+ return t ? Wo && this.root.nodeType === 11 && pie(this.dom.ownerDocument) == this.dom && jse(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
10028
10028
  }
10029
10029
  /**
10030
10030
  @internal
@@ -14639,7 +14639,7 @@ var aue = class extends $le {
14639
14639
  function Yl(e, t) {
14640
14640
  return (n) => n.editor.contentComponent ? new aue(e, n, t) : {};
14641
14641
  }
14642
- const fz = ["top", "right", "bottom", "left"], _S = ["start", "end"], SS = /* @__PURE__ */ fz.reduce((e, t) => e.concat(t, t + "-" + _S[0], t + "-" + _S[1]), []), $a = Math.min, Po = Math.max, qb = Math.round, Na = (e) => ({
14642
+ const fz = ["top", "right", "bottom", "left"], _S = ["start", "end"], SS = /* @__PURE__ */ fz.reduce((e, t) => e.concat(t, t + "-" + _S[0], t + "-" + _S[1]), []), $a = Math.min, Lo = Math.max, qb = Math.round, Na = (e) => ({
14643
14643
  x: e,
14644
14644
  y: e
14645
14645
  }), lue = {
@@ -14652,7 +14652,7 @@ const fz = ["top", "right", "bottom", "left"], _S = ["start", "end"], SS = /* @_
14652
14652
  end: "start"
14653
14653
  };
14654
14654
  function H5(e, t, n) {
14655
- return Po(e, $a(t, n));
14655
+ return Lo(e, $a(t, n));
14656
14656
  }
14657
14657
  function Zl(e, t) {
14658
14658
  return typeof e == "function" ? e(t) : e;
@@ -15144,7 +15144,7 @@ const wue = function(e) {
15144
15144
  };
15145
15145
  };
15146
15146
  function bz(e) {
15147
- const t = $a(...e.map((i) => i.left)), n = $a(...e.map((i) => i.top)), r = Po(...e.map((i) => i.right)), o = Po(...e.map((i) => i.bottom));
15147
+ const t = $a(...e.map((i) => i.left)), n = $a(...e.map((i) => i.top)), r = Lo(...e.map((i) => i.right)), o = Lo(...e.map((i) => i.bottom));
15148
15148
  return {
15149
15149
  x: t,
15150
15150
  y: n,
@@ -15194,7 +15194,7 @@ const kue = function(e) {
15194
15194
  y: M
15195
15195
  };
15196
15196
  }
15197
- const m = xs(n) === "left", b = Po(...d.map((N) => N.right)), y = $a(...d.map((N) => N.left)), F = d.filter((N) => m ? N.left === y : N.right === b), v = F[0].top, w = F[F.length - 1].bottom, D = y, k = b, E = k - D, _ = w - v;
15197
+ const m = xs(n) === "left", b = Lo(...d.map((N) => N.right)), y = $a(...d.map((N) => N.left)), F = d.filter((N) => m ? N.left === y : N.right === b), v = F[0].top, w = F[F.length - 1].bottom, D = y, k = b, E = k - D, _ = w - v;
15198
15198
  return {
15199
15199
  top: v,
15200
15200
  bottom: w,
@@ -15352,8 +15352,8 @@ const Aue = function(e) {
15352
15352
  const y = g - c.top - c.bottom, F = f - c.left - c.right, v = $a(g - c[m], y), w = $a(f - c[b], F), D = !t.middlewareData.shift;
15353
15353
  let k = v, E = w;
15354
15354
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (E = F), (r = t.middlewareData.shift) != null && r.enabled.y && (k = y), D && !p) {
15355
- const N = Po(c.left, 0), O = Po(c.right, 0), A = Po(c.top, 0), M = Po(c.bottom, 0);
15356
- h ? E = f - 2 * (N !== 0 || O !== 0 ? N + O : Po(c.left, c.right)) : k = g - 2 * (A !== 0 || M !== 0 ? A + M : Po(c.top, c.bottom));
15355
+ const N = Lo(c.left, 0), O = Lo(c.right, 0), A = Lo(c.top, 0), M = Lo(c.bottom, 0);
15356
+ h ? E = f - 2 * (N !== 0 || O !== 0 ? N + O : Lo(c.left, c.right)) : k = g - 2 * (A !== 0 || M !== 0 ? A + M : Lo(c.top, c.bottom));
15357
15357
  }
15358
15358
  await l({
15359
15359
  ...t,
@@ -15582,10 +15582,10 @@ function $ue(e) {
15582
15582
  return Array.from(e.getClientRects());
15583
15583
  }
15584
15584
  function Hue(e) {
15585
- const t = Jl(e), n = l3(e), r = e.ownerDocument.body, o = Po(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Po(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
15585
+ const t = Jl(e), n = l3(e), r = e.ownerDocument.body, o = Lo(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Lo(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
15586
15586
  let s = -n.scrollLeft + u3(e);
15587
15587
  const a = -n.scrollTop;
15588
- return Ys(r).direction === "rtl" && (s += Po(t.clientWidth, r.clientWidth) - o), {
15588
+ return Ys(r).direction === "rtl" && (s += Lo(t.clientWidth, r.clientWidth) - o), {
15589
15589
  width: o,
15590
15590
  height: i,
15591
15591
  x: s,
@@ -15668,7 +15668,7 @@ function Gue(e) {
15668
15668
  } = e;
15669
15669
  const s = [...n === "clippingAncestors" ? a3(t) ? [] : Kue(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((u, c) => {
15670
15670
  const d = RS(t, c, o);
15671
- return u.top = Po(d.top, u.top), u.right = $a(d.right, u.right), u.bottom = $a(d.bottom, u.bottom), u.left = Po(d.left, u.left), u;
15671
+ return u.top = Lo(d.top, u.top), u.right = $a(d.right, u.right), u.bottom = $a(d.bottom, u.bottom), u.left = Lo(d.left, u.left), u;
15672
15672
  }, RS(t, a, o));
15673
15673
  return {
15674
15674
  width: l.right - l.left,
@@ -15975,7 +15975,7 @@ function rce(e) {
15975
15975
  for (let n = 0; n < e.colspan; n++) t.push(0);
15976
15976
  return t;
15977
15977
  }
15978
- function Eo(e) {
15978
+ function ko(e) {
15979
15979
  let t = e.cached.tableNodeTypes;
15980
15980
  if (!t) {
15981
15981
  t = e.cached.tableNodeTypes = {};
@@ -16054,7 +16054,7 @@ function Rz(e, t, n = 1) {
16054
16054
  return r;
16055
16055
  }
16056
16056
  function ace(e, t, n) {
16057
- const r = Eo(t.type.schema).header_cell;
16057
+ const r = ko(t.type.schema).header_cell;
16058
16058
  for (let o = 0; o < e.height; o++)
16059
16059
  if (t.nodeAt(e.map[n + o * e.width]).type != r)
16060
16060
  return !1;
@@ -16359,7 +16359,7 @@ function fce(e, t, n, r) {
16359
16359
  c.firstChild && (h = c.firstChild.type.spec.tableRole);
16360
16360
  const f = [];
16361
16361
  for (let m = 0; m < p; m++) {
16362
- const b = Eo(e.schema)[h].createAndFill();
16362
+ const b = ko(e.schema)[h].createAndFill();
16363
16363
  b && f.push(b);
16364
16364
  }
16365
16365
  const g = (l == 0 || s == l - 1) && a == l ? u + 1 : d - 1;
@@ -16389,7 +16389,7 @@ function zz(e, { map: t, tableStart: n, table: r }, o) {
16389
16389
  Rz(u.attrs, o - t.colCount(l))
16390
16390
  ), s += u.attrs.rowspan - 1;
16391
16391
  } else {
16392
- const l = i == null ? Eo(r.type.schema).cell : r.nodeAt(t.map[a + i]).type, u = t.positionAt(s, o, r);
16392
+ const l = i == null ? ko(r.type.schema).cell : r.nodeAt(t.map[a + i]).type, u = t.positionAt(s, o, r);
16393
16393
  e.insert(e.mapping.map(n + u), l.createAndFill());
16394
16394
  }
16395
16395
  }
@@ -16445,7 +16445,7 @@ function yce(e, t) {
16445
16445
  }
16446
16446
  function xce(e, t, n) {
16447
16447
  var r;
16448
- const o = Eo(t.type.schema).header_cell;
16448
+ const o = ko(t.type.schema).header_cell;
16449
16449
  for (let i = 0; i < e.width; i++)
16450
16450
  if (((r = t.nodeAt(e.map[i + n * e.width])) == null ? void 0 : r.type) != o)
16451
16451
  return !1;
@@ -16466,10 +16466,10 @@ function $z(e, { map: t, tableStart: n, table: r }, o) {
16466
16466
  rowspan: p.rowspan + 1
16467
16467
  }), u += p.colspan - 1;
16468
16468
  } else {
16469
- const d = l == null ? Eo(r.type.schema).cell : (i = r.nodeAt(t.map[c + l * t.width])) == null ? void 0 : i.type, p = d == null ? void 0 : d.createAndFill();
16469
+ const d = l == null ? ko(r.type.schema).cell : (i = r.nodeAt(t.map[c + l * t.width])) == null ? void 0 : i.type, p = d == null ? void 0 : d.createAndFill();
16470
16470
  p && a.push(p);
16471
16471
  }
16472
- return e.insert(s, Eo(r.type.schema).row.create(null, a)), e;
16472
+ return e.insert(s, ko(r.type.schema).row.create(null, a)), e;
16473
16473
  }
16474
16474
  function vce(e, t) {
16475
16475
  if (!oa(e)) return !1;
@@ -16586,7 +16586,7 @@ function PS(e, t) {
16586
16586
  return !0;
16587
16587
  }
16588
16588
  function zS(e, t) {
16589
- const n = Eo(e.schema);
16589
+ const n = ko(e.schema);
16590
16590
  return Ece(({ node: r }) => n[r.type.spec.tableRole])(e, t);
16591
16591
  }
16592
16592
  function Ece(e) {
@@ -16663,7 +16663,7 @@ function Ace(e) {
16663
16663
  return function(t, n) {
16664
16664
  if (!oa(t)) return !1;
16665
16665
  if (n) {
16666
- const r = Eo(t.schema), o = Ya(t), i = t.tr, s = o.map.cellsInRect(
16666
+ const r = ko(t.schema), o = Ya(t), i = t.tr, s = o.map.cellsInRect(
16667
16667
  e == "column" ? {
16668
16668
  left: o.left,
16669
16669
  top: 0,
@@ -16712,7 +16712,7 @@ function N1(e, t) {
16712
16712
  return t = t || { useDeprecatedLogic: !1 }, t.useDeprecatedLogic ? Ace(e) : function(n, r) {
16713
16713
  if (!oa(n)) return !1;
16714
16714
  if (r) {
16715
- const o = Eo(n.schema), i = Ya(n), s = n.tr, a = $S("row", i, o), l = $S(
16715
+ const o = ko(n.schema), i = Ya(n), s = n.tr, a = $S("row", i, o), l = $S(
16716
16716
  "column",
16717
16717
  i,
16718
16718
  o
@@ -16793,7 +16793,7 @@ function zm(e, t) {
16793
16793
  const n = e.selection;
16794
16794
  if (!(n instanceof Pn)) return !1;
16795
16795
  if (t) {
16796
- const r = e.tr, o = Eo(e.schema).cell.createAndFill().content;
16796
+ const r = e.tr, o = ko(e.schema).cell.createAndFill().content;
16797
16797
  n.forEachCell((i, s) => {
16798
16798
  i.content.eq(o) || r.replace(
16799
16799
  r.mapping.map(s + 1),
@@ -16815,14 +16815,14 @@ function jce(e) {
16815
16815
  let u = t.child(l).content;
16816
16816
  const c = l ? 0 : Math.max(0, n - 1), d = l < t.childCount - 1 ? 0 : Math.max(0, r - 1);
16817
16817
  (c || d) && (u = G5(
16818
- Eo(s).row,
16818
+ ko(s).row,
16819
16819
  new rt(u, c, d)
16820
16820
  ).content), a.push(u);
16821
16821
  }
16822
16822
  else if (i == "cell" || i == "header_cell")
16823
16823
  a.push(
16824
16824
  n || r ? G5(
16825
- Eo(s).row,
16825
+ ko(s).row,
16826
16826
  new rt(t, n, r)
16827
16827
  ).content : t
16828
16828
  );
@@ -16844,7 +16844,7 @@ function Bce(e, t) {
16844
16844
  for (let o = 0; o < n.length; o++) r = Math.max(r, n[o]);
16845
16845
  for (let o = 0; o < n.length; o++)
16846
16846
  if (o >= t.length && t.push(Ue.empty), n[o] < r) {
16847
- const i = Eo(e).cell.createAndFill(), s = [];
16847
+ const i = ko(e).cell.createAndFill(), s = [];
16848
16848
  for (let a = n[o]; a < r; a++)
16849
16849
  s.push(i);
16850
16850
  t[o] = t[o].append(Ue.from(s));
@@ -16898,7 +16898,7 @@ function Nce({ width: e, height: t, rows: n }, r, o) {
16898
16898
  return { width: e, height: t, rows: n };
16899
16899
  }
16900
16900
  function Mce(e, t, n, r, o, i, s) {
16901
- const a = e.doc.type.schema, l = Eo(a);
16901
+ const a = e.doc.type.schema, l = ko(a);
16902
16902
  let u, c;
16903
16903
  if (o > t.width)
16904
16904
  for (let d = 0, p = 0; d < t.height; d++) {
@@ -17077,7 +17077,7 @@ function Rce(e, t, n) {
17077
17077
  height: 1,
17078
17078
  rows: [
17079
17079
  Ue.from(
17080
- G5(Eo(e.state.schema).cell, n)
17080
+ G5(ko(e.state.schema).cell, n)
17081
17081
  )
17082
17082
  ]
17083
17083
  });
@@ -17219,7 +17219,7 @@ function Pce({
17219
17219
  state: {
17220
17220
  init(s, a) {
17221
17221
  var l, u;
17222
- const c = (u = (l = i.spec) == null ? void 0 : l.props) == null ? void 0 : u.nodeViews, d = Eo(a.schema).table.name;
17222
+ const c = (u = (l = i.spec) == null ? void 0 : l.props) == null ? void 0 : u.nodeViews, d = ko(a.schema).table.name;
17223
17223
  return r && c && (c[d] = (p, h) => new r(p, n, h)), new zce(-1, !1);
17224
17224
  },
17225
17225
  apply(s, a) {
@@ -22325,7 +22325,7 @@ class hu {
22325
22325
  return this.size >= 2;
22326
22326
  }
22327
22327
  }
22328
- var k9 = 0, Xb = 1, bh = 2, Bl = 3, z1 = 4, hs = 5, zh = 6, zo = 7, Da = [new hu(k9, 0, !1), new hu(Xb, 0, !0), new hu(bh, 1, !1), new hu(Bl, 1, !0), new hu(z1, 2, !1), new hu(hs, 2, !0), new hu(zh, 3, !1), new hu(zo, 3, !0)], Ppe = [z1, hs, z1, hs, zh, zo, zh, zo], zpe = [hs, hs, hs, hs, zo, zo, zo, zo], $pe = [bh, Bl, z1, hs, zh, zo, zh, zo], Hpe = [Bl, Bl, hs, hs, zo, zo, zo, zo], Wpe = [Xb, Xb, Bl, Bl, hs, hs, zo, zo], qpe = [k9, Xb, bh, Bl, bh, Bl, bh, Bl], Rt = {
22328
+ var k9 = 0, Xb = 1, bh = 2, Bl = 3, z1 = 4, hs = 5, zh = 6, Uo = 7, Da = [new hu(k9, 0, !1), new hu(Xb, 0, !0), new hu(bh, 1, !1), new hu(Bl, 1, !0), new hu(z1, 2, !1), new hu(hs, 2, !0), new hu(zh, 3, !1), new hu(Uo, 3, !0)], Ppe = [z1, hs, z1, hs, zh, Uo, zh, Uo], zpe = [hs, hs, hs, hs, Uo, Uo, Uo, Uo], $pe = [bh, Bl, z1, hs, zh, Uo, zh, Uo], Hpe = [Bl, Bl, hs, hs, Uo, Uo, Uo, Uo], Wpe = [Xb, Xb, Bl, Bl, hs, hs, Uo, Uo], qpe = [k9, Xb, bh, Bl, bh, Bl, bh, Bl], Rt = {
22329
22329
  DISPLAY: Da[k9],
22330
22330
  TEXT: Da[bh],
22331
22331
  SCRIPT: Da[z1],
@@ -25606,7 +25606,7 @@ function z(e, t, n, r, o, i) {
25606
25606
  replace: r
25607
25607
  }, i && r && (Wn[e][r] = Wn[e][o]);
25608
25608
  }
25609
- var q = "math", He = "text", ne = "main", xe = "ams", Qn = "accent-token", bt = "bin", Yo = "close", Df = "inner", It = "mathord", Cr = "op-token", Vi = "open", f3 = "punct", we = "rel", Ql = "spacing", Ae = "textord";
25609
+ var q = "math", He = "text", ne = "main", xe = "ams", Qn = "accent-token", bt = "bin", Xo = "close", Df = "inner", It = "mathord", Cr = "op-token", Vi = "open", f3 = "punct", we = "rel", Ql = "spacing", Ae = "textord";
25610
25610
  z(q, ne, we, "≡", "\\equiv", !0);
25611
25611
  z(q, ne, we, "≺", "\\prec", !0);
25612
25612
  z(q, ne, we, "≻", "\\succ", !0);
@@ -25663,9 +25663,9 @@ z(He, ne, Ae, "†", "\\textdagger");
25663
25663
  z(q, ne, Ae, "‡", "\\ddag");
25664
25664
  z(He, ne, Ae, "‡", "\\ddag");
25665
25665
  z(He, ne, Ae, "‡", "\\textdaggerdbl");
25666
- z(q, ne, Yo, "⎱", "\\rmoustache", !0);
25666
+ z(q, ne, Xo, "⎱", "\\rmoustache", !0);
25667
25667
  z(q, ne, Vi, "⎰", "\\lmoustache", !0);
25668
- z(q, ne, Yo, "⟯", "\\rgroup", !0);
25668
+ z(q, ne, Xo, "⟯", "\\rgroup", !0);
25669
25669
  z(q, ne, Vi, "⟮", "\\lgroup", !0);
25670
25670
  z(q, ne, bt, "∓", "\\mp", !0);
25671
25671
  z(q, ne, bt, "⊖", "\\ominus", !0);
@@ -25797,9 +25797,9 @@ z(q, xe, Ae, "ℷ", "\\gimel", !0);
25797
25797
  z(q, xe, Ae, "ϝ", "\\digamma", !0);
25798
25798
  z(q, xe, Ae, "ϰ", "\\varkappa");
25799
25799
  z(q, xe, Vi, "┌", "\\@ulcorner", !0);
25800
- z(q, xe, Yo, "┐", "\\@urcorner", !0);
25800
+ z(q, xe, Xo, "┐", "\\@urcorner", !0);
25801
25801
  z(q, xe, Vi, "└", "\\@llcorner", !0);
25802
- z(q, xe, Yo, "┘", "\\@lrcorner", !0);
25802
+ z(q, xe, Xo, "┘", "\\@lrcorner", !0);
25803
25803
  z(q, xe, we, "≦", "\\leqq", !0);
25804
25804
  z(q, xe, we, "⩽", "\\leqslant", !0);
25805
25805
  z(q, xe, we, "⪕", "\\eqslantless", !0);
@@ -26020,11 +26020,11 @@ z(q, ne, Ae, "√", "\\surd");
26020
26020
  z(q, ne, Vi, "⟨", "\\langle", !0);
26021
26021
  z(q, ne, Vi, "∣", "\\lvert");
26022
26022
  z(q, ne, Vi, "∥", "\\lVert");
26023
- z(q, ne, Yo, "?", "?");
26024
- z(q, ne, Yo, "!", "!");
26025
- z(q, ne, Yo, "⟩", "\\rangle", !0);
26026
- z(q, ne, Yo, "∣", "\\rvert");
26027
- z(q, ne, Yo, "∥", "\\rVert");
26023
+ z(q, ne, Xo, "?", "?");
26024
+ z(q, ne, Xo, "!", "!");
26025
+ z(q, ne, Xo, "⟩", "\\rangle", !0);
26026
+ z(q, ne, Xo, "∣", "\\rvert");
26027
+ z(q, ne, Xo, "∥", "\\rVert");
26028
26028
  z(q, ne, we, "=", "=");
26029
26029
  z(q, ne, we, ":", ":");
26030
26030
  z(q, ne, we, "≈", "\\approx", !0);
@@ -26080,23 +26080,23 @@ z(q, ne, bt, "▹", "\\triangleright");
26080
26080
  z(q, ne, Vi, "{", "\\{");
26081
26081
  z(He, ne, Ae, "{", "\\{");
26082
26082
  z(He, ne, Ae, "{", "\\textbraceleft");
26083
- z(q, ne, Yo, "}", "\\}");
26083
+ z(q, ne, Xo, "}", "\\}");
26084
26084
  z(He, ne, Ae, "}", "\\}");
26085
26085
  z(He, ne, Ae, "}", "\\textbraceright");
26086
26086
  z(q, ne, Vi, "{", "\\lbrace");
26087
- z(q, ne, Yo, "}", "\\rbrace");
26087
+ z(q, ne, Xo, "}", "\\rbrace");
26088
26088
  z(q, ne, Vi, "[", "\\lbrack", !0);
26089
26089
  z(He, ne, Ae, "[", "\\lbrack", !0);
26090
- z(q, ne, Yo, "]", "\\rbrack", !0);
26090
+ z(q, ne, Xo, "]", "\\rbrack", !0);
26091
26091
  z(He, ne, Ae, "]", "\\rbrack", !0);
26092
26092
  z(q, ne, Vi, "(", "\\lparen", !0);
26093
- z(q, ne, Yo, ")", "\\rparen", !0);
26093
+ z(q, ne, Xo, ")", "\\rparen", !0);
26094
26094
  z(He, ne, Ae, "<", "\\textless", !0);
26095
26095
  z(He, ne, Ae, ">", "\\textgreater", !0);
26096
26096
  z(q, ne, Vi, "⌊", "\\lfloor", !0);
26097
- z(q, ne, Yo, "⌋", "\\rfloor", !0);
26097
+ z(q, ne, Xo, "⌋", "\\rfloor", !0);
26098
26098
  z(q, ne, Vi, "⌈", "\\lceil", !0);
26099
- z(q, ne, Yo, "⌉", "\\rceil", !0);
26099
+ z(q, ne, Xo, "⌉", "\\rceil", !0);
26100
26100
  z(q, ne, Ae, "\\", "\\backslash");
26101
26101
  z(q, ne, Ae, "∣", "|");
26102
26102
  z(q, ne, Ae, "∣", "\\vert");
@@ -26237,9 +26237,9 @@ z(He, xe, Ae, "Z", "ℤ");
26237
26237
  z(q, ne, It, "h", "ℎ");
26238
26238
  z(He, ne, It, "h", "ℎ");
26239
26239
  var Ht = "";
26240
- for (var No = 0; No < Yb.length; No++) {
26241
- var sr = Yb.charAt(No);
26242
- Ht = String.fromCharCode(55349, 56320 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56372 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56424 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56580 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56684 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56736 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56788 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56840 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56944 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), No < 26 && (Ht = String.fromCharCode(55349, 56632 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56476 + No), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht));
26240
+ for (var Bo = 0; Bo < Yb.length; Bo++) {
26241
+ var sr = Yb.charAt(Bo);
26242
+ Ht = String.fromCharCode(55349, 56320 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56372 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56424 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56580 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56684 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56736 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56788 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56840 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56944 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Bo < 26 && (Ht = String.fromCharCode(55349, 56632 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht), Ht = String.fromCharCode(55349, 56476 + Bo), z(q, ne, It, sr, Ht), z(He, ne, Ae, sr, Ht));
26243
26243
  }
26244
26244
  Ht = "𝕜";
26245
26245
  z(q, ne, It, "k", Ht);
@@ -26426,11 +26426,11 @@ var Gm = [
26426
26426
  s.height > n && (n = s.height), s.depth > r && (r = s.depth), s.maxFontSize > o && (o = s.maxFontSize);
26427
26427
  }
26428
26428
  t.height = n, t.depth = r, t.maxFontSize = o;
26429
- }, Qo = function(t, n, r, o) {
26429
+ }, Jo = function(t, n, r, o) {
26430
26430
  var i = new Wg(t, n, r, o);
26431
26431
  return A9(i), i;
26432
26432
  }, w$ = (e, t, n, r) => new Wg(e, t, n, r), xhe = function(t, n, r) {
26433
- var o = Qo([t], [], n);
26433
+ var o = Jo([t], [], n);
26434
26434
  return o.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), o.style.borderBottomWidth = nt(o.height), o.maxFontSize = 1, o;
26435
26435
  }, vhe = function(t, n, r, o) {
26436
26436
  var i = new C9(t, n, r, o);
@@ -26439,7 +26439,7 @@ var Gm = [
26439
26439
  var n = new Hg(t);
26440
26440
  return A9(n), n;
26441
26441
  }, Fhe = function(t, n) {
26442
- return t instanceof Hg ? Qo([], [t], n) : t;
26442
+ return t instanceof Hg ? Jo([], [t], n) : t;
26443
26443
  }, whe = function(t) {
26444
26444
  if (t.positionType === "individualShift") {
26445
26445
  for (var n = t.children, r = [n[0]], o = -n[0].shift - n[0].elem.depth, i = o, s = 1; s < n.length; s++) {
@@ -26490,32 +26490,32 @@ var Gm = [
26490
26490
  }
26491
26491
  }
26492
26492
  i += 2;
26493
- var u = Qo(["pstrut"], []);
26493
+ var u = Jo(["pstrut"], []);
26494
26494
  u.style.height = nt(i);
26495
26495
  for (var c = [], d = o, p = o, h = o, f = 0; f < r.length; f++) {
26496
26496
  var g = r[f];
26497
26497
  if (g.type === "kern")
26498
26498
  h += g.size;
26499
26499
  else {
26500
- var m = g.elem, b = g.wrapperClasses || [], y = g.wrapperStyle || {}, F = Qo(b, [u, m], void 0, y);
26500
+ var m = g.elem, b = g.wrapperClasses || [], y = g.wrapperStyle || {}, F = Jo(b, [u, m], void 0, y);
26501
26501
  F.style.top = nt(-i - h - m.depth), g.marginLeft && (F.style.marginLeft = g.marginLeft), g.marginRight && (F.style.marginRight = g.marginRight), c.push(F), h += m.height + m.depth;
26502
26502
  }
26503
26503
  d = Math.min(d, h), p = Math.max(p, h);
26504
26504
  }
26505
- var v = Qo(["vlist"], c);
26505
+ var v = Jo(["vlist"], c);
26506
26506
  v.style.height = nt(p);
26507
26507
  var w;
26508
26508
  if (d < 0) {
26509
- var D = Qo([], []), k = Qo(["vlist"], [D]);
26509
+ var D = Jo([], []), k = Jo(["vlist"], [D]);
26510
26510
  k.style.height = nt(-d);
26511
- var E = Qo(["vlist-s"], [new vs("​")]);
26512
- w = [Qo(["vlist-r"], [v, E]), Qo(["vlist-r"], [k])];
26511
+ var E = Jo(["vlist-s"], [new vs("​")]);
26512
+ w = [Jo(["vlist-r"], [v, E]), Jo(["vlist-r"], [k])];
26513
26513
  } else
26514
- w = [Qo(["vlist-r"], [v])];
26515
- var _ = Qo(["vlist-t"], w);
26514
+ w = [Jo(["vlist-r"], [v])];
26515
+ var _ = Jo(["vlist-t"], w);
26516
26516
  return w.length === 2 && _.classes.push("vlist-t2"), _.height = p, _.depth = -d, _;
26517
26517
  }, khe = (e, t) => {
26518
- var n = Qo(["mspace"], [], t), r = nr(e, t);
26518
+ var n = Jo(["mspace"], [], t), r = nr(e, t);
26519
26519
  return n.style.marginRight = nt(r), n;
26520
26520
  }, Xm = function(t, n, r) {
26521
26521
  var o = "";
@@ -26614,7 +26614,7 @@ var Gm = [
26614
26614
  fontMap: k$,
26615
26615
  makeSymbol: js,
26616
26616
  mathsym: fhe,
26617
- makeSpan: Qo,
26617
+ makeSpan: Jo,
26618
26618
  makeSvgSpan: w$,
26619
26619
  makeLineSpan: xhe,
26620
26620
  makeAnchor: vhe,
@@ -34499,8 +34499,8 @@ const e0e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
34499
34499
  for (let i = 0; i < e.length; )
34500
34500
  t = e2[e.charAt(i++)] << 18 | e2[e.charAt(i++)] << 12 | (n = e2[e.charAt(i++)]) << 6 | (r = e2[e.charAt(i++)]), n === 64 ? o.push(lb(t >> 16 & 255)) : r === 64 ? o.push(lb(t >> 16 & 255, t >> 8 & 255)) : o.push(lb(t >> 16 & 255, t >> 8 & 255, t & 255));
34501
34501
  return o.join("");
34502
- }, s0e = typeof atob == "function" ? (e) => atob(wH(e)) : v3 ? (e) => Buffer.from(e, "base64").toString("binary") : i0e, a0e = v3 ? (e) => PT(Buffer.from(e, "base64")) : (e) => PT(s0e(e).split("").map((t) => t.charCodeAt(0))), Fo = (e) => a0e(l0e(e)), l0e = (e) => wH(e.replace(/[-_]/g, (t) => t == "-" ? "+" : "/")), $o = () => /* @__PURE__ */ new Map(), gD = (e) => {
34503
- const t = $o();
34502
+ }, s0e = typeof atob == "function" ? (e) => atob(wH(e)) : v3 ? (e) => Buffer.from(e, "base64").toString("binary") : i0e, a0e = v3 ? (e) => PT(Buffer.from(e, "base64")) : (e) => PT(s0e(e).split("").map((t) => t.charCodeAt(0))), Po = (e) => a0e(l0e(e)), l0e = (e) => wH(e.replace(/[-_]/g, (t) => t == "-" ? "+" : "/")), zo = () => /* @__PURE__ */ new Map(), gD = (e) => {
34503
+ const t = zo();
34504
34504
  return e.forEach((n, r) => {
34505
34505
  t.set(r, n);
34506
34506
  }), t;
@@ -34528,7 +34528,7 @@ const e0e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
34528
34528
  }, mD = Array.isArray;
34529
34529
  class DH {
34530
34530
  constructor() {
34531
- this._observers = $o();
34531
+ this._observers = zo();
34532
34532
  }
34533
34533
  /**
34534
34534
  * @template {keyof EVENTS & string} NAME
@@ -34582,15 +34582,15 @@ class DH {
34582
34582
  * @param {Parameters<EVENTS[NAME]>} args The arguments that are applied to the event listener.
34583
34583
  */
34584
34584
  emit(t, n) {
34585
- return Pl((this._observers.get(t) || $o()).values()).forEach((r) => r(...n));
34585
+ return Pl((this._observers.get(t) || zo()).values()).forEach((r) => r(...n));
34586
34586
  }
34587
34587
  destroy() {
34588
- this._observers = $o();
34588
+ this._observers = zo();
34589
34589
  }
34590
34590
  }
34591
34591
  class kH {
34592
34592
  constructor() {
34593
- this._observers = $o();
34593
+ this._observers = zo();
34594
34594
  }
34595
34595
  /**
34596
34596
  * @param {N} name
@@ -34627,13 +34627,13 @@ class kH {
34627
34627
  * @param {Array<any>} args The arguments that are applied to the event listener.
34628
34628
  */
34629
34629
  emit(t, n) {
34630
- return Pl((this._observers.get(t) || $o()).values()).forEach((r) => r(...n));
34630
+ return Pl((this._observers.get(t) || zo()).values()).forEach((r) => r(...n));
34631
34631
  }
34632
34632
  destroy() {
34633
- this._observers = $o();
34633
+ this._observers = zo();
34634
34634
  }
34635
34635
  }
34636
- const Wa = Math.floor, ub = Math.abs, Ml = (e, t) => e < t ? e : t, Zs = (e, t) => e > t ? e : t, EH = (e) => e !== 0 ? e < 0 : 1 / e < 0, $T = 1, HT = 2, sF = 4, aF = 8, W1 = 32, Ol = 64, Ho = 128, h0e = 1 << 29, F3 = 31, bD = 63, Dd = 127, f0e = 2147483647, CH = Number.MAX_SAFE_INTEGER, g0e = Number.isInteger || ((e) => typeof e == "number" && isFinite(e) && Wa(e) === e), m0e = String.fromCharCode, b0e = (e) => e.toLowerCase(), y0e = /^\s*/g, x0e = (e) => e.replace(y0e, ""), v0e = /([A-Z])/g, WT = (e, t) => x0e(e.replace(v0e, (n) => `${t}${b0e(n)}`)), F0e = (e) => {
34636
+ const Wa = Math.floor, ub = Math.abs, Ml = (e, t) => e < t ? e : t, Zs = (e, t) => e > t ? e : t, EH = (e) => e !== 0 ? e < 0 : 1 / e < 0, $T = 1, HT = 2, sF = 4, aF = 8, W1 = 32, Ol = 64, $o = 128, h0e = 1 << 29, F3 = 31, bD = 63, Dd = 127, f0e = 2147483647, CH = Number.MAX_SAFE_INTEGER, g0e = Number.isInteger || ((e) => typeof e == "number" && isFinite(e) && Wa(e) === e), m0e = String.fromCharCode, b0e = (e) => e.toLowerCase(), y0e = /^\s*/g, x0e = (e) => e.replace(y0e, ""), v0e = /([A-Z])/g, WT = (e, t) => x0e(e.replace(v0e, (n) => `${t}${b0e(n)}`)), F0e = (e) => {
34637
34637
  const t = unescape(encodeURIComponent(e)), n = t.length, r = new Uint8Array(n);
34638
34638
  for (let o = 0; o < n; o++)
34639
34639
  r[o] = /** @type {number} */
@@ -34674,12 +34674,12 @@ const pp = () => new Vg(), k0e = (e) => {
34674
34674
  e.cpos === n && (e.bufs.push(e.cbuf), e.cbuf = new Uint8Array(n * 2), e.cpos = 0), e.cbuf[e.cpos++] = t;
34675
34675
  }, V1 = Lr, nn = (e, t) => {
34676
34676
  for (; t > Dd; )
34677
- Lr(e, Ho | Dd & t), t = Wa(t / 128);
34677
+ Lr(e, $o | Dd & t), t = Wa(t / 128);
34678
34678
  Lr(e, Dd & t);
34679
34679
  }, w3 = (e, t) => {
34680
34680
  const n = EH(t);
34681
- for (n && (t = -t), Lr(e, (t > bD ? Ho : 0) | (n ? Ol : 0) | bD & t), t = Wa(t / 64); t > 0; )
34682
- Lr(e, (t > Dd ? Ho : 0) | Dd & t), t = Wa(t / 128);
34681
+ for (n && (t = -t), Lr(e, (t > bD ? $o : 0) | (n ? Ol : 0) | bD & t), t = Wa(t / 64); t > 0; )
34682
+ Lr(e, (t > Dd ? $o : 0) | Dd & t), t = Wa(t / 128);
34683
34683
  }, yD = new Uint8Array(3e4), A0e = yD.length / 3, _0e = (e, t) => {
34684
34684
  if (t.length < A0e) {
34685
34685
  const n = q1.encodeInto(t, yD).written || 0;
@@ -34825,7 +34825,7 @@ class M0e {
34825
34825
  }
34826
34826
  const zl = (e) => new Error(e), Ws = () => {
34827
34827
  throw zl("Method unimplemented");
34828
- }, Co = () => {
34828
+ }, Eo = () => {
34829
34829
  throw zl("Unexpected case");
34830
34830
  }, AH = zl("Unexpected end of array"), _H = zl("Integer out of Range");
34831
34831
  let k3 = class {
@@ -34844,7 +34844,7 @@ const Ac = (e) => new k3(e), SH = (e) => e.pos !== e.arr.length, O0e = (e, t) =>
34844
34844
  const r = e.arr.length;
34845
34845
  for (; e.pos < r; ) {
34846
34846
  const o = e.arr[e.pos++];
34847
- if (t = t + (o & Dd) * n, n *= 128, o < Ho)
34847
+ if (t = t + (o & Dd) * n, n *= 128, o < $o)
34848
34848
  return t;
34849
34849
  if (t > CH)
34850
34850
  throw _H;
@@ -34853,11 +34853,11 @@ const Ac = (e) => new k3(e), SH = (e) => e.pos !== e.arr.length, O0e = (e, t) =>
34853
34853
  }, E3 = (e) => {
34854
34854
  let t = e.arr[e.pos++], n = t & bD, r = 64;
34855
34855
  const o = (t & Ol) > 0 ? -1 : 1;
34856
- if (!(t & Ho))
34856
+ if (!(t & $o))
34857
34857
  return o * n;
34858
34858
  const i = e.arr.length;
34859
34859
  for (; e.pos < i; ) {
34860
- if (t = e.arr[e.pos++], n = n + (t & Dd) * r, r *= 128, t < Ho)
34860
+ if (t = e.arr[e.pos++], n = n + (t & Dd) * r, r *= 128, t < $o)
34861
34861
  return o * n;
34862
34862
  if (n > CH)
34863
34863
  throw _H;
@@ -35107,7 +35107,7 @@ let ga;
35107
35107
  const o1e = () => {
35108
35108
  if (ga === void 0)
35109
35109
  if (qh) {
35110
- ga = $o();
35110
+ ga = zo();
35111
35111
  const e = process.argv;
35112
35112
  let t = null;
35113
35113
  for (let n = 0; n < e.length; n++) {
@@ -35115,12 +35115,12 @@ const o1e = () => {
35115
35115
  r[0] === "-" ? (t !== null && ga.set(t, ""), t = r) : t !== null && (ga.set(t, r), t = null);
35116
35116
  }
35117
35117
  t !== null && ga.set(t, "");
35118
- } else typeof location == "object" ? (ga = $o(), (location.search || "?").slice(1).split("&").forEach((e) => {
35118
+ } else typeof location == "object" ? (ga = zo(), (location.search || "?").slice(1).split("&").forEach((e) => {
35119
35119
  if (e.length !== 0) {
35120
35120
  const [t, n] = e.split("=");
35121
35121
  ga.set(`--${WT(t, "-")}`, n), ga.set(`-${WT(t, "-")}`, n);
35122
35122
  }
35123
- })) : ga = $o();
35123
+ })) : ga = zo();
35124
35124
  return ga;
35125
35125
  }, xD = (e) => o1e().has(e), ey = (e) => YT(qh ? process.env[e.toUpperCase().replaceAll("-", "_")] : Y0e.getItem(e)), IH = (e) => xD("--" + e) || ey(e) !== null;
35126
35126
  IH("production");
@@ -35195,7 +35195,7 @@ const g1e = (e) => u0e(e, (t, n) => `${n}:${t};`).join(""), m1e = (e) => class {
35195
35195
  e.length === 1 && ((s = e[0]) == null ? void 0 : s.constructor) === Function && (e = /** @type {Array<string|Symbol|Object|number>} */
35196
35196
  /** @type {[function]} */
35197
35197
  e[0]());
35198
- const t = [], n = [], r = $o();
35198
+ const t = [], n = [], r = zo();
35199
35199
  let o = [], i = 0;
35200
35200
  for (; i < e.length; i++) {
35201
35201
  const a = e[i], l = k1e[a];
@@ -35923,7 +35923,7 @@ class YH {
35923
35923
  * @param {number} len
35924
35924
  */
35925
35925
  writeDsLen(t) {
35926
- t === 0 && Co(), nn(this.restEncoder, t - 1), this.dsCurrVal += t;
35926
+ t === 0 && Eo(), nn(this.restEncoder, t - 1), this.dsCurrVal += t;
35927
35927
  }
35928
35928
  }
35929
35929
  class qd extends YH {
@@ -36043,7 +36043,7 @@ const T1e = (e, t, n, r) => {
36043
36043
  );
36044
36044
  });
36045
36045
  }, j1e = (e, t) => {
36046
- const n = $o(), r = Xt(e.restDecoder);
36046
+ const n = zo(), r = Xt(e.restDecoder);
36047
36047
  for (let o = 0; o < r; o++) {
36048
36048
  const i = Xt(e.restDecoder), s = new Array(i), a = e.readClient();
36049
36049
  let l = Xt(e.restDecoder);
@@ -36062,11 +36062,11 @@ const T1e = (e, t, n, r) => {
36062
36062
  break;
36063
36063
  }
36064
36064
  default: {
36065
- const d = (c & (Ol | Ho)) === 0, p = new $n(
36065
+ const d = (c & (Ol | $o)) === 0, p = new $n(
36066
36066
  Jt(a, l),
36067
36067
  null,
36068
36068
  // left
36069
- (c & Ho) === Ho ? e.readLeftID() : null,
36069
+ (c & $o) === $o ? e.readLeftID() : null,
36070
36070
  // origin
36071
36071
  null,
36072
36072
  // right
@@ -36254,7 +36254,7 @@ const ih = (e, t) => e === t || e !== null && t !== null && e.client === t.clien
36254
36254
  for (const [t, n] of e.doc.share.entries())
36255
36255
  if (n === e)
36256
36256
  return t;
36257
- throw Co();
36257
+ throw Eo();
36258
36258
  }, Z1 = (e, t) => {
36259
36259
  for (; t !== null; ) {
36260
36260
  if (t.parent === e)
@@ -36316,7 +36316,7 @@ const H1e = (e, t, n = 0) => new $1e(e, t, n), t2 = (e, t, n) => {
36316
36316
  else if (n !== null)
36317
36317
  V1(e, 2), oj(e, n);
36318
36318
  else
36319
- throw Co();
36319
+ throw Eo();
36320
36320
  return w3(e, i), e;
36321
36321
  }, sh = (e) => {
36322
36322
  const t = pp();
@@ -36369,7 +36369,7 @@ const H1e = (e, t, n = 0) => new $1e(e, t, n), t2 = (e, t, n) => {
36369
36369
  else
36370
36370
  return null;
36371
36371
  } else
36372
- throw Co();
36372
+ throw Eo();
36373
36373
  a >= 0 ? u = l._length : u = 0;
36374
36374
  }
36375
36375
  return H1e(l, u, e.assoc);
@@ -36414,7 +36414,7 @@ const Gg = (e) => {
36414
36414
  else {
36415
36415
  const r = n[n.length - 1];
36416
36416
  if (r.id.clock + r.length !== t.id.clock)
36417
- throw Co();
36417
+ throw Eo();
36418
36418
  }
36419
36419
  n.push(t);
36420
36420
  }, Js = (e, t) => {
@@ -36431,7 +36431,7 @@ const Gg = (e) => {
36431
36431
  r = s - 1;
36432
36432
  s = Wa((n + r) / 2);
36433
36433
  }
36434
- throw Co();
36434
+ throw Eo();
36435
36435
  }, G1e = (e, t) => {
36436
36436
  const n = e.clients.get(t.client);
36437
36437
  return n[Js(n, t.clock)];
@@ -36821,11 +36821,11 @@ function* ege(e) {
36821
36821
  const l = Xt(e.restDecoder);
36822
36822
  yield new ds(Jt(o, i), l), i += l;
36823
36823
  } else if (F3 & a) {
36824
- const l = (a & (Ol | Ho)) === 0, u = new $n(
36824
+ const l = (a & (Ol | $o)) === 0, u = new $n(
36825
36825
  Jt(o, i),
36826
36826
  null,
36827
36827
  // left
36828
- (a & Ho) === Ho ? e.readLeftID() : null,
36828
+ (a & $o) === $o ? e.readLeftID() : null,
36829
36829
  // origin
36830
36830
  null,
36831
36831
  // right
@@ -37145,7 +37145,7 @@ const ige = (e, t) => {
37145
37145
  t._item.parent;
37146
37146
  }
37147
37147
  return n;
37148
- }, Do = () => {
37148
+ }, wo = () => {
37149
37149
  zH("Invalid access: Add Yjs type to a document before reading data.");
37150
37150
  }, aW = 80;
37151
37151
  let sE = 0;
@@ -37317,7 +37317,7 @@ class qr {
37317
37317
  }
37318
37318
  }
37319
37319
  const uW = (e, t, n) => {
37320
- e.doc ?? Do(), t < 0 && (t = e._length + t), n < 0 && (n = e._length + n);
37320
+ e.doc ?? wo(), t < 0 && (t = e._length + t), n < 0 && (n = e._length + n);
37321
37321
  let r = n - t;
37322
37322
  const o = [];
37323
37323
  let i = e._start;
@@ -37336,7 +37336,7 @@ const uW = (e, t, n) => {
37336
37336
  }
37337
37337
  return o;
37338
37338
  }, cW = (e) => {
37339
- e.doc ?? Do();
37339
+ e.doc ?? wo();
37340
37340
  const t = [];
37341
37341
  let n = e._start;
37342
37342
  for (; n !== null; ) {
@@ -37362,7 +37362,7 @@ const uW = (e, t, n) => {
37362
37362
  return n;
37363
37363
  }, Q1 = (e, t) => {
37364
37364
  let n = 0, r = e._start;
37365
- for (e.doc ?? Do(); r !== null; ) {
37365
+ for (e.doc ?? wo(); r !== null; ) {
37366
37366
  if (r.countable && !r.deleted) {
37367
37367
  const o = r.content.getContent();
37368
37368
  for (let i = 0; i < o.length; i++)
@@ -37400,7 +37400,7 @@ const uW = (e, t, n) => {
37400
37400
  }
37401
37401
  };
37402
37402
  }, hW = (e, t) => {
37403
- e.doc ?? Do();
37403
+ e.doc ?? wo();
37404
37404
  const n = A3(e, t);
37405
37405
  let r = e._start;
37406
37406
  for (n !== null && (r = n.p, t -= n.index); r !== null; r = r.right)
@@ -37529,16 +37529,16 @@ const uW = (e, t, n) => {
37529
37529
  }
37530
37530
  new $n(Jt(s, gr(i.store, s)), o, o && o.lastId, null, null, t, n, a).integrate(e, 0);
37531
37531
  }, lE = (e, t) => {
37532
- e.doc ?? Do();
37532
+ e.doc ?? wo();
37533
37533
  const n = e._map.get(t);
37534
37534
  return n !== void 0 && !n.deleted ? n.content.getContent()[n.length - 1] : void 0;
37535
37535
  }, bW = (e) => {
37536
37536
  const t = {};
37537
- return e.doc ?? Do(), e._map.forEach((n, r) => {
37537
+ return e.doc ?? wo(), e._map.forEach((n, r) => {
37538
37538
  n.deleted || (t[r] = n.content.getContent()[n.length - 1]);
37539
37539
  }), t;
37540
37540
  }, yW = (e, t) => {
37541
- e.doc ?? Do();
37541
+ e.doc ?? wo();
37542
37542
  const n = e._map.get(t);
37543
37543
  return n !== void 0 && !n.deleted;
37544
37544
  }, dge = (e, t) => {
@@ -37549,7 +37549,7 @@ const uW = (e, t, n) => {
37549
37549
  i = i.left;
37550
37550
  i !== null && Qc(i, t) && (n[o] = i.content.getContent()[i.length - 1]);
37551
37551
  }), n;
37552
- }, n2 = (e) => (e.doc ?? Do(), A1e(
37552
+ }, n2 = (e) => (e.doc ?? wo(), A1e(
37553
37553
  e._map.entries(),
37554
37554
  /** @param {any} entry */
37555
37555
  (t) => !t[1].deleted
@@ -37610,7 +37610,7 @@ class kd extends qr {
37610
37610
  )), t;
37611
37611
  }
37612
37612
  get length() {
37613
- return this.doc ?? Do(), this._length;
37613
+ return this.doc ?? wo(), this._length;
37614
37614
  }
37615
37615
  /**
37616
37616
  * Creates YArrayEvent and calls observers.
@@ -37828,7 +37828,7 @@ class fc extends qr {
37828
37828
  * @return {Object<string,any>}
37829
37829
  */
37830
37830
  toJSON() {
37831
- this.doc ?? Do();
37831
+ this.doc ?? wo();
37832
37832
  const t = {};
37833
37833
  return this._map.forEach((n, r) => {
37834
37834
  if (!n.deleted) {
@@ -37890,7 +37890,7 @@ class fc extends qr {
37890
37890
  * @param {function(MapType,string,YMap<MapType>):void} f A function to execute on every element of this YArray.
37891
37891
  */
37892
37892
  forEach(t) {
37893
- this.doc ?? Do(), this._map.forEach((n, r) => {
37893
+ this.doc ?? wo(), this._map.forEach((n, r) => {
37894
37894
  n.deleted || t(n.content.getContent()[n.length - 1], r, this);
37895
37895
  });
37896
37896
  }
@@ -37984,7 +37984,7 @@ class DD {
37984
37984
  * Only call this if you know that this.right is defined
37985
37985
  */
37986
37986
  forward() {
37987
- switch (this.right === null && Co(), this.right.content.constructor) {
37987
+ switch (this.right === null && Eo(), this.right.content.constructor) {
37988
37988
  case kr:
37989
37989
  this.right.deleted || _f(
37990
37990
  this.currentAttributes,
@@ -38122,7 +38122,7 @@ const fj = (e, t, n) => {
38122
38122
  xW(e, t, n, a);
38123
38123
  }, wW = (e, t, n, r, o) => {
38124
38124
  let i = t;
38125
- const s = $o();
38125
+ const s = zo();
38126
38126
  for (; i && (!i.countable || i.deleted); ) {
38127
38127
  if (!i.deleted && i.content.constructor === kr) {
38128
38128
  const u = (
@@ -38179,7 +38179,7 @@ const fj = (e, t, n) => {
38179
38179
  let r = (
38180
38180
  /** @type {Item} */
38181
38181
  e._start
38182
- ), o = e._start, i = $o();
38182
+ ), o = e._start, i = zo();
38183
38183
  const s = gD(i);
38184
38184
  for (; o; ) {
38185
38185
  if (o.deleted === !1)
@@ -38390,7 +38390,7 @@ class qa extends qr {
38390
38390
  * @type {number}
38391
38391
  */
38392
38392
  get length() {
38393
- return this.doc ?? Do(), this._length;
38393
+ return this.doc ?? wo(), this._length;
38394
38394
  }
38395
38395
  /**
38396
38396
  * @param {Doc} y
@@ -38436,7 +38436,7 @@ class qa extends qr {
38436
38436
  * @public
38437
38437
  */
38438
38438
  toString() {
38439
- this.doc ?? Do();
38439
+ this.doc ?? wo();
38440
38440
  let t = "", n = this._start;
38441
38441
  for (; n !== null; )
38442
38442
  !n.deleted && n.countable && n.content.constructor === Qs && (t += /** @type {ContentString} */
@@ -38486,7 +38486,7 @@ class qa extends qr {
38486
38486
  * @public
38487
38487
  */
38488
38488
  toDelta(t, n, r) {
38489
- this.doc ?? Do();
38489
+ this.doc ?? wo();
38490
38490
  const o = [], i = /* @__PURE__ */ new Map(), s = (
38491
38491
  /** @type {Doc} */
38492
38492
  this.doc
@@ -38693,7 +38693,7 @@ class fF {
38693
38693
  */
38694
38694
  constructor(t, n = () => !0) {
38695
38695
  this._filter = n, this._root = t, this._currentNode = /** @type {Item} */
38696
- t._start, this._firstCall = !0, t.doc ?? Do();
38696
+ t._start, this._firstCall = !0, t.doc ?? wo();
38697
38697
  }
38698
38698
  [Symbol.iterator]() {
38699
38699
  return this;
@@ -38775,7 +38775,7 @@ class Vd extends qr {
38775
38775
  return t.insert(0, this.toArray().map((n) => n instanceof qr ? n.clone() : n)), t;
38776
38776
  }
38777
38777
  get length() {
38778
- return this.doc ?? Do(), this._prelimContent === null ? this._length : this._prelimContent.length;
38778
+ return this.doc ?? wo(), this._prelimContent === null ? this._length : this._prelimContent.length;
38779
38779
  }
38780
38780
  /**
38781
38781
  * Create a subtree of childNodes.
@@ -39260,7 +39260,7 @@ class iy extends fc {
39260
39260
  }
39261
39261
  }
39262
39262
  const kge = (e) => new iy(e.readKey());
39263
- class ko extends qa {
39263
+ class Do extends qa {
39264
39264
  /**
39265
39265
  * @type {YXmlElement|YXmlText|null}
39266
39266
  */
@@ -39284,7 +39284,7 @@ class ko extends qa {
39284
39284
  ) : null;
39285
39285
  }
39286
39286
  _copy() {
39287
- return new ko();
39287
+ return new Do();
39288
39288
  }
39289
39289
  /**
39290
39290
  * Makes a copy of this data type that can be included somewhere else.
@@ -39294,7 +39294,7 @@ class ko extends qa {
39294
39294
  * @return {YXmlText}
39295
39295
  */
39296
39296
  clone() {
39297
- const t = new ko();
39297
+ const t = new Do();
39298
39298
  return t.applyDelta(this.toDelta()), t;
39299
39299
  }
39300
39300
  /**
@@ -39355,7 +39355,7 @@ class ko extends qa {
39355
39355
  t.writeTypeRef(Hge);
39356
39356
  }
39357
39357
  }
39358
- const Ege = (e) => new ko();
39358
+ const Ege = (e) => new Do();
39359
39359
  class uE {
39360
39360
  /**
39361
39361
  * @param {ID} id
@@ -40468,7 +40468,7 @@ let $n = class ED extends uE {
40468
40468
  */
40469
40469
  gc(t, n) {
40470
40470
  if (!this.deleted)
40471
- throw Co();
40471
+ throw Eo();
40472
40472
  this.content.gc(t), n ? X1e(t, this, new cs(this.id, this.length)) : this.content = new eg(this.length);
40473
40473
  }
40474
40474
  /**
@@ -40481,7 +40481,7 @@ let $n = class ED extends uE {
40481
40481
  * @param {number} offset
40482
40482
  */
40483
40483
  write(t, n) {
40484
- const r = n > 0 ? Jt(this.id.client, this.id.clock + n - 1) : this.origin, o = this.rightOrigin, i = this.parentSub, s = this.content.getRef() & F3 | (r === null ? 0 : Ho) | // origin is defined
40484
+ const r = n > 0 ? Jt(this.id.client, this.id.clock + n - 1) : this.origin, o = this.rightOrigin, i = this.parentSub, s = this.content.getRef() & F3 | (r === null ? 0 : $o) | // origin is defined
40485
40485
  (o === null ? 0 : Ol) | // right origin is defined
40486
40486
  (i === null ? 0 : W1);
40487
40487
  if (t.writeInfo(s), r !== null && t.writeLeftID(r), o !== null && t.writeRightID(o), r === null && o === null) {
@@ -40496,7 +40496,7 @@ let $n = class ED extends uE {
40496
40496
  t.writeParentInfo(!0), t.writeString(u);
40497
40497
  } else
40498
40498
  t.writeParentInfo(!1), t.writeLeftID(l.id);
40499
- } else a.constructor === String ? (t.writeParentInfo(!0), t.writeString(a)) : a.constructor === yh ? (t.writeParentInfo(!1), t.writeLeftID(a)) : Co();
40499
+ } else a.constructor === String ? (t.writeParentInfo(!0), t.writeString(a)) : a.constructor === yh ? (t.writeParentInfo(!1), t.writeLeftID(a)) : Eo();
40500
40500
  i !== null && t.writeString(i);
40501
40501
  }
40502
40502
  this.content.write(t, n);
@@ -40504,7 +40504,7 @@ let $n = class ED extends uE {
40504
40504
  };
40505
40505
  const EW = (e, t) => qge[t & F3](e), qge = [
40506
40506
  () => {
40507
- Co();
40507
+ Eo();
40508
40508
  },
40509
40509
  // GC is not ItemContent
40510
40510
  _ge,
@@ -40526,7 +40526,7 @@ const EW = (e, t) => qge[t & F3](e), qge = [
40526
40526
  Sge,
40527
40527
  // 9
40528
40528
  () => {
40529
- Co();
40529
+ Eo();
40530
40530
  }
40531
40531
  // 10 - Skip is not ItemContent
40532
40532
  ], Vge = 10;
@@ -40548,7 +40548,7 @@ class ds extends uE {
40548
40548
  * @param {number} offset
40549
40549
  */
40550
40550
  integrate(t, n) {
40551
- Co();
40551
+ Eo();
40552
40552
  }
40553
40553
  /**
40554
40554
  * @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
@@ -41133,7 +41133,7 @@ class pme {
41133
41133
  if (n % 64 !== 0) {
41134
41134
  for (this._W.fill(0, s, 16); n < t.length; )
41135
41135
  this._W[s] |= t[n] << (3 - n % 4) * 8, n++;
41136
- this._W[s] |= Ho << (3 - n % 4) * 8;
41136
+ this._W[s] |= $o << (3 - n % 4) * 8;
41137
41137
  }
41138
41138
  this._updateHash();
41139
41139
  }
@@ -41143,7 +41143,7 @@ class pme {
41143
41143
  for (; n < t.length; o++)
41144
41144
  for (let s = 3; s >= 0 && n < t.length; s--)
41145
41145
  this._W[o] |= t[n++] << s * 8;
41146
- r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |= Ho << (3 - n % 4) * 8), this._W[14] = t.byteLength / h0e, this._W[15] = t.byteLength * 8, this._updateHash();
41146
+ r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |= $o << (3 - n % 4) * 8), this._W[14] = t.byteLength / h0e, this._W[15] = t.byteLength * 8, this._updateHash();
41147
41147
  const i = new Uint8Array(32);
41148
41148
  for (let s = 0; s < this._H.length; s++)
41149
41149
  for (let a = 0; a < 4; a++)
@@ -41390,7 +41390,7 @@ class Fme {
41390
41390
  _renderSnapshot(t, n, r) {
41391
41391
  let o = this.doc, i = this.type;
41392
41392
  if (t || (t = pF(this.doc)), t instanceof Uint8Array || n instanceof Uint8Array)
41393
- if ((!(t instanceof Uint8Array) || !(n instanceof Uint8Array)) && Co(), o = new ws({ gc: !1 }), ty(o, n), n = pF(o), ty(o, t), t = pF(o), i._item === null) {
41393
+ if ((!(t instanceof Uint8Array) || !(n instanceof Uint8Array)) && Eo(), o = new ws({ gc: !1 }), ty(o, n), n = pF(o), ty(o, t), t = pF(o), i._item === null) {
41394
41394
  const s = Array.from(this.doc.share.keys()).find(
41395
41395
  (a) => this.doc.share.get(a) === this.type
41396
41396
  );
@@ -41605,7 +41605,7 @@ const TW = (e, t, n, r, o, i) => {
41605
41605
  }
41606
41606
  return s;
41607
41607
  }, Dme = (e, t) => {
41608
- const n = new ko(), r = e.map((o) => ({
41608
+ const n = new Do(), r = e.map((o) => ({
41609
41609
  // @ts-ignore
41610
41610
  insert: o.text,
41611
41611
  attributes: BW(o.marks, t)
@@ -41668,7 +41668,7 @@ const TW = (e, t, n, r, o, i) => {
41668
41668
  (r, o) => tg(r, n[o])
41669
41669
  );
41670
41670
  }
41671
- return e instanceof ko && t instanceof Array && jW(e, t);
41671
+ return e instanceof Do && t instanceof Array && jW(e, t);
41672
41672
  }, cy = (e, t) => e === t || e instanceof Array && t instanceof Array && e.length === t.length && e.every(
41673
41673
  (n, r) => t[r] === n
41674
41674
  ), vj = (e, t, n) => {
@@ -41763,7 +41763,7 @@ const TW = (e, t, n, r, o, i) => {
41763
41763
  e.transact(() => {
41764
41764
  for (; a - u - c > 0 && i - u - c > 0; ) {
41765
41765
  const p = s[u], h = o[u], f = s[a - c - 1], g = o[i - c - 1];
41766
- if (p instanceof ko && h instanceof Array)
41766
+ if (p instanceof Do && h instanceof Array)
41767
41767
  jW(p, h) || Cme(p, h, r), u += 1;
41768
41768
  else {
41769
41769
  let m = p instanceof Hr && jD(p, h), b = f instanceof Hr && jD(f, g);
@@ -41803,7 +41803,7 @@ const TW = (e, t, n, r, o, i) => {
41803
41803
  }
41804
41804
  }
41805
41805
  const d = a - u - c;
41806
- if (a === 1 && i === 0 && s[0] instanceof ko ? (r.mapping.delete(s[0]), s[0].delete(0, s[0].length)) : d > 0 && (t.slice(u, u + d).forEach((p) => r.mapping.delete(p)), t.delete(u, d)), u + c < i) {
41806
+ if (a === 1 && i === 0 && s[0] instanceof Do ? (r.mapping.delete(s[0]), s[0].delete(0, s[0].length)) : d > 0 && (t.slice(u, u + d).forEach((p) => r.mapping.delete(p)), t.delete(u, d)), u + c < i) {
41807
41807
  const p = [];
41808
41808
  for (let h = u; h < i - c; h++)
41809
41809
  p.push(SD(o[h], r));
@@ -41824,7 +41824,7 @@ const Sme = () => {
41824
41824
  }), n.dispatch(r));
41825
41825
  });
41826
41826
  }, Tme = (e, t, n) => {
41827
- t1 || (t1 = /* @__PURE__ */ new Map(), Y9(0, Sme)), ia(t1, e, $o).set(t, n);
41827
+ t1 || (t1 = /* @__PURE__ */ new Map(), Y9(0, Sme)), ia(t1, e, zo).set(t, n);
41828
41828
  }, Gd = (e, t, n) => {
41829
41829
  if (e === 0)
41830
41830
  return dF(t, 0, -1);
@@ -41833,7 +41833,7 @@ const Sme = () => {
41833
41833
  t._first.content.type
41834
41834
  );
41835
41835
  for (; r !== null && t !== r; ) {
41836
- if (r instanceof ko) {
41836
+ if (r instanceof Do) {
41837
41837
  if (r._length >= e)
41838
41838
  return dF(r, e, -1);
41839
41839
  if (e -= r._length, r._item !== null && r._item.next !== null)
@@ -41879,8 +41879,8 @@ const Sme = () => {
41879
41879
  }
41880
41880
  }
41881
41881
  if (r === null)
41882
- throw Co();
41883
- if (e === 0 && r.constructor !== ko && r !== t)
41882
+ throw Eo();
41883
+ if (e === 0 && r.constructor !== Do && r !== t)
41884
41884
  return jme(r._item.parent, r._item);
41885
41885
  }
41886
41886
  return dF(t, t._length, -1);
@@ -41892,7 +41892,7 @@ const Sme = () => {
41892
41892
  if (o === null || o.type !== t && !Z1(t, o.type._item))
41893
41893
  return null;
41894
41894
  let i = o.type, s = 0;
41895
- if (i.constructor === ko)
41895
+ if (i.constructor === Do)
41896
41896
  s = o.index;
41897
41897
  else if (i._item === null || !i._item.deleted) {
41898
41898
  let a = i._first, l = 0;
@@ -41902,7 +41902,7 @@ const Sme = () => {
41902
41902
  /** @type {Y.ContentType} */
41903
41903
  a.content.type
41904
41904
  );
41905
- l++, u instanceof ko ? s += u._length : s += /** @type {any} */
41905
+ l++, u instanceof Do ? s += u._length : s += /** @type {any} */
41906
41906
  r.get(u).nodeSize;
41907
41907
  }
41908
41908
  a = /** @type {Y.Item} */
@@ -41925,7 +41925,7 @@ const Sme = () => {
41925
41925
  );
41926
41926
  if (u === i)
41927
41927
  break;
41928
- l.deleted || (u instanceof ko ? s += u._length : s += /** @type {any} */
41928
+ l.deleted || (u instanceof Do ? s += u._length : s += /** @type {any} */
41929
41929
  r.get(u).nodeSize), l = l.right;
41930
41930
  }
41931
41931
  }
@@ -41937,7 +41937,7 @@ const Sme = () => {
41937
41937
  function Bme(e) {
41938
41938
  const t = e.toArray(), n = (r) => {
41939
41939
  let o;
41940
- if (r instanceof ko)
41940
+ if (r instanceof Do)
41941
41941
  o = r.toDelta().map(
41942
41942
  /** @param {any} d */
41943
41943
  (s) => {
@@ -41962,7 +41962,7 @@ function Bme(e) {
41962
41962
  const s = r.toArray();
41963
41963
  s.length && (o.content = s.map(n).flat());
41964
41964
  } else
41965
- Co();
41965
+ Eo();
41966
41966
  return o;
41967
41967
  };
41968
41968
  return {
@@ -42548,11 +42548,11 @@ function BD(e, t) {
42548
42548
  if (e)
42549
42549
  try {
42550
42550
  if (Array.isArray(e)) {
42551
- const n = e.map((r) => Fo(r));
42551
+ const n = e.map((r) => Po(r));
42552
42552
  qs(t, ld(n), "self");
42553
42553
  return;
42554
42554
  }
42555
- qs(t, Fo(e), "self");
42555
+ qs(t, Po(e), "self");
42556
42556
  } catch (n) {
42557
42557
  console.log(n);
42558
42558
  }
@@ -42796,7 +42796,7 @@ function PW(e) {
42796
42796
  }).filter((n) => n !== null);
42797
42797
  }
42798
42798
  function x2e(e) {
42799
- return e.toArray().map((t) => t instanceof Hr || t instanceof ko ? t.clone() : null).filter((t) => t !== null);
42799
+ return e.toArray().map((t) => t instanceof Hr || t instanceof Do ? t.clone() : null).filter((t) => t !== null);
42800
42800
  }
42801
42801
  var dy = { exports: {} };
42802
42802
  /*!
@@ -48624,14 +48624,14 @@ const {
48624
48624
  getOwnPropertyDescriptor: Lxe
48625
48625
  } = Object;
48626
48626
  let {
48627
- freeze: Go,
48627
+ freeze: Ko,
48628
48628
  seal: Ds,
48629
48629
  create: Yp
48630
48630
  } = Object, {
48631
48631
  apply: zD,
48632
48632
  construct: $D
48633
48633
  } = typeof Reflect < "u" && Reflect;
48634
- Go || (Go = function(t) {
48634
+ Ko || (Ko = function(t) {
48635
48635
  return t;
48636
48636
  });
48637
48637
  Ds || (Ds = function(t) {
@@ -48647,7 +48647,7 @@ $D || ($D = function(t) {
48647
48647
  r[o - 1] = arguments[o];
48648
48648
  return new t(...r);
48649
48649
  });
48650
- const n0 = Er(Array.prototype.forEach), Uxe = Er(Array.prototype.lastIndexOf), nB = Er(Array.prototype.pop), r0 = Er(Array.prototype.push), Pxe = Er(Array.prototype.splice), Oo = Array.isArray, O0 = Er(String.prototype.toLowerCase), AF = Er(String.prototype.toString), rB = Er(String.prototype.match), jp = Er(String.prototype.replace), oB = Er(String.prototype.indexOf), zxe = Er(String.prototype.trim), $xe = Er(Number.prototype.toString), Hxe = Er(Boolean.prototype.toString), iB = typeof BigInt > "u" ? null : Er(BigInt.prototype.toString), sB = typeof Symbol > "u" ? null : Er(Symbol.prototype.toString), ur = Er(Object.prototype.hasOwnProperty), o0 = Er(Object.prototype.toString), Jr = Er(RegExp.prototype.test), l2 = Wxe(TypeError);
48650
+ const n0 = Er(Array.prototype.forEach), Uxe = Er(Array.prototype.lastIndexOf), nB = Er(Array.prototype.pop), r0 = Er(Array.prototype.push), Pxe = Er(Array.prototype.splice), Mo = Array.isArray, O0 = Er(String.prototype.toLowerCase), AF = Er(String.prototype.toString), rB = Er(String.prototype.match), jp = Er(String.prototype.replace), oB = Er(String.prototype.indexOf), zxe = Er(String.prototype.trim), $xe = Er(Number.prototype.toString), Hxe = Er(Boolean.prototype.toString), iB = typeof BigInt > "u" ? null : Er(BigInt.prototype.toString), sB = typeof Symbol > "u" ? null : Er(Symbol.prototype.toString), ur = Er(Object.prototype.hasOwnProperty), o0 = Er(Object.prototype.toString), Jr = Er(RegExp.prototype.test), l2 = Wxe(TypeError);
48651
48651
  function Er(e) {
48652
48652
  return function(t) {
48653
48653
  t instanceof RegExp && (t.lastIndex = 0);
@@ -48665,7 +48665,7 @@ function Wxe(e) {
48665
48665
  }
48666
48666
  function on(e, t) {
48667
48667
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : O0;
48668
- if (tB && tB(e, null), !Oo(t))
48668
+ if (tB && tB(e, null), !Mo(t))
48669
48669
  return e;
48670
48670
  let r = t.length;
48671
48671
  for (; r--; ) {
@@ -48683,10 +48683,10 @@ function qxe(e) {
48683
48683
  ur(e, t) || (e[t] = null);
48684
48684
  return e;
48685
48685
  }
48686
- function Zo(e) {
48686
+ function Yo(e) {
48687
48687
  const t = Yp(null);
48688
48688
  for (const [n, r] of Aq(e))
48689
- ur(e, n) && (Oo(r) ? t[n] = qxe(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Zo(r) : t[n] = r);
48689
+ ur(e, n) && (Mo(r) ? t[n] = qxe(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Yo(r) : t[n] = r);
48690
48690
  return t;
48691
48691
  }
48692
48692
  function Vxe(e) {
@@ -48741,7 +48741,7 @@ function Kxe(e) {
48741
48741
  return !1;
48742
48742
  }
48743
48743
  }
48744
- const aB = Go(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _F = Go(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), SF = Go(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Gxe = Go(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), TF = Go(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Xxe = Go(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), lB = Go(["#text"]), uB = Go(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), jF = Go(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), cB = Go(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), u2 = Go(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Yxe = Ds(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Zxe = Ds(/<%[\w\W]*|[\w\W]*%>/gm), Jxe = Ds(/\$\{[\w\W]*/gm), Qxe = Ds(/^data-[\-\w.\u00B7-\uFFFF]+$/), e3e = Ds(/^aria-[\-\w]+$/), _q = Ds(
48744
+ const aB = Ko(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _F = Ko(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), SF = Ko(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Gxe = Ko(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), TF = Ko(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Xxe = Ko(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), lB = Ko(["#text"]), uB = Ko(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), jF = Ko(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), cB = Ko(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), u2 = Ko(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Yxe = Ds(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Zxe = Ds(/<%[\w\W]*|[\w\W]*%>/gm), Jxe = Ds(/\$\{[\w\W]*/gm), Qxe = Ds(/^data-[\-\w.\u00B7-\uFFFF]+$/), e3e = Ds(/^aria-[\-\w]+$/), _q = Ds(
48745
48745
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
48746
48746
  // eslint-disable-line no-useless-escape
48747
48747
  ), t3e = Ds(/^(?:\w+script|data):/i), n3e = Ds(
@@ -48907,10 +48907,10 @@ function Tq() {
48907
48907
  let Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
48908
48908
  if (ut && ut === Fe)
48909
48909
  return;
48910
- (!Fe || typeof Fe != "object") && (Fe = {}), Fe = Zo(Fe), At = // eslint-disable-next-line unicorn/prefer-includes
48911
- Le.indexOf(Fe.PARSER_MEDIA_TYPE) === -1 ? _t : Fe.PARSER_MEDIA_TYPE, Qe = At === "application/xhtml+xml" ? AF : O0, L = ur(Fe, "ALLOWED_TAGS") && Oo(Fe.ALLOWED_TAGS) ? on({}, Fe.ALLOWED_TAGS, Qe) : P, K = ur(Fe, "ALLOWED_ATTR") && Oo(Fe.ALLOWED_ATTR) ? on({}, Fe.ALLOWED_ATTR, Qe) : oe, qe = ur(Fe, "ALLOWED_NAMESPACES") && Oo(Fe.ALLOWED_NAMESPACES) ? on({}, Fe.ALLOWED_NAMESPACES, AF) : gt, ve = ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) ? on(Zo(Ee), Fe.ADD_URI_SAFE_ATTR, Qe) : Ee, ae = ur(Fe, "ADD_DATA_URI_TAGS") && Oo(Fe.ADD_DATA_URI_TAGS) ? on(Zo(me), Fe.ADD_DATA_URI_TAGS, Qe) : me, W = ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) ? on({}, Fe.FORBID_CONTENTS, Qe) : Q, J = ur(Fe, "FORBID_TAGS") && Oo(Fe.FORBID_TAGS) ? on({}, Fe.FORBID_TAGS, Qe) : Zo({}), le = ur(Fe, "FORBID_ATTR") && Oo(Fe.FORBID_ATTR) ? on({}, Fe.FORBID_ATTR, Qe) : Zo({}), I = ur(Fe, "USE_PROFILES") ? Fe.USE_PROFILES && typeof Fe.USE_PROFILES == "object" ? Zo(Fe.USE_PROFILES) : Fe.USE_PROFILES : !1, Z = Fe.ALLOW_ARIA_ATTR !== !1, T = Fe.ALLOW_DATA_ATTR !== !1, X = Fe.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = Fe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pe = Fe.SAFE_FOR_TEMPLATES || !1, B = Fe.SAFE_FOR_XML !== !1, re = Fe.WHOLE_DOCUMENT || !1, te = Fe.RETURN_DOM || !1, se = Fe.RETURN_DOM_FRAGMENT || !1, ye = Fe.RETURN_TRUSTED_TYPE || !1, V = Fe.FORCE_BODY || !1, ke = Fe.SANITIZE_DOM !== !1, ge = Fe.SANITIZE_NAMED_PROPS || !1, ce = Fe.KEEP_CONTENT !== !1, be = Fe.IN_PLACE || !1, H = Kxe(Fe.ALLOWED_URI_REGEXP) ? Fe.ALLOWED_URI_REGEXP : _q, Oe = typeof Fe.NAMESPACE == "string" ? Fe.NAMESPACE : Be, at = ur(Fe, "MATHML_TEXT_INTEGRATION_POINTS") && Fe.MATHML_TEXT_INTEGRATION_POINTS && typeof Fe.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Zo(Fe.MATHML_TEXT_INTEGRATION_POINTS) : on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = ur(Fe, "HTML_INTEGRATION_POINTS") && Fe.HTML_INTEGRATION_POINTS && typeof Fe.HTML_INTEGRATION_POINTS == "object" ? Zo(Fe.HTML_INTEGRATION_POINTS) : on({}, ["annotation-xml"]);
48912
- const Te = ur(Fe, "CUSTOM_ELEMENT_HANDLING") && Fe.CUSTOM_ELEMENT_HANDLING && typeof Fe.CUSTOM_ELEMENT_HANDLING == "object" ? Zo(Fe.CUSTOM_ELEMENT_HANDLING) : Yp(null);
48913
- if (ee = Yp(null), ur(Te, "tagNameCheck") && mt(Te.tagNameCheck) && (ee.tagNameCheck = Te.tagNameCheck), ur(Te, "attributeNameCheck") && mt(Te.attributeNameCheck) && (ee.attributeNameCheck = Te.attributeNameCheck), ur(Te, "allowCustomizedBuiltInElements") && typeof Te.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = Te.allowCustomizedBuiltInElements), pe && (T = !1), se && (te = !0), I && (L = on({}, lB), K = Yp(null), I.html === !0 && (on(L, aB), on(K, uB)), I.svg === !0 && (on(L, _F), on(K, jF), on(K, u2)), I.svgFilters === !0 && (on(L, SF), on(K, jF), on(K, u2)), I.mathMl === !0 && (on(L, TF), on(K, cB), on(K, u2))), G.tagCheck = null, G.attributeCheck = null, ur(Fe, "ADD_TAGS") && (typeof Fe.ADD_TAGS == "function" ? G.tagCheck = Fe.ADD_TAGS : Oo(Fe.ADD_TAGS) && (L === P && (L = Zo(L)), on(L, Fe.ADD_TAGS, Qe))), ur(Fe, "ADD_ATTR") && (typeof Fe.ADD_ATTR == "function" ? G.attributeCheck = Fe.ADD_ATTR : Oo(Fe.ADD_ATTR) && (K === oe && (K = Zo(K)), on(K, Fe.ADD_ATTR, Qe))), ur(Fe, "ADD_URI_SAFE_ATTR") && Oo(Fe.ADD_URI_SAFE_ATTR) && on(ve, Fe.ADD_URI_SAFE_ATTR, Qe), ur(Fe, "FORBID_CONTENTS") && Oo(Fe.FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.FORBID_CONTENTS, Qe)), ur(Fe, "ADD_FORBID_CONTENTS") && Oo(Fe.ADD_FORBID_CONTENTS) && (W === Q && (W = Zo(W)), on(W, Fe.ADD_FORBID_CONTENTS, Qe)), ce && (L["#text"] = !0), re && on(L, ["html", "head", "body"]), L.table && (on(L, ["tbody"]), delete J.tbody), Fe.TRUSTED_TYPES_POLICY) {
48910
+ (!Fe || typeof Fe != "object") && (Fe = {}), Fe = Yo(Fe), At = // eslint-disable-next-line unicorn/prefer-includes
48911
+ Le.indexOf(Fe.PARSER_MEDIA_TYPE) === -1 ? _t : Fe.PARSER_MEDIA_TYPE, Qe = At === "application/xhtml+xml" ? AF : O0, L = ur(Fe, "ALLOWED_TAGS") && Mo(Fe.ALLOWED_TAGS) ? on({}, Fe.ALLOWED_TAGS, Qe) : P, K = ur(Fe, "ALLOWED_ATTR") && Mo(Fe.ALLOWED_ATTR) ? on({}, Fe.ALLOWED_ATTR, Qe) : oe, qe = ur(Fe, "ALLOWED_NAMESPACES") && Mo(Fe.ALLOWED_NAMESPACES) ? on({}, Fe.ALLOWED_NAMESPACES, AF) : gt, ve = ur(Fe, "ADD_URI_SAFE_ATTR") && Mo(Fe.ADD_URI_SAFE_ATTR) ? on(Yo(Ee), Fe.ADD_URI_SAFE_ATTR, Qe) : Ee, ae = ur(Fe, "ADD_DATA_URI_TAGS") && Mo(Fe.ADD_DATA_URI_TAGS) ? on(Yo(me), Fe.ADD_DATA_URI_TAGS, Qe) : me, W = ur(Fe, "FORBID_CONTENTS") && Mo(Fe.FORBID_CONTENTS) ? on({}, Fe.FORBID_CONTENTS, Qe) : Q, J = ur(Fe, "FORBID_TAGS") && Mo(Fe.FORBID_TAGS) ? on({}, Fe.FORBID_TAGS, Qe) : Yo({}), le = ur(Fe, "FORBID_ATTR") && Mo(Fe.FORBID_ATTR) ? on({}, Fe.FORBID_ATTR, Qe) : Yo({}), I = ur(Fe, "USE_PROFILES") ? Fe.USE_PROFILES && typeof Fe.USE_PROFILES == "object" ? Yo(Fe.USE_PROFILES) : Fe.USE_PROFILES : !1, Z = Fe.ALLOW_ARIA_ATTR !== !1, T = Fe.ALLOW_DATA_ATTR !== !1, X = Fe.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = Fe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pe = Fe.SAFE_FOR_TEMPLATES || !1, B = Fe.SAFE_FOR_XML !== !1, re = Fe.WHOLE_DOCUMENT || !1, te = Fe.RETURN_DOM || !1, se = Fe.RETURN_DOM_FRAGMENT || !1, ye = Fe.RETURN_TRUSTED_TYPE || !1, V = Fe.FORCE_BODY || !1, ke = Fe.SANITIZE_DOM !== !1, ge = Fe.SANITIZE_NAMED_PROPS || !1, ce = Fe.KEEP_CONTENT !== !1, be = Fe.IN_PLACE || !1, H = Kxe(Fe.ALLOWED_URI_REGEXP) ? Fe.ALLOWED_URI_REGEXP : _q, Oe = typeof Fe.NAMESPACE == "string" ? Fe.NAMESPACE : Be, at = ur(Fe, "MATHML_TEXT_INTEGRATION_POINTS") && Fe.MATHML_TEXT_INTEGRATION_POINTS && typeof Fe.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Yo(Fe.MATHML_TEXT_INTEGRATION_POINTS) : on({}, ["mi", "mo", "mn", "ms", "mtext"]), Mt = ur(Fe, "HTML_INTEGRATION_POINTS") && Fe.HTML_INTEGRATION_POINTS && typeof Fe.HTML_INTEGRATION_POINTS == "object" ? Yo(Fe.HTML_INTEGRATION_POINTS) : on({}, ["annotation-xml"]);
48912
+ const Te = ur(Fe, "CUSTOM_ELEMENT_HANDLING") && Fe.CUSTOM_ELEMENT_HANDLING && typeof Fe.CUSTOM_ELEMENT_HANDLING == "object" ? Yo(Fe.CUSTOM_ELEMENT_HANDLING) : Yp(null);
48913
+ if (ee = Yp(null), ur(Te, "tagNameCheck") && mt(Te.tagNameCheck) && (ee.tagNameCheck = Te.tagNameCheck), ur(Te, "attributeNameCheck") && mt(Te.attributeNameCheck) && (ee.attributeNameCheck = Te.attributeNameCheck), ur(Te, "allowCustomizedBuiltInElements") && typeof Te.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = Te.allowCustomizedBuiltInElements), pe && (T = !1), se && (te = !0), I && (L = on({}, lB), K = Yp(null), I.html === !0 && (on(L, aB), on(K, uB)), I.svg === !0 && (on(L, _F), on(K, jF), on(K, u2)), I.svgFilters === !0 && (on(L, SF), on(K, jF), on(K, u2)), I.mathMl === !0 && (on(L, TF), on(K, cB), on(K, u2))), G.tagCheck = null, G.attributeCheck = null, ur(Fe, "ADD_TAGS") && (typeof Fe.ADD_TAGS == "function" ? G.tagCheck = Fe.ADD_TAGS : Mo(Fe.ADD_TAGS) && (L === P && (L = Yo(L)), on(L, Fe.ADD_TAGS, Qe))), ur(Fe, "ADD_ATTR") && (typeof Fe.ADD_ATTR == "function" ? G.attributeCheck = Fe.ADD_ATTR : Mo(Fe.ADD_ATTR) && (K === oe && (K = Yo(K)), on(K, Fe.ADD_ATTR, Qe))), ur(Fe, "ADD_URI_SAFE_ATTR") && Mo(Fe.ADD_URI_SAFE_ATTR) && on(ve, Fe.ADD_URI_SAFE_ATTR, Qe), ur(Fe, "FORBID_CONTENTS") && Mo(Fe.FORBID_CONTENTS) && (W === Q && (W = Yo(W)), on(W, Fe.FORBID_CONTENTS, Qe)), ur(Fe, "ADD_FORBID_CONTENTS") && Mo(Fe.ADD_FORBID_CONTENTS) && (W === Q && (W = Yo(W)), on(W, Fe.ADD_FORBID_CONTENTS, Qe)), ce && (L["#text"] = !0), re && on(L, ["html", "head", "body"]), L.table && (on(L, ["tbody"]), delete J.tbody), Fe.TRUSTED_TYPES_POLICY) {
48914
48914
  if (typeof Fe.TRUSTED_TYPES_POLICY.createHTML != "function")
48915
48915
  throw l2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
48916
48916
  if (typeof Fe.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -48918,7 +48918,7 @@ function Tq() {
48918
48918
  v = Fe.TRUSTED_TYPES_POLICY, w = v.createHTML("");
48919
48919
  } else
48920
48920
  v === void 0 && (v = i3e(h, o)), v !== null && typeof w == "string" && (w = v.createHTML(""));
48921
- Go && Go(Fe), ut = Fe;
48921
+ Ko && Ko(Fe), ut = Fe;
48922
48922
  }, zt = on({}, [..._F, ...SF, ...Gxe]), dt = on({}, [...TF, ...Xxe]), vt = function(Fe) {
48923
48923
  let Te = F(Fe);
48924
48924
  (!Te || !Te.tagName) && (Te = {
@@ -49485,8 +49485,8 @@ function Lq(e, t) {
49485
49485
  return e.getElementsByTagName(n).length;
49486
49486
  });
49487
49487
  }
49488
- var To = {};
49489
- To.paragraph = {
49488
+ var So = {};
49489
+ So.paragraph = {
49490
49490
  filter: "p",
49491
49491
  replacement: function(e) {
49492
49492
  return `
@@ -49496,14 +49496,14 @@ To.paragraph = {
49496
49496
  `;
49497
49497
  }
49498
49498
  };
49499
- To.lineBreak = {
49499
+ So.lineBreak = {
49500
49500
  filter: "br",
49501
49501
  replacement: function(e, t, n) {
49502
49502
  return n.br + `
49503
49503
  `;
49504
49504
  }
49505
49505
  };
49506
- To.heading = {
49506
+ So.heading = {
49507
49507
  filter: ["h1", "h2", "h3", "h4", "h5", "h6"],
49508
49508
  replacement: function(e, t, n) {
49509
49509
  var r = Number(t.nodeName.charAt(1));
@@ -49523,7 +49523,7 @@ To.heading = {
49523
49523
  `;
49524
49524
  }
49525
49525
  };
49526
- To.blockquote = {
49526
+ So.blockquote = {
49527
49527
  filter: "blockquote",
49528
49528
  replacement: function(e) {
49529
49529
  return e = Mq(e).replace(/^/gm, "> "), `
@@ -49533,7 +49533,7 @@ To.blockquote = {
49533
49533
  `;
49534
49534
  }
49535
49535
  };
49536
- To.list = {
49536
+ So.list = {
49537
49537
  filter: ["ul", "ol"],
49538
49538
  replacement: function(e, t) {
49539
49539
  var n = t.parentNode;
@@ -49545,7 +49545,7 @@ To.list = {
49545
49545
  `;
49546
49546
  }
49547
49547
  };
49548
- To.listItem = {
49548
+ So.listItem = {
49549
49549
  filter: "li",
49550
49550
  replacement: function(e, t, n) {
49551
49551
  var r = n.bulletListMarker + " ", o = t.parentNode;
@@ -49560,7 +49560,7 @@ To.listItem = {
49560
49560
  ` : "");
49561
49561
  }
49562
49562
  };
49563
- To.indentedCodeBlock = {
49563
+ So.indentedCodeBlock = {
49564
49564
  filter: function(e, t) {
49565
49565
  return t.codeBlockStyle === "indented" && e.nodeName === "PRE" && e.firstChild && e.firstChild.nodeName === "CODE";
49566
49566
  },
@@ -49573,7 +49573,7 @@ To.indentedCodeBlock = {
49573
49573
  `;
49574
49574
  }
49575
49575
  };
49576
- To.fencedCodeBlock = {
49576
+ So.fencedCodeBlock = {
49577
49577
  filter: function(e, t) {
49578
49578
  return t.codeBlockStyle === "fenced" && e.nodeName === "PRE" && e.firstChild && e.firstChild.nodeName === "CODE";
49579
49579
  },
@@ -49590,7 +49590,7 @@ To.fencedCodeBlock = {
49590
49590
  `;
49591
49591
  }
49592
49592
  };
49593
- To.horizontalRule = {
49593
+ So.horizontalRule = {
49594
49594
  filter: "hr",
49595
49595
  replacement: function(e, t, n) {
49596
49596
  return `
@@ -49600,7 +49600,7 @@ To.horizontalRule = {
49600
49600
  `;
49601
49601
  }
49602
49602
  };
49603
- To.inlineLink = {
49603
+ So.inlineLink = {
49604
49604
  filter: function(e, t) {
49605
49605
  return t.linkStyle === "inlined" && e.nodeName === "A" && e.getAttribute("href");
49606
49606
  },
@@ -49611,7 +49611,7 @@ To.inlineLink = {
49611
49611
  return r && (r = ' "' + r.replace(/"/g, '\\"') + '"'), "[" + e + "](" + n + r + ")";
49612
49612
  }
49613
49613
  };
49614
- To.referenceLink = {
49614
+ So.referenceLink = {
49615
49615
  filter: function(e, t) {
49616
49616
  return t.linkStyle === "referenced" && e.nodeName === "A" && e.getAttribute("href");
49617
49617
  },
@@ -49643,19 +49643,19 @@ To.referenceLink = {
49643
49643
  `, this.references = []), t;
49644
49644
  }
49645
49645
  };
49646
- To.emphasis = {
49646
+ So.emphasis = {
49647
49647
  filter: ["em", "i"],
49648
49648
  replacement: function(e, t, n) {
49649
49649
  return e.trim() ? n.emDelimiter + e + n.emDelimiter : "";
49650
49650
  }
49651
49651
  };
49652
- To.strong = {
49652
+ So.strong = {
49653
49653
  filter: ["strong", "b"],
49654
49654
  replacement: function(e, t, n) {
49655
49655
  return e.trim() ? n.strongDelimiter + e + n.strongDelimiter : "";
49656
49656
  }
49657
49657
  };
49658
- To.code = {
49658
+ So.code = {
49659
49659
  filter: function(e) {
49660
49660
  var t = e.previousSibling || e.nextSibling, n = e.parentNode.nodeName === "PRE" && !t;
49661
49661
  return e.nodeName === "CODE" && !n;
@@ -49667,7 +49667,7 @@ To.code = {
49667
49667
  return n + t + e + t + n;
49668
49668
  }
49669
49669
  };
49670
- To.image = {
49670
+ So.image = {
49671
49671
  filter: "img",
49672
49672
  replacement: function(e, t) {
49673
49673
  var n = my(t.getAttribute("alt")), r = t.getAttribute("src") || "", o = my(t.getAttribute("title")), i = o ? ' "' + o + '"' : "";
@@ -49866,7 +49866,7 @@ var B3e = Array.prototype.reduce, N3e = [
49866
49866
  function by(e) {
49867
49867
  if (!(this instanceof by)) return new by(e);
49868
49868
  var t = {
49869
- rules: To,
49869
+ rules: So,
49870
49870
  headingStyle: "setext",
49871
49871
  hr: "* * *",
49872
49872
  bulletListMarker: "*",
@@ -53850,30 +53850,19 @@ const GD = [
53850
53850
  "NodeSelector"
53851
53851
  );
53852
53852
  }, cr = Yn(
53853
- ({
53854
- icon: e,
53855
- isActive: t,
53856
- onClick: n,
53857
- tooltip: r,
53858
- classNames: o,
53859
- disabled: i,
53860
- size: s,
53861
- variant: a,
53862
- ...l
53863
- }, u) => {
53864
- const c = (d) => {
53865
- d.preventDefault();
53853
+ ({ icon: e, isActive: t, onClick: n, tooltip: r, classNames: o, disabled: i, size: s, variant: a }, l) => {
53854
+ const u = (c) => {
53855
+ c.preventDefault();
53866
53856
  };
53867
- return r ? /* @__PURE__ */ x.jsx(hn, { text: r, asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
53857
+ return r ? /* @__PURE__ */ x.jsx(hn, { text: r, children: /* @__PURE__ */ x.jsx(
53868
53858
  qt,
53869
53859
  {
53870
- ref: u,
53860
+ ref: l,
53871
53861
  variant: a,
53872
53862
  size: s || "md",
53873
53863
  icon: e,
53874
- ...l,
53875
53864
  onClick: n,
53876
- onMouseDown: c,
53865
+ onMouseDown: u,
53877
53866
  isActive: t,
53878
53867
  className: o,
53879
53868
  disabled: i
@@ -53881,13 +53870,12 @@ const GD = [
53881
53870
  ) }) : /* @__PURE__ */ x.jsx(
53882
53871
  qt,
53883
53872
  {
53884
- ref: u,
53873
+ ref: l,
53885
53874
  variant: "ghost",
53886
53875
  size: s || "md",
53887
53876
  icon: e,
53888
- ...l,
53889
53877
  onClick: n,
53890
- onMouseDown: c,
53878
+ onMouseDown: u,
53891
53879
  isActive: t,
53892
53880
  className: o,
53893
53881
  disabled: i
@@ -55712,7 +55700,7 @@ const n4e = {
55712
55700
  initial: { opacity: 0 },
55713
55701
  animate: { opacity: 1 },
55714
55702
  exit: { opacity: 0 }
55715
- }, Uo = (e, t) => /* @__PURE__ */ x.jsx(
55703
+ }, Ro = (e, t) => /* @__PURE__ */ x.jsx(
55716
55704
  Ps.div,
55717
55705
  {
55718
55706
  variants: o4e,
@@ -55812,7 +55800,7 @@ function u4e(e, t = "prosemirror") {
55812
55800
  function ME(e) {
55813
55801
  const t = e.toArray(), n = (r) => {
55814
55802
  let o;
55815
- if (r instanceof ko)
55803
+ if (r instanceof Do)
55816
55804
  o = r.toDelta().map(
55817
55805
  /** @param {any} d */
55818
55806
  (s) => {
@@ -55837,7 +55825,7 @@ function ME(e) {
55837
55825
  const s = r.toArray();
55838
55826
  s.length && (o.content = s.map(n).flat());
55839
55827
  } else
55840
- Co();
55828
+ Eo();
55841
55829
  return o;
55842
55830
  };
55843
55831
  return {
@@ -55845,7 +55833,7 @@ function ME(e) {
55845
55833
  content: t.map(n)
55846
55834
  };
55847
55835
  }
55848
- var Ao = Uint8Array, Pi = Uint16Array, OE = Int32Array, IE = new Ao([
55836
+ var Co = Uint8Array, Pi = Uint16Array, OE = Int32Array, IE = new Co([
55849
55837
  0,
55850
55838
  0,
55851
55839
  0,
@@ -55880,7 +55868,7 @@ var Ao = Uint8Array, Pi = Uint16Array, OE = Int32Array, IE = new Ao([
55880
55868
  0,
55881
55869
  /* impossible */
55882
55870
  0
55883
- ]), RE = new Ao([
55871
+ ]), RE = new Co([
55884
55872
  0,
55885
55873
  0,
55886
55874
  0,
@@ -55914,7 +55902,7 @@ var Ao = Uint8Array, Pi = Uint16Array, OE = Int32Array, IE = new Ao([
55914
55902
  /* unused */
55915
55903
  0,
55916
55904
  0
55917
- ]), CB = new Ao([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), xV = function(e, t) {
55905
+ ]), CB = new Co([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), xV = function(e, t) {
55918
55906
  for (var n = new Pi(31), r = 0; r < 31; ++r)
55919
55907
  n[r] = t += 1 << e[r - 1];
55920
55908
  for (var o = new OE(n[30]), r = 1; r < 30; ++r)
@@ -55946,7 +55934,7 @@ var n1 = function(e, t, n) {
55946
55934
  for (a = new Pi(r), o = 0; o < r; ++o)
55947
55935
  e[o] && (a[o] = ZD[s[e[o] - 1]++] >> 15 - e[o]);
55948
55936
  return a;
55949
- }, Yd = new Ao(288);
55937
+ }, Yd = new Co(288);
55950
55938
  for (var Xn = 0; Xn < 144; ++Xn)
55951
55939
  Yd[Xn] = 8;
55952
55940
  for (var Xn = 144; Xn < 256; ++Xn)
@@ -55955,13 +55943,13 @@ for (var Xn = 256; Xn < 280; ++Xn)
55955
55943
  Yd[Xn] = 7;
55956
55944
  for (var Xn = 280; Xn < 288; ++Xn)
55957
55945
  Yd[Xn] = 8;
55958
- var ky = new Ao(32);
55946
+ var ky = new Co(32);
55959
55947
  for (var Xn = 0; Xn < 32; ++Xn)
55960
55948
  ky[Xn] = 5;
55961
55949
  var p4e = /* @__PURE__ */ n1(Yd, 9, 0), h4e = /* @__PURE__ */ n1(ky, 5, 0), FV = function(e) {
55962
55950
  return (e + 7) / 8 | 0;
55963
55951
  }, wV = function(e, t, n) {
55964
- return (n == null || n > e.length) && (n = e.length), new Ao(e.subarray(t, n));
55952
+ return (n == null || n > e.length) && (n = e.length), new Co(e.subarray(t, n));
55965
55953
  }, f4e = [
55966
55954
  "unexpected EOF",
55967
55955
  "invalid block type",
@@ -55998,7 +55986,7 @@ var p4e = /* @__PURE__ */ n1(Yd, 9, 0), h4e = /* @__PURE__ */ n1(ky, 5, 0), FV =
55998
55986
  if (!o)
55999
55987
  return { t: kV, l: 0 };
56000
55988
  if (o == 1) {
56001
- var s = new Ao(n[0].s + 1);
55989
+ var s = new Co(n[0].s + 1);
56002
55990
  return s[n[0].s] = 1, { t: s, l: 1 };
56003
55991
  }
56004
55992
  n.sort(function(w, D) {
@@ -56031,7 +56019,7 @@ var p4e = /* @__PURE__ */ n1(Yd, 9, 0), h4e = /* @__PURE__ */ n1(ky, 5, 0), FV =
56031
56019
  }
56032
56020
  f = t;
56033
56021
  }
56034
- return { t: new Ao(h), l: f };
56022
+ return { t: new Co(h), l: f };
56035
56023
  }, JD = function(e, t, n) {
56036
56024
  return e.s == -1 ? Math.max(JD(e.l, t, n + 1), JD(e.r, t, n + 1)) : t[e.s] = n;
56037
56025
  }, _B = function(e) {
@@ -56104,8 +56092,8 @@ var p4e = /* @__PURE__ */ n1(Yd, 9, 0), h4e = /* @__PURE__ */ n1(ky, 5, 0), FV =
56104
56092
  l0(t, c, S[ee]), c += R[ee];
56105
56093
  }
56106
56094
  return l0(t, c, S[256]), c + R[256];
56107
- }, g4e = /* @__PURE__ */ new OE([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), kV = /* @__PURE__ */ new Ao(0), m4e = function(e, t, n, r, o, i) {
56108
- var s = i.z || e.length, a = new Ao(r + s + 5 * (1 + Math.ceil(s / 7e3)) + o), l = a.subarray(r, a.length - o), u = i.l, c = (i.r || 0) & 7;
56095
+ }, g4e = /* @__PURE__ */ new OE([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), kV = /* @__PURE__ */ new Co(0), m4e = function(e, t, n, r, o, i) {
56096
+ var s = i.z || e.length, a = new Co(r + s + 5 * (1 + Math.ceil(s / 7e3)) + o), l = a.subarray(r, a.length - o), u = i.l, c = (i.r || 0) & 7;
56109
56097
  if (t) {
56110
56098
  c && (l[0] = i.r >> 3);
56111
56099
  for (var d = g4e[t - 1], p = d >> 13, h = d & 8191, f = (1 << n) - 1, g = i.p || new Pi(32768), m = i.h || new Pi(f + 1), b = Math.ceil(n / 3), y = 2 * b, F = function(B) {
@@ -56178,7 +56166,7 @@ var p4e = /* @__PURE__ */ n1(Yd, 9, 0), h4e = /* @__PURE__ */ n1(ky, 5, 0), FV =
56178
56166
  };
56179
56167
  }, x4e = function(e, t, n, r, o) {
56180
56168
  if (!o && (o = { l: 1 }, t.dictionary)) {
56181
- var i = t.dictionary.subarray(-32768), s = new Ao(i.length + e.length);
56169
+ var i = t.dictionary.subarray(-32768), s = new Co(i.length + e.length);
56182
56170
  s.set(i), s.set(e, i.length), e = s, o.w = i.length;
56183
56171
  }
56184
56172
  return m4e(e, t.level == null ? 6 : t.level, t.mem == null ? o.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, n, r, o);
@@ -56199,7 +56187,7 @@ function v4e(e, t) {
56199
56187
  var CV = function(e, t, n, r) {
56200
56188
  for (var o in e) {
56201
56189
  var i = e[o], s = t + o, a = r;
56202
- Array.isArray(i) && (a = EV(r, i[1]), i = i[0]), i instanceof Ao ? n[s] = [i, a] : (n[s += "/"] = [new Ao(0), a], CV(i, s, n, r));
56190
+ Array.isArray(i) && (a = EV(r, i[1]), i = i[0]), i instanceof Co ? n[s] = [i, a] : (n[s += "/"] = [new Co(0), a], CV(i, s, n, r));
56203
56191
  }
56204
56192
  }, TB = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(), F4e = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), w4e = 0;
56205
56193
  try {
@@ -56210,11 +56198,11 @@ function jB(e, t) {
56210
56198
  var n;
56211
56199
  if (TB)
56212
56200
  return TB.encode(e);
56213
- for (var r = e.length, o = new Ao(e.length + (e.length >> 1)), i = 0, s = function(u) {
56201
+ for (var r = e.length, o = new Co(e.length + (e.length >> 1)), i = 0, s = function(u) {
56214
56202
  o[i++] = u;
56215
56203
  }, n = 0; n < r; ++n) {
56216
56204
  if (i + 5 > o.length) {
56217
- var a = new Ao(i + 8 + (r - n << 1));
56205
+ var a = new Co(i + 8 + (r - n << 1));
56218
56206
  a.set(o), o = a;
56219
56207
  }
56220
56208
  var l = e.charCodeAt(n);
@@ -56263,7 +56251,7 @@ function k4e(e, t) {
56263
56251
  compression: c
56264
56252
  })), o += 30 + p + m + y, i += 76 + 2 * (p + m) + (g || 0) + y;
56265
56253
  }
56266
- for (var v = new Ao(i + 22), w = o, D = i - o, k = 0; k < r.length; ++k) {
56254
+ for (var v = new Co(i + 22), w = o, D = i - o, k = 0; k < r.length; ++k) {
56267
56255
  var d = r[k];
56268
56256
  BB(v, d.o, d, d.f, d.u, d.c.length);
56269
56257
  var E = 30 + d.f.length + QD(d.extra);
@@ -58540,7 +58528,7 @@ ${j.getHTML()}`
58540
58528
  onClose: () => {
58541
58529
  t(!1), p(!1), c(!1);
58542
58530
  },
58543
- anchorTrigger: /* @__PURE__ */ x.jsx(hn, { text: "Export/Import", asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
58531
+ anchorTrigger: /* @__PURE__ */ x.jsx(hn, { text: "Export/Import", children: /* @__PURE__ */ x.jsx(
58544
58532
  qt,
58545
58533
  {
58546
58534
  icon: "File",
@@ -58723,7 +58711,7 @@ ${j.getHTML()}`
58723
58711
  tool: e,
58724
58712
  isLoading: t,
58725
58713
  renderContent: n
58726
- }) => t ? Uo(
58714
+ }) => t ? Ro(
58727
58715
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[36px] h-[36px] rounded-sm" }),
58728
58716
  e.title + "skeleton"
58729
58717
  ) : /* @__PURE__ */ x.jsx(
@@ -58916,7 +58904,7 @@ ${j.getHTML()}`
58916
58904
  );
58917
58905
  return /* @__PURE__ */ x.jsx(lp, { mode: "wait", children: /* @__PURE__ */ x.jsxs("div", { className: "w-full bg-transparent py-2 px-4 items-center h-9 flex justify-between relative", children: [
58918
58906
  /* @__PURE__ */ x.jsxs("div", { className: "flex h-9 items-center gap-1 justify-center", children: [
58919
- b ? Uo(
58907
+ b ? Ro(
58920
58908
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[36px] h-[36px] rounded-sm" }),
58921
58909
  "markdown-transition"
58922
58910
  ) : ni(
@@ -58937,7 +58925,7 @@ ${j.getHTML()}`
58937
58925
  "markdown-dropdown-transition"
58938
58926
  ),
58939
58927
  /* @__PURE__ */ x.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
58940
- /* @__PURE__ */ x.jsx("div", { className: "flex gap-1 justify-center items-center", children: j.map((ie, ce) => ie ? /* @__PURE__ */ x.jsx(hn, { text: ie.title, asTriggerChild: !0, children: b ? Uo(
58928
+ /* @__PURE__ */ x.jsx("div", { className: "flex gap-1 justify-center items-center", children: j.map((ie, ce) => ie ? /* @__PURE__ */ x.jsx(hn, { text: ie.title, children: b ? Ro(
58941
58929
  /* @__PURE__ */ x.jsx(
58942
58930
  Tr,
58943
58931
  {
@@ -58965,7 +58953,7 @@ ${j.getHTML()}`
58965
58953
  },
58966
58954
  ce
58967
58955
  )) }),
58968
- b ? Uo(
58956
+ b ? Ro(
58969
58957
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[80px] h-[36px] rounded-sm" }),
58970
58958
  "zoom-skeleton-transition"
58971
58959
  ) : ni(
@@ -59005,7 +58993,7 @@ ${j.getHTML()}`
59005
58993
  "zoom-dropdown-transition"
59006
58994
  ),
59007
58995
  /* @__PURE__ */ x.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
59008
- b ? Uo(
58996
+ b ? Ro(
59009
58997
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[96px] h-[36px] rounded-sm" }),
59010
58998
  "font-family-skeleton"
59011
58999
  ) : ni(
@@ -59055,7 +59043,7 @@ ${j.getHTML()}`
59055
59043
  "font-dropdown-transiton"
59056
59044
  ),
59057
59045
  /* @__PURE__ */ x.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
59058
- b ? Uo(
59046
+ b ? Ro(
59059
59047
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[112px] h-[36px] rounded-sm" }),
59060
59048
  "heading-skeleton"
59061
59049
  ) : ni(
@@ -59093,7 +59081,7 @@ ${j.getHTML()}`
59093
59081
  "heading-dropdown"
59094
59082
  ),
59095
59083
  /* @__PURE__ */ x.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
59096
- b ? Uo(
59084
+ b ? Ro(
59097
59085
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[112px] h-[36px] rounded-sm" }),
59098
59086
  "font-size-skeleton"
59099
59087
  ) : ni(
@@ -59133,7 +59121,7 @@ ${j.getHTML()}`
59133
59121
  const be = te;
59134
59122
  return ie ? ie.group === "More" && (ie.notVisible ?? 0) >= be ? C.findIndex(
59135
59123
  (Q) => (Q == null ? void 0 : Q.group) === "More" && ((Q == null ? void 0 : Q.notVisible) ?? 0) >= be
59136
- ) === ce ? b ? Uo(
59124
+ ) === ce ? b ? Ro(
59137
59125
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[36px] h-[36px] rounded-sm" }),
59138
59126
  ie.title + "loader"
59139
59127
  ) : ni(
@@ -59188,11 +59176,11 @@ ${j.getHTML()}`
59188
59176
  tool: ie
59189
59177
  },
59190
59178
  ie.title
59191
- ) : b ? Uo(
59179
+ ) : b ? Ro(
59192
59180
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[36px] h-[36px] rounded-sm" }),
59193
59181
  ie.title + "skeleton"
59194
59182
  ) : ni(
59195
- /* @__PURE__ */ x.jsx(hn, { text: ie.title, asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
59183
+ /* @__PURE__ */ x.jsx(hn, { text: ie.title, children: /* @__PURE__ */ x.jsx(
59196
59184
  cr,
59197
59185
  {
59198
59186
  icon: ie.icon,
@@ -59214,24 +59202,17 @@ ${j.getHTML()}`
59214
59202
  ] }),
59215
59203
  /* @__PURE__ */ x.jsxs("div", { className: "flex items-center gap-1", children: [
59216
59204
  /* @__PURE__ */ x.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-2" }),
59217
- N && /* @__PURE__ */ x.jsx(
59218
- hn,
59205
+ N && /* @__PURE__ */ x.jsx(hn, { text: _ ? "Back to editor" : "Markdown view", children: /* @__PURE__ */ x.jsx(
59206
+ qt,
59219
59207
  {
59220
- text: _ ? "Back to editor" : "Markdown view",
59221
- asTriggerChild: !0,
59222
- children: /* @__PURE__ */ x.jsx(
59223
- qt,
59224
- {
59225
- icon: _ ? "PenLine" : "SquareSplitHorizontal",
59226
- size: "sm",
59227
- variant: "ghost",
59228
- onClick: N,
59229
- id: "split-view-button"
59230
- }
59231
- )
59208
+ icon: _ ? "PenLine" : "SquareSplitHorizontal",
59209
+ size: "sm",
59210
+ variant: "ghost",
59211
+ onClick: N,
59212
+ id: "split-view-button"
59232
59213
  }
59233
- ),
59234
- /* @__PURE__ */ x.jsx(hn, { text: "Enter focus mode", asTriggerChild: !0, children: /* @__PURE__ */ x.jsx(
59214
+ ) }),
59215
+ /* @__PURE__ */ x.jsx(hn, { text: "Enter focus mode", children: /* @__PURE__ */ x.jsx(
59235
59216
  qt,
59236
59217
  {
59237
59218
  icon: "Maximize",
@@ -59241,7 +59222,7 @@ ${j.getHTML()}`
59241
59222
  id: "focus-mode-button"
59242
59223
  }
59243
59224
  ) }),
59244
- b ? Uo(
59225
+ b ? Ro(
59245
59226
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[36px] h-[36px] rounded-sm" }),
59246
59227
  "chevronUp-skeleton"
59247
59228
  ) : ni(
@@ -71337,7 +71318,7 @@ function ACe(e) {
71337
71318
  }
71338
71319
  return t;
71339
71320
  }
71340
- var x7 = ACe, ei = Symbol("MODE_BREAK"), ba = Symbol("MODE_FLAT"), ah = Symbol("cursor"), Ek = Symbol("DOC_FILL_PRINTED_LENGTH");
71321
+ var x7 = ACe, Qo = Symbol("MODE_BREAK"), ba = Symbol("MODE_FLAT"), ah = Symbol("cursor"), Ek = Symbol("DOC_FILL_PRINTED_LENGTH");
71341
71322
  function $G() {
71342
71323
  return { value: "", length: 0, queue: [] };
71343
71324
  }
@@ -71433,17 +71414,17 @@ function F2(e, t, n, r, o, i) {
71433
71414
  break;
71434
71415
  case bi: {
71435
71416
  if (i && c.break) return !1;
71436
- let p = c.break ? ei : u, h = c.expandedStates && p === ei ? Pr(!1, c.expandedStates, -1) : c.contents;
71417
+ let p = c.break ? Qo : u, h = c.expandedStates && p === Qo ? Pr(!1, c.expandedStates, -1) : c.contents;
71437
71418
  a.push({ mode: p, doc: h });
71438
71419
  break;
71439
71420
  }
71440
71421
  case $i: {
71441
- let p = (c.groupId ? o[c.groupId] || ba : u) === ei ? c.breakContents : c.flatContents;
71422
+ let p = (c.groupId ? o[c.groupId] || ba : u) === Qo ? c.breakContents : c.flatContents;
71442
71423
  p && a.push({ mode: u, doc: p });
71443
71424
  break;
71444
71425
  }
71445
71426
  case lo:
71446
- if (u === ei || c.hard) return !0;
71427
+ if (u === Qo || c.hard) return !0;
71447
71428
  c.soft || (l.push(" "), n--);
71448
71429
  break;
71449
71430
  case su:
@@ -71457,7 +71438,7 @@ function F2(e, t, n, r, o, i) {
71457
71438
  return !1;
71458
71439
  }
71459
71440
  function X3(e, t) {
71460
- let n = {}, r = t.printWidth, o = g7(t.endOfLine), i = 0, s = [{ ind: $G(), mode: ei, doc: e }], a = [], l = !1, u = [], c = 0;
71441
+ let n = {}, r = t.printWidth, o = g7(t.endOfLine), i = 0, s = [{ ind: $G(), mode: Qo, doc: e }], a = [], l = !1, u = [], c = 0;
71461
71442
  for (eCe(e); s.length > 0; ) {
71462
71443
  let { ind: p, mode: h, doc: f } = s.pop();
71463
71444
  switch (bp(f)) {
@@ -71488,20 +71469,20 @@ function X3(e, t) {
71488
71469
  switch (h) {
71489
71470
  case ba:
71490
71471
  if (!l) {
71491
- s.push({ ind: p, mode: f.break ? ei : ba, doc: f.contents });
71472
+ s.push({ ind: p, mode: f.break ? Qo : ba, doc: f.contents });
71492
71473
  break;
71493
71474
  }
71494
- case ei: {
71475
+ case Qo: {
71495
71476
  l = !1;
71496
71477
  let g = { ind: p, mode: ba, doc: f.contents }, m = r - i, b = u.length > 0;
71497
71478
  if (!f.break && F2(g, s, m, b, n)) s.push(g);
71498
71479
  else if (f.expandedStates) {
71499
71480
  let y = Pr(!1, f.expandedStates, -1);
71500
71481
  if (f.break) {
71501
- s.push({ ind: p, mode: ei, doc: y });
71482
+ s.push({ ind: p, mode: Qo, doc: y });
71502
71483
  break;
71503
71484
  } else for (let F = 1; F < f.expandedStates.length + 1; F++) if (F >= f.expandedStates.length) {
71504
- s.push({ ind: p, mode: ei, doc: y });
71485
+ s.push({ ind: p, mode: Qo, doc: y });
71505
71486
  break;
71506
71487
  } else {
71507
71488
  let v = f.expandedStates[F], w = { ind: p, mode: ba, doc: v };
@@ -71510,7 +71491,7 @@ function X3(e, t) {
71510
71491
  break;
71511
71492
  }
71512
71493
  }
71513
- } else s.push({ ind: p, mode: ei, doc: f.contents });
71494
+ } else s.push({ ind: p, mode: Qo, doc: f.contents });
71514
71495
  break;
71515
71496
  }
71516
71497
  }
@@ -71519,12 +71500,12 @@ function X3(e, t) {
71519
71500
  case rl: {
71520
71501
  let g = r - i, m = f[Ek] ?? 0, { parts: b } = f, y = b.length - m;
71521
71502
  if (y === 0) break;
71522
- let F = b[m + 0], v = b[m + 1], w = { ind: p, mode: ba, doc: F }, D = { ind: p, mode: ei, doc: F }, k = F2(w, [], g, u.length > 0, n, !0);
71503
+ let F = b[m + 0], v = b[m + 1], w = { ind: p, mode: ba, doc: F }, D = { ind: p, mode: Qo, doc: F }, k = F2(w, [], g, u.length > 0, n, !0);
71523
71504
  if (y === 1) {
71524
71505
  k ? s.push(w) : s.push(D);
71525
71506
  break;
71526
71507
  }
71527
- let E = { ind: p, mode: ba, doc: v }, _ = { ind: p, mode: ei, doc: v };
71508
+ let E = { ind: p, mode: ba, doc: v }, _ = { ind: p, mode: Qo, doc: v };
71528
71509
  if (y === 2) {
71529
71510
  k ? s.push(E, w) : s.push(_, D);
71530
71511
  break;
@@ -71536,7 +71517,7 @@ function X3(e, t) {
71536
71517
  case $i:
71537
71518
  case iu: {
71538
71519
  let g = f.groupId ? n[f.groupId] : h;
71539
- if (g === ei) {
71520
+ if (g === Qo) {
71540
71521
  let m = f.type === $i ? f.breakContents : f.negate ? f.contents : ix(f.contents);
71541
71522
  m && s.push({ ind: p, mode: h, doc: m });
71542
71523
  }
@@ -71560,7 +71541,7 @@ function X3(e, t) {
71560
71541
  f.soft || (a.push(" "), i += 1);
71561
71542
  break;
71562
71543
  }
71563
- case ei:
71544
+ case Qo:
71564
71545
  if (u.length > 0) {
71565
71546
  s.push({ ind: p, mode: h, doc: f }, ...u.reverse()), u.length = 0;
71566
71547
  break;
@@ -75086,7 +75067,7 @@ var fY = class Ik {
75086
75067
  constructor(e, t) {
75087
75068
  this.msg = e, this.cursor = t;
75088
75069
  }
75089
- }, Mo = class gY extends lY {
75070
+ }, No = class gY extends lY {
75090
75071
  static create(t, n, r) {
75091
75072
  return new gY(t, n, r);
75092
75073
  }
@@ -75114,7 +75095,7 @@ var fY = class Ik {
75114
75095
  }
75115
75096
  build() {
75116
75097
  for (; this._peek.type !== 34; ) this._peek.type === 0 || this._peek.type === 4 ? this._consumeStartTag(this._advance()) : this._peek.type === 3 ? (this._closeVoidElement(), this._consumeEndTag(this._advance())) : this._peek.type === 12 ? (this._closeVoidElement(), this._consumeCdata(this._advance())) : this._peek.type === 10 ? (this._closeVoidElement(), this._consumeComment(this._advance())) : this._peek.type === 5 || this._peek.type === 7 || this._peek.type === 6 ? (this._closeVoidElement(), this._consumeText(this._advance())) : this._peek.type === 20 ? this._consumeExpansion(this._advance()) : this._peek.type === 25 ? (this._closeVoidElement(), this._consumeBlockOpen(this._advance())) : this._peek.type === 27 ? (this._closeVoidElement(), this._consumeBlockClose(this._advance())) : this._peek.type === 29 ? (this._closeVoidElement(), this._consumeIncompleteBlock(this._advance())) : this._peek.type === 30 ? (this._closeVoidElement(), this._consumeLet(this._advance())) : this._peek.type === 18 ? this._consumeDocType(this._advance()) : this._peek.type === 33 ? (this._closeVoidElement(), this._consumeIncompleteLet(this._advance())) : this._advance();
75117
- for (let t of this._containerStack) t instanceof Mp && this.errors.push(Mo.create(t.name, t.sourceSpan, `Unclosed block "${t.name}"`));
75098
+ for (let t of this._containerStack) t instanceof Mp && this.errors.push(No.create(t.name, t.sourceSpan, `Unclosed block "${t.name}"`));
75118
75099
  }
75119
75100
  _advance() {
75120
75101
  let t = this._peek;
@@ -75143,7 +75124,7 @@ var fY = class Ik {
75143
75124
  o.push(s);
75144
75125
  }
75145
75126
  if (this._peek.type !== 24) {
75146
- this.errors.push(Mo.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '}'."));
75127
+ this.errors.push(No.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '}'."));
75147
75128
  return;
75148
75129
  }
75149
75130
  let i = new cn(t.sourceSpan.start, this._peek.sourceSpan.end, t.sourceSpan.fullStart);
@@ -75151,7 +75132,7 @@ var fY = class Ik {
75151
75132
  }
75152
75133
  _parseExpansionCase() {
75153
75134
  let t = this._advance();
75154
- if (this._peek.type !== 22) return this.errors.push(Mo.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '{'.")), null;
75135
+ if (this._peek.type !== 22) return this.errors.push(No.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '{'.")), null;
75155
75136
  let n = this._advance(), r = this._collectExpansionExpTokens(n);
75156
75137
  if (!r) return null;
75157
75138
  let o = this._advance();
@@ -75166,10 +75147,10 @@ var fY = class Ik {
75166
75147
  for (; ; ) {
75167
75148
  if ((this._peek.type === 20 || this._peek.type === 22) && r.push(this._peek.type), this._peek.type === 23) if (sO(r, 22)) {
75168
75149
  if (r.pop(), r.length === 0) return n;
75169
- } else return this.errors.push(Mo.create(null, t.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
75150
+ } else return this.errors.push(No.create(null, t.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
75170
75151
  if (this._peek.type === 24) if (sO(r, 20)) r.pop();
75171
- else return this.errors.push(Mo.create(null, t.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
75172
- if (this._peek.type === 34) return this.errors.push(Mo.create(null, t.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
75152
+ else return this.errors.push(No.create(null, t.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
75153
+ if (this._peek.type === 34) return this.errors.push(No.create(null, t.sourceSpan, "Invalid ICU message. Missing '}'.")), null;
75173
75154
  n.push(this._advance());
75174
75155
  }
75175
75156
  }
@@ -75206,20 +75187,20 @@ var fY = class Ik {
75206
75187
  if (this._peek.type === 2) {
75207
75188
  this._advance(), s = !0;
75208
75189
  let h = this.getTagDefinition(i);
75209
- this.canSelfClose || h.canSelfClose || Db(i) !== null || h.isVoid || this.errors.push(Mo.create(i, t.sourceSpan, `Only void, custom and foreign elements can be self closed "${t.parts[1]}"`));
75190
+ this.canSelfClose || h.canSelfClose || Db(i) !== null || h.isVoid || this.errors.push(No.create(i, t.sourceSpan, `Only void, custom and foreign elements can be self closed "${t.parts[1]}"`));
75210
75191
  } else this._peek.type === 1 && (this._advance(), s = !1);
75211
75192
  let a = this._peek.sourceSpan.fullStart, l = new cn(t.sourceSpan.start, a, t.sourceSpan.fullStart), u = new cn(t.sourceSpan.start, a, t.sourceSpan.fullStart), c = new cn(t.sourceSpan.start.moveBy(1), t.sourceSpan.end), d = new bu(i, o, [], l, u, void 0, c), p = this._getContainer();
75212
- this._pushContainer(d, p instanceof bu && this.getTagDefinition(p.name).isClosedByChild(d.name)), s ? this._popContainer(i, bu, l) : t.type === 4 && (this._popContainer(i, bu, null), this.errors.push(Mo.create(i, l, `Opening tag "${i}" not terminated.`)));
75193
+ this._pushContainer(d, p instanceof bu && this.getTagDefinition(p.name).isClosedByChild(d.name)), s ? this._popContainer(i, bu, l) : t.type === 4 && (this._popContainer(i, bu, null), this.errors.push(No.create(i, l, `Opening tag "${i}" not terminated.`)));
75213
75194
  }
75214
75195
  _pushContainer(t, n) {
75215
75196
  n && this._containerStack.pop(), this._addToParent(t), this._containerStack.push(t);
75216
75197
  }
75217
75198
  _consumeEndTag(t) {
75218
75199
  let n = this.allowHtmComponentClosingTags && t.parts.length === 0 ? null : this._getElementFullName(t.parts[0], t.parts[1], this._getClosestParentElement());
75219
- if (n && this.getTagDefinition(n).isVoid) this.errors.push(Mo.create(n, t.sourceSpan, `Void elements do not have end tags "${t.parts[1]}"`));
75200
+ if (n && this.getTagDefinition(n).isVoid) this.errors.push(No.create(n, t.sourceSpan, `Void elements do not have end tags "${t.parts[1]}"`));
75220
75201
  else if (!this._popContainer(n, bu, t.sourceSpan)) {
75221
75202
  let r = `Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;
75222
- this.errors.push(Mo.create(n, t.sourceSpan, r));
75203
+ this.errors.push(No.create(n, t.sourceSpan, r));
75223
75204
  }
75224
75205
  }
75225
75206
  _popContainer(t, n, r) {
@@ -75254,7 +75235,7 @@ var fY = class Ik {
75254
75235
  this._pushContainer(s, !1);
75255
75236
  }
75256
75237
  _consumeBlockClose(t) {
75257
- this._popContainer(null, Mp, t.sourceSpan) || this.errors.push(Mo.create(null, t.sourceSpan, 'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'));
75238
+ this._popContainer(null, Mp, t.sourceSpan) || this.errors.push(No.create(null, t.sourceSpan, 'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'));
75258
75239
  }
75259
75240
  _consumeIncompleteBlock(t) {
75260
75241
  let n = [];
@@ -75263,16 +75244,16 @@ var fY = class Ik {
75263
75244
  n.push(new QM(a.parts[0], a.sourceSpan));
75264
75245
  }
75265
75246
  let r = this._peek.sourceSpan.fullStart, o = new cn(t.sourceSpan.start, r, t.sourceSpan.fullStart), i = new cn(t.sourceSpan.start, r, t.sourceSpan.fullStart), s = new Mp(t.parts[0], n, [], o, t.sourceSpan, i);
75266
- this._pushContainer(s, !1), this._popContainer(null, Mp, null), this.errors.push(Mo.create(t.parts[0], o, `Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`));
75247
+ this._pushContainer(s, !1), this._popContainer(null, Mp, null), this.errors.push(No.create(t.parts[0], o, `Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`));
75267
75248
  }
75268
75249
  _consumeLet(t) {
75269
75250
  let n = t.parts[0], r, o;
75270
75251
  if (this._peek.type !== 31) {
75271
- this.errors.push(Mo.create(t.parts[0], t.sourceSpan, `Invalid @let declaration "${n}". Declaration must have a value.`));
75252
+ this.errors.push(No.create(t.parts[0], t.sourceSpan, `Invalid @let declaration "${n}". Declaration must have a value.`));
75272
75253
  return;
75273
75254
  } else r = this._advance();
75274
75255
  if (this._peek.type !== 32) {
75275
- this.errors.push(Mo.create(t.parts[0], t.sourceSpan, `Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));
75256
+ this.errors.push(No.create(t.parts[0], t.sourceSpan, `Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));
75276
75257
  return;
75277
75258
  } else o = this._advance();
75278
75259
  let i = o.sourceSpan.fullStart, s = new cn(t.sourceSpan.start, i, t.sourceSpan.fullStart), a = t.sourceSpan.toString().lastIndexOf(n), l = t.sourceSpan.start.moveBy(a), u = new cn(l, t.sourceSpan.end), c = new eO(n, r.parts[0], s, u, r.sourceSpan);
@@ -75284,7 +75265,7 @@ var fY = class Ik {
75284
75265
  let o = t.sourceSpan.toString().lastIndexOf(n), i = t.sourceSpan.start.moveBy(o), s = new cn(i, t.sourceSpan.end), a = new cn(t.sourceSpan.start, t.sourceSpan.start.moveBy(0)), l = new eO(n, "", t.sourceSpan, s, a);
75285
75266
  this._addToParent(l);
75286
75267
  }
75287
- this.errors.push(Mo.create(t.parts[0], t.sourceSpan, `Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``));
75268
+ this.errors.push(No.create(t.parts[0], t.sourceSpan, `Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``));
75288
75269
  }
75289
75270
  _getContainer() {
75290
75271
  return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
@@ -75680,7 +75661,7 @@ var yi = {}, X7 = "1.13.7", dO = typeof self == "object" && self.self === self &
75680
75661
  "hasOwnProperty",
75681
75662
  "toLocaleString"
75682
75663
  ], fNe = Math.pow(2, 53) - 1;
75683
- function Xo(e, t) {
75664
+ function Go(e, t) {
75684
75665
  return t = t == null ? e.length - 1 : +t, function() {
75685
75666
  for (var n = Math.max(arguments.length - t, 0), r = Array(n), o = 0; o < n; o++)
75686
75667
  r[o] = arguments[o + t];
@@ -75714,27 +75695,27 @@ function J7(e) {
75714
75695
  function wY(e) {
75715
75696
  return !!(e && e.nodeType === 1);
75716
75697
  }
75717
- function jo(e) {
75698
+ function To(e) {
75718
75699
  var t = "[object " + e + "]";
75719
75700
  return function(n) {
75720
75701
  return bg.call(n) === t;
75721
75702
  };
75722
75703
  }
75723
- const uv = jo("String"), Q7 = jo("Number"), DY = jo("Date"), kY = jo("RegExp"), EY = jo("Error"), eC = jo("Symbol"), tC = jo("ArrayBuffer");
75724
- var CY = jo("Function"), gNe = dO.document && dO.document.childNodes;
75704
+ const uv = To("String"), Q7 = To("Number"), DY = To("Date"), kY = To("RegExp"), EY = To("Error"), eC = To("Symbol"), tC = To("ArrayBuffer");
75705
+ var CY = To("Function"), gNe = dO.document && dO.document.childNodes;
75725
75706
  typeof /./ != "function" && typeof Int8Array != "object" && typeof gNe != "function" && (CY = function(e) {
75726
75707
  return typeof e == "function" || !1;
75727
75708
  });
75728
- const _o = CY, AY = jo("Object");
75729
- var _Y = cNe && (!/\[native code\]/.test(String(DataView)) || AY(new DataView(new ArrayBuffer(8)))), nC = typeof Map < "u" && AY(/* @__PURE__ */ new Map()), mNe = jo("DataView");
75709
+ const Ao = CY, AY = To("Object");
75710
+ var _Y = cNe && (!/\[native code\]/.test(String(DataView)) || AY(new DataView(new ArrayBuffer(8)))), nC = typeof Map < "u" && AY(/* @__PURE__ */ new Map()), mNe = To("DataView");
75730
75711
  function bNe(e) {
75731
- return e != null && _o(e.getInt8) && tC(e.buffer);
75712
+ return e != null && Ao(e.getInt8) && tC(e.buffer);
75732
75713
  }
75733
- const yg = _Y ? bNe : mNe, Nc = dNe || jo("Array");
75714
+ const yg = _Y ? bNe : mNe, Nc = dNe || To("Array");
75734
75715
  function Mc(e, t) {
75735
75716
  return e != null && uNe.call(e, t);
75736
75717
  }
75737
- var Pk = jo("Arguments");
75718
+ var Pk = To("Arguments");
75738
75719
  (function() {
75739
75720
  Pk(arguments) || (Pk = function(e) {
75740
75721
  return Mc(e, "callee");
@@ -75782,7 +75763,7 @@ function FNe(e) {
75782
75763
  }
75783
75764
  function BY(e, t) {
75784
75765
  t = FNe(t);
75785
- var n = mO.length, r = e.constructor, o = _o(r) && r.prototype || Y7, i = "constructor";
75766
+ var n = mO.length, r = e.constructor, o = Ao(r) && r.prototype || Y7, i = "constructor";
75786
75767
  for (Mc(e, i) && !t.contains(i) && t.push(i); n--; )
75787
75768
  i = mO[n], i in e && e[i] !== o[i] && !t.contains(i) && t.push(i);
75788
75769
  }
@@ -75868,7 +75849,7 @@ function MY(e, t, n, r) {
75868
75849
  if (!i) {
75869
75850
  if (typeof e != "object" || typeof t != "object") return !1;
75870
75851
  var a = e.constructor, l = t.constructor;
75871
- if (a !== l && !(_o(a) && a instanceof a && _o(l) && l instanceof l) && "constructor" in e && "constructor" in t)
75852
+ if (a !== l && !(Ao(a) && a instanceof a && Ao(l) && l instanceof l) && "constructor" in e && "constructor" in t)
75872
75853
  return !1;
75873
75854
  }
75874
75855
  n = n || [], r = r || [];
@@ -75902,12 +75883,12 @@ function aC(e) {
75902
75883
  var r = Pf(n);
75903
75884
  if (xi(r)) return !1;
75904
75885
  for (var o = 0; o < t; o++)
75905
- if (!_o(n[e[o]])) return !1;
75906
- return e !== LY || !_o(n[lC]);
75886
+ if (!Ao(n[e[o]])) return !1;
75887
+ return e !== LY || !Ao(n[lC]);
75907
75888
  };
75908
75889
  }
75909
75890
  var lC = "forEach", IY = "has", uC = ["clear", "delete"], RY = ["get", IY, "set"], wNe = uC.concat(lC, RY), LY = uC.concat(RY), DNe = ["add"].concat(uC, lC, IY);
75910
- const UY = nC ? aC(wNe) : jo("Map"), PY = nC ? aC(LY) : jo("WeakMap"), zY = nC ? aC(DNe) : jo("Set"), $Y = jo("WeakSet");
75891
+ const UY = nC ? aC(wNe) : To("Map"), PY = nC ? aC(LY) : To("WeakMap"), zY = nC ? aC(DNe) : To("Set"), $Y = To("WeakSet");
75911
75892
  function yp(e) {
75912
75893
  for (var t = Or(e), n = t.length, r = Array(n), o = 0; o < n; o++)
75913
75894
  r[o] = e[t[o]];
@@ -75926,7 +75907,7 @@ function cC(e) {
75926
75907
  function xg(e) {
75927
75908
  var t = [];
75928
75909
  for (var n in e)
75929
- _o(e[n]) && t.push(n);
75910
+ Ao(e[n]) && t.push(n);
75930
75911
  return t.sort();
75931
75912
  }
75932
75913
  function dC(e, t) {
@@ -76025,7 +76006,7 @@ function bm(e, t, n) {
76025
76006
  };
76026
76007
  }
76027
76008
  function XY(e, t, n) {
76028
- return e == null ? dv : _o(e) ? bm(e, t, n) : Bc(e) && !Nc(e) ? np(e) : pv(e);
76009
+ return e == null ? dv : Ao(e) ? bm(e, t, n) : Bc(e) && !Nc(e) ? np(e) : pv(e);
76029
76010
  }
76030
76011
  function hv(e, t) {
76031
76012
  return XY(e, t, 1 / 0);
@@ -76138,10 +76119,10 @@ function iZ(e, t, n) {
76138
76119
  t = mm(t);
76139
76120
  var r = t.length;
76140
76121
  if (!r)
76141
- return _o(n) ? n.call(e) : n;
76122
+ return Ao(n) ? n.call(e) : n;
76142
76123
  for (var o = 0; o < r; o++) {
76143
76124
  var i = e == null ? void 0 : e[t[o]];
76144
- i === void 0 && (i = n, o = r), e = _o(i) ? i.call(e) : i;
76125
+ i === void 0 && (i = n, o = r), e = Ao(i) ? i.call(e) : i;
76145
76126
  }
76146
76127
  return e;
76147
76128
  }
@@ -76159,7 +76140,7 @@ function lZ(e, t, n, r, o) {
76159
76140
  var i = WY(e.prototype), s = e.apply(i, o);
76160
76141
  return Bc(s) ? s : i;
76161
76142
  }
76162
- var xp = Xo(function(e, t) {
76143
+ var xp = Go(function(e, t) {
76163
76144
  var n = xp.placeholder, r = function() {
76164
76145
  for (var o = 0, i = t.length, s = Array(i), a = 0; a < i; a++)
76165
76146
  s[a] = t[a] === n ? arguments[o++] : t[a];
@@ -76169,9 +76150,9 @@ var xp = Xo(function(e, t) {
76169
76150
  return r;
76170
76151
  });
76171
76152
  xp.placeholder = Bn;
76172
- const yC = Xo(function(e, t, n) {
76173
- if (!_o(e)) throw new TypeError("Bind must be called on a function");
76174
- var r = Xo(function(o) {
76153
+ const yC = Go(function(e, t, n) {
76154
+ if (!Ao(e)) throw new TypeError("Bind must be called on a function");
76155
+ var r = Go(function(o) {
76175
76156
  return lZ(e, r, t, this, n.concat(o));
76176
76157
  });
76177
76158
  return r;
@@ -76192,7 +76173,7 @@ function vp(e, t, n, r) {
76192
76173
  }
76193
76174
  return r;
76194
76175
  }
76195
- const uZ = Xo(function(e, t) {
76176
+ const uZ = Go(function(e, t) {
76196
76177
  t = vp(t, !1, !1);
76197
76178
  var n = t.length;
76198
76179
  if (n < 1) throw new Error("bindAll must be passed function names");
@@ -76209,7 +76190,7 @@ function cZ(e, t) {
76209
76190
  };
76210
76191
  return n.cache = {}, n;
76211
76192
  }
76212
- const xC = Xo(function(e, t, n) {
76193
+ const xC = Go(function(e, t, n) {
76213
76194
  return setTimeout(function() {
76214
76195
  return e.apply(null, n);
76215
76196
  }, t);
@@ -76233,7 +76214,7 @@ function hZ(e, t, n) {
76233
76214
  var r, o, i, s, a, l = function() {
76234
76215
  var c = af() - o;
76235
76216
  t > c ? r = setTimeout(l, t - c) : (r = null, n || (s = e.apply(a, i)), r || (i = a = null));
76236
- }, u = Xo(function(c) {
76217
+ }, u = Go(function(c) {
76237
76218
  return a = this, i = c, o = af(), r || (r = setTimeout(l, t), n && (s = e.apply(a, i))), s;
76238
76219
  });
76239
76220
  return u.cancel = function() {
@@ -76376,9 +76357,9 @@ function bx(e, t, n) {
76376
76357
  function bs(e, t, n, r) {
76377
76358
  return Xi(e) || (e = yp(e)), (typeof n != "number" || r) && (n = 0), kC(e, t, n) >= 0;
76378
76359
  }
76379
- const kZ = Xo(function(e, t, n) {
76360
+ const kZ = Go(function(e, t, n) {
76380
76361
  var r, o;
76381
- return _o(t) ? o = t : (t = mm(t), r = t.slice(0, -1), t = t[t.length - 1]), Vl(e, function(i) {
76362
+ return Ao(t) ? o = t : (t = mm(t), r = t.slice(0, -1), t = t[t.length - 1]), Vl(e, function(i) {
76382
76363
  var s = o;
76383
76364
  if (!s) {
76384
76365
  if (r && r.length && (i = gC(i, r)), i == null) return;
@@ -76476,18 +76457,18 @@ function NZ(e) {
76476
76457
  function BNe(e, t, n) {
76477
76458
  return t in n;
76478
76459
  }
76479
- const _C = Xo(function(e, t) {
76460
+ const _C = Go(function(e, t) {
76480
76461
  var n = {}, r = t[0];
76481
76462
  if (e == null) return n;
76482
- _o(r) ? (t.length > 1 && (r = bm(r, t[1])), t = Pf(e)) : (r = BNe, t = vp(t, !1, !1), e = Object(e));
76463
+ Ao(r) ? (t.length > 1 && (r = bm(r, t[1])), t = Pf(e)) : (r = BNe, t = vp(t, !1, !1), e = Object(e));
76483
76464
  for (var o = 0, i = t.length; o < i; o++) {
76484
76465
  var s = t[o], a = e[s];
76485
76466
  r(a, s, e) && (n[s] = a);
76486
76467
  }
76487
76468
  return n;
76488
- }), MZ = Xo(function(e, t) {
76469
+ }), MZ = Go(function(e, t) {
76489
76470
  var n = t[0], r;
76490
- return _o(n) ? (n = fv(n), t.length > 1 && (r = t[1])) : (t = Vl(vp(t, !1, !1), String), n = function(o, i) {
76471
+ return Ao(n) ? (n = fv(n), t.length > 1 && (r = t[1])) : (t = Vl(vp(t, !1, !1), String), n = function(o, i) {
76491
76472
  return !bs(t, i);
76492
76473
  }), _C(e, n, r);
76493
76474
  });
@@ -76509,11 +76490,11 @@ function IZ(e) {
76509
76490
  function RZ(e, t) {
76510
76491
  return vp(e, t, !1);
76511
76492
  }
76512
- const TC = Xo(function(e, t) {
76493
+ const TC = Go(function(e, t) {
76513
76494
  return t = vp(t, !0, !0), vc(e, function(n) {
76514
76495
  return !bs(t, n);
76515
76496
  });
76516
- }), LZ = Xo(function(e, t) {
76497
+ }), LZ = Go(function(e, t) {
76517
76498
  return TC(e, t);
76518
76499
  });
76519
76500
  function Fg(e, t, n, r) {
@@ -76524,7 +76505,7 @@ function Fg(e, t, n, r) {
76524
76505
  }
76525
76506
  return o;
76526
76507
  }
76527
- const UZ = Xo(function(e) {
76508
+ const UZ = Go(function(e) {
76528
76509
  return Fg(vp(e, !0, !0));
76529
76510
  });
76530
76511
  function PZ(e) {
@@ -76544,7 +76525,7 @@ function wg(e) {
76544
76525
  n[r] = mv(e, r);
76545
76526
  return n;
76546
76527
  }
76547
- const zZ = Xo(wg);
76528
+ const zZ = Go(wg);
76548
76529
  function $Z(e, t) {
76549
76530
  for (var n = {}, r = 0, o = xi(e); r < o; r++)
76550
76531
  t ? n[e[r]] = t[r] : n[e[r][0]] = e[r][1];
@@ -76659,7 +76640,7 @@ const NNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
76659
76640
  isEqual: OY,
76660
76641
  isError: EY,
76661
76642
  isFinite: SY,
76662
- isFunction: _o,
76643
+ isFunction: Ao,
76663
76644
  isMap: UY,
76664
76645
  isMatch: sC,
76665
76646
  isNaN: rC,
@@ -76706,7 +76687,7 @@ const NNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
76706
76687
  reduceRight: gx,
76707
76688
  reject: DZ,
76708
76689
  rest: Bd,
76709
- restArguments: Xo,
76690
+ restArguments: Go,
76710
76691
  result: iZ,
76711
76692
  sample: AC,
76712
76693
  select: vc,
@@ -76810,7 +76791,7 @@ const MNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
76810
76791
  isEqual: OY,
76811
76792
  isError: EY,
76812
76793
  isFinite: SY,
76813
- isFunction: _o,
76794
+ isFunction: Ao,
76814
76795
  isMap: UY,
76815
76796
  isMatch: sC,
76816
76797
  isNaN: rC,
@@ -76857,7 +76838,7 @@ const MNe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
76857
76838
  reduceRight: gx,
76858
76839
  reject: DZ,
76859
76840
  rest: Bd,
76860
- restArguments: Xo,
76841
+ restArguments: Go,
76861
76842
  result: iZ,
76862
76843
  sample: AC,
76863
76844
  select: vc,
@@ -83064,22 +83045,22 @@ function Di(e, t) {
83064
83045
  }
83065
83046
  n.constructor != e && (typeof e != "function" && console.error("unknown Class:" + e), n.constructor = e);
83066
83047
  }
83067
- var ki = {}, ys = ki.ELEMENT_NODE = 1, lf = ki.ATTRIBUTE_NODE = 2, yx = ki.TEXT_NODE = 3, nJ = ki.CDATA_SECTION_NODE = 4, rJ = ki.ENTITY_REFERENCE_NODE = 5, XMe = ki.ENTITY_NODE = 6, oJ = ki.PROCESSING_INSTRUCTION_NODE = 7, iJ = ki.COMMENT_NODE = 8, sJ = ki.DOCUMENT_NODE = 9, aJ = ki.DOCUMENT_TYPE_NODE = 10, Kl = ki.DOCUMENT_FRAGMENT_NODE = 11, YMe = ki.NOTATION_NODE = 12, Bo = {}, Gr = {};
83068
- Bo.INDEX_SIZE_ERR = (Gr[1] = "Index size error", 1);
83069
- Bo.DOMSTRING_SIZE_ERR = (Gr[2] = "DOMString size error", 2);
83070
- var ai = Bo.HIERARCHY_REQUEST_ERR = (Gr[3] = "Hierarchy request error", 3);
83071
- Bo.WRONG_DOCUMENT_ERR = (Gr[4] = "Wrong document", 4);
83072
- Bo.INVALID_CHARACTER_ERR = (Gr[5] = "Invalid character", 5);
83073
- Bo.NO_DATA_ALLOWED_ERR = (Gr[6] = "No data allowed", 6);
83074
- Bo.NO_MODIFICATION_ALLOWED_ERR = (Gr[7] = "No modification allowed", 7);
83075
- var lJ = Bo.NOT_FOUND_ERR = (Gr[8] = "Not found", 8);
83076
- Bo.NOT_SUPPORTED_ERR = (Gr[9] = "Not supported", 9);
83077
- var eI = Bo.INUSE_ATTRIBUTE_ERR = (Gr[10] = "Attribute in use", 10);
83078
- Bo.INVALID_STATE_ERR = (Gr[11] = "Invalid state", 11);
83079
- Bo.SYNTAX_ERR = (Gr[12] = "Syntax error", 12);
83080
- Bo.INVALID_MODIFICATION_ERR = (Gr[13] = "Invalid modification", 13);
83081
- Bo.NAMESPACE_ERR = (Gr[14] = "Invalid namespace", 14);
83082
- Bo.INVALID_ACCESS_ERR = (Gr[15] = "Invalid access", 15);
83048
+ var ki = {}, ys = ki.ELEMENT_NODE = 1, lf = ki.ATTRIBUTE_NODE = 2, yx = ki.TEXT_NODE = 3, nJ = ki.CDATA_SECTION_NODE = 4, rJ = ki.ENTITY_REFERENCE_NODE = 5, XMe = ki.ENTITY_NODE = 6, oJ = ki.PROCESSING_INSTRUCTION_NODE = 7, iJ = ki.COMMENT_NODE = 8, sJ = ki.DOCUMENT_NODE = 9, aJ = ki.DOCUMENT_TYPE_NODE = 10, Kl = ki.DOCUMENT_FRAGMENT_NODE = 11, YMe = ki.NOTATION_NODE = 12, jo = {}, Gr = {};
83049
+ jo.INDEX_SIZE_ERR = (Gr[1] = "Index size error", 1);
83050
+ jo.DOMSTRING_SIZE_ERR = (Gr[2] = "DOMString size error", 2);
83051
+ var ai = jo.HIERARCHY_REQUEST_ERR = (Gr[3] = "Hierarchy request error", 3);
83052
+ jo.WRONG_DOCUMENT_ERR = (Gr[4] = "Wrong document", 4);
83053
+ jo.INVALID_CHARACTER_ERR = (Gr[5] = "Invalid character", 5);
83054
+ jo.NO_DATA_ALLOWED_ERR = (Gr[6] = "No data allowed", 6);
83055
+ jo.NO_MODIFICATION_ALLOWED_ERR = (Gr[7] = "No modification allowed", 7);
83056
+ var lJ = jo.NOT_FOUND_ERR = (Gr[8] = "Not found", 8);
83057
+ jo.NOT_SUPPORTED_ERR = (Gr[9] = "Not supported", 9);
83058
+ var eI = jo.INUSE_ATTRIBUTE_ERR = (Gr[10] = "Attribute in use", 10);
83059
+ jo.INVALID_STATE_ERR = (Gr[11] = "Invalid state", 11);
83060
+ jo.SYNTAX_ERR = (Gr[12] = "Syntax error", 12);
83061
+ jo.INVALID_MODIFICATION_ERR = (Gr[13] = "Invalid modification", 13);
83062
+ jo.NAMESPACE_ERR = (Gr[14] = "Invalid namespace", 14);
83063
+ jo.INVALID_ACCESS_ERR = (Gr[15] = "Invalid access", 15);
83083
83064
  function hr(e, t) {
83084
83065
  if (t instanceof Error)
83085
83066
  var n = t;
@@ -83088,7 +83069,7 @@ function hr(e, t) {
83088
83069
  return n.code = e, t && (this.message = this.message + ": " + t), n;
83089
83070
  }
83090
83071
  hr.prototype = Error.prototype;
83091
- xm(Bo, hr);
83072
+ xm(jo, hr);
83092
83073
  function Il() {
83093
83074
  }
83094
83075
  Il.prototype = {
@@ -90965,7 +90946,7 @@ var uA = {
90965
90946
  failure: function(e, t) {
90966
90947
  if (e.length < 1)
90967
90948
  throw new Error("Failure must have errors");
90968
- return new wo({
90949
+ return new Fo({
90969
90950
  status: "failure",
90970
90951
  remaining: t,
90971
90952
  errors: e
@@ -90974,14 +90955,14 @@ var uA = {
90974
90955
  error: function(e, t) {
90975
90956
  if (e.length < 1)
90976
90957
  throw new Error("Failure must have errors");
90977
- return new wo({
90958
+ return new Fo({
90978
90959
  status: "error",
90979
90960
  remaining: t,
90980
90961
  errors: e
90981
90962
  });
90982
90963
  },
90983
90964
  success: function(e, t, n) {
90984
- return new wo({
90965
+ return new Fo({
90985
90966
  status: "success",
90986
90967
  value: e,
90987
90968
  source: n,
@@ -90990,17 +90971,17 @@ var uA = {
90990
90971
  });
90991
90972
  },
90992
90973
  cut: function(e) {
90993
- return new wo({
90974
+ return new Fo({
90994
90975
  status: "cut",
90995
90976
  remaining: e,
90996
90977
  errors: []
90997
90978
  });
90998
90979
  }
90999
- }, wo = function(e) {
90980
+ }, Fo = function(e) {
91000
90981
  this._value = e.value, this._status = e.status, this._hasValue = e.value !== void 0, this._remaining = e.remaining, this._source = e.source, this._errors = e.errors;
91001
90982
  };
91002
- wo.prototype.map = function(e) {
91003
- return this._hasValue ? new wo({
90983
+ Fo.prototype.map = function(e) {
90984
+ return this._hasValue ? new Fo({
91004
90985
  value: e(this._value, this._source),
91005
90986
  status: this._status,
91006
90987
  remaining: this._remaining,
@@ -91008,8 +90989,8 @@ wo.prototype.map = function(e) {
91008
90989
  errors: this._errors
91009
90990
  }) : this;
91010
90991
  };
91011
- wo.prototype.changeRemaining = function(e) {
91012
- return new wo({
90992
+ Fo.prototype.changeRemaining = function(e) {
90993
+ return new Fo({
91013
90994
  value: this._value,
91014
90995
  status: this._status,
91015
90996
  remaining: e,
@@ -91017,28 +90998,28 @@ wo.prototype.changeRemaining = function(e) {
91017
90998
  errors: this._errors
91018
90999
  });
91019
91000
  };
91020
- wo.prototype.isSuccess = function() {
91001
+ Fo.prototype.isSuccess = function() {
91021
91002
  return this._status === "success" || this._status === "cut";
91022
91003
  };
91023
- wo.prototype.isFailure = function() {
91004
+ Fo.prototype.isFailure = function() {
91024
91005
  return this._status === "failure";
91025
91006
  };
91026
- wo.prototype.isError = function() {
91007
+ Fo.prototype.isError = function() {
91027
91008
  return this._status === "error";
91028
91009
  };
91029
- wo.prototype.isCut = function() {
91010
+ Fo.prototype.isCut = function() {
91030
91011
  return this._status === "cut";
91031
91012
  };
91032
- wo.prototype.value = function() {
91013
+ Fo.prototype.value = function() {
91033
91014
  return this._value;
91034
91015
  };
91035
- wo.prototype.remaining = function() {
91016
+ Fo.prototype.remaining = function() {
91036
91017
  return this._remaining;
91037
91018
  };
91038
- wo.prototype.source = function() {
91019
+ Fo.prototype.source = function() {
91039
91020
  return this._source;
91040
91021
  };
91041
- wo.prototype.errors = function() {
91022
+ Fo.prototype.errors = function() {
91042
91023
  return this._errors;
91043
91024
  };
91044
91025
  var cA = {};
@@ -106225,7 +106206,7 @@ function Aze(e) {
106225
106206
  const t = e[e.length - 1];
106226
106207
  return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
106227
106208
  }
106228
- function Ro(...e) {
106209
+ function Oo(...e) {
106229
106210
  return "(" + (Aze(e).capture ? "" : "?:") + e.map((r) => tee(r)).join("|") + ")";
106230
106211
  }
106231
106212
  const DA = (e) => Rn(
@@ -106446,7 +106427,7 @@ const DA = (e) => Rn(
106446
106427
  "withVaList",
106447
106428
  "withoutActuallyEscaping",
106448
106429
  "zip"
106449
- ], nee = Ro(
106430
+ ], nee = Oo(
106450
106431
  /[/=\-+!*%<>&|^~?]/,
106451
106432
  /[\u00A1-\u00A7]/,
106452
106433
  /[\u00A9\u00AB]/,
@@ -106465,7 +106446,7 @@ const DA = (e) => Rn(
106465
106446
  /[\u3001-\u3003]/,
106466
106447
  /[\u3008-\u3020]/,
106467
106448
  /[\u3030]/
106468
- ), ree = Ro(
106449
+ ), ree = Oo(
106469
106450
  nee,
106470
106451
  /[\u0300-\u036F]/,
106471
106452
  /[\u1DC0-\u1DFF]/,
@@ -106474,7 +106455,7 @@ const DA = (e) => Rn(
106474
106455
  /[\uFE20-\uFE2F]/
106475
106456
  // TODO: The following characters are also allowed, but the regex isn't supported yet.
106476
106457
  // /[\u{E0100}-\u{E01EF}]/u
106477
- ), Rw = Rn(nee, ree, "*"), oee = Ro(
106458
+ ), Rw = Rn(nee, ree, "*"), oee = Oo(
106478
106459
  /[a-zA-Z_]/,
106479
106460
  /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
106480
106461
  /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
@@ -106492,14 +106473,14 @@ const DA = (e) => Rn(
106492
106473
  // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
106493
106474
  // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
106494
106475
  // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
106495
- ), Cx = Ro(
106476
+ ), Cx = Oo(
106496
106477
  oee,
106497
106478
  /\d/,
106498
106479
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
106499
106480
  ), ya = Rn(oee, Cx, "*"), W2 = Rn(/[A-Z]/, Cx, "*"), Bze = [
106500
106481
  "attached",
106501
106482
  "autoclosure",
106502
- Rn(/convention\(/, Ro("swift", "block", "c"), /\)/),
106483
+ Rn(/convention\(/, Oo("swift", "block", "c"), /\)/),
106503
106484
  "discardableResult",
106504
106485
  "dynamicCallable",
106505
106486
  "dynamicMemberLookup",
@@ -106558,20 +106539,20 @@ function Mze(e) {
106558
106539
  ], o = {
106559
106540
  match: [
106560
106541
  /\./,
106561
- Ro(..._ze, ...CR)
106542
+ Oo(..._ze, ...CR)
106562
106543
  ],
106563
106544
  className: { 2: "keyword" }
106564
106545
  }, i = {
106565
106546
  // Consume .keyword to prevent highlighting properties and methods as keywords.
106566
- match: Rn(/\./, Ro(...Iw)),
106547
+ match: Rn(/\./, Oo(...Iw)),
106567
106548
  relevance: 0
106568
106549
  }, s = Iw.filter((de) => typeof de == "string").concat(["_|0"]), a = Iw.filter((de) => typeof de != "string").concat(Sze).map(DA), l = { variants: [
106569
106550
  {
106570
106551
  className: "keyword",
106571
- match: Ro(...a, ...CR)
106552
+ match: Oo(...a, ...CR)
106572
106553
  }
106573
106554
  ] }, u = {
106574
- $pattern: Ro(
106555
+ $pattern: Oo(
106575
106556
  /\b\w+/,
106576
106557
  // regular keywords
106577
106558
  /#\w+/
@@ -106585,11 +106566,11 @@ function Mze(e) {
106585
106566
  l
106586
106567
  ], d = {
106587
106568
  // Consume .built_in to prevent highlighting properties and methods.
106588
- match: Rn(/\./, Ro(..._R)),
106569
+ match: Rn(/\./, Oo(..._R)),
106589
106570
  relevance: 0
106590
106571
  }, p = {
106591
106572
  className: "built_in",
106592
- match: Rn(/\b/, Ro(..._R), /(?=\()/)
106573
+ match: Rn(/\b/, Oo(..._R), /(?=\()/)
106593
106574
  }, h = [
106594
106575
  d,
106595
106576
  p
@@ -106727,7 +106708,7 @@ function Mze(e) {
106727
106708
  ] }
106728
106709
  }, $ = {
106729
106710
  scope: "keyword",
106730
- match: Rn(/@/, Ro(...Bze), k0(Ro(/\(/, /\s+/)))
106711
+ match: Rn(/@/, Oo(...Bze), k0(Oo(/\(/, /\s+/)))
106731
106712
  }, H = {
106732
106713
  scope: "meta",
106733
106714
  match: Rn(/@/, ya)
@@ -106811,7 +106792,7 @@ function Mze(e) {
106811
106792
  P
106812
106793
  ]
106813
106794
  }, le = {
106814
- begin: Ro(
106795
+ begin: Oo(
106815
106796
  k0(Rn(ya, /\s*:/)),
106816
106797
  k0(Rn(ya, /\s+/, ya, /\s*:/))
106817
106798
  ),
@@ -106848,7 +106829,7 @@ function Mze(e) {
106848
106829
  match: [
106849
106830
  /(func|macro)/,
106850
106831
  /\s+/,
106851
- Ro(C.match, ya, Rw)
106832
+ Oo(C.match, ya, Rw)
106852
106833
  ],
106853
106834
  className: {
106854
106835
  1: "keyword",
@@ -170384,7 +170365,7 @@ const Uw = Xk.getInstance(), B$e = (e) => ({
170384
170365
  return r.content = (o = e.content) == null ? void 0 : o.map((i) => N$e(i) ? (console.error("corrupted data:", i), n == null || n("Invalid content: " + typeof i), t ? null : B$e(i)) : i).filter((i) => i !== null), r;
170385
170366
  };
170386
170367
  var so = typeof globalThis < "u" && globalThis || typeof self < "u" && self || // eslint-disable-next-line no-undef
170387
- typeof global < "u" && global || {}, Lo = {
170368
+ typeof global < "u" && global || {}, Io = {
170388
170369
  searchParams: "URLSearchParams" in so,
170389
170370
  iterable: "Symbol" in so && "iterator" in Symbol,
170390
170371
  blob: "FileReader" in so && "Blob" in so && function() {
@@ -170400,7 +170381,7 @@ typeof global < "u" && global || {}, Lo = {
170400
170381
  function M$e(e) {
170401
170382
  return e && DataView.prototype.isPrototypeOf(e);
170402
170383
  }
170403
- if (Lo.arrayBuffer)
170384
+ if (Io.arrayBuffer)
170404
170385
  var O$e = [
170405
170386
  "[object Int8Array]",
170406
170387
  "[object Uint8Array]",
@@ -170429,7 +170410,7 @@ function CA(e) {
170429
170410
  return { done: n === void 0, value: n };
170430
170411
  }
170431
170412
  };
170432
- return Lo.iterable && (t[Symbol.iterator] = function() {
170413
+ return Io.iterable && (t[Symbol.iterator] = function() {
170433
170414
  return t;
170434
170415
  }), t;
170435
170416
  }
@@ -170483,7 +170464,7 @@ Ir.prototype.entries = function() {
170483
170464
  e.push([n, t]);
170484
170465
  }), CA(e);
170485
170466
  };
170486
- Lo.iterable && (Ir.prototype[Symbol.iterator] = Ir.prototype.entries);
170467
+ Io.iterable && (Ir.prototype[Symbol.iterator] = Ir.prototype.entries);
170487
170468
  function Pw(e) {
170488
170469
  if (!e._noBody) {
170489
170470
  if (e.bodyUsed)
@@ -170521,8 +170502,8 @@ function jR(e) {
170521
170502
  }
170522
170503
  function wee() {
170523
170504
  return this.bodyUsed = !1, this._initBody = function(e) {
170524
- this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : Lo.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : Lo.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : Lo.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : Lo.arrayBuffer && Lo.blob && M$e(e) ? (this._bodyArrayBuffer = jR(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : Lo.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || I$e(e)) ? this._bodyArrayBuffer = jR(e) : this._bodyText = e = Object.prototype.toString.call(e) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : Lo.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
170525
- }, Lo.blob && (this.blob = function() {
170505
+ this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : Io.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : Io.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : Io.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : Io.arrayBuffer && Io.blob && M$e(e) ? (this._bodyArrayBuffer = jR(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : Io.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || I$e(e)) ? this._bodyArrayBuffer = jR(e) : this._bodyText = e = Object.prototype.toString.call(e) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : Io.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
170506
+ }, Io.blob && (this.blob = function() {
170526
170507
  var e = Pw(this);
170527
170508
  if (e)
170528
170509
  return e;
@@ -170543,7 +170524,7 @@ function wee() {
170543
170524
  )
170544
170525
  ) : Promise.resolve(this._bodyArrayBuffer));
170545
170526
  } else {
170546
- if (Lo.blob)
170527
+ if (Io.blob)
170547
170528
  return this.blob().then(R$e);
170548
170529
  throw new Error("could not read as ArrayBuffer");
170549
170530
  }
@@ -170558,7 +170539,7 @@ function wee() {
170558
170539
  if (this._bodyFormData)
170559
170540
  throw new Error("could not read FormData body as text");
170560
170541
  return Promise.resolve(this._bodyText);
170561
- }, Lo.formData && (this.formData = function() {
170542
+ }, Io.formData && (this.formData = function() {
170562
170543
  return this.text().then($$e);
170563
170544
  }), this.json = function() {
170564
170545
  return this.text().then(JSON.parse);
@@ -170702,7 +170683,7 @@ function Dee(e, t) {
170702
170683
  return u;
170703
170684
  }
170704
170685
  }
170705
- if (i.open(o.method, a(o.url), !0), o.credentials === "include" ? i.withCredentials = !0 : o.credentials === "omit" && (i.withCredentials = !1), "responseType" in i && (Lo.blob ? i.responseType = "blob" : Lo.arrayBuffer && (i.responseType = "arraybuffer")), t && typeof t.headers == "object" && !(t.headers instanceof Ir || so.Headers && t.headers instanceof so.Headers)) {
170686
+ if (i.open(o.method, a(o.url), !0), o.credentials === "include" ? i.withCredentials = !0 : o.credentials === "omit" && (i.withCredentials = !1), "responseType" in i && (Io.blob ? i.responseType = "blob" : Io.arrayBuffer && (i.responseType = "arraybuffer")), t && typeof t.headers == "object" && !(t.headers instanceof Ir || so.Headers && t.headers instanceof so.Headers)) {
170706
170687
  var l = [];
170707
170688
  Object.getOwnPropertyNames(t.headers).forEach(function(u) {
170708
170689
  l.push(qf(u)), i.setRequestHeader(u, EA(t.headers[u]));
@@ -172355,7 +172336,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172355
172336
  }, [Mt, l, L]);
172356
172337
  const zt = Se(!1), dt = Se(null), vt = Ce(
172357
172338
  (Te) => {
172358
- const Re = Te.map((ot) => Fo(ot));
172339
+ const Re = Te.map((ot) => Po(ot));
172359
172340
  qs(e, ld(Re), "self");
172360
172341
  },
172361
172342
  [e]
@@ -172388,7 +172369,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
172388
172369
  return;
172389
172370
  }
172390
172371
  A(!0), queueMicrotask(() => {
172391
- if (s !== "" && s !== void 0 && (St(s) ? Array.isArray(s) ? vt(s) : qs(e, Fo(s), "self") : Le.commands.setContent(
172372
+ if (s !== "" && s !== void 0 && (St(s) ? Array.isArray(s) ? vt(s) : qs(e, Po(s), "self") : Le.commands.setContent(
172392
172373
  vee({
172393
172374
  data: s,
172394
172375
  ignoreCorruptedData: U,
@@ -180171,7 +180152,7 @@ function zA(e, t) {
180171
180152
  function Bte(e, t) {
180172
180153
  return zA(e, t).reverse();
180173
180154
  }
180174
- function ti(e, t, n) {
180155
+ function ei(e, t, n) {
180175
180156
  let r;
180176
180157
  if (typeof t == "string")
180177
180158
  try {
@@ -180257,7 +180238,7 @@ function wL(e) {
180257
180238
  };
180258
180239
  }
180259
180240
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
180260
- const ci = BigInt(0), Wo = BigInt(1), md = /* @__PURE__ */ BigInt(2), Mte = /* @__PURE__ */ BigInt(3), Ote = /* @__PURE__ */ BigInt(4), Ite = /* @__PURE__ */ BigInt(5), fGe = /* @__PURE__ */ BigInt(7), Rte = /* @__PURE__ */ BigInt(8), gGe = /* @__PURE__ */ BigInt(9), Lte = /* @__PURE__ */ BigInt(16);
180241
+ const ci = BigInt(0), Ho = BigInt(1), md = /* @__PURE__ */ BigInt(2), Mte = /* @__PURE__ */ BigInt(3), Ote = /* @__PURE__ */ BigInt(4), Ite = /* @__PURE__ */ BigInt(5), fGe = /* @__PURE__ */ BigInt(7), Rte = /* @__PURE__ */ BigInt(8), gGe = /* @__PURE__ */ BigInt(9), Lte = /* @__PURE__ */ BigInt(16);
180261
180242
  function Ts(e, t) {
180262
180243
  const n = e % t;
180263
180244
  return n >= ci ? n : t + n;
@@ -180273,12 +180254,12 @@ function DL(e, t) {
180273
180254
  throw new Error("invert: expected non-zero number");
180274
180255
  if (t <= ci)
180275
180256
  throw new Error("invert: expected positive modulus, got " + t);
180276
- let n = Ts(e, t), r = t, o = ci, i = Wo;
180257
+ let n = Ts(e, t), r = t, o = ci, i = Ho;
180277
180258
  for (; n !== ci; ) {
180278
180259
  const a = r / n, l = r % n, u = o - i * a;
180279
180260
  r = n, n = l, o = i, i = u;
180280
180261
  }
180281
- if (r !== Wo)
180262
+ if (r !== Ho)
180282
180263
  throw new Error("invert: does not exist");
180283
180264
  return Ts(o, t);
180284
180265
  }
@@ -180287,7 +180268,7 @@ function HA(e, t, n) {
180287
180268
  throw new Error("Cannot find square root");
180288
180269
  }
180289
180270
  function Ute(e, t) {
180290
- const n = (e.ORDER + Wo) / Ote, r = e.pow(t, n);
180271
+ const n = (e.ORDER + Ho) / Ote, r = e.pow(t, n);
180291
180272
  return HA(e, r, t), r;
180292
180273
  }
180293
180274
  function mGe(e, t) {
@@ -180307,7 +180288,7 @@ function bGe(e) {
180307
180288
  function Pte(e) {
180308
180289
  if (e < Mte)
180309
180290
  throw new Error("sqrt is not defined for small field");
180310
- let t = e - Wo, n = 0;
180291
+ let t = e - Ho, n = 0;
180311
180292
  for (; t % md === ci; )
180312
180293
  t /= md, n++;
180313
180294
  let r = md;
@@ -180318,7 +180299,7 @@ function Pte(e) {
180318
180299
  if (n === 1)
180319
180300
  return Ute;
180320
180301
  let i = o.pow(r, t);
180321
- const s = (t + Wo) / md;
180302
+ const s = (t + Ho) / md;
180322
180303
  return function(l, u) {
180323
180304
  if (l.is0(u))
180324
180305
  return u;
@@ -180332,7 +180313,7 @@ function Pte(e) {
180332
180313
  for (; !l.eql(g, l.ONE); )
180333
180314
  if (f++, g = l.sqr(g), f === c)
180334
180315
  throw new Error("Cannot find square root");
180335
- const m = Wo << BigInt(c - f - 1), b = l.pow(d, m);
180316
+ const m = Ho << BigInt(c - f - 1), b = l.pow(d, m);
180336
180317
  c = f, d = l.sqr(b), p = l.mul(p, d), h = l.mul(h, b);
180337
180318
  }
180338
180319
  return h;
@@ -180374,11 +180355,11 @@ function FGe(e, t, n) {
180374
180355
  throw new Error("invalid exponent, negatives unsupported");
180375
180356
  if (n === ci)
180376
180357
  return e.ONE;
180377
- if (n === Wo)
180358
+ if (n === Ho)
180378
180359
  return t;
180379
180360
  let r = e.ONE, o = t;
180380
180361
  for (; n > ci; )
180381
- n & Wo && (r = e.mul(r, o)), o = e.sqr(o), n >>= Wo;
180362
+ n & Ho && (r = e.mul(r, o)), o = e.sqr(o), n >>= Ho;
180382
180363
  return r;
180383
180364
  }
180384
180365
  function zte(e, t, n = !1) {
@@ -180386,7 +180367,7 @@ function zte(e, t, n = !1) {
180386
180367
  return t.reduceRight((s, a, l) => e.is0(a) ? s : (r[l] = e.mul(s, r[l]), e.mul(s, a)), i), r;
180387
180368
  }
180388
180369
  function kL(e, t) {
180389
- const n = (e.ORDER - Wo) / md, r = e.pow(t, n), o = e.eql(r, e.ONE), i = e.eql(r, e.ZERO), s = e.eql(r, e.neg(e.ONE));
180370
+ const n = (e.ORDER - Ho) / md, r = e.pow(t, n), o = e.eql(r, e.ONE), i = e.eql(r, e.ZERO), s = e.eql(r, e.neg(e.ONE));
180390
180371
  if (!o && !i && !s)
180391
180372
  throw new Error("invalid Legendre symbol result");
180392
180373
  return o ? 1 : i ? 0 : -1;
@@ -180418,7 +180399,7 @@ function Am(e, t, n = !1, r = {}) {
180418
180399
  BYTES: u,
180419
180400
  MASK: Cm(l),
180420
180401
  ZERO: ci,
180421
- ONE: Wo,
180402
+ ONE: Ho,
180422
180403
  allowedLengths: a,
180423
180404
  create: (p) => Ts(p, e),
180424
180405
  isValid: (p) => {
@@ -180429,7 +180410,7 @@ function Am(e, t, n = !1, r = {}) {
180429
180410
  is0: (p) => p === ci,
180430
180411
  // is valid and invertible
180431
180412
  isValidNot0: (p) => !d.is0(p) && d.isValid(p),
180432
- isOdd: (p) => (p & Wo) === Wo,
180413
+ isOdd: (p) => (p & Ho) === Ho,
180433
180414
  neg: (p) => Ts(-p, e),
180434
180415
  eql: (p, h) => p === h,
180435
180416
  sqr: (p) => Ts(p * p, e),
@@ -180482,7 +180463,7 @@ function wGe(e, t, n = !1) {
180482
180463
  const r = e.length, o = Hte(t), i = Wte(t);
180483
180464
  if (r < 16 || r < i || r > 1024)
180484
180465
  throw new Error("expected " + i + "-1024 bytes of input, got " + r);
180485
- const s = n ? jte(e) : u4(e), a = Ts(s, t - Wo) + Wo;
180466
+ const s = n ? jte(e) : u4(e), a = Ts(s, t - Ho) + Ho;
180486
180467
  return n ? Bte(a, o) : zA(a, o);
180487
180468
  }
180488
180469
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -180781,7 +180762,7 @@ const Dl = {
180781
180762
  }
180782
180763
  },
180783
180764
  toSig(e) {
180784
- const { Err: t, _int: n, _tlv: r } = Dl, o = ti("signature", e), { v: i, l: s } = r.decode(48, o);
180765
+ const { Err: t, _int: n, _tlv: r } = Dl, o = ei("signature", e), { v: i, l: s } = r.decode(48, o);
180785
180766
  if (s.length)
180786
180767
  throw new t("invalid signature: left bytes after parsing");
180787
180768
  const { v: a, l } = r.decode(2, i), { v: u, l: c } = r.decode(2, l);
@@ -180800,7 +180781,7 @@ function dh(e, t) {
180800
180781
  if (typeof t == "bigint")
180801
180782
  r = t;
180802
180783
  else {
180803
- let o = ti("private key", t);
180784
+ let o = ei("private key", t);
180804
180785
  try {
180805
180786
  r = e.fromBytes(o);
180806
180787
  } catch {
@@ -180947,7 +180928,7 @@ function BGe(e, t = {}) {
180947
180928
  return C.assertValidity(), C;
180948
180929
  }
180949
180930
  static fromHex(M) {
180950
- return _.fromBytes(ti("pointHex", M));
180931
+ return _.fromBytes(ei("pointHex", M));
180951
180932
  }
180952
180933
  get x() {
180953
180934
  return this.toAffine().x;
@@ -181172,7 +181153,7 @@ function NGe(e, t = {}) {
181172
181153
  const { secretKey: f, publicKey: g, publicKeyUncompressed: m } = o;
181173
181154
  if (n.allowedLengths || f === g)
181174
181155
  return;
181175
- const b = ti("key", h).length;
181156
+ const b = ei("key", h).length;
181176
181157
  return b === g || b === m;
181177
181158
  }
181178
181159
  function d(h, f, g = !0) {
@@ -181255,7 +181236,7 @@ function MGe(e, t, n = {}) {
181255
181236
  const L = $ === 2 || $ === 3 ? R + a : R;
181256
181237
  if (!i.isValid(L))
181257
181238
  throw new Error("recovery id 2 or 3 invalid");
181258
- const P = i.toBytes(L), K = e.fromBytes(Ru(Gte(($ & 1) === 0), P)), oe = s.inv(L), ee = w(ti("msgHash", j)), J = s.create(-ee * oe), le = s.create(U * oe), G = e.BASE.multiplyUnsafe(J).add(K.multiplyUnsafe(le));
181239
+ const P = i.toBytes(L), K = e.fromBytes(Ru(Gte(($ & 1) === 0), P)), oe = s.inv(L), ee = w(ei("msgHash", j)), J = s.create(-ee * oe), le = s.create(U * oe), G = e.BASE.multiplyUnsafe(J).add(K.multiplyUnsafe(le));
181259
181240
  if (G.is0())
181260
181241
  throw new Error("point at infinify");
181261
181242
  return G.assertValidity(), G;
@@ -181282,10 +181263,10 @@ function MGe(e, t, n = {}) {
181282
181263
  assertValidity() {
181283
181264
  }
181284
181265
  static fromCompact(j) {
181285
- return F.fromBytes(ti("sig", j), "compact");
181266
+ return F.fromBytes(ei("sig", j), "compact");
181286
181267
  }
181287
181268
  static fromDER(j) {
181288
- return F.fromBytes(ti("sig", j), "der");
181269
+ return F.fromBytes(ei("sig", j), "der");
181289
181270
  }
181290
181271
  normalizeS() {
181291
181272
  return this.hasHighS() ? new F(this.r, s.neg(this.s), this.recovery) : this;
@@ -181325,7 +181306,7 @@ function MGe(e, t, n = {}) {
181325
181306
  const H = w(C), L = dh(s, j), P = [k(L), k(H)];
181326
181307
  if ($ != null && $ !== !1) {
181327
181308
  const J = $ === !0 ? r(h.secretKey) : $;
181328
- P.push(ti("extraEntropy", J));
181309
+ P.push(ei("extraEntropy", J));
181329
181310
  }
181330
181311
  const K = Ru(...P), oe = H;
181331
181312
  function ee(J) {
@@ -181344,7 +181325,7 @@ function MGe(e, t, n = {}) {
181344
181325
  return { seed: K, k2sig: ee };
181345
181326
  }
181346
181327
  function N(C, j, S = {}) {
181347
- C = ti("message", C);
181328
+ C = ei("message", C);
181348
181329
  const { seed: R, k2sig: U } = _(C, j, S);
181349
181330
  return hGe(t.outputLen, s.BYTES, o)(R, U);
181350
181331
  }
@@ -181357,14 +181338,14 @@ function MGe(e, t, n = {}) {
181357
181338
  j = new F(C.r, C.s);
181358
181339
  else if (S) {
181359
181340
  try {
181360
- j = F.fromBytes(ti("sig", C), "der");
181341
+ j = F.fromBytes(ei("sig", C), "der");
181361
181342
  } catch (U) {
181362
181343
  if (!(U instanceof Dl.Err))
181363
181344
  throw U;
181364
181345
  }
181365
181346
  if (!j)
181366
181347
  try {
181367
- j = F.fromBytes(ti("sig", C), "compact");
181348
+ j = F.fromBytes(ei("sig", C), "compact");
181368
181349
  } catch {
181369
181350
  return !1;
181370
181351
  }
@@ -181373,9 +181354,9 @@ function MGe(e, t, n = {}) {
181373
181354
  }
181374
181355
  function A(C, j, S, R = {}) {
181375
181356
  const { lowS: U, prehash: $, format: H } = a5(R, f);
181376
- if (S = ti("publicKey", S), j = E(ti("message", j), $), "strict" in R)
181357
+ if (S = ei("publicKey", S), j = E(ei("message", j), $), "strict" in R)
181377
181358
  throw new Error("options.strict was renamed to lowS");
181378
- const L = H === void 0 ? O(C) : F.fromBytes(ti("sig", C), H);
181359
+ const L = H === void 0 ? O(C) : F.fromBytes(ei("sig", C), H);
181379
181360
  if (L === !1)
181380
181361
  return !1;
181381
181362
  try {
@@ -181481,7 +181462,7 @@ function zGe(e) {
181481
181462
  throw new Error("Cannot find square root");
181482
181463
  return D;
181483
181464
  }
181484
- const m8 = Am(WA.p, { sqrt: zGe }), $Ge = UGe({ ...WA, Fp: m8, lowS: !0, endo: PGe }, cGe), Io = {
181465
+ const m8 = Am(WA.p, { sqrt: zGe }), $Ge = UGe({ ...WA, Fp: m8, lowS: !0, endo: PGe }, cGe), ti = {
181485
181466
  generateKeyPair: () => jre(),
181486
181467
  encryptData: (e, t) => {
181487
181468
  const n = $Ge.getPublicKey(e);
@@ -181564,8 +181545,8 @@ class HGe {
181564
181545
  sessionDid: (s = this.collaborationKeyPair) == null ? void 0 : s.did(),
181565
181546
  documentId: this.roomId
181566
181547
  };
181567
- this.roomInfo && (o.roomInfo = Io.encryptData(
181568
- Fo(this.roomKey),
181548
+ this.roomInfo && (o.roomInfo = ti.encryptData(
181549
+ Po(this.roomKey),
181569
181550
  new TextEncoder().encode(JSON.stringify(this.roomInfo))
181570
181551
  )), this.ownerKeyPair && (o.ownerToken = await this.getOwnerToken()), this.ownerAddress && (o.ownerAddress = this.ownerAddress), this.contractAddress && (o.contractAddress = this.contractAddress);
181571
181552
  const i = await this._emitWithAck("/auth", o);
@@ -181584,8 +181565,8 @@ class HGe {
181584
181565
  const n = this.roomKey, r = t.data.position;
181585
181566
  if (n)
181586
181567
  try {
181587
- const o = Io.decryptData(
181588
- Fo(n),
181568
+ const o = ti.decryptData(
181569
+ Po(n),
181589
181570
  r
181590
181571
  );
181591
181572
  eme(
@@ -181608,7 +181589,7 @@ class HGe {
181608
181589
  });
181609
181590
  this._socketUrl = t.wsUrl || "ws://localhost:5000";
181610
181591
  const { secretKey: n } = QKe(
181611
- Fo(t.roomKey)
181592
+ Po(t.roomKey)
181612
181593
  );
181613
181594
  this.roomKey = t.roomKey, this.roomId = t.roomId, this.collaborationKeyPair = Ng.fromSecretKey(
181614
181595
  tr(n)
@@ -181806,8 +181787,8 @@ class HGe {
181806
181787
  this.awareness.clientID
181807
181788
  ]), l = this.roomKey;
181808
181789
  if (l) {
181809
- const u = Io.encryptData(
181810
- Fo(l),
181790
+ const u = ti.encryptData(
181791
+ Po(l),
181811
181792
  a
181812
181793
  );
181813
181794
  this.broadcastAwareness(u);
@@ -181832,8 +181813,8 @@ const TL = (e, t) => {
181832
181813
  r = [];
181833
181814
  const l = SW(e, a);
181834
181815
  if (t.isConnected) {
181835
- const u = Io.encryptData(
181836
- Fo(n),
181816
+ const u = ti.encryptData(
181817
+ Po(n),
181837
181818
  l
181838
181819
  );
181839
181820
  t.broadcastAwareness(u);
@@ -181874,7 +181855,13 @@ function qGe(e, t, n) {
181874
181855
  context: { terminationReason: t.reason }
181875
181856
  } : r === "RESET" ? { status: "idle", context: { ...Tu } } : null;
181876
181857
  case "syncing":
181877
- return r === "SYNC_COMPLETE" ? { status: "ready", context: { hasUnmergedPeerUpdates: !1 } } : r === "SET_UNMERGED_UPDATES" ? {
181858
+ return r === "SYNC_COMPLETE" ? { status: "ready", context: { hasUnmergedPeerUpdates: !1 } } : r === "SOCKET_DROPPED" ? {
181859
+ status: "reconnecting",
181860
+ context: { reconnectAttempt: n.reconnectAttempt + 1 }
181861
+ } : r === "RECONNECTED" ? {
181862
+ status: "syncing",
181863
+ context: { hasUnmergedPeerUpdates: !1 }
181864
+ } : r === "SET_UNMERGED_UPDATES" ? {
181878
181865
  status: "syncing",
181879
181866
  context: { hasUnmergedPeerUpdates: t.hasUpdates }
181880
181867
  } : r === "ERROR" ? {
@@ -181905,6 +181892,9 @@ function qGe(e, t, n) {
181905
181892
  recoverable: !1
181906
181893
  }
181907
181894
  }
181895
+ } : r === "ERROR" ? {
181896
+ status: "error",
181897
+ context: { error: t.error, hasUnmergedPeerUpdates: !1 }
181908
181898
  } : r === "SOCKET_DROPPED" ? {
181909
181899
  status: "reconnecting",
181910
181900
  context: {
@@ -181972,6 +181962,7 @@ class VGe {
181972
181962
  Ve(this, "uncommittedUpdatesIdList", []);
181973
181963
  Ve(this, "contentTobeAppliedQueue", []);
181974
181964
  Ve(this, "isProcessing", !1);
181965
+ Ve(this, "syncId", 0);
181975
181966
  Ve(this, "flushTimer", null);
181976
181967
  Ve(this, "FLUSH_INTERVAL_MS", 50);
181977
181968
  Ve(this, "MAX_QUEUE_SIZE", 5);
@@ -182004,6 +181995,18 @@ class VGe {
182004
181995
  return l5(this._status, this._context);
182005
181996
  }
182006
181997
  // ─── State machine core ───
181998
+ // reconnectAttempt is a user-facing retry count and may reset between cycles.
181999
+ // syncId is monotonic, so async sync work cannot become current again
182000
+ // after a later reconnect happens to reuse the same retry attempt number.
182001
+ beginSyncAttempt() {
182002
+ return this.syncId += 1, this.syncId;
182003
+ }
182004
+ // Async sync work can finish after a socket drop starts a newer reconnect sync.
182005
+ // Keep the captured generation current before applying updates or moving to
182006
+ // ready, so stale initial/reconnect syncs cannot finalize late.
182007
+ isCurrentSyncAttempt(t) {
182008
+ return this._status === "syncing" && this.syncId === t;
182009
+ }
182007
182010
  send(t) {
182008
182011
  var i, s;
182009
182012
  const n = qGe(this._status, t, this._context);
@@ -182028,9 +182031,9 @@ class VGe {
182028
182031
  }
182029
182032
  // ─── Public API ───
182030
182033
  async connect(t) {
182031
- var r, o;
182034
+ var o, i;
182032
182035
  if (this._status !== "idle") return;
182033
- this.roomKey = t.roomKey, this.roomKeyBytes = Fo(t.roomKey), this.isOwner = t.isOwner;
182036
+ this.roomKey = t.roomKey, this.roomKeyBytes = Po(t.roomKey), this.isOwner = t.isOwner;
182034
182037
  const n = tr(yo(this.ydoc));
182035
182038
  this.socketClient = new HGe({
182036
182039
  wsUrl: t.wsUrl,
@@ -182039,19 +182042,24 @@ class VGe {
182039
182042
  ownerEdSecret: t.ownerEdSecret,
182040
182043
  contractAddress: t.contractAddress,
182041
182044
  ownerAddress: t.ownerAddress,
182042
- onHandshakeData: (r = this.callbacksRef) == null ? void 0 : r.onHandshakeData,
182045
+ onHandshakeData: (o = this.callbacksRef) == null ? void 0 : o.onHandshakeData,
182043
182046
  roomInfo: t.roomInfo
182044
182047
  }), this.send({ type: "CONNECT" });
182048
+ let r = null;
182045
182049
  try {
182046
- if (await this.connectSocket(), this.send({ type: "AUTH_SUCCESS" }), await this.syncLatestCommit(n), await new Promise((i) => setTimeout(i, 0)), !((o = this.socketClient) != null && o.isConnected))
182050
+ if (await this.connectSocket(), this.send({ type: "AUTH_SUCCESS" }), r = this.beginSyncAttempt(), await this.syncLatestCommit(n, r), !this.isCurrentSyncAttempt(r) || (await new Promise((s) => setTimeout(s, 0)), !this.isCurrentSyncAttempt(r)))
182051
+ return;
182052
+ if (!((i = this.socketClient) != null && i.isConnected))
182047
182053
  throw new Error("Socket disconnected during sync");
182048
- this.applyQueuedRemoteContents(), this.send({ type: "SYNC_COMPLETE" }), this.updateQueue.length > 0 && this.processUpdateQueue().catch((i) => {
182049
- console.error("SyncManager: processUpdateQueue failed", i);
182054
+ this.applyQueuedRemoteContents(), this.send({ type: "SYNC_COMPLETE" }), this.updateQueue.length > 0 && this.processUpdateQueue().catch((s) => {
182055
+ console.error("SyncManager: processUpdateQueue failed", s);
182050
182056
  });
182051
- } catch (i) {
182052
- console.error("SyncManager: connect failed", i);
182053
- const s = i instanceof Error ? i : new Error(String(i));
182054
- this.handleConnectionError(s);
182057
+ } catch (s) {
182058
+ if (r !== null && !this.isCurrentSyncAttempt(r))
182059
+ return;
182060
+ console.error("SyncManager: connect failed", s);
182061
+ const a = s instanceof Error ? s : new Error(String(s));
182062
+ this.handleConnectionError(a);
182055
182063
  }
182056
182064
  }
182057
182065
  async disconnect() {
@@ -182105,14 +182113,11 @@ class VGe {
182105
182113
  return;
182106
182114
  const t = this.updateQueue;
182107
182115
  this.updateQueue = [];
182108
- const n = ld(t), r = Io.encryptData(this.roomKeyBytes, n);
182116
+ const n = ld(t), r = ti.encryptData(this.roomKeyBytes, n);
182109
182117
  (o = this.socketClient) == null || o.sendUpdate({ update: r }).then((i) => {
182110
182118
  var a;
182111
182119
  if (!(i != null && i.status)) {
182112
- console.error(
182113
- "SyncManager: server rejected update",
182114
- i == null ? void 0 : i.error
182115
- );
182120
+ console.error("SyncManager: server rejected update", i == null ? void 0 : i.error);
182116
182121
  return;
182117
182122
  }
182118
182123
  const s = (a = i == null ? void 0 : i.data) == null ? void 0 : a.id;
@@ -182137,22 +182142,27 @@ class VGe {
182137
182142
  n === "SocketConnectionTimeoutError" || r.includes("timed out") ? o = qp("TIMEOUT", t.message) : n === "SocketConnectionFailedError" || r.includes("Failed to reconnect") ? o = qp("CONNECTION_FAILED", t.message) : r.includes("statusCode: 401") || r.includes("AUTH_") ? o = qp("AUTH_FAILED", t.message) : r.includes("sync") || r.includes("decrypt") ? o = qp("SYNC_FAILED", t.message) : o = qp("UNKNOWN", t.message), (i = this.socketClient) == null || i.disconnect(), this.resetInternalState(), this.send({ type: "ERROR", error: o });
182138
182143
  }
182139
182144
  async handleReconnection() {
182140
- var t;
182145
+ var r;
182146
+ if (!this.send({ type: "RECONNECTED" })) return;
182147
+ const n = this.beginSyncAttempt();
182141
182148
  try {
182142
- this.send({ type: "RECONNECTED" });
182143
- const n = tr(yo(this.ydoc));
182144
- if (await this.syncLatestCommit(n), !((t = this.socketClient) != null && t.isConnected))
182149
+ const o = tr(yo(this.ydoc));
182150
+ if (await this.syncLatestCommit(o, n), !this.isCurrentSyncAttempt(n))
182151
+ return;
182152
+ if (!((r = this.socketClient) != null && r.isConnected))
182145
182153
  throw new Error("Socket disconnected during re-sync");
182146
- this.applyQueuedRemoteContents(), this.send({ type: "SYNC_COMPLETE" }), this.updateQueue.length > 0 && this.processUpdateQueue().catch((r) => {
182154
+ this.applyQueuedRemoteContents(), this.send({ type: "SYNC_COMPLETE" }), this.updateQueue.length > 0 && this.processUpdateQueue().catch((i) => {
182147
182155
  console.error(
182148
182156
  "SyncManager: post-reconnect processUpdateQueue failed",
182149
- r
182157
+ i
182150
182158
  );
182151
182159
  });
182152
- } catch (n) {
182153
- console.error("SyncManager: reconnection handling failed", n);
182154
- const r = n instanceof Error ? n : new Error(String(n));
182155
- this.handleConnectionError(r);
182160
+ } catch (o) {
182161
+ if (!this.isCurrentSyncAttempt(n))
182162
+ return;
182163
+ console.error("SyncManager: reconnection handling failed", o);
182164
+ const i = o instanceof Error ? o : new Error(String(o));
182165
+ this.handleConnectionError(i);
182156
182166
  }
182157
182167
  }
182158
182168
  connectSocket() {
@@ -182175,7 +182185,7 @@ class VGe {
182175
182185
  this.disconnect();
182176
182186
  },
182177
182187
  onSocketDropped: () => {
182178
- this._status === "ready" && this.send({ type: "SOCKET_DROPPED" });
182188
+ (this._status === "ready" || this._status === "syncing") && this.send({ type: "SOCKET_DROPPED" });
182179
182189
  },
182180
182190
  onHandShakeError: (i, s) => {
182181
182191
  var a;
@@ -182206,7 +182216,7 @@ class VGe {
182206
182216
  onReconnectFailed: () => {
182207
182217
  if (this._status === "reconnecting")
182208
182218
  this.send({ type: "RETRY_EXHAUSTED" });
182209
- else if (this._status === "ready") {
182219
+ else if (this._status === "ready" || this._status === "syncing") {
182210
182220
  const i = qp(
182211
182221
  "CONNECTION_FAILED",
182212
182222
  "Connection lost and reconnection failed"
@@ -182232,69 +182242,75 @@ class VGe {
182232
182242
  });
182233
182243
  });
182234
182244
  }
182235
- async syncLatestCommit(t) {
182245
+ async syncLatestCommit(t, n) {
182246
+ const r = () => this.isCurrentSyncAttempt(n);
182236
182247
  await this.withRetry(async () => {
182237
- var c, d, p, h, f, g;
182238
- const n = await ((c = this.socketClient) == null ? void 0 : c.fetchLatestCommit()), r = (p = (d = n == null ? void 0 : n.data) == null ? void 0 : d.history) == null ? void 0 : p[0];
182239
- let o;
182240
- if (r != null && r.data)
182248
+ var p, h, f, g, m, b;
182249
+ const o = await ((p = this.socketClient) == null ? void 0 : p.fetchLatestCommit());
182250
+ if (!r()) return;
182251
+ const i = (f = (h = o == null ? void 0 : o.data) == null ? void 0 : h.history) == null ? void 0 : f[0];
182252
+ let s;
182253
+ if (i != null && i.data)
182241
182254
  try {
182242
- o = Io.decryptData(
182255
+ s = ti.decryptData(
182243
182256
  this.roomKeyBytes,
182244
- r.data
182257
+ i.data
182245
182258
  );
182246
- } catch (m) {
182259
+ } catch (y) {
182247
182260
  console.warn(
182248
182261
  "SyncManager: failed to decrypt commit data, skipping",
182249
- m
182262
+ y
182250
182263
  );
182251
182264
  }
182252
- const i = [];
182253
- if (r != null && r.cid && ((h = this.servicesRef) != null && h.fetchFromStorage)) {
182254
- const m = await this.servicesRef.fetchFromStorage(r.cid);
182255
- if (m != null && m.data)
182265
+ const a = [];
182266
+ if (i != null && i.cid && ((g = this.servicesRef) != null && g.fetchFromStorage)) {
182267
+ const y = await this.servicesRef.fetchFromStorage(i.cid);
182268
+ if (!r()) return;
182269
+ if (y != null && y.data)
182256
182270
  try {
182257
- const b = Io.decryptData(
182271
+ const F = ti.decryptData(
182258
182272
  this.roomKeyBytes,
182259
- m.data
182273
+ y.data
182260
182274
  );
182261
- i.push(b);
182262
- } catch (b) {
182275
+ a.push(F);
182276
+ } catch (F) {
182263
182277
  console.warn(
182264
182278
  "SyncManager: failed to decrypt commit content, skipping",
182265
- b
182279
+ F
182266
182280
  );
182267
182281
  }
182268
182282
  }
182269
- const s = await ((f = this.socketClient) == null ? void 0 : f.getUncommittedChanges()), a = (g = s == null ? void 0 : s.data) == null ? void 0 : g.history, l = [];
182270
- if (t && i.push(Fo(t)), o && i.push(o), a && a.length > 0) {
182283
+ const l = await ((m = this.socketClient) == null ? void 0 : m.getUncommittedChanges());
182284
+ if (!r()) return;
182285
+ const u = (b = l == null ? void 0 : l.data) == null ? void 0 : b.history, c = [];
182286
+ if (t && a.push(Po(t)), s && a.push(s), u && u.length > 0) {
182271
182287
  this.isOwner && this.send({ type: "SET_UNMERGED_UPDATES", hasUpdates: !0 });
182272
- for (const m of a)
182288
+ for (const y of u)
182273
182289
  try {
182274
- const b = Io.decryptData(
182290
+ const F = ti.decryptData(
182275
182291
  this.roomKeyBytes,
182276
- m.data
182292
+ y.data
182277
182293
  );
182278
- l.push(m.id), i.push(b);
182279
- } catch (b) {
182294
+ c.push(y.id), a.push(F);
182295
+ } catch (F) {
182280
182296
  console.warn(
182281
182297
  "SyncManager: failed to decrypt uncommitted update, skipping",
182282
- b
182298
+ F
182283
182299
  );
182284
182300
  }
182285
182301
  }
182286
- if (i.length) {
182287
- const m = ld(i);
182288
- qs(this.ydoc, m, "self");
182302
+ if (!r()) return;
182303
+ if (a.length) {
182304
+ const y = ld(a);
182305
+ qs(this.ydoc, y, "self");
182289
182306
  }
182290
- this.uncommittedUpdatesIdList = l;
182291
- const u = tr(
182292
- yo(this.ydoc)
182293
- );
182294
- this.isOwner ? await this.commitLocalContents(
182295
- l,
182296
- u
182297
- ) : await this.broadcastLocalContents(u);
182307
+ this.uncommittedUpdatesIdList = c;
182308
+ const d = tr(yo(this.ydoc));
182309
+ r() && (this.isOwner ? await this.commitLocalContents(
182310
+ c,
182311
+ d,
182312
+ n
182313
+ ) : await this.broadcastLocalContents(d, n));
182298
182314
  }, "syncLatestCommit");
182299
182315
  }
182300
182316
  initializeAwareness() {
@@ -182313,24 +182329,27 @@ class VGe {
182313
182329
  cleanupAwareness() {
182314
182330
  this._awareness && this._awarenessUpdateHandler && this._awareness.off("update", this._awarenessUpdateHandler), this._awareness && this._awareness.destroy(), this._awareness = null, this._awarenessUpdateHandler = null;
182315
182331
  }
182316
- async commitLocalContents(t, n) {
182317
- var r, o, i, s;
182332
+ async commitLocalContents(t, n, r) {
182333
+ var i, s;
182334
+ const o = () => this.isCurrentSyncAttempt(r);
182318
182335
  if (t.length >= Vp)
182319
- if (typeof ((r = this.servicesRef) == null ? void 0 : r.commitToStorage) != "function")
182336
+ if (typeof ((i = this.servicesRef) == null ? void 0 : i.commitToStorage) != "function")
182320
182337
  console.debug(
182321
182338
  "SyncManager: no commit function provided, skipping commit"
182322
182339
  );
182323
182340
  else {
182324
- const a = Io.encryptData(
182341
+ const a = ti.encryptData(
182325
182342
  this.roomKeyBytes,
182326
182343
  yo(this.ydoc)
182327
182344
  ), l = TL({ data: a }, "commit"), u = await this.servicesRef.commitToStorage(l);
182345
+ if (!o()) return;
182328
182346
  if (!u)
182329
182347
  throw new Error("Failed to upload commit to IPFS: no hash returned");
182330
- const c = await ((o = this.socketClient) == null ? void 0 : o.commitUpdates({
182348
+ const c = await ((s = this.socketClient) == null ? void 0 : s.commitUpdates({
182331
182349
  updates: t,
182332
182350
  cid: u
182333
182351
  }));
182352
+ if (!o()) return;
182334
182353
  if (!(c != null && c.status)) {
182335
182354
  const d = (c == null ? void 0 : c.error) || "Server rejected commit";
182336
182355
  throw new Error(
@@ -182339,38 +182358,29 @@ class VGe {
182339
182358
  }
182340
182359
  this.uncommittedUpdatesIdList = [];
182341
182360
  }
182342
- if (n) {
182343
- const a = Io.encryptData(
182344
- this.roomKeyBytes,
182345
- Fo(n)
182346
- ), l = await ((i = this.socketClient) == null ? void 0 : i.sendUpdate({
182347
- update: a
182348
- }));
182349
- if (!(l != null && l.status)) {
182350
- const c = (l == null ? void 0 : l.error) || "Server rejected update";
182351
- throw new Error(
182352
- `Failed to broadcast local contents: ${c}${l != null && l.statusCode ? ` (${l.statusCode})` : ""}`
182353
- );
182354
- }
182355
- const u = (s = l == null ? void 0 : l.data) == null ? void 0 : s.id;
182356
- u && this.uncommittedUpdatesIdList.push(u);
182357
- }
182361
+ await this.broadcastLocalContents(n, r, !0);
182358
182362
  }
182359
- async broadcastLocalContents(t) {
182360
- var o;
182363
+ async broadcastLocalContents(t, n, r = !1) {
182364
+ var l, u;
182365
+ const o = () => this.isCurrentSyncAttempt(n);
182361
182366
  if (!t) return;
182362
- const n = Io.encryptData(
182367
+ const i = ti.encryptData(
182363
182368
  this.roomKeyBytes,
182364
- Fo(t)
182365
- ), r = await ((o = this.socketClient) == null ? void 0 : o.sendUpdate({
182366
- update: n
182369
+ Po(t)
182370
+ );
182371
+ if (!o()) return;
182372
+ const s = await ((l = this.socketClient) == null ? void 0 : l.sendUpdate({
182373
+ update: i
182367
182374
  }));
182368
- if (!(r != null && r.status)) {
182369
- const i = (r == null ? void 0 : r.error) || "Server rejected update";
182375
+ if (!o()) return;
182376
+ if (!(s != null && s.status)) {
182377
+ const c = (s == null ? void 0 : s.error) || "Server rejected update";
182370
182378
  throw new Error(
182371
- `Failed to broadcast local contents: ${i}${r != null && r.statusCode ? ` (${r.statusCode})` : ""}`
182379
+ `Failed to broadcast local contents: ${c}${s != null && s.statusCode ? ` (${s.statusCode})` : ""}`
182372
182380
  );
182373
182381
  }
182382
+ const a = (u = s == null ? void 0 : s.data) == null ? void 0 : u.id;
182383
+ r && a && this.uncommittedUpdatesIdList.push(a);
182374
182384
  }
182375
182385
  async processUpdateQueue() {
182376
182386
  if (!this.isProcessing) {
@@ -182389,7 +182399,7 @@ class VGe {
182389
182399
  async processNextUpdate() {
182390
182400
  var i, s;
182391
182401
  if (this.updateQueue.length === 0 || !this.roomKey) return;
182392
- const t = this.updateQueue.length, n = ld(this.updateQueue), r = Io.encryptData(
182402
+ const t = this.updateQueue.length, n = ld(this.updateQueue), r = ti.encryptData(
182393
182403
  this.roomKeyBytes,
182394
182404
  n
182395
182405
  );
@@ -182430,7 +182440,7 @@ class VGe {
182430
182440
  for (let i = 0; i <= eb; i++)
182431
182441
  try {
182432
182442
  const s = {
182433
- data: Io.encryptData(
182443
+ data: ti.encryptData(
182434
182444
  this.roomKeyBytes,
182435
182445
  yo(this.ydoc)
182436
182446
  )
@@ -182473,7 +182483,7 @@ class VGe {
182473
182483
  if (!this.ydoc) return;
182474
182484
  let r;
182475
182485
  try {
182476
- r = Io.decryptData(this.roomKeyBytes, t);
182486
+ r = ti.decryptData(this.roomKeyBytes, t);
182477
182487
  } catch (o) {
182478
182488
  console.warn("SyncManager: failed to decrypt update, skipping", o);
182479
182489
  return;
@@ -182502,7 +182512,7 @@ class VGe {
182502
182512
  const t = [], n = [];
182503
182513
  for (const o of this.contentTobeAppliedQueue)
182504
182514
  try {
182505
- const i = Io.decryptData(
182515
+ const i = ti.decryptData(
182506
182516
  this.roomKeyBytes,
182507
182517
  o.data
182508
182518
  );
@@ -182560,56 +182570,58 @@ class VGe {
182560
182570
  }
182561
182571
  }
182562
182572
  const KGe = { status: "idle" }, GGe = (e) => {
182563
- const [t, n] = Ne(KGe), r = Se(null);
182573
+ const [t, n] = Ne(KGe), r = Se(null), o = Se(!1);
182564
182574
  r.current || (r.current = new VGe(e, n));
182565
- const o = r.current;
182566
- o.updateRefs(e.services, e.callbacks, e.onLocalUpdate);
182567
- const i = o.isConnected, s = o.awareness;
182575
+ const i = r.current;
182576
+ i.updateRefs(e.services, e.callbacks, e.onLocalUpdate);
182577
+ const s = i.isConnected, a = i.awareness;
182568
182578
  _e(() => {
182569
- if (!i || !e.ydoc) return;
182570
- const h = (f, g) => {
182571
- var m;
182572
- g === "self" || g === "remote" || !o.isConnected || (m = e.ignoredOrigins) != null && m.some(
182573
- (b) => b.current !== null && b.current === g
182574
- ) || o.enqueueLocalUpdate(f);
182579
+ if (!s || !e.ydoc) return;
182580
+ const f = (g, m) => {
182581
+ var b;
182582
+ m === "self" || m === "remote" || !i.isConnected || (b = e.ignoredOrigins) != null && b.some(
182583
+ (y) => y.current !== null && y.current === m
182584
+ ) || i.enqueueLocalUpdate(g);
182575
182585
  };
182576
- return e.ydoc.on("update", h), () => {
182577
- e.ydoc.off("update", h);
182586
+ return e.ydoc.on("update", f), () => {
182587
+ e.ydoc.off("update", f);
182578
182588
  };
182579
- }, [e.ydoc, i]), _e(() => {
182580
- if (!s) return;
182581
- const h = () => {
182582
- Ed(s, [e.ydoc.clientID], "window unload");
182589
+ }, [e.ydoc, s]), _e(() => {
182590
+ if (!a) return;
182591
+ const f = () => {
182592
+ Ed(a, [e.ydoc.clientID], "window unload");
182583
182593
  };
182584
- return typeof window < "u" && typeof window.addEventListener == "function" && window.addEventListener("beforeunload", h), () => {
182585
- Ed(s, [e.ydoc.clientID], "hook unmount"), typeof window < "u" && typeof window.removeEventListener == "function" && window.removeEventListener("beforeunload", h);
182594
+ return typeof window < "u" && typeof window.addEventListener == "function" && window.addEventListener("beforeunload", f), () => {
182595
+ Ed(a, [e.ydoc.clientID], "hook unmount"), typeof window < "u" && typeof window.removeEventListener == "function" && window.removeEventListener("beforeunload", f);
182586
182596
  };
182587
- }, [s !== void 0]), _e(() => () => {
182588
- var h;
182589
- (h = r.current) == null || h.forceCleanup();
182597
+ }, [a !== void 0]), _e(() => () => {
182598
+ var f;
182599
+ (f = r.current) == null || f.forceCleanup();
182590
182600
  }, []);
182591
- const a = Ce(
182592
- (h) => {
182593
- o.connect(h).catch((f) => {
182594
- console.error("useSyncManager: connect failed", f);
182601
+ const l = Ce(
182602
+ (f) => {
182603
+ i.connect(f).catch((g) => {
182604
+ console.error("useSyncManager: connect failed", g);
182595
182605
  });
182596
182606
  },
182597
182607
  // eslint-disable-next-line react-hooks/exhaustive-deps
182598
182608
  [e.ydoc]
182599
- ), l = Ce(() => {
182600
- o.disconnect();
182601
- }, [o]), u = Ce(() => {
182602
- o.terminateSession();
182603
- }, [o]), c = t.status === "syncing", d = t.status === "ready" && !!s, p = t.status === "ready" || t.status === "reconnecting";
182609
+ ), u = Ce(() => {
182610
+ i.disconnect();
182611
+ }, [i]), c = Ce(() => {
182612
+ i.terminateSession();
182613
+ }, [i]), d = t.status === "syncing", p = t.status === "ready" && !!a;
182614
+ t.status === "idle" || t.status === "connecting" ? o.current = !1 : t.status === "ready" && (o.current = !0);
182615
+ const h = t.status === "ready" || t.status === "reconnecting" && o.current;
182604
182616
  return {
182605
182617
  state: t,
182606
- connect: a,
182607
- disconnect: l,
182608
- terminateSession: u,
182609
- isReady: d,
182610
- isSyncing: c,
182611
- awareness: s,
182612
- hasCollabContentInitialised: p
182618
+ connect: l,
182619
+ disconnect: u,
182620
+ terminateSession: c,
182621
+ isReady: p,
182622
+ isSyncing: d,
182623
+ awareness: a,
182624
+ hasCollabContentInitialised: h
182613
182625
  };
182614
182626
  }, XGe = ({
182615
182627
  onChange: e,
@@ -182919,7 +182931,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182919
182931
  );
182920
182932
  return /* @__PURE__ */ x.jsxs(tU, { children: [
182921
182933
  /* @__PURE__ */ x.jsxs("div", { className: "flex w-full justify-between sm:justify-evenly items-center select-none", children: [
182922
- d.map((k, E) => k ? /* @__PURE__ */ x.jsx("div", { className: "flex items-center", children: k.title === "Text formating" ? /* @__PURE__ */ x.jsx(d_, { asChild: !0, children: /* @__PURE__ */ x.jsx(lp, { children: s ? Uo(
182934
+ d.map((k, E) => k ? /* @__PURE__ */ x.jsx("div", { className: "flex items-center", children: k.title === "Text formating" ? /* @__PURE__ */ x.jsx(d_, { asChild: !0, children: /* @__PURE__ */ x.jsx(lp, { children: s ? Ro(
182923
182935
  /* @__PURE__ */ x.jsx(
182924
182936
  Tr,
182925
182937
  {
@@ -182937,7 +182949,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182937
182949
  }
182938
182950
  ),
182939
182951
  k.title + "mobile"
182940
- ) }) }) : k.title === "Text color" ? /* @__PURE__ */ x.jsx(d_, { asChild: !0, children: s ? Uo(
182952
+ ) }) }) : k.title === "Text color" ? /* @__PURE__ */ x.jsx(d_, { asChild: !0, children: s ? Ro(
182941
182953
  /* @__PURE__ */ x.jsx(
182942
182954
  Tr,
182943
182955
  {
@@ -182955,7 +182967,7 @@ const KGe = { status: "idle" }, GGe = (e) => {
182955
182967
  }
182956
182968
  ),
182957
182969
  "text-color-button"
182958
- ) }) : s ? Uo(
182970
+ ) }) : s ? Ro(
182959
182971
  /* @__PURE__ */ x.jsx(Tr, { className: "w-[36px] h-[36px] rounded-sm" }),
182960
182972
  "skeleton" + k.title
182961
182973
  ) : ni(
@@ -183315,12 +183327,12 @@ function oXe(e, t) {
183315
183327
  return l;
183316
183328
  }
183317
183329
  var iXe = oXe;
183318
- const sXe = /* @__PURE__ */ Dc(iXe), Jo = new Kr({
183330
+ const sXe = /* @__PURE__ */ Dc(iXe), Zo = new Kr({
183319
183331
  html: !0,
183320
183332
  linkify: !0,
183321
183333
  typographer: !0
183322
183334
  }).use(jq).enable(["table", "list"]);
183323
- Jo.renderer.rules.list_item_open = (e, t) => {
183335
+ Zo.renderer.rules.list_item_open = (e, t) => {
183324
183336
  const n = e[t + 2];
183325
183337
  if (n && n.content) {
183326
183338
  const r = n.content.match(/^\[([ xX])\]\s*(.*)$/);
@@ -183419,13 +183431,13 @@ function cXe(e, t = {}) {
183419
183431
  const N = BL(w, E);
183420
183432
  D.push({
183421
183433
  type: "content",
183422
- content: Jo.render(N[0])
183434
+ content: Zo.render(N[0])
183423
183435
  });
183424
183436
  for (let O = 1; O < N.length; O++)
183425
183437
  a.push(D), D = [
183426
183438
  {
183427
183439
  type: "content",
183428
- content: Jo.render(N[O])
183440
+ content: Zo.render(N[O])
183429
183441
  }
183430
183442
  ];
183431
183443
  return D;
@@ -183445,7 +183457,7 @@ function cXe(e, t = {}) {
183445
183457
  BL(w, E).forEach((O, A) => {
183446
183458
  (A > 0 || p(O, D)) && D.length > 0 && (a.push(D), D = []), D.push({
183447
183459
  type: "content",
183448
- content: Jo.render(O)
183460
+ content: Zo.render(O)
183449
183461
  });
183450
183462
  });
183451
183463
  return D;
@@ -183455,7 +183467,7 @@ function cXe(e, t = {}) {
183455
183467
  const D = w.filter((O) => O.trim().length > 0);
183456
183468
  if (D.length < 2) return [""];
183457
183469
  const k = D[0].split("|").map((O) => O.trim()).filter(Boolean), E = D[1], _ = D.slice(2);
183458
- return D.length <= s ? [`<div class="table-wrapper">${Jo.render(w.join(`
183470
+ return D.length <= s ? [`<div class="table-wrapper">${Zo.render(w.join(`
183459
183471
  `))}</div>`] : aXe(k, _, s).map((O) => {
183460
183472
  const A = [
183461
183473
  `|${k.join("|")}|`,
@@ -183463,7 +183475,7 @@ function cXe(e, t = {}) {
183463
183475
  ...O.rows
183464
183476
  ].join(`
183465
183477
  `);
183466
- return `<div class="table-wrapper">${Jo.render(A)}</div>`;
183478
+ return `<div class="table-wrapper">${Zo.render(A)}</div>`;
183467
183479
  });
183468
183480
  }, m = e.split(`
183469
183481
  `);
@@ -183478,16 +183490,16 @@ function cXe(e, t = {}) {
183478
183490
  _.length > 10 ? NL(k).forEach((A, M) => {
183479
183491
  (M > 0 || p(A, l)) && f(), l.push({
183480
183492
  type: "content",
183481
- content: Jo.render(A)
183493
+ content: Zo.render(A)
183482
183494
  });
183483
183495
  }) : _.length < 10 && N > 50 ? NL(k, 6).forEach((A, M) => {
183484
183496
  (M > 0 || p(A, l)) && f(), l.push({
183485
183497
  type: "content",
183486
- content: Jo.render(A)
183498
+ content: Zo.render(A)
183487
183499
  });
183488
183500
  }) : (p(k, l) && f(), l.push({
183489
183501
  type: "content",
183490
- content: Jo.render(k)
183502
+ content: Zo.render(k)
183491
183503
  })), w = E;
183492
183504
  continue;
183493
183505
  }
@@ -183513,7 +183525,7 @@ function cXe(e, t = {}) {
183513
183525
  u = [];
183514
183526
  }
183515
183527
  f();
183516
- const k = D.substring(2), E = Jo.renderInline(k);
183528
+ const k = D.substring(2), E = Zo.renderInline(k);
183517
183529
  a.push([{ type: "h1", content: E }]);
183518
183530
  continue;
183519
183531
  }
@@ -183528,7 +183540,7 @@ function cXe(e, t = {}) {
183528
183540
  }
183529
183541
  f();
183530
183542
  const k = D.substring(3);
183531
- l = [{ type: "h2", content: Jo.renderInline(k) }];
183543
+ l = [{ type: "h2", content: Zo.renderInline(k) }];
183532
183544
  continue;
183533
183545
  }
183534
183546
  if (D.startsWith("|") || D.match(/^\s*[-|]+\s*$/)) {
@@ -183550,7 +183562,7 @@ function cXe(e, t = {}) {
183550
183562
  lXe(c, 23).forEach((E, _) => {
183551
183563
  (_ > 0 || p(E, l)) && f(), l.push({
183552
183564
  type: "content",
183553
- content: Jo.render(E)
183565
+ content: Zo.render(E)
183554
183566
  });
183555
183567
  });
183556
183568
  else {
@@ -183558,7 +183570,7 @@ function cXe(e, t = {}) {
183558
183570
  `);
183559
183571
  p(k, l) && f(), l.push({
183560
183572
  type: "content",
183561
- content: Jo.render(k)
183573
+ content: Zo.render(k)
183562
183574
  });
183563
183575
  }
183564
183576
  c = [];
@@ -183617,7 +183629,7 @@ function cXe(e, t = {}) {
183617
183629
  case "table":
183618
183630
  return D.content;
183619
183631
  default:
183620
- return Jo.render(D.content);
183632
+ return Zo.render(D.content);
183621
183633
  }
183622
183634
  }).filter(Boolean).join(`
183623
183635
  `)).filter(Boolean).join(`
@@ -193406,7 +193418,7 @@ const AZe = ({
193406
193418
  }
193407
193419
  )
193408
193420
  ] });
193409
- }, _Ze = QL(() => import("./markdown-source-pane-BJzKN6wC.mjs")), SZe = QL(() => import("./split-view-toolbar-BmFp8f-S.mjs")), TZe = ({
193421
+ }, _Ze = QL(() => import("./markdown-source-pane-Dh-QFS6x.mjs")), SZe = QL(() => import("./split-view-toolbar-Djo-Qt4M.mjs")), TZe = ({
193410
193422
  markdown: e,
193411
193423
  onMarkdownChange: t,
193412
193424
  onExitSplitView: n,
@@ -193880,7 +193892,7 @@ const AZe = ({
193880
193892
  const Pt = MD(Ye);
193881
193893
  return qs(
193882
193894
  pa,
193883
- Fo(Pt),
193895
+ Po(Pt),
193884
193896
  "self"
193885
193897
  ), Pt;
193886
193898
  },
@@ -194322,7 +194334,7 @@ const AZe = ({
194322
194334
  }
194323
194335
  )
194324
194336
  ] }),
194325
- !ft || al ? Uo(
194337
+ !ft || al ? Ro(
194326
194338
  /* @__PURE__ */ x.jsx(
194327
194339
  "div",
194328
194340
  {
@@ -194911,7 +194923,7 @@ const AZe = ({
194911
194923
  isVersionHistoryMode: k == null ? void 0 : k.enabled
194912
194924
  }
194913
194925
  ),
194914
- !H || P || D ? Uo(
194926
+ !H || P || D ? Ro(
194915
194927
  /* @__PURE__ */ x.jsxs("div", { className: Ge(`${G ? "mx-10 mt-10" : "mx-20"}`), children: [
194916
194928
  /* @__PURE__ */ x.jsx(
194917
194929
  Tr,
@@ -195062,10 +195074,10 @@ const AZe = ({
195062
195074
  autofocus: !1
195063
195075
  }), ydoc: p };
195064
195076
  }, n = (p) => Array.isArray(p) || typeof p == "string" && !xee(p), r = (p, h) => {
195065
- qs(h, Fo(MD(p)));
195077
+ qs(h, Po(MD(p)));
195066
195078
  }, o = (p) => MD(p), i = (p, h, f) => {
195067
195079
  if (!h) throw new Error("cannot set content without Editor");
195068
- n(p) ? Array.isArray(p) ? r(p, f) : qs(f, Fo(p)) : h.commands.setContent(
195080
+ n(p) ? Array.isArray(p) ? r(p, f) : qs(f, Po(p)) : h.commands.setContent(
195069
195081
  vee({ data: p })
195070
195082
  );
195071
195083
  }, s = () => {