golden-logic-ui 1.0.306 → 1.0.308

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.
@@ -514,17 +514,17 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
514
514
  },
515
515
  emits: ["update:modelValue", "selected", "selectionChanged"],
516
516
  setup(R, { emit: me }) {
517
- const se = R, Ee = me, fe = No(null), G = No([]), Ae = No([]), Q = No(0), Pe = No(!1), it = No(""), $t = No("");
517
+ const se = R, Ee = me, fe = No(null), G = No([]), Ae = No([]), Q = No(0), Pe = No(!1), it = No(""), Dt = No("");
518
518
  Oh(() => {
519
- $t.value = Oo(), se.show || (document.body.addEventListener("click", (Ue) => {
519
+ Dt.value = Oo(), se.show || (document.body.addEventListener("click", (Ue) => {
520
520
  Qn(Ue);
521
521
  }), document.addEventListener("keypress", (Ue) => {
522
522
  Ue.key === "Enter" && Ue.target.form && Ue.preventDefault();
523
523
  }));
524
524
  });
525
- const Sn = vc(() => Bn()), jn = vc(() => We()), Vo = vc(() => {
525
+ const Cn = vc(() => Bn()), jn = vc(() => We()), Vo = vc(() => {
526
526
  const Ue = [], A = new RegExp(it.value, "ig");
527
- for (const Gt of Sn.value) {
527
+ for (const Gt of Cn.value) {
528
528
  const nt = String(Gt.name);
529
529
  (it.value.length < 1 || nt.match(A)) && Ue.length < se.maxItem && Ue.push(Gt);
530
530
  }
@@ -573,14 +573,14 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
573
573
  A !== -1 && G.value.splice(A, 1), Ae.value = G.value.map((Gt) => Gt.id), Ee("update:modelValue", Ae.value), Ee("selected", G.value), Ee("selectionChanged", G.value);
574
574
  }
575
575
  function Qn(Ue) {
576
- Ue.target.id != se.field_name + "search" + $t.value && Ue.target.id != se.field_name && !Ue.target.classList.contains("showOptions") && (Pt(), Q.value = 0, Pe.value = !1);
576
+ Ue.target.id != se.field_name + "search" + Dt.value && Ue.target.id != se.field_name && !Ue.target.classList.contains("showOptions") && (Pt(), Q.value = 0, Pe.value = !1);
577
577
  }
578
578
  function oe(Ue) {
579
- const A = `${Ue}${$t.value}`, Gt = document.getElementById(A);
579
+ const A = `${Ue}${Dt.value}`, Gt = document.getElementById(A);
580
580
  Gt && Gt.scrollIntoView();
581
581
  }
582
582
  function Pn(Ue) {
583
- const A = `${Ue}${$t.value}`, Gt = document.getElementById(A);
583
+ const A = `${Ue}${Dt.value}`, Gt = document.getElementById(A);
584
584
  Gt && Gt.click();
585
585
  }
586
586
  function is(Ue) {
@@ -591,21 +591,21 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
591
591
  }
592
592
  function We() {
593
593
  if (Mt(G.value))
594
- return pr(G.value) ? Sn.value.filter(
594
+ return pr(G.value) ? Cn.value.filter(
595
595
  (Ue) => G.value.some(
596
596
  (A) => String(A.id) === String(Ue.id)
597
597
  )
598
- ) || [] : Sn.value.filter(
598
+ ) || [] : Cn.value.filter(
599
599
  (Ue) => G.value.some(
600
600
  (A) => String(A) === String(Ue.id)
601
601
  )
602
602
  ) || [];
603
603
  if (se.modelValue)
604
- return pr(se.modelValue) ? G.value = Sn.value.filter(
604
+ return pr(se.modelValue) ? G.value = Cn.value.filter(
605
605
  (Ue) => se.modelValue.some(
606
606
  (A) => String(A.id) === String(Ue.id)
607
607
  )
608
- ) || [] : G.value = Sn.value.filter(
608
+ ) || [] : G.value = Cn.value.filter(
609
609
  (Ue) => se.modelValue.some(
610
610
  (A) => String(A) === String(Ue.id)
611
611
  )
@@ -623,7 +623,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
623
623
  }
624
624
  it.value = "", Pe.value = !0, Dj(() => {
625
625
  var Ue = document.getElementById(
626
- `${se.field_name}search${$t.value}`
626
+ `${se.field_name}search${Dt.value}`
627
627
  );
628
628
  Ue && Ue.focus();
629
629
  });
@@ -711,7 +711,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
711
711
  type: "search",
712
712
  "onUpdate:modelValue": A[2] || (A[2] = (Gt) => it.value = Gt),
713
713
  ref: fe.value,
714
- id: `${R.field_name}search${$t.value}`,
714
+ id: `${R.field_name}search${Dt.value}`,
715
715
  onKeydown: Us,
716
716
  onBlur: A[3] || (A[3] = (Gt) => Pt()),
717
717
  autocomplete: "off",
@@ -731,7 +731,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
731
731
  onClick: (Jn) => ge(Gt),
732
732
  onMousedown: (Jn) => ge(Gt),
733
733
  key: nt,
734
- id: `${nt + 1}${$t.value}`
734
+ id: `${nt + 1}${Dt.value}`
735
735
  }, ft(Gt.name || Gt.id || "-"), 43, KK))), 128))
736
736
  ])
737
737
  ], 512), [
@@ -923,7 +923,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
923
923
  id: R.field_name + "_i18n",
924
924
  ref_key: "input_translate",
925
925
  ref: Ae,
926
- "onUpdate:modelValue": it[0] || (it[0] = ($t) => Pe.inputTranslateValue = $t)
926
+ "onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
927
927
  }, null, 8, eY), [
928
928
  [vm, Pe.inputTranslateValue]
929
929
  ]),
@@ -965,8 +965,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
965
965
  " gl-textarea-form-invalid form-input-translation mt-4 ": R.error_message !== ""
966
966
  }),
967
967
  type: R.type,
968
- onInput: it[1] || (it[1] = ($t) => Pe.$emit("update:modelValue", $t.target.value)),
969
- onKeydown: it[2] || (it[2] = ($t) => Pe.$emit("keydown", $t)),
968
+ onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
969
+ onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
970
970
  ref_key: "input",
971
971
  ref: G,
972
972
  rows: "4"
@@ -1067,7 +1067,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1067
1067
  id: R.field_name + "_i18n",
1068
1068
  ref_key: "input_translate",
1069
1069
  ref: Ae,
1070
- "onUpdate:modelValue": it[0] || (it[0] = ($t) => Pe.inputTranslateValue = $t)
1070
+ "onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
1071
1071
  }, null, 8, uY), [
1072
1072
  [vm, Pe.inputTranslateValue]
1073
1073
  ]),
@@ -1108,8 +1108,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1108
1108
  " gl-textarea-form-invalid form-input-translation mt-4 ": R.error_message !== ""
1109
1109
  }]),
1110
1110
  type: R.type,
1111
- onInput: it[1] || (it[1] = ($t) => Pe.$emit("update:modelValue", $t.target.value)),
1112
- onKeydown: it[2] || (it[2] = ($t) => Pe.$emit("keydown", $t)),
1111
+ onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
1112
+ onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
1113
1113
  ref_key: "input",
1114
1114
  ref: G,
1115
1115
  rows: "4"
@@ -1197,7 +1197,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1197
1197
  name: R.field_name + "_i18n",
1198
1198
  id: R.field_name + "_i18n",
1199
1199
  ref: "input_translate_s",
1200
- "onUpdate:modelValue": it[0] || (it[0] = ($t) => Pe.inputTranslateValue = $t)
1200
+ "onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
1201
1201
  }, null, 8, wY), [
1202
1202
  [vm, Pe.inputTranslateValue]
1203
1203
  ]),
@@ -1239,8 +1239,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1239
1239
  " gl-input-form-invalid form-input-translation mt-2 ": R.error_message !== ""
1240
1240
  }),
1241
1241
  type: R.type,
1242
- onInput: it[1] || (it[1] = ($t) => Pe.$emit("update:modelValue", $t.target.value)),
1243
- onKeydown: it[2] || (it[2] = ($t) => Pe.$emit("keydown", $t)),
1242
+ onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
1243
+ onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
1244
1244
  ref_key: "input",
1245
1245
  ref: G
1246
1246
  }, null, 42, TY),
@@ -1519,10 +1519,10 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1519
1519
  set(it) {
1520
1520
  G.value.end = it, Pe(G.value.start, G.value.end), Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end });
1521
1521
  }
1522
- }), Pe = (it, $t) => {
1523
- it && $t && new Date(it) > new Date($t) ? (fe.value = "Start date cannot be after end date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : it && $t && new Date($t) < new Date(it) ? (fe.value = "End date cannot be before start date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : fe.value = "";
1522
+ }), Pe = (it, Dt) => {
1523
+ it && Dt && new Date(it) > new Date(Dt) ? (fe.value = "Start date cannot be after end date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : it && Dt && new Date(Dt) < new Date(it) ? (fe.value = "End date cannot be before start date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : fe.value = "";
1524
1524
  };
1525
- return (it, $t) => (ve(), we(fo, null, [
1525
+ return (it, Dt) => (ve(), we(fo, null, [
1526
1526
  R.show ? (ve(), we("div", {
1527
1527
  key: 0,
1528
1528
  class: rn(R.field_name)
@@ -1553,7 +1553,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1553
1553
  "gl-input-form-invalid": R.error_message !== "" || fe.value !== ""
1554
1554
  }),
1555
1555
  type: "date",
1556
- "onUpdate:modelValue": $t[0] || ($t[0] = (Sn) => Ae.value = Sn),
1556
+ "onUpdate:modelValue": Dt[0] || (Dt[0] = (Cn) => Ae.value = Cn),
1557
1557
  placeholder: R.placeholder
1558
1558
  }, null, 10, XY), [
1559
1559
  [vm, Ae.value]
@@ -1568,7 +1568,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1568
1568
  "gl-input-form-invalid": R.error_message !== "" || fe.value !== ""
1569
1569
  }),
1570
1570
  type: "date",
1571
- "onUpdate:modelValue": $t[1] || ($t[1] = (Sn) => Q.value = Sn),
1571
+ "onUpdate:modelValue": Dt[1] || (Dt[1] = (Cn) => Q.value = Cn),
1572
1572
  placeholder: R.placeholder
1573
1573
  }, null, 10, QY), [
1574
1574
  [vm, Q.value]
@@ -1689,7 +1689,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1689
1689
  P("ul", mX, [
1690
1690
  (ve(!0), we(fo, null, hr(fe.value, (it) => (ve(), we("li", {
1691
1691
  key: it.title,
1692
- onClick: ($t) => G.value = it.title,
1692
+ onClick: (Dt) => G.value = it.title,
1693
1693
  class: "flex-auto -mb-px text-center"
1694
1694
  }, [
1695
1695
  P("a", {
@@ -1791,8 +1791,8 @@ const Uae = /* @__PURE__ */ Jr(bX, [["render", yX]]), wX = {
1791
1791
  const se = (fe) => {
1792
1792
  me.style.cursor = "grabbing";
1793
1793
  const G = (Q) => {
1794
- const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, it = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, $t = Pe - R.initialX, Sn = it - R.initialY;
1795
- Math.abs($t) > Math.abs(Sn) ? (Q.preventDefault(), Math.abs($t) >= 70 && ($t < 0 ? R.next() : R.prev(), R.initialX = Pe)) : me.style.cursor = "grab", Math.abs(Sn) > Math.abs($t) && (me.style.cursor = "grab");
1794
+ const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, it = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, Dt = Pe - R.initialX, Cn = it - R.initialY;
1795
+ Math.abs(Dt) > Math.abs(Cn) ? (Q.preventDefault(), Math.abs(Dt) >= 70 && (Dt < 0 ? R.next() : R.prev(), R.initialX = Pe)) : me.style.cursor = "grab", Math.abs(Cn) > Math.abs(Dt) && (me.style.cursor = "grab");
1796
1796
  }, Ae = () => {
1797
1797
  document.removeEventListener("mousemove", G), document.removeEventListener("touchmove", G), document.removeEventListener("mouseup", Ae), document.removeEventListener("touchend", Ae), me.style.cursor = "grab";
1798
1798
  };
@@ -2443,7 +2443,10 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2443
2443
  ], 2))
2444
2444
  ], 64));
2445
2445
  }
2446
- }, oQ = { class: "font-bold ptext-lg dark:text-white" }, sQ = { class: "mt-3 mb-4" }, rQ = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, aQ = /* @__PURE__ */ P("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), lQ = ["name", "id", "value"], cQ = { class: "relative focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, iQ = { class: "relative showOptions" }, uQ = ["value", "placeholder"], dQ = { class: "p-1" }, mQ = /* @__PURE__ */ P("label", {
2446
+ }, oQ = { class: "font-bold ptext-lg dark:text-white" }, sQ = { class: "mt-3 mb-4" }, rQ = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, aQ = /* @__PURE__ */ P("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), lQ = ["name", "id", "value"], cQ = {
2447
+ key: 0,
2448
+ class: "dropdown"
2449
+ }, iQ = { class: "relative showOptions" }, uQ = ["value", "placeholder"], dQ = { class: "p-1" }, mQ = /* @__PURE__ */ P("label", {
2447
2450
  for: "default-search",
2448
2451
  class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
2449
2452
  }, "Search", -1), fQ = { class: "relative" }, gQ = /* @__PURE__ */ P("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
@@ -2537,8 +2540,8 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2537
2540
  },
2538
2541
  emits: ["update:modelValue", "selected", "selectionChanged"],
2539
2542
  setup(R, { emit: me }) {
2540
- const se = R, Ee = me, fe = No(null), G = No({}), Ae = No(0), Q = No(!1), Pe = No(""), it = No(""), $t = No(null), Sn = No(0), jn = () => {
2541
- console.log("myDivDropDown", $t.value), $t.value && (Sn.value = $t.value.offsetWidth);
2543
+ const se = R, Ee = me, fe = No(null), G = No({}), Ae = No(0), Q = No(!1), Pe = No(""), it = No(""), Dt = No(null), Cn = No(0), jn = () => {
2544
+ console.log("myDivDropDown", Dt.value), console.log("offsetWidth", Dt.value.offsetWidth), Cn.value = Dt.value.offsetWidth, Dt.value && (Cn.value = Dt.value.offsetWidth);
2542
2545
  }, Vo = () => {
2543
2546
  jn();
2544
2547
  };
@@ -2666,12 +2669,7 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2666
2669
  id: R.field_name,
2667
2670
  value: (Gt = Oo.value) == null ? void 0 : Gt.id
2668
2671
  }, null, 8, lQ),
2669
- R.options ? (ve(), we("div", {
2670
- key: 0,
2671
- ref_key: "myDivDropDown",
2672
- ref: $t,
2673
- class: "dropdown"
2674
- }, [
2672
+ R.options ? (ve(), we("div", cQ, [
2675
2673
  R.label_name ? (ve(), we("label", {
2676
2674
  key: 0,
2677
2675
  class: rn({
@@ -2680,7 +2678,11 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2680
2678
  required: R.is_required
2681
2679
  })
2682
2680
  }, ft(R.label_name), 3)) : pt("", !0),
2683
- P("div", cQ, [
2681
+ P("div", {
2682
+ ref_key: "myDivDropDown",
2683
+ ref: Dt,
2684
+ class: "relative focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500"
2685
+ }, [
2684
2686
  P("div", iQ, [
2685
2687
  P("input", {
2686
2688
  class: rn([{
@@ -2708,7 +2710,7 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2708
2710
  }, null, 2),
2709
2711
  Qa(P("div", {
2710
2712
  class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l fixed w-full z-[999999999] rounded-b-lg",
2711
- style: YG({ maxWidth: Sn.value + "px" })
2713
+ style: YG({ maxWidth: Cn.value + "px" })
2712
2714
  }, [
2713
2715
  P("div", dQ, [
2714
2716
  mQ,
@@ -2752,8 +2754,8 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2752
2754
  [n5, Q.value]
2753
2755
  ])
2754
2756
  ])
2755
- ])
2756
- ], 512)) : pt("", !0),
2757
+ ], 512)
2758
+ ])) : pt("", !0),
2757
2759
  P("span", SQ, ft(R.error_message), 1),
2758
2760
  P("small", _Q, ft(R.description), 1)
2759
2761
  ], 2))
@@ -2913,7 +2915,7 @@ var oq = { exports: {} };
2913
2915
  return fe(Pe(e), function(o) {
2914
2916
  return Ee(o, n);
2915
2917
  });
2916
- }, $t = function(e) {
2918
+ }, Dt = function(e) {
2917
2919
  return G(function(n, o) {
2918
2920
  var r = Object.keys(n), l = Object.keys(o);
2919
2921
  if (!it(Q).eq(r, l))
@@ -2925,11 +2927,11 @@ var oq = { exports: {} };
2925
2927
  }
2926
2928
  return !0;
2927
2929
  });
2928
- }, Sn = G(function(e, n) {
2930
+ }, Cn = G(function(e, n) {
2929
2931
  if (e === n)
2930
2932
  return !0;
2931
2933
  var o = me(e), r = me(n);
2932
- return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(Sn).eq(e, n) : o === "object" ? $t(Sn).eq(e, n) : !1;
2934
+ return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(Cn).eq(e, n) : o === "object" ? Dt(Cn).eq(e, n) : !1;
2933
2935
  });
2934
2936
  const jn = Object.getPrototypeOf, Vo = (e, n, o) => {
2935
2937
  var r;
@@ -3170,7 +3172,7 @@ var oq = { exports: {} };
3170
3172
  return vt(e, (r, l) => {
3171
3173
  o.push(n(r, l));
3172
3174
  }), o;
3173
- }, bl = (e) => tl(e, Jn), Ko = (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 = Sn) => $t(o).eq(e, n), Hc = (e) => {
3175
+ }, bl = (e) => tl(e, Jn), Ko = (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 = Cn) => Dt(o).eq(e, n), Hc = (e) => {
3174
3176
  const n = {};
3175
3177
  return _e(e, (o) => {
3176
3178
  n[o] = {};
@@ -3501,8 +3503,8 @@ var oq = { exports: {} };
3501
3503
  }
3502
3504
  }
3503
3505
  return e;
3504
- }, Dt = function(e, n, o, r) {
3505
- r = r || this, e && (o && (e = e[o]), Ws(e, (l, u) => n.call(r, l, u, o) === !1 ? !1 : (Dt(l, n, o, r), !0)));
3506
+ }, Ot = function(e, n, o, r) {
3507
+ r = r || this, e && (o && (e = e[o]), Ws(e, (l, u) => n.call(r, l, u, o) === !1 ? !1 : (Ot(l, n, o, r), !0)));
3506
3508
  }, lt = {
3507
3509
  trim: Zs,
3508
3510
  isArray: xr,
@@ -3515,7 +3517,7 @@ var oq = { exports: {} };
3515
3517
  inArray: Vr,
3516
3518
  hasOwn: re,
3517
3519
  extend: Le,
3518
- walk: Dt,
3520
+ walk: Ot,
3519
3521
  resolve: (e, n = window) => {
3520
3522
  const o = e.split(".");
3521
3523
  for (let r = 0, l = o.length; r < l && (n = n[o[r]], !!n); r++)
@@ -4037,7 +4039,7 @@ var oq = { exports: {} };
4037
4039
  n.isBlock(co(e)) && Id(o) && n.isBlock(co(r)) && wo(o);
4038
4040
  });
4039
4041
  });
4040
- }, x = zg, T = au, V = fb, K = (e) => e.insertContent(x, { preserve_zwsp: !0 }), be = Zt, je = ut, gt = (e) => (je(e) && (e = e.parentNode), be(e) && e.hasAttribute("data-mce-caret")), Ot = (e) => je(e) && T(e.data), on = (e) => gt(e) || Ot(e), Hn = (e) => e.firstChild !== e.lastChild || !as(e.firstChild), ar = (e, n) => {
4042
+ }, x = zg, T = au, V = fb, K = (e) => e.insertContent(x, { preserve_zwsp: !0 }), be = Zt, je = ut, gt = (e) => (je(e) && (e = e.parentNode), be(e) && e.hasAttribute("data-mce-caret")), Rt = (e) => je(e) && T(e.data), on = (e) => gt(e) || Rt(e), Hn = (e) => e.firstChild !== e.lastChild || !as(e.firstChild), ar = (e, n) => {
4041
4043
  var o;
4042
4044
  const l = ((o = e.ownerDocument) !== null && o !== void 0 ? o : document).createTextNode(x), u = e.parentNode;
4043
4045
  if (n) {
@@ -4062,10 +4064,10 @@ var oq = { exports: {} };
4062
4064
  return l;
4063
4065
  }, Po = (e) => {
4064
4066
  const n = e.container();
4065
- return ut(n) ? n.data.charAt(e.offset()) === x || e.isAtStart() && Ot(n.previousSibling) : !1;
4067
+ return ut(n) ? n.data.charAt(e.offset()) === x || e.isAtStart() && Rt(n.previousSibling) : !1;
4066
4068
  }, Bs = (e) => {
4067
4069
  const n = e.container();
4068
- return ut(n) ? n.data.charAt(e.offset() - 1) === x || e.isAtEnd() && Ot(n.nextSibling) : !1;
4070
+ return ut(n) ? n.data.charAt(e.offset() - 1) === x || e.isAtEnd() && Rt(n.nextSibling) : !1;
4069
4071
  }, mc = (e, n, o) => {
4070
4072
  var r;
4071
4073
  const u = ((r = n.ownerDocument) !== null && r !== void 0 ? r : document).createElement(e);
@@ -8265,7 +8267,7 @@ Required: ` + n.join(", "));
8265
8267
  }), De = (e) => ie.get(e), at = () => le.fromDom(document), Bt = (e, n) => e.view(n).fold(nt([]), (r) => {
8266
8268
  const l = e.owner(r), u = Bt(e, l);
8267
8269
  return [r].concat(u);
8268
- }), Rt = (e, n) => {
8270
+ }), $t = (e, n) => {
8269
8271
  const o = n.owner(e);
8270
8272
  return Bt(n, o);
8271
8273
  };
@@ -8278,7 +8280,7 @@ Required: ` + n.join(", "));
8278
8280
  owner: (e) => ic(e)
8279
8281
  });
8280
8282
  const Jt = (e) => {
8281
- const n = at(), o = Kt(n), r = Rt(e, Ye), l = ct(e), u = Tr(r, (f, b) => {
8283
+ const n = at(), o = Kt(n), r = $t(e, Ye), l = ct(e), u = Tr(r, (f, b) => {
8282
8284
  const y = ct(b);
8283
8285
  return {
8284
8286
  left: f.left + y.left,
@@ -9131,7 +9133,7 @@ Required: ` + n.join(", "));
9131
9133
  return We(r) && r === l;
9132
9134
  }, cI = (e) => Po(e) || Bs(e), Co = (e, n) => {
9133
9135
  const o = n.container(), r = n.offset();
9134
- return e ? Ot(o) ? ut(o.nextSibling) ? Ie(o.nextSibling, 0) : Ie.after(o) : Po(n) ? Ie(o, r + 1) : n : Ot(o) ? ut(o.previousSibling) ? Ie(o.previousSibling, o.previousSibling.data.length) : Ie.before(o) : Bs(n) ? Ie(o, r - 1) : n;
9136
+ return e ? Rt(o) ? ut(o.nextSibling) ? Ie(o.nextSibling, 0) : Ie.after(o) : Po(n) ? Ie(o, r + 1) : n : Rt(o) ? ut(o.previousSibling) ? Ie(o.previousSibling, o.previousSibling.data.length) : Ie.before(o) : Bs(n) ? Ie(o, r - 1) : n;
9135
9137
  }, O0 = et(Co, !0), bw = et(Co, !1), O4 = (e, n) => {
9136
9138
  const o = (r) => r.stopImmediatePropagation();
9137
9139
  e.on("beforeinput input", o, !0), e.getDoc().execCommand(n), e.off("beforeinput input", o);
@@ -11555,8 +11557,8 @@ Required: ` + n.join(", "));
11555
11557
  namespaceURI: vg,
11556
11558
  tagName: "template"
11557
11559
  });
11558
- const Cn = xh(Ve.tagName), Hr = xh(Qt.tagName);
11559
- return Cy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ? Cn === "svg" : Qt.namespaceURI === ob ? Cn === "svg" && (Hr === "annotation-xml" || wg[Hr]) : !!Fe[Cn] : Ve.namespaceURI === ob ? Qt.namespaceURI === hm ? Cn === "math" : Qt.namespaceURI === sb ? Cn === "math" && Sy[Hr] : !!St[Cn] : Ve.namespaceURI === hm ? Qt.namespaceURI === sb && !Sy[Hr] || Qt.namespaceURI === ob && !wg[Hr] ? !1 : !St[Cn] && (Be[Cn] || !Fe[Cn]) : !!(yg === "application/xhtml+xml" && Cy[Ve.namespaceURI]) : !1;
11560
+ const Sn = xh(Ve.tagName), Hr = xh(Qt.tagName);
11561
+ return Cy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ? Sn === "svg" : Qt.namespaceURI === ob ? Sn === "svg" && (Hr === "annotation-xml" || wg[Hr]) : !!Fe[Sn] : Ve.namespaceURI === ob ? Qt.namespaceURI === hm ? Sn === "math" : Qt.namespaceURI === sb ? Sn === "math" && Sy[Hr] : !!St[Sn] : Ve.namespaceURI === hm ? Qt.namespaceURI === sb && !Sy[Hr] || Qt.namespaceURI === ob && !wg[Hr] ? !1 : !St[Sn] && (Be[Sn] || !Fe[Sn]) : !!(yg === "application/xhtml+xml" && Cy[Ve.namespaceURI]) : !1;
11560
11562
  }, sn = function(Ve) {
11561
11563
  cg(n.removed, { element: Ve });
11562
11564
  try {
@@ -11588,12 +11590,12 @@ Required: ` + n.join(", "));
11588
11590
  } catch {
11589
11591
  }
11590
11592
  }, nr = function(Ve) {
11591
- let Qt, Cn;
11593
+ let Qt, Sn;
11592
11594
  if (bg)
11593
11595
  Ve = "<remove></remove>" + Ve;
11594
11596
  else {
11595
11597
  const Td = R3(Ve, /^[\r\n\t ]+/);
11596
- Cn = Td && Td[0];
11598
+ Sn = Td && Td[0];
11597
11599
  }
11598
11600
  yg === "application/xhtml+xml" && vg === hm && (Ve = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Ve + "</body></html>");
11599
11601
  const Hr = Ce ? Ce.createHTML(Ve) : Ve;
@@ -11610,31 +11612,31 @@ Required: ` + n.join(", "));
11610
11612
  }
11611
11613
  }
11612
11614
  const Fc = Qt.body || Qt.documentElement;
11613
- return Ve && Cn && Fc.insertBefore(l.createTextNode(Cn), Fc.childNodes[0] || null), vg === hm ? Ze.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Fc;
11615
+ return Ve && Sn && Fc.insertBefore(l.createTextNode(Sn), Fc.childNodes[0] || null), vg === hm ? Ze.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Fc;
11614
11616
  }, ui = function(Ve) {
11615
11617
  return wt.call(Ve.ownerDocument || Ve, Ve, k.SHOW_ELEMENT | k.SHOW_COMMENT | k.SHOW_TEXT, null, !1);
11616
11618
  }, Ja = function(Ve) {
11617
11619
  return Ve instanceof B && (typeof Ve.nodeName != "string" || typeof Ve.textContent != "string" || typeof Ve.removeChild != "function" || !(Ve.attributes instanceof M) || typeof Ve.removeAttribute != "function" || typeof Ve.setAttribute != "function" || typeof Ve.namespaceURI != "string" || typeof Ve.insertBefore != "function" || typeof Ve.hasChildNodes != "function");
11618
11620
  }, p1 = function(Ve) {
11619
11621
  return typeof b == "object" ? Ve instanceof b : Ve && typeof Ve == "object" && typeof Ve.nodeType == "number" && typeof Ve.nodeName == "string";
11620
- }, kd = function(Ve, Qt, Cn) {
11622
+ }, kd = function(Ve, Qt, Sn) {
11621
11623
  st[Ve] && cL(st[Ve], (Hr) => {
11622
- Hr.call(n, Qt, Cn, h1);
11624
+ Hr.call(n, Qt, Sn, h1);
11623
11625
  });
11624
11626
  }, qO = function(Ve) {
11625
11627
  let Qt;
11626
11628
  if (kd("beforeSanitizeElements", Ve, null), Ja(Ve))
11627
11629
  return sn(Ve), !0;
11628
- const Cn = nc(Ve.nodeName);
11630
+ const Sn = nc(Ve.nodeName);
11629
11631
  if (kd("uponSanitizeElement", Ve, {
11630
- tagName: Cn,
11632
+ tagName: Sn,
11631
11633
  allowedTags: cs
11632
11634
  }), Ve.hasChildNodes() && !p1(Ve.firstElementChild) && (!p1(Ve.content) || !p1(Ve.content.firstElementChild)) && vd(/<[/\w]/g, Ve.innerHTML) && vd(/<[/\w]/g, Ve.textContent))
11633
11635
  return sn(Ve), !0;
11634
- if (!cs[Cn] || Yt[Cn]) {
11635
- if (!Yt[Cn] && KO(Cn) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Cn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Cn)))
11636
+ if (!cs[Sn] || Yt[Sn]) {
11637
+ if (!Yt[Sn] && KO(Sn) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Sn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Sn)))
11636
11638
  return !1;
11637
- if (ir && !g1[Cn]) {
11639
+ if (ir && !g1[Sn]) {
11638
11640
  const Hr = Se(Ve) || Ve.parentNode, Fc = ye(Ve) || Ve.childNodes;
11639
11641
  if (Fc && Hr) {
11640
11642
  const Td = Fc.length;
@@ -11644,19 +11646,19 @@ Required: ` + n.join(", "));
11644
11646
  }
11645
11647
  return sn(Ve), !0;
11646
11648
  }
11647
- return Ve instanceof y && !ht(Ve) || (Cn === "noscript" || Cn === "noembed" || Cn === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (Qt = Ve.textContent, Qt = sm(Qt, jt, " "), Qt = sm(Qt, an, " "), Qt = sm(Qt, Kn, " "), Ve.textContent !== Qt && (cg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
11648
- }, bT = function(Ve, Qt, Cn) {
11649
- if ($o && (Qt === "id" || Qt === "name") && (Cn in l || Cn in GO))
11649
+ return Ve instanceof y && !ht(Ve) || (Sn === "noscript" || Sn === "noembed" || Sn === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (Qt = Ve.textContent, Qt = sm(Qt, jt, " "), Qt = sm(Qt, an, " "), Qt = sm(Qt, Kn, " "), Ve.textContent !== Qt && (cg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
11650
+ }, bT = function(Ve, Qt, Sn) {
11651
+ if ($o && (Qt === "id" || Qt === "name") && (Sn in l || Sn in GO))
11650
11652
  return !1;
11651
11653
  if (!(Rn && !On[Qt] && vd(Wn, Qt))) {
11652
11654
  if (!(Ct && vd(fs, Qt))) {
11653
11655
  if (!en[Qt] || On[Qt]) {
11654
- 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, Cn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Cn)))) return !1;
11656
+ 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;
11655
11657
  } else if (!xy[Qt]) {
11656
- if (!vd($l, sm(Cn, Fr, ""))) {
11657
- if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(Cn, "data:") === 0 && nb[Ve])) {
11658
- if (!(So && !vd(Os, sm(Cn, Fr, "")))) {
11659
- if (Cn)
11658
+ if (!vd($l, sm(Sn, Fr, ""))) {
11659
+ if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(Sn, "data:") === 0 && nb[Ve])) {
11660
+ if (!(So && !vd(Os, sm(Sn, Fr, "")))) {
11661
+ if (Sn)
11660
11662
  return !1;
11661
11663
  }
11662
11664
  }
@@ -11668,7 +11670,7 @@ Required: ` + n.join(", "));
11668
11670
  }, KO = function(Ve) {
11669
11671
  return Ve.indexOf("-") > 0;
11670
11672
  }, YO = function(Ve) {
11671
- let Qt, Cn, Hr, Fc;
11673
+ let Qt, Sn, Hr, Fc;
11672
11674
  kd("beforeSanitizeAttributes", Ve, null);
11673
11675
  const { attributes: Td } = Ve;
11674
11676
  if (!Td)
@@ -11682,38 +11684,38 @@ Required: ` + n.join(", "));
11682
11684
  for (Fc = Td.length; Fc--; ) {
11683
11685
  Qt = Td[Fc];
11684
11686
  const { name: pm, namespaceURI: vT } = Qt;
11685
- Cn = pm === "value" ? Qt.value : iL(Qt.value);
11686
- const yj = Cn;
11687
- if (Hr = nc(pm), Ha.attrName = Hr, Ha.attrValue = Cn, Ha.keepAttr = !0, Ha.forceKeepAttr = void 0, kd("uponSanitizeAttribute", Ve, Ha), Cn = Ha.attrValue, Ha.forceKeepAttr)
11687
+ Sn = pm === "value" ? Qt.value : iL(Qt.value);
11688
+ const yj = Sn;
11689
+ if (Hr = nc(pm), Ha.attrName = Hr, Ha.attrValue = Sn, Ha.keepAttr = !0, Ha.forceKeepAttr = void 0, kd("uponSanitizeAttribute", Ve, Ha), Sn = Ha.attrValue, Ha.forceKeepAttr)
11688
11690
  continue;
11689
11691
  if (!Ha.keepAttr) {
11690
11692
  ro(pm, Ve);
11691
11693
  continue;
11692
11694
  }
11693
- if (!Ss && vd(/\/>/i, Cn)) {
11695
+ if (!Ss && vd(/\/>/i, Sn)) {
11694
11696
  ro(pm, Ve);
11695
11697
  continue;
11696
11698
  }
11697
- gs && (Cn = sm(Cn, jt, " "), Cn = sm(Cn, an, " "), Cn = sm(Cn, Kn, " "));
11699
+ gs && (Sn = sm(Sn, jt, " "), Sn = sm(Sn, an, " "), Sn = sm(Sn, Kn, " "));
11698
11700
  const XO = nc(Ve.nodeName);
11699
- if (!bT(XO, Hr, Cn)) {
11701
+ if (!bT(XO, Hr, Sn)) {
11700
11702
  ro(pm, Ve);
11701
11703
  continue;
11702
11704
  }
11703
- if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve), Cn = Js + Cn), Ce && typeof J == "object" && typeof J.getAttributeType == "function" && !vT)
11705
+ if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve), Sn = Js + Sn), Ce && typeof J == "object" && typeof J.getAttributeType == "function" && !vT)
11704
11706
  switch (J.getAttributeType(XO, Hr)) {
11705
11707
  case "TrustedHTML": {
11706
- Cn = Ce.createHTML(Cn);
11708
+ Sn = Ce.createHTML(Sn);
11707
11709
  break;
11708
11710
  }
11709
11711
  case "TrustedScriptURL": {
11710
- Cn = Ce.createScriptURL(Cn);
11712
+ Sn = Ce.createScriptURL(Sn);
11711
11713
  break;
11712
11714
  }
11713
11715
  }
11714
- if (Cn !== yj)
11716
+ if (Sn !== yj)
11715
11717
  try {
11716
- vT ? Ve.setAttributeNS(vT, pm, Cn) : Ve.setAttribute(pm, Cn);
11718
+ vT ? Ve.setAttributeNS(vT, pm, Sn) : Ve.setAttribute(pm, Sn);
11717
11719
  } catch {
11718
11720
  ro(pm, Ve);
11719
11721
  }
@@ -11721,13 +11723,13 @@ Required: ` + n.join(", "));
11721
11723
  kd("afterSanitizeAttributes", Ve, null);
11722
11724
  }, vj = function no(Ve) {
11723
11725
  let Qt;
11724
- const Cn = ui(Ve);
11725
- for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = Cn.nextNode(); )
11726
+ const Sn = ui(Ve);
11727
+ for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = Sn.nextNode(); )
11726
11728
  kd("uponSanitizeShadowNode", Qt, null), !qO(Qt) && (Qt.content instanceof u && no(Qt.content), YO(Qt));
11727
11729
  kd("afterSanitizeShadowDOM", Ve, null);
11728
11730
  };
11729
11731
  return n.sanitize = function(no) {
11730
- let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, Cn, Hr, Fc;
11732
+ let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, Sn, Hr, Fc;
11731
11733
  if (Hx = !no, Hx && (no = "<!-->"), typeof no != "string" && !p1(no))
11732
11734
  if (typeof no.toString == "function") {
11733
11735
  if (no = no.toString(), typeof no != "string")
@@ -11743,7 +11745,7 @@ Required: ` + n.join(", "));
11743
11745
  throw Gv("root node is forbidden and cannot be sanitized in-place");
11744
11746
  }
11745
11747
  } else if (no instanceof b)
11746
- Qt = nr("<!---->"), Cn = Qt.ownerDocument.importNode(no, !0), Cn.nodeType === 1 && Cn.nodeName === "BODY" || Cn.nodeName === "HTML" ? Qt = Cn : Qt.appendChild(Cn);
11748
+ Qt = nr("<!---->"), Sn = Qt.ownerDocument.importNode(no, !0), Sn.nodeType === 1 && Sn.nodeName === "BODY" || Sn.nodeName === "HTML" ? Qt = Sn : Qt.appendChild(Sn);
11747
11749
  else {
11748
11750
  if (!ii && !gs && !Fa && no.indexOf("<") === -1)
11749
11751
  return Ce && Nn ? Ce.createHTML(no) : no;
@@ -11773,8 +11775,8 @@ Required: ` + n.join(", "));
11773
11775
  h1 = null, gm = !1;
11774
11776
  }, n.isValidAttribute = function(no, Ve, Qt) {
11775
11777
  h1 || Ux({});
11776
- const Cn = nc(no), Hr = nc(Ve);
11777
- return bT(Cn, Hr, Qt);
11778
+ const Sn = nc(no), Hr = nc(Ve);
11779
+ return bT(Sn, Hr, Qt);
11778
11780
  }, n.addHook = function(no, Ve) {
11779
11781
  typeof Ve == "function" && (st[no] = st[no] || [], cg(st[no], Ve));
11780
11782
  }, n.removeHook = function(no) {
@@ -14497,7 +14499,7 @@ Options:${f}${o.join(f)}` : "";
14497
14499
  }
14498
14500
  }, H0 = (e, n) => e ? E9(n) : X_(n), A9 = et(H0, !0), D9 = et(H0, !1), ex = (e, n) => ut(e.container()) ? H0(n, e.container()) : H0(n, e.getNode()), dP = (e, n) => {
14499
14501
  const o = n.get();
14500
- return o && e.container() === o && Ot(o);
14502
+ return o && e.container() === o && Rt(o);
14501
14503
  }, BA = (e, n) => n.fold((o) => {
14502
14504
  _a(e.get());
14503
14505
  const r = A9(o);
@@ -17576,7 +17578,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, go(n, _D)), WB = nt(HB), pk
17576
17578
  if (We(Wn)) {
17577
17579
  if (_p(Wn))
17578
17580
  return B(an, Wn, Ze ? !Kn.isAtEnd() : !1, !1);
17579
- if (Ot(Wn) && io(Wn.nextSibling)) {
17581
+ if (Rt(Wn) && io(Wn.nextSibling)) {
17580
17582
  const Os = o.createRng();
17581
17583
  return Os.setStart(Wn, 0), Os.setEnd(Wn, 0), Os;
17582
17584
  }
@@ -17585,7 +17587,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, go(n, _D)), WB = nt(HB), pk
17585
17587
  if (We(fs)) {
17586
17588
  if (_p(fs))
17587
17589
  return B(an, fs, Ze ? !1 : !Kn.isAtEnd(), !1);
17588
- if (Ot(fs) && io(fs.previousSibling)) {
17590
+ if (Rt(fs) && io(fs.previousSibling)) {
17589
17591
  const Os = o.createRng();
17590
17592
  return Os.setStart(fs, 1), Os.setEnd(fs, 1), Os;
17591
17593
  }
@@ -20276,8 +20278,8 @@ tinymce.IconManager.add("default", {
20276
20278
  }, se = (t) => {
20277
20279
  const s = typeof t;
20278
20280
  return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && me(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
20279
- }, Ee = (t) => (s) => se(s) === t, fe = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && me(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), it = (t) => Ae(t, Object), $t = Ee("array"), Sn = G(null), jn = fe("boolean"), Vo = G(void 0), Us = (t) => t == null, Oo = (t) => !Us(t), Mt = fe("function"), pr = fe("number"), fn = (t, s) => {
20280
- if ($t(t)) {
20281
+ }, Ee = (t) => (s) => se(s) === t, fe = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && me(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), it = (t) => Ae(t, Object), Dt = Ee("array"), Cn = G(null), jn = fe("boolean"), Vo = G(void 0), Us = (t) => t == null, Oo = (t) => !Us(t), Mt = fe("function"), pr = fe("number"), fn = (t, s) => {
20282
+ if (Dt(t)) {
20281
20283
  for (let a = 0, c = t.length; a < c; ++a)
20282
20284
  if (!s(t[a]))
20283
20285
  return !1;
@@ -20445,7 +20447,7 @@ tinymce.IconManager.add("default", {
20445
20447
  }, Ke = (t) => {
20446
20448
  const s = [];
20447
20449
  for (let a = 0, c = t.length; a < c; ++a) {
20448
- if (!$t(t[a]))
20450
+ if (!Dt(t[a]))
20449
20451
  throw new Error("Arr.flatten item " + a + " was not an array, input: " + t);
20450
20452
  Jn.apply(s, t[a]);
20451
20453
  }
@@ -20668,7 +20670,7 @@ tinymce.IconManager.add("default", {
20668
20670
  return a && a.hasAttribute ? a.hasAttribute(s) : !1;
20669
20671
  }, re = (t, s) => {
20670
20672
  t.dom.removeAttribute(s);
20671
- }, Le = (t) => zo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), Dt = (t, s, a) => {
20673
+ }, Le = (t) => zo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), Ot = (t, s, a) => {
20672
20674
  if (!Q(a))
20673
20675
  throw console.error("Invalid call to CSS.set. Property ", s, ":: Value ", a, ":: Element ", t), new Error("CSS value must be a string: " + a);
20674
20676
  Dr(t) && t.style.setProperty(s, a);
@@ -20676,11 +20678,11 @@ tinymce.IconManager.add("default", {
20676
20678
  Dr(t) && t.style.removeProperty(s);
20677
20679
  }, qt = (t, s, a) => {
20678
20680
  const c = t.dom;
20679
- Dt(c, s, a);
20681
+ Ot(c, s, a);
20680
20682
  }, $s = (t, s) => {
20681
20683
  const a = t.dom;
20682
20684
  us(s, (c, d) => {
20683
- Dt(a, d, c);
20685
+ Ot(a, d, c);
20684
20686
  });
20685
20687
  }, lt = (t, s) => {
20686
20688
  const a = t.dom;
@@ -20688,7 +20690,7 @@ tinymce.IconManager.add("default", {
20688
20690
  c.fold(() => {
20689
20691
  Yn(a, d);
20690
20692
  }, (g) => {
20691
- Dt(a, d, g);
20693
+ Ot(a, d, g);
20692
20694
  });
20693
20695
  });
20694
20696
  }, rs = (t, s) => {
@@ -21424,7 +21426,7 @@ Input object: ` + Lg(t.input), io = (t, s) => ut(t, Go(s, nn)), kf = (t, s) => u
21424
21426
  }
21425
21427
  };
21426
21428
  }, T = { generate: (t) => {
21427
- if (!$t(t))
21429
+ if (!Dt(t))
21428
21430
  throw new Error("cases must be an array");
21429
21431
  if (t.length === 0)
21430
21432
  throw new Error("there must be at least one case");
@@ -21438,7 +21440,7 @@ Input object: ` + Lg(t.input), io = (t, s) => ut(t, Go(s, nn)), kf = (t, s) => u
21438
21440
  throw new Error("duplicate key detected:" + p);
21439
21441
  if (p === "cata")
21440
21442
  throw new Error("cannot have a case named cata (sorry)");
21441
- if (!$t(w))
21443
+ if (!Dt(w))
21442
21444
  throw new Error("case arguments must be an array");
21443
21445
  s.push(p), a[p] = (...C) => {
21444
21446
  const E = C.length;
@@ -21519,7 +21521,7 @@ Required: ` + s.join(", "));
21519
21521
  return bt(t, (a) => {
21520
21522
  s[a.key] = a.value;
21521
21523
  }), s;
21522
- }, gt = (t, s) => K(t, s), Ot = (t, s) => be(t, s), on = (t) => je(t), Hn = (t, s) => t.length === 0 ? Fn.value(s) : Fn.value(Zo(s, qc.apply(void 0, t))), ar = (t) => Fn.error(Ke(t)), Po = (t, s) => {
21524
+ }, gt = (t, s) => K(t, s), Rt = (t, s) => be(t, s), on = (t) => je(t), Hn = (t, s) => t.length === 0 ? Fn.value(s) : Fn.value(Zo(s, qc.apply(void 0, t))), ar = (t) => Fn.error(Ke(t)), Po = (t, s) => {
21523
21525
  const a = V(t);
21524
21526
  return a.errors.length > 0 ? ar(a.errors) : Hn(a.values, s);
21525
21527
  }, Bs = (t) => Mt(t) ? t : Pt, mc = (t, s, a) => {
@@ -21720,7 +21722,7 @@ Check the ` + sd() + " event handlers"), !1) : !0;
21720
21722
  }, Yh = Wt("alloy-premade"), Hm = (t) => (Object.defineProperty(t.element.dom, Yh, {
21721
21723
  value: t.uid,
21722
21724
  writable: !0
21723
- }), Ot(Yh, t)), $T = (t) => go(t.dom, Yh), Xh = (t) => vt(t, Yh), Xg = (t) => Qx((s, ...a) => t(s.getApis(), s, ...a), t), Ru = { init: () => ei({ readState: oe("No State required") }) }, ei = (t) => t, MT = (t, s) => {
21725
+ }), Rt(Yh, t)), $T = (t) => go(t.dom, Yh), Xh = (t) => vt(t, Yh), Xg = (t) => Qx((s, ...a) => t(s.getApis(), s, ...a), t), Ru = { init: () => ei({ readState: oe("No State required") }) }, ei = (t) => t, MT = (t, s) => {
21724
21726
  const a = tt(s, (d) => _l(d.name(), [
21725
21727
  ot("config"),
21726
21728
  Re("state", Ru)
@@ -21838,7 +21840,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
21838
21840
  }, Uy = (t, s) => {
21839
21841
  const a = di(t, (c, d) => (c.length === 1 ? Fn.value(c[0].handler) : M1(c, s, d)).map((p) => {
21840
21842
  const w = tp(p), C = c.length > 1 ? eo(s[d], (E) => ur(c, (O) => O.name === E)).join(" > ") : c[0].name;
21841
- return Ot(d, PT(w, C));
21843
+ return Rt(d, PT(w, C));
21842
21844
  }));
21843
21845
  return Po(a, {});
21844
21846
  }, ni = "alloy.base.behaviour", Db = nn([
@@ -24137,8 +24139,8 @@ Components: ` + JSON.stringify(s.components, null, 2));
24137
24139
  d4,
24138
24140
  vo(Qd)
24139
24141
  ]), at)] : []);
24140
- }, Rt = (t, s, a, c) => a.useSpace && !mh(t.element) ? [To(vo(Ri), ie)] : [];
24141
- var Qe = v(De, Ru.init, Bt, Rt, () => A.none());
24142
+ }, $t = (t, s, a, c) => a.useSpace && !mh(t.element) ? [To(vo(Ri), ie)] : [];
24143
+ var Qe = v(De, Ru.init, Bt, $t, () => A.none());
24142
24144
  const It = () => {
24143
24145
  const t = to();
24144
24146
  return ei({
@@ -25136,7 +25138,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
25136
25138
  expansions: a
25137
25139
  }), dR = (t, s) => ({
25138
25140
  primary: t,
25139
- menus: Ot(t, s),
25141
+ menus: Rt(t, s),
25140
25142
  expansions: {}
25141
25143
  }), Y7 = (t) => ({
25142
25144
  value: Wt(q7()),
@@ -26849,7 +26851,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
26849
26851
  processor: "object",
26850
26852
  default: {}
26851
26853
  }), c("toolbar", {
26852
- processor: (p) => jn(p) || Q(p) || $t(p) ? {
26854
+ processor: (p) => jn(p) || Q(p) || Dt(p) ? {
26853
26855
  value: p,
26854
26856
  valid: !0
26855
26857
  } : {
@@ -26928,7 +26930,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
26928
26930
  return wR.baseURL + "/skins/ui/" + a;
26929
26931
  }
26930
26932
  }, t_ = (t) => A.from(t.options.get("skin_url")), NR = (t) => t.options.get("line_height_formats").split(" "), n_ = (t) => {
26931
- const s = KS(t), a = Q(s), c = $t(s) && s.length > 0;
26933
+ const s = KS(t), a = Q(s), c = Dt(s) && s.length > 0;
26932
26934
  return !Aw(t) && (c || a || s === !0);
26933
26935
  }, Q4 = (t) => {
26934
26936
  const s = ao(9, (c) => t.options.get("toolbar" + (c + 1))), a = eo(s, Q);
@@ -31138,10 +31140,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31138
31140
  let a = null, c = null;
31139
31141
  return {
31140
31142
  cancel: () => {
31141
- Sn(a) || (clearTimeout(a), a = null, c = null);
31143
+ Cn(a) || (clearTimeout(a), a = null, c = null);
31142
31144
  },
31143
31145
  throttle: (...p) => {
31144
- c = p, Sn(a) && (a = setTimeout(() => {
31146
+ c = p, Cn(a) && (a = setTimeout(() => {
31145
31147
  const w = c;
31146
31148
  a = null, c = null, t.apply(null, w);
31147
31149
  }, s));
@@ -31151,10 +31153,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31151
31153
  let a = null;
31152
31154
  return {
31153
31155
  cancel: () => {
31154
- Sn(a) || (clearTimeout(a), a = null);
31156
+ Cn(a) || (clearTimeout(a), a = null);
31155
31157
  },
31156
31158
  throttle: (...g) => {
31157
- Sn(a) && (a = setTimeout(() => {
31159
+ Cn(a) && (a = setTimeout(() => {
31158
31160
  a = null, t.apply(null, g);
31159
31161
  }, s));
31160
31162
  }
@@ -31162,7 +31164,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31162
31164
  }, Q_ = (t, s) => {
31163
31165
  let a = null;
31164
31166
  const c = () => {
31165
- Sn(a) || (clearTimeout(a), a = null);
31167
+ Cn(a) || (clearTimeout(a), a = null);
31166
31168
  };
31167
31169
  return {
31168
31170
  cancel: c,
@@ -31569,7 +31571,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31569
31571
  const d = Wt("primary-menu"), g = IP(t, a.shared.providers.menuItems());
31570
31572
  if (g.items.length === 0)
31571
31573
  return A.none();
31572
- const p = uH(c), w = xM(d, g.items, s, a, c.isHorizontalMenu, p), C = dH(c), E = Go(g.menus, (N, H) => xM(H, N, s, a, !1, C)), O = Zo(E, Ot(d, w));
31574
+ const p = uH(c), w = xM(d, g.items, s, a, c.isHorizontalMenu, p), C = dH(c), E = Go(g.menus, (N, H) => xM(H, N, s, a, !1, C)), O = Zo(E, Rt(d, w));
31573
31575
  return A.from(jp.tieredData(d, O, g.expansions));
31574
31576
  }, JA = (t) => !go(t, "items"), LP = "data-value", FP = (t, s, a, c) => tt(a, (d) => JA(d) ? {
31575
31577
  type: "togglemenuitem",
@@ -31654,7 +31656,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31654
31656
  value: d.value,
31655
31657
  innerHtml: d.text
31656
31658
  }
31657
- })), c = t.data.map((d) => Ot("initialValue", d)).getOr({});
31659
+ })), c = t.data.map((d) => Rt("initialValue", d)).getOr({});
31658
31660
  return {
31659
31661
  uid: t.uid,
31660
31662
  dom: {
@@ -32226,7 +32228,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32226
32228
  styles: {}
32227
32229
  } : {
32228
32230
  classes: [s.closedClass],
32229
- styles: Ot(s.dimension.property, "0px")
32231
+ styles: Rt(s.dimension.property, "0px")
32230
32232
  });
32231
32233
  },
32232
32234
  events: (t, s) => Es([Hd(jg(), (a, c) => {
@@ -32716,7 +32718,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32716
32718
  setValue: (N, H) => {
32717
32719
  rp(N.element, t.model.getDisplayText(H));
32718
32720
  },
32719
- ...t.initialData.map((N) => Ot("initialValue", N)).getOr({})
32721
+ ...t.initialData.map((N) => Rt("initialValue", N)).getOr({})
32720
32722
  }
32721
32723
  }),
32722
32724
  Tn.config({
@@ -33823,7 +33825,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
33823
33825
  }, _V = (t) => tt(eo(t, zB), CV), _D = (t) => tt(eo(t, SD), SV), UB = (t) => yV("h1,h2,h3,h4,h5,h6,a:not([href])", t), kV = (t) => BB(t.title).length > 0, TV = { find: (t) => {
33824
33826
  const s = UB(t);
33825
33827
  return eo(_V(s).concat(_D(s)), kV);
33826
- } }, hk = "tinymce-url-history", kD = 5, WB = (t) => Q(t) && /^https?/.test(t), pk = (t) => $t(t) && t.length <= kD && vn(t, WB), ZB = (t) => Pe(t) && Qo(t, (s) => !pk(s)).isNone(), yx = () => {
33828
+ } }, hk = "tinymce-url-history", kD = 5, WB = (t) => Q(t) && /^https?/.test(t), pk = (t) => Dt(t) && t.length <= kD && vn(t, WB), ZB = (t) => Pe(t) && Qo(t, (s) => !pk(s)).isNone(), yx = () => {
33827
33829
  const t = Yp.getItem(hk);
33828
33830
  if (t === null)
33829
33831
  return {};
@@ -37182,7 +37184,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37182
37184
  const xe = C.element;
37183
37185
  g.mothership.broadcastOn([fd()], { target: xe }), bt(p, (pe) => {
37184
37186
  pe.broadcastOn([fd()], { target: xe });
37185
- }), Sn(Ds.whichView(C)) && (t.focus(), t.nodeChanged(), Ds.refreshToolbar(C));
37187
+ }), Cn(Ds.whichView(C)) && (t.focus(), t.nodeChanged(), Ds.refreshToolbar(C));
37186
37188
  }
37187
37189
  }), t.addQueryValueHandler("ToggleView", () => {
37188
37190
  var ce;
@@ -38535,7 +38537,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
38535
38537
  const w = p.update(a);
38536
38538
  if (Q(w) && ia(Vr(w)))
38537
38539
  return RO(d, w.split(" "));
38538
- if ($t(w) && w.length > 0) {
38540
+ if (Dt(w) && w.length > 0) {
38539
38541
  const C = tt(w, l8);
38540
38542
  return RO(d, C);
38541
38543
  } else
@@ -39943,7 +39945,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
39943
39945
  oa("onCancel", de),
39944
39946
  oa("onClose", de),
39945
39947
  oa("onMessage", de)
39946
- ]), wt = (t) => Ks("dialog", rt, t), Lt = (t) => Pe(t) ? [t].concat(_e(Gi(t), Lt)) : $t(t) ? _e(t, Lt) : [], Ze = (t) => Q(t.type) && Q(t.name), He = {
39948
+ ]), wt = (t) => Ks("dialog", rt, t), Lt = (t) => Pe(t) ? [t].concat(_e(Gi(t), Lt)) : Dt(t) ? _e(t, Lt) : [], Ze = (t) => Q(t.type) && Q(t.name), He = {
39947
39949
  checkbox: E8,
39948
39950
  colorinput: JZ,
39949
39951
  colorpicker: tj,
@@ -40835,7 +40837,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40835
40837
  Ft.setValue(g, p.getData());
40836
40838
  })
40837
40839
  ];
40838
- }, Ve = (t, s) => dk(t, t.type, s), Qt = (t, s, a) => qe(s, (c) => c.name === a).bind((c) => c.memento.getOpt(t)), Cn = (t, s) => {
40840
+ }, Ve = (t, s) => dk(t, t.type, s), Qt = (t, s, a) => qe(s, (c) => c.name === a).bind((c) => c.memento.getOpt(t)), Sn = (t, s) => {
40839
40841
  const a = s.map((w) => w.footerButtons).getOr([]), c = el(a, (w) => w.align === "start"), d = (w, C) => lf.sketch({
40840
40842
  dom: {
40841
40843
  tag: "div",
@@ -40869,7 +40871,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40869
40871
  channel: `${WA}-${s}`,
40870
40872
  initialData: t,
40871
40873
  updateState: c,
40872
- renderComponents: Cn
40874
+ renderComponents: Sn
40873
40875
  })])
40874
40876
  };
40875
40877
  }, Fc = (t, s, a) => Hr(t, s, a), Td = (t, s, a) => Gr.parts.footer(Hr(t, s, a)), Ha = (t, s) => {
@@ -41458,7 +41460,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41458
41460
  }, se = (i) => {
41459
41461
  const m = typeof i;
41460
41462
  return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && me(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
41461
- }, Ee = (i) => (m) => se(m) === i, fe = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), $t = fe("boolean"), Sn = G(void 0), jn = (i) => i == null, Vo = (i) => !jn(i), Us = fe("function"), Oo = fe("number"), Mt = () => {
41463
+ }, Ee = (i) => (m) => se(m) === i, fe = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), Dt = fe("boolean"), Cn = G(void 0), jn = (i) => i == null, Vo = (i) => !jn(i), Us = fe("function"), Oo = fe("number"), Mt = () => {
41462
41464
  }, pr = (i, m) => (...h) => i(m.apply(null, h)), fn = (i, m) => (h) => i(m(h)), de = (i) => () => i, kt = (i) => i, ca = (i, m) => i === m;
41463
41465
  function Qn(i, ...m) {
41464
41466
  return (...h) => {
@@ -41692,7 +41694,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41692
41694
  const m = wr("ownerDocument.defaultView", i);
41693
41695
  return Q(i) && (Gi(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(Qo(i).constructor.name));
41694
41696
  }, go = 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, Ko = (i) => tl(i) === go || es(i) === "#comment", gn = (i) => Ar(i) && vt(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) => {
41695
- if (Ae(h) || $t(h) || Oo(h))
41697
+ if (Ae(h) || Dt(h) || Oo(h))
41696
41698
  i.setAttribute(m, h + "");
41697
41699
  else
41698
41700
  throw console.error("Invalid call to Attribute.set. Key ", m, ":: Value ", h, ":: Element ", i), new Error("Attribute value was not simple");
@@ -41917,10 +41919,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41917
41919
  if (m == null)
41918
41920
  throw new Error("Body is not available yet");
41919
41921
  return Te.fromDom(m);
41920
- }, re = (i, m, h) => ao(xc(i, h), m), Le = (i, m) => ao(Ao(i), m), Dt = (i, m) => {
41922
+ }, re = (i, m, h) => ao(xc(i, h), m), Le = (i, m) => ao(Ao(i), m), Ot = (i, m) => {
41921
41923
  let h = [];
41922
41924
  return et(Ao(i), (v) => {
41923
- m(v) && (h = h.concat([v])), h = h.concat(Dt(v, m));
41925
+ m(v) && (h = h.concat([v])), h = h.concat(Ot(v, m));
41924
41926
  }), h;
41925
41927
  }, Yn = (i, m, h) => re(i, (v) => qr(v, m), h), qt = (i, m) => Le(i, (h) => qr(h, m)), $s = (i, m) => Wu(m, i);
41926
41928
  var lt = (i, m, h, v, _) => i(h, v) ? ge.some(h) : Us(_) && _(h) ? ge.none() : m(h, v, _);
@@ -41961,7 +41963,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41961
41963
  return m;
41962
41964
  }, Dd = (i, m) => i != null ? m(i) : ge.none(), Rh = (i, m) => i ? ge.some(m) : ge.none(), $h = (i, m, h) => m === "" || i.length >= m.length && i.substr(h, h + m.length) === m, Mo = (i, m, h = 0, v) => {
41963
41965
  const _ = i.indexOf(m, h);
41964
- return _ !== -1 ? Sn(v) ? !0 : _ + m.length <= v : !1;
41966
+ return _ !== -1 ? Cn(v) ? !0 : _ + m.length <= v : !1;
41965
41967
  }, Wc = (i, m) => $h(i, m, 0), Qi = (i, m) => $h(i, m, i.length - m.length), ac = ((i) => (m) => m.replace(i, ""))(/^\s+|\s+$/g), xm = (i) => i.length > 0, co = (i) => {
41966
41968
  const m = parseFloat(i);
41967
41969
  return isNaN(m) ? ge.none() : ge.some(m);
@@ -42315,15 +42317,15 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42315
42317
  }), h += _;
42316
42318
  }), m;
42317
42319
  }, Zo = (i) => {
42318
- const m = {}, h = [], _ = _e(i).map((Rt) => Rt.element).bind(sl).bind(rr).getOr({});
42320
+ const m = {}, h = [], _ = _e(i).map(($t) => $t.element).bind(sl).bind(rr).getOr({});
42319
42321
  let D = 0, L = 0, Z = 0;
42320
42322
  const {
42321
42323
  pass: ee,
42322
42324
  fail: ie
42323
- } = ur(i, (Rt) => Rt.section === "colgroup");
42324
- et(ie, (Rt) => {
42325
+ } = ur(i, ($t) => $t.section === "colgroup");
42326
+ et(ie, ($t) => {
42325
42327
  const Qe = [];
42326
- et(Rt.cells, (It) => {
42328
+ et($t.cells, (It) => {
42327
42329
  let Ye = 0;
42328
42330
  for (; m[Gc(Z, Ye)] !== void 0; )
42329
42331
  Ye++;
@@ -42334,12 +42336,12 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42334
42336
  m[Pc] = kn, L = Math.max(L, kr + 1);
42335
42337
  }
42336
42338
  Qe.push(kn);
42337
- }), D++, h.push(ue(Rt.element, Qe, Rt.section)), Z++;
42339
+ }), D++, h.push(ue($t.element, Qe, $t.section)), Z++;
42338
42340
  });
42339
- const { columns: De, colgroups: at } = vn(ee).map((Rt) => {
42340
- const Qe = Vh(Rt);
42341
+ const { columns: De, colgroups: at } = vn(ee).map(($t) => {
42342
+ const Qe = Vh($t);
42341
42343
  return {
42342
- colgroups: [ss(Rt.element, ps(Qe))],
42344
+ colgroups: [ss($t.element, ps(Qe))],
42343
42345
  columns: Qe
42344
42346
  };
42345
42347
  }).getOrThunk(() => ({
@@ -42604,8 +42606,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42604
42606
  return Lo(i.access, (De) => {
42605
42607
  if (ee.push(De), m(De)) {
42606
42608
  ie.push(De);
42607
- const at = De.row, Bt = at + De.rowspan - 1, Rt = De.column, Qe = Rt + De.colspan - 1;
42608
- at < _ ? _ = at : Bt > L && (L = Bt), Rt < D ? D = Rt : Qe > Z && (Z = Qe);
42609
+ const at = De.row, Bt = at + De.rowspan - 1, $t = De.column, Qe = $t + De.colspan - 1;
42610
+ at < _ ? _ = at : Bt > L && (L = Bt), $t < D ? D = $t : Qe > Z && (Z = Qe);
42609
42611
  }
42610
42612
  }), Au(_, D, L, Z, ee, ie);
42611
42613
  }, x = (i, m, h) => {
@@ -42636,7 +42638,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42636
42638
  et(ie, or), T(_, L, Z, h);
42637
42639
  const De = Gn.fromTable(i), at = K(i, De, D, Z);
42638
42640
  return V(v, Z, L, at), v;
42639
- }, je = " ", Ot = ((i, m) => {
42641
+ }, je = " ", Rt = ((i, m) => {
42640
42642
  const h = (D) => {
42641
42643
  if (!i(D))
42642
42644
  throw new Error("Can only get " + m + " value of a " + m + " node");
@@ -42651,7 +42653,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42651
42653
  D.dom.nodeValue = L;
42652
42654
  }
42653
42655
  };
42654
- })(Nl, "text"), on = (i) => Ot.get(i), Hn = (i) => Ot.getOption(i), ar = (i, m) => Ot.set(i, m), Po = (i) => es(i) === "img" ? 1 : Hn(i).fold(() => Ao(i).length, (m) => m.length), Bs = (i) => Hn(i).filter((m) => m.trim().length !== 0 || m.indexOf(je) > -1).isSome(), mc = (i) => gn(i) && Vr(i, "contenteditable") === "false", Gl = [
42656
+ })(Nl, "text"), on = (i) => Rt.get(i), Hn = (i) => Rt.getOption(i), ar = (i, m) => Rt.set(i, m), Po = (i) => es(i) === "img" ? 1 : Hn(i).fold(() => Ao(i).length, (m) => m.length), Bs = (i) => Hn(i).filter((m) => m.trim().length !== 0 || m.indexOf(je) > -1).isSome(), mc = (i) => gn(i) && Vr(i, "contenteditable") === "false", Gl = [
42655
42657
  "img",
42656
42658
  "br"
42657
42659
  ], Xc = (i) => Bs(i) || Gt(Gl, es(i)) || mc(i), Ld = (i) => Cr(i, Xc), cu = (i) => Ug(i, Xc), Ug = (i, m) => {
@@ -42921,7 +42923,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42921
42923
  }),
42922
42924
  down: de({
42923
42925
  selector: $s,
42924
- predicate: Dt
42926
+ predicate: Ot
42925
42927
  }),
42926
42928
  styles: de({
42927
42929
  get: ga,
@@ -43137,27 +43139,27 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43137
43139
  ], ti);
43138
43140
  }, m = (Z, ee, ie, De) => {
43139
43141
  const at = (100 + ie) / 100, Bt = Math.max(De, (Z[ee] + ie) / at);
43140
- return ln(Z, (Rt, Qe) => (Qe === ee ? Bt : Rt / at) - Rt);
43142
+ return ln(Z, ($t, Qe) => (Qe === ee ? Bt : $t / at) - $t);
43141
43143
  }, h = (Z, ee, ie, De, at, Bt) => Bt ? m(Z, ee, De, at) : i(Z, ee, ie, De, at);
43142
43144
  return {
43143
43145
  resizeTable: (Z, ee) => Z(ee),
43144
43146
  clampTableDelta: Tb,
43145
43147
  calcLeftEdgeDeltas: h,
43146
- calcMiddleDeltas: (Z, ee, ie, De, at, Bt, Rt) => h(Z, ie, De, at, Bt, Rt),
43148
+ calcMiddleDeltas: (Z, ee, ie, De, at, Bt, $t) => h(Z, ie, De, at, Bt, $t),
43147
43149
  calcRightEdgeDeltas: (Z, ee, ie, De, at, Bt) => {
43148
43150
  if (Bt)
43149
43151
  return m(Z, ie, De, at);
43150
43152
  {
43151
- const Rt = Tb(Z, ie, De, at);
43152
- return ti(Z.slice(0, ie)).concat([Rt]);
43153
+ const $t = Tb(Z, ie, De, at);
43154
+ return ti(Z.slice(0, ie)).concat([$t]);
43153
43155
  }
43154
43156
  },
43155
43157
  calcRedestributedWidths: (Z, ee, ie, De) => {
43156
43158
  if (De) {
43157
- const Bt = (ee + ie) / ee, Rt = ln(Z, (Qe) => Qe / Bt);
43159
+ const Bt = (ee + ie) / ee, $t = ln(Z, (Qe) => Qe / Bt);
43158
43160
  return {
43159
43161
  delta: Bt * 100 - 100,
43160
- newSizes: Rt
43162
+ newSizes: $t
43161
43163
  };
43162
43164
  } else
43163
43165
  return {
@@ -43183,7 +43185,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43183
43185
  if (ee >= 0)
43184
43186
  return ee;
43185
43187
  {
43186
- const at = tt(L, (Bt, Rt) => Bt + Rt - ie, 0);
43188
+ const at = tt(L, (Bt, $t) => Bt + $t - ie, 0);
43187
43189
  return Math.max(-at, ee);
43188
43190
  }
43189
43191
  } else
@@ -43266,33 +43268,33 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43266
43268
  });
43267
43269
  return ma(h), h;
43268
43270
  }, $b = (i, m) => {
43269
- const h = [], v = [], _ = (Rt) => ln(Rt, (Qe) => {
43271
+ const h = [], v = [], _ = ($t) => ln($t, (Qe) => {
43270
43272
  Qe.isNew && h.push(Qe.element);
43271
43273
  const It = Qe.element;
43272
43274
  return ma(It), et(Qe.cells, (Ye) => {
43273
43275
  Ye.isNew && v.push(Ye.element), Ud(Ye.element, "colspan", Ye.colspan, 1), Ud(Ye.element, "rowspan", Ye.rowspan, 1), ns(It, Ye.element);
43274
43276
  }), It;
43275
- }), D = (Rt) => os(Rt, (Qe) => ln(Qe.cells, (It) => (Ud(It.element, "span", It.colspan, 1), It.element))), L = (Rt, Qe) => {
43276
- const It = np(i, Qe), Jt = (Qe === "colgroup" ? D : _)(Rt);
43277
+ }), D = ($t) => os($t, (Qe) => ln(Qe.cells, (It) => (Ud(It.element, "span", It.colspan, 1), It.element))), L = ($t, Qe) => {
43278
+ const It = np(i, Qe), Jt = (Qe === "colgroup" ? D : _)($t);
43277
43279
  Or(It, Jt);
43278
- }, Z = (Rt) => {
43279
- ho(i, Rt).each(or);
43280
- }, ee = (Rt, Qe) => {
43281
- Rt.length > 0 ? L(Rt, Qe) : Z(Qe);
43280
+ }, Z = ($t) => {
43281
+ ho(i, $t).each(or);
43282
+ }, ee = ($t, Qe) => {
43283
+ $t.length > 0 ? L($t, Qe) : Z(Qe);
43282
43284
  }, ie = [], De = [], at = [], Bt = [];
43283
- return et(m, (Rt) => {
43284
- switch (Rt.section) {
43285
+ return et(m, ($t) => {
43286
+ switch ($t.section) {
43285
43287
  case "thead":
43286
- ie.push(Rt);
43288
+ ie.push($t);
43287
43289
  break;
43288
43290
  case "tbody":
43289
- De.push(Rt);
43291
+ De.push($t);
43290
43292
  break;
43291
43293
  case "tfoot":
43292
- at.push(Rt);
43294
+ at.push($t);
43293
43295
  break;
43294
43296
  case "colgroup":
43295
- Bt.push(Rt);
43297
+ Bt.push($t);
43296
43298
  break;
43297
43299
  }
43298
43300
  }), ee(Bt, "colgroup"), ee(ie, "thead"), ee(De, "tbody"), ee(at, "tfoot"), {
@@ -43358,7 +43360,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43358
43360
  }, ml = (i, m, h, v, _) => (D, L, Z, ee) => {
43359
43361
  const ie = Gn.fromTable(D), De = ge.from(ee == null ? void 0 : ee.section).getOrThunk(Pf.fallback);
43360
43362
  return m(ie, L).map((Bt) => {
43361
- const Rt = sa(ie, Z), Qe = i(Rt, Bt, ts, _(Z), De), It = Wr(Qe.grid), Ye = lr(Qe.grid);
43363
+ const $t = sa(ie, Z), Qe = i($t, Bt, ts, _(Z), De), It = Wr(Qe.grid), Ye = lr(Qe.grid);
43362
43364
  return {
43363
43365
  info: Bt,
43364
43366
  grid: Ye,
@@ -43366,15 +43368,15 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43366
43368
  lockedColumns: It
43367
43369
  };
43368
43370
  }).bind((Bt) => {
43369
- const Rt = $b(D, Bt.grid), Qe = ge.from(ee == null ? void 0 : ee.sizing).getOrThunk(() => jl.getTableSize(D)), It = ge.from(ee == null ? void 0 : ee.resize).getOrThunk(zy);
43371
+ const $t = $b(D, Bt.grid), Qe = ge.from(ee == null ? void 0 : ee.sizing).getOrThunk(() => jl.getTableSize(D)), It = ge.from(ee == null ? void 0 : ee.resize).getOrThunk(zy);
43370
43372
  return h(D, Bt.grid, Bt.info, {
43371
43373
  sizing: Qe,
43372
43374
  resize: It,
43373
43375
  section: De
43374
43376
  }), v(D), Is(D, Ju), Bt.lockedColumns.length > 0 && Ws(D, Ju, Bt.lockedColumns.join(",")), ge.some({
43375
43377
  cursor: Bt.cursor,
43376
- newRows: Rt.newRows,
43377
- newCells: Rt.newCells
43378
+ newRows: $t.newRows,
43379
+ newCells: $t.newCells
43378
43380
  });
43379
43381
  });
43380
43382
  }, P1 = (i, m) => Cm(m.element).bind((h) => ki(i, h).map((v) => ({
@@ -43517,16 +43519,16 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43517
43519
  return i.length > 1 && zl(L) > 1 && (h > 0 && D(mr(L, h - 1)) || h < L.cells.length - 1 && D(mr(L, h + 1)) || m > 0 && D(mr(i[m - 1], h)) || m < i.length - 1 && D(mr(i[m + 1], h)));
43518
43520
  }, Bb = (i, m, h, v, _, D) => {
43519
43521
  const L = i.row, Z = i.column, ee = h.length, ie = zl(h[0]), De = L + ee, at = Z + ie + D.length, Bt = qe(D, We);
43520
- for (let Rt = L; Rt < De; Rt++) {
43522
+ for (let $t = L; $t < De; $t++) {
43521
43523
  let Qe = 0;
43522
43524
  for (let It = Z; It < at; It++) {
43523
43525
  if (Bt[It]) {
43524
43526
  Qe++;
43525
43527
  continue;
43526
43528
  }
43527
- iC(m, Rt, It, _) && ql(m, mr(m[Rt], It), _, v.cell);
43528
- const Ye = It - Z - Qe, Jt = pa(h[Rt - L], Ye), kn = Jt.element, Un = v.replace(kn);
43529
- Pd(m[Rt], It, Ne(Un, !0, Jt.isLocked));
43529
+ iC(m, $t, It, _) && ql(m, mr(m[$t], It), _, v.cell);
43530
+ const Ye = It - Z - Qe, Jt = pa(h[$t - L], Ye), kn = Jt.element, Un = v.replace(kn);
43531
+ Pd(m[$t], It, Ne(Un, !0, Jt.isLocked));
43530
43532
  }
43531
43533
  }
43532
43534
  return m;
@@ -43542,7 +43544,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43542
43544
  const at = {
43543
43545
  ...De,
43544
43546
  colDelta: De.colDelta - ee.length
43545
- }, Bt = ip(m, at, v), Rt = Wr(Bt), Qe = Ti(L, Z, Rt);
43547
+ }, Bt = ip(m, at, v), $t = Wr(Bt), Qe = Ti(L, Z, $t);
43546
43548
  return Bb(L, Bt, Z, v, _, Qe);
43547
43549
  });
43548
43550
  }, Nb = (i, m, h, v, _) => {
@@ -43557,10 +43559,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43557
43559
  }, ee = ip(m, Z, v), {
43558
43560
  cols: ie,
43559
43561
  rows: De
43560
- } = $r(ee), at = Wr(ee), Bt = lp(h, m), Rt = {
43562
+ } = $r(ee), at = Wr(ee), Bt = lp(h, m), $t = {
43561
43563
  ...Bt,
43562
43564
  colDelta: Bt.colDelta + at.length
43563
- }, Qe = cC(h, v, at), It = ip(Qe, Rt, v);
43565
+ }, Qe = cC(h, v, at), It = ip(Qe, $t, v);
43564
43566
  return [
43565
43567
  ...ie,
43566
43568
  ...De.slice(0, i),
@@ -43602,8 +43604,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43602
43604
  return ln(i, (ee, ie) => Hh(ee, (De, at) => {
43603
43605
  if (Z(De)) {
43604
43606
  const Bt = L(De, ie, at) ? _(De, h, v) : De;
43605
- return D(Bt, ie, at).each((Rt) => {
43606
- qi(Bt.element, { scope: ge.from(Rt) });
43607
+ return D(Bt, ie, at).each(($t) => {
43608
+ qi(Bt.element, { scope: ge.from($t) });
43607
43609
  }), Bt;
43608
43610
  } else
43609
43611
  return De;
@@ -43619,11 +43621,11 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43619
43621
  et(m, (Ye) => {
43620
43622
  Bt[Ye] = L.transformRow(ee[Ye], h);
43621
43623
  });
43622
- const Rt = [
43624
+ const $t = [
43623
43625
  ...Z,
43624
43626
  ...Bt
43625
43627
  ], Qe = eh(ie, at), It = mC(v, at);
43626
- return oh(Rt, De, _, D, L.transformCell, It, Qe);
43628
+ return oh($t, De, _, D, L.transformCell, It, Qe);
43627
43629
  }, Lb = (i, m, h, v) => {
43628
43630
  const _ = $r(i).rows, D = ln(m, (L) => pa(_[L.row], L.column));
43629
43631
  return oh(i, D, h, v, Lf, ge.none, We);
@@ -43697,7 +43699,7 @@ Required: ` + m.join(", "));
43697
43699
  ]
43698
43700
  }
43699
43701
  ]) }, hC = (i, m) => i.length === 0 ? dp.none() : i.length === 1 ? dp.only(0) : m === 0 ? dp.left(0, 1) : m === i.length - 1 ? dp.right(m - 1, m) : m > 0 && m < i.length - 1 ? dp.middle(m - 1, m, m + 1) : dp.none(), WT = (i, m, h, v, _) => {
43700
- const D = i.slice(0), L = hC(i, m), Z = de(ln(D, de(0))), ee = (Bt) => v.singleColumnWidth(D[Bt], h), ie = (Bt, Rt) => _.calcLeftEdgeDeltas(D, Bt, Rt, h, v.minCellWidth(), v.isRelative), De = (Bt, Rt, Qe) => _.calcMiddleDeltas(D, Bt, Rt, Qe, h, v.minCellWidth(), v.isRelative), at = (Bt, Rt) => _.calcRightEdgeDeltas(D, Bt, Rt, h, v.minCellWidth(), v.isRelative);
43702
+ const D = i.slice(0), L = hC(i, m), Z = de(ln(D, de(0))), ee = (Bt) => v.singleColumnWidth(D[Bt], h), ie = (Bt, $t) => _.calcLeftEdgeDeltas(D, Bt, $t, h, v.minCellWidth(), v.isRelative), De = (Bt, $t, Qe) => _.calcMiddleDeltas(D, Bt, $t, Qe, h, v.minCellWidth(), v.isRelative), at = (Bt, $t) => _.calcRightEdgeDeltas(D, Bt, $t, h, v.minCellWidth(), v.isRelative);
43701
43703
  return L.fold(Z, ee, ie, De, at);
43702
43704
  }, N1 = (i, m, h) => {
43703
43705
  let v = 0;
@@ -43740,7 +43742,7 @@ Required: ` + m.join(", "));
43740
43742
  h.setElementWidth(_.element, _.width);
43741
43743
  });
43742
43744
  }, I1 = (i, m, h, v, _) => {
43743
- const D = Gn.fromTable(i), L = _.getCellDelta(m), Z = _.getWidths(D, _), ee = h === D.grid.columns - 1, ie = v.clampTableDelta(Z, h, L, _.minCellWidth(), ee), De = WT(Z, h, ie, _, v), at = ln(De, (Bt, Rt) => Bt + Z[Rt]);
43745
+ const D = Gn.fromTable(i), L = _.getCellDelta(m), Z = _.getWidths(D, _), ee = h === D.grid.columns - 1, ie = v.clampTableDelta(Z, h, L, _.minCellWidth(), ee), De = WT(Z, h, ie, _, v), at = ln(De, (Bt, $t) => Bt + Z[$t]);
43744
43746
  ls(D, at, _), v.resizeTable(_.adjustTableWidth, ie, ee);
43745
43747
  }, Yy = (i, m, h, v) => {
43746
43748
  const _ = Gn.fromTable(i), D = Re(_, i, v), L = ln(D, (De, at) => h === at ? Math.max(m + De, kc()) : De), Z = xo(_, L), ee = ri(_, L);
@@ -44076,11 +44078,11 @@ Required: ` + m.join(", "));
44076
44078
  effect: em
44077
44079
  }));
44078
44080
  }) : ge.none();
44079
- }, at = De(xC, _, Mt, to), Bt = De(Ai, D, Mt, to), Rt = De(U1, We, Mt, to), Qe = De(qd, We, Mt, to), It = De(Mu, We, Z, to), Ye = De(Vt, We, Z, to), Jt = De(JT, We, Mt, to), kn = De(Yl, We, Mt, to), Un = De(QT, We, Mt, to), Gs = De(eE, We, Mt, to), ka = De(f2, We, Mt, to), kr = De(tE, We, Mt, to), Pc = De(W1, We, Mt, p2), fh = De(XT, We, Mt, to), gh = De(m2, We, Mt, to), uw = De(CC, We, Mt, to), Tv = De(i2, We, Mt, to), ds = De(SC, We, Mt, to), Ql = De(u2, We, Mt, to), hl = De(d2, We, Mt, to);
44081
+ }, at = De(xC, _, Mt, to), Bt = De(Ai, D, Mt, to), $t = De(U1, We, Mt, to), Qe = De(qd, We, Mt, to), It = De(Mu, We, Z, to), Ye = De(Vt, We, Z, to), Jt = De(JT, We, Mt, to), kn = De(Yl, We, Mt, to), Un = De(QT, We, Mt, to), Gs = De(eE, We, Mt, to), ka = De(f2, We, Mt, to), kr = De(tE, We, Mt, to), Pc = De(W1, We, Mt, p2), fh = De(XT, We, Mt, to), gh = De(m2, We, Mt, to), uw = De(CC, We, Mt, to), Tv = De(i2, We, Mt, to), ds = De(SC, We, Mt, to), Ql = De(u2, We, Mt, to), hl = De(d2, We, Mt, to);
44080
44082
  return {
44081
44083
  deleteRow: at,
44082
44084
  deleteColumn: Bt,
44083
- insertRowsBefore: Rt,
44085
+ insertRowsBefore: $t,
44084
44086
  insertRowsAfter: Qe,
44085
44087
  insertColumnsBefore: It,
44086
44088
  insertColumnsAfter: Ye,
@@ -44136,7 +44138,7 @@ Required: ` + m.join(", "));
44136
44138
  const v = Gn.fromTable(i);
44137
44139
  return Bf(v, m).bind((D) => {
44138
44140
  const L = op(v, h, !1), ee = $r(L).rows.slice(D[0].row, D[D.length - 1].row + D[D.length - 1].rowspan), ie = os(ee, (at) => {
44139
- const Bt = ao(at.cells, (Rt) => !Rt.isLocked);
44141
+ const Bt = ao(at.cells, ($t) => !$t.isLocked);
44140
44142
  return Bt.length > 0 ? [{
44141
44143
  ...at,
44142
44144
  cells: Bt
@@ -44257,10 +44259,10 @@ Required: ` + m.join(", "));
44257
44259
  Pa(L, D.styles), vl(L, D.attributes), D.colGroups && ns(L, fE(m));
44258
44260
  const ee = Math.min(i, h);
44259
44261
  if (Z && h > 0) {
44260
- const Rt = Te.fromTag("thead");
44261
- ns(L, Rt);
44262
+ const $t = Te.fromTag("thead");
44263
+ ns(L, $t);
44262
44264
  const It = x2(h, m, _ === "sectionCells" ? ee : 0, v);
44263
- Or(Rt, It);
44265
+ Or($t, It);
44264
44266
  }
44265
44267
  const ie = Te.fromTag("tbody");
44266
44268
  ns(L, ie);
@@ -44356,7 +44358,7 @@ Required: ` + m.join(", "));
44356
44358
  }), Bt = () => L((Ye, Jt) => {
44357
44359
  const kn = qh(iu(i), Ye, Jt), Un = ya(Mt, Te.fromDom(i.getDoc()), ge.none());
44358
44360
  return aE(Ye, kn, Un);
44359
- }), Rt = () => L((Ye, Jt) => {
44361
+ }), $t = () => L((Ye, Jt) => {
44360
44362
  const kn = qh(iu(i), Ye, Jt);
44361
44363
  return rE(Ye, kn);
44362
44364
  }), Qe = (Ye, Jt) => Jt().each((kn) => {
@@ -44377,13 +44379,13 @@ Required: ` + m.join(", "));
44377
44379
  mceTableInsertColAfter: () => at(m.insertColumnsAfter),
44378
44380
  mceTableDeleteCol: () => at(m.deleteColumn),
44379
44381
  mceTableDeleteRow: () => at(m.deleteRow),
44380
- mceTableCutCol: () => Rt().each((Ye) => {
44382
+ mceTableCutCol: () => $t().each((Ye) => {
44381
44383
  T2(Ye), at(m.deleteColumn);
44382
44384
  }),
44383
44385
  mceTableCutRow: () => Bt().each((Ye) => {
44384
44386
  Jb(Ye), at(m.deleteRow);
44385
44387
  }),
44386
- mceTableCopyCol: () => Rt().each((Ye) => T2(Ye)),
44388
+ mceTableCopyCol: () => $t().each((Ye) => T2(Ye)),
44387
44389
  mceTableCopyRow: () => Bt().each((Ye) => Jb(Ye)),
44388
44390
  mceTablePasteColBefore: () => Qe(m.pasteColsBefore, FC),
44389
44391
  mceTablePasteColAfter: () => Qe(m.pasteColsAfter, FC),
@@ -44711,12 +44713,12 @@ Required: ` + m.join(", "));
44711
44713
  const _ = $p(), D = _.clear, L = (De) => {
44712
44714
  _.on((at) => {
44713
44715
  v.clearBeforeUpdate(m), cv(De.target, h).each((Bt) => {
44714
- Ou(at, Bt, h).each((Rt) => {
44715
- const Qe = Rt.boxes.getOr([]);
44716
+ Ou(at, Bt, h).each(($t) => {
44717
+ const Qe = $t.boxes.getOr([]);
44716
44718
  if (Qe.length === 1) {
44717
44719
  const It = Qe[0], Ye = k1(It) === "false", Jt = pi(hb(De.target), It, ts);
44718
44720
  Ye && Jt && (v.selectRange(m, Qe, It, It), i.selectContents(It));
44719
- } else Qe.length > 1 && (v.selectRange(m, Qe, Rt.start, Rt.finish), i.selectContents(Bt));
44721
+ } else Qe.length > 1 && (v.selectRange(m, Qe, $t.start, $t.finish), i.selectContents(Bt));
44720
44722
  });
44721
44723
  });
44722
44724
  });
@@ -44929,25 +44931,25 @@ Required: ` + m.join(", "));
44929
44931
  }, bv = (i) => Ua(i, gn).exists(Of), d0 = (i, m) => bv(i) || bv(m), vv = (i, m, h, v) => {
44930
44932
  const _ = Np(i), D = () => (v.clear(m), ge.none());
44931
44933
  return {
44932
- keydown: (ee, ie, De, at, Bt, Rt) => {
44934
+ keydown: (ee, ie, De, at, Bt, $t) => {
44933
44935
  const Qe = ee.raw, It = Qe.which, Ye = Qe.shiftKey === !0;
44934
44936
  return Lm(m, v.selectedSelector).fold(() => (uh(It) && !Ye && v.clearBeforeUpdate(m), uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Qn(nS, _, m, h, iv, at, ie, v.selectRange) : uv(It) && Ye ? Qn(nS, _, m, h, Mp, at, ie, v.selectRange) : dv(It) ? Qn(fd, _, h, iv, at, ie, z2) : uv(It) ? Qn(fd, _, h, Mp, at, ie, ih) : ge.none), (kn) => {
44935
44937
  const Un = (Gs) => () => jo(Gs, (kr) => RE(kr.rows, kr.cols, m, kn, v)).fold(() => Kg(m, v.firstSelectedSelector, v.lastSelectedSelector).map((kr) => {
44936
- const Pc = dv(It) || Rt.isForward(It) ? qa.after : qa.before;
44938
+ const Pc = dv(It) || $t.isForward(It) ? qa.after : qa.before;
44937
44939
  return _.setRelativeSelection(qa.on(kr.first, 0), Pc(kr.table)), v.clear(m), Cp.create(ge.none(), !0);
44938
44940
  }), (kr) => ge.some(Cp.create(ge.none(), !0)));
44939
- return uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Un([gl(1, 0)]) : uv(It) && Ye ? Un([gl(-1, 0)]) : Rt.isBackward(It) && Ye ? Un([
44941
+ return uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Un([gl(1, 0)]) : uv(It) && Ye ? Un([gl(-1, 0)]) : $t.isBackward(It) && Ye ? Un([
44940
44942
  gl(0, -1),
44941
44943
  gl(-1, 0)
44942
- ]) : Rt.isForward(It) && Ye ? Un([
44944
+ ]) : $t.isForward(It) && Ye ? Un([
44943
44945
  gl(0, 1),
44944
44946
  gl(1, 0)
44945
44947
  ]) : uh(It) && !Ye ? D : ge.none;
44946
44948
  })();
44947
44949
  },
44948
44950
  keyup: (ee, ie, De, at, Bt) => Lm(m, v.selectedSelector).fold(() => {
44949
- const Rt = ee.raw, Qe = Rt.which;
44950
- return Rt.shiftKey === !0 && uh(Qe) && d0(ie, at) ? tv(m, h, ie, De, at, Bt, v.selectRange) : ge.none();
44951
+ const $t = ee.raw, Qe = $t.which;
44952
+ return $t.shiftKey === !0 && uh(Qe) && d0(ie, at) ? tv(m, h, ie, De, at, Bt, v.selectRange) : ge.none();
44951
44953
  }, ge.none)
44952
44954
  };
44953
44955
  }, m0 = (i, m, h, v) => {
@@ -45081,7 +45083,7 @@ Required: ` + m.join(", "));
45081
45083
  }, GE = We, Lp = (i, m, h) => Q2(i, m, GE, h), Fp = X2, tw = (i) => !Mc(Te.fromDom(i.target), "ephox-snooker-resizer-bar"), nw = (i, m) => {
45082
45084
  const h = Y2(() => Te.fromDom(i.getBody()), () => $1(_i(i), Fd(i)), Yg.selectedSelector), v = (ee, ie, De) => {
45083
45085
  sl(ie).each((Bt) => {
45084
- const Rt = Bm(i), Qe = ya(Mt, Te.fromDom(i.getDoc()), Rt), It = iu(i), Ye = Jm(Bt, { selection: It }, Qe);
45086
+ const $t = Bm(i), Qe = ya(Mt, Te.fromDom(i.getDoc()), $t), It = iu(i), Ye = Jm(Bt, { selection: It }, Qe);
45085
45087
  nE(i, ee, ie, De, Ye);
45086
45088
  });
45087
45089
  }, _ = () => oE(i), D = Xm.byAttr(Yg, v, _);
@@ -45092,7 +45094,7 @@ Required: ` + m.join(", "));
45092
45094
  Ql,
45093
45095
  hl
45094
45096
  ]).fold(() => D.clear(De), Mt);
45095
- }, Rt = Yr(ie, De, at, D), Qe = vv(ie, De, at, D), It = m0(ie, De, at, D), Ye = (ds) => ds.raw.shiftKey === !0;
45097
+ }, $t = Yr(ie, De, at, D), Qe = vv(ie, De, at, D), It = m0(ie, De, at, D), Ye = (ds) => ds.raw.shiftKey === !0;
45096
45098
  i.on("TableSelectorChange", (ds) => It(ds.start, ds.finish));
45097
45099
  const Jt = (ds, Ql) => {
45098
45100
  Ye(ds) && (Ql.kill && ds.kill(), Ql.selection.each((hl) => {
@@ -45115,13 +45117,13 @@ Required: ` + m.join(", "));
45115
45117
  Jt(Ql, pc);
45116
45118
  }), m.show();
45117
45119
  }, Gs = (ds) => ds.button === 0, ka = (ds) => ds.buttons === void 0 ? !0 : (ds.buttons & 1) !== 0, kr = (ds) => {
45118
- Rt.clearstate();
45120
+ $t.clearstate();
45119
45121
  }, Pc = (ds) => {
45120
- Gs(ds) && tw(ds) && Rt.mousedown(Fp(ds));
45122
+ Gs(ds) && tw(ds) && $t.mousedown(Fp(ds));
45121
45123
  }, fh = (ds) => {
45122
- ka(ds) && tw(ds) && Rt.mouseover(Fp(ds));
45124
+ ka(ds) && tw(ds) && $t.mouseover(Fp(ds));
45123
45125
  }, gh = (ds) => {
45124
- Gs(ds) && tw(ds) && Rt.mouseup(Fp(ds));
45126
+ Gs(ds) && tw(ds) && $t.mouseup(Fp(ds));
45125
45127
  }, Tv = (() => {
45126
45128
  const ds = a0(Te.fromDom(De)), Ql = a0(0);
45127
45129
  return { touchEnd: (Mi) => {
@@ -45291,13 +45293,13 @@ Required: ` + m.join(", "));
45291
45293
  v = !0;
45292
45294
  }, at = () => {
45293
45295
  v = !1;
45294
- }, Bt = () => v, Rt = (Ye) => (...Jt) => {
45296
+ }, Bt = () => v, $t = (Ye) => (...Jt) => {
45295
45297
  v && Ye.apply(null, Jt);
45296
45298
  }, Qe = m.sink(XE({
45297
45299
  forceDrop: L,
45298
- drop: Rt(L),
45299
- move: Rt(ie),
45300
- delayDrop: Rt(Z.throttle)
45300
+ drop: $t(L),
45301
+ move: $t(ie),
45302
+ delayDrop: $t(Z.throttle)
45301
45303
  }), h), It = () => {
45302
45304
  Qe.destroy();
45303
45305
  };
@@ -45446,9 +45448,9 @@ Required: ` + m.join(", "));
45446
45448
  return mu(L, rw), L;
45447
45449
  });
45448
45450
  }, l4 = (i, m, h, v, _) => {
45449
- const D = Kt(h), L = m.isResizable, Z = v.length > 0 ? Zt.positions(v, h) : [], ee = Z.length > 0 ? s4(i, L) : [], ie = ao(Z, (Rt, Qe) => nt(ee, (It) => Qe === It));
45451
+ const D = Kt(h), L = m.isResizable, Z = v.length > 0 ? Zt.positions(v, h) : [], ee = Z.length > 0 ? s4(i, L) : [], ie = ao(Z, ($t, Qe) => nt(ee, (It) => Qe === It));
45450
45452
  a4(m, ie, D, Ci(h));
45451
- const De = _.length > 0 ? Mr.positions(_, h) : [], at = De.length > 0 ? r4(i, L) : [], Bt = ao(De, (Rt, Qe) => nt(at, (It) => Qe === It));
45453
+ const De = _.length > 0 ? Mr.positions(_, h) : [], at = De.length > 0 ? r4(i, L) : [], Bt = ao(De, ($t, Qe) => nt(at, (It) => Qe === It));
45452
45454
  SS(m, Bt, D, S(h));
45453
45455
  }, Cv = (i, m) => {
45454
45456
  if (Hp(i), i.isResizable(m)) {
@@ -45488,16 +45490,16 @@ Required: ` + m.join(", "));
45488
45490
  v.each((It) => {
45489
45491
  _(Qe, "data-row").each((Ye) => {
45490
45492
  const Jt = D(Qe, "top");
45491
- Is(Qe, "data-initial-top"), Rt.trigger.adjustHeight(It, Jt, parseInt(Ye, 10));
45493
+ Is(Qe, "data-initial-top"), $t.trigger.adjustHeight(It, Jt, parseInt(Ye, 10));
45492
45494
  }), _(Qe, "data-column").each((Ye) => {
45493
45495
  const Jt = D(Qe, "left");
45494
- Is(Qe, "data-initial-left"), Rt.trigger.adjustWidth(It, Jt, parseInt(Ye, 10));
45496
+ Is(Qe, "data-initial-left"), $t.trigger.adjustWidth(It, Jt, parseInt(Ye, 10));
45495
45497
  }), Cv(i, It);
45496
45498
  });
45497
45499
  });
45498
45500
  });
45499
45501
  const L = (Qe, It) => {
45500
- Rt.trigger.startAdjust(), m.assign(Qe), Ws(Qe, "data-initial-" + It, Ur(Qe, It)), mu(Qe, Qd), js(Qe, "opacity", "0.2"), h.go(i.parent());
45502
+ $t.trigger.startAdjust(), m.assign(Qe), Ws(Qe, "data-initial-" + It, Ur(Qe, It)), mu(Qe, Qd), js(Qe, "opacity", "0.2"), h.go(i.parent());
45501
45503
  }, Z = Lp(i.parent(), "mousedown", (Qe) => {
45502
45504
  c4(Qe.target) && L(Qe.target, "top"), ef(Qe.target) && L(Qe.target, "left");
45503
45505
  }), ee = (Qe) => ts(Qe, i.view()), ie = (Qe) => Ms(Qe, "table", ee).filter(Of), De = Lp(i.view(), "mouseover", (Qe) => {
@@ -45510,7 +45512,7 @@ Required: ` + m.join(", "));
45510
45512
  Z.unbind(), De.unbind(), h.destroy(), Hp(i);
45511
45513
  }, Bt = (Qe) => {
45512
45514
  Cv(i, Qe);
45513
- }, Rt = Jf({
45515
+ }, $t = Jf({
45514
45516
  adjustHeight: Iu([
45515
45517
  "table",
45516
45518
  "delta",
@@ -45530,7 +45532,7 @@ Required: ` + m.join(", "));
45530
45532
  off: h.off,
45531
45533
  hideBars: Qn(Sv, i),
45532
45534
  showBars: Qn(Bo, i),
45533
- events: Rt.registry
45535
+ events: $t.registry
45534
45536
  };
45535
45537
  }, kv = { create: (i, m, h) => {
45536
45538
  const v = Zt, _ = Mr, D = _v(i), L = Jf({
@@ -45701,7 +45703,7 @@ Required: ` + m.join(", "));
45701
45703
  }, se = (S) => {
45702
45704
  const $ = typeof S;
45703
45705
  return S === null ? "null" : $ === "object" && Array.isArray(S) ? "array" : $ === "object" && me(S, String, (U, ae) => ae.isPrototypeOf(U)) ? "string" : $;
45704
- }, Ee = (S) => ($) => se($) === S, fe = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = fe("boolean"), it = (S) => S == null, $t = (S) => !it(S), Sn = fe("function"), jn = fe("number"), Vo = () => {
45706
+ }, Ee = (S) => ($) => se($) === S, fe = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = fe("boolean"), it = (S) => S == null, Dt = (S) => !it(S), Cn = fe("function"), jn = fe("number"), Vo = () => {
45705
45707
  }, Us = (S, $) => (U) => S($(U)), Oo = (S) => () => S, Mt = (S, $) => S === $;
45706
45708
  function pr(S, ...$) {
45707
45709
  return (...U) => {
@@ -45762,7 +45764,7 @@ Required: ` + m.join(", "));
45762
45764
  throw new Error($ ?? "Called getOrDie on None");
45763
45765
  }
45764
45766
  static from($) {
45765
- return $t($) ? kt.some($) : kt.none();
45767
+ return Dt($) ? kt.some($) : kt.none();
45766
45768
  }
45767
45769
  getOrNull() {
45768
45770
  return this.tag ? this.value : null;
@@ -45843,7 +45845,7 @@ Required: ` + m.join(", "));
45843
45845
  const $ = ca.call(S, 0);
45844
45846
  return $.reverse(), $;
45845
45847
  }, et = (S, $) => $ >= 0 && $ < S.length ? kt.some(S[$]) : kt.none(), Io = (S) => et(S, 0), ur = (S) => et(S, S.length - 1), ao = (S, $) => {
45846
- const U = [], ae = Sn($) ? (he) => Bn(U, (ct) => $(ct, he)) : (he) => is(U, he);
45848
+ const U = [], ae = Cn($) ? (he) => Bn(U, (ct) => $(ct, he)) : (he) => is(U, he);
45847
45849
  for (let he = 0, ct = S.length; he < ct; he++) {
45848
45850
  const Kt = S[he];
45849
45851
  ae(Kt) || U.push(Kt);
@@ -45910,7 +45912,7 @@ Required: ` + m.join(", "));
45910
45912
  }, us = (S) => S.dom.nodeName.toLowerCase(), Go = (S) => S.dom.nodeType, wc = (S) => ($) => Go($) === S, Xn = (S) => Go(S) === z || us(S) === "#comment", bs = (S) => wr(S) && ji(S.dom), wr = wc(os), Pl = wc(zo), di = wc(el), Qo = wc(eo), Gi = (S) => ($) => wr($) && us($) === S, vt = (S) => vn.fromDom(S.dom.ownerDocument), go = (S) => di(S) ? S : vt(S), Er = (S) => kt.from(S.dom.parentNode).map(vn.fromDom), Aa = (S) => kt.from(S.dom.parentElement).map(vn.fromDom), Bl = (S) => kt.from(S.dom.nextSibling).map(vn.fromDom), Da = (S) => We(S.dom.childNodes, vn.fromDom), es = (S, $) => {
45911
45913
  const U = S.dom.childNodes;
45912
45914
  return kt.from(U[$]).map(vn.fromDom);
45913
- }, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Ko = (S) => Qo(S) && $t(S.dom.host), Ar = Sn(Element.prototype.attachShadow) && Sn(Node.prototype.getRootNode) ? (S) => vn.fromDom(S.dom.getRootNode()) : go, Nl = (S) => {
45915
+ }, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Ko = (S) => Qo(S) && Dt(S.dom.host), Ar = Cn(Element.prototype.attachShadow) && Cn(Node.prototype.getRootNode) ? (S) => vn.fromDom(S.dom.getRootNode()) : go, Nl = (S) => {
45914
45916
  const $ = Ar(S);
45915
45917
  return Ko($) ? kt.some($) : kt.none();
45916
45918
  }, Hc = (S) => vn.fromDom(S.dom.host), mi = (S) => {
@@ -45920,10 +45922,10 @@ Required: ` + m.join(", "));
45920
45922
  const U = $.ownerDocument;
45921
45923
  return Nl(vn.fromDom($)).fold(() => U.body.contains($), Us(mi, Hc));
45922
45924
  };
45923
- var xr = (S, $, U, ae, he) => S(U, ae) ? kt.some(U) : Sn(he) && he(U) ? kt.none() : $(U, ae, he);
45925
+ var xr = (S, $, U, ae, he) => S(U, ae) ? kt.some(U) : Cn(he) && he(U) ? kt.none() : $(U, ae, he);
45924
45926
  const dr = (S, $, U) => {
45925
45927
  let ae = S.dom;
45926
- const he = Sn(U) ? U : de;
45928
+ const he = Cn(U) ? U : de;
45927
45929
  for (; ae.parentNode; ) {
45928
45930
  ae = ae.parentNode;
45929
45931
  const ct = vn.fromDom(ae);
@@ -46005,10 +46007,10 @@ Required: ` + m.join(", "));
46005
46007
  return fi(U, ae), qr(S), U;
46006
46008
  };
46007
46009
  var Qr = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), ua = tinymce.util.Tools.resolve("tinymce.util.Tools");
46008
- const zc = (S) => ($) => $t($) && $.nodeName.toLowerCase() === S, da = (S) => ($) => $t($) && S.test($.nodeName), Ls = (S) => $t(S) && S.nodeType === 3, ns = (S) => $t(S) && S.nodeType === 1, Ra = da(/^(OL|UL|DL)$/), Xi = da(/^(OL|UL)$/), Fo = zc("ol"), Or = da(/^(LI|DT|DD)$/), ma = da(/^(DT|DD)$/), or = da(/^(TH|TD)$/), yl = zc("br"), Fl = (S) => {
46010
+ const zc = (S) => ($) => Dt($) && $.nodeName.toLowerCase() === S, da = (S) => ($) => Dt($) && S.test($.nodeName), Ls = (S) => Dt(S) && S.nodeType === 3, ns = (S) => Dt(S) && S.nodeType === 1, Ra = da(/^(OL|UL|DL)$/), Xi = da(/^(OL|UL)$/), Fo = zc("ol"), Or = da(/^(LI|DT|DD)$/), ma = da(/^(DT|DD)$/), or = da(/^(TH|TD)$/), yl = zc("br"), Fl = (S) => {
46009
46011
  var $;
46010
46012
  return (($ = S.parentNode) === null || $ === void 0 ? void 0 : $.firstChild) === S;
46011
- }, ea = (S, $) => $t($) && $.nodeName in S.schema.getTextBlockElements(), Hl = (S, $) => $t(S) && S.nodeName in $, Vl = (S, $) => $t($) && $.nodeName in S.schema.getVoidElements(), Zu = (S, $) => yl($) ? S.isBlock($.nextSibling) && !yl($.previousSibling) : !1, wl = (S, $, U) => {
46013
+ }, ea = (S, $) => Dt($) && $.nodeName in S.schema.getTextBlockElements(), Hl = (S, $) => Dt(S) && S.nodeName in $, Vl = (S, $) => Dt($) && $.nodeName in S.schema.getVoidElements(), Zu = (S, $) => yl($) ? S.isBlock($.nextSibling) && !yl($.previousSibling) : !1, wl = (S, $, U) => {
46012
46014
  const ae = S.isEmpty($);
46013
46015
  return U && S.select("span[data-mce-type=bookmark]", $).length > 0 ? !1 : ae;
46014
46016
  }, Ji = (S, $) => S.isChildOf($, S.getRoot()), $a = (S) => ($) => $.options.get(S), Sc = (S) => {
@@ -46079,13 +46081,13 @@ Required: ` + m.join(", "));
46079
46081
  "DL"
46080
46082
  ], Fs = lo.join(","), Ma = (S, $) => {
46081
46083
  const U = $ || S.selection.getStart(!0);
46082
- return S.dom.getParent(U, Fs, Dt(S, U));
46083
- }, bu = (S, $) => $t(S) && $.length === 1 && $[0] === S, Nt = (S) => Jo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
46084
+ return S.dom.getParent(U, Fs, Ot(S, U));
46085
+ }, bu = (S, $) => Dt(S) && $.length === 1 && $[0] === S, Nt = (S) => Jo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
46084
46086
  const $ = Ma(S), U = S.selection.getSelectedBlocks();
46085
46087
  return bu($, U) ? Nt($) : Jo(U, (ae) => Ra(ae) && $ !== ae);
46086
46088
  }, Zs = (S, $) => {
46087
46089
  const U = ua.map($, (ae) => {
46088
- const he = S.dom.getParent(ae, "li,dd,dt", Dt(S, ae));
46090
+ const he = S.dom.getParent(ae, "li,dd,dt", Ot(S, ae));
46089
46091
  return he || ae;
46090
46092
  });
46091
46093
  return ao(U);
@@ -46095,18 +46097,18 @@ Required: ` + m.join(", "));
46095
46097
  }, Y = (S) => Jo(I(S), ma), re = (S, $) => {
46096
46098
  const U = S.dom.getParents($, "TD,TH");
46097
46099
  return U.length > 0 ? U[0] : S.getBody();
46098
- }, Le = (S, $) => !Ra($) && !Or($) && Bn(lo, (U) => S.isValidChild($.nodeName, U)), Dt = (S, $) => {
46100
+ }, Le = (S, $) => !Ra($) && !Or($) && Bn(lo, (U) => S.isValidChild($.nodeName, U)), Ot = (S, $) => {
46099
46101
  const U = S.dom.getParents($, S.dom.isBlock);
46100
46102
  return Gt(U, (he) => Le(S.schema, he)).getOr(S.getBody());
46101
46103
  }, Yn = (S) => Er(S).exists(($) => Or($.dom) && tl($).exists((U) => !Ra(U.dom)) && bl($).exists((U) => !Ra(U.dom))), qt = (S, $) => {
46102
- const U = S.dom.getParents($, "ol,ul", Dt(S, $));
46104
+ const U = S.dom.getParents($, "ol,ul", Ot(S, $));
46103
46105
  return ur(U);
46104
46106
  }, $s = (S) => {
46105
46107
  const $ = qt(S, S.selection.getStart()), U = Jo(S.selection.getSelectedBlocks(), Xi);
46106
46108
  return $.toArray().concat(U);
46107
46109
  }, lt = (S) => {
46108
46110
  const $ = S.selection.getStart();
46109
- return S.dom.getParents($, "ol,ul", Dt(S, $));
46111
+ return S.dom.getParents($, "ol,ul", Ot(S, $));
46110
46112
  }, rs = (S) => {
46111
46113
  const $ = $s(S), U = lt(S);
46112
46114
  return Gt(U, (ae) => Yn(vn.fromDom(ae))).fold(() => Ua(S, $), (ae) => [ae]);
@@ -46133,7 +46135,7 @@ Required: ` + m.join(", "));
46133
46135
  }, Vs = (S, $, U) => S.dispatch("ListMutation", {
46134
46136
  action: $,
46135
46137
  element: U
46136
- }), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Mo = (S) => !$h(S), Wc = (S) => S.style !== void 0 && Sn(S.style.getPropertyValue), Qi = (S, $, U) => {
46138
+ }), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Mo = (S) => !$h(S), Wc = (S) => S.style !== void 0 && Cn(S.style.getPropertyValue), Qi = (S, $, U) => {
46137
46139
  if (!G(U))
46138
46140
  throw console.error("Invalid call to CSS.set. Property ", $, ":: Value ", U, ":: Element ", S), new Error("CSS value must be a string: " + U);
46139
46141
  Wc(S) && S.style.setProperty($, U);
@@ -46380,7 +46382,7 @@ Required: ` + m.join(", "));
46380
46382
  Dg(S, $, U), uc(S, $, U);
46381
46383
  }, Og = (S, $, U) => {
46382
46384
  ua.each(U, (ae) => S.setStyle($, ae, ""));
46383
- }, ja = (S, $) => $t($) && !Hl($, S.schema.getBlockElements()), Rr = (S, $, U, ae) => {
46385
+ }, ja = (S, $) => Dt($) && !Hl($, S.schema.getBlockElements()), Rr = (S, $, U, ae) => {
46384
46386
  let he = $[U ? "startContainer" : "endContainer"];
46385
46387
  const ct = $[U ? "startOffset" : "endOffset"];
46386
46388
  ns(he) && (he = he.childNodes[Math.min(ct, he.childNodes.length - 1)] || he), !U && yl(he.nextSibling) && (he = he.nextSibling);
@@ -46449,7 +46451,7 @@ Required: ` + m.join(", "));
46449
46451
  }, Ga = (S, $, U) => {
46450
46452
  const ae = S.selection.getRng();
46451
46453
  let he = "LI";
46452
- const ct = Dt(S, Ec(S, ae)), Kt = S.dom;
46454
+ const ct = Ot(S, Ec(S, ae)), Kt = S.dom;
46453
46455
  if (Kt.getContentEditable(S.selection.getNode()) === "false")
46454
46456
  return;
46455
46457
  $ = $.toUpperCase(), $ === "DL" && (he = "DT");
@@ -46758,7 +46760,7 @@ Required: ` + m.join(", "));
46758
46760
  });
46759
46761
  }, Zo = (S, $) => () => {
46760
46762
  const U = Ma(S);
46761
- return $t(U) && U.nodeName === $;
46763
+ return Dt(U) && U.nodeName === $;
46762
46764
  }, qc = (S) => {
46763
46765
  S.addCommand("mceListProps", () => {
46764
46766
  Vh(S);
@@ -46849,7 +46851,7 @@ Required: ` + m.join(", "));
46849
46851
  }, se = (j) => {
46850
46852
  const ue = typeof j;
46851
46853
  return j === null ? "null" : ue === "object" && Array.isArray(j) ? "array" : ue === "object" && me(j, String, (ke, Ne) => Ne.isPrototypeOf(ke)) ? "string" : ue;
46852
- }, Ee = (j) => (ue) => se(ue) === j, fe = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), $t = fe("boolean"), Sn = (j) => j == null, jn = (j) => !Sn(j), Vo = fe("function"), Us = (j, ue) => {
46854
+ }, Ee = (j) => (ue) => se(ue) === j, fe = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), Dt = fe("boolean"), Cn = (j) => j == null, jn = (j) => !Cn(j), Vo = fe("function"), Us = (j, ue) => {
46853
46855
  if (Pe(j)) {
46854
46856
  for (let ke = 0, Ne = j.length; ke < Ne; ++ke)
46855
46857
  if (!ue(j[ke]))
@@ -46970,7 +46972,7 @@ Required: ` + m.join(", "));
46970
46972
  const ue = j.options.register;
46971
46973
  ue("link_assume_external_targets", {
46972
46974
  processor: (ke) => {
46973
- const Ne = Ae(ke) || $t(ke);
46975
+ const Ne = Ae(ke) || Dt(ke);
46974
46976
  return Ne ? ke === !0 ? {
46975
46977
  value: 1,
46976
46978
  valid: Ne
@@ -46993,7 +46995,7 @@ Required: ` + m.join(", "));
46993
46995
  processor: "string",
46994
46996
  default: "https"
46995
46997
  }), ue("link_target_list", {
46996
- processor: (ke) => $t(ke) || Us(ke, Q),
46998
+ processor: (ke) => Dt(ke) || Us(ke, Q),
46997
46999
  default: !0
46998
47000
  }), ue("link_rel_list", {
46999
47001
  processor: "object[]",
@@ -47606,8 +47608,8 @@ Required: ` + m.join(", "));
47606
47608
  }, Ee = (I) => {
47607
47609
  const Y = typeof I;
47608
47610
  return I === null ? "null" : Y === "object" && Array.isArray(I) ? "array" : Y === "object" && se(I, String, (re, Le) => Le.isPrototypeOf(re)) ? "string" : Y;
47609
- }, fe = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => it(I) && se(I, Y, (re, Le) => me(re) === Le), Pe = fe("string"), it = fe("object"), $t = (I) => Q(I, Object), Sn = fe("array"), jn = Ae(null), Vo = G("boolean"), Us = (I) => I == null, Oo = (I) => !Us(I), Mt = G("function"), pr = G("number"), fn = (I, Y) => {
47610
- if (Sn(I)) {
47611
+ }, fe = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => it(I) && se(I, Y, (re, Le) => me(re) === Le), Pe = fe("string"), it = fe("object"), Dt = (I) => Q(I, Object), Cn = fe("array"), jn = Ae(null), Vo = G("boolean"), Us = (I) => I == null, Oo = (I) => !Us(I), Mt = G("function"), pr = G("number"), fn = (I, Y) => {
47612
+ if (Cn(I)) {
47611
47613
  for (let re = 0, Le = I.length; re < Le; ++re)
47612
47614
  if (!Y(I[re]))
47613
47615
  return !1;
@@ -47689,15 +47691,15 @@ Required: ` + m.join(", "));
47689
47691
  kt.singletonNone = new kt(!1);
47690
47692
  const ca = Object.keys, Qn = Object.hasOwnProperty, oe = (I, Y) => {
47691
47693
  const re = ca(I);
47692
- for (let Le = 0, Dt = re.length; Le < Dt; Le++) {
47694
+ for (let Le = 0, Ot = re.length; Le < Ot; Le++) {
47693
47695
  const Yn = re[Le], qt = I[Yn];
47694
47696
  Y(qt, Yn);
47695
47697
  }
47696
47698
  }, Pn = (I) => (Y, re) => {
47697
47699
  I[re] = Y;
47698
47700
  }, is = (I, Y, re, Le) => {
47699
- oe(I, (Dt, Yn) => {
47700
- (Y(Dt, Yn) ? re : Le)(Dt, Yn);
47701
+ oe(I, (Ot, Yn) => {
47702
+ (Y(Ot, Yn) ? re : Le)(Ot, Yn);
47701
47703
  });
47702
47704
  }, Bn = (I, Y) => {
47703
47705
  const re = {};
@@ -47705,7 +47707,7 @@ Required: ` + m.join(", "));
47705
47707
  }, We = (I, Y) => Qn.call(I, Y), ge = (I, Y) => We(I, Y) && I[Y] !== void 0 && I[Y] !== null, Jo = Array.prototype.push, Pt = (I) => {
47706
47708
  const Y = [];
47707
47709
  for (let re = 0, Le = I.length; re < Le; ++re) {
47708
- if (!Sn(I[re]))
47710
+ if (!Cn(I[re]))
47709
47711
  throw new Error("Arr.flatten item " + re + " was not an array, input: " + I);
47710
47712
  Jo.apply(Y, I[re]);
47711
47713
  }
@@ -47731,8 +47733,8 @@ Required: ` + m.join(", "));
47731
47733
  }, et = (I, Y) => {
47732
47734
  const Le = (Y || document).createElement("div");
47733
47735
  if (Le.innerHTML = I, !Le.hasChildNodes() || Le.childNodes.length > 1) {
47734
- const Dt = "HTML does not have a single root node";
47735
- throw console.error(Dt, I), new Error(Dt);
47736
+ const Ot = "HTML does not have a single root node";
47737
+ throw console.error(Ot, I), new Error(Ot);
47736
47738
  }
47737
47739
  return ao(Le.childNodes[0]);
47738
47740
  }, Io = (I, Y) => {
@@ -47802,8 +47804,8 @@ Required: ` + m.join(", "));
47802
47804
  }, re.onerror = () => {
47803
47805
  Le(Promise.reject(`Failed to get image dimensions for: ${I}`));
47804
47806
  };
47805
- const Dt = re.style;
47806
- Dt.visibility = "hidden", Dt.position = "fixed", Dt.bottom = Dt.left = "0px", Dt.width = Dt.height = "auto", document.body.appendChild(re), re.src = I;
47807
+ const Ot = re.style;
47808
+ Ot.visibility = "hidden", Ot.position = "fixed", Ot.bottom = Ot.left = "0px", Ot.width = Ot.height = "auto", document.body.appendChild(re), re.src = I;
47807
47809
  }), yr = (I) => (I && (I = I.replace(/px$/, "")), I), Qs = (I) => (I.length > 0 && /^[0-9]+$/.test(I) && (I += "px"), I), ps = (I) => {
47808
47810
  if (I.margin) {
47809
47811
  const Y = String(I.margin).split(" ");
@@ -47843,8 +47845,8 @@ Required: ` + m.join(", "));
47843
47845
  Le.onload = () => {
47844
47846
  Y(Le.result);
47845
47847
  }, Le.onerror = () => {
47846
- var Dt;
47847
- re((Dt = Le.error) === null || Dt === void 0 ? void 0 : Dt.message);
47848
+ var Ot;
47849
+ re((Ot = Le.error) === null || Ot === void 0 ? void 0 : Ot.message);
47848
47850
  }, Le.readAsDataURL(I);
47849
47851
  }), wc = (I) => I.nodeName === "IMG" && (I.hasAttribute("data-mce-object") || I.hasAttribute("data-mce-placeholder")), Xn = (I, Y) => {
47850
47852
  const re = I.options.get;
@@ -47869,9 +47871,9 @@ Required: ` + m.join(", "));
47869
47871
  }, Bl = (I, Y) => {
47870
47872
  const re = I.getAttribute("style"), Le = Y(re !== null ? re : "");
47871
47873
  Le.length > 0 ? (I.setAttribute("style", Le), I.setAttribute("data-mce-style", Le)) : I.removeAttribute("style");
47872
- }, Da = (I, Y) => (re, Le, Dt) => {
47874
+ }, Da = (I, Y) => (re, Le, Ot) => {
47873
47875
  const Yn = re.style;
47874
- Yn[Le] ? (Yn[Le] = Qs(Dt), Bl(re, Y)) : vt(re, Le, Dt);
47876
+ Yn[Le] ? (Yn[Le] = Qs(Ot), Bl(re, Y)) : vt(re, Le, Ot);
47875
47877
  }, es = (I, Y) => I.style[Y] ? yr(I.style[Y]) : Qo(I, Y), tl = (I, Y) => {
47876
47878
  const re = Qs(Y);
47877
47879
  I.style.marginLeft = re, I.style.marginRight = re;
@@ -47928,8 +47930,8 @@ Required: ` + m.join(", "));
47928
47930
  border: di(Y),
47929
47931
  borderStyle: Ar(Y),
47930
47932
  isDecorative: mi(Y)
47931
- }), Vr = (I, Y, re, Le, Dt) => {
47932
- re[Le] !== Y[Le] && Dt(I, Le, String(re[Le]));
47933
+ }), Vr = (I, Y, re, Le, Ot) => {
47934
+ re[Le] !== Y[Le] && Ot(I, Le, String(re[Le]));
47933
47935
  }, ia = (I, Y, re) => {
47934
47936
  if (re) {
47935
47937
  bs.setAttrib(I, "role", "presentation");
@@ -47947,31 +47949,31 @@ Required: ` + m.join(", "));
47947
47949
  }
47948
47950
  }, Is = (I, Y, re) => {
47949
47951
  (re.alt !== Y.alt || re.isDecorative !== Y.isDecorative) && ia(I, re.alt, re.isDecorative);
47950
- }, Dr = (I, Y) => (re, Le, Dt) => {
47951
- I(re, Dt), Bl(re, Y);
47952
+ }, Dr = (I, Y) => (re, Le, Ot) => {
47953
+ I(re, Ot), Bl(re, Y);
47952
47954
  }, sc = (I, Y, re) => {
47953
47955
  const Le = qi(I, re);
47954
- Vr(re, Le, Y, "caption", (Dt, Yn, qt) => Aa(Dt)), Vr(re, Le, Y, "src", vt), Vr(re, Le, Y, "title", vt), Vr(re, Le, Y, "width", Da("width", I)), Vr(re, Le, Y, "height", Da("height", I)), Vr(re, Le, Y, "class", vt), Vr(re, Le, Y, "style", Dr((Dt, Yn) => vt(Dt, "style", Yn), I)), Vr(re, Le, Y, "hspace", Dr(tl, I)), Vr(re, Le, Y, "vspace", Dr(bl, I)), Vr(re, Le, Y, "border", Dr(Ko, I)), Vr(re, Le, Y, "borderStyle", Dr(gn, I)), Is(re, Le, Y);
47956
+ Vr(re, Le, Y, "caption", (Ot, Yn, qt) => Aa(Ot)), Vr(re, Le, Y, "src", vt), Vr(re, Le, Y, "title", vt), Vr(re, Le, Y, "width", Da("width", I)), Vr(re, Le, Y, "height", Da("height", I)), Vr(re, Le, Y, "class", vt), Vr(re, Le, Y, "style", Dr((Ot, Yn) => vt(Ot, "style", Yn), I)), Vr(re, Le, Y, "hspace", Dr(tl, I)), Vr(re, Le, Y, "vspace", Dr(bl, I)), Vr(re, Le, Y, "border", Dr(Ko, I)), Vr(re, Le, Y, "borderStyle", Dr(gn, I)), Is(re, Le, Y);
47955
47957
  }, Vc = (I, Y) => {
47956
- const re = I.dom.styles.parse(Y), Le = ps(re), Dt = I.dom.styles.parse(I.dom.styles.serialize(Le));
47957
- return I.dom.styles.serialize(Dt);
47958
+ const re = I.dom.styles.parse(Y), Le = ps(re), Ot = I.dom.styles.parse(I.dom.styles.serialize(Le));
47959
+ return I.dom.styles.serialize(Ot);
47958
47960
  }, rc = (I) => {
47959
47961
  const Y = I.selection.getNode(), re = I.dom.getParent(Y, "figure.image");
47960
47962
  return re ? I.dom.select("img", re)[0] : Y && (Y.nodeName !== "IMG" || wc(Y)) ? null : Y;
47961
47963
  }, Il = (I, Y) => {
47962
47964
  var re;
47963
- const Le = I.dom, Dt = Bn(I.schema.getTextBlockElements(), (qt, $s) => !I.schema.isValidChild($s, "figure")), Yn = Le.getParent(Y.parentNode, (qt) => ge(Dt, qt.nodeName), I.getBody());
47965
+ const Le = I.dom, Ot = Bn(I.schema.getTextBlockElements(), (qt, $s) => !I.schema.isValidChild($s, "figure")), Yn = Le.getParent(Y.parentNode, (qt) => ge(Ot, qt.nodeName), I.getBody());
47964
47966
  return Yn && (re = Le.split(Yn, Y)) !== null && re !== void 0 ? re : Y;
47965
47967
  }, fi = (I) => {
47966
47968
  const Y = rc(I);
47967
47969
  return Y ? qi((re) => Vc(I, re), Y) : dr();
47968
47970
  }, Te = (I, Y) => {
47969
- const re = vl((Dt) => Vc(I, Dt), Y);
47971
+ const re = vl((Ot) => Vc(I, Ot), Y);
47970
47972
  I.dom.setAttrib(re, "data-mce-id", "__mcenew"), I.focus(), I.selection.setContent(re.outerHTML);
47971
47973
  const Le = I.dom.select('*[data-mce-id="__mcenew"]')[0];
47972
47974
  if (I.dom.setAttrib(Le, "data-mce-id", null), Nl(Le)) {
47973
- const Dt = Il(I, Le);
47974
- I.selection.select(Dt);
47975
+ const Ot = Il(I, Le);
47976
+ I.selection.select(Ot);
47975
47977
  } else
47976
47978
  I.selection.select(Le);
47977
47979
  }, qr = (I, Y) => {
@@ -47998,11 +48000,11 @@ Required: ` + m.join(", "));
47998
48000
  }, ts = (I, Y) => {
47999
48001
  const re = rc(I);
48000
48002
  if (re) {
48001
- const Dt = {
48003
+ const Ot = {
48002
48004
  ...qi((qt) => Vc(I, qt), re),
48003
48005
  ...Y
48004
- }, Yn = Ki(I, Dt);
48005
- Dt.src ? Wu(I, Yn) : Ll(I, re);
48006
+ }, Yn = Ki(I, Ot);
48007
+ Ot.src ? Wu(I, Yn) : Ll(I, re);
48006
48008
  } else Y.src && Te(I, {
48007
48009
  ...dr(),
48008
48010
  ...Y
@@ -48012,27 +48014,27 @@ Required: ` + m.join(", "));
48012
48014
  throw new Error("Can't merge zero objects");
48013
48015
  const re = {};
48014
48016
  for (let Le = 0; Le < Y.length; Le++) {
48015
- const Dt = Y[Le];
48016
- for (const Yn in Dt)
48017
- We(Dt, Yn) && (re[Yn] = I(re[Yn], Dt[Yn]));
48017
+ const Ot = Y[Le];
48018
+ for (const Yn in Ot)
48019
+ We(Ot, Yn) && (re[Yn] = I(re[Yn], Ot[Yn]));
48018
48020
  }
48019
48021
  return re;
48020
- })((I, Y) => $t(I) && $t(Y) ? nl(I, Y) : Y);
48022
+ })((I, Y) => Dt(I) && Dt(Y) ? nl(I, Y) : Y);
48021
48023
  var Yi = tinymce.util.Tools.resolve("tinymce.util.ImageUploader"), vs = tinymce.util.Tools.resolve("tinymce.util.Tools");
48022
48024
  const ks = (I) => Pe(I.value) ? I.value : "", za = (I) => Pe(I.text) ? I.text : Pe(I.title) ? I.title : "", Oa = (I, Y) => {
48023
48025
  const re = [];
48024
48026
  return vs.each(I, (Le) => {
48025
- const Dt = za(Le);
48027
+ const Ot = za(Le);
48026
48028
  if (Le.menu !== void 0) {
48027
48029
  const Yn = Oa(Le.menu, Y);
48028
48030
  re.push({
48029
- text: Dt,
48031
+ text: Ot,
48030
48032
  items: Yn
48031
48033
  });
48032
48034
  } else {
48033
48035
  const Yn = Y(Le);
48034
48036
  re.push({
48035
- text: Dt,
48037
+ text: Ot,
48036
48038
  value: Yn
48037
48039
  });
48038
48040
  }
@@ -48130,12 +48132,12 @@ Required: ` + m.join(", "));
48130
48132
  Vs
48131
48133
  ])));
48132
48134
  });
48133
- }), Le = ua.sanitize(Ke(I)), Dt = Zi(I), Yn = qe(I), qt = Va(I), $s = hs(I), lt = fi(I), rs = _e(I), Ua = vn(I), Hs = zo(I), Cr = jo(I), Uc = Tr(I), ho = Lo(I), Wa = kt.some(At(I)).filter((Ms) => Pe(Ms) && Ms.length > 0);
48135
+ }), Le = ua.sanitize(Ke(I)), Ot = Zi(I), Yn = qe(I), qt = Va(I), $s = hs(I), lt = fi(I), rs = _e(I), Ua = vn(I), Hs = zo(I), Cr = jo(I), Uc = Tr(I), ho = Lo(I), Wa = kt.some(At(I)).filter((Ms) => Pe(Ms) && Ms.length > 0);
48134
48136
  return re.then((Ms) => ({
48135
48137
  image: lt,
48136
48138
  imageList: Ms,
48137
48139
  classList: Le,
48138
- hasAdvTab: Dt,
48140
+ hasAdvTab: Ot,
48139
48141
  hasUploadTab: Yn,
48140
48142
  hasUploadUrl: qt,
48141
48143
  hasUploadHandler: $s,
@@ -48164,7 +48166,7 @@ Required: ` + m.join(", "));
48164
48166
  type: "input",
48165
48167
  label: "Alternative description",
48166
48168
  enabled: !(I.hasAccessibilityOptions && I.image.isDecorative)
48167
- }, Dt = {
48169
+ }, Ot = {
48168
48170
  name: "title",
48169
48171
  type: "input",
48170
48172
  label: "Image title"
@@ -48201,7 +48203,7 @@ Required: ` + m.join(", "));
48201
48203
  re.toArray(),
48202
48204
  I.hasAccessibilityOptions && I.hasDescription ? [qt] : [],
48203
48205
  I.hasDescription ? [Le] : [],
48204
- I.hasImageTitle ? [Dt] : [],
48206
+ I.hasImageTitle ? [Ot] : [],
48205
48207
  I.hasDimensions ? [Yn] : [],
48206
48208
  [{
48207
48209
  ...rs(I.classList.isSome() && I.hasImageCaption),
@@ -48281,11 +48283,11 @@ Required: ` + m.join(", "));
48281
48283
  }, Vl = (I, Y) => {
48282
48284
  const re = Y.getData(), Le = re.src.meta;
48283
48285
  if (Le !== void 0) {
48284
- const Dt = nl({}, re);
48285
- Hl(I, Dt, Le), Y.setData(Dt);
48286
+ const Ot = nl({}, re);
48287
+ Hl(I, Ot, Le), Y.setData(Ot);
48286
48288
  }
48287
48289
  }, Zu = (I, Y, re, Le) => {
48288
- const Dt = Le.getData(), Yn = Dt.src.value, qt = Dt.src.meta || {};
48290
+ const Ot = Le.getData(), Yn = Ot.src.value, qt = Ot.src.meta || {};
48289
48291
  !qt.width && !qt.height && Y.hasDimensions && (el(Yn) ? I.imageSize(Yn).then(($s) => {
48290
48292
  re.open && Le.setData({ dimensions: $s });
48291
48293
  }).catch(($s) => console.error($s)) : Le.setData({
@@ -48295,14 +48297,14 @@ Required: ` + m.join(", "));
48295
48297
  }
48296
48298
  }));
48297
48299
  }, wl = (I, Y, re) => {
48298
- const Le = re.getData(), Dt = ua.findEntry(I.imageList, Le.src.value);
48299
- Y.prevImage = Dt, re.setData({ images: Dt.map((Yn) => Yn.value).getOr("") });
48300
+ const Le = re.getData(), Ot = ua.findEntry(I.imageList, Le.src.value);
48301
+ Y.prevImage = Ot, re.setData({ images: Ot.map((Yn) => Yn.value).getOr("") });
48300
48302
  }, Ji = (I, Y, re, Le) => {
48301
48303
  ea(Y, Le), Vl(Y, Le), Zu(I, Y, re, Le), wl(Y, re, Le);
48302
48304
  }, $a = (I, Y, re, Le) => {
48303
- const Dt = Le.getData(), Yn = ua.findEntry(Y.imageList, Dt.images);
48305
+ const Ot = Le.getData(), Yn = ua.findEntry(Y.imageList, Ot.images);
48304
48306
  Yn.each((qt) => {
48305
- Dt.alt === "" || re.prevImage.map((lt) => lt.text === Dt.alt).getOr(!1) ? qt.value === "" ? Le.setData({
48307
+ Ot.alt === "" || re.prevImage.map((lt) => lt.text === Ot.alt).getOr(!1) ? qt.value === "" ? Le.setData({
48306
48308
  src: qt,
48307
48309
  alt: re.prevAlt
48308
48310
  }) : Le.setData({
@@ -48311,8 +48313,8 @@ Required: ` + m.join(", "));
48311
48313
  }) : Le.setData({ src: qt });
48312
48314
  }), re.prevImage = Yn, Ji(I, Y, re, Le);
48313
48315
  }, Sc = (I, Y, re, Le) => {
48314
- const Dt = Le.getData();
48315
- Le.block("Uploading image"), A(Dt.fileinput).fold(() => {
48316
+ const Ot = Le.getData();
48317
+ Le.block("Uploading image"), A(Ot.fileinput).fold(() => {
48316
48318
  Le.unblock();
48317
48319
  }, (Yn) => {
48318
48320
  const qt = URL.createObjectURL(Yn), $s = () => {
@@ -48334,8 +48336,8 @@ Required: ` + m.join(", "));
48334
48336
  }) : (I.addToBlobCache(Ua), lt(Ua.blobUri()), Le.unblock());
48335
48337
  });
48336
48338
  });
48337
- }, hi = (I, Y, re) => (Le, Dt) => {
48338
- Dt.name === "src" ? Ji(I, Y, re, Le) : Dt.name === "images" ? $a(I, Y, re, Le) : Dt.name === "alt" ? re.prevAlt = Le.getData().alt : Dt.name === "fileinput" ? Sc(I, Y, re, Le) : Dt.name === "isDecorative" && Le.setEnabled("alt", !Le.getData().isDecorative);
48339
+ }, hi = (I, Y, re) => (Le, Ot) => {
48340
+ Ot.name === "src" ? Ji(I, Y, re, Le) : Ot.name === "images" ? $a(I, Y, re, Le) : Ot.name === "alt" ? re.prevAlt = Le.getData().alt : Ot.name === "fileinput" ? Sc(I, Y, re, Le) : Ot.name === "isDecorative" && Le.setEnabled("alt", !Le.getData().isDecorative);
48339
48341
  }, pu = (I) => () => {
48340
48342
  I.open = !1;
48341
48343
  }, ju = (I) => I.hasAdvTab || I.hasUploadUrl || I.hasUploadHandler ? {
@@ -48349,9 +48351,9 @@ Required: ` + m.join(", "));
48349
48351
  type: "panel",
48350
48352
  items: Xi.makeItems(I)
48351
48353
  }, j = (I, Y, re) => (Le) => {
48352
- const Dt = nl(or(Y.image), Le.getData()), Yn = {
48353
- ...Dt,
48354
- style: Ws(re.normalizeCss, yl(Dt, !1))
48354
+ const Ot = nl(or(Y.image), Le.getData()), Yn = {
48355
+ ...Ot,
48356
+ style: Ws(re.normalizeCss, yl(Ot, !1))
48355
48357
  };
48356
48358
  I.execCommand("mceUpdateImage", !1, yl(Yn, Y.hasAccessibilityOptions)), I.editorUpload.uploadImagesAuto(), Le.close();
48357
48359
  }, ue = (I) => (Y) => Xn(I, Y) ? yc(I.documentBaseURI.toAbsolute(Y)).then((re) => ({
@@ -48361,11 +48363,11 @@ Required: ` + m.join(", "));
48361
48363
  width: "",
48362
48364
  height: ""
48363
48365
  }), ke = (I) => (Y, re, Le) => {
48364
- var Dt;
48366
+ var Ot;
48365
48367
  return I.editorUpload.blobCache.create({
48366
48368
  blob: Y,
48367
48369
  blobUri: re,
48368
- name: (Dt = Y.name) === null || Dt === void 0 ? void 0 : Dt.replace(/\.[^\.]+$/, ""),
48370
+ name: (Ot = Y.name) === null || Ot === void 0 ? void 0 : Ot.replace(/\.[^\.]+$/, ""),
48369
48371
  filename: Y.name,
48370
48372
  base64: Le.split(",")[1]
48371
48373
  });
@@ -48389,7 +48391,7 @@ Required: ` + m.join(", "));
48389
48391
  };
48390
48392
  return { open: () => {
48391
48393
  Ls(I).then((Le) => {
48392
- const Dt = ma(Le);
48394
+ const Ot = ma(Le);
48393
48395
  return {
48394
48396
  title: "Insert/Edit Image",
48395
48397
  size: "normal",
@@ -48409,8 +48411,8 @@ Required: ` + m.join(", "));
48409
48411
  ],
48410
48412
  initialData: or(Le.image),
48411
48413
  onSubmit: j(I, Le, Y),
48412
- onChange: hi(Y, Le, Dt),
48413
- onClose: pu(Dt)
48414
+ onChange: hi(Y, Le, Ot),
48415
+ onClose: pu(Ot)
48414
48416
  };
48415
48417
  }).then(I.windowManager.open);
48416
48418
  } };
@@ -48423,12 +48425,12 @@ Required: ` + m.join(", "));
48423
48425
  return Oo(Y) && /\bimage\b/.test(Y);
48424
48426
  }, Ma = (I) => (Y) => {
48425
48427
  let re = Y.length;
48426
- const Le = (Dt) => {
48427
- Dt.attr("contenteditable", I ? "true" : null);
48428
+ const Le = (Ot) => {
48429
+ Ot.attr("contenteditable", I ? "true" : null);
48428
48430
  };
48429
48431
  for (; re--; ) {
48430
- const Dt = Y[re];
48431
- Fs(Dt) && (Dt.attr("contenteditable", I ? "false" : null), vs.each(Dt.getAll("figcaption"), Le));
48432
+ const Ot = Y[re];
48433
+ Fs(Ot) && (Ot.attr("contenteditable", I ? "false" : null), vs.each(Ot.getAll("figcaption"), Le));
48432
48434
  }
48433
48435
  }, bu = (I) => {
48434
48436
  I.on("PreInit", () => {
@@ -48475,7 +48477,7 @@ Required: ` + m.join(", "));
48475
48477
  }, se = (x) => {
48476
48478
  const T = typeof x;
48477
48479
  return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && me(x, String, (V, K) => K.isPrototypeOf(V)) ? "string" : T;
48478
- }, Ee = (x) => (T) => se(T) === x, fe = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = fe("boolean"), it = G(void 0), $t = (x) => x == null, Sn = (x) => !$t(x), jn = fe("function"), Vo = fe("number"), Us = () => {
48480
+ }, Ee = (x) => (T) => se(T) === x, fe = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = fe("boolean"), it = G(void 0), Dt = (x) => x == null, Cn = (x) => !Dt(x), jn = fe("function"), Vo = fe("number"), Us = () => {
48479
48481
  }, Oo = (x, T) => (V) => x(T(V)), Mt = (x) => () => x, pr = (x) => x, fn = (x, T) => x === T;
48480
48482
  function de(x, ...T) {
48481
48483
  return (...V) => {
@@ -48538,7 +48540,7 @@ Required: ` + m.join(", "));
48538
48540
  throw new Error(T ?? "Called getOrDie on None");
48539
48541
  }
48540
48542
  static from(T) {
48541
- return Sn(T) ? oe.some(T) : oe.none();
48543
+ return Cn(T) ? oe.some(T) : oe.none();
48542
48544
  }
48543
48545
  getOrNull() {
48544
48546
  return this.tag ? this.value : null;
@@ -48731,7 +48733,7 @@ Required: ` + m.join(", "));
48731
48733
  }, Hc = (x) => oe.from(x.dom.previousSibling).map(Xn.fromDom), mi = (x) => oe.from(x.dom.nextSibling).map(Xn.fromDom), xr = (x) => bt(x.dom.childNodes, Xn.fromDom), dr = (x, T) => {
48732
48734
  const V = x.dom.childNodes;
48733
48735
  return oe.from(V[T]).map(Xn.fromDom);
48734
- }, Ws = (x) => dr(x, 0), vl = (x) => tl(x) && Sn(x.dom.host), Vr = jn(Element.prototype.attachShadow) && jn(Node.prototype.getRootNode) ? (x) => Xn.fromDom(x.dom.getRootNode()) : gn, ia = (x) => {
48736
+ }, Ws = (x) => dr(x, 0), vl = (x) => tl(x) && Cn(x.dom.host), Vr = jn(Element.prototype.attachShadow) && jn(Node.prototype.getRootNode) ? (x) => Xn.fromDom(x.dom.getRootNode()) : gn, ia = (x) => {
48735
48737
  const T = Vr(x);
48736
48738
  return vl(T) ? oe.some(T) : oe.none();
48737
48739
  }, Is = (x) => Xn.fromDom(x.dom.host), Dr = (x) => {
@@ -48855,7 +48857,7 @@ Required: ` + m.join(", "));
48855
48857
  }, Y = (x, T) => I([
48856
48858
  "td",
48857
48859
  "th"
48858
- ], x, T), re = (x) => Uo(x, "th,td"), Le = (x) => bs(x, "colgroup") ? Cc(x, "col") : _e(qt(x), (T) => Cc(T, "col")), Dt = (x, T) => Ll(x, "table", T), Yn = (x) => Uo(x, "tr"), qt = (x) => Dt(x).fold(Mt([]), (T) => Cc(T, "colgroup")), $s = (x, T) => bt(x, (V) => {
48860
+ ], x, T), re = (x) => Uo(x, "th,td"), Le = (x) => bs(x, "colgroup") ? Cc(x, "col") : _e(qt(x), (T) => Cc(T, "col")), Ot = (x, T) => Ll(x, "table", T), Yn = (x) => Uo(x, "tr"), qt = (x) => Ot(x).fold(Mt([]), (T) => Cc(T, "colgroup")), $s = (x, T) => bt(x, (V) => {
48859
48861
  if (vt(V) === "colgroup") {
48860
48862
  const K = bt(Le(V), (be) => {
48861
48863
  const je = dn(be, "span", 1);
@@ -48895,8 +48897,8 @@ Required: ` + m.join(", "));
48895
48897
  }), V += be;
48896
48898
  }), T;
48897
48899
  }, pi = (x) => {
48898
- const T = {}, V = [], be = Tr(x).map((mc) => mc.element).bind(Dt).bind(Hs).getOr({});
48899
- let je = 0, gt = 0, Ot = 0;
48900
+ const T = {}, V = [], be = Tr(x).map((mc) => mc.element).bind(Ot).bind(Hs).getOr({});
48901
+ let je = 0, gt = 0, Rt = 0;
48900
48902
  const {
48901
48903
  pass: on,
48902
48904
  fail: Hn
@@ -48905,16 +48907,16 @@ Required: ` + m.join(", "));
48905
48907
  const Gl = [];
48906
48908
  z(mc.cells, (Xc) => {
48907
48909
  let Ld = 0;
48908
- for (; T[Cr(Ot, Ld)] !== void 0; )
48910
+ for (; T[Cr(Rt, Ld)] !== void 0; )
48909
48911
  Ld++;
48910
- const cu = Jn(be, Ld.toString()), Ug = Ma(Xc.element, Xc.rowspan, Xc.colspan, Ot, Ld, cu);
48912
+ const cu = Jn(be, Ld.toString()), Ug = Ma(Xc.element, Xc.rowspan, Xc.colspan, Rt, Ld, cu);
48911
48913
  for (let Tf = 0; Tf < Xc.colspan; Tf++)
48912
48914
  for (let $m = 0; $m < Xc.rowspan; $m++) {
48913
- const Wg = Ot + $m, Zr = Ld + Tf, Jc = Cr(Wg, Zr);
48915
+ const Wg = Rt + $m, Zr = Ld + Tf, Jc = Cr(Wg, Zr);
48914
48916
  T[Jc] = Ug, gt = Math.max(gt, Zr + 1);
48915
48917
  }
48916
48918
  Gl.push(Ug);
48917
- }), je++, V.push(bu(mc.element, Gl, mc.section)), Ot++;
48919
+ }), je++, V.push(bu(mc.element, Gl, mc.section)), Rt++;
48918
48920
  });
48919
48921
  const { columns: ar, colgroups: Po } = Lo(on).map((mc) => {
48920
48922
  const Gl = Ms(mc);
@@ -48971,8 +48973,8 @@ Required: ` + m.join(", "));
48971
48973
  table: T
48972
48974
  });
48973
48975
  }, zr = (x, T) => Sc(x).getOr(T), fa = (x, T, V) => zr(ue(x, T), V), Mh = (x, T, V, K) => {
48974
- const be = fa(x, `padding-${V}`, 0), je = fa(x, `padding-${K}`, 0), gt = fa(x, `border-${V}-width`, 0), Ot = fa(x, `border-${K}-width`, 0);
48975
- return T - be - je - gt - Ot;
48976
+ const be = fa(x, `padding-${V}`, 0), je = fa(x, `padding-${K}`, 0), gt = fa(x, `border-${V}-width`, 0), Rt = fa(x, `border-${K}-width`, 0);
48977
+ return T - be - je - gt - Rt;
48976
48978
  }, js = (x, T) => {
48977
48979
  const V = x.dom, K = V.getBoundingClientRect().width || V.offsetWidth;
48978
48980
  return T === "border-box" ? K : Mh(x, K, "left", "right");
@@ -49169,7 +49171,7 @@ Required: ` + m.join(", "));
49169
49171
  ], vt(Hn)) : !1, be = (Hn) => Bl(Hn) && da(Hn, "contenteditable") === "false", je = (Hn, ar) => Hn.dom.compareDocumentPosition(ar.dom), gt = (Hn, ar) => {
49170
49172
  const Po = Ra(Hn);
49171
49173
  zc(ar, Po);
49172
- }, Ot = (Hn) => {
49174
+ }, Rt = (Hn) => {
49173
49175
  const ar = vt(Hn);
49174
49176
  return ao([
49175
49177
  "script",
@@ -49237,7 +49239,7 @@ Required: ` + m.join(", "));
49237
49239
  isText: Da,
49238
49240
  isComment: Aa,
49239
49241
  isElement: Bl,
49240
- isSpecial: Ot,
49242
+ isSpecial: Rt,
49241
49243
  getLanguage: on,
49242
49244
  getText: wi,
49243
49245
  setText: Og,
@@ -49255,8 +49257,8 @@ Required: ` + m.join(", "));
49255
49257
  }, Rd = (x, T, V) => V.length > 0 ? xu(x, T, V, Ec) : oe.none(), Ec = (x, T, V, K) => {
49256
49258
  const be = T(x, V);
49257
49259
  return zo(K, (je, gt) => {
49258
- const Ot = T(x, gt);
49259
- return Ga(x, je, Ot);
49260
+ const Rt = T(x, gt);
49261
+ return Ga(x, je, Rt);
49260
49262
  }, be);
49261
49263
  }, Ga = (x, T, V) => T.bind((K) => V.filter(de(x.eq, K))), Rg = Rd, Ih = Rr(), Tm = (x, T) => Rg(Ih, (V, K) => x(K), T), xf = (x) => fi(x, "table"), $d = (x, T) => {
49262
49264
  const V = Ao(x, T);
@@ -49269,8 +49271,8 @@ Required: ` + m.join(", "));
49269
49271
  last: be,
49270
49272
  table: je
49271
49273
  })))), Lh = (x, T) => $d(x, T), ib = (x, T, V) => xi(x, T, V).bind((K) => {
49272
- const be = (on) => Qo(x, on), je = "thead,tfoot,tbody,table", gt = fi(K.first, je, be), Ot = fi(K.last, je, be);
49273
- return gt.bind((on) => Ot.bind((Hn) => Qo(on, Hn) ? Ag(K.table, K.first, K.last) : oe.none()));
49274
+ const be = (on) => Qo(x, on), je = "thead,tfoot,tbody,table", gt = fi(K.first, je, be), Rt = fi(K.last, je, be);
49275
+ return gt.bind((on) => Rt.bind((Hn) => Qo(on, Hn) ? Ag(K.table, K.first, K.last) : oe.none()));
49274
49276
  }), $g = (x) => bt(x, Xn.fromDom), Mg = "data-mce-selected", Xu = "td[" + Mg + "],th[" + Mg + "]", Em = "data-mce-first-selected", Md = "td[" + Em + "],th[" + Em + "]", Ps = "data-mce-last-selected", qs = "td[" + Ps + "],th[" + Ps + "]", rl = {
49275
49277
  selected: Mg,
49276
49278
  selectedSelector: Xu,
@@ -49278,12 +49280,12 @@ Required: ` + m.join(", "));
49278
49280
  firstSelectedSelector: Md,
49279
49281
  lastSelected: Ps,
49280
49282
  lastSelectedSelector: qs
49281
- }, Pg = (x) => Dt(x).bind((T) => Lh(T, rl.firstSelectedSelector)).fold(Mt(x), (T) => T[0]), Fh = (x) => (T, V) => {
49283
+ }, Pg = (x) => Ot(x).bind((T) => Lh(T, rl.firstSelectedSelector)).fold(Mt(x), (T) => T[0]), Fh = (x) => (T, V) => {
49282
49284
  const K = vt(T), be = K === "col" || K === "colgroup" ? Pg(T) : T;
49283
49285
  return Ll(be, x, V);
49284
49286
  }, ta = Fh("th,td,caption"), tu = Fh("th,td"), al = (x) => $g(x.model.table.getSelectedCells()), Ci = (x, T) => {
49285
- const V = tu(x), K = V.bind((be) => Dt(be)).map((be) => Yn(be));
49286
- return Or(V, K, (be, je) => os(je, (gt) => br($g(gt.dom.cells), (Ot) => da(Ot, T) === "1" || Qo(Ot, be)))).getOr([]);
49287
+ const V = tu(x), K = V.bind((be) => Ot(be)).map((be) => Yn(be));
49288
+ return Or(V, K, (be, je) => os(je, (gt) => br($g(gt.dom.cells), (Rt) => da(Rt, T) === "1" || Qo(Rt, be)))).getOr([]);
49287
49289
  }, Cf = [
49288
49290
  {
49289
49291
  text: "None",
@@ -49313,8 +49315,8 @@ Required: ` + m.join(", "));
49313
49315
  blue: V,
49314
49316
  alpha: K
49315
49317
  }), Ju = (x, T, V, K) => {
49316
- const be = parseInt(x, 10), je = parseInt(T, 10), gt = parseInt(V, 10), Ot = parseFloat(K);
49317
- return Bd(be, je, gt, Ot);
49318
+ const be = parseInt(x, 10), je = parseInt(T, 10), gt = parseInt(V, 10), Rt = parseFloat(K);
49319
+ return Bd(be, je, gt, Rt);
49318
49320
  }, rr = (x) => {
49319
49321
  if (x === "transparent")
49320
49322
  return oe.some(Bd(0, 0, 0, 0));
@@ -49328,8 +49330,8 @@ Required: ` + m.join(", "));
49328
49330
  T.height = 1, T.width = 1;
49329
49331
  const V = T.getContext("2d");
49330
49332
  V.clearRect(0, 0, T.width, T.height), V.fillStyle = "#FFFFFF", V.fillStyle = x, V.fillRect(0, 0, 1, 1);
49331
- const K = V.getImageData(0, 0, 1, 1).data, be = K[0], je = K[1], gt = K[2], Ot = K[3];
49332
- return mr(Bd(be, je, gt, Ot));
49333
+ const K = V.getImageData(0, 0, 1, 1).data, be = K[0], je = K[1], gt = K[2], Rt = K[3];
49334
+ return mr(Bd(be, je, gt, Rt));
49333
49335
  }), Gc = (x) => rr(x).map(mr).map((T) => "#" + T.value).getOr(x), Qu = (x) => {
49334
49336
  let T = x;
49335
49337
  return {
@@ -49346,14 +49348,14 @@ Required: ` + m.join(", "));
49346
49348
  },
49347
49349
  isSet: () => T.get().isSome(),
49348
49350
  get: () => T.get(),
49349
- set: (Ot) => {
49350
- V(), T.set(oe.some(Ot));
49351
+ set: (Rt) => {
49352
+ V(), T.set(oe.some(Rt));
49351
49353
  }
49352
49354
  };
49353
49355
  }, Bg = () => Sr((x) => x.unbind()), Vh = (x, T, V) => (K) => {
49354
49356
  const be = Bg(), je = Ji(V), gt = () => {
49355
- const Ot = al(x), on = (Hn) => x.formatter.match(T, { value: V }, Hn.dom, je);
49356
- je ? (K.setActive(!br(Ot, on)), be.set(x.formatter.formatChanged(T, (Hn) => K.setActive(!Hn), !0))) : (K.setActive(vn(Ot, on)), be.set(x.formatter.formatChanged(T, K.setActive, !1, { value: V })));
49357
+ const Rt = al(x), on = (Hn) => x.formatter.match(T, { value: V }, Hn.dom, je);
49358
+ je ? (K.setActive(!br(Rt, on)), be.set(x.formatter.formatChanged(T, (Hn) => K.setActive(!Hn), !0))) : (K.setActive(vn(Rt, on)), be.set(x.formatter.formatChanged(T, K.setActive, !1, { value: V })));
49357
49359
  };
49358
49360
  return x.initialized ? gt() : x.on("init", gt), be.clear;
49359
49361
  }, Zo = (x) => Jn(x, "menu"), qc = (x) => bt(x, (T) => {
@@ -49530,14 +49532,14 @@ Required: ` + m.join(", "));
49530
49532
  }, Am = { normal: (x, T) => {
49531
49533
  const V = x.dom;
49532
49534
  return {
49533
- setAttrib: (gt, Ot) => {
49534
- V.setAttrib(T, gt, Ot);
49535
+ setAttrib: (gt, Rt) => {
49536
+ V.setAttrib(T, gt, Rt);
49535
49537
  },
49536
- setStyle: (gt, Ot) => {
49537
- V.setStyle(T, gt, Ot);
49538
+ setStyle: (gt, Rt) => {
49539
+ V.setStyle(T, gt, Rt);
49538
49540
  },
49539
- setFormat: (gt, Ot) => {
49540
- Ot === "" ? x.formatter.remove(gt, { value: null }, T, !0) : x.formatter.apply(gt, { value: Ot }, T);
49541
+ setFormat: (gt, Rt) => {
49542
+ Rt === "" ? x.formatter.remove(gt, { value: null }, T, !0) : x.formatter.apply(gt, { value: Rt }, T);
49541
49543
  }
49542
49544
  };
49543
49545
  } }, S = bl("th"), $ = (x, T) => x && T ? "sectionCells" : x ? "section" : "cells", U = (x) => {
@@ -49574,17 +49576,17 @@ Required: ` + m.join(", "));
49574
49576
  const je = Pn(K);
49575
49577
  if (je.length !== 1)
49576
49578
  throw new Error("one and only one name per case");
49577
- const gt = je[0], Ot = K[gt];
49579
+ const gt = je[0], Rt = K[gt];
49578
49580
  if (V[gt] !== void 0)
49579
49581
  throw new Error("duplicate key detected:" + gt);
49580
49582
  if (gt === "cata")
49581
49583
  throw new Error("cannot have a case named cata (sorry)");
49582
- if (!Q(Ot))
49584
+ if (!Q(Rt))
49583
49585
  throw new Error("case arguments must be an array");
49584
49586
  T.push(gt), V[gt] = (...on) => {
49585
49587
  const Hn = on.length;
49586
- if (Hn !== Ot.length)
49587
- throw new Error("Wrong number of arguments to case " + gt + ". Expected " + Ot.length + " (" + Ot + "), got " + Hn);
49588
+ if (Hn !== Rt.length)
49589
+ throw new Error("Wrong number of arguments to case " + gt + ". Expected " + Rt.length + " (" + Rt + "), got " + Hn);
49588
49590
  return {
49589
49591
  fold: (...Po) => {
49590
49592
  if (Po.length !== x.length)
@@ -49637,7 +49639,7 @@ Required: ` + T.join(", "));
49637
49639
  const Zt = (x, T) => {
49638
49640
  const V = Wc.fromTable(x);
49639
49641
  return zs(V, T).bind((be) => {
49640
- const je = be[be.length - 1], gt = be[0].row, Ot = je.row + je.rowspan, on = V.all.slice(gt, Ot);
49642
+ const je = be[be.length - 1], gt = be[0].row, Rt = je.row + je.rowspan, on = V.all.slice(gt, Rt);
49641
49643
  return he(on);
49642
49644
  }).getOr("");
49643
49645
  }, su = (x) => Hl(x, "rgb") ? Gc(x) : x, ub = (x) => {
@@ -49653,8 +49655,8 @@ Required: ` + T.join(", "));
49653
49655
  return z(V, (K) => {
49654
49656
  z(Pn(T), (be) => {
49655
49657
  Bn(K, (je, gt) => {
49656
- const Ot = T[be];
49657
- Ot !== "" && be === gt && Ot !== je && (T[be] = "");
49658
+ const Rt = T[be];
49659
+ Rt !== "" && be === gt && Rt !== je && (T[be] = "");
49658
49660
  });
49659
49661
  });
49660
49662
  }), T;
@@ -49683,7 +49685,7 @@ Required: ` + T.join(", "));
49683
49685
  }, gt = () => {
49684
49686
  const ar = V["border-width"];
49685
49687
  return Zc(x) && ar ? { border: ar } : Gt(K, "border").fold(() => ({}), (Po) => ({ border: Po }));
49686
- }, Ot = T ? be() : {}, on = () => {
49688
+ }, Rt = T ? be() : {}, on = () => {
49687
49689
  const ar = Gt(V, "border-spacing").or(Gt(K, "cellspacing")).fold(() => ({}), (Bs) => ({ cellspacing: Bs })), Po = Gt(V, "border-padding").or(Gt(K, "cellpadding")).fold(() => ({}), (Bs) => ({ cellpadding: Bs }));
49688
49690
  return {
49689
49691
  ...ar,
@@ -49694,17 +49696,17 @@ Required: ` + T.join(", "));
49694
49696
  ...je,
49695
49697
  ...V,
49696
49698
  ...K,
49697
- ...Ot,
49699
+ ...Rt,
49698
49700
  ...gt(),
49699
49701
  ...on()
49700
49702
  };
49701
- }, ru = (x) => Dt(Xn.fromDom(x)).map((T) => {
49703
+ }, ru = (x) => Ot(Xn.fromDom(x)).map((T) => {
49702
49704
  const V = { selection: $g(x.cells) };
49703
49705
  return Zt(T, V);
49704
49706
  }).getOr(""), Uh = (x, T, V) => {
49705
- const K = (Ot, on) => {
49707
+ const K = (Rt, on) => {
49706
49708
  const Hn = Ne(Xn.fromDom(on), "border-width");
49707
- return Zc(x) && Hn.isSome() ? Hn.getOr("") : Ot.getAttrib(on, "border") || xl(x.dom, on, "border-width") || xl(x.dom, on, "border") || "";
49709
+ return Zc(x) && Hn.isSome() ? Hn.getOr("") : Rt.getAttrib(on, "border") || xl(x.dom, on, "border-width") || xl(x.dom, on, "border") || "";
49708
49710
  }, be = x.dom, je = Zc(x) ? be.getStyle(T, "border-spacing") || be.getAttrib(T, "cellspacing") : be.getAttrib(T, "cellspacing") || be.getStyle(T, "border-spacing"), gt = Zc(x) ? xl(be, T, "padding") || be.getAttrib(T, "cellpadding") : be.getAttrib(T, "cellpadding") || xl(be, T, "padding");
49709
49711
  return {
49710
49712
  width: be.getStyle(T, "width") || be.getAttrib(T, "width"),
@@ -49727,7 +49729,7 @@ Required: ` + T.join(", "));
49727
49729
  ...V ? ub(T) : {}
49728
49730
  };
49729
49731
  }, db = (x, T, V, K) => {
49730
- const be = x.dom, je = K.getOr(T), gt = (Ot, on) => be.getStyle(Ot, on) || be.getAttrib(Ot, on);
49732
+ const be = x.dom, je = K.getOr(T), gt = (Rt, on) => be.getStyle(Rt, on) || be.getAttrib(Rt, on);
49731
49733
  return {
49732
49734
  width: gt(je, "width"),
49733
49735
  height: gt(T, "height"),
@@ -49751,8 +49753,8 @@ Required: ` + T.join(", "));
49751
49753
  }, Nd = (x, T, V, K) => {
49752
49754
  const be = T.length === 1;
49753
49755
  z(T, (je) => {
49754
- const gt = je.element, Ot = be ? Qn : K, on = Am.normal(x, gt), Hn = je.column.map((ar) => Am.normal(x, ar)).getOr(on);
49755
- ut(on, Hn, V, Ot), wf(x) && mb(on, V, Ot), K("halign") && ac(x, gt, V.halign), K("valign") && xm(x, gt, V.valign);
49756
+ const gt = je.element, Rt = be ? Qn : K, on = Am.normal(x, gt), Hn = je.column.map((ar) => Am.normal(x, ar)).getOr(on);
49757
+ ut(on, Hn, V, Rt), wf(x) && mb(on, V, Rt), K("halign") && ac(x, gt, V.halign), K("valign") && xm(x, gt, V.valign);
49756
49758
  });
49757
49759
  }, nd = (x, T) => {
49758
49760
  x.execCommand("mceTableCellType", !1, {
@@ -49761,11 +49763,11 @@ Required: ` + T.join(", "));
49761
49763
  });
49762
49764
  }, Vg = (x, T, V, K) => {
49763
49765
  const be = Jo(K, (je, gt) => V[gt] !== je);
49764
- A(be) > 0 && T.length >= 1 && Dt(T[0]).each((je) => {
49765
- const gt = Hg(je, T), Ot = A(Jo(be, (Hn, ar) => ar !== "scope" && ar !== "celltype")) > 0, on = nt(be, "celltype");
49766
- (Ot || nt(be, "scope")) && Nd(x, gt, K, de(nt, be)), on && nd(x, K), co(x, je.dom, {
49766
+ A(be) > 0 && T.length >= 1 && Ot(T[0]).each((je) => {
49767
+ const gt = Hg(je, T), Rt = A(Jo(be, (Hn, ar) => ar !== "scope" && ar !== "celltype")) > 0, on = nt(be, "celltype");
49768
+ (Rt || nt(be, "scope")) && Nd(x, gt, K, de(nt, be)), on && nd(x, K), co(x, je.dom, {
49767
49769
  structure: on,
49768
- style: Ot
49770
+ style: Rt
49769
49771
  });
49770
49772
  });
49771
49773
  }, Ks = (x, T, V, K) => {
@@ -49774,7 +49776,7 @@ Required: ` + T.join(", "));
49774
49776
  Vg(x, T, V, be), x.focus();
49775
49777
  });
49776
49778
  }, as = (x, T) => {
49777
- const V = Dt(T[0]).map((K) => bt(Hg(K, T), (be) => db(x, be.element, wf(x), be.column)));
49779
+ const V = Ot(T[0]).map((K) => bt(Hg(K, T), (be) => db(x, be.element, wf(x), be.column)));
49778
49780
  return ku(V.getOrDie());
49779
49781
  }, Sl = (x) => {
49780
49782
  const T = al(x);
@@ -49881,8 +49883,8 @@ Required: ` + T.join(", "));
49881
49883
  }, Wh = (x, T, V, K) => {
49882
49884
  const je = T.length === 1 ? Qn : K;
49883
49885
  z(T, (gt) => {
49884
- const Ot = Am.normal(x, gt);
49885
- Na(Ot, V, je), Cm(x) && fr(Ot, V, je), K("align") && ac(x, gt, V.align);
49886
+ const Rt = Am.normal(x, gt);
49887
+ Na(Rt, V, je), Cm(x) && fr(Rt, V, je), K("align") && ac(x, gt, V.align);
49886
49888
  });
49887
49889
  }, ot = (x, T) => {
49888
49890
  x.execCommand("mceTableRowType", !1, {
@@ -49893,7 +49895,7 @@ Required: ` + T.join(", "));
49893
49895
  const be = Jo(K, (je, gt) => V[gt] !== je);
49894
49896
  if (A(be) > 0) {
49895
49897
  const je = nt(be, "type"), gt = je ? A(be) > 1 : !0;
49896
- gt && Wh(x, T, K, de(nt, be)), je && ot(x, K), Dt(Xn.fromDom(T[0])).each((Ot) => co(x, Ot.dom, {
49898
+ gt && Wh(x, T, K, de(nt, be)), je && ot(x, K), Ot(Xn.fromDom(T[0])).each((Rt) => co(x, Rt.dom, {
49897
49899
  structure: je,
49898
49900
  style: gt
49899
49901
  }));
@@ -50019,22 +50021,22 @@ Required: ` + T.join(", "));
50019
50021
  value: "right"
50020
50022
  }
50021
50023
  ]
50022
- }], Ot = T.length > 0 ? [{
50024
+ }], Rt = T.length > 0 ? [{
50023
50025
  type: "listbox",
50024
50026
  name: "class",
50025
50027
  label: "Class",
50026
50028
  items: T
50027
50029
  }] : [];
50028
- return K.concat(be).concat(je).concat(gt).concat(Ot);
50030
+ return K.concat(be).concat(je).concat(gt).concat(Rt);
50029
50031
  }, fb = (x, T, V, K) => {
50030
50032
  if (T.tagName === "TD" || T.tagName === "TH")
50031
- Ae(V) && Sn(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
50033
+ Ae(V) && Cn(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
50032
50034
  else if (T.children)
50033
50035
  for (let be = 0; be < T.children.length; be++)
50034
50036
  fb(x, T.children[be], V, K);
50035
50037
  }, lu = (x, T, V, K) => {
50036
- const be = x.dom, je = {}, gt = {}, Ot = Zc(x), on = ol(x);
50037
- if (it(V.class) || (je.class = V.class), gt.height = vs(V.height), Ot ? gt.width = vs(V.width) : be.getAttrib(T, "width") && (je.width = Yi(V.width)), Ot ? (gt["border-width"] = vs(V.border), gt["border-spacing"] = vs(V.cellspacing)) : (je.border = V.border, je.cellpadding = V.cellpadding, je.cellspacing = V.cellspacing), Ot && T.children) {
50038
+ const be = x.dom, je = {}, gt = {}, Rt = Zc(x), on = ol(x);
50039
+ if (it(V.class) || (je.class = V.class), gt.height = vs(V.height), Rt ? gt.width = vs(V.width) : be.getAttrib(T, "width") && (je.width = Yi(V.width)), Rt ? (gt["border-width"] = vs(V.border), gt["border-spacing"] = vs(V.cellspacing)) : (je.border = V.border, je.cellpadding = V.cellpadding, je.cellspacing = V.cellspacing), Rt && T.children) {
50038
50040
  const Hn = {};
50039
50041
  if (K.border && (Hn["border-width"] = vs(V.border)), K.cellpadding && (Hn.padding = vs(V.cellpadding)), on && K.bordercolor && (Hn["border-color"] = V.bordercolor), !ln(Hn))
50040
50042
  for (let ar = 0; ar < T.children.length; ar++)
@@ -50052,29 +50054,29 @@ Required: ` + T.join(", "));
50052
50054
  ...je
50053
50055
  });
50054
50056
  }, w1 = (x, T, V, K) => {
50055
- const be = x.dom, je = K.getData(), gt = Jo(je, (Ot, on) => V[on] !== Ot);
50057
+ const be = x.dom, je = K.getData(), gt = Jo(je, (Rt, on) => V[on] !== Rt);
50056
50058
  K.close(), je.class === "" && delete je.class, x.undoManager.transact(() => {
50057
50059
  if (!T) {
50058
- const Ot = $a(je.cols).getOr(1), on = $a(je.rows).getOr(1);
50060
+ const Rt = $a(je.cols).getOr(1), on = $a(je.rows).getOr(1);
50059
50061
  x.execCommand("mceInsertTable", !1, {
50060
50062
  rows: on,
50061
- columns: Ot
50062
- }), T = tu(ks(x), nl(x)).bind((Hn) => Dt(Hn, nl(x))).map((Hn) => Hn.dom).getOrDie();
50063
+ columns: Rt
50064
+ }), T = tu(ks(x), nl(x)).bind((Hn) => Ot(Hn, nl(x))).map((Hn) => Hn.dom).getOrDie();
50063
50065
  }
50064
50066
  if (A(gt) > 0) {
50065
- const Ot = {
50067
+ const Rt = {
50066
50068
  border: nt(gt, "border"),
50067
50069
  bordercolor: nt(gt, "bordercolor"),
50068
50070
  cellpadding: nt(gt, "cellpadding")
50069
50071
  };
50070
- lu(x, T, je, Ot);
50072
+ lu(x, T, je, Rt);
50071
50073
  const on = be.select("caption", T)[0];
50072
50074
  (on && !je.caption || !on && je.caption) && x.execCommand("mceTableToggleCaption"), ac(x, T, je.align);
50073
50075
  }
50074
50076
  if (x.focus(), x.addVisual(), A(gt) > 0) {
50075
- const Ot = nt(gt, "caption"), on = Ot ? A(gt) > 1 : !0;
50077
+ const Rt = nt(gt, "caption"), on = Rt ? A(gt) > 1 : !0;
50076
50078
  co(x, T, {
50077
- structure: Ot,
50079
+ structure: Rt,
50078
50080
  style: on
50079
50081
  });
50080
50082
  }
@@ -50089,7 +50091,7 @@ Required: ` + T.join(", "));
50089
50091
  type: "grid",
50090
50092
  columns: 2,
50091
50093
  items: au(x, je, T)
50092
- }, Ot = () => ({
50094
+ }, Rt = () => ({
50093
50095
  type: "panel",
50094
50096
  items: [gt]
50095
50097
  }), on = () => ({
@@ -50102,7 +50104,7 @@ Required: ` + T.join(", "));
50102
50104
  },
50103
50105
  _f(x, "table")
50104
50106
  ]
50105
- }), Hn = ol(x) ? on() : Ot();
50107
+ }), Hn = ol(x) ? on() : Rt();
50106
50108
  x.windowManager.open({
50107
50109
  title: "Table Properties",
50108
50110
  size: "normal",
@@ -50152,7 +50154,7 @@ Required: ` + T.join(", "));
50152
50154
  }), Om = (x) => {
50153
50155
  const T = Qu(oe.none()), V = Qu([]);
50154
50156
  let K = oe.none();
50155
- const be = bl("caption"), je = (Ro) => K.forall((oo) => !oo[Ro]), gt = () => ta(ks(x), nl(x)), Ot = () => ta(za(x), nl(x)), on = () => gt().bind((Ro) => ma(Or(Dt(Ro), Ot().bind(Dt), (oo, ya) => Qo(oo, ya) ? be(Ro) ? oe.some(Ia(Ro)) : oe.some(C1(al(x), oo, Ro)) : oe.none()))), Hn = (Ro) => Dt(Ro.element).map((ya) => {
50157
+ const be = bl("caption"), je = (Ro) => K.forall((oo) => !oo[Ro]), gt = () => ta(ks(x), nl(x)), Rt = () => ta(za(x), nl(x)), on = () => gt().bind((Ro) => ma(Or(Ot(Ro), Rt().bind(Ot), (oo, ya) => Qo(oo, ya) ? be(Ro) ? oe.some(Ia(Ro)) : oe.some(C1(al(x), oo, Ro)) : oe.none()))), Hn = (Ro) => Ot(Ro.element).map((ya) => {
50156
50158
  const il = Wc.fromTable(ya), S1 = zs(il, Ro).getOr([]), od = Zi(S1, (ul, Pm) => (Pm.isLocked && (ul.onAny = !0, Pm.column === 0 ? ul.onFirst = !0 : Pm.column + Pm.colspan >= il.grid.columns && (ul.onLast = !0)), ul), {
50157
50159
  onAny: !1,
50158
50160
  onFirst: !1,
@@ -50175,7 +50177,7 @@ Required: ` + T.join(", "));
50175
50177
  Ro.setEnabled(!1), Ro.setActive(!1);
50176
50178
  }, (il) => {
50177
50179
  Ro.setEnabled(!oo(il) && x.selection.isEditable()), Ro.setActive(ya(il));
50178
- })), Gl = (Ro) => K.exists((oo) => oo.locked[Ro]), Xc = (Ro) => Bs(Ro, (oo) => !1), Ld = (Ro) => Bs(Ro, (oo) => be(oo.element)), cu = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Gl(Ro)), Ug = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Ro().isNone()), Tf = (Ro, oo) => (ya) => Bs(ya, (il) => be(il.element) || Ro().isNone() || Gl(oo)), $m = (Ro) => Bs(Ro, (oo) => je("mergeable")), Wg = (Ro) => Bs(Ro, (oo) => je("unmergeable")), Zr = (Ro) => mc(Ro, ca, (oo) => Dt(oo.element, nl(x)).exists((il) => Ac(il, "caption"))), Jc = (Ro, oo) => (ya) => mc(ya, (il) => be(il.element), () => x.queryCommandValue(Ro) === oo), Ef = Jc("mceTableRowType", "header"), Mm = Jc("mceTableColType", "th");
50180
+ })), Gl = (Ro) => K.exists((oo) => oo.locked[Ro]), Xc = (Ro) => Bs(Ro, (oo) => !1), Ld = (Ro) => Bs(Ro, (oo) => be(oo.element)), cu = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Gl(Ro)), Ug = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Ro().isNone()), Tf = (Ro, oo) => (ya) => Bs(ya, (il) => be(il.element) || Ro().isNone() || Gl(oo)), $m = (Ro) => Bs(Ro, (oo) => je("mergeable")), Wg = (Ro) => Bs(Ro, (oo) => je("unmergeable")), Zr = (Ro) => mc(Ro, ca, (oo) => Ot(oo.element, nl(x)).exists((il) => Ac(il, "caption"))), Jc = (Ro, oo) => (ya) => mc(ya, (il) => be(il.element), () => x.queryCommandValue(Ro) === oo), Ef = Jc("mceTableRowType", "header"), Mm = Jc("mceTableColType", "th");
50179
50181
  return x.on("NodeChange ExecCommand TableSelectorChange", ar), {
50180
50182
  onSetupTable: Xc,
50181
50183
  onSetupCellOrRow: Ld,
@@ -50208,15 +50210,15 @@ Required: ` + T.join(", "));
50208
50210
  tooltip: "Table",
50209
50211
  icon: "table",
50210
50212
  onSetup: Zl(x),
50211
- fetch: (Ot) => Ot("inserttable | cell row column | advtablesort | tableprops deletetable")
50213
+ fetch: (Rt) => Rt("inserttable | cell row column | advtablesort | tableprops deletetable")
50212
50214
  });
50213
- const V = (Ot) => () => x.execCommand(Ot), K = (Ot, on) => {
50214
- x.queryCommandSupported(on.command) && x.ui.registry.addButton(Ot, {
50215
+ const V = (Rt) => () => x.execCommand(Rt), K = (Rt, on) => {
50216
+ x.queryCommandSupported(on.command) && x.ui.registry.addButton(Rt, {
50215
50217
  ...on,
50216
50218
  onAction: jn(on.onAction) ? on.onAction : V(on.command)
50217
50219
  });
50218
- }, be = (Ot, on) => {
50219
- x.queryCommandSupported(on.command) && x.ui.registry.addToggleButton(Ot, {
50220
+ }, be = (Rt, on) => {
50221
+ x.queryCommandSupported(on.command) && x.ui.registry.addToggleButton(Rt, {
50220
50222
  ...on,
50221
50223
  onAction: jn(on.onAction) ? on.onAction : V(on.command)
50222
50224
  });
@@ -50331,14 +50333,14 @@ Required: ` + T.join(", "));
50331
50333
  je.length !== 0 && x.queryCommandSupported("mceTableToggleClass") && x.ui.registry.addMenuButton("tableclass", {
50332
50334
  icon: "table-classes",
50333
50335
  tooltip: "Table styles",
50334
- fetch: nu(x, je, "tableclass", (Ot) => x.execCommand("mceTableToggleClass", !1, Ot)),
50336
+ fetch: nu(x, je, "tableclass", (Rt) => x.execCommand("mceTableToggleClass", !1, Rt)),
50335
50337
  onSetup: T.onSetupTable
50336
50338
  });
50337
50339
  const gt = Su(_m(x));
50338
50340
  gt.length !== 0 && x.queryCommandSupported("mceTableCellToggleClass") && x.ui.registry.addMenuButton("tablecellclass", {
50339
50341
  icon: "table-cell-classes",
50340
50342
  tooltip: "Cell styles",
50341
- fetch: nu(x, gt, "tablecellclass", (Ot) => x.execCommand("mceTableCellToggleClass", !1, Ot)),
50343
+ fetch: nu(x, gt, "tablecellclass", (Rt) => x.execCommand("mceTableCellToggleClass", !1, Rt)),
50342
50344
  onSetup: T.onSetupCellOrRow
50343
50345
  }), x.queryCommandSupported("mceTableApplyCellStyle") && (x.ui.registry.addMenuButton("tablecellvalign", {
50344
50346
  icon: "vertical-align",
@@ -50358,12 +50360,12 @@ Required: ` + T.join(", "));
50358
50360
  }), x.ui.registry.addMenuButton("tablecellbackgroundcolor", {
50359
50361
  icon: "cell-background-color",
50360
50362
  tooltip: "Background color",
50361
- fetch: (Ot) => Ot(Gn(x, _g(x), "background-color")),
50363
+ fetch: (Rt) => Rt(Gn(x, _g(x), "background-color")),
50362
50364
  onSetup: T.onSetupCellOrRow
50363
50365
  }), x.ui.registry.addMenuButton("tablecellbordercolor", {
50364
50366
  icon: "cell-border-color",
50365
50367
  tooltip: "Border color",
50366
- fetch: (Ot) => Ot(Gn(x, eu(x), "border-color")),
50368
+ fetch: (Rt) => Rt(Gn(x, eu(x), "border-color")),
50367
50369
  onSetup: T.onSetupCellOrRow
50368
50370
  })), be("tablecaption", {
50369
50371
  tooltip: "Table caption",
@@ -50461,7 +50463,7 @@ Required: ` + T.join(", "));
50461
50463
  command: "mceTablePasteRowAfter",
50462
50464
  onSetup: T.onSetupPasteable(Kc)
50463
50465
  })
50464
- ], Ot = [
50466
+ ], Rt = [
50465
50467
  K("tableinsertcolumnbefore", {
50466
50468
  text: "Insert column before",
50467
50469
  icon: "table-insert-column-before",
@@ -50556,7 +50558,7 @@ Required: ` + T.join(", "));
50556
50558
  type: "nestedmenuitem",
50557
50559
  text: "Row",
50558
50560
  getSubmenuItems: Mt("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")
50559
- }), ao(Ot, !0) && x.ui.registry.addNestedMenuItem("column", {
50561
+ }), ao(Rt, !0) && x.ui.registry.addNestedMenuItem("column", {
50560
50562
  type: "nestedmenuitem",
50561
50563
  text: "Column",
50562
50564
  getSubmenuItems: Mt("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")
@@ -50741,7 +50743,7 @@ Required: ` + T.join(", "));
50741
50743
  new RegExp(Ae.katakana),
50742
50744
  new RegExp(Ae.extendnumlet),
50743
50745
  new RegExp("@")
50744
- ], it = "", $t = new RegExp("^" + Ae.punctuation + "$"), Sn = /^\s+$/, jn = Pe, Vo = Q.OTHER, Us = (qe) => {
50746
+ ], it = "", Dt = new RegExp("^" + Ae.punctuation + "$"), Cn = /^\s+$/, jn = Pe, Vo = Q.OTHER, Us = (qe) => {
50745
50747
  let At = Vo;
50746
50748
  const Ke = jn.length;
50747
50749
  for (let _e = 0; _e < Ke; ++_e) {
@@ -50774,7 +50776,7 @@ Required: ` + T.join(", "));
50774
50776
  return !1;
50775
50777
  const jo = qe[At - 1];
50776
50778
  return (Ke === Q.MIDLETTER || Ke === Q.MIDNUMLET || _e === Q.AT) && _e === Q.ALETTER && jo === Q.ALETTER || (Ke === Q.NUMERIC || Ke === Q.ALETTER) && (_e === Q.NUMERIC || _e === Q.ALETTER) || (Ke === Q.MIDNUM || Ke === Q.MIDNUMLET) && _e === Q.NUMERIC && jo === Q.NUMERIC || Ke === Q.NUMERIC && (_e === Q.MIDNUM || _e === Q.MIDNUMLET) && vn === Q.NUMERIC || (Ke === Q.EXTEND || Ke === Q.FORMAT) && (_e === Q.ALETTER || _e === Q.NUMERIC || _e === Q.KATAKANA || _e === Q.EXTEND || _e === Q.FORMAT) || (_e === Q.EXTEND || _e === Q.FORMAT && (vn === Q.ALETTER || vn === Q.NUMERIC || vn === Q.KATAKANA || vn === Q.EXTEND || vn === Q.FORMAT)) && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTEND || Ke === Q.FORMAT) || Ke === Q.CR && _e === Q.LF ? !1 : Ke === Q.NEWLINE || Ke === Q.CR || Ke === Q.LF || _e === Q.NEWLINE || _e === Q.CR || _e === Q.LF ? !0 : !(Ke === Q.KATAKANA && _e === Q.KATAKANA || _e === Q.EXTENDNUMLET && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTENDNUMLET) || Ke === Q.EXTENDNUMLET && (_e === Q.ALETTER || _e === Q.NUMERIC || _e === Q.KATAKANA) || Ke === Q.AT);
50777
- }, fn = it, de = Sn, kt = $t, ca = (qe) => qe === "http" || qe === "https", Qn = (qe, At) => {
50779
+ }, fn = it, de = Cn, kt = Dt, ca = (qe) => qe === "http" || qe === "https", Qn = (qe, At) => {
50778
50780
  let Ke;
50779
50781
  for (Ke = At; Ke < qe.length && !de.test(qe[Ke]); Ke++)
50780
50782
  ;
@@ -50991,7 +50993,7 @@ const BQ = { class: "font-bold ptext-lg dark:text-white" }, NQ = ["id"], IQ = /*
50991
50993
  fe("update:modelValue", it);
50992
50994
  }
50993
50995
  });
50994
- return me({ focus: () => G.value.focus() }), (it, $t) => (ve(), we(fo, null, [
50996
+ return me({ focus: () => G.value.focus() }), (it, Dt) => (ve(), we(fo, null, [
50995
50997
  R.show ? (ve(), we("div", {
50996
50998
  key: 0,
50997
50999
  class: rn(R.field_name)
@@ -51023,8 +51025,8 @@ const BQ = { class: "font-bold ptext-lg dark:text-white" }, NQ = ["id"], IQ = /*
51023
51025
  "gl-textarea-form-invalid mt-4": R.error_message !== ""
51024
51026
  }]),
51025
51027
  type: R.type,
51026
- "onUpdate:modelValue": $t[0] || ($t[0] = (Sn) => Pe.value = Sn),
51027
- onKeydown: $t[1] || ($t[1] = (Sn) => it.$emit("keydown", Sn)),
51028
+ "onUpdate:modelValue": Dt[0] || (Dt[0] = (Cn) => Pe.value = Cn),
51029
+ onKeydown: Dt[1] || (Dt[1] = (Cn) => it.$emit("keydown", Cn)),
51028
51030
  ref_key: "input",
51029
51031
  ref: G,
51030
51032
  rows: "4"
@@ -51484,7 +51486,7 @@ function Eee(R, me, se, Ee, fe, G) {
51484
51486
  P("tr", null, [
51485
51487
  (ve(!0), we(fo, null, hr(se.columns, (Pe, it) => (ve(), we("th", {
51486
51488
  key: it,
51487
- onClick: ($t) => G.updateSortColumn(Pe.field_name, Pe.sortable),
51489
+ onClick: (Dt) => G.updateSortColumn(Pe.field_name, Pe.sortable),
51488
51490
  class: "w-full px-4 py-2 lg:w-2/12"
51489
51491
  }, [
51490
51492
  _o(ft(Pe.field_label) + " ", 1),
@@ -51504,26 +51506,26 @@ function Eee(R, me, se, Ee, fe, G) {
51504
51506
  key: it,
51505
51507
  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"
51506
51508
  }, [
51507
- (ve(!0), we(fo, null, hr(se.columns, ($t, Sn) => (ve(), we("td", {
51508
- key: Sn,
51509
- "data-label": $t.field_label,
51509
+ (ve(!0), we(fo, null, hr(se.columns, (Dt, Cn) => (ve(), we("td", {
51510
+ key: Cn,
51511
+ "data-label": Dt.field_label,
51510
51512
  class: rn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700", {
51511
- "rounded-t-lg lg:rounded-t-none": Sn === 0,
51512
- "rounded-b-lg lg:rounded-b-none": Sn === se.columns.length - 1
51513
+ "rounded-t-lg lg:rounded-t-none": Cn === 0,
51514
+ "rounded-b-lg lg:rounded-b-none": Cn === se.columns.length - 1
51513
51515
  }])
51514
51516
  }, [
51515
51517
  P("div", kee, [
51516
- $t.tdComp ? (ve(), Ty(o5(G.forDynCompIs($t.tdComp)), {
51518
+ Dt.tdComp ? (ve(), Ty(o5(G.forDynCompIs(Dt.tdComp)), {
51517
51519
  key: 0,
51518
51520
  row: Pe,
51519
- field: $t.field_name,
51521
+ field: Dt.field_name,
51520
51522
  xprops: se.xprops,
51521
- tdProps: $t.tdProps,
51523
+ tdProps: Dt.tdProps,
51522
51524
  onDeleteAction: me[3] || (me[3] = (jn) => G.GetItemLists()),
51523
51525
  onEditAction: (jn) => G.editAction(Pe),
51524
51526
  onGeneralAction: (jn) => G.generalAction(Pe)
51525
51527
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(fo, { key: 1 }, [
51526
- _o(ft(Pe[$t.field_name]), 1)
51528
+ _o(ft(Pe[Dt.field_name]), 1)
51527
51529
  ], 64))
51528
51530
  ])
51529
51531
  ], 10, _ee))), 128))
@@ -51818,12 +51820,12 @@ function vte(R, me, se, Ee, fe, G) {
51818
51820
  key: Pe,
51819
51821
  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"
51820
51822
  }, [
51821
- (ve(!0), we(fo, null, hr(se.columns, (it, $t) => (ve(), we("td", {
51822
- key: $t,
51823
+ (ve(!0), we(fo, null, hr(se.columns, (it, Dt) => (ve(), we("td", {
51824
+ key: Dt,
51823
51825
  "data-label": it.field_label,
51824
51826
  class: rn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700", {
51825
- "rounded-t-lg lg:rounded-t-none": $t === 0,
51826
- "rounded-b-lg lg:rounded-b-none": $t === se.columns.length - 1
51827
+ "rounded-t-lg lg:rounded-t-none": Dt === 0,
51828
+ "rounded-b-lg lg:rounded-b-none": Dt === se.columns.length - 1
51827
51829
  }])
51828
51830
  }, [
51829
51831
  P("div", Yee, [
@@ -51833,9 +51835,9 @@ function vte(R, me, se, Ee, fe, G) {
51833
51835
  field: it.field_name,
51834
51836
  xprops: se.xprops,
51835
51837
  tdProps: it.tdProps,
51836
- onDeleteAction: me[2] || (me[2] = (Sn) => G.GetItemLists()),
51837
- onEditAction: (Sn) => G.editAction(Q),
51838
- onGeneralAction: (Sn) => G.generalAction(Q)
51838
+ onDeleteAction: me[2] || (me[2] = (Cn) => G.GetItemLists()),
51839
+ onEditAction: (Cn) => G.editAction(Q),
51840
+ onGeneralAction: (Cn) => G.generalAction(Q)
51839
51841
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(fo, { key: 1 }, [
51840
51842
  _o(ft(Q[it.field_name]), 1)
51841
51843
  ], 64))
@@ -52120,7 +52122,7 @@ function Zte(R, me, se, Ee, fe, G) {
52120
52122
  P("tr", null, [
52121
52123
  (ve(!0), we(fo, null, hr(se.columns, (Pe, it) => (ve(), we("th", {
52122
52124
  key: it,
52123
- onClick: ($t) => G.updateSortColumn(Pe.field_name, Pe.sortable),
52125
+ onClick: (Dt) => G.updateSortColumn(Pe.field_name, Pe.sortable),
52124
52126
  class: "w-full px-4 py-2 lg:w-2/12"
52125
52127
  }, [
52126
52128
  _o(ft(Pe.field_label) + " ", 1),
@@ -52143,8 +52145,8 @@ function Zte(R, me, se, Ee, fe, G) {
52143
52145
  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
52146
  }, ft(it), 9, Vte)
52145
52147
  ]),
52146
- (ve(!0), we(fo, null, hr(Pe, ($t, Sn) => (ve(), we("tr", {
52147
- key: Sn,
52148
+ (ve(!0), we(fo, null, hr(Pe, (Dt, Cn) => (ve(), we("tr", {
52149
+ key: Cn,
52148
52150
  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"
52149
52151
  }, [
52150
52152
  (ve(!0), we(fo, null, hr(se.columns, (jn, Vo) => (ve(), we("td", {
@@ -52155,14 +52157,14 @@ function Zte(R, me, se, Ee, fe, G) {
52155
52157
  P("div", Ute, [
52156
52158
  jn.tdComp ? (ve(), Ty(o5(G.forDynCompIs(jn.tdComp)), {
52157
52159
  key: 0,
52158
- row: $t,
52160
+ row: Dt,
52159
52161
  field: jn.field_name,
52160
52162
  xprops: se.xprops,
52161
52163
  tdProps: jn.tdProps,
52162
52164
  onDeleteAction: me[3] || (me[3] = (Us) => G.GetItemLists()),
52163
- onEditAction: (Us) => G.editAction($t)
52165
+ onEditAction: (Us) => G.editAction(Dt)
52164
52166
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ve(), we(fo, { key: 1 }, [
52165
- _o(ft($t[jn.field_name]), 1)
52167
+ _o(ft(Dt[jn.field_name]), 1)
52166
52168
  ], 64))
52167
52169
  ])
52168
52170
  ], 8, zte))), 128))
@@ -52383,14 +52385,14 @@ function $ne(R, me, se, Ee, fe, G) {
52383
52385
  key: Pe,
52384
52386
  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"
52385
52387
  }, [
52386
- (ve(!0), we(fo, null, hr(se.columns, (it, $t) => (ve(), we("td", {
52387
- key: $t,
52388
+ (ve(!0), we(fo, null, hr(se.columns, (it, Dt) => (ve(), we("td", {
52389
+ key: Dt,
52388
52390
  "data-label": it,
52389
52391
  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-2.5 lg:px-4 border dark:border-gray-700"
52390
52392
  }, [
52391
52393
  P("p", {
52392
52394
  class: "text-pretty",
52393
- innerHTML: Q[$t]
52395
+ innerHTML: Q[Dt]
52394
52396
  }, null, 8, une)
52395
52397
  ], 8, ine))), 128))
52396
52398
  ]))), 128))
@@ -52505,11 +52507,11 @@ const tle = /* @__PURE__ */ Jr(Mne, [["render", Pne]]), Bne = {
52505
52507
  const R = No(!1), me = QG("accordionsWrapper"), Ee = (() => {
52506
52508
  var it = (/* @__PURE__ */ new Date()).getTime();
52507
52509
  typeof performance < "u" && typeof performance.now == "function" && (it += performance.now());
52508
- var $t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Sn) {
52510
+ var Dt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Cn) {
52509
52511
  var jn = (it + Math.random() * 16) % 16 | 0;
52510
- return it = Math.floor(it / 16), (Sn === "x" ? jn : jn & 3 | 8).toString(16);
52512
+ return it = Math.floor(it / 16), (Cn === "x" ? jn : jn & 3 | 8).toString(16);
52511
52513
  });
52512
- return $t;
52514
+ return Dt;
52513
52515
  })(), fe = { isOpen: R, id: Ee }, G = vc(() => me.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);
52514
52516
  return Oh(() => {
52515
52517
  me.registerAccordion(fe);
@@ -52749,26 +52751,26 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52749
52751
  fe.value = !1;
52750
52752
  }, Pe = () => {
52751
52753
  fe.value = !0;
52752
- }, it = me, $t = () => {
52754
+ }, it = me, Dt = () => {
52753
52755
  axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
52754
52756
  Q(), it("deleteAction"), s5.methods.add({
52755
52757
  message: "Item deleted successfully.",
52756
52758
  type: "success",
52757
52759
  duration: 5e3
52758
52760
  });
52759
- }).catch((Sn) => {
52760
- console.log(Sn);
52761
+ }).catch((Cn) => {
52762
+ console.log(Cn);
52761
52763
  });
52762
52764
  };
52763
- return (Sn, jn) => {
52765
+ return (Cn, jn) => {
52764
52766
  const Vo = nq("click-outside");
52765
52767
  return ve(), we(fo, null, [
52766
52768
  cb(Oj, {
52767
52769
  isOpen: fe.value,
52768
- onConfirmDelete: $t,
52770
+ onConfirmDelete: Dt,
52769
52771
  onCancelDelete: Q
52770
52772
  }, null, 8, ["isOpen"]),
52771
- R.row && Sn.can(`edit_${R.xprops.permission} || delete_${R.xprops.permission}`) ? Qa((ve(), we("div", coe, [
52773
+ R.row && Cn.can(`edit_${R.xprops.permission} || delete_${R.xprops.permission}`) ? Qa((ve(), we("div", coe, [
52772
52774
  P("button", {
52773
52775
  onClick: Ae,
52774
52776
  class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
@@ -52776,7 +52778,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52776
52778
  }, uoe),
52777
52779
  Qa(P("div", doe, [
52778
52780
  P("ul", moe, [
52779
- Sn.can(`edit_${R.xprops.permission}`) ? (ve(), we("li", foe, [
52781
+ Cn.can(`edit_${R.xprops.permission}`) ? (ve(), we("li", foe, [
52780
52782
  P("a", {
52781
52783
  href: R.xprops.route + "/" + R.row.id + "/edit",
52782
52784
  class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
@@ -52785,7 +52787,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52785
52787
  _o(" Edit")
52786
52788
  ], 8, goe)
52787
52789
  ])) : pt("", !0),
52788
- Sn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", poe, [
52790
+ Cn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", poe, [
52789
52791
  P("a", {
52790
52792
  href: "#",
52791
52793
  onClick: oc(Pe, ["prevent"]),
@@ -52855,26 +52857,26 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52855
52857
  fe.value = !1;
52856
52858
  }, Pe = () => {
52857
52859
  fe.value = !0;
52858
- }, it = me, $t = () => {
52860
+ }, it = me, Dt = () => {
52859
52861
  axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
52860
52862
  Q(), it("deleteAction"), s5.methods.add({
52861
52863
  message: "Item deleted successfully.",
52862
52864
  type: "success",
52863
52865
  duration: 5e3
52864
52866
  });
52865
- }).catch((Sn) => {
52866
- console.log(Sn);
52867
+ }).catch((Cn) => {
52868
+ console.log(Cn);
52867
52869
  });
52868
52870
  };
52869
- return (Sn, jn) => {
52871
+ return (Cn, jn) => {
52870
52872
  const Vo = nq("click-outside");
52871
52873
  return ve(), we(fo, null, [
52872
52874
  cb(Oj, {
52873
52875
  isOpen: fe.value,
52874
- onConfirmDelete: $t,
52876
+ onConfirmDelete: Dt,
52875
52877
  onCancelDelete: Q
52876
52878
  }, null, 8, ["isOpen"]),
52877
- R.row && Sn.can(`delete_${R.xprops.permission}`) ? Qa((ve(), we("div", voe, [
52879
+ R.row && Cn.can(`delete_${R.xprops.permission}`) ? Qa((ve(), we("div", voe, [
52878
52880
  P("button", {
52879
52881
  onClick: Ae,
52880
52882
  class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
@@ -52882,7 +52884,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52882
52884
  }, woe),
52883
52885
  Qa(P("div", xoe, [
52884
52886
  P("ul", Coe, [
52885
- Sn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", Soe, [
52887
+ Cn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", Soe, [
52886
52888
  P("a", {
52887
52889
  href: "#",
52888
52890
  onClick: oc(Pe, ["prevent"]),
@@ -53525,9 +53527,9 @@ const xle = /* @__PURE__ */ Jr(ure, [["render", Cre]]), Sre = {
53525
53527
  setup(R, { expose: me }) {
53526
53528
  const se = No(""), Ee = No(""), fe = No(""), G = No("Cancel"), Ae = No(!1), Q = No(void 0), Pe = No(void 0), it = (jn = {}) => (se.value = jn.title, Ee.value = jn.message, fe.value = jn.okButton, jn.cancelButton && (G.value = jn.cancelButton), Ae.value = !0, new Promise((Vo, Us) => {
53527
53529
  Q.value = Vo, Pe.value = Us;
53528
- })), $t = () => {
53530
+ })), Dt = () => {
53529
53531
  Ae.value = !1, Q.value(!0);
53530
- }, Sn = () => {
53532
+ }, Cn = () => {
53531
53533
  Ae.value = !1, Q.value(!1);
53532
53534
  };
53533
53535
  return me({
@@ -53549,12 +53551,12 @@ const xle = /* @__PURE__ */ Jr(ure, [["render", Cre]]), Sre = {
53549
53551
  ]),
53550
53552
  P("div", Pre, [
53551
53553
  P("button", {
53552
- onClick: $t,
53554
+ onClick: Dt,
53553
53555
  type: "button",
53554
53556
  class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
53555
53557
  }, ft(fe.value), 1),
53556
53558
  P("button", {
53557
- onClick: Sn,
53559
+ onClick: Cn,
53558
53560
  type: "button",
53559
53561
  class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
53560
53562
  }, ft(G.value), 1)