@romainbx/wpic-components 0.0.134 → 0.0.135

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.
@@ -12995,7 +12995,7 @@ function QC(t, e, n, r, i) {
12995
12995
  let o = t.steps.length;
12996
12996
  t.doc.nodesBetween(e, n, (s, l) => {
12997
12997
  let a = typeof i == "function" ? i(s) : i;
12998
- if (s.isTextblock && !s.hasMarkup(r, a) && e5(t.doc, t.mapping.slice(o).map(l), r)) {
12998
+ if (s.isTextblock && !s.hasMarkup(r, a) && eE(t.doc, t.mapping.slice(o).map(l), r)) {
12999
12999
  let c = null;
13000
13000
  if (r.schema.linebreakReplacement) {
13001
13001
  let h = r.whitespace == "pre", p = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
@@ -13027,11 +13027,11 @@ function Im(t, e, n, r) {
13027
13027
  }
13028
13028
  });
13029
13029
  }
13030
- function e5(t, e, n) {
13030
+ function eE(t, e, n) {
13031
13031
  let r = t.resolve(e), i = r.index();
13032
13032
  return r.parent.canReplaceWith(i, i + 1, n);
13033
13033
  }
13034
- function t5(t, e, n, r, i) {
13034
+ function tE(t, e, n, r, i) {
13035
13035
  let o = t.doc.nodeAt(e);
13036
13036
  if (!o)
13037
13037
  throw new RangeError("No node at given position");
@@ -13060,7 +13060,7 @@ function Kn(t, e, n = 1, r) {
13060
13060
  let l = i.indexAfter(o), a = r && r[0];
13061
13061
  return i.node(o).canReplaceWith(l, l, a ? a.type : i.node(o + 1).type);
13062
13062
  }
13063
- function n5(t, e, n = 1, r) {
13063
+ function nE(t, e, n = 1, r) {
13064
13064
  let i = t.doc.resolve(e), o = ee.empty, s = ee.empty;
13065
13065
  for (let l = i.depth, a = i.depth - n, c = n - 1; l > a; l--, c--) {
13066
13066
  o = ee.from(i.node(l).copy(o));
@@ -13073,7 +13073,7 @@ function Tr(t, e) {
13073
13073
  let n = t.resolve(e), r = n.index();
13074
13074
  return $m(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
13075
13075
  }
13076
- function r5(t, e) {
13076
+ function rE(t, e) {
13077
13077
  e.content.size || t.type.compatibleContent(e.type);
13078
13078
  let n = t.contentMatchAt(t.childCount), { linebreakReplacement: r } = t.type.schema;
13079
13079
  for (let i = 0; i < e.childCount; i++) {
@@ -13084,7 +13084,7 @@ function r5(t, e) {
13084
13084
  return n.validEnd;
13085
13085
  }
13086
13086
  function $m(t, e) {
13087
- return !!(t && e && !t.isLeaf && r5(t, e));
13087
+ return !!(t && e && !t.isLeaf && rE(t, e));
13088
13088
  }
13089
13089
  function bl(t, e, n = -1) {
13090
13090
  let r = t.resolve(e);
@@ -13097,7 +13097,7 @@ function bl(t, e, n = -1) {
13097
13097
  e = n < 0 ? r.before(i) : r.after(i);
13098
13098
  }
13099
13099
  }
13100
- function i5(t, e, n) {
13100
+ function iE(t, e, n) {
13101
13101
  let r = null, { linebreakReplacement: i } = t.doc.type.schema, o = t.doc.resolve(e - n), s = o.node().type;
13102
13102
  if (i && s.inlineContent) {
13103
13103
  let u = s.whitespace == "pre", d = !!s.contentMatch.matchType(i);
@@ -13116,7 +13116,7 @@ function i5(t, e, n) {
13116
13116
  }
13117
13117
  return t;
13118
13118
  }
13119
- function o5(t, e, n) {
13119
+ function oE(t, e, n) {
13120
13120
  let r = t.resolve(e);
13121
13121
  if (r.parent.canReplaceWith(r.index(), r.index(), n))
13122
13122
  return e;
@@ -13163,12 +13163,12 @@ function wl(t, e, n = e, r = he.empty) {
13163
13163
  if (e == n && !r.size)
13164
13164
  return null;
13165
13165
  let i = t.resolve(e), o = t.resolve(n);
13166
- return Rm(i, o, r) ? new ht(e, n, r) : new s5(i, o, r).fit();
13166
+ return Rm(i, o, r) ? new ht(e, n, r) : new sE(i, o, r).fit();
13167
13167
  }
13168
13168
  function Rm(t, e, n) {
13169
13169
  return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
13170
13170
  }
13171
- class s5 {
13171
+ class sE {
13172
13172
  constructor(e, n, r) {
13173
13173
  this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = ee.empty;
13174
13174
  for (let i = 0; i <= e.depth; i++) {
@@ -13337,18 +13337,18 @@ function Gl(t, e, n, r, i) {
13337
13337
  if (s == o.childCount && !n.compatibleContent(o.type))
13338
13338
  return null;
13339
13339
  let l = r.fillBefore(o.content, !0, s);
13340
- return l && !l5(n, o.content, s) ? l : null;
13340
+ return l && !lE(n, o.content, s) ? l : null;
13341
13341
  }
13342
- function l5(t, e, n) {
13342
+ function lE(t, e, n) {
13343
13343
  for (let r = n; r < e.childCount; r++)
13344
13344
  if (!t.allowsMarks(e.child(r).marks))
13345
13345
  return !0;
13346
13346
  return !1;
13347
13347
  }
13348
- function a5(t) {
13348
+ function aE(t) {
13349
13349
  return t.spec.defining || t.spec.definingForContent;
13350
13350
  }
13351
- function c5(t, e, n, r) {
13351
+ function cE(t, e, n, r) {
13352
13352
  if (!r.size)
13353
13353
  return t.deleteRange(e, n);
13354
13354
  let i = t.doc.resolve(e), o = t.doc.resolve(n);
@@ -13372,7 +13372,7 @@ function c5(t, e, n, r) {
13372
13372
  f = p.content;
13373
13373
  }
13374
13374
  for (let f = u - 1; f >= 0; f--) {
13375
- let h = c[f], p = a5(h.type);
13375
+ let h = c[f], p = aE(h.type);
13376
13376
  if (p && !h.sameMarkup(i.node(Math.abs(l) - 1)))
13377
13377
  u = f;
13378
13378
  else if (p || !h.type.isTextblock)
@@ -13406,14 +13406,14 @@ function Bm(t, e, n, r, i) {
13406
13406
  }
13407
13407
  return t;
13408
13408
  }
13409
- function u5(t, e, n, r) {
13409
+ function uE(t, e, n, r) {
13410
13410
  if (!r.isInline && e == n && t.doc.resolve(e).parent.content.size) {
13411
- let i = o5(t.doc, e, r.type);
13411
+ let i = oE(t.doc, e, r.type);
13412
13412
  i != null && (e = n = i);
13413
13413
  }
13414
13414
  t.replaceRange(e, n, new he(ee.from(r), 0, 0));
13415
13415
  }
13416
- function d5(t, e, n) {
13416
+ function dE(t, e, n) {
13417
13417
  let r = t.doc.resolve(e), i = t.doc.resolve(n), o = Fm(r, i);
13418
13418
  for (let s = 0; s < o.length; s++) {
13419
13419
  let l = o[s], a = s == o.length - 1;
@@ -13518,7 +13518,7 @@ Ri = function t(e) {
13518
13518
  Ri.prototype = Object.create(Error.prototype);
13519
13519
  Ri.prototype.constructor = Ri;
13520
13520
  Ri.prototype.name = "TransformError";
13521
- class f5 {
13521
+ class fE {
13522
13522
  /**
13523
13523
  Create a transform that starts with the given document.
13524
13524
  */
@@ -13609,7 +13609,7 @@ class f5 {
13609
13609
  control over what happens.
13610
13610
  */
13611
13611
  replaceRange(e, n, r) {
13612
- return c5(this, e, n, r), this;
13612
+ return cE(this, e, n, r), this;
13613
13613
  }
13614
13614
  /**
13615
13615
  Replace the given range with a node, but use `from` and `to` as
@@ -13621,14 +13621,14 @@ class f5 {
13621
13621
  that parent node.
13622
13622
  */
13623
13623
  replaceRangeWith(e, n, r) {
13624
- return u5(this, e, n, r), this;
13624
+ return uE(this, e, n, r), this;
13625
13625
  }
13626
13626
  /**
13627
13627
  Delete the given range, expanding it to cover fully covered
13628
13628
  parent nodes until a valid replace is found.
13629
13629
  */
13630
13630
  deleteRange(e, n) {
13631
- return d5(this, e, n), this;
13631
+ return dE(this, e, n), this;
13632
13632
  }
13633
13633
  /**
13634
13634
  Split the content in the given range off from its parent, if there
@@ -13645,7 +13645,7 @@ class f5 {
13645
13645
  last and first siblings are also joined, and so on.
13646
13646
  */
13647
13647
  join(e, n = 1) {
13648
- return i5(this, e, n), this;
13648
+ return iE(this, e, n), this;
13649
13649
  }
13650
13650
  /**
13651
13651
  Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
@@ -13667,7 +13667,7 @@ class f5 {
13667
13667
  When `type` isn't given, the existing node type is preserved,
13668
13668
  */
13669
13669
  setNodeMarkup(e, n, r = null, i) {
13670
- return t5(this, e, n, r, i), this;
13670
+ return tE(this, e, n, r, i), this;
13671
13671
  }
13672
13672
  /**
13673
13673
  Set a single attribute on a given node to a new value.
@@ -13711,7 +13711,7 @@ class f5 {
13711
13711
  use after the split.
13712
13712
  */
13713
13713
  split(e, n = 1, r) {
13714
- return n5(this, e, n, r), this;
13714
+ return nE(this, e, n, r), this;
13715
13715
  }
13716
13716
  /**
13717
13717
  Add the given mark to the inline content between `from` and `to`.
@@ -13746,7 +13746,7 @@ class Ie {
13746
13746
  `$head`.
13747
13747
  */
13748
13748
  constructor(e, n, r) {
13749
- this.$anchor = e, this.$head = n, this.ranges = r || [new h5(e.min(n), e.max(n))];
13749
+ this.$anchor = e, this.$head = n, this.ranges = r || [new hE(e.min(n), e.max(n))];
13750
13750
  }
13751
13751
  /**
13752
13752
  The selection's anchor, as an unresolved position.
@@ -13904,7 +13904,7 @@ class Ie {
13904
13904
  }
13905
13905
  }
13906
13906
  Ie.prototype.visible = !0;
13907
- class h5 {
13907
+ class hE {
13908
13908
  /**
13909
13909
  Create a range.
13910
13910
  */
@@ -14092,11 +14092,11 @@ class nn extends Ie {
14092
14092
  return e instanceof nn;
14093
14093
  }
14094
14094
  getBookmark() {
14095
- return p5;
14095
+ return pE;
14096
14096
  }
14097
14097
  }
14098
14098
  Ie.jsonID("all", nn);
14099
- const p5 = {
14099
+ const pE = {
14100
14100
  map() {
14101
14101
  return this;
14102
14102
  },
@@ -14134,7 +14134,7 @@ function Jd(t, e, n) {
14134
14134
  }), t.setSelection(Ie.near(t.doc.resolve(s), n));
14135
14135
  }
14136
14136
  const Zd = 1, Xd = 2, Qd = 4;
14137
- class m5 extends f5 {
14137
+ class mE extends fE {
14138
14138
  /**
14139
14139
  @internal
14140
14140
  */
@@ -14293,7 +14293,7 @@ class uo {
14293
14293
  this.name = e, this.init = ef(n.init, r), this.apply = ef(n.apply, r);
14294
14294
  }
14295
14295
  }
14296
- const g5 = [
14296
+ const gE = [
14297
14297
  new uo("doc", {
14298
14298
  init(t) {
14299
14299
  return t.doc || t.schema.topNodeType.createAndFill();
@@ -14329,7 +14329,7 @@ const g5 = [
14329
14329
  ];
14330
14330
  class Zl {
14331
14331
  constructor(e, n) {
14332
- this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = g5.slice(), n && n.forEach((r) => {
14332
+ this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = gE.slice(), n && n.forEach((r) => {
14333
14333
  if (this.pluginsByKey[r.key])
14334
14334
  throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
14335
14335
  this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new uo(r.key, r.spec.state, r));
@@ -14422,7 +14422,7 @@ class ki {
14422
14422
  Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
14423
14423
  */
14424
14424
  get tr() {
14425
- return new m5(this);
14425
+ return new mE(this);
14426
14426
  }
14427
14427
  /**
14428
14428
  Create a new state.
@@ -14559,18 +14559,18 @@ let Za = null;
14559
14559
  const jn = function(t, e, n) {
14560
14560
  let r = Za || (Za = document.createRange());
14561
14561
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
14562
- }, y5 = function() {
14562
+ }, yE = function() {
14563
14563
  Za = null;
14564
14564
  }, ni = function(t, e, n, r) {
14565
14565
  return n && (tf(t, e, n, r, -1) || tf(t, e, n, r, 1));
14566
- }, v5 = /^(img|br|input|textarea|hr)$/i;
14566
+ }, vE = /^(img|br|input|textarea|hr)$/i;
14567
14567
  function tf(t, e, n, r, i) {
14568
14568
  for (; ; ) {
14569
14569
  if (t == n && e == r)
14570
14570
  return !0;
14571
14571
  if (e == (i < 0 ? 0 : an(t))) {
14572
14572
  let o = t.parentNode;
14573
- if (!o || o.nodeType != 1 || es(t) || v5.test(t.nodeName) || t.contentEditable == "false")
14573
+ if (!o || o.nodeType != 1 || es(t) || vE.test(t.nodeName) || t.contentEditable == "false")
14574
14574
  return !1;
14575
14575
  e = Ot(t) + (i < 0 ? 0 : 1), t = o;
14576
14576
  } else if (t.nodeType == 1) {
@@ -14584,7 +14584,7 @@ function tf(t, e, n, r, i) {
14584
14584
  function an(t) {
14585
14585
  return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
14586
14586
  }
14587
- function b5(t, e) {
14587
+ function bE(t, e) {
14588
14588
  for (; ; ) {
14589
14589
  if (t.nodeType == 3 && e)
14590
14590
  return t;
@@ -14598,7 +14598,7 @@ function b5(t, e) {
14598
14598
  return null;
14599
14599
  }
14600
14600
  }
14601
- function w5(t, e) {
14601
+ function wE(t, e) {
14602
14602
  for (; ; ) {
14603
14603
  if (t.nodeType == 3 && e < t.nodeValue.length)
14604
14604
  return t;
@@ -14612,7 +14612,7 @@ function w5(t, e) {
14612
14612
  return null;
14613
14613
  }
14614
14614
  }
14615
- function k5(t, e, n) {
14615
+ function kE(t, e, n) {
14616
14616
  for (let r = e == 0, i = e == an(t); r || i; ) {
14617
14617
  if (t == n)
14618
14618
  return !0;
@@ -14635,13 +14635,13 @@ function Rr(t, e) {
14635
14635
  let n = document.createEvent("Event");
14636
14636
  return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
14637
14637
  }
14638
- function x5(t) {
14638
+ function xE(t) {
14639
14639
  let e = t.activeElement;
14640
14640
  for (; e && e.shadowRoot; )
14641
14641
  e = e.shadowRoot.activeElement;
14642
14642
  return e;
14643
14643
  }
14644
- function S5(t, e, n) {
14644
+ function SE(t, e, n) {
14645
14645
  if (t.caretPositionFromPoint)
14646
14646
  try {
14647
14647
  let r = t.caretPositionFromPoint(e, n);
@@ -14657,8 +14657,8 @@ function S5(t, e, n) {
14657
14657
  }
14658
14658
  const Dn = typeof navigator < "u" ? navigator : null, nf = typeof document < "u" ? document : null, Mr = Dn && Dn.userAgent || "", Xa = /Edge\/(\d+)/.exec(Mr), zm = /MSIE \d/.exec(Mr), Qa = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Mr), Yt = !!(zm || Qa || Xa), gr = zm ? document.documentMode : Qa ? +Qa[1] : Xa ? +Xa[1] : 0, xn = !Yt && /gecko\/(\d+)/i.test(Mr);
14659
14659
  xn && +(/Firefox\/(\d+)/.exec(Mr) || [0, 0])[1];
14660
- const ec = !Yt && /Chrome\/(\d+)/.exec(Mr), _t = !!ec, Wm = ec ? +ec[1] : 0, Pt = !Yt && !!Dn && /Apple Computer/.test(Dn.vendor), Vi = Pt && (/Mobile\/\w+/.test(Mr) || !!Dn && Dn.maxTouchPoints > 2), sn = Vi || (Dn ? /Mac/.test(Dn.platform) : !1), O5 = Dn ? /Win/.test(Dn.platform) : !1, Yn = /Android \d/.test(Mr), ts = !!nf && "webkitFontSmoothing" in nf.documentElement.style, C5 = ts ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
14661
- function E5(t) {
14660
+ const ec = !Yt && /Chrome\/(\d+)/.exec(Mr), _t = !!ec, Wm = ec ? +ec[1] : 0, Pt = !Yt && !!Dn && /Apple Computer/.test(Dn.vendor), Vi = Pt && (/Mobile\/\w+/.test(Mr) || !!Dn && Dn.maxTouchPoints > 2), sn = Vi || (Dn ? /Mac/.test(Dn.platform) : !1), OE = Dn ? /Win/.test(Dn.platform) : !1, Yn = /Android \d/.test(Mr), ts = !!nf && "webkitFontSmoothing" in nf.documentElement.style, CE = ts ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
14661
+ function EE(t) {
14662
14662
  let e = t.defaultView && t.defaultView.visualViewport;
14663
14663
  return e ? {
14664
14664
  left: 0,
@@ -14675,7 +14675,7 @@ function E5(t) {
14675
14675
  function Bn(t, e) {
14676
14676
  return typeof t == "number" ? t : t[e];
14677
14677
  }
14678
- function T5(t) {
14678
+ function TE(t) {
14679
14679
  let e = t.getBoundingClientRect(), n = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1;
14680
14680
  return {
14681
14681
  left: e.left,
@@ -14689,7 +14689,7 @@ function rf(t, e, n) {
14689
14689
  for (let s = n || t.dom; s; s = Po(s)) {
14690
14690
  if (s.nodeType != 1)
14691
14691
  continue;
14692
- let l = s, a = l == o.body, c = a ? E5(o) : T5(l), u = 0, d = 0;
14692
+ let l = s, a = l == o.body, c = a ? EE(o) : TE(l), u = 0, d = 0;
14693
14693
  if (e.top < c.top + Bn(r, "top") ? d = -(c.top - e.top + Bn(i, "top")) : e.bottom > c.bottom - Bn(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + Bn(i, "top") - c.top : e.bottom - c.bottom + Bn(i, "bottom")), e.left < c.left + Bn(r, "left") ? u = -(c.left - e.left + Bn(i, "left")) : e.right > c.right - Bn(r, "right") && (u = e.right - c.right + Bn(i, "right")), u || d)
14694
14694
  if (a)
14695
14695
  o.defaultView.scrollBy(u, d);
@@ -14703,7 +14703,7 @@ function rf(t, e, n) {
14703
14703
  break;
14704
14704
  }
14705
14705
  }
14706
- function M5(t) {
14706
+ function ME(t) {
14707
14707
  let e = t.dom.getBoundingClientRect(), n = Math.max(0, e.top), r, i;
14708
14708
  for (let o = (e.left + e.right) / 2, s = n + 1; s < Math.min(innerHeight, e.bottom); s += 5) {
14709
14709
  let l = t.root.elementFromPoint(o, s);
@@ -14723,7 +14723,7 @@ function Um(t) {
14723
14723
  ;
14724
14724
  return e;
14725
14725
  }
14726
- function _5({ refDOM: t, refTop: e, stack: n }) {
14726
+ function _E({ refDOM: t, refTop: e, stack: n }) {
14727
14727
  let r = t ? t.getBoundingClientRect().top : 0;
14728
14728
  Ym(n, r == 0 ? 0 : r - e);
14729
14729
  }
@@ -14734,7 +14734,7 @@ function Ym(t, e) {
14734
14734
  }
14735
14735
  }
14736
14736
  let fi = null;
14737
- function N5(t) {
14737
+ function NE(t) {
14738
14738
  if (t.setActive)
14739
14739
  return t.setActive();
14740
14740
  if (fi)
@@ -14772,9 +14772,9 @@ function qm(t, e) {
14772
14772
  !n && (e.left >= p.right && e.top >= p.top || e.left >= p.left && e.top >= p.bottom) && (o = d + 1);
14773
14773
  }
14774
14774
  }
14775
- return !n && a && (n = a, i = c, r = 0), n && n.nodeType == 3 ? A5(n, i) : !n || r && n.nodeType == 1 ? { node: t, offset: o } : qm(n, i);
14775
+ return !n && a && (n = a, i = c, r = 0), n && n.nodeType == 3 ? AE(n, i) : !n || r && n.nodeType == 1 ? { node: t, offset: o } : qm(n, i);
14776
14776
  }
14777
- function A5(t, e) {
14777
+ function AE(t, e) {
14778
14778
  let n = t.nodeValue.length, r = document.createRange();
14779
14779
  for (let i = 0; i < n; i++) {
14780
14780
  r.setEnd(t, i + 1), r.setStart(t, i);
@@ -14787,11 +14787,11 @@ function A5(t, e) {
14787
14787
  function zc(t, e) {
14788
14788
  return t.left >= e.left - 1 && t.left <= e.right + 1 && t.top >= e.top - 1 && t.top <= e.bottom + 1;
14789
14789
  }
14790
- function L5(t, e) {
14790
+ function LE(t, e) {
14791
14791
  let n = t.parentNode;
14792
14792
  return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
14793
14793
  }
14794
- function D5(t, e, n) {
14794
+ function DE(t, e, n) {
14795
14795
  let { node: r, offset: i } = qm(e, n), o = -1;
14796
14796
  if (r.nodeType == 1 && !r.firstChild) {
14797
14797
  let s = r.getBoundingClientRect();
@@ -14799,7 +14799,7 @@ function D5(t, e, n) {
14799
14799
  }
14800
14800
  return t.docView.posFromDOM(r, i, o);
14801
14801
  }
14802
- function I5(t, e, n, r) {
14802
+ function IE(t, e, n, r) {
14803
14803
  let i = -1;
14804
14804
  for (let o = e, s = !1; o != t.dom; ) {
14805
14805
  let l = t.docView.nearestDesc(o, !0), a;
@@ -14830,8 +14830,8 @@ function Km(t, e, n) {
14830
14830
  }
14831
14831
  return t;
14832
14832
  }
14833
- function $5(t, e) {
14834
- let n = t.dom.ownerDocument, r, i = 0, o = S5(n, e.left, e.top);
14833
+ function $E(t, e) {
14834
+ let n = t.dom.ownerDocument, r, i = 0, o = SE(n, e.left, e.top);
14835
14835
  o && ({ node: r, offset: i } = o);
14836
14836
  let s = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), l;
14837
14837
  if (!s || !t.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
@@ -14842,15 +14842,15 @@ function $5(t, e) {
14842
14842
  if (Pt)
14843
14843
  for (let c = s; r && c; c = Po(c))
14844
14844
  c.draggable && (r = void 0);
14845
- if (s = L5(s, e), r) {
14845
+ if (s = LE(s, e), r) {
14846
14846
  if (xn && r.nodeType == 1 && (i = Math.min(i, r.childNodes.length), i < r.childNodes.length)) {
14847
14847
  let u = r.childNodes[i], d;
14848
14848
  u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && i++;
14849
14849
  }
14850
14850
  let c;
14851
- ts && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == t.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = t.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = I5(t, r, i, e));
14851
+ ts && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == t.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = t.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = IE(t, r, i, e));
14852
14852
  }
14853
- l == null && (l = D5(t, s, e));
14853
+ l == null && (l = DE(t, s, e));
14854
14854
  let a = t.docView.nearestDesc(s, !0);
14855
14855
  return { pos: l, inside: a ? a.posAtStart - a.border : -1 };
14856
14856
  }
@@ -14866,11 +14866,11 @@ function ir(t, e) {
14866
14866
  }
14867
14867
  return Array.prototype.find.call(n, of) || t.getBoundingClientRect();
14868
14868
  }
14869
- const P5 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
14869
+ const PE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
14870
14870
  function Gm(t, e, n) {
14871
14871
  let { node: r, offset: i, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = ts || xn;
14872
14872
  if (r.nodeType == 3)
14873
- if (s && (P5.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
14873
+ if (s && (PE.test(r.nodeValue) || (n < 0 ? !i : i == r.nodeValue.length))) {
14874
14874
  let a = ir(jn(r, i, i), n);
14875
14875
  if (xn && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
14876
14876
  let c = ir(jn(r, i - 1, i - 1), -1);
@@ -14934,7 +14934,7 @@ function Jm(t, e, n) {
14934
14934
  r != e && t.updateState(r), i != t.dom && i && i.focus();
14935
14935
  }
14936
14936
  }
14937
- function R5(t, e, n) {
14937
+ function RE(t, e, n) {
14938
14938
  let r = e.selection, i = n == "up" ? r.$from : r.$to;
14939
14939
  return Jm(t, e, () => {
14940
14940
  let { node: o } = t.docView.domFromPos(i.pos, n == "up" ? -1 : 1);
@@ -14966,13 +14966,13 @@ function R5(t, e, n) {
14966
14966
  return !0;
14967
14967
  });
14968
14968
  }
14969
- const V5 = /[\u0590-\u08ac]/;
14970
- function B5(t, e, n) {
14969
+ const VE = /[\u0590-\u08ac]/;
14970
+ function BE(t, e, n) {
14971
14971
  let { $head: r } = e.selection;
14972
14972
  if (!r.parent.isTextblock)
14973
14973
  return !1;
14974
14974
  let i = r.parentOffset, o = !i, s = i == r.parent.content.size, l = t.domSelection();
14975
- return l ? !V5.test(r.parent.textContent) || !l.modify ? n == "left" || n == "backward" ? o : s : Jm(t, e, () => {
14975
+ return l ? !VE.test(r.parent.textContent) || !l.modify ? n == "left" || n == "backward" ? o : s : Jm(t, e, () => {
14976
14976
  let { focusNode: a, focusOffset: c, anchorNode: u, anchorOffset: d } = t.domSelectionRange(), f = l.caretBidiLevel;
14977
14977
  l.modify("move", n, "character");
14978
14978
  let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset: m } = t.domSelectionRange(), g = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || a == p && c == m;
@@ -14984,8 +14984,8 @@ function B5(t, e, n) {
14984
14984
  }) : r.pos == r.start() || r.pos == r.end();
14985
14985
  }
14986
14986
  let sf = null, lf = null, af = !1;
14987
- function F5(t, e, n) {
14988
- return sf == e && lf == n ? af : (sf = e, lf = n, af = n == "up" || n == "down" ? R5(t, e, n) : B5(t, e, n));
14987
+ function FE(t, e, n) {
14988
+ return sf == e && lf == n ? af : (sf = e, lf = n, af = n == "up" || n == "down" ? RE(t, e, n) : BE(t, e, n));
14989
14989
  }
14990
14990
  const cn = 0, cf = 1, Fr = 2, In = 3;
14991
14991
  class ns {
@@ -15369,7 +15369,7 @@ class Zm extends ns {
15369
15369
  return this.widget.type.side;
15370
15370
  }
15371
15371
  }
15372
- class j5 extends ns {
15372
+ class jE extends ns {
15373
15373
  constructor(e, n, r, i) {
15374
15374
  super(e, [], n, null), this.textDOM = r, this.text = i;
15375
15375
  }
@@ -15450,7 +15450,7 @@ class yr extends ns {
15450
15450
  } else u || ({ dom: u, contentDOM: d } = ui.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
15451
15451
  !d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
15452
15452
  let f = u;
15453
- return u = tg(u, r, n), c ? a = new H5(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new Sl(e, n, r, i, u, f, o) : new yr(e, n, r, i, u, d || null, f, o, s + 1);
15453
+ return u = tg(u, r, n), c ? a = new HE(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new Sl(e, n, r, i, u, f, o) : new yr(e, n, r, i, u, d || null, f, o, s + 1);
15454
15454
  }
15455
15455
  parseRule() {
15456
15456
  if (this.node.type.spec.reparseInView)
@@ -15486,14 +15486,14 @@ class yr extends ns {
15486
15486
  // separate step, syncs the DOM inside `this.contentDOM` to
15487
15487
  // `this.children`.
15488
15488
  updateChildren(e, n) {
15489
- let r = this.node.inlineContent, i = n, o = e.composing ? this.localCompositionInfo(e, n) : null, s = o && o.pos > -1 ? o : null, l = o && o.pos < 0, a = new W5(this, s && s.node, e);
15490
- q5(this.node, this.innerDeco, (c, u, d) => {
15489
+ let r = this.node.inlineContent, i = n, o = e.composing ? this.localCompositionInfo(e, n) : null, s = o && o.pos > -1 ? o : null, l = o && o.pos < 0, a = new WE(this, s && s.node, e);
15490
+ qE(this.node, this.innerDeco, (c, u, d) => {
15491
15491
  c.spec.marks ? a.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !d && a.syncToMarks(u == this.node.childCount ? Je.none : this.node.child(u).marks, r, e), a.placeWidget(c, e, i);
15492
15492
  }, (c, u, d, f) => {
15493
15493
  a.syncToMarks(c.marks, r, e);
15494
15494
  let h;
15495
15495
  a.findNodeMatch(c, u, d, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (h = a.findIndexWithChild(o.node)) > -1 && a.updateNodeAt(c, u, d, h, e) || a.updateNextNode(c, u, d, e, f, i) || a.addNode(c, u, d, e, i), i += c.nodeSize;
15496
- }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Fr) && (s && this.protectLocalComposition(e, s), Qm(this.contentDOM, this.children, e), Vi && K5(this.dom));
15496
+ }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Fr) && (s && this.protectLocalComposition(e, s), Qm(this.contentDOM, this.children, e), Vi && KE(this.dom));
15497
15497
  }
15498
15498
  localCompositionInfo(e, n) {
15499
15499
  let { from: r, to: i } = e.state.selection;
@@ -15503,7 +15503,7 @@ class yr extends ns {
15503
15503
  if (!o || !this.dom.contains(o.parentNode))
15504
15504
  return null;
15505
15505
  if (this.node.inlineContent) {
15506
- let s = o.nodeValue, l = G5(this.node.content, s, r - n, i - n);
15506
+ let s = o.nodeValue, l = GE(this.node.content, s, r - n, i - n);
15507
15507
  return l < 0 ? null : { node: o, pos: l, text: s };
15508
15508
  } else
15509
15509
  return { node: o, pos: -1, text: "" };
@@ -15519,7 +15519,7 @@ class yr extends ns {
15519
15519
  o.parentNode.removeChild(o.nextSibling);
15520
15520
  o.pmViewDesc && (o.pmViewDesc = void 0);
15521
15521
  }
15522
- let s = new j5(this, o, n, i);
15522
+ let s = new jE(this, o, n, i);
15523
15523
  e.input.compositionNodes.push(s), this.children = nc(this.children, r, r + i.length, e, s);
15524
15524
  }
15525
15525
  // If this desc must be updated to match the given node decoration,
@@ -15610,7 +15610,7 @@ class Xm extends ns {
15610
15610
  return this.dom.nodeName == "IMG";
15611
15611
  }
15612
15612
  }
15613
- class H5 extends yr {
15613
+ class HE extends yr {
15614
15614
  constructor(e, n, r, i, o, s, l, a, c, u) {
15615
15615
  super(e, n, r, i, o, s, l, c, u), this.spec = a;
15616
15616
  }
@@ -15694,11 +15694,11 @@ function eg(t, e, n, r) {
15694
15694
  let a;
15695
15695
  l && l.nodeName == s.nodeName && i != t && (a = i.parentNode) && a.nodeName.toLowerCase() == s.nodeName || (a = document.createElement(s.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = jr[0]), i = a;
15696
15696
  }
15697
- z5(i, l || jr[0], s);
15697
+ zE(i, l || jr[0], s);
15698
15698
  }
15699
15699
  return i;
15700
15700
  }
15701
- function z5(t, e, n) {
15701
+ function zE(t, e, n) {
15702
15702
  for (let r in e)
15703
15703
  r != "class" && r != "style" && r != "nodeName" && !(r in n) && t.removeAttribute(r);
15704
15704
  for (let r in n)
@@ -15735,9 +15735,9 @@ function df(t) {
15735
15735
  let e = t.nextSibling;
15736
15736
  return t.parentNode.removeChild(t), e;
15737
15737
  }
15738
- class W5 {
15738
+ class WE {
15739
15739
  constructor(e, n, r) {
15740
- this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch = U5(e.node.content, e);
15740
+ this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = !1, this.top = e, this.preMatch = UE(e.node.content, e);
15741
15741
  }
15742
15742
  // Destroy and remove the children between the given indices in
15743
15743
  // `this.top`.
@@ -15885,7 +15885,7 @@ class W5 {
15885
15885
  return this.lock && (e == this.lock || e.nodeType == 1 && e.contains(this.lock.parentNode));
15886
15886
  }
15887
15887
  }
15888
- function U5(t, e) {
15888
+ function UE(t, e) {
15889
15889
  let n = e, r = n.children.length, i = t.childCount, o = /* @__PURE__ */ new Map(), s = [];
15890
15890
  e: for (; i > 0; ) {
15891
15891
  let l;
@@ -15912,10 +15912,10 @@ function U5(t, e) {
15912
15912
  }
15913
15913
  return { index: i, matched: o, matches: s.reverse() };
15914
15914
  }
15915
- function Y5(t, e) {
15915
+ function YE(t, e) {
15916
15916
  return t.type.side - e.type.side;
15917
15917
  }
15918
- function q5(t, e, n, r) {
15918
+ function qE(t, e, n, r) {
15919
15919
  let i = e.locals(t), o = 0;
15920
15920
  if (i.length == 0) {
15921
15921
  for (let c = 0; c < t.childCount; c++) {
@@ -15933,7 +15933,7 @@ function q5(t, e, n, r) {
15933
15933
  }
15934
15934
  if (u)
15935
15935
  if (d) {
15936
- d.sort(Y5);
15936
+ d.sort(YE);
15937
15937
  for (let g = 0; g < d.length; g++)
15938
15938
  n(d[g], c, !!a);
15939
15939
  } else
@@ -15963,13 +15963,13 @@ function q5(t, e, n, r) {
15963
15963
  r(f, m, e.forChild(o, f), h), o = p;
15964
15964
  }
15965
15965
  }
15966
- function K5(t) {
15966
+ function KE(t) {
15967
15967
  if (t.nodeName == "UL" || t.nodeName == "OL") {
15968
15968
  let e = t.style.cssText;
15969
15969
  t.style.cssText = e + "; list-style: square !important", window.getComputedStyle(t).listStyle, t.style.cssText = e;
15970
15970
  }
15971
15971
  }
15972
- function G5(t, e, n, r) {
15972
+ function GE(t, e, n, r) {
15973
15973
  for (let i = 0, o = 0; i < t.childCount && o <= r; ) {
15974
15974
  let s = t.child(i++), l = o;
15975
15975
  if (o += s.nodeSize, !s.isText)
@@ -16013,7 +16013,7 @@ function Wc(t, e = null) {
16013
16013
  for (a = s; i && !i.node; )
16014
16014
  i = i.parent;
16015
16015
  let d = i.node;
16016
- if (i && d.isAtom && xe.isSelectable(d) && i.parent && !(d.isInline && k5(n.focusNode, n.focusOffset, i.dom))) {
16016
+ if (i && d.isAtom && xe.isSelectable(d) && i.parent && !(d.isInline && kE(n.focusNode, n.focusOffset, i.dom))) {
16017
16017
  let f = i.posBefore;
16018
16018
  c = new xe(s == f ? l : r.resolve(f));
16019
16019
  }
@@ -16053,10 +16053,10 @@ function Gn(t, e = !1) {
16053
16053
  }
16054
16054
  }
16055
16055
  if (t.domObserver.disconnectSelection(), t.cursorWrapper)
16056
- Z5(t);
16056
+ ZE(t);
16057
16057
  else {
16058
16058
  let { anchor: r, head: i } = n, o, s;
16059
- ff && !(n instanceof _e) && (n.$from.parent.inlineContent || (o = hf(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = hf(t, n.to))), t.docView.setSelection(r, i, t, e), ff && (o && pf(o), s && pf(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && J5(t));
16059
+ ff && !(n instanceof _e) && (n.$from.parent.inlineContent || (o = hf(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = hf(t, n.to))), t.docView.setSelection(r, i, t, e), ff && (o && pf(o), s && pf(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && JE(t));
16060
16060
  }
16061
16061
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
16062
16062
  }
@@ -16079,7 +16079,7 @@ function ea(t) {
16079
16079
  function pf(t) {
16080
16080
  t.contentEditable = "false", t.wasDraggable && (t.draggable = !0, t.wasDraggable = null);
16081
16081
  }
16082
- function J5(t) {
16082
+ function JE(t) {
16083
16083
  let e = t.dom.ownerDocument;
16084
16084
  e.removeEventListener("selectionchange", t.input.hideSelectionGuard);
16085
16085
  let n = t.domSelectionRange(), r = n.anchorNode, i = n.anchorOffset;
@@ -16089,7 +16089,7 @@ function J5(t) {
16089
16089
  }, 20));
16090
16090
  });
16091
16091
  }
16092
- function Z5(t) {
16092
+ function ZE(t) {
16093
16093
  let e = t.domSelection(), n = document.createRange();
16094
16094
  if (!e)
16095
16095
  return;
@@ -16122,7 +16122,7 @@ function ig(t) {
16122
16122
  return !1;
16123
16123
  }
16124
16124
  }
16125
- function X5(t) {
16125
+ function XE(t) {
16126
16126
  let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
16127
16127
  return ni(e.node, e.offset, n.anchorNode, n.anchorOffset);
16128
16128
  }
@@ -16171,9 +16171,9 @@ function yo(t, e) {
16171
16171
  return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
16172
16172
  }
16173
16173
  function hi(t, e) {
16174
- return e < 0 ? Q5(t) : eE(t);
16174
+ return e < 0 ? QE(t) : e5(t);
16175
16175
  }
16176
- function Q5(t) {
16176
+ function QE(t) {
16177
16177
  let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
16178
16178
  if (!n)
16179
16179
  return;
@@ -16209,7 +16209,7 @@ function Q5(t) {
16209
16209
  }
16210
16210
  s ? ic(t, n, r) : i && ic(t, i, o);
16211
16211
  }
16212
- function eE(t) {
16212
+ function e5(t) {
16213
16213
  let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
16214
16214
  if (!n)
16215
16215
  return;
@@ -16245,7 +16245,7 @@ function og(t) {
16245
16245
  let e = t.pmViewDesc;
16246
16246
  return e && e.node && e.node.isBlock;
16247
16247
  }
16248
- function tE(t, e) {
16248
+ function t5(t, e) {
16249
16249
  for (; t && e == t.childNodes.length && !es(t); )
16250
16250
  e = Ot(t) + 1, t = t.parentNode;
16251
16251
  for (; t && e < t.childNodes.length; ) {
@@ -16257,7 +16257,7 @@ function tE(t, e) {
16257
16257
  t = n, e = 0;
16258
16258
  }
16259
16259
  }
16260
- function nE(t, e) {
16260
+ function n5(t, e) {
16261
16261
  for (; t && !e && !es(t); )
16262
16262
  e = Ot(t), t = t.parentNode;
16263
16263
  for (; t && e; ) {
@@ -16272,7 +16272,7 @@ function nE(t, e) {
16272
16272
  function ic(t, e, n) {
16273
16273
  if (e.nodeType != 3) {
16274
16274
  let o, s;
16275
- (s = tE(e, n)) ? (e = s, n = 0) : (o = nE(e, n)) && (e = o, n = o.nodeValue.length);
16275
+ (s = t5(e, n)) ? (e = s, n = 0) : (o = n5(e, n)) && (e = o, n = o.nodeValue.length);
16276
16276
  }
16277
16277
  let r = t.domSelection();
16278
16278
  if (!r)
@@ -16289,7 +16289,7 @@ function ic(t, e, n) {
16289
16289
  }
16290
16290
  function vf(t, e) {
16291
16291
  let n = t.state.doc.resolve(e);
16292
- if (!(_t || O5) && n.parent.inlineContent) {
16292
+ if (!(_t || OE) && n.parent.inlineContent) {
16293
16293
  let i = t.coordsAtPos(e);
16294
16294
  if (e > n.start()) {
16295
16295
  let o = t.coordsAtPos(e - 1), s = (o.top + o.bottom) / 2;
@@ -16340,7 +16340,7 @@ function wf(t, e) {
16340
16340
  function kf(t, e, n) {
16341
16341
  t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
16342
16342
  }
16343
- function rE(t) {
16343
+ function r5(t) {
16344
16344
  if (!Pt || t.state.selection.$head.parentOffset > 0)
16345
16345
  return !1;
16346
16346
  let { focusNode: e, focusOffset: n } = t.domSelectionRange();
@@ -16350,12 +16350,12 @@ function rE(t) {
16350
16350
  }
16351
16351
  return !1;
16352
16352
  }
16353
- function iE(t) {
16353
+ function i5(t) {
16354
16354
  let e = "";
16355
16355
  return t.ctrlKey && (e += "c"), t.metaKey && (e += "m"), t.altKey && (e += "a"), t.shiftKey && (e += "s"), e;
16356
16356
  }
16357
- function oE(t, e) {
16358
- let n = e.keyCode, r = iE(e);
16357
+ function o5(t, e) {
16358
+ let n = e.keyCode, r = i5(e);
16359
16359
  if (n == 8 || sn && n == 72 && r == "c")
16360
16360
  return wf(t, -1) || hi(t, -1);
16361
16361
  if (n == 46 && !e.shiftKey || sn && n == 68 && r == "c")
@@ -16372,7 +16372,7 @@ function oE(t, e) {
16372
16372
  if (n == 38 || sn && n == 80 && r == "c")
16373
16373
  return bf(t, -1, r) || hi(t, -1);
16374
16374
  if (n == 40 || sn && n == 78 && r == "c")
16375
- return rE(t) || bf(t, 1, r) || hi(t, 1);
16375
+ return r5(t) || bf(t, 1, r) || hi(t, 1);
16376
16376
  if (r == (sn ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
16377
16377
  return !0;
16378
16378
  }
@@ -16430,7 +16430,7 @@ function sg(t, e, n, r, i) {
16430
16430
  } else
16431
16431
  t.someProp("transformPastedHTML", (d) => {
16432
16432
  n = d(n, t);
16433
- }), s = cE(n), ts && uE(s);
16433
+ }), s = c5(n), ts && u5(s);
16434
16434
  let c = s && s.querySelector("[data-pm-slice]"), u = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
16435
16435
  if (u && u[3])
16436
16436
  for (let d = +u[3]; d > 0; d--) {
@@ -16445,11 +16445,11 @@ function sg(t, e, n, r, i) {
16445
16445
  preserveWhitespace: !!(a || u),
16446
16446
  context: i,
16447
16447
  ruleFromNode(f) {
16448
- return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !sE.test(f.parentNode.nodeName) ? { ignore: !0 } : null;
16448
+ return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !s5.test(f.parentNode.nodeName) ? { ignore: !0 } : null;
16449
16449
  }
16450
16450
  })), u)
16451
- l = dE(xf(l, +u[1], +u[2]), u[4]);
16452
- else if (l = he.maxOpen(lE(l.content, i), !0), l.openStart || l.openEnd) {
16451
+ l = d5(xf(l, +u[1], +u[2]), u[4]);
16452
+ else if (l = he.maxOpen(l5(l.content, i), !0), l.openStart || l.openEnd) {
16453
16453
  let d = 0, f = 0;
16454
16454
  for (let h = l.content.firstChild; d < l.openStart && !h.type.spec.isolating; d++, h = h.firstChild)
16455
16455
  ;
@@ -16461,8 +16461,8 @@ function sg(t, e, n, r, i) {
16461
16461
  l = d(l, t);
16462
16462
  }), l;
16463
16463
  }
16464
- const sE = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
16465
- function lE(t, e) {
16464
+ const s5 = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
16465
+ function l5(t, e) {
16466
16466
  if (t.childCount < 2)
16467
16467
  return t;
16468
16468
  for (let n = e.depth; n >= 0; n--) {
@@ -16528,27 +16528,27 @@ function dg() {
16528
16528
  return Sf || (Sf = document.implementation.createHTMLDocument("title"));
16529
16529
  }
16530
16530
  let ta = null;
16531
- function aE(t) {
16531
+ function a5(t) {
16532
16532
  let e = window.trustedTypes;
16533
16533
  return e ? (ta || (ta = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), ta.createHTML(t)) : t;
16534
16534
  }
16535
- function cE(t) {
16535
+ function c5(t) {
16536
16536
  let e = /^(\s*<meta [^>]*>)*/.exec(t);
16537
16537
  e && (t = t.slice(e[0].length));
16538
16538
  let n = dg().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), i;
16539
- if ((i = r && ug[r[1].toLowerCase()]) && (t = i.map((o) => "<" + o + ">").join("") + t + i.map((o) => "</" + o + ">").reverse().join("")), n.innerHTML = aE(t), i)
16539
+ if ((i = r && ug[r[1].toLowerCase()]) && (t = i.map((o) => "<" + o + ">").join("") + t + i.map((o) => "</" + o + ">").reverse().join("")), n.innerHTML = a5(t), i)
16540
16540
  for (let o = 0; o < i.length; o++)
16541
16541
  n = n.querySelector(i[o]) || n;
16542
16542
  return n;
16543
16543
  }
16544
- function uE(t) {
16544
+ function u5(t) {
16545
16545
  let e = t.querySelectorAll(_t ? "span:not([class]):not([style])" : "span.Apple-converted-space");
16546
16546
  for (let n = 0; n < e.length; n++) {
16547
16547
  let r = e[n];
16548
16548
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
16549
16549
  }
16550
16550
  }
16551
- function dE(t, e) {
16551
+ function d5(t, e) {
16552
16552
  if (!t.size)
16553
16553
  return t;
16554
16554
  let n = t.content.firstChild.type.schema, r;
@@ -16566,25 +16566,25 @@ function dE(t, e) {
16566
16566
  }
16567
16567
  return new he(i, o, s);
16568
16568
  }
16569
- const Rt = {}, Vt = {}, fE = { touchstart: !0, touchmove: !0 };
16570
- class hE {
16569
+ const Rt = {}, Vt = {}, f5 = { touchstart: !0, touchmove: !0 };
16570
+ class h5 {
16571
16571
  constructor() {
16572
16572
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, 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;
16573
16573
  }
16574
16574
  }
16575
- function pE(t) {
16575
+ function p5(t) {
16576
16576
  for (let e in Rt) {
16577
16577
  let n = Rt[e];
16578
16578
  t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
16579
- gE(t, r) && !qc(t, r) && (t.editable || !(r.type in Vt)) && n(t, r);
16580
- }, fE[e] ? { passive: !0 } : void 0);
16579
+ g5(t, r) && !qc(t, r) && (t.editable || !(r.type in Vt)) && n(t, r);
16580
+ }, f5[e] ? { passive: !0 } : void 0);
16581
16581
  }
16582
16582
  Pt && t.dom.addEventListener("input", () => null), sc(t);
16583
16583
  }
16584
16584
  function dr(t, e) {
16585
16585
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
16586
16586
  }
16587
- function mE(t) {
16587
+ function m5(t) {
16588
16588
  t.domObserver.stop();
16589
16589
  for (let e in t.input.eventHandlers)
16590
16590
  t.dom.removeEventListener(e, t.input.eventHandlers[e]);
@@ -16602,7 +16602,7 @@ function qc(t, e) {
16602
16602
  return r ? r(t, e) || e.defaultPrevented : !1;
16603
16603
  });
16604
16604
  }
16605
- function gE(t, e) {
16605
+ function g5(t, e) {
16606
16606
  if (!e.bubbles)
16607
16607
  return !0;
16608
16608
  if (e.defaultPrevented)
@@ -16612,7 +16612,7 @@ function gE(t, e) {
16612
16612
  return !1;
16613
16613
  return !0;
16614
16614
  }
16615
- function yE(t, e) {
16615
+ function y5(t, e) {
16616
16616
  !qc(t, e) && Rt[e.type] && (t.editable || !(e.type in Vt)) && Rt[e.type](t, e);
16617
16617
  }
16618
16618
  Vt.keydown = (t, e) => {
@@ -16623,7 +16623,7 @@ Vt.keydown = (t, e) => {
16623
16623
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
16624
16624
  t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t, Rr(13, "Enter"))), t.input.lastIOSEnter = 0);
16625
16625
  }, 200);
16626
- } else t.someProp("handleKeyDown", (r) => r(t, n)) || oE(t, n) ? n.preventDefault() : dr(t, "key");
16626
+ } else t.someProp("handleKeyDown", (r) => r(t, n)) || o5(t, n) ? n.preventDefault() : dr(t, "key");
16627
16627
  };
16628
16628
  Vt.keyup = (t, e) => {
16629
16629
  e.keyCode == 16 && (t.input.shiftKey = !1);
@@ -16645,7 +16645,7 @@ Vt.keypress = (t, e) => {
16645
16645
  function Ol(t) {
16646
16646
  return { left: t.clientX, top: t.clientY };
16647
16647
  }
16648
- function vE(t, e) {
16648
+ function v5(t, e) {
16649
16649
  let n = e.x - t.clientX, r = e.y - t.clientY;
16650
16650
  return n * n + r * r < 100;
16651
16651
  }
@@ -16664,13 +16664,13 @@ function Ei(t, e, n) {
16664
16664
  let r = t.state.tr.setSelection(e);
16665
16665
  r.setMeta("pointer", !0), t.dispatch(r);
16666
16666
  }
16667
- function bE(t, e) {
16667
+ function b5(t, e) {
16668
16668
  if (e == -1)
16669
16669
  return !1;
16670
16670
  let n = t.state.doc.resolve(e), r = n.nodeAfter;
16671
16671
  return r && r.isAtom && xe.isSelectable(r) ? (Ei(t, new xe(n)), !0) : !1;
16672
16672
  }
16673
- function wE(t, e) {
16673
+ function w5(t, e) {
16674
16674
  if (e == -1)
16675
16675
  return !1;
16676
16676
  let n = t.state.selection, r, i;
@@ -16685,16 +16685,16 @@ function wE(t, e) {
16685
16685
  }
16686
16686
  return i != null ? (Ei(t, xe.create(t.state.doc, i)), !0) : !1;
16687
16687
  }
16688
- function kE(t, e, n, r, i) {
16689
- return Kc(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ? wE(t, n) : bE(t, n));
16688
+ function k5(t, e, n, r, i) {
16689
+ return Kc(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ? w5(t, n) : b5(t, n));
16690
16690
  }
16691
- function xE(t, e, n, r) {
16691
+ function x5(t, e, n, r) {
16692
16692
  return Kc(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (i) => i(t, e, r));
16693
16693
  }
16694
- function SE(t, e, n, r) {
16695
- return Kc(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (i) => i(t, e, r)) || OE(t, n, r);
16694
+ function S5(t, e, n, r) {
16695
+ return Kc(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (i) => i(t, e, r)) || O5(t, n, r);
16696
16696
  }
16697
- function OE(t, e, n) {
16697
+ function O5(t, e, n) {
16698
16698
  if (n.button != 0)
16699
16699
  return !1;
16700
16700
  let r = t.state.doc;
@@ -16720,11 +16720,11 @@ Rt.mousedown = (t, e) => {
16720
16720
  let n = e;
16721
16721
  t.input.shiftKey = n.shiftKey;
16722
16722
  let r = Gc(t), i = Date.now(), o = "singleClick";
16723
- i - t.input.lastClick.time < 500 && vE(n, t.input.lastClick) && !n[fg] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
16723
+ i - t.input.lastClick.time < 500 && v5(n, t.input.lastClick) && !n[fg] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
16724
16724
  let s = t.posAtCoords(Ol(n));
16725
- s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new CE(t, s, n, !!r)) : (o == "doubleClick" ? xE : SE)(t, s.pos, s.inside, n) ? n.preventDefault() : dr(t, "pointer"));
16725
+ s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new C5(t, s, n, !!r)) : (o == "doubleClick" ? x5 : S5)(t, s.pos, s.inside, n) ? n.preventDefault() : dr(t, "pointer"));
16726
16726
  };
16727
- class CE {
16727
+ class C5 {
16728
16728
  constructor(e, n, r, i) {
16729
16729
  this.view = e, this.pos = n, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[fg], this.allowDefault = r.shiftKey;
16730
16730
  let o, s;
@@ -16753,7 +16753,7 @@ class CE {
16753
16753
  if (this.done(), !this.view.dom.contains(e.target))
16754
16754
  return;
16755
16755
  let n = this.pos;
16756
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ol(e))), this.updateAllowDefault(e), this.allowDefault || !n ? dr(this.view, "pointer") : kE(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
16756
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ol(e))), this.updateAllowDefault(e), this.allowDefault || !n ? dr(this.view, "pointer") : k5(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
16757
16757
  Pt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
16758
16758
  // cursor, but still report that the node is selected
16759
16759
  // when asked through getSelection. You'll then get a
@@ -16780,7 +16780,7 @@ Rt.contextmenu = (t) => Gc(t);
16780
16780
  function hg(t, e) {
16781
16781
  return t.composing ? !0 : Pt && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
16782
16782
  }
16783
- const EE = Yn ? 5e3 : -1;
16783
+ const E5 = Yn ? 5e3 : -1;
16784
16784
  Vt.compositionstart = Vt.compositionupdate = (t) => {
16785
16785
  if (!t.composing) {
16786
16786
  t.domObserver.flush();
@@ -16803,7 +16803,7 @@ Vt.compositionstart = Vt.compositionupdate = (t) => {
16803
16803
  }
16804
16804
  t.input.composing = !0;
16805
16805
  }
16806
- pg(t, EE);
16806
+ pg(t, E5);
16807
16807
  };
16808
16808
  Vt.compositionend = (t, e) => {
16809
16809
  t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, pg(t, 20));
@@ -16812,14 +16812,14 @@ function pg(t, e) {
16812
16812
  clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => Zs(t), e));
16813
16813
  }
16814
16814
  function mg(t) {
16815
- for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = ME()); t.input.compositionNodes.length > 0; )
16815
+ for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = M5()); t.input.compositionNodes.length > 0; )
16816
16816
  t.input.compositionNodes.pop().markParentsDirty();
16817
16817
  }
16818
- function TE(t) {
16818
+ function T5(t) {
16819
16819
  let e = t.domSelectionRange();
16820
16820
  if (!e.focusNode)
16821
16821
  return null;
16822
- let n = b5(e.focusNode, e.focusOffset), r = w5(e.focusNode, e.focusOffset);
16822
+ let n = bE(e.focusNode, e.focusOffset), r = wE(e.focusNode, e.focusOffset);
16823
16823
  if (n && r && n != r) {
16824
16824
  let i = r.pmViewDesc, o = t.domObserver.lastChangedTextNode;
16825
16825
  if (n == o || r == o)
@@ -16834,7 +16834,7 @@ function TE(t) {
16834
16834
  }
16835
16835
  return n || r;
16836
16836
  }
16837
- function ME() {
16837
+ function M5() {
16838
16838
  let t = document.createEvent("Event");
16839
16839
  return t.initEvent("event", !0, !0), t.timeStamp;
16840
16840
  }
@@ -16847,7 +16847,7 @@ function Zs(t, e = !1) {
16847
16847
  return !1;
16848
16848
  }
16849
16849
  }
16850
- function _E(t, e) {
16850
+ function _5(t, e) {
16851
16851
  if (!t.dom.parentNode)
16852
16852
  return;
16853
16853
  let n = t.dom.parentNode.appendChild(document.createElement("div"));
@@ -16857,18 +16857,18 @@ function _E(t, e) {
16857
16857
  n.parentNode && n.parentNode.removeChild(n), t.focus();
16858
16858
  }, 50);
16859
16859
  }
16860
- const Ro = Yt && gr < 15 || Vi && C5 < 604;
16860
+ const Ro = Yt && gr < 15 || Vi && CE < 604;
16861
16861
  Rt.copy = Vt.cut = (t, e) => {
16862
16862
  let n = e, r = t.state.selection, i = n.type == "cut";
16863
16863
  if (r.empty)
16864
16864
  return;
16865
16865
  let o = Ro ? null : n.clipboardData, s = r.content(), { dom: l, text: a } = Yc(t, s);
16866
- o ? (n.preventDefault(), o.clearData(), o.setData("text/html", l.innerHTML), o.setData("text/plain", a)) : _E(t, l), i && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
16866
+ o ? (n.preventDefault(), o.clearData(), o.setData("text/html", l.innerHTML), o.setData("text/plain", a)) : _5(t, l), i && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
16867
16867
  };
16868
- function NE(t) {
16868
+ function N5(t) {
16869
16869
  return t.openStart == 0 && t.openEnd == 0 && t.content.childCount == 1 ? t.content.firstChild : null;
16870
16870
  }
16871
- function AE(t, e) {
16871
+ function A5(t, e) {
16872
16872
  if (!t.dom.parentNode)
16873
16873
  return;
16874
16874
  let n = t.input.shiftKey || t.state.selection.$from.parent.type.spec.code, r = t.dom.parentNode.appendChild(document.createElement(n ? "textarea" : "div"));
@@ -16884,7 +16884,7 @@ function Vo(t, e, n, r, i) {
16884
16884
  return !0;
16885
16885
  if (!o)
16886
16886
  return !1;
16887
- let s = NE(o), l = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(o);
16887
+ let s = N5(o), l = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(o);
16888
16888
  return t.dispatch(l.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
16889
16889
  }
16890
16890
  function gg(t) {
@@ -16899,7 +16899,7 @@ Vt.paste = (t, e) => {
16899
16899
  if (t.composing && !Yn)
16900
16900
  return;
16901
16901
  let r = Ro ? null : n.clipboardData, i = t.input.shiftKey && t.input.lastKeyCode != 45;
16902
- r && Vo(t, gg(r), r.getData("text/html"), i, n) ? n.preventDefault() : AE(t, n);
16902
+ r && Vo(t, gg(r), r.getData("text/html"), i, n) ? n.preventDefault() : A5(t, n);
16903
16903
  };
16904
16904
  class yg {
16905
16905
  constructor(e, n, r) {
@@ -17187,7 +17187,7 @@ class lt {
17187
17187
  let a = this.local[l].map(e, r, i);
17188
17188
  a && a.type.valid(n, a) ? (s || (s = [])).push(a) : o.onRemove && o.onRemove(this.local[l].spec);
17189
17189
  }
17190
- return this.children.length ? LE(this.children, s || [], e, n, r, i, o) : s ? new lt(s.sort(Yr), yi) : Mt;
17190
+ return this.children.length ? L5(this.children, s || [], e, n, r, i, o) : s ? new lt(s.sort(Yr), yi) : Mt;
17191
17191
  }
17192
17192
  /**
17193
17193
  Add the given array of decorations to the ones in the set,
@@ -17365,7 +17365,7 @@ class ar {
17365
17365
  this.members[n].forEachSet(e);
17366
17366
  }
17367
17367
  }
17368
- function LE(t, e, n, r, i, o, s) {
17368
+ function L5(t, e, n, r, i, o, s) {
17369
17369
  let l = t.slice();
17370
17370
  for (let c = 0, u = o; c < n.maps.length; c++) {
17371
17371
  let d = 0;
@@ -17401,7 +17401,7 @@ function LE(t, e, n, r, i, o, s) {
17401
17401
  a = !0;
17402
17402
  }
17403
17403
  if (a) {
17404
- let c = DE(l, t, e, n, i, o, s), u = Qs(c, r, 0, s);
17404
+ let c = D5(l, t, e, n, i, o, s), u = Qs(c, r, 0, s);
17405
17405
  e = u.local;
17406
17406
  for (let d = 0; d < l.length; d += 3)
17407
17407
  l[d + 1] < 0 && (l.splice(d, 3), d -= 3);
@@ -17424,7 +17424,7 @@ function bg(t, e) {
17424
17424
  }
17425
17425
  return n;
17426
17426
  }
17427
- function DE(t, e, n, r, i, o, s) {
17427
+ function D5(t, e, n, r, i, o, s) {
17428
17428
  function l(a, c) {
17429
17429
  for (let u = 0; u < a.local.length; u++) {
17430
17430
  let d = a.local[u].map(r, i, c);
@@ -17499,15 +17499,15 @@ function na(t) {
17499
17499
  r && r != Mt && e.push(r);
17500
17500
  }), t.cursorWrapper && e.push(lt.create(t.state.doc, [t.cursorWrapper.deco])), ar.from(e);
17501
17501
  }
17502
- const IE = {
17502
+ const I5 = {
17503
17503
  childList: !0,
17504
17504
  characterData: !0,
17505
17505
  characterDataOldValue: !0,
17506
17506
  attributes: !0,
17507
17507
  attributeOldValue: !0,
17508
17508
  subtree: !0
17509
- }, $E = Yt && gr <= 11;
17510
- class PE {
17509
+ }, $5 = Yt && gr <= 11;
17510
+ class P5 {
17511
17511
  constructor() {
17512
17512
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
17513
17513
  }
@@ -17521,13 +17521,13 @@ class PE {
17521
17521
  return e.anchorNode == this.anchorNode && e.anchorOffset == this.anchorOffset && e.focusNode == this.focusNode && e.focusOffset == this.focusOffset;
17522
17522
  }
17523
17523
  }
17524
- class RE {
17524
+ class R5 {
17525
17525
  constructor(e, n) {
17526
- this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new PE(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
17526
+ this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new P5(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
17527
17527
  for (let i = 0; i < r.length; i++)
17528
17528
  this.queue.push(r[i]);
17529
17529
  Yt && gr <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
17530
- }), $E && (this.onCharData = (r) => {
17530
+ }), $5 && (this.onCharData = (r) => {
17531
17531
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
17532
17532
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
17533
17533
  }
@@ -17540,7 +17540,7 @@ class RE {
17540
17540
  this.flushingSoon > -1 && (window.clearTimeout(this.flushingSoon), this.flushingSoon = -1, this.flush());
17541
17541
  }
17542
17542
  start() {
17543
- this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, IE)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
17543
+ this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, I5)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
17544
17544
  }
17545
17545
  stop() {
17546
17546
  if (this.observer) {
@@ -17623,12 +17623,12 @@ class RE {
17623
17623
  let { focusNode: d } = this.currentSelection;
17624
17624
  for (let f of u) {
17625
17625
  let h = f.parentNode;
17626
- h && h.nodeName == "LI" && (!d || FE(e, d) != h) && f.remove();
17626
+ h && h.nodeName == "LI" && (!d || F5(e, d) != h) && f.remove();
17627
17627
  }
17628
17628
  }
17629
17629
  }
17630
17630
  let c = null;
17631
- o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && xl(r) && (c = Wc(e)) && c.eq(Ie.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Gn(e), this.currentSelection.set(r)) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), VE(e)), this.handleDOMChange(o, s, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Gn(e), this.currentSelection.set(r));
17631
+ o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && xl(r) && (c = Wc(e)) && c.eq(Ie.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Gn(e), this.currentSelection.set(r)) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), V5(e)), this.handleDOMChange(o, s, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Gn(e), this.currentSelection.set(r));
17632
17632
  }
17633
17633
  registerMutation(e, n) {
17634
17634
  if (n.indexOf(e.target) > -1)
@@ -17664,7 +17664,7 @@ class RE {
17664
17664
  }
17665
17665
  }
17666
17666
  let Cf = /* @__PURE__ */ new WeakMap(), Ef = !1;
17667
- function VE(t) {
17667
+ function V5(t) {
17668
17668
  if (!Cf.has(t) && (Cf.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
17669
17669
  if (t.requiresGeckoHackNode = xn, Ef)
17670
17670
  return;
@@ -17675,7 +17675,7 @@ function Tf(t, e) {
17675
17675
  let n = e.startContainer, r = e.startOffset, i = e.endContainer, o = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
17676
17676
  return ni(s.node, s.offset, i, o) && ([n, r, i, o] = [i, o, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: o };
17677
17677
  }
17678
- function BE(t, e) {
17678
+ function B5(t, e) {
17679
17679
  if (e.getComposedRanges) {
17680
17680
  let i = e.getComposedRanges(t.root)[0];
17681
17681
  if (i)
@@ -17687,7 +17687,7 @@ function BE(t, e) {
17687
17687
  }
17688
17688
  return t.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, !0), n ? Tf(t, n) : null;
17689
17689
  }
17690
- function FE(t, e) {
17690
+ function F5(t, e) {
17691
17691
  for (let n = e.parentNode; n && n != t.dom; n = n.parentNode) {
17692
17692
  let r = t.docView.nearestDesc(n, !0);
17693
17693
  if (r && r.node.isBlock)
@@ -17695,7 +17695,7 @@ function FE(t, e) {
17695
17695
  }
17696
17696
  return null;
17697
17697
  }
17698
- function jE(t, e, n) {
17698
+ function j5(t, e, n) {
17699
17699
  let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = t.docView.parseRange(e, n), a = t.domSelectionRange(), c, u = a.anchorNode;
17700
17700
  if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], xl(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), _t && t.input.lastKeyCode === 8)
17701
17701
  for (let g = o; g > i; g--) {
@@ -17715,7 +17715,7 @@ function jE(t, e, n) {
17715
17715
  to: o,
17716
17716
  preserveWhitespace: h.parent.type.whitespace == "pre" ? "full" : !0,
17717
17717
  findPositions: c,
17718
- ruleFromNode: HE,
17718
+ ruleFromNode: H5,
17719
17719
  context: h
17720
17720
  });
17721
17721
  if (c && c[0].pos != null) {
@@ -17724,7 +17724,7 @@ function jE(t, e, n) {
17724
17724
  }
17725
17725
  return { doc: m, sel: p, from: s, to: l };
17726
17726
  }
17727
- function HE(t) {
17727
+ function H5(t) {
17728
17728
  let e = t.pmViewDesc;
17729
17729
  if (e)
17730
17730
  return e.parseRule();
@@ -17738,8 +17738,8 @@ function HE(t) {
17738
17738
  return { ignore: !0 };
17739
17739
  return null;
17740
17740
  }
17741
- const zE = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
17742
- function WE(t, e, n, r, i) {
17741
+ const z5 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
17742
+ function W5(t, e, n, r, i) {
17743
17743
  let o = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
17744
17744
  if (t.input.compositionPendingChanges = 0, e < 0) {
17745
17745
  let A = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, P = Wc(t, A);
@@ -17753,10 +17753,10 @@ function WE(t, e, n, r, i) {
17753
17753
  }
17754
17754
  let s = t.state.doc.resolve(e), l = s.sharedDepth(n);
17755
17755
  e = s.before(l + 1), n = t.state.doc.resolve(n).after(l + 1);
17756
- let a = t.state.selection, c = jE(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), f, h;
17756
+ let a = t.state.selection, c = j5(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), f, h;
17757
17757
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f = t.state.selection.to, h = "end") : (f = t.state.selection.from, h = "start"), t.input.lastKeyCode = null;
17758
- let p = qE(d.content, c.doc.content, c.from, f, h);
17759
- if (p && t.input.domChangeCount++, (Vi && t.input.lastIOSEnter > Date.now() - 225 || Yn) && i.some((A) => A.nodeType == 1 && !zE.test(A.nodeName)) && (!p || p.endA >= p.endB) && t.someProp("handleKeyDown", (A) => A(t, Rr(13, "Enter")))) {
17758
+ let p = q5(d.content, c.doc.content, c.from, f, h);
17759
+ if (p && t.input.domChangeCount++, (Vi && t.input.lastIOSEnter > Date.now() - 225 || Yn) && i.some((A) => A.nodeType == 1 && !z5.test(A.nodeName)) && (!p || p.endA >= p.endB) && t.someProp("handleKeyDown", (A) => A(t, Rr(13, "Enter")))) {
17760
17760
  t.input.lastIOSEnter = 0;
17761
17761
  return;
17762
17762
  }
@@ -17779,7 +17779,7 @@ function WE(t, e, n, r, i) {
17779
17779
  t.input.lastIOSEnter = 0;
17780
17780
  return;
17781
17781
  }
17782
- if (t.state.selection.anchor > p.start && YE(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (A) => A(t, Rr(8, "Backspace")))) {
17782
+ if (t.state.selection.anchor > p.start && Y5(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (A) => A(t, Rr(8, "Backspace")))) {
17783
17783
  Yn && _t && t.domObserver.suppressSelectionUpdates();
17784
17784
  return;
17785
17785
  }
@@ -17794,7 +17794,7 @@ function WE(t, e, n, r, i) {
17794
17794
  Yt && gr <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => Gn(t), 20)), w = t.state.tr.delete(y, O), T = u.resolve(p.start).marksAcross(u.resolve(p.endA));
17795
17795
  else if (
17796
17796
  // Adding or removing a mark
17797
- p.endA == p.endB && (D = UE(m.parent.content.cut(m.parentOffset, g.parentOffset), v.parent.content.cut(v.parentOffset, p.endA - v.start())))
17797
+ p.endA == p.endB && (D = U5(m.parent.content.cut(m.parentOffset, g.parentOffset), v.parent.content.cut(v.parentOffset, p.endA - v.start())))
17798
17798
  )
17799
17799
  w = t.state.tr, D.type == "add" ? w.addMark(y, O, D.mark) : w.removeMark(y, O, D.mark);
17800
17800
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
@@ -17813,7 +17813,7 @@ function WE(t, e, n, r, i) {
17813
17813
  function Mf(t, e, n) {
17814
17814
  return Math.max(n.anchor, n.head) > e.content.size ? null : Uc(t, e.resolve(n.anchor), e.resolve(n.head));
17815
17815
  }
17816
- function UE(t, e) {
17816
+ function U5(t, e) {
17817
17817
  let n = t.firstChild.marks, r = e.firstChild.marks, i = n, o = r, s, l, a;
17818
17818
  for (let u = 0; u < r.length; u++)
17819
17819
  i = r[u].removeFromSet(i);
@@ -17831,7 +17831,7 @@ function UE(t, e) {
17831
17831
  if (ee.from(c).eq(t))
17832
17832
  return { mark: l, type: s };
17833
17833
  }
17834
- function YE(t, e, n, r, i) {
17834
+ function Y5(t, e, n, r, i) {
17835
17835
  if (
17836
17836
  // The content must have shrunk
17837
17837
  n - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
@@ -17859,7 +17859,7 @@ function ra(t, e, n) {
17859
17859
  }
17860
17860
  return i;
17861
17861
  }
17862
- function qE(t, e, n, r, i) {
17862
+ function q5(t, e, n, r, i) {
17863
17863
  let o = t.findDiffStart(e, n);
17864
17864
  if (o == null)
17865
17865
  return null;
@@ -17883,7 +17883,7 @@ function _f(t) {
17883
17883
  let e = t.charCodeAt(0), n = t.charCodeAt(1);
17884
17884
  return e >= 56320 && e <= 57343 && n >= 55296 && n <= 56319;
17885
17885
  }
17886
- class KE {
17886
+ class K5 {
17887
17887
  /**
17888
17888
  Create a view. `place` may be a DOM node that the editor should
17889
17889
  be appended to, a function that will place it into the document,
@@ -17892,7 +17892,7 @@ class KE {
17892
17892
  added to the document.
17893
17893
  */
17894
17894
  constructor(e, n) {
17895
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new hE(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(If), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Lf(this), Af(this), this.nodeViews = Df(this), this.docView = uf(this.state.doc, Nf(this), na(this), this.dom, this), this.domObserver = new RE(this, (r, i, o, s) => WE(this, r, i, o, s)), this.domObserver.start(), pE(this), this.updatePluginViews();
17895
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new h5(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(If), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Lf(this), Af(this), this.nodeViews = Df(this), this.docView = uf(this.state.doc, Nf(this), na(this), this.dom, this), this.domObserver = new R5(this, (r, i, o, s) => W5(this, r, i, o, s)), this.domObserver.start(), p5(this), this.updatePluginViews();
17896
17896
  }
17897
17897
  /**
17898
17898
  Holds `true` when a
@@ -17952,22 +17952,22 @@ class KE {
17952
17952
  let l = i.plugins != e.plugins || this._props.plugins != n.plugins;
17953
17953
  if (l || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
17954
17954
  let h = Df(this);
17955
- JE(h, this.nodeViews) && (this.nodeViews = h, o = !0);
17955
+ J5(h, this.nodeViews) && (this.nodeViews = h, o = !0);
17956
17956
  }
17957
17957
  (l || n.handleDOMEvents != this._props.handleDOMEvents) && sc(this), this.editable = Lf(this), Af(this);
17958
17958
  let a = na(this), c = Nf(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, a);
17959
17959
  (d || !e.selection.eq(i.selection)) && (s = !0);
17960
- let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && M5(this);
17960
+ let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && ME(this);
17961
17961
  if (s) {
17962
17962
  this.domObserver.stop();
17963
- let h = d && (Yt || _t) && !this.composing && !i.selection.empty && !e.selection.empty && GE(i.selection, e.selection);
17963
+ let h = d && (Yt || _t) && !this.composing && !i.selection.empty && !e.selection.empty && G5(i.selection, e.selection);
17964
17964
  if (d) {
17965
17965
  let p = _t ? this.trackWrites = this.domSelectionRange().focusNode : null;
17966
- this.composing && (this.input.compositionNode = TE(this)), (o || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = uf(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
17966
+ this.composing && (this.input.compositionNode = T5(this)), (o || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = uf(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
17967
17967
  }
17968
- h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && X5(this)) ? Gn(this, h) : (rg(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
17968
+ h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && XE(this)) ? Gn(this, h) : (rg(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
17969
17969
  }
17970
- this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : f && _5(f);
17970
+ this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : f && _E(f);
17971
17971
  }
17972
17972
  /**
17973
17973
  @internal
@@ -18054,7 +18054,7 @@ class KE {
18054
18054
  Focus the editor.
18055
18055
  */
18056
18056
  focus() {
18057
- this.domObserver.stop(), this.editable && N5(this.dom), Gn(this), this.domObserver.start();
18057
+ this.domObserver.stop(), this.editable && NE(this.dom), Gn(this), this.domObserver.start();
18058
18058
  }
18059
18059
  /**
18060
18060
  Get the document root in which the editor exists. This will
@@ -18088,7 +18088,7 @@ class KE {
18088
18088
  the top level, not in any node.
18089
18089
  */
18090
18090
  posAtCoords(e) {
18091
- return $5(this, e);
18091
+ return $E(this, e);
18092
18092
  }
18093
18093
  /**
18094
18094
  Returns the viewport rectangle at a given document position.
@@ -18153,7 +18153,7 @@ class KE {
18153
18153
  pass a different state.
18154
18154
  */
18155
18155
  endOfTextblock(e, n) {
18156
- return F5(this, n || this.state, e);
18156
+ return FE(this, n || this.state, e);
18157
18157
  }
18158
18158
  /**
18159
18159
  Run the editor's paste logic with the given HTML string. The
@@ -18185,7 +18185,7 @@ class KE {
18185
18185
  views](https://prosemirror.net/docs/ref/#view.NodeView).
18186
18186
  */
18187
18187
  destroy() {
18188
- this.docView && (mE(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], na(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, y5());
18188
+ this.docView && (m5(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], na(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, yE());
18189
18189
  }
18190
18190
  /**
18191
18191
  This is true when the view has been
@@ -18199,7 +18199,7 @@ class KE {
18199
18199
  Used for testing.
18200
18200
  */
18201
18201
  dispatchEvent(e) {
18202
- return yE(this, e);
18202
+ return y5(this, e);
18203
18203
  }
18204
18204
  /**
18205
18205
  Dispatch a transaction. Will call
@@ -18219,7 +18219,7 @@ class KE {
18219
18219
  */
18220
18220
  domSelectionRange() {
18221
18221
  let e = this.domSelection();
18222
- return e ? Pt && this.root.nodeType === 11 && x5(this.dom.ownerDocument) == this.dom && BE(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
18222
+ return e ? Pt && this.root.nodeType === 11 && xE(this.dom.ownerDocument) == this.dom && B5(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
18223
18223
  }
18224
18224
  /**
18225
18225
  @internal
@@ -18246,7 +18246,7 @@ function Af(t) {
18246
18246
  function Lf(t) {
18247
18247
  return !t.someProp("editable", (e) => e(t.state) === !1);
18248
18248
  }
18249
- function GE(t, e) {
18249
+ function G5(t, e) {
18250
18250
  let n = Math.min(t.$anchor.sharedDepth(t.head), e.$anchor.sharedDepth(e.head));
18251
18251
  return t.$anchor.start(n) != e.$anchor.start(n);
18252
18252
  }
@@ -18258,7 +18258,7 @@ function Df(t) {
18258
18258
  }
18259
18259
  return t.someProp("nodeViews", n), t.someProp("markViews", n), e;
18260
18260
  }
18261
- function JE(t, e) {
18261
+ function J5(t, e) {
18262
18262
  let n = 0, r = 0;
18263
18263
  for (let i in t) {
18264
18264
  if (t[i] != e[i])
@@ -18351,14 +18351,14 @@ var Sr = {
18351
18351
  220: "|",
18352
18352
  221: "}",
18353
18353
  222: '"'
18354
- }, ZE = typeof navigator < "u" && /Mac/.test(navigator.platform), XE = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
18354
+ }, Z5 = typeof navigator < "u" && /Mac/.test(navigator.platform), X5 = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
18355
18355
  for (var Ct = 0; Ct < 10; Ct++) Sr[48 + Ct] = Sr[96 + Ct] = String(Ct);
18356
18356
  for (var Ct = 1; Ct <= 24; Ct++) Sr[Ct + 111] = "F" + Ct;
18357
18357
  for (var Ct = 65; Ct <= 90; Ct++)
18358
18358
  Sr[Ct] = String.fromCharCode(Ct + 32), el[Ct] = String.fromCharCode(Ct);
18359
18359
  for (var ia in Sr) el.hasOwnProperty(ia) || (el[ia] = Sr[ia]);
18360
- function QE(t) {
18361
- var e = ZE && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || XE && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? el : Sr)[t.keyCode] || t.key || "Unidentified";
18360
+ function Q5(t) {
18361
+ var e = Z5 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || X5 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? el : Sr)[t.keyCode] || t.key || "Unidentified";
18362
18362
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
18363
18363
  }
18364
18364
  const eT = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
@@ -18398,7 +18398,7 @@ function rT(t) {
18398
18398
  function xg(t) {
18399
18399
  let e = nT(t);
18400
18400
  return function(n, r) {
18401
- let i = QE(r), o, s = e[oa(i, r)];
18401
+ let i = Q5(r), o, s = e[oa(i, r)];
18402
18402
  if (s && s(n.state, n.dispatch, n))
18403
18403
  return !0;
18404
18404
  if (i.length == 1 && i != " ") {
@@ -21241,7 +21241,7 @@ let f_ = class extends OT {
21241
21241
  }), n = ac(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
21242
21242
  }
21243
21243
  const r = Fg(n, this.options.autofocus);
21244
- this.view = new KE(this.options.element, {
21244
+ this.view = new K5(this.options.element, {
21245
21245
  ...this.options.editorProps,
21246
21246
  attributes: {
21247
21247
  // add `role="textbox"` to the editor element
@@ -27121,7 +27121,7 @@ const x0 = /* @__PURE__ */ Ne(QD, [["render", rI]]), iI = { class: "flex gap-3"
27121
27121
  default: () => ({
27122
27122
  width: "w-96",
27123
27123
  mr: "mr-0",
27124
- zIndex: "z-15"
27124
+ zIndex: "z-20"
27125
27125
  })
27126
27126
  },
27127
27127
  expand: Boolean,