golden-logic-ui 1.0.312 → 1.0.314

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.
@@ -522,7 +522,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
522
522
  Ge.key === "Enter" && Ge.target.form && Ge.preventDefault();
523
523
  }));
524
524
  });
525
- const _n = vc(() => Bn()), Gn = vc(() => je()), Ro = vc(() => {
525
+ const _n = vc(() => Bn()), Wn = vc(() => je()), Ro = vc(() => {
526
526
  const Ge = [], A = new RegExp(lt.value, "ig");
527
527
  for (const Vt of _n.value) {
528
528
  const et = String(Vt.name);
@@ -573,7 +573,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
573
573
  A !== -1 && G.value.splice(A, 1), Ae.value = G.value.map((Vt) => Vt.id), Ee("update:modelValue", Ae.value), Ee("selected", G.value), Ee("selectionChanged", G.value);
574
574
  }
575
575
  function Qn(Ge) {
576
- Ge.target.id != se.field_name + "search" + $t.value && Ge.target.id != se.field_name && !Ge.target.classList.contains("showOptions") && (hn(), Q.value = 0, Pe.value = !1);
576
+ Ge.target.id != se.field_name + "search" + $t.value && Ge.target.id != se.field_name && !Ge.target.classList.contains("showOptions") && (gn(), Q.value = 0, Pe.value = !1);
577
577
  }
578
578
  function oe(Ge) {
579
579
  const A = `${Ge}${$t.value}`, Vt = document.getElementById(A);
@@ -629,7 +629,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
629
629
  });
630
630
  }
631
631
  }
632
- function hn() {
632
+ function gn() {
633
633
  lt.value = "", Ee("selected", G.value);
634
634
  }
635
635
  return Gx(lt, () => {
@@ -643,7 +643,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
643
643
  }, [
644
644
  P("h3", MK, gt(R.label_name), 1),
645
645
  P("p", PK, [
646
- (ve(!0), xe(vo, null, hr(Gn.value, (Vt, et) => (ve(), xe("span", BK, gt(Vt == null ? void 0 : Vt.name), 1))), 256))
646
+ (ve(!0), xe(vo, null, hr(Wn.value, (Vt, et) => (ve(), xe("span", BK, gt(Vt == null ? void 0 : Vt.name), 1))), 256))
647
647
  ]),
648
648
  NK
649
649
  ], 2)) : vt("", !0),
@@ -686,7 +686,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
686
686
  class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
687
687
  onClick: A[0] || (A[0] = (Vt) => Wt())
688
688
  }, [
689
- (ve(!0), xe(vo, null, hr(Gn.value, (Vt, et) => (ve(), xe("span", {
689
+ (ve(!0), xe(vo, null, hr(Wn.value, (Vt, et) => (ve(), xe("span", {
690
690
  key: et,
691
691
  class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
692
692
  }, [
@@ -713,7 +713,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
713
713
  ref: ge.value,
714
714
  id: `${R.field_name}search${$t.value}`,
715
715
  onKeydown: Gs,
716
- onBlur: A[3] || (A[3] = (Vt) => hn()),
716
+ onBlur: A[3] || (A[3] = (Vt) => gn()),
717
717
  autocomplete: "off",
718
718
  class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
719
719
  placeholder: "Search ..."
@@ -2541,27 +2541,29 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2541
2541
  emits: ["update:modelValue", "selected", "selectionChanged"],
2542
2542
  setup(R, { emit: de }) {
2543
2543
  const se = R, Ee = de, ge = Vo(null), G = Vo({}), Ae = Vo(0), Q = Vo(!1), Pe = Vo(""), lt = Vo(""), $t = Vo(0), _n = () => {
2544
- const Wt = `myDivDropDown${lt.value}`, hn = document.getElementById(Wt);
2545
- hn && ($t.value = hn.offsetWidth, console.log("divDropDownWidth", hn.offsetWidth));
2546
- }, Gn = () => {
2544
+ const Wt = `myDivDropDown${lt.value}`, gn = document.getElementById(Wt);
2545
+ gn && (console.log("divDropDownWidthelement", gn), $t.value = gn.offsetWidth, console.log("divDropDownWidth", gn.offsetWidth));
2546
+ }, Wn = () => {
2547
2547
  _n();
2548
2548
  };
2549
2549
  Oh(() => {
2550
- lt.value = pr(), U8(() => {
2551
- _n(), window.addEventListener("resize", Gn);
2550
+ lt.value = pr(), Wn(), U8(() => {
2551
+ document.addEventListener("DOMContentLoaded", function() {
2552
+ _n();
2553
+ }), window.addEventListener("resize", Wn);
2552
2554
  }), se.show || (document.body.addEventListener("click", (Wt) => {
2553
2555
  me(Wt);
2554
2556
  }), document.addEventListener("keypress", (Wt) => {
2555
2557
  Wt.key === "Enter" && Wt.target.form && Wt.preventDefault();
2556
2558
  }));
2557
2559
  }), tq(() => {
2558
- window.removeEventListener("resize", Gn);
2560
+ window.removeEventListener("resize", Wn);
2559
2561
  });
2560
2562
  const Ro = vc(() => oe()), Gs = vc(() => Nn()), Io = vc(() => {
2561
- const Wt = [], hn = new RegExp(Pe.value, "ig");
2563
+ const Wt = [], gn = new RegExp(Pe.value, "ig");
2562
2564
  for (const Ge of Ro.value) {
2563
2565
  const A = String(Ge.name);
2564
- (Pe.value.length < 1 || A.match(hn)) && Wt.length < se.maxItem && Wt.push(Ge);
2566
+ (Pe.value.length < 1 || A.match(gn)) && Wt.length < se.maxItem && Wt.push(Ge);
2565
2567
  }
2566
2568
  return Wt;
2567
2569
  });
@@ -2595,18 +2597,18 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2595
2597
  Wt.target.id != se.field_name + "search" + lt.value && Wt.target.id != se.field_name && !Wt.target.classList.contains("showOptions") && (fe(), Ae.value = 0, Q.value = !1);
2596
2598
  }
2597
2599
  function _t(Wt) {
2598
- const hn = `${Wt}${lt.value}`, Ge = document.getElementById(hn);
2600
+ const gn = `${Wt}${lt.value}`, Ge = document.getElementById(gn);
2599
2601
  Ge && Ge.scrollIntoView();
2600
2602
  }
2601
2603
  function Ea(Wt) {
2602
- const hn = `${Wt}${lt.value}`, Ge = document.getElementById(hn);
2604
+ const gn = `${Wt}${lt.value}`, Ge = document.getElementById(gn);
2603
2605
  Ge && Ge.click();
2604
2606
  }
2605
2607
  function Qn(Wt) {
2606
2608
  Wt === "ArrowDown" && Ae.value < Io.value.length && (Ae.value++, _t(Ae.value)), Wt === "ArrowUp" && Ae.value > 1 && (Ae.value--, _t(Ae.value)), Wt === "Enter" && Ea(Ae.value);
2607
2609
  }
2608
2610
  function oe() {
2609
- return se.options.map((Wt, hn) => typeof Wt == "object" ? Wt : { id: Wt, name: Wt });
2611
+ return se.options.map((Wt, gn) => typeof Wt == "object" ? Wt : { id: Wt, name: Wt });
2610
2612
  }
2611
2613
  function Nn() {
2612
2614
  if (un(G.value))
@@ -2649,11 +2651,10 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2649
2651
  Io.value.length === 0 && (G.value = {});
2650
2652
  }), Gx(G, (Wt) => {
2651
2653
  un(Wt) && Ee("update:modelValue", Wt.id);
2652
- }), (Wt, hn) => {
2654
+ }), (Wt, gn) => {
2653
2655
  var Ge, A;
2654
2656
  return ve(), xe("div", {
2655
- class: an(R.field_name),
2656
- ref: "myDivDropDown",
2657
+ class: an(["w-full", R.field_name]),
2657
2658
  id: `myDivDropDown${lt.value}`
2658
2659
  }, [
2659
2660
  P("input", {
@@ -2679,21 +2680,21 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2679
2680
  "gl-input-form-invalid": R.error_message !== ""
2680
2681
  }, "pl-8 pr-2 showOptions"]),
2681
2682
  ref: R.field_name,
2682
- onClick: hn[0] || (hn[0] = (Vt) => Bn()),
2683
+ onClick: gn[0] || (gn[0] = (Vt) => Bn()),
2683
2684
  value: (A = Gs.value) == null ? void 0 : A.name,
2684
2685
  placeholder: R.placeholder,
2685
2686
  autocomplete: "off",
2686
2687
  readonly: ""
2687
2688
  }, null, 10, cQ),
2688
2689
  Qa(P("i", {
2689
- onClick: hn[1] || (hn[1] = oc((Vt) => je(), ["stop"])),
2690
+ onClick: gn[1] || (gn[1] = oc((Vt) => je(), ["stop"])),
2690
2691
  class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
2691
2692
  style: { top: "13px" }
2692
2693
  }, null, 512), [
2693
2694
  [n5, un(Gs.value) && R.has_cancel]
2694
2695
  ]),
2695
2696
  P("i", {
2696
- onClick: hn[2] || (hn[2] = (Vt) => Bn()),
2697
+ onClick: gn[2] || (gn[2] = (Vt) => Bn()),
2697
2698
  class: an([Q.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
2698
2699
  style: { top: "11px" }
2699
2700
  }, null, 2),
@@ -2707,11 +2708,11 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2707
2708
  mQ,
2708
2709
  Qa(P("input", {
2709
2710
  type: "search",
2710
- "onUpdate:modelValue": hn[3] || (hn[3] = (Vt) => Pe.value = Vt),
2711
+ "onUpdate:modelValue": gn[3] || (gn[3] = (Vt) => Pe.value = Vt),
2711
2712
  ref: ge.value,
2712
2713
  id: `${R.field_name}search${lt.value}`,
2713
2714
  onKeydown: Pt,
2714
- onBlur: hn[4] || (hn[4] = (Vt) => fe()),
2715
+ onBlur: gn[4] || (gn[4] = (Vt) => fe()),
2715
2716
  autocomplete: "off",
2716
2717
  class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
2717
2718
  placeholder: "Search ..."
@@ -2921,13 +2922,13 @@ var oq = { exports: {} };
2921
2922
  var o = de(e), r = de(n);
2922
2923
  return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(_n).eq(e, n) : o === "object" ? $t(_n).eq(e, n) : !1;
2923
2924
  });
2924
- const Gn = Object.getPrototypeOf, Ro = (e, n, o) => {
2925
+ const Wn = Object.getPrototypeOf, Ro = (e, n, o) => {
2925
2926
  var r;
2926
2927
  return o(e, n.prototype) ? !0 : ((r = e.constructor) === null || r === void 0 ? void 0 : r.name) === n.name;
2927
2928
  }, Gs = (e) => {
2928
2929
  const n = typeof e;
2929
2930
  return e === null ? "null" : n === "object" && Array.isArray(e) ? "array" : n === "object" && Ro(e, String, (o, r) => r.isPrototypeOf(o)) ? "string" : n;
2930
- }, Io = (e) => (n) => Gs(n) === e, Pt = (e) => (n) => typeof n === e, pr = (e) => (n) => e === n, un = (e, n) => _t(e) && Ro(e, n, (o, r) => Gn(o) === r), me = Io("string"), _t = Io("object"), Ea = (e) => un(e, Object), Qn = Io("array"), oe = pr(null), Nn = Pt("boolean"), os = pr(void 0), Bn = (e) => e == null, je = (e) => !Bn(e), fe = Pt("function"), Wt = Pt("number"), hn = (e, n) => {
2931
+ }, Io = (e) => (n) => Gs(n) === e, Pt = (e) => (n) => typeof n === e, pr = (e) => (n) => e === n, un = (e, n) => _t(e) && Ro(e, n, (o, r) => Wn(o) === r), me = Io("string"), _t = Io("object"), Ea = (e) => un(e, Object), Qn = Io("array"), oe = pr(null), Nn = Pt("boolean"), os = pr(void 0), Bn = (e) => e == null, je = (e) => !Bn(e), fe = Pt("function"), Wt = Pt("number"), gn = (e, n) => {
2931
2932
  if (Qn(e)) {
2932
2933
  for (let o = 0, r = e.length; o < r; ++o)
2933
2934
  if (!n(e[o]))
@@ -3160,7 +3161,7 @@ var oq = { exports: {} };
3160
3161
  return bt(e, (r, l) => {
3161
3162
  o.push(n(r, l));
3162
3163
  }), o;
3163
- }, bl = (e) => tl(e, Ao), Yo = (e, n) => gn(e, n) ? z.from(e[n]) : z.none(), gn = (e, n) => Gi.call(e, n), Ar = (e, n) => gn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o = _n) => $t(o).eq(e, n), Hc = (e) => {
3164
+ }, bl = (e) => tl(e, Ao), Yo = (e, n) => hn(e, n) ? z.from(e[n]) : z.none(), hn = (e, n) => Gi.call(e, n), Ar = (e, n) => hn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o = _n) => $t(o).eq(e, n), Hc = (e) => {
3164
3165
  const n = {};
3165
3166
  return _e(e, (o) => {
3166
3167
  n[o] = {};
@@ -3183,7 +3184,7 @@ var oq = { exports: {} };
3183
3184
  return !1;
3184
3185
  } else
3185
3186
  for (const r in e)
3186
- if (gn(e, r) && n.call(o, e[r], r, e) === !1)
3187
+ if (hn(e, r) && n.call(o, e[r], r, e) === !1)
3187
3188
  return !1;
3188
3189
  return !0;
3189
3190
  }, vl = (e, n) => {
@@ -3481,11 +3482,11 @@ var oq = { exports: {} };
3481
3482
  for (; l--; )
3482
3483
  o[r[l]] = {};
3483
3484
  return o;
3484
- }, re = gn, Le = (e, ...n) => {
3485
+ }, re = hn, Le = (e, ...n) => {
3485
3486
  for (let o = 0; o < n.length; o++) {
3486
3487
  const r = n[o];
3487
3488
  for (const l in r)
3488
- if (gn(r, l)) {
3489
+ if (hn(r, l)) {
3489
3490
  const u = r[l];
3490
3491
  u !== void 0 && (e[l] = u);
3491
3492
  }
@@ -4006,7 +4007,7 @@ var oq = { exports: {} };
4006
4007
  "style"
4007
4008
  ], Rm = (e) => {
4008
4009
  let n;
4009
- return (o) => (n = n || us(e, pt), gn(n, co(o)));
4010
+ return (o) => (n = n || us(e, pt), hn(n, co(o)));
4010
4011
  }, _l = (e) => co(e) === "table", Id = (e) => Pa(e) && co(e) === "br", Re = Rm(Dm), Wl = Rm(C1), Kc = Rm(Ia), Yc = Rm(Eu), Zl = Rm(Ho), Kr = Rm(Om), oa = (e) => {
4011
4012
  const n = [];
4012
4013
  let o = e.dom;
@@ -4211,7 +4212,7 @@ var oq = { exports: {} };
4211
4212
  }, Yx = (e, n, o) => {
4212
4213
  const r = (u) => yo(u, le.fromDom(n)), l = Dg(le.fromDom(o), r);
4213
4214
  wc(l, l.length - 2).filter(Pa).fold(() => T1(e, n), (u) => T1(e, u.dom));
4214
- }, yb = (e) => e.hasAttribute(k1), E1 = (e, n) => gn(e.getTransparentElements(), n), A1 = (e, n) => jt(n) && E1(e, n.nodeName), ho = (e, n) => A1(e, n) && yb(n), ln = (e, n) => A1(e, n) && !yb(n), Nm = (e, n) => n.type === 1 && E1(e, n.name) && me(n.attr(k1)), wb = rs().browser, D1 = (e) => hs(e, Pa), kT = (e) => wb.isFirefox() && co(e) === "table" ? D1(Rr(e)).filter((n) => co(n) === "caption").bind((n) => D1(ja(n)).map((o) => {
4215
+ }, yb = (e) => e.hasAttribute(k1), E1 = (e, n) => hn(e.getTransparentElements(), n), A1 = (e, n) => jt(n) && E1(e, n.nodeName), ho = (e, n) => A1(e, n) && yb(n), ln = (e, n) => A1(e, n) && !yb(n), Nm = (e, n) => n.type === 1 && E1(e, n.name) && me(n.attr(k1)), wb = rs().browser, D1 = (e) => hs(e, Pa), kT = (e) => wb.isFirefox() && co(e) === "table" ? D1(Rr(e)).filter((n) => co(n) === "caption").bind((n) => D1(ja(n)).map((o) => {
4215
4216
  const r = o.dom.offsetTop, l = n.dom.offsetTop, u = n.dom.offsetHeight;
4216
4217
  return r <= l ? -u : 0;
4217
4218
  })).getOr(0) : 0, Oy = (e, n) => e.children && qe(e.children, n), Es = (e, n, o) => {
@@ -4643,7 +4644,7 @@ var oq = { exports: {} };
4643
4644
  Mo === "remove" ? delete ir[Vi] : ir[Vi] = {};
4644
4645
  }), r[Rs] = ir;
4645
4646
  });
4646
- }, Zn = (In) => {
4647
+ }, jn = (In) => {
4647
4648
  const Mo = o[In];
4648
4649
  if (Mo)
4649
4650
  return Mo;
@@ -4689,12 +4690,12 @@ var oq = { exports: {} };
4689
4690
  o[Mo] && (o[Mo].parentsRequired = dl(In));
4690
4691
  }), e.invalid_elements && ld(iu(e.invalid_elements), (In) => {
4691
4692
  o[In] && delete o[In];
4692
- }), Zn("span") || st("span[!data-mce-type|*]");
4693
- const fs = et(M), Os = et(B), Fr = et(F), $l = et(ne), is = et(wt), kt = et(rt), en = et(It), jn = et(Object.seal(q)), so = et(te), Yt = et(Se), Rn = et(Ce), Ct = et(J), $n = et(Ue), So = et(He), Ss = et(Object.seal(f)), gs = (In, Mo) => {
4693
+ }), jn("span") || st("span[!data-mce-type|*]");
4694
+ const fs = et(M), Os = et(B), Fr = et(F), $l = et(ne), is = et(wt), kt = et(rt), en = et(It), Gn = et(Object.seal(q)), so = et(te), Yt = et(Se), Rn = et(Ce), Ct = et(J), $n = et(Ue), So = et(He), Ss = et(Object.seal(f)), gs = (In, Mo) => {
4694
4695
  const Rs = r[In.toLowerCase()];
4695
4696
  return !!(Rs && Rs[Mo.toLowerCase()]);
4696
4697
  }, Fa = (In, Mo) => {
4697
- const Rs = Zn(In);
4698
+ const Rs = jn(In);
4698
4699
  if (Rs)
4699
4700
  if (Mo) {
4700
4701
  if (Rs.attributes[Mo])
@@ -4709,7 +4710,7 @@ var oq = { exports: {} };
4709
4710
  } else
4710
4711
  return !0;
4711
4712
  return !1;
4712
- }, gm = (In) => gn(is(), In), bg = (In) => !ks(In, "#") && Fa(In) && !gm(In), ii = (In) => gn(So(), In) || bg(In), _d = et(u);
4713
+ }, gm = (In) => hn(is(), In), bg = (In) => !ks(In, "#") && Fa(In) && !gm(In), ii = (In) => hn(So(), In) || bg(In), _d = et(u);
4713
4714
  return {
4714
4715
  type: y,
4715
4716
  children: r,
@@ -4718,11 +4719,11 @@ var oq = { exports: {} };
4718
4719
  getValidClasses: Fr,
4719
4720
  getBlockElements: is,
4720
4721
  getInvalidStyles: Os,
4721
- getVoidElements: jn,
4722
+ getVoidElements: Gn,
4722
4723
  getTextBlockElements: kt,
4723
4724
  getTextInlineElements: en,
4724
4725
  getBoolAttrs: $l,
4725
- getElementRule: Zn,
4726
+ getElementRule: jn,
4726
4727
  getSelfClosingElements: so,
4727
4728
  getNonEmptyElements: Yt,
4728
4729
  getMoveCaretBeforeOnEnterElements: Rn,
@@ -4784,14 +4785,14 @@ var oq = { exports: {} };
4784
4785
  const Yn = F[Ue + "-bottom" + He];
4785
4786
  if (!Yn)
4786
4787
  return;
4787
- const Zn = F[Ue + "-left" + He];
4788
- if (!Zn)
4788
+ const jn = F[Ue + "-left" + He];
4789
+ if (!jn)
4789
4790
  return;
4790
4791
  const fs = [
4791
4792
  Gt,
4792
4793
  rn,
4793
4794
  Yn,
4794
- Zn
4795
+ jn
4795
4796
  ];
4796
4797
  let Os = fs.length - 1;
4797
4798
  for (; Os-- && fs[Os] === fs[Os + 1]; )
@@ -4813,8 +4814,8 @@ var oq = { exports: {} };
4813
4814
  if (rn = rn || Yn, rn)
4814
4815
  return rn = Me(rn), "'" + rn.replace(/\'/g, "\\'") + "'";
4815
4816
  if (He = Me(He || st || Gt || ""), !e.allow_script_urls) {
4816
- const Zn = He.replace(/[\s\r\n]+/g, "");
4817
- if (/(java|vb)script:/i.test(Zn) || !e.allow_svg_data_urls && /^data:image\/svg/i.test(Zn))
4817
+ const jn = He.replace(/[\s\r\n]+/g, "");
4818
+ if (/(java|vb)script:/i.test(jn) || !e.allow_svg_data_urls && /^data:image\/svg/i.test(jn))
4818
4819
  return "";
4819
4820
  }
4820
4821
  return te && (He = te.call(q, He, "style")), "url('" + He.replace(/\'/g, "\\'") + "')";
@@ -4870,7 +4871,7 @@ var oq = { exports: {} };
4870
4871
  }, PT = (e) => e instanceof Event || fe(e.initEvent), nC = (e) => e.isDefaultPrevented === pt || e.isDefaultPrevented === tt, zy = (e) => Bn(e.preventDefault) || PT(e), Qh = (e, n) => {
4871
4872
  const o = n ?? {};
4872
4873
  for (const r in e)
4873
- gn(Tb, r) || (o[r] = e[r]);
4874
+ hn(Tb, r) || (o[r] = e[r]);
4874
4875
  return je(e.composedPath) && (o.composedPath = () => e.composedPath()), je(e.getModifierState) && (o.getModifierState = (r) => e.getModifierState(r)), je(e.getTargetRanges) && (o.getTargetRanges = () => e.getTargetRanges()), o;
4875
4876
  }, ep = (e, n, o, r) => {
4876
4877
  var l;
@@ -4967,7 +4968,7 @@ var oq = { exports: {} };
4967
4968
  tp(n, f.fakeName || b, f.nativeHandler, f.capture);
4968
4969
  }), u = {};
4969
4970
  for (const f in u)
4970
- if (gn(u, f))
4971
+ if (hn(u, f))
4971
4972
  return this;
4972
4973
  delete this.events[l];
4973
4974
  try {
@@ -5036,7 +5037,7 @@ var oq = { exports: {} };
5036
5037
  }, Wy = (e, n) => {
5037
5038
  const o = Za(n, "style"), r = e.serialize(e.parse(o), co(n));
5038
5039
  Rb(n, Ob, r);
5039
- }, np = (e, n) => Wt(e) ? gn(a5, n) ? e + "" : e + "px" : e, $b = (e, n, o) => {
5040
+ }, np = (e, n) => Wt(e) ? hn(a5, n) ? e + "" : e + "px" : e, $b = (e, n, o) => {
5040
5041
  const r = Pf(n);
5041
5042
  Bn(o) || o === "" ? Ju(e, r) : Hh(e, r, np(o, r));
5042
5043
  }, sC = (e, n, o) => {
@@ -5074,7 +5075,7 @@ var oq = { exports: {} };
5074
5075
  url_converter: n.url_converter,
5075
5076
  url_converter_scope: n.url_converter_scope,
5076
5077
  force_hex_color: n.force_hex_color
5077
- }, n.schema), F = n.ownEvents ? new ni() : ni.Event, J = M.getBlockElements(), te = (Be) => me(Be) ? gn(J, Be) : jt(Be) && (gn(J, Be.nodeName) || ho(M, Be)), q = (Be) => Be && e && me(Be) ? e.getElementById(Be) : Be, ne = (Be) => {
5078
+ }, n.schema), F = n.ownEvents ? new ni() : ni.Event, J = M.getBlockElements(), te = (Be) => me(Be) ? hn(J, Be) : jt(Be) && (hn(J, Be.nodeName) || ho(M, Be)), q = (Be) => Be && e && me(Be) ? e.getElementById(Be) : Be, ne = (Be) => {
5078
5079
  const Fe = q(Be);
5079
5080
  return je(Fe) ? le.fromDom(Fe) : null;
5080
5081
  }, ye = (Be, Fe, St = "") => {
@@ -5148,7 +5149,7 @@ var oq = { exports: {} };
5148
5149
  return !1;
5149
5150
  const St = Qn(Be) ? Be : [Be];
5150
5151
  return At(St, (ht) => cc(le.fromDom(ht), Fe));
5151
- }, Zn = (Be, Fe, St, ht) => {
5152
+ }, jn = (Be, Fe, St, ht) => {
5152
5153
  const sn = [];
5153
5154
  let ro = q(Be);
5154
5155
  ht = ht === void 0;
@@ -5170,7 +5171,7 @@ var oq = { exports: {} };
5170
5171
  }
5171
5172
  return ht ? sn : null;
5172
5173
  }, fs = (Be, Fe, St) => {
5173
- const ht = Zn(Be, Fe, St, !1);
5174
+ const ht = jn(Be, Fe, St, !1);
5174
5175
  return ht && ht.length > 0 ? ht[0] : null;
5175
5176
  }, Os = (Be, Fe, St) => {
5176
5177
  let ht = Fe;
@@ -5197,7 +5198,7 @@ var oq = { exports: {} };
5197
5198
  const sn = q(Be);
5198
5199
  return sn ? Fe.call(ht, sn) : !1;
5199
5200
  }
5200
- }, jn = (Be, Fe) => {
5201
+ }, Gn = (Be, Fe) => {
5201
5202
  en(Be, (St) => {
5202
5203
  bt(Fe, (ht, sn) => {
5203
5204
  Ce(St, sn, ht);
@@ -5210,12 +5211,12 @@ var oq = { exports: {} };
5210
5211
  });
5211
5212
  }, Yt = (Be, Fe, St, ht, sn) => en(Be, (ro) => {
5212
5213
  const nr = me(Fe) ? e.createElement(Fe) : Fe;
5213
- return je(St) && jn(nr, St), ht && (!me(ht) && ht.nodeType ? nr.appendChild(ht) : me(ht) && so(nr, ht)), sn ? nr : ro.appendChild(nr);
5214
+ return je(St) && Gn(nr, St), ht && (!me(ht) && ht.nodeType ? nr.appendChild(ht) : me(ht) && so(nr, ht)), sn ? nr : ro.appendChild(nr);
5214
5215
  }), Rn = (Be, Fe, St) => Yt(e.createElement(Be), Be, Fe, St, !0), Ct = Mf.decode, $n = Mf.encodeAllRaw, So = (Be, Fe, St = "") => {
5215
5216
  let ht = "<" + Be;
5216
5217
  for (const sn in Fe)
5217
5218
  Ar(Fe, sn) && (ht += " " + sn + '="' + $n(Fe[sn]) + '"');
5218
- return Qr(St) && gn(M.getVoidElements(), Be) ? ht + " />" : ht + ">" + St + "</" + Be + ">";
5219
+ return Qr(St) && hn(M.getVoidElements(), Be) ? ht + " />" : ht + ">" + St + "</" + Be + ">";
5219
5220
  }, Ss = (Be) => {
5220
5221
  const Fe = e.createElement("div"), St = e.createDocumentFragment();
5221
5222
  St.appendChild(Fe), Be && (Fe.innerHTML = Be);
@@ -5413,7 +5414,7 @@ var oq = { exports: {} };
5413
5414
  getRect: rn,
5414
5415
  getSize: Gt,
5415
5416
  getParent: fs,
5416
- getParents: Zn,
5417
+ getParents: jn,
5417
5418
  get: q,
5418
5419
  getNext: Fr,
5419
5420
  getPrev: $l,
@@ -5429,7 +5430,7 @@ var oq = { exports: {} };
5429
5430
  setStyles: He,
5430
5431
  removeAllAttribs: Fa,
5431
5432
  setAttrib: Ce,
5432
- setAttribs: jn,
5433
+ setAttribs: Gn,
5433
5434
  getAttrib: ye,
5434
5435
  getPos: It,
5435
5436
  parseStyle: gm,
@@ -5579,7 +5580,7 @@ var oq = { exports: {} };
5579
5580
  }, ki = (e, n) => {
5580
5581
  const o = e.indexOf(n);
5581
5582
  return o !== -1 && e.indexOf(n, o + 1) > o;
5582
- }, Zy = (e) => _t(e) && gn(e, "raw"), ml = (e) => Qn(e) && e.length > 1, P1 = {}, sp = lr("en"), Wd = () => Yo(P1, sp.get()), $u = {
5583
+ }, Zy = (e) => _t(e) && hn(e, "raw"), ml = (e) => Qn(e) && e.length > 1, P1 = {}, sp = lr("en"), Wd = () => Yo(P1, sp.get()), $u = {
5583
5584
  getData: () => fo(P1, (e) => ({ ...e })),
5584
5585
  setCode: (e) => {
5585
5586
  e && sp.set(e);
@@ -5591,31 +5592,31 @@ var oq = { exports: {} };
5591
5592
  const r = Ke(Qo(n), (l) => l.toLowerCase());
5592
5593
  bt(n, (l, u) => {
5593
5594
  const f = u.toLowerCase();
5594
- f !== u && ki(r, f) ? (gn(n, f) || (o[f] = l), o[u] = l) : o[f] = l;
5595
+ f !== u && ki(r, f) ? (hn(n, f) || (o[f] = l), o[u] = l) : o[f] = l;
5595
5596
  });
5596
5597
  },
5597
5598
  translate: (e) => {
5598
5599
  const n = Wd().getOr({}), o = (f) => fe(f) ? Object.prototype.toString.call(f) : r(f) ? "" : "" + f, r = (f) => f === "" || f === null || f === void 0, l = (f) => {
5599
5600
  const b = o(f);
5600
- return gn(n, b) ? o(n[b]) : Yo(n, b.toLowerCase()).map(o).getOr(b);
5601
+ return hn(n, b) ? o(n[b]) : Yo(n, b.toLowerCase()).map(o).getOr(b);
5601
5602
  }, u = (f) => f.replace(/{context:\w+}$/, "");
5602
5603
  if (r(e))
5603
5604
  return "";
5604
5605
  if (Zy(e))
5605
5606
  return o(e.raw);
5606
5607
  if (ml(e)) {
5607
- const f = e.slice(1), b = l(e[0]).replace(/\{([0-9]+)\}/g, (y, k) => gn(f, k) ? o(f[k]) : y);
5608
+ const f = e.slice(1), b = l(e[0]).replace(/\{([0-9]+)\}/g, (y, k) => hn(f, k) ? o(f[k]) : y);
5608
5609
  return u(b);
5609
5610
  }
5610
5611
  return u(l(e));
5611
5612
  },
5612
5613
  isRtl: () => Wd().bind((e) => Yo(e, "_dir")).exists((e) => e === "rtl"),
5613
- hasCode: (e) => gn(P1, e)
5614
+ hasCode: (e) => hn(P1, e)
5614
5615
  }, ql = () => {
5615
5616
  const e = [], n = {}, o = {}, r = [], l = (q, ne) => {
5616
5617
  const ye = Ft(r, (Se) => Se.name === q && Se.state === ne);
5617
5618
  _e(ye, (Se) => Se.resolve());
5618
- }, u = (q) => gn(n, q), f = (q) => gn(o, q), b = (q) => {
5619
+ }, u = (q) => hn(n, q), f = (q) => hn(o, q), b = (q) => {
5619
5620
  if (o[q])
5620
5621
  return o[q].instance;
5621
5622
  }, y = (q, ne) => {
@@ -6569,7 +6570,7 @@ Required: ` + n.join(", "));
6569
6570
  default: "40px"
6570
6571
  }), n("content_css", {
6571
6572
  processor: (o) => {
6572
- const r = o === !1 || me(o) || hn(o, me);
6573
+ const r = o === !1 || me(o) || gn(o, me);
6573
6574
  return r ? me(o) ? {
6574
6575
  value: Ke(o.split(","), xc),
6575
6576
  valid: r
@@ -6593,7 +6594,7 @@ Required: ` + n.join(", "));
6593
6594
  default: !1
6594
6595
  }), n("font_css", {
6595
6596
  processor: (o) => {
6596
- const r = me(o) || hn(o, me);
6597
+ const r = me(o) || gn(o, me);
6597
6598
  return r ? {
6598
6599
  value: Qn(o) ? o : Ke(o.split(","), xc),
6599
6600
  valid: r
@@ -6792,7 +6793,7 @@ Required: ` + n.join(", "));
6792
6793
  processor: "number",
6793
6794
  default: 4
6794
6795
  }), n("text_patterns", {
6795
- processor: (o) => hn(o, _t) || o === !1 ? {
6796
+ processor: (o) => gn(o, _t) || o === !1 ? {
6796
6797
  value: YT(o === !1 ? [] : o),
6797
6798
  valid: !0
6798
6799
  } : {
@@ -6863,7 +6864,7 @@ Required: ` + n.join(", "));
6863
6864
  processor: "string",
6864
6865
  default: "mceEditable"
6865
6866
  }), n("noneditable_regexp", {
6866
- processor: (o) => hn(o, Mu) ? {
6867
+ processor: (o) => gn(o, Mu) ? {
6867
6868
  value: o,
6868
6869
  valid: !0
6869
6870
  } : Mu(o) ? {
@@ -7234,7 +7235,7 @@ Required: ` + n.join(", "));
7234
7235
  o = o.parentNode;
7235
7236
  }
7236
7237
  return null;
7237
- }, V2 = (e) => me(e.start), BE = (e) => gn(e, "rng"), JC = (e) => gn(e, "id"), s0 = (e) => gn(e, "name"), QC = (e) => ct.isArray(e.start), r0 = (e) => !s0(e) && Nn(e.forward) ? e.forward : !0, lv = (e, n) => (jt(n) && e.isBlock(n) && !n.innerHTML && (n.innerHTML = '<br data-mce-bogus="1" />'), n), NE = (e, n) => {
7238
+ }, V2 = (e) => me(e.start), BE = (e) => hn(e, "rng"), JC = (e) => hn(e, "id"), s0 = (e) => hn(e, "name"), QC = (e) => ct.isArray(e.start), r0 = (e) => !s0(e) && Nn(e.forward) ? e.forward : !0, lv = (e, n) => (jt(n) && e.isBlock(n) && !n.innerHTML && (n.innerHTML = '<br data-mce-bogus="1" />'), n), NE = (e, n) => {
7238
7239
  const o = z.from(gc(e.getRoot(), n.start)), r = z.from(gc(e.getRoot(), n.end));
7239
7240
  return Cr(o, r, (l, u) => {
7240
7241
  const f = e.createRng();
@@ -7826,7 +7827,7 @@ Required: ` + n.join(", "));
7826
7827
  ] : o.is(Ct, "figure.image") ? [Ct.querySelector("img")] : [Ct], rn = (Ct) => {
7827
7828
  const $n = pp(n);
7828
7829
  return !$n || Ct.getAttribute("data-mce-resize") === "false" || Ct === n.getBody() ? !1 : o.hasClass(Ct, "mce-preview-object") && je(Ct.firstElementChild) ? cc(le.fromDom(Ct.firstElementChild), $n) : cc(le.fromDom(Ct), $n);
7829
- }, Yn = (Ct) => Ue(Ct) ? o.create("img", { src: Bt.transparentSrc }) : Ct.cloneNode(!0), Zn = (Ct, $n, So) => {
7830
+ }, Yn = (Ct) => Ue(Ct) ? o.create("img", { src: Bt.transparentSrc }) : Ct.cloneNode(!0), jn = (Ct, $n, So) => {
7830
7831
  if (je(So)) {
7831
7832
  const Ss = Gt(Ct);
7832
7833
  _e(Ss, (gs) => {
@@ -7834,7 +7835,7 @@ Required: ` + n.join(", "));
7834
7835
  });
7835
7836
  }
7836
7837
  }, fs = (Ct, $n, So) => {
7837
- Zn(Ct, "width", $n), Zn(Ct, "height", So);
7838
+ jn(Ct, "width", $n), jn(Ct, "height", So);
7838
7839
  }, Os = (Ct) => {
7839
7840
  let $n, So, Ss, gs, Fa;
7840
7841
  $n = Ct.screenX - B, So = Ct.screenY - F, Ce = $n * k[2] + q, Me = So * k[3] + ne, Ce = Ce < 5 ? 5 : Ce, Me = Me < 5 ? 5 : Me, (It(f) || Ue(f)) && AC(n) !== !1 ? Ss = !zt.modifierPressed(Ct) : Ss = zt.modifierPressed(Ct), Ss && (y0($n) > y0(So) ? (Me = w0(Ce * ye), Ce = w0(Me / ye)) : (Ce = w0(Me / ye), Me = w0(Ce * ye))), fs(b, Ce, Me), gs = k.startPos.x + $n, Fa = k.startPos.y + So, gs = gs > 0 ? gs : 0, Fa = Fa > 0 ? Fa : 0, o.setStyles(y, {
@@ -7847,7 +7848,7 @@ Required: ` + n.join(", "));
7847
7848
  }), Se || (nw(n, f, q, ne, "corner-" + k.name), Se = !0);
7848
7849
  }, Fr = () => {
7849
7850
  const Ct = Se;
7850
- Se = !1, Ct && (Zn(f, "width", Ce), Zn(f, "height", Me)), o.unbind(r, "mousemove", Os), o.unbind(r, "mouseup", Fr), l !== r && (o.unbind(l, "mousemove", Os), o.unbind(l, "mouseup", Fr)), o.remove(b), o.remove(y), o.remove(M), $l(f), Ct && (Iu(n, f, Ce, Me, "corner-" + k.name), o.setAttrib(f, "style", o.getAttrib(f, "style"))), n.nodeChanged();
7851
+ Se = !1, Ct && (jn(f, "width", Ce), jn(f, "height", Me)), o.unbind(r, "mousemove", Os), o.unbind(r, "mouseup", Fr), l !== r && (o.unbind(l, "mousemove", Os), o.unbind(l, "mouseup", Fr)), o.remove(b), o.remove(y), o.remove(M), $l(f), Ct && (Iu(n, f, Ce, Me, "corner-" + k.name), o.setAttrib(f, "style", o.getAttrib(f, "style"))), n.nodeChanged();
7851
7852
  }, $l = (Ct) => {
7852
7853
  so();
7853
7854
  const $n = o.getPos(Ct, u), So = $n.x, Ss = $n.y, gs = Ct.getBoundingClientRect(), Fa = gs.width || gs.right - gs.left, gm = gs.height || gs.bottom - gs.top;
@@ -7896,7 +7897,7 @@ Required: ` + n.join(", "));
7896
7897
  const Ss = o.get("mceResizeHandle" + So);
7897
7898
  Ss && (o.unbind(Ss), o.remove(Ss));
7898
7899
  });
7899
- }, en = (Ct, $n) => o.isChildOf(Ct, $n), jn = (Ct) => {
7900
+ }, en = (Ct, $n) => o.isChildOf(Ct, $n), Gn = (Ct) => {
7900
7901
  if (Se || n.removed || n.composing)
7901
7902
  return;
7902
7903
  const $n = Ct.type === "mousedown" ? Ct.target : e.getNode(), So = Ci(le.fromDom($n), vS).map((gs) => gs.dom).filter((gs) => o.isEditable(gs.parentElement) || gs.nodeName === "IMG" && o.isEditable(gs)).getOrUndefined(), Ss = je(So) ? o.getAttrib(So, Qf, "1") : "1";
@@ -7922,14 +7923,14 @@ Required: ` + n.join(", "));
7922
7923
  }
7923
7924
  };
7924
7925
  return n.on("init", () => {
7925
- Yt(), n.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop", jn), n.on("keyup compositionend", (Ct) => {
7926
- f && f.nodeName === "TABLE" && jn(Ct);
7926
+ Yt(), n.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop", Gn), n.on("keyup compositionend", (Ct) => {
7927
+ f && f.nodeName === "TABLE" && Gn(Ct);
7927
7928
  }), n.on("hide blur", kt), n.on("contextmenu longpress", st, !0);
7928
7929
  }), n.on("remove", so), {
7929
7930
  isResizable: rn,
7930
7931
  showResizeRect: $l,
7931
7932
  hideResizeRect: kt,
7932
- updateResizeRect: jn,
7933
+ updateResizeRect: Gn,
7933
7934
  destroy: () => {
7934
7935
  is.cancel(), f = b = M = null;
7935
7936
  }
@@ -8279,7 +8280,7 @@ Required: ` + n.join(", "));
8279
8280
  top: 0
8280
8281
  });
8281
8282
  return $(u.left + l.left + o.left, u.top + l.top + o.top);
8282
- }, Tn = (e) => co(e) === "textarea", Wn = (e, n) => e.dispatch("ScrollIntoView", n).isDefaultPrevented(), js = (e, n) => {
8283
+ }, Tn = (e) => co(e) === "textarea", Zn = (e, n) => e.dispatch("ScrollIntoView", n).isDefaultPrevented(), js = (e, n) => {
8283
8284
  e.dispatch("AfterScrollIntoView", n);
8284
8285
  }, _a = (e, n) => {
8285
8286
  const o = Rr(e);
@@ -8328,7 +8329,7 @@ Required: ` + n.join(", "));
8328
8329
  elm: r.element.dom,
8329
8330
  alignToTop: l
8330
8331
  };
8331
- if (Wn(e, u))
8332
+ if (Zn(e, u))
8332
8333
  return;
8333
8334
  const f = Kt(n).top;
8334
8335
  o(e, n, f, r, l), js(e, u);
@@ -8739,7 +8740,7 @@ Required: ` + n.join(", "));
8739
8740
  const L5 = ct.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT", " "), F5 = (e) => me(e.nodeValue) && e.nodeValue.includes(x), PS = (e) => `${e.length === 0 ? "" : `${Ke(e, (n) => `[${n}]`).join(",")},`}[data-mce-bogus="all"]`, T7 = (e, n) => n.querySelectorAll(PS(e)), H5 = (e) => document.createTreeWalker(e, NodeFilter.SHOW_COMMENT, (n) => F5(n) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP), V5 = (e) => document.createTreeWalker(e, NodeFilter.SHOW_TEXT, (n) => {
8740
8741
  if (F5(n)) {
8741
8742
  const o = n.parentNode;
8742
- return o && gn(L5, o.nodeName) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
8743
+ return o && hn(L5, o.nodeName) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
8743
8744
  } else
8744
8745
  return NodeFilter.FILTER_SKIP;
8745
8746
  }), E7 = (e) => H5(e).nextNode() !== null, A7 = (e) => V5(e).nextNode() !== null, BS = (e, n) => n.querySelector(PS(e)) !== null, z5 = (e, n) => {
@@ -9089,7 +9090,7 @@ Required: ` + n.join(", "));
9089
9090
  }, (r) => {
9090
9091
  e.selection.setRng(r.toRange(), n);
9091
9092
  });
9092
- }, D4 = (e) => (n) => n.dom === e, aI = (e, n) => n && gn(e.schema.getBlockElements(), co(n)), lI = (e, n) => {
9093
+ }, D4 = (e) => (n) => n.dom === e, aI = (e, n) => n && hn(e.schema.getBlockElements(), co(n)), lI = (e, n) => {
9093
9094
  if (gr(e)) {
9094
9095
  const o = le.fromHtml('<br data-mce-bogus="1">');
9095
9096
  return n ? _e(Rr(e), (r) => {
@@ -9103,7 +9104,7 @@ Required: ` + n.join(", "));
9103
9104
  const k = f.dom, M = b.dom, B = k.data.length;
9104
9105
  return Ya(k, M, o, r), y.container() === M ? Ie(k, B) : y;
9105
9106
  }).orThunk(() => (r && (l.each((f) => mR(f.dom, f.dom.length, o)), u.each((f) => A0(f.dom, 0, o))), n));
9106
- }, VS = (e, n) => gn(e.schema.getTextInlineElements(), co(n)), vh = (e, n, o, r = !0, l = !1) => {
9107
+ }, VS = (e, n) => hn(e.schema.getTextInlineElements(), co(n)), vh = (e, n, o, r = !0, l = !1) => {
9107
9108
  const u = rI(n, e.getBody(), o.dom), f = qs(o, ot(aI, e), D4(e.getBody())), b = pw(o, u, e.schema, VS(e, o));
9108
9109
  e.dom.isEmpty(e.getBody()) ? (e.setContent(""), e.selection.setCursorLocation()) : f.bind((y) => lI(y, l)).fold(() => {
9109
9110
  r && HS(e, n, b);
@@ -9313,14 +9314,14 @@ Required: ` + n.join(", "));
9313
9314
  }), M;
9314
9315
  }, y = (k, M) => {
9315
9316
  for (const B in k)
9316
- if (gn(k, B)) {
9317
+ if (hn(k, B)) {
9317
9318
  const F = M[B];
9318
9319
  if (os(F) || k[B] !== F)
9319
9320
  return !1;
9320
9321
  delete M[B];
9321
9322
  }
9322
9323
  for (const B in M)
9323
- if (gn(M, B))
9324
+ if (hn(M, B))
9324
9325
  return !1;
9325
9326
  return !0;
9326
9327
  };
@@ -9747,7 +9748,7 @@ Required: ` + n.join(", "));
9747
9748
  return !0;
9748
9749
  } else
9749
9750
  for (const y in f)
9750
- if (gn(f, y)) {
9751
+ if (hn(f, y)) {
9751
9752
  const k = b ? e.getAttrib(n, y) : Bp(e, n, y), M = gd(f[y], u), B = Bn(k) || Qr(k);
9752
9753
  if (B && Bn(M))
9753
9754
  continue;
@@ -9930,11 +9931,11 @@ Required: ` + n.join(", "));
9930
9931
  if (Di(n.dom))
9931
9932
  return !1;
9932
9933
  const o = e.schema.getTextInlineElements();
9933
- return gn(o, co(n)) && !Di(n.dom) && !ru(n.dom);
9934
+ return hn(o, co(n)) && !Di(n.dom) && !ru(n.dom);
9934
9935
  }, $w = {}, i_ = Mr(["pre"]), Xr = (e, n) => {
9935
9936
  $w[e] || ($w[e] = []), $w[e].push(n);
9936
9937
  }, v3 = (e, n) => {
9937
- gn($w, e) && _e($w[e], (o) => {
9938
+ hn($w, e) && _e($w[e], (o) => {
9938
9939
  o(n);
9939
9940
  });
9940
9941
  };
@@ -10291,15 +10292,15 @@ Required: ` + n.join(", "));
10291
10292
  const Gt = Np(u) && ra(e.schema, Ue) && Ym(e, He, Ce);
10292
10293
  return st && Gt;
10293
10294
  }, It = (Ue, He, st, Gt) => {
10294
- const rn = Ue.nodeName.toLowerCase(), Yn = Ym(e, Ce, rn) && Ym(e, He, Ce), Zn = !ne && ut(Ue) && T(Ue.data), fs = Di(Ue), Os = !Yr(u) || !te.isBlock(Ue);
10295
- return (st || Gt) && Yn && !Zn && !fs && Os;
10295
+ const rn = Ue.nodeName.toLowerCase(), Yn = Ym(e, Ce, rn) && Ym(e, He, Ce), jn = !ne && ut(Ue) && T(Ue.data), fs = Di(Ue), Os = !Yr(u) || !te.isBlock(Ue);
10296
+ return (st || Gt) && Yn && !jn && !fs && Os;
10296
10297
  };
10297
10298
  b0(te, q, (Ue) => {
10298
10299
  let He;
10299
10300
  const st = (Gt) => {
10300
- let rn = !1, Yn = Se, Zn = !1;
10301
+ let rn = !1, Yn = Se, jn = !1;
10301
10302
  const fs = Gt.parentNode, Os = fs.nodeName.toLowerCase(), Fr = te.getContentEditable(Gt);
10302
- je(Fr) && (Yn = Se, Se = Fr === "true", rn = !0, Zn = i0(e, Gt));
10303
+ je(Fr) && (Yn = Se, Se = Fr === "true", rn = !0, jn = i0(e, Gt));
10303
10304
  const $l = Se && !rn;
10304
10305
  if (ls(Gt) && !GI(e, u, Gt, Os)) {
10305
10306
  He = null, hd(u) && te.remove(Gt);
@@ -10321,7 +10322,7 @@ Required: ` + n.join(", "));
10321
10322
  return;
10322
10323
  }
10323
10324
  }
10324
- je(Me) && It(Gt, Os, $l, Zn) ? (He || (He = te.clone(Me, !1), fs.insertBefore(He, Gt), ye.push(He)), Zn && rn && (Se = Yn), He.appendChild(Gt)) : (He = null, _e(wr(Gt.childNodes), st), rn && (Se = Yn), He = null);
10325
+ je(Me) && It(Gt, Os, $l, jn) ? (He || (He = te.clone(Me, !1), fs.insertBefore(He, Gt), ye.push(He)), jn && rn && (Se = Yn), He.appendChild(Gt)) : (He = null, _e(wr(Gt.childNodes), st), rn && (Se = Yn), He = null);
10325
10326
  };
10326
10327
  _e(Ue, st);
10327
10328
  }), u.links === !0 && _e(ye, (Ue) => {
@@ -10332,12 +10333,12 @@ Required: ` + n.join(", "));
10332
10333
  }), _e(ye, (Ue) => {
10333
10334
  const He = (rn) => {
10334
10335
  let Yn = 0;
10335
- return _e(rn.childNodes, (Zn) => {
10336
- !du(Zn) && !Oi(Zn) && Yn++;
10336
+ return _e(rn.childNodes, (jn) => {
10337
+ !du(jn) && !Oi(jn) && Yn++;
10337
10338
  }), Yn;
10338
- }, st = (rn) => hs(rn.childNodes, j2).filter((Zn) => te.getContentEditable(Zn) !== "false" && Rw(te, Zn, u)).map((Zn) => {
10339
- const fs = te.clone(Zn, !1);
10340
- return k(fs), te.replace(fs, rn, !0), te.remove(Zn, !0), fs;
10339
+ }, st = (rn) => hs(rn.childNodes, j2).filter((jn) => te.getContentEditable(jn) !== "false" && Rw(te, jn, u)).map((jn) => {
10340
+ const fs = te.clone(jn, !1);
10341
+ return k(fs), te.replace(fs, rn, !0), te.remove(jn, !0), fs;
10341
10342
  }).getOr(rn), Gt = He(Ue);
10342
10343
  if ((ye.length > 1 || !te.isBlock(Ue)) && Gt === 0) {
10343
10344
  te.remove(Ue, !0);
@@ -10373,7 +10374,7 @@ Required: ` + n.join(", "));
10373
10374
  Dl(e, n, r, o);
10374
10375
  }, b$ = (e, n, o, r) => {
10375
10376
  (r || e.selection.isEditable()) && p$(e, n, o, r);
10376
- }, B0 = (e) => gn(e, "vars"), qI = (e, n) => {
10377
+ }, B0 = (e) => hn(e, "vars"), qI = (e, n) => {
10377
10378
  e.set({}), n.on("NodeChange", (o) => {
10378
10379
  T3(n, o.element, e.get());
10379
10380
  }), n.on("FormatApply FormatRemove", (o) => {
@@ -10466,7 +10467,7 @@ Required: ` + n.join(", "));
10466
10467
  return {
10467
10468
  addFilter: (l, u) => {
10468
10469
  _e(x$(l), (f) => {
10469
- gn(e, f) || (e[f] = {
10470
+ hn(e, f) || (e[f] = {
10470
10471
  name: f,
10471
10472
  callbacks: []
10472
10473
  }), e[f].callbacks.push(u);
@@ -10475,7 +10476,7 @@ Required: ` + n.join(", "));
10475
10476
  getFilters: () => bl(e),
10476
10477
  removeFilter: (l, u) => {
10477
10478
  _e(x$(l), (f) => {
10478
- if (gn(e, f))
10479
+ if (hn(e, f))
10479
10480
  if (je(u)) {
10480
10481
  const b = e[f], y = Ft(b.callbacks, (k) => k !== u);
10481
10482
  y.length > 0 ? b.callbacks = y : delete e[f];
@@ -11397,7 +11398,7 @@ Required: ` + n.join(", "));
11397
11398
  const { implementation: rt, createNodeIterator: wt, createDocumentFragment: It, getElementsByTagName: Ue } = l, { importNode: He } = o;
11398
11399
  let st = {};
11399
11400
  n.isSupported = typeof ka == "function" && typeof Se == "function" && rt && rt.createHTMLDocument !== void 0;
11400
- const { MUSTACHE_EXPR: Gt, ERB_EXPR: rn, TMPLIT_EXPR: Yn, DATA_ATTR: Zn, ARIA_ATTR: fs, IS_SCRIPT_OR_DATA: Os, ATTR_WHITESPACE: Fr } = Kv;
11401
+ const { MUSTACHE_EXPR: Gt, ERB_EXPR: rn, TMPLIT_EXPR: Yn, DATA_ATTR: jn, ARIA_ATTR: fs, IS_SCRIPT_OR_DATA: Os, ATTR_WHITESPACE: Fr } = Kv;
11401
11402
  let { IS_ALLOWED_URI: $l } = Kv, is = null;
11402
11403
  const kt = ms({}, [
11403
11404
  ...$3,
@@ -11407,7 +11408,7 @@ Required: ` + n.join(", "));
11407
11408
  ...$$
11408
11409
  ]);
11409
11410
  let en = null;
11410
- const jn = ms({}, [
11411
+ const Gn = ms({}, [
11411
11412
  ...B3,
11412
11413
  ...N3,
11413
11414
  ...M$,
@@ -11504,7 +11505,7 @@ Required: ` + n.join(", "));
11504
11505
  return Ve instanceof RegExp || Ve instanceof Function;
11505
11506
  }, Ux = function(Ve) {
11506
11507
  if (!(h1 && h1 === Ve)) {
11507
- if ((!Ve || typeof Ve != "object") && (Ve = {}), Ve = qv(Ve), yg = pT.indexOf(Ve.PARSER_MEDIA_TYPE) === -1 ? yg = Vx : yg = Ve.PARSER_MEDIA_TYPE, nc = yg === "application/xhtml+xml" ? b_ : xh, is = "ALLOWED_TAGS" in Ve ? ms({}, Ve.ALLOWED_TAGS, nc) : kt, en = "ALLOWED_ATTR" in Ve ? ms({}, Ve.ALLOWED_ATTR, nc) : jn, Cy = "ALLOWED_NAMESPACES" in Ve ? ms({}, Ve.ALLOWED_NAMESPACES, b_) : hT, xy = "ADD_URI_SAFE_ATTR" in Ve ? ms(qv(Fx), Ve.ADD_URI_SAFE_ATTR, nc) : Fx, nb = "ADD_DATA_URI_TAGS" in Ve ? ms(qv(wy), Ve.ADD_DATA_URI_TAGS, nc) : wy, g1 = "FORBID_CONTENTS" in Ve ? ms({}, Ve.FORBID_CONTENTS, nc) : Lx, Yt = "FORBID_TAGS" in Ve ? ms({}, Ve.FORBID_TAGS, nc) : {}, Rn = "FORBID_ATTR" in Ve ? ms({}, Ve.FORBID_ATTR, nc) : {}, pf = "USE_PROFILES" in Ve ? Ve.USE_PROFILES : !1, Ct = Ve.ALLOW_ARIA_ATTR !== !1, $n = Ve.ALLOW_DATA_ATTR !== !1, So = Ve.ALLOW_UNKNOWN_PROTOCOLS || !1, Ss = Ve.ALLOW_SELF_CLOSE_IN_ATTR !== !1, gs = Ve.SAFE_FOR_TEMPLATES || !1, Fa = Ve.WHOLE_DOCUMENT || !1, ii = Ve.RETURN_DOM || !1, _d = Ve.RETURN_DOM_FRAGMENT || !1, In = Ve.RETURN_TRUSTED_TYPE || !1, bg = Ve.FORCE_BODY || !1, Mo = Ve.SANITIZE_DOM !== !1, Rs = Ve.SANITIZE_NAMED_PROPS || !1, ir = Ve.KEEP_CONTENT !== !1, Vi = Ve.IN_PLACE || !1, $l = Ve.ALLOWED_URI_REGEXP || F$, vg = Ve.NAMESPACE || hm, so = Ve.CUSTOM_ELEMENT_HANDLING || {}, Ve.CUSTOM_ELEMENT_HANDLING && zx(Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (so.tagNameCheck = Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Ve.CUSTOM_ELEMENT_HANDLING && zx(Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (so.attributeNameCheck = Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Ve.CUSTOM_ELEMENT_HANDLING && typeof Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (so.allowCustomizedBuiltInElements = Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), gs && ($n = !1), _d && (ii = !0), pf && (is = ms({}, [...$$]), en = [], pf.html === !0 && (ms(is, $3), ms(en, B3)), pf.svg === !0 && (ms(is, M3), ms(en, N3), ms(en, Lw)), pf.svgFilters === !0 && (ms(is, N0), ms(en, N3), ms(en, Lw)), pf.mathMl === !0 && (ms(is, P3), ms(en, M$), ms(en, Lw))), Ve.ADD_TAGS && (is === kt && (is = qv(is)), ms(is, Ve.ADD_TAGS, nc)), Ve.ADD_ATTR && (en === jn && (en = qv(en)), ms(en, Ve.ADD_ATTR, nc)), Ve.ADD_URI_SAFE_ATTR && ms(xy, Ve.ADD_URI_SAFE_ATTR, nc), Ve.FORBID_CONTENTS && (g1 === Lx && (g1 = qv(g1)), ms(g1, Ve.FORBID_CONTENTS, nc)), ir && (is["#text"] = !0), Fa && ms(is, [
11508
+ if ((!Ve || typeof Ve != "object") && (Ve = {}), Ve = qv(Ve), yg = pT.indexOf(Ve.PARSER_MEDIA_TYPE) === -1 ? yg = Vx : yg = Ve.PARSER_MEDIA_TYPE, nc = yg === "application/xhtml+xml" ? b_ : xh, is = "ALLOWED_TAGS" in Ve ? ms({}, Ve.ALLOWED_TAGS, nc) : kt, en = "ALLOWED_ATTR" in Ve ? ms({}, Ve.ALLOWED_ATTR, nc) : Gn, Cy = "ALLOWED_NAMESPACES" in Ve ? ms({}, Ve.ALLOWED_NAMESPACES, b_) : hT, xy = "ADD_URI_SAFE_ATTR" in Ve ? ms(qv(Fx), Ve.ADD_URI_SAFE_ATTR, nc) : Fx, nb = "ADD_DATA_URI_TAGS" in Ve ? ms(qv(wy), Ve.ADD_DATA_URI_TAGS, nc) : wy, g1 = "FORBID_CONTENTS" in Ve ? ms({}, Ve.FORBID_CONTENTS, nc) : Lx, Yt = "FORBID_TAGS" in Ve ? ms({}, Ve.FORBID_TAGS, nc) : {}, Rn = "FORBID_ATTR" in Ve ? ms({}, Ve.FORBID_ATTR, nc) : {}, pf = "USE_PROFILES" in Ve ? Ve.USE_PROFILES : !1, Ct = Ve.ALLOW_ARIA_ATTR !== !1, $n = Ve.ALLOW_DATA_ATTR !== !1, So = Ve.ALLOW_UNKNOWN_PROTOCOLS || !1, Ss = Ve.ALLOW_SELF_CLOSE_IN_ATTR !== !1, gs = Ve.SAFE_FOR_TEMPLATES || !1, Fa = Ve.WHOLE_DOCUMENT || !1, ii = Ve.RETURN_DOM || !1, _d = Ve.RETURN_DOM_FRAGMENT || !1, In = Ve.RETURN_TRUSTED_TYPE || !1, bg = Ve.FORCE_BODY || !1, Mo = Ve.SANITIZE_DOM !== !1, Rs = Ve.SANITIZE_NAMED_PROPS || !1, ir = Ve.KEEP_CONTENT !== !1, Vi = Ve.IN_PLACE || !1, $l = Ve.ALLOWED_URI_REGEXP || F$, vg = Ve.NAMESPACE || hm, so = Ve.CUSTOM_ELEMENT_HANDLING || {}, Ve.CUSTOM_ELEMENT_HANDLING && zx(Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (so.tagNameCheck = Ve.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Ve.CUSTOM_ELEMENT_HANDLING && zx(Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (so.attributeNameCheck = Ve.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Ve.CUSTOM_ELEMENT_HANDLING && typeof Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (so.allowCustomizedBuiltInElements = Ve.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), gs && ($n = !1), _d && (ii = !0), pf && (is = ms({}, [...$$]), en = [], pf.html === !0 && (ms(is, $3), ms(en, B3)), pf.svg === !0 && (ms(is, M3), ms(en, N3), ms(en, Lw)), pf.svgFilters === !0 && (ms(is, N0), ms(en, N3), ms(en, Lw)), pf.mathMl === !0 && (ms(is, P3), ms(en, M$), ms(en, Lw))), Ve.ADD_TAGS && (is === kt && (is = qv(is)), ms(is, Ve.ADD_TAGS, nc)), Ve.ADD_ATTR && (en === Gn && (en = qv(en)), ms(en, Ve.ADD_ATTR, nc)), Ve.ADD_URI_SAFE_ATTR && ms(xy, Ve.ADD_URI_SAFE_ATTR, nc), Ve.FORBID_CONTENTS && (g1 === Lx && (g1 = qv(g1)), ms(g1, Ve.FORBID_CONTENTS, nc)), ir && (is["#text"] = !0), Fa && ms(is, [
11508
11509
  "html",
11509
11510
  "head",
11510
11511
  "body"
@@ -11638,7 +11639,7 @@ Required: ` + n.join(", "));
11638
11639
  }, bT = function(Ve, Qt, Sn) {
11639
11640
  if (Mo && (Qt === "id" || Qt === "name") && (Sn in l || Sn in GO))
11640
11641
  return !1;
11641
- if (!($n && !Rn[Qt] && vd(Zn, Qt))) {
11642
+ if (!($n && !Rn[Qt] && vd(jn, Qt))) {
11642
11643
  if (!(Ct && vd(fs, Qt))) {
11643
11644
  if (!en[Qt] || Rn[Qt]) {
11644
11645
  if (!(KO(Ve) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Ve) || so.tagNameCheck instanceof Function && so.tagNameCheck(Ve)) && (so.attributeNameCheck instanceof RegExp && vd(so.attributeNameCheck, Qt) || so.attributeNameCheck instanceof Function && so.attributeNameCheck(Qt)) || Qt === "is" && so.allowCustomizedBuiltInElements && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Sn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Sn)))) return !1;
@@ -11959,7 +11960,7 @@ Required: ` + n.join(", "));
11959
11960
  }
11960
11961
  const q = o.getElementRule(B);
11961
11962
  if (k && !q) {
11962
- gn(M, B) ? wo(F) : ll(F);
11963
+ hn(M, B) ? wo(F) : ll(F);
11963
11964
  return;
11964
11965
  } else
11965
11966
  je(l) && (l.allowedTags[B] = !0);
@@ -12129,12 +12130,12 @@ Required: ` + n.join(", "));
12129
12130
  sanitize: !0,
12130
12131
  ...e
12131
12132
  }, u = new DOMParser(), f = wL(l, n), b = (Ce, Me, rt = "html") => {
12132
- const wt = rt === "xhtml" ? "application/xhtml+xml" : "text/html", It = gn(n.getSpecialElements(), Me.toLowerCase()), Ue = It ? `<${Me}>${Ce}</${Me}>` : Ce, He = rt === "xhtml" ? `<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${Ue}</body></html>` : `<body>${Ue}</body>`, st = u.parseFromString(He, wt).body;
12133
+ const wt = rt === "xhtml" ? "application/xhtml+xml" : "text/html", It = hn(n.getSpecialElements(), Me.toLowerCase()), Ue = It ? `<${Me}>${Ce}</${Me}>` : Ce, He = rt === "xhtml" ? `<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${Ue}</body></html>` : `<body>${Ue}</body>`, st = u.parseFromString(He, wt).body;
12133
12134
  return f.sanitizeHtmlElement(st, wt), It ? st.firstChild : st;
12134
12135
  }, y = o.addFilter, k = o.getFilters, M = o.removeFilter, B = r.addFilter, F = r.getFilters, J = r.removeFilter, te = (Ce, Me) => {
12135
12136
  QS(n, Ce) && Me.push(Ce);
12136
12137
  }, q = (Ce, Me) => {
12137
- const rt = me(Me.attr(H3)), wt = Me.type === 1 && !gn(Ce, Me.name) && !Nm(n, Me) && !rd(Me.name);
12138
+ const rt = me(Me.attr(H3)), wt = Me.type === 1 && !hn(Ce, Me.name) && !Nm(n, Me) && !rd(Me.name);
12138
12139
  return Me.type === 3 || wt && !rt;
12139
12140
  }, ne = (Ce, Me) => {
12140
12141
  const rt = Y$(K$("script,style,head,html,body,title,meta,param"), n.getBlockElements()), wt = /^[ \t\r\n]+/, It = /[ \t\r\n]+$/;
@@ -12164,10 +12165,10 @@ Required: ` + n.join(", "));
12164
12165
  T1(n, Ue);
12165
12166
  const He = new Bc(It, 11);
12166
12167
  Vw(He, Ue, n.getSpecialElements(), f.sanitizeNamespaceElement), Ue.innerHTML = "";
12167
- const [st, Gt] = xL(He, n, l, Me), rn = [], Yn = wt ? (Fr) => te(Fr, rn) : Ge, Zn = {
12168
+ const [st, Gt] = xL(He, n, l, Me), rn = [], Yn = wt ? (Fr) => te(Fr, rn) : Ge, jn = {
12168
12169
  nodes: {},
12169
12170
  attributes: {}
12170
- }, fs = (Fr) => G4(k(), F(), Fr, Zn);
12171
+ }, fs = (Fr) => G4(k(), F(), Fr, jn);
12171
12172
  if (Ic(He, [
12172
12173
  st,
12173
12174
  fs
@@ -12184,7 +12185,7 @@ Required: ` + n.join(", "));
12184
12185
  } else
12185
12186
  JS(rn, n, He, fs);
12186
12187
  const Os = x_(l, Me);
12187
- return Os && (He.name === "body" || Me.isRootContent) && ne(He, Os), Me.invalid || q4(Zn, Me), He;
12188
+ return Os && (He.name === "body" || Me.isRootContent) && ne(He, Os), Me.invalid || q4(jn, Me), He;
12188
12189
  }
12189
12190
  };
12190
12191
  return A$(Se, l), E3(Se, l, n), Se;
@@ -12675,7 +12676,7 @@ Required: ` + n.join(", "));
12675
12676
  },
12676
12677
  raw: { getModel: et(z.none()) }
12677
12678
  };
12678
- }, Ch = (e) => gn(e.plugins, "rtc"), qL = (e) => Yo(e.plugins, "rtc").bind((n) => z.from(n.setup)), KL = (e) => {
12679
+ }, Ch = (e) => hn(e.plugins, "rtc"), qL = (e) => Yo(e.plugins, "rtc").bind((n) => z.from(n.setup)), KL = (e) => {
12679
12680
  const n = e;
12680
12681
  return qL(e).fold(() => (n.rtcInstance = gM(e), z.none()), (o) => (n.rtcInstance = aA(), z.some(() => o().then((r) => (n.rtcInstance = Lr(r), r.rtc.isRemote)))));
12681
12682
  }, Xp = (e) => e.rtcInstance ? e.rtcInstance : gM(e), La = (e) => {
@@ -12740,7 +12741,7 @@ Required: ` + n.join(", "));
12740
12741
  fF(f, f.createContextualFragment(u), e.schema), e.selection.setRng(f), _0(e, f), C_(e, u, l);
12741
12742
  });
12742
12743
  }, CM = (e, n, o) => {
12743
- if (gn(e, n)) {
12744
+ if (hn(e, n)) {
12744
12745
  const r = Ft(e[n], (l) => l !== o);
12745
12746
  r.length === 0 ? delete e[n] : e[n] = r;
12746
12747
  }
@@ -12784,14 +12785,14 @@ Required: ` + n.join(", "));
12784
12785
  const dA = (e) => !!(e && e.ownerDocument) && Ba(le.fromDom(e.ownerDocument), le.fromDom(e)), pF = (e) => e ? dA(e.startContainer) && dA(e.endContainer) : !1, Jp = (e, n, o, r) => {
12785
12786
  let l, u;
12786
12787
  const { selectorChangedWithUnbind: f } = SM(e, r), b = (kt, en) => {
12787
- const jn = e.createRng();
12788
- je(kt) && je(en) ? (jn.setStart(kt, en), jn.setEnd(kt, en), Me(jn), ye(!1)) : (Z2(e, jn, r.getBody(), !0), Me(jn));
12788
+ const Gn = e.createRng();
12789
+ je(kt) && je(en) ? (Gn.setStart(kt, en), Gn.setEnd(kt, en), Me(Gn), ye(!1)) : (Z2(e, Gn, r.getBody(), !0), Me(Gn));
12789
12790
  }, y = (kt) => uF(r, kt), k = (kt, en) => hF(r, kt, en), M = (kt) => b4(r.getBody(), Ce(), kt), B = (kt) => M5(r.getBody(), Ce(), kt), F = (kt, en) => $l.getBookmark(kt, en), J = (kt) => $l.moveToBookmark(kt), te = (kt, en) => (f7(e, kt, en).each(Me), kt), q = () => {
12790
12791
  const kt = Ce(), en = Se();
12791
12792
  return !kt || kt.item ? !1 : kt.compareEndPoints ? kt.compareEndPoints("StartToEnd", kt) === 0 : !en || kt.collapsed;
12792
12793
  }, ne = () => {
12793
12794
  const kt = Ce(), en = r.getBody().querySelectorAll('[data-mce-selected="1"]');
12794
- return en.length > 0 ? Qs(en, (jn) => e.isEditable(jn.parentElement)) : R5(e, kt);
12795
+ return en.length > 0 ? Qs(en, (Gn) => e.isEditable(Gn.parentElement)) : R5(e, kt);
12795
12796
  }, ye = (kt) => {
12796
12797
  const en = Ce();
12797
12798
  en.collapse(!!kt), Me(en);
@@ -12803,18 +12804,18 @@ Required: ` + n.join(", "));
12803
12804
  } catch {
12804
12805
  return -1;
12805
12806
  }
12806
- }, jn = n.document;
12807
+ }, Gn = n.document;
12807
12808
  if (je(r.bookmark) && !Wp(r)) {
12808
12809
  const so = f4(r);
12809
12810
  if (so.isSome())
12810
- return so.map((Yt) => y4(r, [Yt])[0]).getOr(jn.createRange());
12811
+ return so.map((Yt) => y4(r, [Yt])[0]).getOr(Gn.createRange());
12811
12812
  }
12812
12813
  try {
12813
12814
  const so = Se();
12814
- so && !_u(so.anchorNode) && (so.rangeCount > 0 ? kt = so.getRangeAt(0) : kt = jn.createRange(), kt = y4(r, [kt])[0]);
12815
+ so && !_u(so.anchorNode) && (so.rangeCount > 0 ? kt = so.getRangeAt(0) : kt = Gn.createRange(), kt = y4(r, [kt])[0]);
12815
12816
  } catch {
12816
12817
  }
12817
- if (kt || (kt = jn.createRange()), Vg(kt.startContainer) && kt.collapsed) {
12818
+ if (kt || (kt = Gn.createRange()), Vg(kt.startContainer) && kt.collapsed) {
12818
12819
  const so = e.getRoot();
12819
12820
  kt.setStart(so, 0), kt.setEnd(so, 0);
12820
12821
  }
@@ -12822,33 +12823,33 @@ Required: ` + n.join(", "));
12822
12823
  }, Me = (kt, en) => {
12823
12824
  if (!pF(kt))
12824
12825
  return;
12825
- const jn = Se();
12826
+ const Gn = Se();
12826
12827
  if (kt = r.dispatch("SetSelectionRange", {
12827
12828
  range: kt,
12828
12829
  forward: en
12829
- }).range, jn) {
12830
+ }).range, Gn) {
12830
12831
  u = kt;
12831
12832
  try {
12832
- jn.removeAllRanges(), jn.addRange(kt);
12833
+ Gn.removeAllRanges(), Gn.addRange(kt);
12833
12834
  } catch {
12834
12835
  }
12835
- en === !1 && jn.extend && (jn.collapse(kt.endContainer, kt.endOffset), jn.extend(kt.startContainer, kt.startOffset)), l = jn.rangeCount > 0 ? jn.getRangeAt(0) : null;
12836
+ en === !1 && Gn.extend && (Gn.collapse(kt.endContainer, kt.endOffset), Gn.extend(kt.startContainer, kt.startOffset)), l = Gn.rangeCount > 0 ? Gn.getRangeAt(0) : null;
12836
12837
  }
12837
- if (!kt.collapsed && kt.startContainer === kt.endContainer && (jn != null && jn.setBaseAndExtent) && kt.endOffset - kt.startOffset < 2 && kt.startContainer.hasChildNodes()) {
12838
+ if (!kt.collapsed && kt.startContainer === kt.endContainer && (Gn != null && Gn.setBaseAndExtent) && kt.endOffset - kt.startOffset < 2 && kt.startContainer.hasChildNodes()) {
12838
12839
  const Yt = kt.startContainer.childNodes[kt.startOffset];
12839
- Yt && Yt.nodeName === "IMG" && (jn.setBaseAndExtent(kt.startContainer, kt.startOffset, kt.endContainer, kt.endOffset), (jn.anchorNode !== kt.startContainer || jn.focusNode !== kt.endContainer) && jn.setBaseAndExtent(Yt, 0, Yt, 1));
12840
+ Yt && Yt.nodeName === "IMG" && (Gn.setBaseAndExtent(kt.startContainer, kt.startOffset, kt.endContainer, kt.endOffset), (Gn.anchorNode !== kt.startContainer || Gn.focusNode !== kt.endContainer) && Gn.setBaseAndExtent(Yt, 0, Yt, 1));
12840
12841
  }
12841
12842
  r.dispatch("AfterSetSelectionRange", {
12842
12843
  range: kt,
12843
12844
  forward: en
12844
12845
  });
12845
12846
  }, rt = (kt) => (k(e.getOuterHTML(kt)), kt), wt = () => P5(r.getBody(), Ce()), It = (kt, en) => m7(e, Ce(), kt, en), Ue = () => {
12846
- const kt = Se(), en = kt == null ? void 0 : kt.anchorNode, jn = kt == null ? void 0 : kt.focusNode;
12847
- if (!kt || !en || !jn || _u(en) || _u(jn))
12847
+ const kt = Se(), en = kt == null ? void 0 : kt.anchorNode, Gn = kt == null ? void 0 : kt.focusNode;
12848
+ if (!kt || !en || !Gn || _u(en) || _u(Gn))
12848
12849
  return !0;
12849
12850
  const so = e.createRng(), Yt = e.createRng();
12850
12851
  try {
12851
- so.setStart(en, kt.anchorOffset), so.collapse(!0), Yt.setStart(jn, kt.focusOffset), Yt.collapse(!0);
12852
+ so.setStart(en, kt.anchorOffset), so.collapse(!0), Yt.setStart(Gn, kt.focusOffset), Yt.collapse(!0);
12852
12853
  } catch {
12853
12854
  return !0;
12854
12855
  }
@@ -12880,10 +12881,10 @@ Required: ` + n.join(", "));
12880
12881
  normalize: () => {
12881
12882
  const kt = Ce(), en = Se();
12882
12883
  if (!uh(en) && mv(r)) {
12883
- const jn = _(e, kt);
12884
- return jn.each((so) => {
12884
+ const Gn = _(e, kt);
12885
+ return Gn.each((so) => {
12885
12886
  Me(so, Ue());
12886
- }), jn.getOr(kt);
12887
+ }), Gn.getOr(kt);
12887
12888
  }
12888
12889
  return kt;
12889
12890
  },
@@ -13105,13 +13106,13 @@ Required: ` + n.join(", "));
13105
13106
  },
13106
13107
  { name: "rtc" }
13107
13108
  ], MM = (e, n) => {
13108
- const o = Ft(n, (r) => gn(e, r));
13109
+ const o = Ft(n, (r) => hn(e, r));
13109
13110
  return qo(o);
13110
13111
  }, Gj = (e) => {
13111
13112
  const n = MM(e, RM), o = e.forced_root_block;
13112
13113
  return (o === !1 || o === "") && n.push("forced_root_block (false only)"), qo(n);
13113
13114
  }, lf = (e) => MM(e, kF), M_ = (e, n) => {
13114
- const o = ct.makeMap(e.plugins, " "), l = Ft(n, (u) => gn(o, u));
13115
+ const o = ct.makeMap(e.plugins, " "), l = Ft(n, (u) => hn(o, u));
13115
13116
  return qo(l);
13116
13117
  }, EF = (e) => M_(e, TF), AF = (e) => M_(e, $M.map((n) => n.name)), DF = (e, n) => {
13117
13118
  const o = Gj(e), r = EF(n), l = r.length > 0, u = o.length > 0, f = n.theme === "mobile";
@@ -13173,7 +13174,7 @@ Options:${f}${o.join(f)}` : "";
13173
13174
  e[l] = u;
13174
13175
  },
13175
13176
  get: (l) => e[l] ? e[l] : { icons: {} },
13176
- has: (l) => gn(e, l)
13177
+ has: (l) => hn(e, l)
13177
13178
  };
13178
13179
  })(), xd = ql.ModelManager, Bi = (e, n) => n.dom[e], Xv = (e, n) => parseInt(mr(n, e), 10), Qp = ot(Bi, "clientWidth"), ug = ot(Bi, "clientHeight"), Kw = ot(Xv, "margin-top"), fA = ot(Xv, "margin-left"), gA = (e) => e.dom.getBoundingClientRect(), PM = (e, n, o) => {
13179
13180
  const r = Qp(e), l = ug(e);
@@ -13346,7 +13347,7 @@ Options:${f}${o.join(f)}` : "";
13346
13347
  return y.hasAttribute("data-mce-bogus") || y.hasAttribute("data-mce-placeholder") || !k || k === Bt.transparentSrc ? !1 : ks(k, "blob:") ? !e.isUploaded(k) && u(y) : ks(k, "data:") ? u(y) : !1;
13347
13348
  }), b = Ke(f, (y) => {
13348
13349
  const k = y.src;
13349
- if (gn(o, k))
13350
+ if (hn(o, k))
13350
13351
  return o[k].then((M) => me(M) ? M : {
13351
13352
  image: y,
13352
13353
  blobInfo: M.blobInfo
@@ -13994,7 +13995,7 @@ Options:${f}${o.join(f)}` : "";
13994
13995
  ...lm
13995
13996
  }
13996
13997
  }, L_ = et(L0), F_ = (e) => {
13997
- const n = {}, o = (f) => je(f) ? n[f] : n, r = (f) => gn(n, f), l = (f, b) => {
13998
+ const n = {}, o = (f) => je(f) ? n[f] : n, r = (f) => hn(n, f), l = (f, b) => {
13998
13999
  f && (me(f) ? (Qn(b) || (b = [b]), _e(b, (y) => {
13999
14000
  os(y.deep) && (y.deep = !gl(y)), os(y.split) && (y.split = !gl(y) || Yr(y)), os(y.remove) && gl(y) && !Yr(y) && (y.remove = "none"), gl(y) && Yr(y) && (y.mixed = !0, y.block_expand = !0), me(y.classes) && (y.classes = y.classes.split(/\s+/));
14000
14001
  }), n[f] = b) : bt(f, (y, k) => {
@@ -14963,7 +14964,7 @@ Options:${f}${o.join(f)}` : "";
14963
14964
  });
14964
14965
  });
14965
14966
  }, !0);
14966
- }, ak = (e, n) => gn(e, n.nodeName), KP = (e, n) => ut(n) ? !0 : jt(n) ? !ak(e.getBlockElements(), n) && !Oi(n) && !ho(e, n) && !Dy(n) : !1, xH = (e, n, o) => At(S4(le.fromDom(o), le.fromDom(n)), (r) => ak(e, r.dom)), CH = (e, n) => {
14967
+ }, ak = (e, n) => hn(e, n.nodeName), KP = (e, n) => ut(n) ? !0 : jt(n) ? !ak(e.getBlockElements(), n) && !Oi(n) && !ho(e, n) && !Dy(n) : !1, xH = (e, n, o) => At(S4(le.fromDom(o), le.fromDom(n)), (r) => ak(e, r.dom)), CH = (e, n) => {
14967
14968
  if (ut(n)) {
14968
14969
  if (n.data.length === 0)
14969
14970
  return !0;
@@ -15517,7 +15518,7 @@ Options:${f}${o.join(f)}` : "";
15517
15518
  for (let r = 0; r < n.length; r++) {
15518
15519
  const l = n[r];
15519
15520
  for (const u in l)
15520
- gn(l, u) && (o[u] = e(o[u], l[u]));
15521
+ hn(l, u) && (o[u] = e(o[u], l[u]));
15521
15522
  }
15522
15523
  return o;
15523
15524
  }, vx = $B(RB), MB = $B(pV), PB = () => ({
@@ -16077,7 +16078,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
16077
16078
  r = l;
16078
16079
  }
16079
16080
  return !1;
16080
- }, oz = (e, n, o) => !n && o.nodeName.toLowerCase() === Yl(e) && e.dom.isEmpty(o) && nz(e.getBody(), o, (r) => gn(e.schema.getTextBlockElements(), r.nodeName.toLowerCase())), sz = (e, n, o) => {
16081
+ }, oz = (e, n, o) => !n && o.nodeName.toLowerCase() === Yl(e) && e.dom.isEmpty(o) && nz(e.getBody(), o, (r) => hn(e.schema.getTextBlockElements(), r.nodeName.toLowerCase())), sz = (e, n, o) => {
16081
16082
  var r, l, u;
16082
16083
  const f = n(Yl(e)), b = uN(e, o);
16083
16084
  b && (e.dom.insertAfter(f, b), tr(e, f), ((u = (l = (r = o.parentElement) === null || r === void 0 ? void 0 : r.childNodes) === null || l === void 0 ? void 0 : l.length) !== null && u !== void 0 ? u : 0) > 1 && e.dom.remove(o));
@@ -16205,8 +16206,8 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
16205
16206
  for (; Yn = rn.current(); ) {
16206
16207
  if (jt(Yn)) {
16207
16208
  if (!Yn.getAttribute("data-mce-bogus")) {
16208
- const Zn = Yn.nodeName.toLowerCase();
16209
- if (k[Zn] && Zn !== "br")
16209
+ const jn = Yn.nodeName.toLowerCase();
16210
+ if (k[jn] && jn !== "br")
16210
16211
  return !1;
16211
16212
  }
16212
16213
  } else if (ut(Yn) && !Af(Yn.data))
@@ -17024,7 +17025,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
17024
17025
  const l = e.getParent(o, (f) => ho(n, f));
17025
17026
  if (!oe(e.getParent(o, "summary")))
17026
17027
  return !0;
17027
- if (l && gn(r, "text/html")) {
17028
+ if (l && hn(r, "text/html")) {
17028
17029
  const f = new DOMParser().parseFromString(r["text/html"], "text/html").body;
17029
17030
  return !oe(f.querySelector(l.nodeName.toLowerCase()));
17030
17031
  } else
@@ -17533,11 +17534,11 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
17533
17534
  }), fW(e), D6(e), gW(e);
17534
17535
  }, te = (It) => on(It) || Gl(It) || Xc(It), q = (It) => te(It.startContainer) || te(It.endContainer), ne = (It) => {
17535
17536
  const Ue = e.schema.getVoidElements(), He = o.createRng(), st = It.startContainer, Gt = It.startOffset, rn = It.endContainer, Yn = It.endOffset;
17536
- return gn(Ue, st.nodeName.toLowerCase()) ? Gt === 0 ? He.setStartBefore(st) : He.setStartAfter(st) : He.setStart(st, Gt), gn(Ue, rn.nodeName.toLowerCase()) ? Yn === 0 ? He.setEndBefore(rn) : He.setEndAfter(rn) : He.setEnd(rn, Yn), He;
17537
+ return hn(Ue, st.nodeName.toLowerCase()) ? Gt === 0 ? He.setStartBefore(st) : He.setStartAfter(st) : He.setStart(st, Gt), hn(Ue, rn.nodeName.toLowerCase()) ? Yn === 0 ? He.setEndBefore(rn) : He.setEndAfter(rn) : He.setEnd(rn, Yn), He;
17537
17538
  }, ye = (It, Ue) => {
17538
17539
  const He = le.fromDom(e.getBody()), st = e.getDoc(), Gt = al(He, "#" + u).getOrThunk(() => {
17539
- const Zn = le.fromHtml('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>', st);
17540
- return ws(Zn, "id", u), Sr(He, Zn), Zn;
17540
+ const jn = le.fromHtml('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>', st);
17541
+ return ws(jn, "id", u), Sr(He, jn), jn;
17541
17542
  }), rn = o.createRng();
17542
17543
  qc(Gt), Zo(Gt, [
17543
17544
  le.fromText(Oo, st),
@@ -17562,13 +17563,13 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
17562
17563
  return null;
17563
17564
  if (It.collapsed) {
17564
17565
  if (!q(It)) {
17565
- const rn = Ue ? 1 : -1, Yn = Gf(rn, r, It), Zn = Yn.getNode(!Ue);
17566
- if (je(Zn)) {
17567
- if (_p(Zn))
17568
- return B(rn, Zn, Ue ? !Yn.isAtEnd() : !1, !1);
17569
- if (Ot(Zn) && io(Zn.nextSibling)) {
17566
+ const rn = Ue ? 1 : -1, Yn = Gf(rn, r, It), jn = Yn.getNode(!Ue);
17567
+ if (je(jn)) {
17568
+ if (_p(jn))
17569
+ return B(rn, jn, Ue ? !Yn.isAtEnd() : !1, !1);
17570
+ if (Ot(jn) && io(jn.nextSibling)) {
17570
17571
  const Os = o.createRng();
17571
- return Os.setStart(Zn, 0), Os.setEnd(Zn, 0), Os;
17572
+ return Os.setStart(jn, 0), Os.setEnd(jn, 0), Os;
17572
17573
  }
17573
17574
  }
17574
17575
  const fs = Yn.getNode(Ue);
@@ -17674,7 +17675,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
17674
17675
  }, Kk = (e, n) => {
17675
17676
  const o = e.dom, r = n.pattern, l = bW(o.getRoot(), n.range).getOrDie("Unable to resolve path range"), u = (f, b) => {
17676
17677
  const y = b.get(f);
17677
- return Qn(y) && Jn(y).exists((k) => gn(k, "block"));
17678
+ return Qn(y) && Jn(y).exists((k) => hn(k, "block"));
17678
17679
  };
17679
17680
  return Rx(e, l).each((f) => {
17680
17681
  r.type === "block-format" ? u(r.format, e.formatter) && e.undoManager.transact(() => {
@@ -18057,7 +18058,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
18057
18058
  e.inline || e.on("keydown", () => {
18058
18059
  document.activeElement === document.body && e.getWin().focus();
18059
18060
  });
18060
- }, Zn = () => {
18061
+ }, jn = () => {
18061
18062
  e.inline || (e.contentStyles.push("body {min-height: 150px}"), e.on("click", (Yt) => {
18062
18063
  let Rn;
18063
18064
  Yt.target.nodeName === "HTML" && (Rn = e.selection.getRng(), e.getBody().focus(), e.selection.setRng(Rn), e.selection.normalize(), e.nodeChanged());
@@ -18094,15 +18095,15 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
18094
18095
  const Yt = e.selection.getSel();
18095
18096
  return !Yt || !Yt.rangeCount || Yt.rangeCount === 0;
18096
18097
  }, en = () => {
18097
- k && (ne(), Ce(), Fr(), q(), M && (Yn(), Zn(), Os())), y && (Se(), It(), rn(), fs());
18098
- }, jn = () => {
18098
+ k && (ne(), Ce(), Fr(), q(), M && (Yn(), jn(), Os())), y && (Se(), It(), rn(), fs());
18099
+ }, Gn = () => {
18099
18100
  e.on("drop", (Yt) => {
18100
18101
  var Rn;
18101
18102
  const Ct = (Rn = Yt.dataTransfer) === null || Rn === void 0 ? void 0 : Rn.getData("text/html");
18102
18103
  me(Ct) && /^<img[^>]*>$/.test(Ct) && e.dispatch("dragend", new window.DragEvent("dragend", Yt));
18103
18104
  });
18104
18105
  }, so = () => {
18105
- wt(), te(), Bt.windowsPhone || Gt(), k && (ne(), Ce(), He(), Fr(), rt(), $l(), M ? (Yn(), Zn(), Os()) : q()), y && (ye(), Se(), Me(), It(), Ue(), rn(), fs(), rt(), jn());
18106
+ wt(), te(), Bt.windowsPhone || Gt(), k && (ne(), Ce(), He(), Fr(), rt(), $l(), M ? (Yn(), jn(), Os()) : q()), y && (ye(), Se(), Me(), It(), Ue(), rn(), fs(), rt(), Gn());
18106
18107
  };
18107
18108
  return Ch(e) ? en() : so(), {
18108
18109
  refreshContentEditable: is,
@@ -18374,7 +18375,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
18374
18375
  ...qw.get(n).icons
18375
18376
  };
18376
18377
  bt(r, (l, u) => {
18377
- gn(o, u) || e.ui.registry.addIcon(u, l);
18378
+ hn(o, u) || e.ui.registry.addIcon(u, l);
18378
18379
  });
18379
18380
  }, GW = (e) => {
18380
18381
  const n = bp(e);
@@ -18435,7 +18436,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
18435
18436
  }
18436
18437
  }, a8 = (e, n) => {
18437
18438
  const o = bp(e);
18438
- if (me(o) && !r8(o) && !gn(Sh.urls, o)) {
18439
+ if (me(o) && !r8(o) && !hn(Sh.urls, o)) {
18439
18440
  const r = cE(e), l = r ? e.documentBaseURI.toAbsolute(r) : `themes/${o}/theme${n}.js`;
18440
18441
  Sh.load(o, l).catch(() => {
18441
18442
  HF(e, l, o);
@@ -18443,7 +18444,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
18443
18444
  }
18444
18445
  }, OO = (e, n) => {
18445
18446
  const o = y2(e);
18446
- if (o !== "plugin" && !gn(xd.urls, o)) {
18447
+ if (o !== "plugin" && !hn(xd.urls, o)) {
18447
18448
  const r = DC(e), l = me(r) ? e.documentBaseURI.toAbsolute(r) : `models/${o}/model${n}.js`;
18448
18449
  xd.load(o, l).catch(() => {
18449
18450
  FM(e, l, o);
@@ -18543,7 +18544,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
18543
18544
  }, aZ = (e, n, o = {}) => {
18544
18545
  const r = e.sections(), l = Yo(r, n).getOr({});
18545
18546
  return ct.extend({}, o, l);
18546
- }, nT = (e, n) => gn(e.sections(), n), lZ = (e, n) => nT(e, n) ? e.sections()[n] : {}, MO = (e, n) => ({
18547
+ }, nT = (e, n) => hn(e.sections(), n), lZ = (e, n) => nT(e, n) ? e.sections()[n] : {}, MO = (e, n) => ({
18547
18548
  ...{
18548
18549
  table_grid: !1,
18549
18550
  object_resizing: !1,
@@ -19203,7 +19204,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
19203
19204
  }, ZZ = (e) => me(e) ? {
19204
19205
  value: e.split(/[ ,]/),
19205
19206
  valid: !0
19206
- } : hn(e, me) ? {
19207
+ } : gn(e, me) ? {
19207
19208
  value: e,
19208
19209
  valid: !0
19209
19210
  } : {
@@ -19227,7 +19228,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
19227
19228
  case "string[]":
19228
19229
  return ZZ;
19229
19230
  case "object[]":
19230
- return (o) => hn(o, _t);
19231
+ return (o) => gn(o, _t);
19231
19232
  case "regexp":
19232
19233
  return (o) => un(o, RegExp);
19233
19234
  default:
@@ -19265,7 +19266,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
19265
19266
  default: te,
19266
19267
  processor: J
19267
19268
  }, Yo(r, B).orThunk(() => Yo(n, B)).each((ne) => l(B, ne, J));
19268
- }, f = (B) => gn(o, B);
19269
+ }, f = (B) => hn(o, B);
19269
19270
  return {
19270
19271
  register: u,
19271
19272
  isRegistered: f,
@@ -19281,7 +19282,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
19281
19282
  const F = f(B);
19282
19283
  return F && delete r[B], F;
19283
19284
  },
19284
- isSet: (B) => gn(r, B)
19285
+ isSet: (B) => hn(r, B)
19285
19286
  };
19286
19287
  }, KZ = [
19287
19288
  "design",
@@ -19297,7 +19298,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, fo(n, _D)), WB = et(HB), pk
19297
19298
  l.deactivate(), l.editorReadOnly !== u.editorReadOnly && LZ(e, u.editorReadOnly), n.set(r), tw(e, r);
19298
19299
  }, YZ = (e, n, o, r) => {
19299
19300
  if (r !== o.get()) {
19300
- if (!gn(n, r))
19301
+ if (!hn(n, r))
19301
19302
  throw new Error(`Editor mode '${r}' is invalid`);
19302
19303
  e.initialized ? E8(e, o, n, r) : e.on("init", () => E8(e, o, n, r));
19303
19304
  }
@@ -20266,7 +20267,7 @@ tinymce.IconManager.add("default", {
20266
20267
  }, se = (t) => {
20267
20268
  const s = typeof t;
20268
20269
  return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && de(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
20269
- }, Ee = (t) => (s) => se(s) === t, ge = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && de(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), lt = (t) => Ae(t, Object), $t = Ee("array"), _n = G(null), Gn = ge("boolean"), Ro = G(void 0), Gs = (t) => t == null, Io = (t) => !Gs(t), Pt = ge("function"), pr = ge("number"), un = (t, s) => {
20270
+ }, Ee = (t) => (s) => se(s) === t, ge = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && de(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), lt = (t) => Ae(t, Object), $t = Ee("array"), _n = G(null), Wn = ge("boolean"), Ro = G(void 0), Gs = (t) => t == null, Io = (t) => !Gs(t), Pt = ge("function"), pr = ge("number"), un = (t, s) => {
20270
20271
  if ($t(t)) {
20271
20272
  for (let a = 0, c = t.length; a < c; ++a)
20272
20273
  if (!s(t[a]))
@@ -20284,7 +20285,7 @@ tinymce.IconManager.add("default", {
20284
20285
  }
20285
20286
  const je = (t) => (s) => !t(s), fe = (t) => () => {
20286
20287
  throw new Error(t);
20287
- }, Wt = (t) => t(), hn = oe(!1), Ge = oe(!0);
20288
+ }, Wt = (t) => t(), gn = oe(!1), Ge = oe(!0);
20288
20289
  class A {
20289
20290
  constructor(s, a) {
20290
20291
  this.tag = s, this.value = a;
@@ -20425,7 +20426,7 @@ tinymce.IconManager.add("default", {
20425
20426
  break;
20426
20427
  }
20427
20428
  return A.none();
20428
- }, qe = (t, s) => Zi(t, s, hn), At = (t, s) => {
20429
+ }, qe = (t, s) => Zi(t, s, gn), At = (t, s) => {
20429
20430
  for (let a = 0, c = t.length; a < c; a++) {
20430
20431
  const d = t[a];
20431
20432
  if (s(d, a))
@@ -20527,7 +20528,7 @@ tinymce.IconManager.add("default", {
20527
20528
  return A.none();
20528
20529
  }
20529
20530
  return A.some(s);
20530
- }, tl = (t, s, a) => t.isSome() && s.isSome() ? A.some(a(t.getOrDie(), s.getOrDie())) : A.none(), bl = (t, s, a, c) => t.isSome() && s.isSome() && a.isSome() ? A.some(c(t.getOrDie(), s.getOrDie(), a.getOrDie())) : A.none(), Yo = (t, s) => t != null ? A.some(s(t)) : A.none(), gn = (t, s) => t ? A.some(s) : A.none(), Ar = (t, s) => t + s, Nl = (t, s) => t.substring(s), Hc = (t, s, a) => s === "" || t.length >= s.length && t.substr(a, a + s.length) === s, mi = (t, s) => Us(t, s) ? Nl(t, s.length) : t, xr = (t, s) => vl(t, s) ? t : Ar(t, s), dr = (t, s, a = 0, c) => {
20531
+ }, tl = (t, s, a) => t.isSome() && s.isSome() ? A.some(a(t.getOrDie(), s.getOrDie())) : A.none(), bl = (t, s, a, c) => t.isSome() && s.isSome() && a.isSome() ? A.some(c(t.getOrDie(), s.getOrDie(), a.getOrDie())) : A.none(), Yo = (t, s) => t != null ? A.some(s(t)) : A.none(), hn = (t, s) => t ? A.some(s) : A.none(), Ar = (t, s) => t + s, Nl = (t, s) => t.substring(s), Hc = (t, s, a) => s === "" || t.length >= s.length && t.substr(a, a + s.length) === s, mi = (t, s) => Us(t, s) ? Nl(t, s.length) : t, xr = (t, s) => vl(t, s) ? t : Ar(t, s), dr = (t, s, a = 0, c) => {
20531
20532
  const d = t.indexOf(s, a);
20532
20533
  return d !== -1 ? Ro(c) ? !0 : d + s.length <= c : !1;
20533
20534
  }, Us = (t, s) => Hc(t, s, 0), vl = (t, s) => Hc(t, s, t.length - s.length), Vr = ((t) => (s) => s.replace(t, ""))(/^\s+|\s+$/g), ca = (t) => t.length > 0, Is = (t) => !ca(t), Dr = (t) => t.style !== void 0 && Pt(t.style.getPropertyValue), sc = (t, s) => {
@@ -20595,7 +20596,7 @@ tinymce.IconManager.add("default", {
20595
20596
  const a = t.dom, c = s.dom;
20596
20597
  return a === c ? !1 : a.contains(c);
20597
20598
  }, da = (t) => Te.fromDom(t.dom.ownerDocument), or = (t) => ia(t) ? t : da(t), yl = (t) => Te.fromDom(or(t).dom.documentElement), Fl = (t) => Te.fromDom(or(t).dom.defaultView), ea = (t) => A.from(t.dom.parentNode).map(Te.fromDom), Hl = (t) => ea(t), Vl = (t) => A.from(t.dom.parentElement).map(Te.fromDom), Zu = (t, s) => {
20598
- const a = Pt(s) ? s : hn;
20599
+ const a = Pt(s) ? s : gn;
20599
20600
  let c = t.dom;
20600
20601
  const d = [];
20601
20602
  for (; c.parentNode !== null && c.parentNode !== void 0; ) {
@@ -20639,7 +20640,7 @@ tinymce.IconManager.add("default", {
20639
20640
  throw new Error("Body is not available yet");
20640
20641
  return Te.fromDom(s);
20641
20642
  }, bu = (t, s, a) => {
20642
- if (Q(a) || Gn(a) || pr(a))
20643
+ if (Q(a) || Wn(a) || pr(a))
20643
20644
  t.setAttribute(s, a + "");
20644
20645
  else
20645
20646
  throw console.error("Invalid call to Attribute.set. Key ", s, ":: Value ", a, ":: Element ", t), new Error("Attribute value was not simple");
@@ -21125,7 +21126,7 @@ tinymce.IconManager.add("default", {
21125
21126
  inner: t,
21126
21127
  fold: (g, p) => p(t),
21127
21128
  isValue: Ge,
21128
- isError: hn,
21129
+ isError: gn,
21129
21130
  map: (g) => Hn.value(g(t)),
21130
21131
  mapError: c,
21131
21132
  bind: s,
@@ -21147,12 +21148,12 @@ tinymce.IconManager.add("default", {
21147
21148
  tag: !1,
21148
21149
  inner: t,
21149
21150
  fold: (c, d) => c(t),
21150
- isValue: hn,
21151
+ isValue: gn,
21151
21152
  isError: Ge,
21152
21153
  map: s,
21153
21154
  mapError: (c) => Hn.error(c(t)),
21154
21155
  bind: s,
21155
- exists: hn,
21156
+ exists: gn,
21156
21157
  forall: Ge,
21157
21158
  getOr: Nn,
21158
21159
  or: Nn,
@@ -21314,7 +21315,7 @@ tinymce.IconManager.add("default", {
21314
21315
  const s = nn(t), a = ss(t, (d, g) => Qu(g, (p) => Zo(d, { [p]: !0 }), oe(d)), {});
21315
21316
  return {
21316
21317
  extract: (d, g) => {
21317
- const p = Gn(g) ? [] : Ey(g), w = eo(p, (C) => !Er(a, C));
21318
+ const p = Wn(g) ? [] : Ey(g), w = eo(p, (C) => !Er(a, C));
21318
21319
  return w.length === 0 ? s.extract(d, g) : he(d, w);
21319
21320
  },
21320
21321
  toString: s.toString
@@ -21369,7 +21370,7 @@ tinymce.IconManager.add("default", {
21369
21370
  }, ku = Ea(_u, nn), Mr = oe(On), td = (t, s) => Kt((a) => {
21370
21371
  const c = typeof a;
21371
21372
  return t(a) ? rr.svalue(a) : rr.serror(`Expected type: ${s} but got: ${c}`);
21372
- }), Fg = td(pr, "number"), ba = td(Q, "string"), ru = td(Gn, "boolean"), Uh = td(Pt, "function"), Tu = (t) => {
21373
+ }), Fg = td(pr, "number"), ba = td(Q, "string"), ru = td(Wn, "boolean"), Uh = td(Pt, "function"), Tu = (t) => {
21373
21374
  if (Object(t) !== t)
21374
21375
  return !0;
21375
21376
  switch ({}.toString.call(t).slice(8, -1)) {
@@ -21512,7 +21513,7 @@ Required: ` + s.join(", "));
21512
21513
  }, ft = (t, s) => K(t, s), Ot = (t, s) => be(t, s), on = (t) => We(t), Vn = (t, s) => t.length === 0 ? Hn.value(s) : Hn.value(Zo(s, qc.apply(void 0, t))), ar = (t) => Hn.error(Ke(t)), Bo = (t, s) => {
21513
21514
  const a = V(t);
21514
21515
  return a.errors.length > 0 ? ar(a.errors) : Vn(a.values, s);
21515
- }, Bs = (t) => Pt(t) ? t : hn, mc = (t, s, a) => {
21516
+ }, Bs = (t) => Pt(t) ? t : gn, mc = (t, s, a) => {
21516
21517
  let c = t.dom;
21517
21518
  const d = Bs(a);
21518
21519
  for (; c.parentNode; ) {
@@ -21529,7 +21530,7 @@ Required: ` + s.join(", "));
21529
21530
  return c.orThunk(() => d(t) ? A.none() : mc(t, s, d));
21530
21531
  }, Xc = (t, s) => Fo(t.element, s.event.target), Ld = {
21531
21532
  can: Ge,
21532
- abort: hn,
21533
+ abort: gn,
21533
21534
  run: me
21534
21535
  }, cu = (t) => {
21535
21536
  if (!Er(t, "can") && !Er(t, "abort") && !Er(t, "run"))
@@ -21540,7 +21541,7 @@ Required: ` + s.join(", "));
21540
21541
  };
21541
21542
  }, Ug = (t, s) => (...a) => zo(t, (c, d) => c && s(d).apply(void 0, a), !0), Tf = (t, s) => (...a) => zo(t, (c, d) => c || s(d).apply(void 0, a), !1), $m = (t) => Pt(t) ? {
21542
21543
  can: Ge,
21543
- abort: hn,
21544
+ abort: gn,
21544
21545
  run: t
21545
21546
  } : t, Wg = (t) => {
21546
21547
  const s = Ug(t, (d) => d.can), a = Tf(t, (d) => d.abort);
@@ -21616,7 +21617,7 @@ Required: ` + s.join(", "));
21616
21617
  const c = s.partUids[a];
21617
21618
  return ET(t, c);
21618
21619
  }, Py = (t, s) => Je(t, (a, c) => {
21619
- const d = c.event, g = a.getSystem().getByDom(d.target).getOrThunk(() => Gl(d.target, (w) => a.getSystem().getByDom(w).toOptional(), hn).getOr(a));
21620
+ const d = c.event, g = a.getSystem().getByDom(d.target).getOrThunk(() => Gl(d.target, (w) => a.getSystem().getByDom(w).toOptional(), gn).getOr(a));
21620
21621
  s(a, g, c);
21621
21622
  }), Im = (t) => Je(t, (s, a) => {
21622
21623
  a.cut();
@@ -21687,7 +21688,7 @@ Check the ` + sd() + " event handlers"), !1) : !0;
21687
21688
  removeFromGui: a("removeFromGui"),
21688
21689
  getByUid: a("getByUid"),
21689
21690
  getByDom: a("getByDom"),
21690
- isConnected: hn
21691
+ isConnected: gn
21691
21692
  };
21692
21693
  }, ld = Fm(), $1 = (t, s, a) => {
21693
21694
  const c = a.toString(), d = c.indexOf(")") + 1, g = c.indexOf("("), p = c.substring(g + 1, d - 1).split(/,\s*/);
@@ -22086,7 +22087,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22086
22087
  uid: g,
22087
22088
  getSystem: a.get,
22088
22089
  config: A.none,
22089
- hasConfigured: hn,
22090
+ hasConfigured: gn,
22090
22091
  connect: c,
22091
22092
  disconnect: d,
22092
22093
  getApis: () => ({}),
@@ -22108,7 +22109,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22108
22109
  var uC = (t, s, a, c, d) => t(a, c) ? A.some(a) : Pt(d) && d(a) ? A.none() : s(a, c, d);
22109
22110
  const Nb = (t, s, a) => {
22110
22111
  let c = t.dom;
22111
- const d = Pt(a) ? a : hn;
22112
+ const d = Pt(a) ? a : gn;
22112
22113
  for (; c.parentNode; ) {
22113
22114
  c = c.parentNode;
22114
22115
  const g = Te.fromDom(c);
@@ -22153,7 +22154,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22153
22154
  re(c, up);
22154
22155
  }
22155
22156
  };
22156
- }, th = (t, s) => If(s).exists((a) => zm(t, a)), zm = (t, s) => jy(s, (a) => Fo(a, t.element), hn) || th(t, s), mC = "unknown";
22157
+ }, th = (t, s) => If(s).exists((a) => zm(t, a)), zm = (t, s) => jy(s, (a) => Fo(a, t.element), gn) || th(t, s), mC = "unknown";
22157
22158
  var nh;
22158
22159
  (function(t) {
22159
22160
  t[t.STOP = 0] = "STOP", t[t.NORMAL = 1] = "NORMAL", t[t.LOGGING = 2] = "LOGGING";
@@ -23198,7 +23199,7 @@ Receiver: ` + zd(s.element), E, g.data);
23198
23199
  "placement"
23199
23200
  ])
23200
23201
  ], KC = [
23201
- Re("useFixed", hn),
23202
+ Re("useFixed", gn),
23202
23203
  Ho("getBounds")
23203
23204
  ], Gf = [
23204
23205
  dc("anchor", n0),
@@ -23411,7 +23412,7 @@ Receiver: ` + zd(s.element), E, g.data);
23411
23412
  apis: lv,
23412
23413
  state: tS
23413
23414
  }), fd = oe("dismiss.popups"), ih = oe("reposition.popups"), z2 = oe("mouse.released"), nS = Ts([
23414
- Re("isExtraPart", hn),
23415
+ Re("isExtraPart", gn),
23415
23416
  _l("fireEventInstead", [Re("event", $f())])
23416
23417
  ]), a0 = (t) => {
23417
23418
  const s = Sl("Dismissal", nS, t);
@@ -23893,7 +23894,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
23893
23894
  Zb(t, s, pS)
23894
23895
  ])
23895
23896
  }), yS = [
23896
- oa("disabled", hn),
23897
+ oa("disabled", gn),
23897
23898
  Re("useNative", !0),
23898
23899
  Ho("disableClass"),
23899
23900
  xo("onDisabled"),
@@ -24114,7 +24115,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24114
24115
  ]);
24115
24116
  return v(s, Ru.init, ce, $e, () => A.some(p));
24116
24117
  };
24117
- var D = _(fr("cyclic", hn)), L = _(fr("cyclic", Ge));
24118
+ var D = _(fr("cyclic", gn)), L = _(fr("cyclic", Ge));
24118
24119
  const Z = (t, s, a) => (wb(t, a, Qc()), A.some(!0)), ee = (t, s, a) => mh(a) && bo(Ri)(s.event) ? A.none() : Z(t, s, a), ie = (t, s) => A.some(!0), De = [
24119
24120
  Re("execute", ee),
24120
24121
  Re("useSpace", !1),
@@ -24157,7 +24158,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24157
24158
  const Tn = (t) => (s, a, c, d) => {
24158
24159
  const g = t(s.element);
24159
24160
  return kr(g, s, a, c, d);
24160
- }, Wn = (t, s) => {
24161
+ }, Zn = (t, s) => {
24161
24162
  const a = Kb(t, s);
24162
24163
  return Tn(a);
24163
24164
  }, js = (t, s) => {
@@ -24198,7 +24199,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24198
24199
  s.focusManager.set(t, c);
24199
24200
  });
24200
24201
  }, _S = (t, s) => s.focusManager.get(t).bind((a) => cd(a, s.selector)), kS = (t, s, a, c) => _S(t, a).bind((d) => a.execute(t, s, d)), Up = (t) => (s, a, c, d) => Ql(s, a, c.selector).bind((g) => t(g.candidates, g.index, d.getNumRows().getOr(c.initSize.numRows), d.getNumColumns().getOr(c.initSize.numColumns))), TS = (t, s, a) => a.captureTab ? A.some(!0) : A.none(), Ev = (t, s, a) => a.onEscape(t, s), ES = Up(dw), hh = Up(pc), w5 = Up(S0), G8 = Up(em), q8 = oe([
24201
- To(bo(kv), Wn(ES, hh)),
24202
+ To(bo(kv), Zn(ES, hh)),
24202
24203
  To(bo(Vp), js(ES, hh)),
24203
24204
  To(bo(tf), Pc(w5)),
24204
24205
  To(bo(C0), fh(G8)),
@@ -24244,7 +24245,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24244
24245
  }, k5 = (t, s, a) => (a.cycles ? Av : C5)(t, a.selector, s, -1), T5 = (t, s, a) => (a.cycles ? Av : C5)(t, a.selector, s, 1), Lu = (t) => (s, a, c, d) => t(s, a, c, d).bind(() => c.executeOnMove ? S5(s, a, c) : A.some(!0)), J8 = (t, s, a) => a.onEscape(t, s), Q8 = (t, s, a, c) => {
24245
24246
  const d = [...a.allowHorizontal ? kv : []].concat(a.allowVertical ? tf : []), g = [...a.allowHorizontal ? Vp : []].concat(a.allowVertical ? C0 : []);
24246
24247
  return [
24247
- To(bo(d), Lu(Wn(k5, T5))),
24248
+ To(bo(d), Lu(Zn(k5, T5))),
24248
24249
  To(bo(g), Lu(js(k5, T5))),
24249
24250
  To(bo(Qd), S5),
24250
24251
  To(bo(Ri), S5)
@@ -24298,7 +24299,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24298
24299
  });
24299
24300
  });
24300
24301
  }, D5 = $S(g4, s7), Wp = $S(RS, r7), O5 = $S(n7, a7), u7 = $S(o7, l7), p4 = oe([
24301
- To(bo(kv), Wn(D5, Wp)),
24302
+ To(bo(kv), Zn(D5, Wp)),
24302
24303
  To(bo(Vp), js(D5, Wp)),
24303
24304
  To(bo(tf), Pc(O5)),
24304
24305
  To(bo(C0), fh(u7)),
@@ -25318,7 +25319,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
25318
25319
  _l("fireDismissalEventInstead", [Re("event", $f())]),
25319
25320
  _l("fireRepositionEventInstead", [Re("event", Kx())]),
25320
25321
  Re("getRelated", A.none),
25321
- Re("isExtraPart", hn),
25322
+ Re("isExtraPart", gn),
25322
25323
  Re("eventOrder", A.none)
25323
25324
  ],
25324
25325
  factory: Q7,
@@ -26833,13 +26834,13 @@ Components: ` + JSON.stringify(s.components, null, 2));
26833
26834
  processor: "string",
26834
26835
  default: ""
26835
26836
  }), c("menubar", {
26836
- processor: (p) => Q(p) || Gn(p),
26837
+ processor: (p) => Q(p) || Wn(p),
26837
26838
  default: !s
26838
26839
  }), c("menu", {
26839
26840
  processor: "object",
26840
26841
  default: {}
26841
26842
  }), c("toolbar", {
26842
- processor: (p) => Gn(p) || Q(p) || $t(p) ? {
26843
+ processor: (p) => Wn(p) || Q(p) || $t(p) ? {
26843
26844
  value: p,
26844
26845
  valid: !0
26845
26846
  } : {
@@ -26898,7 +26899,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
26898
26899
  processor: "boolean",
26899
26900
  default: !0
26900
26901
  }), c("resize", {
26901
- processor: (p) => p === "both" || Gn(p),
26902
+ processor: (p) => p === "both" || Wn(p),
26902
26903
  default: !$v.deviceType.isTouch()
26903
26904
  }), c("sidebar_show", { processor: "string" }), c("help_accessibility", {
26904
26905
  processor: "boolean",
@@ -26922,7 +26923,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
26922
26923
  return !Aw(t) && (c || a || s === !0);
26923
26924
  }, Q4 = (t) => {
26924
26925
  const s = ao(9, (c) => t.options.get("toolbar" + (c + 1))), a = eo(s, Q);
26925
- return gn(a.length > 0, a);
26926
+ return hn(a.length > 0, a);
26926
26927
  }, Aw = (t) => Q4(t).fold(() => {
26927
26928
  const s = KS(t);
26928
26929
  return un(s, Q) && s.length > 0;
@@ -27385,7 +27386,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
27385
27386
  Xr,
27386
27387
  zv
27387
27388
  ])), d$ = (t) => Ks("ToggleButton", u$, t), m$ = [
27388
- oa("predicate", hn),
27389
+ oa("predicate", gn),
27389
27390
  Zl("scope", "node", [
27390
27391
  "node",
27391
27392
  "editor"
@@ -28264,7 +28265,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28264
28265
  }, tM = (t, s = "default") => Math.round(s === __ ? ig("color_cols_foreground")(t) : s === k_ ? ig("color_cols_background")(t) : ig("color_cols")(t)), nM = ig("custom_colors"), TL = ig("color_default_foreground"), EL = ig("color_default_background"), oM = "rgba(0, 0, 0, 0)", AL = (t) => L3(t).exists((s) => s.alpha !== 0), DL = (t) => Gl(t, (s) => {
28265
28266
  if (Do(s)) {
28266
28267
  const a = as(s, "background-color");
28267
- return gn(AL(a), a);
28268
+ return hn(AL(a), a);
28268
28269
  } else
28269
28270
  return A.none();
28270
28271
  }).getOr(oM), sM = (t, s) => {
@@ -28461,7 +28462,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28461
28462
  const a = BL(t, s), c = s.colorinput.getColorCols(t.initData.storageKey), d = "color", p = {
28462
28463
  ...eA(Zt("menu-value"), a, (w) => {
28463
28464
  t.onAction({ value: w });
28464
- }, c, d, af.CLOSE_ON_EXECUTE, t.select.getOr(hn), s.shared.providers),
28465
+ }, c, d, af.CLOSE_ON_EXECUTE, t.select.getOr(gn), s.shared.providers),
28465
28466
  markers: yh(d),
28466
28467
  movement: A_(c, d)
28467
28468
  };
@@ -28875,7 +28876,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28875
28876
  }),
28876
28877
  Oc.config({
28877
28878
  channels: {
28878
- ...a0({ isExtraPart: hn }),
28879
+ ...a0({ isExtraPart: gn }),
28879
28880
  ...$p({ doReposition: yM })
28880
28881
  }
28881
28882
  })
@@ -29361,7 +29362,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
29361
29362
  },
29362
29363
  cut: me,
29363
29364
  isStopped: s.get,
29364
- isCut: hn,
29365
+ isCut: gn,
29365
29366
  event: t,
29366
29367
  setSource: fe("Cannot set source of a broadcasted event"),
29367
29368
  getSource: fe("Cannot get source of a broadcasted event")
@@ -29376,7 +29377,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
29376
29377
  const E = C.descHandler;
29377
29378
  return Qh(E)(w), w.isStopped() ? (g.logEventStopped(s, C.element, E.purpose), jw.stopped()) : w.isCut() ? (g.logEventCut(s, C.element, E.purpose), jw.complete()) : ea(C.element).fold(() => (g.logNoParent(s, C.element, E.purpose), jw.complete()), (N) => (g.logEventResponse(s, C.element, E.purpose), jw.resume(N)));
29378
29379
  });
29379
- }, OM = (t, s, a, c, d, g) => DM(t, s, a, c, d, g).fold(Ge, (p) => OM(t, s, a, p, d, g), hn), SF = (t, s, a, c, d) => {
29380
+ }, OM = (t, s, a, c, d, g) => DM(t, s, a, c, d, g).fold(Ge, (p) => OM(t, s, a, p, d, g), gn), SF = (t, s, a, c, d) => {
29380
29381
  const g = EM(a, c);
29381
29382
  return DM(t, s, a, c, g, d);
29382
29383
  }, _F = (t, s, a) => {
@@ -29887,7 +29888,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
29887
29888
  lazySink: s.getSink,
29888
29889
  fetch: (a) => ec.nu((c) => t.fetch(c)).map((c) => A.from($_(Zo(eA(Zt("menu-value"), c, (d) => {
29889
29890
  t.onItemAction(a, d);
29890
- }, t.columns, t.presets, af.CLOSE_ON_EXECUTE, hn, s.providers), { movement: A_(t.columns, t.presets) })))),
29891
+ }, t.columns, t.presets, af.CLOSE_ON_EXECUTE, gn, s.providers), { movement: A_(t.columns, t.presets) })))),
29891
29892
  parts: { menu: Fv(!1, 1, t.presets) }
29892
29893
  }), FM = Zt("color-input-change"), HM = Zt("color-swatch-change"), Xw = Zt("color-picker-cancel"), VF = (t, s, a, c) => {
29893
29894
  const d = Jo.parts.field({
@@ -31204,7 +31205,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31204
31205
  }, sy = (t) => Zw(t, [
31205
31206
  "." + VA,
31206
31207
  "." + zA
31207
- ].join(","), hn), ry = Zt("update-dialog"), fg = Zt("update-title"), ek = Zt("update-body"), WA = Zt("update-footer"), ZA = Zt("body-send-message"), ay = Zt("dialog-focus-shifted"), tk = yi().browser, o1 = tk.isSafari(), AP = tk.isFirefox(), jA = o1 || AP, X9 = tk.isChromium(), J9 = ({ scrollTop: t, scrollHeight: s, clientHeight: a }) => Math.ceil(t) + a >= s, DP = (t, s) => t.scrollTo(0, s === "bottom" ? 99999999 : s), Q9 = (t, s) => {
31208
+ ].join(","), gn), ry = Zt("update-dialog"), fg = Zt("update-title"), ek = Zt("update-body"), WA = Zt("update-footer"), ZA = Zt("body-send-message"), ay = Zt("dialog-focus-shifted"), tk = yi().browser, o1 = tk.isSafari(), AP = tk.isFirefox(), jA = o1 || AP, X9 = tk.isChromium(), J9 = ({ scrollTop: t, scrollHeight: s, clientHeight: a }) => Math.ceil(t) + a >= s, DP = (t, s) => t.scrollTo(0, s === "bottom" ? 99999999 : s), Q9 = (t, s) => {
31208
31209
  const a = t.body;
31209
31210
  return A.from(!/^<!DOCTYPE (html|HTML)/.test(s) && (!X9 && !o1 || Io(a) && (a.scrollTop !== 0 || Math.abs(a.scrollHeight - a.clientHeight) > 1)) ? a : t.documentElement);
31210
31211
  }, OP = (t, s, a) => {
@@ -31217,7 +31218,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31217
31218
  };
31218
31219
  o1 && c.addEventListener("load", w, { once: !0 }), d.open(), d.write(s), d.close(), o1 || w();
31219
31220
  });
31220
- }, RP = gn(jA, o1 ? 500 : 200).map((t) => sx(OP, t)), tH = (t, s) => {
31221
+ }, RP = hn(jA, o1 ? 500 : 200).map((t) => sx(OP, t)), tH = (t, s) => {
31221
31222
  const a = fn(t.getOr(""));
31222
31223
  return {
31223
31224
  getValue: (c) => a.get(),
@@ -31573,7 +31574,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31573
31574
  type: "nestedmenuitem",
31574
31575
  text: d.text,
31575
31576
  getSubmenuItems: () => FP(t, s, d.items, c)
31576
- }), QA = (t, s) => Qs(t, (a) => JA(a) ? gn(a.value === s, a) : QA(a.items, s)), eD = (t, s, a) => {
31577
+ }), QA = (t, s) => Qs(t, (a) => JA(a) ? hn(a.value === s, a) : QA(a.items, s)), eD = (t, s, a) => {
31577
31578
  const c = s.shared.providers, d = a.bind((C) => QA(t.items, C)).orThunk(() => vr(t.items).filter(JA)), g = t.label.map((C) => xd(C, c)), p = Jo.parts.field({
31578
31579
  dom: {},
31579
31580
  factory: {
@@ -33841,10 +33842,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
33841
33842
  a[s] = [t].concat(d).slice(0, kD), AV(a);
33842
33843
  }, ED = (t) => !!t, DV = (t) => qo(kh.makeMap(t, /[, ]/), ED), bk = (t) => A.from(DR(t)), jB = (t) => {
33843
33844
  const s = A.from(q4(t)).filter(ED).map(DV);
33844
- return bk(t).fold(hn, (a) => s.fold(Ge, (c) => ps(c).length > 0 ? c : !1));
33845
+ return bk(t).fold(gn, (a) => s.fold(Ge, (c) => ps(c).length > 0 ? c : !1));
33845
33846
  }, GB = (t, s) => {
33846
33847
  const a = jB(t);
33847
- return Gn(a) ? a ? bk(t) : A.none() : a[s] ? bk(t) : A.none();
33848
+ return Wn(a) ? a ? bk(t) : A.none() : a[s] ? bk(t) : A.none();
33848
33849
  }, OV = (t, s) => GB(t, s).map((a) => (c) => ec.nu((d) => {
33849
33850
  const g = (w, C) => {
33850
33851
  if (!Q(w))
@@ -34049,7 +34050,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
34049
34050
  t.setGroups(s, a);
34050
34051
  }
34051
34052
  }
34052
- }), LV = me, XB = hn, JB = oe([]);
34053
+ }), LV = me, XB = gn, JB = oe([]);
34053
34054
  var xx = /* @__PURE__ */ Object.freeze({
34054
34055
  __proto__: null,
34055
34056
  setup: LV,
@@ -34460,7 +34461,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
34460
34461
  Wl("search", !1, jt([
34461
34462
  ru,
34462
34463
  nn([Ia("placeholder")])
34463
- ], (t) => Gn(t) ? t ? A.some({ placeholder: A.none() }) : A.none() : A.some(t))),
34464
+ ], (t) => Wn(t) ? t ? A.some({ placeholder: A.none() }) : A.none() : A.some(t))),
34464
34465
  lu("fetch"),
34465
34466
  oa("onSetup", () => me)
34466
34467
  ], WD = nn([
@@ -35015,7 +35016,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
35015
35016
  Oc.config({
35016
35017
  channels: {
35017
35018
  ...a0({
35018
- isExtraPart: hn,
35019
+ isExtraPart: gn,
35019
35020
  ...a.fireDismissalEventInstead.map((p) => ({ fireEventInstead: { event: p.event } })).getOr({})
35020
35021
  }),
35021
35022
  ...$p({
@@ -36189,7 +36190,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36189
36190
  });
36190
36191
  }, JN = (t, s) => {
36191
36192
  const a = s(), c = tt(a, (d) => d.format);
36192
- return A.from(t.formatter.closest(c)).bind((d) => qe(a, (g) => g.format === d)).orThunk(() => gn(t.formatter.match("p"), {
36193
+ return A.from(t.formatter.closest(c)).bind((d) => qe(a, (g) => g.format === d)).orThunk(() => hn(t.formatter.match("p"), {
36193
36194
  title: "Paragraph",
36194
36195
  format: "p"
36195
36196
  }));
@@ -36246,7 +36247,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36246
36247
  matchOpt: qe(O, (X) => {
36247
36248
  const ce = X.format;
36248
36249
  return ce.toLowerCase() === N || C(ce).toLowerCase() === C(N).toLowerCase();
36249
- }).orThunk(() => gn(_U(N, H), {
36250
+ }).orThunk(() => hn(_U(N, H), {
36250
36251
  title: gO,
36251
36252
  format: N
36252
36253
  })),
@@ -36277,7 +36278,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36277
36278
  updateText: p,
36278
36279
  dataset: w,
36279
36280
  shouldHide: !1,
36280
- isInvalid: hn
36281
+ isInvalid: gn
36281
36282
  };
36282
36283
  }, kU = (t, s) => fm(t, s, hO(t), fO, "FontFamilyTextUpdate"), a6 = (t, s) => {
36283
36284
  const a = G0(t, s, hO(t));
@@ -36532,7 +36533,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36532
36533
  updateText: p,
36533
36534
  dataset: w,
36534
36535
  shouldHide: !1,
36535
- isInvalid: hn
36536
+ isInvalid: gn
36536
36537
  };
36537
36538
  }, NU = (t, s) => fm(t, s, pO(t), i6, "FontSizeTextUpdate"), IU = (t) => {
36538
36539
  var s;
@@ -36904,7 +36905,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36904
36905
  onSetup: t.onSetup
36905
36906
  }, s), y6 = (t, s, a) => (c) => ec.nu((d) => s.fetch(d)).map((d) => A.from($_(Zo(eA(Zt("menu-value"), d, (g) => {
36906
36907
  s.onItemAction(t(c), g);
36907
- }, s.columns, s.presets, af.CLOSE_ON_EXECUTE, s.select.getOr(hn), a), {
36908
+ }, s.columns, s.presets, af.CLOSE_ON_EXECUTE, s.select.getOr(gn), a), {
36908
36909
  movement: A_(s.columns, s.presets),
36909
36910
  menuBehaviours: Nw.unnamedEvents(s.columns !== "auto" ? [] : [xs((g, p) => {
36910
36911
  E3(g, 4, ZR(s.presets)).each(({ numRows: w, numColumns: C }) => {
@@ -37828,7 +37829,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37828
37829
  t.on("remove", ce), t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress", $e), t.on("click keyup focus SetContent", Un.throttle), t.on(D6, ce), t.on(fW, (Ut) => {
37829
37830
  const An = pe();
37830
37831
  bt(An.lookupTable, Ut.toolbarKey).each((Cn) => {
37831
- yt([Cn], gn(Ut.target !== t, Ut.target)), cr.getContent(O).each(cn.focusIn);
37832
+ yt([Cn], hn(Ut.target !== t, Ut.target)), cr.getContent(O).each(cn.focusIn);
37832
37833
  });
37833
37834
  }), t.on("focusout", (Ut) => {
37834
37835
  A0.setEditorTimeout(t, () => {
@@ -38723,7 +38724,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
38723
38724
  Re("mustSnap", !1)
38724
38725
  ]);
38725
38726
  const BO = [
38726
- Re("useFixed", hn),
38727
+ Re("useFixed", gn),
38727
38728
  nt("blockerClass"),
38728
38729
  Re("getTarget", Nn),
38729
38730
  Re("onDrag", me),
@@ -39962,7 +39963,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
39962
39963
  dataValidator: c,
39963
39964
  initialData: d
39964
39965
  };
39965
- }, Zn = {
39966
+ }, jn = {
39966
39967
  open: (t, s) => {
39967
39968
  const a = Yn(s);
39968
39969
  return t(a.internalDialog, a.initialData, a.dataValidator);
@@ -40021,7 +40022,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40021
40022
  };
40022
40023
  }
40023
40024
  });
40024
- const jn = Ca({
40025
+ const Gn = Ca({
40025
40026
  fields: is,
40026
40027
  name: "reflecting",
40027
40028
  active: Os,
@@ -40434,7 +40435,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40434
40435
  components: [],
40435
40436
  behaviours: xt([
40436
40437
  Ii.childAt(0),
40437
- jn.config({
40438
+ Gn.config({
40438
40439
  channel: `${ek}-${s}`,
40439
40440
  updateState: p,
40440
40441
  renderComponents: g,
@@ -40639,7 +40640,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40639
40640
  attributes: { ...a.map((g) => ({ id: g })).getOr({}) }
40640
40641
  },
40641
40642
  components: [],
40642
- behaviours: xt([jn.config({
40643
+ behaviours: xt([Gn.config({
40643
40644
  channel: `${fg}-${s}`,
40644
40645
  initialData: t,
40645
40646
  renderComponents: d
@@ -40730,12 +40731,12 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40730
40731
  dialogEvents: s,
40731
40732
  eventOrder: {
40732
40733
  [qg()]: [
40733
- jn.name(),
40734
+ Gn.name(),
40734
40735
  Oc.name()
40735
40736
  ],
40736
40737
  [_i()]: [
40737
40738
  "scroll-lock",
40738
- jn.name(),
40739
+ Gn.name(),
40739
40740
  "messages",
40740
40741
  "dialog-events",
40741
40742
  "alloy.base.behaviour"
@@ -40744,7 +40745,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40744
40745
  "alloy.base.behaviour",
40745
40746
  "dialog-events",
40746
40747
  "messages",
40747
- jn.name(),
40748
+ Gn.name(),
40748
40749
  "scroll-lock"
40749
40750
  ]
40750
40751
  }
@@ -40779,7 +40780,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40779
40780
  g(t(), C, w.event, p);
40780
40781
  });
40781
40782
  }), c = (d, g) => {
40782
- jn.getState(d).get().each((p) => {
40783
+ Gn.getState(d).get().each((p) => {
40783
40784
  g(p, d);
40784
40785
  });
40785
40786
  };
@@ -40795,7 +40796,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40795
40796
  p(t(), E, C.event, w);
40796
40797
  });
40797
40798
  }), d = (g, p) => {
40798
- jn.getState(g).get().each((w) => {
40799
+ Gn.getState(g).get().each((w) => {
40799
40800
  p(w.internalDialog, g);
40800
40801
  });
40801
40802
  };
@@ -40855,7 +40856,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40855
40856
  return {
40856
40857
  dom: bh('<div class="tox-dialog__footer"></div>'),
40857
40858
  components: [],
40858
- behaviours: xt([jn.config({
40859
+ behaviours: xt([Gn.config({
40859
40860
  channel: `${WA}-${s}`,
40860
40861
  initialData: t,
40861
40862
  updateState: c,
@@ -40865,12 +40866,12 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40865
40866
  }, Fc = (t, s, a) => Hr(t, s, a), Td = (t, s, a) => Gr.parts.footer(Hr(t, s, a)), Ha = (t, s) => {
40866
40867
  if (t.getRoot().getSystem().isConnected()) {
40867
40868
  const c = uo.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());
40868
- return ny.getField(c, s).orThunk(() => t.getFooter().bind((p) => jn.getState(p).get()).bind((p) => p.lookupByName(s)));
40869
+ return ny.getField(c, s).orThunk(() => t.getFooter().bind((p) => Gn.getState(p).get()).bind((p) => p.lookupByName(s)));
40869
40870
  } else
40870
40871
  return A.none();
40871
40872
  }, pm = (t, s) => {
40872
40873
  const a = t.getRoot();
40873
- return jn.getState(a).get().map((c) => ls(Ks("data", c.dataValidator, s))).getOr(s);
40874
+ return Gn.getState(a).get().map((c) => ls(Ks("data", c.dataValidator, s))).getOr(s);
40874
40875
  }, vT = (t, s, a) => {
40875
40876
  const c = (X) => {
40876
40877
  const ce = t.getRoot();
@@ -40912,7 +40913,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40912
40913
  showTab: (X) => {
40913
40914
  c((ce) => {
40914
40915
  const $e = t.getBody();
40915
- jn.getState($e).get().exists((pe) => pe.isTabPanel()) && uo.getCurrent($e).each((pe) => {
40916
+ Gn.getState($e).get().exists((pe) => pe.isTabPanel()) && uo.getCurrent($e).each((pe) => {
40916
40917
  Js.showTab(pe, X);
40917
40918
  });
40918
40919
  });
@@ -40938,13 +40939,13 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40938
40939
  const c = Zt("dialog"), d = t.internalDialog, g = St(d.title, c, a), p = fn(d.size), w = Ja(p.get()).toArray(), C = (pe, Oe) => (p.set(Oe.internalDialog.size), p1(Oe.internalDialog.size, pe), A.some(Oe)), E = Hx({
40939
40940
  body: d.body,
40940
40941
  initialData: d.initialData
40941
- }, c, a), O = bT(d.buttons), N = KO(O), H = gn(O.length !== 0, Td({ buttons: O }, c, a)), W = no(() => we, sn(() => ce, a.shared.providers, s), a.shared.getSink), X = {
40942
+ }, c, a), O = bT(d.buttons), N = KO(O), H = hn(O.length !== 0, Td({ buttons: O }, c, a)), W = no(() => we, sn(() => ce, a.shared.providers, s), a.shared.getSink), X = {
40942
40943
  id: c,
40943
40944
  header: g,
40944
40945
  body: E,
40945
40946
  footer: H,
40946
40947
  extraClasses: w,
40947
- extraBehaviours: [jn.config({
40948
+ extraBehaviours: [Gn.config({
40948
40949
  channel: `${ry}-${c}`,
40949
40950
  updateState: C,
40950
40951
  initialData: t
@@ -40977,7 +40978,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40977
40978
  }, g, p, a.shared.providers)), W = Xo(vg({
40978
40979
  body: C.body,
40979
40980
  initialData: C.initialData
40980
- }, g, w, a, c)), X = bT(C.buttons), ce = KO(X), $e = gn(X.length !== 0, Xo(Fc({ buttons: X }, g, a))), we = no(() => Xe, {
40981
+ }, g, w, a, c)), X = bT(C.buttons), ce = KO(X), $e = hn(X.length !== 0, Xo(Fc({ buttons: X }, g, a))), we = no(() => Xe, {
40981
40982
  onBlock: (Ze) => {
40982
40983
  mm.block(Oe, (yt, Tt) => {
40983
40984
  const Un = H.getOpt(Oe).map((Ut) => Vs(Ut.element));
@@ -41003,7 +41004,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41003
41004
  },
41004
41005
  eventOrder: {
41005
41006
  [qg()]: [
41006
- jn.name(),
41007
+ Gn.name(),
41007
41008
  Oc.name()
41008
41009
  ],
41009
41010
  [Qc()]: ["execute-on-form"],
@@ -41019,7 +41020,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41019
41020
  useTabstopAt: (Ze) => !sy(Ze) && (Oa(Ze) !== "button" || Ws(Ze, "disabled") !== "disabled"),
41020
41021
  firstTabstop: 1
41021
41022
  }),
41022
- jn.config({
41023
+ Gn.config({
41023
41024
  channel: `${ry}-${g}`,
41024
41025
  updateState: N,
41025
41026
  initialData: t
@@ -41105,7 +41106,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41105
41106
  t.setContent(a.content);
41106
41107
  break;
41107
41108
  case "execCommand":
41108
- const c = Gn(a.ui) ? a.ui : !1;
41109
+ const c = Wn(a.ui) ? a.ui : !1;
41109
41110
  t.execCommand(a.cmd, c, a.value);
41110
41111
  break;
41111
41112
  case "close":
@@ -41129,7 +41130,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41129
41130
  "max-width": Oe + "px"
41130
41131
  }))
41131
41132
  }, O = t.width.isNone() && t.height.isNone() ? ["tox-dialog--width-lg"] : [], N = new I8(t.url, { base_uri: new I8(window.location.href) }), H = `${N.protocol}://${N.host}${N.port ? ":" + N.port : ""}`, W = Zm(), X = (Oe, dt) => A.some(dt), ce = [
41132
- jn.config({
41133
+ Gn.config({
41133
41134
  channel: `${ry}-${d}`,
41134
41135
  updateState: X,
41135
41136
  initialData: t
@@ -41281,7 +41282,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41281
41282
  }, s, t.backstages.dialog);
41282
41283
  return Gr.show(pe.dialog), pe.instanceApi;
41283
41284
  };
41284
- return Zn.openUrl($e, X);
41285
+ return jn.openUrl($e, X);
41285
41286
  }, C = (X, ce) => {
41286
41287
  const $e = (we, pe, Oe) => {
41287
41288
  const dt = pe, Ze = wj({
@@ -41289,14 +41290,14 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41289
41290
  initialData: dt,
41290
41291
  internalDialog: we
41291
41292
  }, {
41292
- redial: Zn.redial,
41293
+ redial: jn.redial,
41293
41294
  closeWindow: () => {
41294
41295
  Gr.hide(Ze.dialog), ce(Ze.instanceApi);
41295
41296
  }
41296
41297
  }, t.backstages.dialog);
41297
41298
  return Gr.show(Ze.dialog), Ze.instanceApi.setData(dt), Ze.instanceApi;
41298
41299
  };
41299
- return Zn.open($e, X);
41300
+ return jn.open($e, X);
41300
41301
  }, E = (X, ce, $e, we) => {
41301
41302
  const pe = (Oe, dt, Xe) => {
41302
41303
  const Ze = $G(dt, Xe), yt = to(), Tt = t.backstages.popup.shared.header.isPositionedAtTop(), Un = {
@@ -41306,7 +41307,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41306
41307
  }, Ut = () => yt.on((pn) => {
41307
41308
  cr.reposition(pn), (!a || !Tt) && tr.refresh(pn);
41308
41309
  }), An = XO(Un, {
41309
- redial: Zn.redial,
41310
+ redial: jn.redial,
41310
41311
  closeWindow: () => {
41311
41312
  yt.on(cr.hide), s.off("ResizeEditor", Ut), yt.clear(), $e(An.instanceApi);
41312
41313
  }
@@ -41333,7 +41334,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41333
41334
  };
41334
41335
  return cr.showWithinBounds(Cn, Ti(An.dialog), { anchor: ce }, Ko), (!a || !Tt) && (tr.refresh(Cn), s.on("ResizeEditor", Ut)), An.instanceApi.setData(Ze), cn.focusIn(An.dialog), An.instanceApi;
41335
41336
  };
41336
- return Zn.open(pe, X);
41337
+ return jn.open(pe, X);
41337
41338
  }, O = (X, ce, $e, we) => {
41338
41339
  const pe = (Oe, dt, Xe) => {
41339
41340
  const Ze = $G(dt, Xe), yt = to(), Tt = t.backstages.popup.shared.header.isPositionedAtTop(), Un = {
@@ -41343,7 +41344,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41343
41344
  }, Ut = () => yt.on((pn) => {
41344
41345
  cr.reposition(pn), tr.refresh(pn);
41345
41346
  }), An = XO(Un, {
41346
- redial: Zn.redial,
41347
+ redial: jn.redial,
41347
41348
  closeWindow: () => {
41348
41349
  yt.on(cr.hide), s.off("ResizeEditor ScrollWindow ElementScroll", Ut), yt.clear(), $e(An.instanceApi);
41349
41350
  }
@@ -41391,7 +41392,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41391
41392
  });
41392
41393
  return cr.showWithinBounds(Cn, Ti(An.dialog), { anchor: ce }, Ko), tr.refresh(Cn), s.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow", Ut), An.instanceApi.setData(Ze), cn.focusIn(An.dialog), An.instanceApi;
41393
41394
  };
41394
- return Zn.open(pe, X);
41395
+ return jn.open(pe, X);
41395
41396
  };
41396
41397
  return {
41397
41398
  open: g,
@@ -41448,7 +41449,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41448
41449
  }, se = (i) => {
41449
41450
  const m = typeof i;
41450
41451
  return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && de(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
41451
- }, Ee = (i) => (m) => se(m) === i, ge = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), _n = G(void 0), Gn = (i) => i == null, Ro = (i) => !Gn(i), Gs = ge("function"), Io = ge("number"), Pt = () => {
41452
+ }, Ee = (i) => (m) => se(m) === i, ge = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), _n = G(void 0), Wn = (i) => i == null, Ro = (i) => !Wn(i), Gs = ge("function"), Io = ge("number"), Pt = () => {
41452
41453
  }, pr = (i, m) => (...h) => i(m.apply(null, h)), un = (i, m) => (h) => i(m(h)), me = (i) => () => i, _t = (i) => i, Ea = (i, m) => i === m;
41453
41454
  function Qn(i, ...m) {
41454
41455
  return (...h) => {
@@ -41530,7 +41531,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41530
41531
  }
41531
41532
  }
41532
41533
  fe.singletonNone = new fe(!1);
41533
- const Wt = Array.prototype.slice, hn = Array.prototype.indexOf, Ge = Array.prototype.push, A = (i, m) => hn.call(i, m), Vt = (i, m) => A(i, m) > -1, et = (i, m) => {
41534
+ const Wt = Array.prototype.slice, gn = Array.prototype.indexOf, Ge = Array.prototype.push, A = (i, m) => gn.call(i, m), Vt = (i, m) => A(i, m) > -1, et = (i, m) => {
41534
41535
  for (let h = 0, v = i.length; h < v; h++) {
41535
41536
  const _ = i[h];
41536
41537
  if (m(_, h))
@@ -41681,7 +41682,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41681
41682
  }, Qo = Object.getPrototypeOf, Gi = (i) => di("HTMLElement", i), bt = (i) => {
41682
41683
  const m = wr("ownerDocument.defaultView", i);
41683
41684
  return Q(i) && (Gi(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(Qo(i).constructor.name));
41684
- }, fo = 8, Er = 9, Aa = 11, Bl = 1, Da = 3, es = (i) => i.dom.nodeName.toLowerCase(), tl = (i) => i.dom.nodeType, bl = (i) => (m) => tl(m) === i, Yo = (i) => tl(i) === fo || es(i) === "#comment", gn = (i) => Ar(i) && bt(i.dom), Ar = bl(Bl), Nl = bl(Da), Hc = bl(Er), mi = bl(Aa), xr = (i) => (m) => Ar(m) && es(m) === i, dr = (i, m, h) => {
41685
+ }, fo = 8, Er = 9, Aa = 11, Bl = 1, Da = 3, es = (i) => i.dom.nodeName.toLowerCase(), tl = (i) => i.dom.nodeType, bl = (i) => (m) => tl(m) === i, Yo = (i) => tl(i) === fo || es(i) === "#comment", hn = (i) => Ar(i) && bt(i.dom), Ar = bl(Bl), Nl = bl(Da), Hc = bl(Er), mi = bl(Aa), xr = (i) => (m) => Ar(m) && es(m) === i, dr = (i, m, h) => {
41685
41686
  if (Ae(h) || $t(h) || Io(h))
41686
41687
  i.setAttribute(m, h + "");
41687
41688
  else
@@ -42318,9 +42319,9 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42318
42319
  for (; m[Gc(Z, Ye)] !== void 0; )
42319
42320
  Ye++;
42320
42321
  const Jt = qo(_, Ye.toString()), Tn = j(Nt.element, Nt.rowspan, Nt.colspan, Z, Ye, Jt);
42321
- for (let Wn = 0; Wn < Nt.colspan; Wn++)
42322
+ for (let Zn = 0; Zn < Nt.colspan; Zn++)
42322
42323
  for (let js = 0; js < Nt.rowspan; js++) {
42323
- const _a = Z + js, kr = Ye + Wn, Pc = Gc(_a, kr);
42324
+ const _a = Z + js, kr = Ye + Zn, Pc = Gc(_a, kr);
42324
42325
  m[Pc] = Tn, L = Math.max(L, kr + 1);
42325
42326
  }
42326
42327
  Qe.push(Tn);
@@ -42641,7 +42642,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42641
42642
  D.dom.nodeValue = L;
42642
42643
  }
42643
42644
  };
42644
- })(Nl, "text"), on = (i) => Ot.get(i), Vn = (i) => Ot.getOption(i), ar = (i, m) => Ot.set(i, m), Bo = (i) => es(i) === "img" ? 1 : Vn(i).fold(() => Do(i).length, (m) => m.length), Bs = (i) => Vn(i).filter((m) => m.trim().length !== 0 || m.indexOf(We) > -1).isSome(), mc = (i) => gn(i) && Vr(i, "contenteditable") === "false", Gl = [
42645
+ })(Nl, "text"), on = (i) => Ot.get(i), Vn = (i) => Ot.getOption(i), ar = (i, m) => Ot.set(i, m), Bo = (i) => es(i) === "img" ? 1 : Vn(i).fold(() => Do(i).length, (m) => m.length), Bs = (i) => Vn(i).filter((m) => m.trim().length !== 0 || m.indexOf(We) > -1).isSome(), mc = (i) => hn(i) && Vr(i, "contenteditable") === "false", Gl = [
42645
42646
  "img",
42646
42647
  "br"
42647
42648
  ], Xc = (i) => Bs(i) || Vt(Gl, es(i)) || mc(i), Ld = (i) => Cr(i, Xc), cu = (i) => Ug(i, Xc), Ug = (i, m) => {
@@ -43515,8 +43516,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43515
43516
  continue;
43516
43517
  }
43517
43518
  iC(m, Rt, Nt, _) && ql(m, mr(m[Rt], Nt), _, v.cell);
43518
- const Ye = Nt - Z - Qe, Jt = ha(h[Rt - L], Ye), Tn = Jt.element, Wn = v.replace(Tn);
43519
- Pd(m[Rt], Nt, Ne(Wn, !0, Jt.isLocked));
43519
+ const Ye = Nt - Z - Qe, Jt = ha(h[Rt - L], Ye), Tn = Jt.element, Zn = v.replace(Tn);
43520
+ Pd(m[Rt], Nt, Ne(Zn, !0, Jt.isLocked));
43520
43521
  }
43521
43522
  }
43522
43523
  return m;
@@ -44066,7 +44067,7 @@ Required: ` + m.join(", "));
44066
44067
  effect: em
44067
44068
  }));
44068
44069
  }) : fe.none();
44069
- }, at = De(xC, _, Pt, to), Mt = De(Ai, D, Pt, to), Rt = De(U1, je, Pt, to), Qe = De(qd, je, Pt, to), Nt = De(Mu, je, Z, to), Ye = De(Ht, je, Z, to), Jt = De(JT, je, Pt, to), Tn = De(Yl, je, Pt, to), Wn = De(QT, je, Pt, to), js = De(eE, je, Pt, to), _a = De(f2, je, Pt, to), kr = De(tE, je, Pt, to), Pc = De(W1, je, Pt, p2), fh = De(XT, je, Pt, to), gh = De(m2, je, Pt, to), uw = De(CC, je, Pt, to), Tv = De(i2, je, Pt, to), ds = De(SC, je, Pt, to), Ql = De(u2, je, Pt, to), hl = De(d2, je, Pt, to);
44070
+ }, at = De(xC, _, Pt, to), Mt = De(Ai, D, Pt, to), Rt = De(U1, je, Pt, to), Qe = De(qd, je, Pt, to), Nt = De(Mu, je, Z, to), Ye = De(Ht, je, Z, to), Jt = De(JT, je, Pt, to), Tn = De(Yl, je, Pt, to), Zn = De(QT, je, Pt, to), js = De(eE, je, Pt, to), _a = De(f2, je, Pt, to), kr = De(tE, je, Pt, to), Pc = De(W1, je, Pt, p2), fh = De(XT, je, Pt, to), gh = De(m2, je, Pt, to), uw = De(CC, je, Pt, to), Tv = De(i2, je, Pt, to), ds = De(SC, je, Pt, to), Ql = De(u2, je, Pt, to), hl = De(d2, je, Pt, to);
44070
44071
  return {
44071
44072
  deleteRow: at,
44072
44073
  deleteColumn: Mt,
@@ -44076,7 +44077,7 @@ Required: ` + m.join(", "));
44076
44077
  insertColumnsAfter: Ye,
44077
44078
  mergeCells: Jt,
44078
44079
  unmergeCells: Tn,
44079
- pasteColsBefore: Wn,
44080
+ pasteColsBefore: Zn,
44080
44081
  pasteColsAfter: js,
44081
44082
  pasteRowsBefore: _a,
44082
44083
  pasteRowsAfter: kr,
@@ -44310,13 +44311,13 @@ Required: ` + m.join(", "));
44310
44311
  if (ua(Jt, Tn), or(Jt), i.dom.isEmpty(i.getBody()))
44311
44312
  i.setContent(""), i.selection.setCursorLocation();
44312
44313
  else {
44313
- const Wn = i.dom.createRng();
44314
- Wn.setStart(Tn.dom, 0), Wn.setEnd(Tn.dom, 0), i.selection.setRng(Wn), i.nodeChanged();
44314
+ const Zn = i.dom.createRng();
44315
+ Zn.setStart(Tn.dom, 0), Zn.setEnd(Tn.dom, 0), i.selection.setRng(Zn), i.nodeChanged();
44315
44316
  }
44316
44317
  });
44317
44318
  }), _ = (Ye) => E2(i).each((Jt) => {
44318
- Gg(i) || Df(i) || sd(i) || sl(Jt, h).each((Wn) => {
44319
- Ye === "relative" && !j1(Wn) ? uu(Wn) : Ye === "fixed" && !G1(Wn) ? yp(Wn) : Ye === "responsive" && !Kb(Wn) && K1(Wn), ad(Wn), sh(i, Wn.dom, to);
44319
+ Gg(i) || Df(i) || sd(i) || sl(Jt, h).each((Zn) => {
44320
+ Ye === "relative" && !j1(Zn) ? uu(Zn) : Ye === "fixed" && !G1(Zn) ? yp(Zn) : Ye === "responsive" && !Kb(Zn) && K1(Zn), ad(Zn), sh(i, Zn.dom, to);
44320
44321
  });
44321
44322
  }), D = (Ye) => sl(Ye, h), L = (Ye) => CE(i).bind((Jt) => D(Jt).map((Tn) => Ye(Tn, Jt))), Z = (Ye, Jt) => {
44322
44323
  L((Tn) => {
@@ -44324,8 +44325,8 @@ Required: ` + m.join(", "));
44324
44325
  });
44325
44326
  }, ee = (Ye, Jt) => {
44326
44327
  L((Tn) => {
44327
- const Wn = iu(i), _a = zo(Wn, (kr) => i.formatter.match("tablecellclass", { value: Jt }, kr.dom)) ? i.formatter.remove : i.formatter.apply;
44328
- ot(Wn, (kr) => _a("tablecellclass", { value: Jt }, kr.dom)), sh(i, Tn.dom, Zm);
44328
+ const Zn = iu(i), _a = zo(Zn, (kr) => i.formatter.match("tablecellclass", { value: Jt }, kr.dom)) ? i.formatter.remove : i.formatter.apply;
44329
+ ot(Zn, (kr) => _a("tablecellclass", { value: Jt }, kr.dom)), sh(i, Tn.dom, Zm);
44329
44330
  });
44330
44331
  }, ie = () => {
44331
44332
  E2(i).each((Ye) => {
@@ -44334,29 +44335,29 @@ Required: ` + m.join(", "));
44334
44335
  const Tn = Te.fromTag("caption");
44335
44336
  ns(Tn, Te.fromText("Caption")), Ra(Jt, Tn, 0), i.selection.setCursorLocation(Tn.dom, 0);
44336
44337
  }, (Tn) => {
44337
- xr("caption")(Ye) && Ki("td", Jt).each((Wn) => i.selection.setCursorLocation(Wn.dom, 0)), or(Tn);
44338
+ xr("caption")(Ye) && Ki("td", Jt).each((Zn) => i.selection.setCursorLocation(Zn.dom, 0)), or(Tn);
44338
44339
  }), sh(i, Jt.dom, to);
44339
44340
  });
44340
44341
  });
44341
44342
  }, De = (Ye) => {
44342
44343
  i.focus();
44343
- }, at = (Ye, Jt = !1) => L((Tn, Wn) => {
44344
- const js = qh(iu(i), Tn, Wn);
44344
+ }, at = (Ye, Jt = !1) => L((Tn, Zn) => {
44345
+ const js = qh(iu(i), Tn, Zn);
44345
44346
  Ye(Tn, js, Jt).each(De);
44346
44347
  }), Mt = () => L((Ye, Jt) => {
44347
- const Tn = qh(iu(i), Ye, Jt), Wn = va(Pt, Te.fromDom(i.getDoc()), fe.none());
44348
- return aE(Ye, Tn, Wn);
44348
+ const Tn = qh(iu(i), Ye, Jt), Zn = va(Pt, Te.fromDom(i.getDoc()), fe.none());
44349
+ return aE(Ye, Tn, Zn);
44349
44350
  }), Rt = () => L((Ye, Jt) => {
44350
44351
  const Tn = qh(iu(i), Ye, Jt);
44351
44352
  return rE(Ye, Tn);
44352
44353
  }), Qe = (Ye, Jt) => Jt().each((Tn) => {
44353
- const Wn = dn(Tn, (js) => Hl(js));
44354
+ const Zn = dn(Tn, (js) => Hl(js));
44354
44355
  L((js, _a) => {
44355
- const kr = il(Te.fromDom(i.getDoc())), Pc = Kh(iu(i), _a, Wn, kr);
44356
+ const kr = il(Te.fromDom(i.getDoc())), Pc = Kh(iu(i), _a, Zn, kr);
44356
44357
  Ye(js, Pc).each(De);
44357
44358
  });
44358
- }), Nt = (Ye) => (Jt, Tn) => ji(Tn, "type").each((Wn) => {
44359
- at(Ye(Wn), Tn.no_events);
44359
+ }), Nt = (Ye) => (Jt, Tn) => ji(Tn, "type").each((Zn) => {
44360
+ at(Ye(Zn), Tn.no_events);
44360
44361
  });
44361
44362
  Lo({
44362
44363
  mceTableSplitCells: () => at(m.unmergeCells),
@@ -44402,16 +44403,16 @@ Required: ` + m.join(", "));
44402
44403
  const Tn = (_a) => "tablecell" + _a.toLowerCase().replace("-", "");
44403
44404
  if (!Q(Jt))
44404
44405
  return;
44405
- const Wn = ao(iu(i), vb);
44406
- if (Wn.length === 0)
44406
+ const Zn = ao(iu(i), vb);
44407
+ if (Zn.length === 0)
44407
44408
  return;
44408
44409
  const js = yr(Jt, (_a, kr) => i.formatter.has(Tn(kr)) && Ae(_a));
44409
44410
  wc(js) || (Lo(js, (_a, kr) => {
44410
44411
  const Pc = Tn(kr);
44411
- ot(Wn, (fh) => {
44412
+ ot(Zn, (fh) => {
44412
44413
  _a === "" ? i.formatter.remove(Pc, { value: null }, fh.dom, !0) : i.formatter.apply(Pc, { value: _a }, fh.dom);
44413
44414
  });
44414
- }), D(Wn[0]).each((_a) => sh(i, _a.dom, Zm)));
44415
+ }), D(Zn[0]).each((_a) => sh(i, _a.dom, Zm)));
44415
44416
  });
44416
44417
  }, SE = (i, m) => {
44417
44418
  const h = Fd(i), v = (_) => $1(_i(i)).bind((D) => sl(D, h).map((L) => {
@@ -44866,8 +44867,8 @@ Required: ` + m.join(", "));
44866
44867
  }, Np = (i) => ({
44867
44868
  elementFromPoint: (Ye, Jt) => Te.fromPoint(Te.fromDom(i.document), Ye, Jt),
44868
44869
  getRect: (Ye) => Ye.dom.getBoundingClientRect(),
44869
- getRangedRect: (Ye, Jt, Tn, Wn) => {
44870
- const js = Xf.exact(Ye, Jt, Tn, Wn);
44870
+ getRangedRect: (Ye, Jt, Tn, Zn) => {
44871
+ const js = Xf.exact(Ye, Jt, Tn, Zn);
44871
44872
  return ZE(i, js);
44872
44873
  },
44873
44874
  getSelection: () => q2(i).map((Ye) => $2(i, Ye)),
@@ -44880,11 +44881,11 @@ Required: ` + m.join(", "));
44880
44881
  pv(i);
44881
44882
  },
44882
44883
  collapseSelection: (Ye = !1) => {
44883
- q2(i).each((Jt) => Jt.fold((Tn) => Tn.collapse(Ye), (Tn, Wn) => {
44884
- const js = Ye ? Tn : Wn;
44884
+ q2(i).each((Jt) => Jt.fold((Tn) => Tn.collapse(Ye), (Tn, Zn) => {
44885
+ const js = Ye ? Tn : Zn;
44885
44886
  hv(i, js, js);
44886
- }, (Tn, Wn, js, _a) => {
44887
- const kr = Ye ? Tn : js, Pc = Ye ? Wn : _a;
44887
+ }, (Tn, Zn, js, _a) => {
44888
+ const kr = Ye ? Tn : js, Pc = Ye ? Zn : _a;
44888
44889
  gv(i, kr, Pc, kr, Pc);
44889
44890
  }));
44890
44891
  },
@@ -44916,20 +44917,20 @@ Required: ` + m.join(", "));
44916
44917
  mouseover: D.mouseover,
44917
44918
  mouseup: D.mouseup
44918
44919
  };
44919
- }, bv = (i) => Ua(i, gn).exists(Of), d0 = (i, m) => bv(i) || bv(m), vv = (i, m, h, v) => {
44920
+ }, bv = (i) => Ua(i, hn).exists(Of), d0 = (i, m) => bv(i) || bv(m), vv = (i, m, h, v) => {
44920
44921
  const _ = Np(i), D = () => (v.clear(m), fe.none());
44921
44922
  return {
44922
44923
  keydown: (ee, ie, De, at, Mt, Rt) => {
44923
44924
  const Qe = ee.raw, Nt = Qe.which, Ye = Qe.shiftKey === !0;
44924
44925
  return Lm(m, v.selectedSelector).fold(() => (uh(Nt) && !Ye && v.clearBeforeUpdate(m), uh(Nt) && Ye && !d0(ie, at) ? fe.none : dv(Nt) && Ye ? Qn(nS, _, m, h, iv, at, ie, v.selectRange) : uv(Nt) && Ye ? Qn(nS, _, m, h, Mp, at, ie, v.selectRange) : dv(Nt) ? Qn(fd, _, h, iv, at, ie, z2) : uv(Nt) ? Qn(fd, _, h, Mp, at, ie, ih) : fe.none), (Tn) => {
44925
- const Wn = (js) => () => Go(js, (kr) => RE(kr.rows, kr.cols, m, Tn, v)).fold(() => Kg(m, v.firstSelectedSelector, v.lastSelectedSelector).map((kr) => {
44926
+ const Zn = (js) => () => Go(js, (kr) => RE(kr.rows, kr.cols, m, Tn, v)).fold(() => Kg(m, v.firstSelectedSelector, v.lastSelectedSelector).map((kr) => {
44926
44927
  const Pc = dv(Nt) || Rt.isForward(Nt) ? qa.after : qa.before;
44927
44928
  return _.setRelativeSelection(qa.on(kr.first, 0), Pc(kr.table)), v.clear(m), Cp.create(fe.none(), !0);
44928
44929
  }), (kr) => fe.some(Cp.create(fe.none(), !0)));
44929
- return uh(Nt) && Ye && !d0(ie, at) ? fe.none : dv(Nt) && Ye ? Wn([gl(1, 0)]) : uv(Nt) && Ye ? Wn([gl(-1, 0)]) : Rt.isBackward(Nt) && Ye ? Wn([
44930
+ return uh(Nt) && Ye && !d0(ie, at) ? fe.none : dv(Nt) && Ye ? Zn([gl(1, 0)]) : uv(Nt) && Ye ? Zn([gl(-1, 0)]) : Rt.isBackward(Nt) && Ye ? Zn([
44930
44931
  gl(0, -1),
44931
44932
  gl(-1, 0)
44932
- ]) : Rt.isForward(Nt) && Ye ? Wn([
44933
+ ]) : Rt.isForward(Nt) && Ye ? Zn([
44933
44934
  gl(0, 1),
44934
44935
  gl(1, 0)
44935
44936
  ]) : uh(Nt) && !Ye ? D : fe.none;
@@ -45097,7 +45098,7 @@ Required: ` + m.join(", "));
45097
45098
  Jt(Ql, eg);
45098
45099
  });
45099
45100
  }
45100
- }, Wn = (ds) => {
45101
+ }, Zn = (ds) => {
45101
45102
  const Ql = Fp(ds);
45102
45103
  m.hide();
45103
45104
  const hl = i.selection.getRng(), Mi = Te.fromDom(hl.startContainer), li = Te.fromDom(hl.endContainer), eg = zh(FE, oS)(Te.fromDom(i.selection.getStart()));
@@ -45123,7 +45124,7 @@ Required: ` + m.join(", "));
45123
45124
  ds.set(li), Ql.set(Mi.timeStamp);
45124
45125
  } };
45125
45126
  })();
45126
- i.on("dragstart", kr), i.on("mousedown", Pc), i.on("mouseover", fh), i.on("mouseup", gh), i.on("touchend", Tv.touchEnd), i.on("keyup", Tn), i.on("keydown", Wn), i.on("NodeChange", Mt);
45127
+ i.on("dragstart", kr), i.on("mousedown", Pc), i.on("mouseover", fh), i.on("mouseup", gh), i.on("touchend", Tv.touchEnd), i.on("keyup", Tn), i.on("keydown", Zn), i.on("NodeChange", Mt);
45127
45128
  }), i.on("PreInit", () => {
45128
45129
  i.serializer.addTempAttr(Yg.firstSelected), i.serializer.addTempAttr(Yg.lastSelected);
45129
45130
  }), {
@@ -45605,11 +45606,11 @@ Required: ` + m.join(", "));
45605
45606
  const Jt = Qi(Nt, "e");
45606
45607
  if (D === "" && uu(Qe), Ye !== _ && D !== "") {
45607
45608
  Zs(Qe, "width", D);
45608
- const Tn = Z(), Wn = L(Qe), js = qx(i) || Jt ? ee(Qe) - 1 : 0;
45609
- I1(Qe, Ye - _, js, Tn, Wn);
45609
+ const Tn = Z(), Zn = L(Qe), js = qx(i) || Jt ? ee(Qe) - 1 : 0;
45610
+ I1(Qe, Ye - _, js, Tn, Zn);
45610
45611
  } else if (bb(D)) {
45611
- const Tn = parseFloat(D.replace("%", "")), Wn = Ye * Tn / _;
45612
- Zs(Qe, "width", Wn + "%");
45612
+ const Tn = parseFloat(D.replace("%", "")), Zn = Ye * Tn / _;
45613
+ Zs(Qe, "width", Zn + "%");
45613
45614
  }
45614
45615
  T1(D) && d4(Qe);
45615
45616
  }, De = () => {
@@ -45629,10 +45630,10 @@ Required: ` + m.join(", "));
45629
45630
  const Tn = Jt.table.dom;
45630
45631
  h2(i, Tn, Rf(Tn), $f(Tn), $i + Jt.type);
45631
45632
  }), Ye.events.afterResize.bind((Jt) => {
45632
- const Tn = Jt.table, Wn = Tn.dom;
45633
+ const Tn = Jt.table, Zn = Tn.dom;
45633
45634
  ad(Tn), m.on((js) => {
45634
45635
  i.selection.setRng(js), i.focus();
45635
- }), sE(i, Wn, Rf(Wn), $f(Wn), $i + Jt.type), i.undoManager.add();
45636
+ }), sE(i, Zn, Rf(Zn), $f(Zn), $i + Jt.type), i.undoManager.add();
45636
45637
  }), h.set(Ye);
45637
45638
  }
45638
45639
  }), i.on("ObjectResizeStart", (Qe) => {
@@ -45691,7 +45692,7 @@ Required: ` + m.join(", "));
45691
45692
  }, se = (S) => {
45692
45693
  const $ = typeof S;
45693
45694
  return S === null ? "null" : $ === "object" && Array.isArray(S) ? "array" : $ === "object" && de(S, String, (U, ae) => ae.isPrototypeOf(U)) ? "string" : $;
45694
- }, Ee = (S) => ($) => se($) === S, ge = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = ge("boolean"), lt = (S) => S == null, $t = (S) => !lt(S), _n = ge("function"), Gn = ge("number"), Ro = () => {
45695
+ }, Ee = (S) => ($) => se($) === S, ge = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = ge("boolean"), lt = (S) => S == null, $t = (S) => !lt(S), _n = ge("function"), Wn = ge("number"), Ro = () => {
45695
45696
  }, Gs = (S, $) => (U) => S($(U)), Io = (S) => () => S, Pt = (S, $) => S === $;
45696
45697
  function pr(S, ...$) {
45697
45698
  return (...U) => {
@@ -45797,7 +45798,7 @@ Required: ` + m.join(", "));
45797
45798
  $(it, ae) && U.push(it);
45798
45799
  }
45799
45800
  return U;
45800
- }, hn = (S, $) => {
45801
+ }, gn = (S, $) => {
45801
45802
  if (S.length === 0)
45802
45803
  return [];
45803
45804
  {
@@ -45976,7 +45977,7 @@ Required: ` + m.join(", "));
45976
45977
  const U = {};
45977
45978
  return Yi(S, $, nl(U), Ro), U;
45978
45979
  }, ks = (S, $, U) => {
45979
- if (G(U) || Pe(U) || Gn(U))
45980
+ if (G(U) || Pe(U) || Wn(U))
45980
45981
  S.setAttribute($, U + "");
45981
45982
  else
45982
45983
  throw console.error("Invalid call to Attribute.set. Key ", $, ":: Value ", U, ":: Element ", S), new Error("Attribute value was not simple");
@@ -46285,7 +46286,7 @@ Required: ` + m.join(", "));
46285
46286
  }, kg = (S, $) => {
46286
46287
  const U = Zc($);
46287
46288
  return wf(S.contentDocument, U).toArray();
46288
- }, Tg = (S, $) => Ao(hn($, Pa), (U) => jo(U).exists(Pa) ? kg(S, U) : eu(S, U)), Eg = (S, $) => {
46289
+ }, Tg = (S, $) => Ao(gn($, Pa), (U) => jo(U).exists(Pa) ? kg(S, U) : eu(S, U)), Eg = (S, $) => {
46289
46290
  fe(Wt(S, fa), (U) => Cm($, U));
46290
46291
  }, Yu = (S) => {
46291
46292
  const $ = je(I(S), yn.fromDom);
@@ -46839,7 +46840,7 @@ Required: ` + m.join(", "));
46839
46840
  }, se = (j) => {
46840
46841
  const ue = typeof j;
46841
46842
  return j === null ? "null" : ue === "object" && Array.isArray(j) ? "array" : ue === "object" && de(j, String, (ke, Ne) => Ne.isPrototypeOf(ke)) ? "string" : ue;
46842
- }, Ee = (j) => (ue) => se(ue) === j, ge = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), _n = (j) => j == null, Gn = (j) => !_n(j), Ro = ge("function"), Gs = (j, ue) => {
46843
+ }, Ee = (j) => (ue) => se(ue) === j, ge = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), _n = (j) => j == null, Wn = (j) => !_n(j), Ro = ge("function"), Gs = (j, ue) => {
46843
46844
  if (Pe(j)) {
46844
46845
  for (let ke = 0, Ne = j.length; ke < Ne; ++ke)
46845
46846
  if (!ue(j[ke]))
@@ -46901,7 +46902,7 @@ Required: ` + m.join(", "));
46901
46902
  throw new Error(ue ?? "Called getOrDie on None");
46902
46903
  }
46903
46904
  static from(ue) {
46904
- return Gn(ue) ? un.some(ue) : un.none();
46905
+ return Wn(ue) ? un.some(ue) : un.none();
46905
46906
  }
46906
46907
  getOrNull() {
46907
46908
  return this.tag ? this.value : null;
@@ -46949,7 +46950,7 @@ Required: ` + m.join(", "));
46949
46950
  return Ne;
46950
46951
  }
46951
46952
  return un.none();
46952
- }, Wt = (j, ue, ke = pr) => j.exists((Ne) => ke(Ne, ue)), hn = (j) => {
46953
+ }, Wt = (j, ue, ke = pr) => j.exists((Ne) => ke(Ne, ue)), gn = (j) => {
46953
46954
  const ue = [], ke = (Ne) => {
46954
46955
  ue.push(Ne);
46955
46956
  };
@@ -47048,7 +47049,7 @@ Required: ` + m.join(", "));
47048
47049
  return Tr(j, ue, Ft(ke), Io), ke;
47049
47050
  }, Va = (j, ue) => yn.call(j, ue), hs = (j, ue) => Va(j, ue) && j[ue] !== void 0 && j[ue] !== null;
47050
47051
  var vr = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"), yc = tinymce.util.Tools.resolve("tinymce.util.URI");
47051
- const yr = (j) => Gn(j) && j.nodeName.toLowerCase() === "a", Qs = (j) => yr(j) && !!us(j), ps = (j, ue) => {
47052
+ const yr = (j) => Wn(j) && j.nodeName.toLowerCase() === "a", Qs = (j) => yr(j) && !!us(j), ps = (j, ue) => {
47052
47053
  if (j.collapsed)
47053
47054
  return [];
47054
47055
  {
@@ -47074,7 +47075,7 @@ Required: ` + m.join(", "));
47074
47075
  return !1;
47075
47076
  const mt = j.selection.getRng();
47076
47077
  return mt.collapsed ? !0 : ps(mt, ke).length === 0;
47077
- }, fo = (j) => Gn(j) && j.nodeName === "FIGURE" && /\bimage\b/i.test(j.className), Er = (j) => os([
47078
+ }, fo = (j) => Wn(j) && j.nodeName === "FIGURE" && /\bimage\b/i.test(j.className), Er = (j) => os([
47078
47079
  "title",
47079
47080
  "rel",
47080
47081
  "class",
@@ -47116,7 +47117,7 @@ Required: ` + m.join(", "));
47116
47117
  const ue = j.selection.getNode();
47117
47118
  fo(ue) ? mi(j, ue) : bl(j), j.focus();
47118
47119
  });
47119
- }, gn = (j) => {
47120
+ }, hn = (j) => {
47120
47121
  const {
47121
47122
  class: ue,
47122
47123
  href: ke,
@@ -47145,7 +47146,7 @@ Required: ` + m.join(", "));
47145
47146
  };
47146
47147
  }, Nl = (j, ue, ke) => {
47147
47148
  const Ne = Ar(j, ke);
47148
- j.hasPlugin("rtc", !0) ? j.execCommand("createlink", !1, gn(Ne)) : tl(j, ue, Ne);
47149
+ j.hasPlugin("rtc", !0) ? j.execCommand("createlink", !1, hn(Ne)) : tl(j, ue, Ne);
47149
47150
  }, Hc = (j) => {
47150
47151
  j.hasPlugin("rtc", !0) ? j.execCommand("unlink") : Yo(j);
47151
47152
  }, mi = (j, ue) => {
@@ -47376,7 +47377,7 @@ Required: ` + m.join(", "));
47376
47377
  Ne,
47377
47378
  mt,
47378
47379
  mn,
47379
- hn([
47380
+ gn([
47380
47381
  Wo.anchor.map(Ke.createUi("anchor", "Anchors")),
47381
47382
  Wo.rels.map(Ke.createUi("rel", "Rel")),
47382
47383
  Wo.targets.map(Ke.createUi("target", "Open link in...")),
@@ -47596,7 +47597,7 @@ Required: ` + m.join(", "));
47596
47597
  }, Ee = (I) => {
47597
47598
  const Y = typeof I;
47598
47599
  return I === null ? "null" : Y === "object" && Array.isArray(I) ? "array" : Y === "object" && se(I, String, (re, Le) => Le.isPrototypeOf(re)) ? "string" : Y;
47599
- }, ge = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => lt(I) && se(I, Y, (re, Le) => de(re) === Le), Pe = ge("string"), lt = ge("object"), $t = (I) => Q(I, Object), _n = ge("array"), Gn = Ae(null), Ro = G("boolean"), Gs = (I) => I == null, Io = (I) => !Gs(I), Pt = G("function"), pr = G("number"), un = (I, Y) => {
47600
+ }, ge = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => lt(I) && se(I, Y, (re, Le) => de(re) === Le), Pe = ge("string"), lt = ge("object"), $t = (I) => Q(I, Object), _n = ge("array"), Wn = Ae(null), Ro = G("boolean"), Gs = (I) => I == null, Io = (I) => !Gs(I), Pt = G("function"), pr = G("number"), un = (I, Y) => {
47600
47601
  if (_n(I)) {
47601
47602
  for (let re = 0, Le = I.length; re < Le; ++re)
47602
47603
  if (!Y(I[re]))
@@ -47692,7 +47693,7 @@ Required: ` + m.join(", "));
47692
47693
  }, Bn = (I, Y) => {
47693
47694
  const re = {};
47694
47695
  return os(I, Y, Nn(re), me), re;
47695
- }, je = (I, Y) => Qn.call(I, Y), fe = (I, Y) => je(I, Y) && I[Y] !== void 0 && I[Y] !== null, Wt = Array.prototype.push, hn = (I) => {
47696
+ }, je = (I, Y) => Qn.call(I, Y), fe = (I, Y) => je(I, Y) && I[Y] !== void 0 && I[Y] !== null, Wt = Array.prototype.push, gn = (I) => {
47696
47697
  const Y = [];
47697
47698
  for (let re = 0, Le = I.length; re < Le; ++re) {
47698
47699
  if (!_n(I[re]))
@@ -47871,7 +47872,7 @@ Required: ` + m.join(", "));
47871
47872
  }, Yo = (I, Y) => {
47872
47873
  const re = Qs(Y);
47873
47874
  I.style.borderWidth = re;
47874
- }, gn = (I, Y) => {
47875
+ }, hn = (I, Y) => {
47875
47876
  I.style.borderStyle = Y;
47876
47877
  }, Ar = (I) => {
47877
47878
  var Y;
@@ -47893,7 +47894,7 @@ Required: ` + m.join(", "));
47893
47894
  }), Us = (I, Y) => {
47894
47895
  var re;
47895
47896
  const Le = document.createElement("img");
47896
- return bt(Le, "style", Y.style), (wr(Le) || Y.hspace !== "") && tl(Le, Y.hspace), (Pl(Le) || Y.vspace !== "") && bl(Le, Y.vspace), (di(Le) || Y.border !== "") && Yo(Le, Y.border), (Ar(Le) || Y.borderStyle !== "") && gn(Le, Y.borderStyle), I((re = Le.getAttribute("style")) !== null && re !== void 0 ? re : "");
47897
+ return bt(Le, "style", Y.style), (wr(Le) || Y.hspace !== "") && tl(Le, Y.hspace), (Pl(Le) || Y.vspace !== "") && bl(Le, Y.vspace), (di(Le) || Y.border !== "") && Yo(Le, Y.border), (Ar(Le) || Y.borderStyle !== "") && hn(Le, Y.borderStyle), I((re = Le.getAttribute("style")) !== null && re !== void 0 ? re : "");
47897
47898
  }, vl = (I, Y) => {
47898
47899
  const re = document.createElement("img");
47899
47900
  if (sc(I, {
@@ -47926,7 +47927,7 @@ Required: ` + m.join(", "));
47926
47927
  const Le = tt.fromDom(I);
47927
47928
  Ao(Le, "alt", "");
47928
47929
  } else {
47929
- if (Gn(Y)) {
47930
+ if (Wn(Y)) {
47930
47931
  const Le = tt.fromDom(I);
47931
47932
  dn(Le, "alt");
47932
47933
  } else {
@@ -47941,7 +47942,7 @@ Required: ` + m.join(", "));
47941
47942
  I(re, Dt), Bl(re, Y);
47942
47943
  }, sc = (I, Y, re) => {
47943
47944
  const Le = qi(I, re);
47944
- Vr(re, Le, Y, "caption", (Dt, Xn, qt) => Aa(Dt)), Vr(re, Le, Y, "src", bt), Vr(re, Le, Y, "title", bt), Vr(re, Le, Y, "width", Da("width", I)), Vr(re, Le, Y, "height", Da("height", I)), Vr(re, Le, Y, "class", bt), Vr(re, Le, Y, "style", Dr((Dt, Xn) => bt(Dt, "style", Xn), I)), Vr(re, Le, Y, "hspace", Dr(tl, I)), Vr(re, Le, Y, "vspace", Dr(bl, I)), Vr(re, Le, Y, "border", Dr(Yo, I)), Vr(re, Le, Y, "borderStyle", Dr(gn, I)), Is(re, Le, Y);
47945
+ Vr(re, Le, Y, "caption", (Dt, Xn, qt) => Aa(Dt)), Vr(re, Le, Y, "src", bt), Vr(re, Le, Y, "title", bt), Vr(re, Le, Y, "width", Da("width", I)), Vr(re, Le, Y, "height", Da("height", I)), Vr(re, Le, Y, "class", bt), Vr(re, Le, Y, "style", Dr((Dt, Xn) => bt(Dt, "style", Xn), I)), Vr(re, Le, Y, "hspace", Dr(tl, I)), Vr(re, Le, Y, "vspace", Dr(bl, I)), Vr(re, Le, Y, "border", Dr(Yo, I)), Vr(re, Le, Y, "borderStyle", Dr(hn, I)), Is(re, Le, Y);
47945
47946
  }, Vc = (I, Y) => {
47946
47947
  const re = I.dom.styles.parse(Y), Le = ps(re), Dt = I.dom.styles.parse(I.dom.styles.serialize(Le));
47947
47948
  return I.dom.styles.serialize(Dt);
@@ -48112,7 +48113,7 @@ Required: ` + m.join(", "));
48112
48113
  }) }, Ls = (I) => {
48113
48114
  const Y = ia.sanitizer((Ms) => I.convertURL(Ms.value || Ms.url || "", "src")), re = new Promise((Ms) => {
48114
48115
  ji(I, (pi) => {
48115
- Ms(Y(pi).map((Vs) => hn([
48116
+ Ms(Y(pi).map((Vs) => gn([
48116
48117
  [{
48117
48118
  text: "None",
48118
48119
  value: ""
@@ -48186,7 +48187,7 @@ Required: ` + m.join(", "));
48186
48187
  type: "grid",
48187
48188
  columns: 2
48188
48189
  } : { type: "panel" };
48189
- return hn([
48190
+ return gn([
48190
48191
  [Y],
48191
48192
  re.toArray(),
48192
48193
  I.hasAccessibilityOptions && I.hasDescription ? [qt] : [],
@@ -48195,7 +48196,7 @@ Required: ` + m.join(", "));
48195
48196
  I.hasDimensions ? [Xn] : [],
48196
48197
  [{
48197
48198
  ...as(I.classList.isSome() && I.hasImageCaption),
48198
- items: hn([
48199
+ items: gn([
48199
48200
  $s.toArray(),
48200
48201
  I.hasImageCaption ? [ct] : []
48201
48202
  ])
@@ -48330,7 +48331,7 @@ Required: ` + m.join(", "));
48330
48331
  I.open = !1;
48331
48332
  }, ju = (I) => I.hasAdvTab || I.hasUploadUrl || I.hasUploadHandler ? {
48332
48333
  type: "tabpanel",
48333
- tabs: hn([
48334
+ tabs: gn([
48334
48335
  [Xi.makeTab(I)],
48335
48336
  I.hasAdvTab ? [ua.makeTab(I)] : [],
48336
48337
  I.hasUploadTab && (I.hasUploadUrl || I.hasUploadHandler) ? [Or.makeTab(I)] : []
@@ -48465,7 +48466,7 @@ Required: ` + m.join(", "));
48465
48466
  }, se = (x) => {
48466
48467
  const T = typeof x;
48467
48468
  return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && de(x, String, (V, K) => K.isPrototypeOf(V)) ? "string" : T;
48468
- }, Ee = (x) => (T) => se(T) === x, ge = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = ge("boolean"), lt = G(void 0), $t = (x) => x == null, _n = (x) => !$t(x), Gn = ge("function"), Ro = ge("number"), Gs = () => {
48469
+ }, Ee = (x) => (T) => se(T) === x, ge = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = ge("boolean"), lt = G(void 0), $t = (x) => x == null, _n = (x) => !$t(x), Wn = ge("function"), Ro = ge("number"), Gs = () => {
48469
48470
  }, Io = (x, T) => (V) => x(T(V)), Pt = (x) => () => x, pr = (x) => x, un = (x, T) => x === T;
48470
48471
  function me(x, ...T) {
48471
48472
  return (...V) => {
@@ -48562,12 +48563,12 @@ Required: ` + m.join(", "));
48562
48563
  }, Wt = (x, T) => {
48563
48564
  const V = {};
48564
48565
  return fe(x, T, je(V), Gs), V;
48565
- }, hn = (x, T) => {
48566
+ }, gn = (x, T) => {
48566
48567
  const V = [];
48567
48568
  return Bn(x, (K, be) => {
48568
48569
  V.push(T(K, be));
48569
48570
  }), V;
48570
- }, Ge = (x) => hn(x, pr), A = (x) => Nn(x).length, Vt = (x, T) => et(x, T) ? oe.from(x[T]) : oe.none(), et = (x, T) => os.call(x, T), Ao = (x, T) => et(x, T) && x[T] !== void 0 && x[T] !== null, dn = (x) => {
48571
+ }, Ge = (x) => gn(x, pr), A = (x) => Nn(x).length, Vt = (x, T) => et(x, T) ? oe.from(x[T]) : oe.none(), et = (x, T) => os.call(x, T), Ao = (x, T) => et(x, T) && x[T] !== void 0 && x[T] !== null, dn = (x) => {
48571
48572
  for (const T in x)
48572
48573
  if (os.call(x, T))
48573
48574
  return !1;
@@ -48707,8 +48708,8 @@ Required: ` + m.join(", "));
48707
48708
  return wr(V) ? oe.none() : oe.from(V.querySelector(x)).map(Jn.fromDom);
48708
48709
  }, Qo = (x, T) => x.dom === T.dom, Gi = bs;
48709
48710
  typeof window < "u" || Function("return this;")();
48710
- const bt = (x) => x.dom.nodeName.toLowerCase(), fo = (x) => x.dom.nodeType, Er = (x) => (T) => fo(T) === x, Aa = (x) => fo(x) === hs || bt(x) === "#comment", Bl = Er(yr), Da = Er(Qs), es = Er(vr), tl = Er(yc), bl = (x) => (T) => Bl(T) && bt(T) === x, Yo = (x) => Jn.fromDom(x.dom.ownerDocument), gn = (x) => es(x) ? x : Yo(x), Ar = (x) => oe.from(x.dom.parentNode).map(Jn.fromDom), Nl = (x, T) => {
48711
- const V = Gn(T) ? T : Ea;
48711
+ const bt = (x) => x.dom.nodeName.toLowerCase(), fo = (x) => x.dom.nodeType, Er = (x) => (T) => fo(T) === x, Aa = (x) => fo(x) === hs || bt(x) === "#comment", Bl = Er(yr), Da = Er(Qs), es = Er(vr), tl = Er(yc), bl = (x) => (T) => Bl(T) && bt(T) === x, Yo = (x) => Jn.fromDom(x.dom.ownerDocument), hn = (x) => es(x) ? x : Yo(x), Ar = (x) => oe.from(x.dom.parentNode).map(Jn.fromDom), Nl = (x, T) => {
48712
+ const V = Wn(T) ? T : Ea;
48712
48713
  let K = x.dom;
48713
48714
  const be = [];
48714
48715
  for (; K.parentNode !== null && K.parentNode !== void 0; ) {
@@ -48721,7 +48722,7 @@ Required: ` + m.join(", "));
48721
48722
  }, Hc = (x) => oe.from(x.dom.previousSibling).map(Jn.fromDom), mi = (x) => oe.from(x.dom.nextSibling).map(Jn.fromDom), xr = (x) => pt(x.dom.childNodes, Jn.fromDom), dr = (x, T) => {
48722
48723
  const V = x.dom.childNodes;
48723
48724
  return oe.from(V[T]).map(Jn.fromDom);
48724
- }, Us = (x) => dr(x, 0), vl = (x) => tl(x) && _n(x.dom.host), Vr = Gn(Element.prototype.attachShadow) && Gn(Node.prototype.getRootNode) ? (x) => Jn.fromDom(x.dom.getRootNode()) : gn, ca = (x) => {
48725
+ }, Us = (x) => dr(x, 0), vl = (x) => tl(x) && _n(x.dom.host), Vr = Wn(Element.prototype.attachShadow) && Wn(Node.prototype.getRootNode) ? (x) => Jn.fromDom(x.dom.getRootNode()) : hn, ca = (x) => {
48725
48726
  const T = Vr(x);
48726
48727
  return vl(T) ? oe.some(T) : oe.none();
48727
48728
  }, Is = (x) => Jn.fromDom(x.dom.host), Dr = (x) => {
@@ -48731,10 +48732,10 @@ Required: ` + m.join(", "));
48731
48732
  const V = T.ownerDocument;
48732
48733
  return ca(Jn.fromDom(T)).fold(() => V.body.contains(T), Io(Dr, Is));
48733
48734
  };
48734
- var sc = (x, T, V, K, be) => x(V, K) ? oe.some(V) : Gn(be) && be(V) ? oe.none() : T(V, K, be);
48735
+ var sc = (x, T, V, K, be) => x(V, K) ? oe.some(V) : Wn(be) && be(V) ? oe.none() : T(V, K, be);
48735
48736
  const Vc = (x, T, V) => {
48736
48737
  let K = x.dom;
48737
- const be = Gn(V) ? V : Ea;
48738
+ const be = Wn(V) ? V : Ea;
48738
48739
  for (; K.parentNode; ) {
48739
48740
  K = K.parentNode;
48740
48741
  const We = Jn.fromDom(K);
@@ -48782,7 +48783,7 @@ Required: ` + m.join(", "));
48782
48783
  }, Sc = (x) => {
48783
48784
  const T = parseFloat(x);
48784
48785
  return isNaN(T) ? oe.none() : oe.some(T);
48785
- }, hi = (x) => x.style !== void 0 && Gn(x.style.getPropertyValue), pu = (x, T, V) => {
48786
+ }, hi = (x) => x.style !== void 0 && Wn(x.style.getPropertyValue), pu = (x, T, V) => {
48786
48787
  if (!Ae(V))
48787
48788
  throw console.error("Invalid call to CSS.set. Property ", T, ":: Value ", V, ":: Element ", x), new Error("CSS value must be a string: " + V);
48788
48789
  hi(x) && x.style.setProperty(T, V);
@@ -49151,7 +49152,7 @@ Required: ` + m.join(", "));
49151
49152
  "pre",
49152
49153
  "address"
49153
49154
  ], Rr = () => {
49154
- const x = (Vn) => Jn.fromDom(Vn.dom.cloneNode(!1)), T = (Vn) => gn(Vn).dom, V = (Vn) => Bl(Vn) ? bt(Vn) === "body" ? !0 : ao(ja, bt(Vn)) : !1, K = (Vn) => Bl(Vn) ? ao([
49155
+ const x = (Vn) => Jn.fromDom(Vn.dom.cloneNode(!1)), T = (Vn) => hn(Vn).dom, V = (Vn) => Bl(Vn) ? bt(Vn) === "body" ? !0 : ao(ja, bt(Vn)) : !1, K = (Vn) => Bl(Vn) ? ao([
49155
49156
  "br",
49156
49157
  "img",
49157
49158
  "hr",
@@ -50203,12 +50204,12 @@ Required: ` + T.join(", "));
50203
50204
  const V = (Ot) => () => x.execCommand(Ot), K = (Ot, on) => {
50204
50205
  x.queryCommandSupported(on.command) && x.ui.registry.addButton(Ot, {
50205
50206
  ...on,
50206
- onAction: Gn(on.onAction) ? on.onAction : V(on.command)
50207
+ onAction: Wn(on.onAction) ? on.onAction : V(on.command)
50207
50208
  });
50208
50209
  }, be = (Ot, on) => {
50209
50210
  x.queryCommandSupported(on.command) && x.ui.registry.addToggleButton(Ot, {
50210
50211
  ...on,
50211
- onAction: Gn(on.onAction) ? on.onAction : V(on.command)
50212
+ onAction: Wn(on.onAction) ? on.onAction : V(on.command)
50212
50213
  });
50213
50214
  };
50214
50215
  K("tableprops", {
@@ -50391,11 +50392,11 @@ Required: ` + T.join(", "));
50391
50392
  }, jl = (x, T) => {
50392
50393
  const V = (Bo) => () => x.execCommand(Bo), K = (Bo, Bs) => x.queryCommandSupported(Bs.command) ? (x.ui.registry.addMenuItem(Bo, {
50393
50394
  ...Bs,
50394
- onAction: Gn(Bs.onAction) ? Bs.onAction : V(Bs.command)
50395
+ onAction: Wn(Bs.onAction) ? Bs.onAction : V(Bs.command)
50395
50396
  }), !0) : !1, be = (Bo, Bs) => {
50396
50397
  x.queryCommandSupported(Bs.command) && x.ui.registry.addToggleMenuItem(Bo, {
50397
50398
  ...Bs,
50398
- onAction: Gn(Bs.onAction) ? Bs.onAction : V(Bs.command)
50399
+ onAction: Wn(Bs.onAction) ? Bs.onAction : V(Bs.command)
50399
50400
  });
50400
50401
  }, We = (Bo) => {
50401
50402
  x.execCommand("mceInsertTable", !1, {
@@ -50731,11 +50732,11 @@ Required: ` + T.join(", "));
50731
50732
  new RegExp(Ae.katakana),
50732
50733
  new RegExp(Ae.extendnumlet),
50733
50734
  new RegExp("@")
50734
- ], lt = "", $t = new RegExp("^" + Ae.punctuation + "$"), _n = /^\s+$/, Gn = Pe, Ro = Q.OTHER, Gs = (qe) => {
50735
+ ], lt = "", $t = new RegExp("^" + Ae.punctuation + "$"), _n = /^\s+$/, Wn = Pe, Ro = Q.OTHER, Gs = (qe) => {
50735
50736
  let At = Ro;
50736
- const Ke = Gn.length;
50737
+ const Ke = Wn.length;
50737
50738
  for (let _e = 0; _e < Ke; ++_e) {
50738
- const yn = Gn[_e];
50739
+ const yn = Wn[_e];
50739
50740
  if (yn && yn.test(qe)) {
50740
50741
  At = _e;
50741
50742
  break;
@@ -50806,11 +50807,11 @@ Required: ` + T.join(", "));
50806
50807
  const _e = ge(qe, At), yn = Pt(_e);
50807
50808
  return Nn(qe, _e, yn, Ke);
50808
50809
  }, fe = (qe, At, Ke) => Bn(qe, At, Ke).words, Wt = (qe) => qe.replace(/\uFEFF/g, "");
50809
- var hn = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");
50810
+ var gn = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");
50810
50811
  const Ge = (qe, At) => {
50811
50812
  const Ke = At.getBlockElements(), _e = At.getVoidElements(), yn = (Va) => Ke[Va.nodeName] || _e[Va.nodeName], Go = [];
50812
50813
  let Ft = "";
50813
- const Tr = new hn(qe, qe);
50814
+ const Tr = new gn(qe, qe);
50814
50815
  let Lo;
50815
50816
  for (; Lo = Tr.next(); )
50816
50817
  Lo.nodeType === 3 ? Ft += Wt(Lo.data) : yn(Lo) && Ft.length && (Go.push(Ft), Ft = "");
@@ -51509,9 +51510,9 @@ function kee(R, de, se, Ee, ge, G) {
51509
51510
  field: $t.field_name,
51510
51511
  xprops: se.xprops,
51511
51512
  tdProps: $t.tdProps,
51512
- onDeleteAction: de[3] || (de[3] = (Gn) => G.GetItemLists()),
51513
- onEditAction: (Gn) => G.editAction(Pe),
51514
- onGeneralAction: (Gn) => G.generalAction(Pe)
51513
+ onDeleteAction: de[3] || (de[3] = (Wn) => G.GetItemLists()),
51514
+ onEditAction: (Wn) => G.editAction(Pe),
51515
+ onGeneralAction: (Wn) => G.generalAction(Pe)
51515
51516
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), xe(vo, { key: 1 }, [
51516
51517
  _o(gt(Pe[$t.field_name]), 1)
51517
51518
  ], 64))
@@ -52137,22 +52138,22 @@ function Ute(R, de, se, Ee, ge, G) {
52137
52138
  key: _n,
52138
52139
  class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
52139
52140
  }, [
52140
- (ve(!0), xe(vo, null, hr(se.columns, (Gn, Ro) => (ve(), xe("td", {
52141
+ (ve(!0), xe(vo, null, hr(se.columns, (Wn, Ro) => (ve(), xe("td", {
52141
52142
  key: Ro,
52142
- "data-label": Gn.field_label,
52143
+ "data-label": Wn.field_label,
52143
52144
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
52144
52145
  }, [
52145
52146
  P("div", Vte, [
52146
- Gn.tdComp ? (ve(), Ty(o5(G.forDynCompIs(Gn.tdComp)), {
52147
+ Wn.tdComp ? (ve(), Ty(o5(G.forDynCompIs(Wn.tdComp)), {
52147
52148
  key: 0,
52148
52149
  row: $t,
52149
- field: Gn.field_name,
52150
+ field: Wn.field_name,
52150
52151
  xprops: se.xprops,
52151
- tdProps: Gn.tdProps,
52152
+ tdProps: Wn.tdProps,
52152
52153
  onDeleteAction: de[3] || (de[3] = (Gs) => G.GetItemLists()),
52153
52154
  onEditAction: (Gs) => G.editAction($t)
52154
52155
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ve(), xe(vo, { key: 1 }, [
52155
- _o(gt($t[Gn.field_name]), 1)
52156
+ _o(gt($t[Wn.field_name]), 1)
52156
52157
  ], 64))
52157
52158
  ])
52158
52159
  ], 8, Hte))), 128))
@@ -52496,8 +52497,8 @@ const Qae = /* @__PURE__ */ Jr(Rne, [["render", $ne]]), Mne = {
52496
52497
  var lt = (/* @__PURE__ */ new Date()).getTime();
52497
52498
  typeof performance < "u" && typeof performance.now == "function" && (lt += performance.now());
52498
52499
  var $t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(_n) {
52499
- var Gn = (lt + Math.random() * 16) % 16 | 0;
52500
- return lt = Math.floor(lt / 16), (_n === "x" ? Gn : Gn & 3 | 8).toString(16);
52500
+ var Wn = (lt + Math.random() * 16) % 16 | 0;
52501
+ return lt = Math.floor(lt / 16), (_n === "x" ? Wn : Wn & 3 | 8).toString(16);
52501
52502
  });
52502
52503
  return $t;
52503
52504
  })(), ge = { isOpen: R, id: Ee }, G = vc(() => de.accordions.value), Ae = vc(() => G.value.length > 0 && G.value[0].id === Ee), Q = vc(() => G.value.length > 0 && G.value[G.value.length - 1].id === Ee);
@@ -52750,7 +52751,7 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52750
52751
  console.log(_n);
52751
52752
  });
52752
52753
  };
52753
- return (_n, Gn) => {
52754
+ return (_n, Wn) => {
52754
52755
  const Ro = nq("click-outside");
52755
52756
  return ve(), xe(vo, null, [
52756
52757
  cb(Oj, {
@@ -52856,7 +52857,7 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52856
52857
  console.log(_n);
52857
52858
  });
52858
52859
  };
52859
- return (_n, Gn) => {
52860
+ return (_n, Wn) => {
52860
52861
  const Ro = nq("click-outside");
52861
52862
  return ve(), xe(vo, null, [
52862
52863
  cb(Oj, {
@@ -53513,7 +53514,7 @@ const yle = /* @__PURE__ */ Jr(cre, [["render", wre]]), xre = {
53513
53514
  }
53514
53515
  },
53515
53516
  setup(R, { expose: de }) {
53516
- const se = Vo(""), Ee = Vo(""), ge = Vo(""), G = Vo("Cancel"), Ae = Vo(!1), Q = Vo(void 0), Pe = Vo(void 0), lt = (Gn = {}) => (se.value = Gn.title, Ee.value = Gn.message, ge.value = Gn.okButton, Gn.cancelButton && (G.value = Gn.cancelButton), Ae.value = !0, new Promise((Ro, Gs) => {
53517
+ const se = Vo(""), Ee = Vo(""), ge = Vo(""), G = Vo("Cancel"), Ae = Vo(!1), Q = Vo(void 0), Pe = Vo(void 0), lt = (Wn = {}) => (se.value = Wn.title, Ee.value = Wn.message, ge.value = Wn.okButton, Wn.cancelButton && (G.value = Wn.cancelButton), Ae.value = !0, new Promise((Ro, Gs) => {
53517
53518
  Q.value = Ro, Pe.value = Gs;
53518
53519
  })), $t = () => {
53519
53520
  Ae.value = !1, Q.value(!0);
@@ -53522,7 +53523,7 @@ const yle = /* @__PURE__ */ Jr(cre, [["render", wre]]), xre = {
53522
53523
  };
53523
53524
  return de({
53524
53525
  show: lt
53525
- }), (Gn, Ro) => Ae.value ? (ve(), xe("div", xre, [
53526
+ }), (Wn, Ro) => Ae.value ? (ve(), xe("div", xre, [
53526
53527
  P("div", Cre, [
53527
53528
  Sre,
53528
53529
  _re,