@myissue/vue-website-page-builder 3.5.41 → 3.5.43

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 LR = Object.defineProperty;
2
2
  var ER = (o, e, t) => e in o ? LR(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var Ae = (o, e, t) => ER(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import * as tu from "vue";
5
- import { ref as S, readonly as AR, defineComponent as ae, computed as L, openBlock as f, createBlock as be, Teleport as wn, createElementVNode as p, createElementBlock as w, normalizeStyle as De, normalizeClass as O, toDisplayString as y, unref as g, renderSlot as ko, createCommentVNode as E, watchEffect as ui, Fragment as re, withCtx as U, shallowRef as $R, onMounted as bo, onBeforeUnmount as pr, h as mn, getCurrentInstance as um, nextTick as ue, markRaw as Ar, customRef as _R, effectScope as bm, toRaw as Tt, watch as le, hasInjectionContext as BR, inject as nr, reactive as IR, isRef as pa, isReactive as Zp, toRef as dd, getCurrentScope as HR, onScopeDispose as DR, toRefs as ou, withModifiers as Te, withDirectives as Ie, renderList as fe, vModelSelect as Mt, onBeforeMount as RR, createVNode as z, vModelText as Mo, Transition as Oo, provide as Io, resolveDynamicComponent as _l, cloneVNode as zR, onUnmounted as mm, createStaticVNode as ec, createTextVNode as Ne, withKeys as ca, useModel as Xt, mergeModels as gm, TransitionGroup as xm, useId as OR, vShow as Ir } from "vue";
5
+ import { ref as S, readonly as AR, defineComponent as ae, computed as L, openBlock as f, createBlock as be, Teleport as wn, createElementVNode as p, createElementBlock as w, normalizeStyle as De, normalizeClass as O, toDisplayString as y, unref as g, renderSlot as ko, createCommentVNode as E, watchEffect as ui, Fragment as re, withCtx as U, shallowRef as $R, onMounted as bo, onBeforeUnmount as pr, h as mn, getCurrentInstance as um, nextTick as ue, markRaw as Ar, customRef as _R, effectScope as bm, toRaw as Tt, watch as le, hasInjectionContext as BR, inject as nr, reactive as IR, isRef as pa, isReactive as Zp, toRef as pd, getCurrentScope as HR, onScopeDispose as DR, toRefs as ou, withModifiers as Te, withDirectives as Ie, renderList as fe, vModelSelect as Mt, onBeforeMount as RR, createVNode as z, vModelText as Mo, Transition as Oo, provide as Io, resolveDynamicComponent as Bl, cloneVNode as zR, onUnmounted as mm, createStaticVNode as ec, createTextVNode as Ne, withKeys as ca, useModel as Xt, mergeModels as gm, TransitionGroup as xm, useId as OR, vShow as Ir } from "vue";
6
6
  const hm = "تم النسخ", fm = "HTML", ym = "قابل للتحرير", vm = "أسطر", wm = "التخطيط", Sm = "الألوان", km = "التباعد", Cm = "الحدود", Tm = "متقدم", Pm = "أساسي", Mm = "ثانوي", Lm = "معاينة", Em = "Applied", Am = "Undo", $m = "Redo", _m = "of", Bm = "حفظ", Im = "خيارات", Hm = "الصورة الرمزية", Dm = "نشر", Rm = "مكون", zm = "أنماط", Om = "الإعدادات", Nm = "أدوات", Fm = "الطباعة", jm = "الخط", Vm = "اختر", qm = "موروث", Um = "الحشو", Wm = "الهامش", Gm = "عام", Km = "محدد", Jm = "الحدود", Ym = "شفاف", Qm = "إضافة", Xm = "المنتجات", Zm = "تصفح", eg = "الفئة", tg = "نظيف", og = "بحدود", rg = "ظل", ng = "مرتفع", ig = "محدد", ag = "إزالة", sg = "الخاصية", lg = "القيمة", dg = "إغلاق", pg = "التحرير", cg = "الخصائص", ug = "حذف", bg = "الجوال", mg = "غامق", gg = "رابط", xg = "قائمة", hg = "بحث", fg = "أفقي", yg = "عمودي", vg = "مربع", wg = "الصور", Sg = "السابق", kg = "التالي", Cg = "معلومات", Tg = "نص", Pg = "الأنواع", Mg = "السمات", Lg = "التسويق", Eg = "بطاقات", Ag = "شرائح", $g = "القسم الرئيسي", _g = "الميزات", Bg = "التسعير", Ig = "الفريق", Hg = "الأسئلة الشائعة", Dg = "اتصل", Rg = "أزرار", zg = "المكونات", Og = "مقالة", Ng = "مصفوفة", Fg = "المحتوى", jg = "عنصر", Vg = "مكون", qg = "الكل", Ug = "صورة", Wg = "التعتيم", Gg = "التطبيق", Kg = "الإصدار", Jg = "الخاصية", Yg = "القيمة", Qg = "العنوان", Xg = "المعرّف", Zg = "الإعداد", ex = "المظهر", tx = "اللغة", ox = "الإشعارات", rx = "مفعّل", nx = "معطّل", ix = "الشعار", ax = "الوضع", sx = "التكوين", lx = "السابق", dx = "العناوين", px = "الوسائط", cx = "الروابط", ux = "أعلى", bx = "أسفل", mx = "يسار", gx = "يمين", xx = "عنصر", hx = "عمودي", fx = "أفقي", yx = "تغطية", vx = "احتواء", wx = "الشكل", Sx = "تلقائي", kx = "مربع", Cx = "استبدال", Tx = "هبوط", Px = "مؤسسي", Mx = "Saved", Lx = "إعادة تعيين", Ex = "لون مميز", Ax = "تمييز", $x = "محايد", _x = "فاتح", NR = {
7
7
  "Reset Page": "إعادة تعيين الصفحة",
8
8
  "Global Page Styles": "أنماط الصفحة العامة",
@@ -8491,7 +8491,7 @@ const hm = "تم النسخ", fm = "HTML", ym = "قابل للتحرير", vm =
8491
8491
  right: L8,
8492
8492
  top: T8,
8493
8493
  value: wB
8494
- }, Symbol.toStringTag, { value: "Module" })), pz = /* @__PURE__ */ Object.assign({ "../locales/ar.json": FR, "../locales/da.json": VR, "../locales/de.json": UR, "../locales/en.json": GR, "../locales/es.json": JR, "../locales/fr.json": QR, "../locales/hi.json": ZR, "../locales/it.json": tz, "../locales/ja.json": rz, "../locales/pt.json": iz, "../locales/ru.json": sz, "../locales/zh-Hans.json": dz }), Rs = S({});
8494
+ }, Symbol.toStringTag, { value: "Module" })), pz = /* @__PURE__ */ Object.assign({ "../locales/ar.json": FR, "../locales/da.json": VR, "../locales/de.json": UR, "../locales/en.json": GR, "../locales/es.json": JR, "../locales/fr.json": QR, "../locales/hi.json": ZR, "../locales/it.json": tz, "../locales/ja.json": rz, "../locales/pt.json": iz, "../locales/ru.json": sz, "../locales/zh-Hans.json": dz }), zs = S({});
8495
8495
  function ru(o) {
8496
8496
  const e = `../locales/${o}.json`, t = pz[e];
8497
8497
  return t && typeof t == "object" && "default" in t ? t.default : null;
@@ -8502,25 +8502,25 @@ async function W8(o) {
8502
8502
  if (!e)
8503
8503
  throw new Error("English locale not found");
8504
8504
  if (o === "en") {
8505
- Rs.value = e;
8505
+ zs.value = e;
8506
8506
  return;
8507
8507
  }
8508
8508
  const t = ru(o);
8509
8509
  if (!t)
8510
8510
  throw new Error("Locale not found");
8511
- Rs.value = { ...e, ...t };
8511
+ zs.value = { ...e, ...t };
8512
8512
  } catch (e) {
8513
8513
  console.error(`Could not load translations for language: ${o}`, e), o !== "en" && await W8("en");
8514
8514
  }
8515
8515
  }
8516
8516
  function Se() {
8517
8517
  function o(e) {
8518
- return Rs.value[e] || e;
8518
+ return zs.value[e] || e;
8519
8519
  }
8520
8520
  return {
8521
8521
  translate: o,
8522
8522
  loadTranslations: W8,
8523
- currentTranslations: AR(Rs)
8523
+ currentTranslations: AR(zs)
8524
8524
  };
8525
8525
  }
8526
8526
  const cz = {
@@ -9282,11 +9282,11 @@ let oe = class Ht {
9282
9282
  }
9283
9283
  };
9284
9284
  oe.empty = new oe([], 0);
9285
- const pd = { index: 0, offset: 0 };
9285
+ const cd = { index: 0, offset: 0 };
9286
9286
  function Ua(o, e) {
9287
- return pd.index = o, pd.offset = e, pd;
9287
+ return cd.index = o, cd.offset = e, cd;
9288
9288
  }
9289
- function zs(o, e) {
9289
+ function Os(o, e) {
9290
9290
  if (o === e)
9291
9291
  return !0;
9292
9292
  if (!(o && typeof o == "object") || !(e && typeof e == "object"))
@@ -9298,11 +9298,11 @@ function zs(o, e) {
9298
9298
  if (o.length != e.length)
9299
9299
  return !1;
9300
9300
  for (let r = 0; r < o.length; r++)
9301
- if (!zs(o[r], e[r]))
9301
+ if (!Os(o[r], e[r]))
9302
9302
  return !1;
9303
9303
  } else {
9304
9304
  for (let r in o)
9305
- if (!(r in e) || !zs(o[r], e[r]))
9305
+ if (!(r in e) || !Os(o[r], e[r]))
9306
9306
  return !1;
9307
9307
  for (let r in e)
9308
9308
  if (!(r in o))
@@ -9364,7 +9364,7 @@ let je = class rp {
9364
9364
  another mark.
9365
9365
  */
9366
9366
  eq(e) {
9367
- return this == e || this.type == e.type && zs(this.attrs, e.attrs);
9367
+ return this == e || this.type == e.type && Os(this.attrs, e.attrs);
9368
9368
  }
9369
9369
  /**
9370
9370
  Convert this mark to a JSON-serializeable representation.
@@ -9536,7 +9536,7 @@ function Z8(o, e, t, r) {
9536
9536
  let { start: a, end: s } = $z(t, o);
9537
9537
  return pn(i, tI(o, a, s, e, r));
9538
9538
  }
9539
- else return pn(i, Os(o, e, r));
9539
+ else return pn(i, Ns(o, e, r));
9540
9540
  }
9541
9541
  function eI(o, e) {
9542
9542
  if (!e.type.compatibleContent(o.type))
@@ -9564,13 +9564,13 @@ function pn(o, e) {
9564
9564
  }
9565
9565
  function tI(o, e, t, r, n) {
9566
9566
  let i = o.depth > n && np(o, e, n + 1), a = r.depth > n && np(t, r, n + 1), s = [];
9567
- return Ji(null, o, n, s), i && a && e.index(n) == t.index(n) ? (eI(i, a), dn(pn(i, tI(o, e, t, r, n + 1)), s)) : (i && dn(pn(i, Os(o, e, n + 1)), s), Ji(e, t, n, s), a && dn(pn(a, Os(t, r, n + 1)), s)), Ji(r, null, n, s), new oe(s);
9567
+ return Ji(null, o, n, s), i && a && e.index(n) == t.index(n) ? (eI(i, a), dn(pn(i, tI(o, e, t, r, n + 1)), s)) : (i && dn(pn(i, Ns(o, e, n + 1)), s), Ji(e, t, n, s), a && dn(pn(a, Ns(t, r, n + 1)), s)), Ji(r, null, n, s), new oe(s);
9568
9568
  }
9569
- function Os(o, e, t) {
9569
+ function Ns(o, e, t) {
9570
9570
  let r = [];
9571
9571
  if (Ji(null, o, t, r), o.depth > t) {
9572
9572
  let n = np(o, e, t + 1);
9573
- dn(pn(n, Os(o, e, t + 1)), r);
9573
+ dn(pn(n, Ns(o, e, t + 1)), r);
9574
9574
  }
9575
9575
  return Ji(e, null, t, r), new oe(r);
9576
9576
  }
@@ -9768,7 +9768,7 @@ class ba {
9768
9768
  return e.blockRange(this);
9769
9769
  for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
9770
9770
  if (e.pos <= this.end(r) && (!t || t(this.node(r))))
9771
- return new Ns(this, e, r);
9771
+ return new Fs(this, e, r);
9772
9772
  return null;
9773
9773
  }
9774
9774
  /**
@@ -9836,7 +9836,7 @@ class _z {
9836
9836
  }
9837
9837
  }
9838
9838
  const Bz = 12, iu = /* @__PURE__ */ new WeakMap();
9839
- class Ns {
9839
+ class Fs {
9840
9840
  /**
9841
9841
  Construct a node range. `$from` and `$to` should point into the
9842
9842
  same node until at least the given `depth`, since a node range
@@ -9996,7 +9996,7 @@ let Hr = class ip {
9996
9996
  attributes, and marks.
9997
9997
  */
9998
9998
  hasMarkup(e, t, r) {
9999
- return this.type == e && zs(this.attrs, t || e.defaultAttrs || Iz) && je.sameSet(this.marks, r || je.none);
9999
+ return this.type == e && Os(this.attrs, t || e.defaultAttrs || Iz) && je.sameSet(this.marks, r || je.none);
10000
10000
  }
10001
10001
  /**
10002
10002
  Create a new node with the same markup as this node, containing
@@ -10248,7 +10248,7 @@ let Hr = class ip {
10248
10248
  }
10249
10249
  };
10250
10250
  Hr.prototype.text = void 0;
10251
- class Fs extends Hr {
10251
+ class js extends Hr {
10252
10252
  /**
10253
10253
  @internal
10254
10254
  */
@@ -10270,10 +10270,10 @@ class Fs extends Hr {
10270
10270
  return this.text.length;
10271
10271
  }
10272
10272
  mark(e) {
10273
- return e == this.marks ? this : new Fs(this.type, this.attrs, this.text, e);
10273
+ return e == this.marks ? this : new js(this.type, this.attrs, this.text, e);
10274
10274
  }
10275
10275
  withText(e) {
10276
- return e == this.text ? this : new Fs(this.type, this.attrs, e, this.marks);
10276
+ return e == this.text ? this : new js(this.type, this.attrs, e, this.marks);
10277
10277
  }
10278
10278
  cut(e = 0, t = this.text.length) {
10279
10279
  return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
@@ -10868,7 +10868,7 @@ class Uz {
10868
10868
  return !this.hasDefault;
10869
10869
  }
10870
10870
  }
10871
- class Bl {
10871
+ class Il {
10872
10872
  /**
10873
10873
  @internal
10874
10874
  */
@@ -10890,7 +10890,7 @@ class Bl {
10890
10890
  */
10891
10891
  static compile(e, t) {
10892
10892
  let r = /* @__PURE__ */ Object.create(null), n = 0;
10893
- return e.forEach((i, a) => r[i] = new Bl(i, n++, t, a)), r;
10893
+ return e.forEach((i, a) => r[i] = new Il(i, n++, t, a)), r;
10894
10894
  }
10895
10895
  /**
10896
10896
  When there is a mark of this type in the given set, a new set
@@ -10932,7 +10932,7 @@ class pI {
10932
10932
  let t = this.spec = {};
10933
10933
  for (let n in e)
10934
10934
  t[n] = e[n];
10935
- t.nodes = xt.from(e.nodes), t.marks = xt.from(e.marks || {}), this.nodes = lu.compile(this.spec.nodes, this), this.marks = Bl.compile(this.spec.marks, this);
10935
+ t.nodes = xt.from(e.nodes), t.marks = xt.from(e.marks || {}), this.nodes = lu.compile(this.spec.nodes, this), this.marks = Il.compile(this.spec.marks, this);
10936
10936
  let r = /* @__PURE__ */ Object.create(null);
10937
10937
  for (let n in this.nodes) {
10938
10938
  if (n in this.marks)
@@ -10974,7 +10974,7 @@ class pI {
10974
10974
  */
10975
10975
  text(e, t) {
10976
10976
  let r = this.nodes.text;
10977
- return new Fs(r, r.defaultAttrs, e, je.setFrom(t));
10977
+ return new js(r, r.defaultAttrs, e, je.setFrom(t));
10978
10978
  }
10979
10979
  /**
10980
10980
  Create a mark with the given type and attributes.
@@ -11572,7 +11572,7 @@ class Sn {
11572
11572
  serializeNodeInner(e, t) {
11573
11573
  if (e.isText)
11574
11574
  return Ga(t).createTextNode(e.text);
11575
- let { dom: r, contentDOM: n } = fs(Ga(t), this.nodes[e.type.name](e), null, e.attrs);
11575
+ let { dom: r, contentDOM: n } = ys(Ga(t), this.nodes[e.type.name](e), null, e.attrs);
11576
11576
  if (n) {
11577
11577
  if (e.isLeaf)
11578
11578
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -11600,10 +11600,10 @@ class Sn {
11600
11600
  */
11601
11601
  serializeMark(e, t, r = {}) {
11602
11602
  let n = this.marks[e.type.name];
11603
- return n && fs(Ga(r), n(e, t), null, e.attrs);
11603
+ return n && ys(Ga(r), n(e, t), null, e.attrs);
11604
11604
  }
11605
11605
  static renderSpec(e, t, r = null, n) {
11606
- return typeof t == "string" ? { dom: e.createTextNode(t) } : fs(e, t, r, n);
11606
+ return typeof t == "string" ? { dom: e.createTextNode(t) } : ys(e, t, r, n);
11607
11607
  }
11608
11608
  /**
11609
11609
  Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
@@ -11659,7 +11659,7 @@ function Xz(o) {
11659
11659
  }
11660
11660
  return t(o), e;
11661
11661
  }
11662
- function fs(o, e, t, r) {
11662
+ function ys(o, e, t, r) {
11663
11663
  if (e.nodeType == 1)
11664
11664
  return { dom: e };
11665
11665
  if (e.dom && e.dom.nodeType == 1)
@@ -11689,7 +11689,7 @@ function fs(o, e, t, r) {
11689
11689
  } else if (typeof b == "string")
11690
11690
  l.appendChild(o.createTextNode(b));
11691
11691
  else {
11692
- let { dom: m, contentDOM: h } = fs(o, b, t, r);
11692
+ let { dom: m, contentDOM: h } = ys(o, b, t, r);
11693
11693
  if (l.appendChild(m), h) {
11694
11694
  if (s)
11695
11695
  throw new RangeError("Multiple content holes");
@@ -11709,7 +11709,7 @@ function xu(o) {
11709
11709
  function e9(o) {
11710
11710
  return (o - (o & bI)) / mI;
11711
11711
  }
11712
- const gI = 1, xI = 2, ys = 4, hI = 8;
11712
+ const gI = 1, xI = 2, vs = 4, hI = 8;
11713
11713
  let lp = class {
11714
11714
  /**
11715
11715
  @internal
@@ -11729,13 +11729,13 @@ let lp = class {
11729
11729
  Tells you whether the token before the mapped position was deleted.
11730
11730
  */
11731
11731
  get deletedBefore() {
11732
- return (this.delInfo & (gI | ys)) > 0;
11732
+ return (this.delInfo & (gI | vs)) > 0;
11733
11733
  }
11734
11734
  /**
11735
11735
  True when the token after the mapped position was deleted.
11736
11736
  */
11737
11737
  get deletedAfter() {
11738
- return (this.delInfo & (xI | ys)) > 0;
11738
+ return (this.delInfo & (xI | vs)) > 0;
11739
11739
  }
11740
11740
  /**
11741
11741
  Tells whether any of the steps mapped through deletes across the
@@ -11743,7 +11743,7 @@ let lp = class {
11743
11743
  position).
11744
11744
  */
11745
11745
  get deletedAcross() {
11746
- return (this.delInfo & ys) > 0;
11746
+ return (this.delInfo & vs) > 0;
11747
11747
  }
11748
11748
  }, xn = class Fn {
11749
11749
  /**
@@ -11785,7 +11785,7 @@ let lp = class {
11785
11785
  let b = d ? e == l ? -1 : e == u ? 1 : t : t, m = l + n + (b < 0 ? 0 : c);
11786
11786
  if (r)
11787
11787
  return m;
11788
- let h = e == (t < 0 ? l : u) ? null : Zz(s / 3, e - l), x = e == l ? xI : e == u ? gI : ys;
11788
+ let h = e == (t < 0 ? l : u) ? null : Zz(s / 3, e - l), x = e == l ? xI : e == u ? gI : vs;
11789
11789
  return (t < 0 ? e != l : e != u) && (x |= hI), new lp(m, x, h);
11790
11790
  }
11791
11791
  n += c - d;
@@ -11949,7 +11949,7 @@ class ga {
11949
11949
  return r ? e : new lp(e, n, null);
11950
11950
  }
11951
11951
  }
11952
- const cd = /* @__PURE__ */ Object.create(null);
11952
+ const ud = /* @__PURE__ */ Object.create(null);
11953
11953
  let Et = class {
11954
11954
  /**
11955
11955
  Get the step map that represents the changes made by this step,
@@ -11974,7 +11974,7 @@ let Et = class {
11974
11974
  static fromJSON(e, t) {
11975
11975
  if (!t || !t.stepType)
11976
11976
  throw new RangeError("Invalid input for Step.fromJSON");
11977
- let r = cd[t.stepType];
11977
+ let r = ud[t.stepType];
11978
11978
  if (!r)
11979
11979
  throw new RangeError(`No step type ${t.stepType} defined`);
11980
11980
  return r.fromJSON(e, t);
@@ -11986,9 +11986,9 @@ let Et = class {
11986
11986
  that's unlikely to clash with steps from other modules.
11987
11987
  */
11988
11988
  static jsonID(e, t) {
11989
- if (e in cd)
11989
+ if (e in ud)
11990
11990
  throw new RangeError("Duplicate use of step JSON ID " + e);
11991
- return cd[e] = t, t.prototype.jsonID = e, t;
11991
+ return ud[e] = t, t.prototype.jsonID = e, t;
11992
11992
  }
11993
11993
  }, Ot = class Ai {
11994
11994
  /**
@@ -12135,7 +12135,7 @@ let rc = class Bi extends Et {
12135
12135
  return new Bi(this.pos, this.mark);
12136
12136
  }
12137
12137
  }
12138
- return new js(this.pos, this.mark);
12138
+ return new Vs(this.pos, this.mark);
12139
12139
  }
12140
12140
  map(e) {
12141
12141
  let t = e.mapResult(this.pos, 1);
@@ -12154,7 +12154,7 @@ let rc = class Bi extends Et {
12154
12154
  }
12155
12155
  };
12156
12156
  Et.jsonID("addNodeMark", rc);
12157
- let js = class dp extends Et {
12157
+ let Vs = class dp extends Et {
12158
12158
  /**
12159
12159
  Create a mark-removing step.
12160
12160
  */
@@ -12188,7 +12188,7 @@ let js = class dp extends Et {
12188
12188
  return new dp(t.pos, e.markFromJSON(t.mark));
12189
12189
  }
12190
12190
  };
12191
- Et.jsonID("removeNodeMark", js);
12191
+ Et.jsonID("removeNodeMark", Vs);
12192
12192
  let mo = class wr extends Et {
12193
12193
  /**
12194
12194
  The given `slice` should fit the 'gap' between `from` and
@@ -12242,7 +12242,7 @@ let mo = class wr extends Et {
12242
12242
  };
12243
12243
  mo.MAP_BIAS = 1;
12244
12244
  Et.jsonID("replace", mo);
12245
- let Yt = class vs extends Et {
12245
+ let Yt = class ws extends Et {
12246
12246
  /**
12247
12247
  Create a replace-around step with the given range and gap.
12248
12248
  `insert` should be the point in the slice into which the content
@@ -12273,11 +12273,11 @@ let Yt = class vs extends Et {
12273
12273
  }
12274
12274
  invert(e) {
12275
12275
  let t = this.gapTo - this.gapFrom;
12276
- return new vs(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
12276
+ return new ws(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
12277
12277
  }
12278
12278
  map(e) {
12279
12279
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), n = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), i = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
12280
- return t.deletedAcross && r.deletedAcross || n < t.pos || i > r.pos ? null : new vs(t.pos, r.pos, n, i, this.slice, this.insert, this.structure);
12280
+ return t.deletedAcross && r.deletedAcross || n < t.pos || i > r.pos ? null : new ws(t.pos, r.pos, n, i, this.slice, this.insert, this.structure);
12281
12281
  }
12282
12282
  toJSON() {
12283
12283
  let e = {
@@ -12296,7 +12296,7 @@ let Yt = class vs extends Et {
12296
12296
  static fromJSON(e, t) {
12297
12297
  if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
12298
12298
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
12299
- return new vs(t.from, t.to, t.gapFrom, t.gapTo, me.fromJSON(e, t.slice), t.insert, !!t.structure);
12299
+ return new ws(t.from, t.to, t.gapFrom, t.gapTo, me.fromJSON(e, t.slice), t.insert, !!t.structure);
12300
12300
  }
12301
12301
  };
12302
12302
  Et.jsonID("replaceAround", Yt);
@@ -12335,7 +12335,7 @@ function o9(o, e, t, r) {
12335
12335
  return;
12336
12336
  i++;
12337
12337
  let l = null;
12338
- if (r instanceof Bl) {
12338
+ if (r instanceof Il) {
12339
12339
  let d = a.marks, c;
12340
12340
  for (; c = r.isInSet(d); )
12341
12341
  (l || (l = [])).push(c), d = c.removeFromSet(d);
@@ -12535,7 +12535,7 @@ function u9(o, e) {
12535
12535
  function vI(o, e) {
12536
12536
  return !!(o && e && !o.isLeaf && u9(o, e));
12537
12537
  }
12538
- function Il(o, e, t = -1) {
12538
+ function Hl(o, e, t = -1) {
12539
12539
  let r = o.resolve(e);
12540
12540
  for (let n = r.depth; ; n--) {
12541
12541
  let i, a, s = r.index(n);
@@ -12608,7 +12608,7 @@ function wI(o, e, t) {
12608
12608
  }
12609
12609
  return null;
12610
12610
  }
12611
- function Hl(o, e, t = e, r = me.empty) {
12611
+ function Dl(o, e, t = e, r = me.empty) {
12612
12612
  if (e == t && !r.size)
12613
12613
  return null;
12614
12614
  let n = o.resolve(e), i = o.resolve(t);
@@ -12663,7 +12663,7 @@ class g9 {
12663
12663
  for (let t = 1; t <= 2; t++)
12664
12664
  for (let r = t == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
12665
12665
  let n, i = null;
12666
- r ? (i = ud(this.unplaced.content, r - 1).firstChild, n = i.content) : n = this.unplaced.content;
12666
+ r ? (i = bd(this.unplaced.content, r - 1).firstChild, n = i.content) : n = this.unplaced.content;
12667
12667
  let a = n.firstChild;
12668
12668
  for (let s = this.depth; s >= 0; s--) {
12669
12669
  let { type: l, match: d } = this.frontier[s], c, u = null;
@@ -12677,11 +12677,11 @@ class g9 {
12677
12677
  }
12678
12678
  }
12679
12679
  openMore() {
12680
- let { content: e, openStart: t, openEnd: r } = this.unplaced, n = ud(e, t);
12680
+ let { content: e, openStart: t, openEnd: r } = this.unplaced, n = bd(e, t);
12681
12681
  return !n.childCount || n.firstChild.isLeaf ? !1 : (this.unplaced = new me(e, t + 1, Math.max(r, n.size + t >= e.size - r ? t + 1 : 0)), !0);
12682
12682
  }
12683
12683
  dropNode() {
12684
- let { content: e, openStart: t, openEnd: r } = this.unplaced, n = ud(e, t);
12684
+ let { content: e, openStart: t, openEnd: r } = this.unplaced, n = bd(e, t);
12685
12685
  if (n.childCount <= 1 && t > 0) {
12686
12686
  let i = e.size - t <= t + n.size;
12687
12687
  this.unplaced = new me(Ii(e, t - 1, 1), t - 1, i ? t - 1 : r);
@@ -12722,7 +12722,7 @@ class g9 {
12722
12722
  if (!this.$to.parent.isTextblock)
12723
12723
  return -1;
12724
12724
  let e = this.frontier[this.depth], t;
12725
- if (!e.type.isTextblock || !bd(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
12725
+ if (!e.type.isTextblock || !md(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
12726
12726
  return -1;
12727
12727
  let { depth: r } = this.$to, n = this.$to.after(r);
12728
12728
  for (; r > 1 && n == this.$to.end(--r); )
@@ -12731,10 +12731,10 @@ class g9 {
12731
12731
  }
12732
12732
  findCloseLevel(e) {
12733
12733
  e: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
12734
- let { match: r, type: n } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), a = bd(e, t, n, r, i);
12734
+ let { match: r, type: n } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), a = md(e, t, n, r, i);
12735
12735
  if (a) {
12736
12736
  for (let s = t - 1; s >= 0; s--) {
12737
- let { match: l, type: d } = this.frontier[s], c = bd(e, s, d, l, !0);
12737
+ let { match: l, type: d } = this.frontier[s], c = md(e, s, d, l, !0);
12738
12738
  if (!c || c.childCount)
12739
12739
  continue e;
12740
12740
  }
@@ -12770,7 +12770,7 @@ function Ii(o, e, t) {
12770
12770
  function Hi(o, e, t) {
12771
12771
  return e == 0 ? o.append(t) : o.replaceChild(o.childCount - 1, o.lastChild.copy(Hi(o.lastChild.content, e - 1, t)));
12772
12772
  }
12773
- function ud(o, e) {
12773
+ function bd(o, e) {
12774
12774
  for (let t = 0; t < e; t++)
12775
12775
  o = o.firstChild.content;
12776
12776
  return o;
@@ -12781,7 +12781,7 @@ function kI(o, e, t) {
12781
12781
  let r = o.content;
12782
12782
  return e > 1 && (r = r.replaceChild(0, kI(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = o.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(o.type.contentMatch.matchFragment(r).fillBefore(oe.empty, !0)))), o.copy(r);
12783
12783
  }
12784
- function bd(o, e, t, r, n) {
12784
+ function md(o, e, t, r, n) {
12785
12785
  let i = o.node(e), a = n ? o.indexAfter(e) : o.index(e);
12786
12786
  if (a == i.childCount && !t.compatibleContent(i.type))
12787
12787
  return null;
@@ -12901,7 +12901,7 @@ function TI(o, e) {
12901
12901
  }
12902
12902
  return t;
12903
12903
  }
12904
- let PI = class ws extends Et {
12904
+ let PI = class Ss extends Et {
12905
12905
  /**
12906
12906
  Construct an attribute step.
12907
12907
  */
@@ -12923,11 +12923,11 @@ let PI = class ws extends Et {
12923
12923
  return xn.empty;
12924
12924
  }
12925
12925
  invert(e) {
12926
- return new ws(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
12926
+ return new Ss(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
12927
12927
  }
12928
12928
  map(e) {
12929
12929
  let t = e.mapResult(this.pos, 1);
12930
- return t.deletedAfter ? null : new ws(t.pos, this.attr, this.value);
12930
+ return t.deletedAfter ? null : new Ss(t.pos, this.attr, this.value);
12931
12931
  }
12932
12932
  toJSON() {
12933
12933
  return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
@@ -12935,7 +12935,7 @@ let PI = class ws extends Et {
12935
12935
  static fromJSON(e, t) {
12936
12936
  if (typeof t.pos != "number" || typeof t.attr != "string")
12937
12937
  throw new RangeError("Invalid input for AttrStep.fromJSON");
12938
- return new ws(t.pos, t.attr, t.value);
12938
+ return new Ss(t.pos, t.attr, t.value);
12939
12939
  }
12940
12940
  };
12941
12941
  Et.jsonID("attr", PI);
@@ -13047,7 +13047,7 @@ class LI {
13047
13047
  given `slice`.
13048
13048
  */
13049
13049
  replace(e, t = e, r = me.empty) {
13050
- let n = Hl(this.doc, e, t, r);
13050
+ let n = Dl(this.doc, e, t, r);
13051
13051
  return n && this.step(n), this;
13052
13052
  }
13053
13053
  /**
@@ -13178,11 +13178,11 @@ class LI {
13178
13178
  if (!r)
13179
13179
  throw new RangeError("No node at position " + e);
13180
13180
  if (t instanceof je)
13181
- t.isInSet(r.marks) && this.step(new js(e, t));
13181
+ t.isInSet(r.marks) && this.step(new Vs(e, t));
13182
13182
  else {
13183
13183
  let n = r.marks, i, a = [];
13184
13184
  for (; i = t.isInSet(n); )
13185
- a.push(new js(e, i)), n = i.removeFromSet(n);
13185
+ a.push(new Vs(e, i)), n = i.removeFromSet(n);
13186
13186
  for (let s = a.length - 1; s >= 0; s--)
13187
13187
  this.step(a[s]);
13188
13188
  }
@@ -13223,7 +13223,7 @@ class LI {
13223
13223
  return nc(this, e, t, r), this;
13224
13224
  }
13225
13225
  }
13226
- const md = /* @__PURE__ */ Object.create(null);
13226
+ const gd = /* @__PURE__ */ Object.create(null);
13227
13227
  let Ee = class {
13228
13228
  /**
13229
13229
  Initialize a selection with the head and anchor and ranges. If no
@@ -13359,7 +13359,7 @@ let Ee = class {
13359
13359
  static fromJSON(e, t) {
13360
13360
  if (!t || !t.type)
13361
13361
  throw new RangeError("Invalid input for Selection.fromJSON");
13362
- let r = md[t.type];
13362
+ let r = gd[t.type];
13363
13363
  if (!r)
13364
13364
  throw new RangeError(`No selection type ${t.type} defined`);
13365
13365
  return r.fromJSON(e, t);
@@ -13371,9 +13371,9 @@ let Ee = class {
13371
13371
  clash with classes from other modules.
13372
13372
  */
13373
13373
  static jsonID(e, t) {
13374
- if (e in md)
13374
+ if (e in gd)
13375
13375
  throw new RangeError("Duplicate use of selection JSON ID " + e);
13376
- return md[e] = t, t.prototype.jsonID = e, t;
13376
+ return gd[e] = t, t.prototype.jsonID = e, t;
13377
13377
  }
13378
13378
  /**
13379
13379
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -13543,7 +13543,7 @@ let S9 = class $I {
13543
13543
  let t = e.resolve(this.anchor), r = t.nodeAfter;
13544
13544
  return r && we.isSelectable(r) ? new we(t) : Ee.near(t);
13545
13545
  }
13546
- }, ar = class Ss extends Ee {
13546
+ }, ar = class ks extends Ee {
13547
13547
  /**
13548
13548
  Create an all-selection over the given document.
13549
13549
  */
@@ -13565,13 +13565,13 @@ let S9 = class $I {
13565
13565
  @internal
13566
13566
  */
13567
13567
  static fromJSON(e) {
13568
- return new Ss(e);
13568
+ return new ks(e);
13569
13569
  }
13570
13570
  map(e) {
13571
- return new Ss(e);
13571
+ return new ks(e);
13572
13572
  }
13573
13573
  eq(e) {
13574
- return e instanceof Ss;
13574
+ return e instanceof ks;
13575
13575
  }
13576
13576
  getBookmark() {
13577
13577
  return k9;
@@ -13809,7 +13809,7 @@ const T9 = [
13809
13809
  }
13810
13810
  })
13811
13811
  ];
13812
- class gd {
13812
+ class xd {
13813
13813
  constructor(e, t) {
13814
13814
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = T9.slice(), t && t.forEach((r) => {
13815
13815
  if (this.pluginsByKey[r.key])
@@ -13910,7 +13910,7 @@ class Jn {
13910
13910
  Create a new state.
13911
13911
  */
13912
13912
  static create(e) {
13913
- let t = new gd(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Jn(t);
13913
+ let t = new xd(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Jn(t);
13914
13914
  for (let n = 0; n < t.fields.length; n++)
13915
13915
  r[t.fields[n].name] = t.fields[n].init(e, r);
13916
13916
  return r;
@@ -13924,7 +13924,7 @@ class Jn {
13924
13924
  configuration object..
13925
13925
  */
13926
13926
  reconfigure(e) {
13927
- let t = new gd(this.schema, e.plugins), r = t.fields, n = new Jn(t);
13927
+ let t = new xd(this.schema, e.plugins), r = t.fields, n = new Jn(t);
13928
13928
  for (let i = 0; i < r.length; i++) {
13929
13929
  let a = r[i].name;
13930
13930
  n[a] = this.hasOwnProperty(a) ? this[a] : r[i].init(e, n);
@@ -13961,7 +13961,7 @@ class Jn {
13961
13961
  throw new RangeError("Invalid input for EditorState.fromJSON");
13962
13962
  if (!e.schema)
13963
13963
  throw new RangeError("Required config field 'schema' missing");
13964
- let n = new gd(e.schema, e.plugins), i = new Jn(n);
13964
+ let n = new xd(e.schema, e.plugins), i = new Jn(n);
13965
13965
  return n.fields.forEach((a) => {
13966
13966
  if (a.name == "doc")
13967
13967
  i.doc = Hr.fromJSON(e.schema, t.doc);
@@ -14004,9 +14004,9 @@ class Ge {
14004
14004
  return e[this.key];
14005
14005
  }
14006
14006
  }
14007
- const xd = /* @__PURE__ */ Object.create(null);
14007
+ const hd = /* @__PURE__ */ Object.create(null);
14008
14008
  function BI(o) {
14009
- return o in xd ? o + "$" + ++xd[o] : (xd[o] = 0, o + "$");
14009
+ return o in hd ? o + "$" + ++hd[o] : (hd[o] = 0, o + "$");
14010
14010
  }
14011
14011
  class st {
14012
14012
  /**
@@ -14048,7 +14048,7 @@ const DI = (o, e, t) => {
14048
14048
  return !0;
14049
14049
  if (r.parent.content.size == 0 && (oi(i, "end") || we.isSelectable(i)))
14050
14050
  for (let a = r.depth; ; a--) {
14051
- let s = Hl(o.doc, r.before(a), r.after(a), me.empty);
14051
+ let s = Dl(o.doc, r.before(a), r.after(a), me.empty);
14052
14052
  if (s && s.slice.size < s.to - s.from) {
14053
14053
  if (e) {
14054
14054
  let l = o.tr.step(s);
@@ -14092,7 +14092,7 @@ function RI(o, e, t) {
14092
14092
  return !1;
14093
14093
  s = c;
14094
14094
  }
14095
- let d = Hl(o.doc, i, l, me.empty);
14095
+ let d = Dl(o.doc, i, l, me.empty);
14096
14096
  if (!d || d.from != i || d instanceof mo && d.slice.size >= l - i)
14097
14097
  return !1;
14098
14098
  if (t) {
@@ -14147,7 +14147,7 @@ const NI = (o, e, t) => {
14147
14147
  if (UI(o, n, e, 1))
14148
14148
  return !0;
14149
14149
  if (r.parent.content.size == 0 && (oi(i, "start") || we.isSelectable(i))) {
14150
- let a = Hl(o.doc, r.before(), r.after(), me.empty);
14150
+ let a = Dl(o.doc, r.before(), r.after(), me.empty);
14151
14151
  if (a && a.slice.size < a.to - a.from) {
14152
14152
  if (e) {
14153
14153
  let s = o.tr.step(a);
@@ -14186,7 +14186,7 @@ const L9 = (o, e) => {
14186
14186
  if (t.node.isTextblock || !jr(o.doc, t.from))
14187
14187
  return !1;
14188
14188
  n = t.from;
14189
- } else if (n = Il(o.doc, t.from, -1), n == null)
14189
+ } else if (n = Hl(o.doc, t.from, -1), n == null)
14190
14190
  return !1;
14191
14191
  if (e) {
14192
14192
  let i = o.tr.join(n);
@@ -14199,7 +14199,7 @@ const L9 = (o, e) => {
14199
14199
  if (t.node.isTextblock || !jr(o.doc, t.to))
14200
14200
  return !1;
14201
14201
  r = t.to;
14202
- } else if (r = Il(o.doc, t.to, 1), r == null)
14202
+ } else if (r = Hl(o.doc, t.to, 1), r == null)
14203
14203
  return !1;
14204
14204
  return e && e(o.tr.join(r).scrollIntoView()), !0;
14205
14205
  }, A9 = (o, e) => {
@@ -14405,7 +14405,7 @@ function N9(o, e, t, r = null) {
14405
14405
  if (e.$from.index(e.depth - 1) == 0)
14406
14406
  return !1;
14407
14407
  let l = a.resolve(e.start - 2);
14408
- i = new Ns(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Ns(e.$from, a.resolve(e.$to.end(e.depth)), e.depth)), n = !0;
14408
+ i = new Fs(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Fs(e.$from, a.resolve(e.$to.end(e.depth)), e.depth)), n = !0;
14409
14409
  }
14410
14410
  let s = ic(i, t, r, e);
14411
14411
  return s ? (o && F9(o, e, s, n, t), !0) : !1;
@@ -14431,7 +14431,7 @@ function j9(o) {
14431
14431
  }
14432
14432
  function V9(o, e, t, r) {
14433
14433
  let n = o.tr, i = r.end, a = r.$to.end(r.depth);
14434
- i < a && (n.step(new Yt(i - 1, a, i, a, new me(oe.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ns(n.doc.resolve(r.$from.pos), n.doc.resolve(a), r.depth));
14434
+ i < a && (n.step(new Yt(i - 1, a, i, a, new me(oe.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Fs(n.doc.resolve(r.$from.pos), n.doc.resolve(a), r.depth));
14435
14435
  const s = mi(r);
14436
14436
  if (s == null)
14437
14437
  return !1;
@@ -14556,7 +14556,7 @@ function Ea(o) {
14556
14556
  ;
14557
14557
  return e && e.node && e.node.isBlock && (e.dom == o || e.contentDOM == o);
14558
14558
  }
14559
- const Dl = function(o) {
14559
+ const Rl = function(o) {
14560
14560
  return o.focusNode && hn(o.focusNode, o.focusOffset, o.anchorNode, o.anchorOffset);
14561
14561
  };
14562
14562
  function on(o, e) {
@@ -14823,14 +14823,14 @@ function eH(o, e, t) {
14823
14823
  if (i == null && n && (t < 0 || n == lo(r))) {
14824
14824
  let l = r.childNodes[n - 1];
14825
14825
  if (l.nodeType == 1)
14826
- return hd(l.getBoundingClientRect(), !1);
14826
+ return fd(l.getBoundingClientRect(), !1);
14827
14827
  }
14828
14828
  if (i == null && n < lo(r)) {
14829
14829
  let l = r.childNodes[n];
14830
14830
  if (l.nodeType == 1)
14831
- return hd(l.getBoundingClientRect(), !0);
14831
+ return fd(l.getBoundingClientRect(), !0);
14832
14832
  }
14833
- return hd(r.getBoundingClientRect(), t >= 0);
14833
+ return fd(r.getBoundingClientRect(), t >= 0);
14834
14834
  }
14835
14835
  if (i == null && n && (t < 0 || n == lo(r))) {
14836
14836
  let l = r.childNodes[n - 1], d = l.nodeType == 3 ? er(l, lo(l) - (a ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
@@ -14853,7 +14853,7 @@ function Pi(o, e) {
14853
14853
  let t = e ? o.left : o.right;
14854
14854
  return { top: o.top, bottom: o.bottom, left: t, right: t };
14855
14855
  }
14856
- function hd(o, e) {
14856
+ function fd(o, e) {
14857
14857
  if (o.height == 0)
14858
14858
  return o;
14859
14859
  let t = e ? o.top : o.bottom;
@@ -15390,7 +15390,7 @@ class zr extends $a {
15390
15390
  } else c || ({ dom: c, contentDOM: u } = Sn.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
15391
15391
  !u && !t.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), t.type.spec.draggable && (c.draggable = !0));
15392
15392
  let b = c;
15393
- return c = aH(c, r, t), d ? l = new xO(e, t, r, n, c, u || null, b, d) : t.isText ? new Rl(e, t, r, n, c, b) : new zr(e, t, r, n, c, u || null, b);
15393
+ return c = aH(c, r, t), d ? l = new xO(e, t, r, n, c, u || null, b, d) : t.isText ? new zl(e, t, r, n, c, b) : new zr(e, t, r, n, c, u || null, b);
15394
15394
  }
15395
15395
  parseRule() {
15396
15396
  if (this.node.type.spec.reparseInView)
@@ -15413,7 +15413,7 @@ class zr extends $a {
15413
15413
  return e;
15414
15414
  }
15415
15415
  matchesNode(e, t, r) {
15416
- return this.dirty == uo && e.eq(this.node) && Vs(t, this.outerDeco) && r.eq(this.innerDeco);
15416
+ return this.dirty == uo && e.eq(this.node) && qs(t, this.outerDeco) && r.eq(this.innerDeco);
15417
15417
  }
15418
15418
  get size() {
15419
15419
  return this.node.nodeSize;
@@ -15471,7 +15471,7 @@ class zr extends $a {
15471
15471
  this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(n, this.posAtStart), this.dirty = uo;
15472
15472
  }
15473
15473
  updateOuterDeco(e) {
15474
- if (Vs(e, this.outerDeco))
15474
+ if (qs(e, this.outerDeco))
15475
15475
  return;
15476
15476
  let t = this.nodeDOM.nodeType != 1, r = this.dom;
15477
15477
  this.dom = iH(this.dom, this.nodeDOM, xp(this.outerDeco, this.node, t), xp(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
@@ -15493,7 +15493,7 @@ function Bu(o, e, t, r, n) {
15493
15493
  let i = new zr(void 0, o, e, t, r, r, r);
15494
15494
  return i.contentDOM && i.updateChildren(n, 0), i;
15495
15495
  }
15496
- class Rl extends zr {
15496
+ class zl extends zr {
15497
15497
  constructor(e, t, r, n, i, a) {
15498
15498
  super(e, t, r, n, i, null, a);
15499
15499
  }
@@ -15524,7 +15524,7 @@ class Rl extends zr {
15524
15524
  }
15525
15525
  slice(e, t, r) {
15526
15526
  let n = this.node.cut(e, t), i = document.createTextNode(n.text);
15527
- return new Rl(this.parent, n, this.outerDeco, this.innerDeco, i, i);
15527
+ return new zl(this.parent, n, this.outerDeco, this.innerDeco, i, i);
15528
15528
  }
15529
15529
  markDirty(e, t) {
15530
15530
  super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = To);
@@ -15663,7 +15663,7 @@ function hO(o, e, t) {
15663
15663
  function aH(o, e, t) {
15664
15664
  return iH(o, o, nn, xp(e, t, o.nodeType != 1));
15665
15665
  }
15666
- function Vs(o, e) {
15666
+ function qs(o, e) {
15667
15667
  if (o.length != e.length)
15668
15668
  return !1;
15669
15669
  for (let t = 0; t < o.length; t++)
@@ -15770,7 +15770,7 @@ class fO {
15770
15770
  let d = this.preMatch.matched.get(l);
15771
15771
  if (d != null && d != i)
15772
15772
  return !1;
15773
- let c = l.dom, u, b = this.isLocked(c) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != To && Vs(t, l.outerDeco));
15773
+ let c = l.dom, u, b = this.isLocked(c) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != To && qs(t, l.outerDeco));
15774
15774
  if (!b && l.update(e, t, r, n))
15775
15775
  return this.destroyBetween(this.index, s), l.dom != c && (this.changed = !0), this.index++, !0;
15776
15776
  if (!b && (u = this.recreateWrapper(l, e, t, r, n, a)))
@@ -15783,7 +15783,7 @@ class fO {
15783
15783
  // When a node with content is replaced by a different node with
15784
15784
  // identical content, move over its children.
15785
15785
  recreateWrapper(e, t, r, n, i, a) {
15786
- if (e.dirty || t.isAtom || !e.children.length || !e.node.content.eq(t.content) || !Vs(r, e.outerDeco) || !n.eq(e.innerDeco))
15786
+ if (e.dirty || t.isAtom || !e.children.length || !e.node.content.eq(t.content) || !qs(r, e.outerDeco) || !n.eq(e.innerDeco))
15787
15787
  return null;
15788
15788
  let s = zr.create(this.top, t, r, n, i, a);
15789
15789
  if (s.contentDOM) {
@@ -15814,7 +15814,7 @@ class fO {
15814
15814
  for (; e instanceof Rr; )
15815
15815
  t = e, e = t.children[t.children.length - 1];
15816
15816
  (!e || // Empty textblock
15817
- !(e instanceof Rl) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Lt || ct) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
15817
+ !(e instanceof zl) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Lt || ct) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
15818
15818
  }
15819
15819
  addHackNode(e, t) {
15820
15820
  if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
@@ -15954,7 +15954,7 @@ function cc(o, e = null) {
15954
15954
  if (a < 0)
15955
15955
  return null;
15956
15956
  let s = r.resolve(a), l, d;
15957
- if (Dl(t)) {
15957
+ if (Rl(t)) {
15958
15958
  for (l = a; n && !n.node; )
15959
15959
  n = n.parent;
15960
15960
  let u = n.node;
@@ -16011,15 +16011,15 @@ const Hu = Lt || ct && KI < 63;
16011
16011
  function Du(o, e) {
16012
16012
  let { node: t, offset: r } = o.docView.domFromPos(e, 0), n = r < t.childNodes.length ? t.childNodes[r] : null, i = r ? t.childNodes[r - 1] : null;
16013
16013
  if (Lt && n && n.contentEditable == "false")
16014
- return fd(n);
16014
+ return yd(n);
16015
16015
  if ((!n || n.contentEditable == "false") && (!i || i.contentEditable == "false")) {
16016
16016
  if (n)
16017
- return fd(n);
16017
+ return yd(n);
16018
16018
  if (i)
16019
- return fd(i);
16019
+ return yd(i);
16020
16020
  }
16021
16021
  }
16022
- function fd(o) {
16022
+ function yd(o) {
16023
16023
  return o.contentEditable = "true", Lt && o.draggable && (o.draggable = !1, o.wasDraggable = !0), o;
16024
16024
  }
16025
16025
  function Ru(o) {
@@ -16109,7 +16109,7 @@ function Nu(o, e, t) {
16109
16109
  }
16110
16110
  }
16111
16111
  }
16112
- function qs(o) {
16112
+ function Us(o) {
16113
16113
  return o.nodeType == 3 ? o.nodeValue.length : o.childNodes.length;
16114
16114
  }
16115
16115
  function Zi(o, e) {
@@ -16124,7 +16124,7 @@ function MO(o) {
16124
16124
  if (!t)
16125
16125
  return;
16126
16126
  let n, i, a = !1;
16127
- for (co && t.nodeType == 1 && r < qs(t) && Zi(t.childNodes[r], -1) && (a = !0); ; )
16127
+ for (co && t.nodeType == 1 && r < Us(t) && Zi(t.childNodes[r], -1) && (a = !0); ; )
16128
16128
  if (r > 0) {
16129
16129
  if (t.nodeType != 1)
16130
16130
  break;
@@ -16145,7 +16145,7 @@ function MO(o) {
16145
16145
  for (; s && Zi(s, -1); )
16146
16146
  n = t.parentNode, i = ft(s), s = s.previousSibling;
16147
16147
  if (s)
16148
- t = s, r = qs(t);
16148
+ t = s, r = Us(t);
16149
16149
  else {
16150
16150
  if (t = t.parentNode, t == o.dom)
16151
16151
  break;
@@ -16159,7 +16159,7 @@ function LO(o) {
16159
16159
  let e = o.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
16160
16160
  if (!t)
16161
16161
  return;
16162
- let n = qs(t), i, a;
16162
+ let n = Us(t), i, a;
16163
16163
  for (; ; )
16164
16164
  if (r < n) {
16165
16165
  if (t.nodeType != 1)
@@ -16177,7 +16177,7 @@ function LO(o) {
16177
16177
  for (; s && Zi(s, 1); )
16178
16178
  i = s.parentNode, a = ft(s) + 1, s = s.nextSibling;
16179
16179
  if (s)
16180
- t = s, r = 0, n = qs(t);
16180
+ t = s, r = 0, n = Us(t);
16181
16181
  else {
16182
16182
  if (t = t.parentNode, t == o.dom)
16183
16183
  break;
@@ -16223,7 +16223,7 @@ function yp(o, e, t) {
16223
16223
  let r = o.domSelection();
16224
16224
  if (!r)
16225
16225
  return;
16226
- if (Dl(r)) {
16226
+ if (Rl(r)) {
16227
16227
  let i = document.createRange();
16228
16228
  i.setEnd(e, t), i.setStart(e, t), r.removeAllRanges(), r.addRange(i);
16229
16229
  } else r.extend && r.extend(e, t);
@@ -16474,10 +16474,10 @@ const gH = {
16474
16474
  function xH() {
16475
16475
  return document.implementation.createHTMLDocument("title");
16476
16476
  }
16477
- let yd = null;
16477
+ let vd = null;
16478
16478
  function DO(o) {
16479
16479
  let e = window.trustedTypes;
16480
- return e ? (yd || (yd = e.defaultPolicy || e.createPolicy("ProseMirrorClipboard", { createHTML: (t) => t })), yd.createHTML(o)) : o;
16480
+ return e ? (vd || (vd = e.defaultPolicy || e.createPolicy("ProseMirrorClipboard", { createHTML: (t) => t })), vd.createHTML(o)) : o;
16481
16481
  }
16482
16482
  function RO(o) {
16483
16483
  let e = /^(\s*<meta [^>]*>)*/.exec(o);
@@ -16673,7 +16673,7 @@ function hH(o, e, t) {
16673
16673
  return null;
16674
16674
  }
16675
16675
  function xc(o) {
16676
- return Us(o);
16676
+ return Ws(o);
16677
16677
  }
16678
16678
  const fH = so ? "metaKey" : "ctrlKey";
16679
16679
  jt.mousedown = (o, e) => {
@@ -16785,8 +16785,8 @@ Vt.compositionstart = Vt.compositionupdate = (o) => {
16785
16785
  o.domObserver.flush();
16786
16786
  let { state: e } = o, t = e.selection.$to;
16787
16787
  if (e.selection instanceof Pe && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || ct && JI && oN(o)))
16788
- o.markCursor = o.state.storedMarks || t.marks(), Us(o, !0), o.markCursor = null;
16789
- else if (Us(o, !e.selection.empty), co && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
16788
+ o.markCursor = o.state.storedMarks || t.marks(), Ws(o, !0), o.markCursor = null;
16789
+ else if (Ws(o, !e.selection.empty), co && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
16790
16790
  let r = o.domSelectionRange();
16791
16791
  for (let n = r.focusNode, i = r.focusOffset; n && n.nodeType == 1 && i != 0; ) {
16792
16792
  let a = i < 0 ? n.lastChild : n.childNodes[i - 1];
@@ -16815,7 +16815,7 @@ Vt.compositionend = (o, e) => {
16815
16815
  o.composing && (o.input.composing = !1, o.input.compositionEndedAt = Date.now(), o.input.compositionPendingChanges = o.domObserver.pendingRecords().length ? o.input.compositionID : 0, o.input.compositionNode = null, o.input.badSafariComposition ? o.domObserver.forceFlush() : o.input.compositionPendingChanges && Promise.resolve().then(() => o.domObserver.flush()), o.input.compositionID++, wH(o, 20));
16816
16816
  };
16817
16817
  function wH(o, e) {
16818
- clearTimeout(o.input.composingTimeout), e > -1 && (o.input.composingTimeout = setTimeout(() => Us(o), e));
16818
+ clearTimeout(o.input.composingTimeout), e > -1 && (o.input.composingTimeout = setTimeout(() => Ws(o), e));
16819
16819
  }
16820
16820
  function SH(o) {
16821
16821
  for (o.composing && (o.input.composing = !1, o.input.compositionEndedAt = Date.now()); o.input.compositionNodes.length > 0; )
@@ -16840,7 +16840,7 @@ function rN(o) {
16840
16840
  }
16841
16841
  return t || r;
16842
16842
  }
16843
- function Us(o, e = !1) {
16843
+ function Ws(o, e = !1) {
16844
16844
  if (!(tr && o.domObserver.flushingSoon >= 0)) {
16845
16845
  if (o.domObserver.forceFlush(), SH(o), e || o.docView && o.docView.dirty) {
16846
16846
  let t = cc(o), r = o.state.selection;
@@ -17016,7 +17016,7 @@ function fa(o, e) {
17016
17016
  return !1;
17017
17017
  return !0;
17018
17018
  }
17019
- class Ws {
17019
+ class Gs {
17020
17020
  constructor(e, t) {
17021
17021
  this.toDOM = e, this.spec = t || cn, this.side = this.spec.side || 0;
17022
17022
  }
@@ -17028,7 +17028,7 @@ class Ws {
17028
17028
  return !0;
17029
17029
  }
17030
17030
  eq(e) {
17031
- return this == e || e instanceof Ws && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && fa(this.spec, e.spec));
17031
+ return this == e || e instanceof Gs && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && fa(this.spec, e.spec));
17032
17032
  }
17033
17033
  destroy(e) {
17034
17034
  this.spec.destroy && this.spec.destroy(e);
@@ -17109,7 +17109,7 @@ class Nt {
17109
17109
  widget's current document position.
17110
17110
  */
17111
17111
  static widget(e, t, r) {
17112
- return new Nt(e, e, new Ws(t, r));
17112
+ return new Nt(e, e, new Gs(t, r));
17113
17113
  }
17114
17114
  /**
17115
17115
  Creates an inline decoration, which adds the given attributes to
@@ -17143,7 +17143,7 @@ class Nt {
17143
17143
  @internal
17144
17144
  */
17145
17145
  get widget() {
17146
- return this.type instanceof Ws;
17146
+ return this.type instanceof Gs;
17147
17147
  }
17148
17148
  }
17149
17149
  const Vn = [], cn = {};
@@ -17160,7 +17160,7 @@ class Ke {
17160
17160
  you must make a copy if you want need to preserve that.
17161
17161
  */
17162
17162
  static create(e, t) {
17163
- return t.length ? Gs(t, e, 0, cn) : Ct;
17163
+ return t.length ? Ks(t, e, 0, cn) : Ct;
17164
17164
  }
17165
17165
  /**
17166
17166
  Find all decorations in this set which touch the given range
@@ -17219,7 +17219,7 @@ class Ke {
17219
17219
  if (c = MH(t, s, d)) {
17220
17220
  for (n || (n = this.children.slice()); i < n.length && n[i] < l; )
17221
17221
  i += 3;
17222
- n[i] == l ? n[i + 2] = n[i + 2].addInner(s, c, d + 1) : n.splice(i, 0, l, l + s.nodeSize, Gs(c, s, d + 1, cn)), i += 3;
17222
+ n[i] == l ? n[i + 2] = n[i + 2].addInner(s, c, d + 1) : n.splice(i, 0, l, l + s.nodeSize, Ks(c, s, d + 1, cn)), i += 3;
17223
17223
  }
17224
17224
  });
17225
17225
  let a = PH(i ? LH(t) : t, -r);
@@ -17415,7 +17415,7 @@ function dN(o, e, t, r, n, i, a) {
17415
17415
  l = !0;
17416
17416
  }
17417
17417
  if (l) {
17418
- let d = pN(s, o, e, t, n, i, a), c = Gs(d, r, 0, a);
17418
+ let d = pN(s, o, e, t, n, i, a), c = Ks(d, r, 0, a);
17419
17419
  e = c.local;
17420
17420
  for (let u = 0; u < s.length; u += 3)
17421
17421
  s[u + 1] < 0 && (s.splice(u, 3), u -= 3);
@@ -17465,13 +17465,13 @@ function LH(o) {
17465
17465
  o[t] != null && e.push(o[t]);
17466
17466
  return e;
17467
17467
  }
17468
- function Gs(o, e, t, r) {
17468
+ function Ks(o, e, t, r) {
17469
17469
  let n = [], i = !1;
17470
17470
  e.forEach((s, l) => {
17471
17471
  let d = MH(o, s, l + t);
17472
17472
  if (d) {
17473
17473
  i = !0;
17474
- let c = Gs(d, s, t + l + 1, r);
17474
+ let c = Ks(d, s, t + l + 1, r);
17475
17475
  c != Ct && n.push(l, l + s.nodeSize, c);
17476
17476
  }
17477
17477
  });
@@ -17506,7 +17506,7 @@ function Wu(o, e, t) {
17506
17506
  e++;
17507
17507
  o.splice(e, 0, t);
17508
17508
  }
17509
- function vd(o) {
17509
+ function wd(o) {
17510
17510
  let e = [];
17511
17511
  return o.someProp("decorations", (t) => {
17512
17512
  let r = t(o.state);
@@ -17654,7 +17654,7 @@ class mN {
17654
17654
  }
17655
17655
  }
17656
17656
  let d = null;
17657
- i < 0 && n && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Dl(r) && (d = cc(e)) && d.eq(Ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, sr(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || n) && (i > -1 && (e.docView.markDirty(i, a), gN(e)), e.input.badSafariComposition && (e.input.badSafariComposition = !1, fN(e, l)), this.handleDOMChange(i, a, s, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || sr(e), this.currentSelection.set(r));
17657
+ i < 0 && n && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Rl(r) && (d = cc(e)) && d.eq(Ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, sr(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || n) && (i > -1 && (e.docView.markDirty(i, a), gN(e)), e.input.badSafariComposition && (e.input.badSafariComposition = !1, fN(e, l)), this.handleDOMChange(i, a, s, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || sr(e), this.currentSelection.set(r));
17658
17658
  }
17659
17659
  registerMutation(e, t) {
17660
17660
  if (t.indexOf(e.target) > -1)
@@ -17744,7 +17744,7 @@ function fN(o, e) {
17744
17744
  }
17745
17745
  function yN(o, e, t) {
17746
17746
  let { node: r, fromOffset: n, toOffset: i, from: a, to: s } = o.docView.parseRange(e, t), l = o.domSelectionRange(), d, c = l.anchorNode;
17747
- if (c && o.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (d = [{ node: c, offset: l.anchorOffset }], Dl(l) || d.push({ node: l.focusNode, offset: l.focusOffset })), ct && o.input.lastKeyCode === 8)
17747
+ if (c && o.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (d = [{ node: c, offset: l.anchorOffset }], Rl(l) || d.push({ node: l.focusNode, offset: l.focusOffset })), ct && o.input.lastKeyCode === 8)
17748
17748
  for (let v = i; v > n; v--) {
17749
17749
  let C = r.childNodes[v - 1], T = C.pmViewDesc;
17750
17750
  if (C.nodeName == "BR" && !T) {
@@ -17887,7 +17887,7 @@ function CN(o, e, t, r, n) {
17887
17887
  if (
17888
17888
  // The content must have shrunk
17889
17889
  t - e <= n.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
17890
- wd(r, !0, !1) < n.pos
17890
+ Sd(r, !0, !1) < n.pos
17891
17891
  )
17892
17892
  return !1;
17893
17893
  let i = o.resolve(e);
@@ -17897,10 +17897,10 @@ function CN(o, e, t, r, n) {
17897
17897
  }
17898
17898
  if (i.parentOffset < i.parent.content.size || !i.parent.isTextblock)
17899
17899
  return !1;
17900
- let a = o.resolve(wd(i, !0, !0));
17901
- return !a.parent.isTextblock || a.pos > t || wd(a, !0, !1) < t ? !1 : r.parent.content.cut(r.parentOffset).eq(a.parent.content);
17900
+ let a = o.resolve(Sd(i, !0, !0));
17901
+ return !a.parent.isTextblock || a.pos > t || Sd(a, !0, !1) < t ? !1 : r.parent.content.cut(r.parentOffset).eq(a.parent.content);
17902
17902
  }
17903
- function wd(o, e, t) {
17903
+ function Sd(o, e, t) {
17904
17904
  let r = o.depth, n = e ? o.end() : o.pos;
17905
17905
  for (; r > 0 && (e || o.indexAfter(r) == o.node(r).childCount); )
17906
17906
  r--, n++, e = !1;
@@ -17938,7 +17938,7 @@ class EH {
17938
17938
  added to the document.
17939
17939
  */
17940
17940
  constructor(e, t) {
17941
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new FO(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(tb), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zu(this), Xu(this), this.nodeViews = eb(this), this.docView = Bu(this.state.doc, Qu(this), vd(this), this.dom, this), this.domObserver = new mN(this, (r, n, i, a) => SN(this, r, n, i, a)), this.domObserver.start(), jO(this), this.updatePluginViews();
17941
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new FO(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(tb), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zu(this), Xu(this), this.nodeViews = eb(this), this.docView = Bu(this.state.doc, Qu(this), wd(this), this.dom, this), this.domObserver = new mN(this, (r, n, i, a) => SN(this, r, n, i, a)), this.domObserver.start(), jO(this), this.updatePluginViews();
17942
17942
  }
17943
17943
  /**
17944
17944
  Holds `true` when a
@@ -18001,7 +18001,7 @@ class EH {
18001
18001
  MN(m, this.nodeViews) && (this.nodeViews = m, i = !0);
18002
18002
  }
18003
18003
  (s || t.handleDOMEvents != this._props.handleDOMEvents) && wp(this), this.editable = Zu(this), Xu(this);
18004
- let l = vd(this), d = Qu(this), c = n.plugins != e.plugins && !n.doc.eq(e.doc) ? "reset" : e.scrollToSelection > n.scrollToSelection ? "to selection" : "preserve", u = i || !this.docView.matchesNode(e.doc, d, l);
18004
+ let l = wd(this), d = Qu(this), c = n.plugins != e.plugins && !n.doc.eq(e.doc) ? "reset" : e.scrollToSelection > n.scrollToSelection ? "to selection" : "preserve", u = i || !this.docView.matchesNode(e.doc, d, l);
18005
18005
  (u || !e.selection.eq(n.selection)) && (a = !0);
18006
18006
  let b = c == "preserve" && a && this.dom.style.overflowAnchor == null && oO(this);
18007
18007
  if (a) {
@@ -18232,7 +18232,7 @@ class EH {
18232
18232
  views](https://prosemirror.net/docs/ref/#view.NodeView).
18233
18233
  */
18234
18234
  destroy() {
18235
- this.docView && (VO(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], vd(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, W9());
18235
+ this.docView && (VO(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], wd(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, W9());
18236
18236
  }
18237
18237
  /**
18238
18238
  This is true when the view has been
@@ -18364,7 +18364,7 @@ var Nr = {
18364
18364
  220: "\\",
18365
18365
  221: "]",
18366
18366
  222: "'"
18367
- }, Ks = {
18367
+ }, Js = {
18368
18368
  48: ")",
18369
18369
  49: "!",
18370
18370
  50: "@",
@@ -18393,10 +18393,10 @@ var Nr = {
18393
18393
  for (var yt = 0; yt < 10; yt++) Nr[48 + yt] = Nr[96 + yt] = String(yt);
18394
18394
  for (var yt = 1; yt <= 24; yt++) Nr[yt + 111] = "F" + yt;
18395
18395
  for (var yt = 65; yt <= 90; yt++)
18396
- Nr[yt] = String.fromCharCode(yt + 32), Ks[yt] = String.fromCharCode(yt);
18397
- for (var Sd in Nr) Ks.hasOwnProperty(Sd) || (Ks[Sd] = Nr[Sd]);
18396
+ Nr[yt] = String.fromCharCode(yt + 32), Js[yt] = String.fromCharCode(yt);
18397
+ for (var kd in Nr) Js.hasOwnProperty(kd) || (Js[kd] = Nr[kd]);
18398
18398
  function AN(o) {
18399
- var e = LN && o.metaKey && o.shiftKey && !o.ctrlKey && !o.altKey || EN && o.shiftKey && o.key && o.key.length == 1 || o.key == "Unidentified", t = !e && o.key || (o.shiftKey ? Ks : Nr)[o.keyCode] || o.key || "Unidentified";
18399
+ var e = LN && o.metaKey && o.shiftKey && !o.ctrlKey && !o.altKey || EN && o.shiftKey && o.key && o.key.length == 1 || o.key == "Unidentified", t = !e && o.key || (o.shiftKey ? Js : Nr)[o.keyCode] || o.key || "Unidentified";
18400
18400
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
18401
18401
  }
18402
18402
  const $N = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), _N = typeof navigator < "u" && /Win/.test(navigator.platform);
@@ -18427,7 +18427,7 @@ function IN(o) {
18427
18427
  e[BN(t)] = o[t];
18428
18428
  return e;
18429
18429
  }
18430
- function kd(o, e, t = !0) {
18430
+ function Cd(o, e, t = !0) {
18431
18431
  return e.altKey && (o = "Alt-" + o), e.ctrlKey && (o = "Ctrl-" + o), e.metaKey && (o = "Meta-" + o), t && e.shiftKey && (o = "Shift-" + o), o;
18432
18432
  }
18433
18433
  function HN(o) {
@@ -18436,18 +18436,18 @@ function HN(o) {
18436
18436
  function AH(o) {
18437
18437
  let e = IN(o);
18438
18438
  return function(t, r) {
18439
- let n = AN(r), i, a = e[kd(n, r)];
18439
+ let n = AN(r), i, a = e[Cd(n, r)];
18440
18440
  if (a && a(t.state, t.dispatch, t))
18441
18441
  return !0;
18442
18442
  if (n.length == 1 && n != " ") {
18443
18443
  if (r.shiftKey) {
18444
- let s = e[kd(n, r, !1)];
18444
+ let s = e[Cd(n, r, !1)];
18445
18445
  if (s && s(t.state, t.dispatch, t))
18446
18446
  return !0;
18447
18447
  }
18448
18448
  if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
18449
18449
  !(_N && r.ctrlKey && r.altKey) && (i = Nr[r.keyCode]) && i != n) {
18450
- let s = e[kd(i, r)];
18450
+ let s = e[Cd(i, r)];
18451
18451
  if (s && s(t.state, t.dispatch, t))
18452
18452
  return !0;
18453
18453
  }
@@ -18459,7 +18459,7 @@ var DN = Object.defineProperty, yc = (o, e) => {
18459
18459
  for (var t in e)
18460
18460
  DN(o, t, { get: e[t], enumerable: !0 });
18461
18461
  };
18462
- function zl(o) {
18462
+ function Ol(o) {
18463
18463
  const { state: e, transaction: t } = o;
18464
18464
  let { selection: r } = t, { doc: n } = t, { storedMarks: i } = t;
18465
18465
  return {
@@ -18484,7 +18484,7 @@ function zl(o) {
18484
18484
  }
18485
18485
  };
18486
18486
  }
18487
- var Ol = class {
18487
+ var Nl = class {
18488
18488
  constructor(o) {
18489
18489
  this.editor = o.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = o.state;
18490
18490
  }
@@ -18535,7 +18535,7 @@ var Ol = class {
18535
18535
  tr: o,
18536
18536
  editor: r,
18537
18537
  view: i,
18538
- state: zl({
18538
+ state: Ol({
18539
18539
  state: n,
18540
18540
  transaction: o
18541
18541
  }),
@@ -18696,12 +18696,12 @@ var qN = (o) => ({ tr: e, state: t, dispatch: r }) => {
18696
18696
  function vc(o) {
18697
18697
  return Object.prototype.toString.call(o) === "[object RegExp]";
18698
18698
  }
18699
- function Js(o, e, t = { strict: !0 }) {
18699
+ function Ys(o, e, t = { strict: !0 }) {
18700
18700
  const r = Object.keys(e);
18701
18701
  return r.length ? r.every((n) => t.strict ? e[n] === o[n] : vc(e[n]) ? e[n].test(o[n]) : e[n] === o[n]) : !0;
18702
18702
  }
18703
18703
  function _H(o, e, t = {}) {
18704
- return o.find((r) => r.type === e && Js(
18704
+ return o.find((r) => r.type === e && Ys(
18705
18705
  // Only check equality for the attributes that are provided
18706
18706
  Object.fromEntries(Object.keys(t).map((n) => [n, r.attrs[n]])),
18707
18707
  t
@@ -18787,7 +18787,7 @@ function IH(o, e = null) {
18787
18787
  function nb() {
18788
18788
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
18789
18789
  }
18790
- function Ys() {
18790
+ function Qs() {
18791
18791
  return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
18792
18792
  navigator.platform
18793
18793
  ) || // iPad on iOS 13 detection
@@ -18802,7 +18802,7 @@ var eF = (o = null, e = {}) => ({ editor: t, view: r, tr: n, dispatch: i }) => {
18802
18802
  ...e
18803
18803
  };
18804
18804
  const a = () => {
18805
- (Ys() || nb()) && r.dom.focus(), ZN() && !Ys() && !nb() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
18805
+ (Qs() || nb()) && r.dom.focus(), ZN() && !Qs() && !nb() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
18806
18806
  t.isDestroyed || (r.focus(), e != null && e.scrollIntoView && t.commands.scrollIntoView());
18807
18807
  });
18808
18808
  };
@@ -18974,14 +18974,14 @@ var nF = (o) => !("type" in o), iF = (o, e, t) => ({ tr: r, dispatch: n, editor:
18974
18974
  return !0;
18975
18975
  }, aF = () => ({ state: o, dispatch: e }) => L9(o, e), sF = () => ({ state: o, dispatch: e }) => E9(o, e), lF = () => ({ state: o, dispatch: e }) => DI(o, e), dF = () => ({ state: o, dispatch: e }) => NI(o, e), pF = () => ({ state: o, dispatch: e, tr: t }) => {
18976
18976
  try {
18977
- const r = Il(o.doc, o.selection.$from.pos, -1);
18977
+ const r = Hl(o.doc, o.selection.$from.pos, -1);
18978
18978
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
18979
18979
  } catch {
18980
18980
  return !1;
18981
18981
  }
18982
18982
  }, cF = () => ({ state: o, dispatch: e, tr: t }) => {
18983
18983
  try {
18984
- const r = Il(o.doc, o.selection.$from.pos, 1);
18984
+ const r = Hl(o.doc, o.selection.$from.pos, 1);
18985
18985
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
18986
18986
  } catch {
18987
18987
  return !1;
@@ -19006,7 +19006,7 @@ function mF(o) {
19006
19006
  else if (/^s(hift)?$/i.test(l))
19007
19007
  i = !0;
19008
19008
  else if (/^mod$/i.test(l))
19009
- Ys() || DH() ? a = !0 : n = !0;
19009
+ Qs() || DH() ? a = !0 : n = !0;
19010
19010
  else
19011
19011
  throw new Error(`Unrecognized modifier name: ${l}`);
19012
19012
  }
@@ -19041,7 +19041,7 @@ function Fr(o, e, t = {}) {
19041
19041
  to: h
19042
19042
  });
19043
19043
  });
19044
- const l = n - r, d = s.filter((u) => a ? a.name === u.node.type.name : !0).filter((u) => Js(u.node.attrs, t, { strict: !1 }));
19044
+ const l = n - r, d = s.filter((u) => a ? a.name === u.node.type.name : !0).filter((u) => Ys(u.node.attrs, t, { strict: !1 }));
19045
19045
  return i ? !!d.length : d.reduce((u, b) => u + b.to - b.from, 0) >= l;
19046
19046
  }
19047
19047
  var xF = (o, e = {}) => ({ state: t, dispatch: r }) => {
@@ -19051,7 +19051,7 @@ var xF = (o, e = {}) => ({ state: t, dispatch: r }) => {
19051
19051
  const r = nt(o, e.schema);
19052
19052
  return j9(r)(e, t);
19053
19053
  }, yF = () => ({ state: o, dispatch: e }) => jI(o, e);
19054
- function Nl(o, e) {
19054
+ function Fl(o, e) {
19055
19055
  return e.nodes[o] ? "node" : e.marks[o] ? "mark" : null;
19056
19056
  }
19057
19057
  function ib(o, e) {
@@ -19060,7 +19060,7 @@ function ib(o, e) {
19060
19060
  }
19061
19061
  var vF = (o, e) => ({ tr: t, state: r, dispatch: n }) => {
19062
19062
  let i = null, a = null;
19063
- const s = Nl(
19063
+ const s = Fl(
19064
19064
  typeof o == "string" ? o : o.name,
19065
19065
  r.schema
19066
19066
  );
@@ -19151,7 +19151,7 @@ function $F(o, e) {
19151
19151
  };
19152
19152
  }
19153
19153
  }
19154
- function Fl(o) {
19154
+ function jl(o) {
19155
19155
  return (e) => $F(e.$from, o);
19156
19156
  }
19157
19157
  function he(o, e, t) {
@@ -19550,7 +19550,7 @@ function zF(o, e) {
19550
19550
  return a ? { ...a.attrs } : {};
19551
19551
  }
19552
19552
  function qH(o, e) {
19553
- const t = Nl(
19553
+ const t = Fl(
19554
19554
  typeof e == "string" ? e : e.name,
19555
19555
  o.schema
19556
19556
  );
@@ -19626,7 +19626,7 @@ var FF = (o, e, t, r = 20) => {
19626
19626
  function Mi(o, e) {
19627
19627
  return e.nodes[o] || e.marks[o] || null;
19628
19628
  }
19629
- function ks(o, e, t) {
19629
+ function Cs(o, e, t) {
19630
19630
  return Object.fromEntries(
19631
19631
  Object.entries(t).filter(([r]) => {
19632
19632
  const n = o.find((i) => i.type === e && i.name === r);
@@ -19655,7 +19655,7 @@ var jF = (o, e = 500) => {
19655
19655
  function kp(o, e, t = {}) {
19656
19656
  const { empty: r, ranges: n } = o.selection, i = e ? cr(e, o.schema) : null;
19657
19657
  if (r)
19658
- return !!(o.storedMarks || o.selection.$from.marks()).filter((u) => i ? i.name === u.type.name : !0).find((u) => Js(u.attrs, t, { strict: !1 }));
19658
+ return !!(o.storedMarks || o.selection.$from.marks()).filter((u) => i ? i.name === u.type.name : !0).find((u) => Ys(u.attrs, t, { strict: !1 }));
19659
19659
  let a = 0;
19660
19660
  const s = [];
19661
19661
  if (n.forEach(({ $from: u, $to: b }) => {
@@ -19676,19 +19676,19 @@ function kp(o, e, t = {}) {
19676
19676
  });
19677
19677
  }), a === 0)
19678
19678
  return !1;
19679
- const l = s.filter((u) => i ? i.name === u.mark.type.name : !0).filter((u) => Js(u.mark.attrs, t, { strict: !1 })).reduce((u, b) => u + b.to - b.from, 0), d = s.filter((u) => i ? u.mark.type !== i && u.mark.type.excludes(i) : !0).reduce((u, b) => u + b.to - b.from, 0);
19679
+ const l = s.filter((u) => i ? i.name === u.mark.type.name : !0).filter((u) => Ys(u.mark.attrs, t, { strict: !1 })).reduce((u, b) => u + b.to - b.from, 0), d = s.filter((u) => i ? u.mark.type !== i && u.mark.type.excludes(i) : !0).reduce((u, b) => u + b.to - b.from, 0);
19680
19680
  return (l > 0 ? l + d : l) >= a;
19681
19681
  }
19682
19682
  function VF(o, e, t = {}) {
19683
19683
  if (!e)
19684
19684
  return Fr(o, null, t) || kp(o, null, t);
19685
- const r = Nl(e, o.schema);
19685
+ const r = Fl(e, o.schema);
19686
19686
  return r === "node" ? Fr(o, e, t) : r === "mark" ? kp(o, e, t) : !1;
19687
19687
  }
19688
19688
  var qF = (o, e) => {
19689
19689
  const { $from: t, $to: r, $anchor: n } = o.selection;
19690
19690
  if (e) {
19691
- const i = Fl((s) => s.type.name === e)(o.selection);
19691
+ const i = jl((s) => s.type.name === e)(o.selection);
19692
19692
  if (!i)
19693
19693
  return !1;
19694
19694
  const a = o.doc.resolve(i.pos + 1);
@@ -19702,7 +19702,7 @@ var qF = (o, e) => {
19702
19702
  function pb(o, e) {
19703
19703
  return Array.isArray(e) ? e.some((t) => (typeof t == "string" ? t : t.name) === o.name) : e;
19704
19704
  }
19705
- function Cd(o, e) {
19705
+ function Td(o, e) {
19706
19706
  const { nodeExtensions: t } = ii(e), r = t.find((a) => a.name === o);
19707
19707
  if (!r)
19708
19708
  return !1;
@@ -19858,7 +19858,7 @@ function cb(o, e) {
19858
19858
  }
19859
19859
  }
19860
19860
  var oj = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: n }) => {
19861
- const { selection: i, doc: a } = e, { $from: s, $to: l } = i, d = n.extensionManager.attributes, c = ks(
19861
+ const { selection: i, doc: a } = e, { $from: s, $to: l } = i, d = n.extensionManager.attributes, c = Cs(
19862
19862
  d,
19863
19863
  s.node().type.name,
19864
19864
  s.node().attrs
@@ -19908,7 +19908,7 @@ var oj = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
19908
19908
  // oxlint-disable-next-line no-nested-ternary
19909
19909
  l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3
19910
19910
  ), B = {
19911
- ...ks(b, l.node().type.name, l.node().attrs),
19911
+ ...Cs(b, l.node().type.name, l.node().attrs),
19912
19912
  ...e
19913
19913
  }, A = ((a = s.contentMatch.defaultType) == null ? void 0 : a.createAndFill(B)) || void 0;
19914
19914
  C = C.append(oe.from(s.createAndFill(null, A) || void 0));
@@ -19924,10 +19924,10 @@ var oj = ({ keepMarks: o = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
19924
19924
  return !0;
19925
19925
  }
19926
19926
  const m = d.pos === l.end() ? u.contentMatchAt(0).defaultType : null, h = {
19927
- ...ks(b, u.type.name, u.attrs),
19927
+ ...Cs(b, u.type.name, u.attrs),
19928
19928
  ...e
19929
19929
  }, x = {
19930
- ...ks(b, l.node().type.name, l.node().attrs),
19930
+ ...Cs(b, l.node().type.name, l.node().attrs),
19931
19931
  ...e
19932
19932
  };
19933
19933
  t.delete(l.pos, d.pos);
@@ -19952,8 +19952,8 @@ function ub(o) {
19952
19952
  function JH(o, e) {
19953
19953
  return ub(o) === ub(e);
19954
19954
  }
19955
- var Td = (o, e) => {
19956
- const t = Fl((a) => a.type === e)(o.selection);
19955
+ var Pd = (o, e) => {
19956
+ const t = jl((a) => a.type === e)(o.selection);
19957
19957
  if (!t)
19958
19958
  return !0;
19959
19959
  const r = o.doc.resolve(Math.max(0, t.pos - 1)).before(t.depth);
@@ -19961,8 +19961,8 @@ var Td = (o, e) => {
19961
19961
  return !0;
19962
19962
  const n = o.doc.nodeAt(r);
19963
19963
  return !(t.node.type === (n == null ? void 0 : n.type) && jr(o.doc, t.pos)) || !JH(t.node.attrs.type, n == null ? void 0 : n.attrs.type) || o.join(t.pos), !0;
19964
- }, Pd = (o, e) => {
19965
- const t = Fl((a) => a.type === e)(o.selection);
19964
+ }, Md = (o, e) => {
19965
+ const t = jl((a) => a.type === e)(o.selection);
19966
19966
  if (!t)
19967
19967
  return !0;
19968
19968
  const r = o.doc.resolve(t.start).after(t.depth);
@@ -19982,7 +19982,7 @@ var ij = (o, e, t, r = {}) => ({ editor: n, tr: i, state: a, dispatch: s, chain:
19982
19982
  const { extensions: u, splittableMarks: b } = n.extensionManager, m = nt(o, a.schema), h = nt(e, a.schema), { selection: x, storedMarks: v } = a, { $from: C, $to: T } = x, k = C.blockRange(T), B = v || x.$to.parentOffset && x.$from.marks();
19983
19983
  if (!k)
19984
19984
  return !1;
19985
- const A = Fl((N) => Cd(N.type.name, u))(x), H = x.from === 0 && x.to === a.doc.content.size, P = a.doc.content.content, I = P.length === 1 ? P[0] : null, $ = H && I && Cd(I.type.name, u) ? {
19985
+ const A = jl((N) => Td(N.type.name, u))(x), H = x.from === 0 && x.to === a.doc.content.size, P = a.doc.content.content, I = P.length === 1 ? P[0] : null, $ = H && I && Td(I.type.name, u) ? {
19986
19986
  node: I,
19987
19987
  pos: 0
19988
19988
  } : null, M = A ?? $, _ = !!A && k.depth >= 1 && k.depth - A.depth <= 1, G = !!$;
@@ -19992,13 +19992,13 @@ var ij = (o, e, t, r = {}) => ({ editor: n, tr: i, state: a, dispatch: s, chain:
19992
19992
  const W = nj(N);
19993
19993
  return W ? (N.setSelection(W), F && F(N), !0) : !1;
19994
19994
  }).liftListItem(h).run() : d.liftListItem(h);
19995
- if (Cd(M.node.type.name, u) && m.validContent(M.node.content))
19996
- return l().command(() => (i.setNodeMarkup(M.pos, m), !0)).command(() => Td(i, m)).command(() => Pd(i, m)).run();
19995
+ if (Td(M.node.type.name, u) && m.validContent(M.node.content))
19996
+ return l().command(() => (i.setNodeMarkup(M.pos, m), !0)).command(() => Pd(i, m)).command(() => Md(i, m)).run();
19997
19997
  }
19998
- return !t || !B || !s ? l().command(() => c().wrapInList(m, r) ? !0 : d.clearNodes()).wrapInList(m, r).command(() => Td(i, m)).command(() => Pd(i, m)).run() : l().command(() => {
19998
+ return !t || !B || !s ? l().command(() => c().wrapInList(m, r) ? !0 : d.clearNodes()).wrapInList(m, r).command(() => Pd(i, m)).command(() => Md(i, m)).run() : l().command(() => {
19999
19999
  const N = c().wrapInList(m, r), F = B.filter((W) => b.includes(W.type.name));
20000
20000
  return i.ensureMarks(F), N ? !0 : d.clearNodes();
20001
- }).wrapInList(m, r).command(() => Td(i, m)).command(() => Pd(i, m)).run();
20001
+ }).wrapInList(m, r).command(() => Pd(i, m)).command(() => Md(i, m)).run();
20002
20002
  }, aj = (o, e = {}, t = {}) => ({ state: r, commands: n }) => {
20003
20003
  const { extendEmptyMarkRange: i = !1 } = t, a = cr(o, r.schema);
20004
20004
  return kp(r, a, e) ? n.unsetMark(a, { extendEmptyMarkRange: i }) : n.setMark(a, e);
@@ -20069,7 +20069,7 @@ var ij = (o, e, t, r = {}) => ({ editor: n, tr: i, state: a, dispatch: s, chain:
20069
20069
  }), !0;
20070
20070
  }, bj = (o, e = {}) => ({ tr: t, state: r, dispatch: n }) => {
20071
20071
  let i = null, a = null;
20072
- const s = Nl(
20072
+ const s = Fl(
20073
20073
  typeof o == "string" ? o : o.name,
20074
20074
  r.schema
20075
20075
  );
@@ -20548,7 +20548,7 @@ function Pj(o, e, t = {}) {
20548
20548
  }
20549
20549
  }), i.docChanged && e.view.dispatch(i);
20550
20550
  }
20551
- var jl = class {
20551
+ var Vl = class {
20552
20552
  constructor(o) {
20553
20553
  var e;
20554
20554
  this.find = o.find, this.handler = o.handler, this.undoable = (e = o.undoable) != null ? e : !0;
@@ -20583,13 +20583,13 @@ function Qa(o) {
20583
20583
  const m = Mj(u, b.find);
20584
20584
  if (!m)
20585
20585
  return;
20586
- const h = l.state.tr, x = zl({
20586
+ const h = l.state.tr, x = Ol({
20587
20587
  state: l.state,
20588
20588
  transaction: h
20589
20589
  }), v = {
20590
20590
  from: r - (m[0].length - i.length),
20591
20591
  to: n
20592
- }, { commands: C, chain: T, can: k } = new Ol({
20592
+ }, { commands: C, chain: T, can: k } = new Nl({
20593
20593
  editor: t,
20594
20594
  state: x
20595
20595
  });
@@ -20765,7 +20765,7 @@ var Lc = class {
20765
20765
  }) : [];
20766
20766
  };
20767
20767
  function $j(o) {
20768
- const { editor: e, state: t, from: r, to: n, rule: i, pasteEvent: a, dropEvent: s } = o, { commands: l, chain: d, can: c } = new Ol({
20768
+ const { editor: e, state: t, from: r, to: n, rule: i, pasteEvent: a, dropEvent: s } = o, { commands: l, chain: d, can: c } = new Nl({
20769
20769
  editor: e,
20770
20770
  state: t
20771
20771
  }), u = [];
@@ -20819,7 +20819,7 @@ function Bj(o) {
20819
20819
  rule: m,
20820
20820
  pasteEvt: h
20821
20821
  }) => {
20822
- const x = c.tr, v = zl({
20822
+ const x = c.tr, v = Ol({
20823
20823
  state: c,
20824
20824
  transaction: x
20825
20825
  });
@@ -20905,7 +20905,7 @@ function Bj(o) {
20905
20905
  }
20906
20906
  }));
20907
20907
  }
20908
- var Vl = class {
20908
+ var ql = class {
20909
20909
  constructor(o, e) {
20910
20910
  this.splittableMarks = [], this.nonClearableMarks = [], this.editor = e, this.baseExtensions = o, this.extensions = FH(o), this.schema = HF(this.extensions, e), this.setupExtensions();
20911
20911
  }
@@ -21201,9 +21201,9 @@ var Vl = class {
21201
21201
  });
21202
21202
  }
21203
21203
  };
21204
- Vl.resolve = FH;
21205
- Vl.sort = ea;
21206
- Vl.flatten = Sc;
21204
+ ql.resolve = FH;
21205
+ ql.sort = ea;
21206
+ ql.flatten = Sc;
21207
21207
  var Ij = {};
21208
21208
  yc(Ij, {
21209
21209
  ClipboardTextSerializer: () => e7,
@@ -21434,7 +21434,7 @@ var Je = class ZH extends Lc {
21434
21434
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
21435
21435
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
21436
21436
  };
21437
- return Ys() || DH() ? i : n;
21437
+ return Qs() || DH() ? i : n;
21438
21438
  },
21439
21439
  addProseMirrorPlugins() {
21440
21440
  return [
@@ -21456,10 +21456,10 @@ var Je = class ZH extends Lc {
21456
21456
  const { empty: i, from: a, to: s } = e.selection, l = Ee.atStart(e.doc).from, d = Ee.atEnd(e.doc).to;
21457
21457
  if (i || !(a === l && s === d) || !wa(t.doc))
21458
21458
  return;
21459
- const b = t.tr, m = zl({
21459
+ const b = t.tr, m = Ol({
21460
21460
  state: t,
21461
21461
  transaction: b
21462
- }), { commands: h } = new Ol({
21462
+ }), { commands: h } = new Nl({
21463
21463
  editor: this.editor,
21464
21464
  state: m
21465
21465
  });
@@ -21978,13 +21978,13 @@ img.ProseMirror-separator {
21978
21978
  direction: this.options.textDirection
21979
21979
  })
21980
21980
  ].filter((s) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[s.name] !== !1 : !0) : [], ...this.options.extensions].filter((s) => ["extension", "node", "mark"].includes(s == null ? void 0 : s.type));
21981
- this.extensionManager = new Vl(a, this);
21981
+ this.extensionManager = new ql(a, this);
21982
21982
  }
21983
21983
  /**
21984
21984
  * Creates an command manager.
21985
21985
  */
21986
21986
  createCommandManager() {
21987
- this.commandManager = new Ol({
21987
+ this.commandManager = new Nl({
21988
21988
  editor: this
21989
21989
  });
21990
21990
  }
@@ -22191,7 +22191,7 @@ img.ProseMirror-separator {
22191
22191
  }
22192
22192
  };
22193
22193
  function ai(o) {
22194
- return new jl({
22194
+ return new Vl({
22195
22195
  find: o.find,
22196
22196
  handler: ({ state: e, range: t, match: r }) => {
22197
22197
  const n = Oe(o.getAttributes, void 0, r);
@@ -22211,7 +22211,7 @@ function ai(o) {
22211
22211
  });
22212
22212
  }
22213
22213
  function zj(o) {
22214
- return new jl({
22214
+ return new Vl({
22215
22215
  find: o.find,
22216
22216
  handler: ({ state: e, range: t, match: r }) => {
22217
22217
  const n = Oe(o.getAttributes, void 0, r) || {}, { tr: i } = e, a = t.from;
@@ -22236,7 +22236,7 @@ function zj(o) {
22236
22236
  });
22237
22237
  }
22238
22238
  function Tp(o) {
22239
- return new jl({
22239
+ return new Vl({
22240
22240
  find: o.find,
22241
22241
  handler: ({ state: e, range: t, match: r }) => {
22242
22242
  const n = e.doc.resolve(t.from), i = Oe(o.getAttributes, void 0, r) || {};
@@ -22248,7 +22248,7 @@ function Tp(o) {
22248
22248
  });
22249
22249
  }
22250
22250
  function si(o) {
22251
- return new jl({
22251
+ return new Vl({
22252
22252
  find: o.find,
22253
22253
  handler: ({ state: e, range: t, match: r, chain: n }) => {
22254
22254
  const i = Oe(o.getAttributes, void 0, r) || {}, a = e.tr.delete(t.from, t.to), l = a.doc.resolve(t.from).blockRange(), d = l && ic(l, o.type, i);
@@ -22470,7 +22470,7 @@ ae({
22470
22470
  });
22471
22471
  }
22472
22472
  });
22473
- var Qs = (o, e) => {
22473
+ var Xs = (o, e) => {
22474
22474
  if (o === "slot")
22475
22475
  return 0;
22476
22476
  if (o instanceof Function)
@@ -22784,9 +22784,9 @@ var dr = class Dt {
22784
22784
  }
22785
22785
  };
22786
22786
  dr.empty = new dr([], 0);
22787
- var Md = { index: 0, offset: 0 };
22787
+ var Ld = { index: 0, offset: 0 };
22788
22788
  function Za(o, e) {
22789
- return Md.index = o, Md.offset = e, Md;
22789
+ return Ld.index = o, Ld.offset = e, Ld;
22790
22790
  }
22791
22791
  var Fj = class extends Error {
22792
22792
  }, ot = class qn {
@@ -22898,7 +22898,7 @@ function mb(o) {
22898
22898
  function Vj(o) {
22899
22899
  return (o - (o & h7)) / f7;
22900
22900
  }
22901
- var y7 = 1, v7 = 2, Cs = 4, w7 = 8, gb = class {
22901
+ var y7 = 1, v7 = 2, Ts = 4, w7 = 8, gb = class {
22902
22902
  /**
22903
22903
  @internal
22904
22904
  */
@@ -22917,13 +22917,13 @@ var y7 = 1, v7 = 2, Cs = 4, w7 = 8, gb = class {
22917
22917
  Tells you whether the token before the mapped position was deleted.
22918
22918
  */
22919
22919
  get deletedBefore() {
22920
- return (this.delInfo & (y7 | Cs)) > 0;
22920
+ return (this.delInfo & (y7 | Ts)) > 0;
22921
22921
  }
22922
22922
  /**
22923
22923
  True when the token after the mapped position was deleted.
22924
22924
  */
22925
22925
  get deletedAfter() {
22926
- return (this.delInfo & (v7 | Cs)) > 0;
22926
+ return (this.delInfo & (v7 | Ts)) > 0;
22927
22927
  }
22928
22928
  /**
22929
22929
  Tells whether any of the steps mapped through deletes across the
@@ -22931,7 +22931,7 @@ var y7 = 1, v7 = 2, Cs = 4, w7 = 8, gb = class {
22931
22931
  position).
22932
22932
  */
22933
22933
  get deletedAcross() {
22934
- return (this.delInfo & Cs) > 0;
22934
+ return (this.delInfo & Ts) > 0;
22935
22935
  }
22936
22936
  }, yn = class Un {
22937
22937
  /**
@@ -22973,7 +22973,7 @@ var y7 = 1, v7 = 2, Cs = 4, w7 = 8, gb = class {
22973
22973
  let b = d ? e == l ? -1 : e == u ? 1 : t : t, m = l + n + (b < 0 ? 0 : c);
22974
22974
  if (r)
22975
22975
  return m;
22976
- let h = e == (t < 0 ? l : u) ? null : jj(s / 3, e - l), x = e == l ? v7 : e == u ? y7 : Cs;
22976
+ let h = e == (t < 0 ? l : u) ? null : jj(s / 3, e - l), x = e == l ? v7 : e == u ? y7 : Ts;
22977
22977
  return (t < 0 ? e != l : e != u) && (x |= w7), new gb(m, x, h);
22978
22978
  }
22979
22979
  n += c - d;
@@ -23030,7 +23030,7 @@ var y7 = 1, v7 = 2, Cs = 4, w7 = 8, gb = class {
23030
23030
  }
23031
23031
  };
23032
23032
  yn.empty = new yn([]);
23033
- var Ld = /* @__PURE__ */ Object.create(null), At = class {
23033
+ var Ed = /* @__PURE__ */ Object.create(null), At = class {
23034
23034
  /**
23035
23035
  Get the step map that represents the changes made by this step,
23036
23036
  and which can be used to transform between positions in the old
@@ -23054,7 +23054,7 @@ var Ld = /* @__PURE__ */ Object.create(null), At = class {
23054
23054
  static fromJSON(o, e) {
23055
23055
  if (!e || !e.stepType)
23056
23056
  throw new RangeError("Invalid input for Step.fromJSON");
23057
- let t = Ld[e.stepType];
23057
+ let t = Ed[e.stepType];
23058
23058
  if (!t)
23059
23059
  throw new RangeError(`No step type ${e.stepType} defined`);
23060
23060
  return t.fromJSON(o, e);
@@ -23066,9 +23066,9 @@ var Ld = /* @__PURE__ */ Object.create(null), At = class {
23066
23066
  that's unlikely to clash with steps from other modules.
23067
23067
  */
23068
23068
  static jsonID(o, e) {
23069
- if (o in Ld)
23069
+ if (o in Ed)
23070
23070
  throw new RangeError("Duplicate use of step JSON ID " + o);
23071
- return Ld[o] = e, e.prototype.jsonID = o, e;
23071
+ return Ed[o] = e, e.prototype.jsonID = o, e;
23072
23072
  }
23073
23073
  }, Ft = class Ni {
23074
23074
  /**
@@ -23322,7 +23322,7 @@ var Ac = class kr extends At {
23322
23322
  };
23323
23323
  Ac.MAP_BIAS = 1;
23324
23324
  At.jsonID("replace", Ac);
23325
- var P7 = class Ts extends At {
23325
+ var P7 = class Ps extends At {
23326
23326
  /**
23327
23327
  Create a replace-around step with the given range and gap.
23328
23328
  `insert` should be the point in the slice into which the content
@@ -23353,11 +23353,11 @@ var P7 = class Ts extends At {
23353
23353
  }
23354
23354
  invert(e) {
23355
23355
  let t = this.gapTo - this.gapFrom;
23356
- return new Ts(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
23356
+ return new Ps(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
23357
23357
  }
23358
23358
  map(e) {
23359
23359
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), n = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), i = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
23360
- return t.deletedAcross && r.deletedAcross || n < t.pos || i > r.pos ? null : new Ts(t.pos, r.pos, n, i, this.slice, this.insert, this.structure);
23360
+ return t.deletedAcross && r.deletedAcross || n < t.pos || i > r.pos ? null : new Ps(t.pos, r.pos, n, i, this.slice, this.insert, this.structure);
23361
23361
  }
23362
23362
  toJSON() {
23363
23363
  let e = {
@@ -23376,7 +23376,7 @@ var P7 = class Ts extends At {
23376
23376
  static fromJSON(e, t) {
23377
23377
  if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
23378
23378
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
23379
- return new Ts(t.from, t.to, t.gapFrom, t.gapTo, ot.fromJSON(e, t.slice), t.insert, !!t.structure);
23379
+ return new Ps(t.from, t.to, t.gapFrom, t.gapTo, ot.fromJSON(e, t.slice), t.insert, !!t.structure);
23380
23380
  }
23381
23381
  };
23382
23382
  At.jsonID("replaceAround", P7);
@@ -23394,7 +23394,7 @@ function Mp(o, e, t) {
23394
23394
  }
23395
23395
  return !1;
23396
23396
  }
23397
- var qj = class Ps extends At {
23397
+ var qj = class Ms extends At {
23398
23398
  /**
23399
23399
  Construct an attribute step.
23400
23400
  */
@@ -23416,11 +23416,11 @@ var qj = class Ps extends At {
23416
23416
  return yn.empty;
23417
23417
  }
23418
23418
  invert(e) {
23419
- return new Ps(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
23419
+ return new Ms(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
23420
23420
  }
23421
23421
  map(e) {
23422
23422
  let t = e.mapResult(this.pos, 1);
23423
- return t.deletedAfter ? null : new Ps(t.pos, this.attr, this.value);
23423
+ return t.deletedAfter ? null : new Ms(t.pos, this.attr, this.value);
23424
23424
  }
23425
23425
  toJSON() {
23426
23426
  return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
@@ -23428,7 +23428,7 @@ var qj = class Ps extends At {
23428
23428
  static fromJSON(e, t) {
23429
23429
  if (typeof t.pos != "number" || typeof t.attr != "string")
23430
23430
  throw new RangeError("Invalid input for AttrStep.fromJSON");
23431
- return new Ps(t.pos, t.attr, t.value);
23431
+ return new Ms(t.pos, t.attr, t.value);
23432
23432
  }
23433
23433
  };
23434
23434
  At.jsonID("attr", qj);
@@ -23475,7 +23475,7 @@ Sa = function o(e) {
23475
23475
  Sa.prototype = Object.create(Error.prototype);
23476
23476
  Sa.prototype.constructor = Sa;
23477
23477
  Sa.prototype.name = "TransformError";
23478
- var Ed = /* @__PURE__ */ Object.create(null), dt = class {
23478
+ var Ad = /* @__PURE__ */ Object.create(null), dt = class {
23479
23479
  /**
23480
23480
  Initialize a selection with the head and anchor and ranges. If no
23481
23481
  ranges are given, constructs a single range across `$anchor` and
@@ -23610,7 +23610,7 @@ var Ed = /* @__PURE__ */ Object.create(null), dt = class {
23610
23610
  static fromJSON(o, e) {
23611
23611
  if (!e || !e.type)
23612
23612
  throw new RangeError("Invalid input for Selection.fromJSON");
23613
- let t = Ed[e.type];
23613
+ let t = Ad[e.type];
23614
23614
  if (!t)
23615
23615
  throw new RangeError(`No selection type ${e.type} defined`);
23616
23616
  return t.fromJSON(o, e);
@@ -23622,9 +23622,9 @@ var Ed = /* @__PURE__ */ Object.create(null), dt = class {
23622
23622
  clash with classes from other modules.
23623
23623
  */
23624
23624
  static jsonID(o, e) {
23625
- if (o in Ed)
23625
+ if (o in Ad)
23626
23626
  throw new RangeError("Duplicate use of selection JSON ID " + o);
23627
- return Ed[o] = e, e.prototype.jsonID = o, e;
23627
+ return Ad[o] = e, e.prototype.jsonID = o, e;
23628
23628
  }
23629
23629
  /**
23630
23630
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -23794,7 +23794,7 @@ var Gj = class E7 {
23794
23794
  let t = e.resolve(this.anchor), r = t.nodeAfter;
23795
23795
  return r && di.isSelectable(r) ? new di(t) : dt.near(t);
23796
23796
  }
23797
- }, ta = class Ms extends dt {
23797
+ }, ta = class Ls extends dt {
23798
23798
  /**
23799
23799
  Create an all-selection over the given document.
23800
23800
  */
@@ -23816,13 +23816,13 @@ var Gj = class E7 {
23816
23816
  @internal
23817
23817
  */
23818
23818
  static fromJSON(e) {
23819
- return new Ms(e);
23819
+ return new Ls(e);
23820
23820
  }
23821
23821
  map(e) {
23822
- return new Ms(e);
23822
+ return new Ls(e);
23823
23823
  }
23824
23824
  eq(e) {
23825
- return e instanceof Ms;
23825
+ return e instanceof Ls;
23826
23826
  }
23827
23827
  getBookmark() {
23828
23828
  return Kj;
@@ -23932,7 +23932,7 @@ var Jj = (o, e) => {
23932
23932
  return [{ tag: "blockquote" }];
23933
23933
  },
23934
23934
  renderHTML({ HTMLAttributes: o }) {
23935
- return /* @__PURE__ */ Qs("blockquote", { ...at(this.options.HTMLAttributes, o), children: /* @__PURE__ */ Qs("slot", {}) });
23935
+ return /* @__PURE__ */ Xs("blockquote", { ...at(this.options.HTMLAttributes, o), children: /* @__PURE__ */ Xs("slot", {}) });
23936
23936
  },
23937
23937
  parseMarkdown: (o, e) => {
23938
23938
  var t;
@@ -24001,7 +24001,7 @@ ${t}
24001
24001
  ];
24002
24002
  },
24003
24003
  renderHTML({ HTMLAttributes: o }) {
24004
- return /* @__PURE__ */ Qs("strong", { ...at(this.options.HTMLAttributes, o), children: /* @__PURE__ */ Qs("slot", {}) });
24004
+ return /* @__PURE__ */ Xs("strong", { ...at(this.options.HTMLAttributes, o), children: /* @__PURE__ */ Xs("slot", {}) });
24005
24005
  },
24006
24006
  markdownTokenName: "strong",
24007
24007
  parseMarkdown: (o, e) => e.applyMark("bold", e.parseInline(o.tokens || [])),
@@ -24113,7 +24113,7 @@ ${t}
24113
24113
  })
24114
24114
  ];
24115
24115
  }
24116
- }), Ad = 4, aV = /^```([a-z]+)?[\s\n]$/, sV = /^~~~([a-z]+)?[\s\n]$/, lV = Zt.create({
24116
+ }), $d = 4, aV = /^```([a-z]+)?[\s\n]$/, sV = /^~~~([a-z]+)?[\s\n]$/, lV = Zt.create({
24117
24117
  name: "codeBlock",
24118
24118
  addOptions() {
24119
24119
  return {
@@ -24122,7 +24122,7 @@ ${t}
24122
24122
  exitOnArrowDown: !0,
24123
24123
  defaultLanguage: null,
24124
24124
  enableTabIndentation: !1,
24125
- tabSize: Ad,
24125
+ tabSize: $d,
24126
24126
  HTMLAttributes: {}
24127
24127
  };
24128
24128
  },
@@ -24205,7 +24205,7 @@ ${t}
24205
24205
  var e;
24206
24206
  if (!this.options.enableTabIndentation)
24207
24207
  return !1;
24208
- const t = (e = this.options.tabSize) != null ? e : Ad, { state: r } = o, { selection: n } = r, { $from: i, empty: a } = n;
24208
+ const t = (e = this.options.tabSize) != null ? e : $d, { state: r } = o, { selection: n } = r, { $from: i, empty: a } = n;
24209
24209
  if (i.parent.type !== this.type)
24210
24210
  return !1;
24211
24211
  const s = " ".repeat(t);
@@ -24223,7 +24223,7 @@ ${t}
24223
24223
  var e;
24224
24224
  if (!this.options.enableTabIndentation)
24225
24225
  return !1;
24226
- const t = (e = this.options.tabSize) != null ? e : Ad, { state: r } = o, { selection: n } = r, { $from: i, empty: a } = n;
24226
+ const t = (e = this.options.tabSize) != null ? e : $d, { state: r } = o, { selection: n } = r, { $from: i, empty: a } = n;
24227
24227
  return i.parent.type !== this.type ? !1 : a ? o.commands.command(({ tr: s }) => {
24228
24228
  var l;
24229
24229
  const { pos: d } = i, c = i.start(), u = i.end(), m = r.doc.textBetween(c, u, `
@@ -24574,7 +24574,7 @@ ${t}
24574
24574
  ];
24575
24575
  }
24576
24576
  });
24577
- const fV = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", yV = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Ep = "numeric", Ap = "ascii", $p = "alpha", oa = "asciinumeric", Wi = "alphanumeric", _p = "domain", A7 = "emoji", vV = "scheme", wV = "slashscheme", $d = "whitespace";
24577
+ const fV = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", yV = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Ep = "numeric", Ap = "ascii", $p = "alpha", oa = "asciinumeric", Wi = "alphanumeric", _p = "domain", A7 = "emoji", vV = "scheme", wV = "slashscheme", _d = "whitespace";
24578
24578
  function SV(o, e) {
24579
24579
  return o in e || (e[o] = []), e[o];
24580
24580
  }
@@ -24715,73 +24715,73 @@ Kt.prototype = {
24715
24715
  return n.j[o] = a, a;
24716
24716
  }
24717
24717
  };
24718
- const $e = (o, e, t, r, n) => o.ta(e, t, r, n), Ye = (o, e, t, r, n) => o.tr(e, t, r, n), vb = (o, e, t, r, n) => o.ts(e, t, r, n), ee = (o, e, t, r, n) => o.tt(e, t, r, n), Zo = "WORD", Bp = "UWORD", $7 = "ASCIINUMERICAL", _7 = "ALPHANUMERICAL", ka = "LOCALHOST", Ip = "TLD", Hp = "UTLD", Ls = "SCHEME", Gn = "SLASH_SCHEME", $c = "NUM", Dp = "WS", _c = "NL", ra = "OPENBRACE", na = "CLOSEBRACE", Xs = "OPENBRACKET", Zs = "CLOSEBRACKET", el = "OPENPAREN", tl = "CLOSEPAREN", ol = "OPENANGLEBRACKET", rl = "CLOSEANGLEBRACKET", nl = "FULLWIDTHLEFTPAREN", il = "FULLWIDTHRIGHTPAREN", al = "LEFTCORNERBRACKET", sl = "RIGHTCORNERBRACKET", ll = "LEFTWHITECORNERBRACKET", dl = "RIGHTWHITECORNERBRACKET", pl = "FULLWIDTHLESSTHAN", cl = "FULLWIDTHGREATERTHAN", ul = "AMPERSAND", bl = "APOSTROPHE", ml = "ASTERISK", Tr = "AT", gl = "BACKSLASH", xl = "BACKTICK", hl = "CARET", ln = "COLON", Bc = "COMMA", fl = "DOLLAR", $o = "DOT", yl = "EQUALS", Ic = "EXCLAMATION", io = "HYPHEN", ia = "PERCENT", vl = "PIPE", wl = "PLUS", Sl = "POUND", aa = "QUERY", Hc = "QUOTE", B7 = "FULLWIDTHMIDDLEDOT", Dc = "SEMI", _o = "SLASH", sa = "TILDE", kl = "UNDERSCORE", I7 = "EMOJI", Cl = "SYM";
24718
+ const $e = (o, e, t, r, n) => o.ta(e, t, r, n), Ye = (o, e, t, r, n) => o.tr(e, t, r, n), vb = (o, e, t, r, n) => o.ts(e, t, r, n), ee = (o, e, t, r, n) => o.tt(e, t, r, n), Zo = "WORD", Bp = "UWORD", $7 = "ASCIINUMERICAL", _7 = "ALPHANUMERICAL", ka = "LOCALHOST", Ip = "TLD", Hp = "UTLD", Es = "SCHEME", Gn = "SLASH_SCHEME", $c = "NUM", Dp = "WS", _c = "NL", ra = "OPENBRACE", na = "CLOSEBRACE", Zs = "OPENBRACKET", el = "CLOSEBRACKET", tl = "OPENPAREN", ol = "CLOSEPAREN", rl = "OPENANGLEBRACKET", nl = "CLOSEANGLEBRACKET", il = "FULLWIDTHLEFTPAREN", al = "FULLWIDTHRIGHTPAREN", sl = "LEFTCORNERBRACKET", ll = "RIGHTCORNERBRACKET", dl = "LEFTWHITECORNERBRACKET", pl = "RIGHTWHITECORNERBRACKET", cl = "FULLWIDTHLESSTHAN", ul = "FULLWIDTHGREATERTHAN", bl = "AMPERSAND", ml = "APOSTROPHE", gl = "ASTERISK", Tr = "AT", xl = "BACKSLASH", hl = "BACKTICK", fl = "CARET", ln = "COLON", Bc = "COMMA", yl = "DOLLAR", $o = "DOT", vl = "EQUALS", Ic = "EXCLAMATION", io = "HYPHEN", ia = "PERCENT", wl = "PIPE", Sl = "PLUS", kl = "POUND", aa = "QUERY", Hc = "QUOTE", B7 = "FULLWIDTHMIDDLEDOT", Dc = "SEMI", _o = "SLASH", sa = "TILDE", Cl = "UNDERSCORE", I7 = "EMOJI", Tl = "SYM";
24719
24719
  var H7 = /* @__PURE__ */ Object.freeze({
24720
24720
  __proto__: null,
24721
24721
  ALPHANUMERICAL: _7,
24722
- AMPERSAND: ul,
24723
- APOSTROPHE: bl,
24722
+ AMPERSAND: bl,
24723
+ APOSTROPHE: ml,
24724
24724
  ASCIINUMERICAL: $7,
24725
- ASTERISK: ml,
24725
+ ASTERISK: gl,
24726
24726
  AT: Tr,
24727
- BACKSLASH: gl,
24728
- BACKTICK: xl,
24729
- CARET: hl,
24730
- CLOSEANGLEBRACKET: rl,
24727
+ BACKSLASH: xl,
24728
+ BACKTICK: hl,
24729
+ CARET: fl,
24730
+ CLOSEANGLEBRACKET: nl,
24731
24731
  CLOSEBRACE: na,
24732
- CLOSEBRACKET: Zs,
24733
- CLOSEPAREN: tl,
24732
+ CLOSEBRACKET: el,
24733
+ CLOSEPAREN: ol,
24734
24734
  COLON: ln,
24735
24735
  COMMA: Bc,
24736
- DOLLAR: fl,
24736
+ DOLLAR: yl,
24737
24737
  DOT: $o,
24738
24738
  EMOJI: I7,
24739
- EQUALS: yl,
24739
+ EQUALS: vl,
24740
24740
  EXCLAMATION: Ic,
24741
- FULLWIDTHGREATERTHAN: cl,
24742
- FULLWIDTHLEFTPAREN: nl,
24743
- FULLWIDTHLESSTHAN: pl,
24741
+ FULLWIDTHGREATERTHAN: ul,
24742
+ FULLWIDTHLEFTPAREN: il,
24743
+ FULLWIDTHLESSTHAN: cl,
24744
24744
  FULLWIDTHMIDDLEDOT: B7,
24745
- FULLWIDTHRIGHTPAREN: il,
24745
+ FULLWIDTHRIGHTPAREN: al,
24746
24746
  HYPHEN: io,
24747
- LEFTCORNERBRACKET: al,
24748
- LEFTWHITECORNERBRACKET: ll,
24747
+ LEFTCORNERBRACKET: sl,
24748
+ LEFTWHITECORNERBRACKET: dl,
24749
24749
  LOCALHOST: ka,
24750
24750
  NL: _c,
24751
24751
  NUM: $c,
24752
- OPENANGLEBRACKET: ol,
24752
+ OPENANGLEBRACKET: rl,
24753
24753
  OPENBRACE: ra,
24754
- OPENBRACKET: Xs,
24755
- OPENPAREN: el,
24754
+ OPENBRACKET: Zs,
24755
+ OPENPAREN: tl,
24756
24756
  PERCENT: ia,
24757
- PIPE: vl,
24758
- PLUS: wl,
24759
- POUND: Sl,
24757
+ PIPE: wl,
24758
+ PLUS: Sl,
24759
+ POUND: kl,
24760
24760
  QUERY: aa,
24761
24761
  QUOTE: Hc,
24762
- RIGHTCORNERBRACKET: sl,
24763
- RIGHTWHITECORNERBRACKET: dl,
24764
- SCHEME: Ls,
24762
+ RIGHTCORNERBRACKET: ll,
24763
+ RIGHTWHITECORNERBRACKET: pl,
24764
+ SCHEME: Es,
24765
24765
  SEMI: Dc,
24766
24766
  SLASH: _o,
24767
24767
  SLASH_SCHEME: Gn,
24768
- SYM: Cl,
24768
+ SYM: Tl,
24769
24769
  TILDE: sa,
24770
24770
  TLD: Ip,
24771
- UNDERSCORE: kl,
24771
+ UNDERSCORE: Cl,
24772
24772
  UTLD: Hp,
24773
24773
  UWORD: Bp,
24774
24774
  WORD: Zo,
24775
24775
  WS: Dp
24776
24776
  });
24777
- const Yo = /[a-z]/, Li = new RegExp("\\p{L}", "u"), _d = new RegExp("\\p{Emoji}", "u"), Qo = /\d/, Bd = /\s/, wb = "\r", Id = `
24778
- `, CV = "️", TV = "‍", Hd = "";
24777
+ const Yo = /[a-z]/, Li = new RegExp("\\p{L}", "u"), Bd = new RegExp("\\p{Emoji}", "u"), Qo = /\d/, Id = /\s/, wb = "\r", Hd = `
24778
+ `, CV = "️", TV = "‍", Dd = "";
24779
24779
  let ts = null, rs = null;
24780
24780
  function PV(o = []) {
24781
24781
  const e = {};
24782
24782
  Kt.groups = e;
24783
24783
  const t = new Kt();
24784
- ts == null && (ts = Sb(fV)), rs == null && (rs = Sb(yV)), ee(t, "'", bl), ee(t, "{", ra), ee(t, "}", na), ee(t, "[", Xs), ee(t, "]", Zs), ee(t, "(", el), ee(t, ")", tl), ee(t, "<", ol), ee(t, ">", rl), ee(t, "(", nl), ee(t, ")", il), ee(t, "「", al), ee(t, "」", sl), ee(t, "『", ll), ee(t, "』", dl), ee(t, "<", pl), ee(t, ">", cl), ee(t, "&", ul), ee(t, "*", ml), ee(t, "@", Tr), ee(t, "`", xl), ee(t, "^", hl), ee(t, ":", ln), ee(t, ",", Bc), ee(t, "$", fl), ee(t, ".", $o), ee(t, "=", yl), ee(t, "!", Ic), ee(t, "-", io), ee(t, "%", ia), ee(t, "|", vl), ee(t, "+", wl), ee(t, "#", Sl), ee(t, "?", aa), ee(t, '"', Hc), ee(t, "/", _o), ee(t, ";", Dc), ee(t, "~", sa), ee(t, "_", kl), ee(t, "\\", gl), ee(t, "・", B7);
24784
+ ts == null && (ts = Sb(fV)), rs == null && (rs = Sb(yV)), ee(t, "'", ml), ee(t, "{", ra), ee(t, "}", na), ee(t, "[", Zs), ee(t, "]", el), ee(t, "(", tl), ee(t, ")", ol), ee(t, "<", rl), ee(t, ">", nl), ee(t, "(", il), ee(t, ")", al), ee(t, "「", sl), ee(t, "」", ll), ee(t, "『", dl), ee(t, "』", pl), ee(t, "<", cl), ee(t, ">", ul), ee(t, "&", bl), ee(t, "*", gl), ee(t, "@", Tr), ee(t, "`", hl), ee(t, "^", fl), ee(t, ":", ln), ee(t, ",", Bc), ee(t, "$", yl), ee(t, ".", $o), ee(t, "=", vl), ee(t, "!", Ic), ee(t, "-", io), ee(t, "%", ia), ee(t, "|", wl), ee(t, "+", Sl), ee(t, "#", kl), ee(t, "?", aa), ee(t, '"', Hc), ee(t, "/", _o), ee(t, ";", Dc), ee(t, "~", sa), ee(t, "_", Cl), ee(t, "\\", xl), ee(t, "・", B7);
24785
24785
  const r = Ye(t, Qo, $c, {
24786
24786
  [Ep]: !0
24787
24787
  });
@@ -24798,20 +24798,20 @@ function PV(o = []) {
24798
24798
  [$p]: !0
24799
24799
  });
24800
24800
  Ye(s, Yo), Ye(s, Qo, i), Ye(s, Li, s), Ye(i, Qo, i), Ye(i, Yo), Ye(i, Li, i);
24801
- const l = ee(t, Id, _c, {
24802
- [$d]: !0
24801
+ const l = ee(t, Hd, _c, {
24802
+ [_d]: !0
24803
24803
  }), d = ee(t, wb, Dp, {
24804
- [$d]: !0
24805
- }), c = Ye(t, Bd, Dp, {
24806
- [$d]: !0
24804
+ [_d]: !0
24805
+ }), c = Ye(t, Id, Dp, {
24806
+ [_d]: !0
24807
24807
  });
24808
- ee(t, Hd, c), ee(d, Id, l), ee(d, Hd, c), Ye(d, Bd, c), ee(c, wb), ee(c, Id), Ye(c, Bd, c), ee(c, Hd, c);
24809
- const u = Ye(t, _d, I7, {
24808
+ ee(t, Dd, c), ee(d, Hd, l), ee(d, Dd, c), Ye(d, Id, c), ee(c, wb), ee(c, Hd), Ye(c, Id, c), ee(c, Dd, c);
24809
+ const u = Ye(t, Bd, I7, {
24810
24810
  [A7]: !0
24811
24811
  });
24812
- ee(u, "#"), Ye(u, _d, u), ee(u, CV, u);
24812
+ ee(u, "#"), Ye(u, Bd, u), ee(u, CV, u);
24813
24813
  const b = ee(u, TV);
24814
- ee(b, "#"), Ye(b, _d, u);
24814
+ ee(b, "#"), Ye(b, Bd, u);
24815
24815
  const m = [[Yo, a], [Qo, n]], h = [[Yo, null], [Li, s], [Qo, i]];
24816
24816
  for (let x = 0; x < ts.length; x++)
24817
24817
  vr(t, ts[x], Ip, Zo, m);
@@ -24823,7 +24823,7 @@ function PV(o = []) {
24823
24823
  }, e), sn(Hp, {
24824
24824
  utld: !0,
24825
24825
  alpha: !0
24826
- }, e), vr(t, "file", Ls, Zo, m), vr(t, "mailto", Ls, Zo, m), vr(t, "http", Gn, Zo, m), vr(t, "https", Gn, Zo, m), vr(t, "ftp", Gn, Zo, m), vr(t, "ftps", Gn, Zo, m), sn(Ls, {
24826
+ }, e), vr(t, "file", Es, Zo, m), vr(t, "mailto", Es, Zo, m), vr(t, "http", Gn, Zo, m), vr(t, "https", Gn, Zo, m), vr(t, "ftp", Gn, Zo, m), vr(t, "ftps", Gn, Zo, m), sn(Es, {
24827
24827
  scheme: !0,
24828
24828
  ascii: !0
24829
24829
  }, e), sn(Gn, {
@@ -24840,7 +24840,7 @@ function PV(o = []) {
24840
24840
  }
24841
24841
  return vb(t, "localhost", ka, {
24842
24842
  ascii: !0
24843
- }), t.jd = new Kt(Cl), {
24843
+ }), t.jd = new Kt(Tl), {
24844
24844
  start: t,
24845
24845
  tokens: Object.assign({
24846
24846
  groups: e
@@ -25098,7 +25098,7 @@ R7.prototype = {
25098
25098
  };
25099
25099
  }
25100
25100
  };
25101
- function ql(o, e) {
25101
+ function Ul(o, e) {
25102
25102
  class t extends R7 {
25103
25103
  constructor(n, i) {
25104
25104
  super(n, i), this.t = o;
@@ -25108,12 +25108,12 @@ function ql(o, e) {
25108
25108
  t.prototype[r] = e[r];
25109
25109
  return t.t = o, t;
25110
25110
  }
25111
- const LV = ql("email", {
25111
+ const LV = Ul("email", {
25112
25112
  isLink: !0,
25113
25113
  toHref() {
25114
25114
  return "mailto:" + this.toString();
25115
25115
  }
25116
- }), Cb = ql("text"), EV = ql("nl"), ns = ql("url", {
25116
+ }), Cb = Ul("text"), EV = Ul("nl"), ns = Ul("url", {
25117
25117
  isLink: !0,
25118
25118
  /**
25119
25119
  Lowercases relevant parts of the domain and adds the protocol if
@@ -25137,7 +25137,7 @@ const LV = ql("email", {
25137
25137
  function AV({
25138
25138
  groups: o
25139
25139
  }) {
25140
- const e = o.domain.concat([ul, ml, Tr, gl, xl, hl, fl, yl, io, $c, ia, vl, wl, Sl, _o, Cl, sa, kl]), t = [bl, ln, Bc, $o, Ic, ia, aa, Hc, Dc, ol, rl, ra, na, Zs, Xs, el, tl, nl, il, al, sl, ll, dl, pl, cl], r = [ul, bl, ml, gl, xl, hl, fl, yl, io, ra, na, ia, vl, wl, Sl, aa, _o, Cl, sa, kl], n = no(), i = ee(n, sa);
25140
+ const e = o.domain.concat([bl, gl, Tr, xl, hl, fl, yl, vl, io, $c, ia, wl, Sl, kl, _o, Tl, sa, Cl]), t = [ml, ln, Bc, $o, Ic, ia, aa, Hc, Dc, rl, nl, ra, na, el, Zs, tl, ol, il, al, sl, ll, dl, pl, cl, ul], r = [bl, ml, gl, xl, hl, fl, yl, vl, io, ra, na, ia, wl, Sl, kl, aa, _o, Tl, sa, Cl], n = no(), i = ee(n, sa);
25141
25141
  $e(i, r, i), $e(i, o.domain, i);
25142
25142
  const a = no(), s = no(), l = no();
25143
25143
  $e(n, o.domain, a), $e(n, o.scheme, s), $e(n, o.slashscheme, l), $e(a, r, i), $e(a, o.domain, a);
@@ -25166,19 +25166,19 @@ function AV({
25166
25166
  const M = [
25167
25167
  [ra, na],
25168
25168
  // {}
25169
- [Xs, Zs],
25169
+ [Zs, el],
25170
25170
  // []
25171
- [el, tl],
25171
+ [tl, ol],
25172
25172
  // ()
25173
- [ol, rl],
25173
+ [rl, nl],
25174
25174
  // <>
25175
- [nl, il],
25175
+ [il, al],
25176
25176
  // ()
25177
- [al, sl],
25177
+ [sl, ll],
25178
25178
  // 「」
25179
- [ll, dl],
25179
+ [dl, pl],
25180
25180
  // 『』
25181
- [pl, cl]
25181
+ [cl, ul]
25182
25182
  // <>
25183
25183
  ];
25184
25184
  for (let _ = 0; _ < M.length; _++) {
@@ -25205,14 +25205,14 @@ function $V(o, e, t) {
25205
25205
  if (b < 0)
25206
25206
  n -= c, n < r && (a.push(t[n]), n++);
25207
25207
  else {
25208
- a.length > 0 && (i.push(Dd(Cb, e, a)), a = []), n -= b, c -= b;
25208
+ a.length > 0 && (i.push(Rd(Cb, e, a)), a = []), n -= b, c -= b;
25209
25209
  const m = u.t, h = t.slice(n - c, n);
25210
- i.push(Dd(m, e, h));
25210
+ i.push(Rd(m, e, h));
25211
25211
  }
25212
25212
  }
25213
- return a.length > 0 && i.push(Dd(Cb, e, a)), i;
25213
+ return a.length > 0 && i.push(Rd(Cb, e, a)), i;
25214
25214
  }
25215
- function Dd(o, e, t) {
25215
+ function Rd(o, e, t) {
25216
25216
  const r = t[0].s, n = t[t.length - 1].e, i = e.slice(r, n);
25217
25217
  return new o(i, t);
25218
25218
  }
@@ -25729,7 +25729,7 @@ var VV = kn.create({
25729
25729
  [4, "iv"],
25730
25730
  [1, "i"]
25731
25731
  ], is = "abcdefghijklmnopqrstuvwxyz", YV = "[a-zA-Z]{1,2}", Nc = String.raw`\d+|[ivxlcdmIVXLCDM]+|${YV}`;
25732
- function Ul(o) {
25732
+ function Wl(o) {
25733
25733
  let e = o, t = "";
25734
25734
  for (const [r, n] of F7)
25735
25735
  for (; e >= r; )
@@ -25737,7 +25737,7 @@ function Ul(o) {
25737
25737
  return t;
25738
25738
  }
25739
25739
  function Fc(o) {
25740
- return Ul(o).toUpperCase();
25740
+ return Wl(o).toUpperCase();
25741
25741
  }
25742
25742
  function j7(o) {
25743
25743
  const e = o.toLowerCase();
@@ -25758,7 +25758,7 @@ function QV(o) {
25758
25758
  if (!/^[ivxlcdmIVXLCDM]+$/.test(o))
25759
25759
  return !1;
25760
25760
  const e = j7(o);
25761
- return e <= 0 ? !1 : (o === o.toLowerCase() ? Ul(e) : Fc(e)) === o;
25761
+ return e <= 0 ? !1 : (o === o.toLowerCase() ? Wl(e) : Fc(e)) === o;
25762
25762
  }
25763
25763
  function XV(o) {
25764
25764
  const e = o.toLowerCase();
@@ -25770,13 +25770,13 @@ function XV(o) {
25770
25770
  }
25771
25771
  return 0;
25772
25772
  }
25773
- function Tl(o) {
25773
+ function Pl(o) {
25774
25774
  if (o <= 26)
25775
25775
  return is[o - 1];
25776
25776
  const e = Math.floor((o - 1) / 26) - 1, t = (o - 1) % 26;
25777
25777
  return e < 0 ? is[t] : is[e] + is[t];
25778
25778
  }
25779
- function Wl(o) {
25779
+ function Gl(o) {
25780
25780
  if (!(!o || /^\d+$/.test(o))) {
25781
25781
  if (QV(o))
25782
25782
  return o === o.toLowerCase() ? "i" : "I";
@@ -25789,7 +25789,7 @@ function Wl(o) {
25789
25789
  function jc(o) {
25790
25790
  if (/^\d+$/.test(o))
25791
25791
  return parseInt(o, 10);
25792
- const e = Wl(o);
25792
+ const e = Gl(o);
25793
25793
  if (e === "i" || e === "I")
25794
25794
  return j7(o);
25795
25795
  if (e === "a" || e === "A") {
@@ -25804,11 +25804,11 @@ function ZV(o, e) {
25804
25804
  return String(e);
25805
25805
  switch (o) {
25806
25806
  case "a":
25807
- return Tl(e);
25807
+ return Pl(e);
25808
25808
  case "A":
25809
- return Tl(e).toUpperCase();
25809
+ return Pl(e).toUpperCase();
25810
25810
  case "i":
25811
- return Ul(e);
25811
+ return Wl(e);
25812
25812
  case "I":
25813
25813
  return Fc(e);
25814
25814
  default:
@@ -25819,7 +25819,7 @@ function eq(o) {
25819
25819
  var e;
25820
25820
  if (o.length === 0)
25821
25821
  return !1;
25822
- const t = (e = Wl(o[0])) != null ? e : "numeric", r = jc(o[0]);
25822
+ const t = (e = Gl(o[0])) != null ? e : "numeric", r = jc(o[0]);
25823
25823
  if (r < 1)
25824
25824
  return !1;
25825
25825
  for (let n = 0; n < o.length; n++) {
@@ -25831,7 +25831,7 @@ function eq(o) {
25831
25831
  }
25832
25832
  function tq(o) {
25833
25833
  return {
25834
- type: Wl(o),
25834
+ type: Gl(o),
25835
25835
  start: jc(o)
25836
25836
  };
25837
25837
  }
@@ -25845,11 +25845,11 @@ function rq(o, e, t = ". ") {
25845
25845
  return `${r}${t}`;
25846
25846
  switch (o) {
25847
25847
  case "a":
25848
- return `${Tl(r)}${t}`;
25848
+ return `${Pl(r)}${t}`;
25849
25849
  case "A":
25850
- return `${Tl(r).toUpperCase()}${t}`;
25850
+ return `${Pl(r).toUpperCase()}${t}`;
25851
25851
  case "i":
25852
- return `${Ul(r)}${t}`;
25852
+ return `${Wl(r)}${t}`;
25853
25853
  case "I":
25854
25854
  return `${Fc(r)}${t}`;
25855
25855
  default:
@@ -25969,7 +25969,7 @@ var V7 = Zt.create({
25969
25969
  }
25970
25970
  }), aq = {};
25971
25971
  UV(aq, {
25972
- findListItemPos: () => Gl,
25972
+ findListItemPos: () => Kl,
25973
25973
  getNextListDepth: () => Vc,
25974
25974
  handleBackspace: () => Rp,
25975
25975
  handleDelete: () => zp,
@@ -25980,14 +25980,14 @@ UV(aq, {
25980
25980
  nextListIsDeeper: () => U7,
25981
25981
  nextListIsHigher: () => W7
25982
25982
  });
25983
- var Gl = (o, e) => {
25983
+ var Kl = (o, e) => {
25984
25984
  const { $from: t } = e.selection, r = nt(o, e.schema);
25985
25985
  let n = null, i = t.depth, a = t.pos, s = null;
25986
25986
  for (; i > 0 && s === null; )
25987
25987
  n = t.node(i), n.type === r ? s = i : (i -= 1, a -= 1);
25988
25988
  return s === null ? null : { $pos: e.doc.resolve(a), depth: s };
25989
25989
  }, Vc = (o, e) => {
25990
- const t = Gl(o, e);
25990
+ const t = Kl(o, e);
25991
25991
  if (!t)
25992
25992
  return !1;
25993
25993
  const [, r] = FF(e, o, t.$pos.pos + 4);
@@ -26013,10 +26013,10 @@ var Gl = (o, e) => {
26013
26013
  }
26014
26014
  return !Fr(o.state, e) || !UF(o.state) ? !1 : o.chain().liftListItem(e).run();
26015
26015
  }, U7 = (o, e) => {
26016
- const t = Vc(o, e), r = Gl(o, e);
26016
+ const t = Vc(o, e), r = Kl(o, e);
26017
26017
  return !r || !t ? !1 : t > r.depth;
26018
26018
  }, W7 = (o, e) => {
26019
- const t = Vc(o, e), r = Gl(o, e);
26019
+ const t = Vc(o, e), r = Kl(o, e);
26020
26020
  return !r || !t ? !1 : t < r.depth;
26021
26021
  }, zp = (o, e) => {
26022
26022
  if (!Fr(o.state, e) || !qF(o.state, e))
@@ -26130,7 +26130,7 @@ function gq(o) {
26130
26130
  const n = o[t], i = n.match(Op);
26131
26131
  if (!i)
26132
26132
  break;
26133
- const [, a, s, l, d] = i, c = a.length, u = parseInt(s, 10), b = isNaN(u) ? Wl(s) : void 0, m = isNaN(u) ? jc(s) : u, h = [d];
26133
+ const [, a, s, l, d] = i, c = a.length, u = parseInt(s, 10), b = isNaN(u) ? Gl(s) : void 0, m = isNaN(u) ? jc(s) : u, h = [d];
26134
26134
  let x = t + 1;
26135
26135
  const v = [n];
26136
26136
  let C = !1;
@@ -26705,7 +26705,7 @@ Je.create({
26705
26705
  return this.options.bulletList !== !1 && o.push(O7.configure(this.options.bulletList)), this.options.listItem !== !1 && o.push(V7.configure(this.options.listItem)), this.options.listKeymap !== !1 && o.push(G7.configure(this.options.listKeymap)), this.options.orderedList !== !1 && o.push(J7.configure(this.options.orderedList)), this.options.taskItem !== !1 && o.push(wq.configure(this.options.taskItem)), this.options.taskList !== !1 && o.push(Sq.configure(this.options.taskList)), o;
26706
26706
  }
26707
26707
  });
26708
- var as = "&nbsp;", Rd = " ", kq = Zt.create({
26708
+ var as = "&nbsp;", zd = " ", kq = Zt.create({
26709
26709
  name: "paragraph",
26710
26710
  priority: 1e3,
26711
26711
  addOptions() {
@@ -26726,7 +26726,7 @@ var as = "&nbsp;", Rd = " ", kq = Zt.create({
26726
26726
  if (t.length === 1 && t[0].type === "image")
26727
26727
  return e.parseChildren([t[0]]);
26728
26728
  const r = e.parseInline(t);
26729
- return t.length === 1 && t[0].type === "text" && (t[0].raw === as || t[0].text === as || t[0].raw === Rd || t[0].text === Rd) && r.length === 1 && r[0].type === "text" && (r[0].text === as || r[0].text === Rd) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, r);
26729
+ return t.length === 1 && t[0].type === "text" && (t[0].raw === as || t[0].text === as || t[0].raw === zd || t[0].text === zd) && r.length === 1 && r[0].type === "text" && (r[0].text === as || r[0].text === zd) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, r);
26730
26730
  },
26731
26731
  renderMarkdown: (o, e, t) => {
26732
26732
  var r, n;
@@ -27154,10 +27154,10 @@ function Rq(o) {
27154
27154
  let e = document.createElement("div");
27155
27155
  return e.className = "ProseMirror-gapcursor", Ke.create(o.doc, [Nt.widget(o.selection.head, e, { key: "gapcursor" })]);
27156
27156
  }
27157
- var Pl = 200, ut = function() {
27157
+ var Ml = 200, ut = function() {
27158
27158
  };
27159
27159
  ut.prototype.append = function(e) {
27160
- return e.length ? (e = ut.from(e), !this.length && e || e.length < Pl && this.leafAppend(e) || this.length < Pl && e.leafPrepend(this) || this.appendInner(e)) : this;
27160
+ return e.length ? (e = ut.from(e), !this.length && e || e.length < Ml && this.leafAppend(e) || this.length < Ml && e.leafPrepend(this) || this.appendInner(e)) : this;
27161
27161
  };
27162
27162
  ut.prototype.prepend = function(e) {
27163
27163
  return e.length ? ut.from(e).append(this) : this;
@@ -27206,10 +27206,10 @@ var Q7 = /* @__PURE__ */ (function(o) {
27206
27206
  if (n(this.values[l], s + l) === !1)
27207
27207
  return !1;
27208
27208
  }, e.prototype.leafAppend = function(n) {
27209
- if (this.length + n.length <= Pl)
27209
+ if (this.length + n.length <= Ml)
27210
27210
  return new e(this.values.concat(n.flatten()));
27211
27211
  }, e.prototype.leafPrepend = function(n) {
27212
- if (this.length + n.length <= Pl)
27212
+ if (this.length + n.length <= Ml)
27213
27213
  return new e(n.flatten().concat(this.values));
27214
27214
  }, t.length.get = function() {
27215
27215
  return this.values.length;
@@ -27399,11 +27399,11 @@ function jq(o, e, t, r) {
27399
27399
  if (t.steps.length == 0)
27400
27400
  return o;
27401
27401
  if (a && a.getMeta(bn))
27402
- return a.getMeta(bn).redo ? new Pr(o.done.addTransform(t, void 0, r, Es(e)), o.undone, $b(t.mapping.maps), o.prevTime, o.prevComposition) : new Pr(o.done, o.undone.addTransform(t, void 0, r, Es(e)), null, o.prevTime, o.prevComposition);
27402
+ return a.getMeta(bn).redo ? new Pr(o.done.addTransform(t, void 0, r, As(e)), o.undone, $b(t.mapping.maps), o.prevTime, o.prevComposition) : new Pr(o.done, o.undone.addTransform(t, void 0, r, As(e)), null, o.prevTime, o.prevComposition);
27403
27403
  if (t.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) {
27404
- let s = t.getMeta("composition"), l = o.prevTime == 0 || !a && o.prevComposition != s && (o.prevTime < (t.time || 0) - r.newGroupDelay || !Vq(t, o.prevRanges)), d = a ? zd(o.prevRanges, t.mapping) : $b(t.mapping.maps);
27405
- return new Pr(o.done.addTransform(t, l ? e.selection.getBookmark() : void 0, r, Es(e)), So.empty, d, t.time, s ?? o.prevComposition);
27406
- } else return (i = t.getMeta("rebased")) ? new Pr(o.done.rebased(t, i), o.undone.rebased(t, i), zd(o.prevRanges, t.mapping), o.prevTime, o.prevComposition) : new Pr(o.done.addMaps(t.mapping.maps), o.undone.addMaps(t.mapping.maps), zd(o.prevRanges, t.mapping), o.prevTime, o.prevComposition);
27404
+ let s = t.getMeta("composition"), l = o.prevTime == 0 || !a && o.prevComposition != s && (o.prevTime < (t.time || 0) - r.newGroupDelay || !Vq(t, o.prevRanges)), d = a ? Od(o.prevRanges, t.mapping) : $b(t.mapping.maps);
27405
+ return new Pr(o.done.addTransform(t, l ? e.selection.getBookmark() : void 0, r, As(e)), So.empty, d, t.time, s ?? o.prevComposition);
27406
+ } else return (i = t.getMeta("rebased")) ? new Pr(o.done.rebased(t, i), o.undone.rebased(t, i), Od(o.prevRanges, t.mapping), o.prevTime, o.prevComposition) : new Pr(o.done.addMaps(t.mapping.maps), o.undone.addMaps(t.mapping.maps), Od(o.prevRanges, t.mapping), o.prevTime, o.prevComposition);
27407
27407
  }
27408
27408
  function Vq(o, e) {
27409
27409
  if (!e)
@@ -27422,7 +27422,7 @@ function $b(o) {
27422
27422
  o[t].forEach((r, n, i, a) => e.push(i, a));
27423
27423
  return e;
27424
27424
  }
27425
- function zd(o, e) {
27425
+ function Od(o, e) {
27426
27426
  if (!o)
27427
27427
  return null;
27428
27428
  let t = [];
@@ -27433,24 +27433,24 @@ function zd(o, e) {
27433
27433
  return t;
27434
27434
  }
27435
27435
  function qq(o, e, t) {
27436
- let r = Es(e), n = bn.get(e).spec.config, i = (t ? o.undone : o.done).popEvent(e, r);
27436
+ let r = As(e), n = bn.get(e).spec.config, i = (t ? o.undone : o.done).popEvent(e, r);
27437
27437
  if (!i)
27438
27438
  return null;
27439
27439
  let a = i.selection.resolve(i.transform.doc), s = (t ? o.done : o.undone).addTransform(i.transform, e.selection.getBookmark(), n, r), l = new Pr(t ? s : i.remaining, t ? i.remaining : s, null, 0, -1);
27440
27440
  return i.transform.setSelection(a).setMeta(bn, { redo: t, historyState: l });
27441
27441
  }
27442
- let Od = !1, _b = null;
27443
- function Es(o) {
27442
+ let Nd = !1, _b = null;
27443
+ function As(o) {
27444
27444
  let e = o.plugins;
27445
27445
  if (_b != e) {
27446
- Od = !1, _b = e;
27446
+ Nd = !1, _b = e;
27447
27447
  for (let t = 0; t < e.length; t++)
27448
27448
  if (e[t].spec.historyPreserveItems) {
27449
- Od = !0;
27449
+ Nd = !0;
27450
27450
  break;
27451
27451
  }
27452
27452
  }
27453
- return Od;
27453
+ return Nd;
27454
27454
  }
27455
27455
  const bn = new st("history"), Uq = new st("closeHistory");
27456
27456
  function Wq(o = {}) {
@@ -27965,7 +27965,7 @@ var aU = Je.create({
27965
27965
  function ls(o, e, t) {
27966
27966
  return Array.isArray(o) ? (o.length = Math.max(o.length, e), o.splice(e, 1, t), t) : (o[e] = t, t);
27967
27967
  }
27968
- function Nd(o, e) {
27968
+ function Fd(o, e) {
27969
27969
  if (Array.isArray(o)) {
27970
27970
  o.splice(e, 1);
27971
27971
  return;
@@ -28100,7 +28100,7 @@ function aD(o) {
28100
28100
  }
28101
28101
  return e.status >= 200 && e.status <= 299;
28102
28102
  }
28103
- function As(o) {
28103
+ function $s(o) {
28104
28104
  try {
28105
28105
  o.dispatchEvent(new MouseEvent("click"));
28106
28106
  } catch {
@@ -28108,11 +28108,11 @@ function As(o) {
28108
28108
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), o.dispatchEvent(t);
28109
28109
  }
28110
28110
  }
28111
- const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, sD = /Macintosh/.test($s.userAgent) && /AppleWebKit/.test($s.userAgent) && !/Safari/.test($s.userAgent), lD = $r ? (
28111
+ const _s = typeof navigator == "object" ? navigator : { userAgent: "" }, sD = /Macintosh/.test(_s.userAgent) && /AppleWebKit/.test(_s.userAgent) && !/Safari/.test(_s.userAgent), lD = $r ? (
28112
28112
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
28113
28113
  typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !sD ? hU : (
28114
28114
  // Use msSaveOrOpenBlob as a second approach
28115
- "msSaveOrOpenBlob" in $s ? fU : (
28115
+ "msSaveOrOpenBlob" in _s ? fU : (
28116
28116
  // Fallback to using FileReader and a popup
28117
28117
  yU
28118
28118
  )
@@ -28121,10 +28121,10 @@ const $s = typeof navigator == "object" ? navigator : { userAgent: "" }, sD = /M
28121
28121
  };
28122
28122
  function hU(o, e = "download", t) {
28123
28123
  const r = document.createElement("a");
28124
- r.download = e, r.rel = "noopener", typeof o == "string" ? (r.href = o, r.origin !== location.origin ? aD(r.href) ? Uc(o, e, t) : (r.target = "_blank", As(r)) : As(r)) : (r.href = URL.createObjectURL(o), setTimeout(function() {
28124
+ r.download = e, r.rel = "noopener", typeof o == "string" ? (r.href = o, r.origin !== location.origin ? aD(r.href) ? Uc(o, e, t) : (r.target = "_blank", $s(r)) : $s(r)) : (r.href = URL.createObjectURL(o), setTimeout(function() {
28125
28125
  URL.revokeObjectURL(r.href);
28126
28126
  }, 4e4), setTimeout(function() {
28127
- As(r);
28127
+ $s(r);
28128
28128
  }, 0));
28129
28129
  }
28130
28130
  function fU(o, e = "download", t) {
@@ -28134,7 +28134,7 @@ function fU(o, e = "download", t) {
28134
28134
  else {
28135
28135
  const r = document.createElement("a");
28136
28136
  r.href = o, r.target = "_blank", setTimeout(function() {
28137
- As(r);
28137
+ $s(r);
28138
28138
  });
28139
28139
  }
28140
28140
  else
@@ -28242,10 +28242,10 @@ function vo(o) {
28242
28242
  }
28243
28243
  };
28244
28244
  }
28245
- const uD = "🍍 Pinia (root)", _s = "_root";
28245
+ const uD = "🍍 Pinia (root)", Bs = "_root";
28246
28246
  function TU(o) {
28247
28247
  return Wc(o) ? {
28248
- id: _s,
28248
+ id: Bs,
28249
28249
  label: uD
28250
28250
  } : {
28251
28251
  id: o.$id,
@@ -28314,7 +28314,7 @@ function LU(o) {
28314
28314
  }
28315
28315
  }
28316
28316
  let Yn = !0;
28317
- const Bs = [], tn = "pinia:mutations", Pt = "pinia", { assign: EU } = Object, Ml = (o) => "🍍 " + o;
28317
+ const Is = [], tn = "pinia:mutations", Pt = "pinia", { assign: EU } = Object, Ll = (o) => "🍍 " + o;
28318
28318
  function AU(o, e) {
28319
28319
  nD({
28320
28320
  id: "dev.esm.pinia",
@@ -28322,7 +28322,7 @@ function AU(o, e) {
28322
28322
  logo: "https://pinia.vuejs.org/logo.svg",
28323
28323
  packageName: "pinia",
28324
28324
  homepage: "https://pinia.vuejs.org",
28325
- componentStateTypes: Bs,
28325
+ componentStateTypes: Is,
28326
28326
  app: o
28327
28327
  }, (t) => {
28328
28328
  typeof t.now != "function" && pt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), t.addTimelineLayer({
@@ -28380,7 +28380,7 @@ function AU(o, e) {
28380
28380
  const a = r.componentInstance.proxy._pStores;
28381
28381
  Object.values(a).forEach((s) => {
28382
28382
  r.instanceData.state.push({
28383
- type: Ml(s.$id),
28383
+ type: Ll(s.$id),
28384
28384
  key: "state",
28385
28385
  editable: !0,
28386
28386
  value: s._isOptionsAPI ? {
@@ -28399,7 +28399,7 @@ function AU(o, e) {
28399
28399
  Object.keys(s.$state).reduce((l, d) => (l[d] = s.$state[d], l), {})
28400
28400
  )
28401
28401
  }), s._getters && s._getters.length && r.instanceData.state.push({
28402
- type: Ml(s.$id),
28402
+ type: Ll(s.$id),
28403
28403
  key: "getters",
28404
28404
  editable: !1,
28405
28405
  value: s._getters.reduce((l, d) => {
@@ -28420,14 +28420,14 @@ function AU(o, e) {
28420
28420
  }
28421
28421
  }), globalThis.$pinia = e, t.on.getInspectorState((r) => {
28422
28422
  if (r.app === o && r.inspectorId === Pt) {
28423
- const n = r.nodeId === _s ? e : e._s.get(r.nodeId);
28423
+ const n = r.nodeId === Bs ? e : e._s.get(r.nodeId);
28424
28424
  if (!n)
28425
28425
  return;
28426
- n && (r.nodeId !== _s && (globalThis.$store = Tt(n)), r.state = PU(n));
28426
+ n && (r.nodeId !== Bs && (globalThis.$store = Tt(n)), r.state = PU(n));
28427
28427
  }
28428
28428
  }), t.on.editInspectorState((r, n) => {
28429
28429
  if (r.app === o && r.inspectorId === Pt) {
28430
- const i = r.nodeId === _s ? e : e._s.get(r.nodeId);
28430
+ const i = r.nodeId === Bs ? e : e._s.get(r.nodeId);
28431
28431
  if (!i)
28432
28432
  return pt(`store "${r.nodeId}" not found`, "error");
28433
28433
  const { path: a } = r;
@@ -28449,13 +28449,13 @@ Only state can be modified.`);
28449
28449
  });
28450
28450
  }
28451
28451
  function $U(o, e) {
28452
- Bs.includes(Ml(e.$id)) || Bs.push(Ml(e.$id)), nD({
28452
+ Is.includes(Ll(e.$id)) || Is.push(Ll(e.$id)), nD({
28453
28453
  id: "dev.esm.pinia",
28454
28454
  label: "Pinia 🍍",
28455
28455
  logo: "https://pinia.vuejs.org/logo.svg",
28456
28456
  packageName: "pinia",
28457
28457
  homepage: "https://pinia.vuejs.org",
28458
- componentStateTypes: Bs,
28458
+ componentStateTypes: Is,
28459
28459
  app: o,
28460
28460
  settings: {
28461
28461
  logStoreChanges: {
@@ -28657,7 +28657,7 @@ function Rn(o, ...e) {
28657
28657
  t(...e);
28658
28658
  });
28659
28659
  }
28660
- const IU = (o) => o(), Nb = Symbol(), Fd = Symbol();
28660
+ const IU = (o) => o(), Nb = Symbol(), jd = Symbol();
28661
28661
  function Fp(o, e) {
28662
28662
  o instanceof Map && e instanceof Map ? e.forEach((t, r) => o.set(r, t)) : o instanceof Set && e instanceof Set && e.forEach(o.add, o);
28663
28663
  for (const t in e) {
@@ -28743,7 +28743,7 @@ function jp(o, e, t = {}, r, n, i) {
28743
28743
  }
28744
28744
  const B = (M, _ = "") => {
28745
28745
  if (Nb in M)
28746
- return M[Fd] = _, M;
28746
+ return M[jd] = _, M;
28747
28747
  const G = function() {
28748
28748
  Pa(r);
28749
28749
  const N = Array.from(arguments), F = [], W = [];
@@ -28755,7 +28755,7 @@ function jp(o, e, t = {}, r, n, i) {
28755
28755
  }
28756
28756
  Rn(b, {
28757
28757
  args: N,
28758
- name: G[Fd],
28758
+ name: G[jd],
28759
28759
  store: P,
28760
28760
  after: j,
28761
28761
  onError: Z
@@ -28768,7 +28768,7 @@ function jp(o, e, t = {}, r, n, i) {
28768
28768
  }
28769
28769
  return se instanceof Promise ? se.then((de) => (Rn(F, de), de)).catch((de) => (Rn(W, de), Promise.reject(de))) : (Rn(F, se), se);
28770
28770
  };
28771
- return G[Nb] = !0, G[Fd] = _, G;
28771
+ return G[Nb] = !0, G[jd] = _, G;
28772
28772
  }, A = /* @__PURE__ */ Ar({
28773
28773
  actions: {},
28774
28774
  getters: {},
@@ -28807,7 +28807,7 @@ function jp(o, e, t = {}, r, n, i) {
28807
28807
  for (const M in $) {
28808
28808
  const _ = $[M];
28809
28809
  if (pa(_) && !Fb(_) || Zp(_))
28810
- process.env.NODE_ENV !== "production" && n ? ls(x.value, M, dd($, M)) : i || (h && DU(_) && (pa(_) ? _.value = h[M] : Fp(_, h[M])), r.state.value[o][M] = _), process.env.NODE_ENV !== "production" && A.state.push(M);
28810
+ process.env.NODE_ENV !== "production" && n ? ls(x.value, M, pd($, M)) : i || (h && DU(_) && (pa(_) ? _.value = h[M] : Fp(_, h[M])), r.state.value[o][M] = _), process.env.NODE_ENV !== "production" && A.state.push(M);
28811
28811
  else if (typeof _ == "function") {
28812
28812
  const G = process.env.NODE_ENV !== "production" && n ? _ : B(_, M);
28813
28813
  $[M] = G, process.env.NODE_ENV !== "production" && (A.actions[M] = _), s.actions[M] = _;
@@ -28832,10 +28832,10 @@ function jp(o, e, t = {}, r, n, i) {
28832
28832
  const G = M.$state[_], N = P.$state[_];
28833
28833
  typeof G == "object" && vn(G) && vn(N) ? mD(G, N) : M.$state[_] = N;
28834
28834
  }
28835
- ls(P, _, dd(M.$state, _));
28835
+ ls(P, _, pd(M.$state, _));
28836
28836
  }), Object.keys(P.$state).forEach((_) => {
28837
- _ in M.$state || Nd(P, _);
28838
- }), d = !1, c = !1, r.state.value[o] = dd(M._hmrPayload, "hotState"), c = !0, ue().then(() => {
28837
+ _ in M.$state || Fd(P, _);
28838
+ }), d = !1, c = !1, r.state.value[o] = pd(M._hmrPayload, "hotState"), c = !0, ue().then(() => {
28839
28839
  d = !0;
28840
28840
  });
28841
28841
  for (const _ in M._hmrPayload.actions) {
@@ -28850,9 +28850,9 @@ function jp(o, e, t = {}, r, n, i) {
28850
28850
  ls(P, _, N);
28851
28851
  }
28852
28852
  Object.keys(P._hmrPayload.getters).forEach((_) => {
28853
- _ in M._hmrPayload.getters || Nd(P, _);
28853
+ _ in M._hmrPayload.getters || Fd(P, _);
28854
28854
  }), Object.keys(P._hmrPayload.actions).forEach((_) => {
28855
- _ in M._hmrPayload.actions || Nd(P, _);
28855
+ _ in M._hmrPayload.actions || Fd(P, _);
28856
28856
  }), P._hmrPayload = M._hmrPayload, P._getters = M._getters, P._hotUpdating = !1;
28857
28857
  })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && $r) {
28858
28858
  const M = {
@@ -30429,7 +30429,7 @@ let Kp = 0;
30429
30429
  function LW() {
30430
30430
  return !!document.querySelector("[data-pbx-edit-toolbar-popover]");
30431
30431
  }
30432
- function jd(o = 800) {
30432
+ function Vd(o = 800) {
30433
30433
  Kp = Math.max(Kp, Date.now() + o);
30434
30434
  }
30435
30435
  function EW() {
@@ -30438,7 +30438,7 @@ function EW() {
30438
30438
  function AW() {
30439
30439
  window.dispatchEvent(new CustomEvent(Do));
30440
30440
  }
30441
- const Kl = function(e = 200) {
30441
+ const Jl = function(e = 200) {
30442
30442
  return new Promise((t) => {
30443
30443
  setTimeout(t, e);
30444
30444
  });
@@ -30619,7 +30619,7 @@ const Kl = function(e = 200) {
30619
30619
  }
30620
30620
  }, pe = async function(te) {
30621
30621
  if (n.value) {
30622
- await Kl(300);
30622
+ await Jl(300);
30623
30623
  try {
30624
30624
  const K = i.value, _e = wt(n.value);
30625
30625
  Y(), ve(_e), await e.finishInlineTipTapEditor(K), te && te !== K && await e.selectEditableElement(te);
@@ -30870,7 +30870,7 @@ const WW = /* @__PURE__ */ Cn(VW, [["render", UW]]), GW = {
30870
30870
  }, {
30871
30871
  default: U(() => [
30872
30872
  o.customMediaComponent ? (f(), w("div", GW, [
30873
- (f(), be(_l(o.customMediaComponent)))
30873
+ (f(), be(Bl(o.customMediaComponent)))
30874
30874
  ])) : (f(), w("div", KW, [
30875
30875
  z(WW)
30876
30876
  ]))
@@ -30887,7 +30887,7 @@ function JW(o, e, t) {
30887
30887
  }
30888
30888
  var Jb;
30889
30889
  let YW = Symbol("headlessui.useid"), QW = 0;
30890
- const Jl = (Jb = tu.useId) != null ? Jb : function() {
30890
+ const Yl = (Jb = tu.useId) != null ? Jb : function() {
30891
30891
  return tu.inject(YW, () => `${++QW}`)();
30892
30892
  };
30893
30893
  function Ze(o) {
@@ -31041,18 +31041,18 @@ var Jp = ((o) => (o[o.None = 0] = "None", o[o.RenderStrategy = 1] = "RenderStrat
31041
31041
  function gi({ visible: o = !0, features: e = 0, ourProps: t, theirProps: r, ...n }) {
31042
31042
  var i;
31043
31043
  let a = DD(r, t), s = Object.assign(n, { props: a });
31044
- if (o || e & 2 && a.static) return Vd(s);
31044
+ if (o || e & 2 && a.static) return qd(s);
31045
31045
  if (e & 1) {
31046
31046
  let l = (i = a.unmount) == null || i ? 0 : 1;
31047
31047
  return Po(l, { 0() {
31048
31048
  return null;
31049
31049
  }, 1() {
31050
- return Vd({ ...n, props: { ...a, hidden: !0, style: { display: "none" } } });
31050
+ return qd({ ...n, props: { ...a, hidden: !0, style: { display: "none" } } });
31051
31051
  } });
31052
31052
  }
31053
- return Vd(s);
31053
+ return qd(s);
31054
31054
  }
31055
- function Vd({ props: o, attrs: e, slots: t, slot: r, name: n }) {
31055
+ function qd({ props: o, attrs: e, slots: t, slot: r, name: n }) {
31056
31056
  var i, a;
31057
31057
  let { as: s, ...l } = RD(o, ["unmount", "static"]), d = (i = t.default) == null ? void 0 : i.call(t, r), c = {};
31058
31058
  if (r) {
@@ -31294,7 +31294,7 @@ let Ha = ae({ name: "Listbox", emits: { "update:modelValue": (o) => !0 }, props:
31294
31294
  } });
31295
31295
  ae({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(o, { attrs: e, slots: t }) {
31296
31296
  var r;
31297
- let n = (r = o.id) != null ? r : `headlessui-listbox-label-${Jl()}`, i = Ia("ListboxLabel");
31297
+ let n = (r = o.id) != null ? r : `headlessui-listbox-label-${Yl()}`, i = Ia("ListboxLabel");
31298
31298
  function a() {
31299
31299
  var s;
31300
31300
  (s = Ze(i.buttonRef)) == null || s.focus({ preventScroll: !0 });
@@ -31306,7 +31306,7 @@ ae({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "labe
31306
31306
  } });
31307
31307
  let Da = ae({ name: "ListboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(o, { attrs: e, slots: t, expose: r }) {
31308
31308
  var n;
31309
- let i = (n = o.id) != null ? n : `headlessui-listbox-button-${Jl()}`, a = Ia("ListboxButton");
31309
+ let i = (n = o.id) != null ? n : `headlessui-listbox-button-${Yl()}`, a = Ia("ListboxButton");
31310
31310
  r({ el: a.buttonRef, $el: a.buttonRef });
31311
31311
  function s(u) {
31312
31312
  switch (u.key) {
@@ -31350,7 +31350,7 @@ let Da = ae({ name: "ListboxButton", props: { as: { type: [Object, String], defa
31350
31350
  };
31351
31351
  } }), Ra = ae({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: null } }, setup(o, { attrs: e, slots: t, expose: r }) {
31352
31352
  var n;
31353
- let i = (n = o.id) != null ? n : `headlessui-listbox-options-${Jl()}`, a = Ia("ListboxOptions"), s = S(null);
31353
+ let i = (n = o.id) != null ? n : `headlessui-listbox-options-${Yl()}`, a = Ia("ListboxOptions"), s = S(null);
31354
31354
  r({ el: a.optionsRef, $el: a.optionsRef });
31355
31355
  function l(u) {
31356
31356
  switch (s.value && clearTimeout(s.value), u.key) {
@@ -31398,7 +31398,7 @@ let Da = ae({ name: "ListboxButton", props: { as: { type: [Object, String], defa
31398
31398
  };
31399
31399
  } }), lr = ae({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: null } }, setup(o, { slots: e, attrs: t, expose: r }) {
31400
31400
  var n;
31401
- let i = (n = o.id) != null ? n : `headlessui-listbox-option-${Jl()}`, a = Ia("ListboxOption"), s = S(null);
31401
+ let i = (n = o.id) != null ? n : `headlessui-listbox-option-${Yl()}`, a = Ia("ListboxOption"), s = S(null);
31402
31402
  r({ el: s, $el: s });
31403
31403
  let l = L(() => a.activeOptionIndex.value !== null ? a.options.value[a.activeOptionIndex.value].id === i : !1), d = L(() => Po(a.mode.value, { 0: () => a.compare(Tt(a.value.value), Tt(o.value)), 1: () => Tt(a.value.value).some((k) => a.compare(Tt(k), Tt(o.value))) })), c = L(() => Po(a.mode.value, { 1: () => {
31404
31404
  var k;
@@ -31931,7 +31931,7 @@ function GD(o, e) {
31931
31931
  const t = o.trim();
31932
31932
  return /^#[0-9a-fA-F]{6}$/.test(t) ? t.toLowerCase() : /^[0-9a-fA-F]{6}$/.test(t) ? `#${t.toLowerCase()}` : e;
31933
31933
  }
31934
- function Yl(o) {
31934
+ function Ql(o) {
31935
31935
  const e = o && typeof o == "object" ? o : {}, t = Array.isArray(e.colors) ? e.colors : [];
31936
31936
  return {
31937
31937
  enabled: typeof e.enabled == "boolean" ? e.enabled : !0,
@@ -31946,7 +31946,7 @@ function Yl(o) {
31946
31946
  })
31947
31947
  };
31948
31948
  }
31949
- function Is(o, e = La) {
31949
+ function Hs(o, e = La) {
31950
31950
  if (!(typeof localStorage > "u"))
31951
31951
  try {
31952
31952
  localStorage.setItem(e, JSON.stringify(o));
@@ -31957,7 +31957,7 @@ function EG(o = La) {
31957
31957
  if (typeof localStorage > "u") return null;
31958
31958
  try {
31959
31959
  const e = localStorage.getItem(o);
31960
- return e ? Yl(JSON.parse(e)) : null;
31960
+ return e ? Ql(JSON.parse(e)) : null;
31961
31961
  } catch {
31962
31962
  return null;
31963
31963
  }
@@ -31973,12 +31973,12 @@ function om(o) {
31973
31973
  return;
31974
31974
  }
31975
31975
  const r = (n = o == null ? void 0 : o.settings) == null ? void 0 : n.themeColorPresets;
31976
- kt.value = Yl(r ?? null), Is(kt.value, e), Kn = !0;
31976
+ kt.value = Ql(r ?? null), Hs(kt.value, e), Kn = !0;
31977
31977
  }
31978
31978
  function Cce() {
31979
- typeof localStorage < "u" && localStorage.removeItem(La), Kn = !1, kt.value = Yl(null);
31979
+ typeof localStorage < "u" && localStorage.removeItem(La), Kn = !1, kt.value = Ql(null);
31980
31980
  }
31981
- function Ql(o) {
31981
+ function Xl(o) {
31982
31982
  om(g(o)), o && le(
31983
31983
  o,
31984
31984
  (i) => {
@@ -31989,7 +31989,7 @@ function Ql(o) {
31989
31989
  function e() {
31990
31990
  var l;
31991
31991
  const i = g(o), a = WD(i), s = (l = i == null ? void 0 : i.settings) == null ? void 0 : l.themeColorPresets;
31992
- kt.value = Yl(s ?? null), Is(kt.value, a);
31992
+ kt.value = Ql(s ?? null), Hs(kt.value, a);
31993
31993
  }
31994
31994
  const t = L(() => kt.value.enabled ? kt.value.colors.filter(
31995
31995
  (i) => i.enabled && /^#[0-9a-fA-F]{6}$/.test(i.color)
@@ -31998,7 +31998,7 @@ function Ql(o) {
31998
31998
  kt.value = {
31999
31999
  ...kt.value,
32000
32000
  enabled: i
32001
- }, Is(kt.value);
32001
+ }, Hs(kt.value);
32002
32002
  }
32003
32003
  function n(i, a) {
32004
32004
  kt.value = {
@@ -32010,7 +32010,7 @@ function Ql(o) {
32010
32010
  color: typeof a.color == "string" ? GD(a.color, s.color) : s.color
32011
32011
  } : s
32012
32012
  )
32013
- }, Is(kt.value);
32013
+ }, Hs(kt.value);
32014
32014
  }
32015
32015
  return {
32016
32016
  themeColorPresetSettings: kt,
@@ -32080,7 +32080,7 @@ function KD(o = {}) {
32080
32080
  updatePosition: a
32081
32081
  };
32082
32082
  }
32083
- const AG = ["width", "height"], Ll = /* @__PURE__ */ ae({
32083
+ const AG = ["width", "height"], El = /* @__PURE__ */ ae({
32084
32084
  __name: "SliderIcon",
32085
32085
  props: {
32086
32086
  size: { default: 16 }
@@ -32096,7 +32096,7 @@ const AG = ["width", "height"], Ll = /* @__PURE__ */ ae({
32096
32096
  ec('<title>slider</title><g fill="none"><line x1="11.25" y1="8.75" x2="6.25" y2="8.75" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></line><circle cx="4.25" cy="8.75" r="2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle><line x1="2.25" y1="8.75" x2=".75" y2="8.75" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></line><line x1=".75" y1="3.25" x2="5.75" y2="3.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></line><circle cx="7.75" cy="3.25" r="2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle><line x1="9.75" y1="3.25" x2="11.25" y2="3.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></line></g>', 2)
32097
32097
  ])], 8, AG));
32098
32098
  }
32099
- }), $G = { class: "pbx-w-6 pbx-h-6 pbx-flex pbx-items-center pbx-justify-center" }, _G = { class: "pbx-flex-1" }, El = /* @__PURE__ */ ae({
32099
+ }), $G = { class: "pbx-w-6 pbx-h-6 pbx-flex pbx-items-center pbx-justify-center" }, _G = { class: "pbx-flex-1" }, Al = /* @__PURE__ */ ae({
32100
32100
  __name: "ColorMenuCustomSection",
32101
32101
  props: {
32102
32102
  modelValue: {}
@@ -32114,7 +32114,7 @@ const AG = ["width", "height"], Ll = /* @__PURE__ */ ae({
32114
32114
  onClick: r[2] || (r[2] = Te((n) => t.$emit("open"), ["stop"]))
32115
32115
  }, [
32116
32116
  p("div", $G, [
32117
- z(Ll)
32117
+ z(El)
32118
32118
  ]),
32119
32119
  p("span", _G, y(g(e)("Custom color")), 1),
32120
32120
  o.modelValue ? (f(), w("span", {
@@ -32397,7 +32397,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
32397
32397
  },
32398
32398
  emits: ["close", "saved"],
32399
32399
  setup(o, { emit: e }) {
32400
- const t = o, r = e, { translate: n } = Se(), { showToast: i } = vt(), a = L(() => Ve.getPageBuilderConfig), { themeColorPresetSettings: s, updateThemeColorPreset: l } = Ql(a);
32400
+ const t = o, r = e, { translate: n } = Se(), { showToast: i } = vt(), a = L(() => Ve.getPageBuilderConfig), { themeColorPresetSettings: s, updateThemeColorPreset: l } = Xl(a);
32401
32401
  function d(c) {
32402
32402
  const u = s.value.colors.find((b) => b.id === c);
32403
32403
  l(c, { color: t.color, enabled: !0 }), i(`${n("Color saved to")} ${n((u == null ? void 0 : u.label) ?? c)}`, "success"), r("saved", c), r("close");
@@ -32619,7 +32619,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
32619
32619
  }
32620
32620
  },
32621
32621
  setup(o) {
32622
- const { translate: e } = Se(), t = Ue(), r = Ve, n = S(null), i = L(() => r.getTextColor), a = L(() => r.getPageBuilderConfig), { enabledThemeColorPresets: s } = Ql(a), {
32622
+ const { translate: e } = Se(), t = Ue(), r = Ve, n = S(null), i = L(() => r.getTextColor), a = L(() => r.getPageBuilderConfig), { enabledThemeColorPresets: s } = Xl(a), {
32623
32623
  triggerRef: l,
32624
32624
  popoverRef: d,
32625
32625
  isOpen: c,
@@ -32714,7 +32714,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
32714
32714
  _: 1
32715
32715
  }),
32716
32716
  $[10] || ($[10] = p("div", { class: "pbx-my-1 pbx-border-0 pbx-border-t pbx-border-solid pbx-border-gray-200" }, null, -1)),
32717
- z(El, {
32717
+ z(Al, {
32718
32718
  "model-value": x.value,
32719
32719
  onOpen: H
32720
32720
  }, null, 8, ["model-value"]),
@@ -32831,7 +32831,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
32831
32831
  p("span", null, y(g(e)("Default black")), 1)
32832
32832
  ], 2),
32833
32833
  $[12] || ($[12] = p("div", { class: "pbx-my-1 pbx-border-0 pbx-border-t pbx-border-solid pbx-border-gray-200" }, null, -1)),
32834
- z(El, {
32834
+ z(Al, {
32835
32835
  "model-value": x.value,
32836
32836
  onOpen: H
32837
32837
  }, null, 8, ["model-value"]),
@@ -32912,7 +32912,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
32912
32912
  }
32913
32913
  },
32914
32914
  setup(o) {
32915
- const { translate: e } = Se(), t = Ue(), r = Ve, n = S(null), i = L(() => r.getBackgroundColor), a = L(() => r.getPageBuilderConfig), { enabledThemeColorPresets: s } = Ql(a), {
32915
+ const { translate: e } = Se(), t = Ue(), r = Ve, n = S(null), i = L(() => r.getBackgroundColor), a = L(() => r.getPageBuilderConfig), { enabledThemeColorPresets: s } = Xl(a), {
32916
32916
  triggerRef: l,
32917
32917
  popoverRef: d,
32918
32918
  isOpen: c,
@@ -33008,7 +33008,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
33008
33008
  _: 1
33009
33009
  }),
33010
33010
  M[9] || (M[9] = p("div", { class: "pbx-my-1 pbx-border-0 pbx-border-t pbx-border-solid pbx-border-gray-200" }, null, -1)),
33011
- z(El, {
33011
+ z(Al, {
33012
33012
  "model-value": x.value,
33013
33013
  onOpen: P
33014
33014
  }, null, 8, ["model-value"]),
@@ -33124,7 +33124,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
33124
33124
  p("span", null, y(g(e)("Transparent")), 1)
33125
33125
  ], 2),
33126
33126
  M[10] || (M[10] = p("div", { class: "pbx-my-1 pbx-border-0 pbx-border-t pbx-border-solid pbx-border-gray-200" }, null, -1)),
33127
- z(El, {
33127
+ z(Al, {
33128
33128
  "model-value": x.value,
33129
33129
  onOpen: P
33130
33130
  }, null, 8, ["model-value"]),
@@ -33308,7 +33308,7 @@ const qG = { class: "pbx-min-h-[45rem]" }, UG = { class: "pbx-myPrimaryParagraph
33308
33308
  hintKey: "Use brand-color button CTA",
33309
33309
  iconKey: "radio_button_checked"
33310
33310
  }
33311
- ], bs = "product-card flex flex-col h-full", Al = {
33311
+ ], bs = "product-card flex flex-col h-full", $l = {
33312
33312
  minimal: `${bs} py-2`,
33313
33313
  bordered: `${bs} pt-4 pb-3 px-4 rounded-2xl border border-solid border-gray-200 bg-white`,
33314
33314
  shadow: `${bs} pt-4 pb-3 px-4 rounded-2xl bg-white shadow-md`,
@@ -33331,7 +33331,7 @@ function rR(o, e = 1) {
33331
33331
  return `myPrimaryGap grid ${t} sm:grid-cols-3 lg:grid-cols-3 items-stretch`;
33332
33332
  }
33333
33333
  }
33334
- function Hs(o, e = "pbx-") {
33334
+ function Ds(o, e = "pbx-") {
33335
33335
  return o.split(/\s+/).filter(Boolean).map((t) => {
33336
33336
  const r = t.split(":"), n = r.pop();
33337
33337
  return n.startsWith(e) ? t : [...r, e + n].join(":");
@@ -33408,17 +33408,17 @@ function TJ(o) {
33408
33408
  return !!((r = t.getAttribute("href")) != null && r.trim());
33409
33409
  }));
33410
33410
  }
33411
- function qd(o, e) {
33411
+ function Ud(o, e) {
33412
33412
  o.classList.toggle(hJ, e);
33413
33413
  }
33414
33414
  function PJ(o, e, t, r) {
33415
33415
  qr(o).forEach((n) => {
33416
33416
  const i = n.querySelector('[class*="product-card-image"]');
33417
- i instanceof HTMLElement && qd(i, t);
33417
+ i instanceof HTMLElement && Ud(i, t);
33418
33418
  const a = n.querySelector('[class*="product-card-price-row"]');
33419
- a instanceof HTMLElement && qd(a, e);
33419
+ a instanceof HTMLElement && Ud(a, e);
33420
33420
  const s = n.querySelector('[class*="product-card-cta"]');
33421
- s instanceof HTMLElement && qd(s, r);
33421
+ s instanceof HTMLElement && Ud(s, r);
33422
33422
  });
33423
33423
  }
33424
33424
  function MJ(o, e) {
@@ -33456,7 +33456,7 @@ function EJ(o, e, t) {
33456
33456
  const r = iR(e, t);
33457
33457
  qr(o).forEach((n) => {
33458
33458
  const i = n.querySelector('[class*="product-card-cta"] a');
33459
- i instanceof HTMLElement && (i.className = Hs(r));
33459
+ i instanceof HTMLElement && (i.className = Ds(r));
33460
33460
  });
33461
33461
  }
33462
33462
  function AJ(o) {
@@ -33471,9 +33471,9 @@ function $J(o, e) {
33471
33471
  const t = aR(e.layout), r = sR(e.cardStyle ?? "minimal"), n = e.mobileColumns === 2 ? 2 : 1, i = !!e.roundedImages, a = !!e.openInNewTab, s = lR(e.buttonStyle ?? "text"), l = !!e.roundedButtons, d = !!e.hidePrice, c = !!e.hideImage, u = !!e.hideButton;
33472
33472
  o.setAttribute("data-pbx-product-layout", t), o.setAttribute("data-pbx-product-mobile-cols", String(n)), o.setAttribute("data-pbx-product-card-style", r), o.setAttribute("data-pbx-product-rounded-images", i ? "true" : "false"), o.setAttribute("data-pbx-product-open-in-new-tab", a ? "true" : "false"), o.setAttribute("data-pbx-product-button-style", s), o.setAttribute("data-pbx-product-rounded-buttons", l ? "true" : "false"), o.setAttribute("data-pbx-product-hide-price", d ? "true" : "false"), o.setAttribute("data-pbx-product-hide-image", c ? "true" : "false"), o.setAttribute("data-pbx-product-hide-button", u ? "true" : "false");
33473
33473
  const b = AJ(o);
33474
- b && (b.className = Hs(rR(t, n)));
33475
- const m = Hs(nR(i)), h = Hs(
33476
- Al[r] ?? Al.minimal
33474
+ b && (b.className = Ds(rR(t, n)));
33475
+ const m = Ds(nR(i)), h = Ds(
33476
+ $l[r] ?? $l.minimal
33477
33477
  );
33478
33478
  qr(o).forEach((x) => {
33479
33479
  x.className = h;
@@ -33950,7 +33950,7 @@ const yo = {
33950
33950
  Me
33951
33951
  ].join("");
33952
33952
  }
33953
- const ed = async (X) => {
33953
+ const td = async (X) => {
33954
33954
  var J;
33955
33955
  if (!(c.value instanceof HTMLElement)) return;
33956
33956
  const D = c.value.closest("[data-isl]");
@@ -33979,7 +33979,7 @@ const yo = {
33979
33979
  }
33980
33980
  }
33981
33981
  Fe && (Fe.textContent = za(X, No.value)), h.value++, await i.refreshListeners(), await i.handleAutoSave();
33982
- }, td = L(() => {
33982
+ }, od = L(() => {
33983
33983
  if (!(c.value instanceof HTMLElement)) return -1;
33984
33984
  const X = c.value.closest("[data-isl]");
33985
33985
  if (!X) return -1;
@@ -33989,23 +33989,23 @@ const yo = {
33989
33989
  if (D.children[V].contains(c.value)) return V;
33990
33990
  return -1;
33991
33991
  });
33992
- le(td, (X) => {
33992
+ le(od, (X) => {
33993
33993
  if (!(c.value instanceof HTMLElement)) return;
33994
33994
  const D = c.value.closest("[data-isl]");
33995
33995
  D && (X >= 0 ? D.setAttribute("data-isl-active", String(X)) : D.removeAttribute("data-isl-active"));
33996
33996
  });
33997
33997
  const ur = L(() => {
33998
33998
  const X = l.getShowModalTipTap;
33999
- return X && od(), X;
34000
- }), hi = L(() => l.getInlineTipTapEditor), Qt = L(() => l.getComponent), jo = S(""), Ur = S(1), xo = S(""), br = S(""), Tn = S(""), Pn = S(null), mr = S(null), eo = S(null), mt = S(null), St = S(null), od = function() {
33999
+ return X && rd(), X;
34000
+ }), hi = L(() => l.getInlineTipTapEditor), Qt = L(() => l.getComponent), jo = S(""), Ur = S(1), xo = S(""), br = S(""), Tn = S(""), Pn = S(null), mr = S(null), eo = S(null), mt = S(null), St = S(null), rd = function() {
34001
34001
  i.toggleTipTapModal(!0), jo.value = "success", Ur.value = 2, xo.value = r("Manage Content"), br.value = null, Tn.value = null, Pn.value = null, mr.value = "Save", eo.value = function() {
34002
34002
  i.toggleTipTapModal(!1);
34003
34003
  }, St.value = function() {
34004
34004
  i.toggleTipTapModal(!0);
34005
34005
  };
34006
- }, rd = async function() {
34006
+ }, nd = async function() {
34007
34007
  await i.toggleInlineTipTapEditor(!0);
34008
- }, Oa = L(() => l.getBasePrimaryImage), fi = S(!1), Na = S(""), yi = S(""), vi = S(""), Mn = S(null), wi = S(null), Wr = S(null), nd = function() {
34008
+ }, Oa = L(() => l.getBasePrimaryImage), fi = S(!1), Na = S(""), yi = S(""), vi = S(""), Mn = S(null), wi = S(null), Wr = S(null), id = function() {
34009
34009
  fi.value = !0, Na.value = r("Media Library"), yi.value = null, vi.value = r("Close"), Mn.value = r("Select image"), Wr.value = function() {
34010
34010
  fi.value = !1;
34011
34011
  };
@@ -34063,16 +34063,16 @@ const yo = {
34063
34063
  return;
34064
34064
  }
34065
34065
  qo(), ho = requestAnimationFrame(Jr);
34066
- }, id = function() {
34066
+ }, ad = function() {
34067
34067
  cancelAnimationFrame(ho), ue(() => {
34068
34068
  qo(), ho = requestAnimationFrame(Jr);
34069
34069
  });
34070
- }, ad = function() {
34070
+ }, sd = function() {
34071
34071
  cancelAnimationFrame(ho), ho = 0;
34072
34072
  }, ja = function() {
34073
- id();
34074
- }, gr = function() {
34075
34073
  ad();
34074
+ }, gr = function() {
34075
+ sd();
34076
34076
  }, En = function(X) {
34077
34077
  var D, V;
34078
34078
  Bt.value && X.target instanceof Node && ((D = Ln.value) != null && D.contains(X.target) || (V = Si.value) != null && V.contains(X.target) || X.target instanceof Element && X.target.closest("#pbxEditToolbar") || (Bt.value = !1));
@@ -34083,7 +34083,7 @@ const yo = {
34083
34083
  };
34084
34084
  let to = 0;
34085
34085
  const Ci = function() {
34086
- jd(), cancelAnimationFrame(to);
34086
+ Vd(), cancelAnimationFrame(to);
34087
34087
  let X = 0;
34088
34088
  const D = 24, V = function() {
34089
34089
  if (!Bt.value) {
@@ -34098,9 +34098,9 @@ const yo = {
34098
34098
  };
34099
34099
  to = requestAnimationFrame(V);
34100
34100
  }, An = async () => {
34101
- jd(), await i.reorderComponent(-1), Ci();
34101
+ Vd(), await i.reorderComponent(-1), Ci();
34102
34102
  }, $n = async () => {
34103
- jd(), await i.reorderComponent(1), Ci();
34103
+ Vd(), await i.reorderComponent(1), Ci();
34104
34104
  }, hr = function() {
34105
34105
  Bt.value = !1;
34106
34106
  };
@@ -34141,9 +34141,9 @@ const yo = {
34141
34141
  "success"
34142
34142
  ), Wo.value = !1;
34143
34143
  };
34144
- }, sd = async function() {
34145
- await i.duplicateElementInDOM(), n(r("Element duplicated"), "success");
34146
34144
  }, ld = async function() {
34145
+ await i.duplicateElementInDOM(), n(r("Element duplicated"), "success");
34146
+ }, dd = async function() {
34147
34147
  await i.duplicateComponent(), n(r("Component duplicated"), "success");
34148
34148
  };
34149
34149
  return e({ openDeleteConfirm: qa }), (X, D) => (f(), w(re, null, [
@@ -34287,7 +34287,7 @@ const yo = {
34287
34287
  z(jW),
34288
34288
  hi.value ? E("", !0) : (f(), w("div", VY, [
34289
34289
  p("div", {
34290
- onClick: rd,
34290
+ onClick: nd,
34291
34291
  class: "pbx-h-8 pbx-w-8 pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-border pbx-border-gray-500 pbx-cursor-pointer pbx-transition-all pbx-duration-200 pbx-ease-in-out hover:pbx-shadow-md hover:pbx-text-yellow-500 focus-visible:pbx-ring-0 pbx-transition-transform pbx-duration-200"
34292
34292
  }, [
34293
34293
  p("span", null, [
@@ -34305,7 +34305,7 @@ const yo = {
34305
34305
  ], 64)) : E("", !0),
34306
34306
  c.value && Qt.value && Oa.value && !g(i).ElOrFirstChildIsIframe() ? (f(), w("div", UY, [
34307
34307
  p("div", {
34308
- onClick: nd,
34308
+ onClick: id,
34309
34309
  class: "pbx-h-8 pbx-w-8 pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-border pbx-border-gray-500 pbx-cursor-pointer pbx-transition-all pbx-duration-200 pbx-ease-in-out hover:pbx-shadow-md hover:pbx-text-yellow-500 focus-visible:pbx-ring-0 pbx-transition-transform pbx-duration-200"
34310
34310
  }, [...D[41] || (D[41] = [
34311
34311
  p("span", { class: "material-symbols-outlined" }, " add_photo_alternate ", -1)
@@ -34320,7 +34320,7 @@ const yo = {
34320
34320
  ]),
34321
34321
  title: g(r)("Image Settings")
34322
34322
  }, [
34323
- z(Ll)
34323
+ z(El)
34324
34324
  ], 10, WY)) : E("", !0),
34325
34325
  c.value && c.value.nodeType === 1 && !Oa.value && !g(i).ElOrFirstChildIsIframe() ? (f(), be(eR, { key: 4 })) : E("", !0),
34326
34326
  c.value && Qt.value && $.value ? (f(), w("div", {
@@ -34329,7 +34329,7 @@ const yo = {
34329
34329
  class: "pbx-h-8 pbx-w-8 pbx-rounded-sm pbx-flex pbx-items-center pbx-justify-center pbx-aspect-square pbx-text-myPrimaryDarkGrayColor pbx-border pbx-border-gray-500 pbx-cursor-pointer pbx-transition-all pbx-duration-200 pbx-ease-in-out hover:pbx-shadow-md hover:pbx-text-yellow-500 focus-visible:pbx-ring-0 pbx-transition-transform pbx-duration-200",
34330
34330
  title: g(r)("Component Settings")
34331
34331
  }, [
34332
- z(Ll)
34332
+ z(El)
34333
34333
  ], 8, GY)) : E("", !0),
34334
34334
  c.value && Qt.value && _e.value ? (f(), w("div", {
34335
34335
  key: 6,
@@ -34493,7 +34493,7 @@ const yo = {
34493
34493
  p("div", uQ, [
34494
34494
  (f(), w(re, null, fe([2, 3, 4, 5, 6], (V) => p("button", {
34495
34495
  key: V,
34496
- onClick: (ke) => ed(V),
34496
+ onClick: (ke) => td(V),
34497
34497
  class: O([
34498
34498
  T.value === V ? "pbx-bg-myPrimaryLinkColor pbx-text-white pbx-shadow-sm" : "pbx-bg-white pbx-text-myPrimaryDarkGrayColor hover:pbx-bg-gray-200 pbx-border pbx-border-solid pbx-border-gray-200",
34499
34499
  "pbx-h-9 pbx-w-9 pbx-rounded-xl pbx-text-sm pbx-font-semibold pbx-cursor-pointer pbx-flex pbx-items-center pbx-justify-center pbx-border-0 pbx-transition-colors"
@@ -34620,7 +34620,7 @@ const yo = {
34620
34620
  role: "menuitem",
34621
34621
  class: "pbx-toolbarMoreMenuItem",
34622
34622
  onClick: D[28] || (D[28] = () => {
34623
- xr(), sd();
34623
+ xr(), ld();
34624
34624
  })
34625
34625
  }, [
34626
34626
  D[54] || (D[54] = p("span", {
@@ -34651,7 +34651,7 @@ const yo = {
34651
34651
  role: "menuitem",
34652
34652
  class: "pbx-toolbarMoreMenuItem",
34653
34653
  onClick: D[30] || (D[30] = () => {
34654
- xr(), ld();
34654
+ xr(), dd();
34655
34655
  })
34656
34656
  }, [
34657
34657
  D[56] || (D[56] = p("span", {
@@ -34696,7 +34696,7 @@ const yo = {
34696
34696
  ]))
34697
34697
  ], 64));
34698
34698
  }
34699
- }), Ud = [
34699
+ }), Wd = [
34700
34700
  {
34701
34701
  html_code: `
34702
34702
  <section>
@@ -34892,7 +34892,7 @@ const yo = {
34892
34892
  <polygon class="fg" points="110 90.01 122.5 75.01 135 90.01"/>
34893
34893
  <circle class="fg" cx="122.5" cy="64.15" r="4.16"/>
34894
34894
  </svg>
34895
- `.trim())}`, Wd = [
34895
+ `.trim())}`, Gd = [
34896
34896
  {
34897
34897
  components: {
34898
34898
  data: [
@@ -35223,7 +35223,7 @@ const yo = {
35223
35223
  <polygon class="fg" points="110 90.01 122.5 75.01 135 90.01"/>
35224
35224
  <circle class="fg" cx="122.5" cy="64.15" r="4.16"/>
35225
35225
  </svg>
35226
- `.trim())}`, Gd = [
35226
+ `.trim())}`, Kd = [
35227
35227
  {
35228
35228
  themes: {
35229
35229
  data: [
@@ -35338,7 +35338,7 @@ function zQ(o, e) {
35338
35338
  p("div", { 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] pbx-text-black dark:pbx-text-white" }, null, -1)
35339
35339
  ])]);
35340
35340
  }
35341
- const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280, rm = /* @__PURE__ */ ae({
35341
+ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Jd = 280, rm = /* @__PURE__ */ ae({
35342
35342
  __name: "ComponentThumbnail",
35343
35343
  props: {
35344
35344
  htmlCode: {},
@@ -35352,7 +35352,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
35352
35352
  if (e.fit === "cover") return 0;
35353
35353
  const A = e.renderWidth * i.value;
35354
35354
  return Math.max(0, (t.value - A) / 2);
35355
- }), s = L(() => e.fit === "cover" ? e.containerHeight : n.value === null ? Kd : Math.ceil(n.value * i.value)), l = L(() => c.value && !u.value), d = L(
35355
+ }), s = L(() => e.fit === "cover" ? e.containerHeight : n.value === null ? Jd : Math.ceil(n.value * i.value)), l = L(() => c.value && !u.value), d = L(
35356
35356
  () => e.fit === "contain" && n.value === null ? 8192 : Math.max(n.value ?? 0, 1)
35357
35357
  ), c = S(!1), u = S(!1), b = S(null);
35358
35358
  le(
@@ -35431,7 +35431,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
35431
35431
  class: "pbx-relative pbx-overflow-hidden pbx-w-full pbx-min-h-[12rem]",
35432
35432
  style: De({
35433
35433
  height: `${s.value}px`,
35434
- minHeight: l.value ? `${Kd}px` : void 0
35434
+ minHeight: l.value ? `${Jd}px` : void 0
35435
35435
  })
35436
35436
  }, [
35437
35437
  c.value ? (f(), w("iframe", {
@@ -35464,7 +35464,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
35464
35464
  l.value ? (f(), w("div", {
35465
35465
  key: 0,
35466
35466
  class: "pbx-absolute pbx-inset-0 pbx-z-10 pbx-flex pbx-items-center pbx-justify-center pbx-bg-gray-50",
35467
- style: De({ minHeight: `${Kd}px` })
35467
+ style: De({ minHeight: `${Jd}px` })
35468
35468
  }, [
35469
35469
  z(OQ)
35470
35470
  ], 4)) : E("", !0)
@@ -35570,7 +35570,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
35570
35570
  }, zX = {
35571
35571
  key: 2,
35572
35572
  class: "pbx-flex lg:pbx-justify-between pbx-justify-end pbx-items-center pbx-gap-2 pbx-py-2 pbx-px-2 pbx-mb-3 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm pbx-mt-6"
35573
- }, OX = ["disabled"], NX = { class: "pbx-flex pbx-items-center pbx-gap-1" }, FX = ["onClick"], jX = ["disabled"], Jd = 12, VX = /* @__PURE__ */ ae({
35573
+ }, OX = ["disabled"], NX = { class: "pbx-flex pbx-items-center pbx-gap-1" }, FX = ["onClick"], jX = ["disabled"], Yd = 12, VX = /* @__PURE__ */ ae({
35574
35574
  __name: "DefaultBuilderComponents",
35575
35575
  props: {
35576
35576
  customMediaComponent: {
@@ -35580,33 +35580,33 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
35580
35580
  },
35581
35581
  setup(o) {
35582
35582
  const { translate: e } = Se(), { showToast: t } = vt(), r = Ue(), n = Ve, i = S(!1), a = S(""), s = S("Components"), l = L(() => ["Components", "Themes"]), d = S("All"), c = S("All"), u = S("button"), b = S(!0), m = S(!0), h = L(() => {
35583
- const pe = Ud.map((ie) => ie.category);
35583
+ const pe = Wd.map((ie) => ie.category);
35584
35584
  return ["All", ...new Set(pe)];
35585
35585
  }), x = L(
35586
35586
  () => s.value === "Components" && c.value === "Buttons"
35587
35587
  ), v = L(() => {
35588
- const pe = Wd[0].components.data.map((ie) => ie.category);
35588
+ const pe = Gd[0].components.data.map((ie) => ie.category);
35589
35589
  return ["All", ...new Set(pe)];
35590
35590
  }), C = L(() => {
35591
- const pe = a.value.trim().toLowerCase(), ie = !pe && d.value !== "All" ? Wd[0].components.data.filter((Y) => Y.category === d.value) : Wd[0].components.data;
35591
+ const pe = a.value.trim().toLowerCase(), ie = !pe && d.value !== "All" ? Gd[0].components.data.filter((Y) => Y.category === d.value) : Gd[0].components.data;
35592
35592
  return pe ? ie.filter((Y) => Y.title.toLowerCase().includes(pe)) : ie;
35593
35593
  }), T = S(1), k = L(
35594
- () => Math.max(1, Math.ceil(C.value.length / Jd))
35594
+ () => Math.max(1, Math.ceil(C.value.length / Yd))
35595
35595
  ), B = L(() => {
35596
- const pe = (T.value - 1) * Jd;
35597
- return C.value.slice(pe, pe + Jd);
35596
+ const pe = (T.value - 1) * Yd;
35597
+ return C.value.slice(pe, pe + Yd);
35598
35598
  });
35599
35599
  le([d, a], () => {
35600
35600
  T.value = 1;
35601
35601
  });
35602
35602
  const A = L(() => {
35603
- const pe = a.value.trim().toLowerCase(), ie = !pe && c.value !== "All" ? Ud.filter((Y) => Y.category === c.value) : Ud;
35603
+ const pe = a.value.trim().toLowerCase(), ie = !pe && c.value !== "All" ? Wd.filter((Y) => Y.category === c.value) : Wd;
35604
35604
  return pe ? ie.filter((Y) => Y.title.toLowerCase().includes(pe)) : ie;
35605
35605
  }), H = S("All"), P = L(() => {
35606
- const pe = Gd[0].themes.data.map((ie) => ie.category);
35606
+ const pe = Kd[0].themes.data.map((ie) => ie.category);
35607
35607
  return ["All", ...new Set(pe)];
35608
35608
  }), I = L(() => {
35609
- const pe = a.value.trim().toLowerCase(), ie = !pe && H.value !== "All" ? Gd[0].themes.data.filter((Y) => Y.category === H.value) : Gd[0].themes.data;
35609
+ const pe = a.value.trim().toLowerCase(), ie = !pe && H.value !== "All" ? Kd[0].themes.data.filter((Y) => Y.category === H.value) : Kd[0].themes.data;
35610
35610
  return pe ? ie.filter((Y) => Y.title.toLowerCase().includes(pe)) : ie;
35611
35611
  }), { closeAddComponentModal: $ } = cR(), M = L(() => {
35612
35612
  var pe;
@@ -35960,7 +35960,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
35960
35960
  p("div", UX, [
35961
35961
  p("div", null, [
35962
35962
  o.CustomBuilderComponents ? (f(), w("div", WX, [
35963
- (f(), be(_l(o.CustomBuilderComponents)))
35963
+ (f(), be(Bl(o.CustomBuilderComponents)))
35964
35964
  ])) : (f(), w("div", GX, [
35965
35965
  z(qX, {
35966
35966
  customMediaComponent: g(t) ?? void 0
@@ -36106,7 +36106,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
36106
36106
  }
36107
36107
  async function Be() {
36108
36108
  if (a.value = !0, !F.value.length) {
36109
- await Kl(300), i(n("Select at least one product to insert."), "warning"), a.value = !1;
36109
+ await Jl(300), i(n("Select at least one product to insert."), "warning"), a.value = !1;
36110
36110
  return;
36111
36111
  }
36112
36112
  try {
@@ -36578,7 +36578,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
36578
36578
  }, {
36579
36579
  default: U(() => [
36580
36580
  o.displayProductsComponent ? (f(), w("div", gee, [
36581
- (f(), be(_l(o.displayProductsComponent)))
36581
+ (f(), be(Bl(o.displayProductsComponent)))
36582
36582
  ])) : (f(), w("div", xee, [
36583
36583
  z(mee)
36584
36584
  ]))
@@ -36629,7 +36629,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
36629
36629
  }, Tee = ["onClick"], Pee = { class: "pbx-flex pbx-items-center pbx-gap-1" }, Mee = { class: "pbx-mr-1" }, Lee = {
36630
36630
  key: 1,
36631
36631
  class: "pbx-inspectorValue"
36632
- }, Ds = /* @__PURE__ */ ae({
36632
+ }, Rs = /* @__PURE__ */ ae({
36633
36633
  __name: "ClassTagsList",
36634
36634
  props: {
36635
36635
  classes: {},
@@ -36694,7 +36694,7 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
36694
36694
  "This is the CSS applied by the builder. Add your own CSS and press Enter to apply it to the selected element."
36695
36695
  )), 1),
36696
36696
  p("div", Aee, [
36697
- z(Ds, {
36697
+ z(Rs, {
36698
36698
  classes: n.value,
36699
36699
  removable: "",
36700
36700
  onRemove: c[0] || (c[0] = async (u) => {
@@ -36860,16 +36860,16 @@ const OQ = /* @__PURE__ */ Cn(DQ, [["render", zQ]]), NQ = ["srcdoc"], Kd = 280,
36860
36860
  }, " arrow_forward ", -1))
36861
36861
  ], 10, Kee));
36862
36862
  }
36863
- }), Yd = S(!1), im = S(""), am = S("");
36864
- function Xl() {
36863
+ }), Qd = S(!1), im = S(""), am = S("");
36864
+ function Zl() {
36865
36865
  function o(t, r) {
36866
- im.value = t, am.value = r, Yd.value = !0;
36866
+ im.value = t, am.value = r, Qd.value = !0;
36867
36867
  }
36868
36868
  function e() {
36869
- Yd.value = !1;
36869
+ Qd.value = !1;
36870
36870
  }
36871
36871
  return {
36872
- show: Yd,
36872
+ show: Qd,
36873
36873
  title: im,
36874
36874
  html: am,
36875
36875
  openHtmlViewer: o,
@@ -36950,10 +36950,10 @@ function tt(o = 200) {
36950
36950
  setTimeout(e, o);
36951
36951
  });
36952
36952
  }
36953
- const gs = S(!1), lm = S(""), xs = S(""), Qd = S("element"), zn = S(!1), Ei = S(null);
36954
- function Zl() {
36953
+ const gs = S(!1), lm = S(""), xs = S(""), Xd = S("element"), zn = S(!1), Ei = S(null);
36954
+ function ed() {
36955
36955
  function o(r, n, i = "element") {
36956
- lm.value = r, xs.value = ote(n), Qd.value = i, Ei.value = null, zn.value = !1, gs.value = !0;
36956
+ lm.value = r, xs.value = ote(n), Xd.value = i, Ei.value = null, zn.value = !1, gs.value = !0;
36957
36957
  }
36958
36958
  function e() {
36959
36959
  gs.value = !1, Ei.value = null, zn.value = !1;
@@ -36961,7 +36961,7 @@ function Zl() {
36961
36961
  async function t() {
36962
36962
  const r = Ue(), { showToast: n } = vt(), { translate: i } = Se();
36963
36963
  zn.value = !0, Ei.value = null, await tt(300);
36964
- const a = Qd.value === "page" ? await r.applyModifiedComponents(xs.value) : await r.applyModifiedHTML(xs.value);
36964
+ const a = Xd.value === "page" ? await r.applyModifiedComponents(xs.value) : await r.applyModifiedHTML(xs.value);
36965
36965
  if (a) {
36966
36966
  Ei.value = a, n(a, "error"), zn.value = !1;
36967
36967
  return;
@@ -36972,7 +36972,7 @@ function Zl() {
36972
36972
  show: gs,
36973
36973
  title: lm,
36974
36974
  html: xs,
36975
- mode: Qd,
36975
+ mode: Xd,
36976
36976
  isLoading: zn,
36977
36977
  error: Ei,
36978
36978
  openHtmlEditor: o,
@@ -36984,7 +36984,7 @@ const ite = { class: "pbx-editorSectionDesc" }, ate = { class: "pbx-inspectorAct
36984
36984
  name: "ElementHtmlEditorSettingsEditor",
36985
36985
  __name: "ElementHtmlEditorSettingsEditor",
36986
36986
  setup(o) {
36987
- const { translate: e } = Se(), t = Ve, { openHtmlViewer: r } = Xl(), { openHtmlEditor: n } = Zl(), i = L(() => t.getElement), a = () => {
36987
+ const { translate: e } = Se(), t = Ve, { openHtmlViewer: r } = Zl(), { openHtmlEditor: n } = ed(), i = L(() => t.getElement), a = () => {
36988
36988
  i.value && n(e("Element HTML"), i.value.outerHTML, "element");
36989
36989
  }, s = () => {
36990
36990
  i.value && r(e("Element HTML"), i.value.outerHTML);
@@ -37105,7 +37105,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
37105
37105
  }, null, 8, ["open", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "customMediaComponent"])
37106
37106
  ], 64));
37107
37107
  }
37108
- }), $l = {
37108
+ }), _l = {
37109
37109
  opacities: [
37110
37110
  "none",
37111
37111
  "pbx-opacity-0",
@@ -37196,7 +37196,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
37196
37196
  default: U(() => [
37197
37197
  z(g(Ra), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
37198
37198
  default: U(() => [
37199
- (f(!0), w(re, null, fe(g($l).backgroundOpacities, (l) => (f(), be(g(lr), {
37199
+ (f(!0), w(re, null, fe(g(_l).backgroundOpacities, (l) => (f(), be(g(lr), {
37200
37200
  as: "template",
37201
37201
  onClick: (d) => g(e).handleBackgroundOpacity(l),
37202
37202
  key: l,
@@ -37292,7 +37292,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
37292
37292
  default: U(() => [
37293
37293
  z(g(Ra), { class: "pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm pbx-list-none pbx-p-0 pbx-m-0" }, {
37294
37294
  default: U(() => [
37295
- (f(!0), w(re, null, fe(g($l).opacities, (l) => (f(), be(g(lr), {
37295
+ (f(!0), w(re, null, fe(g(_l).opacities, (l) => (f(), be(g(lr), {
37296
37296
  as: "template",
37297
37297
  onClick: (d) => g(e).handleOpacity(l),
37298
37298
  key: l,
@@ -38653,7 +38653,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
38653
38653
  setThemeColorPresetsEnabled: a,
38654
38654
  updateThemeColorPreset: s,
38655
38655
  resetToConfigDefaults: l
38656
- } = Ql(n), d = S({});
38656
+ } = Xl(n), d = S({});
38657
38657
  function c(P) {
38658
38658
  return d.value[P.id] ?? P.color;
38659
38659
  }
@@ -38844,7 +38844,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
38844
38844
  });
38845
38845
  const s = async () => {
38846
38846
  if (!a.value) {
38847
- a.value = !0, await Kl(300);
38847
+ a.value = !0, await Jl(300);
38848
38848
  try {
38849
38849
  await r.setPageMeta({
38850
38850
  title: n.value.trim(),
@@ -39046,7 +39046,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
39046
39046
  __name: "SeoCheckSettingsEditor",
39047
39047
  setup(o) {
39048
39048
  const { translate: e } = Se(), t = Ue(), r = S(null), n = S(!1), i = S(!1), a = async () => {
39049
- i.value = !0, n.value = !0, await Kl(300);
39049
+ i.value = !0, n.value = !0, await Jl(300);
39050
39050
  try {
39051
39051
  r.value = await t.analyzeSEO();
39052
39052
  } finally {
@@ -39170,7 +39170,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
39170
39170
  class: "pbx-pageDesignOpenButton",
39171
39171
  onClick: r[0] || (r[0] = (n) => t.$emit("open"))
39172
39172
  }, [
39173
- z(Ll),
39173
+ z(El),
39174
39174
  p("span", Lre, [
39175
39175
  p("span", Ere, y(g(e)("Open page design")), 1),
39176
39176
  p("span", Are, y(g(e)("Typography, colors, spacing & more")), 1)
@@ -39188,7 +39188,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
39188
39188
  name: "PageHtmlEditorSettingsEditor",
39189
39189
  __name: "PageHtmlEditorSettingsEditor",
39190
39190
  setup(o) {
39191
- const { translate: e } = Se(), t = Ue(), { openHtmlViewer: r } = Xl(), { openHtmlEditor: n } = Zl(), i = async () => {
39191
+ const { translate: e } = Se(), t = Ue(), { openHtmlViewer: r } = Zl(), { openHtmlEditor: n } = ed(), i = async () => {
39192
39192
  const s = await t.generateFullPageHtml();
39193
39193
  n(e("HTML Editor"), s, "page");
39194
39194
  }, a = async () => {
@@ -39221,7 +39221,7 @@ const dte = { class: "pbx-editorFieldGroup" }, pte = { class: "pbx-editorFieldGr
39221
39221
  }
39222
39222
  }), Er = function(o) {
39223
39223
  return !o || typeof o == "object" && o.constructor === Object && Object.keys(o).length === 0;
39224
- }, Hre = "3.5.41", Dre = (o) => /^[a-z][a-z0-9+.-]*:/i.test(o) || o.startsWith("//");
39224
+ }, Hre = "3.5.43", Dre = (o) => /^[a-z][a-z0-9+.-]*:/i.test(o) || o.startsWith("//");
39225
39225
  function SR(o, e) {
39226
39226
  if (!o)
39227
39227
  return console.warn("No valid pagebuilder element passed"), "";
@@ -39332,7 +39332,7 @@ const Rre = ["title", "aria-label"], zre = { class: "pbx-inspectorIdChipText" },
39332
39332
  }, Ane = { class: "pbx-inspectorComponentCardBody" }, $ne = { class: "pbx-inspectorMeta pbx-inspectorComponentCardMeta" }, _ne = { class: "pbx-inspectorMetaRow" }, Bne = { class: "pbx-inspectorFieldLabel" }, Ine = { class: "pbx-inspectorMetaRow pbx-inspectorMetaRowStacked" }, Hne = { class: "pbx-inspectorFieldLabel" }, Dne = { class: "pbx-inspectorComponentCardFooter" }, Rne = /* @__PURE__ */ ae({
39333
39333
  __name: "SelectedHtmlInspector",
39334
39334
  setup(o) {
39335
- const { translate: e } = Se(), { openHtmlViewer: t } = Xl(), { openHtmlEditor: r } = Zl(), n = Ve, i = L(() => n.getElement), a = L(() => n.getComponent), s = L(() => n.getComponents), l = S("element"), d = L(() => {
39335
+ const { translate: e } = Se(), { openHtmlViewer: t } = Zl(), { openHtmlEditor: r } = ed(), n = Ve, i = L(() => n.getElement), a = L(() => n.getComponent), s = L(() => n.getComponents), l = S("element"), d = L(() => {
39336
39336
  var N;
39337
39337
  return ((N = s.value) == null ? void 0 : N.length) ?? 0;
39338
39338
  }), c = S(!1), u = S(/* @__PURE__ */ new Set());
@@ -39466,7 +39466,7 @@ const Rre = ["title", "aria-label"], zre = { class: "pbx-inspectorIdChipText" },
39466
39466
  ])) : E("", !0),
39467
39467
  p("div", ane, [
39468
39468
  p("span", sne, y(g(e)("Element classes:")), 1),
39469
- z(Ds, {
39469
+ z(Rs, {
39470
39470
  classes: B.value,
39471
39471
  "empty-placeholder": ""
39472
39472
  }, null, 8, ["classes"])
@@ -39503,7 +39503,7 @@ const Rre = ["title", "aria-label"], zre = { class: "pbx-inspectorIdChipText" },
39503
39503
  ]),
39504
39504
  p("div", hne, [
39505
39505
  p("span", fne, y(g(e)("Component classes:")), 1),
39506
- z(Ds, {
39506
+ z(Rs, {
39507
39507
  classes: A.value,
39508
39508
  "empty-placeholder": ""
39509
39509
  }, null, 8, ["classes"])
@@ -39559,7 +39559,7 @@ const Rre = ["title", "aria-label"], zre = { class: "pbx-inspectorIdChipText" },
39559
39559
  ]),
39560
39560
  p("div", Ine, [
39561
39561
  p("span", Hne, y(g(e)("Component classes:")), 1),
39562
- z(Ds, {
39562
+ z(Rs, {
39563
39563
  classes: G(W),
39564
39564
  "empty-placeholder": ""
39565
39565
  }, null, 8, ["classes"])
@@ -40651,10 +40651,10 @@ const Rre = ["title", "aria-label"], zre = { class: "pbx-inspectorIdChipText" },
40651
40651
  };
40652
40652
  }
40653
40653
  });
40654
- let Xd = null;
40654
+ let Zd = null;
40655
40655
  function Wle() {
40656
40656
  return (o, e = 300) => {
40657
- Xd && clearTimeout(Xd), Xd = setTimeout(o, e);
40657
+ Zd && clearTimeout(Zd), Zd = setTimeout(o, e);
40658
40658
  };
40659
40659
  }
40660
40660
  const Gle = {};
@@ -41259,7 +41259,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41259
41259
  title: n,
41260
41260
  html: i,
41261
41261
  closeHtmlViewer: a
41262
- } = Xl(), {
41262
+ } = Zl(), {
41263
41263
  show: s,
41264
41264
  title: l,
41265
41265
  html: d,
@@ -41267,7 +41267,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41267
41267
  error: u,
41268
41268
  closeHtmlEditor: b,
41269
41269
  saveHtmlEditor: m
41270
- } = Zl(), h = o, { translate: x, loadTranslations: v } = Se(), { showToast: C } = vt(), T = xD, k = Ve;
41270
+ } = ed(), h = o, { translate: x, loadTranslations: v } = Se(), { showToast: C } = vt(), T = xD, k = Ve;
41271
41271
  Io("pageBuilderStateStore", k), Io("internalPinia", T), Io("CustomMediaComponent", h.CustomMediaLibraryComponent), Io("DisplayProductsComponent", h.DisplayProducts), Io("CustomBuilderComponents", h.CustomBuilderComponents);
41272
41272
  const B = L(
41273
41273
  () => !!h.DisplayProducts || h.enableDefaultProducts
@@ -41384,9 +41384,9 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41384
41384
  _e.value = x("Mobile"), No(), go.value = !0;
41385
41385
  }, Fo = S(!1), za = function() {
41386
41386
  Fo.value = !1;
41387
- }, ed = function() {
41388
- te.value = !1;
41389
41387
  }, td = function() {
41388
+ te.value = !1;
41389
+ }, od = function() {
41390
41390
  go.value = !1;
41391
41391
  }, ur = S(!1), hi = S(""), Qt = S(""), jo = S(null), Ur = async function() {
41392
41392
  await t.clearHtmlSelection(), hi.value = x("Add Components to Page"), Qt.value = x("Close"), ur.value = !0, jo.value = function() {
@@ -41400,18 +41400,18 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41400
41400
  k.setAddComponentAddIndex(q), k.setComponentArrayAddMethod("insert"), Ur();
41401
41401
  }, eo = async function(q) {
41402
41402
  await t.clearHtmlSelection(), k.setAddComponentAddIndex(q), k.setComponentArrayAddMethod("insert"), br.value = x("Add Products to Page"), xo.value = !0;
41403
- }, mt = L(() => k.getElement), St = L(() => k.getComponents), od = L(() => k.getHasLocalDraftForUpdate);
41404
- le(od, (q) => {
41405
- q && id();
41403
+ }, mt = L(() => k.getElement), St = L(() => k.getComponents), rd = L(() => k.getHasLocalDraftForUpdate);
41404
+ le(rd, (q) => {
41405
+ q && ad();
41406
41406
  });
41407
- const rd = L(() => !mt.value || !(mt.value instanceof HTMLElement) ? null : {
41407
+ const nd = L(() => !mt.value || !(mt.value instanceof HTMLElement) ? null : {
41408
41408
  src: mt.value.getAttribute("src"),
41409
41409
  href: mt.value.getAttribute("href"),
41410
41410
  style: mt.value.getAttribute("style"),
41411
41411
  class: mt.value.getAttribute("class"),
41412
41412
  dataImage: mt.value.getAttribute("data-image")
41413
41413
  }), Oa = Wle();
41414
- le(rd, async (q, R) => {
41414
+ le(nd, async (q, R) => {
41415
41415
  ((q == null ? void 0 : q.src) !== (R == null ? void 0 : R.src) || (q == null ? void 0 : q.href) !== (R == null ? void 0 : R.href) || (q == null ? void 0 : q.style) !== (R == null ? void 0 : R.style) || (q == null ? void 0 : q.class) !== (R == null ? void 0 : R.class) || (q == null ? void 0 : q.dataImage) !== (R == null ? void 0 : R.dataImage)) && Oa(async () => {
41416
41416
  await t.initializeElementStyles();
41417
41417
  }, 200);
@@ -41426,7 +41426,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41426
41426
  if (ye != null && ye.contains(q.target) || J || Me || _D(q.target)) return;
41427
41427
  const He = t.findEditableElementFromEventTarget(q.target);
41428
41428
  q.preventDefault(), q.stopPropagation(), q.stopImmediatePropagation(), t.finishActiveInlineTipTapEditorFromDom(He);
41429
- }, vi = L(() => k.getIsLoadingGlobal), Mn = L(() => k.getIsSaving), wi = S(null), Wr = S(null), nd = L(() => k.getIsLoadingResumeEditing), Lo = L(() => k.getIsRestoring), Vo = S(1), Gr = S(""), Kr = S(!1), Fa = S(""), Bt = S(""), Ln = S(""), Si = S(null), ki = S(null), qo = S(null), ho = S(null), Jr = S(null), id = async function() {
41429
+ }, vi = L(() => k.getIsLoadingGlobal), Mn = L(() => k.getIsSaving), wi = S(null), Wr = S(null), id = L(() => k.getIsLoadingResumeEditing), Lo = L(() => k.getIsRestoring), Vo = S(1), Gr = S(""), Kr = S(!1), Fa = S(""), Bt = S(""), Ln = S(""), Si = S(null), ki = S(null), qo = S(null), ho = S(null), Jr = S(null), ad = async function() {
41430
41430
  Gr.value = "warning", Kr.value = !0, Fa.value = x("Continue Your Work?"), Bt.value = x(
41431
41431
  "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?"
41432
41432
  ), Ln.value = x("Use Saved Version"), Si.value = null, ki.value = x("Continue Where I Left Off"), qo.value = async function() {
@@ -41435,7 +41435,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41435
41435
  }, Jr.value = async function() {
41436
41436
  await t.resumeEditingFromDraft(), k.setHasLocalDraftForUpdate(!1), Kr.value = !1;
41437
41437
  };
41438
- }, ad = S(1), ja = S(""), gr = S(!1), En = S(""), xr = S(""), Uo = S(""), to = S(null), Ci = S(null), An = S(null), $n = S(null), hr = S(null), Wo = async function() {
41438
+ }, sd = S(1), ja = S(""), gr = S(!1), En = S(""), xr = S(""), Uo = S(""), to = S(null), Ci = S(null), An = S(null), $n = S(null), hr = S(null), Wo = async function() {
41439
41439
  await t.clearHtmlSelection(), ja.value = "success", gr.value = !0, En.value = x("Do you want to reset this page?"), xr.value = x(
41440
41440
  "Are you sure you want to reset this page? This will overwrite your current changes."
41441
41441
  ), Uo.value = x("Close"), to.value = null, Ci.value = x("Reset changes"), An.value = function() {
@@ -41497,14 +41497,14 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41497
41497
  const q = document.querySelector("#pbxEditToolbar");
41498
41498
  q && ((R = q.querySelector(".pbx-select-none > .pbx-flex")) == null || R.style.removeProperty("width"), q.classList.remove("is-visible"), q.removeAttribute("style"));
41499
41499
  };
41500
- function sd(q, R) {
41500
+ function ld(q, R) {
41501
41501
  const ye = q.querySelector(".pbx-select-none > .pbx-flex");
41502
41502
  if (!ye) return;
41503
41503
  ye.style.flexWrap = "nowrap", ye.style.removeProperty("max-width"), ye.style.width = "max-content", ye.offsetHeight;
41504
41504
  const J = Math.ceil(ye.getBoundingClientRect().width);
41505
41505
  ye.style.flexWrap = "wrap", J > 0 && (ye.style.width = `${Math.min(J, R)}px`), ye.style.justifyContent = "center", ye.style.removeProperty("max-width");
41506
41506
  }
41507
- const ld = function() {
41507
+ const dd = function() {
41508
41508
  Ko.value = !Ko.value, V();
41509
41509
  };
41510
41510
  function X(q) {
@@ -41530,7 +41530,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41530
41530
  const Me = ye.querySelector("[selected]");
41531
41531
  if (Me && typeof Me.getBoundingClientRect == "function") {
41532
41532
  const It = (Me.closest("[data-pb-no-select]") || Me).getBoundingClientRect(), Ut = ye.getBoundingClientRect(), Wt = 20, Ao = ye.offsetWidth - Wt * 2;
41533
- J.style.maxWidth = `${Ao}px`, J.style.position = Ko.value ? "fixed" : "absolute", J.classList.add("is-visible"), R && (J.style.removeProperty("width"), sd(J, Ao), J.offsetHeight);
41533
+ J.style.maxWidth = `${Ao}px`, J.style.position = Ko.value ? "fixed" : "absolute", J.classList.add("is-visible"), R && (J.style.removeProperty("width"), ld(J, Ao), J.offsetHeight);
41534
41534
  let yr = It.top - Ut.top + ye.scrollTop - J.offsetHeight - 20, Bn = It.left - Ut.left + It.width / 2 - J.offsetWidth / 2;
41535
41535
  Ko.value ? (yr = Ut.top + Wt, Bn = Ut.left + ye.offsetWidth / 2 - J.offsetWidth / 2, Bn = Math.max(
41536
41536
  Ut.left + Wt,
@@ -41586,7 +41586,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41586
41586
  }), (q, R) => {
41587
41587
  var ye;
41588
41588
  return f(), w(re, null, [
41589
- pe.value ? (f(), be(_l("style"), { key: 0 }, {
41589
+ pe.value ? (f(), be(Bl("style"), { key: 0 }, {
41590
41590
  default: U(() => [
41591
41591
  Ne(y(pe.value), 1)
41592
41592
  ]),
@@ -41657,7 +41657,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41657
41657
  z(po, {
41658
41658
  title: K.value,
41659
41659
  showModalBuilder: te.value,
41660
- onCloseMainModalBuilder: ed,
41660
+ onCloseMainModalBuilder: td,
41661
41661
  maxWidth: "screen"
41662
41662
  }, {
41663
41663
  default: U(() => [
@@ -41668,7 +41668,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41668
41668
  z(po, {
41669
41669
  title: _e.value,
41670
41670
  showModalBuilder: go.value,
41671
- onCloseMainModalBuilder: td,
41671
+ onCloseMainModalBuilder: od,
41672
41672
  maxWidth: "lg"
41673
41673
  }, {
41674
41674
  default: U(() => [
@@ -41678,7 +41678,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41678
41678
  }, 8, ["title", "showModalBuilder"]),
41679
41679
  z(Gt, {
41680
41680
  showDynamicModalBuilder: Kr.value,
41681
- isLoading: nd.value,
41681
+ isLoading: id.value,
41682
41682
  type: Gr.value,
41683
41683
  gridColumnAmount: Vo.value,
41684
41684
  title: Fa.value,
@@ -41709,7 +41709,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41709
41709
  showDynamicModalBuilder: gr.value,
41710
41710
  isLoading: Lo.value,
41711
41711
  type: ja.value,
41712
- gridColumnAmount: ad.value,
41712
+ gridColumnAmount: sd.value,
41713
41713
  title: En.value,
41714
41714
  description: xr.value,
41715
41715
  firstButtonText: Uo.value,
@@ -41985,7 +41985,7 @@ const tpe = { class: "lg:pbx-min-w-full lg:pbx-max-w-full lg:pbx-w-full pbx-mx-a
41985
41985
  ref: Wr,
41986
41986
  "toolbar-pinned": Ko.value,
41987
41987
  onOpenImageSettings: Ti,
41988
- onToggleToolbarPin: ld
41988
+ onToggleToolbarPin: dd
41989
41989
  }, null, 8, ["toolbar-pinned"])) : E("", !0)
41990
41990
  ]),
41991
41991
  p("div", {
@@ -42195,7 +42195,7 @@ class Zn {
42195
42195
  }
42196
42196
  }
42197
42197
  Ae(Zn, "HISTORY_KEY_SUFFIX", "-history"), Ae(Zn, "MAX_HISTORY_SIZE", 10);
42198
- const Zd = {
42198
+ const ep = {
42199
42199
  objectFit: ["none", "pbx-object-cover", "pbx-object-contain"],
42200
42200
  objectPosition: [
42201
42201
  "none",
@@ -42234,7 +42234,7 @@ function nce(o, e, t) {
42234
42234
  function ht(o) {
42235
42235
  return o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
42236
42236
  }
42237
- const ep = "hidden", ice = /* @__PURE__ */ new Set([
42237
+ const tp = "hidden", ice = /* @__PURE__ */ new Set([
42238
42238
  "id",
42239
42239
  "title",
42240
42240
  "description",
@@ -42251,9 +42251,9 @@ function ace(o) {
42251
42251
  return o ? ' target="_blank" rel="noopener noreferrer"' : "";
42252
42252
  }
42253
42253
  function sce(o, e = {}, t = !1) {
42254
- const r = e.cardStyle ?? "minimal", n = e.roundedImages ?? !1, i = e.openInNewTab ?? !1, a = e.buttonStyle ?? "text", s = e.roundedButtons ?? !1, l = e.hidePrice ?? !1, d = e.hideImage ?? !1, c = e.hideButton ?? !1, u = ace(i), b = Al[r] ?? Al.minimal, m = [
42254
+ const r = e.cardStyle ?? "minimal", n = e.roundedImages ?? !1, i = e.openInNewTab ?? !1, a = e.buttonStyle ?? "text", s = e.roundedButtons ?? !1, l = e.hidePrice ?? !1, d = e.hideImage ?? !1, c = e.hideButton ?? !1, u = ace(i), b = $l[r] ?? $l.minimal, m = [
42255
42255
  nR(n),
42256
- d ? ep : ""
42256
+ d ? tp : ""
42257
42257
  ].filter(Boolean).join(" "), h = o.id != null ? String(o.id) : "", x = o.title ? ht(o.title) : "", v = o.description ? ht(o.description) : "", C = o.price != null ? ht(String(o.price)) : "", T = o.compareAtPrice != null ? ht(String(o.compareAtPrice)) : "", k = o.badge ? ht(o.badge) : "", B = o.image ? ht(o.image) : "", A = o.imageAlt ? ht(o.imageAlt) : x || "Product", H = o.url ? ht(o.url) : "", P = o.buttonText ? ht(o.buttonText) : "";
42258
42258
  let I = "";
42259
42259
  if (B) {
@@ -42273,10 +42273,10 @@ function sce(o, e = {}, t = !1) {
42273
42273
  ].filter(Boolean);
42274
42274
  j = `<div class="${[
42275
42275
  "product-card-price-row flex flex-wrap items-baseline gap-2 pt-2",
42276
- l ? ep : ""
42276
+ l ? tp : ""
42277
42277
  ].filter(Boolean).join(" ")}">${de.join("")}</div>`;
42278
42278
  }
42279
- const Z = iR(a, s), se = H && P ? `<div class="product-card-cta text-sm font-semibold pt-3${c ? ` ${ep}` : ""}"><p><a class="${Z}" href="${H}"${u}>${P}</a></p></div>` : "";
42279
+ const Z = iR(a, s), se = H && P ? `<div class="product-card-cta text-sm font-semibold pt-3${c ? ` ${tp}` : ""}"><p><a class="${Z}" href="${H}"${u}>${P}</a></p></div>` : "";
42280
42280
  F = `<div class="product-card-footer mt-auto flex flex-col">${j}${se}</div>`;
42281
42281
  }
42282
42282
  return [
@@ -42305,7 +42305,7 @@ ${x}
42305
42305
  </section>`;
42306
42306
  }
42307
42307
  const Qp = "data-meta-title", Xp = "data-meta-description";
42308
- function tp(o) {
42308
+ function hs(o) {
42309
42309
  return {
42310
42310
  title: o.getAttribute(Qp) || "",
42311
42311
  description: o.getAttribute(Xp) || ""
@@ -42361,7 +42361,7 @@ const cce = [
42361
42361
  "hi",
42362
42362
  "da",
42363
42363
  "it"
42364
- ], hs = "pbx-full-width-component";
42364
+ ], fs = "pbx-full-width-component";
42365
42365
  class uce {
42366
42366
  constructor(e) {
42367
42367
  // Class properties with types
@@ -42474,7 +42474,7 @@ class uce {
42474
42474
  e.stopPropagation();
42475
42475
  return;
42476
42476
  }
42477
- e.preventDefault(), e.stopPropagation(), this.pageBuilderStateStore.setElement(t), this.pageBuilderStateStore.setInlineTipTapEditor(!0), await this.openInlineTipTapForElement(t);
42477
+ e.preventDefault(), e.stopPropagation(), this.pageBuilderStateStore.setElement(t), this.pageBuilderStateStore.setInlineTipTapEditor(!0), await this.openInlineTipTapForElement(t), this.hasInlineTipTapElement() || this.pageBuilderStateStore.setInlineTipTapEditor(!1);
42478
42478
  }
42479
42479
  });
42480
42480
  /**
@@ -42765,7 +42765,7 @@ class uce {
42765
42765
  async startBuilder(e, t) {
42766
42766
  var s, l;
42767
42767
  const r = ++this.activeBuilderSessionToken;
42768
- this.hasCompletedBuilderMount = !1, this.builderMountPromise = null, this.pendingMountComponents = null, this.isPageBuilderMissingOnStart = !1, typeof this.pageBuilderStateStore.setInlineTipTapEditor == "function" && this.pageBuilderStateStore.setInlineTipTapEditor(!1), typeof this.pageBuilderStateStore.setShowModalTipTap == "function" && this.pageBuilderStateStore.setShowModalTipTap(!1), typeof this.pageBuilderStateStore.setImageSettingsPanelOpen == "function" && this.pageBuilderStateStore.setImageSettingsPanelOpen(!1), typeof this.pageBuilderStateStore.setElement == "function" && this.pageBuilderStateStore.setElement(null), typeof this.pageBuilderStateStore.setComponent == "function" && this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setBuilderStarted(!0);
42768
+ this.hasCompletedBuilderMount = !1, this.builderMountPromise = null, this.pendingMountComponents = null, this.isPageBuilderMissingOnStart = !1, typeof this.pageBuilderStateStore.setInlineTipTapEditor == "function" && this.pageBuilderStateStore.setInlineTipTapEditor(!1), typeof this.pageBuilderStateStore.setShowModalTipTap == "function" && this.pageBuilderStateStore.setShowModalTipTap(!1), typeof this.pageBuilderStateStore.setImageSettingsPanelOpen == "function" && this.pageBuilderStateStore.setImageSettingsPanelOpen(!1), typeof this.pageBuilderStateStore.setElement == "function" && this.pageBuilderStateStore.setElement(null), typeof this.pageBuilderStateStore.setComponent == "function" && this.pageBuilderStateStore.setComponent(null), typeof this.pageBuilderStateStore.setIsLoadingGlobal == "function" && this.pageBuilderStateStore.setIsLoadingGlobal(!1), this.pageBuilderStateStore.setBuilderStarted(!0);
42769
42769
  const n = document.querySelector("#pagebuilder"), i = this.readCurrentPageSettings();
42770
42770
  this.hasMeaningfulPageSettings(i) && (this._lastKnownPageSettings = i);
42771
42771
  let a;
@@ -42813,8 +42813,8 @@ class uce {
42813
42813
  )), await this.builderMountPromise));
42814
42814
  }
42815
42815
  async runCompleteBuilderInitialization(e, t = this.activeBuilderSessionToken) {
42816
- if (t !== this.activeBuilderSessionToken || (this.pageBuilderStateStore.setIsLoadingGlobal(!0), await tt(400), t !== this.activeBuilderSessionToken)) return;
42817
- this.deleteAllComponentsFromDOM();
42816
+ if (t !== this.activeBuilderSessionToken || (await tt(400), t !== this.activeBuilderSessionToken)) return;
42817
+ this.pageBuilderStateStore.setIsLoadingGlobal(!0), this.deleteAllComponentsFromDOM();
42818
42818
  const r = this.pageBuilderStateStore.getPageBuilderConfig, n = r && r.updateOrCreate && r.updateOrCreate.formType, i = this.getSavedPageHtml();
42819
42819
  if (await this.clearHtmlSelection(), t === this.activeBuilderSessionToken && (n === "update" || n === "create")) {
42820
42820
  if (!this.pendingMountComponents) {
@@ -42887,7 +42887,15 @@ class uce {
42887
42887
  * @private
42888
42888
  */
42889
42889
  async completeMountProcess(e, t, r = this.activeBuilderSessionToken) {
42890
- r === this.activeBuilderSessionToken && (await this.mountComponentsToDOM(e, t), r === this.activeBuilderSessionToken && (this.deleteOldPageBuilderLocalStorage(), this.pageBuilderStateStore.setIsRestoring(!1), this.hasCompletedBuilderMount = !0, this.pageBuilderStateStore.setIsLoadingGlobal(!1)));
42890
+ if (r !== this.activeBuilderSessionToken) {
42891
+ this.pageBuilderStateStore.setIsLoadingGlobal(!1);
42892
+ return;
42893
+ }
42894
+ if (await this.mountComponentsToDOM(e, t), r !== this.activeBuilderSessionToken) {
42895
+ this.pageBuilderStateStore.setIsLoadingGlobal(!1);
42896
+ return;
42897
+ }
42898
+ this.deleteOldPageBuilderLocalStorage(), this.pageBuilderStateStore.setIsRestoring(!1), this.hasCompletedBuilderMount = !0, this.pageBuilderStateStore.setIsLoadingGlobal(!1);
42891
42899
  }
42892
42900
  /**
42893
42901
  * Applies CSS class changes to the currently selected element.
@@ -43104,11 +43112,11 @@ class uce {
43104
43112
  }
43105
43113
  selectedComponentIsFullWidth() {
43106
43114
  var e;
43107
- return ((e = this.getSelectedComponentSection()) == null ? void 0 : e.classList.contains(hs)) ?? !1;
43115
+ return ((e = this.getSelectedComponentSection()) == null ? void 0 : e.classList.contains(fs)) ?? !1;
43108
43116
  }
43109
43117
  async setSelectedComponentFullWidth(e) {
43110
43118
  const t = this.getSelectedComponentSection();
43111
- t && (t.classList.toggle(hs, e), await this.handleAutoSave());
43119
+ t && (t.classList.toggle(fs, e), await this.handleAutoSave());
43112
43120
  }
43113
43121
  isSelectedProductSection() {
43114
43122
  const e = this.getSelectedComponentSection();
@@ -43136,7 +43144,7 @@ class uce {
43136
43144
  */
43137
43145
  isGlobalFullWidth() {
43138
43146
  const e = document.querySelector("#pagebuilder");
43139
- return (e == null ? void 0 : e.classList.contains(hs)) ?? !1;
43147
+ return (e == null ? void 0 : e.classList.contains(fs)) ?? !1;
43140
43148
  }
43141
43149
  /**
43142
43150
  * Toggles the full-width class on the page wrapper so that global background
@@ -43144,7 +43152,7 @@ class uce {
43144
43152
  */
43145
43153
  async setGlobalFullWidth(e) {
43146
43154
  const t = document.querySelector("#pagebuilder");
43147
- t == null || t.classList.toggle(hs, e), this.saveDomComponentsToLocalStorage(), await this.handleAutoSave();
43155
+ t == null || t.classList.toggle(fs, e), this.saveDomComponentsToLocalStorage(), await this.handleAutoSave();
43148
43156
  }
43149
43157
  /** Returns true when the currently selected element is an `<img>`. */
43150
43158
  isSelectedElementImage() {
@@ -43158,7 +43166,7 @@ class uce {
43158
43166
  return this.pageBuilderStateStore.getImageSettingsPanelOpen;
43159
43167
  }
43160
43168
  findImageAspectClass(e) {
43161
- const t = Zd.aspectRatio.find(
43169
+ const t = ep.aspectRatio.find(
43162
43170
  (n) => n !== "none" && e.classList.contains(n)
43163
43171
  );
43164
43172
  return t || (Array.from(e.classList).find((n) => n.startsWith("pbx-aspect-")) ?? null);
@@ -43169,12 +43177,12 @@ class uce {
43169
43177
  });
43170
43178
  }
43171
43179
  handleImageObjectFit(e) {
43172
- this.applyElementClassChanges(e, Zd.objectFit, "setImageObjectFit");
43180
+ this.applyElementClassChanges(e, ep.objectFit, "setImageObjectFit");
43173
43181
  }
43174
43182
  handleImageObjectPosition(e) {
43175
43183
  this.applyElementClassChanges(
43176
43184
  e,
43177
- Zd.objectPosition,
43185
+ ep.objectPosition,
43178
43186
  "setImageObjectPosition"
43179
43187
  );
43180
43188
  }
@@ -43702,7 +43710,7 @@ class uce {
43702
43710
  handleBackgroundOpacity(e) {
43703
43711
  this.applyElementClassChanges(
43704
43712
  e,
43705
- $l.backgroundOpacities,
43713
+ _l.backgroundOpacities,
43706
43714
  "setBackgroundOpacity"
43707
43715
  );
43708
43716
  }
@@ -43711,7 +43719,7 @@ class uce {
43711
43719
  * @param {string} [opacity] - The selected opacity class.
43712
43720
  */
43713
43721
  handleOpacity(e) {
43714
- this.applyElementClassChanges(e, $l.opacities, "setOpacity");
43722
+ this.applyElementClassChanges(e, _l.opacities, "setOpacity");
43715
43723
  }
43716
43724
  /**
43717
43725
  * Removes all components from both the builder state and the DOM.
@@ -44112,7 +44120,7 @@ class uce {
44112
44120
  return {
44113
44121
  classes: e.className || "",
44114
44122
  style: e.getAttribute("style") || e.style.cssText || "",
44115
- meta: tp(e)
44123
+ meta: hs(e)
44116
44124
  };
44117
44125
  const t = document.querySelector("[data-pagebuilder-content]");
44118
44126
  if (t)
@@ -44632,7 +44640,7 @@ ${s}
44632
44640
  i = {
44633
44641
  classes: n.className || "",
44634
44642
  style: this.parseStyleString(d),
44635
- meta: tp(n)
44643
+ meta: hs(n)
44636
44644
  };
44637
44645
  }
44638
44646
  let a = r.querySelectorAll("section");
@@ -44761,13 +44769,17 @@ ${s}
44761
44769
  let u = null;
44762
44770
  const b = this.readCurrentPageSettings();
44763
44771
  if (t) {
44764
- const x = ((a = this.pageBuilderStateStore.getPageBuilderConfig) == null ? void 0 : a.pageSettings) ?? null, v = b, C = this._lastKnownPageSettings;
44772
+ const x = ((a = this.pageBuilderStateStore.getPageBuilderConfig) == null ? void 0 : a.pageSettings) ?? null, v = this._lastKnownPageSettings, C = b;
44765
44773
  u = this.hasMeaningfulPageSettings(x) ? x : this.hasMeaningfulPageSettings(v) ? v : this.hasMeaningfulPageSettings(C) ? C : null;
44766
44774
  }
44767
- if (!u && this.hasMeaningfulPageSettings(b) && (u = b), !r && !u && c && (u = {
44775
+ if (!t && !r && !u && c && this.isPageBuilderMissingOnStart && (u = {
44776
+ classes: c.className || "",
44777
+ style: this.parseStyleString(c.getAttribute("style") || ""),
44778
+ meta: hs(c)
44779
+ }), !u && this.hasMeaningfulPageSettings(b) && (u = b), !r && !u && c && (u = {
44768
44780
  classes: c.className || "",
44769
44781
  style: this.parseStyleString(c.getAttribute("style") || ""),
44770
- meta: tp(c)
44782
+ meta: hs(c)
44771
44783
  }), !u) {
44772
44784
  const x = ((s = this.pageBuilderStateStore.getPageBuilderConfig) == null ? void 0 : s.pageSettings) ?? null, v = this._lastKnownPageSettings;
44773
44785
  u = this.hasMeaningfulPageSettings(x) ? x : this.hasMeaningfulPageSettings(v) ? v : null;