@zipify/wysiwyg 1.0.0-dev.63 → 1.0.0-dev.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wysiwyg.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var ty = Object.defineProperty;
2
2
  var ry = (r, e, t) => e in r ? ty(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var Fr = (r, e, t) => (ry(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { computed as A, ref as q, watch as br, inject as z, onUnmounted as Dl, nextTick as pp, provide as ft, onMounted as mp, toRef as fe, reactive as ny } from "vue";
4
+ import { computed as A, ref as q, watch as br, inject as z, onUnmounted as Dl, nextTick as pp, provide as Ke, onMounted as mp, toRef as fe, reactive as ny } from "vue";
5
5
  import { ColorModel as iy, ZipifyColorPicker as oy } from "@zipify/colorpicker";
6
6
  function ce(r) {
7
7
  this.content = r;
@@ -1992,10 +1992,10 @@ class Ba {
1992
1992
  return (this.delInfo & Hi) > 0;
1993
1993
  }
1994
1994
  }
1995
- class Ge {
1995
+ class Je {
1996
1996
  constructor(e, t = !1) {
1997
- if (this.ranges = e, this.inverted = t, !e.length && Ge.empty)
1998
- return Ge.empty;
1997
+ if (this.ranges = e, this.inverted = t, !e.length && Je.empty)
1998
+ return Je.empty;
1999
1999
  }
2000
2000
  recover(e) {
2001
2001
  let t = 0, n = ou(e);
@@ -2049,16 +2049,16 @@ class Ge {
2049
2049
  }
2050
2050
  }
2051
2051
  invert() {
2052
- return new Ge(this.ranges, !this.inverted);
2052
+ return new Je(this.ranges, !this.inverted);
2053
2053
  }
2054
2054
  toString() {
2055
2055
  return (this.inverted ? "-" : "") + JSON.stringify(this.ranges);
2056
2056
  }
2057
2057
  static offset(e) {
2058
- return e == 0 ? Ge.empty : new Ge(e < 0 ? [0, -e, 0] : [0, 0, e]);
2058
+ return e == 0 ? Je.empty : new Je(e < 0 ? [0, -e, 0] : [0, 0, e]);
2059
2059
  }
2060
2060
  }
2061
- Ge.empty = new Ge([]);
2061
+ Je.empty = new Je([]);
2062
2062
  class Zr {
2063
2063
  constructor(e = [], t, n = 0, i = e.length) {
2064
2064
  this.maps = e, this.mirror = t, this.from = n, this.to = i;
@@ -2127,7 +2127,7 @@ class Zr {
2127
2127
  const Cs = /* @__PURE__ */ Object.create(null);
2128
2128
  class Jt {
2129
2129
  getMap() {
2130
- return Ge.empty;
2130
+ return Je.empty;
2131
2131
  }
2132
2132
  merge(e) {
2133
2133
  return null;
@@ -2248,7 +2248,7 @@ class ge extends Jt {
2248
2248
  return this.structure && La(e, this.from, this.to) ? Fe.fail("Structure replace would overwrite content") : Fe.fromReplace(e, this.from, this.to, this.slice);
2249
2249
  }
2250
2250
  getMap() {
2251
- return new Ge([this.from, this.to - this.from, this.slice.size]);
2251
+ return new Je([this.from, this.to - this.from, this.slice.size]);
2252
2252
  }
2253
2253
  invert(e) {
2254
2254
  return new ge(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
@@ -2294,7 +2294,7 @@ class se extends Jt {
2294
2294
  return n ? Fe.fromReplace(e, this.from, this.to, n) : Fe.fail("Content does not fit in gap");
2295
2295
  }
2296
2296
  getMap() {
2297
- return new Ge([
2297
+ return new Je([
2298
2298
  this.from,
2299
2299
  this.gapFrom - this.from,
2300
2300
  this.insert,
@@ -2965,7 +2965,7 @@ class P {
2965
2965
  }
2966
2966
  }
2967
2967
  static findFrom(e, t, n = !1) {
2968
- let i = e.parent.inlineContent ? new B(e) : Lr(e.node(0), e.parent, e.pos, e.index(), t, n);
2968
+ let i = e.parent.inlineContent ? new L(e) : Lr(e.node(0), e.parent, e.pos, e.index(), t, n);
2969
2969
  if (i)
2970
2970
  return i;
2971
2971
  for (let o = e.depth - 1; o >= 0; o--) {
@@ -2976,13 +2976,13 @@ class P {
2976
2976
  return null;
2977
2977
  }
2978
2978
  static near(e, t = 1) {
2979
- return this.findFrom(e, t) || this.findFrom(e, -t) || new Xe(e.node(0));
2979
+ return this.findFrom(e, t) || this.findFrom(e, -t) || new Ze(e.node(0));
2980
2980
  }
2981
2981
  static atStart(e) {
2982
- return Lr(e, e, 0, 0, 1) || new Xe(e);
2982
+ return Lr(e, e, 0, 0, 1) || new Ze(e);
2983
2983
  }
2984
2984
  static atEnd(e) {
2985
- return Lr(e, e, e.content.size, e.childCount, -1) || new Xe(e);
2985
+ return Lr(e, e, e.content.size, e.childCount, -1) || new Ze(e);
2986
2986
  }
2987
2987
  static fromJSON(e, t) {
2988
2988
  if (!t || !t.type)
@@ -2998,7 +2998,7 @@ class P {
2998
2998
  return As[e] = t, t.prototype.jsonID = e, t;
2999
2999
  }
3000
3000
  getBookmark() {
3001
- return B.between(this.$anchor, this.$head).getBookmark();
3001
+ return L.between(this.$anchor, this.$head).getBookmark();
3002
3002
  }
3003
3003
  }
3004
3004
  P.prototype.visible = !0;
@@ -3011,7 +3011,7 @@ let au = !1;
3011
3011
  function lu(r) {
3012
3012
  !au && !r.parent.inlineContent && (au = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r.parent.type.name + ")"));
3013
3013
  }
3014
- class B extends P {
3014
+ class L extends P {
3015
3015
  constructor(e, t = e) {
3016
3016
  lu(e), lu(t), super(e, t);
3017
3017
  }
@@ -3023,7 +3023,7 @@ class B extends P {
3023
3023
  if (!n.parent.inlineContent)
3024
3024
  return P.near(n);
3025
3025
  let i = e.resolve(t.map(this.anchor));
3026
- return new B(i.parent.inlineContent ? i : n, n);
3026
+ return new L(i.parent.inlineContent ? i : n, n);
3027
3027
  }
3028
3028
  replace(e, t = k.empty) {
3029
3029
  if (super.replace(e, t), t == k.empty) {
@@ -3032,7 +3032,7 @@ class B extends P {
3032
3032
  }
3033
3033
  }
3034
3034
  eq(e) {
3035
- return e instanceof B && e.anchor == this.anchor && e.head == this.head;
3035
+ return e instanceof L && e.anchor == this.anchor && e.head == this.head;
3036
3036
  }
3037
3037
  getBookmark() {
3038
3038
  return new Uo(this.anchor, this.head);
@@ -3043,7 +3043,7 @@ class B extends P {
3043
3043
  static fromJSON(e, t) {
3044
3044
  if (typeof t.anchor != "number" || typeof t.head != "number")
3045
3045
  throw new RangeError("Invalid input for TextSelection.fromJSON");
3046
- return new B(e.resolve(t.anchor), e.resolve(t.head));
3046
+ return new L(e.resolve(t.anchor), e.resolve(t.head));
3047
3047
  }
3048
3048
  static create(e, t, n = t) {
3049
3049
  let i = e.resolve(t);
@@ -3058,10 +3058,10 @@ class B extends P {
3058
3058
  else
3059
3059
  return P.near(t, n);
3060
3060
  }
3061
- return e.parent.inlineContent || (i == 0 ? e = t : (e = (P.findFrom(e, -n, !0) || P.findFrom(e, n, !0)).$anchor, e.pos < t.pos != i < 0 && (e = t))), new B(e, t);
3061
+ return e.parent.inlineContent || (i == 0 ? e = t : (e = (P.findFrom(e, -n, !0) || P.findFrom(e, n, !0)).$anchor, e.pos < t.pos != i < 0 && (e = t))), new L(e, t);
3062
3062
  }
3063
3063
  }
3064
- P.jsonID("text", B);
3064
+ P.jsonID("text", L);
3065
3065
  class Uo {
3066
3066
  constructor(e, t) {
3067
3067
  this.anchor = e, this.head = t;
@@ -3070,7 +3070,7 @@ class Uo {
3070
3070
  return new Uo(e.map(this.anchor), e.map(this.head));
3071
3071
  }
3072
3072
  resolve(e) {
3073
- return B.between(e.resolve(this.anchor), e.resolve(this.head));
3073
+ return L.between(e.resolve(this.anchor), e.resolve(this.head));
3074
3074
  }
3075
3075
  }
3076
3076
  class I extends P {
@@ -3121,7 +3121,7 @@ class Ol {
3121
3121
  return n && I.isSelectable(n) ? new I(t) : P.near(t);
3122
3122
  }
3123
3123
  }
3124
- class Xe extends P {
3124
+ class Ze extends P {
3125
3125
  constructor(e) {
3126
3126
  super(e.resolve(0), e.resolve(e.content.size));
3127
3127
  }
@@ -3137,30 +3137,30 @@ class Xe extends P {
3137
3137
  return { type: "all" };
3138
3138
  }
3139
3139
  static fromJSON(e) {
3140
- return new Xe(e);
3140
+ return new Ze(e);
3141
3141
  }
3142
3142
  map(e) {
3143
- return new Xe(e);
3143
+ return new Ze(e);
3144
3144
  }
3145
3145
  eq(e) {
3146
- return e instanceof Xe;
3146
+ return e instanceof Ze;
3147
3147
  }
3148
3148
  getBookmark() {
3149
3149
  return Zy;
3150
3150
  }
3151
3151
  }
3152
- P.jsonID("all", Xe);
3152
+ P.jsonID("all", Ze);
3153
3153
  const Zy = {
3154
3154
  map() {
3155
3155
  return this;
3156
3156
  },
3157
3157
  resolve(r) {
3158
- return new Xe(r);
3158
+ return new Ze(r);
3159
3159
  }
3160
3160
  };
3161
3161
  function Lr(r, e, t, n, i, o = !1) {
3162
3162
  if (e.inlineContent)
3163
- return B.create(r, t);
3163
+ return L.create(r, t);
3164
3164
  for (let s = n - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
3165
3165
  let a = e.child(s);
3166
3166
  if (a.isAtom) {
@@ -3449,7 +3449,7 @@ const Ms = /* @__PURE__ */ Object.create(null);
3449
3449
  function Vp(r) {
3450
3450
  return r in Ms ? r + "$" + ++Ms[r] : (Ms[r] = 0, r + "$");
3451
3451
  }
3452
- class tt {
3452
+ class rt {
3453
3453
  constructor(e = "key") {
3454
3454
  this.key = Vp(e);
3455
3455
  }
@@ -3846,10 +3846,10 @@ let gu = null, yu = null, bu = !1;
3846
3846
  function _0(r, e, t) {
3847
3847
  return gu == e && yu == t ? bu : (gu = e, yu = t, bu = t == "up" || t == "down" ? g0(r, e, t) : b0(r, e, t));
3848
3848
  }
3849
- const Ze = 0, _u = 1, Wr = 2, bt = 3;
3849
+ const Qe = 0, _u = 1, Wr = 2, bt = 3;
3850
3850
  class ui {
3851
3851
  constructor(e, t, n, i) {
3852
- this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty = Ze, n.pmViewDesc = this;
3852
+ this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty = Qe, n.pmViewDesc = this;
3853
3853
  }
3854
3854
  matchesWidget(e) {
3855
3855
  return !1;
@@ -4178,7 +4178,7 @@ class Yp extends ui {
4178
4178
  super(e, [], s, null), this.widget = t, this.widget = t, o = this;
4179
4179
  }
4180
4180
  matchesWidget(e) {
4181
- return this.dirty == Ze && e.type.eq(this.widget.type);
4181
+ return this.dirty == Qe && e.type.eq(this.widget.type);
4182
4182
  }
4183
4183
  parseRule() {
4184
4184
  return { ignore: !0 };
@@ -4232,11 +4232,11 @@ class Sr extends ui {
4232
4232
  return this.dirty != bt && this.mark.eq(e);
4233
4233
  }
4234
4234
  markDirty(e, t) {
4235
- if (super.markDirty(e, t), this.dirty != Ze) {
4235
+ if (super.markDirty(e, t), this.dirty != Qe) {
4236
4236
  let n = this.parent;
4237
4237
  for (; !n.node; )
4238
4238
  n = n.parent;
4239
- n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty = Ze;
4239
+ n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty = Qe;
4240
4240
  }
4241
4241
  }
4242
4242
  slice(e, t, n) {
@@ -4290,7 +4290,7 @@ class Er extends ui {
4290
4290
  return e;
4291
4291
  }
4292
4292
  matchesNode(e, t, n) {
4293
- return this.dirty == Ze && e.eq(this.node) && Wa(t, this.outerDeco) && n.eq(this.innerDeco);
4293
+ return this.dirty == Qe && e.eq(this.node) && Wa(t, this.outerDeco) && n.eq(this.innerDeco);
4294
4294
  }
4295
4295
  get size() {
4296
4296
  return this.node.nodeSize;
@@ -4310,7 +4310,7 @@ class Er extends ui {
4310
4310
  }
4311
4311
  localCompositionInfo(e, t) {
4312
4312
  let { from: n, to: i } = e.state.selection;
4313
- if (!(e.state.selection instanceof B) || n < t || i > t + this.node.content.size)
4313
+ if (!(e.state.selection instanceof L) || n < t || i > t + this.node.content.size)
4314
4314
  return null;
4315
4315
  let o = e.domSelection(), s = A0(o.focusNode, o.focusOffset);
4316
4316
  if (!s || !this.dom.contains(s.parentNode))
@@ -4339,7 +4339,7 @@ class Er extends ui {
4339
4339
  return this.dirty == bt || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, n, i), !0);
4340
4340
  }
4341
4341
  updateInner(e, t, n, i) {
4342
- this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Ze;
4342
+ this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Qe;
4343
4343
  }
4344
4344
  updateOuterDeco(e) {
4345
4345
  if (Wa(e, this.outerDeco))
@@ -4371,7 +4371,7 @@ class Go extends Er {
4371
4371
  return { skip: e || !0 };
4372
4372
  }
4373
4373
  update(e, t, n, i) {
4374
- return this.dirty == bt || this.dirty != Ze && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Ze || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Ze, !0);
4374
+ return this.dirty == bt || this.dirty != Qe && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Qe || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Qe, !0);
4375
4375
  }
4376
4376
  inParent() {
4377
4377
  let e = this.parent.contentDOM;
@@ -4405,7 +4405,7 @@ class Xp extends ui {
4405
4405
  return { ignore: !0 };
4406
4406
  }
4407
4407
  matchesHack(e) {
4408
- return this.dirty == Ze && this.dom.nodeName == e;
4408
+ return this.dirty == Qe && this.dom.nodeName == e;
4409
4409
  }
4410
4410
  get domAtom() {
4411
4411
  return !0;
@@ -4556,7 +4556,7 @@ class w0 {
4556
4556
  for (; i < s && (i == o - 1 ? this.top : this.stack[i + 1 << 1]).matchesMark(e[i]) && e[i].type.spec.spanning !== !1; )
4557
4557
  i++;
4558
4558
  for (; i < o; )
4559
- this.destroyRest(), this.top.dirty = Ze, this.index = this.stack.pop(), this.top = this.stack.pop(), o--;
4559
+ this.destroyRest(), this.top.dirty = Qe, this.index = this.stack.pop(), this.top = this.stack.pop(), o--;
4560
4560
  for (; o < e.length; ) {
4561
4561
  this.stack.push(this.top, this.index + 1);
4562
4562
  let a = -1;
@@ -4824,7 +4824,7 @@ function Kt(r, e = !1) {
4824
4824
  $0(r);
4825
4825
  else {
4826
4826
  let { anchor: n, head: i } = t, o, s;
4827
- Du && !(t instanceof B) && (t.$from.parent.inlineContent || (o = wu(r, t.from)), !t.empty && !t.$from.parent.inlineContent && (s = wu(r, t.to))), r.docView.setSelection(n, i, r.root, e), Du && (o && xu(o), s && xu(s)), t.visible ? r.dom.classList.remove("ProseMirror-hideselection") : (r.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && M0(r));
4827
+ Du && !(t instanceof L) && (t.$from.parent.inlineContent || (o = wu(r, t.from)), !t.empty && !t.$from.parent.inlineContent && (s = wu(r, t.to))), r.docView.setSelection(n, i, r.root, e), Du && (o && xu(o), s && xu(s)), t.visible ? r.dom.classList.remove("ProseMirror-hideselection") : (r.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && M0(r));
4828
4828
  }
4829
4829
  r.domObserver.setCurSelection(), r.domObserver.connectSelection();
4830
4830
  }
@@ -4872,7 +4872,7 @@ function Cu(r) {
4872
4872
  r.lastSelectedViewDesc && (r.lastSelectedViewDesc.parent && r.lastSelectedViewDesc.deselectNode(), r.lastSelectedViewDesc = void 0);
4873
4873
  }
4874
4874
  function Ml(r, e, t, n) {
4875
- return r.someProp("createSelectionBetween", (i) => i(r, e, t)) || B.between(e, t, n);
4875
+ return r.someProp("createSelectionBetween", (i) => i(r, e, t)) || L.between(e, t, n);
4876
4876
  }
4877
4877
  function Ou(r) {
4878
4878
  return r.editable && r.root.activeElement != r.dom ? !1 : im(r);
@@ -4900,7 +4900,7 @@ function sr(r, e) {
4900
4900
  }
4901
4901
  function ku(r, e, t) {
4902
4902
  let n = r.state.selection;
4903
- if (n instanceof B) {
4903
+ if (n instanceof L) {
4904
4904
  if (!n.empty || t.indexOf("s") > -1)
4905
4905
  return !1;
4906
4906
  if (r.endOfTextblock(e > 0 ? "right" : "left")) {
@@ -4911,11 +4911,11 @@ function ku(r, e, t) {
4911
4911
  if (!o || o.isText)
4912
4912
  return !1;
4913
4913
  let a = e < 0 ? i.pos - o.nodeSize : i.pos;
4914
- return o.isAtom || (s = r.docView.descAt(a)) && !s.contentDOM ? I.isSelectable(o) ? sr(r, new I(e < 0 ? r.state.doc.resolve(i.pos - o.nodeSize) : i)) : Ko ? sr(r, new B(r.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
4914
+ return o.isAtom || (s = r.docView.descAt(a)) && !s.contentDOM ? I.isSelectable(o) ? sr(r, new I(e < 0 ? r.state.doc.resolve(i.pos - o.nodeSize) : i)) : Ko ? sr(r, new L(r.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
4915
4915
  }
4916
4916
  } else {
4917
4917
  if (n instanceof I && n.node.isInline)
4918
- return sr(r, new B(e > 0 ? n.$to : n.$from));
4918
+ return sr(r, new L(e > 0 ? n.$to : n.$from));
4919
4919
  {
4920
4920
  let i = Ua(r.state, e);
4921
4921
  return i ? sr(r, i) : !1;
@@ -5015,7 +5015,7 @@ function Ka(r, e, t, n) {
5015
5015
  }
5016
5016
  function Au(r, e, t) {
5017
5017
  let n = r.state.selection;
5018
- if (n instanceof B && !n.empty || t.indexOf("s") > -1 || Be && t.indexOf("m") > -1)
5018
+ if (n instanceof L && !n.empty || t.indexOf("s") > -1 || Be && t.indexOf("m") > -1)
5019
5019
  return !1;
5020
5020
  let { $from: i, $to: o } = n;
5021
5021
  if (!i.parent.inlineContent || r.endOfTextblock(e < 0 ? "up" : "down")) {
@@ -5024,13 +5024,13 @@ function Au(r, e, t) {
5024
5024
  return sr(r, s);
5025
5025
  }
5026
5026
  if (!i.parent.inlineContent) {
5027
- let s = e < 0 ? i : o, a = n instanceof Xe ? P.near(s, e) : P.findFrom(s, e);
5027
+ let s = e < 0 ? i : o, a = n instanceof Ze ? P.near(s, e) : P.findFrom(s, e);
5028
5028
  return a ? sr(r, a) : !1;
5029
5029
  }
5030
5030
  return !1;
5031
5031
  }
5032
5032
  function Tu(r, e) {
5033
- if (!(r.state.selection instanceof B))
5033
+ if (!(r.state.selection instanceof L))
5034
5034
  return !0;
5035
5035
  let { $head: t, $anchor: n, empty: i } = r.state.selection;
5036
5036
  if (!t.sameParent(n))
@@ -5314,7 +5314,7 @@ _e.keypress = (r, e) => {
5314
5314
  return;
5315
5315
  }
5316
5316
  let n = r.state.selection;
5317
- if (!(n instanceof B) || !n.$from.sameParent(n.$to)) {
5317
+ if (!(n instanceof L) || !n.$from.sameParent(n.$to)) {
5318
5318
  let i = String.fromCharCode(t.charCode);
5319
5319
  r.someProp("handleTextInput", (o) => o(r, n.$from.pos, n.$to.pos, i)) || r.dispatch(r.state.tr.insertText(i).scrollIntoView()), t.preventDefault();
5320
5320
  }
@@ -5375,12 +5375,12 @@ function Q0(r, e, t) {
5375
5375
  return !1;
5376
5376
  let n = r.state.doc;
5377
5377
  if (e == -1)
5378
- return n.inlineContent ? (en(r, B.create(n, 0, n.content.size), "pointer"), !0) : !1;
5378
+ return n.inlineContent ? (en(r, L.create(n, 0, n.content.size), "pointer"), !0) : !1;
5379
5379
  let i = n.resolve(e);
5380
5380
  for (let o = i.depth + 1; o > 0; o--) {
5381
5381
  let s = o > i.depth ? i.nodeAfter : i.node(o), a = i.before(o);
5382
5382
  if (s.inlineContent)
5383
- en(r, B.create(n, a + 1, a + 1 + s.content.size), "pointer");
5383
+ en(r, L.create(n, a + 1, a + 1 + s.content.size), "pointer");
5384
5384
  else if (I.isSelectable(s))
5385
5385
  en(r, I.create(n, a), "pointer");
5386
5386
  else
@@ -5429,7 +5429,7 @@ class eb {
5429
5429
  if (this.done(), !this.view.dom.contains(e.target))
5430
5430
  return;
5431
5431
  let t = this.pos;
5432
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || ke && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof B) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (en(this.view, P.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : cr(this.view, "pointer");
5432
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || ke && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof L) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (en(this.view, P.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : cr(this.view, "pointer");
5433
5433
  }
5434
5434
  move(e) {
5435
5435
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0), cr(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -6242,7 +6242,7 @@ function vb(r, e, t, n, i) {
6242
6242
  return;
6243
6243
  }
6244
6244
  if (!h)
6245
- if (n && a instanceof B && !a.empty && a.$head.sameParent(a.$anchor) && !r.composing && !(l.sel && l.sel.anchor != l.sel.head))
6245
+ if (n && a instanceof L && !a.empty && a.$head.sameParent(a.$anchor) && !r.composing && !(l.sel && l.sel.anchor != l.sel.head))
6246
6246
  h = { start: a.from, endA: a.to, endB: a.to };
6247
6247
  else {
6248
6248
  if (l.sel) {
@@ -6251,7 +6251,7 @@ function vb(r, e, t, n, i) {
6251
6251
  }
6252
6252
  return;
6253
6253
  }
6254
- r.input.domChangeCount++, r.state.selection.from < r.state.selection.to && h.start == h.endB && r.state.selection instanceof B && (h.start > r.state.selection.from && h.start <= r.state.selection.from + 2 && r.state.selection.from >= l.from ? h.start = r.state.selection.from : h.endA < r.state.selection.to && h.endA >= r.state.selection.to - 2 && r.state.selection.to <= l.to && (h.endB += r.state.selection.to - h.endA, h.endA = r.state.selection.to)), Ie && Vt <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > l.from && l.doc.textBetween(h.start - l.from - 1, h.start - l.from + 1) == " \xA0" && (h.start--, h.endA--, h.endB--);
6254
+ r.input.domChangeCount++, r.state.selection.from < r.state.selection.to && h.start == h.endB && r.state.selection instanceof L && (h.start > r.state.selection.from && h.start <= r.state.selection.from + 2 && r.state.selection.from >= l.from ? h.start = r.state.selection.from : h.endA < r.state.selection.to && h.endA >= r.state.selection.to - 2 && r.state.selection.to <= l.to && (h.endB += r.state.selection.to - h.endA, h.endA = r.state.selection.to)), Ie && Vt <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > l.from && l.doc.textBetween(h.start - l.from - 1, h.start - l.from + 1) == " \xA0" && (h.start--, h.endA--, h.endB--);
6255
6255
  let p = l.doc.resolveNoCache(h.start - l.from), m = l.doc.resolveNoCache(h.endB - l.from), v = u.resolve(h.start), g = p.sameParent(m) && p.parent.inlineContent && v.end() >= h.endA, y;
6256
6256
  if ((sn && r.input.lastIOSEnter > Date.now() - 225 && (!g || i.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !g && p.pos < l.doc.content.size && (y = P.findFrom(l.doc.resolve(p.pos + 1), 1, !0)) && y.head == m.pos) && r.someProp("handleKeyDown", (E) => E(r, Hr(13, "Enter")))) {
6257
6257
  r.input.lastIOSEnter = 0;
@@ -6813,14 +6813,14 @@ const zb = (r, e) => {
6813
6813
  return !0;
6814
6814
  }, jb = (r, e) => {
6815
6815
  let t = r.selection, { $from: n, $to: i } = t;
6816
- if (t instanceof Xe || n.parent.inlineContent || i.parent.inlineContent)
6816
+ if (t instanceof Ze || n.parent.inlineContent || i.parent.inlineContent)
6817
6817
  return !1;
6818
6818
  let o = Dm(i.parent.contentMatchAt(i.indexAfter()));
6819
6819
  if (!o || !o.isTextblock)
6820
6820
  return !1;
6821
6821
  if (e) {
6822
6822
  let s = (!n.parentOffset && i.index() < i.parent.childCount ? n : i).pos, a = r.tr.insert(s, o.createAndFill());
6823
- a.setSelection(B.create(a.doc, s + 1)), e(a.scrollIntoView());
6823
+ a.setSelection(L.create(a.doc, s + 1)), e(a.scrollIntoView());
6824
6824
  }
6825
6825
  return !0;
6826
6826
  }, Vb = (r, e) => {
@@ -6891,7 +6891,7 @@ function xm(r) {
6891
6891
  return !1;
6892
6892
  o--;
6893
6893
  }
6894
- return i.node(o).isTextblock ? (t && t(e.tr.setSelection(B.create(e.doc, r < 0 ? i.start(o) : i.end(o)))), !0) : !1;
6894
+ return i.node(o).isTextblock ? (t && t(e.tr.setSelection(L.create(e.doc, r < 0 ? i.start(o) : i.end(o)))), !0) : !1;
6895
6895
  };
6896
6896
  }
6897
6897
  const qb = xm(-1), Ub = xm(1);
@@ -7725,7 +7725,7 @@ const p1 = te.create({
7725
7725
  addProseMirrorPlugins() {
7726
7726
  return [
7727
7727
  new Te({
7728
- key: new tt("clipboardTextSerializer"),
7728
+ key: new rt("clipboardTextSerializer"),
7729
7729
  props: {
7730
7730
  clipboardTextSerializer: () => {
7731
7731
  const { editor: r } = this, { state: e, schema: t } = r, { doc: n, selection: i } = e, { ranges: o } = i, s = Math.min(...o.map((c) => c.$from.pos)), a = Math.max(...o.map((c) => c.$to.pos)), l = Am(t);
@@ -7814,7 +7814,7 @@ const C1 = (r, e = {}) => ({ tr: t, state: n, dispatch: i }) => {
7814
7814
  if (i) {
7815
7815
  const f = zl(l, o, e);
7816
7816
  if (f && f.from <= u && f.to >= c) {
7817
- const d = B.create(s, f.from, f.to);
7817
+ const d = L.create(s, f.from, f.to);
7818
7818
  t.setSelection(d);
7819
7819
  }
7820
7820
  }
@@ -7834,7 +7834,7 @@ function A1(r) {
7834
7834
  return r && typeof r == "object" && !Array.isArray(r) && !k1(r);
7835
7835
  }
7836
7836
  function T1(r) {
7837
- return A1(r) && r instanceof B;
7837
+ return A1(r) && r instanceof L;
7838
7838
  }
7839
7839
  function ur(r = 0, e = 0, t = 0) {
7840
7840
  return Math.min(Math.max(r, e), t);
@@ -7848,7 +7848,7 @@ function Tm(r, e = null) {
7848
7848
  if (e === "end")
7849
7849
  return n;
7850
7850
  const i = t.from, o = n.to;
7851
- return e === "all" ? B.create(r, ur(0, i, o), ur(r.content.size, i, o)) : B.create(r, ur(e, i, o), ur(e, i, o));
7851
+ return e === "all" ? L.create(r, ur(0, i, o), ur(r.content.size, i, o)) : L.create(r, ur(e, i, o), ur(e, i, o));
7852
7852
  }
7853
7853
  function jl() {
7854
7854
  return [
@@ -8071,7 +8071,7 @@ const e_ = (r, e = {}) => ({ tr: t, state: n, dispatch: i }) => {
8071
8071
  return !0;
8072
8072
  }, i_ = (r) => ({ tr: e, dispatch: t }) => {
8073
8073
  if (t) {
8074
- const { doc: n } = e, { from: i, to: o } = typeof r == "number" ? { from: r, to: r } : r, s = B.atStart(n).from, a = B.atEnd(n).to, l = ur(i, s, a), u = ur(o, s, a), c = B.create(n, l, u);
8074
+ const { doc: n } = e, { from: i, to: o } = typeof r == "number" ? { from: r, to: r } : r, s = L.atStart(n).from, a = L.atEnd(n).to, l = ur(i, s, a), u = ur(o, s, a), c = L.create(n, l, u);
8075
8075
  e.setSelection(c);
8076
8076
  }
8077
8077
  return !0;
@@ -8108,7 +8108,7 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
8108
8108
  return !1;
8109
8109
  if (n) {
8110
8110
  const f = l.parentOffset === l.parent.content.size;
8111
- o instanceof B && e.deleteSelection();
8111
+ o instanceof L && e.deleteSelection();
8112
8112
  const d = a.depth === 0 ? void 0 : s_(a.node(-1).contentMatchAt(a.indexAfter(-1)));
8113
8113
  let h = f && d ? [{
8114
8114
  type: d,
@@ -8150,7 +8150,7 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
8150
8150
  if (b > -1)
8151
8151
  return !1;
8152
8152
  C.isTextblock && C.content.size === 0 && (b = E + 1);
8153
- }), b > -1 && e.setSelection(B.near(e.doc.resolve(b))), e.scrollIntoView();
8153
+ }), b > -1 && e.setSelection(L.near(e.doc.resolve(b))), e.scrollIntoView();
8154
8154
  }
8155
8155
  return !0;
8156
8156
  }
@@ -8379,7 +8379,7 @@ const S_ = te.create({
8379
8379
  addProseMirrorPlugins() {
8380
8380
  return [
8381
8381
  new Te({
8382
- key: new tt("editable"),
8382
+ key: new rt("editable"),
8383
8383
  props: {
8384
8384
  editable: () => this.editor.options.editable
8385
8385
  }
@@ -8392,7 +8392,7 @@ const S_ = te.create({
8392
8392
  const { editor: r } = this;
8393
8393
  return [
8394
8394
  new Te({
8395
- key: new tt("focusEvents"),
8395
+ key: new rt("focusEvents"),
8396
8396
  props: {
8397
8397
  handleDOMEvents: {
8398
8398
  focus: (e, t) => {
@@ -8458,7 +8458,7 @@ const S_ = te.create({
8458
8458
  addProseMirrorPlugins() {
8459
8459
  return [
8460
8460
  new Te({
8461
- key: new tt("clearDocument"),
8461
+ key: new rt("clearDocument"),
8462
8462
  appendTransaction: (r, e, t) => {
8463
8463
  if (!(r.some((p) => p.docChanged) && !e.doc.eq(t.doc)))
8464
8464
  return;
@@ -8483,7 +8483,7 @@ const S_ = te.create({
8483
8483
  addProseMirrorPlugins() {
8484
8484
  return [
8485
8485
  new Te({
8486
- key: new tt("tabindex"),
8486
+ key: new rt("tabindex"),
8487
8487
  props: {
8488
8488
  attributes: this.editor.isEditable ? { tabindex: "0" } : {}
8489
8489
  }
@@ -9006,7 +9006,7 @@ var Ce = "top", Ve = "bottom", He = "right", Oe = "left", ts = "auto", fi = [Ce,
9006
9006
  function _t(r) {
9007
9007
  return r ? (r.nodeName || "").toLowerCase() : null;
9008
9008
  }
9009
- function rt(r) {
9009
+ function nt(r) {
9010
9010
  if (r == null)
9011
9011
  return window;
9012
9012
  if (r.toString() !== "[object Window]") {
@@ -9016,17 +9016,17 @@ function rt(r) {
9016
9016
  return r;
9017
9017
  }
9018
9018
  function un(r) {
9019
- var e = rt(r).Element;
9019
+ var e = nt(r).Element;
9020
9020
  return r instanceof e || r instanceof Element;
9021
9021
  }
9022
9022
  function Ne(r) {
9023
- var e = rt(r).HTMLElement;
9023
+ var e = nt(r).HTMLElement;
9024
9024
  return r instanceof e || r instanceof HTMLElement;
9025
9025
  }
9026
9026
  function Hl(r) {
9027
9027
  if (typeof ShadowRoot > "u")
9028
9028
  return !1;
9029
- var e = rt(r).ShadowRoot;
9029
+ var e = nt(r).ShadowRoot;
9030
9030
  return r instanceof e || r instanceof ShadowRoot;
9031
9031
  }
9032
9032
  function eS(r) {
@@ -9071,7 +9071,7 @@ const rS = {
9071
9071
  effect: tS,
9072
9072
  requires: ["computeStyles"]
9073
9073
  };
9074
- function Qe(r) {
9074
+ function et(r) {
9075
9075
  return r.split("-")[0];
9076
9076
  }
9077
9077
  var mr = Math.max, mo = Math.min, fn = Math.round;
@@ -9116,8 +9116,8 @@ function Pm(r, e) {
9116
9116
  }
9117
9117
  return !1;
9118
9118
  }
9119
- function et(r) {
9120
- return rt(r).getComputedStyle(r);
9119
+ function tt(r) {
9120
+ return nt(r).getComputedStyle(r);
9121
9121
  }
9122
9122
  function nS(r) {
9123
9123
  return ["table", "td", "th"].indexOf(_t(r)) >= 0;
@@ -9129,18 +9129,18 @@ function rs(r) {
9129
9129
  return _t(r) === "html" ? r : r.assignedSlot || r.parentNode || (Hl(r) ? r.host : null) || Zt(r);
9130
9130
  }
9131
9131
  function tf(r) {
9132
- return !Ne(r) || et(r).position === "fixed" ? null : r.offsetParent;
9132
+ return !Ne(r) || tt(r).position === "fixed" ? null : r.offsetParent;
9133
9133
  }
9134
9134
  function iS(r) {
9135
9135
  var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, t = navigator.userAgent.indexOf("Trident") !== -1;
9136
9136
  if (t && Ne(r)) {
9137
- var n = et(r);
9137
+ var n = tt(r);
9138
9138
  if (n.position === "fixed")
9139
9139
  return null;
9140
9140
  }
9141
9141
  var i = rs(r);
9142
9142
  for (Hl(i) && (i = i.host); Ne(i) && ["html", "body"].indexOf(_t(i)) < 0; ) {
9143
- var o = et(i);
9143
+ var o = tt(i);
9144
9144
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
9145
9145
  return i;
9146
9146
  i = i.parentNode;
@@ -9148,9 +9148,9 @@ function iS(r) {
9148
9148
  return null;
9149
9149
  }
9150
9150
  function di(r) {
9151
- for (var e = rt(r), t = tf(r); t && nS(t) && et(t).position === "static"; )
9151
+ for (var e = nt(r), t = tf(r); t && nS(t) && tt(t).position === "static"; )
9152
9152
  t = tf(t);
9153
- return t && (_t(t) === "html" || _t(t) === "body" && et(t).position === "static") ? e : t || iS(r) || e;
9153
+ return t && (_t(t) === "html" || _t(t) === "body" && tt(t).position === "static") ? e : t || iS(r) || e;
9154
9154
  }
9155
9155
  function ql(r) {
9156
9156
  return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
@@ -9184,7 +9184,7 @@ var sS = function(e, t) {
9184
9184
  })) : e, Lm(typeof e != "number" ? e : zm(e, fi));
9185
9185
  };
9186
9186
  function aS(r) {
9187
- var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Qe(t.placement), l = ql(a), u = [Oe, He].indexOf(a) >= 0, c = u ? "height" : "width";
9187
+ var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = et(t.placement), l = ql(a), u = [Oe, He].indexOf(a) >= 0, c = u ? "height" : "width";
9188
9188
  if (!(!o || !s)) {
9189
9189
  var f = sS(i.padding, t), d = Wl(o), h = l === "y" ? Ce : Oe, p = l === "y" ? Ve : He, m = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], v = s[l] - t.rects.reference[l], g = di(o), y = g ? l === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, D = m / 2 - v / 2, _ = f[h], x = y - d[c] - f[p], b = y / 2 - d[c] / 2 + D, C = qn(_, b, x), E = l;
9190
9190
  t.modifiersData[n] = (e = {}, e[E] = C, e.centerOffset = C - b, e);
@@ -9237,7 +9237,7 @@ function rf(r) {
9237
9237
  var g = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), D = Oe, _ = Ce, x = window;
9238
9238
  if (u) {
9239
9239
  var b = di(t), C = "clientHeight", E = "clientWidth";
9240
- if (b === rt(t) && (b = Zt(t), et(b).position !== "static" && a === "absolute" && (C = "scrollHeight", E = "scrollWidth")), b = b, i === Ce || (i === Oe || i === He) && o === ii) {
9240
+ if (b === nt(t) && (b = Zt(t), tt(b).position !== "static" && a === "absolute" && (C = "scrollHeight", E = "scrollWidth")), b = b, i === Ce || (i === Oe || i === He) && o === ii) {
9241
9241
  _ = Ve;
9242
9242
  var F = f && b === x && x.visualViewport ? x.visualViewport.height : b[C];
9243
9243
  m -= F - n.height, m *= l ? 1 : -1;
@@ -9266,7 +9266,7 @@ function rf(r) {
9266
9266
  function dS(r) {
9267
9267
  var e = r.state, t = r.options, n = t.gpuAcceleration, i = n === void 0 ? !0 : n, o = t.adaptive, s = o === void 0 ? !0 : o, a = t.roundOffsets, l = a === void 0 ? !0 : a;
9268
9268
  if (process.env.NODE_ENV !== "production") {
9269
- var u = et(e.elements.popper).transitionProperty || "";
9269
+ var u = tt(e.elements.popper).transitionProperty || "";
9270
9270
  s && ["transform", "top", "right", "bottom", "left"].some(function(f) {
9271
9271
  return u.indexOf(f) >= 0;
9272
9272
  }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
@@ -9276,7 +9276,7 @@ function dS(r) {
9276
9276
  `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
9277
9277
  }
9278
9278
  var c = {
9279
- placement: Qe(e.placement),
9279
+ placement: et(e.placement),
9280
9280
  variation: hn(e.placement),
9281
9281
  popper: e.elements.popper,
9282
9282
  popperRect: e.rects.popper,
@@ -9308,7 +9308,7 @@ var xi = {
9308
9308
  passive: !0
9309
9309
  };
9310
9310
  function pS(r) {
9311
- var e = r.state, t = r.instance, n = r.options, i = n.scroll, o = i === void 0 ? !0 : i, s = n.resize, a = s === void 0 ? !0 : s, l = rt(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
9311
+ var e = r.state, t = r.instance, n = r.options, i = n.scroll, o = i === void 0 ? !0 : i, s = n.resize, a = s === void 0 ? !0 : s, l = nt(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
9312
9312
  return o && u.forEach(function(c) {
9313
9313
  c.addEventListener("scroll", t.update, xi);
9314
9314
  }), a && l.addEventListener("resize", t.update, xi), function() {
@@ -9347,7 +9347,7 @@ function nf(r) {
9347
9347
  });
9348
9348
  }
9349
9349
  function Ul(r) {
9350
- var e = rt(r), t = e.pageXOffset, n = e.pageYOffset;
9350
+ var e = nt(r), t = e.pageXOffset, n = e.pageYOffset;
9351
9351
  return {
9352
9352
  scrollLeft: t,
9353
9353
  scrollTop: n
@@ -9357,7 +9357,7 @@ function Kl(r) {
9357
9357
  return dn(Zt(r)).left + Ul(r).scrollLeft;
9358
9358
  }
9359
9359
  function yS(r) {
9360
- var e = rt(r), t = Zt(r), n = e.visualViewport, i = t.clientWidth, o = t.clientHeight, s = 0, a = 0;
9360
+ var e = nt(r), t = Zt(r), n = e.visualViewport, i = t.clientWidth, o = t.clientHeight, s = 0, a = 0;
9361
9361
  return n && (i = n.width, o = n.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (s = n.offsetLeft, a = n.offsetTop)), {
9362
9362
  width: i,
9363
9363
  height: o,
@@ -9367,7 +9367,7 @@ function yS(r) {
9367
9367
  }
9368
9368
  function bS(r) {
9369
9369
  var e, t = Zt(r), n = Ul(r), i = (e = r.ownerDocument) == null ? void 0 : e.body, o = mr(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = mr(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), a = -n.scrollLeft + Kl(r), l = -n.scrollTop;
9370
- return et(i || t).direction === "rtl" && (a += mr(t.clientWidth, i ? i.clientWidth : 0) - o), {
9370
+ return tt(i || t).direction === "rtl" && (a += mr(t.clientWidth, i ? i.clientWidth : 0) - o), {
9371
9371
  width: o,
9372
9372
  height: s,
9373
9373
  x: a,
@@ -9375,7 +9375,7 @@ function bS(r) {
9375
9375
  };
9376
9376
  }
9377
9377
  function Gl(r) {
9378
- var e = et(r), t = e.overflow, n = e.overflowX, i = e.overflowY;
9378
+ var e = tt(r), t = e.overflow, n = e.overflowX, i = e.overflowY;
9379
9379
  return /auto|scroll|overlay|hidden/.test(t + i + n);
9380
9380
  }
9381
9381
  function jm(r) {
@@ -9384,7 +9384,7 @@ function jm(r) {
9384
9384
  function Un(r, e) {
9385
9385
  var t;
9386
9386
  e === void 0 && (e = []);
9387
- var n = jm(r), i = n === ((t = r.ownerDocument) == null ? void 0 : t.body), o = rt(n), s = i ? [o].concat(o.visualViewport || [], Gl(n) ? n : []) : n, a = e.concat(s);
9387
+ var n = jm(r), i = n === ((t = r.ownerDocument) == null ? void 0 : t.body), o = nt(n), s = i ? [o].concat(o.visualViewport || [], Gl(n) ? n : []) : n, a = e.concat(s);
9388
9388
  return i ? a : a.concat(Un(rs(s)));
9389
9389
  }
9390
9390
  function rl(r) {
@@ -9403,7 +9403,7 @@ function of(r, e) {
9403
9403
  return e === Nm ? rl(yS(r)) : un(e) ? _S(e) : rl(bS(Zt(r)));
9404
9404
  }
9405
9405
  function SS(r) {
9406
- var e = Un(rs(r)), t = ["absolute", "fixed"].indexOf(et(r).position) >= 0, n = t && Ne(r) ? di(r) : r;
9406
+ var e = Un(rs(r)), t = ["absolute", "fixed"].indexOf(tt(r).position) >= 0, n = t && Ne(r) ? di(r) : r;
9407
9407
  return un(n) ? e.filter(function(i) {
9408
9408
  return un(i) && Pm(i, n) && _t(i) !== "body";
9409
9409
  }) : [];
@@ -9416,7 +9416,7 @@ function ES(r, e, t) {
9416
9416
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
9417
9417
  }
9418
9418
  function Vm(r) {
9419
- var e = r.reference, t = r.element, n = r.placement, i = n ? Qe(n) : null, o = n ? hn(n) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
9419
+ var e = r.reference, t = r.element, n = r.placement, i = n ? et(n) : null, o = n ? hn(n) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
9420
9420
  switch (i) {
9421
9421
  case Ce:
9422
9422
  l = {
@@ -9498,14 +9498,14 @@ function DS(r, e) {
9498
9498
  boundary: i,
9499
9499
  rootBoundary: o,
9500
9500
  padding: s
9501
- })[Qe(m)], p;
9501
+ })[et(m)], p;
9502
9502
  }, {});
9503
9503
  return Object.keys(h).sort(function(p, m) {
9504
9504
  return h[p] - h[m];
9505
9505
  });
9506
9506
  }
9507
9507
  function wS(r) {
9508
- if (Qe(r) === ts)
9508
+ if (et(r) === ts)
9509
9509
  return [];
9510
9510
  var e = qi(r);
9511
9511
  return [nf(r), e, nf(e)];
@@ -9513,8 +9513,8 @@ function wS(r) {
9513
9513
  function xS(r) {
9514
9514
  var e = r.state, t = r.options, n = r.name;
9515
9515
  if (!e.modifiersData[n]._skip) {
9516
- for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = Qe(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function($r, Tt) {
9517
- return $r.concat(Qe(Tt) === ts ? DS(e, {
9516
+ for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = et(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function($r, Tt) {
9517
+ return $r.concat(et(Tt) === ts ? DS(e, {
9518
9518
  placement: Tt,
9519
9519
  boundary: c,
9520
9520
  rootBoundary: f,
@@ -9523,13 +9523,13 @@ function xS(r) {
9523
9523
  allowedAutoPlacements: m
9524
9524
  }) : Tt);
9525
9525
  }, []), x = e.rects.reference, b = e.rects.popper, C = /* @__PURE__ */ new Map(), E = !0, F = _[0], V = 0; V < _.length; V++) {
9526
- var j = _[V], Q = Qe(j), J = hn(j) === cn, st = [Ce, Ve].indexOf(Q) >= 0, Ee = st ? "width" : "height", Y = oi(e, {
9526
+ var j = _[V], Q = et(j), J = hn(j) === cn, at = [Ce, Ve].indexOf(Q) >= 0, Ee = at ? "width" : "height", Y = oi(e, {
9527
9527
  placement: j,
9528
9528
  boundary: c,
9529
9529
  rootBoundary: f,
9530
9530
  altBoundary: d,
9531
9531
  padding: u
9532
- }), De = st ? J ? He : Oe : J ? Ve : Ce;
9532
+ }), De = at ? J ? He : Oe : J ? Ve : Ce;
9533
9533
  x[Ee] > b[Ee] && (De = qi(De));
9534
9534
  var Mr = qi(De), K = [];
9535
9535
  if (o && K.push(Y[Q] <= 0), a && K.push(Y[De] <= 0, Y[Mr] <= 0), K.every(function($r) {
@@ -9609,7 +9609,7 @@ const kS = {
9609
9609
  fn: OS
9610
9610
  };
9611
9611
  function AS(r, e, t) {
9612
- var n = Qe(r), i = [Oe, Ce].indexOf(n) >= 0 ? -1 : 1, o = typeof t == "function" ? t(Object.assign({}, e, {
9612
+ var n = et(r), i = [Oe, Ce].indexOf(n) >= 0 ? -1 : 1, o = typeof t == "function" ? t(Object.assign({}, e, {
9613
9613
  placement: r
9614
9614
  })) : t, s = o[0], a = o[1];
9615
9615
  return s = s || 0, a = (a || 0) * i, [Oe, He].indexOf(n) >= 0 ? {
@@ -9658,7 +9658,7 @@ function NS(r) {
9658
9658
  rootBoundary: u,
9659
9659
  padding: f,
9660
9660
  altBoundary: c
9661
- }), g = Qe(e.placement), y = hn(e.placement), D = !y, _ = ql(g), x = IS(_), b = e.modifiersData.popperOffsets, C = e.rects.reference, E = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
9661
+ }), g = et(e.placement), y = hn(e.placement), D = !y, _ = ql(g), x = IS(_), b = e.modifiersData.popperOffsets, C = e.rects.reference, E = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
9662
9662
  placement: e.placement
9663
9663
  })) : m, V = typeof F == "number" ? {
9664
9664
  mainAxis: F,
@@ -9672,10 +9672,10 @@ function NS(r) {
9672
9672
  };
9673
9673
  if (!!b) {
9674
9674
  if (o) {
9675
- var J, st = _ === "y" ? Ce : Oe, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Mr = De + v[st], K = De - v[Ee], X = h ? -E[Y] / 2 : 0, St = y === cn ? C[Y] : E[Y], wn = y === cn ? -E[Y] : -C[Y], bi = e.elements.arrow, $r = h && bi ? Wl(bi) : {
9675
+ var J, at = _ === "y" ? Ce : Oe, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Mr = De + v[at], K = De - v[Ee], X = h ? -E[Y] / 2 : 0, St = y === cn ? C[Y] : E[Y], wn = y === cn ? -E[Y] : -C[Y], bi = e.elements.arrow, $r = h && bi ? Wl(bi) : {
9676
9676
  width: 0,
9677
9677
  height: 0
9678
- }, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[st], _i = Tt[Ee], tr = qn(0, C[Y], $r[Y]), bs = D ? C[Y] / 2 - X - tr - xn - V.mainAxis : St - tr - xn - V.mainAxis, Jg = D ? -C[Y] / 2 + X + tr + _i + V.mainAxis : wn + tr + _i + V.mainAxis, _s = e.elements.arrow && di(e.elements.arrow), Yg = _s ? _ === "y" ? _s.clientTop || 0 : _s.clientLeft || 0 : 0, Hc = (J = j == null ? void 0 : j[_]) != null ? J : 0, Xg = De + bs - Hc - Yg, Zg = De + Jg - Hc, Wc = qn(h ? mo(Mr, Xg) : Mr, De, h ? mr(K, Zg) : K);
9678
+ }, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[at], _i = Tt[Ee], tr = qn(0, C[Y], $r[Y]), bs = D ? C[Y] / 2 - X - tr - xn - V.mainAxis : St - tr - xn - V.mainAxis, Jg = D ? -C[Y] / 2 + X + tr + _i + V.mainAxis : wn + tr + _i + V.mainAxis, _s = e.elements.arrow && di(e.elements.arrow), Yg = _s ? _ === "y" ? _s.clientTop || 0 : _s.clientLeft || 0 : 0, Hc = (J = j == null ? void 0 : j[_]) != null ? J : 0, Xg = De + bs - Hc - Yg, Zg = De + Jg - Hc, Wc = qn(h ? mo(Mr, Xg) : Mr, De, h ? mr(K, Zg) : K);
9679
9679
  b[_] = Wc, Q[_] = Wc - De;
9680
9680
  }
9681
9681
  if (a) {
@@ -9699,7 +9699,7 @@ function PS(r) {
9699
9699
  };
9700
9700
  }
9701
9701
  function BS(r) {
9702
- return r === rt(r) || !Ne(r) ? Ul(r) : PS(r);
9702
+ return r === nt(r) || !Ne(r) ? Ul(r) : PS(r);
9703
9703
  }
9704
9704
  function LS(r) {
9705
9705
  var e = r.getBoundingClientRect(), t = fn(e.width) / r.offsetWidth || 1, n = fn(e.height) / r.offsetHeight || 1;
@@ -9873,14 +9873,14 @@ function JS(r) {
9873
9873
  var Q = j.name;
9874
9874
  return Q;
9875
9875
  });
9876
- if (qS(_), Qe(c.options.placement) === ts) {
9876
+ if (qS(_), et(c.options.placement) === ts) {
9877
9877
  var x = c.orderedModifiers.find(function(j) {
9878
9878
  var Q = j.name;
9879
9879
  return Q === "flip";
9880
9880
  });
9881
9881
  x || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
9882
9882
  }
9883
- var b = et(l), C = b.marginTop, E = b.marginRight, F = b.marginBottom, V = b.marginLeft;
9883
+ var b = tt(l), C = b.marginTop, E = b.marginRight, F = b.marginBottom, V = b.marginLeft;
9884
9884
  [C, E, F, V].some(function(j) {
9885
9885
  return parseFloat(j);
9886
9886
  }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
@@ -10016,7 +10016,7 @@ const ZS = {
10016
10016
  UPPERCASE: "uppercase",
10017
10017
  LOWERCASE: "lowercase",
10018
10018
  CAPITALIZE: "capitalize"
10019
- }), Ye = Object.freeze({
10019
+ }), Xe = Object.freeze({
10020
10020
  LEFT: "left",
10021
10021
  CENTER: "center",
10022
10022
  RIGHT: "right",
@@ -10094,6 +10094,14 @@ const ZS = {
10094
10094
  }), pt = Object.freeze({
10095
10095
  URL: "url",
10096
10096
  BLOCK: "block"
10097
+ }), B = Object.freeze({
10098
+ FONTS: Symbol("fonts"),
10099
+ FONT_SIZES: Symbol("fontSizes"),
10100
+ EDITOR: Symbol("editor"),
10101
+ LOCAL_STORAGE: Symbol("localStorage"),
10102
+ FAVORITE_COLORS: Symbol("favoriteColors"),
10103
+ PAGE_BLOCKS: Symbol("pageBlocks"),
10104
+ POPUP_MODE: Symbol("popupMode")
10097
10105
  });
10098
10106
  var QS = function() {
10099
10107
  var e = this, t = e.$createElement, n = e._self._c || t;
@@ -10218,14 +10226,7 @@ function hE(r) {
10218
10226
  }
10219
10227
  const pE = /* @__PURE__ */ function() {
10220
10228
  return dE.exports;
10221
- }(), L = Object.freeze({
10222
- FONTS: Symbol("fonts"),
10223
- FONT_SIZES: Symbol("fontSizes"),
10224
- EDITOR: Symbol("editor"),
10225
- LOCAL_STORAGE: Symbol("localStorage"),
10226
- FAVORITE_COLORS: Symbol("favoriteColors"),
10227
- PAGE_BLOCKS: Symbol("pageBlocks")
10228
- });
10229
+ }();
10229
10230
  var mE = function() {
10230
10231
  var e = this, t = e.$createElement, n = e._self._c || t;
10231
10232
  return n("button", {
@@ -10381,12 +10382,12 @@ function kE(r, e, t) {
10381
10382
  return (parseInt(r) / i).toFixed(2);
10382
10383
  }
10383
10384
  const AE = {
10384
- start: Ye.LEFT,
10385
- end: Ye.RIGHT
10385
+ start: Xe.LEFT,
10386
+ end: Xe.RIGHT
10386
10387
  };
10387
10388
  function TE(r) {
10388
10389
  const e = AE[r] || r;
10389
- return Ye.values.includes(e) ? e : null;
10390
+ return Xe.values.includes(e) ? e : null;
10390
10391
  }
10391
10392
  const ME = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">
10392
10393
  <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M23 7H5v2h18V7Zm-3 4H8v2h12v-2Zm3 4H5v2h18v-2ZM8 19h12v2H8v-2Z" clip-rule="evenodd"/>
@@ -10567,7 +10568,7 @@ var G = function(r) {
10567
10568
  return r;
10568
10569
  }, mD = gn, vD = Object, yn = function(r) {
10569
10570
  return vD(mD(r));
10570
- }, gD = U, yD = yn, bD = gD({}.hasOwnProperty), nt = Object.hasOwn || function(e, t) {
10571
+ }, gD = U, yD = yn, bD = gD({}.hasOwnProperty), it = Object.hasOwn || function(e, t) {
10571
10572
  return bD(yD(e), t);
10572
10573
  }, _D = U, SD = 0, ED = Math.random(), DD = _D(1 .toString), Zl = function(r) {
10573
10574
  return "Symbol(" + (r === void 0 ? "" : r) + ")_" + DD(++SD + ED, 36);
@@ -10577,13 +10578,13 @@ var G = function(r) {
10577
10578
  return wD(r) ? r : void 0;
10578
10579
  }, hi = function(r, e) {
10579
10580
  return arguments.length < 2 ? xD(Hs[r]) : Hs[r] && Hs[r][e];
10580
- }, CD = hi, OD = CD("navigator", "userAgent") || "", Ym = le, Ws = OD, Sf = Ym.process, Ef = Ym.Deno, Df = Sf && Sf.versions || Ef && Ef.version, wf = Df && Df.v8, Ke, go;
10581
- wf && (Ke = wf.split("."), go = Ke[0] > 0 && Ke[0] < 4 ? 1 : +(Ke[0] + Ke[1]));
10582
- !go && Ws && (Ke = Ws.match(/Edge\/(\d+)/), (!Ke || Ke[1] >= 74) && (Ke = Ws.match(/Chrome\/(\d+)/), Ke && (go = +Ke[1])));
10581
+ }, CD = hi, OD = CD("navigator", "userAgent") || "", Ym = le, Ws = OD, Sf = Ym.process, Ef = Ym.Deno, Df = Sf && Sf.versions || Ef && Ef.version, wf = Df && Df.v8, Ge, go;
10582
+ wf && (Ge = wf.split("."), go = Ge[0] > 0 && Ge[0] < 4 ? 1 : +(Ge[0] + Ge[1]));
10583
+ !go && Ws && (Ge = Ws.match(/Edge\/(\d+)/), (!Ge || Ge[1] >= 74) && (Ge = Ws.match(/Chrome\/(\d+)/), Ge && (go = +Ge[1])));
10583
10584
  var Ql = go, xf = Ql, kD = G, Xm = !!Object.getOwnPropertySymbols && !kD(function() {
10584
10585
  var r = Symbol();
10585
10586
  return !String(r) || !(Object(r) instanceof Symbol) || !Symbol.sham && xf && xf < 41;
10586
- }), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = nt, $D = Zl, Of = Xm, Qm = Zm, Nr = MD("wks"), vr = TD.Symbol, kf = vr && vr.for, FD = Qm ? vr : vr && vr.withoutSetter || $D, Se = function(r) {
10587
+ }), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = it, $D = Zl, Of = Xm, Qm = Zm, Nr = MD("wks"), vr = TD.Symbol, kf = vr && vr.for, FD = Qm ? vr : vr && vr.withoutSetter || $D, Se = function(r) {
10587
10588
  if (!Cf(Nr, r) || !(Of || typeof Nr[r] == "string")) {
10588
10589
  var e = "Symbol." + r;
10589
10590
  Of && Cf(vr, r) ? Nr[r] = vr[r] : Qm && kf ? Nr[r] = kf(e) : Nr[r] = FD(e);
@@ -10591,7 +10592,7 @@ var Ql = go, xf = Ql, kD = G, Xm = !!Object.getOwnPropertySymbols && !kD(functio
10591
10592
  return Nr[r];
10592
10593
  }, ID = Se, ND = ID("toStringTag"), ev = {};
10593
10594
  ev[ND] = "z";
10594
- var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
10595
+ var ec = String(ev) === "[object z]", ot = {}, RD = G, st = !RD(function() {
10595
10596
  return Object.defineProperty({}, 1, { get: function() {
10596
10597
  return 7;
10597
10598
  } })[1] != 7;
@@ -10599,13 +10600,13 @@ var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
10599
10600
  return typeof r == "object" ? r !== null : PD(r);
10600
10601
  }, BD = le, Af = We, il = BD.document, LD = Af(il) && Af(il.createElement), tc = function(r) {
10601
10602
  return LD ? il.createElement(r) : {};
10602
- }, zD = ot, jD = G, VD = tc, tv = !zD && !jD(function() {
10603
+ }, zD = st, jD = G, VD = tc, tv = !zD && !jD(function() {
10603
10604
  return Object.defineProperty(VD("div"), "a", {
10604
10605
  get: function() {
10605
10606
  return 7;
10606
10607
  }
10607
10608
  }).a != 7;
10608
- }), HD = ot, WD = G, rv = HD && WD(function() {
10609
+ }), HD = st, WD = G, rv = HD && WD(function() {
10609
10610
  return Object.defineProperty(function() {
10610
10611
  }, "prototype", {
10611
10612
  value: 42,
@@ -10653,8 +10654,8 @@ var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
10653
10654
  }, mw = pw, vw = nv, ic = function(r) {
10654
10655
  var e = mw(r, "string");
10655
10656
  return vw(e) ? e : e + "";
10656
- }, gw = ot, yw = tv, bw = rv, ki = Re, $f = ic, _w = TypeError, Gs = Object.defineProperty, Sw = Object.getOwnPropertyDescriptor, Js = "enumerable", Ys = "configurable", Xs = "writable";
10657
- it.f = gw ? bw ? function(e, t, n) {
10657
+ }, gw = st, yw = tv, bw = rv, ki = Re, $f = ic, _w = TypeError, Gs = Object.defineProperty, Sw = Object.getOwnPropertyDescriptor, Js = "enumerable", Ys = "configurable", Xs = "writable";
10658
+ ot.f = gw ? bw ? function(e, t, n) {
10658
10659
  if (ki(e), t = $f(t), ki(n), typeof e == "function" && t === "prototype" && "value" in n && Xs in n && !n[Xs]) {
10659
10660
  var i = Sw(e, t);
10660
10661
  i && i[Xs] && (e[t] = n.value, n = {
@@ -10674,7 +10675,7 @@ it.f = gw ? bw ? function(e, t, n) {
10674
10675
  throw _w("Accessors not supported");
10675
10676
  return "value" in n && (e[t] = n.value), e;
10676
10677
  };
10677
- var iv = { exports: {} }, ol = ot, Ew = nt, ov = Function.prototype, Dw = ol && Object.getOwnPropertyDescriptor, oc = Ew(ov, "name"), ww = oc && function() {
10678
+ var iv = { exports: {} }, ol = st, Ew = it, ov = Function.prototype, Dw = ol && Object.getOwnPropertyDescriptor, oc = Ew(ov, "name"), ww = oc && function() {
10678
10679
  }.name === "something", xw = oc && (!ol || ol && Dw(ov, "name").configurable), sc = {
10679
10680
  EXISTS: oc,
10680
10681
  PROPER: ww,
@@ -10690,13 +10691,13 @@ var ac = sl.inspectSource, Aw = le, Tw = re, Mw = ac, Ff = Aw.WeakMap, sv = Tw(F
10690
10691
  writable: !(r & 4),
10691
10692
  value: e
10692
10693
  };
10693
- }, $w = ot, Fw = it, Iw = as, bn = $w ? function(r, e, t) {
10694
+ }, $w = st, Fw = ot, Iw = as, bn = $w ? function(r, e, t) {
10694
10695
  return Fw.f(r, e, Iw(1, t));
10695
10696
  } : function(r, e, t) {
10696
10697
  return r[e] = t, r;
10697
10698
  }, Nw = ns.exports, Rw = Zl, If = Nw("keys"), lc = function(r) {
10698
10699
  return If[r] || (If[r] = Rw(r));
10699
- }, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw = bn, Qs = nt, ea = Xl, zw = lc, jw = ls, Nf = "Object already initialized", al = av.TypeError, Vw = av.WeakMap, yo, si, bo, Hw = function(r) {
10700
+ }, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw = bn, Qs = it, ea = Xl, zw = lc, jw = ls, Nf = "Object already initialized", al = av.TypeError, Vw = av.WeakMap, yo, si, bo, Hw = function(r) {
10700
10701
  return bo(r) ? si(r) : yo(r, {});
10701
10702
  }, Ww = function(r) {
10702
10703
  return function(e) {
@@ -10735,7 +10736,7 @@ var _n = {
10735
10736
  has: bo,
10736
10737
  enforce: Hw,
10737
10738
  getterFor: Ww
10738
- }, Kw = G, Gw = re, Ai = nt, ll = ot, Jw = sc.CONFIGURABLE, Yw = ac, lv = _n, Xw = lv.enforce, Zw = lv.get, Ui = Object.defineProperty, Qw = ll && !Kw(function() {
10739
+ }, Kw = G, Gw = re, Ai = it, ll = st, Jw = sc.CONFIGURABLE, Yw = ac, lv = _n, Xw = lv.enforce, Zw = lv.get, Ui = Object.defineProperty, Qw = ll && !Kw(function() {
10739
10740
  return Ui(function() {
10740
10741
  }, "length", { value: 8 }).length !== 8;
10741
10742
  }), ex = String(String).split("String"), tx = iv.exports = function(r, e, t) {
@@ -10750,7 +10751,7 @@ var _n = {
10750
10751
  Function.prototype.toString = tx(function() {
10751
10752
  return Gw(this) && Zw(this).source || Yw(this);
10752
10753
  }, "toString");
10753
- var rx = re, nx = it, ix = iv.exports, ox = Yl, Cr = function(r, e, t, n) {
10754
+ var rx = re, nx = ot, ix = iv.exports, ox = Yl, Cr = function(r, e, t, n) {
10754
10755
  n || (n = {});
10755
10756
  var i = n.enumerable, o = n.name !== void 0 ? n.name : e;
10756
10757
  if (rx(t) && ix(t, o, n), n.global)
@@ -10934,7 +10935,7 @@ pc.f = pC ? function(e) {
10934
10935
  } : bv;
10935
10936
  var mC = us, vC = gn, Sn = function(r) {
10936
10937
  return mC(vC(r));
10937
- }, gC = ot, yC = qe, bC = pc, _C = as, SC = Sn, EC = ic, DC = nt, wC = tv, Wf = Object.getOwnPropertyDescriptor;
10938
+ }, gC = st, yC = qe, bC = pc, _C = as, SC = Sn, EC = ic, DC = it, wC = tv, Wf = Object.getOwnPropertyDescriptor;
10938
10939
  hc.f = gC ? Wf : function(e, t) {
10939
10940
  if (e = SC(e), t = EC(t), wC)
10940
10941
  try {
@@ -10963,7 +10964,7 @@ var ds = {}, xC = fs, CC = Math.max, OC = Math.min, Sv = function(r, e) {
10963
10964
  }, MC = {
10964
10965
  includes: qf(!0),
10965
10966
  indexOf: qf(!1)
10966
- }, $C = U, oa = nt, FC = Sn, IC = MC.indexOf, NC = ls, Uf = $C([].push), Ev = function(r, e) {
10967
+ }, $C = U, oa = it, FC = Sn, IC = MC.indexOf, NC = ls, Uf = $C([].push), Ev = function(r, e) {
10967
10968
  var t = FC(r), n = 0, i = [], o;
10968
10969
  for (o in t)
10969
10970
  !oa(NC, o) && oa(t, o) && Uf(i, o);
@@ -10987,7 +10988,7 @@ vc.f = Object.getOwnPropertySymbols;
10987
10988
  var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Reflect", "ownKeys") || function(e) {
10988
10989
  var t = jC.f(HC(e)), n = VC.f;
10989
10990
  return n ? WC(t, n(e)) : t;
10990
- }, Kf = nt, UC = qC, KC = hc, GC = it, JC = function(r, e, t) {
10991
+ }, Kf = it, UC = qC, KC = hc, GC = ot, JC = function(r, e, t) {
10991
10992
  for (var n = UC(e), i = GC.f, o = KC.f, s = 0; s < n.length; s++) {
10992
10993
  var a = n[s];
10993
10994
  !Kf(r, a) && !(t && Kf(t, a)) && i(r, a, o(e, a));
@@ -11033,7 +11034,7 @@ xO({ global: !0, forced: parseInt != Zf }, {
11033
11034
  });
11034
11035
  var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
11035
11036
  return CO(e, OO);
11036
- }, Qf = ot, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO = yn, IO = us, Pr = Object.assign, ed = Object.defineProperty, NO = kO([].concat), RO = !Pr || TO(function() {
11037
+ }, Qf = st, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO = yn, IO = us, Pr = Object.assign, ed = Object.defineProperty, NO = kO([].concat), RO = !Pr || TO(function() {
11037
11038
  if (Qf && Pr({ b: 1 }, Pr(ed({}, "a", {
11038
11039
  enumerable: !0,
11039
11040
  get: function() {
@@ -11070,7 +11071,7 @@ HO({ target: "Array", proto: !0, forced: !UO }, {
11070
11071
  return WO(this, e, arguments.length > 1 ? arguments[1] : void 0);
11071
11072
  }
11072
11073
  });
11073
- var kv = {}, KO = ot, GO = rv, JO = it, YO = Re, XO = Sn, ZO = Ov;
11074
+ var kv = {}, KO = st, GO = rv, JO = ot, YO = Re, XO = Sn, ZO = Ov;
11074
11075
  kv.f = KO && !GO ? Object.defineProperties : function(e, t) {
11075
11076
  YO(e);
11076
11077
  for (var n = XO(t), i = ZO(t), o = i.length, s = 0, a; o > s; )
@@ -11101,7 +11102,7 @@ nk[Av] = !0;
11101
11102
  var gc = Object.create || function(e, t) {
11102
11103
  var n;
11103
11104
  return e !== null ? (ca[cl] = tk(e), n = new ca(), ca[cl] = null, n[Av] = e) : n = Gi(), t === void 0 ? n : rk.f(n, t);
11104
- }, lk = Se, ck = gc, uk = it.f, fl = lk("unscopables"), dl = Array.prototype;
11105
+ }, lk = Se, ck = gc, uk = ot.f, fl = lk("unscopables"), dl = Array.prototype;
11105
11106
  dl[fl] == null && uk(dl, fl, {
11106
11107
  configurable: !0,
11107
11108
  value: ck(null)
@@ -11112,7 +11113,7 @@ var fk = function(r) {
11112
11113
  function r() {
11113
11114
  }
11114
11115
  return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype;
11115
- }), pk = nt, mk = re, vk = yn, gk = lc, yk = hk, sd = gk("IE_PROTO"), hl = Object, bk = hl.prototype, Mv = yk ? hl.getPrototypeOf : function(r) {
11116
+ }), pk = it, mk = re, vk = yn, gk = lc, yk = hk, sd = gk("IE_PROTO"), hl = Object, bk = hl.prototype, Mv = yk ? hl.getPrototypeOf : function(r) {
11116
11117
  var e = vk(r);
11117
11118
  if (pk(e, sd))
11118
11119
  return e[sd];
@@ -11131,7 +11132,7 @@ Sk(Dr[pl]) || Ek(Dr, pl, function() {
11131
11132
  var Fv = {
11132
11133
  IteratorPrototype: Dr,
11133
11134
  BUGGY_SAFARI_ITERATORS: $v
11134
- }, xk = it.f, Ck = nt, Ok = Se, ld = Ok("toStringTag"), yc = function(r, e, t) {
11135
+ }, xk = ot.f, Ck = it, Ok = Se, ld = Ok("toStringTag"), yc = function(r, e, t) {
11135
11136
  r && !t && (r = r.prototype), r && !Ck(r, ld) && xk(r, ld, { configurable: !0, value: e });
11136
11137
  }, kk = Fv.IteratorPrototype, Ak = gc, Tk = as, Mk = yc, $k = gi, Fk = function() {
11137
11138
  return this;
@@ -11191,7 +11192,7 @@ var Fv = {
11191
11192
  else
11192
11193
  Vk({ target: e, proto: !0, forced: Mi || u }, m);
11193
11194
  return c[An] !== d && da(c, An, d, { name: i }), Jk[e] = d, m;
11194
- }, Qk = Sn, bc = fk, pd = gi, Bv = _n, eA = it.f, tA = Pv, rA = ot, Lv = "Array Iterator", nA = Bv.set, iA = Bv.getterFor(Lv), oA = tA(Array, "Array", function(r, e) {
11195
+ }, Qk = Sn, bc = fk, pd = gi, Bv = _n, eA = ot.f, tA = Pv, rA = st, Lv = "Array Iterator", nA = Bv.set, iA = Bv.getterFor(Lv), oA = tA(Array, "Array", function(r, e) {
11195
11196
  nA(this, {
11196
11197
  type: Lv,
11197
11198
  target: Qk(r),
@@ -11233,7 +11234,7 @@ var vA = Cr, Hv = function(r, e, t) {
11233
11234
  for (var n in e)
11234
11235
  vA(r, n, e[n], t);
11235
11236
  return r;
11236
- }, hs = { exports: {} }, Wv = {}, gA = ic, yA = it, bA = as, _A = function(r, e, t) {
11237
+ }, hs = { exports: {} }, Wv = {}, gA = ic, yA = ot, bA = as, _A = function(r, e, t) {
11237
11238
  var n = gA(e);
11238
11239
  n in r ? yA.f(r, n, bA(0, t)) : r[n] = t;
11239
11240
  }, yd = Sv, SA = mi, EA = _A, DA = Array, wA = Math.max, xA = function(r, e, t) {
@@ -11261,7 +11262,7 @@ var TA = G, MA = TA(function() {
11261
11262
  return !FA(e) || bd && IA(e) == "ArrayBuffer" ? !1 : Ji ? Ji(e) : !0;
11262
11263
  } : Ji, RA = G, PA = !RA(function() {
11263
11264
  return Object.isExtensible(Object.preventExtensions({}));
11264
- }), BA = Qt, LA = U, zA = ls, jA = We, Sc = nt, VA = it.f, _d = ds, HA = Wv, Ec = Kv, WA = Zl, qA = PA, Gv = !1, kt = WA("meta"), UA = 0, Dc = function(r) {
11265
+ }), BA = Qt, LA = U, zA = ls, jA = We, Sc = it, VA = ot.f, _d = ds, HA = Wv, Ec = Kv, WA = Zl, qA = PA, Gv = !1, kt = WA("meta"), UA = 0, Dc = function(r) {
11265
11266
  VA(r, kt, { value: {
11266
11267
  objectID: "O" + UA++,
11267
11268
  weakData: {}
@@ -11451,7 +11452,7 @@ var TT = function(r, e) {
11451
11452
  }), l.prototype = a, a.constructor = l), (p || v) && (c("delete"), c("has"), n && c("get")), (v || h) && c(o), i && a.clear && delete a.clear;
11452
11453
  }
11453
11454
  return u[r] = l, IT({ global: !0, constructor: !0, forced: l != s }, u), HT(l, r), i || t.setStrong(l, r, n), l;
11454
- }, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td = nt, tg = _n, YT = tg.set, XT = tg.getterFor, ZT = eg.find, QT = eg.findIndex, e2 = UT([].splice), t2 = 0, Fi = function(r) {
11455
+ }, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td = it, tg = _n, YT = tg.set, XT = tg.getterFor, ZT = eg.find, QT = eg.findIndex, e2 = UT([].splice), t2 = 0, Fi = function(r) {
11455
11456
  return r.frozen || (r.frozen = new rg());
11456
11457
  }, rg = function() {
11457
11458
  this.entries = [];
@@ -11991,7 +11992,7 @@ var yr = function(r) {
11991
11992
  return !0;
11992
11993
  }
11993
11994
  return !1;
11994
- }, Gn = typeof window < "u" ? window : {}, Li = /* @__PURE__ */ new WeakMap(), Ud = /auto|scroll/, $M = /^tb|vertical/, FM = /msie|trident/i.test(Gn.navigator && Gn.navigator.userAgent), at = function(r) {
11995
+ }, Gn = typeof window < "u" ? window : {}, Li = /* @__PURE__ */ new WeakMap(), Ud = /auto|scroll/, $M = /^tb|vertical/, FM = /msie|trident/i.test(Gn.navigator && Gn.navigator.userAgent), lt = function(r) {
11995
11996
  return parseFloat(r || "0");
11996
11997
  }, rn = function(r, e, t) {
11997
11998
  return r === void 0 && (r = 0), e === void 0 && (e = 0), t === void 0 && (t = !1), new TM((t ? e : r) || 0, (t ? r : e) || 0);
@@ -12005,7 +12006,7 @@ var yr = function(r) {
12005
12006
  return Li.get(r);
12006
12007
  if (vg(r))
12007
12008
  return Li.set(r, Kd), Kd;
12008
- var t = getComputedStyle(r), n = Cc(r) && r.ownerSVGElement && r.getBBox(), i = !FM && t.boxSizing === "border-box", o = $M.test(t.writingMode || ""), s = !n && Ud.test(t.overflowY || ""), a = !n && Ud.test(t.overflowX || ""), l = n ? 0 : at(t.paddingTop), u = n ? 0 : at(t.paddingRight), c = n ? 0 : at(t.paddingBottom), f = n ? 0 : at(t.paddingLeft), d = n ? 0 : at(t.borderTopWidth), h = n ? 0 : at(t.borderRightWidth), p = n ? 0 : at(t.borderBottomWidth), m = n ? 0 : at(t.borderLeftWidth), v = f + u, g = l + c, y = m + h, D = d + p, _ = a ? r.offsetHeight - D - r.clientHeight : 0, x = s ? r.offsetWidth - y - r.clientWidth : 0, b = i ? v + y : 0, C = i ? g + D : 0, E = n ? n.width : at(t.width) - b - x, F = n ? n.height : at(t.height) - C - _, V = E + v + x + y, j = F + g + _ + D, Q = yr({
12009
+ var t = getComputedStyle(r), n = Cc(r) && r.ownerSVGElement && r.getBBox(), i = !FM && t.boxSizing === "border-box", o = $M.test(t.writingMode || ""), s = !n && Ud.test(t.overflowY || ""), a = !n && Ud.test(t.overflowX || ""), l = n ? 0 : lt(t.paddingTop), u = n ? 0 : lt(t.paddingRight), c = n ? 0 : lt(t.paddingBottom), f = n ? 0 : lt(t.paddingLeft), d = n ? 0 : lt(t.borderTopWidth), h = n ? 0 : lt(t.borderRightWidth), p = n ? 0 : lt(t.borderBottomWidth), m = n ? 0 : lt(t.borderLeftWidth), v = f + u, g = l + c, y = m + h, D = d + p, _ = a ? r.offsetHeight - D - r.clientHeight : 0, x = s ? r.offsetWidth - y - r.clientWidth : 0, b = i ? v + y : 0, C = i ? g + D : 0, E = n ? n.width : lt(t.width) - b - x, F = n ? n.height : lt(t.height) - C - _, V = E + v + x + y, j = F + g + _ + D, Q = yr({
12009
12010
  devicePixelContentBoxSize: rn(Math.round(E * devicePixelRatio), Math.round(F * devicePixelRatio), o),
12010
12011
  borderBoxSize: rn(V, j, o),
12011
12012
  contentBoxSize: rn(E, F, o),
@@ -12336,7 +12337,7 @@ K$("match", function(r, e, t) {
12336
12337
  }
12337
12338
  ];
12338
12339
  });
12339
- var Q$ = ot, eF = sc.EXISTS, Cg = U, tF = it.f, Og = Function.prototype, rF = Cg(Og.toString), kg = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, nF = Cg(kg.exec), iF = "name";
12340
+ var Q$ = st, eF = sc.EXISTS, Cg = U, tF = ot.f, Og = Function.prototype, rF = Cg(Og.toString), kg = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, nF = Cg(kg.exec), iF = "name";
12340
12341
  Q$ && !eF && tF(Og, iF, {
12341
12342
  configurable: !0,
12342
12343
  get: function() {
@@ -12816,7 +12817,7 @@ function FF({ valueRef: r, digits: e, min: t, max: n, onChange: i }) {
12816
12817
  };
12817
12818
  }
12818
12819
  function yi({ onBeforeOpened: r, onClosed: e, wrapperRef: t, modalRef: n } = {}) {
12819
- const i = z(L.EDITOR), o = q(!1);
12820
+ const i = z(B.EDITOR), o = q(!1);
12820
12821
  let s;
12821
12822
  function a() {
12822
12823
  const f = wo(t), d = wo(n);
@@ -12868,7 +12869,7 @@ const IF = [
12868
12869
  "A"
12869
12870
  ];
12870
12871
  function $g({ hostRef: r, isActiveRef: e }) {
12871
- const t = z(L.EDITOR), n = wo(r);
12872
+ const t = z(B.EDITOR), n = wo(r);
12872
12873
  function i(o) {
12873
12874
  IF.includes(o.target.tagName) || (t.isFocused && (o.stopPropagation(), o.preventDefault()), t.chain().restoreSelection().run());
12874
12875
  }
@@ -12906,7 +12907,7 @@ const BF = {
12906
12907
  name: "ScrollView",
12907
12908
  setup() {
12908
12909
  const r = q(null), e = q(null);
12909
- return ft(Fg, e), mp(() => {
12910
+ return Ke(Fg, e), mp(() => {
12910
12911
  const t = Z.getOptions(r.value.attributes), n = new Z(r.value, t);
12911
12912
  e.value = n.getScrollElement();
12912
12913
  }), { hostRef: r };
@@ -13236,13 +13237,13 @@ class Ct {
13236
13237
  }
13237
13238
  }
13238
13239
  Fr(Ct, "window", window);
13239
- const ut = class {
13240
+ const ft = class {
13240
13241
  static normalize(e) {
13241
13242
  const t = {
13242
13243
  content: e,
13243
- parser: ut.PARSER
13244
+ parser: ft.PARSER
13244
13245
  };
13245
- return new ut(t).normalize();
13246
+ return new ft(t).normalize();
13246
13247
  }
13247
13248
  constructor({ content: e, parser: t }) {
13248
13249
  this._content = e, this._parser = t, this._dom = null;
@@ -13268,9 +13269,9 @@ const ut = class {
13268
13269
  const t = new DocumentFragment(), n = Array.from(e.childNodes);
13269
13270
  let i;
13270
13271
  const o = (s) => {
13271
- this._assignElementProperties(s, e, ut.BLOCK_STYLES), t.append(s);
13272
+ this._assignElementProperties(s, e, ft.BLOCK_STYLES), t.append(s);
13272
13273
  };
13273
- this._assignElementProperties(e, e.parentElement, ut.BLOCK_STYLES);
13274
+ this._assignElementProperties(e, e.parentElement, ft.BLOCK_STYLES);
13274
13275
  for (const s of n) {
13275
13276
  if (s.tagName === "P") {
13276
13277
  o(s), i = null;
@@ -13278,7 +13279,7 @@ const ut = class {
13278
13279
  }
13279
13280
  i || (i = document.createElement("p"), o(i)), i.append(s);
13280
13281
  }
13281
- e.append(t), this._removeStyleProperties(e, ut.BLOCK_STYLES);
13282
+ e.append(t), this._removeStyleProperties(e, ft.BLOCK_STYLES);
13282
13283
  }
13283
13284
  _normalizeSettingsStructure(e) {
13284
13285
  if (this._isOnlyTextContent(e))
@@ -13306,10 +13307,10 @@ const ut = class {
13306
13307
  return Array.from(e.childNodes).every((t) => t.nodeType === Node.TEXT_NODE);
13307
13308
  }
13308
13309
  _isBlockNode(e) {
13309
- return ut.BLOCK_NODE_NAMES.includes(e.tagName);
13310
+ return ft.BLOCK_NODE_NAMES.includes(e.tagName);
13310
13311
  }
13311
13312
  _getMigratingStyles(e, { customProperties: t } = {}) {
13312
- const n = ut.BLOCK_STYLES, i = [];
13313
+ const n = ft.BLOCK_STYLES, i = [];
13313
13314
  for (let o = 0; o < e.style.length; o++) {
13314
13315
  const s = e.style.item(o);
13315
13316
  n.includes(s) || !t && s.startsWith("--") || i.push(s);
@@ -13329,7 +13330,7 @@ const ut = class {
13329
13330
  }
13330
13331
  }
13331
13332
  _canAssignElementProperty(e, t, n) {
13332
- return e.style.getPropertyValue(n) ? !1 : ut.ASSIGN_STYLE_RULES.every((i) => i.tag.test(e.tagName.toLowerCase()) ? !i.ignore.test(n) : !0);
13333
+ return e.style.getPropertyValue(n) ? !1 : ft.ASSIGN_STYLE_RULES.every((i) => i.tag.test(e.tagName.toLowerCase()) ? !i.ignore.test(n) : !0);
13333
13334
  }
13334
13335
  _removeStyleProperties(e, t) {
13335
13336
  for (const n of t)
@@ -13337,7 +13338,7 @@ const ut = class {
13337
13338
  e.style.length === 0 && e.removeAttribute("style");
13338
13339
  }
13339
13340
  };
13340
- let wt = ut;
13341
+ let wt = ft;
13341
13342
  Fr(wt, "PARSER", new DOMParser()), Fr(wt, "BLOCK_STYLES", ["text-align", "line-height"]), Fr(wt, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]), Fr(wt, "ASSIGN_STYLE_RULES", [
13342
13343
  {
13343
13344
  tag: /^(b|strong)$/,
@@ -13871,7 +13872,7 @@ const JI = {
13871
13872
  }
13872
13873
  },
13873
13874
  setup() {
13874
- ft(Wt.SESSION, {});
13875
+ Ke(Wt.SESSION, {});
13875
13876
  }
13876
13877
  }, kh = {};
13877
13878
  var YI = /* @__PURE__ */ $(
@@ -13966,7 +13967,7 @@ const tN = {
13966
13967
  wrapperRef: t,
13967
13968
  modalRef: n
13968
13969
  });
13969
- return ft(Wt.ACTIVE_MANAGER, i), ft(Wt.TOGGLER, o), {
13970
+ return Ke(Wt.ACTIVE_MANAGER, i), Ke(Wt.TOGGLER, o), {
13970
13971
  dropdownRef: t,
13971
13972
  modalRef: n,
13972
13973
  toggler: o
@@ -14094,7 +14095,7 @@ const lN = {
14094
14095
  }
14095
14096
  },
14096
14097
  setup(r, { emit: e }) {
14097
- const t = z(L.FAVORITE_COLORS), n = z(L.EDITOR), i = q(null), o = iN({
14098
+ const t = z(B.FAVORITE_COLORS), n = z(B.EDITOR), i = q(null), o = iN({
14098
14099
  onClosed: (a) => {
14099
14100
  n.commands.restoreSelection(), a !== r.value && e("change", a);
14100
14101
  },
@@ -14197,7 +14198,7 @@ const hN = [ne.FONT_SIZE, ne.FONT_WEIGHT], pN = {
14197
14198
  tooltip: pe
14198
14199
  },
14199
14200
  setup() {
14200
- const r = z(L.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i = A(() => {
14201
+ const r = z(B.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i = A(() => {
14201
14202
  const { attributes: l, marks: u } = n.value;
14202
14203
  return !!l.length || !!u.length;
14203
14204
  });
@@ -14233,7 +14234,7 @@ const Rg = /* @__PURE__ */ function() {
14233
14234
  return mN.exports;
14234
14235
  }(), $h = "wswg.recently_used_fonts";
14235
14236
  function gN({ limit: r }) {
14236
- const e = z(L.LOCAL_STORAGE), t = q(e.getItem($h) || []);
14237
+ const e = z(B.LOCAL_STORAGE), t = q(e.getItem($h) || []);
14237
14238
  function n(o) {
14238
14239
  t.value = Array.from(/* @__PURE__ */ new Set([o, ...t.value])).slice(0, r), e.setItem($h, t.value);
14239
14240
  }
@@ -14288,7 +14289,7 @@ const _N = {
14288
14289
  tooltip: pe
14289
14290
  },
14290
14291
  setup() {
14291
- const r = z(L.FONTS), e = z(L.EDITOR), t = gN({ limit: 5 }), n = A(() => ({
14292
+ const r = z(B.FONTS), e = z(B.EDITOR), t = gN({ limit: 5 }), n = A(() => ({
14292
14293
  id: "Recently Used",
14293
14294
  options: t.fonts.value.map((l) => ({ id: l }))
14294
14295
  })), i = A(() => {
@@ -14359,7 +14360,7 @@ const CN = {
14359
14360
  tooltip: pe
14360
14361
  },
14361
14362
  setup() {
14362
- const r = z(L.EDITOR), e = r.commands.getFont(), t = A(() => e.value.weights.map((o) => ({ id: o }))), n = r.commands.getFontWeight();
14363
+ const r = z(B.EDITOR), e = r.commands.getFont(), t = A(() => e.value.weights.map((o) => ({ id: o }))), n = r.commands.getFontWeight();
14363
14364
  return {
14364
14365
  options: t,
14365
14366
  currentValue: n,
@@ -14415,7 +14416,7 @@ const $N = {
14415
14416
  tooltip: pe
14416
14417
  },
14417
14418
  setup() {
14418
- const r = z(L.FONT_SIZES), e = z(L.EDITOR), t = A(() => r.map((o) => ({ id: o, title: `${o}px` }))), n = e.commands.getFontSize();
14419
+ const r = z(B.FONT_SIZES), e = z(B.EDITOR), t = A(() => r.map((o) => ({ id: o, title: `${o}px` }))), n = e.commands.getFontSize();
14419
14420
  return {
14420
14421
  options: t,
14421
14422
  currentValue: n,
@@ -14490,7 +14491,7 @@ const PN = {
14490
14491
  tooltip: pe
14491
14492
  },
14492
14493
  setup() {
14493
- const r = z(L.EDITOR);
14494
+ const r = z(B.EDITOR);
14494
14495
  return {
14495
14496
  currentValue: r.commands.getFontColor(),
14496
14497
  apply: (n) => r.chain().applyFontColor(n).run()
@@ -14564,7 +14565,7 @@ const HN = {
14564
14565
  tooltip: pe
14565
14566
  },
14566
14567
  setup() {
14567
- const r = z(L.EDITOR);
14568
+ const r = z(B.EDITOR);
14568
14569
  return {
14569
14570
  currentValue: r.commands.getBackgroundColor(),
14570
14571
  apply: (n) => r.chain().applyBackgroundColor(n).run()
@@ -14627,7 +14628,7 @@ const JN = {
14627
14628
  tooltip: pe
14628
14629
  },
14629
14630
  setup() {
14630
- const r = z(L.EDITOR), e = r.commands.isItalic();
14631
+ const r = z(B.EDITOR), e = r.commands.isItalic();
14631
14632
  return {
14632
14633
  isAvailable: r.commands.isItalicAvailable(),
14633
14634
  currentValue: e,
@@ -14690,7 +14691,7 @@ const tR = {
14690
14691
  tooltip: pe
14691
14692
  },
14692
14693
  setup() {
14693
- const r = z(L.EDITOR);
14694
+ const r = z(B.EDITOR);
14694
14695
  return {
14695
14696
  currentValue: A(() => r.commands.isUnderline().value),
14696
14697
  apply: () => r.chain().focus().toggleUnderline().run()
@@ -14749,7 +14750,7 @@ const aR = {
14749
14750
  tooltip: pe
14750
14751
  },
14751
14752
  setup() {
14752
- const r = z(L.EDITOR);
14753
+ const r = z(B.EDITOR);
14753
14754
  return {
14754
14755
  currentValue: r.commands.isStrikeThrough(),
14755
14756
  apply: () => r.chain().focus().toggleStrikeThrough().run()
@@ -14808,7 +14809,7 @@ const hR = {
14808
14809
  tooltip: pe
14809
14810
  },
14810
14811
  setup() {
14811
- const r = z(L.EDITOR);
14812
+ const r = z(B.EDITOR);
14812
14813
  return {
14813
14814
  currentValue: A(() => r.isActive("superscript")),
14814
14815
  apply: () => r.chain().focus().toggleSuperscript().run()
@@ -14887,7 +14888,7 @@ const bR = {
14887
14888
  { id: tn.CAPITALIZE, title: "Capitalize" }
14888
14889
  ],
14889
14890
  setup() {
14890
- const r = z(L.EDITOR);
14891
+ const r = z(B.EDITOR);
14891
14892
  return { apply: (t) => r.chain().focus().applyCaseStyle(t).run() };
14892
14893
  }
14893
14894
  }, Vh = {};
@@ -14952,19 +14953,19 @@ const xR = {
14952
14953
  name: "AlignmentControl",
14953
14954
  alignments: [
14954
14955
  {
14955
- id: Ye.LEFT,
14956
+ id: Xe.LEFT,
14956
14957
  tooltip: { text: "Align Left", hotkey: "Mod Shift L" }
14957
14958
  },
14958
14959
  {
14959
- id: Ye.CENTER,
14960
+ id: Xe.CENTER,
14960
14961
  tooltip: { text: "Align Center", hotkey: "Mod Shift E" }
14961
14962
  },
14962
14963
  {
14963
- id: Ye.RIGHT,
14964
+ id: Xe.RIGHT,
14964
14965
  tooltip: { text: "Align Right", hotkey: "Mod Shift R" }
14965
14966
  },
14966
14967
  {
14967
- id: Ye.JUSTIFY,
14968
+ id: Xe.JUSTIFY,
14968
14969
  tooltip: { text: "Justify", hotkey: "Mod Shift J" }
14969
14970
  }
14970
14971
  ],
@@ -14977,7 +14978,7 @@ const xR = {
14977
14978
  tooltip: pe
14978
14979
  },
14979
14980
  setup(r, { emit: e }) {
14980
- const t = z(L.EDITOR), n = t.commands.getAlignment();
14981
+ const t = z(B.EDITOR), n = t.commands.getAlignment();
14981
14982
  function i(o) {
14982
14983
  t.chain().focus().applyAlignment(o).run(), e("applied");
14983
14984
  }
@@ -15055,7 +15056,7 @@ const TR = {
15055
15056
  tooltip: pe
15056
15057
  },
15057
15058
  setup() {
15058
- const e = z(L.EDITOR).commands.getAlignment(), t = q(null), n = q(null), i = yi({ wrapperRef: t, modalRef: n });
15059
+ const e = z(B.EDITOR).commands.getAlignment(), t = q(null), n = q(null), i = yi({ wrapperRef: t, modalRef: n });
15059
15060
  return {
15060
15061
  wrapperRef: t,
15061
15062
  modalRef: n,
@@ -15160,7 +15161,7 @@ const RR = {
15160
15161
  tooltip: pe
15161
15162
  },
15162
15163
  setup() {
15163
- const r = q(null), e = q(null), t = z(L.EDITOR), n = yi({ wrapperRef: r, modalRef: e }), i = t.commands.getLineHeight(), o = (s) => t.commands.applyLineHeight(String(s));
15164
+ const r = q(null), e = q(null), t = z(B.EDITOR), n = yi({ wrapperRef: r, modalRef: e }), i = t.commands.getLineHeight(), o = (s) => t.commands.applyLineHeight(String(s));
15164
15165
  return {
15165
15166
  wrapperRef: r,
15166
15167
  modalRef: e,
@@ -15285,7 +15286,7 @@ const jR = {
15285
15286
  tooltip: pe
15286
15287
  },
15287
15288
  setup() {
15288
- const r = z(L.EDITOR), e = r.commands.getListType(), t = A(() => !!e.value), n = A(() => e.value || "none"), i = q(we.DISC), o = A(() => e.value === i.value), s = A(() => `list-${i.value}`), a = (u) => {
15289
+ const r = z(B.EDITOR), e = r.commands.getListType(), t = A(() => !!e.value), n = A(() => e.value || "none"), i = q(we.DISC), o = A(() => e.value === i.value), s = A(() => `list-${i.value}`), a = (u) => {
15289
15290
  i.value = u, r.chain().focus().applyList(u).run();
15290
15291
  };
15291
15292
  return {
@@ -15349,7 +15350,7 @@ const KR = {
15349
15350
  tooltip: pe
15350
15351
  },
15351
15352
  setup() {
15352
- const r = z(L.EDITOR);
15353
+ const r = z(B.EDITOR);
15353
15354
  return { apply: () => r.chain().focus().removeFormat().run() };
15354
15355
  }
15355
15356
  }, Kh = {};
@@ -15397,7 +15398,7 @@ const QR = {
15397
15398
  name: "LinkControlHeader",
15398
15399
  components: { Icon: ye, Button: ie },
15399
15400
  setup(r, { emit: e }) {
15400
- const t = z(L.EDITOR);
15401
+ const t = z(B.EDITOR);
15401
15402
  return { isLink: A(() => t.isActive("link")), removeLink: () => e("remove-link") };
15402
15403
  }
15403
15404
  }, Gh = {};
@@ -15464,7 +15465,7 @@ const lP = /* @__PURE__ */ function() {
15464
15465
  return sP.exports;
15465
15466
  }();
15466
15467
  function cP() {
15467
- const r = z(L.EDITOR), e = z(L.PAGE_BLOCKS), t = q({ text: "", target: jt.SELF, destination: pt.URL }), n = q({ block: e.value[0].id, url: "" }), i = q({ id: pt.URL });
15468
+ const r = z(B.EDITOR), e = z(B.PAGE_BLOCKS), t = q({ text: "", target: jt.SELF, destination: pt.URL }), n = q({ block: e.value[0].id, url: "" }), i = q({ id: pt.URL });
15468
15469
  function o(f) {
15469
15470
  t.value.target = f ? jt.BLANK : jt.SELF;
15470
15471
  }
@@ -15542,7 +15543,7 @@ const dP = {
15542
15543
  }
15543
15544
  },
15544
15545
  setup(r, { emit: e }) {
15545
- const t = z(L.PAGE_BLOCKS);
15546
+ const t = z(B.PAGE_BLOCKS);
15546
15547
  return { pageBlocks: t, applyBlock: (i) => {
15547
15548
  const o = t.value.find((s) => s.id === i);
15548
15549
  e("update", o.id);
@@ -15808,7 +15809,7 @@ const TP = {
15808
15809
  tooltip: pe
15809
15810
  },
15810
15811
  setup() {
15811
- const r = q(null), e = q(null), t = z(L.EDITOR), n = cP(), i = /(^(https?:\/\/|\/)(?:www\.|(?!www))?[^\s])/, o = () => n.linkData.value.text ? !1 : "Can't be empty", s = () => n.currentDestination.value.id !== "url" || i.test(n.destinationHrefs.value.url) ? !1 : "Please enter a valid URL", a = mh({
15812
+ const r = q(null), e = q(null), t = z(B.EDITOR), n = cP(), i = /(^(https?:\/\/|\/)(?:www\.|(?!www))?[^\s])/, o = () => n.linkData.value.text ? !1 : "Can't be empty", s = () => n.currentDestination.value.id !== "url" || i.test(n.destinationHrefs.value.url) ? !1 : "Please enter a valid URL", a = mh({
15812
15813
  validations: [o]
15813
15814
  }), l = mh({
15814
15815
  validations: [s]
@@ -15877,15 +15878,19 @@ var IP = function() {
15877
15878
  attrs: {
15878
15879
  vertical: ""
15879
15880
  }
15880
- }), n("ToolbarGroup", [n("FontColorControl"), n("BackgroundColorControl")], 1)], 1), n("ToolbarDivider", {
15881
+ }), n("ToolbarGroup", [n("FontColorControl"), n("BackgroundColorControl")], 1), e.isPopupMode ? [n("ToolbarDivider", {
15882
+ attrs: {
15883
+ vertical: ""
15884
+ }
15885
+ }), n("ToolbarGroup", [n("ItalicControl"), n("UnderlineControl"), n("StrikeThroughControl"), n("SuperscriptControl"), n("CaseStyleControl")], 1)] : e._e()], 2), n("ToolbarDivider", {
15881
15886
  attrs: {
15882
15887
  horizontal: ""
15883
15888
  }
15884
- }), n("ToolbarRow", [n("ToolbarGroup", [n("ItalicControl"), n("UnderlineControl"), n("StrikeThroughControl"), n("SuperscriptControl"), n("CaseStyleControl")], 1), n("ToolbarDivider", {
15889
+ }), n("ToolbarRow", [e.isPopupMode ? e._e() : [n("ToolbarGroup", [n("ItalicControl"), n("UnderlineControl"), n("StrikeThroughControl"), n("SuperscriptControl"), n("CaseStyleControl")], 1), n("ToolbarDivider", {
15885
15890
  attrs: {
15886
15891
  vertical: ""
15887
15892
  }
15888
- }), n("AlignmentControl"), n("ToolbarDivider", {
15893
+ })], n("AlignmentControl"), n("ToolbarDivider", {
15889
15894
  attrs: {
15890
15895
  vertical: ""
15891
15896
  }
@@ -15897,7 +15902,7 @@ var IP = function() {
15897
15902
  attrs: {
15898
15903
  vertical: ""
15899
15904
  }
15900
- }), n("ToolbarGroup", [n("LinkControl"), n("RemoveFormatControl")], 1)], 1)], 1);
15905
+ }), n("ToolbarGroup", [n("LinkControl"), n("RemoveFormatControl")], 1)], 2)], 1);
15901
15906
  }, NP = [];
15902
15907
  const RP = {
15903
15908
  name: "ToolbarFull",
@@ -15921,6 +15926,9 @@ const RP = {
15921
15926
  ListControl: WR,
15922
15927
  RemoveFormatControl: YR,
15923
15928
  LinkControl: FP
15929
+ },
15930
+ setup() {
15931
+ return { isPopupMode: z(B.POPUP_MODE) };
15924
15932
  }
15925
15933
  }, ep = {};
15926
15934
  var PP = /* @__PURE__ */ $(
@@ -16755,10 +16763,10 @@ const rB = te.create({
16755
16763
  };
16756
16764
  },
16757
16765
  addKeyboardShortcuts: () => ({
16758
- "Mod-Shift-l": ze("applyAlignment", Ye.LEFT),
16759
- "Mod-Shift-e": ze("applyAlignment", Ye.CENTER),
16760
- "Mod-Shift-r": ze("applyAlignment", Ye.RIGHT),
16761
- "Mod-Shift-j": ze("applyAlignment", Ye.JUSTIFY)
16766
+ "Mod-Shift-l": ze("applyAlignment", Xe.LEFT),
16767
+ "Mod-Shift-e": ze("applyAlignment", Xe.CENTER),
16768
+ "Mod-Shift-r": ze("applyAlignment", Xe.RIGHT),
16769
+ "Mod-Shift-j": ze("applyAlignment", Xe.JUSTIFY)
16762
16770
  })
16763
16771
  }), op = {
16764
16772
  mobile: null,
@@ -16980,11 +16988,11 @@ var W = function() {
16980
16988
  for (; o < s - 1; )
16981
16989
  a = i(), w(e, t[o], a), e = a, o++;
16982
16990
  w(e, t[s - 1], n);
16983
- }, Ue = "DOMAIN", Dt = "LOCALHOST", lt = "TLD", Pe = "NUM", pn = "PROTOCOL", Rc = "MAILTO", zg = "WS", Pc = "NL", Kr = "OPENBRACE", Jn = "OPENBRACKET", Yn = "OPENANGLEBRACKET", Xn = "OPENPAREN", ar = "CLOSEBRACE", Gr = "CLOSEBRACKET", Jr = "CLOSEANGLEBRACKET", Yr = "CLOSEPAREN", Co = "AMPERSAND", Oo = "APOSTROPHE", ko = "ASTERISK", Xr = "AT", Ao = "BACKSLASH", To = "BACKTICK", Mo = "CARET", Zn = "COLON", Bc = "COMMA", $o = "DOLLAR", Pt = "DOT", Fo = "EQUALS", Lc = "EXCLAMATION", Io = "HYPHEN", No = "PERCENT", Ro = "PIPE", Po = "PLUS", Bo = "POUND", Lo = "QUERY", zc = "QUOTE", jc = "SEMI", xt = "SLASH", zo = "TILDE", jo = "UNDERSCORE", Vo = "SYM", gB = /* @__PURE__ */ Object.freeze({
16991
+ }, Ue = "DOMAIN", Dt = "LOCALHOST", ct = "TLD", Pe = "NUM", pn = "PROTOCOL", Rc = "MAILTO", zg = "WS", Pc = "NL", Kr = "OPENBRACE", Jn = "OPENBRACKET", Yn = "OPENANGLEBRACKET", Xn = "OPENPAREN", ar = "CLOSEBRACE", Gr = "CLOSEBRACKET", Jr = "CLOSEANGLEBRACKET", Yr = "CLOSEPAREN", Co = "AMPERSAND", Oo = "APOSTROPHE", ko = "ASTERISK", Xr = "AT", Ao = "BACKSLASH", To = "BACKTICK", Mo = "CARET", Zn = "COLON", Bc = "COMMA", $o = "DOLLAR", Pt = "DOT", Fo = "EQUALS", Lc = "EXCLAMATION", Io = "HYPHEN", No = "PERCENT", Ro = "PIPE", Po = "PLUS", Bo = "POUND", Lo = "QUERY", zc = "QUOTE", jc = "SEMI", xt = "SLASH", zo = "TILDE", jo = "UNDERSCORE", Vo = "SYM", gB = /* @__PURE__ */ Object.freeze({
16984
16992
  __proto__: null,
16985
16993
  DOMAIN: Ue,
16986
16994
  LOCALHOST: Dt,
16987
- TLD: lt,
16995
+ TLD: ct,
16988
16996
  NUM: Pe,
16989
16997
  PROTOCOL: pn,
16990
16998
  MAILTO: Rc,
@@ -17038,7 +17046,7 @@ function yB() {
17038
17046
  `, M(Pc)), oe(e, ap, o), w(o, `
17039
17047
  `, W()), oe(o, ap, o);
17040
17048
  for (var u = 0; u < sp.length; u++)
17041
- or(e, sp[u], l(lt), a);
17049
+ or(e, sp[u], l(ct), a);
17042
17050
  var c = a(), f = a(), d = a(), h = a();
17043
17051
  or(e, "file", c, a), or(e, "ftp", f, a), or(e, "http", d, a), or(e, "mailto", h, a);
17044
17052
  var p = a(), m = M(pn), v = M(Rc);
@@ -17209,12 +17217,12 @@ var jg = Tr("email", {
17209
17217
  Url: Rt
17210
17218
  });
17211
17219
  function wB() {
17212
- var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(Rt), l = W(), u = M(Rt), c = M(Rt), f = W(), d = W(), h = W(), p = W(), m = W(), v = M(Rt), g = M(Rt), y = M(Rt), D = M(Rt), _ = W(), x = W(), b = W(), C = W(), E = W(), F = W(), V = M(Sl), j = W(), Q = M(Sl), J = M(jg), st = W(), Ee = W(), Y = W(), De = W(), Mr = M(Vg);
17213
- w(r, Pc, Mr), w(r, pn, e), w(r, Rc, t), w(e, xt, n), w(n, xt, i), w(r, lt, o), w(r, Ue, o), w(r, Dt, a), w(r, Pe, o), w(i, lt, c), w(i, Ue, c), w(i, Pe, c), w(i, Dt, c), w(o, Pt, s), w(E, Pt, F), w(s, lt, a), w(s, Ue, o), w(s, Pe, o), w(s, Dt, o), w(F, lt, V), w(F, Ue, E), w(F, Pe, E), w(F, Dt, E), w(a, Pt, s), w(V, Pt, F), w(a, Zn, l), w(a, xt, c), w(l, Pe, u), w(u, xt, c), w(V, Zn, j), w(j, Pe, Q);
17214
- var K = [Co, ko, Xr, Ao, To, Mo, $o, Ue, Fo, Io, Dt, Pe, No, Ro, Po, Bo, pn, xt, Vo, zo, lt, jo], X = [Oo, Jr, ar, Gr, Yr, Zn, Bc, Pt, Lc, Yn, Kr, Jn, Xn, Lo, zc, jc];
17215
- w(c, Kr, d), w(c, Jn, h), w(c, Yn, p), w(c, Xn, m), w(f, Kr, d), w(f, Jn, h), w(f, Yn, p), w(f, Xn, m), w(d, ar, c), w(h, Gr, c), w(p, Jr, c), w(m, Yr, c), w(v, ar, c), w(g, Gr, c), w(y, Jr, c), w(D, Yr, c), w(_, ar, c), w(x, Gr, c), w(b, Jr, c), w(C, Yr, c), N(d, K, v), N(h, K, g), N(p, K, y), N(m, K, D), N(d, X, _), N(h, X, x), N(p, X, b), N(m, X, C), N(v, K, v), N(g, K, g), N(y, K, y), N(D, K, D), N(v, X, v), N(g, X, g), N(y, X, y), N(D, X, D), N(_, K, v), N(x, K, g), N(b, K, y), N(C, K, D), N(_, X, _), N(x, X, x), N(b, X, b), N(C, X, C), N(c, K, c), N(f, K, c), N(c, X, f), N(f, X, f), w(t, lt, J), w(t, Ue, J), w(t, Pe, J), w(t, Dt, J), N(J, K, J), N(J, X, st), N(st, K, J), N(st, X, st);
17216
- var St = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe, Kr, No, Ro, Po, Bo, Lo, xt, Vo, zo, lt, jo];
17217
- return N(o, St, Ee), w(o, Xr, Y), N(a, St, Ee), w(a, Xr, Y), N(s, St, Ee), N(Ee, St, Ee), w(Ee, Xr, Y), w(Ee, Pt, De), N(De, St, Ee), w(Y, lt, E), w(Y, Ue, E), w(Y, Pe, E), w(Y, Dt, V), r;
17220
+ var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(Rt), l = W(), u = M(Rt), c = M(Rt), f = W(), d = W(), h = W(), p = W(), m = W(), v = M(Rt), g = M(Rt), y = M(Rt), D = M(Rt), _ = W(), x = W(), b = W(), C = W(), E = W(), F = W(), V = M(Sl), j = W(), Q = M(Sl), J = M(jg), at = W(), Ee = W(), Y = W(), De = W(), Mr = M(Vg);
17221
+ w(r, Pc, Mr), w(r, pn, e), w(r, Rc, t), w(e, xt, n), w(n, xt, i), w(r, ct, o), w(r, Ue, o), w(r, Dt, a), w(r, Pe, o), w(i, ct, c), w(i, Ue, c), w(i, Pe, c), w(i, Dt, c), w(o, Pt, s), w(E, Pt, F), w(s, ct, a), w(s, Ue, o), w(s, Pe, o), w(s, Dt, o), w(F, ct, V), w(F, Ue, E), w(F, Pe, E), w(F, Dt, E), w(a, Pt, s), w(V, Pt, F), w(a, Zn, l), w(a, xt, c), w(l, Pe, u), w(u, xt, c), w(V, Zn, j), w(j, Pe, Q);
17222
+ var K = [Co, ko, Xr, Ao, To, Mo, $o, Ue, Fo, Io, Dt, Pe, No, Ro, Po, Bo, pn, xt, Vo, zo, ct, jo], X = [Oo, Jr, ar, Gr, Yr, Zn, Bc, Pt, Lc, Yn, Kr, Jn, Xn, Lo, zc, jc];
17223
+ w(c, Kr, d), w(c, Jn, h), w(c, Yn, p), w(c, Xn, m), w(f, Kr, d), w(f, Jn, h), w(f, Yn, p), w(f, Xn, m), w(d, ar, c), w(h, Gr, c), w(p, Jr, c), w(m, Yr, c), w(v, ar, c), w(g, Gr, c), w(y, Jr, c), w(D, Yr, c), w(_, ar, c), w(x, Gr, c), w(b, Jr, c), w(C, Yr, c), N(d, K, v), N(h, K, g), N(p, K, y), N(m, K, D), N(d, X, _), N(h, X, x), N(p, X, b), N(m, X, C), N(v, K, v), N(g, K, g), N(y, K, y), N(D, K, D), N(v, X, v), N(g, X, g), N(y, X, y), N(D, X, D), N(_, K, v), N(x, K, g), N(b, K, y), N(C, K, D), N(_, X, _), N(x, X, x), N(b, X, b), N(C, X, C), N(c, K, c), N(f, K, c), N(c, X, f), N(f, X, f), w(t, ct, J), w(t, Ue, J), w(t, Pe, J), w(t, Dt, J), N(J, K, J), N(J, X, at), N(at, K, J), N(at, X, at);
17224
+ var St = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe, Kr, No, Ro, Po, Bo, Lo, xt, Vo, zo, ct, jo];
17225
+ return N(o, St, Ee), w(o, Xr, Y), N(a, St, Ee), w(a, Xr, Y), N(s, St, Ee), N(Ee, St, Ee), w(Ee, Xr, Y), w(Ee, Pt, De), N(De, St, Ee), w(Y, ct, E), w(Y, Ue, E), w(Y, Pe, E), w(Y, Dt, V), r;
17218
17226
  }
17219
17227
  function xB(r, e, t) {
17220
17228
  for (var n = t.length, i = 0, o = [], s = []; i < n; ) {
@@ -17284,7 +17292,7 @@ function cp(r) {
17284
17292
  }
17285
17293
  function AB(r) {
17286
17294
  return new Te({
17287
- key: new tt("autolink"),
17295
+ key: new rt("autolink"),
17288
17296
  appendTransaction: (e, t, n) => {
17289
17297
  const i = e.some((c) => c.docChanged) && !t.doc.eq(n.doc), o = e.some((c) => c.getMeta("preventAutolink"));
17290
17298
  if (!i || o)
@@ -17319,7 +17327,7 @@ function AB(r) {
17319
17327
  }
17320
17328
  function TB(r) {
17321
17329
  return new Te({
17322
- key: new tt("handleClickLink"),
17330
+ key: new rt("handleClickLink"),
17323
17331
  props: {
17324
17332
  handleClick: (e, t, n) => {
17325
17333
  var i;
@@ -17331,7 +17339,7 @@ function TB(r) {
17331
17339
  }
17332
17340
  function MB(r) {
17333
17341
  return new Te({
17334
- key: new tt("handlePasteLink"),
17342
+ key: new rt("handlePasteLink"),
17335
17343
  props: {
17336
17344
  handlePaste: (e, t, n) => {
17337
17345
  const { state: i } = e, { selection: o } = i, { empty: s } = o;
@@ -17708,7 +17716,7 @@ var zB = /* @__PURE__ */ function(r) {
17708
17716
  }, e;
17709
17717
  }(he), qg = he;
17710
17718
  const jB = 500;
17711
- class Je {
17719
+ class Ye {
17712
17720
  constructor(e, t) {
17713
17721
  this.items = e, this.eventCount = t;
17714
17722
  }
@@ -17730,23 +17738,23 @@ class Je {
17730
17738
  return;
17731
17739
  }
17732
17740
  if (i) {
17733
- c.push(new ct(f.map));
17741
+ c.push(new ut(f.map));
17734
17742
  let h = f.step.map(i.slice(o)), p;
17735
- h && s.maybeStep(h).doc && (p = s.mapping.maps[s.mapping.maps.length - 1], u.push(new ct(p, void 0, void 0, u.length + c.length))), o--, p && i.appendMap(p, o);
17743
+ h && s.maybeStep(h).doc && (p = s.mapping.maps[s.mapping.maps.length - 1], u.push(new ut(p, void 0, void 0, u.length + c.length))), o--, p && i.appendMap(p, o);
17736
17744
  } else
17737
17745
  s.maybeStep(f.step);
17738
17746
  if (f.selection)
17739
- return a = i ? f.selection.map(i.slice(o)) : f.selection, l = new Je(this.items.slice(0, n).append(c.reverse().concat(u)), this.eventCount - 1), !1;
17747
+ return a = i ? f.selection.map(i.slice(o)) : f.selection, l = new Ye(this.items.slice(0, n).append(c.reverse().concat(u)), this.eventCount - 1), !1;
17740
17748
  }, this.items.length, 0), { remaining: l, transform: s, selection: a };
17741
17749
  }
17742
17750
  addTransform(e, t, n, i) {
17743
17751
  let o = [], s = this.eventCount, a = this.items, l = !i && a.length ? a.get(a.length - 1) : null;
17744
17752
  for (let c = 0; c < e.steps.length; c++) {
17745
- let f = e.steps[c].invert(e.docs[c]), d = new ct(e.mapping.maps[c], f, t), h;
17753
+ let f = e.steps[c].invert(e.docs[c]), d = new ut(e.mapping.maps[c], f, t), h;
17746
17754
  (h = l && l.merge(d)) && (d = h, c ? o.pop() : a = a.slice(0, a.length - 1)), o.push(d), t && (s++, t = void 0), i || (l = d);
17747
17755
  }
17748
17756
  let u = s - n.depth;
17749
- return u > HB && (a = VB(a, u), s -= u), new Je(a.append(o), s);
17757
+ return u > HB && (a = VB(a, u), s -= u), new Ye(a.append(o), s);
17750
17758
  }
17751
17759
  remapping(e, t) {
17752
17760
  let n = new Zr();
@@ -17756,7 +17764,7 @@ class Je {
17756
17764
  }, e, t), n;
17757
17765
  }
17758
17766
  addMaps(e) {
17759
- return this.eventCount == 0 ? this : new Je(this.items.append(e.map((t) => new ct(t))), this.eventCount);
17767
+ return this.eventCount == 0 ? this : new Ye(this.items.append(e.map((t) => new ut(t))), this.eventCount);
17760
17768
  }
17761
17769
  rebased(e, t) {
17762
17770
  if (!this.eventCount)
@@ -17774,14 +17782,14 @@ class Je {
17774
17782
  let p = o.maps[h];
17775
17783
  if (d.step) {
17776
17784
  let m = e.steps[h].invert(e.docs[h]), v = d.selection && d.selection.map(o.slice(l + 1, h));
17777
- v && a++, n.push(new ct(p, m, v));
17785
+ v && a++, n.push(new ut(p, m, v));
17778
17786
  } else
17779
- n.push(new ct(p));
17787
+ n.push(new ut(p));
17780
17788
  }, i);
17781
17789
  let u = [];
17782
17790
  for (let d = t; d < s; d++)
17783
- u.push(new ct(o.maps[d]));
17784
- let c = this.items.slice(0, i).append(u).append(n), f = new Je(c, a);
17791
+ u.push(new ut(o.maps[d]));
17792
+ let c = this.items.slice(0, i).append(u).append(n), f = new Ye(c, a);
17785
17793
  return f.emptyItemCount() > jB && (f = f.compress(this.items.length - n.length)), f;
17786
17794
  }
17787
17795
  emptyItemCount() {
@@ -17800,15 +17808,15 @@ class Je {
17800
17808
  if (n--, u && t.appendMap(u, n), l) {
17801
17809
  let c = s.selection && s.selection.map(t.slice(n));
17802
17810
  c && o++;
17803
- let f = new ct(u.invert(), l, c), d, h = i.length - 1;
17811
+ let f = new ut(u.invert(), l, c), d, h = i.length - 1;
17804
17812
  (d = i.length && i[h].merge(f)) ? i[h] = d : i.push(f);
17805
17813
  }
17806
17814
  } else
17807
17815
  s.map && n--;
17808
- }, this.items.length, 0), new Je(qg.from(i.reverse()), o);
17816
+ }, this.items.length, 0), new Ye(qg.from(i.reverse()), o);
17809
17817
  }
17810
17818
  }
17811
- Je.empty = new Je(qg.empty, 0);
17819
+ Ye.empty = new Ye(qg.empty, 0);
17812
17820
  function VB(r, e) {
17813
17821
  let t;
17814
17822
  return r.forEach((n, i) => {
@@ -17816,7 +17824,7 @@ function VB(r, e) {
17816
17824
  return t = i, !1;
17817
17825
  }), r.slice(t);
17818
17826
  }
17819
- class ct {
17827
+ class ut {
17820
17828
  constructor(e, t, n, i) {
17821
17829
  this.map = e, this.step = t, this.selection = n, this.mirrorOffset = i;
17822
17830
  }
@@ -17824,7 +17832,7 @@ class ct {
17824
17832
  if (this.step && e.step && !e.selection) {
17825
17833
  let t = e.step.merge(this.step);
17826
17834
  if (t)
17827
- return new ct(t.getMap().invert(), t, this.selection);
17835
+ return new ut(t.getMap().invert(), t, this.selection);
17828
17836
  }
17829
17837
  }
17830
17838
  }
@@ -17846,7 +17854,7 @@ function WB(r, e, t, n) {
17846
17854
  return s.getMeta(qt).redo ? new Bt(r.done.addTransform(t, void 0, n, eo(e)), r.undone, up(t.mapping.maps[t.steps.length - 1]), r.prevTime) : new Bt(r.done, r.undone.addTransform(t, void 0, n, eo(e)), null, r.prevTime);
17847
17855
  if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
17848
17856
  let a = r.prevTime == 0 || !s && (r.prevTime < (t.time || 0) - n.newGroupDelay || !qB(t, r.prevRanges)), l = s ? Ia(r.prevRanges, t.mapping) : up(t.mapping.maps[t.steps.length - 1]);
17849
- return new Bt(r.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, eo(e)), Je.empty, l, t.time);
17857
+ return new Bt(r.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, eo(e)), Ye.empty, l, t.time);
17850
17858
  } else
17851
17859
  return (o = t.getMeta("rebased")) ? new Bt(r.done.rebased(t, o), r.undone.rebased(t, o), Ia(r.prevRanges, t.mapping), r.prevTime) : new Bt(r.done.addMaps(t.mapping.maps), r.undone.addMaps(t.mapping.maps), Ia(r.prevRanges, t.mapping), r.prevTime);
17852
17860
  }
@@ -17895,7 +17903,7 @@ function eo(r) {
17895
17903
  }
17896
17904
  return Na;
17897
17905
  }
17898
- const qt = new tt("history"), UB = new tt("closeHistory");
17906
+ const qt = new rt("history"), UB = new rt("closeHistory");
17899
17907
  function KB(r = {}) {
17900
17908
  return r = {
17901
17909
  depth: r.depth || 100,
@@ -17904,7 +17912,7 @@ function KB(r = {}) {
17904
17912
  key: qt,
17905
17913
  state: {
17906
17914
  init() {
17907
- return new Bt(Je.empty, Je.empty, null, 0);
17915
+ return new Bt(Ye.empty, Ye.empty, null, 0);
17908
17916
  },
17909
17917
  apply(e, t, n) {
17910
17918
  return WB(t, n, e, r);
@@ -18065,7 +18073,7 @@ class aL {
18065
18073
  static create(e) {
18066
18074
  const t = new this(e || {});
18067
18075
  return new Te({
18068
- key: new tt(this.name),
18076
+ key: new rt(this.name),
18069
18077
  props: t.buildProps()
18070
18078
  });
18071
18079
  }
@@ -18278,6 +18286,11 @@ const Ra = 5, dp = 112, mL = {
18278
18286
  required: !1,
18279
18287
  default: !1
18280
18288
  },
18289
+ popupMode: {
18290
+ type: Boolean,
18291
+ required: !1,
18292
+ default: !1
18293
+ },
18281
18294
  window: {
18282
18295
  required: !1,
18283
18296
  default: () => window
@@ -18322,7 +18335,7 @@ const Ra = 5, dp = 112, mL = {
18322
18335
  listRef: fe(r, "favoriteColors"),
18323
18336
  triggerUpdate: (p) => e("update-favorite-colors", p)
18324
18337
  });
18325
- return ft(L.EDITOR, f), ft(L.FONTS, t), ft(L.FONT_SIZES, d), ft(L.LOCAL_STORAGE, new oI(localStorage)), ft(L.FAVORITE_COLORS, h), ft(L.PAGE_BLOCKS, c), {
18338
+ return Ke(B.EDITOR, f), Ke(B.FONTS, t), Ke(B.FONT_SIZES, d), Ke(B.LOCAL_STORAGE, new oI(localStorage)), Ke(B.FAVORITE_COLORS, h), Ke(B.PAGE_BLOCKS, c), Ke(B.POPUP_MODE, r.popupMode), {
18326
18339
  editor: f,
18327
18340
  toolbarRef: n,
18328
18341
  wysiwygRef: i,