@myissue/vue-website-page-builder 3.4.14 → 3.4.16

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.
@@ -2,7 +2,7 @@ var Lh = Object.defineProperty;
2
2
  var Dh = (n, e, t) => e in n ? Lh(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var be = (n, e, t) => Dh(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import * as vp from "vue";
5
- import { defineComponent as Xe, computed as I, createBlock as ue, openBlock as w, Teleport as Nh, createElementVNode as u, createElementBlock as M, createCommentVNode as A, normalizeClass as Q, toDisplayString as C, renderSlot as pr, ref as E, watchEffect as ii, Fragment as X, withCtx as V, nextTick as oe, readonly as Ih, createVNode as j, unref as y, shallowRef as $h, onMounted as dn, onBeforeUnmount as Lo, h as zn, getCurrentInstance as Ad, markRaw as An, customRef as Rh, effectScope as _d, toRaw as Ve, hasInjectionContext as Hh, inject as Vn, watch as ee, reactive as Fh, isRef as Di, isReactive as Ca, toRef as Zo, getCurrentScope as jh, onScopeDispose as zh, toRefs as wp, onBeforeMount as Vh, withDirectives as xe, vModelText as yr, createTextVNode as we, provide as Tn, resolveDynamicComponent as Ld, cloneVNode as qh, onUnmounted as Uh, Transition as si, renderList as de, withKeys as Il, withModifiers as bt, vShow as $l, vModelSelect as Ue } from "vue";
5
+ import { defineComponent as Xe, computed as N, createBlock as ue, openBlock as w, Teleport as Ih, createElementVNode as u, createElementBlock as M, createCommentVNode as A, normalizeClass as Q, toDisplayString as C, renderSlot as pr, ref as E, watchEffect as ii, Fragment as X, withCtx as V, nextTick as oe, readonly as Nh, createVNode as j, unref as y, shallowRef as $h, onMounted as dn, onBeforeUnmount as Lo, h as zn, getCurrentInstance as Ad, markRaw as An, customRef as Rh, effectScope as _d, toRaw as Ve, hasInjectionContext as Hh, inject as Vn, watch as ee, reactive as Fh, isRef as Di, isReactive as Ca, toRef as Zo, getCurrentScope as jh, onScopeDispose as zh, toRefs as wp, onBeforeMount as Vh, withDirectives as xe, vModelText as yr, createTextVNode as we, provide as Tn, resolveDynamicComponent as Ld, cloneVNode as qh, onUnmounted as Uh, Transition as si, renderList as de, withKeys as Nl, withModifiers as bt, vShow as $l, vModelSelect as Ue } from "vue";
6
6
  const Wh = { class: "pbx-font-sans" }, Kh = {
7
7
  key: 0,
8
8
  class: "pbx-fixed pbx-inset-0 pbx-z-40 pbx-flex pbx-items-center pbx-justify-center pbx-mx-4",
@@ -42,7 +42,7 @@ const Wh = { class: "pbx-font-sans" }, Kh = {
42
42
  setup(n, { emit: e }) {
43
43
  const t = n, r = e, i = () => {
44
44
  r("closeMainModalBuilder");
45
- }, s = I(() => ({
45
+ }, s = N(() => ({
46
46
  sm: "lg:pbx-max-w-sm",
47
47
  md: "lg:pbx-max-w-md",
48
48
  lg: "lg:pbx-max-w-lg",
@@ -58,7 +58,7 @@ const Wh = { class: "pbx-font-sans" }, Kh = {
58
58
  screen: "lg:w-screen sm:pbx-max-w-none"
59
59
  // truly full screen
60
60
  })[t.maxWidth]);
61
- return (o, l) => (w(), ue(Nh, { to: "body" }, [
61
+ return (o, l) => (w(), ue(Ih, { to: "body" }, [
62
62
  u("div", Wh, [
63
63
  n.showModalBuilder ? (w(), M("div", Kh, [
64
64
  u("div", {
@@ -1367,11 +1367,11 @@ function ob() {
1367
1367
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1368
1368
  return hs(sb);
1369
1369
  }
1370
- const Ie = [];
1370
+ const Ne = [];
1371
1371
  for (let n = 0; n < 256; ++n)
1372
- Ie.push((n + 256).toString(16).slice(1));
1372
+ Ne.push((n + 256).toString(16).slice(1));
1373
1373
  function lb(n, e = 0) {
1374
- return Ie[n[e + 0]] + Ie[n[e + 1]] + Ie[n[e + 2]] + Ie[n[e + 3]] + "-" + Ie[n[e + 4]] + Ie[n[e + 5]] + "-" + Ie[n[e + 6]] + Ie[n[e + 7]] + "-" + Ie[n[e + 8]] + Ie[n[e + 9]] + "-" + Ie[n[e + 10]] + Ie[n[e + 11]] + Ie[n[e + 12]] + Ie[n[e + 13]] + Ie[n[e + 14]] + Ie[n[e + 15]];
1374
+ return Ne[n[e + 0]] + Ne[n[e + 1]] + Ne[n[e + 2]] + Ne[n[e + 3]] + "-" + Ne[n[e + 4]] + Ne[n[e + 5]] + "-" + Ne[n[e + 6]] + Ne[n[e + 7]] + "-" + Ne[n[e + 8]] + Ne[n[e + 9]] + "-" + Ne[n[e + 10]] + Ne[n[e + 11]] + Ne[n[e + 12]] + Ne[n[e + 13]] + Ne[n[e + 14]] + Ne[n[e + 15]];
1375
1375
  }
1376
1376
  const ab = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), kp = {
1377
1377
  randomUUID: ab
@@ -1562,11 +1562,11 @@ class cb {
1562
1562
  var t;
1563
1563
  typeof ((t = this.getElement.value) == null ? void 0 : t.innerHTML) == "string" && (typeof this.getElement.value.innerHTML == "string" && (await oe(), this.getElement.value.textContent = e, this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML), this.getElement.value.innerHTML = e), this.ensureTextAreaHasContent());
1564
1564
  });
1565
- this.hasStartedEditing = !1, this.pageBuilderStateStore = e, this.getApplyImageToSelection = I(
1565
+ this.hasStartedEditing = !1, this.pageBuilderStateStore = e, this.getApplyImageToSelection = N(
1566
1566
  () => this.pageBuilderStateStore.getApplyImageToSelection
1567
- ), this.getLocalStorageItemName = I(
1567
+ ), this.getLocalStorageItemName = N(
1568
1568
  () => this.pageBuilderStateStore.getLocalStorageItemName
1569
- ), this.getHyberlinkEnable = I(() => this.pageBuilderStateStore.getHyberlinkEnable), this.getComponents = I(() => this.pageBuilderStateStore.getComponents), this.getComponent = I(() => this.pageBuilderStateStore.getComponent), this.getElement = I(() => this.pageBuilderStateStore.getElement), this.getComponentArrayAddMethod = I(
1569
+ ), this.getHyberlinkEnable = N(() => this.pageBuilderStateStore.getHyberlinkEnable), this.getComponents = N(() => this.pageBuilderStateStore.getComponents), this.getComponent = N(() => this.pageBuilderStateStore.getComponent), this.getElement = N(() => this.pageBuilderStateStore.getElement), this.getComponentArrayAddMethod = N(
1570
1570
  () => this.pageBuilderStateStore.getComponentArrayAddMethod
1571
1571
  ), this.NoneListernesTags = [
1572
1572
  "P",
@@ -2751,30 +2751,6 @@ ${o}
2751
2751
  }
2752
2752
  return !1;
2753
2753
  }
2754
- /**
2755
- * Exports all CSS used in the builder as a string.
2756
- * - Includes all inline styles and a list of all classes used.
2757
- * - If you use Tailwind, classes are your main "CSS".
2758
- * - If you have custom CSS, you can also include it here.
2759
- */
2760
- exportCssFromPageBuilder() {
2761
- const e = document.querySelector("#pagebuilder");
2762
- if (!e) return "";
2763
- const t = [];
2764
- e.querySelectorAll("[style]").forEach((s) => {
2765
- const o = s.id ? `#${s.id}` : s.className ? `.${Array.from(s.classList).join(".")}` : s.tagName.toLowerCase();
2766
- t.push(`${o} { ${s.getAttribute("style")} }`);
2767
- });
2768
- const r = /* @__PURE__ */ new Set();
2769
- return e.querySelectorAll("[class]").forEach((s) => {
2770
- s.className.split(/\s+/).filter(Boolean).forEach((o) => r.add(o));
2771
- }), [`/* Classes used in this page (for Tailwind or custom CSS):
2772
- ` + Array.from(r).sort().map((s) => `.${s}`).join(`
2773
- `) + `
2774
- */`, ...t].join(`
2775
-
2776
- `);
2777
- }
2778
2754
  /**
2779
2755
  * Applies a selected image to the current element.
2780
2756
  * @param {ImageObject} image - The image object to apply.
@@ -3179,12 +3155,12 @@ const ub = (n, e, t) => {
3179
3155
  );
3180
3156
  });
3181
3157
  }, Rl = E({});
3182
- async function Nd(n) {
3158
+ async function Id(n) {
3183
3159
  try {
3184
3160
  const e = await ub(/* @__PURE__ */ Object.assign({ "../locales/ar.json": () => import("./ar-B67ZvnES.js"), "../locales/de.json": () => import("./de-2iNkasP-.js"), "../locales/en.json": () => import("./en-BkPMvlrf.js"), "../locales/es.json": () => import("./es-CoKtBPFg.js"), "../locales/fr.json": () => import("./fr-Bb-szPYF.js"), "../locales/hi.json": () => import("./hi-Z-tSAHna.js"), "../locales/ja.json": () => import("./ja-BsFKC04n.js"), "../locales/pt.json": () => import("./pt-CR27KWIb.js"), "../locales/ru.json": () => import("./ru-CVy3Csm4.js"), "../locales/zh-Hans.json": () => import("./zh-Hans-9bdCn2lI.js") }), `../locales/${n}.json`, 3);
3185
3161
  Rl.value = e.default;
3186
3162
  } catch (e) {
3187
- console.error(`Could not load translations for language: ${n}`, e), n !== "en" && await Nd("en");
3163
+ console.error(`Could not load translations for language: ${n}`, e), n !== "en" && await Id("en");
3188
3164
  }
3189
3165
  }
3190
3166
  function Me() {
@@ -3193,14 +3169,14 @@ function Me() {
3193
3169
  }
3194
3170
  return {
3195
3171
  translate: n,
3196
- loadTranslations: Nd,
3197
- currentTranslations: Ih(Rl)
3172
+ loadTranslations: Id,
3173
+ currentTranslations: Nh(Rl)
3198
3174
  };
3199
3175
  }
3200
3176
  const fb = { class: "pbx-flex pbx-flex-col pbx-items-center pbx-justify-center pbx-myPrimaryGap" }, hb = { class: "pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center" }, bb = ["disabled"], mb = ["disabled"], xb = {
3201
3177
  __name: "ComponentTopMenu",
3202
3178
  setup(n) {
3203
- const { translate: e } = Me(), t = Ce(), r = E(!1), i = E(""), s = E(1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = E(null), h = E(null), b = I(() => t.canMoveUp()), x = I(() => t.canMoveDown()), m = function() {
3179
+ const { translate: e } = Me(), t = Ce(), r = E(!1), i = E(""), s = E(1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = E(null), h = E(null), b = N(() => t.canMoveUp()), x = N(() => t.canMoveDown()), m = function() {
3204
3180
  r.value = !0, i.value = "delete", s.value = 2, o.value = e("Remove Component?"), l.value = e("Are you sure you want to remove this Component?"), a.value = e("Close"), p.value = null, c.value = e("Delete"), d.value = function() {
3205
3181
  r.value = !1;
3206
3182
  }, h.value = async function() {
@@ -3361,7 +3337,7 @@ $e.from = function(n) {
3361
3337
  if (n) for (var t in n) e.push(t, n[t]);
3362
3338
  return new $e(e);
3363
3339
  };
3364
- function Id(n, e, t) {
3340
+ function Nd(n, e, t) {
3365
3341
  for (let r = 0; ; r++) {
3366
3342
  if (r == n.childCount || r == e.childCount)
3367
3343
  return n.childCount == e.childCount ? null : t;
@@ -3378,7 +3354,7 @@ function Id(n, e, t) {
3378
3354
  return t;
3379
3355
  }
3380
3356
  if (i.content.size || s.content.size) {
3381
- let o = Id(i.content, s.content, t + 1);
3357
+ let o = Nd(i.content, s.content, t + 1);
3382
3358
  if (o != null)
3383
3359
  return o;
3384
3360
  }
@@ -3410,7 +3386,7 @@ function $d(n, e, t, r) {
3410
3386
  t -= a, r -= a;
3411
3387
  }
3412
3388
  }
3413
- class N {
3389
+ class I {
3414
3390
  /**
3415
3391
  @internal
3416
3392
  */
@@ -3465,7 +3441,7 @@ class N {
3465
3441
  let t = this.lastChild, r = e.firstChild, i = this.content.slice(), s = 0;
3466
3442
  for (t.isText && t.sameMarkup(r) && (i[i.length - 1] = t.withText(t.text + r.text), s = 1); s < e.content.length; s++)
3467
3443
  i.push(e.content[s]);
3468
- return new N(i, this.size + e.size);
3444
+ return new I(i, this.size + e.size);
3469
3445
  }
3470
3446
  /**
3471
3447
  Cut out the sub-fragment between the two given positions.
@@ -3479,13 +3455,13 @@ class N {
3479
3455
  let l = this.content[s], a = o + l.nodeSize;
3480
3456
  a > e && ((o < e || a > t) && (l.isText ? l = l.cut(Math.max(0, e - o), Math.min(l.text.length, t - o)) : l = l.cut(Math.max(0, e - o - 1), Math.min(l.content.size, t - o - 1))), r.push(l), i += l.nodeSize), o = a;
3481
3457
  }
3482
- return new N(r, i);
3458
+ return new I(r, i);
3483
3459
  }
3484
3460
  /**
3485
3461
  @internal
3486
3462
  */
3487
3463
  cutByIndex(e, t) {
3488
- return e == t ? N.empty : e == 0 && t == this.content.length ? this : new N(this.content.slice(e, t));
3464
+ return e == t ? I.empty : e == 0 && t == this.content.length ? this : new I(this.content.slice(e, t));
3489
3465
  }
3490
3466
  /**
3491
3467
  Create a new fragment in which the node at the given index is
@@ -3496,21 +3472,21 @@ class N {
3496
3472
  if (r == t)
3497
3473
  return this;
3498
3474
  let i = this.content.slice(), s = this.size + t.nodeSize - r.nodeSize;
3499
- return i[e] = t, new N(i, s);
3475
+ return i[e] = t, new I(i, s);
3500
3476
  }
3501
3477
  /**
3502
3478
  Create a new fragment by prepending the given node to this
3503
3479
  fragment.
3504
3480
  */
3505
3481
  addToStart(e) {
3506
- return new N([e].concat(this.content), this.size + e.nodeSize);
3482
+ return new I([e].concat(this.content), this.size + e.nodeSize);
3507
3483
  }
3508
3484
  /**
3509
3485
  Create a new fragment by appending the given node to this
3510
3486
  fragment.
3511
3487
  */
3512
3488
  addToEnd(e) {
3513
- return new N(this.content.concat(e), this.size + e.nodeSize);
3489
+ return new I(this.content.concat(e), this.size + e.nodeSize);
3514
3490
  }
3515
3491
  /**
3516
3492
  Compare this fragment to another one.
@@ -3572,7 +3548,7 @@ class N {
3572
3548
  fragment differ, or `null` if they are the same.
3573
3549
  */
3574
3550
  findDiffStart(e, t = 0) {
3575
- return Id(this, e, t);
3551
+ return Nd(this, e, t);
3576
3552
  }
3577
3553
  /**
3578
3554
  Find the first position, searching from the end, at which this
@@ -3625,10 +3601,10 @@ class N {
3625
3601
  */
3626
3602
  static fromJSON(e, t) {
3627
3603
  if (!t)
3628
- return N.empty;
3604
+ return I.empty;
3629
3605
  if (!Array.isArray(t))
3630
3606
  throw new RangeError("Invalid input for Fragment.fromJSON");
3631
- return new N(t.map(e.nodeFromJSON));
3607
+ return new I(t.map(e.nodeFromJSON));
3632
3608
  }
3633
3609
  /**
3634
3610
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -3636,13 +3612,13 @@ class N {
3636
3612
  */
3637
3613
  static fromArray(e) {
3638
3614
  if (!e.length)
3639
- return N.empty;
3615
+ return I.empty;
3640
3616
  let t, r = 0;
3641
3617
  for (let i = 0; i < e.length; i++) {
3642
3618
  let s = e[i];
3643
3619
  r += s.nodeSize, i && s.isText && e[i - 1].sameMarkup(s) ? (t || (t = e.slice(0, i)), t[t.length - 1] = s.withText(t[t.length - 1].text + s.text)) : t && t.push(s);
3644
3620
  }
3645
- return new N(t || e, r);
3621
+ return new I(t || e, r);
3646
3622
  }
3647
3623
  /**
3648
3624
  Create a fragment from something that can be interpreted as a
@@ -3652,17 +3628,17 @@ class N {
3652
3628
  */
3653
3629
  static from(e) {
3654
3630
  if (!e)
3655
- return N.empty;
3656
- if (e instanceof N)
3631
+ return I.empty;
3632
+ if (e instanceof I)
3657
3633
  return e;
3658
3634
  if (Array.isArray(e))
3659
3635
  return this.fromArray(e);
3660
3636
  if (e.attrs)
3661
- return new N([e], e.nodeSize);
3637
+ return new I([e], e.nodeSize);
3662
3638
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
3663
3639
  }
3664
3640
  }
3665
- N.empty = new N([], 0);
3641
+ I.empty = new I([], 0);
3666
3642
  const el = { index: 0, offset: 0 };
3667
3643
  function bs(n, e) {
3668
3644
  return el.index = n, el.offset = e, el;
@@ -3864,7 +3840,7 @@ class z {
3864
3840
  let r = t.openStart || 0, i = t.openEnd || 0;
3865
3841
  if (typeof r != "number" || typeof i != "number")
3866
3842
  throw new RangeError("Invalid input for Slice.fromJSON");
3867
- return new z(N.fromJSON(e, t.content), r, i);
3843
+ return new z(I.fromJSON(e, t.content), r, i);
3868
3844
  }
3869
3845
  /**
3870
3846
  Create a slice from a fragment by taking the maximum possible
@@ -3879,7 +3855,7 @@ class z {
3879
3855
  return new z(e, r, i);
3880
3856
  }
3881
3857
  }
3882
- z.empty = new z(N.empty, 0, 0);
3858
+ z.empty = new z(I.empty, 0, 0);
3883
3859
  function Rd(n, e, t) {
3884
3860
  let { index: r, offset: i } = n.findIndex(e), s = n.maybeChild(r), { index: o, offset: l } = n.findIndex(t);
3885
3861
  if (i == e || s.isText) {
@@ -3944,7 +3920,7 @@ function hr(n, e) {
3944
3920
  }
3945
3921
  function zd(n, e, t, r, i) {
3946
3922
  let s = n.depth > i && Fl(n, e, i + 1), o = r.depth > i && Fl(t, r, i + 1), l = [];
3947
- return vi(null, n, i, l), s && o && e.index(i) == t.index(i) ? (jd(s, o), fr(hr(s, zd(n, e, t, r, i + 1)), l)) : (s && fr(hr(s, Us(n, e, i + 1)), l), vi(e, t, i, l), o && fr(hr(o, Us(t, r, i + 1)), l)), vi(r, null, i, l), new N(l);
3923
+ return vi(null, n, i, l), s && o && e.index(i) == t.index(i) ? (jd(s, o), fr(hr(s, zd(n, e, t, r, i + 1)), l)) : (s && fr(hr(s, Us(n, e, i + 1)), l), vi(e, t, i, l), o && fr(hr(o, Us(t, r, i + 1)), l)), vi(r, null, i, l), new I(l);
3948
3924
  }
3949
3925
  function Us(n, e, t) {
3950
3926
  let r = [];
@@ -3952,18 +3928,18 @@ function Us(n, e, t) {
3952
3928
  let i = Fl(n, e, t + 1);
3953
3929
  fr(hr(i, Us(n, e, t + 1)), r);
3954
3930
  }
3955
- return vi(e, null, t, r), new N(r);
3931
+ return vi(e, null, t, r), new I(r);
3956
3932
  }
3957
3933
  function yb(n, e) {
3958
3934
  let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
3959
3935
  for (let s = t - 1; s >= 0; s--)
3960
- i = e.node(s).copy(N.from(i));
3936
+ i = e.node(s).copy(I.from(i));
3961
3937
  return {
3962
3938
  start: i.resolveNoCache(n.openStart + t),
3963
3939
  end: i.resolveNoCache(i.content.size - n.openEnd - t)
3964
3940
  };
3965
3941
  }
3966
- class Ni {
3942
+ class Ii {
3967
3943
  /**
3968
3944
  @internal
3969
3945
  */
@@ -4191,7 +4167,7 @@ class Ni {
4191
4167
  break;
4192
4168
  s = p - 1, i += a + 1;
4193
4169
  }
4194
- return new Ni(t, r, s);
4170
+ return new Ii(t, r, s);
4195
4171
  }
4196
4172
  /**
4197
4173
  @internal
@@ -4206,7 +4182,7 @@ class Ni {
4206
4182
  }
4207
4183
  else
4208
4184
  Mp.set(e, r = new vb());
4209
- let i = r.elts[r.i] = Ni.resolve(e, t);
4185
+ let i = r.elts[r.i] = Ii.resolve(e, t);
4210
4186
  return r.i = (r.i + 1) % wb, i;
4211
4187
  }
4212
4188
  }
@@ -4262,7 +4238,7 @@ let Rn = class jl {
4262
4238
  @internal
4263
4239
  */
4264
4240
  constructor(e, t, r, i = me.none) {
4265
- this.type = e, this.attrs = t, this.marks = i, this.content = r || N.empty;
4241
+ this.type = e, this.attrs = t, this.marks = i, this.content = r || I.empty;
4266
4242
  }
4267
4243
  /**
4268
4244
  The array of this node's child nodes.
@@ -4461,13 +4437,13 @@ let Rn = class jl {
4461
4437
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
4462
4438
  */
4463
4439
  resolve(e) {
4464
- return Ni.resolveCached(this, e);
4440
+ return Ii.resolveCached(this, e);
4465
4441
  }
4466
4442
  /**
4467
4443
  @internal
4468
4444
  */
4469
4445
  resolveNoCache(e) {
4470
- return Ni.resolve(this, e);
4446
+ return Ii.resolve(this, e);
4471
4447
  }
4472
4448
  /**
4473
4449
  Test whether a given mark or mark type occurs in this document
@@ -4551,7 +4527,7 @@ let Rn = class jl {
4551
4527
  can optionally pass `start` and `end` indices into the
4552
4528
  replacement fragment.
4553
4529
  */
4554
- canReplace(e, t, r = N.empty, i = 0, s = r.childCount) {
4530
+ canReplace(e, t, r = I.empty, i = 0, s = r.childCount) {
4555
4531
  let o = this.contentMatchAt(e).matchFragment(r, i, s), l = o && o.matchFragment(this.content, t);
4556
4532
  if (!l || !l.validEnd)
4557
4533
  return !1;
@@ -4622,7 +4598,7 @@ let Rn = class jl {
4622
4598
  throw new RangeError("Invalid text node in JSON");
4623
4599
  return e.text(t.text, r);
4624
4600
  }
4625
- let i = N.fromJSON(e, t.content), s = e.nodeType(t.type).create(t.attrs, i, r);
4601
+ let i = I.fromJSON(e, t.content), s = e.nodeType(t.type).create(t.attrs, i, r);
4626
4602
  return s.type.checkAttrs(s.attrs), s;
4627
4603
  }
4628
4604
  };
@@ -4750,7 +4726,7 @@ class wr {
4750
4726
  function s(o, l) {
4751
4727
  let a = o.matchFragment(e, r);
4752
4728
  if (a && (!t || a.validEnd))
4753
- return N.from(l.map((p) => p.createAndFill()));
4729
+ return I.from(l.map((p) => p.createAndFill()));
4754
4730
  for (let p = 0; p < o.next.length; p++) {
4755
4731
  let { type: c, next: d } = o.next[p];
4756
4732
  if (!(c.isText || c.hasRequiredAttrs()) && i.indexOf(d) == -1) {
@@ -5133,7 +5109,7 @@ let Op = class Yd {
5133
5109
  create(e = null, t, r) {
5134
5110
  if (this.isText)
5135
5111
  throw new Error("NodeType.create can't construct text nodes");
5136
- return new Rn(this, this.computeAttrs(e), N.from(t), me.setFrom(r));
5112
+ return new Rn(this, this.computeAttrs(e), I.from(t), me.setFrom(r));
5137
5113
  }
5138
5114
  /**
5139
5115
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -5141,7 +5117,7 @@ let Op = class Yd {
5141
5117
  if it doesn't match.
5142
5118
  */
5143
5119
  createChecked(e = null, t, r) {
5144
- return t = N.from(t), this.checkContent(t), new Rn(this, this.computeAttrs(e), t, me.setFrom(r));
5120
+ return t = I.from(t), this.checkContent(t), new Rn(this, this.computeAttrs(e), t, me.setFrom(r));
5145
5121
  }
5146
5122
  /**
5147
5123
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -5152,13 +5128,13 @@ let Op = class Yd {
5152
5128
  `Fragment.empty` as content.
5153
5129
  */
5154
5130
  createAndFill(e = null, t, r) {
5155
- if (e = this.computeAttrs(e), t = N.from(t), t.size) {
5131
+ if (e = this.computeAttrs(e), t = I.from(t), t.size) {
5156
5132
  let o = this.contentMatch.fillBefore(t);
5157
5133
  if (!o)
5158
5134
  return null;
5159
5135
  t = o.append(t);
5160
5136
  }
5161
- let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(N.empty, !0);
5137
+ let i = this.contentMatch.matchFragment(t), s = i && i.fillBefore(I.empty, !0);
5162
5138
  return s ? new Rn(this, e, t.append(s), me.setFrom(r)) : null;
5163
5139
  }
5164
5140
  /**
@@ -5406,7 +5382,7 @@ function Bp(n, e) {
5406
5382
  function Db(n) {
5407
5383
  return n.tag != null;
5408
5384
  }
5409
- function Nb(n) {
5385
+ function Ib(n) {
5410
5386
  return n.style != null;
5411
5387
  }
5412
5388
  let wi = class zl {
@@ -5420,7 +5396,7 @@ let wi = class zl {
5420
5396
  t.forEach((i) => {
5421
5397
  if (Db(i))
5422
5398
  this.tags.push(i);
5423
- else if (Nb(i)) {
5399
+ else if (Ib(i)) {
5424
5400
  let s = /[^=]*/.exec(i.style)[0];
5425
5401
  r.indexOf(s) < 0 && r.push(s), this.styles.push(i);
5426
5402
  }
@@ -5557,16 +5533,16 @@ const Xd = {
5557
5533
  table: !0,
5558
5534
  tfoot: !0,
5559
5535
  ul: !0
5560
- }, Ib = {
5536
+ }, Nb = {
5561
5537
  head: !0,
5562
5538
  noscript: !0,
5563
5539
  object: !0,
5564
5540
  script: !0,
5565
5541
  style: !0,
5566
5542
  title: !0
5567
- }, Zd = { ol: !0, ul: !0 }, Ii = 1, Vl = 2, Si = 4;
5543
+ }, Zd = { ol: !0, ul: !0 }, Ni = 1, Vl = 2, Si = 4;
5568
5544
  function Pp(n, e, t) {
5569
- return e != null ? (e ? Ii : 0) | (e === "full" ? Vl : 0) : n && n.whitespace == "pre" ? Ii | Vl : t & ~Si;
5545
+ return e != null ? (e ? Ni : 0) | (e === "full" ? Vl : 0) : n && n.whitespace == "pre" ? Ni | Vl : t & ~Si;
5570
5546
  }
5571
5547
  class ms {
5572
5548
  constructor(e, t, r, i, s, o) {
@@ -5576,7 +5552,7 @@ class ms {
5576
5552
  if (!this.match) {
5577
5553
  if (!this.type)
5578
5554
  return [];
5579
- let t = this.type.contentMatch.fillBefore(N.from(e));
5555
+ let t = this.type.contentMatch.fillBefore(I.from(e));
5580
5556
  if (t)
5581
5557
  this.match = this.type.contentMatch.matchFragment(t);
5582
5558
  else {
@@ -5587,15 +5563,15 @@ class ms {
5587
5563
  return this.match.findWrapping(e.type);
5588
5564
  }
5589
5565
  finish(e) {
5590
- if (!(this.options & Ii)) {
5566
+ if (!(this.options & Ni)) {
5591
5567
  let r = this.content[this.content.length - 1], i;
5592
5568
  if (r && r.isText && (i = /[ \t\r\n\u000c]+$/.exec(r.text))) {
5593
5569
  let s = r;
5594
5570
  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));
5595
5571
  }
5596
5572
  }
5597
- let t = N.from(this.content);
5598
- return !e && this.match && (t = t.append(this.match.fillBefore(N.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
5573
+ let t = I.from(this.content);
5574
+ return !e && this.match && (t = t.append(this.match.fillBefore(I.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
5599
5575
  }
5600
5576
  inlineContext(e) {
5601
5577
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Xd.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
@@ -5617,7 +5593,7 @@ class Ap {
5617
5593
  e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
5618
5594
  }
5619
5595
  addTextNode(e, t) {
5620
- let r = e.nodeValue, i = this.top, s = i.options & Vl ? "full" : this.localPreserveWS || (i.options & Ii) > 0;
5596
+ let r = e.nodeValue, i = this.top, s = i.options & Vl ? "full" : this.localPreserveWS || (i.options & Ni) > 0;
5621
5597
  if (s === "full" || i.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
5622
5598
  if (s)
5623
5599
  s !== "full" ? r = r.replace(/\r?\n|\r/g, " ") : r = r.replace(/\r\n?/g, `
@@ -5638,7 +5614,7 @@ class Ap {
5638
5614
  let o = e.nodeName.toLowerCase(), l;
5639
5615
  Zd.hasOwnProperty(o) && this.parser.normalizeLists && $b(e);
5640
5616
  let a = this.options.ruleFromNode && this.options.ruleFromNode(e) || (l = this.parser.matchTag(e, this, r));
5641
- e: if (a ? a.ignore : Ib.hasOwnProperty(o))
5617
+ e: if (a ? a.ignore : Nb.hasOwnProperty(o))
5642
5618
  this.findInside(e), this.ignoreFallback(e, t);
5643
5619
  else if (!a || a.skip || a.closeParent) {
5644
5620
  a && a.closeParent ? this.open = Math.max(0, this.open - 1) : a && a.skip.nodeType && (e = a.skip);
@@ -5800,7 +5776,7 @@ class Ap {
5800
5776
  for (let t = this.open; t >= 0; t--) {
5801
5777
  if (this.nodes[t] == e)
5802
5778
  return this.open = t, !0;
5803
- this.localPreserveWS && (this.nodes[t].options |= Ii);
5779
+ this.localPreserveWS && (this.nodes[t].options |= Ni);
5804
5780
  }
5805
5781
  return !1;
5806
5782
  }
@@ -6023,10 +5999,10 @@ function Dp(n) {
6023
5999
  function tl(n) {
6024
6000
  return n.document || window.document;
6025
6001
  }
6026
- const Np = /* @__PURE__ */ new WeakMap();
6002
+ const Ip = /* @__PURE__ */ new WeakMap();
6027
6003
  function Hb(n) {
6028
- let e = Np.get(n);
6029
- return e === void 0 && Np.set(n, e = Fb(n)), e;
6004
+ let e = Ip.get(n);
6005
+ return e === void 0 && Ip.set(n, e = Fb(n)), e;
6030
6006
  }
6031
6007
  function Fb(n) {
6032
6008
  let e = null;
@@ -6088,7 +6064,7 @@ const eu = 65535, tu = Math.pow(2, 16);
6088
6064
  function jb(n, e) {
6089
6065
  return n + e * tu;
6090
6066
  }
6091
- function Ip(n) {
6067
+ function Np(n) {
6092
6068
  return n & eu;
6093
6069
  }
6094
6070
  function zb(n) {
@@ -6145,7 +6121,7 @@ class lt {
6145
6121
  @internal
6146
6122
  */
6147
6123
  recover(e) {
6148
- let t = 0, r = Ip(e);
6124
+ let t = 0, r = Np(e);
6149
6125
  if (!this.inverted)
6150
6126
  for (let i = 0; i < r; i++)
6151
6127
  t += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
@@ -6182,7 +6158,7 @@ class lt {
6182
6158
  @internal
6183
6159
  */
6184
6160
  touches(e, t) {
6185
- let r = 0, i = Ip(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
6161
+ let r = 0, i = Np(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
6186
6162
  for (let l = 0; l < this.ranges.length; l += 3) {
6187
6163
  let a = this.ranges[l] - (this.inverted ? r : 0);
6188
6164
  if (a > e)
@@ -6417,7 +6393,7 @@ function Ma(n, e, t) {
6417
6393
  let s = n.child(i);
6418
6394
  s.content.size && (s = s.copy(Ma(s.content, e, s))), s.isInline && (s = e(s, t, i)), r.push(s);
6419
6395
  }
6420
- return N.fromArray(r);
6396
+ return I.fromArray(r);
6421
6397
  }
6422
6398
  class Ln extends Ke {
6423
6399
  /**
@@ -6509,7 +6485,7 @@ class Dn extends Ke {
6509
6485
  if (!t)
6510
6486
  return Ee.fail("No node at mark step's position");
6511
6487
  let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
6512
- return Ee.fromReplace(e, this.pos, this.pos + 1, new z(N.from(r), 0, t.isLeaf ? 0 : 1));
6488
+ return Ee.fromReplace(e, this.pos, this.pos + 1, new z(I.from(r), 0, t.isLeaf ? 0 : 1));
6513
6489
  }
6514
6490
  invert(e) {
6515
6491
  let t = e.nodeAt(this.pos);
@@ -6553,7 +6529,7 @@ class Sr extends Ke {
6553
6529
  if (!t)
6554
6530
  return Ee.fail("No node at mark step's position");
6555
6531
  let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
6556
- return Ee.fromReplace(e, this.pos, this.pos + 1, new z(N.from(r), 0, t.isLeaf ? 0 : 1));
6532
+ return Ee.fromReplace(e, this.pos, this.pos + 1, new z(I.from(r), 0, t.isLeaf ? 0 : 1));
6557
6533
  }
6558
6534
  invert(e) {
6559
6535
  let t = e.nodeAt(this.pos);
@@ -6752,13 +6728,13 @@ function Ea(n, e, t, r = t.contentMatch, i = !0) {
6752
6728
  if (i && p.isText && t.whitespace != "pre") {
6753
6729
  let f, h = /\r?\n|\r/g, b;
6754
6730
  for (; f = h.exec(p.text); )
6755
- b || (b = new z(N.from(t.schema.text(" ", t.allowedMarks(p.marks))), 0, 0)), o.push(new _e(l + f.index, l + f.index + f[0].length, b));
6731
+ b || (b = new z(I.from(t.schema.text(" ", t.allowedMarks(p.marks))), 0, 0)), o.push(new _e(l + f.index, l + f.index + f[0].length, b));
6756
6732
  }
6757
6733
  }
6758
6734
  l = c;
6759
6735
  }
6760
6736
  if (!r.validEnd) {
6761
- let a = r.fillBefore(N.empty, !0);
6737
+ let a = r.fillBefore(I.empty, !0);
6762
6738
  n.replace(l, l, new z(a, 0, 0));
6763
6739
  }
6764
6740
  for (let a = o.length - 1; a >= 0; a--)
@@ -6779,12 +6755,12 @@ function oi(n) {
6779
6755
  return null;
6780
6756
  }
6781
6757
  function Wb(n, e, t) {
6782
- let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, p = l, c = N.empty, d = 0;
6758
+ let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, p = l, c = I.empty, d = 0;
6783
6759
  for (let b = s, x = !1; b > t; b--)
6784
- x || r.index(b) > 0 ? (x = !0, c = N.from(r.node(b).copy(c)), d++) : a--;
6785
- let f = N.empty, h = 0;
6760
+ x || r.index(b) > 0 ? (x = !0, c = I.from(r.node(b).copy(c)), d++) : a--;
6761
+ let f = I.empty, h = 0;
6786
6762
  for (let b = s, x = !1; b > t; b--)
6787
- x || i.after(b + 1) < i.end(b) ? (x = !0, f = N.from(i.node(b).copy(f)), h++) : p++;
6763
+ x || i.after(b + 1) < i.end(b) ? (x = !0, f = I.from(i.node(b).copy(f)), h++) : p++;
6788
6764
  n.step(new Le(a, p, o, l, new z(c.append(f), d, h), c.size - d, !0));
6789
6765
  }
6790
6766
  function Ta(n, e, t = null, r = n) {
@@ -6811,14 +6787,14 @@ function Gb(n, e) {
6811
6787
  return !a || !a.validEnd ? null : o;
6812
6788
  }
6813
6789
  function Jb(n, e, t) {
6814
- let r = N.empty;
6790
+ let r = I.empty;
6815
6791
  for (let o = t.length - 1; o >= 0; o--) {
6816
6792
  if (r.size) {
6817
6793
  let l = t[o].type.contentMatch.matchFragment(r);
6818
6794
  if (!l || !l.validEnd)
6819
6795
  throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
6820
6796
  }
6821
- r = N.from(t[o].type.create(t[o].attrs, r));
6797
+ r = I.from(t[o].type.create(t[o].attrs, r));
6822
6798
  }
6823
6799
  let i = e.start, s = e.end;
6824
6800
  n.step(new Le(i, s, i, s, new z(r, 0, 0), t.length, !0));
@@ -6837,7 +6813,7 @@ function Yb(n, e, t, r, i) {
6837
6813
  }
6838
6814
  p === !1 && ou(n, o, l, s), Ea(n, n.mapping.slice(s).map(l, 1), r, void 0, p === null);
6839
6815
  let c = n.mapping.slice(s), d = c.map(l, 1), f = c.map(l + o.nodeSize, 1);
6840
- return n.step(new Le(d, f, d + 1, f - 1, new z(N.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), p === !0 && su(n, o, l, s), !1;
6816
+ return n.step(new Le(d, f, d + 1, f - 1, new z(I.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), p === !0 && su(n, o, l, s), !1;
6841
6817
  }
6842
6818
  });
6843
6819
  }
@@ -6875,7 +6851,7 @@ function Xb(n, e, t, r, i) {
6875
6851
  return n.replaceWith(e, e + s.nodeSize, o);
6876
6852
  if (!t.validContent(s.content))
6877
6853
  throw new RangeError("Invalid content for node type " + t.name);
6878
- n.step(new Le(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new z(N.from(o), 0, 0), 1, !0));
6854
+ n.step(new Le(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new z(I.from(o), 0, 0), 1, !0));
6879
6855
  }
6880
6856
  function pn(n, e, t = 1, r) {
6881
6857
  let i = n.resolve(e), s = i.depth - t, o = r && r[r.length - 1] || i.parent;
@@ -6895,11 +6871,11 @@ function pn(n, e, t = 1, r) {
6895
6871
  return i.node(s).canReplaceWith(l, l, a ? a.type : i.node(s + 1).type);
6896
6872
  }
6897
6873
  function Zb(n, e, t = 1, r) {
6898
- let i = n.doc.resolve(e), s = N.empty, o = N.empty;
6874
+ let i = n.doc.resolve(e), s = I.empty, o = I.empty;
6899
6875
  for (let l = i.depth, a = i.depth - t, p = t - 1; l > a; l--, p--) {
6900
- s = N.from(i.node(l).copy(s));
6876
+ s = I.from(i.node(l).copy(s));
6901
6877
  let c = r && r[p];
6902
- o = N.from(c ? c.type.create(c.attrs, o) : i.node(l).copy(o));
6878
+ o = I.from(c ? c.type.create(c.attrs, o) : i.node(l).copy(o));
6903
6879
  }
6904
6880
  n.step(new _e(e, e, new z(s.append(o), t, t), !0));
6905
6881
  }
@@ -6920,7 +6896,7 @@ function em(n, e) {
6920
6896
  function lu(n, e) {
6921
6897
  return !!(n && e && !n.isLeaf && em(n, e));
6922
6898
  }
6923
- function No(n, e, t = -1) {
6899
+ function Io(n, e, t = -1) {
6924
6900
  let r = n.resolve(e);
6925
6901
  for (let i = r.depth; ; i--) {
6926
6902
  let s, o, l = r.index(i);
@@ -6993,7 +6969,7 @@ function au(n, e, t) {
6993
6969
  }
6994
6970
  return null;
6995
6971
  }
6996
- function Io(n, e, t = e, r = z.empty) {
6972
+ function No(n, e, t = e, r = z.empty) {
6997
6973
  if (e == t && !r.size)
6998
6974
  return null;
6999
6975
  let i = n.resolve(e), s = n.resolve(t);
@@ -7004,7 +6980,7 @@ function pu(n, e, t) {
7004
6980
  }
7005
6981
  class rm {
7006
6982
  constructor(e, t, r) {
7007
- this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = N.empty;
6983
+ this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = I.empty;
7008
6984
  for (let i = 0; i <= e.depth; i++) {
7009
6985
  let s = e.node(i);
7010
6986
  this.frontier.push({
@@ -7013,7 +6989,7 @@ class rm {
7013
6989
  });
7014
6990
  }
7015
6991
  for (let i = e.depth; i > 0; i--)
7016
- this.placed = N.from(e.node(i).copy(this.placed));
6992
+ this.placed = I.from(e.node(i).copy(this.placed));
7017
6993
  }
7018
6994
  get depth() {
7019
6995
  return this.frontier.length - 1;
@@ -7052,7 +7028,7 @@ class rm {
7052
7028
  let o = i.firstChild;
7053
7029
  for (let l = this.depth; l >= 0; l--) {
7054
7030
  let { type: a, match: p } = this.frontier[l], c, d = null;
7055
- if (t == 1 && (o ? p.matchType(o.type) || (d = p.fillBefore(N.from(o), !1)) : s && a.compatibleContent(s.type)))
7031
+ if (t == 1 && (o ? p.matchType(o.type) || (d = p.fillBefore(I.from(o), !1)) : s && a.compatibleContent(s.type)))
7056
7032
  return { sliceDepth: r, frontierDepth: l, parent: s, inject: d };
7057
7033
  if (t == 2 && o && (c = p.findWrapping(o.type)))
7058
7034
  return { sliceDepth: r, frontierDepth: l, parent: s, wrap: c };
@@ -7096,7 +7072,7 @@ class rm {
7096
7072
  p++, (p > 1 || a == 0 || x.content.size) && (d = m, c.push(cu(x.mark(f.allowedMarks(x.marks)), p == 1 ? a : 0, p == l.childCount ? h : -1)));
7097
7073
  }
7098
7074
  let b = p == l.childCount;
7099
- b || (h = -1), this.placed = mi(this.placed, t, N.from(c)), this.frontier[t].match = d, b && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
7075
+ b || (h = -1), this.placed = mi(this.placed, t, I.from(c)), this.frontier[t].match = d, b && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
7100
7076
  for (let x = 0, m = l; x < h; x++) {
7101
7077
  let v = m.lastChild;
7102
7078
  this.frontier.push({ type: v.type, match: v.contentMatchAt(v.childCount) }), m = v.content;
@@ -7142,10 +7118,10 @@ class rm {
7142
7118
  }
7143
7119
  openFrontierNode(e, t = null, r) {
7144
7120
  let i = this.frontier[this.depth];
7145
- i.match = i.match.matchType(e), this.placed = mi(this.placed, this.depth, N.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
7121
+ i.match = i.match.matchType(e), this.placed = mi(this.placed, this.depth, I.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
7146
7122
  }
7147
7123
  closeFrontierNode() {
7148
- let t = this.frontier.pop().match.fillBefore(N.empty, !0);
7124
+ let t = this.frontier.pop().match.fillBefore(I.empty, !0);
7149
7125
  t.childCount && (this.placed = mi(this.placed, this.frontier.length, t));
7150
7126
  }
7151
7127
  }
@@ -7164,7 +7140,7 @@ function cu(n, e, t) {
7164
7140
  if (e <= 0)
7165
7141
  return n;
7166
7142
  let r = n.content;
7167
- return e > 1 && (r = r.replaceChild(0, cu(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(N.empty, !0)))), n.copy(r);
7143
+ return e > 1 && (r = r.replaceChild(0, cu(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(I.empty, !0)))), n.copy(r);
7168
7144
  }
7169
7145
  function il(n, e, t, r, i) {
7170
7146
  let s = n.node(e), o = i ? n.indexAfter(e) : n.index(e);
@@ -7236,7 +7212,7 @@ function du(n, e, t, r, i) {
7236
7212
  }
7237
7213
  if (e > r) {
7238
7214
  let s = i.contentMatchAt(0), o = s.fillBefore(n).append(n);
7239
- n = o.append(s.matchFragment(o).fillBefore(N.empty, !0));
7215
+ n = o.append(s.matchFragment(o).fillBefore(I.empty, !0));
7240
7216
  }
7241
7217
  return n;
7242
7218
  }
@@ -7245,7 +7221,7 @@ function lm(n, e, t, r) {
7245
7221
  let i = nm(n.doc, e, r.type);
7246
7222
  i != null && (e = t = i);
7247
7223
  }
7248
- n.replaceRange(e, t, new z(N.from(r), 0, 0));
7224
+ n.replaceRange(e, t, new z(I.from(r), 0, 0));
7249
7225
  }
7250
7226
  function am(n, e, t) {
7251
7227
  let r = n.doc.resolve(e), i = n.doc.resolve(t), s = uu(r, i);
@@ -7287,7 +7263,7 @@ class Wr extends Ke {
7287
7263
  r[s] = t.attrs[s];
7288
7264
  r[this.attr] = this.value;
7289
7265
  let i = t.type.create(r, null, t.marks);
7290
- return Ee.fromReplace(e, this.pos, this.pos + 1, new z(N.from(i), 0, t.isLeaf ? 0 : 1));
7266
+ return Ee.fromReplace(e, this.pos, this.pos + 1, new z(I.from(i), 0, t.isLeaf ? 0 : 1));
7291
7267
  }
7292
7268
  getMap() {
7293
7269
  return lt.empty;
@@ -7401,7 +7377,7 @@ class fu {
7401
7377
  given `slice`.
7402
7378
  */
7403
7379
  replace(e, t = e, r = z.empty) {
7404
- let i = Io(this.doc, e, t, r);
7380
+ let i = No(this.doc, e, t, r);
7405
7381
  return i && this.step(i), this;
7406
7382
  }
7407
7383
  /**
@@ -7409,7 +7385,7 @@ class fu {
7409
7385
  fragment, node, or array of nodes.
7410
7386
  */
7411
7387
  replaceWith(e, t, r) {
7412
- return this.replace(e, t, new z(N.from(r), 0, 0));
7388
+ return this.replace(e, t, new z(I.from(r), 0, 0));
7413
7389
  }
7414
7390
  /**
7415
7391
  Delete the content between the given positions.
@@ -7672,11 +7648,11 @@ class te {
7672
7648
  found.
7673
7649
  */
7674
7650
  static findFrom(e, t, r = !1) {
7675
- let i = e.parent.inlineContent ? new Z(e) : Ir(e.node(0), e.parent, e.pos, e.index(), t, r);
7651
+ let i = e.parent.inlineContent ? new Z(e) : Nr(e.node(0), e.parent, e.pos, e.index(), t, r);
7676
7652
  if (i)
7677
7653
  return i;
7678
7654
  for (let s = e.depth - 1; s >= 0; s--) {
7679
- let o = t < 0 ? Ir(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, r) : Ir(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, r);
7655
+ let o = t < 0 ? Nr(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, r) : Nr(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, r);
7680
7656
  if (o)
7681
7657
  return o;
7682
7658
  }
@@ -7697,14 +7673,14 @@ class te {
7697
7673
  exists.
7698
7674
  */
7699
7675
  static atStart(e) {
7700
- return Ir(e, e, 0, 0, 1) || new pt(e);
7676
+ return Nr(e, e, 0, 0, 1) || new pt(e);
7701
7677
  }
7702
7678
  /**
7703
7679
  Find the cursor or leaf node selection closest to the end of the
7704
7680
  given document.
7705
7681
  */
7706
7682
  static atEnd(e) {
7707
- return Ir(e, e, e.content.size, e.childCount, -1) || new pt(e);
7683
+ return Nr(e, e, e.content.size, e.childCount, -1) || new pt(e);
7708
7684
  }
7709
7685
  /**
7710
7686
  Deserialize the JSON representation of a selection. Must be
@@ -7852,7 +7828,7 @@ class J extends te {
7852
7828
  return r ? te.near(s) : new J(s);
7853
7829
  }
7854
7830
  content() {
7855
- return new z(N.from(this.node), 0, 0);
7831
+ return new z(I.from(this.node), 0, 0);
7856
7832
  }
7857
7833
  eq(e) {
7858
7834
  return e instanceof J && e.anchor == this.anchor;
@@ -7943,7 +7919,7 @@ const cm = {
7943
7919
  return new pt(n);
7944
7920
  }
7945
7921
  };
7946
- function Ir(n, e, t, r, i, s = !1) {
7922
+ function Nr(n, e, t, r, i, s = !1) {
7947
7923
  if (e.inlineContent)
7948
7924
  return Z.create(n, t);
7949
7925
  for (let o = r - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
@@ -7952,7 +7928,7 @@ function Ir(n, e, t, r, i, s = !1) {
7952
7928
  if (!s && J.isSelectable(l))
7953
7929
  return J.create(n, t - (i < 0 ? l.nodeSize : 0));
7954
7930
  } else {
7955
- let a = Ir(n, l, t + i, i < 0 ? l.childCount : 0, i, s);
7931
+ let a = Nr(n, l, t + i, i < 0 ? l.childCount : 0, i, s);
7956
7932
  if (a)
7957
7933
  return a;
7958
7934
  }
@@ -8815,7 +8791,7 @@ function Lm(n, e, t) {
8815
8791
  });
8816
8792
  }
8817
8793
  const Dm = /[\u0590-\u08ac]/;
8818
- function Nm(n, e, t) {
8794
+ function Im(n, e, t) {
8819
8795
  let { $head: r } = e.selection;
8820
8796
  if (!r.parent.isTextblock)
8821
8797
  return !1;
@@ -8832,8 +8808,8 @@ function Nm(n, e, t) {
8832
8808
  }) : r.pos == r.start() || r.pos == r.end();
8833
8809
  }
8834
8810
  let Gp = null, Jp = null, Yp = !1;
8835
- function Im(n, e, t) {
8836
- return Gp == e && Jp == t ? Yp : (Gp = e, Jp = t, Yp = t == "up" || t == "down" ? Lm(n, e, t) : Nm(n, e, t));
8811
+ function Nm(n, e, t) {
8812
+ return Gp == e && Jp == t ? Yp : (Gp = e, Jp = t, Yp = t == "up" || t == "down" ? Lm(n, e, t) : Im(n, e, t));
8837
8813
  }
8838
8814
  const wt = 0, Qp = 1, cr = 2, Kt = 3;
8839
8815
  class ts {
@@ -9322,7 +9298,7 @@ class Fn extends ts {
9322
9298
  break;
9323
9299
  }
9324
9300
  }
9325
- e.contentElement || (e.getContent = () => N.empty);
9301
+ e.contentElement || (e.getContent = () => I.empty);
9326
9302
  }
9327
9303
  return e;
9328
9304
  }
@@ -10269,7 +10245,7 @@ function Lu(n, e, t, r, i) {
10269
10245
  if (n.someProp("transformPastedText", (f) => {
10270
10246
  e = f(e, s || r, n);
10271
10247
  }), s)
10272
- return e ? new z(N.from(n.state.schema.text(e.replace(/\r\n?/g, `
10248
+ return e ? new z(I.from(n.state.schema.text(e.replace(/\r\n?/g, `
10273
10249
  `))), 0, 0) : z.empty;
10274
10250
  let d = n.someProp("clipboardTextParser", (f) => f(e, i, r, n));
10275
10251
  if (d)
@@ -10327,41 +10303,41 @@ function rx(n, e) {
10327
10303
  let a = i.findWrapping(l.type), p;
10328
10304
  if (!a)
10329
10305
  return o = null;
10330
- if (p = o.length && s.length && Nu(a, s, l, o[o.length - 1], 0))
10306
+ if (p = o.length && s.length && Iu(a, s, l, o[o.length - 1], 0))
10331
10307
  o[o.length - 1] = p;
10332
10308
  else {
10333
- o.length && (o[o.length - 1] = Iu(o[o.length - 1], s.length));
10309
+ o.length && (o[o.length - 1] = Nu(o[o.length - 1], s.length));
10334
10310
  let c = Du(l, a);
10335
10311
  o.push(c), i = i.matchType(c.type), s = a;
10336
10312
  }
10337
10313
  }), o)
10338
- return N.from(o);
10314
+ return I.from(o);
10339
10315
  }
10340
10316
  return n;
10341
10317
  }
10342
10318
  function Du(n, e, t = 0) {
10343
10319
  for (let r = e.length - 1; r >= t; r--)
10344
- n = e[r].create(null, N.from(n));
10320
+ n = e[r].create(null, I.from(n));
10345
10321
  return n;
10346
10322
  }
10347
- function Nu(n, e, t, r, i) {
10323
+ function Iu(n, e, t, r, i) {
10348
10324
  if (i < n.length && i < e.length && n[i] == e[i]) {
10349
- let s = Nu(n, e, t, r.lastChild, i + 1);
10325
+ let s = Iu(n, e, t, r.lastChild, i + 1);
10350
10326
  if (s)
10351
10327
  return r.copy(r.content.replaceChild(r.childCount - 1, s));
10352
10328
  if (r.contentMatchAt(r.childCount).matchType(i == n.length - 1 ? t.type : n[i + 1]))
10353
- return r.copy(r.content.append(N.from(Du(t, n, i + 1))));
10329
+ return r.copy(r.content.append(I.from(Du(t, n, i + 1))));
10354
10330
  }
10355
10331
  }
10356
- function Iu(n, e) {
10332
+ function Nu(n, e) {
10357
10333
  if (e == 0)
10358
10334
  return n;
10359
- let t = n.content.replaceChild(n.childCount - 1, Iu(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(N.empty, !0);
10335
+ let t = n.content.replaceChild(n.childCount - 1, Nu(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(I.empty, !0);
10360
10336
  return n.copy(t.append(r));
10361
10337
  }
10362
10338
  function ea(n, e, t, r, i, s) {
10363
10339
  let o = e < 0 ? n.firstChild : n.lastChild, l = o.content;
10364
- return n.childCount > 1 && (s = 0), i < r - 1 && (l = ea(l, e, t, r, i + 1, s)), i >= t && (l = e < 0 ? o.contentMatchAt(0).fillBefore(l, s <= i).append(l) : l.append(o.contentMatchAt(o.childCount).fillBefore(N.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
10340
+ return n.childCount > 1 && (s = 0), i < r - 1 && (l = ea(l, e, t, r, i + 1, s)), i >= t && (l = e < 0 ? o.contentMatchAt(0).fillBefore(l, s <= i).append(l) : l.append(o.contentMatchAt(o.childCount).fillBefore(I.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, o.copy(l));
10365
10341
  }
10366
10342
  function cc(n, e, t) {
10367
10343
  return e < n.openStart && (n = new z(ea(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new z(ea(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
@@ -10416,7 +10392,7 @@ function lx(n, e) {
10416
10392
  let a = t.nodes[r[l]];
10417
10393
  if (!a || a.hasRequiredAttrs())
10418
10394
  break;
10419
- i = N.from(a.create(r[l + 1], i)), s++, o++;
10395
+ i = I.from(a.create(r[l + 1], i)), s++, o++;
10420
10396
  }
10421
10397
  return new z(i, s, o);
10422
10398
  }
@@ -10435,7 +10411,7 @@ function cx(n) {
10435
10411
  }
10436
10412
  Je && n.dom.addEventListener("input", () => null), ta(n);
10437
10413
  }
10438
- function Nn(n, e) {
10414
+ function In(n, e) {
10439
10415
  n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
10440
10416
  }
10441
10417
  function dx(n) {
@@ -10477,7 +10453,7 @@ Qe.keydown = (n, e) => {
10477
10453
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
10478
10454
  n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, lr(13, "Enter"))), n.input.lastIOSEnter = 0);
10479
10455
  }, 200);
10480
- } else n.someProp("handleKeyDown", (r) => r(n, t)) || tx(n, t) ? t.preventDefault() : Nn(n, "key");
10456
+ } else n.someProp("handleKeyDown", (r) => r(n, t)) || tx(n, t) ? t.preventDefault() : In(n, "key");
10481
10457
  };
10482
10458
  Qe.keyup = (n, e) => {
10483
10459
  e.keyCode == 16 && (n.input.shiftKey = !1);
@@ -10566,17 +10542,17 @@ function vx(n, e, t) {
10566
10542
  return !0;
10567
10543
  }
10568
10544
  }
10569
- function Na(n) {
10545
+ function Ia(n) {
10570
10546
  return Ys(n);
10571
10547
  }
10572
10548
  const Hu = gt ? "metaKey" : "ctrlKey";
10573
10549
  Ye.mousedown = (n, e) => {
10574
10550
  let t = e;
10575
10551
  n.input.shiftKey = t.shiftKey;
10576
- let r = Na(n), i = Date.now(), s = "singleClick";
10552
+ let r = Ia(n), i = Date.now(), s = "singleClick";
10577
10553
  i - n.input.lastClick.time < 500 && hx(t, n.input.lastClick) && !t[Hu] && n.input.lastClick.button == t.button && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s, button: t.button };
10578
10554
  let o = n.posAtCoords(Fo(t));
10579
- o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new wx(n, o, t, !!r)) : (s == "doubleClick" ? gx : yx)(n, o.pos, o.inside, t) ? t.preventDefault() : Nn(n, "pointer"));
10555
+ o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new wx(n, o, t, !!r)) : (s == "doubleClick" ? gx : yx)(n, o.pos, o.inside, t) ? t.preventDefault() : In(n, "pointer"));
10580
10556
  };
10581
10557
  class wx {
10582
10558
  constructor(e, t, r, i) {
@@ -10598,7 +10574,7 @@ class wx {
10598
10574
  setUneditable: !!(this.target && Lt && !this.target.hasAttribute("contentEditable"))
10599
10575
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
10600
10576
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
10601
- }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Nn(e, "pointer");
10577
+ }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), In(e, "pointer");
10602
10578
  }
10603
10579
  done() {
10604
10580
  this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => cn(this.view)), this.view.input.mouseDown = null;
@@ -10607,7 +10583,7 @@ class wx {
10607
10583
  if (this.done(), !this.view.dom.contains(e.target))
10608
10584
  return;
10609
10585
  let t = this.pos;
10610
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Fo(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Nn(this.view, "pointer") : xx(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
10586
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Fo(e))), this.updateAllowDefault(e), this.allowDefault || !t ? In(this.view, "pointer") : xx(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
10611
10587
  Je && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
10612
10588
  // cursor, but still report that the node is selected
10613
10589
  // when asked through getSelection. You'll then get a
@@ -10615,22 +10591,22 @@ class wx {
10615
10591
  // (hidden) cursor is doesn't change the selection, and
10616
10592
  // thus doesn't get a reaction from ProseMirror. This
10617
10593
  // works around that.
10618
- We && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Kr(this.view, te.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Nn(this.view, "pointer");
10594
+ We && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Kr(this.view, te.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : In(this.view, "pointer");
10619
10595
  }
10620
10596
  move(e) {
10621
- this.updateAllowDefault(e), Nn(this.view, "pointer"), e.buttons == 0 && this.done();
10597
+ this.updateAllowDefault(e), In(this.view, "pointer"), e.buttons == 0 && this.done();
10622
10598
  }
10623
10599
  updateAllowDefault(e) {
10624
10600
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
10625
10601
  }
10626
10602
  }
10627
10603
  Ye.touchstart = (n) => {
10628
- n.input.lastTouch = Date.now(), Na(n), Nn(n, "pointer");
10604
+ n.input.lastTouch = Date.now(), Ia(n), In(n, "pointer");
10629
10605
  };
10630
10606
  Ye.touchmove = (n) => {
10631
- n.input.lastTouch = Date.now(), Nn(n, "pointer");
10607
+ n.input.lastTouch = Date.now(), In(n, "pointer");
10632
10608
  };
10633
- Ye.contextmenu = (n) => Na(n);
10609
+ Ye.contextmenu = (n) => Ia(n);
10634
10610
  function Fu(n, e) {
10635
10611
  return n.composing ? !0 : Je && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
10636
10612
  }
@@ -10898,7 +10874,7 @@ class jn {
10898
10874
  destroy() {
10899
10875
  }
10900
10876
  }
10901
- class Ia {
10877
+ class Na {
10902
10878
  constructor(e, t) {
10903
10879
  this.attrs = e, this.spec = t || br;
10904
10880
  }
@@ -10914,7 +10890,7 @@ class Ia {
10914
10890
  return i == t.from && !(s = e.child(r)).isText && i + s.nodeSize == t.to;
10915
10891
  }
10916
10892
  eq(e) {
10917
- return this == e || e instanceof Ia && ji(this.attrs, e.attrs) && ji(this.spec, e.spec);
10893
+ return this == e || e instanceof Na && ji(this.attrs, e.attrs) && ji(this.spec, e.spec);
10918
10894
  }
10919
10895
  destroy() {
10920
10896
  }
@@ -10968,7 +10944,7 @@ class vt {
10968
10944
  node, will receive the given attributes.
10969
10945
  */
10970
10946
  static node(e, t, r, i) {
10971
- return new vt(e, t, new Ia(r, i));
10947
+ return new vt(e, t, new Na(r, i));
10972
10948
  }
10973
10949
  /**
10974
10950
  The spec provided when creating this decoration. Can be useful
@@ -11486,7 +11462,7 @@ class Dx {
11486
11462
  }
11487
11463
  }
11488
11464
  let p = null;
11489
- s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ro(r) && (p = Pa(e)) && p.eq(te.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, cn(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Nx(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || cn(e), this.currentSelection.set(r));
11465
+ s < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ro(r) && (p = Pa(e)) && p.eq(te.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, cn(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Ix(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || cn(e), this.currentSelection.set(r));
11490
11466
  }
11491
11467
  registerMutation(e, t) {
11492
11468
  if (t.indexOf(e.target) > -1)
@@ -11522,7 +11498,7 @@ class Dx {
11522
11498
  }
11523
11499
  }
11524
11500
  let fc = /* @__PURE__ */ new WeakMap(), hc = !1;
11525
- function Nx(n) {
11501
+ function Ix(n) {
11526
11502
  if (!fc.has(n) && (fc.set(n, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace) !== -1)) {
11527
11503
  if (n.requiresGeckoHackNode = Lt, hc)
11528
11504
  return;
@@ -11533,7 +11509,7 @@ function bc(n, e) {
11533
11509
  let t = e.startContainer, r = e.startOffset, i = e.endContainer, s = e.endOffset, o = n.domAtPos(n.state.selection.anchor);
11534
11510
  return kr(o.node, o.offset, i, s) && ([t, r, i, s] = [i, s, t, r]), { anchorNode: t, anchorOffset: r, focusNode: i, focusOffset: s };
11535
11511
  }
11536
- function Ix(n, e) {
11512
+ function Nx(n, e) {
11537
11513
  if (e.getComposedRanges) {
11538
11514
  let i = e.getComposedRanges(n.root)[0];
11539
11515
  if (i)
@@ -11690,7 +11666,7 @@ function zx(n, e) {
11690
11666
  let p = [];
11691
11667
  for (let c = 0; c < e.childCount; c++)
11692
11668
  p.push(a(e.child(c)));
11693
- if (N.from(p).eq(n))
11669
+ if (I.from(p).eq(n))
11694
11670
  return { mark: l, type: o };
11695
11671
  }
11696
11672
  function Vx(n, e, t, r, i) {
@@ -12015,7 +11991,7 @@ class Ju {
12015
11991
  pass a different state.
12016
11992
  */
12017
11993
  endOfTextblock(e, t) {
12018
- return Im(this, t || this.state, e);
11994
+ return Nm(this, t || this.state, e);
12019
11995
  }
12020
11996
  /**
12021
11997
  Run the editor's paste logic with the given HTML string. The
@@ -12068,7 +12044,7 @@ class Ju {
12068
12044
  */
12069
12045
  domSelectionRange() {
12070
12046
  let e = this.domSelection();
12071
- return e ? Je && this.root.nodeType === 11 && gm(this.dom.ownerDocument) == this.dom && Ix(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
12047
+ return e ? Je && this.root.nodeType === 11 && gm(this.dom.ownerDocument) == this.dom && Nx(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
12072
12048
  }
12073
12049
  /**
12074
12050
  @internal
@@ -12289,7 +12265,7 @@ const Xu = (n, e, t) => {
12289
12265
  return !0;
12290
12266
  if (r.parent.content.size == 0 && (Qr(s, "end") || J.isSelectable(s)))
12291
12267
  for (let o = r.depth; ; o--) {
12292
- let l = Io(n.doc, r.before(o), r.after(o), z.empty);
12268
+ let l = No(n.doc, r.before(o), r.after(o), z.empty);
12293
12269
  if (l && l.slice.size < l.to - l.from) {
12294
12270
  if (e) {
12295
12271
  let a = n.tr.step(l);
@@ -12333,7 +12309,7 @@ function Zu(n, e, t) {
12333
12309
  return !1;
12334
12310
  l = c;
12335
12311
  }
12336
- let p = Io(n.doc, s, a, z.empty);
12312
+ let p = No(n.doc, s, a, z.empty);
12337
12313
  if (!p || p.from != s || p instanceof _e && p.slice.size >= a - s)
12338
12314
  return !1;
12339
12315
  if (t) {
@@ -12388,7 +12364,7 @@ const nf = (n, e, t) => {
12388
12364
  if (af(n, i, e, 1))
12389
12365
  return !0;
12390
12366
  if (r.parent.content.size == 0 && (Qr(s, "start") || J.isSelectable(s))) {
12391
- let o = Io(n.doc, r.before(), r.after(), z.empty);
12367
+ let o = No(n.doc, r.before(), r.after(), z.empty);
12392
12368
  if (o && o.slice.size < o.to - o.from) {
12393
12369
  if (e) {
12394
12370
  let l = n.tr.step(o);
@@ -12427,7 +12403,7 @@ const rg = (n, e) => {
12427
12403
  if (t.node.isTextblock || !Un(n.doc, t.from))
12428
12404
  return !1;
12429
12405
  i = t.from;
12430
- } else if (i = No(n.doc, t.from, -1), i == null)
12406
+ } else if (i = Io(n.doc, t.from, -1), i == null)
12431
12407
  return !1;
12432
12408
  if (e) {
12433
12409
  let s = n.tr.join(i);
@@ -12440,7 +12416,7 @@ const rg = (n, e) => {
12440
12416
  if (t.node.isTextblock || !Un(n.doc, t.to))
12441
12417
  return !1;
12442
12418
  r = t.to;
12443
- } else if (r = No(n.doc, t.to, 1), r == null)
12419
+ } else if (r = Io(n.doc, t.to, 1), r == null)
12444
12420
  return !1;
12445
12421
  return e && e(n.tr.join(r).scrollIntoView()), !0;
12446
12422
  }, sg = (n, e) => {
@@ -12539,10 +12515,10 @@ function af(n, e, t, r) {
12539
12515
  let p = !a && e.parent.canReplace(e.index(), e.index() + 1);
12540
12516
  if (p && (o = (l = i.contentMatchAt(i.childCount)).findWrapping(s.type)) && l.matchType(o[0] || s.type).validEnd) {
12541
12517
  if (t) {
12542
- let h = e.pos + s.nodeSize, b = N.empty;
12518
+ let h = e.pos + s.nodeSize, b = I.empty;
12543
12519
  for (let v = o.length - 1; v >= 0; v--)
12544
- b = N.from(o[v].create(null, b));
12545
- b = N.from(i.copy(b));
12520
+ b = I.from(o[v].create(null, b));
12521
+ b = I.from(i.copy(b));
12546
12522
  let x = n.tr.step(new Le(e.pos - 1, h, e.pos, h, new z(b, 1, 0), o.length, !0)), m = x.doc.resolve(h + 2 * o.length);
12547
12523
  m.nodeAfter && m.nodeAfter.type == i.type && Un(x.doc, m.pos) && x.join(m.pos), t(x.scrollIntoView());
12548
12524
  }
@@ -12560,9 +12536,9 @@ function af(n, e, t, r) {
12560
12536
  m++;
12561
12537
  if (h.canReplace(h.childCount, h.childCount, x.content)) {
12562
12538
  if (t) {
12563
- let v = N.empty;
12539
+ let v = I.empty;
12564
12540
  for (let k = b.length - 1; k >= 0; k--)
12565
- v = N.from(b[k].copy(v));
12541
+ v = I.from(b[k].copy(v));
12566
12542
  let S = n.tr.step(new Le(e.pos - b.length, e.pos + s.nodeSize, e.pos + m, e.pos + s.nodeSize - m, new z(v, b.length, 0), 0, !0));
12567
12543
  t(S.scrollIntoView());
12568
12544
  }
@@ -12652,9 +12628,9 @@ function bg(n, e, t, r = null) {
12652
12628
  return l ? (n && mg(n, e, l, i, t), !0) : !1;
12653
12629
  }
12654
12630
  function mg(n, e, t, r, i) {
12655
- let s = N.empty;
12631
+ let s = I.empty;
12656
12632
  for (let c = t.length - 1; c >= 0; c--)
12657
- s = N.from(t[c].type.create(t[c].attrs, s));
12633
+ s = I.from(t[c].type.create(t[c].attrs, s));
12658
12634
  n.step(new Le(e.start - (r ? 2 : 0), e.end, e.start, e.end, new z(s, 0, 0), t.length, !0));
12659
12635
  let o = 0;
12660
12636
  for (let c = 0; c < t.length; c++)
@@ -12672,7 +12648,7 @@ function xg(n) {
12672
12648
  }
12673
12649
  function gg(n, e, t, r) {
12674
12650
  let i = n.tr, s = r.end, o = r.$to.end(r.depth);
12675
- s < o && (i.step(new Le(s - 1, o, s, o, new z(N.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ws(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
12651
+ s < o && (i.step(new Le(s - 1, o, s, o, new z(I.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ws(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
12676
12652
  const l = oi(r);
12677
12653
  if (l == null)
12678
12654
  return !1;
@@ -12688,10 +12664,10 @@ function yg(n, e, t) {
12688
12664
  if (r.mapping.map(t.end) != t.start + s.nodeAfter.nodeSize)
12689
12665
  return !1;
12690
12666
  let l = t.startIndex == 0, a = t.endIndex == i.childCount, p = s.node(-1), c = s.index(-1);
12691
- if (!p.canReplace(c + (l ? 0 : 1), c + 1, o.content.append(a ? N.empty : N.from(i))))
12667
+ if (!p.canReplace(c + (l ? 0 : 1), c + 1, o.content.append(a ? I.empty : I.from(i))))
12692
12668
  return !1;
12693
12669
  let d = s.pos, f = d + o.nodeSize;
12694
- return r.step(new Le(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new z((l ? N.empty : N.from(i.copy(N.empty))).append(a ? N.empty : N.from(i.copy(N.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
12670
+ return r.step(new Le(d - (l ? 1 : 0), f + (a ? 1 : 0), d + 1, f - 1, new z((l ? I.empty : I.from(i.copy(I.empty))).append(a ? I.empty : I.from(i.copy(I.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
12695
12671
  }
12696
12672
  function vg(n) {
12697
12673
  return function(e, t) {
@@ -12705,7 +12681,7 @@ function vg(n) {
12705
12681
  if (a.type != n)
12706
12682
  return !1;
12707
12683
  if (t) {
12708
- let p = a.lastChild && a.lastChild.type == l.type, c = N.from(p ? n.create() : null), d = new z(N.from(n.create(null, N.from(l.type.create(null, c)))), p ? 3 : 1, 0), f = s.start, h = s.end;
12684
+ let p = a.lastChild && a.lastChild.type == l.type, c = I.from(p ? n.create() : null), d = new z(I.from(n.create(null, I.from(l.type.create(null, c)))), p ? 3 : 1, 0), f = s.start, h = s.end;
12709
12685
  t(e.tr.step(new Le(f - (p ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
12710
12686
  }
12711
12687
  return !0;
@@ -12889,7 +12865,7 @@ function cf(n) {
12889
12865
  });
12890
12866
  }), e;
12891
12867
  }
12892
- function Ne(n, e) {
12868
+ function Ie(n, e) {
12893
12869
  if (typeof n == "string") {
12894
12870
  if (!e.nodes[n])
12895
12871
  throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);
@@ -13139,7 +13115,7 @@ function Tg(n) {
13139
13115
  const a = i.getMeta("applyInputRules");
13140
13116
  return !!a && setTimeout(() => {
13141
13117
  let { text: c } = a;
13142
- typeof c == "string" ? c = c : c = Va(N.from(c), o.schema);
13118
+ typeof c == "string" ? c = c : c = Va(I.from(c), o.schema);
13143
13119
  const { from: d } = a, f = d + c.length;
13144
13120
  gs({
13145
13121
  editor: e,
@@ -13380,7 +13356,7 @@ function Dg(n) {
13380
13356
  return;
13381
13357
  if (S) {
13382
13358
  let { text: O } = v;
13383
- typeof O == "string" ? O = O : O = Va(N.from(O), h.schema);
13359
+ typeof O == "string" ? O = O : O = Va(I.from(O), h.schema);
13384
13360
  const { from: T } = v, B = T + O.length, H = Lg(O);
13385
13361
  return a({
13386
13362
  rule: c,
@@ -13402,7 +13378,7 @@ function Dg(n) {
13402
13378
  }
13403
13379
  }));
13404
13380
  }
13405
- function Ng(n) {
13381
+ function Ig(n) {
13406
13382
  const e = n.filter((t, r) => n.indexOf(t) !== r);
13407
13383
  return Array.from(new Set(e));
13408
13384
  }
@@ -13417,7 +13393,7 @@ class zr {
13417
13393
  * @returns An flattened and sorted array of Tiptap extensions
13418
13394
  */
13419
13395
  static resolve(e) {
13420
- const t = zr.sort(zr.flatten(e)), r = Ng(t.map((i) => i.name));
13396
+ const t = zr.sort(zr.flatten(e)), r = Ig(t.map((i) => i.name));
13421
13397
  return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
13422
13398
  }
13423
13399
  /**
@@ -13527,7 +13503,7 @@ class zr {
13527
13503
  options: r.options,
13528
13504
  storage: r.storage,
13529
13505
  editor: e,
13530
- type: Ne(r.name, this.schema)
13506
+ type: Ie(r.name, this.schema)
13531
13507
  }, o = U(r, "addNodeView", s);
13532
13508
  if (!o)
13533
13509
  return [];
@@ -13628,7 +13604,7 @@ function uf(n, e, t) {
13628
13604
  function Ua(n) {
13629
13605
  return Object.fromEntries(Object.entries(n.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
13630
13606
  }
13631
- const Ig = je.create({
13607
+ const Ng = je.create({
13632
13608
  name: "clipboardTextSerializer",
13633
13609
  addOptions() {
13634
13610
  return {
@@ -13691,7 +13667,7 @@ const Ig = je.create({
13691
13667
  }
13692
13668
  return !1;
13693
13669
  }, qg = (n) => ({ tr: e, state: t, dispatch: r }) => {
13694
- const i = Ne(n, t.schema), s = e.selection.$anchor;
13670
+ const i = Ie(n, t.schema), s = e.selection.$anchor;
13695
13671
  for (let o = s.depth; o > 0; o -= 1)
13696
13672
  if (s.node(o).type === i) {
13697
13673
  if (r) {
@@ -13820,7 +13796,7 @@ function ws(n) {
13820
13796
  return bf(t);
13821
13797
  }
13822
13798
  function zi(n, e, t) {
13823
- if (n instanceof Rn || n instanceof N)
13799
+ if (n instanceof Rn || n instanceof I)
13824
13800
  return n;
13825
13801
  t = {
13826
13802
  slice: !0,
@@ -13831,7 +13807,7 @@ function zi(n, e, t) {
13831
13807
  if (r)
13832
13808
  try {
13833
13809
  if (Array.isArray(n) && n.length > 0)
13834
- return N.fromArray(n.map((l) => e.nodeFromJSON(l)));
13810
+ return I.fromArray(n.map((l) => e.nodeFromJSON(l)));
13835
13811
  const o = e.nodeFromJSON(n);
13836
13812
  return t.errorOnInvalidContent && o.check(), o;
13837
13813
  } catch (s) {
@@ -13932,7 +13908,7 @@ const ny = (n) => !("type" in n), ry = (n, e, t) => ({ tr: r, dispatch: i, edito
13932
13908
  if (f) {
13933
13909
  if (Array.isArray(e))
13934
13910
  x = e.map((m) => m.text || "").join("");
13935
- else if (e instanceof N) {
13911
+ else if (e instanceof I) {
13936
13912
  let m = "";
13937
13913
  e.forEach((v) => {
13938
13914
  v.text && (m += v.text);
@@ -13946,14 +13922,14 @@ const ny = (n) => !("type" in n), ry = (n, e, t) => ({ tr: r, dispatch: i, edito
13946
13922
  return !0;
13947
13923
  }, iy = () => ({ state: n, dispatch: e }) => rg(n, e), sy = () => ({ state: n, dispatch: e }) => ig(n, e), oy = () => ({ state: n, dispatch: e }) => Xu(n, e), ly = () => ({ state: n, dispatch: e }) => nf(n, e), ay = () => ({ state: n, dispatch: e, tr: t }) => {
13948
13924
  try {
13949
- const r = No(n.doc, n.selection.$from.pos, -1);
13925
+ const r = Io(n.doc, n.selection.$from.pos, -1);
13950
13926
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
13951
13927
  } catch {
13952
13928
  return !1;
13953
13929
  }
13954
13930
  }, py = () => ({ state: n, dispatch: e, tr: t }) => {
13955
13931
  try {
13956
- const r = No(n.doc, n.selection.$from.pos, 1);
13932
+ const r = Io(n.doc, n.selection.$from.pos, 1);
13957
13933
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
13958
13934
  } catch {
13959
13935
  return !1;
@@ -14002,7 +13978,7 @@ const fy = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
14002
13978
  }), !0;
14003
13979
  };
14004
13980
  function Vi(n, e, t = {}) {
14005
- const { from: r, to: i, empty: s } = n.selection, o = e ? Ne(e, n.schema) : null, l = [];
13981
+ const { from: r, to: i, empty: s } = n.selection, o = e ? Ie(e, n.schema) : null, l = [];
14006
13982
  n.doc.nodesBetween(r, i, (d, f) => {
14007
13983
  if (d.isText)
14008
13984
  return;
@@ -14017,10 +13993,10 @@ function Vi(n, e, t = {}) {
14017
13993
  return s ? !!p.length : p.reduce((d, f) => d + f.to - f.from, 0) >= a;
14018
13994
  }
14019
13995
  const hy = (n, e = {}) => ({ state: t, dispatch: r }) => {
14020
- const i = Ne(n, t.schema);
13996
+ const i = Ie(n, t.schema);
14021
13997
  return Vi(t, i, e) ? sg(t, r) : !1;
14022
13998
  }, by = () => ({ state: n, dispatch: e }) => lf(n, e), my = (n) => ({ state: e, dispatch: t }) => {
14023
- const r = Ne(n, e.schema);
13999
+ const r = Ie(n, e.schema);
14024
14000
  return xg(r)(e, t);
14025
14001
  }, xy = () => ({ state: n, dispatch: e }) => sf(n, e);
14026
14002
  function Wo(n, e) {
@@ -14033,7 +14009,7 @@ function Oc(n, e) {
14033
14009
  const gy = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
14034
14010
  let s = null, o = null;
14035
14011
  const l = Wo(typeof n == "string" ? n : n.name, r.schema);
14036
- return l ? (l === "node" && (s = Ne(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14012
+ return l ? (l === "node" && (s = Ie(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14037
14013
  r.doc.nodesBetween(a.$from.pos, a.$to.pos, (p, c) => {
14038
14014
  s && s === p.type && t.setNodeMarkup(c, void 0, Oc(p.attrs, e)), o && p.marks.length && p.marks.forEach((d) => {
14039
14015
  o === d.type && t.addMark(c, c + p.nodeSize, o.create(Oc(d.attrs, e)));
@@ -14124,7 +14100,7 @@ function gf(n, e) {
14124
14100
  return uf(n, t, e);
14125
14101
  }
14126
14102
  function Ay(n, e) {
14127
- const t = Ne(e, n.schema), { from: r, to: i } = n.selection, s = [];
14103
+ const t = Ie(e, n.schema), { from: r, to: i } = n.selection, s = [];
14128
14104
  n.doc.nodesBetween(r, i, (l) => {
14129
14105
  s.push(l);
14130
14106
  });
@@ -14220,7 +14196,7 @@ function ia(n, e, t = {}) {
14220
14196
  const a = l.filter((d) => s ? s.name === d.mark.type.name : !0).filter((d) => eo(d.mark.attrs, t, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), p = l.filter((d) => s ? d.mark.type !== s && d.mark.type.excludes(s) : !0).reduce((d, f) => d + f.to - f.from, 0);
14221
14197
  return (a > 0 ? a + p : a) >= o;
14222
14198
  }
14223
- function Ny(n, e, t = {}) {
14199
+ function Iy(n, e, t = {}) {
14224
14200
  if (!e)
14225
14201
  return Vi(n, null, t) || ia(n, null, t);
14226
14202
  const r = Wo(e, n.schema);
@@ -14278,7 +14254,7 @@ function wf(n, e, t) {
14278
14254
  toJSON: () => v
14279
14255
  };
14280
14256
  }
14281
- function Iy(n, e, t) {
14257
+ function Ny(n, e, t) {
14282
14258
  var r;
14283
14259
  const { selection: i } = e;
14284
14260
  let s = null;
@@ -14322,9 +14298,9 @@ const $y = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
14322
14298
  }) : t.addMark(b, x, a.create(e));
14323
14299
  });
14324
14300
  });
14325
- return Iy(r, t, a);
14301
+ return Ny(r, t, a);
14326
14302
  }, Ry = (n, e) => ({ tr: t }) => (t.setMeta(n, e), !0), Hy = (n, e = {}) => ({ state: t, dispatch: r, chain: i }) => {
14327
- const s = Ne(n, t.schema);
14303
+ const s = Ie(n, t.schema);
14328
14304
  let o;
14329
14305
  return t.selection.$anchor.sameParent(t.selection.$head) && (o = t.selection.$anchor.parent.attrs), s.isTextblock ? i().command(({ commands: l }) => kc(s, { ...o, ...e })(t) ? !0 : l.clearNodes()).command(({ state: l }) => kc(s, { ...o, ...e })(l, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
14330
14306
  }, Fy = (n) => ({ tr: e, dispatch: t }) => {
@@ -14340,7 +14316,7 @@ const $y = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
14340
14316
  }
14341
14317
  return !0;
14342
14318
  }, zy = (n) => ({ state: e, dispatch: t }) => {
14343
- const r = Ne(n, e.schema);
14319
+ const r = Ie(n, e.schema);
14344
14320
  return vg(r)(e, t);
14345
14321
  };
14346
14322
  function Pc(n, e) {
@@ -14378,7 +14354,7 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14378
14354
  return b;
14379
14355
  }, qy = (n, e = {}) => ({ tr: t, state: r, dispatch: i, editor: s }) => {
14380
14356
  var o;
14381
- const l = Ne(n, r.schema), { $from: a, $to: p } = r.selection, c = r.selection.node;
14357
+ const l = Ie(n, r.schema), { $from: a, $to: p } = r.selection, c = r.selection.node;
14382
14358
  if (c && c.isBlock || a.depth < 2 || !a.sameParent(p))
14383
14359
  return !1;
14384
14360
  const d = a.node(-1);
@@ -14389,15 +14365,15 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14389
14365
  if (a.depth === 2 || a.node(-3).type !== l || a.index(-2) !== a.node(-2).childCount - 1)
14390
14366
  return !1;
14391
14367
  if (i) {
14392
- let v = N.empty;
14368
+ let v = I.empty;
14393
14369
  const S = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
14394
14370
  for (let H = a.depth - S; H >= a.depth - 3; H -= 1)
14395
- v = N.from(a.node(H).copy(v));
14371
+ v = I.from(a.node(H).copy(v));
14396
14372
  const k = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, g = {
14397
14373
  ..._s(f, a.node().type.name, a.node().attrs),
14398
14374
  ...e
14399
14375
  }, O = ((o = l.contentMatch.defaultType) === null || o === void 0 ? void 0 : o.createAndFill(g)) || void 0;
14400
- v = v.append(N.from(l.createAndFill(null, O) || void 0));
14376
+ v = v.append(I.from(l.createAndFill(null, O) || void 0));
14401
14377
  const T = a.before(a.depth - (S - 1));
14402
14378
  t.replace(T, a.after(-k), new z(v, 4 - S, 0));
14403
14379
  let B = -1;
@@ -14450,7 +14426,7 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14450
14426
  const i = n.doc.nodeAt(r);
14451
14427
  return t.node.type === (i == null ? void 0 : i.type) && Un(n.doc, r) && n.join(r), !0;
14452
14428
  }, Uy = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain: a, commands: p, can: c }) => {
14453
- const { extensions: d, splittableMarks: f } = i.extensionManager, h = Ne(n, o.schema), b = Ne(e, o.schema), { selection: x, storedMarks: m } = o, { $from: v, $to: S } = x, k = v.blockRange(S), g = m || x.$to.parentOffset && x.$from.marks();
14429
+ const { extensions: d, splittableMarks: f } = i.extensionManager, h = Ie(n, o.schema), b = Ie(e, o.schema), { selection: x, storedMarks: m } = o, { $from: v, $to: S } = x, k = v.blockRange(S), g = m || x.$to.parentOffset && x.$from.marks();
14454
14430
  if (!k)
14455
14431
  return !1;
14456
14432
  const O = Ja((T) => Bc(T.type.name, d))(x);
@@ -14468,11 +14444,11 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14468
14444
  const { extendEmptyMarkRange: s = !1 } = t, o = Kn(n, r.schema);
14469
14445
  return ia(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
14470
14446
  }, Ky = (n, e, t = {}) => ({ state: r, commands: i }) => {
14471
- const s = Ne(n, r.schema), o = Ne(e, r.schema), l = Vi(r, s, t);
14447
+ const s = Ie(n, r.schema), o = Ie(e, r.schema), l = Vi(r, s, t);
14472
14448
  let a;
14473
14449
  return r.selection.$anchor.sameParent(r.selection.$head) && (a = r.selection.$anchor.parent.attrs), l ? i.setNode(o, a) : i.setNode(s, { ...a, ...t });
14474
14450
  }, Gy = (n, e = {}) => ({ state: t, commands: r }) => {
14475
- const i = Ne(n, t.schema);
14451
+ const i = Ie(n, t.schema);
14476
14452
  return Vi(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
14477
14453
  }, Jy = () => ({ state: n, dispatch: e }) => {
14478
14454
  const t = n.plugins;
@@ -14516,7 +14492,7 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14516
14492
  }, Xy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
14517
14493
  let s = null, o = null;
14518
14494
  const l = Wo(typeof n == "string" ? n : n.name, r.schema);
14519
- return l ? (l === "node" && (s = Ne(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14495
+ return l ? (l === "node" && (s = Ie(n, r.schema)), l === "mark" && (o = Kn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
14520
14496
  const p = a.$from.pos, c = a.$to.pos;
14521
14497
  let d, f, h, b;
14522
14498
  t.selection.empty ? r.doc.nodesBetween(p, c, (x, m) => {
@@ -14545,10 +14521,10 @@ const Vy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
14545
14521
  }));
14546
14522
  }), !0) : !1;
14547
14523
  }, Zy = (n, e = {}) => ({ state: t, dispatch: r }) => {
14548
- const i = Ne(n, t.schema);
14524
+ const i = Ie(n, t.schema);
14549
14525
  return fg(i, e)(t, r);
14550
14526
  }, e0 = (n, e = {}) => ({ state: t, dispatch: r }) => {
14551
- const i = Ne(n, t.schema);
14527
+ const i = Ie(n, t.schema);
14552
14528
  return hg(i, e)(t, r);
14553
14529
  };
14554
14530
  var t0 = /* @__PURE__ */ Object.freeze({
@@ -15124,7 +15100,7 @@ let u0 = class extends wg {
15124
15100
  var e, t;
15125
15101
  const i = [...this.options.enableCoreExtensions ? [
15126
15102
  i0,
15127
- Ig.configure({
15103
+ Ng.configure({
15128
15104
  blockSeparator: (t = (e = this.options.coreExtensionOptions) === null || e === void 0 ? void 0 : e.clipboardTextSerializer) === null || t === void 0 ? void 0 : t.blockSeparator
15129
15105
  }),
15130
15106
  n0,
@@ -15262,7 +15238,7 @@ let u0 = class extends wg {
15262
15238
  }
15263
15239
  isActive(e, t) {
15264
15240
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? t : e;
15265
- return Ny(this.state, r, i);
15241
+ return Iy(this.state, r, i);
15266
15242
  }
15267
15243
  /**
15268
15244
  * Get the document as JSON.
@@ -15412,7 +15388,7 @@ function qi(n) {
15412
15388
  }
15413
15389
  });
15414
15390
  }
15415
- let Nt = class oa {
15391
+ let It = class oa {
15416
15392
  constructor(e = {}) {
15417
15393
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
15418
15394
  name: this.name,
@@ -15696,7 +15672,7 @@ function D0(n) {
15696
15672
  var e = n.state, t = n.options, r = t.element, i = r === void 0 ? "[data-popper-arrow]" : r;
15697
15673
  i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Ef(e.elements.popper, i) && (e.elements.arrow = i));
15698
15674
  }
15699
- const N0 = {
15675
+ const I0 = {
15700
15676
  name: "arrow",
15701
15677
  enabled: !0,
15702
15678
  phase: "main",
@@ -15708,7 +15684,7 @@ const N0 = {
15708
15684
  function ni(n) {
15709
15685
  return n.split("-")[1];
15710
15686
  }
15711
- var I0 = {
15687
+ var N0 = {
15712
15688
  top: "auto",
15713
15689
  right: "auto",
15714
15690
  bottom: "auto",
@@ -15752,7 +15728,7 @@ function Lc(n) {
15752
15728
  }
15753
15729
  var D = Object.assign({
15754
15730
  position: l
15755
- }, p && I0), $ = c === !0 ? $0({
15731
+ }, p && N0), $ = c === !0 ? $0({
15756
15732
  x: h,
15757
15733
  y: x
15758
15734
  }, ct(t)) : {
@@ -15898,7 +15874,7 @@ function W0(n, e) {
15898
15874
  var t = ti(n, !1, e === "fixed");
15899
15875
  return t.top = t.top + n.clientTop, t.left = t.left + n.clientLeft, t.bottom = t.top + n.clientHeight, t.right = t.left + n.clientWidth, t.width = n.clientWidth, t.height = n.clientHeight, t.x = t.left, t.y = t.top, t;
15900
15876
  }
15901
- function Nc(n, e, t) {
15877
+ function Ic(n, e, t) {
15902
15878
  return e === Sf ? aa(q0(n, t)) : Er(e) ? W0(e, t) : aa(U0(Gn(n)));
15903
15879
  }
15904
15880
  function K0(n) {
@@ -15909,9 +15885,9 @@ function K0(n) {
15909
15885
  }
15910
15886
  function G0(n, e, t, r) {
15911
15887
  var i = e === "clippingParents" ? K0(n) : [].concat(e), s = [].concat(i, [t]), o = s[0], l = s.reduce(function(a, p) {
15912
- var c = Nc(n, p, r);
15888
+ var c = Ic(n, p, r);
15913
15889
  return a.top = xr(c.top, a.top), a.right = to(c.right, a.right), a.bottom = to(c.bottom, a.bottom), a.left = xr(c.left, a.left), a;
15914
- }, Nc(n, o, r));
15890
+ }, Ic(n, o, r));
15915
15891
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
15916
15892
  }
15917
15893
  function Af(n) {
@@ -16066,7 +16042,7 @@ const X0 = {
16066
16042
  _skip: !1
16067
16043
  }
16068
16044
  };
16069
- function Ic(n, e, t) {
16045
+ function Nc(n, e, t) {
16070
16046
  return t === void 0 && (t = {
16071
16047
  x: 0,
16072
16048
  y: 0
@@ -16087,7 +16063,7 @@ function Z0(n) {
16087
16063
  elementContext: "reference"
16088
16064
  }), l = Wi(e, {
16089
16065
  altBoundary: !0
16090
- }), a = Ic(o, r), p = Ic(l, i, s), c = $c(a), d = $c(p);
16066
+ }), a = Nc(o, r), p = Nc(l, i, s), c = $c(a), d = $c(p);
16091
16067
  e.modifiersData[t] = {
16092
16068
  referenceClippingOffsets: a,
16093
16069
  popperEscapeOffsets: p,
@@ -16175,7 +16151,7 @@ function lv(n) {
16175
16151
  T[g] = xn, $[g] = xn - se;
16176
16152
  }
16177
16153
  if (l) {
16178
- var gn, Xn = g === "x" ? rt : it, Zn = g === "x" ? kt : Ct, Ot = T[O], It = O === "y" ? "height" : "width", yn = Ot + m[Xn], ft = Ot - m[Zn], vn = [rt, it].indexOf(v) !== -1, er = (gn = D == null ? void 0 : D[O]) != null ? gn : 0, tr = vn ? yn : Ot - B[It] - H[It] - er + L.altAxis, nr = vn ? Ot + B[It] + H[It] - er - L.altAxis : ft, rr = h && vn ? A0(tr, Ot, nr) : Mi(h ? tr : yn, Ot, h ? nr : ft);
16154
+ var gn, Xn = g === "x" ? rt : it, Zn = g === "x" ? kt : Ct, Ot = T[O], Nt = O === "y" ? "height" : "width", yn = Ot + m[Xn], ft = Ot - m[Zn], vn = [rt, it].indexOf(v) !== -1, er = (gn = D == null ? void 0 : D[O]) != null ? gn : 0, tr = vn ? yn : Ot - B[Nt] - H[Nt] - er + L.altAxis, nr = vn ? Ot + B[Nt] + H[Nt] - er - L.altAxis : ft, rr = h && vn ? A0(tr, Ot, nr) : Mi(h ? tr : yn, Ot, h ? nr : ft);
16179
16155
  T[O] = rr, $[O] = rr - Ot;
16180
16156
  }
16181
16157
  e.modifiersData[r] = $;
@@ -16378,12 +16354,12 @@ function xv(n) {
16378
16354
  return h;
16379
16355
  };
16380
16356
  }
16381
- var gv = [j0, sv, H0, Cf, rv, X0, av, N0, ev], yv = /* @__PURE__ */ xv({
16357
+ var gv = [j0, sv, H0, Cf, rv, X0, av, I0, ev], yv = /* @__PURE__ */ xv({
16382
16358
  defaultModifiers: gv
16383
16359
  }), vv = "tippy-box", _f = "tippy-content", wv = "tippy-backdrop", Lf = "tippy-arrow", Df = "tippy-svg-arrow", sr = {
16384
16360
  passive: !0,
16385
16361
  capture: !0
16386
- }, Nf = function() {
16362
+ }, If = function() {
16387
16363
  return document.body;
16388
16364
  };
16389
16365
  function Sv(n, e) {
@@ -16400,7 +16376,7 @@ function sp(n, e) {
16400
16376
  var t = {}.toString.call(n);
16401
16377
  return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
16402
16378
  }
16403
- function If(n, e) {
16379
+ function Nf(n, e) {
16404
16380
  return typeof n == "function" ? n.apply(void 0, e) : n;
16405
16381
  }
16406
16382
  function Fc(n, e) {
@@ -16520,10 +16496,10 @@ function Dv() {
16520
16496
  n.blur && !e.state.isVisible && n.blur();
16521
16497
  }
16522
16498
  }
16523
- function Nv() {
16499
+ function Iv() {
16524
16500
  document.addEventListener("touchstart", Lv, sr), window.addEventListener("blur", Dv);
16525
16501
  }
16526
- var Iv = typeof window < "u" && typeof document < "u", $v = Iv ? (
16502
+ var Nv = typeof window < "u" && typeof document < "u", $v = Nv ? (
16527
16503
  // @ts-ignore
16528
16504
  !!window.msCrypto
16529
16505
  ) : !1;
@@ -16592,7 +16568,7 @@ var Hf = {
16592
16568
  theme: "",
16593
16569
  zIndex: 9999
16594
16570
  }, at = Object.assign({
16595
- appendTo: Nf,
16571
+ appendTo: If,
16596
16572
  aria: {
16597
16573
  content: "auto",
16598
16574
  expanded: "auto"
@@ -16678,7 +16654,7 @@ function qv(n, e) {
16678
16654
  }
16679
16655
  function Kc(n, e) {
16680
16656
  var t = Object.assign({}, e, {
16681
- content: If(e.content, [n])
16657
+ content: Nf(e.content, [n])
16682
16658
  }, e.ignoreAttributes ? {} : qv(n, e.plugins));
16683
16659
  return t.aria = Object.assign({}, at.aria, t.aria), t.aria = {
16684
16660
  expanded: t.aria.expanded === "auto" ? e.interactive : t.aria.expanded,
@@ -16948,7 +16924,7 @@ function Kv(n, e) {
16948
16924
  function Yn(P) {
16949
16925
  var W = P.target, Y = K().contains(W) || T.contains(W);
16950
16926
  if (!(P.type === "mousemove" && Y)) {
16951
- var le = It().concat(T).map(function(F) {
16927
+ var le = Nt().concat(T).map(function(F) {
16952
16928
  var _, ae = F._tippy, Bt = (_ = ae.popperInstance) == null ? void 0 : _.state;
16953
16929
  return Bt ? {
16954
16930
  popperRect: F.getBoundingClientRect(),
@@ -17037,7 +17013,7 @@ function Kv(n, e) {
17037
17013
  }
17038
17014
  function Ot() {
17039
17015
  var P = g.props.appendTo, W, Y = K();
17040
- g.props.interactive && P === Nf || P === "parent" ? W = Y.parentNode : W = If(P, [Y]), W.contains(T) || W.appendChild(T), g.state.isMounted = !0, Xn(), process.env.NODE_ENV !== "production" && on(g.props.interactive && P === at.appendTo && Y.nextElementSibling !== T, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17016
+ g.props.interactive && P === If || P === "parent" ? W = Y.parentNode : W = Nf(P, [Y]), W.contains(T) || W.appendChild(T), g.state.isMounted = !0, Xn(), process.env.NODE_ENV !== "production" && on(g.props.interactive && P === at.appendTo && Y.nextElementSibling !== T, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17041
17017
 
17042
17018
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
17043
17019
 
@@ -17045,7 +17021,7 @@ function Kv(n, e) {
17045
17021
 
17046
17022
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
17047
17023
  }
17048
- function It() {
17024
+ function Nt() {
17049
17025
  return no(T.querySelectorAll("[data-tippy-root]"));
17050
17026
  }
17051
17027
  function yn(P) {
@@ -17086,7 +17062,7 @@ function Kv(n, e) {
17086
17062
  }));
17087
17063
  g.props = Y, Tt(), W.interactiveDebounce !== Y.interactiveDebounce && (Jt(), b = Fc(Yn, Y.interactiveDebounce)), W.triggerTarget && !Y.triggerTarget ? Rr(W.triggerTarget).forEach(function(le) {
17088
17064
  le.removeAttribute("aria-expanded");
17089
- }) : Y.triggerTarget && n.removeAttribute("aria-expanded"), dt(), se(), B && B(W, Y), g.popperInstance && (Xn(), It().forEach(function(le) {
17065
+ }) : Y.triggerTarget && n.removeAttribute("aria-expanded"), dt(), se(), B && B(W, Y), g.popperInstance && (Xn(), Nt().forEach(function(le) {
17090
17066
  requestAnimationFrame(le._tippy.popperInstance.forceUpdate);
17091
17067
  })), G("onAfterUpdate", [g, P]);
17092
17068
  }
@@ -17133,7 +17109,7 @@ function Kv(n, e) {
17133
17109
  process.env.NODE_ENV !== "production" && on(g.state.isDestroyed, Lr("hideWithInteractivity")), ce().addEventListener("mousemove", b), jc(ks, b), b(P);
17134
17110
  }
17135
17111
  function Qo() {
17136
- process.env.NODE_ENV !== "production" && on(g.state.isDestroyed, Lr("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Zn(), It().forEach(function(P) {
17112
+ process.env.NODE_ENV !== "production" && on(g.state.isDestroyed, Lr("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Zn(), Nt().forEach(function(P) {
17137
17113
  P._tippy.unmount();
17138
17114
  }), T.parentNode && T.parentNode.removeChild(T), wl = wl.filter(function(P) {
17139
17115
  return P !== g;
@@ -17146,7 +17122,7 @@ function Kv(n, e) {
17146
17122
  function li(n, e) {
17147
17123
  e === void 0 && (e = {});
17148
17124
  var t = at.plugins.concat(e.plugins || []);
17149
- process.env.NODE_ENV !== "production" && (Fv(n), jf(e, t)), Nv();
17125
+ process.env.NODE_ENV !== "production" && (Fv(n), jf(e, t)), Iv();
17150
17126
  var r = Object.assign({}, e, {
17151
17127
  plugins: t
17152
17128
  }), i = Pv(n);
@@ -17619,7 +17595,7 @@ const Xv = (n = {}) => {
17619
17595
  const s = (t = e.value) === null || t === void 0 ? void 0 : t.options.element, o = s == null ? void 0 : s.cloneNode(!0);
17620
17596
  (r = s == null ? void 0 : s.parentNode) === null || r === void 0 || r.replaceChild(o, s), (i = e.value) === null || i === void 0 || i.destroy();
17621
17597
  }), e;
17622
- }, Zv = /^\s*>\s$/, e1 = Nt.create({
17598
+ }, Zv = /^\s*>\s$/, e1 = It.create({
17623
17599
  name: "blockquote",
17624
17600
  addOptions() {
17625
17601
  return {
@@ -17723,7 +17699,7 @@ const Xv = (n = {}) => {
17723
17699
  })
17724
17700
  ];
17725
17701
  }
17726
- }), o1 = "listItem", Qc = "textStyle", Xc = /^\s*([-+*])\s$/, l1 = Nt.create({
17702
+ }), o1 = "listItem", Qc = "textStyle", Xc = /^\s*([-+*])\s$/, l1 = It.create({
17727
17703
  name: "bulletList",
17728
17704
  addOptions() {
17729
17705
  return {
@@ -17817,7 +17793,7 @@ const Xv = (n = {}) => {
17817
17793
  })
17818
17794
  ];
17819
17795
  }
17820
- }), d1 = /^```([a-z]+)?[\s\n]$/, u1 = /^~~~([a-z]+)?[\s\n]$/, f1 = Nt.create({
17796
+ }), d1 = /^```([a-z]+)?[\s\n]$/, u1 = /^~~~([a-z]+)?[\s\n]$/, f1 = It.create({
17821
17797
  name: "codeBlock",
17822
17798
  addOptions() {
17823
17799
  return {
@@ -17944,7 +17920,7 @@ const Xv = (n = {}) => {
17944
17920
  })
17945
17921
  ];
17946
17922
  }
17947
- }), h1 = Nt.create({
17923
+ }), h1 = It.create({
17948
17924
  name: "doc",
17949
17925
  topNode: !0,
17950
17926
  content: "block+"
@@ -18226,9 +18202,9 @@ function k1(n, e) {
18226
18202
  let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
18227
18203
  if (!r)
18228
18204
  return !1;
18229
- let i = N.empty;
18205
+ let i = I.empty;
18230
18206
  for (let o = r.length - 1; o >= 0; o--)
18231
- i = N.from(r[o].createAndFill(null, i));
18207
+ i = I.from(r[o].createAndFill(null, i));
18232
18208
  let s = n.state.tr.replace(t.pos, t.pos, new z(i, 0, 0));
18233
18209
  return s.setSelection(Z.near(s.doc.resolve(t.pos + 1))), n.dispatch(s), !1;
18234
18210
  }
@@ -18256,7 +18232,7 @@ const M1 = je.create({
18256
18232
  allowGapCursor: (e = ie(U(n, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
18257
18233
  };
18258
18234
  }
18259
- }), E1 = Nt.create({
18235
+ }), E1 = It.create({
18260
18236
  name: "hardBreak",
18261
18237
  addOptions() {
18262
18238
  return {
@@ -18306,7 +18282,7 @@ const M1 = je.create({
18306
18282
  "Shift-Enter": () => this.editor.commands.setHardBreak()
18307
18283
  };
18308
18284
  }
18309
- }), T1 = Nt.create({
18285
+ }), T1 = It.create({
18310
18286
  name: "heading",
18311
18287
  addOptions() {
18312
18288
  return {
@@ -18596,7 +18572,7 @@ function _1(n, e, t, r) {
18596
18572
  let i = t.getMeta(gr), s;
18597
18573
  if (i)
18598
18574
  return i.historyState;
18599
- t.getMeta(N1) && (n = new Mn(n.done, n.undone, null, 0, -1));
18575
+ t.getMeta(I1) && (n = new Mn(n.done, n.undone, null, 0, -1));
18600
18576
  let o = t.getMeta("appendedTransaction");
18601
18577
  if (t.steps.length == 0)
18602
18578
  return n;
@@ -18654,8 +18630,8 @@ function Ds(n) {
18654
18630
  }
18655
18631
  return kl;
18656
18632
  }
18657
- const gr = new Ze("history"), N1 = new Ze("closeHistory");
18658
- function I1(n = {}) {
18633
+ const gr = new Ze("history"), I1 = new Ze("closeHistory");
18634
+ function N1(n = {}) {
18659
18635
  return n = {
18660
18636
  depth: n.depth || 100,
18661
18637
  newGroupDelay: n.newGroupDelay || 500
@@ -18708,7 +18684,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18708
18684
  },
18709
18685
  addProseMirrorPlugins() {
18710
18686
  return [
18711
- I1(this.options)
18687
+ N1(this.options)
18712
18688
  ];
18713
18689
  },
18714
18690
  addKeyboardShortcuts() {
@@ -18721,7 +18697,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18721
18697
  "Shift-Mod-я": () => this.editor.commands.redo()
18722
18698
  };
18723
18699
  }
18724
- }), R1 = Nt.create({
18700
+ }), R1 = It.create({
18725
18701
  name: "horizontalRule",
18726
18702
  addOptions() {
18727
18703
  return {
@@ -18838,7 +18814,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18838
18814
  })
18839
18815
  ];
18840
18816
  }
18841
- }), q1 = Nt.create({
18817
+ }), q1 = It.create({
18842
18818
  name: "listItem",
18843
18819
  addOptions() {
18844
18820
  return {
@@ -18866,7 +18842,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18866
18842
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
18867
18843
  };
18868
18844
  }
18869
- }), U1 = "listItem", td = "textStyle", nd = /^(\d+)\.\s$/, W1 = Nt.create({
18845
+ }), U1 = "listItem", td = "textStyle", nd = /^(\d+)\.\s$/, W1 = It.create({
18870
18846
  name: "orderedList",
18871
18847
  addOptions() {
18872
18848
  return {
@@ -18932,7 +18908,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
18932
18908
  n
18933
18909
  ];
18934
18910
  }
18935
- }), K1 = Nt.create({
18911
+ }), K1 = It.create({
18936
18912
  name: "paragraph",
18937
18913
  priority: 1e3,
18938
18914
  addOptions() {
@@ -19016,7 +18992,7 @@ const Kf = Wf(!1, !0), Gf = Wf(!0, !0), $1 = je.create({
19016
18992
  })
19017
18993
  ];
19018
18994
  }
19019
- }), Q1 = Nt.create({
18995
+ }), Q1 = It.create({
19020
18996
  name: "text",
19021
18997
  group: "inline"
19022
18998
  }), X1 = je.create({
@@ -19170,7 +19146,7 @@ tt.prototype = {
19170
19146
  return i.j[n] = o, o;
19171
19147
  }
19172
19148
  };
19173
- const ne = (n, e, t, r, i) => n.ta(e, t, r, i), ye = (n, e, t, r, i) => n.tr(e, t, r, i), rd = (n, e, t, r, i) => n.ts(e, t, r, i), R = (n, e, t, r, i) => n.tt(e, t, r, i), rn = "WORD", ma = "UWORD", Yf = "ASCIINUMERICAL", Qf = "ALPHANUMERICAL", Ji = "LOCALHOST", xa = "TLD", ga = "UTLD", Ns = "SCHEME", Hr = "SLASH_SCHEME", lp = "NUM", ya = "WS", ap = "NL", Bi = "OPENBRACE", Pi = "CLOSEBRACE", io = "OPENBRACKET", so = "CLOSEBRACKET", oo = "OPENPAREN", lo = "CLOSEPAREN", ao = "OPENANGLEBRACKET", po = "CLOSEANGLEBRACKET", co = "FULLWIDTHLEFTPAREN", uo = "FULLWIDTHRIGHTPAREN", fo = "LEFTCORNERBRACKET", ho = "RIGHTCORNERBRACKET", bo = "LEFTWHITECORNERBRACKET", mo = "RIGHTWHITECORNERBRACKET", xo = "FULLWIDTHLESSTHAN", go = "FULLWIDTHGREATERTHAN", yo = "AMPERSAND", vo = "APOSTROPHE", wo = "ASTERISK", En = "AT", So = "BACKSLASH", ko = "BACKTICK", Co = "CARET", Pn = "COLON", pp = "COMMA", Mo = "DOLLAR", Rt = "DOT", Eo = "EQUALS", cp = "EXCLAMATION", mt = "HYPHEN", Ai = "PERCENT", To = "PIPE", Oo = "PLUS", Bo = "POUND", _i = "QUERY", dp = "QUOTE", Xf = "FULLWIDTHMIDDLEDOT", up = "SEMI", Ht = "SLASH", Li = "TILDE", Po = "UNDERSCORE", Zf = "EMOJI", Ao = "SYM";
19149
+ const ne = (n, e, t, r, i) => n.ta(e, t, r, i), ye = (n, e, t, r, i) => n.tr(e, t, r, i), rd = (n, e, t, r, i) => n.ts(e, t, r, i), R = (n, e, t, r, i) => n.tt(e, t, r, i), rn = "WORD", ma = "UWORD", Yf = "ASCIINUMERICAL", Qf = "ALPHANUMERICAL", Ji = "LOCALHOST", xa = "TLD", ga = "UTLD", Is = "SCHEME", Hr = "SLASH_SCHEME", lp = "NUM", ya = "WS", ap = "NL", Bi = "OPENBRACE", Pi = "CLOSEBRACE", io = "OPENBRACKET", so = "CLOSEBRACKET", oo = "OPENPAREN", lo = "CLOSEPAREN", ao = "OPENANGLEBRACKET", po = "CLOSEANGLEBRACKET", co = "FULLWIDTHLEFTPAREN", uo = "FULLWIDTHRIGHTPAREN", fo = "LEFTCORNERBRACKET", ho = "RIGHTCORNERBRACKET", bo = "LEFTWHITECORNERBRACKET", mo = "RIGHTWHITECORNERBRACKET", xo = "FULLWIDTHLESSTHAN", go = "FULLWIDTHGREATERTHAN", yo = "AMPERSAND", vo = "APOSTROPHE", wo = "ASTERISK", En = "AT", So = "BACKSLASH", ko = "BACKTICK", Co = "CARET", Pn = "COLON", pp = "COMMA", Mo = "DOLLAR", Rt = "DOT", Eo = "EQUALS", cp = "EXCLAMATION", mt = "HYPHEN", Ai = "PERCENT", To = "PIPE", Oo = "PLUS", Bo = "POUND", _i = "QUERY", dp = "QUOTE", Xf = "FULLWIDTHMIDDLEDOT", up = "SEMI", Ht = "SLASH", Li = "TILDE", Po = "UNDERSCORE", Zf = "EMOJI", Ao = "SYM";
19174
19150
  var eh = /* @__PURE__ */ Object.freeze({
19175
19151
  __proto__: null,
19176
19152
  ALPHANUMERICAL: Qf,
@@ -19216,7 +19192,7 @@ var eh = /* @__PURE__ */ Object.freeze({
19216
19192
  QUOTE: dp,
19217
19193
  RIGHTCORNERBRACKET: ho,
19218
19194
  RIGHTWHITECORNERBRACKET: mo,
19219
- SCHEME: Ns,
19195
+ SCHEME: Is,
19220
19196
  SEMI: up,
19221
19197
  SLASH: Ht,
19222
19198
  SLASH_SCHEME: Hr,
@@ -19278,7 +19254,7 @@ function lw(n = []) {
19278
19254
  }, e), ur(ga, {
19279
19255
  utld: !0,
19280
19256
  alpha: !0
19281
- }, e), Sn(t, "file", Ns, rn, h), Sn(t, "mailto", Ns, rn, h), Sn(t, "http", Hr, rn, h), Sn(t, "https", Hr, rn, h), Sn(t, "ftp", Hr, rn, h), Sn(t, "ftps", Hr, rn, h), ur(Ns, {
19257
+ }, e), Sn(t, "file", Is, rn, h), Sn(t, "mailto", Is, rn, h), Sn(t, "http", Hr, rn, h), Sn(t, "https", Hr, rn, h), Sn(t, "ftp", Hr, rn, h), Sn(t, "ftps", Hr, rn, h), ur(Is, {
19282
19258
  scheme: !0,
19283
19259
  ascii: !0
19284
19260
  }, e), ur(Hr, {
@@ -20105,7 +20081,7 @@ var Ut;
20105
20081
  (function(n) {
20106
20082
  n.direct = "direct", n.patchObject = "patch object", n.patchFunction = "patch function";
20107
20083
  })(Ut || (Ut = {}));
20108
- const In = typeof window < "u", cd = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
20084
+ const Nn = typeof window < "u", cd = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
20109
20085
  function Aw(n, { autoBom: e = !1 } = {}) {
20110
20086
  return e && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type) ? new Blob(["\uFEFF", n], { type: n.type }) : n;
20111
20087
  }
@@ -20126,7 +20102,7 @@ function lh(n) {
20126
20102
  }
20127
20103
  return e.status >= 200 && e.status <= 299;
20128
20104
  }
20129
- function Is(n) {
20105
+ function Ns(n) {
20130
20106
  try {
20131
20107
  n.dispatchEvent(new MouseEvent("click"));
20132
20108
  } catch {
@@ -20134,7 +20110,7 @@ function Is(n) {
20134
20110
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), n.dispatchEvent(t);
20135
20111
  }
20136
20112
  }
20137
- const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, ah = /Macintosh/.test($s.userAgent) && /AppleWebKit/.test($s.userAgent) && !/Safari/.test($s.userAgent), ph = In ? (
20113
+ const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, ah = /Macintosh/.test($s.userAgent) && /AppleWebKit/.test($s.userAgent) && !/Safari/.test($s.userAgent), ph = Nn ? (
20138
20114
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
20139
20115
  typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !ah ? _w : (
20140
20116
  // Use msSaveOrOpenBlob as a second approach
@@ -20147,10 +20123,10 @@ const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, ah = /M
20147
20123
  };
20148
20124
  function _w(n, e = "download", t) {
20149
20125
  const r = document.createElement("a");
20150
- r.download = e, r.rel = "noopener", typeof n == "string" ? (r.href = n, r.origin !== location.origin ? lh(r.href) ? mp(n, e, t) : (r.target = "_blank", Is(r)) : Is(r)) : (r.href = URL.createObjectURL(n), setTimeout(function() {
20126
+ r.download = e, r.rel = "noopener", typeof n == "string" ? (r.href = n, r.origin !== location.origin ? lh(r.href) ? mp(n, e, t) : (r.target = "_blank", Ns(r)) : Ns(r)) : (r.href = URL.createObjectURL(n), setTimeout(function() {
20151
20127
  URL.revokeObjectURL(r.href);
20152
20128
  }, 4e4), setTimeout(function() {
20153
- Is(r);
20129
+ Ns(r);
20154
20130
  }, 0));
20155
20131
  }
20156
20132
  function Lw(n, e = "download", t) {
@@ -20160,7 +20136,7 @@ function Lw(n, e = "download", t) {
20160
20136
  else {
20161
20137
  const r = document.createElement("a");
20162
20138
  r.href = n, r.target = "_blank", setTimeout(function() {
20163
- Is(r);
20139
+ Ns(r);
20164
20140
  });
20165
20141
  }
20166
20142
  else
@@ -20199,7 +20175,7 @@ function ch() {
20199
20175
  function dh(n) {
20200
20176
  return n instanceof Error && n.message.toLowerCase().includes("document is not focused") ? (Ae('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
20201
20177
  }
20202
- async function Nw(n) {
20178
+ async function Iw(n) {
20203
20179
  if (!ch())
20204
20180
  try {
20205
20181
  await navigator.clipboard.writeText(JSON.stringify(n.state.value)), Ae("Global state copied to clipboard.");
@@ -20209,7 +20185,7 @@ async function Nw(n) {
20209
20185
  Ae("Failed to serialize the state. Check the console for more details.", "error"), console.error(e);
20210
20186
  }
20211
20187
  }
20212
- async function Iw(n) {
20188
+ async function Nw(n) {
20213
20189
  if (!ch())
20214
20190
  try {
20215
20191
  uh(n, JSON.parse(await navigator.clipboard.readText())), Ae("Global state pasted from clipboard.");
@@ -20364,14 +20340,14 @@ function Uw(n, e) {
20364
20340
  {
20365
20341
  icon: "content_copy",
20366
20342
  action: () => {
20367
- Nw(e);
20343
+ Iw(e);
20368
20344
  },
20369
20345
  tooltip: "Serialize and copy the state"
20370
20346
  },
20371
20347
  {
20372
20348
  icon: "content_paste",
20373
20349
  action: async () => {
20374
- await Iw(e), t.sendInspectorTree(qe), t.sendInspectorState(qe);
20350
+ await Nw(e), t.sendInspectorTree(qe), t.sendInspectorState(qe);
20375
20351
  },
20376
20352
  tooltip: "Replace the state with the content of your clipboard"
20377
20353
  },
@@ -20643,7 +20619,7 @@ function Gw() {
20643
20619
  let t = [], r = [];
20644
20620
  const i = An({
20645
20621
  install(s) {
20646
- Qi(i), i._a = s, s.provide(oh, i), s.config.globalProperties.$pinia = i, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In && Uw(s, i), r.forEach((o) => t.push(o)), r = [];
20622
+ Qi(i), i._a = s, s.provide(oh, i), s.config.globalProperties.$pinia = i, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn && Uw(s, i), r.forEach((o) => t.push(o)), r = [];
20647
20623
  },
20648
20624
  use(s) {
20649
20625
  return this._a ? t.push(s) : r.push(s), this;
@@ -20656,7 +20632,7 @@ function Gw() {
20656
20632
  _s: /* @__PURE__ */ new Map(),
20657
20633
  state: e
20658
20634
  });
20659
- return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In && typeof Proxy < "u" && i.use(Kw), i;
20635
+ return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn && typeof Proxy < "u" && i.use(Kw), i;
20660
20636
  }
20661
20637
  function bh(n, e) {
20662
20638
  for (const t in e) {
@@ -20678,7 +20654,7 @@ function ud(n, e, t, r = mh) {
20678
20654
  };
20679
20655
  return !t && jh() && zh(i), i;
20680
20656
  }
20681
- function Nr(n, ...e) {
20657
+ function Ir(n, ...e) {
20682
20658
  n.slice().forEach((t) => {
20683
20659
  t(...e);
20684
20660
  });
@@ -20714,7 +20690,7 @@ function bd(n, e, t, r) {
20714
20690
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
20715
20691
  wp(E(i ? i() : {}).value)
20716
20692
  ) : wp(t.state.value[n]);
20717
- return xt(c, s, Object.keys(o || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${n}".`), d[f] = An(I(() => {
20693
+ return xt(c, s, Object.keys(o || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${n}".`), d[f] = An(N(() => {
20718
20694
  Qi(t);
20719
20695
  const h = t._s.get(n);
20720
20696
  return o[f].call(h, h);
@@ -20751,7 +20727,7 @@ function Sa(n, e, t = {}, r, i, s) {
20751
20727
  const $ = m = Symbol();
20752
20728
  oe().then(() => {
20753
20729
  m === $ && (p = !0);
20754
- }), c = !0, Nr(d, D, r.state.value[n]);
20730
+ }), c = !0, Ir(d, D, r.state.value[n]);
20755
20731
  }
20756
20732
  const S = s ? function() {
20757
20733
  const { state: D } = t, $ = D ? D() : {};
@@ -20779,7 +20755,7 @@ function Sa(n, e, t = {}, r, i, s) {
20779
20755
  function se(re) {
20780
20756
  he.push(re);
20781
20757
  }
20782
- Nr(f, {
20758
+ Ir(f, {
20783
20759
  args: K,
20784
20760
  name: $[Al],
20785
20761
  store: B,
@@ -20790,9 +20766,9 @@ function Sa(n, e, t = {}, r, i, s) {
20790
20766
  try {
20791
20767
  G = L.apply(this && this.$id === n ? this : B, K);
20792
20768
  } catch (re) {
20793
- throw Nr(he, re), re;
20769
+ throw Ir(he, re), re;
20794
20770
  }
20795
- return G instanceof Promise ? G.then((re) => (Nr(ce, re), re)).catch((re) => (Nr(he, re), Promise.reject(re))) : (Nr(ce, G), G);
20771
+ return G instanceof Promise ? G.then((re) => (Ir(ce, re), re)).catch((re) => (Ir(he, re), Promise.reject(re))) : (Ir(ce, G), G);
20796
20772
  };
20797
20773
  return $[fd] = !0, $[Al] = D, $;
20798
20774
  }, O = /* @__PURE__ */ An({
@@ -20818,7 +20794,7 @@ function Sa(n, e, t = {}, r, i, s) {
20818
20794
  return $;
20819
20795
  },
20820
20796
  $dispose: k
20821
- }, B = Fh(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In ? xt(
20797
+ }, B = Fh(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn ? xt(
20822
20798
  {
20823
20799
  _hmrPayload: O,
20824
20800
  _customProperties: An(/* @__PURE__ */ new Set())
@@ -20840,7 +20816,7 @@ function Sa(n, e, t = {}, r, i, s) {
20840
20816
  } else process.env.NODE_ENV !== "production" && hd(D) && (O.getters[L] = s ? (
20841
20817
  // @ts-expect-error
20842
20818
  t.getters[L]
20843
- ) : D, In && (q._getters || // @ts-expect-error: same
20819
+ ) : D, Nn && (q._getters || // @ts-expect-error: same
20844
20820
  (q._getters = An([]))).push(L));
20845
20821
  }
20846
20822
  if (xt(B, q), xt(Ve(B), q), Object.defineProperty(B, "$state", {
@@ -20871,7 +20847,7 @@ function Sa(n, e, t = {}, r, i, s) {
20871
20847
  for (const D in L._hmrPayload.getters) {
20872
20848
  const $ = L._hmrPayload.getters[D], K = s ? (
20873
20849
  // special handling of options api
20874
- I(() => (Qi(r), $.call(B, B)))
20850
+ N(() => (Qi(r), $.call(B, B)))
20875
20851
  ) : $;
20876
20852
  Os(B, D, K);
20877
20853
  }
@@ -20880,7 +20856,7 @@ function Sa(n, e, t = {}, r, i, s) {
20880
20856
  }), Object.keys(B._hmrPayload.actions).forEach((D) => {
20881
20857
  D in L._hmrPayload.actions || Pl(B, D);
20882
20858
  }), B._hmrPayload = L._hmrPayload, B._getters = L._getters, B._hotUpdating = !1;
20883
- })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In) {
20859
+ })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn) {
20884
20860
  const L = {
20885
20861
  writable: !0,
20886
20862
  configurable: !0,
@@ -20892,7 +20868,7 @@ function Sa(n, e, t = {}, r, i, s) {
20892
20868
  });
20893
20869
  }
20894
20870
  return r._p.forEach((L) => {
20895
- if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && In) {
20871
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Nn) {
20896
20872
  const D = o.run(() => L({
20897
20873
  store: B,
20898
20874
  app: r._a,
@@ -20931,7 +20907,7 @@ This will fail in production.`);
20931
20907
  const d = "__hot:" + r, f = s ? Sa(d, e, i, l, !0) : bd(d, xt({}, i), l, !0);
20932
20908
  a._hotUpdate(f), delete l.state.value[d], l._s.delete(d);
20933
20909
  }
20934
- if (process.env.NODE_ENV !== "production" && In) {
20910
+ if (process.env.NODE_ENV !== "production" && Nn) {
20935
20911
  const d = Ad();
20936
20912
  if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
20937
20913
  !a) {
@@ -21341,7 +21317,7 @@ const Zw = /* @__PURE__ */ Xw("pageBuilderState", {
21341
21317
  }, rS = { class: "pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start" }, iS = { class: "pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear" }, sS = { key: 0 }, oS = { class: "pbx-relative pbx-rounded-lg" }, lS = { class: "pbx-flex pbx-justify-between pbx-myPrimaryGap pbx-items-center pbx-pb-2 pbx-mb-2 pbx-px-4 pbx-overflow-x-auto pbx-border-0 pbx-border-b pbx-border-solid pbx-border-gray-200" }, aS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max pbx-p-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm" }, pS = { class: "pbx-flex pbx-items-center pbx-p-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm" }, cS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, dS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, uS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, fS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, hS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, bS = { class: "pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max" }, mS = {
21342
21318
  __name: "TipTapInput",
21343
21319
  setup(n) {
21344
- const e = Ce(), { translate: t } = Me(), r = Se, i = E(!1), s = E(""), o = E(1), l = E(""), a = E(""), p = E(""), c = E(null), d = E(null), f = E(null), h = E(null), b = E(null), x = I(() => r.getElement), m = E(""), v = I(() => k.value ? k.value.getHTML() : null), S = E(0);
21320
+ const e = Ce(), { translate: t } = Me(), r = Se, i = E(!1), s = E(""), o = E(1), l = E(""), a = E(""), p = E(""), c = E(null), d = E(null), f = E(null), h = E(null), b = E(null), x = N(() => r.getElement), m = E(""), v = N(() => k.value ? k.value.getHTML() : null), S = E(0);
21345
21321
  ee(x, (D) => {
21346
21322
  const $ = document.createElement("div");
21347
21323
  if (D) {
@@ -21610,8 +21586,8 @@ const vS = /* @__PURE__ */ Jo(xS, [["render", yS]]), wS = {
21610
21586
  }
21611
21587
  };
21612
21588
  function kS(n, e, t) {
21613
- let r = E(t == null ? void 0 : t.value), i = I(() => n.value !== void 0);
21614
- return [I(() => i.value ? n.value : r.value), function(s) {
21589
+ let r = E(t == null ? void 0 : t.value), i = N(() => n.value !== void 0);
21590
+ return [N(() => i.value ? n.value : r.value), function(s) {
21615
21591
  return i.value || (r.value = s), e == null ? void 0 : e(s);
21616
21592
  }];
21617
21593
  }
@@ -21696,14 +21672,14 @@ function DS(n, e = (t) => t) {
21696
21672
  return o & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : o & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
21697
21673
  });
21698
21674
  }
21699
- function NS() {
21675
+ function IS() {
21700
21676
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
21701
21677
  }
21702
- function IS() {
21678
+ function NS() {
21703
21679
  return /Android/gi.test(window.navigator.userAgent);
21704
21680
  }
21705
21681
  function $S() {
21706
- return NS() || IS();
21682
+ return IS() || NS();
21707
21683
  }
21708
21684
  function Bs(n, e, t) {
21709
21685
  gp.isServer || ii((r) => {
@@ -21715,7 +21691,7 @@ function RS(n, e, t) {
21715
21691
  window.addEventListener(n, e, t), r(() => window.removeEventListener(n, e, t));
21716
21692
  });
21717
21693
  }
21718
- function HS(n, e, t = I(() => !0)) {
21694
+ function HS(n, e, t = N(() => !0)) {
21719
21695
  function r(s, o) {
21720
21696
  if (!t.value || s.defaultPrevented) return;
21721
21697
  let l = o(s);
@@ -21959,13 +21935,13 @@ let ss = Xe({ name: "Listbox", emits: { "update:modelValue": (n) => !0 }, props:
21959
21935
  let g = c.value !== null ? a.value[c.value] : null, O = DS(k(a.value.slice()), (B) => ke(B.dataRef.domRef)), T = g ? O.indexOf(g) : null;
21960
21936
  return T === -1 && (T = null), { options: O, activeOptionIndex: T };
21961
21937
  }
21962
- let h = I(() => n.multiple ? 1 : 0), [b, x] = kS(I(() => n.modelValue), (k) => r("update:modelValue", k), I(() => n.defaultValue)), m = I(() => b.value === void 0 ? _t(h.value, { 1: [], 0: void 0 }) : b.value), v = { listboxState: i, value: m, mode: h, compare(k, g) {
21938
+ let h = N(() => n.multiple ? 1 : 0), [b, x] = kS(N(() => n.modelValue), (k) => r("update:modelValue", k), N(() => n.defaultValue)), m = N(() => b.value === void 0 ? _t(h.value, { 1: [], 0: void 0 }) : b.value), v = { listboxState: i, value: m, mode: h, compare(k, g) {
21963
21939
  if (typeof n.by == "string") {
21964
21940
  let O = n.by;
21965
21941
  return (k == null ? void 0 : k[O]) === (g == null ? void 0 : g[O]);
21966
21942
  }
21967
21943
  return n.by(k, g);
21968
- }, orientation: I(() => n.horizontal ? "horizontal" : "vertical"), labelRef: s, buttonRef: o, optionsRef: l, disabled: I(() => n.disabled), options: a, searchQuery: p, activeOptionIndex: c, activationTrigger: d, closeListbox() {
21944
+ }, orientation: N(() => n.horizontal ? "horizontal" : "vertical"), labelRef: s, buttonRef: o, optionsRef: l, disabled: N(() => n.disabled), options: a, searchQuery: p, activeOptionIndex: c, activationTrigger: d, closeListbox() {
21969
21945
  n.disabled || i.value !== 1 && (i.value = 1, c.value = null);
21970
21946
  }, openListbox() {
21971
21947
  n.disabled || i.value !== 0 && (i.value = 0);
@@ -22001,8 +21977,8 @@ let ss = Xe({ name: "Listbox", emits: { "update:modelValue": (n) => !0 }, props:
22001
21977
  HS([o, l], (k, g) => {
22002
21978
  var O;
22003
21979
  v.closeListbox(), yh(g, yp.Loose) || (k.preventDefault(), (O = ke(o)) == null || O.focus());
22004
- }, I(() => i.value === 0)), Tn(Oh, v), KS(I(() => _t(i.value, { 0: Xi.Open, 1: Xi.Closed })));
22005
- let S = I(() => {
21980
+ }, N(() => i.value === 0)), Tn(Oh, v), KS(N(() => _t(i.value, { 0: Xi.Open, 1: Xi.Closed })));
21981
+ let S = N(() => {
22006
21982
  var k;
22007
21983
  return (k = ke(o)) == null ? void 0 : k.closest("form");
22008
21984
  });
@@ -22072,7 +22048,7 @@ let Or = Xe({ name: "ListboxButton", props: { as: { type: [Object, String], defa
22072
22048
  return (f = ke(o.optionsRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
22073
22049
  })));
22074
22050
  }
22075
- let c = FS(I(() => ({ as: n.as, type: e.type })), o.buttonRef);
22051
+ let c = FS(N(() => ({ as: n.as, type: e.type })), o.buttonRef);
22076
22052
  return () => {
22077
22053
  var d, f;
22078
22054
  let h = { open: o.listboxState.value === 0, disabled: o.disabled.value, value: o.value.value }, { ...b } = n, x = { ref: o.buttonRef, id: s, type: c.value, "aria-haspopup": "listbox", "aria-controls": (d = ke(o.optionsRef)) == null ? void 0 : d.id, "aria-expanded": o.listboxState.value === 0, "aria-labelledby": o.labelRef.value ? [(f = ke(o.labelRef)) == null ? void 0 : f.id, s].join(" ") : void 0, disabled: o.disabled.value === !0 ? !0 : void 0, onKeydown: l, onKeyup: a, onClick: p };
@@ -22120,7 +22096,7 @@ let Or = Xe({ name: "ListboxButton", props: { as: { type: [Object, String], defa
22120
22096
  break;
22121
22097
  }
22122
22098
  }
22123
- let p = WS(), c = I(() => p !== null ? (p.value & Xi.Open) === Xi.Open : o.listboxState.value === 0);
22099
+ let p = WS(), c = N(() => p !== null ? (p.value & Xi.Open) === Xi.Open : o.listboxState.value === 0);
22124
22100
  return () => {
22125
22101
  var d, f;
22126
22102
  let h = { open: o.listboxState.value === 0 }, { ...b } = n, x = { "aria-activedescendant": o.activeOptionIndex.value === null || (d = o.options.value[o.activeOptionIndex.value]) == null ? void 0 : d.id, "aria-multiselectable": o.mode.value === 1 ? !0 : void 0, "aria-labelledby": (f = ke(o.buttonRef)) == null ? void 0 : f.id, "aria-orientation": o.orientation.value, id: s, onKeydown: a, role: "listbox", tabIndex: 0, ref: o.optionsRef };
@@ -22130,11 +22106,11 @@ let Or = Xe({ name: "ListboxButton", props: { as: { type: [Object, String], defa
22130
22106
  var i;
22131
22107
  let s = (i = n.id) != null ? i : `headlessui-listbox-option-${Yo()}`, o = is("ListboxOption"), l = E(null);
22132
22108
  r({ el: l, $el: l });
22133
- let a = I(() => o.activeOptionIndex.value !== null ? o.options.value[o.activeOptionIndex.value].id === s : !1), p = I(() => _t(o.mode.value, { 0: () => o.compare(Ve(o.value.value), Ve(n.value)), 1: () => Ve(o.value.value).some((k) => o.compare(Ve(k), Ve(n.value))) })), c = I(() => _t(o.mode.value, { 1: () => {
22109
+ let a = N(() => o.activeOptionIndex.value !== null ? o.options.value[o.activeOptionIndex.value].id === s : !1), p = N(() => _t(o.mode.value, { 0: () => o.compare(Ve(o.value.value), Ve(n.value)), 1: () => Ve(o.value.value).some((k) => o.compare(Ve(k), Ve(n.value))) })), c = N(() => _t(o.mode.value, { 1: () => {
22134
22110
  var k;
22135
22111
  let g = Ve(o.value.value);
22136
22112
  return ((k = o.options.value.find((O) => g.some((T) => o.compare(Ve(T), Ve(O.dataRef.value))))) == null ? void 0 : k.id) === s;
22137
- }, 0: () => p.value })), d = QS(l), f = I(() => ({ disabled: n.disabled, value: n.value, get textValue() {
22113
+ }, 0: () => p.value })), d = QS(l), f = N(() => ({ disabled: n.disabled, value: n.value, get textValue() {
22138
22114
  return d();
22139
22115
  }, domRef: l }));
22140
22116
  dn(() => o.registerOption(s, f)), Uh(() => o.unregisterOption(s)), dn(() => {
@@ -22194,7 +22170,7 @@ const r2 = { class: "pbx-relative" }, i2 = { class: "pbx-flex pbx-justify-start
22194
22170
  }
22195
22171
  },
22196
22172
  setup(n) {
22197
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getTextColor);
22173
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getTextColor);
22198
22174
  return ee(
22199
22175
  s,
22200
22176
  async (o) => {
@@ -22316,7 +22292,7 @@ const r2 = { class: "pbx-relative" }, i2 = { class: "pbx-flex pbx-justify-start
22316
22292
  }
22317
22293
  },
22318
22294
  setup(n) {
22319
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getBackgroundColor);
22295
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getBackgroundColor);
22320
22296
  return ee(
22321
22297
  s,
22322
22298
  async (o) => {
@@ -22431,21 +22407,21 @@ const r2 = { class: "pbx-relative" }, i2 = { class: "pbx-flex pbx-justify-start
22431
22407
  }, O2 = {
22432
22408
  __name: "EditGetElement",
22433
22409
  setup(n) {
22434
- const { translate: e } = Me(), t = Ce(), r = Se, i = Vn("CustomMediaComponent"), s = I(() => r.getElement);
22435
- I(() => {
22410
+ const { translate: e } = Me(), t = Ce(), r = Se, i = Vn("CustomMediaComponent"), s = N(() => r.getElement);
22411
+ N(() => {
22436
22412
  var se;
22437
22413
  return (se = s.value) == null ? void 0 : se.tagName;
22438
22414
  });
22439
- const o = I(() => {
22415
+ const o = N(() => {
22440
22416
  const se = r.getShowModalTipTap;
22441
22417
  return se && S(), se;
22442
- }), l = I(() => r.getComponent), a = E(""), p = E(1), c = E(""), d = E(""), f = E(""), h = E(null), b = E(null), x = E(null), m = E(null), v = E(null), S = function() {
22418
+ }), l = N(() => r.getComponent), a = E(""), p = E(1), c = E(""), d = E(""), f = E(""), h = E(null), b = E(null), x = E(null), m = E(null), v = E(null), S = function() {
22443
22419
  t.toggleTipTapModal(!0), a.value = "success", p.value = 2, c.value = e("Manage Content"), d.value = null, f.value = null, h.value = null, b.value = "Save", x.value = function() {
22444
22420
  t.toggleTipTapModal(!1);
22445
22421
  }, v.value = function() {
22446
22422
  t.toggleTipTapModal(!0);
22447
22423
  };
22448
- }, k = I(() => r.getBasePrimaryImage), g = E(!1), O = E(""), T = E(""), B = E(""), H = E(null), q = E(null), L = E(null), D = function() {
22424
+ }, k = N(() => r.getBasePrimaryImage), g = E(!1), O = E(""), T = E(""), B = E(""), H = E(null), q = E(null), L = E(null), D = function() {
22449
22425
  g.value = !0, O.value = e("Media Library"), T.value = null, B.value = e("Close"), H.value = e(" Select image"), L.value = function() {
22450
22426
  g.value = !1;
22451
22427
  };
@@ -23289,7 +23265,7 @@ function P2() {
23289
23265
  const A2 = {
23290
23266
  key: 0,
23291
23267
  class: "pbx-min-h-[90vh] pbx-h-[90vh]"
23292
- }, _2 = { class: "pbx-flex pbx-items-center pbx-justify-center" }, L2 = { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, D2 = { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, N2 = { key: 1 }, I2 = { class: "pbx-mb-4 pbx-flex pbx-jusitify-left pbx-items-center pbx-gap-2" }, $2 = ["onClick"], R2 = {
23268
+ }, _2 = { class: "pbx-flex pbx-items-center pbx-justify-center" }, L2 = { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, D2 = { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, I2 = { key: 1 }, N2 = { class: "pbx-mb-4 pbx-flex pbx-jusitify-left pbx-items-center pbx-gap-2" }, $2 = ["onClick"], R2 = {
23293
23269
  key: 0,
23294
23270
  class: "pbx-mb-8"
23295
23271
  }, H2 = { class: "pbx-myQuaternaryHeader pbx-mb-4" }, F2 = { class: "pbx-mb-4 pbx-flex pbx-jusitify-left pbx-items-center pbx-gap-2" }, j2 = ["onClick"], z2 = { class: "pbx-grid pbx-grid-cols-1 sm:pbx-grid-cols-2 md:pbx-grid-cols-3 pbx-gap-4 pbx-pb-4 pbx-min-h-[96rem]" }, V2 = ["onClick"], q2 = { class: "pbx-overflow-hidden pbx-whitespace-pre-line pbx-flex-1 pbx-h-auto pbx-border-0 pbx-border-solid pbx-border-b pbx-border-gray-200 lg:pbx-py-10 pbx-py-8 pbx-px-2" }, U2 = ["innerHTML"], W2 = { class: "pbx-p-3" }, K2 = { class: "pbx-myPrimaryParagraph pbx-text-sm pbx-font-normal" }, G2 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-pt-2" }, J2 = { class: "pbx-mb-8" }, Y2 = { class: "pbx-myQuaternaryHeader pbx-mb-4" }, Q2 = { class: "pbx-px-2 pbx-grid pbx-grid-cols-1 sm:pbx-grid-cols-2 md:pbx-grid-cols-3 lg:pbx-grid-cols-4 pbx-gap-4" }, X2 = ["onClick"], Z2 = { class: "pbx-max-h-72 pbx-cursor-pointer pbx-object-contain pbx-bg-white pbx-mx-auto" }, ek = { class: "pbx-myPrimaryParagraph pbx-text-base pbx-font-medium" }, tk = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-pt-2" }, nk = {
@@ -23304,13 +23280,13 @@ const A2 = {
23304
23280
  }
23305
23281
  },
23306
23282
  setup(n) {
23307
- const { translate: e } = Me(), t = Ce(), r = E(!1), i = E("Components"), s = ["Components", "Themes"], o = E("All"), l = I(() => {
23283
+ const { translate: e } = Me(), t = Ce(), r = E(!1), i = E("Components"), s = ["Components", "Themes"], o = E("All"), l = N(() => {
23308
23284
  const m = Ll[0].components.data.map((v) => v.category);
23309
23285
  return ["All", ...new Set(m)];
23310
- }), a = I(() => o.value === "All" ? Ll[0].components.data : Ll[0].components.data.filter((m) => m.category === o.value)), p = E("All"), c = I(() => {
23286
+ }), a = N(() => o.value === "All" ? Ll[0].components.data : Ll[0].components.data.filter((m) => m.category === o.value)), p = E("All"), c = N(() => {
23311
23287
  const m = Dl[0].themes.data.map((v) => v.category);
23312
23288
  return ["All", ...new Set(m)];
23313
- }), d = I(() => p.value === "All" ? Dl[0].themes.data : Dl[0].themes.data.filter((m) => m.category === p.value)), { closeAddComponentModal: f } = P2(), h = async function(m) {
23289
+ }), d = N(() => p.value === "All" ? Dl[0].themes.data : Dl[0].themes.data.filter((m) => m.category === p.value)), { closeAddComponentModal: f } = P2(), h = async function(m) {
23314
23290
  r.value = !0, await t.addTheme(m), f(), r.value = !1;
23315
23291
  }, b = async function(m) {
23316
23292
  r.value = !0;
@@ -23339,8 +23315,8 @@ const A2 = {
23339
23315
  ])
23340
23316
  ])
23341
23317
  ])) : A("", !0),
23342
- r.value ? A("", !0) : (w(), M("div", N2, [
23343
- u("div", I2, [
23318
+ r.value ? A("", !0) : (w(), M("div", I2, [
23319
+ u("div", N2, [
23344
23320
  (w(), M(X, null, de(s, (S) => u("button", {
23345
23321
  key: S,
23346
23322
  onClick: (k) => i.value = S,
@@ -23524,7 +23500,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23524
23500
  }, kd = {
23525
23501
  __name: "ClassEditor",
23526
23502
  setup(n) {
23527
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getCurrentClasses);
23503
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getCurrentClasses);
23528
23504
  ee(
23529
23505
  s,
23530
23506
  (p) => {
@@ -23580,7 +23556,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23580
23556
  "onUpdate:modelValue": c[0] || (c[0] = (d) => o.value = d),
23581
23557
  type: "text",
23582
23558
  placeholder: y(e)("Type class"),
23583
- onKeydown: c[1] || (c[1] = Il((d) => a(), ["enter"])),
23559
+ onKeydown: c[1] || (c[1] = Nl((d) => a(), ["enter"])),
23584
23560
  autocomplete: "off",
23585
23561
  class: "pbx-myPrimaryInput"
23586
23562
  }, null, 40, _k), [
@@ -23598,7 +23574,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23598
23574
  _: 1
23599
23575
  }));
23600
23576
  }
23601
- }, Dk = { class: "pbx-myPrimaryInputLabel pbx-my-4" }, Nk = { class: "pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4" }, Ik = ["onClick"], $k = { class: "pbx-flex pbx-items-center pbx-gap-1" }, Rk = { class: "pbx-mr-1" }, Hk = { class: "pbx-my-2 pbx-py-2" }, Fk = {
23577
+ }, Dk = { class: "pbx-myPrimaryInputLabel pbx-my-4" }, Ik = { class: "pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4" }, Nk = ["onClick"], $k = { class: "pbx-flex pbx-items-center pbx-gap-1" }, Rk = { class: "pbx-mr-1" }, Hk = { class: "pbx-my-2 pbx-py-2" }, Fk = {
23602
23578
  for: "custom-style-property",
23603
23579
  class: "pbx-myPrimaryInputLabel"
23604
23580
  }, jk = { class: "pbx-flex pbx-gap-2 pbx-flex-col pbx-item-center" }, zk = ["placeholder", "onKeydown"], Vk = ["placeholder"], qk = {
@@ -23607,7 +23583,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23607
23583
  }, Cd = {
23608
23584
  __name: "StyleEditor",
23609
23585
  setup(n) {
23610
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getCurrentStyles);
23586
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getCurrentStyles);
23611
23587
  ee(
23612
23588
  s,
23613
23589
  (f) => {
@@ -23637,7 +23613,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23637
23613
  u("p", Dk, C(y(e)(
23638
23614
  "These are the inline styles applied by the builder. Add your own styles and press Enter to apply them to the selected element."
23639
23615
  )), 1),
23640
- u("div", Nk, [
23616
+ u("div", Ik, [
23641
23617
  (w(!0), M(X, null, de(i.value, (b, x) => (w(), M("div", {
23642
23618
  key: x,
23643
23619
  class: "pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",
@@ -23648,7 +23624,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23648
23624
  u("div", $k, [
23649
23625
  u("span", Rk, C(x) + ": " + C(b) + "; ", 1)
23650
23626
  ])
23651
- ], 8, Ik))), 128))
23627
+ ], 8, Nk))), 128))
23652
23628
  ]),
23653
23629
  h[2] || (h[2] = u("hr", null, null, -1)),
23654
23630
  u("div", Hk, [
@@ -23659,7 +23635,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23659
23635
  "onUpdate:modelValue": h[0] || (h[0] = (b) => o.value = b),
23660
23636
  type: "text",
23661
23637
  placeholder: y(e)("property"),
23662
- onKeydown: Il(bt(c, ["prevent"]), ["enter"]),
23638
+ onKeydown: Nl(bt(c, ["prevent"]), ["enter"]),
23663
23639
  autocomplete: "off",
23664
23640
  class: "pbx-myPrimaryInput"
23665
23641
  }, null, 40, zk), [
@@ -23672,7 +23648,7 @@ const Dt = /* @__PURE__ */ Jo(yk, [["render", kk]]), Ck = { class: "pbx-myPrimar
23672
23648
  "onUpdate:modelValue": h[1] || (h[1] = (b) => l.value = b),
23673
23649
  type: "text",
23674
23650
  placeholder: y(e)("value"),
23675
- onKeydown: Il(d, ["enter"]),
23651
+ onKeydown: Nl(d, ["enter"]),
23676
23652
  autocomplete: "off",
23677
23653
  class: "pbx-myPrimaryInput"
23678
23654
  }, null, 40, Vk), [
@@ -23700,7 +23676,7 @@ function Uk(n) {
23700
23676
  const Wk = ["src"], Kk = {
23701
23677
  __name: "ImageEditor",
23702
23678
  setup(n) {
23703
- const { translate: e } = Me(), t = Se, r = Vn("CustomMediaComponent"), i = E(!1), s = E(!1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = I(() => (t.getBasePrimaryImage && b(t.getBasePrimaryImage), t.getBasePrimaryImage)), h = function() {
23679
+ const { translate: e } = Me(), t = Se, r = Vn("CustomMediaComponent"), i = E(!1), s = E(!1), o = E(""), l = E(""), a = E(""), p = E(null), c = E(null), d = E(null), f = N(() => (t.getBasePrimaryImage && b(t.getBasePrimaryImage), t.getBasePrimaryImage)), h = function() {
23704
23680
  s.value = !0, o.value = e("Media Library"), l.value = null, a.value = e("Close"), p.value = e(" Select image"), d.value = function() {
23705
23681
  s.value = !1;
23706
23682
  };
@@ -23748,7 +23724,7 @@ const Wk = ["src"], Kk = {
23748
23724
  }, nC = {
23749
23725
  __name: "ManageBackgroundOpacity",
23750
23726
  setup(n) {
23751
- const e = Ce(), t = Se, r = E(null), i = I(() => t.getBackgroundOpacity);
23727
+ const e = Ce(), t = Se, r = E(null), i = N(() => t.getBackgroundOpacity);
23752
23728
  return ee(
23753
23729
  i,
23754
23730
  async (s) => {
@@ -23848,7 +23824,7 @@ const Wk = ["src"], Kk = {
23848
23824
  }, dC = {
23849
23825
  __name: "ManageOpacity",
23850
23826
  setup(n) {
23851
- const e = Ce(), t = Se, r = E(null), i = I(() => t.getOpacity);
23827
+ const e = Ce(), t = Se, r = E(null), i = N(() => t.getOpacity);
23852
23828
  return ee(
23853
23829
  i,
23854
23830
  async (s) => {
@@ -23982,7 +23958,7 @@ const Wk = ["src"], Kk = {
23982
23958
  }, Md = {
23983
23959
  __name: "Typography",
23984
23960
  setup(n) {
23985
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = E(null), c = E(null), d = I(() => r.getFontBase), f = I(() => r.getFontDesktop), h = I(() => r.getFontTablet), b = I(() => r.getFontMobile), x = I(() => r.getFontWeight), m = I(() => r.getFontFamily), v = I(() => r.getFontStyle);
23961
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = E(null), c = E(null), d = N(() => r.getFontBase), f = N(() => r.getFontDesktop), h = N(() => r.getFontTablet), b = N(() => r.getFontMobile), x = N(() => r.getFontWeight), m = N(() => r.getFontFamily), v = N(() => r.getFontStyle);
23986
23962
  return ee(
23987
23963
  d,
23988
23964
  async (S) => {
@@ -24111,7 +24087,7 @@ const Wk = ["src"], Kk = {
24111
24087
  }, Ed = {
24112
24088
  __name: "Padding",
24113
24089
  setup(n) {
24114
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = I(() => r.getFontVerticalPadding), p = I(() => r.getFontHorizontalPadding), c = I(() => r.getFontVerticalMargin), d = I(() => r.getFontHorizontalMargin);
24090
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = N(() => r.getFontVerticalPadding), p = N(() => r.getFontHorizontalPadding), c = N(() => r.getFontVerticalMargin), d = N(() => r.getFontHorizontalMargin);
24115
24091
  return ee(
24116
24092
  a,
24117
24093
  async (f) => {
@@ -24178,7 +24154,7 @@ const Wk = ["src"], Kk = {
24178
24154
  _: 1
24179
24155
  }));
24180
24156
  }
24181
- }, DC = { class: "pbx-my-2 pbx-py-2" }, NC = { class: "pbx-pt-4 pbx-pb-2 pbx-mb-4" }, IC = { class: "pbx-myPrimaryInputLabel pbx-font-medium pbx-italic" }, $C = {
24157
+ }, DC = { class: "pbx-my-2 pbx-py-2" }, IC = { class: "pbx-pt-4 pbx-pb-2 pbx-mb-4" }, NC = { class: "pbx-myPrimaryInputLabel pbx-font-medium pbx-italic" }, $C = {
24182
24158
  for: "vertical-margin",
24183
24159
  class: "pbx-myPrimaryInputLabel"
24184
24160
  }, RC = {
@@ -24193,7 +24169,7 @@ const Wk = ["src"], Kk = {
24193
24169
  }, Td = {
24194
24170
  __name: "Margin",
24195
24171
  setup(n) {
24196
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = I(() => r.getFontVerticalPadding), p = I(() => r.getFontHorizontalPadding), c = I(() => r.getFontVerticalMargin), d = I(() => r.getFontHorizontalMargin);
24172
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = N(() => r.getFontVerticalPadding), p = N(() => r.getFontHorizontalPadding), c = N(() => r.getFontVerticalMargin), d = N(() => r.getFontHorizontalMargin);
24197
24173
  return ee(
24198
24174
  a,
24199
24175
  async (f) => {
@@ -24224,8 +24200,8 @@ const Wk = ["src"], Kk = {
24224
24200
  ]),
24225
24201
  content: V(() => [
24226
24202
  u("div", DC, [
24227
- u("div", NC, [
24228
- u("p", IC, C(y(e)("Large Screens Only")), 1),
24203
+ u("div", IC, [
24204
+ u("p", NC, C(y(e)("Large Screens Only")), 1),
24229
24205
  h[4] || (h[4] = u("hr", null, null, -1))
24230
24206
  ]),
24231
24207
  u("label", $C, C(y(e)("Vertical Margin")), 1),
@@ -24293,7 +24269,7 @@ const Wk = ["src"], Kk = {
24293
24269
  }, Od = {
24294
24270
  __name: "BorderRadius",
24295
24271
  setup(n) {
24296
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = I(() => r.getBorderRadiusGlobal), c = I(() => r.getBorderRadiusTopLeft), d = I(() => r.getBorderRadiusTopRight), f = I(() => r.getBorderRadiusBottomleft), h = I(() => r.getBorderRadiusBottomRight);
24272
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = E(null), a = E(null), p = N(() => r.getBorderRadiusGlobal), c = N(() => r.getBorderRadiusTopLeft), d = N(() => r.getBorderRadiusTopRight), f = N(() => r.getBorderRadiusBottomleft), h = N(() => r.getBorderRadiusBottomRight);
24297
24273
  return ee(
24298
24274
  p,
24299
24275
  async (b) => {
@@ -24433,7 +24409,7 @@ const Wk = ["src"], Kk = {
24433
24409
  }, Bd = {
24434
24410
  __name: "Borders",
24435
24411
  setup(n) {
24436
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = I(() => r.getBorderStyle), a = I(() => r.getBorderWidth), p = I(() => r.getBorderColor);
24412
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = E(null), o = E(null), l = N(() => r.getBorderStyle), a = N(() => r.getBorderWidth), p = N(() => r.getBorderColor);
24437
24413
  return ee(
24438
24414
  l,
24439
24415
  async (c) => {
@@ -24604,7 +24580,7 @@ const Wk = ["src"], Kk = {
24604
24580
  }, LM = { class: "pbx-flex pbx-justify-end pbx-min-h-6" }, DM = {
24605
24581
  key: 0,
24606
24582
  class: "pbx-myPrimaryParagraphError"
24607
- }, NM = { class: "pbx-border-0 pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-flex pbx-items-center pbx-justify-end" }, IM = { class: "pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center" }, $M = { class: "sm:pbx-grid-cols-2 sm:pbx-items-end sm:pbx-justify-end pbx-flex sm:pbx-flex-row pbx-flex-col pbx-myPrimaryGap sm:pbx-w-5/6 pbx-w-full" }, RM = {
24583
+ }, IM = { class: "pbx-border-0 pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-flex pbx-items-center pbx-justify-end" }, NM = { class: "pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center" }, $M = { class: "sm:pbx-grid-cols-2 sm:pbx-items-end sm:pbx-justify-end pbx-flex sm:pbx-flex-row pbx-flex-col pbx-myPrimaryGap sm:pbx-w-5/6 pbx-w-full" }, RM = {
24608
24584
  key: 1,
24609
24585
  class: "pbx-flex pbx-items-center pbx-my-2 pbx-justify-end"
24610
24586
  }, Pd = {
@@ -24615,7 +24591,7 @@ const Wk = ["src"], Kk = {
24615
24591
  }
24616
24592
  },
24617
24593
  setup(n) {
24618
- const e = Ce(), t = Se, { translate: r } = Me(), i = n, s = I(() => t.getElement), o = I(() => !s.value || !(s.value instanceof HTMLElement) ? "" : s.value.outerHTML), l = E(!1), a = E(""), p = E(""), c = async () => {
24594
+ const e = Ce(), t = Se, { translate: r } = Me(), i = n, s = N(() => t.getElement), o = N(() => !s.value || !(s.value instanceof HTMLElement) ? "" : s.value.outerHTML), l = E(!1), a = E(""), p = E(""), c = async () => {
24619
24595
  if (l.value = !0, !i.globalPage) {
24620
24596
  a.value = o.value;
24621
24597
  return;
@@ -24713,8 +24689,8 @@ const Wk = ["src"], Kk = {
24713
24689
  u("div", LM, [
24714
24690
  h.value ? (w(), M("p", DM, " Error: " + C(h.value), 1)) : A("", !0)
24715
24691
  ]),
24716
- u("div", NM, [
24717
- u("div", IM, [
24692
+ u("div", IM, [
24693
+ u("div", NM, [
24718
24694
  u("div", $M, [
24719
24695
  f.value ? A("", !0) : (w(), M(X, { key: 0 }, [
24720
24696
  u("button", {
@@ -24755,11 +24731,11 @@ const Wk = ["src"], Kk = {
24755
24731
  __name: "RightSidebarEditor",
24756
24732
  emits: ["closeEditor"],
24757
24733
  setup(n) {
24758
- const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = I(() => r.getComponents), o = I(() => r.getElement), l = I(() => {
24734
+ const { translate: e } = Me(), t = Ce(), r = Se, i = E(null), s = N(() => r.getComponents), o = N(() => r.getElement), l = N(() => {
24759
24735
  var m;
24760
24736
  return (m = o.value) == null ? void 0 : m.tagName;
24761
24737
  });
24762
- I(() => o.value instanceof HTMLElement && o.value.innerText.trim() !== " " || o.value instanceof HTMLImageElement);
24738
+ N(() => o.value instanceof HTMLElement && o.value.innerText.trim() !== " " || o.value instanceof HTMLImageElement);
24763
24739
  const a = E(null);
24764
24740
  let p = 0;
24765
24741
  ee(
@@ -24992,10 +24968,10 @@ const Wk = ["src"], Kk = {
24992
24968
  }, 8, ["showModalBuilder", "title"])
24993
24969
  ]));
24994
24970
  }
24995
- }, CE = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, ME = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, EE = { class: "pbx-px-2" }, TE = { class: "pbx-mt-8" }, OE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, BE = { class: "pbx-overflow-x-auto" }, PE = { class: "pbx-min-w-full" }, AE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, _E = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, LE = { class: "pbx-min-w-[30rem] pbx-w-max" }, DE = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium pbx-bg-blue-100 pbx-text-blue-800" }, NE = {
24971
+ }, CE = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, ME = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, EE = { class: "pbx-px-2" }, TE = { class: "pbx-mt-8" }, OE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, BE = { class: "pbx-overflow-x-auto" }, PE = { class: "pbx-min-w-full" }, AE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, _E = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, LE = { class: "pbx-min-w-[30rem] pbx-w-max" }, DE = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium pbx-bg-blue-100 pbx-text-blue-800" }, IE = {
24996
24972
  key: 0,
24997
24973
  class: "pbx-mt-4"
24998
- }, IE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, $E = { class: "pbx-overflow-x-auto" }, RE = { class: "pbx-min-w-full" }, HE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, FE = { key: 0 }, jE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, zE = { class: "pbx-min-w-[30rem] pbx-w-max" }, VE = { key: 1 }, qE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, UE = { class: "pbx-min-w-[30rem] pbx-w-max" }, WE = {
24974
+ }, NE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, $E = { class: "pbx-overflow-x-auto" }, RE = { class: "pbx-min-w-full" }, HE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, FE = { key: 0 }, jE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, zE = { class: "pbx-min-w-[30rem] pbx-w-max" }, VE = { key: 1 }, qE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, UE = { class: "pbx-min-w-[30rem] pbx-w-max" }, WE = {
24999
24975
  key: 1,
25000
24976
  class: "pbx-mt-8"
25001
24977
  }, KE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, GE = { class: "pbx-overflow-x-auto" }, JE = { class: "pbx-min-w-full" }, YE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, QE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, XE = { class: "pbx-min-w-[30rem] pbx-w-max" }, ZE = {
@@ -25010,13 +24986,13 @@ const Wk = ["src"], Kk = {
25010
24986
  }, oT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, lT = { class: "pbx-overflow-x-auto" }, aT = { class: "pbx-min-w-full" }, pT = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, cT = { key: 0 }, dT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, uT = { class: "pbx-min-w-[30rem] pbx-w-max" }, fT = { key: 1 }, hT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, bT = { class: "pbx-min-w-[30rem] pbx-w-max" }, mT = { key: 2 }, xT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, gT = { class: "pbx-min-w-[30rem] pbx-w-max" }, yT = { key: 3 }, vT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, wT = { class: "pbx-min-w-[30rem] pbx-w-max" }, ST = {
25011
24987
  key: 3,
25012
24988
  class: "pbx-mt-8"
25013
- }, kT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, CT = { class: "pbx-overflow-x-auto" }, MT = { class: "pbx-min-w-full" }, ET = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, TT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, OT = { class: "pbx-min-w-[30rem] pbx-w-max" }, BT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, PT = ["src"], AT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, _T = { class: "pbx-min-w-[30rem] pbx-w-max" }, LT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, DT = { class: "pbx-pr-6" }, NT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, IT = { class: "pbx-whitespace-nowrap" }, $T = {
24989
+ }, kT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, CT = { class: "pbx-overflow-x-auto" }, MT = { class: "pbx-min-w-full" }, ET = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, TT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, OT = { class: "pbx-min-w-[30rem] pbx-w-max" }, BT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, PT = ["src"], AT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, _T = { class: "pbx-min-w-[30rem] pbx-w-max" }, LT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, DT = { class: "pbx-pr-6" }, IT = { class: "pbx-flex pbx-items-center pbx-space-x-3" }, NT = { class: "pbx-whitespace-nowrap" }, $T = {
25014
24990
  key: 4,
25015
24991
  class: "pbx-mt-8"
25016
24992
  }, RT = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, HT = { class: "pbx-overflow-x-auto" }, FT = { class: "pbx-w-max" }, jT = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, zT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, VT = { class: "pbx-min-w-[30rem] pbx-w-max" }, qT = { key: 0 }, UT = { key: 1 }, WT = { key: 0 }, KT = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, GT = { class: "pbx-min-w-[30rem] pbx-w-max" }, JT = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, YT = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, QT = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, XT = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, ZT = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, e3 = {
25017
24993
  __name: "PageBuilderSettings",
25018
24994
  setup(n) {
25019
- const e = "3.4.14", t = Se, r = I(() => t.getPageBuilderConfig);
24995
+ const e = "3.4.16", t = Se, r = N(() => t.getPageBuilderConfig);
25020
24996
  return (i, s) => {
25021
24997
  var o, l, a, p, c, d, f, h, b, x, m, v, S, k, g, O;
25022
24998
  return w(), M("div", CE, [
@@ -25060,9 +25036,9 @@ const Wk = ["src"], Kk = {
25060
25036
  ])
25061
25037
  ])
25062
25038
  ]),
25063
- (o = r.value) != null && o.resourceData && !y(On)(r.value.resourceData) ? (w(), M("div", NE, [
25039
+ (o = r.value) != null && o.resourceData && !y(On)(r.value.resourceData) ? (w(), M("div", IE, [
25064
25040
  s[6] || (s[6] = u("h4", { class: "pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2" }, "Resource Data", -1)),
25065
- u("div", IE, [
25041
+ u("div", NE, [
25066
25042
  u("div", $E, [
25067
25043
  u("table", RE, [
25068
25044
  s[5] || (s[5] = u("thead", { class: "pbx-bg-gray-50" }, [
@@ -25265,8 +25241,8 @@ const Wk = ["src"], Kk = {
25265
25241
  u("div", _T, [
25266
25242
  u("div", LT, [
25267
25243
  u("div", DT, [
25268
- u("div", NT, [
25269
- u("span", IT, C(r.value.pageBuilderLogo.src), 1)
25244
+ u("div", IT, [
25245
+ u("span", NT, C(r.value.pageBuilderLogo.src), 1)
25270
25246
  ])
25271
25247
  ])
25272
25248
  ])
@@ -25354,13 +25330,13 @@ const Wk = ["src"], Kk = {
25354
25330
  }, t3 = { class: "pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2" }, n3 = { class: "pbx-flex pbx-items-left pbx-flex-col pbx-myPrimaryGap pbx-border-myPrimaryMediumGrayColor" }, r3 = { class: "pbx-myPrimaryParagraph" }, i3 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, s3 = { class: "pbx-text-gray-100 pbx-overflow-hidden pbx-bg-gray-900" }, o3 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, l3 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, a3 = { class: "pbx-px-4 pbx-py-4 pbx-text-gray-100" }, p3 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs" }, c3 = { class: "pbx-text-xs pbx-pb-2" }, d3 = { class: "pbx-text-xs pbx-pb-2" }, u3 = { class: "pbx-text-xs pbx-pb-2" }, f3 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2" }, h3 = { class: "pbx-overflow-hidden pbx-bg-gray-900" }, b3 = { class: "pbx-flex pbx-bg-gray-900 pbx-ring-1 ring-white/5" }, m3 = { class: "pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor" }, x3 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs pbx-break-all" }, g3 = { key: 0 }, y3 = { key: 0 }, v3 = { class: "pbx-pb-2 pbx-text-xs" }, w3 = {
25355
25331
  key: 1,
25356
25332
  class: "pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"
25357
- }, S3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, k3 = { class: "pbx-overflow-x-auto" }, C3 = { class: "pbx-min-w-full" }, M3 = { class: "pbx-bg-gray-900" }, E3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, T3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, O3 = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-b" }, B3 = { class: "pbx-overflow-x-auto" }, P3 = { class: "pbx-min-w-full" }, A3 = { class: "pbx-bg-gray-900" }, _3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, L3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, D3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, N3 = { class: "pbx-overflow-x-auto" }, I3 = { class: "pbx-min-w-full" }, $3 = { class: "pbx-bg-gray-900" }, R3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, H3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, F3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, j3 = { key: 1 }, z3 = { key: 0 }, V3 = { class: "pbx-pb-2 pbx-text-xs" }, q3 = {
25333
+ }, S3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, k3 = { class: "pbx-overflow-x-auto" }, C3 = { class: "pbx-min-w-full" }, M3 = { class: "pbx-bg-gray-900" }, E3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, T3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, O3 = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-b" }, B3 = { class: "pbx-overflow-x-auto" }, P3 = { class: "pbx-min-w-full" }, A3 = { class: "pbx-bg-gray-900" }, _3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, L3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, D3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, I3 = { class: "pbx-overflow-x-auto" }, N3 = { class: "pbx-min-w-full" }, $3 = { class: "pbx-bg-gray-900" }, R3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, H3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, F3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, j3 = { key: 1 }, z3 = { key: 0 }, V3 = { class: "pbx-pb-2 pbx-text-xs" }, q3 = {
25358
25334
  key: 1,
25359
25335
  class: "pbx-overflow-hidden pbx-border-solid pbx-border pbx-border-gray-100 pbx-mb-6"
25360
- }, U3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, W3 = { class: "pbx-overflow-x-auto" }, K3 = { class: "pbx-min-w-full" }, G3 = { class: "pbx-bg-gray-900" }, J3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, Y3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, Q3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, X3 = { class: "pbx-overflow-x-auto" }, Z3 = { class: "pbx-min-w-full" }, eO = { class: "pbx-bg-gray-900" }, tO = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200" }, nO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, rO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, iO = { class: "pbx-overflow-x-auto" }, sO = { class: "pbx-min-w-full" }, oO = { class: "pbx-bg-gray-900" }, lO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, aO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, pO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, cO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, dO = ["innerHTML"], uO = { key: 2 }, fO = { key: 0 }, hO = { class: "pbx-pb-2 pbx-text-xs" }, bO = { key: 1 }, mO = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, xO = { class: "pbx-overflow-x-auto" }, gO = { class: "pbx-min-w-full" }, yO = { class: "pbx-bg-gray-900" }, vO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, wO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, SO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, kO = { class: "pbx-overflow-x-auto" }, CO = { class: "pbx-min-w-full" }, MO = { class: "pbx-bg-gray-900" }, EO = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200" }, TO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, OO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, BO = { class: "pbx-overflow-x-auto" }, PO = { class: "pbx-min-w-full" }, AO = { class: "pbx-bg-gray-900" }, _O = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, LO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, DO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, NO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, IO = ["innerHTML"], $O = {
25336
+ }, U3 = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, W3 = { class: "pbx-overflow-x-auto" }, K3 = { class: "pbx-min-w-full" }, G3 = { class: "pbx-bg-gray-900" }, J3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, Y3 = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, Q3 = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, X3 = { class: "pbx-overflow-x-auto" }, Z3 = { class: "pbx-min-w-full" }, eO = { class: "pbx-bg-gray-900" }, tO = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200" }, nO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, rO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, iO = { class: "pbx-overflow-x-auto" }, sO = { class: "pbx-min-w-full" }, oO = { class: "pbx-bg-gray-900" }, lO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, aO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, pO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, cO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, dO = ["innerHTML"], uO = { key: 2 }, fO = { key: 0 }, hO = { class: "pbx-pb-2 pbx-text-xs" }, bO = { key: 1 }, mO = { class: "pbx-border-0 pbx-bg-gray-900 pbx-pt-4 pbx-1 pbx-border-solid pbx-border-b pbx-border-gray-200" }, xO = { class: "pbx-overflow-x-auto" }, gO = { class: "pbx-min-w-full" }, yO = { class: "pbx-bg-gray-900" }, vO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, wO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, SO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, kO = { class: "pbx-overflow-x-auto" }, CO = { class: "pbx-min-w-full" }, MO = { class: "pbx-bg-gray-900" }, EO = { class: "pbx-border-0 pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-solid pbx-border-t pbx-border-gray-200" }, TO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, OO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line" }, BO = { class: "pbx-overflow-x-auto" }, PO = { class: "pbx-min-w-full" }, AO = { class: "pbx-bg-gray-900" }, _O = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, LO = { class: "pbx-bg-gray-900 pbx-divide-y pbx-divide-gray-200" }, DO = { class: "pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal" }, IO = { class: "pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-wrap pbx-font-sans pbx-flex pbx-items-start pbx-justify-left" }, NO = ["innerHTML"], $O = {
25361
25337
  __name: "AdvancedPageBuilderSettings",
25362
25338
  setup(n) {
25363
- const { translate: e } = Me(), t = Se, r = I(() => t.getElement), i = I(() => t.getComponent), s = I(() => t.getComponents), o = E("element"), l = function(p) {
25339
+ const { translate: e } = Me(), t = Se, r = N(() => t.getElement), i = N(() => t.getComponent), s = N(() => t.getComponents), o = E("element"), l = function(p) {
25364
25340
  o.value = p;
25365
25341
  };
25366
25342
  function a(p) {
@@ -25490,8 +25466,8 @@ const Wk = ["src"], Kk = {
25490
25466
  ])
25491
25467
  ])
25492
25468
  ]),
25493
- u("div", N3, [
25494
- u("table", I3, [
25469
+ u("div", I3, [
25470
+ u("table", N3, [
25495
25471
  u("thead", $3, [
25496
25472
  u("tr", null, [
25497
25473
  u("th", R3, C(y(e)("Element classes:")), 1)
@@ -25616,12 +25592,12 @@ const Wk = ["src"], Kk = {
25616
25592
  u("tbody", LO, [
25617
25593
  u("tr", null, [
25618
25594
  u("td", DO, [
25619
- u("pre", NO, [
25595
+ u("pre", IO, [
25620
25596
  c[5] || (c[5] = we(" ")),
25621
25597
  u("code", {
25622
25598
  class: "pbx-font-sans pbx-w-full",
25623
25599
  innerHTML: a(O.html_code)
25624
- }, null, 8, IO),
25600
+ }, null, 8, NO),
25625
25601
  c[6] || (c[6] = we(`
25626
25602
  `))
25627
25603
  ])
@@ -25652,7 +25628,7 @@ const Wk = ["src"], Kk = {
25652
25628
  }, YO = { class: "pbx-absolute pbx-left-0 -pbx-ml-16 -pbx-mt-2 pbx-flex pbx-flex-col pbx-gap-3 pbx-shadow-lg pbx-bg-white pbx-w-max pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-2xl pbx-transition-all pbx-duration-200 pbx-ease-out pbx-pt-4 pbx-pr-4 pbx-pb-4 pbx-pl-2 pbx-z-30 pbx-opacity-0 pbx-pointer-events-none pbx-translate-y-2 group-hover:pbx-opacity-100 group-hover:pbx-pointer-events-auto group-hover:pbx-translate-y-0" }, QO = {
25653
25629
  __name: "ToolbarOption",
25654
25630
  setup(n) {
25655
- const { translate: e } = Me(), t = Ce(), r = Se, i = I(() => r.getPageBuilderConfig), s = E(!1), o = E(!1), l = E(""), a = E(1), p = E(""), c = E(""), d = E(""), f = E(null), h = E(null), b = E(null), x = E(null), m = E(null), v = function() {
25631
+ const { translate: e } = Me(), t = Ce(), r = Se, i = N(() => r.getPageBuilderConfig), s = E(!1), o = E(!1), l = E(""), a = E(1), p = E(""), c = E(""), d = E(""), f = E(null), h = E(null), b = E(null), x = E(null), m = E(null), v = function() {
25656
25632
  o.value = !0, l.value = "delete", a.value = 2, p.value = e("Remove all Components"), c.value = e("Are you sure you want to remove all Components?"), d.value = e("Close"), f.value = null, h.value = e("Delete"), b.value = function() {
25657
25633
  o.value = !1;
25658
25634
  }, m.value = async function() {
@@ -25765,10 +25741,10 @@ const Wk = ["src"], Kk = {
25765
25741
  };
25766
25742
  }
25767
25743
  };
25768
- let Nl = null;
25744
+ let Il = null;
25769
25745
  function XO() {
25770
25746
  return (n, e = 300) => {
25771
- Nl && clearTimeout(Nl), Nl = setTimeout(n, e);
25747
+ Il && clearTimeout(Il), Il = setTimeout(n, e);
25772
25748
  };
25773
25749
  }
25774
25750
  const ZO = {}, eB = { class: "pbx-bg-white pbx-flex pbx-justify-center pbx-items-center min-pbx-h-screen pbx-h-screen pbx-w-screen pbx-fixed pbx-inset-0 pbx-z-[10000]" };
@@ -25787,7 +25763,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25787
25763
  __name: "UndoRedo",
25788
25764
  emits: ["toolbar-hide-request"],
25789
25765
  setup(n, { emit: e }) {
25790
- const t = Ce(), r = e, i = Se, s = I(() => i.getIsLoadingGlobal), o = I(() => i.getHistoryIndex), l = I(() => i.getHistoryLength), a = I(() => o.value > 0), p = I(() => o.value < l.value - 1), c = async function() {
25766
+ const t = Ce(), r = e, i = Se, s = N(() => i.getIsLoadingGlobal), o = N(() => i.getHistoryIndex), l = N(() => i.getHistoryLength), a = N(() => o.value > 0), p = N(() => o.value < l.value - 1), c = async function() {
25791
25767
  a.value && (r("toolbar-hide-request"), await t.undo(), await t.clearHtmlSelection());
25792
25768
  }, d = async function() {
25793
25769
  p.value && (r("toolbar-hide-request"), await t.redo(), await t.clearHtmlSelection());
@@ -25857,7 +25833,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25857
25833
  }, _B = ["innerHTML", "onMouseup"], LB = {
25858
25834
  id: "pagebuilder-footer",
25859
25835
  class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-min-w-[64rem] pbx-max-w-[64rem] pbx-w-[64rem] pbx-flex-1 pbx-flex pbx-items-center pbx-justify-center pbx-border-0 pbx-border-t pbx-border-t-gray-200 pbx-border-solid pbx-bg-myPrimaryLightGrayColor pbx-py-4"
25860
- }, DB = { class: "lg:pbx-block pbx-hidden" }, NB = { class: "pbx-whitespace-nowrap" }, FB = {
25836
+ }, DB = { class: "lg:pbx-block pbx-hidden" }, IB = { class: "pbx-whitespace-nowrap" }, FB = {
25861
25837
  __name: "PageBuilder",
25862
25838
  props: {
25863
25839
  CustomMediaLibraryComponent: {
@@ -25899,7 +25875,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25899
25875
  _.lang = F, localStorage.setItem("userSettingsPageBuilder", JSON.stringify(_)), b.value = !1;
25900
25876
  }
25901
25877
  });
25902
- const x = I(() => l.getBuilderStarted), m = I(() => l.getPageBuilderConfig), v = I(() => l.getMenuRight), S = E(!1), k = E(""), g = E(""), O = function() {
25878
+ const x = N(() => l.getBuilderStarted), m = N(() => l.getPageBuilderConfig), v = N(() => l.getMenuRight), S = E(!1), k = E(""), g = E(""), O = function() {
25903
25879
  t.previewCurrentDesign();
25904
25880
  }, T = function() {
25905
25881
  k.value = i("Preview"), O(), S.value = !0;
@@ -25917,11 +25893,11 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25917
25893
  await t.clearHtmlSelection(), he.value = i("Add Components to Page"), fe.value = i("Close"), ce.value = !0, se.value = function() {
25918
25894
  ce.value = !1;
25919
25895
  };
25920
- }, re = I(() => l.getElement), dt = I(() => l.getComponents), Jt = I(() => l.getHasLocalDraftForUpdate);
25896
+ }, re = N(() => l.getElement), dt = N(() => l.getComponents), Jt = N(() => l.getHasLocalDraftForUpdate);
25921
25897
  ee(Jt, (F) => {
25922
25898
  F && Ot();
25923
25899
  });
25924
- const ut = I(() => !re.value || !(re.value instanceof HTMLElement) ? "" : {
25900
+ const ut = N(() => !re.value || !(re.value instanceof HTMLElement) ? "" : {
25925
25901
  src: re.value.getAttribute("src"),
25926
25902
  href: re.value.getAttribute("href"),
25927
25903
  style: re.value.getAttribute("style"),
@@ -25935,7 +25911,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25935
25911
  });
25936
25912
  const Mt = function(F) {
25937
25913
  l.setComponent(F);
25938
- }, st = I(() => l.getIsLoadingGlobal), ot = I(() => l.getIsSaving), hn = I(() => l.getIsLoadingResumeEditing), et = I(() => l.getIsRestoring), bn = E(1), Et = E(""), Tt = E(!1), Jn = E(""), mn = E(""), Yn = E(""), Qn = E(null), xn = E(null), gn = E(null), Xn = E(null), Zn = E(null), Ot = async function() {
25914
+ }, st = N(() => l.getIsLoadingGlobal), ot = N(() => l.getIsSaving), hn = N(() => l.getIsLoadingResumeEditing), et = N(() => l.getIsRestoring), bn = E(1), Et = E(""), Tt = E(!1), Jn = E(""), mn = E(""), Yn = E(""), Qn = E(null), xn = E(null), gn = E(null), Xn = E(null), Zn = E(null), Ot = async function() {
25939
25915
  Et.value = "warning", Tt.value = !0, Jn.value = i("Continue Your Work?"), mn.value = i(
25940
25916
  "We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently loaded from the database?"
25941
25917
  ), Yn.value = i("Use Saved Version"), Qn.value = null, xn.value = i("Continue Where I Left Off"), gn.value = async function() {
@@ -25944,7 +25920,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
25944
25920
  }, Zn.value = async function() {
25945
25921
  await t.resumeEditingFromDraft(), l.setHasLocalDraftForUpdate(!1), Tt.value = !1;
25946
25922
  };
25947
- }, It = E(1), yn = E(""), ft = E(!1), vn = E(""), er = E(""), tr = E(""), nr = E(null), rr = E(null), ps = E(null), cs = E(null), ds = E(null), Qo = async function() {
25923
+ }, Nt = E(1), yn = E(""), ft = E(!1), vn = E(""), er = E(""), tr = E(""), nr = E(null), rr = E(null), ps = E(null), cs = E(null), ds = E(null), Qo = async function() {
25948
25924
  await t.clearHtmlSelection(), yn.value = "success", ft.value = !0, vn.value = i("Do you want to reset this page?"), er.value = i(
25949
25925
  "Are you sure you want to reset this page? This will overwrite your current changes."
25950
25926
  ), tr.value = i("Close"), nr.value = null, rr.value = i("Reset changes"), ps.value = function() {
@@ -26051,7 +26027,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
26051
26027
  showDynamicModalBuilder: ft.value,
26052
26028
  isLoading: et.value,
26053
26029
  type: yn.value,
26054
- gridColumnAmount: It.value,
26030
+ gridColumnAmount: Nt.value,
26055
26031
  title: vn.value,
26056
26032
  description: er.value,
26057
26033
  firstButtonText: tr.value,
@@ -26375,7 +26351,7 @@ const Ah = /* @__PURE__ */ Jo(ZO, [["render", tB]]), nB = { class: "pbx-text-xs
26375
26351
  class: "pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-cursor-pointer"
26376
26352
  }, [
26377
26353
  u("span", DB, [
26378
- u("div", NB, C(y(i)("Add to the bottom")), 1)
26354
+ u("div", IB, C(y(i)("Add to the bottom")), 1)
26379
26355
  ]),
26380
26356
  _[33] || (_[33] = u("div", { class: "pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center" }, [
26381
26357
  u("button", {