@samhammer/tiptob 2.3.38 → 2.3.40

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.
@@ -3328,7 +3328,7 @@ function wr(n, e, t) {
3328
3328
  function zl(n, e, t) {
3329
3329
  return (e == 0 || n.canReplace(e, n.childCount)) && (t == n.childCount || n.canReplace(0, t));
3330
3330
  }
3331
- function Nt(n) {
3331
+ function It(n) {
3332
3332
  let t = n.parent.content.cutByIndex(n.startIndex, n.endIndex);
3333
3333
  for (let r = n.depth, i = 0, o = 0; ; --r) {
3334
3334
  let s = n.$from.node(r), l = n.$from.index(r) + i, a = n.$to.indexAfter(r) - o;
@@ -3380,7 +3380,7 @@ function Pe(n, e, t = 1, r) {
3380
3380
  let l = i.indexAfter(o), a = r && r[0];
3381
3381
  return i.node(o).canReplaceWith(l, l, a ? a.type : i.node(o + 1).type);
3382
3382
  }
3383
- function ut(n, e) {
3383
+ function ft(n, e) {
3384
3384
  let t = n.resolve(e), r = t.index();
3385
3385
  return $o(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
3386
3386
  }
@@ -3791,11 +3791,11 @@ class D {
3791
3791
  found.
3792
3792
  */
3793
3793
  static findFrom(e, t, r = !1) {
3794
- let i = e.parent.inlineContent ? new A(e) : xt(e.node(0), e.parent, e.pos, e.index(), t, r);
3794
+ let i = e.parent.inlineContent ? new A(e) : wt(e.node(0), e.parent, e.pos, e.index(), t, r);
3795
3795
  if (i)
3796
3796
  return i;
3797
3797
  for (let o = e.depth - 1; o >= 0; o--) {
3798
- let s = t < 0 ? xt(e.node(0), e.node(o), e.before(o + 1), e.index(o), t, r) : xt(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, t, r);
3798
+ let s = t < 0 ? wt(e.node(0), e.node(o), e.before(o + 1), e.index(o), t, r) : wt(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, t, r);
3799
3799
  if (s)
3800
3800
  return s;
3801
3801
  }
@@ -3816,14 +3816,14 @@ class D {
3816
3816
  exists.
3817
3817
  */
3818
3818
  static atStart(e) {
3819
- return xt(e, e, 0, 0, 1) || new ae(e);
3819
+ return wt(e, e, 0, 0, 1) || new ae(e);
3820
3820
  }
3821
3821
  /**
3822
3822
  Find the cursor or leaf node selection closest to the end of the
3823
3823
  given document.
3824
3824
  */
3825
3825
  static atEnd(e) {
3826
- return xt(e, e, e.content.size, e.childCount, -1) || new ae(e);
3826
+ return wt(e, e, e.content.size, e.childCount, -1) || new ae(e);
3827
3827
  }
3828
3828
  /**
3829
3829
  Deserialize the JSON representation of a selection. Must be
@@ -4062,7 +4062,7 @@ const ql = {
4062
4062
  return new ae(n);
4063
4063
  }
4064
4064
  };
4065
- function xt(n, e, t, r, i, o = !1) {
4065
+ function wt(n, e, t, r, i, o = !1) {
4066
4066
  if (e.inlineContent)
4067
4067
  return A.create(n, t);
4068
4068
  for (let s = r - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
@@ -4071,7 +4071,7 @@ function xt(n, e, t, r, i, o = !1) {
4071
4071
  if (!o && C.isSelectable(l))
4072
4072
  return C.create(n, t - (i < 0 ? l.nodeSize : 0));
4073
4073
  } else {
4074
- let a = xt(n, l, t + i, i < 0 ? l.childCount : 0, i, o);
4074
+ let a = wt(n, l, t + i, i < 0 ? l.childCount : 0, i, o);
4075
4075
  if (a)
4076
4076
  return a;
4077
4077
  }
@@ -4174,7 +4174,7 @@ class ge {
4174
4174
  return e[this.key];
4175
4175
  }
4176
4176
  }
4177
- const ft = function(n) {
4177
+ const dt = function(n) {
4178
4178
  for (var e = 0; ; e++)
4179
4179
  if (n = n.previousSibling, !n)
4180
4180
  return e;
@@ -4189,7 +4189,7 @@ function Ai(n, e, t, r, i) {
4189
4189
  let s = n.parentNode;
4190
4190
  if (!s || s.nodeType != 1 || $r(n) || Kl.test(n.nodeName) || n.contentEditable == "false")
4191
4191
  return !1;
4192
- e = ft(n) + (i < 0 ? 0 : 1), n = s;
4192
+ e = dt(n) + (i < 0 ? 0 : 1), n = s;
4193
4193
  } else if (n.nodeType == 1) {
4194
4194
  let s = n.childNodes[e + (i < 0 ? -1 : 0)];
4195
4195
  if (s.nodeType == 1 && s.contentEditable == "false")
@@ -4210,7 +4210,7 @@ function Ul(n, e, t) {
4210
4210
  for (let r = e == 0, i = e == $n(n); r || i; ) {
4211
4211
  if (n == t)
4212
4212
  return !0;
4213
- let o = ft(n);
4213
+ let o = dt(n);
4214
4214
  if (n = n.parentNode, !n)
4215
4215
  return !1;
4216
4216
  r = r && o == 0, i = i && o == $n(n);
@@ -4231,7 +4231,7 @@ function qo(n, e) {
4231
4231
  }
4232
4232
  const Ee = typeof navigator < "u" ? navigator : null, Ni = typeof document < "u" ? document : null, He = Ee && Ee.userAgent || "", Sr = /Edge\/(\d+)/.exec(He), Ko = /MSIE \d/.exec(He), Cr = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(He), sn = !!(Ko || Cr || Sr), Uo = Ko ? document.documentMode : Cr ? +Cr[1] : Sr ? +Sr[1] : 0, Qn = !sn && /gecko\/(\d+)/i.test(He);
4233
4233
  Qn && +(/Firefox\/(\d+)/.exec(He) || [0, 0])[1];
4234
- const Or = !sn && /Chrome\/(\d+)/.exec(He), ze = !!Or, Go = Or ? +Or[1] : 0, dt = !sn && !!Ee && /Apple Computer/.test(Ee.vendor), Vr = dt && (/Mobile\/\w+/.test(He) || !!Ee && Ee.maxTouchPoints > 2), de = Vr || (Ee ? /Mac/.test(Ee.platform) : !1), Yo = Ee ? /Win/.test(Ee.platform) : !1, ln = /Android \d/.test(He), jr = !!Ni && "webkitFontSmoothing" in Ni.documentElement.style, Gl = jr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
4234
+ const Or = !sn && /Chrome\/(\d+)/.exec(He), ze = !!Or, Go = Or ? +Or[1] : 0, pt = !sn && !!Ee && /Apple Computer/.test(Ee.vendor), Vr = pt && (/Mobile\/\w+/.test(He) || !!Ee && Ee.maxTouchPoints > 2), de = Vr || (Ee ? /Mac/.test(Ee.platform) : !1), Yo = Ee ? /Win/.test(Ee.platform) : !1, ln = /Android \d/.test(He), jr = !!Ni && "webkitFontSmoothing" in Ni.documentElement.style, Gl = jr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
4235
4235
  function Yl(n, e = null) {
4236
4236
  let t = n.domSelectionRange(), r = n.state.doc;
4237
4237
  if (!t.focusNode)
@@ -4292,10 +4292,10 @@ function Hr(n, e = !1) {
4292
4292
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
4293
4293
  }
4294
4294
  }
4295
- const Ii = dt || ze && Go < 63;
4295
+ const Ii = pt || ze && Go < 63;
4296
4296
  function Di(n, e) {
4297
4297
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, o = r ? t.childNodes[r - 1] : null;
4298
- if (dt && i && i.contentEditable == "false")
4298
+ if (pt && i && i.contentEditable == "false")
4299
4299
  return ur(i);
4300
4300
  if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
4301
4301
  if (i)
@@ -4305,7 +4305,7 @@ function Di(n, e) {
4305
4305
  }
4306
4306
  }
4307
4307
  function ur(n) {
4308
- return n.contentEditable = "true", dt && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
4308
+ return n.contentEditable = "true", pt && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
4309
4309
  }
4310
4310
  function Ri(n) {
4311
4311
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
@@ -4325,7 +4325,7 @@ function Ql(n) {
4325
4325
  if (!e)
4326
4326
  return;
4327
4327
  let t = n.cursorWrapper.dom, r = t.nodeName == "IMG";
4328
- r ? e.collapse(t.parentNode, ft(t) + 1) : e.collapse(t, 0), !r && !n.state.selection.visible && sn && Uo <= 11 && (t.disabled = !0, t.disabled = !1);
4328
+ r ? e.collapse(t.parentNode, dt(t) + 1) : e.collapse(t, 0), !r && !n.state.selection.visible && sn && Uo <= 11 && (t.disabled = !0, t.disabled = !1);
4329
4329
  }
4330
4330
  function Zl(n, e) {
4331
4331
  if (e instanceof C) {
@@ -4394,7 +4394,7 @@ function Wt(n, e) {
4394
4394
  let t = n.pmViewDesc;
4395
4395
  return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
4396
4396
  }
4397
- function bt(n, e) {
4397
+ function xt(n, e) {
4398
4398
  return e < 0 ? ea(n) : ta(n);
4399
4399
  }
4400
4400
  function ea(n) {
@@ -4421,7 +4421,7 @@ function ea(n) {
4421
4421
  {
4422
4422
  let l = t.previousSibling;
4423
4423
  for (; l && Wt(l, -1); )
4424
- i = t.parentNode, o = ft(l), l = l.previousSibling;
4424
+ i = t.parentNode, o = dt(l), l = l.previousSibling;
4425
4425
  if (l)
4426
4426
  t = l, r = Vn(t);
4427
4427
  else {
@@ -4453,7 +4453,7 @@ function ta(n) {
4453
4453
  {
4454
4454
  let l = t.nextSibling;
4455
4455
  for (; l && Wt(l, 1); )
4456
- o = l.parentNode, s = ft(l) + 1, l = l.nextSibling;
4456
+ o = l.parentNode, s = dt(l) + 1, l = l.nextSibling;
4457
4457
  if (l)
4458
4458
  t = l, r = 0, i = Vn(t);
4459
4459
  else {
@@ -4471,7 +4471,7 @@ function Zo(n) {
4471
4471
  }
4472
4472
  function na(n, e) {
4473
4473
  for (; n && e == n.childNodes.length && !$r(n); )
4474
- e = ft(n) + 1, n = n.parentNode;
4474
+ e = dt(n) + 1, n = n.parentNode;
4475
4475
  for (; n && e < n.childNodes.length; ) {
4476
4476
  let t = n.childNodes[e];
4477
4477
  if (t.nodeType == 3)
@@ -4483,7 +4483,7 @@ function na(n, e) {
4483
4483
  }
4484
4484
  function ra(n, e) {
4485
4485
  for (; n && !e && !$r(n); )
4486
- e = ft(n), n = n.parentNode;
4486
+ e = dt(n), n = n.parentNode;
4487
4487
  for (; n && e; ) {
4488
4488
  let t = n.childNodes[e - 1];
4489
4489
  if (t.nodeType == 3)
@@ -4565,7 +4565,7 @@ function $i(n, e, t) {
4565
4565
  n.domObserver.stop(), e.contentEditable = t, n.domObserver.start();
4566
4566
  }
4567
4567
  function ia(n) {
4568
- if (!dt || n.state.selection.$head.parentOffset > 0)
4568
+ if (!pt || n.state.selection.$head.parentOffset > 0)
4569
4569
  return !1;
4570
4570
  let { focusNode: e, focusOffset: t } = n.domSelectionRange();
4571
4571
  if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
@@ -4581,22 +4581,22 @@ function oa(n) {
4581
4581
  function sa(n, e) {
4582
4582
  let t = e.keyCode, r = oa(e);
4583
4583
  if (t == 8 || de && t == 72 && r == "c")
4584
- return Fi(n, -1) || bt(n, -1);
4584
+ return Fi(n, -1) || xt(n, -1);
4585
4585
  if (t == 46 && !e.shiftKey || de && t == 68 && r == "c")
4586
- return Fi(n, 1) || bt(n, 1);
4586
+ return Fi(n, 1) || xt(n, 1);
4587
4587
  if (t == 13 || t == 27)
4588
4588
  return !0;
4589
4589
  if (t == 37 || de && t == 66 && r == "c") {
4590
4590
  let i = t == 37 ? zi(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
4591
- return Bi(n, i, r) || bt(n, i);
4591
+ return Bi(n, i, r) || xt(n, i);
4592
4592
  } else if (t == 39 || de && t == 70 && r == "c") {
4593
4593
  let i = t == 39 ? zi(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
4594
- return Bi(n, i, r) || bt(n, i);
4594
+ return Bi(n, i, r) || xt(n, i);
4595
4595
  } else {
4596
4596
  if (t == 38 || de && t == 80 && r == "c")
4597
- return Li(n, -1, r) || bt(n, -1);
4597
+ return Li(n, -1, r) || xt(n, -1);
4598
4598
  if (t == 40 || de && t == 78 && r == "c")
4599
- return ia(n) || Li(n, 1, r) || bt(n, 1);
4599
+ return ia(n) || Li(n, 1, r) || xt(n, 1);
4600
4600
  if (r == (de ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
4601
4601
  return !0;
4602
4602
  }
@@ -4839,7 +4839,7 @@ function Wr(n, e, t, r, i) {
4839
4839
  return !0;
4840
4840
  return !1;
4841
4841
  }
4842
- function St(n, e, t) {
4842
+ function Ot(n, e, t) {
4843
4843
  if (n.focused || n.focus(), n.state.selection.eq(e))
4844
4844
  return;
4845
4845
  let r = n.state.tr.setSelection(e);
@@ -4849,7 +4849,7 @@ function ha(n, e) {
4849
4849
  if (e == -1)
4850
4850
  return !1;
4851
4851
  let t = n.state.doc.resolve(e), r = t.nodeAfter;
4852
- return r && r.isAtom && C.isSelectable(r) ? (St(n, new C(t)), !0) : !1;
4852
+ return r && r.isAtom && C.isSelectable(r) ? (Ot(n, new C(t)), !0) : !1;
4853
4853
  }
4854
4854
  function ma(n, e) {
4855
4855
  if (e == -1)
@@ -4864,7 +4864,7 @@ function ma(n, e) {
4864
4864
  break;
4865
4865
  }
4866
4866
  }
4867
- return i != null ? (St(n, C.create(n.state.doc, i)), !0) : !1;
4867
+ return i != null ? (Ot(n, C.create(n.state.doc, i)), !0) : !1;
4868
4868
  }
4869
4869
  function ga(n, e, t, r, i) {
4870
4870
  return Wr(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (o) => o(n, e, r)) || (i ? ma(n, t) : ha(n, t));
@@ -4880,14 +4880,14 @@ function va(n, e, t) {
4880
4880
  return !1;
4881
4881
  let r = n.state.doc;
4882
4882
  if (e == -1)
4883
- return r.inlineContent ? (St(n, A.create(r, 0, r.content.size)), !0) : !1;
4883
+ return r.inlineContent ? (Ot(n, A.create(r, 0, r.content.size)), !0) : !1;
4884
4884
  let i = r.resolve(e);
4885
4885
  for (let o = i.depth + 1; o > 0; o--) {
4886
4886
  let s = o > i.depth ? i.nodeAfter : i.node(o), l = i.before(o);
4887
4887
  if (s.inlineContent)
4888
- St(n, A.create(r, l + 1, l + 1 + s.content.size));
4888
+ Ot(n, A.create(r, l + 1, l + 1 + s.content.size));
4889
4889
  else if (C.isSelectable(s))
4890
- St(n, C.create(r, l));
4890
+ Ot(n, C.create(r, l));
4891
4891
  else
4892
4892
  continue;
4893
4893
  return !0;
@@ -4935,14 +4935,14 @@ class xa {
4935
4935
  return;
4936
4936
  let t = this.pos;
4937
4937
  this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Zn(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Ve(this.view, "pointer") : ga(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
4938
- dt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
4938
+ pt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
4939
4939
  // cursor, but still report that the node is selected
4940
4940
  // when asked through getSelection. You'll then get a
4941
4941
  // situation where clicking at the point where that
4942
4942
  // (hidden) cursor is doesn't change the selection, and
4943
4943
  // thus doesn't get a reaction from ProseMirror. This
4944
4944
  // works around that.
4945
- ze && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (St(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Ve(this.view, "pointer");
4945
+ ze && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Ot(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Ve(this.view, "pointer");
4946
4946
  }
4947
4947
  move(e) {
4948
4948
  this.updateAllowDefault(e), Ve(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -4959,7 +4959,7 @@ xe.touchmove = (n) => {
4959
4959
  };
4960
4960
  xe.contextmenu = (n) => Jr(n);
4961
4961
  function as(n, e) {
4962
- return n.composing ? !0 : dt && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
4962
+ return n.composing ? !0 : pt && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
4963
4963
  }
4964
4964
  const ka = ln ? 5e3 : -1;
4965
4965
  ce.compositionstart = ce.compositionupdate = (n) => {
@@ -5313,13 +5313,13 @@ class be {
5313
5313
  return this.type instanceof Hn;
5314
5314
  }
5315
5315
  }
5316
- const kt = [], ot = {};
5316
+ const St = [], ot = {};
5317
5317
  class V {
5318
5318
  /**
5319
5319
  @internal
5320
5320
  */
5321
5321
  constructor(e, t) {
5322
- this.local = e.length ? e : kt, this.children = t.length ? t : kt;
5322
+ this.local = e.length ? e : St, this.children = t.length ? t : St;
5323
5323
  }
5324
5324
  /**
5325
5325
  Create a set of decorations, using the structure of the given
@@ -5368,7 +5368,7 @@ class V {
5368
5368
  let a = this.local[l].map(e, r, i);
5369
5369
  a && a.type.valid(t, a) ? (s || (s = [])).push(a) : o.onRemove && o.onRemove(this.local[l].spec);
5370
5370
  }
5371
- return this.children.length ? Ia(this.children, s || [], e, t, r, i, o) : s ? new V(s.sort(st), kt) : Z;
5371
+ return this.children.length ? Ia(this.children, s || [], e, t, r, i, o) : s ? new V(s.sort(st), St) : Z;
5372
5372
  }
5373
5373
  /**
5374
5374
  Add the given array of decorations to the ones in the set,
@@ -5441,7 +5441,7 @@ class V {
5441
5441
  }
5442
5442
  }
5443
5443
  if (i) {
5444
- let l = new V(i.sort(st), kt);
5444
+ let l = new V(i.sort(st), St);
5445
5445
  return r ? new Xe([l, r]) : l;
5446
5446
  }
5447
5447
  return r || Z;
@@ -5473,7 +5473,7 @@ class V {
5473
5473
  */
5474
5474
  localsInner(e) {
5475
5475
  if (this == Z)
5476
- return kt;
5476
+ return St;
5477
5477
  if (e.inlineContent || !this.local.some(je.is))
5478
5478
  return this.local;
5479
5479
  let t = [];
@@ -5527,7 +5527,7 @@ class Xe {
5527
5527
  t.push(o[s]);
5528
5528
  }
5529
5529
  }
5530
- return t ? Kr(r ? t : t.sort(st)) : kt;
5530
+ return t ? Kr(r ? t : t.sort(st)) : St;
5531
5531
  }
5532
5532
  // Create a group for the given array of decoration sets, or return
5533
5533
  // a single set when possible.
@@ -5684,19 +5684,19 @@ const gs = (n, e, t) => {
5684
5684
  return !1;
5685
5685
  let i = Gr(r);
5686
5686
  if (!i) {
5687
- let s = r.blockRange(), l = s && Nt(s);
5687
+ let s = r.blockRange(), l = s && It(s);
5688
5688
  return l == null ? !1 : (e && e(n.tr.lift(s, l).scrollIntoView()), !0);
5689
5689
  }
5690
5690
  let o = i.nodeBefore;
5691
5691
  if (Os(n, i, e, -1))
5692
5692
  return !0;
5693
- if (r.parent.content.size == 0 && (Ct(o, "end") || C.isSelectable(o)))
5693
+ if (r.parent.content.size == 0 && (Et(o, "end") || C.isSelectable(o)))
5694
5694
  for (let s = r.depth; ; s--) {
5695
5695
  let l = Lr(n.doc, r.before(s), r.after(s), S.empty);
5696
5696
  if (l && l.slice.size < l.to - l.from) {
5697
5697
  if (e) {
5698
5698
  let a = n.tr.step(l);
5699
- a.setSelection(Ct(o, "end") ? D.findFrom(a.doc.resolve(a.mapping.map(i.pos, -1)), -1) : C.create(a.doc, i.pos - o.nodeSize)), e(a.scrollIntoView());
5699
+ a.setSelection(Et(o, "end") ? D.findFrom(a.doc.resolve(a.mapping.map(i.pos, -1)), -1) : C.create(a.doc, i.pos - o.nodeSize)), e(a.scrollIntoView());
5700
5700
  }
5701
5701
  return !0;
5702
5702
  }
@@ -5745,7 +5745,7 @@ function ys(n, e, t) {
5745
5745
  }
5746
5746
  return !0;
5747
5747
  }
5748
- function Ct(n, e, t = !1) {
5748
+ function Et(n, e, t = !1) {
5749
5749
  for (let r = n; r; r = e == "start" ? r.firstChild : r.lastChild) {
5750
5750
  if (r.isTextblock)
5751
5751
  return !0;
@@ -5790,12 +5790,12 @@ const xs = (n, e, t) => {
5790
5790
  let o = i.nodeAfter;
5791
5791
  if (Os(n, i, e, 1))
5792
5792
  return !0;
5793
- if (r.parent.content.size == 0 && (Ct(o, "start") || C.isSelectable(o))) {
5793
+ if (r.parent.content.size == 0 && (Et(o, "start") || C.isSelectable(o))) {
5794
5794
  let s = Lr(n.doc, r.before(), r.after(), S.empty);
5795
5795
  if (s && s.slice.size < s.to - s.from) {
5796
5796
  if (e) {
5797
5797
  let l = n.tr.step(s);
5798
- l.setSelection(Ct(o, "start") ? D.findFrom(l.doc.resolve(l.mapping.map(i.pos)), 1) : C.create(l.doc, l.mapping.map(i.pos))), e(l.scrollIntoView());
5798
+ l.setSelection(Et(o, "start") ? D.findFrom(l.doc.resolve(l.mapping.map(i.pos)), 1) : C.create(l.doc, l.mapping.map(i.pos))), e(l.scrollIntoView());
5799
5799
  }
5800
5800
  return !0;
5801
5801
  }
@@ -5827,7 +5827,7 @@ function Yr(n) {
5827
5827
  const Ba = (n, e) => {
5828
5828
  let t = n.selection, r = t instanceof C, i;
5829
5829
  if (r) {
5830
- if (t.node.isTextblock || !ut(n.doc, t.from))
5830
+ if (t.node.isTextblock || !ft(n.doc, t.from))
5831
5831
  return !1;
5832
5832
  i = t.from;
5833
5833
  } else if (i = Yn(n.doc, t.from, -1), i == null)
@@ -5840,14 +5840,14 @@ const Ba = (n, e) => {
5840
5840
  }, za = (n, e) => {
5841
5841
  let t = n.selection, r;
5842
5842
  if (t instanceof C) {
5843
- if (t.node.isTextblock || !ut(n.doc, t.to))
5843
+ if (t.node.isTextblock || !ft(n.doc, t.to))
5844
5844
  return !1;
5845
5845
  r = t.to;
5846
5846
  } else if (r = Yn(n.doc, t.to, 1), r == null)
5847
5847
  return !1;
5848
5848
  return e && e(n.tr.join(r).scrollIntoView()), !0;
5849
5849
  }, La = (n, e) => {
5850
- let { $from: t, $to: r } = n.selection, i = t.blockRange(r), o = i && Nt(i);
5850
+ let { $from: t, $to: r } = n.selection, i = t.blockRange(r), o = i && It(i);
5851
5851
  return o == null ? !1 : (e && e(n.tr.lift(i, o).scrollIntoView()), !0);
5852
5852
  }, ws = (n, e) => {
5853
5853
  let { $head: t, $anchor: r } = n.selection;
@@ -5895,7 +5895,7 @@ const Fa = (n, e) => {
5895
5895
  if (Pe(n.doc, o))
5896
5896
  return e && e(n.tr.split(o).scrollIntoView()), !0;
5897
5897
  }
5898
- let r = t.blockRange(), i = r && Nt(r);
5898
+ let r = t.blockRange(), i = r && It(r);
5899
5899
  return i == null ? !1 : (e && e(n.tr.lift(r, i).scrollIntoView()), !0);
5900
5900
  };
5901
5901
  function $a(n) {
@@ -5933,7 +5933,7 @@ const Va = $a(), ja = (n, e) => {
5933
5933
  };
5934
5934
  function Ha(n, e, t) {
5935
5935
  let r = e.nodeBefore, i = e.nodeAfter, o = e.index();
5936
- return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || ut(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
5936
+ return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || ft(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
5937
5937
  }
5938
5938
  function Os(n, e, t, r) {
5939
5939
  let i = e.nodeBefore, o = e.nodeAfter, s, l, a = i.type.spec.isolating || o.type.spec.isolating;
@@ -5947,14 +5947,14 @@ function Os(n, e, t, r) {
5947
5947
  g = k.from(s[v].create(null, g));
5948
5948
  g = k.from(i.copy(g));
5949
5949
  let m = n.tr.step(new te(e.pos - 1, d, e.pos, d, new S(g, 1, 0), s.length, !0)), y = m.doc.resolve(d + 2 * s.length);
5950
- y.nodeAfter && y.nodeAfter.type == i.type && ut(m.doc, y.pos) && m.join(y.pos), t(m.scrollIntoView());
5950
+ y.nodeAfter && y.nodeAfter.type == i.type && ft(m.doc, y.pos) && m.join(y.pos), t(m.scrollIntoView());
5951
5951
  }
5952
5952
  return !0;
5953
5953
  }
5954
- let u = o.type.spec.isolating || r > 0 && a ? null : D.findFrom(e, 1), f = u && u.$from.blockRange(u.$to), p = f && Nt(f);
5954
+ let u = o.type.spec.isolating || r > 0 && a ? null : D.findFrom(e, 1), f = u && u.$from.blockRange(u.$to), p = f && It(f);
5955
5955
  if (p != null && p >= e.depth)
5956
5956
  return t && t(n.tr.lift(f, p).scrollIntoView()), !0;
5957
- if (c && Ct(o, "start", !0) && Ct(i, "end")) {
5957
+ if (c && Et(o, "start", !0) && Et(i, "end")) {
5958
5958
  let d = i, g = [];
5959
5959
  for (; g.push(d), !d.isTextblock; )
5960
5960
  d = d.lastChild;
@@ -6076,12 +6076,12 @@ function Ya(n) {
6076
6076
  function Xa(n, e, t, r) {
6077
6077
  let i = n.tr, o = r.end, s = r.$to.end(r.depth);
6078
6078
  o < s && (i.step(new te(o - 1, s, o, s, new S(k.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new zn(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
6079
- const l = Nt(r);
6079
+ const l = It(r);
6080
6080
  if (l == null)
6081
6081
  return !1;
6082
6082
  i.lift(r, l);
6083
6083
  let a = i.doc.resolve(i.mapping.map(o, -1) - 1);
6084
- return ut(i.doc, a.pos) && a.nodeBefore.type == a.nodeAfter.type && i.join(a.pos), e(i.scrollIntoView()), !0;
6084
+ return ft(i.doc, a.pos) && a.nodeBefore.type == a.nodeAfter.type && i.join(a.pos), e(i.scrollIntoView()), !0;
6085
6085
  }
6086
6086
  function Qa(n, e, t) {
6087
6087
  let r = n.tr, i = t.parent;
@@ -6221,7 +6221,7 @@ function G(n, e) {
6221
6221
  }
6222
6222
  return n;
6223
6223
  }
6224
- function It(...n) {
6224
+ function ht(...n) {
6225
6225
  return n.filter((e) => !!e).reduce((e, t) => {
6226
6226
  const r = { ...e };
6227
6227
  return Object.entries(t).forEach(([i, o]) => {
@@ -6272,7 +6272,7 @@ function _n(n, e) {
6272
6272
  On(e[r]) && On(n[r]) ? t[r] = _n(n[r], e[r]) : t[r] = e[r];
6273
6273
  }), t;
6274
6274
  }
6275
- class Ot {
6275
+ class ct {
6276
6276
  constructor(e = {}) {
6277
6277
  this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
6278
6278
  name: this.name,
@@ -6288,7 +6288,7 @@ class Ot {
6288
6288
  })) || {};
6289
6289
  }
6290
6290
  static create(e = {}) {
6291
- return new Ot(e);
6291
+ return new ct(e);
6292
6292
  }
6293
6293
  configure(e = {}) {
6294
6294
  const t = this.extend({
@@ -6298,7 +6298,7 @@ class Ot {
6298
6298
  return t.name = this.name, t.parent = this.parent, t;
6299
6299
  }
6300
6300
  extend(e = {}) {
6301
- const t = new Ot(e);
6301
+ const t = new ct(e);
6302
6302
  return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = U(ee(t, "addOptions", {
6303
6303
  name: t.name
6304
6304
  })), t.storage = U(ee(t, "addStorage", {
@@ -6417,7 +6417,7 @@ const lc = () => ({ editor: n, view: e }) => (requestAnimationFrame(() => {
6417
6417
  const { doc: c, mapping: u } = e, f = c.resolve(u.map(a)), p = c.resolve(u.map(a + l.nodeSize)), d = f.blockRange(p);
6418
6418
  if (!d)
6419
6419
  return;
6420
- const g = Nt(d);
6420
+ const g = It(d);
6421
6421
  if (l.type.isTextblock) {
6422
6422
  const { defaultType: m } = f.parent.contentMatchAt(f.index());
6423
6423
  e.setNodeMarkup(d.start, m);
@@ -7114,7 +7114,7 @@ const fu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7114
7114
  if (r === void 0)
7115
7115
  return !0;
7116
7116
  const i = n.doc.nodeAt(r);
7117
- return t.node.type === i?.type && ut(n.doc, t.pos) && n.join(t.pos), !0;
7117
+ return t.node.type === i?.type && ft(n.doc, t.pos) && n.join(t.pos), !0;
7118
7118
  }, pr = (n, e) => {
7119
7119
  const t = ti((s) => s.type === e)(n.selection);
7120
7120
  if (!t)
@@ -7123,7 +7123,7 @@ const fu = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
7123
7123
  if (r === void 0)
7124
7124
  return !0;
7125
7125
  const i = n.doc.nodeAt(r);
7126
- return t.node.type === i?.type && ut(n.doc, r) && n.join(r), !0;
7126
+ return t.node.type === i?.type && ft(n.doc, r) && n.join(r), !0;
7127
7127
  }, pu = (n, e, t, r = {}) => ({ editor: i, tr: o, state: s, dispatch: l, chain: a, commands: c, can: u }) => {
7128
7128
  const { extensions: f, splittableMarks: p } = i.extensionManager, d = G(n, s.schema), g = G(e, s.schema), { selection: m, storedMarks: y } = s, { $from: v, $to: O } = m, T = v.blockRange(O), h = y || m.$to.parentOffset && m.$from.marks();
7129
7129
  if (!T)
@@ -7721,7 +7721,7 @@ const Mu = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Au = en.c
7721
7721
  ];
7722
7722
  },
7723
7723
  renderHTML({ HTMLAttributes: n }) {
7724
- return ["img", It(this.options.HTMLAttributes, n)];
7724
+ return ["img", ht(this.options.HTMLAttributes, n)];
7725
7725
  },
7726
7726
  addCommands() {
7727
7727
  return {
@@ -7795,7 +7795,43 @@ function bd(n) {
7795
7795
  });
7796
7796
  }
7797
7797
  function vd() {
7798
- return Ot.create({
7798
+ return ct.create({
7799
+ name: "internalLink",
7800
+ inclusive: !0,
7801
+ keepOnSplit: !1,
7802
+ exitable: !0,
7803
+ addAttributes() {
7804
+ return {
7805
+ internalLinkId: {
7806
+ default: null,
7807
+ parseHTML: (n) => n.getAttribute("internallinkid"),
7808
+ renderHTML: (n) => n.internalLinkId ? { internallinkid: n.internalLinkId } : {}
7809
+ }
7810
+ };
7811
+ },
7812
+ parseHTML() {
7813
+ return [{ tag: "internallink[internallinkid]" }];
7814
+ },
7815
+ renderHTML({ HTMLAttributes: n }) {
7816
+ return ["internallink", ht(n), 0];
7817
+ },
7818
+ addCommands() {
7819
+ return {
7820
+ setInternalLink: (n, e) => ({ chain: t, state: r, editor: i }) => {
7821
+ const { selection: o } = r, { from: s, empty: l } = o;
7822
+ return i.isActive(this.name) ? t().focus().extendMarkRange(this.name).updateAttributes(this.name, { internalLinkId: n }).run() : l ? e ? t().focus().insertContentAt(s, {
7823
+ type: "text",
7824
+ text: e,
7825
+ marks: [{ type: this.name, attrs: { internalLinkId: n } }]
7826
+ }).run() : !1 : t().focus().setMark(this.name, { internalLinkId: n }).run();
7827
+ },
7828
+ unsetInternalLink: () => ({ chain: n }) => n().focus().extendMarkRange(this.name).unsetMark(this.name).run()
7829
+ };
7830
+ }
7831
+ });
7832
+ }
7833
+ function xd() {
7834
+ return ct.create({
7799
7835
  name: "knowledgeMark",
7800
7836
  parseHTML() {
7801
7837
  return [
@@ -7806,7 +7842,7 @@ function vd() {
7806
7842
  ];
7807
7843
  },
7808
7844
  renderHTML({ HTMLAttributes: n }) {
7809
- return ["span", It(n, { translate: "no" }), 0];
7845
+ return ["span", ht(n, { translate: "no" }), 0];
7810
7846
  },
7811
7847
  addCommands() {
7812
7848
  return {
@@ -7817,10 +7853,10 @@ function vd() {
7817
7853
  }
7818
7854
  });
7819
7855
  }
7820
- var ne = "top", he = "bottom", me = "right", re = "left", ni = "auto", an = [ne, he, me, re], Et = "start", tn = "end", Nu = "clippingParents", zs = "viewport", Lt = "popper", Iu = "reference", Yi = /* @__PURE__ */ an.reduce(function(n, e) {
7821
- return n.concat([e + "-" + Et, e + "-" + tn]);
7856
+ var ne = "top", he = "bottom", me = "right", re = "left", ni = "auto", an = [ne, he, me, re], Tt = "start", tn = "end", Nu = "clippingParents", zs = "viewport", Lt = "popper", Iu = "reference", Yi = /* @__PURE__ */ an.reduce(function(n, e) {
7857
+ return n.concat([e + "-" + Tt, e + "-" + tn]);
7822
7858
  }, []), Ls = /* @__PURE__ */ [].concat(an, [ni]).reduce(function(n, e) {
7823
- return n.concat([e, e + "-" + Et, e + "-" + tn]);
7859
+ return n.concat([e, e + "-" + Tt, e + "-" + tn]);
7824
7860
  }, []), Du = "beforeRead", Ru = "read", Pu = "afterRead", Bu = "beforeMain", zu = "main", Lu = "afterMain", Fu = "beforeWrite", $u = "write", Vu = "afterWrite", ju = [Du, Ru, Pu, Bu, zu, Lu, Fu, $u, Vu];
7825
7861
  function Te(n) {
7826
7862
  return n ? (n.nodeName || "").toLowerCase() : null;
@@ -7834,7 +7870,7 @@ function ue(n) {
7834
7870
  }
7835
7871
  return n;
7836
7872
  }
7837
- function ct(n) {
7873
+ function ut(n) {
7838
7874
  var e = ue(n).Element;
7839
7875
  return n instanceof e || n instanceof Element;
7840
7876
  }
@@ -7893,7 +7929,7 @@ const Fs = {
7893
7929
  function Oe(n) {
7894
7930
  return n.split("-")[0];
7895
7931
  }
7896
- var lt = Math.max, Kn = Math.min, Tt = Math.round;
7932
+ var lt = Math.max, Kn = Math.min, Mt = Math.round;
7897
7933
  function Nr() {
7898
7934
  var n = navigator.userAgentData;
7899
7935
  return n != null && n.brands && Array.isArray(n.brands) ? n.brands.map(function(e) {
@@ -7903,11 +7939,11 @@ function Nr() {
7903
7939
  function $s() {
7904
7940
  return !/^((?!chrome|android).)*safari/i.test(Nr());
7905
7941
  }
7906
- function Mt(n, e, t) {
7942
+ function At(n, e, t) {
7907
7943
  e === void 0 && (e = !1), t === void 0 && (t = !1);
7908
7944
  var r = n.getBoundingClientRect(), i = 1, o = 1;
7909
- e && pe(n) && (i = n.offsetWidth > 0 && Tt(r.width) / n.offsetWidth || 1, o = n.offsetHeight > 0 && Tt(r.height) / n.offsetHeight || 1);
7910
- var s = ct(n) ? ue(n) : window, l = s.visualViewport, a = !$s() && t, c = (r.left + (a && l ? l.offsetLeft : 0)) / i, u = (r.top + (a && l ? l.offsetTop : 0)) / o, f = r.width / i, p = r.height / o;
7945
+ e && pe(n) && (i = n.offsetWidth > 0 && Mt(r.width) / n.offsetWidth || 1, o = n.offsetHeight > 0 && Mt(r.height) / n.offsetHeight || 1);
7946
+ var s = ut(n) ? ue(n) : window, l = s.visualViewport, a = !$s() && t, c = (r.left + (a && l ? l.offsetLeft : 0)) / i, u = (r.top + (a && l ? l.offsetTop : 0)) / o, f = r.width / i, p = r.height / o;
7911
7947
  return {
7912
7948
  width: f,
7913
7949
  height: p,
@@ -7920,7 +7956,7 @@ function Mt(n, e, t) {
7920
7956
  };
7921
7957
  }
7922
7958
  function ii(n) {
7923
- var e = Mt(n), t = n.offsetWidth, r = n.offsetHeight;
7959
+ var e = At(n), t = n.offsetWidth, r = n.offsetHeight;
7924
7960
  return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
7925
7961
  x: n.offsetLeft,
7926
7962
  y: n.offsetTop,
@@ -7949,7 +7985,7 @@ function Ju(n) {
7949
7985
  return ["table", "td", "th"].indexOf(Te(n)) >= 0;
7950
7986
  }
7951
7987
  function Je(n) {
7952
- return ((ct(n) ? n.ownerDocument : (
7988
+ return ((ut(n) ? n.ownerDocument : (
7953
7989
  // $FlowFixMe[prop-missing]
7954
7990
  n.document
7955
7991
  )) || window.document).documentElement;
@@ -8042,7 +8078,7 @@ const Xu = {
8042
8078
  requires: ["popperOffsets"],
8043
8079
  requiresIfExists: ["preventOverflow"]
8044
8080
  };
8045
- function At(n) {
8081
+ function Nt(n) {
8046
8082
  return n.split("-")[1];
8047
8083
  }
8048
8084
  var Qu = {
@@ -8054,8 +8090,8 @@ var Qu = {
8054
8090
  function Zu(n, e) {
8055
8091
  var t = n.x, r = n.y, i = e.devicePixelRatio || 1;
8056
8092
  return {
8057
- x: Tt(t * i) / i || 0,
8058
- y: Tt(r * i) / i || 0
8093
+ x: Mt(t * i) / i || 0,
8094
+ y: Mt(r * i) / i || 0
8059
8095
  };
8060
8096
  }
8061
8097
  function Qi(n) {
@@ -8105,7 +8141,7 @@ function Qi(n) {
8105
8141
  function _u(n) {
8106
8142
  var e = n.state, t = n.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, o = t.adaptive, s = o === void 0 ? !0 : o, l = t.roundOffsets, a = l === void 0 ? !0 : l, c = {
8107
8143
  placement: Oe(e.placement),
8108
- variation: At(e.placement),
8144
+ variation: Nt(e.placement),
8109
8145
  popper: e.elements.popper,
8110
8146
  popperRect: e.rects.popper,
8111
8147
  gpuAcceleration: i,
@@ -8182,7 +8218,7 @@ function si(n) {
8182
8218
  };
8183
8219
  }
8184
8220
  function li(n) {
8185
- return Mt(Je(n)).left + si(n).scrollLeft;
8221
+ return At(Je(n)).left + si(n).scrollLeft;
8186
8222
  }
8187
8223
  function sf(n, e) {
8188
8224
  var t = ue(n), r = Je(n), i = t.visualViewport, o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
@@ -8232,16 +8268,16 @@ function Ir(n) {
8232
8268
  });
8233
8269
  }
8234
8270
  function af(n, e) {
8235
- var t = Mt(n, !1, e === "fixed");
8271
+ var t = At(n, !1, e === "fixed");
8236
8272
  return t.top = t.top + n.clientTop, t.left = t.left + n.clientLeft, t.bottom = t.top + n.clientHeight, t.right = t.left + n.clientWidth, t.width = n.clientWidth, t.height = n.clientHeight, t.x = t.left, t.y = t.top, t;
8237
8273
  }
8238
8274
  function _i(n, e, t) {
8239
- return e === zs ? Ir(sf(n, t)) : ct(e) ? af(e, t) : Ir(lf(Je(n)));
8275
+ return e === zs ? Ir(sf(n, t)) : ut(e) ? af(e, t) : Ir(lf(Je(n)));
8240
8276
  }
8241
8277
  function cf(n) {
8242
8278
  var e = qt(er(n)), t = ["absolute", "fixed"].indexOf(Be(n).position) >= 0, r = t && pe(n) ? cn(n) : n;
8243
- return ct(r) ? e.filter(function(i) {
8244
- return ct(i) && Vs(i, r) && Te(i) !== "body";
8279
+ return ut(r) ? e.filter(function(i) {
8280
+ return ut(i) && Vs(i, r) && Te(i) !== "body";
8245
8281
  }) : [];
8246
8282
  }
8247
8283
  function uf(n, e, t, r) {
@@ -8252,7 +8288,7 @@ function uf(n, e, t, r) {
8252
8288
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
8253
8289
  }
8254
8290
  function qs(n) {
8255
- var e = n.reference, t = n.element, r = n.placement, i = r ? Oe(r) : null, o = r ? At(r) : null, s = e.x + e.width / 2 - t.width / 2, l = e.y + e.height / 2 - t.height / 2, a;
8291
+ var e = n.reference, t = n.element, r = n.placement, i = r ? Oe(r) : null, o = r ? Nt(r) : null, s = e.x + e.width / 2 - t.width / 2, l = e.y + e.height / 2 - t.height / 2, a;
8256
8292
  switch (i) {
8257
8293
  case ne:
8258
8294
  a = {
@@ -8288,7 +8324,7 @@ function qs(n) {
8288
8324
  if (c != null) {
8289
8325
  var u = c === "y" ? "height" : "width";
8290
8326
  switch (o) {
8291
- case Et:
8327
+ case Tt:
8292
8328
  a[c] = a[c] - (e[u] / 2 - t[u] / 2);
8293
8329
  break;
8294
8330
  case tn:
@@ -8300,7 +8336,7 @@ function qs(n) {
8300
8336
  }
8301
8337
  function nn(n, e) {
8302
8338
  e === void 0 && (e = {});
8303
- var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? Nu : l, c = t.rootBoundary, u = c === void 0 ? zs : c, f = t.elementContext, p = f === void 0 ? Lt : f, d = t.altBoundary, g = d === void 0 ? !1 : d, m = t.padding, y = m === void 0 ? 0 : m, v = Hs(typeof y != "number" ? y : Ws(y, an)), O = p === Lt ? Iu : Lt, T = n.rects.popper, h = n.elements[g ? O : p], M = uf(ct(h) ? h : h.contextElement || Je(n.elements.popper), a, u, s), x = Mt(n.elements.reference), N = qs({
8339
+ var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? Nu : l, c = t.rootBoundary, u = c === void 0 ? zs : c, f = t.elementContext, p = f === void 0 ? Lt : f, d = t.altBoundary, g = d === void 0 ? !1 : d, m = t.padding, y = m === void 0 ? 0 : m, v = Hs(typeof y != "number" ? y : Ws(y, an)), O = p === Lt ? Iu : Lt, T = n.rects.popper, h = n.elements[g ? O : p], M = uf(ut(h) ? h : h.contextElement || Je(n.elements.popper), a, u, s), x = At(n.elements.reference), N = qs({
8304
8340
  reference: x,
8305
8341
  element: T,
8306
8342
  placement: i
@@ -8321,8 +8357,8 @@ function nn(n, e) {
8321
8357
  }
8322
8358
  function ff(n, e) {
8323
8359
  e === void 0 && (e = {});
8324
- var t = e, r = t.placement, i = t.boundary, o = t.rootBoundary, s = t.padding, l = t.flipVariations, a = t.allowedAutoPlacements, c = a === void 0 ? Ls : a, u = At(r), f = u ? l ? Yi : Yi.filter(function(g) {
8325
- return At(g) === u;
8360
+ var t = e, r = t.placement, i = t.boundary, o = t.rootBoundary, s = t.padding, l = t.flipVariations, a = t.allowedAutoPlacements, c = a === void 0 ? Ls : a, u = Nt(r), f = u ? l ? Yi : Yi.filter(function(g) {
8361
+ return Nt(g) === u;
8326
8362
  }) : an, p = f.filter(function(g) {
8327
8363
  return c.indexOf(g) >= 0;
8328
8364
  });
@@ -8358,7 +8394,7 @@ function pf(n) {
8358
8394
  allowedAutoPlacements: m
8359
8395
  }) : ye);
8360
8396
  }, []), M = e.rects.reference, x = e.rects.popper, N = /* @__PURE__ */ new Map(), P = !0, L = h[0], F = 0; F < h.length; F++) {
8361
- var H = h[F], $ = Oe(H), B = At(H) === Et, ie = [ne, he].indexOf($) >= 0, oe = ie ? "width" : "height", q = nn(e, {
8397
+ var H = h[F], $ = Oe(H), B = Nt(H) === Tt, ie = [ne, he].indexOf($) >= 0, oe = ie ? "width" : "height", q = nn(e, {
8362
8398
  placement: H,
8363
8399
  boundary: u,
8364
8400
  rootBoundary: f,
@@ -8377,11 +8413,11 @@ function pf(n) {
8377
8413
  }
8378
8414
  if (P)
8379
8415
  for (var we = g ? 3 : 1, qe = function(ye) {
8380
- var Ae = h.find(function(pt) {
8381
- var Ne = N.get(pt);
8416
+ var Ae = h.find(function(mt) {
8417
+ var Ne = N.get(mt);
8382
8418
  if (Ne)
8383
- return Ne.slice(0, ye).every(function(ht) {
8384
- return ht;
8419
+ return Ne.slice(0, ye).every(function(gt) {
8420
+ return gt;
8385
8421
  });
8386
8422
  });
8387
8423
  if (Ae)
@@ -8491,7 +8527,7 @@ function Sf(n) {
8491
8527
  rootBoundary: c,
8492
8528
  padding: f,
8493
8529
  altBoundary: u
8494
- }), v = Oe(e.placement), O = At(e.placement), T = !O, h = oi(v), M = wf(h), x = e.modifiersData.popperOffsets, N = e.rects.reference, P = e.rects.popper, L = typeof m == "function" ? m(Object.assign({}, e.rects, {
8530
+ }), v = Oe(e.placement), O = Nt(e.placement), T = !O, h = oi(v), M = wf(h), x = e.modifiersData.popperOffsets, N = e.rects.reference, P = e.rects.popper, L = typeof m == "function" ? m(Object.assign({}, e.rects, {
8495
8531
  placement: e.placement
8496
8532
  })) : m, F = typeof L == "number" ? {
8497
8533
  mainAxis: L,
@@ -8505,10 +8541,10 @@ function Sf(n) {
8505
8541
  };
8506
8542
  if (x) {
8507
8543
  if (o) {
8508
- var B, ie = h === "y" ? ne : re, oe = h === "y" ? he : me, q = h === "y" ? "height" : "width", K = x[h], W = K + y[ie], ke = K - y[oe], we = d ? -P[q] / 2 : 0, qe = O === Et ? N[q] : P[q], Se = O === Et ? -P[q] : -N[q], Ke = e.elements.arrow, Me = d && Ke ? ii(Ke) : {
8544
+ var B, ie = h === "y" ? ne : re, oe = h === "y" ? he : me, q = h === "y" ? "height" : "width", K = x[h], W = K + y[ie], ke = K - y[oe], we = d ? -P[q] / 2 : 0, qe = O === Tt ? N[q] : P[q], Se = O === Tt ? -P[q] : -N[q], Ke = e.elements.arrow, Me = d && Ke ? ii(Ke) : {
8509
8545
  width: 0,
8510
8546
  height: 0
8511
- }, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : js(), Ae = ye[ie], pt = ye[oe], Ne = Jt(0, N[q], Me[q]), ht = T ? N[q] / 2 - we - Ne - Ae - F.mainAxis : qe - Ne - Ae - F.mainAxis, Le = T ? -N[q] / 2 + we + Ne + pt + F.mainAxis : Se + Ne + pt + F.mainAxis, mt = e.elements.arrow && cn(e.elements.arrow), fn = mt ? h === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, Dt = (B = H?.[h]) != null ? B : 0, dn = K + ht - Dt - fn, pn = K + Le - Dt, Rt = Jt(d ? Kn(W, dn) : W, K, d ? lt(ke, pn) : ke);
8547
+ }, ye = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : js(), Ae = ye[ie], mt = ye[oe], Ne = Jt(0, N[q], Me[q]), gt = T ? N[q] / 2 - we - Ne - Ae - F.mainAxis : qe - Ne - Ae - F.mainAxis, Le = T ? -N[q] / 2 + we + Ne + mt + F.mainAxis : Se + Ne + mt + F.mainAxis, yt = e.elements.arrow && cn(e.elements.arrow), fn = yt ? h === "y" ? yt.clientTop || 0 : yt.clientLeft || 0 : 0, Dt = (B = H?.[h]) != null ? B : 0, dn = K + gt - Dt - fn, pn = K + Le - Dt, Rt = Jt(d ? Kn(W, dn) : W, K, d ? lt(ke, pn) : ke);
8512
8548
  x[h] = Rt, $[h] = Rt - K;
8513
8549
  }
8514
8550
  if (l) {
@@ -8535,12 +8571,12 @@ function Ef(n) {
8535
8571
  return n === ue(n) || !pe(n) ? si(n) : Of(n);
8536
8572
  }
8537
8573
  function Tf(n) {
8538
- var e = n.getBoundingClientRect(), t = Tt(e.width) / n.offsetWidth || 1, r = Tt(e.height) / n.offsetHeight || 1;
8574
+ var e = n.getBoundingClientRect(), t = Mt(e.width) / n.offsetWidth || 1, r = Mt(e.height) / n.offsetHeight || 1;
8539
8575
  return t !== 1 || r !== 1;
8540
8576
  }
8541
8577
  function Mf(n, e, t) {
8542
8578
  t === void 0 && (t = !1);
8543
- var r = pe(e), i = pe(e) && Tf(e), o = Je(e), s = Mt(n, i, t), l = {
8579
+ var r = pe(e), i = pe(e) && Tf(e), o = Je(e), s = At(n, i, t), l = {
8544
8580
  scrollLeft: 0,
8545
8581
  scrollTop: 0
8546
8582
  }, a = {
@@ -8548,7 +8584,7 @@ function Mf(n, e, t) {
8548
8584
  y: 0
8549
8585
  };
8550
8586
  return (r || !r && !t) && ((Te(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
8551
- ai(o)) && (l = Ef(e)), pe(e) ? (a = Mt(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = li(o))), {
8587
+ ai(o)) && (l = Ef(e)), pe(e) ? (a = At(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = li(o))), {
8552
8588
  x: s.left + l.scrollLeft - a.x,
8553
8589
  y: s.top + l.scrollTop - a.y,
8554
8590
  width: s.width,
@@ -8637,7 +8673,7 @@ function Rf(n) {
8637
8673
  setOptions: function(v) {
8638
8674
  var O = typeof v == "function" ? v(u.options) : v;
8639
8675
  m(), u.options = Object.assign({}, o, u.options, O), u.scrollParents = {
8640
- reference: ct(l) ? qt(l) : l.contextElement ? qt(l.contextElement) : [],
8676
+ reference: ut(l) ? qt(l) : l.contextElement ? qt(l.contextElement) : [],
8641
8677
  popper: qt(a)
8642
8678
  };
8643
8679
  var T = Nf(Df([].concat(r, u.options.modifiers)));
@@ -8759,7 +8795,7 @@ function $f(n, e) {
8759
8795
  function Vf(n) {
8760
8796
  return n.split(/\s+/).filter(Boolean);
8761
8797
  }
8762
- function wt(n) {
8798
+ function Ct(n) {
8763
8799
  return [].concat(n);
8764
8800
  }
8765
8801
  function oo(n, e) {
@@ -8812,7 +8848,7 @@ function lo(n, e) {
8812
8848
  });
8813
8849
  }
8814
8850
  function Uf(n) {
8815
- var e, t = wt(n), r = t[0];
8851
+ var e, t = Ct(n), r = t[0];
8816
8852
  return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
8817
8853
  }
8818
8854
  function Gf(n, e) {
@@ -8864,7 +8900,7 @@ var Zf = typeof window < "u" && typeof document < "u", _f = Zf ? (
8864
8900
  // @ts-ignore
8865
8901
  !!window.msCrypto
8866
8902
  ) : !1;
8867
- function vt(n) {
8903
+ function kt(n) {
8868
8904
  var e = n === "destroy" ? "n already-" : " ";
8869
8905
  return [n + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
8870
8906
  }
@@ -9119,7 +9155,7 @@ function cd(n, e) {
9119
9155
  var P = O.map(function(b) {
9120
9156
  return b.fn(h);
9121
9157
  }), L = n.hasAttribute("aria-expanded");
9122
- return mt(), we(), K(), W("onCreate", [h]), t.showOnCreate && Bt(), x.addEventListener("mouseenter", function() {
9158
+ return yt(), we(), K(), W("onCreate", [h]), t.showOnCreate && Bt(), x.addEventListener("mouseenter", function() {
9123
9159
  h.props.interactive && h.state.isVisible && h.clearDelayTimeouts();
9124
9160
  }), x.addEventListener("mouseleave", function() {
9125
9161
  h.props.interactive && h.props.trigger.indexOf("mouseenter") >= 0 && ie().addEventListener("mousemove", g);
@@ -9162,7 +9198,7 @@ function cd(n, e) {
9162
9198
  function ke() {
9163
9199
  var b = h.props.aria;
9164
9200
  if (b.content) {
9165
- var w = "aria-" + b.content, E = x.id, R = wt(h.props.triggerTarget || n);
9201
+ var w = "aria-" + b.content, E = x.id, R = Ct(h.props.triggerTarget || n);
9166
9202
  R.forEach(function(I) {
9167
9203
  var Q = I.getAttribute(w);
9168
9204
  if (h.state.isVisible)
@@ -9176,7 +9212,7 @@ function cd(n, e) {
9176
9212
  }
9177
9213
  function we() {
9178
9214
  if (!(L || !h.props.aria.expanded)) {
9179
- var b = wt(h.props.triggerTarget || n);
9215
+ var b = Ct(h.props.triggerTarget || n);
9180
9216
  b.forEach(function(w) {
9181
9217
  h.props.interactive ? w.setAttribute("aria-expanded", h.state.isVisible && w === B() ? "true" : "false") : w.removeAttribute("aria-expanded");
9182
9218
  });
@@ -9191,7 +9227,7 @@ function cd(n, e) {
9191
9227
  if (!(Ce.isTouch && (a || b.type === "mousedown"))) {
9192
9228
  var w = b.composedPath && b.composedPath()[0] || b.target;
9193
9229
  if (!(h.props.interactive && ao(x, w))) {
9194
- if (wt(h.props.triggerTarget || n).some(function(E) {
9230
+ if (Ct(h.props.triggerTarget || n).some(function(E) {
9195
9231
  return ao(E, w);
9196
9232
  })) {
9197
9233
  if (Ce.isTouch || h.state.isVisible && h.props.trigger.indexOf("click") >= 0)
@@ -9218,15 +9254,15 @@ function cd(n, e) {
9218
9254
  var b = ie();
9219
9255
  b.removeEventListener("mousedown", Se, !0), b.removeEventListener("touchend", Se, Ye), b.removeEventListener("touchstart", Me, Ye), b.removeEventListener("touchmove", Ke, Ye);
9220
9256
  }
9221
- function pt(b, w) {
9222
- ht(b, function() {
9257
+ function mt(b, w) {
9258
+ gt(b, function() {
9223
9259
  !h.state.isVisible && x.parentNode && x.parentNode.contains(x) && w();
9224
9260
  });
9225
9261
  }
9226
9262
  function Ne(b, w) {
9227
- ht(b, w);
9263
+ gt(b, w);
9228
9264
  }
9229
- function ht(b, w) {
9265
+ function gt(b, w) {
9230
9266
  var E = oe().box;
9231
9267
  function R(I) {
9232
9268
  I.target === E && (gr(E, "remove", R), w());
@@ -9237,7 +9273,7 @@ function cd(n, e) {
9237
9273
  }
9238
9274
  function Le(b, w, E) {
9239
9275
  E === void 0 && (E = !1);
9240
- var R = wt(h.props.triggerTarget || n);
9276
+ var R = Ct(h.props.triggerTarget || n);
9241
9277
  R.forEach(function(I) {
9242
9278
  I.addEventListener(b, w, E), d.push({
9243
9279
  node: I,
@@ -9247,7 +9283,7 @@ function cd(n, e) {
9247
9283
  });
9248
9284
  });
9249
9285
  }
9250
- function mt() {
9286
+ function yt() {
9251
9287
  H() && (Le("touchstart", Dt, {
9252
9288
  passive: !0
9253
9289
  }), Le("touchend", pn, {
@@ -9286,10 +9322,10 @@ function cd(n, e) {
9286
9322
  var w = b.target, E = B().contains(w) || x.contains(w);
9287
9323
  if (!(b.type === "mousemove" && E)) {
9288
9324
  var R = Fe().concat(x).map(function(I) {
9289
- var Q, fe = I._tippy, gt = (Q = fe.popperInstance) == null ? void 0 : Q.state;
9290
- return gt ? {
9325
+ var Q, fe = I._tippy, bt = (Q = fe.popperInstance) == null ? void 0 : Q.state;
9326
+ return bt ? {
9291
9327
  popperRect: I.getBoundingClientRect(),
9292
- popperState: gt,
9328
+ popperState: bt,
9293
9329
  props: t
9294
9330
  } : null;
9295
9331
  }).filter(Boolean);
@@ -9314,7 +9350,7 @@ function cd(n, e) {
9314
9350
  }
9315
9351
  function hn() {
9316
9352
  mn();
9317
- var b = h.props, w = b.popperOptions, E = b.placement, R = b.offset, I = b.getReferenceClientRect, Q = b.moveTransition, fe = $() ? Pr(x).arrow : null, gt = I ? {
9353
+ var b = h.props, w = b.popperOptions, E = b.placement, R = b.offset, I = b.getReferenceClientRect, Q = b.moveTransition, fe = $() ? Pr(x).arrow : null, bt = I ? {
9318
9354
  getBoundingClientRect: I,
9319
9355
  contextElement: I.contextElement || B()
9320
9356
  } : n, ui = {
@@ -9323,12 +9359,12 @@ function cd(n, e) {
9323
9359
  phase: "beforeWrite",
9324
9360
  requires: ["computeStyles"],
9325
9361
  fn: function(xn) {
9326
- var yt = xn.state;
9362
+ var vt = xn.state;
9327
9363
  if ($()) {
9328
9364
  var cl = oe(), nr = cl.box;
9329
9365
  ["placement", "reference-hidden", "escaped"].forEach(function(kn) {
9330
- kn === "placement" ? nr.setAttribute("data-placement", yt.placement) : yt.attributes.popper["data-popper-" + kn] ? nr.setAttribute("data-" + kn, "") : nr.removeAttribute("data-" + kn);
9331
- }), yt.attributes.popper = {};
9366
+ kn === "placement" ? nr.setAttribute("data-placement", vt.placement) : vt.attributes.popper["data-popper-" + kn] ? nr.setAttribute("data-" + kn, "") : nr.removeAttribute("data-" + kn);
9367
+ }), vt.attributes.popper = {};
9332
9368
  }
9333
9369
  }
9334
9370
  }, Ge = [{
@@ -9363,7 +9399,7 @@ function cd(n, e) {
9363
9399
  element: fe,
9364
9400
  padding: 3
9365
9401
  }
9366
- }), Ge.push.apply(Ge, w?.modifiers || []), h.popperInstance = Bf(gt, x, Object.assign({}, w, {
9402
+ }), Ge.push.apply(Ge, w?.modifiers || []), h.popperInstance = Bf(bt, x, Object.assign({}, w, {
9367
9403
  placement: E,
9368
9404
  onFirstUpdate: p,
9369
9405
  modifiers: Ge
@@ -9416,12 +9452,12 @@ function cd(n, e) {
9416
9452
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
9417
9453
  }
9418
9454
  function bn(b) {
9419
- if (process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, vt("setProps")), !h.state.isDestroyed) {
9455
+ if (process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, kt("setProps")), !h.state.isDestroyed) {
9420
9456
  W("onBeforeUpdate", [h, b]), fn();
9421
9457
  var w = h.props, E = fo(n, Object.assign({}, w, so(b), {
9422
9458
  ignoreAttributes: !0
9423
9459
  }));
9424
- h.props = E, mt(), w.interactiveDebounce !== E.interactiveDebounce && (qe(), g = io(dn, E.interactiveDebounce)), w.triggerTarget && !E.triggerTarget ? wt(w.triggerTarget).forEach(function(R) {
9460
+ h.props = E, yt(), w.interactiveDebounce !== E.interactiveDebounce && (qe(), g = io(dn, E.interactiveDebounce)), w.triggerTarget && !E.triggerTarget ? Ct(w.triggerTarget).forEach(function(R) {
9425
9461
  R.removeAttribute("aria-expanded");
9426
9462
  }) : E.triggerTarget && n.removeAttribute("aria-expanded"), we(), K(), N && N(w, E), h.popperInstance && (hn(), Fe().forEach(function(R) {
9427
9463
  requestAnimationFrame(R._tippy.popperInstance.forceUpdate);
@@ -9434,19 +9470,19 @@ function cd(n, e) {
9434
9470
  });
9435
9471
  }
9436
9472
  function il() {
9437
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, vt("show"));
9473
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, kt("show"));
9438
9474
  var b = h.state.isVisible, w = h.state.isDestroyed, E = !h.state.isEnabled, R = Ce.isTouch && !h.props.touch, I = hr(h.props.duration, 0, le.duration);
9439
9475
  if (!(b || w || E || R) && !B().hasAttribute("disabled") && (W("onShow", [h], !1), h.props.onShow(h) !== !1)) {
9440
9476
  if (h.state.isVisible = !0, $() && (x.style.visibility = "visible"), K(), ye(), h.state.isMounted || (x.style.transition = "none"), $()) {
9441
- var Q = oe(), fe = Q.box, gt = Q.content;
9442
- mr([fe, gt], 0);
9477
+ var Q = oe(), fe = Q.box, bt = Q.content;
9478
+ mr([fe, bt], 0);
9443
9479
  }
9444
9480
  p = function() {
9445
9481
  var Ge;
9446
9482
  if (!(!h.state.isVisible || c)) {
9447
9483
  if (c = !0, x.offsetHeight, x.style.transition = h.props.moveTransition, $() && h.props.animation) {
9448
- var tr = oe(), xn = tr.box, yt = tr.content;
9449
- mr([xn, yt], I), lo([xn, yt], "visible");
9484
+ var tr = oe(), xn = tr.box, vt = tr.content;
9485
+ mr([xn, vt], I), lo([xn, vt], "visible");
9450
9486
  }
9451
9487
  ke(), we(), oo(yr, h), (Ge = h.popperInstance) == null || Ge.forceUpdate(), W("onMount", [h]), h.props.animation && $() && Ne(I, function() {
9452
9488
  h.state.isShown = !0, W("onShown", [h]);
@@ -9456,28 +9492,28 @@ function cd(n, e) {
9456
9492
  }
9457
9493
  }
9458
9494
  function ol() {
9459
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, vt("hide"));
9495
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, kt("hide"));
9460
9496
  var b = !h.state.isVisible, w = h.state.isDestroyed, E = !h.state.isEnabled, R = hr(h.props.duration, 1, le.duration);
9461
9497
  if (!(b || w || E) && (W("onHide", [h], !1), h.props.onHide(h) !== !1)) {
9462
9498
  if (h.state.isVisible = !1, h.state.isShown = !1, c = !1, s = !1, $() && (x.style.visibility = "hidden"), qe(), Ae(), K(!0), $()) {
9463
9499
  var I = oe(), Q = I.box, fe = I.content;
9464
9500
  h.props.animation && (mr([Q, fe], R), lo([Q, fe], "hidden"));
9465
9501
  }
9466
- ke(), we(), h.props.animation ? $() && pt(R, h.unmount) : h.unmount();
9502
+ ke(), we(), h.props.animation ? $() && mt(R, h.unmount) : h.unmount();
9467
9503
  }
9468
9504
  }
9469
9505
  function sl(b) {
9470
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, vt("hideWithInteractivity")), ie().addEventListener("mousemove", g), oo(Mn, g), g(b);
9506
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, kt("hideWithInteractivity")), ie().addEventListener("mousemove", g), oo(Mn, g), g(b);
9471
9507
  }
9472
9508
  function ll() {
9473
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, vt("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (mn(), Fe().forEach(function(b) {
9509
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, kt("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (mn(), Fe().forEach(function(b) {
9474
9510
  b._tippy.unmount();
9475
9511
  }), x.parentNode && x.parentNode.removeChild(x), yr = yr.filter(function(b) {
9476
9512
  return b !== h;
9477
9513
  }), h.state.isMounted = !1, W("onHidden", [h]));
9478
9514
  }
9479
9515
  function al() {
9480
- process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, vt("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), fn(), delete n._tippy, h.state.isDestroyed = !0, W("onDestroy", [h]));
9516
+ process.env.NODE_ENV !== "production" && De(h.state.isDestroyed, kt("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), fn(), delete n._tippy, h.state.isDestroyed = !0, W("onDestroy", [h]));
9481
9517
  }
9482
9518
  }
9483
9519
  function un(n, e) {
@@ -9646,7 +9682,7 @@ const fd = (n) => new ve({
9646
9682
  ] : [];
9647
9683
  }
9648
9684
  });
9649
- function xd(n) {
9685
+ function kd(n) {
9650
9686
  return dd.configure({
9651
9687
  pluginKey: new ge("tableBubbleMenu"),
9652
9688
  tippyOptions: {
@@ -9679,7 +9715,7 @@ function rl(n) {
9679
9715
  const e = n.parent;
9680
9716
  return e ? rl(e) : null;
9681
9717
  }
9682
- const kd = Y.create({
9718
+ const wd = Y.create({
9683
9719
  name: "selectionDecoration",
9684
9720
  addProseMirrorPlugins() {
9685
9721
  return [
@@ -9699,7 +9735,7 @@ const kd = Y.create({
9699
9735
  })
9700
9736
  ];
9701
9737
  }
9702
- }), pd = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, hd = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, md = Ot.create({
9738
+ }), pd = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, hd = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, md = ct.create({
9703
9739
  name: "highlight",
9704
9740
  addOptions() {
9705
9741
  return {
@@ -9727,7 +9763,7 @@ const kd = Y.create({
9727
9763
  ];
9728
9764
  },
9729
9765
  renderHTML({ HTMLAttributes: n }) {
9730
- return ["mark", It(this.options.HTMLAttributes, n), 0];
9766
+ return ["mark", ht(this.options.HTMLAttributes, n), 0];
9731
9767
  },
9732
9768
  addCommands() {
9733
9769
  return {
@@ -9757,7 +9793,7 @@ const kd = Y.create({
9757
9793
  })
9758
9794
  ];
9759
9795
  }
9760
- }), wd = md.extend({
9796
+ }), Sd = md.extend({
9761
9797
  priority: 103,
9762
9798
  parseHTML() {
9763
9799
  return [
@@ -9779,7 +9815,7 @@ const kd = Y.create({
9779
9815
  ];
9780
9816
  },
9781
9817
  renderHTML({ HTMLAttributes: n }) {
9782
- return ["mark", It(this.options.HTMLAttributes, n), 0];
9818
+ return ["mark", ht(this.options.HTMLAttributes, n), 0];
9783
9819
  }
9784
9820
  }), gd = (n) => {
9785
9821
  if (!n.children.length)
@@ -9791,7 +9827,7 @@ const kd = Y.create({
9791
9827
  t.setAttribute("style", `${s};${o}`);
9792
9828
  });
9793
9829
  };
9794
- Ot.create({
9830
+ ct.create({
9795
9831
  name: "textStyle",
9796
9832
  priority: 101,
9797
9833
  addOptions() {
@@ -9809,7 +9845,7 @@ Ot.create({
9809
9845
  ];
9810
9846
  },
9811
9847
  renderHTML({ HTMLAttributes: n }) {
9812
- return ["span", It(this.options.HTMLAttributes, n), 0];
9848
+ return ["span", ht(this.options.HTMLAttributes, n), 0];
9813
9849
  },
9814
9850
  addCommands() {
9815
9851
  return {
@@ -9856,7 +9892,7 @@ const yd = Y.create({
9856
9892
  unsetColor: () => ({ chain: n }) => n().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
9857
9893
  };
9858
9894
  }
9859
- }), Sd = yd.extend({
9895
+ }), Cd = yd.extend({
9860
9896
  addGlobalAttributes() {
9861
9897
  return [
9862
9898
  {
@@ -9880,7 +9916,7 @@ const yd = Y.create({
9880
9916
  }
9881
9917
  ];
9882
9918
  }
9883
- }), Cd = Y.create({
9919
+ }), Od = Y.create({
9884
9920
  name: "tokenHighlight",
9885
9921
  addProseMirrorPlugins() {
9886
9922
  return [
@@ -9918,7 +9954,7 @@ function mo(n) {
9918
9954
  return !0;
9919
9955
  }), e;
9920
9956
  }
9921
- const Od = en.create({
9957
+ const Ed = en.create({
9922
9958
  name: "signature",
9923
9959
  group: "block",
9924
9960
  content: "block*",
@@ -9926,7 +9962,7 @@ const Od = en.create({
9926
9962
  return [{ tag: "signature" }];
9927
9963
  },
9928
9964
  renderHTML({ HTMLAttributes: n }) {
9929
- return ["signature", It(n), 0];
9965
+ return ["signature", ht(n), 0];
9930
9966
  },
9931
9967
  addNodeView() {
9932
9968
  return () => {
@@ -9934,7 +9970,7 @@ const Od = en.create({
9934
9970
  return t.classList.add("content", "is-editable"), n.append(t, e), { dom: n, contentDOM: t };
9935
9971
  };
9936
9972
  }
9937
- }), Ed = Y.create({
9973
+ }), Td = Y.create({
9938
9974
  name: "fontSize",
9939
9975
  addOptions() {
9940
9976
  return {
@@ -9970,14 +10006,15 @@ const Od = en.create({
9970
10006
  }
9971
10007
  });
9972
10008
  export {
9973
- Sd as ExtendedColor,
9974
- wd as ExtendedHighlight,
9975
- Ed as FontSizeExtension,
10009
+ Cd as ExtendedColor,
10010
+ Sd as ExtendedHighlight,
10011
+ Td as FontSizeExtension,
9976
10012
  bd as ImageExtension,
9977
- vd as KnowledgeExtension,
9978
- kd as SelectionDecoration,
9979
- Od as SignatureExtension,
9980
- xd as TableBubbleMenuExtension,
9981
- Cd as TokenExtension
10013
+ vd as InternalLinkExtension,
10014
+ xd as KnowledgeExtension,
10015
+ wd as SelectionDecoration,
10016
+ Ed as SignatureExtension,
10017
+ kd as TableBubbleMenuExtension,
10018
+ Od as TokenExtension
9982
10019
  };
9983
10020
  //# sourceMappingURL=extensions.js.map