v-notion-editor 0.2.75 → 0.2.77

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.
@@ -1,7 +1,7 @@
1
1
  var Bk = Object.defineProperty;
2
2
  var Pk = (t, e, n) => e in t ? Bk(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Ts = (t, e, n) => Pk(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { ref as se, defineComponent as Ae, provide as c1, markRaw as S2, reactive as hh, h as oo, render as u1, shallowRef as $k, onMounted as tn, onBeforeUnmount as ba, getCurrentInstance as zk, watchEffect as Fk, nextTick as Gt, unref as Ie, toRaw as Hk, customRef as Uk, computed as Se, createElementBlock as re, openBlock as H, normalizeClass as Le, createBlock as we, createCommentVNode as ae, renderSlot as nr, createTextVNode as zp, toDisplayString as Fl, watch as Tn, withDirectives as Fp, createElementVNode as V, withModifiers as xt, createVNode as he, withKeys as Mu, vModelText as Hp, onUnmounted as ao, normalizeProps as el, guardReactiveProps as tl, resolveDynamicComponent as E2, Teleport as Vk, withCtx as qe, normalizeStyle as Kt, Fragment as dn, renderList as Cr, mergeProps as qd, createSlots as C2 } from "vue";
4
+ import { ref as se, defineComponent as Ae, provide as c1, markRaw as S2, reactive as hh, h as oo, render as u1, shallowRef as $k, onMounted as tn, onBeforeUnmount as ba, getCurrentInstance as zk, watchEffect as Fk, nextTick as Gt, unref as De, toRaw as Hk, customRef as Uk, computed as Se, createElementBlock as re, openBlock as U, normalizeClass as Le, createBlock as we, createCommentVNode as ae, renderSlot as nr, createTextVNode as zp, toDisplayString as Fl, watch as Tn, withDirectives as Fp, createElementVNode as V, withModifiers as xt, createVNode as he, withKeys as Mu, vModelText as Hp, onUnmounted as ao, normalizeProps as el, guardReactiveProps as tl, resolveDynamicComponent as E2, Teleport as Vk, withCtx as qe, normalizeStyle as Kt, Fragment as dn, renderList as Cr, mergeProps as qd, createSlots as C2 } from "vue";
5
5
  function Ft(t) {
6
6
  this.content = t;
7
7
  }
@@ -151,7 +151,7 @@ function T2(t, e, n, r) {
151
151
  n -= l, r -= l;
152
152
  }
153
153
  }
154
- class U {
154
+ class H {
155
155
  /**
156
156
  @internal
157
157
  */
@@ -206,7 +206,7 @@ class U {
206
206
  let n = this.lastChild, r = e.firstChild, i = this.content.slice(), s = 0;
207
207
  for (n.isText && n.sameMarkup(r) && (i[i.length - 1] = n.withText(n.text + r.text), s = 1); s < e.content.length; s++)
208
208
  i.push(e.content[s]);
209
- return new U(i, this.size + e.size);
209
+ return new H(i, this.size + e.size);
210
210
  }
211
211
  /**
212
212
  Cut out the sub-fragment between the two given positions.
@@ -220,13 +220,13 @@ class U {
220
220
  let a = this.content[s], l = o + a.nodeSize;
221
221
  l > e && ((o < e || l > n) && (a.isText ? a = a.cut(Math.max(0, e - o), Math.min(a.text.length, n - o)) : a = a.cut(Math.max(0, e - o - 1), Math.min(a.content.size, n - o - 1))), r.push(a), i += a.nodeSize), o = l;
222
222
  }
223
- return new U(r, i);
223
+ return new H(r, i);
224
224
  }
225
225
  /**
226
226
  @internal
227
227
  */
228
228
  cutByIndex(e, n) {
229
- return e == n ? U.empty : e == 0 && n == this.content.length ? this : new U(this.content.slice(e, n));
229
+ return e == n ? H.empty : e == 0 && n == this.content.length ? this : new H(this.content.slice(e, n));
230
230
  }
231
231
  /**
232
232
  Create a new fragment in which the node at the given index is
@@ -237,21 +237,21 @@ class U {
237
237
  if (r == n)
238
238
  return this;
239
239
  let i = this.content.slice(), s = this.size + n.nodeSize - r.nodeSize;
240
- return i[e] = n, new U(i, s);
240
+ return i[e] = n, new H(i, s);
241
241
  }
242
242
  /**
243
243
  Create a new fragment by prepending the given node to this
244
244
  fragment.
245
245
  */
246
246
  addToStart(e) {
247
- return new U([e].concat(this.content), this.size + e.nodeSize);
247
+ return new H([e].concat(this.content), this.size + e.nodeSize);
248
248
  }
249
249
  /**
250
250
  Create a new fragment by appending the given node to this
251
251
  fragment.
252
252
  */
253
253
  addToEnd(e) {
254
- return new U(this.content.concat(e), this.size + e.nodeSize);
254
+ return new H(this.content.concat(e), this.size + e.nodeSize);
255
255
  }
256
256
  /**
257
257
  Compare this fragment to another one.
@@ -366,10 +366,10 @@ class U {
366
366
  */
367
367
  static fromJSON(e, n) {
368
368
  if (!n)
369
- return U.empty;
369
+ return H.empty;
370
370
  if (!Array.isArray(n))
371
371
  throw new RangeError("Invalid input for Fragment.fromJSON");
372
- return new U(n.map(e.nodeFromJSON));
372
+ return new H(n.map(e.nodeFromJSON));
373
373
  }
374
374
  /**
375
375
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -377,13 +377,13 @@ class U {
377
377
  */
378
378
  static fromArray(e) {
379
379
  if (!e.length)
380
- return U.empty;
380
+ return H.empty;
381
381
  let n, r = 0;
382
382
  for (let i = 0; i < e.length; i++) {
383
383
  let s = e[i];
384
384
  r += s.nodeSize, i && s.isText && e[i - 1].sameMarkup(s) ? (n || (n = e.slice(0, i)), n[n.length - 1] = s.withText(n[n.length - 1].text + s.text)) : n && n.push(s);
385
385
  }
386
- return new U(n || e, r);
386
+ return new H(n || e, r);
387
387
  }
388
388
  /**
389
389
  Create a fragment from something that can be interpreted as a
@@ -393,17 +393,17 @@ class U {
393
393
  */
394
394
  static from(e) {
395
395
  if (!e)
396
- return U.empty;
397
- if (e instanceof U)
396
+ return H.empty;
397
+ if (e instanceof H)
398
398
  return e;
399
399
  if (Array.isArray(e))
400
400
  return this.fromArray(e);
401
401
  if (e.attrs)
402
- return new U([e], e.nodeSize);
402
+ return new H([e], e.nodeSize);
403
403
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
404
404
  }
405
405
  }
406
- U.empty = new U([], 0);
406
+ H.empty = new H([], 0);
407
407
  const X0 = { index: 0, offset: 0 };
408
408
  function hc(t, e) {
409
409
  return X0.index = t, X0.offset = e, X0;
@@ -605,7 +605,7 @@ class Z {
605
605
  let r = n.openStart || 0, i = n.openEnd || 0;
606
606
  if (typeof r != "number" || typeof i != "number")
607
607
  throw new RangeError("Invalid input for Slice.fromJSON");
608
- return new Z(U.fromJSON(e, n.content), r, i);
608
+ return new Z(H.fromJSON(e, n.content), r, i);
609
609
  }
610
610
  /**
611
611
  Create a slice from a fragment by taking the maximum possible
@@ -620,7 +620,7 @@ class Z {
620
620
  return new Z(e, r, i);
621
621
  }
622
622
  }
623
- Z.empty = new Z(U.empty, 0, 0);
623
+ Z.empty = new Z(H.empty, 0, 0);
624
624
  function A2(t, e, n) {
625
625
  let { index: r, offset: i } = t.findIndex(e), s = t.maybeChild(r), { index: o, offset: a } = t.findIndex(n);
626
626
  if (i == e || s.isText) {
@@ -685,7 +685,7 @@ function Fs(t, e) {
685
685
  }
686
686
  function R2(t, e, n, r, i) {
687
687
  let s = t.depth > i && mh(t, e, i + 1), o = r.depth > i && mh(n, r, i + 1), a = [];
688
- return Pa(null, t, i, a), s && o && e.index(i) == n.index(i) ? (_2(s, o), zs(Fs(s, R2(t, e, n, r, i + 1)), a)) : (s && zs(Fs(s, Nu(t, e, i + 1)), a), Pa(e, n, i, a), o && zs(Fs(o, Nu(n, r, i + 1)), a)), Pa(r, null, i, a), new U(a);
688
+ return Pa(null, t, i, a), s && o && e.index(i) == n.index(i) ? (_2(s, o), zs(Fs(s, R2(t, e, n, r, i + 1)), a)) : (s && zs(Fs(s, Nu(t, e, i + 1)), a), Pa(e, n, i, a), o && zs(Fs(o, Nu(n, r, i + 1)), a)), Pa(r, null, i, a), new H(a);
689
689
  }
690
690
  function Nu(t, e, n) {
691
691
  let r = [];
@@ -693,12 +693,12 @@ function Nu(t, e, n) {
693
693
  let i = mh(t, e, n + 1);
694
694
  zs(Fs(i, Nu(t, e, n + 1)), r);
695
695
  }
696
- return Pa(e, null, n, r), new U(r);
696
+ return Pa(e, null, n, r), new H(r);
697
697
  }
698
698
  function Wk(t, e) {
699
699
  let n = e.depth - t.openStart, i = e.node(n).copy(t.content);
700
700
  for (let s = n - 1; s >= 0; s--)
701
- i = e.node(s).copy(U.from(i));
701
+ i = e.node(s).copy(H.from(i));
702
702
  return {
703
703
  start: i.resolveNoCache(t.openStart + n),
704
704
  end: i.resolveNoCache(i.content.size - t.openEnd - n)
@@ -1003,7 +1003,7 @@ let Wr = class gh {
1003
1003
  @internal
1004
1004
  */
1005
1005
  constructor(e, n, r, i = Qe.none) {
1006
- this.type = e, this.attrs = n, this.marks = i, this.content = r || U.empty;
1006
+ this.type = e, this.attrs = n, this.marks = i, this.content = r || H.empty;
1007
1007
  }
1008
1008
  /**
1009
1009
  The array of this node's child nodes.
@@ -1292,7 +1292,7 @@ let Wr = class gh {
1292
1292
  can optionally pass `start` and `end` indices into the
1293
1293
  replacement fragment.
1294
1294
  */
1295
- canReplace(e, n, r = U.empty, i = 0, s = r.childCount) {
1295
+ canReplace(e, n, r = H.empty, i = 0, s = r.childCount) {
1296
1296
  let o = this.contentMatchAt(e).matchFragment(r, i, s), a = o && o.matchFragment(this.content, n);
1297
1297
  if (!a || !a.validEnd)
1298
1298
  return !1;
@@ -1363,7 +1363,7 @@ let Wr = class gh {
1363
1363
  throw new RangeError("Invalid text node in JSON");
1364
1364
  return e.text(n.text, r);
1365
1365
  }
1366
- let i = U.fromJSON(e, n.content), s = e.nodeType(n.type).create(n.attrs, i, r);
1366
+ let i = H.fromJSON(e, n.content), s = e.nodeType(n.type).create(n.attrs, i, r);
1367
1367
  return s.type.checkAttrs(s.attrs), s;
1368
1368
  }
1369
1369
  };
@@ -1491,7 +1491,7 @@ class Ys {
1491
1491
  function s(o, a) {
1492
1492
  let l = o.matchFragment(e, r);
1493
1493
  if (l && (!n || l.validEnd))
1494
- return U.from(a.map((c) => c.createAndFill()));
1494
+ return H.from(a.map((c) => c.createAndFill()));
1495
1495
  for (let c = 0; c < o.next.length; c++) {
1496
1496
  let { type: u, next: d } = o.next[c];
1497
1497
  if (!(u.isText || u.hasRequiredAttrs()) && i.indexOf(d) == -1) {
@@ -1874,7 +1874,7 @@ let p1 = class F2 {
1874
1874
  create(e = null, n, r) {
1875
1875
  if (this.isText)
1876
1876
  throw new Error("NodeType.create can't construct text nodes");
1877
- return new Wr(this, this.computeAttrs(e), U.from(n), Qe.setFrom(r));
1877
+ return new Wr(this, this.computeAttrs(e), H.from(n), Qe.setFrom(r));
1878
1878
  }
1879
1879
  /**
1880
1880
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -1882,7 +1882,7 @@ let p1 = class F2 {
1882
1882
  if it doesn't match.
1883
1883
  */
1884
1884
  createChecked(e = null, n, r) {
1885
- return n = U.from(n), this.checkContent(n), new Wr(this, this.computeAttrs(e), n, Qe.setFrom(r));
1885
+ return n = H.from(n), this.checkContent(n), new Wr(this, this.computeAttrs(e), n, Qe.setFrom(r));
1886
1886
  }
1887
1887
  /**
1888
1888
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -1893,13 +1893,13 @@ let p1 = class F2 {
1893
1893
  `Fragment.empty` as content.
1894
1894
  */
1895
1895
  createAndFill(e = null, n, r) {
1896
- if (e = this.computeAttrs(e), n = U.from(n), n.size) {
1896
+ if (e = this.computeAttrs(e), n = H.from(n), n.size) {
1897
1897
  let o = this.contentMatch.fillBefore(n);
1898
1898
  if (!o)
1899
1899
  return null;
1900
1900
  n = o.append(n);
1901
1901
  }
1902
- let i = this.contentMatch.matchFragment(n), s = i && i.fillBefore(U.empty, !0);
1902
+ let i = this.contentMatch.matchFragment(n), s = i && i.fillBefore(H.empty, !0);
1903
1903
  return s ? new Wr(this, e, n.append(s), Qe.setFrom(r)) : null;
1904
1904
  }
1905
1905
  /**
@@ -2303,7 +2303,7 @@ class pc {
2303
2303
  if (!this.match) {
2304
2304
  if (!this.type)
2305
2305
  return [];
2306
- let n = this.type.contentMatch.fillBefore(U.from(e));
2306
+ let n = this.type.contentMatch.fillBefore(H.from(e));
2307
2307
  if (n)
2308
2308
  this.match = this.type.contentMatch.matchFragment(n);
2309
2309
  else {
@@ -2321,8 +2321,8 @@ class pc {
2321
2321
  r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = s.withText(s.text.slice(0, s.text.length - i[0].length));
2322
2322
  }
2323
2323
  }
2324
- let n = U.from(this.content);
2325
- return !e && this.match && (n = n.append(this.match.fillBefore(U.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
2324
+ let n = H.from(this.content);
2325
+ return !e && this.match && (n = n.append(this.match.fillBefore(H.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
2326
2326
  }
2327
2327
  inlineContext(e) {
2328
2328
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !H2.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
@@ -3144,7 +3144,7 @@ function Up(t, e, n) {
3144
3144
  let s = t.child(i);
3145
3145
  s.content.size && (s = s.copy(Up(s.content, e, s))), s.isInline && (s = e(s, n, i)), r.push(s);
3146
3146
  }
3147
- return U.fromArray(r);
3147
+ return H.fromArray(r);
3148
3148
  }
3149
3149
  class Xi extends nn {
3150
3150
  /**
@@ -3236,7 +3236,7 @@ class Ji extends nn {
3236
3236
  if (!n)
3237
3237
  return St.fail("No node at mark step's position");
3238
3238
  let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
3239
- return St.fromReplace(e, this.pos, this.pos + 1, new Z(U.from(r), 0, n.isLeaf ? 0 : 1));
3239
+ return St.fromReplace(e, this.pos, this.pos + 1, new Z(H.from(r), 0, n.isLeaf ? 0 : 1));
3240
3240
  }
3241
3241
  invert(e) {
3242
3242
  let n = e.nodeAt(this.pos);
@@ -3280,7 +3280,7 @@ class Xs extends nn {
3280
3280
  if (!n)
3281
3281
  return St.fail("No node at mark step's position");
3282
3282
  let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
3283
- return St.fromReplace(e, this.pos, this.pos + 1, new Z(U.from(r), 0, n.isLeaf ? 0 : 1));
3283
+ return St.fromReplace(e, this.pos, this.pos + 1, new Z(H.from(r), 0, n.isLeaf ? 0 : 1));
3284
3284
  }
3285
3285
  invert(e) {
3286
3286
  let n = e.nodeAt(this.pos);
@@ -3479,13 +3479,13 @@ function Vp(t, e, n, r = n.contentMatch, i = !0) {
3479
3479
  if (i && c.isText && n.whitespace != "pre") {
3480
3480
  let f, h = /\r?\n|\r/g, p;
3481
3481
  for (; f = h.exec(c.text); )
3482
- p || (p = new Z(U.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new kt(a + f.index, a + f.index + f[0].length, p));
3482
+ p || (p = new Z(H.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new kt(a + f.index, a + f.index + f[0].length, p));
3483
3483
  }
3484
3484
  }
3485
3485
  a = u;
3486
3486
  }
3487
3487
  if (!r.validEnd) {
3488
- let l = r.fillBefore(U.empty, !0);
3488
+ let l = r.fillBefore(H.empty, !0);
3489
3489
  t.replace(a, a, new Z(l, 0, 0));
3490
3490
  }
3491
3491
  for (let l = o.length - 1; l >= 0; l--)
@@ -3506,12 +3506,12 @@ function bs(t) {
3506
3506
  return null;
3507
3507
  }
3508
3508
  function y7(t, e, n) {
3509
- let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), a = i.after(s + 1), l = o, c = a, u = U.empty, d = 0;
3509
+ let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), a = i.after(s + 1), l = o, c = a, u = H.empty, d = 0;
3510
3510
  for (let p = s, m = !1; p > n; p--)
3511
- m || r.index(p) > 0 ? (m = !0, u = U.from(r.node(p).copy(u)), d++) : l--;
3512
- let f = U.empty, h = 0;
3511
+ m || r.index(p) > 0 ? (m = !0, u = H.from(r.node(p).copy(u)), d++) : l--;
3512
+ let f = H.empty, h = 0;
3513
3513
  for (let p = s, m = !1; p > n; p--)
3514
- m || i.after(p + 1) < i.end(p) ? (m = !0, f = U.from(i.node(p).copy(f)), h++) : c++;
3514
+ m || i.after(p + 1) < i.end(p) ? (m = !0, f = H.from(i.node(p).copy(f)), h++) : c++;
3515
3515
  t.step(new Et(l, c, o, a, new Z(u.append(f), d, h), u.size - d, !0));
3516
3516
  }
3517
3517
  function Gd(t, e, n = null, r = t) {
@@ -3538,14 +3538,14 @@ function x7(t, e) {
3538
3538
  return !l || !l.validEnd ? null : o;
3539
3539
  }
3540
3540
  function k7(t, e, n) {
3541
- let r = U.empty;
3541
+ let r = H.empty;
3542
3542
  for (let o = n.length - 1; o >= 0; o--) {
3543
3543
  if (r.size) {
3544
3544
  let a = n[o].type.contentMatch.matchFragment(r);
3545
3545
  if (!a || !a.validEnd)
3546
3546
  throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
3547
3547
  }
3548
- r = U.from(n[o].type.create(n[o].attrs, r));
3548
+ r = H.from(n[o].type.create(n[o].attrs, r));
3549
3549
  }
3550
3550
  let i = e.start, s = e.end;
3551
3551
  t.step(new Et(i, s, i, s, new Z(r, 0, 0), n.length, !0));
@@ -3564,7 +3564,7 @@ function S7(t, e, n, r, i) {
3564
3564
  }
3565
3565
  c === !1 && Y2(t, o, a, s), Vp(t, t.mapping.slice(s).map(a, 1), r, void 0, c === null);
3566
3566
  let u = t.mapping.slice(s), d = u.map(a, 1), f = u.map(a + o.nodeSize, 1);
3567
- return t.step(new Et(d, f, d + 1, f - 1, new Z(U.from(r.create(l, null, o.marks)), 0, 0), 1, !0)), c === !0 && K2(t, o, a, s), !1;
3567
+ return t.step(new Et(d, f, d + 1, f - 1, new Z(H.from(r.create(l, null, o.marks)), 0, 0), 1, !0)), c === !0 && K2(t, o, a, s), !1;
3568
3568
  }
3569
3569
  });
3570
3570
  }
@@ -3602,7 +3602,7 @@ function C7(t, e, n, r, i) {
3602
3602
  return t.replaceWith(e, e + s.nodeSize, o);
3603
3603
  if (!n.validContent(s.content))
3604
3604
  throw new RangeError("Invalid content for node type " + n.name);
3605
- t.step(new Et(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new Z(U.from(o), 0, 0), 1, !0));
3605
+ t.step(new Et(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new Z(H.from(o), 0, 0), 1, !0));
3606
3606
  }
3607
3607
  function Vt(t, e, n = 1, r) {
3608
3608
  let i = t.resolve(e), s = i.depth - n, o = r && r[r.length - 1] || i.parent;
@@ -3622,11 +3622,11 @@ function Vt(t, e, n = 1, r) {
3622
3622
  return i.node(s).canReplaceWith(a, a, l ? l.type : i.node(s + 1).type);
3623
3623
  }
3624
3624
  function M7(t, e, n = 1, r) {
3625
- let i = t.doc.resolve(e), s = U.empty, o = U.empty;
3625
+ let i = t.doc.resolve(e), s = H.empty, o = H.empty;
3626
3626
  for (let a = i.depth, l = i.depth - n, c = n - 1; a > l; a--, c--) {
3627
- s = U.from(i.node(a).copy(s));
3627
+ s = H.from(i.node(a).copy(s));
3628
3628
  let u = r && r[c];
3629
- o = U.from(u ? u.type.create(u.attrs, o) : i.node(a).copy(o));
3629
+ o = H.from(u ? u.type.create(u.attrs, o) : i.node(a).copy(o));
3630
3630
  }
3631
3631
  t.step(new kt(e, e, new Z(s.append(o), n, n), !0));
3632
3632
  }
@@ -3731,7 +3731,7 @@ function Z2(t, e, n) {
3731
3731
  }
3732
3732
  class O7 {
3733
3733
  constructor(e, n, r) {
3734
- this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = U.empty;
3734
+ this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = H.empty;
3735
3735
  for (let i = 0; i <= e.depth; i++) {
3736
3736
  let s = e.node(i);
3737
3737
  this.frontier.push({
@@ -3740,7 +3740,7 @@ class O7 {
3740
3740
  });
3741
3741
  }
3742
3742
  for (let i = e.depth; i > 0; i--)
3743
- this.placed = U.from(e.node(i).copy(this.placed));
3743
+ this.placed = H.from(e.node(i).copy(this.placed));
3744
3744
  }
3745
3745
  get depth() {
3746
3746
  return this.frontier.length - 1;
@@ -3779,7 +3779,7 @@ class O7 {
3779
3779
  let o = i.firstChild;
3780
3780
  for (let a = this.depth; a >= 0; a--) {
3781
3781
  let { type: l, match: c } = this.frontier[a], u, d = null;
3782
- if (n == 1 && (o ? c.matchType(o.type) || (d = c.fillBefore(U.from(o), !1)) : s && l.compatibleContent(s.type)))
3782
+ if (n == 1 && (o ? c.matchType(o.type) || (d = c.fillBefore(H.from(o), !1)) : s && l.compatibleContent(s.type)))
3783
3783
  return { sliceDepth: r, frontierDepth: a, parent: s, inject: d };
3784
3784
  if (n == 2 && o && (u = c.findWrapping(o.type)))
3785
3785
  return { sliceDepth: r, frontierDepth: a, parent: s, wrap: u };
@@ -3823,7 +3823,7 @@ class O7 {
3823
3823
  c++, (c > 1 || l == 0 || m.content.size) && (d = g, u.push(Q2(m.mark(f.allowedMarks(m.marks)), c == 1 ? l : 0, c == a.childCount ? h : -1)));
3824
3824
  }
3825
3825
  let p = c == a.childCount;
3826
- p || (h = -1), this.placed = Ra(this.placed, n, U.from(u)), this.frontier[n].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3826
+ p || (h = -1), this.placed = Ra(this.placed, n, H.from(u)), this.frontier[n].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3827
3827
  for (let m = 0, g = a; m < h; m++) {
3828
3828
  let b = g.lastChild;
3829
3829
  this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), g = b.content;
@@ -3869,10 +3869,10 @@ class O7 {
3869
3869
  }
3870
3870
  openFrontierNode(e, n = null, r) {
3871
3871
  let i = this.frontier[this.depth];
3872
- i.match = i.match.matchType(e), this.placed = Ra(this.placed, this.depth, U.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch });
3872
+ i.match = i.match.matchType(e), this.placed = Ra(this.placed, this.depth, H.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch });
3873
3873
  }
3874
3874
  closeFrontierNode() {
3875
- let n = this.frontier.pop().match.fillBefore(U.empty, !0);
3875
+ let n = this.frontier.pop().match.fillBefore(H.empty, !0);
3876
3876
  n.childCount && (this.placed = Ra(this.placed, this.frontier.length, n));
3877
3877
  }
3878
3878
  }
@@ -3891,7 +3891,7 @@ function Q2(t, e, n) {
3891
3891
  if (e <= 0)
3892
3892
  return t;
3893
3893
  let r = t.content;
3894
- return e > 1 && (r = r.replaceChild(0, Q2(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(U.empty, !0)))), t.copy(r);
3894
+ return e > 1 && (r = r.replaceChild(0, Q2(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(H.empty, !0)))), t.copy(r);
3895
3895
  }
3896
3896
  function ef(t, e, n, r, i) {
3897
3897
  let s = t.node(e), o = i ? t.indexAfter(e) : t.index(e);
@@ -3963,7 +3963,7 @@ function e4(t, e, n, r, i) {
3963
3963
  }
3964
3964
  if (e > r) {
3965
3965
  let s = i.contentMatchAt(0), o = s.fillBefore(t).append(t);
3966
- t = o.append(s.matchFragment(o).fillBefore(U.empty, !0));
3966
+ t = o.append(s.matchFragment(o).fillBefore(H.empty, !0));
3967
3967
  }
3968
3968
  return t;
3969
3969
  }
@@ -3972,7 +3972,7 @@ function D7(t, e, n, r) {
3972
3972
  let i = N7(t.doc, e, r.type);
3973
3973
  i != null && (e = n = i);
3974
3974
  }
3975
- t.replaceRange(e, n, new Z(U.from(r), 0, 0));
3975
+ t.replaceRange(e, n, new Z(H.from(r), 0, 0));
3976
3976
  }
3977
3977
  function L7(t, e, n) {
3978
3978
  let r = t.doc.resolve(e), i = t.doc.resolve(n), s = t4(r, i);
@@ -4014,7 +4014,7 @@ class Ro extends nn {
4014
4014
  r[s] = n.attrs[s];
4015
4015
  r[this.attr] = this.value;
4016
4016
  let i = n.type.create(r, null, n.marks);
4017
- return St.fromReplace(e, this.pos, this.pos + 1, new Z(U.from(i), 0, n.isLeaf ? 0 : 1));
4017
+ return St.fromReplace(e, this.pos, this.pos + 1, new Z(H.from(i), 0, n.isLeaf ? 0 : 1));
4018
4018
  }
4019
4019
  getMap() {
4020
4020
  return In.empty;
@@ -4136,7 +4136,7 @@ class Hl {
4136
4136
  fragment, node, or array of nodes.
4137
4137
  */
4138
4138
  replaceWith(e, n, r) {
4139
- return this.replace(e, n, new Z(U.from(r), 0, 0));
4139
+ return this.replace(e, n, new Z(H.from(r), 0, 0));
4140
4140
  }
4141
4141
  /**
4142
4142
  Delete the content between the given positions.
@@ -4579,7 +4579,7 @@ class le extends ce {
4579
4579
  return r ? ce.near(s) : new le(s);
4580
4580
  }
4581
4581
  content() {
4582
- return new Z(U.from(this.node), 0, 0);
4582
+ return new Z(H.from(this.node), 0, 0);
4583
4583
  }
4584
4584
  eq(e) {
4585
4585
  return e instanceof le && e.anchor == this.anchor;
@@ -5382,10 +5382,10 @@ function a4(t, e, n, r) {
5382
5382
  let c = !l && e.parent.canReplace(e.index(), e.index() + 1);
5383
5383
  if (c && (o = (a = i.contentMatchAt(i.childCount)).findWrapping(s.type)) && a.matchType(o[0] || s.type).validEnd) {
5384
5384
  if (n) {
5385
- let h = e.pos + s.nodeSize, p = U.empty;
5385
+ let h = e.pos + s.nodeSize, p = H.empty;
5386
5386
  for (let b = o.length - 1; b >= 0; b--)
5387
- p = U.from(o[b].create(null, p));
5388
- p = U.from(i.copy(p));
5387
+ p = H.from(o[b].create(null, p));
5388
+ p = H.from(i.copy(p));
5389
5389
  let m = t.tr.step(new Et(e.pos - 1, h, e.pos, h, new Z(p, 1, 0), o.length, !0)), g = m.doc.resolve(h + 2 * o.length);
5390
5390
  g.nodeAfter && g.nodeAfter.type == i.type && Un(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
5391
5391
  }
@@ -5403,9 +5403,9 @@ function a4(t, e, n, r) {
5403
5403
  g++;
5404
5404
  if (h.canReplace(h.childCount, h.childCount, m.content)) {
5405
5405
  if (n) {
5406
- let b = U.empty;
5406
+ let b = H.empty;
5407
5407
  for (let S = p.length - 1; S >= 0; S--)
5408
- b = U.from(p[S].copy(b));
5408
+ b = H.from(p[S].copy(b));
5409
5409
  let x = t.tr.step(new Et(e.pos - p.length, e.pos + s.nodeSize, e.pos + g, e.pos + s.nodeSize - g, new Z(b, p.length, 0), 0, !0));
5410
5410
  n(x.scrollIntoView());
5411
5411
  }
@@ -5495,9 +5495,9 @@ function U7(t, e, n, r = null) {
5495
5495
  return a ? (t && V7(t, e, a, i, n), !0) : !1;
5496
5496
  }
5497
5497
  function V7(t, e, n, r, i) {
5498
- let s = U.empty;
5498
+ let s = H.empty;
5499
5499
  for (let u = n.length - 1; u >= 0; u--)
5500
- s = U.from(n[u].type.create(n[u].attrs, s));
5500
+ s = H.from(n[u].type.create(n[u].attrs, s));
5501
5501
  t.step(new Et(e.start - (r ? 2 : 0), e.end, e.start, e.end, new Z(s, 0, 0), n.length, !0));
5502
5502
  let o = 0;
5503
5503
  for (let u = 0; u < n.length; u++)
@@ -5515,7 +5515,7 @@ function am(t) {
5515
5515
  }
5516
5516
  function q7(t, e, n, r) {
5517
5517
  let i = t.tr, s = r.end, o = r.$to.end(r.depth);
5518
- s < o && (i.step(new Et(s - 1, o, s, o, new Z(U.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new rl(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
5518
+ s < o && (i.step(new Et(s - 1, o, s, o, new Z(H.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new rl(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
5519
5519
  const a = bs(r);
5520
5520
  if (a == null)
5521
5521
  return !1;
@@ -5531,10 +5531,10 @@ function W7(t, e, n) {
5531
5531
  if (r.mapping.map(n.end) != n.start + s.nodeAfter.nodeSize)
5532
5532
  return !1;
5533
5533
  let a = n.startIndex == 0, l = n.endIndex == i.childCount, c = s.node(-1), u = s.index(-1);
5534
- if (!c.canReplace(u + (a ? 0 : 1), u + 1, o.content.append(l ? U.empty : U.from(i))))
5534
+ if (!c.canReplace(u + (a ? 0 : 1), u + 1, o.content.append(l ? H.empty : H.from(i))))
5535
5535
  return !1;
5536
5536
  let d = s.pos, f = d + o.nodeSize;
5537
- return r.step(new Et(d - (a ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new Z((a ? U.empty : U.from(i.copy(U.empty))).append(l ? U.empty : U.from(i.copy(U.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
5537
+ return r.step(new Et(d - (a ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new Z((a ? H.empty : H.from(i.copy(H.empty))).append(l ? H.empty : H.from(i.copy(H.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
5538
5538
  }
5539
5539
  function lm(t) {
5540
5540
  return function(e, n) {
@@ -5548,7 +5548,7 @@ function lm(t) {
5548
5548
  if (l.type != t)
5549
5549
  return !1;
5550
5550
  if (n) {
5551
- let c = l.lastChild && l.lastChild.type == a.type, u = U.from(c ? t.create() : null), d = new Z(U.from(t.create(null, U.from(a.type.create(null, u)))), c ? 3 : 1, 0), f = s.start, h = s.end;
5551
+ let c = l.lastChild && l.lastChild.type == a.type, u = H.from(c ? t.create() : null), d = new Z(H.from(t.create(null, H.from(a.type.create(null, u)))), c ? 3 : 1, 0), f = s.start, h = s.end;
5552
5552
  n(e.tr.step(new Et(f - (c ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
5553
5553
  }
5554
5554
  return !0;
@@ -6490,7 +6490,7 @@ class is extends Wl {
6490
6490
  break;
6491
6491
  }
6492
6492
  }
6493
- e.contentElement || (e.getContent = () => U.empty);
6493
+ e.contentElement || (e.getContent = () => H.empty);
6494
6494
  }
6495
6495
  return e;
6496
6496
  }
@@ -7437,7 +7437,7 @@ function M4(t, e, n, r, i) {
7437
7437
  if (t.someProp("transformPastedText", (f) => {
7438
7438
  e = f(e, s || r, t);
7439
7439
  }), s)
7440
- return e ? new Z(U.from(t.state.schema.text(e.replace(/\r\n?/g, `
7440
+ return e ? new Z(H.from(t.state.schema.text(e.replace(/\r\n?/g, `
7441
7441
  `))), 0, 0) : Z.empty;
7442
7442
  let d = t.someProp("clipboardTextParser", (f) => f(e, i, r, t));
7443
7443
  if (d)
@@ -7503,13 +7503,13 @@ function B8(t, e) {
7503
7503
  o.push(u), i = i.matchType(u.type), s = l;
7504
7504
  }
7505
7505
  }), o)
7506
- return U.from(o);
7506
+ return H.from(o);
7507
7507
  }
7508
7508
  return t;
7509
7509
  }
7510
7510
  function T4(t, e, n = 0) {
7511
7511
  for (let r = e.length - 1; r >= n; r--)
7512
- t = e[r].create(null, U.from(t));
7512
+ t = e[r].create(null, H.from(t));
7513
7513
  return t;
7514
7514
  }
7515
7515
  function A4(t, e, n, r, i) {
@@ -7518,18 +7518,18 @@ function A4(t, e, n, r, i) {
7518
7518
  if (s)
7519
7519
  return r.copy(r.content.replaceChild(r.childCount - 1, s));
7520
7520
  if (r.contentMatchAt(r.childCount).matchType(i == t.length - 1 ? n.type : t[i + 1]))
7521
- return r.copy(r.content.append(U.from(T4(n, t, i + 1))));
7521
+ return r.copy(r.content.append(H.from(T4(n, t, i + 1))));
7522
7522
  }
7523
7523
  }
7524
7524
  function N4(t, e) {
7525
7525
  if (e == 0)
7526
7526
  return t;
7527
- let n = t.content.replaceChild(t.childCount - 1, N4(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(U.empty, !0);
7527
+ let n = t.content.replaceChild(t.childCount - 1, N4(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(H.empty, !0);
7528
7528
  return t.copy(n.append(r));
7529
7529
  }
7530
7530
  function Oh(t, e, n, r, i, s) {
7531
7531
  let o = e < 0 ? t.firstChild : t.lastChild, a = o.content;
7532
- return t.childCount > 1 && (s = 0), i < r - 1 && (a = Oh(a, e, n, r, i + 1, s)), i >= n && (a = e < 0 ? o.contentMatchAt(0).fillBefore(a, s <= i).append(a) : a.append(o.contentMatchAt(o.childCount).fillBefore(U.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, o.copy(a));
7532
+ return t.childCount > 1 && (s = 0), i < r - 1 && (a = Oh(a, e, n, r, i + 1, s)), i >= n && (a = e < 0 ? o.contentMatchAt(0).fillBefore(a, s <= i).append(a) : a.append(o.contentMatchAt(o.childCount).fillBefore(H.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, o.copy(a));
7533
7533
  }
7534
7534
  function X1(t, e, n) {
7535
7535
  return e < t.openStart && (t = new Z(Oh(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new Z(Oh(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
@@ -7584,7 +7584,7 @@ function F8(t, e) {
7584
7584
  let l = n.nodes[r[a]];
7585
7585
  if (!l || l.hasRequiredAttrs())
7586
7586
  break;
7587
- i = U.from(l.create(r[a + 1], i)), s++, o++;
7587
+ i = H.from(l.create(r[a + 1], i)), s++, o++;
7588
7588
  }
7589
7589
  return new Z(i, s, o);
7590
7590
  }
@@ -8858,7 +8858,7 @@ function xS(t, e) {
8858
8858
  let c = [];
8859
8859
  for (let u = 0; u < e.childCount; u++)
8860
8860
  c.push(l(e.child(u)));
8861
- if (U.from(c).eq(t))
8861
+ if (H.from(c).eq(t))
8862
8862
  return { mark: a, type: o };
8863
8863
  }
8864
8864
  function kS(t, e, n, r, i) {
@@ -9774,7 +9774,7 @@ function gc(t) {
9774
9774
  return j4(n);
9775
9775
  }
9776
9776
  function ul(t, e, n) {
9777
- if (t instanceof Wr || t instanceof U)
9777
+ if (t instanceof Wr || t instanceof H)
9778
9778
  return t;
9779
9779
  n = {
9780
9780
  slice: !0,
@@ -9785,7 +9785,7 @@ function ul(t, e, n) {
9785
9785
  if (r)
9786
9786
  try {
9787
9787
  if (Array.isArray(t) && t.length > 0)
9788
- return U.fromArray(t.map((a) => e.nodeFromJSON(a)));
9788
+ return H.fromArray(t.map((a) => e.nodeFromJSON(a)));
9789
9789
  const o = e.nodeFromJSON(t);
9790
9790
  return n.errorOnInvalidContent && o.check(), o;
9791
9791
  } catch (s) {
@@ -9888,7 +9888,7 @@ var QS = (t) => !("type" in t), eE = (t, e, n) => ({ tr: r, dispatch: i, editor:
9888
9888
  if (f) {
9889
9889
  if (Array.isArray(e))
9890
9890
  m = e.map((g) => g.text || "").join("");
9891
- else if (e instanceof U) {
9891
+ else if (e instanceof H) {
9892
9892
  let g = "";
9893
9893
  e.forEach((b) => {
9894
9894
  b.text && (g += b.text);
@@ -10724,10 +10724,10 @@ var WE = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
10724
10724
  if (l.depth === 2 || l.node(-3).type !== a || l.index(-2) !== l.node(-2).childCount - 1)
10725
10725
  return !1;
10726
10726
  if (i) {
10727
- let b = U.empty;
10727
+ let b = H.empty;
10728
10728
  const x = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
10729
10729
  for (let A = l.depth - x; A >= l.depth - 3; A -= 1)
10730
- b = U.from(l.node(A).copy(b));
10730
+ b = H.from(l.node(A).copy(b));
10731
10731
  const S = (
10732
10732
  // eslint-disable-next-line no-nested-ternary
10733
10733
  l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3
@@ -10735,7 +10735,7 @@ var WE = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
10735
10735
  ...lu(f, l.node().type.name, l.node().attrs),
10736
10736
  ...e
10737
10737
  }, k = ((o = a.contentMatch.defaultType) == null ? void 0 : o.createAndFill(y)) || void 0;
10738
- b = b.append(U.from(a.createAndFill(null, k) || void 0));
10738
+ b = b.append(H.from(a.createAndFill(null, k) || void 0));
10739
10739
  const C = l.before(l.depth - (x - 1));
10740
10740
  n.replace(C, l.after(-S), new Z(b, 4 - x, 0));
10741
10741
  let T = -1;
@@ -11007,7 +11007,7 @@ function oC(t) {
11007
11007
  const l = i.getMeta("applyInputRules");
11008
11008
  return !!l && setTimeout(() => {
11009
11009
  let { text: u } = l;
11010
- typeof u == "string" ? u = u : u = Cm(U.from(u), o.schema);
11010
+ typeof u == "string" ? u = u : u = Cm(H.from(u), o.schema);
11011
11011
  const { from: d } = l, f = d + u.length;
11012
11012
  bc({
11013
11013
  editor: e,
@@ -11280,7 +11280,7 @@ function hC(t) {
11280
11280
  return;
11281
11281
  if (x) {
11282
11282
  let { text: k } = b;
11283
- typeof k == "string" ? k = k : k = Cm(U.from(k), h.schema);
11283
+ typeof k == "string" ? k = k : k = Cm(H.from(k), h.schema);
11284
11284
  const { from: C } = b, T = C + k.length, A = fC(k);
11285
11285
  return l({
11286
11286
  rule: u,
@@ -13113,7 +13113,7 @@ var _C = class extends vC {
13113
13113
  var i;
13114
13114
  if (!e.value || !((i = r.view.dom) != null && i.parentNode))
13115
13115
  return;
13116
- const s = Ie(e.value);
13116
+ const s = De(e.value);
13117
13117
  e.value.append(...r.view.dom.parentNode.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
13118
13118
  ...n.appContext,
13119
13119
  // Vue internally uses prototype chain to forward/shadow injects across the entire component chain
@@ -13621,7 +13621,7 @@ const Do = {
13621
13621
  let r = (Do == null ? void 0 : Do[e.icon]) ?? "";
13622
13622
  return e.width ? r = r.replace(/width="(\d+)"/, `width="${e.width}"`) : r = r.replace(/width="[^"]*"/, ""), e.height ? r = r.replace(/height="(\d+)"/, `height="${e.height}"`) : r = r.replace(/height="[^"]*"/, ""), r;
13623
13623
  });
13624
- return (r, i) => (H(), re("div", {
13624
+ return (r, i) => (U(), re("div", {
13625
13625
  style: {
13626
13626
  height: "auto",
13627
13627
  display: "flex"
@@ -14724,7 +14724,7 @@ function Sc(t) {
14724
14724
  return Pw(n);
14725
14725
  }
14726
14726
  function pl(t, e, n) {
14727
- if (t instanceof Wr || t instanceof U)
14727
+ if (t instanceof Wr || t instanceof H)
14728
14728
  return t;
14729
14729
  n = {
14730
14730
  slice: !0,
@@ -14735,7 +14735,7 @@ function pl(t, e, n) {
14735
14735
  if (r)
14736
14736
  try {
14737
14737
  if (Array.isArray(t) && t.length > 0)
14738
- return U.fromArray(t.map((a) => e.nodeFromJSON(a)));
14738
+ return H.fromArray(t.map((a) => e.nodeFromJSON(a)));
14739
14739
  const o = e.nodeFromJSON(t);
14740
14740
  return n.errorOnInvalidContent && o.check(), o;
14741
14741
  } catch (s) {
@@ -15483,7 +15483,7 @@ var ZM = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: s }) => {
15483
15483
  if (h) {
15484
15484
  if (Array.isArray(e))
15485
15485
  g = e.map((b) => b.text || "").join("");
15486
- else if (e instanceof U) {
15486
+ else if (e instanceof H) {
15487
15487
  let b = "";
15488
15488
  e.forEach((x) => {
15489
15489
  x.text && (b += x.text);
@@ -15714,10 +15714,10 @@ var I9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
15714
15714
  if (l.depth === 2 || l.node(-3).type !== a || l.index(-2) !== l.node(-2).childCount - 1)
15715
15715
  return !1;
15716
15716
  if (i) {
15717
- let b = U.empty;
15717
+ let b = H.empty;
15718
15718
  const x = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
15719
15719
  for (let A = l.depth - x; A >= l.depth - 3; A -= 1)
15720
- b = U.from(l.node(A).copy(b));
15720
+ b = H.from(l.node(A).copy(b));
15721
15721
  const S = (
15722
15722
  // eslint-disable-next-line no-nested-ternary
15723
15723
  l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3
@@ -15725,7 +15725,7 @@ var I9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
15725
15725
  ...uu(f, l.node().type.name, l.node().attrs),
15726
15726
  ...e
15727
15727
  }, k = ((o = a.contentMatch.defaultType) == null ? void 0 : o.createAndFill(y)) || void 0;
15728
- b = b.append(U.from(a.createAndFill(null, k) || void 0));
15728
+ b = b.append(H.from(a.createAndFill(null, k) || void 0));
15729
15729
  const C = l.before(l.depth - (x - 1));
15730
15730
  n.replace(C, l.after(-S), new Z(b, 4 - x, 0));
15731
15731
  let T = -1;
@@ -17537,9 +17537,9 @@ function VT(t, e) {
17537
17537
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
17538
17538
  if (!r)
17539
17539
  return !1;
17540
- let i = U.empty;
17540
+ let i = H.empty;
17541
17541
  for (let o = r.length - 1; o >= 0; o--)
17542
- i = U.from(r[o].createAndFill(null, i));
17542
+ i = H.from(r[o].createAndFill(null, i));
17543
17543
  let s = t.state.tr.replace(n.pos, n.pos, new Z(i, 0, 0));
17544
17544
  return s.setSelection(Q.near(s.doc.resolve(n.pos + 1))), t.dispatch(s), !1;
17545
17545
  }
@@ -19734,10 +19734,10 @@ var et = class pi extends ce {
19734
19734
  }
19735
19735
  c.push(p);
19736
19736
  }
19737
- o.push(e.child(l).copy(U.from(c)));
19737
+ o.push(e.child(l).copy(H.from(c)));
19738
19738
  }
19739
19739
  const a = this.isColSelection() && this.isRowSelection() ? e : o;
19740
- return new Z(U.from(a), 1, 1);
19740
+ return new Z(H.from(a), 1, 1);
19741
19741
  }
19742
19742
  replace(e, n = Z.empty) {
19743
19743
  const r = e.steps.length, i = this.ranges;
@@ -19756,7 +19756,7 @@ var et = class pi extends ce {
19756
19756
  s && e.setSelection(s);
19757
19757
  }
19758
19758
  replaceWith(e, n) {
19759
- this.replace(e, new Z(U.from(n), 0, 0));
19759
+ this.replace(e, new Z(H.from(n), 0, 0));
19760
19760
  }
19761
19761
  forEachCell(e) {
19762
19762
  const n = this.$anchorCell.node(-1), r = ft.get(n), i = this.$anchorCell.start(-1), s = r.cellsInRect(
@@ -20155,7 +20155,7 @@ function Yb(t, e) {
20155
20155
  if (ON(i, r)) return !1;
20156
20156
  if (e) {
20157
20157
  const s = t.tr, o = {};
20158
- let a = U.empty, l, c;
20158
+ let a = H.empty, l, c;
20159
20159
  for (let u = r.top; u < r.bottom; u++)
20160
20160
  for (let d = r.left; d < r.right; d++) {
20161
20161
  const f = i.map[u * i.width + d], h = r.table.nodeAt(f);
@@ -20445,11 +20445,11 @@ function $N(t, e) {
20445
20445
  let r = 0;
20446
20446
  for (let i = 0; i < n.length; i++) r = Math.max(r, n[i]);
20447
20447
  for (let i = 0; i < n.length; i++)
20448
- if (i >= e.length && e.push(U.empty), n[i] < r) {
20448
+ if (i >= e.length && e.push(H.empty), n[i] < r) {
20449
20449
  const s = en(t).cell.createAndFill(), o = [];
20450
20450
  for (let a = n[i]; a < r; a++)
20451
20451
  o.push(s);
20452
- e[i] = e[i].append(U.from(o));
20452
+ e[i] = e[i].append(H.from(o));
20453
20453
  }
20454
20454
  return { height: e.length, width: r, rows: e };
20455
20455
  }
@@ -20475,7 +20475,7 @@ function zN({ width: t, height: e, rows: n }, r, i) {
20475
20475
  for (let h = 1; h < f.attrs.rowspan; h++)
20476
20476
  s[a + h] = (s[a + h] || 0) + f.attrs.colspan;
20477
20477
  }
20478
- o.push(U.from(c));
20478
+ o.push(H.from(c));
20479
20479
  }
20480
20480
  n = o, t = r;
20481
20481
  }
@@ -20493,7 +20493,7 @@ function zN({ width: t, height: e, rows: n }, r, i) {
20493
20493
  d.content
20494
20494
  )), l.push(d);
20495
20495
  }
20496
- s.push(U.from(l));
20496
+ s.push(H.from(l));
20497
20497
  }
20498
20498
  n = s, e = i;
20499
20499
  }
@@ -20520,7 +20520,7 @@ function FN(t, e, n, r, i, s, o) {
20520
20520
  g ? u || (u = l.header_cell.createAndFill()) : c || (c = l.cell.createAndFill())
20521
20521
  );
20522
20522
  }
20523
- const f = l.row.create(null, U.from(d)), h = [];
20523
+ const f = l.row.create(null, H.from(d)), h = [];
20524
20524
  for (let p = e.height; p < s; p++) h.push(f);
20525
20525
  t.insert(t.mapping.slice(o).map(r + n.nodeSize - 2), h);
20526
20526
  }
@@ -20678,7 +20678,7 @@ function VN(t, e, n) {
20678
20678
  width: 1,
20679
20679
  height: 1,
20680
20680
  rows: [
20681
- U.from(
20681
+ H.from(
20682
20682
  Jh(en(t.state.schema).cell, n)
20683
20683
  )
20684
20684
  ]
@@ -21427,7 +21427,7 @@ function Oc(t) {
21427
21427
  return F3(n);
21428
21428
  }
21429
21429
  function bl(t, e, n) {
21430
- if (t instanceof Wr || t instanceof U)
21430
+ if (t instanceof Wr || t instanceof H)
21431
21431
  return t;
21432
21432
  n = {
21433
21433
  slice: !0,
@@ -21438,7 +21438,7 @@ function bl(t, e, n) {
21438
21438
  if (r)
21439
21439
  try {
21440
21440
  if (Array.isArray(t) && t.length > 0)
21441
- return U.fromArray(t.map((a) => e.nodeFromJSON(a)));
21441
+ return H.fromArray(t.map((a) => e.nodeFromJSON(a)));
21442
21442
  const o = e.nodeFromJSON(t);
21443
21443
  return n.errorOnInvalidContent && o.check(), o;
21444
21444
  } catch (s) {
@@ -22131,7 +22131,7 @@ var jO = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: s }) => {
22131
22131
  if (h) {
22132
22132
  if (Array.isArray(e))
22133
22133
  g = e.map((b) => b.text || "").join("");
22134
- else if (e instanceof U) {
22134
+ else if (e instanceof H) {
22135
22135
  let b = "";
22136
22136
  e.forEach((x) => {
22137
22137
  x.text && (b += x.text);
@@ -22362,10 +22362,10 @@ var T_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
22362
22362
  if (l.depth === 2 || l.node(-3).type !== a || l.index(-2) !== l.node(-2).childCount - 1)
22363
22363
  return !1;
22364
22364
  if (i) {
22365
- let b = U.empty;
22365
+ let b = H.empty;
22366
22366
  const x = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
22367
22367
  for (let A = l.depth - x; A >= l.depth - 3; A -= 1)
22368
- b = U.from(l.node(A).copy(b));
22368
+ b = H.from(l.node(A).copy(b));
22369
22369
  const S = (
22370
22370
  // eslint-disable-next-line no-nested-ternary
22371
22371
  l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3
@@ -22373,7 +22373,7 @@ var T_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
22373
22373
  ...pu(f, l.node().type.name, l.node().attrs),
22374
22374
  ...e
22375
22375
  }, k = ((o = a.contentMatch.defaultType) == null ? void 0 : o.createAndFill(y)) || void 0;
22376
- b = b.append(U.from(a.createAndFill(null, k) || void 0));
22376
+ b = b.append(H.from(a.createAndFill(null, k) || void 0));
22377
22377
  const C = l.before(l.depth - (x - 1));
22378
22378
  n.replace(C, l.after(-S), new Z(b, 4 - x, 0));
22379
22379
  let T = -1;
@@ -23579,14 +23579,14 @@ const mR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Ae({
23579
23579
  lg: 1.5
23580
23580
  })[(e == null ? void 0 : e.iconSize) || "md"]
23581
23581
  );
23582
- return (i, s) => (H(), re("button", {
23582
+ return (i, s) => (U(), re("button", {
23583
23583
  type: t.type,
23584
23584
  class: Le(n.value),
23585
23585
  disabled: t.disabled || t.loading,
23586
23586
  title: t.tooltip,
23587
23587
  tabindex: t.tabindex || -1
23588
23588
  }, [
23589
- t.icon && !t.iconRight ? (H(), we(lr, {
23589
+ t.icon && !t.iconRight ? (U(), we(lr, {
23590
23590
  key: 0,
23591
23591
  icon: t.icon,
23592
23592
  class: Le(["icon-size", r.value])
@@ -23594,7 +23594,7 @@ const mR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Ae({
23594
23594
  nr(i.$slots, "default", {}, () => [
23595
23595
  zp(Fl(t.text), 1)
23596
23596
  ]),
23597
- t.iconRight ? (H(), we(lr, {
23597
+ t.iconRight ? (U(), we(lr, {
23598
23598
  key: 1,
23599
23599
  icon: t.iconRight,
23600
23600
  class: Le(["icon-size", r.value])
@@ -23651,14 +23651,14 @@ const mR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Ae({
23651
23651
  ), h3(i, () => {
23652
23652
  var u;
23653
23653
  (u = document.activeElement) != null && u.closest("#link-bubble-menu") || (er.value = !1);
23654
- }), (u, d) => (H(), re("div", {
23654
+ }), (u, d) => (U(), re("div", {
23655
23655
  id: "link-bubble-menu",
23656
23656
  ref_key: "containerRef",
23657
23657
  ref: i,
23658
23658
  "aria-label": "Link bubble menu",
23659
23659
  class: "link-bubble-menu bg-body border border-gray-200 rounded shadow-card py-1.5 px-2 flex items-center gap-2 rich-text-bubble-menu-reset"
23660
23660
  }, [
23661
- s.value ? (H(), re("a", {
23661
+ s.value ? (U(), re("a", {
23662
23662
  key: 0,
23663
23663
  href: s.value,
23664
23664
  target: "_blank",
@@ -23700,7 +23700,7 @@ const mR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Ae({
23700
23700
  onClick: xt(a, ["stop", "prevent"])
23701
23701
  }, null, 8, ["disabled"])
23702
23702
  ], 32),
23703
- n.value ? (H(), re("div", {
23703
+ n.value ? (U(), re("div", {
23704
23704
  key: 1,
23705
23705
  onMousedown: d[3] || (d[3] = xt(() => {
23706
23706
  }, ["prevent"]))
@@ -23896,7 +23896,7 @@ const mR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Ae({
23896
23896
  const u = e.editor.getAttributes("resizableImage").style || "";
23897
23897
  return u.includes("float: left") ? "left" : u.includes("float: right") ? "right" : "center";
23898
23898
  });
23899
- return (u, d) => (H(), re("div", {
23899
+ return (u, d) => (U(), re("div", {
23900
23900
  class: "bg-body flex items-center gap-1 px-2 py-1.5 box-shadow border rounded rich-text-bubble-menu-reset",
23901
23901
  onMousedown: d[0] || (d[0] = xt(() => {
23902
23902
  }, ["prevent"]))
@@ -23972,7 +23972,7 @@ const mR = ["type", "disabled", "title", "tabindex"], ye = /* @__PURE__ */ Ae({
23972
23972
  }, o = () => {
23973
23973
  e.editor && e.editor.chain().focus().deleteInlineMath().run();
23974
23974
  };
23975
- return (a, l) => (H(), re("div", SR, [
23975
+ return (a, l) => (U(), re("div", SR, [
23976
23976
  Fp(V("input", {
23977
23977
  ref_key: "inputRef",
23978
23978
  ref: r,
@@ -24615,8 +24615,8 @@ function dI(t) {
24615
24615
  function fI(t) {
24616
24616
  var e = t.state, n = t.options, r = t.name;
24617
24617
  if (!e.modifiersData[r]._skip) {
24618
- for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, b = Gr(g), x = b === g, S = l || (x || !p ? [mu(g)] : dI(g)), y = [g].concat(S).reduce(function(De, Te) {
24619
- return De.concat(Gr(Te) === ig ? uI(e, {
24618
+ for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, b = Gr(g), x = b === g, S = l || (x || !p ? [mu(g)] : dI(g)), y = [g].concat(S).reduce(function(Ie, Te) {
24619
+ return Ie.concat(Gr(Te) === ig ? uI(e, {
24620
24620
  placement: Te,
24621
24621
  boundary: u,
24622
24622
  rootBoundary: d,
@@ -24634,8 +24634,8 @@ function fI(t) {
24634
24634
  }), z = $ ? D ? dr : Sn : D ? ur : kn;
24635
24635
  k[j] > C[j] && (z = mu(z));
24636
24636
  var q = mu(z), J = [];
24637
- if (s && J.push(I[P] <= 0), a && J.push(I[z] <= 0, I[q] <= 0), J.every(function(De) {
24638
- return De;
24637
+ if (s && J.push(I[P] <= 0), a && J.push(I[z] <= 0, I[q] <= 0), J.every(function(Ie) {
24638
+ return Ie;
24639
24639
  })) {
24640
24640
  _ = F, A = !1;
24641
24641
  break;
@@ -24643,11 +24643,11 @@ function fI(t) {
24643
24643
  T.set(F, J);
24644
24644
  }
24645
24645
  if (A)
24646
- for (var ne = p ? 3 : 1, ge = function(De) {
24646
+ for (var ne = p ? 3 : 1, ge = function(Ie) {
24647
24647
  var Te = y.find(function(at) {
24648
24648
  var lt = T.get(at);
24649
24649
  if (lt)
24650
- return lt.slice(0, De).every(function(Ge) {
24650
+ return lt.slice(0, Ie).every(function(Ge) {
24651
24651
  return Ge;
24652
24652
  });
24653
24653
  });
@@ -24772,10 +24772,10 @@ function kI(t) {
24772
24772
  };
24773
24773
  if (C) {
24774
24774
  if (s) {
24775
- var D, $ = y === "y" ? kn : Sn, j = y === "y" ? ur : dr, I = y === "y" ? "height" : "width", z = C[y], q = z + g[$], J = z - g[j], ne = h ? -A[I] / 2 : 0, ge = x === ra ? T[I] : A[I], be = x === ra ? -A[I] : -T[I], $e = e.elements.arrow, De = h && $e ? og($e) : {
24775
+ var D, $ = y === "y" ? kn : Sn, j = y === "y" ? ur : dr, I = y === "y" ? "height" : "width", z = C[y], q = z + g[$], J = z - g[j], ne = h ? -A[I] / 2 : 0, ge = x === ra ? T[I] : A[I], be = x === ra ? -A[I] : -T[I], $e = e.elements.arrow, Ie = h && $e ? og($e) : {
24776
24776
  width: 0,
24777
24777
  height: 0
24778
- }, Te = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : f5(), at = Te[$], lt = Te[j], Ge = Ga(0, T[I], De[I]), $t = S ? T[I] / 2 - ne - Ge - at - L.mainAxis : ge - Ge - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ge + lt + L.mainAxis : be + Ge + lt + L.mainAxis, qt = e.elements.arrow && ec(e.elements.arrow), Wn = qt ? y === "y" ? qt.clientTop || 0 : qt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, sn = z + $t - zt - Wn, pt = z + At - zt, Oe = Ga(h ? wd(q, sn) : q, z, h ? Ws(J, pt) : J);
24778
+ }, Te = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : f5(), at = Te[$], lt = Te[j], Ge = Ga(0, T[I], Ie[I]), $t = S ? T[I] / 2 - ne - Ge - at - L.mainAxis : ge - Ge - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ge + lt + L.mainAxis : be + Ge + lt + L.mainAxis, qt = e.elements.arrow && ec(e.elements.arrow), Wn = qt ? y === "y" ? qt.clientTop || 0 : qt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, sn = z + $t - zt - Wn, pt = z + At - zt, Oe = Ga(h ? wd(q, sn) : q, z, h ? Ws(J, pt) : J);
24779
24779
  C[y] = Oe, P[y] = Oe - z;
24780
24780
  }
24781
24781
  if (a) {
@@ -25144,20 +25144,20 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25144
25144
  a();
25145
25145
  }), ao(() => {
25146
25146
  l();
25147
- }), (h, p) => (H(), re("div", BI, [
25147
+ }), (h, p) => (U(), re("div", BI, [
25148
25148
  V("span", {
25149
25149
  ref_key: "triggerRef",
25150
25150
  ref: i,
25151
25151
  class: Le(["tooltip-trigger", h.triggerClass])
25152
25152
  }, [
25153
- nr(h.$slots, "trigger", el(tl({ isOpen: Ie(c) })))
25153
+ nr(h.$slots, "trigger", el(tl({ isOpen: De(c) })))
25154
25154
  ], 2),
25155
- Ie(c) ? (H(), we(E2(h.teleport ? Vk : "div"), {
25155
+ De(c) ? (U(), we(E2(h.teleport ? Vk : "div"), {
25156
25156
  key: 0,
25157
25157
  to: "body"
25158
25158
  }, {
25159
25159
  default: qe(() => [
25160
- Ie(c) ? (H(), re("div", {
25160
+ De(c) ? (U(), re("div", {
25161
25161
  key: 0,
25162
25162
  style: Kt(h.styles),
25163
25163
  ref_key: "containerRef",
@@ -25169,11 +25169,11 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25169
25169
  V("div", {
25170
25170
  class: Le(["tooltip-content", h.contentClass])
25171
25171
  }, [
25172
- nr(h.$slots, "default", el(tl({ isOpen: Ie(c) })), () => [
25172
+ nr(h.$slots, "default", el(tl({ isOpen: De(c) })), () => [
25173
25173
  zp(Fl(h.content), 1)
25174
25174
  ])
25175
25175
  ], 2),
25176
- h.arrow ? (H(), re("div", {
25176
+ h.arrow ? (U(), re("div", {
25177
25177
  key: 0,
25178
25178
  class: Le(["tooltip-arrow", f.value])
25179
25179
  }, null, 2)) : ae("", !0)
@@ -25244,17 +25244,17 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25244
25244
  }
25245
25245
  ), Tn(a, () => {
25246
25246
  n.selectedIndex !== null && (s.value = 0, h());
25247
- }), (p, m) => (H(), re("div", $I, [
25247
+ }), (p, m) => (U(), re("div", $I, [
25248
25248
  V("div", {
25249
25249
  class: Le(["z-50 text-sm bg-body rounded-md border select-none border-gray-200 min-w-[175px] w-max box-shadow max-h-[400px] overflow-y-auto web-scrollbar py-1.5 px-1.5 space-y-1", n.className]),
25250
25250
  ref_key: "containerRef",
25251
25251
  ref: o
25252
25252
  }, [
25253
- p.$slots.menu ? (H(), re("div", zI, [
25253
+ p.$slots.menu ? (U(), re("div", zI, [
25254
25254
  nr(p.$slots, "menu")
25255
25255
  ])) : ae("", !0),
25256
25256
  V("div", FI, [
25257
- (H(!0), re(dn, null, Cr(a.value, (g, b) => (H(), re("div", {
25257
+ (U(!0), re(dn, null, Cr(a.value, (g, b) => (U(), re("div", {
25258
25258
  key: g.value ?? g.label,
25259
25259
  onClick: (x) => l(g),
25260
25260
  class: Le(["dropdown-item px-3 py-1.5 rounded cursor-pointer", [
@@ -25266,8 +25266,8 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25266
25266
  p.$slots.option ? nr(p.$slots, "option", qd({
25267
25267
  key: 0,
25268
25268
  ref_for: !0
25269
- }, { option: g, index: b, selectedIndex: s.value })) : (H(), re("div", UI, [
25270
- g.icon || g.emoji ? (H(), we(lr, {
25269
+ }, { option: g, index: b, selectedIndex: s.value })) : (U(), re("div", UI, [
25270
+ g.icon || g.emoji ? (U(), we(lr, {
25271
25271
  key: 0,
25272
25272
  icon: g.icon || g.emoji,
25273
25273
  width: "1.13em",
@@ -25304,8 +25304,8 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25304
25304
  a.value === (n == null ? void 0 : n.selected) && (i = a.label);
25305
25305
  }), i;
25306
25306
  });
25307
- return (i, s) => (H(), re("div", null, [
25308
- he(Ie(PI), {
25307
+ return (i, s) => (U(), re("div", null, [
25308
+ he(De(PI), {
25309
25309
  content: "This is a tooltip",
25310
25310
  trigger: "click",
25311
25311
  arrow: !1,
@@ -25334,7 +25334,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25334
25334
  var o;
25335
25335
  return [
25336
25336
  nr(i.$slots, "default"),
25337
- (o = i.options) != null && o.length || i.$slots.menu ? (H(), we(b5, {
25337
+ (o = i.options) != null && o.length || i.$slots.menu ? (U(), we(b5, {
25338
25338
  key: 0,
25339
25339
  emptyMessage: i.emptyMessage,
25340
25340
  className: i.className,
@@ -25454,7 +25454,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25454
25454
  }
25455
25455
  return ((u = e.editor) == null ? void 0 : u.isActive("textStyle")) || !1;
25456
25456
  });
25457
- return (c, u) => (H(), we(Dr, { className: "!min-w-[150px] !w-[150px]" }, {
25457
+ return (c, u) => (U(), we(Dr, { className: "!min-w-[150px] !w-[150px]" }, {
25458
25458
  trigger: qe(() => [
25459
25459
  he(ye, {
25460
25460
  icon: "palette",
@@ -25468,7 +25468,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25468
25468
  V("div", WI, [
25469
25469
  u[1] || (u[1] = V("small", { class: "text-color opacity-75 -text-fs-3" }, "Text Color", -1)),
25470
25470
  V("div", jI, [
25471
- (H(), re(dn, null, Cr(n, ({ color: d, name: f, display: h }) => V("button", {
25471
+ (U(), re(dn, null, Cr(n, ({ color: d, name: f, display: h }) => V("button", {
25472
25472
  key: d,
25473
25473
  title: f,
25474
25474
  class: Le([
@@ -25478,7 +25478,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25478
25478
  style: Kt({ backgroundColor: h }),
25479
25479
  onClick: (p) => o(d)
25480
25480
  }, [
25481
- i.value === d ? (H(), re("div", KI, [...u[0] || (u[0] = [
25481
+ i.value === d ? (U(), re("div", KI, [...u[0] || (u[0] = [
25482
25482
  V("svg", {
25483
25483
  class: "w-3 h-3",
25484
25484
  fill: "#fff",
@@ -25499,7 +25499,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25499
25499
  V("small", { class: "text-text-color opacity-75 -text-fs-3" }, "Background")
25500
25500
  ], -1)),
25501
25501
  V("div", XI, [
25502
- (H(), re(dn, null, Cr(r, ({ color: d, name: f, display: h }) => V("button", {
25502
+ (U(), re(dn, null, Cr(r, ({ color: d, name: f, display: h }) => V("button", {
25503
25503
  key: d,
25504
25504
  title: f,
25505
25505
  class: Le([
@@ -25512,7 +25512,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25512
25512
  }),
25513
25513
  onClick: (p) => a(d)
25514
25514
  }, [
25515
- s.value === d ? (H(), re("div", ZI, [...u[2] || (u[2] = [
25515
+ s.value === d ? (U(), re("div", ZI, [...u[2] || (u[2] = [
25516
25516
  V("svg", {
25517
25517
  class: "w-3 h-3 text-color opacity-75 drop-shadow-sm",
25518
25518
  fill: "currentColor",
@@ -25611,7 +25611,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25611
25611
  const { $from: u } = e.editor.state.selection;
25612
25612
  c.setTextSelection({ from: u.start(), to: u.end() }), c.unsetBackgroundColor(), c.setTextSelection(e.editor.state.selection), c.run();
25613
25613
  };
25614
- return (c, u) => (H(), we(Dr, { className: "!min-w-[200px] !w-[200px]" }, {
25614
+ return (c, u) => (U(), we(Dr, { className: "!min-w-[200px] !w-[200px]" }, {
25615
25615
  trigger: qe(({ isOpen: d }) => [
25616
25616
  he(ye, {
25617
25617
  icon: "layout-grid",
@@ -25631,11 +25631,11 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25631
25631
  V("span", {
25632
25632
  class: Le(i.value ? "font-medium" : "")
25633
25633
  }, "Box Container", 2),
25634
- i.value ? (H(), re("span", eD, "✓")) : ae("", !0)
25634
+ i.value ? (U(), re("span", eD, "✓")) : ae("", !0)
25635
25635
  ], 2),
25636
25636
  u[2] || (u[2] = V("div", { class: "h-px bg-gray-200 my-1" }, null, -1)),
25637
25637
  u[3] || (u[3] = V("small", { class: "px-2 text-color opacity-75 -text-fs-3 block mb-1" }, "Border Style", -1)),
25638
- (H(), re(dn, null, Cr(n, (d) => V("button", {
25638
+ (U(), re(dn, null, Cr(n, (d) => V("button", {
25639
25639
  key: d.label,
25640
25640
  class: Le(["w-full text-left px-2 py-1.5 rounded text-sm bg-body hover:bg-secondary flex items-center justify-between group transition-colors", { "bg-secondary": s.value === d.value }]),
25641
25641
  onClick: (f) => a(d.value)
@@ -25643,7 +25643,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25643
25643
  V("span", {
25644
25644
  class: Le(s.value === d.value ? "font-medium" : "")
25645
25645
  }, Fl(d.label), 3),
25646
- s.value === d.value ? (H(), re("span", nD, "✓")) : ae("", !0)
25646
+ s.value === d.value ? (U(), re("span", nD, "✓")) : ae("", !0)
25647
25647
  ], 10, tD)), 64)),
25648
25648
  u[4] || (u[4] = V("div", { class: "h-px bg-gray-200 my-1" }, null, -1)),
25649
25649
  V("button", {
@@ -25688,9 +25688,9 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25688
25688
  }, a = () => {
25689
25689
  e.editor && e.editor.chain().focus().unsetFontSize().run();
25690
25690
  }, l = Se(() => e.editor ? !!e.editor.getAttributes("textStyle").fontSize : !1);
25691
- return (c, u) => (H(), we(Dr, { className: "!min-w-[100px] !w-[100px]" }, {
25691
+ return (c, u) => (U(), we(Dr, { className: "!min-w-[100px] !w-[100px]" }, {
25692
25692
  trigger: qe(() => [
25693
- l.value ? (H(), we(ye, {
25693
+ l.value ? (U(), we(ye, {
25694
25694
  key: 0,
25695
25695
  text: r.value,
25696
25696
  size: "sm",
@@ -25698,7 +25698,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25698
25698
  class: "!w-[50px] font-mono !gap-0.5",
25699
25699
  iconRight: "chevron-down",
25700
25700
  tooltip: "Font Size"
25701
- }, null, 8, ["text"])) : (H(), we(ye, {
25701
+ }, null, 8, ["text"])) : (U(), we(ye, {
25702
25702
  key: 1,
25703
25703
  size: "sm",
25704
25704
  variant: "transparent",
@@ -25710,7 +25710,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25710
25710
  menu: qe(() => [
25711
25711
  V("div", iD, [
25712
25712
  u[5] || (u[5] = V("small", { class: "px-2 text-color opacity-75 -text-fs-3 block mb-1" }, " Presets ", -1)),
25713
- (H(), re(dn, null, Cr(n, (d) => V("button", {
25713
+ (U(), re(dn, null, Cr(n, (d) => V("button", {
25714
25714
  key: d,
25715
25715
  class: Le(["w-full text-left px-2 py-1.5 rounded text-sm bg-body hover:bg-secondary flex items-center justify-between group transition-colors", { "bg-secondary": r.value === d }]),
25716
25716
  onClick: (f) => s(d)
@@ -25718,7 +25718,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25718
25718
  V("span", {
25719
25719
  class: Le(r.value === d ? "font-medium" : "")
25720
25720
  }, Fl(d) + "px ", 3),
25721
- r.value === d ? (H(), re("span", oD, " ✓ ")) : ae("", !0)
25721
+ r.value === d ? (U(), re("span", oD, " ✓ ")) : ae("", !0)
25722
25722
  ], 10, sD)), 64)),
25723
25723
  u[6] || (u[6] = V("div", { class: "h-px bg-gray-200 my-1" }, null, -1)),
25724
25724
  V("div", aD, [
@@ -25735,7 +25735,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25735
25735
  V("span", { class: "text-lg leading-none mb-0.5" }, "+", -1)
25736
25736
  ])])
25737
25737
  ]),
25738
- l.value ? (H(), re("button", {
25738
+ l.value ? (U(), re("button", {
25739
25739
  key: 0,
25740
25740
  class: "w-full px-2 py-1 rounded text-sm bg-secondary flex items-center gap-2 text-center",
25741
25741
  onClick: a
@@ -25768,7 +25768,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25768
25768
  var a;
25769
25769
  return ((a = e.visibleToolbars) == null ? void 0 : a.includes(o)) ?? !0;
25770
25770
  };
25771
- return (o, a) => s("align") ? (H(), re("div", dD, [
25771
+ return (o, a) => s("align") ? (U(), re("div", dD, [
25772
25772
  he(Dr, {
25773
25773
  options: n,
25774
25774
  selected: r.value,
@@ -25795,7 +25795,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25795
25795
  key: 1,
25796
25796
  class: "w-px h-4.5 bg-secondary-dark mx-0.5"
25797
25797
  }, hD = {
25798
- key: 5,
25798
+ key: 4,
25799
25799
  class: "flex items-center gap-1"
25800
25800
  }, pD = { class: "flex items-center" }, mD = /* @__PURE__ */ Ae({
25801
25801
  __name: "NotesBubleMenu",
@@ -25829,13 +25829,13 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25829
25829
  };
25830
25830
  return (o, a) => {
25831
25831
  var l, c, u, d, f, h, p, m, g, b, x;
25832
- return H(), re("div", {
25832
+ return U(), re("div", {
25833
25833
  class: "bg-body flex items-center gap-1 px-1 py-1 box-shadow border rounded rich-text-bubble-menu-reset",
25834
25834
  onMousedown: a[8] || (a[8] = xt(() => {
25835
25835
  }, ["prevent"]))
25836
25836
  }, [
25837
25837
  nr(o.$slots, "heading-selector", { editor: o.editor }, void 0, !0),
25838
- o.isCanvas ? ae("", !0) : (H(), we(uD, {
25838
+ o.isCanvas ? ae("", !0) : (U(), we(uD, {
25839
25839
  key: 0,
25840
25840
  editor: o.editor
25841
25841
  }, null, 8, ["editor"])),
@@ -25876,8 +25876,8 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25876
25876
  }),
25877
25877
  tooltip: "Strikethrough"
25878
25878
  }, null, 8, ["variant"]),
25879
- o.isCanvas ? (H(), re("div", fD)) : ae("", !0),
25880
- o.isCanvas ? (H(), we(ye, {
25879
+ o.isCanvas ? (U(), re("div", fD)) : ae("", !0),
25880
+ o.isCanvas ? (U(), we(ye, {
25881
25881
  key: 2,
25882
25882
  icon: "list",
25883
25883
  variant: (f = o.editor) != null && f.isActive("bulletList") ? "primary" : "transparent",
@@ -25887,7 +25887,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25887
25887
  }),
25888
25888
  tooltip: "Bullet List"
25889
25889
  }, null, 8, ["variant"])) : ae("", !0),
25890
- o.isCanvas ? (H(), we(ye, {
25890
+ o.isCanvas ? (U(), we(ye, {
25891
25891
  key: 3,
25892
25892
  icon: "list-ordered",
25893
25893
  variant: (h = o.editor) != null && h.isActive("orderedList") ? "primary" : "transparent",
@@ -25898,8 +25898,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25898
25898
  tooltip: "Numbered List"
25899
25899
  }, null, 8, ["variant"])) : ae("", !0),
25900
25900
  a[14] || (a[14] = V("div", { class: "w-px h-4.5 bg-secondary-dark mx-0.5" }, null, -1)),
25901
- o.isCanvas ? ae("", !0) : (H(), we(ye, {
25902
- key: 4,
25901
+ he(ye, {
25903
25902
  icon: "code",
25904
25903
  variant: (p = o.editor) != null && p.isActive("code") ? "primary" : "transparent",
25905
25904
  onClick: a[6] || (a[6] = (S) => {
@@ -25907,27 +25906,27 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25907
25906
  return (y = o.editor) == null ? void 0 : y.chain().focus().toggleCode().run();
25908
25907
  }),
25909
25908
  tooltip: "Inline Code"
25910
- }, null, 8, ["variant"])),
25909
+ }, null, 8, ["variant"]),
25911
25910
  he(ye, {
25912
25911
  icon: "link",
25913
- variant: (m = o.editor) != null && m.isActive("link") || Ie(er) ? "primary" : "transparent",
25912
+ variant: (m = o.editor) != null && m.isActive("link") || De(er) ? "primary" : "transparent",
25914
25913
  onClick: n,
25915
25914
  tooltip: "Insert Link"
25916
25915
  }, null, 8, ["variant"]),
25917
25916
  nr(o.$slots, "color-picker", { editor: o.editor }, () => [
25918
25917
  he(v5, { editor: o.editor }, null, 8, ["editor"])
25919
25918
  ], !0),
25920
- (g = o.editor) != null && g.isActive("heading") ? (H(), re("div", hD, [
25919
+ (g = o.editor) != null && g.isActive("heading") && !o.isCanvas ? (U(), re("div", hD, [
25921
25920
  a[9] || (a[9] = V("div", { class: "w-px h-4.5 bg-secondary-dark mx-0.5" }, null, -1)),
25922
25921
  he(rD, { editor: o.editor }, null, 8, ["editor"])
25923
25922
  ])) : ae("", !0),
25924
- r.value ? (H(), re(dn, { key: 6 }, [
25923
+ r.value ? (U(), re(dn, { key: 5 }, [
25925
25924
  a[10] || (a[10] = V("div", { class: "w-px h-4.5 bg-secondary-dark" }, null, -1)),
25926
25925
  V("div", pD, [
25927
25926
  he(y5, { editor: o.editor }, null, 8, ["editor"])
25928
25927
  ])
25929
25928
  ], 64)) : ae("", !0),
25930
- (b = o.editor) != null && b.isActive("table") ? (H(), re(dn, { key: 7 }, [
25929
+ (b = o.editor) != null && b.isActive("table") ? (U(), re(dn, { key: 6 }, [
25931
25930
  a[11] || (a[11] = V("div", { class: "w-px h-4.5 bg-secondary-dark" }, null, -1)),
25932
25931
  he(ye, {
25933
25932
  icon: "trash",
@@ -25941,7 +25940,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25941
25940
  tooltip: "Delete Row"
25942
25941
  })
25943
25942
  ], 64)) : ae("", !0),
25944
- (x = o.editor) != null && x.isActive("masonryGrid") && i.value ? (H(), re(dn, { key: 8 }, [
25943
+ (x = o.editor) != null && x.isActive("masonryGrid") && i.value ? (U(), re(dn, { key: 7 }, [
25945
25944
  a[12] || (a[12] = V("div", { class: "w-px h-4.5 bg-secondary-dark" }, null, -1)),
25946
25945
  he(ye, {
25947
25946
  icon: "trash",
@@ -25955,7 +25954,7 @@ const BI = { class: "tooltip-wrapper" }, PI = /* @__PURE__ */ Ae({
25955
25954
  ], 32);
25956
25955
  };
25957
25956
  }
25958
- }), gD = /* @__PURE__ */ ii(mD, [["__scopeId", "data-v-9453ac24"]]);
25957
+ }), gD = /* @__PURE__ */ ii(mD, [["__scopeId", "data-v-de47ec58"]]);
25959
25958
  var bD = rn.create({
25960
25959
  name: "horizontalRule",
25961
25960
  addOptions() {
@@ -32147,7 +32146,7 @@ class yP {
32147
32146
  ).filter((r) => r !== null), n = this._tr.replace(
32148
32147
  0,
32149
32148
  this.prosemirrorView.state.doc.content.size,
32150
- new Z(U.from(e), 0, 0)
32149
+ new Z(H.from(e), 0, 0)
32151
32150
  );
32152
32151
  n.setMeta(bt, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
32153
32152
  });
@@ -32164,7 +32163,7 @@ class yP {
32164
32163
  ).filter((i) => i !== null), r = this._tr.replace(
32165
32164
  0,
32166
32165
  this.prosemirrorView.state.doc.content.size,
32167
- new Z(U.from(n), 0, 0)
32166
+ new Z(H.from(n), 0, 0)
32168
32167
  );
32169
32168
  if (e) {
32170
32169
  const i = aa(us(e.anchor, 0), r.doc.content.size), s = aa(us(e.head, 0), r.doc.content.size);
@@ -32229,7 +32228,7 @@ class yP {
32229
32228
  ) : null).filter((d) => d !== null), u = this._tr.replace(
32230
32229
  0,
32231
32230
  this.prosemirrorView.state.doc.content.size,
32232
- new Z(U.from(c), 0, 0)
32231
+ new Z(H.from(c), 0, 0)
32233
32232
  );
32234
32233
  this.prosemirrorView.dispatch(
32235
32234
  u.setMeta(bt, { isChangeOrigin: !0 })
@@ -32275,7 +32274,7 @@ class yP {
32275
32274
  let o = this._tr.replace(
32276
32275
  0,
32277
32276
  this.prosemirrorView.state.doc.content.size,
32278
- new Z(U.from(s), 0, 0)
32277
+ new Z(H.from(s), 0, 0)
32279
32278
  );
32280
32279
  vP(o, this.beforeTransactionSelection, this), o = o.setMeta(bt, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof Y5 }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && o.scrollIntoView(), this.prosemirrorView.dispatch(o);
32281
32280
  });
@@ -33269,7 +33268,7 @@ function WP({
33269
33268
  // this can be used for building popups without a DOM node
33270
33269
  clientRect: be ? () => {
33271
33270
  var $e;
33272
- const { decorationId: De } = ($e = this.key) == null ? void 0 : $e.getState(e.state), Te = S.dom.querySelector(`[data-decoration-id="${De}"]`);
33271
+ const { decorationId: Ie } = ($e = this.key) == null ? void 0 : $e.getState(e.state), Te = S.dom.querySelector(`[data-decoration-id="${Ie}"]`);
33273
33272
  return (Te == null ? void 0 : Te.getBoundingClientRect()) || null;
33274
33273
  } : null
33275
33274
  }, q && ((T = b == null ? void 0 : b.onBeforeStart) == null || T.call(b, g)), J && ((A = b == null ? void 0 : b.onBeforeUpdate) == null || A.call(b, g)), (J || q) && (g.items = await f({
@@ -33878,8 +33877,8 @@ function A$(t) {
33878
33877
  function N$(t) {
33879
33878
  var e = t.state, n = t.options, r = t.name;
33880
33879
  if (!e.modifiersData[r]._skip) {
33881
- for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, b = Yr(g), x = b === g, S = l || (x || !p ? [ku(g)] : A$(g)), y = [g].concat(S).reduce(function(De, Te) {
33882
- return De.concat(Yr(Te) === Ng ? T$(e, {
33880
+ for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, b = Yr(g), x = b === g, S = l || (x || !p ? [ku(g)] : A$(g)), y = [g].concat(S).reduce(function(Ie, Te) {
33881
+ return Ie.concat(Yr(Te) === Ng ? T$(e, {
33883
33882
  placement: Te,
33884
33883
  boundary: u,
33885
33884
  rootBoundary: d,
@@ -33897,8 +33896,8 @@ function N$(t) {
33897
33896
  }), z = $ ? D ? hr : Mn : D ? fr : Cn;
33898
33897
  k[j] > C[j] && (z = ku(z));
33899
33898
  var q = ku(z), J = [];
33900
- if (s && J.push(I[P] <= 0), a && J.push(I[z] <= 0, I[q] <= 0), J.every(function(De) {
33901
- return De;
33899
+ if (s && J.push(I[P] <= 0), a && J.push(I[z] <= 0, I[q] <= 0), J.every(function(Ie) {
33900
+ return Ie;
33902
33901
  })) {
33903
33902
  _ = F, A = !1;
33904
33903
  break;
@@ -34035,10 +34034,10 @@ function z$(t) {
34035
34034
  };
34036
34035
  if (C) {
34037
34036
  if (s) {
34038
- var D, $ = y === "y" ? Cn : Mn, j = y === "y" ? fr : hr, I = y === "y" ? "height" : "width", z = C[y], q = z + g[$], J = z - g[j], ne = h ? -A[I] / 2 : 0, ge = x === da ? T[I] : A[I], be = x === da ? -A[I] : -T[I], $e = e.elements.arrow, De = h && $e ? _g($e) : {
34037
+ var D, $ = y === "y" ? Cn : Mn, j = y === "y" ? fr : hr, I = y === "y" ? "height" : "width", z = C[y], q = z + g[$], J = z - g[j], ne = h ? -A[I] / 2 : 0, ge = x === da ? T[I] : A[I], be = x === da ? -A[I] : -T[I], $e = e.elements.arrow, Ie = h && $e ? _g($e) : {
34039
34038
  width: 0,
34040
34039
  height: 0
34041
- }, Te = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _x(), at = Te[$], lt = Te[j], Ge = Xa(0, T[I], De[I]), $t = S ? T[I] / 2 - ne - Ge - at - L.mainAxis : ge - Ge - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ge + lt + L.mainAxis : be + Ge + lt + L.mainAxis, qt = e.elements.arrow && oc(e.elements.arrow), Wn = qt ? y === "y" ? qt.clientTop || 0 : qt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, sn = z + $t - zt - Wn, pt = z + At - zt, Oe = Xa(h ? Rd(q, sn) : q, z, h ? Gs(J, pt) : J);
34040
+ }, Te = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _x(), at = Te[$], lt = Te[j], Ge = Xa(0, T[I], Ie[I]), $t = S ? T[I] / 2 - ne - Ge - at - L.mainAxis : ge - Ge - at - L.mainAxis, At = S ? -T[I] / 2 + ne + Ge + lt + L.mainAxis : be + Ge + lt + L.mainAxis, qt = e.elements.arrow && oc(e.elements.arrow), Wn = qt ? y === "y" ? qt.clientTop || 0 : qt.clientLeft || 0 : 0, zt = (D = F == null ? void 0 : F[y]) != null ? D : 0, sn = z + $t - zt - Wn, pt = z + At - zt, Oe = Xa(h ? Rd(q, sn) : q, z, h ? Gs(J, pt) : J);
34042
34041
  C[y] = Oe, P[y] = Oe - z;
34043
34042
  }
34044
34043
  if (a) {
@@ -34737,16 +34736,16 @@ function Cz(t, e) {
34737
34736
  function $e() {
34738
34737
  l = !0;
34739
34738
  }
34740
- function De() {
34739
+ function Ie() {
34741
34740
  l = !1;
34742
34741
  }
34743
34742
  function Te() {
34744
34743
  var W = $();
34745
- W.addEventListener("mousedown", be, !0), W.addEventListener("touchend", be, _s), W.addEventListener("touchstart", De, _s), W.addEventListener("touchmove", $e, _s);
34744
+ W.addEventListener("mousedown", be, !0), W.addEventListener("touchend", be, _s), W.addEventListener("touchstart", Ie, _s), W.addEventListener("touchmove", $e, _s);
34746
34745
  }
34747
34746
  function at() {
34748
34747
  var W = $();
34749
- W.removeEventListener("mousedown", be, !0), W.removeEventListener("touchend", be, _s), W.removeEventListener("touchstart", De, _s), W.removeEventListener("touchmove", $e, _s);
34748
+ W.removeEventListener("mousedown", be, !0), W.removeEventListener("touchend", be, _s), W.removeEventListener("touchstart", Ie, _s), W.removeEventListener("touchmove", $e, _s);
34750
34749
  }
34751
34750
  function lt(W, fe) {
34752
34751
  $t(W, function() {
@@ -35089,8 +35088,8 @@ const Mz = /* @__PURE__ */ Ae({
35089
35088
  command: () => e == null ? void 0 : e.command(s)
35090
35089
  });
35091
35090
  };
35092
- return (s, o) => (H(), re("div", null, [
35093
- e.isOpen ? (H(), we(b5, {
35091
+ return (s, o) => (U(), re("div", null, [
35092
+ e.isOpen ? (U(), we(b5, {
35094
35093
  key: 0,
35095
35094
  options: n.value,
35096
35095
  hasSearch: !1,
@@ -35108,7 +35107,7 @@ const Mz = /* @__PURE__ */ Ae({
35108
35107
  }, e.click();
35109
35108
  }), Gx = async (t) => new Promise(async (e, n) => {
35110
35109
  try {
35111
- (await import("./papaparse.min-Q-QjTzyi.js").then((i) => i.p)).default.parse(t, {
35110
+ (await import("./papaparse.min-zdb5Kjo-.js").then((i) => i.p)).default.parse(t, {
35112
35111
  complete: (i) => {
35113
35112
  try {
35114
35113
  const s = i.data;
@@ -35697,7 +35696,7 @@ const Rz = {
35697
35696
  const e = t;
35698
35697
  return (n, r) => {
35699
35698
  var i, s;
35700
- return H(), we(Ie(BC), {
35699
+ return U(), we(De(BC), {
35701
35700
  as: "a",
35702
35701
  href: (s = (i = e == null ? void 0 : e.mark) == null ? void 0 : i.attrs) == null ? void 0 : s.href,
35703
35702
  class: "pointer-events-none",
@@ -35829,7 +35828,7 @@ const Pz = 50, $z = /* @__PURE__ */ Ae({
35829
35828
  }
35830
35829
  }), ao(() => {
35831
35830
  window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", b);
35832
- }), (x, S) => (H(), we(Ie(Kl), {
35831
+ }), (x, S) => (U(), we(De(Kl), {
35833
35832
  as: "div",
35834
35833
  class: "resizable-image-wrapper",
35835
35834
  ref_key: "containerRef",
@@ -36347,7 +36346,7 @@ const Gz = /* @__PURE__ */ Ae({
36347
36346
  break;
36348
36347
  }
36349
36348
  };
36350
- return (c, u) => (H(), re("div", {
36349
+ return (c, u) => (U(), re("div", {
36351
36350
  ref_key: "containerRef",
36352
36351
  ref: n,
36353
36352
  class: "absolute -top-3 left-0 flex w-full items-center justify-center vEditor-table-cell-menu-container"
@@ -36434,7 +36433,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36434
36433
  }, s = (o) => {
36435
36434
  e.onBorderColorChange(o);
36436
36435
  };
36437
- return (o, a) => (H(), we(Dr, {
36436
+ return (o, a) => (U(), we(Dr, {
36438
36437
  className: "min-w-[150px]! w-[150px]!",
36439
36438
  position: "right"
36440
36439
  }, {
@@ -36452,7 +36451,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36452
36451
  V("div", Yz, [
36453
36452
  a[1] || (a[1] = V("small", { class: "text-color opacity-75 -text-fs-3" }, "Background Color", -1)),
36454
36453
  V("div", Xz, [
36455
- (H(), re(dn, null, Cr(n, ({ className: l, name: c, display: u }) => V("button", {
36454
+ (U(), re(dn, null, Cr(n, ({ className: l, name: c, display: u }) => V("button", {
36456
36455
  key: l,
36457
36456
  title: c,
36458
36457
  class: Le([
@@ -36465,7 +36464,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36465
36464
  }),
36466
36465
  onClick: (d) => i(l)
36467
36466
  }, [
36468
- o.currentBgClass === l ? (H(), re("div", Zz, [...a[0] || (a[0] = [
36467
+ o.currentBgClass === l ? (U(), re("div", Zz, [...a[0] || (a[0] = [
36469
36468
  V("svg", {
36470
36469
  class: "w-3 h-3 text-color opacity-75 drop-shadow-sm",
36471
36470
  fill: "currentColor",
@@ -36486,7 +36485,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36486
36485
  V("small", { class: "text-color opacity-75 -text-fs-3" }, "Border Color")
36487
36486
  ], -1)),
36488
36487
  V("div", eF, [
36489
- (H(), re(dn, null, Cr(r, ({ className: l, name: c, display: u }) => V("button", {
36488
+ (U(), re(dn, null, Cr(r, ({ className: l, name: c, display: u }) => V("button", {
36490
36489
  key: l,
36491
36490
  title: c,
36492
36491
  class: Le([
@@ -36500,7 +36499,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36500
36499
  }),
36501
36500
  onClick: (d) => s(l)
36502
36501
  }, [
36503
- o.currentBorderClass === l ? (H(), re("div", nF, [...a[2] || (a[2] = [
36502
+ o.currentBorderClass === l ? (U(), re("div", nF, [...a[2] || (a[2] = [
36504
36503
  V("svg", {
36505
36504
  class: "w-3 h-3 text-color opacity-75 drop-shadow-sm",
36506
36505
  fill: "currentColor",
@@ -36677,7 +36676,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36677
36676
  () => {
36678
36677
  d();
36679
36678
  }
36680
- ), (m, g) => (H(), re("div", iF, [
36679
+ ), (m, g) => (U(), re("div", iF, [
36681
36680
  he(Dr, {
36682
36681
  options: a.value,
36683
36682
  selected: "",
@@ -36724,7 +36723,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36724
36723
  const a = () => {
36725
36724
  i.value = o(n.value.closest("tr")), s.value = o(n.value) == 0;
36726
36725
  };
36727
- return (l, c) => (H(), re("th", {
36726
+ return (l, c) => (U(), re("th", {
36728
36727
  "data-node-view-wrapper": "",
36729
36728
  ref_key: "cellRef",
36730
36729
  ref: n,
@@ -36735,7 +36734,7 @@ const Kz = { class: "p-1 px-2 space-y-3" }, Yz = { class: "space-y-1" }, Xz = {
36735
36734
  class: "table-cell"
36736
36735
  }, null, -1)),
36737
36736
  he(e6, el(tl(e)), null, 16),
36738
- Ie(s) ? (H(), we(t6, qd({ key: 0 }, e, {
36737
+ De(s) ? (U(), we(t6, qd({ key: 0 }, e, {
36739
36738
  table: r.value,
36740
36739
  isHeader: "",
36741
36740
  position: i.value,
@@ -37164,7 +37163,7 @@ const pF = /* @__PURE__ */ Ae({
37164
37163
  __name: "NotesTableRow",
37165
37164
  props: ni,
37166
37165
  setup(t) {
37167
- return (e, n) => (H(), re("tr", {
37166
+ return (e, n) => (U(), re("tr", {
37168
37167
  "data-node-view-wrapper": "",
37169
37168
  class: Le(["vEditor-table-row-container", e.node.attrs.class])
37170
37169
  }, [...n[0] || (n[0] = [
@@ -37193,7 +37192,7 @@ const pF = /* @__PURE__ */ Ae({
37193
37192
  return tn(async () => {
37194
37193
  var u, d;
37195
37194
  await Gt(), i.value = (u = n.value) == null ? void 0 : u.closest("table"), r.value = (d = n.value) == null ? void 0 : d.closest("tr"), c(), i.value && a(i.value, c);
37196
- }), (u, d) => (H(), re("td", {
37195
+ }), (u, d) => (U(), re("td", {
37197
37196
  "data-node-view-wrapper": "",
37198
37197
  ref_key: "cellRef",
37199
37198
  ref: n,
@@ -37203,10 +37202,10 @@ const pF = /* @__PURE__ */ Ae({
37203
37202
  "data-node-view-content": "",
37204
37203
  class: "table-cell"
37205
37204
  }, null, -1)),
37206
- s.value === 0 ? (H(), re("div", gF, [
37205
+ s.value === 0 ? (U(), re("div", gF, [
37207
37206
  he(e6, el(tl(e)), null, 16)
37208
37207
  ])) : ae("", !0),
37209
- Ie(o) ? (H(), we(t6, qd({ key: 1 }, e, {
37208
+ De(o) ? (U(), we(t6, qd({ key: 1 }, e, {
37210
37209
  table: i.value,
37211
37210
  position: s.value,
37212
37211
  cellRef: n.value,
@@ -37282,10 +37281,10 @@ const pF = /* @__PURE__ */ Ae({
37282
37281
  document.addEventListener("mousemove", u), document.addEventListener("mouseup", d);
37283
37282
  }), ao(() => {
37284
37283
  document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", d);
37285
- }), (h, p) => (H(), re("div", {
37284
+ }), (h, p) => (U(), re("div", {
37286
37285
  class: Le(["flex items-center gap-2", h.className])
37287
37286
  }, [
37288
- h.icon ? (H(), we(lr, {
37287
+ h.icon ? (U(), we(lr, {
37289
37288
  key: 0,
37290
37289
  icon: h.icon,
37291
37290
  class: Le(["text-gray-700", h.iconClass || "!w-3.5 !h-3.5"])
@@ -37411,7 +37410,7 @@ const pF = /* @__PURE__ */ Ae({
37411
37410
  }, k = (C) => {
37412
37411
  f.value = C, e.updateAttributes({ paddingY: `${C}px` });
37413
37412
  };
37414
- return (C, T) => (H(), we(Ie(Kl), {
37413
+ return (C, T) => (U(), we(De(Kl), {
37415
37414
  as: "div",
37416
37415
  class: Le(["masonry-grid-wrapper", [o.value, l.value]]),
37417
37416
  style: Kt({
@@ -37479,26 +37478,26 @@ const pF = /* @__PURE__ */ Ae({
37479
37478
  V("div", TF, [
37480
37479
  T[0] || (T[0] = V("label", { class: "setting-label" }, "Border Color", -1)),
37481
37480
  V("div", AF, [
37482
- (H(), re(dn, null, Cr(r, (A) => V("button", {
37481
+ (U(), re(dn, null, Cr(r, (A) => V("button", {
37483
37482
  key: A.value,
37484
37483
  title: A.name,
37485
37484
  class: Le(["border-color-swatch", A.className]),
37486
37485
  onClick: (_) => x(A.value)
37487
37486
  }, [
37488
- s.value === A.value ? (H(), re("span", OF, "✓")) : ae("", !0)
37487
+ s.value === A.value ? (U(), re("span", OF, "✓")) : ae("", !0)
37489
37488
  ], 10, NF)), 64))
37490
37489
  ])
37491
37490
  ]),
37492
37491
  V("div", _F, [
37493
37492
  T[1] || (T[1] = V("label", { class: "setting-label" }, "Item Background", -1)),
37494
37493
  V("div", RF, [
37495
- (H(), re(dn, null, Cr(i, (A) => V("button", {
37494
+ (U(), re(dn, null, Cr(i, (A) => V("button", {
37496
37495
  key: A.value || "default",
37497
37496
  title: A.name,
37498
37497
  class: Le([A.className, "color-swatch"]),
37499
37498
  onClick: (_) => S(A.value)
37500
37499
  }, [
37501
- a.value === A.value ? (H(), re("span", {
37500
+ a.value === A.value ? (U(), re("span", {
37502
37501
  key: 0,
37503
37502
  class: Le(["checkmark", { "text-black": A.value !== "black" }])
37504
37503
  }, "✓", 2)) : ae("", !0)
@@ -37895,7 +37894,7 @@ const zF = { class: "masonry-item-controls" }, FF = {
37895
37894
  d(), e.editor.on("update", h);
37896
37895
  }), ao(() => {
37897
37896
  e.editor.off("update", h);
37898
- }), (p, m) => (H(), we(Ie(Kl), {
37897
+ }), (p, m) => (U(), we(De(Kl), {
37899
37898
  as: "div",
37900
37899
  class: Le(["masonry-grid-item-wrapper", i.value]),
37901
37900
  style: Kt({
@@ -37928,13 +37927,13 @@ const zF = { class: "masonry-item-controls" }, FF = {
37928
37927
  V("div", HF, [
37929
37928
  m[0] || (m[0] = V("div", { class: "color-picker-title" }, "Background Color", -1)),
37930
37929
  V("div", UF, [
37931
- (H(), re(dn, null, Cr(r, (g) => V("button", {
37930
+ (U(), re(dn, null, Cr(r, (g) => V("button", {
37932
37931
  key: g.value || "default",
37933
37932
  title: g.name,
37934
37933
  class: Le([g.className, "color-swatch"]),
37935
37934
  onClick: (b) => c(g.value)
37936
37935
  }, [
37937
- e.node.attrs.backgroundColor === g.value ? (H(), re("span", qF, "✓")) : ae("", !0)
37936
+ e.node.attrs.backgroundColor === g.value ? (U(), re("span", qF, "✓")) : ae("", !0)
37938
37937
  ], 10, VF)), 64))
37939
37938
  ])
37940
37939
  ]),
@@ -38329,7 +38328,7 @@ const zF = { class: "masonry-item-controls" }, FF = {
38329
38328
  };
38330
38329
  return ao(() => {
38331
38330
  window.removeEventListener("mousemove", F), window.removeEventListener("mouseup", P);
38332
- }), (D, $) => (H(), we(Ie(Kl), {
38331
+ }), (D, $) => (U(), we(De(Kl), {
38333
38332
  as: "div",
38334
38333
  class: "iframe-wrapper",
38335
38334
  ref_key: "containerRef",
@@ -38337,7 +38336,7 @@ const zF = { class: "masonry-item-controls" }, FF = {
38337
38336
  style: Kt(h.value)
38338
38337
  }, {
38339
38338
  default: qe(() => [
38340
- s.value ? ae("", !0) : (H(), re("div", ZF, [
38339
+ s.value ? ae("", !0) : (U(), re("div", ZF, [
38341
38340
  he(ye, {
38342
38341
  icon: "align-left",
38343
38342
  variant: C.value === "left" ? "primary" : "transparent",
@@ -38376,7 +38375,7 @@ const zF = { class: "masonry-item-controls" }, FF = {
38376
38375
  class: Le(["iframe-content-wrapper", { "is-resizing": o.value }]),
38377
38376
  style: Kt(p.value)
38378
38377
  }, [
38379
- s.value ? (H(), re("div", QF, [
38378
+ s.value ? (U(), re("div", QF, [
38380
38379
  $[4] || ($[4] = V("div", { class: "flex items-center gap-2 opacity-90" }, [
38381
38380
  V("span", { class: "font-medium" }, "Embed Video or Website")
38382
38381
  ], -1)),
@@ -38400,7 +38399,7 @@ const zF = { class: "masonry-item-controls" }, FF = {
38400
38399
  }, null, 8, ["disabled"])
38401
38400
  ]),
38402
38401
  $[5] || ($[5] = V("small", { class: "opacity-50 mt-1" }, " Supports YouTube, Vimeo, Google Maps, Facebook, and more. ", -1))
38403
- ])) : (H(), re("div", {
38402
+ ])) : (U(), re("div", {
38404
38403
  key: 1,
38405
38404
  class: "iframe-container",
38406
38405
  style: Kt(m.value)
@@ -38414,12 +38413,12 @@ const zF = { class: "masonry-item-controls" }, FF = {
38414
38413
  loading: "lazy"
38415
38414
  }, null, 14, tH)
38416
38415
  ], 4)),
38417
- s.value ? ae("", !0) : (H(), re("div", {
38416
+ s.value ? ae("", !0) : (U(), re("div", {
38418
38417
  key: 2,
38419
38418
  class: "iframe-resizer iframe-resizer-left",
38420
38419
  onMousedown: $[1] || ($[1] = (j) => L(j, "left"))
38421
38420
  }, null, 32)),
38422
- s.value ? ae("", !0) : (H(), re("div", {
38421
+ s.value ? ae("", !0) : (U(), re("div", {
38423
38422
  key: 3,
38424
38423
  class: "iframe-resizer iframe-resizer-right",
38425
38424
  onMousedown: $[2] || ($[2] = (j) => L(j, "right"))
@@ -45017,12 +45016,12 @@ var Ba = function(e, n, r) {
45017
45016
  }
45018
45017
  P.push(Zc), P.push(eh(a, h, s));
45019
45018
  }
45020
- var $e = i.havingBaseStyle(ke.TEXT), De = B.makeVList({
45019
+ var $e = i.havingBaseStyle(ke.TEXT), Ie = B.makeVList({
45021
45020
  positionType: "bottom",
45022
45021
  positionData: F,
45023
45022
  children: P
45024
45023
  }, $e);
45025
- return jg(B.makeSpan(["delimsizing", "mult"], [De], $e), ke.TEXT, i, o);
45024
+ return jg(B.makeSpan(["delimsizing", "mult"], [Ie], $e), ke.TEXT, i, o);
45026
45025
  }, nh = 80, rh = 0.08, ih = function(e, n, r, i, s) {
45027
45026
  var o = IH(e, i, r), a = new ms(e, o), l = new Ni([a], {
45028
45027
  // Note: 1000:1 ratio of viewBox to document em width.
@@ -45753,8 +45752,8 @@ var oi = function(e, n) {
45753
45752
  ) {
45754
45753
  for (var be = D[I] || {}, $e = !0; be.type === "separator"; ) {
45755
45754
  if ($e || (j = B.makeSpan(["arraycolsep"], []), j.style.width = ee(n.fontMetrics().doubleRuleSep), $.push(j)), be.separator === "|" || be.separator === ":") {
45756
- var De = be.separator === "|" ? "solid" : "dashed", Te = B.makeSpan(["vertical-separator"], [], n);
45757
- Te.style.height = ee(S), Te.style.borderRightWidth = ee(u), Te.style.borderRightStyle = De, Te.style.margin = "0 " + ee(-u / 2);
45755
+ var Ie = be.separator === "|" ? "solid" : "dashed", Te = B.makeSpan(["vertical-separator"], [], n);
45756
+ Te.style.height = ee(S), Te.style.borderRightWidth = ee(u), Te.style.borderRightStyle = Ie, Te.style.margin = "0 " + ee(-u / 2);
45758
45757
  var at = S - P;
45759
45758
  at && (Te.style.verticalAlign = ee(-at)), $.push(Te);
45760
45759
  } else
@@ -61626,7 +61625,7 @@ function Eq(t) {
61626
61625
  ]
61627
61626
  };
61628
61627
  be.contains.push($e);
61629
- const De = {
61628
+ const Ie = {
61630
61629
  match: Je(Pr, /\s*:/),
61631
61630
  keywords: "_|0",
61632
61631
  relevance: 0
@@ -61637,7 +61636,7 @@ function Eq(t) {
61637
61636
  keywords: c,
61638
61637
  contains: [
61639
61638
  "self",
61640
- De,
61639
+ Ie,
61641
61640
  ...r,
61642
61641
  D,
61643
61642
  ...u,
@@ -64003,7 +64002,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64003
64002
  te = h(_e, de.subLanguage.length ? de.subLanguage : null);
64004
64003
  de.relevance > 0 && (On += te.relevance), ze.__addSublanguage(te._emitter, te.language);
64005
64004
  }
64006
- function De() {
64005
+ function Ie() {
64007
64006
  de.subLanguage != null ? $e() : be(), _e = "";
64008
64007
  }
64009
64008
  function Te(te, ue) {
@@ -64048,14 +64047,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64048
64047
  for (const br of _t)
64049
64048
  if (br && (br(te, je), je.isMatchIgnored))
64050
64049
  return $t(ue);
64051
- return Ce.skip ? _e += ue : (Ce.excludeBegin && (_e += ue), De(), !Ce.returnBegin && !Ce.excludeBegin && (_e = ue)), lt(Ce, te), Ce.returnBegin ? 0 : ue.length;
64050
+ return Ce.skip ? _e += ue : (Ce.excludeBegin && (_e += ue), Ie(), !Ce.returnBegin && !Ce.excludeBegin && (_e = ue)), lt(Ce, te), Ce.returnBegin ? 0 : ue.length;
64052
64051
  }
64053
64052
  function qt(te) {
64054
64053
  const ue = te[0], Ce = z.substring(te.index), je = Ge(de, te, Ce);
64055
64054
  if (!je)
64056
64055
  return y2;
64057
64056
  const _t = de;
64058
- de.endScope && de.endScope._wrap ? (De(), Te(ue, de.endScope._wrap)) : de.endScope && de.endScope._multi ? (De(), at(de.endScope, te)) : _t.skip ? _e += ue : (_t.returnEnd || _t.excludeEnd || (_e += ue), De(), _t.excludeEnd && (_e = ue));
64057
+ de.endScope && de.endScope._wrap ? (Ie(), Te(ue, de.endScope._wrap)) : de.endScope && de.endScope._multi ? (Ie(), at(de.endScope, te)) : _t.skip ? _e += ue : (_t.returnEnd || _t.excludeEnd || (_e += ue), Ie(), _t.excludeEnd && (_e = ue));
64059
64058
  do
64060
64059
  de.scope && ze.closeNode(), !de.skip && !de.subLanguage && (On += de.relevance), de = de.parent;
64061
64060
  while (de !== je.parent);
@@ -64071,7 +64070,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64071
64070
  function sn(te, ue) {
64072
64071
  const Ce = ue && ue[0];
64073
64072
  if (_e += te, Ce == null)
64074
- return De(), 0;
64073
+ return Ie(), 0;
64075
64074
  if (zt.type === "begin" && ue.type === "end" && zt.index === ue.index && Ce === "") {
64076
64075
  if (_e += z.slice(ue.index, ue.index + 1), !i) {
64077
64076
  const je = new Error(`0 width match regex (${I})`);
@@ -64167,15 +64166,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = I, J = z), q ===
64167
64166
  function h(I, z) {
64168
64167
  z = z || a.languages || Object.keys(e);
64169
64168
  const q = f(I), J = z.filter(A).filter(L).map(
64170
- (De) => d(De, I, !1)
64169
+ (Ie) => d(Ie, I, !1)
64171
64170
  );
64172
64171
  J.unshift(q);
64173
- const ne = J.sort((De, Te) => {
64174
- if (De.relevance !== Te.relevance) return Te.relevance - De.relevance;
64175
- if (De.language && Te.language) {
64176
- if (A(De.language).supersetOf === Te.language)
64172
+ const ne = J.sort((Ie, Te) => {
64173
+ if (Ie.relevance !== Te.relevance) return Te.relevance - Ie.relevance;
64174
+ if (Ie.language && Te.language) {
64175
+ if (A(Ie.language).supersetOf === Te.language)
64177
64176
  return 1;
64178
- if (A(Te.language).supersetOf === De.language)
64177
+ if (A(Te.language).supersetOf === Ie.language)
64179
64178
  return -1;
64180
64179
  }
64181
64180
  return 0;
@@ -64750,7 +64749,7 @@ const fh = 4, TW = /^```([a-z]+)?[\s\n]$/, AW = /^~~~([a-z]+)?[\s\n]$/, NW = rn.
64750
64749
  }, a = (l) => {
64751
64750
  i.value = l, n.value = !1;
64752
64751
  };
64753
- return (l, c) => (H(), we(Ie(Kl), { class: "code-block-wrapper relative group my-4" }, {
64752
+ return (l, c) => (U(), we(De(Kl), { class: "code-block-wrapper relative group my-4" }, {
64754
64753
  default: qe(() => [
64755
64754
  V("div", {
64756
64755
  class: Le(["absolute top-2 right-2 transition-opacity duration-200 flex items-center gap-1 z-10 p-1 bg-body rounded border box-shadow", n.value ? "opacity-100" : "opacity-0 group-hover:opacity-100"]),
@@ -64763,8 +64762,8 @@ const fh = 4, TW = /^```([a-z]+)?[\s\n]$/, AW = /^~~~([a-z]+)?[\s\n]$/, NW = rn.
64763
64762
  tooltip: s.value ? "Disable Highlighting" : "Enable Highlighting",
64764
64763
  onClick: o
64765
64764
  }, null, 8, ["icon", "variant", "tooltip"]),
64766
- s.value ? (H(), re("div", OW)) : ae("", !0),
64767
- s.value ? (H(), we(Dr, {
64765
+ s.value ? (U(), re("div", OW)) : ae("", !0),
64766
+ s.value ? (U(), we(Dr, {
64768
64767
  key: 1,
64769
64768
  options: r.value,
64770
64769
  selected: i.value,
@@ -64788,7 +64787,7 @@ const fh = 4, TW = /^```([a-z]+)?[\s\n]$/, AW = /^~~~([a-z]+)?[\s\n]$/, NW = rn.
64788
64787
  }, 8, ["options", "selected"])) : ae("", !0)
64789
64788
  ], 2),
64790
64789
  V("pre", null, [
64791
- he(Ie(IC), { as: "code" })
64790
+ he(De(IC), { as: "code" })
64792
64791
  ])
64793
64792
  ]),
64794
64793
  _: 1
@@ -65005,8 +65004,6 @@ const LW = NW.extend({
65005
65004
  }));
65006
65005
  }
65007
65006
  }), PW = /* @__PURE__ */ new Set([
65008
- "pre",
65009
- "code",
65010
65007
  "table",
65011
65008
  "thead",
65012
65009
  "tbody",
@@ -65040,10 +65037,7 @@ function $p(t) {
65040
65037
  if (PW.has(i)) {
65041
65038
  const s = r.textContent || "";
65042
65039
  if (s.trim())
65043
- if (i === "pre" || i === "code") {
65044
- const o = document.createElement("p");
65045
- o.textContent = s, r.replaceWith(o);
65046
- } else if (i === "table") {
65040
+ if (i === "table") {
65047
65041
  const o = zW(r);
65048
65042
  r.replaceWith(o);
65049
65043
  } else if (i === "blockquote") {
@@ -65067,7 +65061,7 @@ function $p(t) {
65067
65061
  const s = FW(r.style);
65068
65062
  s ? r.setAttribute("style", s) : r.removeAttribute("style");
65069
65063
  }
65070
- r.hasAttribute("class") && !HW(i) && r.removeAttribute("class"), $p(r);
65064
+ r.hasAttribute("class") && !HW(i) && i !== "code" && i !== "pre" && r.removeAttribute("class"), $p(r);
65071
65065
  }
65072
65066
  }
65073
65067
  function zW(t) {
@@ -65200,17 +65194,15 @@ const UW = Pe.create({
65200
65194
  iA.configure({
65201
65195
  codeBlock: !1,
65202
65196
  heading: !1,
65203
- // Disable inline code in canvas mode
65204
- code: i.isCanvas ? !1 : {},
65197
+ // Inline code is now ENABLED in canvas mode
65198
+ code: {},
65205
65199
  // Disable blockquote in canvas mode
65206
65200
  blockquote: i.isCanvas ? !1 : {}
65207
65201
  }),
65208
- // Only include CodeBlockLowlight when NOT in canvas mode
65209
- ...i.isCanvas ? [] : [
65210
- LW.configure({
65211
- lowlight: r
65212
- })
65213
- ],
65202
+ // Enable CodeBlockLowlight in BOTH modes (Canvas needs it for code block nodes)
65203
+ LW.configure({
65204
+ lowlight: r
65205
+ }),
65214
65206
  BW.configure({
65215
65207
  levels: [1, 2, 3, 4, 5, 6]
65216
65208
  }),
@@ -65394,12 +65386,12 @@ const UW = Pe.create({
65394
65386
  x && c(x);
65395
65387
  },
65396
65388
  { deep: !0 }
65397
- ), (x, S) => (H(), re("div", {
65389
+ ), (x, S) => (U(), re("div", {
65398
65390
  class: Le(["v-notion-editor relative h-full flex flex-col", [x.isCanvas ? "is-canvas-mode" : "developed_by_safdar_azeem", x.wrapperClass]]),
65399
65391
  onBlur: S[0] || (S[0] = (y) => m.value = !0),
65400
65392
  "data-tauri-drag-region": ""
65401
65393
  }, [
65402
- l.value ? (H(), re("div", VW, [
65394
+ l.value ? (U(), re("div", VW, [
65403
65395
  V("div", qW, [
65404
65396
  he(lr, {
65405
65397
  icon: "loading",
@@ -65408,13 +65400,13 @@ const UW = Pe.create({
65408
65400
  S[1] || (S[1] = V("span", { class: "text-sm font-medium text-gray-700" }, "Importing...", -1))
65409
65401
  ])
65410
65402
  ])) : ae("", !0),
65411
- Ie(p) ? (H(), re("div", {
65403
+ De(p) ? (U(), re("div", {
65412
65404
  key: 1,
65413
65405
  class: Le(["flex-1 overflow-y-auto w-full mx-auto", x.isCanvas ? "overflow-visible" : ""])
65414
65406
  }, [
65415
- x.showDragHandle && !x.isCanvas ? (H(), we(Ie(UP), {
65407
+ x.showDragHandle && !x.isCanvas ? (U(), we(De(UP), {
65416
65408
  key: 0,
65417
- editor: Ie(p),
65409
+ editor: De(p),
65418
65410
  class: "absolute"
65419
65411
  }, {
65420
65412
  default: qe(() => [
@@ -65427,14 +65419,14 @@ const UW = Pe.create({
65427
65419
  ]),
65428
65420
  _: 1
65429
65421
  }, 8, ["editor"])) : ae("", !0),
65430
- he(Ie(RC), {
65431
- editor: Ie(p),
65422
+ he(De(RC), {
65423
+ editor: De(p),
65432
65424
  "data-tauri-drag-region": "",
65433
65425
  class: Le(["w-full", [x.className, x.isCanvas ? "h-auto" : "h-full mx-auto pt-3 pl-3 pr-6 overflow-auto"]]),
65434
65426
  style: Kt(x.styles)
65435
65427
  }, null, 8, ["editor", "class", "style"]),
65436
- g ? (H(), we(Ie(sO), {
65437
- editor: Ie(p),
65428
+ g ? (U(), we(De(sO), {
65429
+ editor: De(p),
65438
65430
  "should-show": g,
65439
65431
  ref_key: "bubbleMenuRef",
65440
65432
  ref: b,
@@ -65444,28 +65436,28 @@ const UW = Pe.create({
65444
65436
  "append-to": x.bubbleManuAppendTo
65445
65437
  }, {
65446
65438
  default: qe(() => {
65447
- var y, k, C, T, A, _, L, F, P;
65439
+ var y, k, C, T, A, _, L, F;
65448
65440
  return [
65449
- !((y = Ie(p)) != null && y.isActive("horizontalRule")) && !((k = Ie(p)) != null && k.isActive("iframe")) && !((C = Ie(p)) != null && C.isActive("codeBlock")) && !((T = Ie(p)) != null && T.isActive("code")) ? (H(), re("div", jW, [
65450
- (A = Ie(p)) != null && A.isActive("resizableImage") ? (H(), we(kR, {
65441
+ !((y = De(p)) != null && y.isActive("horizontalRule")) && !((k = De(p)) != null && k.isActive("iframe")) && !((C = De(p)) != null && C.isActive("codeBlock")) ? (U(), re("div", jW, [
65442
+ (T = De(p)) != null && T.isActive("resizableImage") ? (U(), we(kR, {
65451
65443
  key: 0,
65452
- editor: Ie(p)
65453
- }, null, 8, ["editor"])) : Ie(er) ? (H(), we(yR, {
65454
- editor: Ie(p),
65455
- key: (L = (_ = Ie(p)) == null ? void 0 : _.getAttributes("link")) == null ? void 0 : L.href
65456
- }, null, 8, ["editor"])) : (F = Ie(p)) != null && F.isActive("inlineMath") || (P = Ie(p)) != null && P.isActive("blockMath") ? (H(), we(MR, {
65444
+ editor: De(p)
65445
+ }, null, 8, ["editor"])) : De(er) ? (U(), we(yR, {
65446
+ editor: De(p),
65447
+ key: (_ = (A = De(p)) == null ? void 0 : A.getAttributes("link")) == null ? void 0 : _.href
65448
+ }, null, 8, ["editor"])) : (L = De(p)) != null && L.isActive("inlineMath") || (F = De(p)) != null && F.isActive("blockMath") ? (U(), we(MR, {
65457
65449
  key: 2,
65458
- editor: Ie(p)
65459
- }, null, 8, ["editor"])) : (H(), we(gD, {
65450
+ editor: De(p)
65451
+ }, null, 8, ["editor"])) : (U(), we(gD, {
65460
65452
  key: 3,
65461
- editor: Ie(p),
65453
+ editor: De(p),
65462
65454
  isCanvas: x.isCanvas
65463
65455
  }, {
65464
- "color-picker": qe(({ editor: D }) => [
65465
- nr(x.$slots, "color-picker", { editor: D })
65456
+ "color-picker": qe(({ editor: P }) => [
65457
+ nr(x.$slots, "color-picker", { editor: P })
65466
65458
  ]),
65467
- "heading-selector": qe(({ editor: D }) => [
65468
- nr(x.$slots, "heading-selector", { editor: D })
65459
+ "heading-selector": qe(({ editor: P }) => [
65460
+ nr(x.$slots, "heading-selector", { editor: P })
65469
65461
  ]),
65470
65462
  _: 3
65471
65463
  }, 8, ["editor", "isCanvas"]))
@@ -65511,8 +65503,8 @@ const UW = Pe.create({
65511
65503
  };
65512
65504
  return (a, l) => {
65513
65505
  var c, u, d, f, h;
65514
- return H(), re("div", GW, [
65515
- o("headings") ? (H(), we(Dr, {
65506
+ return U(), re("div", GW, [
65507
+ o("headings") ? (U(), we(Dr, {
65516
65508
  key: 0,
65517
65509
  options: n,
65518
65510
  selected: i.value,
@@ -65529,7 +65521,7 @@ const UW = Pe.create({
65529
65521
  ]),
65530
65522
  _: 1
65531
65523
  }, 8, ["selected"])) : ae("", !0),
65532
- o("bold") ? (H(), we(ye, {
65524
+ o("bold") ? (U(), we(ye, {
65533
65525
  key: 1,
65534
65526
  icon: "bold",
65535
65527
  class: "-ml-1",
@@ -65540,7 +65532,7 @@ const UW = Pe.create({
65540
65532
  }),
65541
65533
  tooltip: "Bold (⌘B)"
65542
65534
  }, null, 8, ["variant"])) : ae("", !0),
65543
- o("italic") ? (H(), we(ye, {
65535
+ o("italic") ? (U(), we(ye, {
65544
65536
  key: 2,
65545
65537
  icon: "italic",
65546
65538
  variant: (u = a.editor) != null && u.isActive("italic") ? "primary" : "transparent",
@@ -65550,7 +65542,7 @@ const UW = Pe.create({
65550
65542
  }),
65551
65543
  tooltip: "Italic (⌘I)"
65552
65544
  }, null, 8, ["variant"])) : ae("", !0),
65553
- o("underline") ? (H(), we(ye, {
65545
+ o("underline") ? (U(), we(ye, {
65554
65546
  key: 3,
65555
65547
  icon: "underline",
65556
65548
  variant: (d = a.editor) != null && d.isActive("underline") ? "primary" : "transparent",
@@ -65560,7 +65552,7 @@ const UW = Pe.create({
65560
65552
  }),
65561
65553
  tooltip: "Underline (⌘U)"
65562
65554
  }, null, 8, ["variant"])) : ae("", !0),
65563
- o("strike") ? (H(), we(ye, {
65555
+ o("strike") ? (U(), we(ye, {
65564
65556
  key: 4,
65565
65557
  icon: "strikethrough",
65566
65558
  variant: (f = a.editor) != null && f.isActive("strike") ? "primary" : "transparent",
@@ -65570,7 +65562,7 @@ const UW = Pe.create({
65570
65562
  }),
65571
65563
  tooltip: "Strikethrough"
65572
65564
  }, null, 8, ["variant"])) : ae("", !0),
65573
- o("code") ? (H(), we(ye, {
65565
+ o("code") ? (U(), we(ye, {
65574
65566
  key: 5,
65575
65567
  icon: "code",
65576
65568
  variant: (h = a.editor) != null && h.isActive("code") ? "primary" : "transparent",
@@ -65580,7 +65572,7 @@ const UW = Pe.create({
65580
65572
  }),
65581
65573
  tooltip: "Inline Code"
65582
65574
  }, null, 8, ["variant"])) : ae("", !0),
65583
- o("color") ? (H(), we(v5, {
65575
+ o("color") ? (U(), we(v5, {
65584
65576
  key: 6,
65585
65577
  editor: a.editor
65586
65578
  }, null, 8, ["editor"])) : ae("", !0)
@@ -65600,8 +65592,8 @@ const UW = Pe.create({
65600
65592
  };
65601
65593
  return (r, i) => {
65602
65594
  var s, o, a;
65603
- return H(), re("div", YW, [
65604
- n("bulletList") ? (H(), we(ye, {
65595
+ return U(), re("div", YW, [
65596
+ n("bulletList") ? (U(), we(ye, {
65605
65597
  key: 0,
65606
65598
  icon: "list",
65607
65599
  size: "sm",
@@ -65612,7 +65604,7 @@ const UW = Pe.create({
65612
65604
  }),
65613
65605
  tooltip: "Bullet List"
65614
65606
  }, null, 8, ["variant"])) : ae("", !0),
65615
- n("orderedList") ? (H(), we(ye, {
65607
+ n("orderedList") ? (U(), we(ye, {
65616
65608
  key: 1,
65617
65609
  icon: "list-ordered",
65618
65610
  size: "sm",
@@ -65623,7 +65615,7 @@ const UW = Pe.create({
65623
65615
  }),
65624
65616
  tooltip: "Numbered List"
65625
65617
  }, null, 8, ["variant"])) : ae("", !0),
65626
- n("taskList") ? (H(), we(ye, {
65618
+ n("taskList") ? (U(), we(ye, {
65627
65619
  key: 2,
65628
65620
  icon: "list-checks",
65629
65621
  size: "sm",
@@ -65650,8 +65642,8 @@ const UW = Pe.create({
65650
65642
  };
65651
65643
  return (r, i) => {
65652
65644
  var s, o, a;
65653
- return H(), re("div", JW, [
65654
- n("blockquote") ? (H(), we(ye, {
65645
+ return U(), re("div", JW, [
65646
+ n("blockquote") ? (U(), we(ye, {
65655
65647
  key: 0,
65656
65648
  icon: "quote",
65657
65649
  size: "sm",
@@ -65662,7 +65654,7 @@ const UW = Pe.create({
65662
65654
  }),
65663
65655
  tooltip: "Quote"
65664
65656
  }, null, 8, ["variant"])) : ae("", !0),
65665
- n("details") ? (H(), we(ye, {
65657
+ n("details") ? (U(), we(ye, {
65666
65658
  key: 1,
65667
65659
  icon: "details",
65668
65660
  size: "sm",
@@ -65673,7 +65665,7 @@ const UW = Pe.create({
65673
65665
  }),
65674
65666
  tooltip: "Toggle Content"
65675
65667
  }, null, 8, ["variant"])) : ae("", !0),
65676
- n("code") ? (H(), we(ye, {
65668
+ n("code") ? (U(), we(ye, {
65677
65669
  key: 2,
65678
65670
  icon: "code-2",
65679
65671
  size: "sm",
@@ -65721,8 +65713,8 @@ const UW = Pe.create({
65721
65713
  var l;
65722
65714
  return ((l = e.visibleToolbars) == null ? void 0 : l.includes(a)) ?? !0;
65723
65715
  };
65724
- return (a, l) => (H(), re("div", QW, [
65725
- o("table") ? (H(), we(ye, {
65716
+ return (a, l) => (U(), re("div", QW, [
65717
+ o("table") ? (U(), we(ye, {
65726
65718
  key: 0,
65727
65719
  icon: "table",
65728
65720
  variant: "transparent",
@@ -65733,7 +65725,7 @@ const UW = Pe.create({
65733
65725
  onClick: i,
65734
65726
  tooltip: "Insert Table"
65735
65727
  })) : ae("", !0),
65736
- o("grid") ? (H(), we(ye, {
65728
+ o("grid") ? (U(), we(ye, {
65737
65729
  key: 1,
65738
65730
  icon: "layout-grid",
65739
65731
  variant: "transparent",
@@ -65758,7 +65750,7 @@ const UW = Pe.create({
65758
65750
  }), s = () => {
65759
65751
  !e.editor || r.value || n(e.editor);
65760
65752
  };
65761
- return (o, a) => (H(), re("div", tj, [
65753
+ return (o, a) => (U(), re("div", tj, [
65762
65754
  he(ye, {
65763
65755
  icon: "image",
65764
65756
  size: "sm",
@@ -65766,11 +65758,11 @@ const UW = Pe.create({
65766
65758
  "--editor-btn-icon-size": "calc(var(--editor-btn-size) - 0.55em)"
65767
65759
  },
65768
65760
  variant: i.value ? "primary" : "transparent",
65769
- disabled: Ie(r),
65761
+ disabled: De(r),
65770
65762
  onClick: s,
65771
65763
  tooltip: "Upload Images"
65772
65764
  }, C2({ _: 2 }, [
65773
- Ie(r) ? {
65765
+ De(r) ? {
65774
65766
  name: "icon",
65775
65767
  fn: qe(() => [
65776
65768
  he(lr, {
@@ -65800,12 +65792,12 @@ const UW = Pe.create({
65800
65792
  };
65801
65793
  return (s, o) => {
65802
65794
  var a;
65803
- return H(), re("div", ij, [
65804
- i("image") ? (H(), we(rj, {
65795
+ return U(), re("div", ij, [
65796
+ i("image") ? (U(), we(rj, {
65805
65797
  key: 0,
65806
65798
  editor: s.editor
65807
65799
  }, null, 8, ["editor"])) : ae("", !0),
65808
- i("video") ? (H(), we(ye, {
65800
+ i("video") ? (U(), we(ye, {
65809
65801
  key: 1,
65810
65802
  icon: "video",
65811
65803
  size: "sm",
@@ -65813,15 +65805,15 @@ const UW = Pe.create({
65813
65805
  onClick: r,
65814
65806
  tooltip: "Embed Video"
65815
65807
  })) : ae("", !0),
65816
- i("link") ? (H(), we(ye, {
65808
+ i("link") ? (U(), we(ye, {
65817
65809
  key: 2,
65818
65810
  icon: "link",
65819
65811
  size: "sm",
65820
- variant: (a = s.editor) != null && a.isActive("link") || Ie(er) ? "primary" : "transparent",
65812
+ variant: (a = s.editor) != null && a.isActive("link") || De(er) ? "primary" : "transparent",
65821
65813
  onClick: xt(n, ["stop"]),
65822
65814
  tooltip: "Insert Link"
65823
65815
  }, null, 8, ["variant"])) : ae("", !0),
65824
- i("divider") ? (H(), we(ye, {
65816
+ i("divider") ? (U(), we(ye, {
65825
65817
  key: 3,
65826
65818
  icon: "minus",
65827
65819
  variant: "transparent",
@@ -65848,8 +65840,8 @@ const UW = Pe.create({
65848
65840
  };
65849
65841
  return (r, i) => {
65850
65842
  var s, o;
65851
- return H(), re("div", oj, [
65852
- n("undo") ? (H(), we(ye, {
65843
+ return U(), re("div", oj, [
65844
+ n("undo") ? (U(), we(ye, {
65853
65845
  key: 0,
65854
65846
  icon: "undo",
65855
65847
  variant: "transparent",
@@ -65861,7 +65853,7 @@ const UW = Pe.create({
65861
65853
  }),
65862
65854
  tooltip: "Undo (⌘Z)"
65863
65855
  }, null, 8, ["disabled"])) : ae("", !0),
65864
- n("redo") ? (H(), we(ye, {
65856
+ n("redo") ? (U(), we(ye, {
65865
65857
  key: 1,
65866
65858
  icon: "redo",
65867
65859
  variant: "transparent",
@@ -65921,16 +65913,16 @@ const UW = Pe.create({
65921
65913
  { tools: ["image", "link", "divider"], component: sj },
65922
65914
  { tools: ["undo", "redo"], component: aj }
65923
65915
  ], s = Se(() => i.filter((o) => o.tools.some((a) => r.value.includes(a))));
65924
- return (o, a) => (H(), re("div", lj, [
65916
+ return (o, a) => (U(), re("div", lj, [
65925
65917
  V("div", cj, [
65926
- (H(!0), re(dn, null, Cr(s.value, (l, c) => (H(), re(dn, {
65918
+ (U(!0), re(dn, null, Cr(s.value, (l, c) => (U(), re(dn, {
65927
65919
  key: l.component.name
65928
65920
  }, [
65929
- (H(), we(E2(l.component), {
65930
- editor: Ie(Nr),
65921
+ (U(), we(E2(l.component), {
65922
+ editor: De(Nr),
65931
65923
  visibleToolbars: r.value
65932
65924
  }, null, 8, ["editor", "visibleToolbars"])),
65933
- c < s.value.length - 1 ? (H(), re("div", uj)) : ae("", !0)
65925
+ c < s.value.length - 1 ? (U(), re("div", uj)) : ae("", !0)
65934
65926
  ], 64))), 128))
65935
65927
  ])
65936
65928
  ]));
@@ -66040,7 +66032,7 @@ const fj = ["innerHTML"], Nj = /* @__PURE__ */ Ae({
66040
66032
  () => {
66041
66033
  l();
66042
66034
  }
66043
- ), (c, u) => (H(), re("div", {
66035
+ ), (c, u) => (U(), re("div", {
66044
66036
  ref_key: "containerRef",
66045
66037
  ref: n,
66046
66038
  class: Le(["v-notion-editor read-mode", c.className]),