golden-logic-ui 1.0.321 → 1.0.322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -522,9 +522,9 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
522
522
  Ue.key === "Enter" && Ue.target.form && Ue.preventDefault();
523
523
  }));
524
524
  });
525
- const _n = vc(() => Bn()), Gn = vc(() => Ge()), Ro = vc(() => {
525
+ const Sn = vc(() => Bn()), Gn = vc(() => Ge()), Ro = vc(() => {
526
526
  const Ue = [], A = new RegExp(lt.value, "ig");
527
- for (const Vt of _n.value) {
527
+ for (const Vt of Sn.value) {
528
528
  const et = String(Vt.name);
529
529
  (lt.value.length < 1 || et.match(A)) && Ue.length < se.maxItem && Ue.push(Vt);
530
530
  }
@@ -573,7 +573,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
573
573
  A !== -1 && G.value.splice(A, 1), Ae.value = G.value.map((Vt) => Vt.id), Ee("update:modelValue", Ae.value), Ee("selected", G.value), Ee("selectionChanged", G.value);
574
574
  }
575
575
  function Qn(Ue) {
576
- Ue.target.id != se.field_name + "search" + $t.value && Ue.target.id != se.field_name && !Ue.target.classList.contains("showOptions") && (gn(), Q.value = 0, Pe.value = !1);
576
+ Ue.target.id != se.field_name + "search" + $t.value && Ue.target.id != se.field_name && !Ue.target.classList.contains("showOptions") && (mn(), Q.value = 0, Pe.value = !1);
577
577
  }
578
578
  function oe(Ue) {
579
579
  const A = `${Ue}${$t.value}`, Vt = document.getElementById(A);
@@ -591,21 +591,21 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
591
591
  }
592
592
  function Ge() {
593
593
  if (Pt(G.value))
594
- return pr(G.value) ? _n.value.filter(
594
+ return pr(G.value) ? Sn.value.filter(
595
595
  (Ue) => G.value.some(
596
596
  (A) => String(A.id) === String(Ue.id)
597
597
  )
598
- ) || [] : _n.value.filter(
598
+ ) || [] : Sn.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 = _n.value.filter(
604
+ return pr(se.modelValue) ? G.value = Sn.value.filter(
605
605
  (Ue) => se.modelValue.some(
606
606
  (A) => String(A.id) === String(Ue.id)
607
607
  )
608
- ) || [] : G.value = _n.value.filter(
608
+ ) || [] : G.value = Sn.value.filter(
609
609
  (Ue) => se.modelValue.some(
610
610
  (A) => String(A) === String(Ue.id)
611
611
  )
@@ -629,7 +629,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
629
629
  });
630
630
  }
631
631
  }
632
- function gn() {
632
+ function mn() {
633
633
  lt.value = "", Ee("selected", G.value);
634
634
  }
635
635
  return Gx(lt, () => {
@@ -713,7 +713,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
713
713
  ref: ge.value,
714
714
  id: `${R.field_name}search${$t.value}`,
715
715
  onKeydown: Gs,
716
- onBlur: A[3] || (A[3] = (Vt) => gn()),
716
+ onBlur: A[3] || (A[3] = (Vt) => mn()),
717
717
  autocomplete: "off",
718
718
  class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
719
719
  placeholder: "Search ..."
@@ -1553,7 +1553,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1553
1553
  "gl-input-form-invalid": R.error_message !== "" || ge.value !== ""
1554
1554
  }),
1555
1555
  type: "date",
1556
- "onUpdate:modelValue": $t[0] || ($t[0] = (_n) => Ae.value = _n),
1556
+ "onUpdate:modelValue": $t[0] || ($t[0] = (Sn) => Ae.value = Sn),
1557
1557
  placeholder: R.placeholder
1558
1558
  }, null, 10, XY), [
1559
1559
  [vm, Ae.value]
@@ -1568,7 +1568,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1568
1568
  "gl-input-form-invalid": R.error_message !== "" || ge.value !== ""
1569
1569
  }),
1570
1570
  type: "date",
1571
- "onUpdate:modelValue": $t[1] || ($t[1] = (_n) => Q.value = _n),
1571
+ "onUpdate:modelValue": $t[1] || ($t[1] = (Sn) => Q.value = Sn),
1572
1572
  placeholder: R.placeholder
1573
1573
  }, null, 10, QY), [
1574
1574
  [vm, Q.value]
@@ -1791,8 +1791,8 @@ const Vae = /* @__PURE__ */ Jr(bX, [["render", yX]]), wX = {
1791
1791
  const se = (ge) => {
1792
1792
  de.style.cursor = "grabbing";
1793
1793
  const G = (Q) => {
1794
- const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, lt = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, $t = Pe - R.initialX, _n = lt - R.initialY;
1795
- Math.abs($t) > Math.abs(_n) ? (Q.preventDefault(), Math.abs($t) >= 70 && ($t < 0 ? R.next() : R.prev(), R.initialX = Pe)) : de.style.cursor = "grab", Math.abs(_n) > Math.abs($t) && (de.style.cursor = "grab");
1794
+ const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, lt = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, $t = Pe - R.initialX, Sn = lt - R.initialY;
1795
+ Math.abs($t) > Math.abs(Sn) ? (Q.preventDefault(), Math.abs($t) >= 70 && ($t < 0 ? R.next() : R.prev(), R.initialX = Pe)) : de.style.cursor = "grab", Math.abs(Sn) > Math.abs($t) && (de.style.cursor = "grab");
1796
1796
  }, Ae = () => {
1797
1797
  document.removeEventListener("mousemove", G), document.removeEventListener("touchmove", G), document.removeEventListener("mouseup", Ae), document.removeEventListener("touchend", Ae), de.style.cursor = "grab";
1798
1798
  };
@@ -2537,19 +2537,19 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2537
2537
  },
2538
2538
  emits: ["update:modelValue", "selected", "selectionChanged"],
2539
2539
  setup(R, { emit: de }) {
2540
- const se = R, Ee = de, ge = Vo(null), G = Vo({}), Ae = Vo(0), Q = Vo(!1), Pe = Vo(""), lt = Vo(""), $t = Vo(0), _n = () => {
2541
- const Wt = `myDivDropDown${lt.value}`, gn = document.getElementById(Wt);
2542
- if (gn) {
2543
- console.log("divDropDownWidthelement", gn), $t.value = gn.offsetWidth, console.log("divDropDownWidth", gn.offsetWidth);
2544
- var Ue = divElement.getBoundingClientRect().width;
2540
+ const se = R, Ee = de, ge = Vo(null), G = Vo({}), Ae = Vo(0), Q = Vo(!1), Pe = Vo(""), lt = Vo(""), $t = Vo(0), Sn = () => {
2541
+ const Wt = `myDivDropDown${lt.value}`, mn = document.getElementById(Wt);
2542
+ if (mn) {
2543
+ console.log("divDropDownWidthelement", mn), $t.value = mn.offsetWidth, console.log("divDropDownWidth", mn.offsetWidth);
2544
+ var Ue = mn.getBoundingClientRect().width;
2545
2545
  console.log("divWidthRect", Ue);
2546
2546
  }
2547
2547
  }, Gn = () => {
2548
- _n();
2548
+ Sn();
2549
2549
  };
2550
2550
  Oh(() => {
2551
2551
  lt.value = pr(), window.addEventListener("resize", Gn), U8(() => {
2552
- _n();
2552
+ Sn();
2553
2553
  }), se.show || (document.body.addEventListener("click", (Wt) => {
2554
2554
  me(Wt);
2555
2555
  }), document.addEventListener("keypress", (Wt) => {
@@ -2559,10 +2559,10 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2559
2559
  window.removeEventListener("resize", Gn);
2560
2560
  });
2561
2561
  const Ro = vc(() => oe()), Gs = vc(() => Nn()), Io = vc(() => {
2562
- const Wt = [], gn = new RegExp(Pe.value, "ig");
2562
+ const Wt = [], mn = new RegExp(Pe.value, "ig");
2563
2563
  for (const Ue of Ro.value) {
2564
2564
  const A = String(Ue.name);
2565
- (Pe.value.length < 1 || A.match(gn)) && Wt.length < se.maxItem && Wt.push(Ue);
2565
+ (Pe.value.length < 1 || A.match(mn)) && Wt.length < se.maxItem && Wt.push(Ue);
2566
2566
  }
2567
2567
  return Wt;
2568
2568
  });
@@ -2596,18 +2596,18 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2596
2596
  Wt.target.id != se.field_name + "search" + lt.value && Wt.target.id != se.field_name && !Wt.target.classList.contains("showOptions") && (fe(), Ae.value = 0, Q.value = !1);
2597
2597
  }
2598
2598
  function _t(Wt) {
2599
- const gn = `${Wt}${lt.value}`, Ue = document.getElementById(gn);
2599
+ const mn = `${Wt}${lt.value}`, Ue = document.getElementById(mn);
2600
2600
  Ue && Ue.scrollIntoView();
2601
2601
  }
2602
2602
  function Ea(Wt) {
2603
- const gn = `${Wt}${lt.value}`, Ue = document.getElementById(gn);
2603
+ const mn = `${Wt}${lt.value}`, Ue = document.getElementById(mn);
2604
2604
  Ue && Ue.click();
2605
2605
  }
2606
2606
  function Qn(Wt) {
2607
2607
  Wt === "ArrowDown" && Ae.value < Io.value.length && (Ae.value++, _t(Ae.value)), Wt === "ArrowUp" && Ae.value > 1 && (Ae.value--, _t(Ae.value)), Wt === "Enter" && Ea(Ae.value);
2608
2608
  }
2609
2609
  function oe() {
2610
- return se.options.map((Wt, gn) => typeof Wt == "object" ? Wt : { id: Wt, name: Wt });
2610
+ return Sn(), se.options.map((Wt, mn) => typeof Wt == "object" ? Wt : { id: Wt, name: Wt });
2611
2611
  }
2612
2612
  function Nn() {
2613
2613
  if (un(G.value))
@@ -2650,7 +2650,7 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2650
2650
  Io.value.length === 0 && (G.value = {});
2651
2651
  }), Gx(G, (Wt) => {
2652
2652
  un(Wt) && Ee("update:modelValue", Wt.id);
2653
- }), (Wt, gn) => {
2653
+ }), (Wt, mn) => {
2654
2654
  var Ue, A;
2655
2655
  return ve(), xe("div", {
2656
2656
  class: an(["w-full", R.field_name]),
@@ -2679,21 +2679,21 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2679
2679
  "gl-input-form-invalid": R.error_message !== ""
2680
2680
  }, "pl-8 pr-2 showOptions"]),
2681
2681
  ref: R.field_name,
2682
- onClick: gn[0] || (gn[0] = (Vt) => Bn()),
2682
+ onClick: mn[0] || (mn[0] = (Vt) => Bn()),
2683
2683
  value: (A = Gs.value) == null ? void 0 : A.name,
2684
2684
  placeholder: R.placeholder,
2685
2685
  autocomplete: "off",
2686
2686
  readonly: ""
2687
2687
  }, null, 10, cQ),
2688
2688
  Va(P("i", {
2689
- onClick: gn[1] || (gn[1] = oc((Vt) => Ge(), ["stop"])),
2689
+ onClick: mn[1] || (mn[1] = oc((Vt) => Ge(), ["stop"])),
2690
2690
  class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
2691
2691
  style: { top: "13px" }
2692
2692
  }, null, 512), [
2693
2693
  [_T, un(Gs.value) && R.has_cancel]
2694
2694
  ]),
2695
2695
  P("i", {
2696
- onClick: gn[2] || (gn[2] = (Vt) => Bn()),
2696
+ onClick: mn[2] || (mn[2] = (Vt) => Bn()),
2697
2697
  class: an([Q.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
2698
2698
  style: { top: "11px" }
2699
2699
  }, null, 2),
@@ -2707,11 +2707,11 @@ const zae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2707
2707
  mQ,
2708
2708
  Va(P("input", {
2709
2709
  type: "search",
2710
- "onUpdate:modelValue": gn[3] || (gn[3] = (Vt) => Pe.value = Vt),
2710
+ "onUpdate:modelValue": mn[3] || (mn[3] = (Vt) => Pe.value = Vt),
2711
2711
  ref: ge.value,
2712
2712
  id: `${R.field_name}search${lt.value}`,
2713
2713
  onKeydown: Pt,
2714
- onBlur: gn[4] || (gn[4] = (Vt) => fe()),
2714
+ onBlur: mn[4] || (mn[4] = (Vt) => fe()),
2715
2715
  autocomplete: "off",
2716
2716
  class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
2717
2717
  placeholder: "Search ..."
@@ -2917,11 +2917,11 @@ var oq = { exports: {} };
2917
2917
  }
2918
2918
  return !0;
2919
2919
  });
2920
- }, _n = G(function(e, n) {
2920
+ }, Sn = G(function(e, n) {
2921
2921
  if (e === n)
2922
2922
  return !0;
2923
2923
  var o = de(e), r = de(n);
2924
- return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(_n).eq(e, n) : o === "object" ? $t(_n).eq(e, n) : !1;
2924
+ return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(Sn).eq(e, n) : o === "object" ? $t(Sn).eq(e, n) : !1;
2925
2925
  });
2926
2926
  const Gn = Object.getPrototypeOf, Ro = (e, n, o) => {
2927
2927
  var r;
@@ -2929,7 +2929,7 @@ var oq = { exports: {} };
2929
2929
  }, Gs = (e) => {
2930
2930
  const n = typeof e;
2931
2931
  return e === null ? "null" : n === "object" && Array.isArray(e) ? "array" : n === "object" && Ro(e, String, (o, r) => r.isPrototypeOf(o)) ? "string" : n;
2932
- }, Io = (e) => (n) => Gs(n) === e, Pt = (e) => (n) => typeof n === e, pr = (e) => (n) => e === n, un = (e, n) => _t(e) && Ro(e, n, (o, r) => Gn(o) === r), me = Io("string"), _t = Io("object"), Ea = (e) => un(e, Object), Qn = Io("array"), oe = pr(null), Nn = Pt("boolean"), os = pr(void 0), Bn = (e) => e == null, Ge = (e) => !Bn(e), fe = Pt("function"), Wt = Pt("number"), gn = (e, n) => {
2932
+ }, Io = (e) => (n) => Gs(n) === e, Pt = (e) => (n) => typeof n === e, pr = (e) => (n) => e === n, un = (e, n) => _t(e) && Ro(e, n, (o, r) => Gn(o) === r), me = Io("string"), _t = Io("object"), Ea = (e) => un(e, Object), Qn = Io("array"), oe = pr(null), Nn = Pt("boolean"), os = pr(void 0), Bn = (e) => e == null, Ge = (e) => !Bn(e), fe = Pt("function"), Wt = Pt("number"), mn = (e, n) => {
2933
2933
  if (Qn(e)) {
2934
2934
  for (let o = 0, r = e.length; o < r; ++o)
2935
2935
  if (!n(e[o]))
@@ -3162,7 +3162,7 @@ var oq = { exports: {} };
3162
3162
  return bt(e, (r, l) => {
3163
3163
  o.push(n(r, l));
3164
3164
  }), o;
3165
- }, bl = (e) => tl(e, Ao), Yo = (e, n) => hn(e, n) ? z.from(e[n]) : z.none(), hn = (e, n) => Gi.call(e, n), Ar = (e, n) => hn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o = _n) => $t(o).eq(e, n), Hc = (e) => {
3165
+ }, bl = (e) => tl(e, Ao), Yo = (e, n) => hn(e, n) ? z.from(e[n]) : z.none(), hn = (e, n) => Gi.call(e, n), Ar = (e, n) => hn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o = Sn) => $t(o).eq(e, n), Hc = (e) => {
3166
3166
  const n = {};
3167
3167
  return _e(e, (o) => {
3168
3168
  n[o] = {};
@@ -3437,8 +3437,8 @@ var oq = { exports: {} };
3437
3437
  os: f,
3438
3438
  deviceType: b
3439
3439
  };
3440
- } }, mn = (e) => window.matchMedia(e).matches;
3441
- let Uo = sc(() => mt.detect(navigator.userAgent, z.from(navigator.userAgentData), mn));
3440
+ } }, fn = (e) => window.matchMedia(e).matches;
3441
+ let Uo = sc(() => mt.detect(navigator.userAgent, z.from(navigator.userAgentData), fn));
3442
3442
  const rs = () => Uo(), Wo = navigator.userAgent, ys = rs(), lo = ys.browser, Fs = ys.os, Ma = ys.deviceType, bu = Wo.indexOf("Windows Phone") !== -1, Bt = {
3443
3443
  transparentSrc: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
3444
3444
  documentMode: lo.isIE() ? document.documentMode || 7 : 10,
@@ -4023,7 +4023,7 @@ var oq = { exports: {} };
4023
4023
  return ws(e, "data-mce-bogus", "1"), e;
4024
4024
  }, Au = (e) => {
4025
4025
  qc(e), Sr(e, jl());
4026
- }, fn = (e, n) => {
4026
+ }, gn = (e, n) => {
4027
4027
  Ec(e).each((o) => {
4028
4028
  uc(o).each((r) => {
4029
4029
  n.isBlock(co(e)) && Id(o) && n.isBlock(co(r)) && wo(o);
@@ -6571,7 +6571,7 @@ Required: ` + n.join(", "));
6571
6571
  default: "40px"
6572
6572
  }), n("content_css", {
6573
6573
  processor: (o) => {
6574
- const r = o === !1 || me(o) || gn(o, me);
6574
+ const r = o === !1 || me(o) || mn(o, me);
6575
6575
  return r ? me(o) ? {
6576
6576
  value: Ke(o.split(","), xc),
6577
6577
  valid: r
@@ -6595,7 +6595,7 @@ Required: ` + n.join(", "));
6595
6595
  default: !1
6596
6596
  }), n("font_css", {
6597
6597
  processor: (o) => {
6598
- const r = me(o) || gn(o, me);
6598
+ const r = me(o) || mn(o, me);
6599
6599
  return r ? {
6600
6600
  value: Qn(o) ? o : Ke(o.split(","), xc),
6601
6601
  valid: r
@@ -6794,7 +6794,7 @@ Required: ` + n.join(", "));
6794
6794
  processor: "number",
6795
6795
  default: 4
6796
6796
  }), n("text_patterns", {
6797
- processor: (o) => gn(o, _t) || o === !1 ? {
6797
+ processor: (o) => mn(o, _t) || o === !1 ? {
6798
6798
  value: XT(o === !1 ? [] : o),
6799
6799
  valid: !0
6800
6800
  } : {
@@ -6865,7 +6865,7 @@ Required: ` + n.join(", "));
6865
6865
  processor: "string",
6866
6866
  default: "mceEditable"
6867
6867
  }), n("noneditable_regexp", {
6868
- processor: (o) => gn(o, Mu) ? {
6868
+ processor: (o) => mn(o, Mu) ? {
6869
6869
  value: o,
6870
6870
  valid: !0
6871
6871
  } : Mu(o) ? {
@@ -9565,7 +9565,7 @@ Required: ` + n.join(", "));
9565
9565
  !l || l === u && l.nodeName === "BR" ? e.dom.setHTML(o, n) : e.selection.setContent(n, { no_events: !0 });
9566
9566
  }
9567
9567
  }, HR = (e, n, o) => {
9568
- z.from(e.getParent(n, "td,th")).map(le.fromDom).each((r) => fn(r, o));
9568
+ z.from(e.getParent(n, "td,th")).map(le.fromDom).each((r) => gn(r, o));
9569
9569
  }, TI = (e, n) => {
9570
9570
  const o = e.schema.getTextInlineElements(), r = e.dom;
9571
9571
  if (n) {
@@ -11547,8 +11547,8 @@ Required: ` + n.join(", "));
11547
11547
  namespaceURI: vg,
11548
11548
  tagName: "template"
11549
11549
  });
11550
- const Sn = xh(Ve.tagName), Hr = xh(Qt.tagName);
11551
- 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;
11550
+ const _n = xh(Ve.tagName), Hr = xh(Qt.tagName);
11551
+ return Cy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ? _n === "svg" : Qt.namespaceURI === ob ? _n === "svg" && (Hr === "annotation-xml" || wg[Hr]) : !!Fe[_n] : Ve.namespaceURI === ob ? Qt.namespaceURI === hm ? _n === "math" : Qt.namespaceURI === sb ? _n === "math" && Sy[Hr] : !!St[_n] : Ve.namespaceURI === hm ? Qt.namespaceURI === sb && !Sy[Hr] || Qt.namespaceURI === ob && !wg[Hr] ? !1 : !St[_n] && (Be[_n] || !Fe[_n]) : !!(yg === "application/xhtml+xml" && Cy[Ve.namespaceURI]) : !1;
11552
11552
  }, sn = function(Ve) {
11553
11553
  cg(n.removed, { element: Ve });
11554
11554
  try {
@@ -11580,12 +11580,12 @@ Required: ` + n.join(", "));
11580
11580
  } catch {
11581
11581
  }
11582
11582
  }, nr = function(Ve) {
11583
- let Qt, Sn;
11583
+ let Qt, _n;
11584
11584
  if (bg)
11585
11585
  Ve = "<remove></remove>" + Ve;
11586
11586
  else {
11587
11587
  const Td = $3(Ve, /^[\r\n\t ]+/);
11588
- Sn = Td && Td[0];
11588
+ _n = Td && Td[0];
11589
11589
  }
11590
11590
  yg === "application/xhtml+xml" && vg === hm && (Ve = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Ve + "</body></html>");
11591
11591
  const Hr = Ce ? Ce.createHTML(Ve) : Ve;
@@ -11602,31 +11602,31 @@ Required: ` + n.join(", "));
11602
11602
  }
11603
11603
  }
11604
11604
  const Fc = Qt.body || Qt.documentElement;
11605
- return Ve && Sn && Fc.insertBefore(l.createTextNode(Sn), Fc.childNodes[0] || null), vg === hm ? We.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Fc;
11605
+ return Ve && _n && Fc.insertBefore(l.createTextNode(_n), Fc.childNodes[0] || null), vg === hm ? We.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Fc;
11606
11606
  }, ui = function(Ve) {
11607
11607
  return wt.call(Ve.ownerDocument || Ve, Ve, k.SHOW_ELEMENT | k.SHOW_COMMENT | k.SHOW_TEXT, null, !1);
11608
11608
  }, Qa = function(Ve) {
11609
11609
  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");
11610
11610
  }, p1 = function(Ve) {
11611
11611
  return typeof b == "object" ? Ve instanceof b : Ve && typeof Ve == "object" && typeof Ve.nodeType == "number" && typeof Ve.nodeName == "string";
11612
- }, kd = function(Ve, Qt, Sn) {
11612
+ }, kd = function(Ve, Qt, _n) {
11613
11613
  st[Ve] && iL(st[Ve], (Hr) => {
11614
- Hr.call(n, Qt, Sn, h1);
11614
+ Hr.call(n, Qt, _n, h1);
11615
11615
  });
11616
11616
  }, KO = function(Ve) {
11617
11617
  let Qt;
11618
11618
  if (kd("beforeSanitizeElements", Ve, null), Qa(Ve))
11619
11619
  return sn(Ve), !0;
11620
- const Sn = nc(Ve.nodeName);
11620
+ const _n = nc(Ve.nodeName);
11621
11621
  if (kd("uponSanitizeElement", Ve, {
11622
- tagName: Sn,
11622
+ tagName: _n,
11623
11623
  allowedTags: is
11624
11624
  }), Ve.hasChildNodes() && !p1(Ve.firstElementChild) && (!p1(Ve.content) || !p1(Ve.content.firstElementChild)) && vd(/<[/\w]/g, Ve.innerHTML) && vd(/<[/\w]/g, Ve.textContent))
11625
11625
  return sn(Ve), !0;
11626
- if (!is[Sn] || Yt[Sn]) {
11627
- if (!Yt[Sn] && YO(Sn) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Sn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Sn)))
11626
+ if (!is[_n] || Yt[_n]) {
11627
+ if (!Yt[_n] && YO(_n) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, _n) || so.tagNameCheck instanceof Function && so.tagNameCheck(_n)))
11628
11628
  return !1;
11629
- if (ir && !g1[Sn]) {
11629
+ if (ir && !g1[_n]) {
11630
11630
  const Hr = Se(Ve) || Ve.parentNode, Fc = ye(Ve) || Ve.childNodes;
11631
11631
  if (Fc && Hr) {
11632
11632
  const Td = Fc.length;
@@ -11636,19 +11636,19 @@ Required: ` + n.join(", "));
11636
11636
  }
11637
11637
  return sn(Ve), !0;
11638
11638
  }
11639
- 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, Gt, " "), Qt = sm(Qt, rn, " "), Qt = sm(Qt, Yn, " "), Ve.textContent !== Qt && (cg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
11640
- }, bT = function(Ve, Qt, Sn) {
11641
- if (Mo && (Qt === "id" || Qt === "name") && (Sn in l || Sn in qO))
11639
+ return Ve instanceof y && !ht(Ve) || (_n === "noscript" || _n === "noembed" || _n === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (Qt = Ve.textContent, Qt = sm(Qt, Gt, " "), Qt = sm(Qt, rn, " "), Qt = sm(Qt, Yn, " "), Ve.textContent !== Qt && (cg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
11640
+ }, bT = function(Ve, Qt, _n) {
11641
+ if (Mo && (Qt === "id" || Qt === "name") && (_n in l || _n in qO))
11642
11642
  return !1;
11643
11643
  if (!($n && !Rn[Qt] && vd(Zn, Qt))) {
11644
11644
  if (!(Ct && vd(fs, Qt))) {
11645
11645
  if (!en[Qt] || Rn[Qt]) {
11646
- if (!(YO(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;
11646
+ if (!(YO(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, _n) || so.tagNameCheck instanceof Function && so.tagNameCheck(_n)))) return !1;
11647
11647
  } else if (!xy[Qt]) {
11648
- if (!vd($l, sm(Sn, Fr, ""))) {
11649
- if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(Sn, "data:") === 0 && nb[Ve])) {
11650
- if (!(So && !vd(Os, sm(Sn, Fr, "")))) {
11651
- if (Sn)
11648
+ if (!vd($l, sm(_n, Fr, ""))) {
11649
+ if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(_n, "data:") === 0 && nb[Ve])) {
11650
+ if (!(So && !vd(Os, sm(_n, Fr, "")))) {
11651
+ if (_n)
11652
11652
  return !1;
11653
11653
  }
11654
11654
  }
@@ -11660,7 +11660,7 @@ Required: ` + n.join(", "));
11660
11660
  }, YO = function(Ve) {
11661
11661
  return Ve.indexOf("-") > 0;
11662
11662
  }, XO = function(Ve) {
11663
- let Qt, Sn, Hr, Fc;
11663
+ let Qt, _n, Hr, Fc;
11664
11664
  kd("beforeSanitizeAttributes", Ve, null);
11665
11665
  const { attributes: Td } = Ve;
11666
11666
  if (!Td)
@@ -11674,38 +11674,38 @@ Required: ` + n.join(", "));
11674
11674
  for (Fc = Td.length; Fc--; ) {
11675
11675
  Qt = Td[Fc];
11676
11676
  const { name: pm, namespaceURI: vT } = Qt;
11677
- Sn = pm === "value" ? Qt.value : uL(Qt.value);
11678
- const wj = Sn;
11679
- 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)
11677
+ _n = pm === "value" ? Qt.value : uL(Qt.value);
11678
+ const wj = _n;
11679
+ if (Hr = nc(pm), Ha.attrName = Hr, Ha.attrValue = _n, Ha.keepAttr = !0, Ha.forceKeepAttr = void 0, kd("uponSanitizeAttribute", Ve, Ha), _n = Ha.attrValue, Ha.forceKeepAttr)
11680
11680
  continue;
11681
11681
  if (!Ha.keepAttr) {
11682
11682
  ro(pm, Ve);
11683
11683
  continue;
11684
11684
  }
11685
- if (!Ss && vd(/\/>/i, Sn)) {
11685
+ if (!Ss && vd(/\/>/i, _n)) {
11686
11686
  ro(pm, Ve);
11687
11687
  continue;
11688
11688
  }
11689
- gs && (Sn = sm(Sn, Gt, " "), Sn = sm(Sn, rn, " "), Sn = sm(Sn, Yn, " "));
11689
+ gs && (_n = sm(_n, Gt, " "), _n = sm(_n, rn, " "), _n = sm(_n, Yn, " "));
11690
11690
  const JO = nc(Ve.nodeName);
11691
- if (!bT(JO, Hr, Sn)) {
11691
+ if (!bT(JO, Hr, _n)) {
11692
11692
  ro(pm, Ve);
11693
11693
  continue;
11694
11694
  }
11695
- if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve), Sn = Js + Sn), Ce && typeof J == "object" && typeof J.getAttributeType == "function" && !vT)
11695
+ if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve), _n = Js + _n), Ce && typeof J == "object" && typeof J.getAttributeType == "function" && !vT)
11696
11696
  switch (J.getAttributeType(JO, Hr)) {
11697
11697
  case "TrustedHTML": {
11698
- Sn = Ce.createHTML(Sn);
11698
+ _n = Ce.createHTML(_n);
11699
11699
  break;
11700
11700
  }
11701
11701
  case "TrustedScriptURL": {
11702
- Sn = Ce.createScriptURL(Sn);
11702
+ _n = Ce.createScriptURL(_n);
11703
11703
  break;
11704
11704
  }
11705
11705
  }
11706
- if (Sn !== wj)
11706
+ if (_n !== wj)
11707
11707
  try {
11708
- vT ? Ve.setAttributeNS(vT, pm, Sn) : Ve.setAttribute(pm, Sn);
11708
+ vT ? Ve.setAttributeNS(vT, pm, _n) : Ve.setAttribute(pm, _n);
11709
11709
  } catch {
11710
11710
  ro(pm, Ve);
11711
11711
  }
@@ -11713,13 +11713,13 @@ Required: ` + n.join(", "));
11713
11713
  kd("afterSanitizeAttributes", Ve, null);
11714
11714
  }, yj = function no(Ve) {
11715
11715
  let Qt;
11716
- const Sn = ui(Ve);
11717
- for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = Sn.nextNode(); )
11716
+ const _n = ui(Ve);
11717
+ for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = _n.nextNode(); )
11718
11718
  kd("uponSanitizeShadowNode", Qt, null), !KO(Qt) && (Qt.content instanceof u && no(Qt.content), XO(Qt));
11719
11719
  kd("afterSanitizeShadowDOM", Ve, null);
11720
11720
  };
11721
11721
  return n.sanitize = function(no) {
11722
- let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, Sn, Hr, Fc;
11722
+ let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, _n, Hr, Fc;
11723
11723
  if (Hx = !no, Hx && (no = "<!-->"), typeof no != "string" && !p1(no))
11724
11724
  if (typeof no.toString == "function") {
11725
11725
  if (no = no.toString(), typeof no != "string")
@@ -11735,7 +11735,7 @@ Required: ` + n.join(", "));
11735
11735
  throw Gv("root node is forbidden and cannot be sanitized in-place");
11736
11736
  }
11737
11737
  } else if (no instanceof b)
11738
- Qt = nr("<!---->"), Sn = Qt.ownerDocument.importNode(no, !0), Sn.nodeType === 1 && Sn.nodeName === "BODY" || Sn.nodeName === "HTML" ? Qt = Sn : Qt.appendChild(Sn);
11738
+ Qt = nr("<!---->"), _n = Qt.ownerDocument.importNode(no, !0), _n.nodeType === 1 && _n.nodeName === "BODY" || _n.nodeName === "HTML" ? Qt = _n : Qt.appendChild(_n);
11739
11739
  else {
11740
11740
  if (!ii && !gs && !Fa && no.indexOf("<") === -1)
11741
11741
  return Ce && In ? Ce.createHTML(no) : no;
@@ -11765,8 +11765,8 @@ Required: ` + n.join(", "));
11765
11765
  h1 = null, gm = !1;
11766
11766
  }, n.isValidAttribute = function(no, Ve, Qt) {
11767
11767
  h1 || Ux({});
11768
- const Sn = nc(no), Hr = nc(Ve);
11769
- return bT(Sn, Hr, Qt);
11768
+ const _n = nc(no), Hr = nc(Ve);
11769
+ return bT(_n, Hr, Qt);
11770
11770
  }, n.addHook = function(no, Ve) {
11771
11771
  typeof Ve == "function" && (st[no] = st[no] || [], cg(st[no], Ve));
11772
11772
  }, n.removeHook = function(no) {
@@ -19205,7 +19205,7 @@ Input object: ` + SD(e.input), TD = (e, n) => OB(e, fo(n, kD)), WB = et(HB), pk
19205
19205
  }, ZZ = (e) => me(e) ? {
19206
19206
  value: e.split(/[ ,]/),
19207
19207
  valid: !0
19208
- } : gn(e, me) ? {
19208
+ } : mn(e, me) ? {
19209
19209
  value: e,
19210
19210
  valid: !0
19211
19211
  } : {
@@ -19229,7 +19229,7 @@ Input object: ` + SD(e.input), TD = (e, n) => OB(e, fo(n, kD)), WB = et(HB), pk
19229
19229
  case "string[]":
19230
19230
  return ZZ;
19231
19231
  case "object[]":
19232
- return (o) => gn(o, _t);
19232
+ return (o) => mn(o, _t);
19233
19233
  case "regexp":
19234
19234
  return (o) => un(o, RegExp);
19235
19235
  default:
@@ -20268,7 +20268,7 @@ tinymce.IconManager.add("default", {
20268
20268
  }, se = (t) => {
20269
20269
  const s = typeof t;
20270
20270
  return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && de(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
20271
- }, Ee = (t) => (s) => se(s) === t, ge = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && de(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), lt = (t) => Ae(t, Object), $t = Ee("array"), _n = G(null), Gn = ge("boolean"), Ro = G(void 0), Gs = (t) => t == null, Io = (t) => !Gs(t), Pt = ge("function"), pr = ge("number"), un = (t, s) => {
20271
+ }, Ee = (t) => (s) => se(s) === t, ge = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && de(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), lt = (t) => Ae(t, Object), $t = Ee("array"), Sn = G(null), Gn = ge("boolean"), Ro = G(void 0), Gs = (t) => t == null, Io = (t) => !Gs(t), Pt = ge("function"), pr = ge("number"), un = (t, s) => {
20272
20272
  if ($t(t)) {
20273
20273
  for (let a = 0, c = t.length; a < c; ++a)
20274
20274
  if (!s(t[a]))
@@ -20286,7 +20286,7 @@ tinymce.IconManager.add("default", {
20286
20286
  }
20287
20287
  const Ge = (t) => (s) => !t(s), fe = (t) => () => {
20288
20288
  throw new Error(t);
20289
- }, Wt = (t) => t(), gn = oe(!1), Ue = oe(!0);
20289
+ }, Wt = (t) => t(), mn = oe(!1), Ue = oe(!0);
20290
20290
  class A {
20291
20291
  constructor(s, a) {
20292
20292
  this.tag = s, this.value = a;
@@ -20427,7 +20427,7 @@ tinymce.IconManager.add("default", {
20427
20427
  break;
20428
20428
  }
20429
20429
  return A.none();
20430
- }, qe = (t, s) => Zi(t, s, gn), At = (t, s) => {
20430
+ }, qe = (t, s) => Zi(t, s, mn), At = (t, s) => {
20431
20431
  for (let a = 0, c = t.length; a < c; a++) {
20432
20432
  const d = t[a];
20433
20433
  if (s(d, a))
@@ -20597,7 +20597,7 @@ tinymce.IconManager.add("default", {
20597
20597
  const a = t.dom, c = s.dom;
20598
20598
  return a === c ? !1 : a.contains(c);
20599
20599
  }, da = (t) => Te.fromDom(t.dom.ownerDocument), or = (t) => ia(t) ? t : da(t), yl = (t) => Te.fromDom(or(t).dom.documentElement), Fl = (t) => Te.fromDom(or(t).dom.defaultView), ea = (t) => A.from(t.dom.parentNode).map(Te.fromDom), Hl = (t) => ea(t), Vl = (t) => A.from(t.dom.parentElement).map(Te.fromDom), Zu = (t, s) => {
20600
- const a = Pt(s) ? s : gn;
20600
+ const a = Pt(s) ? s : mn;
20601
20601
  let c = t.dom;
20602
20602
  const d = [];
20603
20603
  for (; c.parentNode !== null && c.parentNode !== void 0; ) {
@@ -20616,7 +20616,7 @@ tinymce.IconManager.add("default", {
20616
20616
  }), ju = (t, s) => {
20617
20617
  const a = $a(t);
20618
20618
  return a.length > 0 && s < a.length ? pu(a[s], 0) : pu(t, s);
20619
- }, j = (t) => zc(t) && Io(t.dom.host), ue = Pt(Element.prototype.attachShadow) && Pt(Node.prototype.getRootNode), ke = oe(ue), Ne = ue ? (t) => Te.fromDom(t.dom.getRootNode()) : or, mt = (t) => j(t) ? t : Te.fromDom(or(t).dom.body), mn = (t) => Uo(t).isSome(), Uo = (t) => {
20619
+ }, j = (t) => zc(t) && Io(t.dom.host), ue = Pt(Element.prototype.attachShadow) && Pt(Node.prototype.getRootNode), ke = oe(ue), Ne = ue ? (t) => Te.fromDom(t.dom.getRootNode()) : or, mt = (t) => j(t) ? t : Te.fromDom(or(t).dom.body), fn = (t) => Uo(t).isSome(), Uo = (t) => {
20620
20620
  const s = Ne(t);
20621
20621
  return j(s) ? A.some(s) : A.none();
20622
20622
  }, rs = (t) => Te.fromDom(t.dom.host), Wo = (t) => {
@@ -21127,7 +21127,7 @@ tinymce.IconManager.add("default", {
21127
21127
  inner: t,
21128
21128
  fold: (g, p) => p(t),
21129
21129
  isValue: Ue,
21130
- isError: gn,
21130
+ isError: mn,
21131
21131
  map: (g) => Hn.value(g(t)),
21132
21132
  mapError: c,
21133
21133
  bind: s,
@@ -21149,12 +21149,12 @@ tinymce.IconManager.add("default", {
21149
21149
  tag: !1,
21150
21150
  inner: t,
21151
21151
  fold: (c, d) => c(t),
21152
- isValue: gn,
21152
+ isValue: mn,
21153
21153
  isError: Ue,
21154
21154
  map: s,
21155
21155
  mapError: (c) => Hn.error(c(t)),
21156
21156
  bind: s,
21157
- exists: gn,
21157
+ exists: mn,
21158
21158
  forall: Ue,
21159
21159
  getOr: Nn,
21160
21160
  or: Nn,
@@ -21407,7 +21407,7 @@ tinymce.IconManager.add("default", {
21407
21407
  ` + Am(t.errors).join(`
21408
21408
  `) + `
21409
21409
 
21410
- Input object: ` + Lg(t.input), io = (t, s) => ut(t, qo(s, nn)), kf = (t, s) => ub(t, s), Na = Wr, fr = Gc, Wh = (t) => Nd((s) => jo(t, s) ? Hn.value(s) : Hn.error(`Unsupported value: "${s}", choose one of "${t.join(", ")}".`)), nt = (t) => Na(t, t, wo(), Mr()), dc = (t, s) => Na(t, t, wo(), s), zg = (t) => dc(t, Fg), Oo = (t) => dc(t, ba), au = (t, s) => Na(t, t, wo(), Wh(s)), fb = (t) => dc(t, ru), lu = (t) => dc(t, Uh), w1 = (t, s) => Na(t, t, nu(), Kt((a) => rr.serror("The field: " + t + " is forbidden. " + s))), Si = (t, s) => Na(t, t, wo(), nn(s)), x1 = (t, s) => Na(t, t, wo(), ku(s)), Ac = (t, s) => Na(t, t, wo(), _u(s)), Ho = (t) => Na(t, t, nu(), Mr()), Eu = (t, s) => Na(t, t, nu(), s), Dm = (t) => Eu(t, Fg), Ia = (t) => Eu(t, ba), C1 = (t, s) => Eu(t, Wh(s)), Om = (t) => Eu(t, Uh), Rm = (t, s) => Eu(t, _u(s)), _l = (t, s) => Eu(t, nn(s)), Id = (t, s) => Eu(t, Ts(s)), Re = (t, s) => Na(t, t, Su(s), Mr()), Wl = (t, s, a) => Na(t, t, Su(s), a), Kc = (t, s) => Wl(t, s, Fg), Yc = (t, s) => Wl(t, s, ba), Zl = (t, s, a) => Wl(t, s, Wh(a)), Kr = (t, s) => Wl(t, s, ru), oa = (t, s) => Wl(t, s, Uh), gb = (t, s) => Wl(t, s, db), jl = (t, s, a) => Wl(t, s, _u(a)), Au = (t, s, a) => Wl(t, s, nn(a)), fn = (t) => {
21410
+ Input object: ` + Lg(t.input), io = (t, s) => ut(t, qo(s, nn)), kf = (t, s) => ub(t, s), Na = Wr, fr = Gc, Wh = (t) => Nd((s) => jo(t, s) ? Hn.value(s) : Hn.error(`Unsupported value: "${s}", choose one of "${t.join(", ")}".`)), nt = (t) => Na(t, t, wo(), Mr()), dc = (t, s) => Na(t, t, wo(), s), zg = (t) => dc(t, Fg), Oo = (t) => dc(t, ba), au = (t, s) => Na(t, t, wo(), Wh(s)), fb = (t) => dc(t, ru), lu = (t) => dc(t, Uh), w1 = (t, s) => Na(t, t, nu(), Kt((a) => rr.serror("The field: " + t + " is forbidden. " + s))), Si = (t, s) => Na(t, t, wo(), nn(s)), x1 = (t, s) => Na(t, t, wo(), ku(s)), Ac = (t, s) => Na(t, t, wo(), _u(s)), Ho = (t) => Na(t, t, nu(), Mr()), Eu = (t, s) => Na(t, t, nu(), s), Dm = (t) => Eu(t, Fg), Ia = (t) => Eu(t, ba), C1 = (t, s) => Eu(t, Wh(s)), Om = (t) => Eu(t, Uh), Rm = (t, s) => Eu(t, _u(s)), _l = (t, s) => Eu(t, nn(s)), Id = (t, s) => Eu(t, Ts(s)), Re = (t, s) => Na(t, t, Su(s), Mr()), Wl = (t, s, a) => Na(t, t, Su(s), a), Kc = (t, s) => Wl(t, s, Fg), Yc = (t, s) => Wl(t, s, ba), Zl = (t, s, a) => Wl(t, s, Wh(a)), Kr = (t, s) => Wl(t, s, ru), oa = (t, s) => Wl(t, s, Uh), gb = (t, s) => Wl(t, s, db), jl = (t, s, a) => Wl(t, s, _u(a)), Au = (t, s, a) => Wl(t, s, nn(a)), gn = (t) => {
21411
21411
  let s = t;
21412
21412
  return {
21413
21413
  get: () => s,
@@ -21514,7 +21514,7 @@ Required: ` + s.join(", "));
21514
21514
  }, ft = (t, s) => K(t, s), Ot = (t, s) => be(t, s), on = (t) => Ze(t), Vn = (t, s) => t.length === 0 ? Hn.value(s) : Hn.value(Zo(s, qc.apply(void 0, t))), ar = (t) => Hn.error(Ke(t)), Bo = (t, s) => {
21515
21515
  const a = V(t);
21516
21516
  return a.errors.length > 0 ? ar(a.errors) : Vn(a.values, s);
21517
- }, Bs = (t) => Pt(t) ? t : gn, mc = (t, s, a) => {
21517
+ }, Bs = (t) => Pt(t) ? t : mn, mc = (t, s, a) => {
21518
21518
  let c = t.dom;
21519
21519
  const d = Bs(a);
21520
21520
  for (; c.parentNode; ) {
@@ -21531,7 +21531,7 @@ Required: ` + s.join(", "));
21531
21531
  return c.orThunk(() => d(t) ? A.none() : mc(t, s, d));
21532
21532
  }, Xc = (t, s) => Fo(t.element, s.event.target), Ld = {
21533
21533
  can: Ue,
21534
- abort: gn,
21534
+ abort: mn,
21535
21535
  run: me
21536
21536
  }, cu = (t) => {
21537
21537
  if (!Er(t, "can") && !Er(t, "abort") && !Er(t, "run"))
@@ -21542,7 +21542,7 @@ Required: ` + s.join(", "));
21542
21542
  };
21543
21543
  }, Ug = (t, s) => (...a) => zo(t, (c, d) => c && s(d).apply(void 0, a), !0), Tf = (t, s) => (...a) => zo(t, (c, d) => c || s(d).apply(void 0, a), !1), $m = (t) => Pt(t) ? {
21544
21544
  can: Ue,
21545
- abort: gn,
21545
+ abort: mn,
21546
21546
  run: t
21547
21547
  } : t, Wg = (t) => {
21548
21548
  const s = Ug(t, (d) => d.can), a = Tf(t, (d) => d.abort);
@@ -21618,7 +21618,7 @@ Required: ` + s.join(", "));
21618
21618
  const c = s.partUids[a];
21619
21619
  return AT(t, c);
21620
21620
  }, Py = (t, s) => Je(t, (a, c) => {
21621
- const d = c.event, g = a.getSystem().getByDom(d.target).getOrThunk(() => Gl(d.target, (w) => a.getSystem().getByDom(w).toOptional(), gn).getOr(a));
21621
+ const d = c.event, g = a.getSystem().getByDom(d.target).getOrThunk(() => Gl(d.target, (w) => a.getSystem().getByDom(w).toOptional(), mn).getOr(a));
21622
21622
  s(a, g, c);
21623
21623
  }), Im = (t) => Je(t, (s, a) => {
21624
21624
  a.cut();
@@ -21689,7 +21689,7 @@ Check the ` + sd() + " event handlers"), !1) : !0;
21689
21689
  removeFromGui: a("removeFromGui"),
21690
21690
  getByUid: a("getByUid"),
21691
21691
  getByDom: a("getByDom"),
21692
- isConnected: gn
21692
+ isConnected: mn
21693
21693
  };
21694
21694
  }, ld = Fm(), $1 = (t, s, a) => {
21695
21695
  const c = a.toString(), d = c.indexOf(")") + 1, g = c.indexOf("("), p = c.substring(g + 1, d - 1).split(/,\s*/);
@@ -22027,7 +22027,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22027
22027
  const c = { "alloy.base.behaviour": Rb(t) };
22028
22028
  return Ab(a, t.eventOrder, s, c).getOrDie();
22029
22029
  }, cp = (t, s) => {
22030
- const a = () => Oe, c = fn(ld), d = ls(oC(t)), g = Zd(t), p = eC(g), w = tC(g), C = ap(d, p, w), E = B1(C, s), O = lp(d, p, w), N = fn(d.components), H = (dt) => {
22030
+ const a = () => Oe, c = gn(ld), d = ls(oC(t)), g = Zd(t), p = eC(g), w = tC(g), C = ap(d, p, w), E = B1(C, s), O = lp(d, p, w), N = gn(d.components), H = (dt) => {
22031
22031
  c.set(dt);
22032
22032
  }, W = () => {
22033
22033
  c.set(Fm(a));
@@ -22078,7 +22078,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22078
22078
  const s = Sl("external.component", Ts([
22079
22079
  nt("element"),
22080
22080
  Ho("uid")
22081
- ]), t), a = fn(Fm()), c = (w) => {
22081
+ ]), t), a = gn(Fm()), c = (w) => {
22082
22082
  a.set(w);
22083
22083
  }, d = () => {
22084
22084
  a.set(Fm(() => p));
@@ -22088,7 +22088,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22088
22088
  uid: g,
22089
22089
  getSystem: a.get,
22090
22090
  config: A.none,
22091
- hasConfigured: gn,
22091
+ hasConfigured: mn,
22092
22092
  connect: c,
22093
22093
  disconnect: d,
22094
22094
  getApis: () => ({}),
@@ -22110,7 +22110,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22110
22110
  var uC = (t, s, a, c, d) => t(a, c) ? A.some(a) : Pt(d) && d(a) ? A.none() : s(a, c, d);
22111
22111
  const Nb = (t, s, a) => {
22112
22112
  let c = t.dom;
22113
- const d = Pt(a) ? a : gn;
22113
+ const d = Pt(a) ? a : mn;
22114
22114
  for (; c.parentNode; ) {
22115
22115
  c = c.parentNode;
22116
22116
  const g = Te.fromDom(c);
@@ -22155,12 +22155,12 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
22155
22155
  re(c, up);
22156
22156
  }
22157
22157
  };
22158
- }, th = (t, s) => If(s).exists((a) => zm(t, a)), zm = (t, s) => jy(s, (a) => Fo(a, t.element), gn) || th(t, s), mC = "unknown";
22158
+ }, th = (t, s) => If(s).exists((a) => zm(t, a)), zm = (t, s) => jy(s, (a) => Fo(a, t.element), mn) || th(t, s), mC = "unknown";
22159
22159
  var nh;
22160
22160
  (function(t) {
22161
22161
  t[t.STOP = 0] = "STOP", t[t.NORMAL = 1] = "NORMAL", t[t.LOGGING = 2] = "LOGGING";
22162
22162
  })(nh || (nh = {}));
22163
- const Lf = fn({}), oh = (t, s) => {
22163
+ const Lf = gn({}), oh = (t, s) => {
22164
22164
  const a = [], c = (/* @__PURE__ */ new Date()).getTime();
22165
22165
  return {
22166
22166
  logEventCut: (d, g, p) => {
@@ -22604,7 +22604,7 @@ Receiver: ` + zd(s.element), E, g.data);
22604
22604
  testY: a.y
22605
22605
  }, -1, -1, !1)).fold(Nn, Nn);
22606
22606
  }, h2 = (t) => {
22607
- const s = fn(A.none()), a = () => s.get().each(t);
22607
+ const s = gn(A.none()), a = () => s.get().each(t);
22608
22608
  return {
22609
22609
  clear: () => {
22610
22610
  a(), s.set(A.none());
@@ -23200,7 +23200,7 @@ Receiver: ` + zd(s.element), E, g.data);
23200
23200
  "placement"
23201
23201
  ])
23202
23202
  ], KC = [
23203
- Re("useFixed", gn),
23203
+ Re("useFixed", mn),
23204
23204
  Ho("getBounds")
23205
23205
  ], Gf = [
23206
23206
  dc("anchor", n0),
@@ -23413,7 +23413,7 @@ Receiver: ` + zd(s.element), E, g.data);
23413
23413
  apis: lv,
23414
23414
  state: tS
23415
23415
  }), fd = oe("dismiss.popups"), ih = oe("reposition.popups"), z2 = oe("mouse.released"), nS = Ts([
23416
- Re("isExtraPart", gn),
23416
+ Re("isExtraPart", mn),
23417
23417
  _l("fireEventInstead", [Re("event", $f())])
23418
23418
  ]), a0 = (t) => {
23419
23419
  const s = Sl("Dismissal", nS, t);
@@ -23466,7 +23466,7 @@ Receiver: ` + zd(s.element), E, g.data);
23466
23466
  }
23467
23467
  });
23468
23468
  const uh = () => {
23469
- const t = fn(null), s = () => ({
23469
+ const t = gn(null), s = () => ({
23470
23470
  mode: "memory",
23471
23471
  value: t.get()
23472
23472
  }), a = () => t.get() === null, c = () => {
@@ -23480,7 +23480,7 @@ Receiver: ` + zd(s.element), E, g.data);
23480
23480
  readState: s
23481
23481
  });
23482
23482
  }, HE = () => ei({ readState: me }), oS = () => {
23483
- const t = fn({}), s = fn({});
23483
+ const t = gn({}), s = gn({});
23484
23484
  return ei({
23485
23485
  readState: () => ({
23486
23486
  mode: "dataset",
@@ -23895,7 +23895,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
23895
23895
  Zb(t, s, pS)
23896
23896
  ])
23897
23897
  }), yS = [
23898
- oa("disabled", gn),
23898
+ oa("disabled", mn),
23899
23899
  Re("useNative", !0),
23900
23900
  Ho("disableClass"),
23901
23901
  xo("onDisabled"),
@@ -24116,7 +24116,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24116
24116
  ]);
24117
24117
  return v(s, Ru.init, ce, $e, () => A.some(p));
24118
24118
  };
24119
- var D = _(fr("cyclic", gn)), L = _(fr("cyclic", Ue));
24119
+ var D = _(fr("cyclic", mn)), L = _(fr("cyclic", Ue));
24120
24120
  const Z = (t, s, a) => (wb(t, a, Qc()), A.some(!0)), ee = (t, s, a) => mh(a) && bo(Ri)(s.event) ? A.none() : Z(t, s, a), ie = (t, s) => A.some(!0), De = [
24121
24121
  Re("execute", ee),
24122
24122
  Re("useSpace", !1),
@@ -24501,7 +24501,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24501
24501
  active: W5,
24502
24502
  apis: R7
24503
24503
  }), Z5 = (t) => ({ init: () => {
24504
- const a = fn(t);
24504
+ const a = gn(t);
24505
24505
  return {
24506
24506
  get: () => a.get(),
24507
24507
  set: (w) => a.set(w),
@@ -24884,7 +24884,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24884
24884
  const c = s, d = aR(s), g = qo(d, (p, w) => [w].concat(lR(a, c, d, w)));
24885
24885
  return qo(a, (p) => bt(g, p).getOr([p]));
24886
24886
  }, cR = () => {
24887
- const t = fn({}), s = fn({}), a = fn({}), c = to(), d = fn({}), g = () => {
24887
+ const t = gn({}), s = gn({}), a = gn({}), c = to(), d = gn({}), g = () => {
24888
24888
  t.set({}), s.set({}), a.set({}), c.clear();
24889
24889
  }, p = () => c.get().isNone(), w = (Xe, je) => {
24890
24890
  s.set({
@@ -25320,7 +25320,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
25320
25320
  _l("fireDismissalEventInstead", [Re("event", $f())]),
25321
25321
  _l("fireRepositionEventInstead", [Re("event", Kx())]),
25322
25322
  Re("getRelated", A.none),
25323
- Re("isExtraPart", gn),
25323
+ Re("isExtraPart", mn),
25324
25324
  Re("eventOrder", A.none)
25325
25325
  ],
25326
25326
  factory: Q7,
@@ -27387,7 +27387,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
27387
27387
  Xr,
27388
27388
  zv
27389
27389
  ])), d$ = (t) => Ks("ToggleButton", u$, t), m$ = [
27390
- oa("predicate", gn),
27390
+ oa("predicate", mn),
27391
27391
  Zl("scope", "node", [
27392
27392
  "node",
27393
27393
  "editor"
@@ -27701,7 +27701,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
27701
27701
  "item-events"
27702
27702
  ]
27703
27703
  }, jv = Da, cg = (t, s, a, c) => {
27704
- const d = fn(me);
27704
+ const d = gn(me);
27705
27705
  return {
27706
27706
  type: "item",
27707
27707
  dom: s.dom,
@@ -28420,7 +28420,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28420
28420
  });
28421
28421
  }, iM = (t) => {
28422
28422
  E_(t);
28423
- const s = TL(t), a = EL(t), c = fn(s), d = fn(a);
28423
+ const s = TL(t), a = EL(t), c = gn(s), d = gn(a);
28424
28424
  Q3(t, "forecolor", "forecolor", c), Q3(t, "backcolor", "hilitecolor", d), eA(t, "forecolor", "forecolor", "Text color", c), eA(t, "backcolor", "hilitecolor", "Background color", d);
28425
28425
  }, tA = (t, s, a, c, d, g, p, w) => {
28426
28426
  const C = c_(s), O = $L(s, a, c, d !== "color" ? "normal" : "color", g, p, w);
@@ -28463,7 +28463,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28463
28463
  const a = BL(t, s), c = s.colorinput.getColorCols(t.initData.storageKey), d = "color", p = {
28464
28464
  ...tA(Zt("menu-value"), a, (w) => {
28465
28465
  t.onAction({ value: w });
28466
- }, c, d, af.CLOSE_ON_EXECUTE, t.select.getOr(gn), s.shared.providers),
28466
+ }, c, d, af.CLOSE_ON_EXECUTE, t.select.getOr(mn), s.shared.providers),
28467
28467
  markers: yh(d),
28468
28468
  movement: A_(c, d)
28469
28469
  };
@@ -28877,7 +28877,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28877
28877
  }),
28878
28878
  Oc.config({
28879
28879
  channels: {
28880
- ...a0({ isExtraPart: gn }),
28880
+ ...a0({ isExtraPart: mn }),
28881
28881
  ...$p({ doReposition: yM })
28882
28882
  }
28883
28883
  })
@@ -29120,7 +29120,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
29120
29120
  const c = t.createRng();
29121
29121
  return c.selectNode(a.dom), c;
29122
29122
  }), hF = { register: (t, s) => {
29123
- const a = Zt("autocompleter"), c = fn(!1), d = fn(!1), g = kl(cr.sketch({
29123
+ const a = Zt("autocompleter"), c = gn(!1), d = gn(!1), g = kl(cr.sketch({
29124
29124
  dom: {
29125
29125
  tag: "div",
29126
29126
  classes: ["tox-autocompleter"],
@@ -29246,7 +29246,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
29246
29246
  const a = Math.abs(t.clientX - s.x), c = Math.abs(t.clientY - s.y);
29247
29247
  return a > kM || c > kM;
29248
29248
  }, yF = (t) => {
29249
- const s = to(), a = fn(!1), c = _M((E) => {
29249
+ const s = to(), a = gn(!1), c = _M((E) => {
29250
29250
  t.triggerEvent(Dy(), E), a.set(!0);
29251
29251
  }, bF), d = (E) => (TM(E).each((O) => {
29252
29252
  c.cancel();
@@ -29339,9 +29339,9 @@ Components: ` + JSON.stringify(s.components, null, 2));
29339
29339
  } };
29340
29340
  }, EM = (t, s) => {
29341
29341
  const a = bt(t, "target").getOr(s);
29342
- return fn(a);
29342
+ return gn(a);
29343
29343
  }, CF = (t, s) => {
29344
- const a = fn(!1), c = fn(!1);
29344
+ const a = gn(!1), c = gn(!1);
29345
29345
  return {
29346
29346
  stop: () => {
29347
29347
  a.set(!0);
@@ -29356,14 +29356,14 @@ Components: ` + JSON.stringify(s.components, null, 2));
29356
29356
  getSource: s.get
29357
29357
  };
29358
29358
  }, AM = (t) => {
29359
- const s = fn(!1);
29359
+ const s = gn(!1);
29360
29360
  return {
29361
29361
  stop: () => {
29362
29362
  s.set(!0);
29363
29363
  },
29364
29364
  cut: me,
29365
29365
  isStopped: s.get,
29366
- isCut: gn,
29366
+ isCut: mn,
29367
29367
  event: t,
29368
29368
  setSource: fe("Cannot set source of a broadcasted event"),
29369
29369
  getSource: fe("Cannot get source of a broadcasted event")
@@ -29378,7 +29378,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
29378
29378
  const E = C.descHandler;
29379
29379
  return Qh(E)(w), w.isStopped() ? (g.logEventStopped(s, C.element, E.purpose), jw.stopped()) : w.isCut() ? (g.logEventCut(s, C.element, E.purpose), jw.complete()) : ea(C.element).fold(() => (g.logNoParent(s, C.element, E.purpose), jw.complete()), (N) => (g.logEventResponse(s, C.element, E.purpose), jw.resume(N)));
29380
29380
  });
29381
- }, OM = (t, s, a, c, d, g) => DM(t, s, a, c, d, g).fold(Ue, (p) => OM(t, s, a, p, d, g), gn), SF = (t, s, a, c, d) => {
29381
+ }, OM = (t, s, a, c, d, g) => DM(t, s, a, c, d, g).fold(Ue, (p) => OM(t, s, a, p, d, g), mn), SF = (t, s, a, c, d) => {
29382
29382
  const g = EM(a, c);
29383
29383
  return DM(t, s, a, c, g, d);
29384
29384
  }, _F = (t, s, a) => {
@@ -29889,7 +29889,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
29889
29889
  lazySink: s.getSink,
29890
29890
  fetch: (a) => ec.nu((c) => t.fetch(c)).map((c) => A.from($_(Zo(tA(Zt("menu-value"), c, (d) => {
29891
29891
  t.onItemAction(a, d);
29892
- }, t.columns, t.presets, af.CLOSE_ON_EXECUTE, gn, s.providers), { movement: A_(t.columns, t.presets) })))),
29892
+ }, t.columns, t.presets, af.CLOSE_ON_EXECUTE, mn, s.providers), { movement: A_(t.columns, t.presets) })))),
29893
29893
  parts: { menu: Fv(!1, 1, t.presets) }
29894
29894
  }), FM = Zt("color-input-change"), HM = Zt("color-swatch-change"), Xw = Zt("color-picker-cancel"), VF = (t, s, a, c) => {
29895
29895
  const d = Jo.parts.field({
@@ -30021,7 +30021,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
30021
30021
  ])
30022
30022
  })
30023
30023
  }), I_ = (t) => nf(t.event), KF = Al({
30024
- schema: [fr("mouseIsDown", () => fn(!1))],
30024
+ schema: [fr("mouseIsDown", () => gn(!1))],
30025
30025
  name: "spectrum",
30026
30026
  overrides: (t) => {
30027
30027
  const a = t.model.manager, c = (d, g) => a.getValueFromEvent(g).map((p) => a.setValueFrom(d, t, p));
@@ -30356,14 +30356,14 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
30356
30356
  x: [
30357
30357
  Re("minX", 0),
30358
30358
  Re("maxX", 100),
30359
- fr("value", (t) => fn(t.mode.minX)),
30359
+ fr("value", (t) => gn(t.mode.minX)),
30360
30360
  nt("getInitialValue"),
30361
30361
  cs("manager", C9)
30362
30362
  ],
30363
30363
  y: [
30364
30364
  Re("minY", 0),
30365
30365
  Re("maxY", 100),
30366
- fr("value", (t) => fn(t.mode.minY)),
30366
+ fr("value", (t) => gn(t.mode.minY)),
30367
30367
  nt("getInitialValue"),
30368
30368
  cs("manager", A9)
30369
30369
  ],
@@ -30372,7 +30372,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
30372
30372
  Re("maxX", 100),
30373
30373
  Re("minY", 0),
30374
30374
  Re("maxY", 100),
30375
- fr("value", (t) => fn({
30375
+ fr("value", (t) => gn({
30376
30376
  x: t.mode.minX,
30377
30377
  y: t.mode.minY
30378
30378
  })),
@@ -30384,7 +30384,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
30384
30384
  cn,
30385
30385
  Lt
30386
30386
  ]),
30387
- fr("mouseIsDown", () => fn(!1))
30387
+ fr("mouseIsDown", () => gn(!1))
30388
30388
  ], Rl = Dl({
30389
30389
  name: "Slider",
30390
30390
  configFields: B9,
@@ -30654,10 +30654,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
30654
30654
  return ai({
30655
30655
  factory: () => {
30656
30656
  const H = {
30657
- red: fn(A.some(255)),
30658
- green: fn(A.some(255)),
30659
- blue: fn(A.some(255)),
30660
- hex: fn(A.some("ffffff"))
30657
+ red: gn(A.some(255)),
30658
+ green: gn(A.some(255)),
30659
+ blue: gn(A.some(255)),
30660
+ hex: gn(A.some("ffffff"))
30661
30661
  }, W = (Cn, Ko) => {
30662
30662
  const pn = Hw(Ko);
30663
30663
  w(Cn, pn), we(pn);
@@ -30822,8 +30822,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
30822
30822
  }, vP = (t, s) => {
30823
30823
  const a = (d) => {
30824
30824
  const g = V9(t, s, d.onValidHex, d.onInvalidHex), p = z9(t, s), w = (je) => (100 - je) / 100 * 360, C = (je) => 100 - je / 360 * 100, E = {
30825
- paletteRgba: fn(yd),
30826
- paletteHue: fn(0)
30825
+ paletteRgba: gn(yd),
30826
+ paletteHue: gn(0)
30827
30827
  }, O = Xo(LA(t, s)), N = Xo(p.sketch({})), H = Xo(g.sketch({})), W = (je, vt, Tt) => {
30828
30828
  N.getOpt(je).each((Un) => {
30829
30829
  p.setHue(Un, Tt);
@@ -31130,10 +31130,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31130
31130
  let a = null, c = null;
31131
31131
  return {
31132
31132
  cancel: () => {
31133
- _n(a) || (clearTimeout(a), a = null, c = null);
31133
+ Sn(a) || (clearTimeout(a), a = null, c = null);
31134
31134
  },
31135
31135
  throttle: (...p) => {
31136
- c = p, _n(a) && (a = setTimeout(() => {
31136
+ c = p, Sn(a) && (a = setTimeout(() => {
31137
31137
  const w = c;
31138
31138
  a = null, c = null, t.apply(null, w);
31139
31139
  }, s));
@@ -31143,10 +31143,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31143
31143
  let a = null;
31144
31144
  return {
31145
31145
  cancel: () => {
31146
- _n(a) || (clearTimeout(a), a = null);
31146
+ Sn(a) || (clearTimeout(a), a = null);
31147
31147
  },
31148
31148
  throttle: (...g) => {
31149
- _n(a) && (a = setTimeout(() => {
31149
+ Sn(a) && (a = setTimeout(() => {
31150
31150
  a = null, t.apply(null, g);
31151
31151
  }, s));
31152
31152
  }
@@ -31154,7 +31154,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31154
31154
  }, Q_ = (t, s) => {
31155
31155
  let a = null;
31156
31156
  const c = () => {
31157
- _n(a) || (clearTimeout(a), a = null);
31157
+ Sn(a) || (clearTimeout(a), a = null);
31158
31158
  };
31159
31159
  return {
31160
31160
  cancel: c,
@@ -31206,7 +31206,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31206
31206
  }, sy = (t) => Zw(t, [
31207
31207
  "." + zA,
31208
31208
  "." + UA
31209
- ].join(","), gn), ry = Zt("update-dialog"), fg = Zt("update-title"), ek = Zt("update-body"), ZA = Zt("update-footer"), jA = Zt("body-send-message"), ay = Zt("dialog-focus-shifted"), tk = yi().browser, o1 = tk.isSafari(), AP = tk.isFirefox(), GA = o1 || AP, X9 = tk.isChromium(), J9 = ({ scrollTop: t, scrollHeight: s, clientHeight: a }) => Math.ceil(t) + a >= s, DP = (t, s) => t.scrollTo(0, s === "bottom" ? 99999999 : s), Q9 = (t, s) => {
31209
+ ].join(","), mn), ry = Zt("update-dialog"), fg = Zt("update-title"), ek = Zt("update-body"), ZA = Zt("update-footer"), jA = Zt("body-send-message"), ay = Zt("dialog-focus-shifted"), tk = yi().browser, o1 = tk.isSafari(), AP = tk.isFirefox(), GA = o1 || AP, X9 = tk.isChromium(), J9 = ({ scrollTop: t, scrollHeight: s, clientHeight: a }) => Math.ceil(t) + a >= s, DP = (t, s) => t.scrollTo(0, s === "bottom" ? 99999999 : s), Q9 = (t, s) => {
31210
31210
  const a = t.body;
31211
31211
  return A.from(!/^<!DOCTYPE (html|HTML)/.test(s) && (!X9 && !o1 || Io(a) && (a.scrollTop !== 0 || Math.abs(a.scrollHeight - a.clientHeight) > 1)) ? a : t.documentElement);
31212
31212
  }, OP = (t, s, a) => {
@@ -31220,7 +31220,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31220
31220
  o1 && c.addEventListener("load", w, { once: !0 }), d.open(), d.write(s), d.close(), o1 || w();
31221
31221
  });
31222
31222
  }, RP = hn(GA, o1 ? 500 : 200).map((t) => sx(OP, t)), tH = (t, s) => {
31223
- const a = fn(t.getOr(""));
31223
+ const a = gn(t.getOr(""));
31224
31224
  return {
31225
31225
  getValue: (c) => a.get(),
31226
31226
  setValue: (c, d) => {
@@ -31288,7 +31288,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31288
31288
  const c = zr(t), d = Vs(t);
31289
31289
  return Math.min(c / s, d / a, 1);
31290
31290
  }, rH = (t, s) => {
31291
- const a = fn(s.getOr({ url: "" })), c = Xo({
31291
+ const a = gn(s.getOr({ url: "" })), c = Xo({
31292
31292
  dom: {
31293
31293
  tag: "img",
31294
31294
  classes: ["tox-imagepreview__image"],
@@ -31407,7 +31407,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31407
31407
  components: [_r(a.translate(t))],
31408
31408
  behaviours: xt([Ln.config({})])
31409
31409
  }), Uu = Zt("update-menu-text"), r1 = Zt("update-menu-icon"), JA = (t, s, a) => {
31410
- const c = fn(me), d = t.text.map((H) => Xo(MP(H, s, a.providers))), g = t.icon.map((H) => Xo(s1(H, a.providers.icons))), p = (H, W) => {
31410
+ const c = gn(me), d = t.text.map((H) => Xo(MP(H, s, a.providers))), g = t.icon.map((H) => Xo(s1(H, a.providers.icons))), p = (H, W) => {
31411
31411
  const X = Lt.getValue(H);
31412
31412
  return xn.focus(X), ln(X, "keydown", { raw: W.event.raw }), wd.close(X), A.some(!0);
31413
31413
  }, w = t.role.fold(() => ({}), (H) => ({ role: H })), C = t.tooltip.fold(() => ({}), (H) => {
@@ -32248,7 +32248,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32248
32248
  ], TH = /* @__PURE__ */ Object.freeze({
32249
32249
  __proto__: null,
32250
32250
  init: (t) => {
32251
- const s = fn(t.expanded), a = () => "expanded: " + s.get();
32251
+ const s = gn(t.expanded), a = () => "expanded: " + s.get();
32252
32252
  return ei({
32253
32253
  isExpanded: () => s.get() === !0,
32254
32254
  isCollapsed: () => s.get() === !1,
@@ -32486,7 +32486,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32486
32486
  Ln.config({})
32487
32487
  ])
32488
32488
  }), oB = Zt("directory-event-id"), uD = ({ directory: t, onLeafAction: s, labelTabstopping: a, treeId: c, backstage: d, expandedIds: g, selectedId: p }) => {
32489
- const { children: w } = t, C = fn(g), E = (N) => w.map((H) => H.type === "leaf" ? lk({
32489
+ const { children: w } = t, C = gn(g), E = (N) => w.map((H) => H.type === "leaf" ? lk({
32490
32490
  leaf: H,
32491
32491
  selectedId: p,
32492
32492
  onLeafAction: s,
@@ -32549,7 +32549,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32549
32549
  ])
32550
32550
  };
32551
32551
  }, RH = Zt("tree-event-id"), $H = (t, s) => {
32552
- const a = t.onLeafAction.getOr(me), c = t.onToggleExpand.getOr(me), d = t.defaultExpandedIds, g = fn(d), p = fn(t.defaultSelectedId), w = Zt("tree-id"), C = (E, O) => t.items.map((N) => N.type === "leaf" ? lk({
32552
+ const a = t.onLeafAction.getOr(me), c = t.onToggleExpand.getOr(me), d = t.defaultExpandedIds, g = gn(d), p = gn(t.defaultSelectedId), w = Zt("tree-id"), C = (E, O) => t.items.map((N) => N.type === "leaf" ? lk({
32553
32553
  leaf: N,
32554
32554
  selectedId: E,
32555
32555
  onLeafAction: a,
@@ -32612,7 +32612,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32612
32612
  }
32613
32613
  });
32614
32614
  const rB = (t) => {
32615
- const s = fn(null);
32615
+ const s = gn(null);
32616
32616
  return ei({
32617
32617
  readState: () => ({ timer: s.get() !== null ? "set" : "unset" }),
32618
32618
  setTimer: (g) => {
@@ -32844,8 +32844,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32844
32844
  Kn,
32845
32845
  Lr
32846
32846
  ]),
32847
- fr("lazyTypeaheadComp", () => fn(A.none)),
32848
- fr("previewing", () => fn(!0))
32847
+ fr("lazyTypeaheadComp", () => gn(A.none)),
32848
+ fr("previewing", () => gn(!0))
32849
32849
  ].concat(Rw()).concat(uA())), NH = oe([Nu({
32850
32850
  schema: [N1()],
32851
32851
  name: "menu",
@@ -33587,7 +33587,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
33587
33587
  getColors: TB(t),
33588
33588
  getColorCols: EB(t)
33589
33589
  }), cG = (t) => () => X4(t), tc = (t) => ({ isDraggableModal: cG(t) }), SD = (t) => {
33590
- const s = fn(t3(t) ? "bottom" : "top");
33590
+ const s = gn(t3(t) ? "bottom" : "top");
33591
33591
  return {
33592
33592
  isPositionedAtTop: () => s.get() === "top",
33593
33593
  getDockingMode: s.get,
@@ -33778,7 +33778,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
33778
33778
  tag: C.length > 0 && (C[0].inline || C[0].block) || "div",
33779
33779
  styles: t.dom.parseStyle(t.formatter.getCssText(w))
33780
33780
  }) : A.none();
33781
- }, c = fn([]), d = fn([]), g = fn(!1);
33781
+ }, c = gn([]), d = gn([]), g = gn(!1);
33782
33782
  return t.on("PreInit", (w) => {
33783
33783
  const C = RB(t), E = MB(t, C, s, a);
33784
33784
  c.set(E);
@@ -33843,7 +33843,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
33843
33843
  a[s] = [t].concat(d).slice(0, TD), AV(a);
33844
33844
  }, AD = (t) => !!t, DV = (t) => qo(kh.makeMap(t, /[, ]/), AD), bk = (t) => A.from(DR(t)), jB = (t) => {
33845
33845
  const s = A.from(K4(t)).filter(AD).map(DV);
33846
- return bk(t).fold(gn, (a) => s.fold(Ue, (c) => ps(c).length > 0 ? c : !1));
33846
+ return bk(t).fold(mn, (a) => s.fold(Ue, (c) => ps(c).length > 0 ? c : !1));
33847
33847
  }, GB = (t, s) => {
33848
33848
  const a = jB(t);
33849
33849
  return Gn(a) ? a ? bk(t) : A.none() : a[s] ? bk(t) : A.none();
@@ -33874,7 +33874,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
33874
33874
  getValidationHandler: () => RV(t),
33875
33875
  getUrlPicker: (s) => OV(t, s)
33876
33876
  }), uy = (t, s, a, c) => {
33877
- const d = fn(!1), g = SD(s), p = {
33877
+ const d = gn(!1), g = SD(s), p = {
33878
33878
  icons: () => s.ui.registry.getAll().icons,
33879
33879
  menuItems: () => s.ui.registry.getAll().menuItems,
33880
33880
  translate: Fu.translate,
@@ -34051,7 +34051,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
34051
34051
  t.setGroups(s, a);
34052
34052
  }
34053
34053
  }
34054
- }), LV = me, XB = gn, JB = oe([]);
34054
+ }), LV = me, XB = mn, JB = oe([]);
34055
34055
  var xx = /* @__PURE__ */ Object.freeze({
34056
34056
  __proto__: null,
34057
34057
  setup: LV,
@@ -34293,7 +34293,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
34293
34293
  ], tz = /* @__PURE__ */ Object.freeze({
34294
34294
  __proto__: null,
34295
34295
  init: (t) => {
34296
- const s = fn(!1), a = fn(!0), c = to(), d = fn(t.modes), g = () => `docked: ${s.get()}, visible: ${a.get()}, modes: ${d.get().join(",")}`;
34296
+ const s = gn(!1), a = gn(!0), c = to(), d = gn(t.modes), g = () => `docked: ${s.get()}, visible: ${a.get()}, modes: ${d.get().join(",")}`;
34297
34297
  return ei({
34298
34298
  isDocked: s.get,
34299
34299
  setDocked: s.set,
@@ -34669,7 +34669,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
34669
34669
  };
34670
34670
  });
34671
34671
  return tt(a, (c) => {
34672
- const d = fn(me);
34672
+ const d = gn(me);
34673
34673
  return t.slot(c.name, {
34674
34674
  dom: {
34675
34675
  tag: "div",
@@ -34848,7 +34848,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
34848
34848
  ]),
34849
34849
  components: []
34850
34850
  }), Tz = (t) => t.type === "focusin", Ak = (t) => Tz(t) ? (t.composed ? vr(t.composedPath()) : A.from(t.target)).map(Te.fromDom).filter(Do).exists((a) => sa(a, "mce-pastebin")) : !1, Ez = (t, s, a) => {
34851
- const c = fn(!1), d = to(), g = (w) => {
34851
+ const c = gn(!1), d = to(), g = (w) => {
34852
34852
  c.get() && !Ak(w) && (w.preventDefault(), yN(s()), t.editorManager.setActive(t));
34853
34853
  };
34854
34854
  t.inline || t.on("PreInit", () => {
@@ -34918,12 +34918,12 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
34918
34918
  E.extra.length === 0 ? (Ln.remove(d, g), a([])) : (_N(d, E.within), a(E.extra)), go(d.element, "visibility"), Za(d.element), w.each(xn.focus);
34919
34919
  }, TN = oe([
34920
34920
  ra("splitToolbarBehaviours", [Lr]),
34921
- fr("builtGroups", () => fn([]))
34921
+ fr("builtGroups", () => gn([]))
34922
34922
  ]), $z = oe([
34923
34923
  Ff(["overflowToggledClass"]),
34924
34924
  Om("getOverflowBounds"),
34925
34925
  nt("lazySink"),
34926
- fr("overflowGroups", () => fn([])),
34926
+ fr("overflowGroups", () => gn([])),
34927
34927
  xo("onOpened"),
34928
34928
  xo("onClosed")
34929
34929
  ].concat(TN())), Mz = oe([
@@ -35017,7 +35017,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
35017
35017
  Oc.config({
35018
35018
  channels: {
35019
35019
  ...a0({
35020
- isExtraPart: gn,
35020
+ isExtraPart: mn,
35021
35021
  ...a.fireDismissalEventInstead.map((p) => ({ fireEventInstead: { event: p.event } })).getOr({})
35022
35022
  }),
35023
35023
  ...$p({
@@ -36008,7 +36008,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36008
36008
  return ZN(t, g, t.ui.styleSheetLoader);
36009
36009
  }
36010
36010
  }, hU = async (t, s) => {
36011
- if (mn(Te.fromDom(t.getElement()))) {
36011
+ if (fn(Te.fromDom(t.getElement()))) {
36012
36012
  const d = "ui/" + t_(t).getOr("default") + "/skin.shadowdom.css", g = tinymce.Resource.get(d);
36013
36013
  if (Q(g))
36014
36014
  return iO(t, d, g, R0.DOM.styleSheetLoader), Promise.resolve();
@@ -36279,7 +36279,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36279
36279
  updateText: p,
36280
36280
  dataset: w,
36281
36281
  shouldHide: !1,
36282
- isInvalid: gn
36282
+ isInvalid: mn
36283
36283
  };
36284
36284
  }, kU = (t, s) => fm(t, s, pO(t), gO, "FontFamilyTextUpdate"), a6 = (t, s) => {
36285
36285
  const a = G0(t, s, pO(t));
@@ -36352,13 +36352,13 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36352
36352
  const d = (pe) => pe.map((Oe) => Lt.getValue(Oe)).getOr(""), g = am(t, "NodeChange SwitchMode", (pe) => {
36353
36353
  const Oe = pe.getComponent();
36354
36354
  c = A.some(Oe), a.updateInputValue(Oe), wn.set(Oe, !t.selection.isEditable());
36355
- }), p = (pe) => ({ getComponent: oe(pe) }), w = fn(me), C = Zt("custom-number-input-events"), E = (pe, Oe, dt) => {
36355
+ }), p = (pe) => ({ getComponent: oe(pe) }), w = gn(me), C = Zt("custom-number-input-events"), E = (pe, Oe, dt) => {
36356
36356
  const Xe = d(c), je = a.getNewValue(Xe, pe), vt = Xe.length - `${je}`.length, Tt = c.map((Ut) => Ut.element.dom.selectionStart - vt), Un = c.map((Ut) => Ut.element.dom.selectionEnd - vt);
36357
36357
  a.onAction(je, dt), c.each((Ut) => {
36358
36358
  Lt.setValue(Ut, je), Oe && (Tt.each((An) => Ut.element.dom.selectionStart = An), Un.each((An) => Ut.element.dom.selectionEnd = An));
36359
36359
  });
36360
36360
  }, O = (pe, Oe) => E((dt, Xe) => dt - Xe, pe, Oe), N = (pe, Oe) => E((dt, Xe) => dt + Xe, pe, Oe), H = (pe) => Vl(pe.element).fold(A.none, (Oe) => (Rc(Oe), A.some(!0))), W = (pe) => U1(pe.element) ? (hi(pe.element).each((Oe) => Rc(Oe)), A.some(!0)) : A.none(), X = (pe, Oe, dt, Xe) => {
36361
- const je = fn(me), vt = s.shared.providers.translate(dt), Tt = Zt("altExecuting"), Un = am(t, "NodeChange SwitchMode", (An) => {
36361
+ const je = gn(me), vt = s.shared.providers.translate(dt), Tt = Zt("altExecuting"), Un = am(t, "NodeChange SwitchMode", (An) => {
36362
36362
  wn.set(An.getComponent(), !t.selection.isEditable());
36363
36363
  }), Ut = (An) => {
36364
36364
  wn.isDisabled(An) || pe(!0);
@@ -36534,7 +36534,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36534
36534
  updateText: p,
36535
36535
  dataset: w,
36536
36536
  shouldHide: !1,
36537
- isInvalid: gn
36537
+ isInvalid: mn
36538
36538
  };
36539
36539
  }, NU = (t, s) => fm(t, s, bO(t), i6, "FontSizeTextUpdate"), IU = (t) => {
36540
36540
  var s;
@@ -36841,7 +36841,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36841
36841
  ].concat(c.getOr([])))
36842
36842
  };
36843
36843
  }, KU = (t, s, a, c) => {
36844
- const d = s.shared, g = fn(me), p = {
36844
+ const d = s.shared, g = gn(me), p = {
36845
36845
  toolbarButtonBehaviours: [],
36846
36846
  getApi: Fk,
36847
36847
  onSetup: t.onSetup
@@ -36868,7 +36868,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36868
36868
  });
36869
36869
  }, p6 = (t, s, a) => {
36870
36870
  var c;
36871
- const d = fn(me), g = Hk(t.icon, t.text, t.tooltip, A.none(), a);
36871
+ const d = gn(me), g = Hk(t.icon, t.text, t.tooltip, A.none(), a);
36872
36872
  return Xa.sketch({
36873
36873
  dom: g.dom,
36874
36874
  components: g.components,
@@ -36906,7 +36906,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36906
36906
  onSetup: t.onSetup
36907
36907
  }, s), y6 = (t, s, a) => (c) => ec.nu((d) => s.fetch(d)).map((d) => A.from($_(Zo(tA(Zt("menu-value"), d, (g) => {
36908
36908
  s.onItemAction(t(c), g);
36909
- }, s.columns, s.presets, af.CLOSE_ON_EXECUTE, s.select.getOr(gn), a), {
36909
+ }, s.columns, s.presets, af.CLOSE_ON_EXECUTE, s.select.getOr(mn), a), {
36910
36910
  movement: A_(s.columns, s.presets),
36911
36911
  menuBehaviours: Nw.unnamedEvents(s.columns !== "auto" ? [] : [xs((g, p) => {
36912
36912
  A3(g, 4, ZR(s.presets)).each(({ numRows: w, numColumns: C }) => {
@@ -36937,7 +36937,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
36937
36937
  title: w
36938
36938
  });
36939
36939
  }
36940
- }), c = fn(me), d = {
36940
+ }), c = gn(me), d = {
36941
36941
  getApi: a,
36942
36942
  onSetup: t.onSetup
36943
36943
  };
@@ -37119,7 +37119,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37119
37119
  }, S6 = yi(), Zk = S6.os.isiOS() && S6.os.version.major <= 12, _6 = (t, s) => {
37120
37120
  const { uiMotherships: a } = s, c = t.dom;
37121
37121
  let d = t.getWin();
37122
- const g = t.getDoc().documentElement, p = fn(Po(d.innerWidth, d.innerHeight)), w = fn(Po(g.offsetWidth, g.offsetHeight)), C = () => {
37122
+ const g = t.getDoc().documentElement, p = gn(Po(d.innerWidth, d.innerHeight)), w = gn(Po(g.offsetWidth, g.offsetHeight)), C = () => {
37123
37123
  const H = p.get();
37124
37124
  (H.left !== d.innerWidth || H.top !== d.innerHeight) && (p.set(Po(d.innerWidth, d.innerHeight)), w_(t));
37125
37125
  }, E = () => {
@@ -37147,7 +37147,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37147
37147
  var T6 = /* @__PURE__ */ Object.freeze({
37148
37148
  __proto__: null,
37149
37149
  render: (t, s, a, c, d) => {
37150
- const { mainUi: g, uiMotherships: p } = s, w = fn(0), C = g.outerContainer;
37150
+ const { mainUi: g, uiMotherships: p } = s, w = gn(0), C = g.outerContainer;
37151
37151
  bU(t);
37152
37152
  const E = Te.fromDom(d.targetNode), O = mt(Ne(E));
37153
37153
  qm(E, g.mothership), k6(t, O, s), t.on("SkinLoaded", () => {
@@ -37174,7 +37174,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37174
37174
  const we = C.element;
37175
37175
  g.mothership.broadcastOn([fd()], { target: we }), pt(p, (pe) => {
37176
37176
  pe.broadcastOn([fd()], { target: we });
37177
- }), _n(Ds.whichView(C)) && (t.focus(), t.nodeChanged(), Ds.refreshToolbar(C));
37177
+ }), Sn(Ds.whichView(C)) && (t.focus(), t.nodeChanged(), Ds.refreshToolbar(C));
37178
37178
  }
37179
37179
  }), t.addQueryValueHandler("ToggleView", () => {
37180
37180
  var ce;
@@ -37210,7 +37210,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37210
37210
  const s = Tw(t), a = W4(t), c = GS(t);
37211
37211
  return yO(s).map((d) => Gk(d, a, c));
37212
37212
  }, aW = (t) => E6(t).getOr(Tw(t)), { ToolbarLocation: K0, ToolbarMode: A6 } = CI, lW = 40, cW = (t, s, a, c, d) => {
37213
- const { mainUi: g, uiMotherships: p } = a, w = R0.DOM, C = Iv(t), E = Dw(t), O = GS(t).or(E6(t)), N = c.shared.header, H = N.isPositionedAtTop, W = Pv(t), X = W === A6.sliding || W === A6.floating, ce = fn(!1), $e = () => ce.get() && !t.removed, we = (pn) => X ? pn.fold(oe(0), (ko) => ko.components().length > 1 ? Vs(ko.components()[1].element) : 0) : 0, pe = (pn) => {
37213
+ const { mainUi: g, uiMotherships: p } = a, w = R0.DOM, C = Iv(t), E = Dw(t), O = GS(t).or(E6(t)), N = c.shared.header, H = N.isPositionedAtTop, W = Pv(t), X = W === A6.sliding || W === A6.floating, ce = gn(!1), $e = () => ce.get() && !t.removed, we = (pn) => X ? pn.fold(oe(0), (ko) => ko.components().length > 1 ? Vs(ko.components()[1].element) : 0) : 0, pe = (pn) => {
37214
37214
  switch (Ew(t)) {
37215
37215
  case K0.auto:
37216
37216
  const ko = Ds.getToolbar(g.outerContainer), Et = we(ko), Xt = Vs(pn.element) - Et, Dn = qs(s);
@@ -37314,7 +37314,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37314
37314
  bounds: a
37315
37315
  };
37316
37316
  }, iW = (t, s, a, c) => {
37317
- const d = fn(wO(s, a.isPositionedAtTop())), g = (E) => {
37317
+ const d = gn(wO(s, a.isPositionedAtTop())), g = (E) => {
37318
37318
  const { pos: O, bounds: N } = wO(s, a.isPositionedAtTop()), {
37319
37319
  pos: H,
37320
37320
  bounds: W
@@ -37680,7 +37680,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37680
37680
  formNavigators: g
37681
37681
  };
37682
37682
  }, H6 = Zt("forward-slide"), V6 = Zt("backward-slide"), kO = Zt("change-slide-event"), TO = "tox-pop--resizing", kW = (t) => {
37683
- const s = fn([]);
37683
+ const s = gn([]);
37684
37684
  return cr.sketch({
37685
37685
  dom: {
37686
37686
  tag: "div",
@@ -37991,7 +37991,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37991
37991
  };
37992
37992
  return t.on("PastePlainTextToggle", c), Vw(() => t.off("PastePlainTextToggle", c), Ic(t)(a));
37993
37993
  }, $W = (t) => {
37994
- const s = fn(XS(t)), a = () => t.execCommand("mceTogglePlainTextPaste");
37994
+ const s = gn(XS(t)), a = () => t.execCommand("mceTogglePlainTextPaste");
37995
37995
  t.ui.registry.addToggleButton("pastetext", {
37996
37996
  active: !1,
37997
37997
  icon: "paste-text",
@@ -38725,7 +38725,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
38725
38725
  Re("mustSnap", !1)
38726
38726
  ]);
38727
38727
  const NO = [
38728
- Re("useFixed", gn),
38728
+ Re("useFixed", mn),
38729
38729
  nt("blockerClass"),
38730
38730
  Re("getTarget", Nn),
38731
38731
  Re("onDrag", me),
@@ -38967,7 +38967,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
38967
38967
  ]
38968
38968
  }
38969
38969
  })), BZ = (t, s) => {
38970
- const a = fn([]), c = fn([]), d = fn(!1), g = to(), p = to(), w = (vt) => {
38970
+ const a = gn([]), c = gn([]), d = gn(!1), g = to(), p = to(), w = (vt) => {
38971
38971
  const Tt = rl(vt);
38972
38972
  return FO(W.getOpt(s), vt, Tt.x, Tt.y, Tt.width, Tt.height);
38973
38973
  }, C = () => tt(a.get(), (vt) => w(vt)), E = (vt) => {
@@ -40014,7 +40014,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40014
40014
  ], en = /* @__PURE__ */ Object.freeze({
40015
40015
  __proto__: null,
40016
40016
  init: () => {
40017
- const t = fn(A.none()), s = () => t.set(A.none());
40017
+ const t = gn(A.none()), s = () => t.set(A.none());
40018
40018
  return {
40019
40019
  readState: () => t.get().getOr("none"),
40020
40020
  get: t.get,
@@ -40328,13 +40328,13 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40328
40328
  selectFirst: !1
40329
40329
  };
40330
40330
  }, Fx = "send-data-to-section", ob = "send-data-to-view", sb = (t, s, a) => {
40331
- const c = fn({}), d = (E) => {
40331
+ const c = gn({}), d = (E) => {
40332
40332
  const O = Lt.getValue(E), N = so(O).getOr({}), H = c.get(), W = Zo(H, N);
40333
40333
  c.set(W);
40334
40334
  }, g = (E) => {
40335
40335
  const O = c.get();
40336
40336
  Lt.setValue(E, O);
40337
- }, p = fn(null), w = tt(t.tabs, (E) => ({
40337
+ }, p = gn(null), w = tt(t.tabs, (E) => ({
40338
40338
  value: E.name,
40339
40339
  dom: {
40340
40340
  tag: "div",
@@ -40753,7 +40753,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40753
40753
  })), bT = (t, s = {}) => {
40754
40754
  const a = (c) => {
40755
40755
  const d = tt(c.items, (g) => {
40756
- const p = bt(s, g.name).getOr(fn(!1));
40756
+ const p = bt(s, g.name).getOr(gn(!1));
40757
40757
  return {
40758
40758
  ...g,
40759
40759
  storage: p
@@ -40827,7 +40827,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40827
40827
  Lt.setValue(g, p.getData());
40828
40828
  })
40829
40829
  ];
40830
- }, 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) => {
40830
+ }, Ve = (t, s) => dk(t, t.type, s), Qt = (t, s, a) => qe(s, (c) => c.name === a).bind((c) => c.memento.getOpt(t)), _n = (t, s) => {
40831
40831
  const a = s.map((w) => w.footerButtons).getOr([]), c = el(a, (w) => w.align === "start"), d = (w, C) => lf.sketch({
40832
40832
  dom: {
40833
40833
  tag: "div",
@@ -40861,7 +40861,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40861
40861
  channel: `${ZA}-${s}`,
40862
40862
  initialData: t,
40863
40863
  updateState: c,
40864
- renderComponents: Sn
40864
+ renderComponents: _n
40865
40865
  })])
40866
40866
  };
40867
40867
  }, Fc = (t, s, a) => Hr(t, s, a), Td = (t, s, a) => Gr.parts.footer(Hr(t, s, a)), Ha = (t, s) => {
@@ -40937,7 +40937,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40937
40937
  };
40938
40938
  return W;
40939
40939
  }, wj = (t, s, a) => {
40940
- const c = Zt("dialog"), d = t.internalDialog, g = St(d.title, c, a), p = fn(d.size), w = Qa(p.get()).toArray(), C = (pe, Oe) => (p.set(Oe.internalDialog.size), p1(Oe.internalDialog.size, pe), A.some(Oe)), E = Hx({
40940
+ const c = Zt("dialog"), d = t.internalDialog, g = St(d.title, c, a), p = gn(d.size), w = Qa(p.get()).toArray(), C = (pe, Oe) => (p.set(Oe.internalDialog.size), p1(Oe.internalDialog.size, pe), A.some(Oe)), E = Hx({
40941
40941
  body: d.body,
40942
40942
  initialData: d.initialData
40943
40943
  }, c, a), O = bT(d.buttons), N = YO(O), H = hn(O.length !== 0, Td({ buttons: O }, c, a)), W = no(() => we, sn(() => ce, a.shared.providers, s), a.shared.getSink), X = {
@@ -40973,7 +40973,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40973
40973
  instanceApi: we
40974
40974
  };
40975
40975
  }, JO = (t, s, a, c = !1, d) => {
40976
- const g = Zt("dialog"), p = Zt("dialog-label"), w = Zt("dialog-content"), C = t.internalDialog, E = fn(C.size), O = Qa(E.get()).toArray(), N = (je, vt) => (E.set(vt.internalDialog.size), p1(vt.internalDialog.size, je), d(), A.some(vt)), H = Xo(Be({
40976
+ const g = Zt("dialog"), p = Zt("dialog-label"), w = Zt("dialog-content"), C = t.internalDialog, E = gn(C.size), O = Qa(E.get()).toArray(), N = (je, vt) => (E.set(vt.internalDialog.size), p1(vt.internalDialog.size, je), d(), A.some(vt)), H = Xo(Be({
40977
40977
  title: C.title,
40978
40978
  draggable: !0
40979
40979
  }, g, p, a.shared.providers)), W = Xo(vg({
@@ -41450,7 +41450,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41450
41450
  }, se = (i) => {
41451
41451
  const m = typeof i;
41452
41452
  return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && de(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
41453
- }, Ee = (i) => (m) => se(m) === i, ge = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), _n = G(void 0), Gn = (i) => i == null, Ro = (i) => !Gn(i), Gs = ge("function"), Io = ge("number"), Pt = () => {
41453
+ }, Ee = (i) => (m) => se(m) === i, ge = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), Sn = G(void 0), Gn = (i) => i == null, Ro = (i) => !Gn(i), Gs = ge("function"), Io = ge("number"), Pt = () => {
41454
41454
  }, pr = (i, m) => (...h) => i(m.apply(null, h)), un = (i, m) => (h) => i(m(h)), me = (i) => () => i, _t = (i) => i, Ea = (i, m) => i === m;
41455
41455
  function Qn(i, ...m) {
41456
41456
  return (...h) => {
@@ -41532,7 +41532,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41532
41532
  }
41533
41533
  }
41534
41534
  fe.singletonNone = new fe(!1);
41535
- const Wt = Array.prototype.slice, gn = Array.prototype.indexOf, Ue = Array.prototype.push, A = (i, m) => gn.call(i, m), Vt = (i, m) => A(i, m) > -1, et = (i, m) => {
41535
+ const Wt = Array.prototype.slice, mn = Array.prototype.indexOf, Ue = Array.prototype.push, A = (i, m) => mn.call(i, m), Vt = (i, m) => A(i, m) > -1, et = (i, m) => {
41536
41536
  for (let h = 0, v = i.length; h < v; h++) {
41537
41537
  const _ = i[h];
41538
41538
  if (m(_, h))
@@ -41873,7 +41873,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41873
41873
  cells: m,
41874
41874
  section: h,
41875
41875
  isNew: v
41876
- }), mn = (i, m, h, v) => ({
41876
+ }), fn = (i, m, h, v) => ({
41877
41877
  startRow: i,
41878
41878
  startCol: m,
41879
41879
  finishRow: h,
@@ -41953,7 +41953,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41953
41953
  return m;
41954
41954
  }, Dd = (i, m) => i != null ? m(i) : fe.none(), Rh = (i, m) => i ? fe.some(m) : fe.none(), $h = (i, m, h) => m === "" || i.length >= m.length && i.substr(h, h + m.length) === m, Po = (i, m, h = 0, v) => {
41955
41955
  const _ = i.indexOf(m, h);
41956
- return _ !== -1 ? _n(v) ? !0 : _ + m.length <= v : !1;
41956
+ return _ !== -1 ? Sn(v) ? !0 : _ + m.length <= v : !1;
41957
41957
  }, 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) => {
41958
41958
  const m = parseFloat(i);
41959
41959
  return isNaN(m) ? fe.none() : fe.some(m);
@@ -42589,7 +42589,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42589
42589
  maxCol: v,
42590
42590
  allCells: _,
42591
42591
  selectedCells: D
42592
- }), fn = (i, m) => {
42592
+ }), gn = (i, m) => {
42593
42593
  const h = i.grid.columns;
42594
42594
  let _ = i.grid.rows, D = h, L = 0, Z = 0;
42595
42595
  const ee = [], ie = [];
@@ -42624,7 +42624,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42624
42624
  const _ = _l(m, i, h), D = tt(_, (ie, De) => ie + De, 0), ee = tt(_.slice(v.minCol, v.maxCol + 1), (ie, De) => ie + De, 0) / D * h.pixelWidth() - h.pixelWidth();
42625
42625
  return h.getCellDelta(ee);
42626
42626
  }, be = (i, m) => {
42627
- const h = (Mt) => qr(Mt.element, m), v = Hl(i), _ = vi(v), D = jl.getTableSize(i), L = qn.generate(_), Z = fn(L, h), ee = "th:not(" + m + "),td:not(" + m + ")", ie = Ku(v, "th,td", (Mt) => qr(Mt, ee));
42627
+ const h = (Mt) => qr(Mt.element, m), v = Hl(i), _ = vi(v), D = jl.getTableSize(i), L = qn.generate(_), Z = gn(L, h), ee = "th:not(" + m + "),td:not(" + m + ")", ie = Ku(v, "th,td", (Mt) => qr(Mt, ee));
42628
42628
  ot(ie, or), T(_, L, Z, h);
42629
42629
  const De = qn.fromTable(i), at = K(i, De, D, Z);
42630
42630
  return V(v, Z, L, at), v;
@@ -42824,7 +42824,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42824
42824
  for (let D = m.startCol; D <= m.finishCol; D++)
42825
42825
  h = h && qn.getAt(i, _, D).exists(v);
42826
42826
  return h ? fe.some(m) : fe.none();
42827
- }, A1 = (i, m) => mn(Math.min(i.row, m.row), Math.min(i.column, m.column), Math.max(i.row + i.rowspan - 1, m.row + m.rowspan - 1), Math.max(i.column + i.colspan - 1, m.column + m.colspan - 1)), ho = (i, m, h) => {
42827
+ }, A1 = (i, m) => fn(Math.min(i.row, m.row), Math.min(i.column, m.column), Math.max(i.row + i.rowspan - 1, m.row + m.rowspan - 1), Math.max(i.column + i.colspan - 1, m.column + m.colspan - 1)), ho = (i, m, h) => {
42828
42828
  const v = qn.findItem(i, m, ts), _ = qn.findItem(i, h, ts);
42829
42829
  return v.bind((D) => _.map((L) => A1(D, L)));
42830
42830
  }, ln = (i, m, h) => ho(i, m, h).bind((v) => E1(i, v)), Nm = (i, m, h, v) => qn.findItem(i, m, ts).bind((_) => {
@@ -45693,7 +45693,7 @@ Required: ` + m.join(", "));
45693
45693
  }, se = (S) => {
45694
45694
  const $ = typeof S;
45695
45695
  return S === null ? "null" : $ === "object" && Array.isArray(S) ? "array" : $ === "object" && de(S, String, (U, ae) => ae.isPrototypeOf(U)) ? "string" : $;
45696
- }, Ee = (S) => ($) => se($) === S, ge = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = ge("boolean"), lt = (S) => S == null, $t = (S) => !lt(S), _n = ge("function"), Gn = ge("number"), Ro = () => {
45696
+ }, Ee = (S) => ($) => se($) === S, ge = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = ge("boolean"), lt = (S) => S == null, $t = (S) => !lt(S), Sn = ge("function"), Gn = ge("number"), Ro = () => {
45697
45697
  }, Gs = (S, $) => (U) => S($(U)), Io = (S) => () => S, Pt = (S, $) => S === $;
45698
45698
  function pr(S, ...$) {
45699
45699
  return (...U) => {
@@ -45799,7 +45799,7 @@ Required: ` + m.join(", "));
45799
45799
  $(it, ae) && U.push(it);
45800
45800
  }
45801
45801
  return U;
45802
- }, gn = (S, $) => {
45802
+ }, mn = (S, $) => {
45803
45803
  if (S.length === 0)
45804
45804
  return [];
45805
45805
  {
@@ -45835,7 +45835,7 @@ Required: ` + m.join(", "));
45835
45835
  const $ = Ea.call(S, 0);
45836
45836
  return $.reverse(), $;
45837
45837
  }, ot = (S, $) => $ >= 0 && $ < S.length ? _t.some(S[$]) : _t.none(), jo = (S) => ot(S, 0), ur = (S) => ot(S, S.length - 1), ao = (S, $) => {
45838
- const U = [], ae = _n($) ? (he) => Bn(U, (it) => $(it, he)) : (he) => os(U, he);
45838
+ const U = [], ae = Sn($) ? (he) => Bn(U, (it) => $(it, he)) : (he) => os(U, he);
45839
45839
  for (let he = 0, it = S.length; he < it; he++) {
45840
45840
  const Kt = S[he];
45841
45841
  ae(Kt) || U.push(Kt);
@@ -45902,7 +45902,7 @@ Required: ` + m.join(", "));
45902
45902
  }, us = (S) => S.dom.nodeName.toLowerCase(), qo = (S) => S.dom.nodeType, wc = (S) => ($) => qo($) === S, Jn = (S) => qo(S) === z || us(S) === "#comment", bs = (S) => wr(S) && ji(S.dom), wr = wc(ss), Pl = wc(zo), di = wc(el), Qo = wc(eo), Gi = (S) => ($) => wr($) && us($) === S, bt = (S) => yn.fromDom(S.dom.ownerDocument), fo = (S) => di(S) ? S : bt(S), Er = (S) => _t.from(S.dom.parentNode).map(yn.fromDom), Aa = (S) => _t.from(S.dom.parentElement).map(yn.fromDom), Bl = (S) => _t.from(S.dom.nextSibling).map(yn.fromDom), Da = (S) => Ge(S.dom.childNodes, yn.fromDom), es = (S, $) => {
45903
45903
  const U = S.dom.childNodes;
45904
45904
  return _t.from(U[$]).map(yn.fromDom);
45905
- }, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Yo = (S) => Qo(S) && $t(S.dom.host), Ar = _n(Element.prototype.attachShadow) && _n(Node.prototype.getRootNode) ? (S) => yn.fromDom(S.dom.getRootNode()) : fo, Nl = (S) => {
45905
+ }, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Yo = (S) => Qo(S) && $t(S.dom.host), Ar = Sn(Element.prototype.attachShadow) && Sn(Node.prototype.getRootNode) ? (S) => yn.fromDom(S.dom.getRootNode()) : fo, Nl = (S) => {
45906
45906
  const $ = Ar(S);
45907
45907
  return Yo($) ? _t.some($) : _t.none();
45908
45908
  }, Hc = (S) => yn.fromDom(S.dom.host), mi = (S) => {
@@ -45912,10 +45912,10 @@ Required: ` + m.join(", "));
45912
45912
  const U = $.ownerDocument;
45913
45913
  return Nl(yn.fromDom($)).fold(() => U.body.contains($), Gs(mi, Hc));
45914
45914
  };
45915
- var xr = (S, $, U, ae, he) => S(U, ae) ? _t.some(U) : _n(he) && he(U) ? _t.none() : $(U, ae, he);
45915
+ var xr = (S, $, U, ae, he) => S(U, ae) ? _t.some(U) : Sn(he) && he(U) ? _t.none() : $(U, ae, he);
45916
45916
  const dr = (S, $, U) => {
45917
45917
  let ae = S.dom;
45918
- const he = _n(U) ? U : me;
45918
+ const he = Sn(U) ? U : me;
45919
45919
  for (; ae.parentNode; ) {
45920
45920
  ae = ae.parentNode;
45921
45921
  const it = yn.fromDom(ae);
@@ -46034,12 +46034,12 @@ Required: ` + m.join(", "));
46034
46034
  S.dom.isEmpty(On) || ue.insertAfter(On, $), ue.insertAfter(it, $);
46035
46035
  const kn = U.parentElement;
46036
46036
  kn && wl(S.dom, kn) && ae(kn), ue.remove(U), wl(S.dom, $) && ue.remove($);
46037
- }, Ne = Gi("dd"), mt = Gi("dt"), mn = (S, $) => {
46037
+ }, Ne = Gi("dd"), mt = Gi("dt"), fn = (S, $) => {
46038
46038
  Ne($) ? Do($, "dt") : mt($) && Aa($).each((U) => ke(S, U.dom, $.dom));
46039
46039
  }, Uo = (S) => {
46040
46040
  mt(S) && Do(S, "dd");
46041
46041
  }, rs = (S, $, U) => {
46042
- $ === "Indent" ? fe(U, Uo) : fe(U, (ae) => mn(S, ae));
46042
+ $ === "Indent" ? fe(U, Uo) : fe(U, (ae) => fn(S, ae));
46043
46043
  }, Wo = (S, $) => {
46044
46044
  if (Ls(S))
46045
46045
  return {
@@ -46125,7 +46125,7 @@ Required: ` + m.join(", "));
46125
46125
  }, Vs = (S, $, U) => S.dispatch("ListMutation", {
46126
46126
  action: $,
46127
46127
  element: U
46128
- }), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Po = (S) => !$h(S), Wc = (S) => S.style !== void 0 && _n(S.style.getPropertyValue), Qi = (S, $, U) => {
46128
+ }), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Po = (S) => !$h(S), Wc = (S) => S.style !== void 0 && Sn(S.style.getPropertyValue), Qi = (S, $, U) => {
46129
46129
  if (!G(U))
46130
46130
  throw console.error("Invalid call to CSS.set. Property ", $, ":: Value ", U, ":: Element ", S), new Error("CSS value must be a string: " + U);
46131
46131
  Wc(S) && S.style.setProperty($, U);
@@ -46287,7 +46287,7 @@ Required: ` + m.join(", "));
46287
46287
  }, kg = (S, $) => {
46288
46288
  const U = Zc($);
46289
46289
  return wf(S.contentDocument, U).toArray();
46290
- }, Tg = (S, $) => Ao(gn($, Pa), (U) => jo(U).exists(Pa) ? kg(S, U) : eu(S, U)), Eg = (S, $) => {
46290
+ }, Tg = (S, $) => Ao(mn($, Pa), (U) => jo(U).exists(Pa) ? kg(S, U) : eu(S, U)), Eg = (S, $) => {
46291
46291
  fe(Wt(S, fa), (U) => Cm($, U));
46292
46292
  }, Yu = (S) => {
46293
46293
  const $ = Ge(I(S), yn.fromDom);
@@ -46841,7 +46841,7 @@ Required: ` + m.join(", "));
46841
46841
  }, se = (j) => {
46842
46842
  const ue = typeof j;
46843
46843
  return j === null ? "null" : ue === "object" && Array.isArray(j) ? "array" : ue === "object" && de(j, String, (ke, Ne) => Ne.isPrototypeOf(ke)) ? "string" : ue;
46844
- }, Ee = (j) => (ue) => se(ue) === j, ge = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), _n = (j) => j == null, Gn = (j) => !_n(j), Ro = ge("function"), Gs = (j, ue) => {
46844
+ }, Ee = (j) => (ue) => se(ue) === j, ge = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), lt = G(null), $t = ge("boolean"), Sn = (j) => j == null, Gn = (j) => !Sn(j), Ro = ge("function"), Gs = (j, ue) => {
46845
46845
  if (Pe(j)) {
46846
46846
  for (let ke = 0, Ne = j.length; ke < Ne; ++ke)
46847
46847
  if (!ue(j[ke]))
@@ -46925,8 +46925,8 @@ Required: ` + m.join(", "));
46925
46925
  const me = Array.prototype.indexOf, _t = Array.prototype.push, Ea = (j, ue) => me.call(j, ue), Qn = (j, ue) => Ea(j, ue) > -1, oe = (j, ue) => {
46926
46926
  const ke = j.length, Ne = new Array(ke);
46927
46927
  for (let mt = 0; mt < ke; mt++) {
46928
- const mn = j[mt];
46929
- Ne[mt] = ue(mn, mt);
46928
+ const fn = j[mt];
46929
+ Ne[mt] = ue(fn, mt);
46930
46930
  }
46931
46931
  return Ne;
46932
46932
  }, Nn = (j, ue) => {
@@ -46951,7 +46951,7 @@ Required: ` + m.join(", "));
46951
46951
  return Ne;
46952
46952
  }
46953
46953
  return un.none();
46954
- }, Wt = (j, ue, ke = pr) => j.exists((Ne) => ke(Ne, ue)), gn = (j) => {
46954
+ }, Wt = (j, ue, ke = pr) => j.exists((Ne) => ke(Ne, ue)), mn = (j) => {
46955
46955
  const ue = [], ke = (Ne) => {
46956
46956
  ue.push(Ne);
46957
46957
  };
@@ -47010,16 +47010,16 @@ Required: ` + m.join(", "));
47010
47010
  return el.each(j, (Ne) => {
47011
47011
  const mt = ss(Ne);
47012
47012
  if (Ne.menu !== void 0) {
47013
- const mn = zo(Ne.menu, ue);
47013
+ const fn = zo(Ne.menu, ue);
47014
47014
  ke.push({
47015
47015
  text: mt,
47016
- items: mn
47016
+ items: fn
47017
47017
  });
47018
47018
  } else {
47019
- const mn = ue(Ne);
47019
+ const fn = ue(Ne);
47020
47020
  ke.push({
47021
47021
  text: mt,
47022
- value: mn
47022
+ value: fn
47023
47023
  });
47024
47024
  }
47025
47025
  }), ke;
@@ -47036,14 +47036,14 @@ Required: ` + m.join(", "));
47036
47036
  }, _e = Object.keys, yn = Object.hasOwnProperty, Go = (j, ue) => {
47037
47037
  const ke = _e(j);
47038
47038
  for (let Ne = 0, mt = ke.length; Ne < mt; Ne++) {
47039
- const mn = ke[Ne], Uo = j[mn];
47040
- ue(Uo, mn);
47039
+ const fn = ke[Ne], Uo = j[fn];
47040
+ ue(Uo, fn);
47041
47041
  }
47042
47042
  }, Ft = (j) => (ue, ke) => {
47043
47043
  j[ke] = ue;
47044
47044
  }, Tr = (j, ue, ke, Ne) => {
47045
- Go(j, (mt, mn) => {
47046
- (ue(mt, mn) ? ke : Ne)(mt, mn);
47045
+ Go(j, (mt, fn) => {
47046
+ (ue(mt, fn) ? ke : Ne)(mt, fn);
47047
47047
  });
47048
47048
  }, Lo = (j, ue) => {
47049
47049
  const ke = {};
@@ -47054,25 +47054,25 @@ Required: ` + m.join(", "));
47054
47054
  if (j.collapsed)
47055
47055
  return [];
47056
47056
  {
47057
- const ke = j.cloneContents(), Ne = ke.firstChild, mt = new vr(Ne, ke), mn = [];
47057
+ const ke = j.cloneContents(), Ne = ke.firstChild, mt = new vr(Ne, ke), fn = [];
47058
47058
  let Uo = Ne;
47059
47059
  do
47060
- ue(Uo) && mn.push(Uo);
47060
+ ue(Uo) && fn.push(Uo);
47061
47061
  while (Uo = mt.next());
47062
- return mn;
47062
+ return fn;
47063
47063
  }
47064
47064
  }, ji = (j) => /^\w+:/i.test(j), us = (j) => {
47065
47065
  var ue, ke;
47066
47066
  return (ke = (ue = j.getAttribute("data-mce-href")) !== null && ue !== void 0 ? ue : j.getAttribute("href")) !== null && ke !== void 0 ? ke : "";
47067
47067
  }, qo = (j, ue) => {
47068
- const ke = ["noopener"], Ne = j ? j.split(/\s+/) : [], mt = (Wo) => el.trim(Wo.sort().join(" ")), mn = (Wo) => (Wo = Uo(Wo), Wo.length > 0 ? Wo.concat(ke) : ke), Uo = (Wo) => Wo.filter((ys) => el.inArray(ke, ys) === -1), rs = ue ? mn(Ne) : Uo(Ne);
47068
+ const ke = ["noopener"], Ne = j ? j.split(/\s+/) : [], mt = (Wo) => el.trim(Wo.sort().join(" ")), fn = (Wo) => (Wo = Uo(Wo), Wo.length > 0 ? Wo.concat(ke) : ke), Uo = (Wo) => Wo.filter((ys) => el.inArray(ke, ys) === -1), rs = ue ? fn(Ne) : Uo(Ne);
47069
47069
  return rs.length > 0 ? mt(rs) : "";
47070
47070
  }, wc = (j) => j.replace(/\uFEFF/g, ""), Jn = (j, ue) => (ue = ue || Pl(j.selection.getRng())[0] || j.selection.getNode(), fo(ue) ? un.from(j.dom.select("a[href]", ue)[0]) : un.from(j.dom.getParent(ue, "a[href]"))), bs = (j, ue) => Jn(j, ue).isSome(), wr = (j, ue) => {
47071
47071
  const ke = ue.fold(() => j.getContent({ format: "text" }), (Ne) => Ne.innerText || Ne.textContent || "");
47072
47072
  return wc(ke);
47073
47073
  }, Pl = (j) => ps(j, Qs), di = (j) => el.grep(j, Qs), Qo = (j) => di(j).length > 0, Gi = (j) => Pl(j).length > 0, bt = (j) => {
47074
- const ue = j.schema.getTextInlineElements(), ke = (mn) => mn.nodeType === 1 && !yr(mn) && !za(ue, mn.nodeName.toLowerCase());
47075
- if (Jn(j).exists((mn) => mn.hasAttribute("data-mce-block")))
47074
+ const ue = j.schema.getTextInlineElements(), ke = (fn) => fn.nodeType === 1 && !yr(fn) && !za(ue, fn.nodeName.toLowerCase());
47075
+ if (Jn(j).exists((fn) => fn.hasAttribute("data-mce-block")))
47076
47076
  return !1;
47077
47077
  const mt = j.selection.getRng();
47078
47078
  return mt.collapsed ? !0 : ps(mt, ke).length === 0;
@@ -47098,21 +47098,21 @@ Required: ` + m.join(", "));
47098
47098
  const mt = j.dom;
47099
47099
  fo(ue) ? xr(mt, ue, Ne) : ke.fold(() => {
47100
47100
  j.execCommand("mceInsertLink", !1, Ne);
47101
- }, (mn) => {
47102
- j.insertContent(mt.createHTML("a", Ne, mt.encode(mn)));
47101
+ }, (fn) => {
47102
+ j.insertContent(mt.createHTML("a", Ne, mt.encode(fn)));
47103
47103
  });
47104
47104
  }, tl = (j, ue, ke) => {
47105
- const Ne = j.selection.getNode(), mt = Jn(j, Ne), mn = Bl(j, Er(ke));
47105
+ const Ne = j.selection.getNode(), mt = Jn(j, Ne), fn = Bl(j, Er(ke));
47106
47106
  j.undoManager.transact(() => {
47107
47107
  ke.href === ue.href && ue.attach(), mt.fold(() => {
47108
- es(j, Ne, ke.text, mn);
47108
+ es(j, Ne, ke.text, fn);
47109
47109
  }, (Uo) => {
47110
- j.focus(), Da(j, Uo, ke.text, mn);
47110
+ j.focus(), Da(j, Uo, ke.text, fn);
47111
47111
  });
47112
47112
  });
47113
47113
  }, bl = (j) => {
47114
- const ue = j.dom, ke = j.selection, Ne = ke.getBookmark(), mt = ke.getRng().cloneRange(), mn = ue.getParent(mt.startContainer, "a[href]", j.getBody()), Uo = ue.getParent(mt.endContainer, "a[href]", j.getBody());
47115
- mn && mt.setStartBefore(mn), Uo && mt.setEndAfter(Uo), ke.setRng(mt), j.execCommand("unlink"), ke.moveToBookmark(Ne);
47114
+ const ue = j.dom, ke = j.selection, Ne = ke.getBookmark(), mt = ke.getRng().cloneRange(), fn = ue.getParent(mt.startContainer, "a[href]", j.getBody()), Uo = ue.getParent(mt.endContainer, "a[href]", j.getBody());
47115
+ fn && mt.setStartBefore(fn), Uo && mt.setEndAfter(Uo), ke.setRng(mt), j.execCommand("unlink"), ke.moveToBookmark(Ne);
47116
47116
  }, Yo = (j) => {
47117
47117
  j.undoManager.transact(() => {
47118
47118
  const ue = j.selection.getNode();
@@ -47124,7 +47124,7 @@ Required: ` + m.join(", "));
47124
47124
  href: ke,
47125
47125
  rel: Ne,
47126
47126
  target: mt,
47127
- text: mn,
47127
+ text: fn,
47128
47128
  title: Uo
47129
47129
  } = j;
47130
47130
  return Lo({
@@ -47132,7 +47132,7 @@ Required: ` + m.join(", "));
47132
47132
  href: ke,
47133
47133
  rel: Ne.getOrNull(),
47134
47134
  target: mt.getOrNull(),
47135
- text: mn.getOrNull(),
47135
+ text: fn.getOrNull(),
47136
47136
  title: Uo.getOrNull()
47137
47137
  }, (rs, Wo) => lt(rs) === !1);
47138
47138
  }, Ar = (j, ue) => {
@@ -47161,20 +47161,20 @@ Required: ` + m.join(", "));
47161
47161
  var Ne;
47162
47162
  const mt = j.select("img", ue)[0];
47163
47163
  if (mt) {
47164
- const mn = j.create("a", ke);
47165
- (Ne = mt.parentNode) === null || Ne === void 0 || Ne.insertBefore(mn, mt), mn.appendChild(mt);
47164
+ const fn = j.create("a", ke);
47165
+ (Ne = mt.parentNode) === null || Ne === void 0 || Ne.insertBefore(fn, mt), fn.appendChild(mt);
47166
47166
  }
47167
47167
  }, dr = (j) => hs(j, "items"), Us = (j, ue) => fe(ue, (ke) => dr(ke) ? Us(j, ke.items) : Ue(ke.value === j, ke)), vl = (j, ue, ke, Ne) => {
47168
- const mt = Ne[ue], mn = j.length > 0;
47168
+ const mt = Ne[ue], fn = j.length > 0;
47169
47169
  return mt !== void 0 ? Us(mt, ke).map((Uo) => ({
47170
47170
  url: {
47171
47171
  value: Uo.value,
47172
47172
  meta: {
47173
- text: mn ? j : Uo.text,
47173
+ text: fn ? j : Uo.text,
47174
47174
  attach: Io
47175
47175
  }
47176
47176
  },
47177
- text: mn ? j : Uo.text
47177
+ text: fn ? j : Uo.text
47178
47178
  })) : un.none();
47179
47179
  }, qi = (j, ue) => ue === "link" ? j.link : ue === "anchor" ? j.anchor : un.none(), ca = {
47180
47180
  init: (j, ue) => {
@@ -47187,7 +47187,7 @@ Required: ` + m.join(", "));
47187
47187
  }, mt = (Wo) => {
47188
47188
  var ys;
47189
47189
  return Ue(ke.text.length <= 0, un.from((ys = Wo.meta) === null || ys === void 0 ? void 0 : ys.text).getOr(Wo.value));
47190
- }, mn = (Wo) => {
47190
+ }, fn = (Wo) => {
47191
47191
  const ys = mt(Wo.url), lo = Ne(Wo.url);
47192
47192
  return ys.isSome() || lo.isSome() ? un.some({
47193
47193
  ...ys.map((Fs) => ({ text: Fs })).getOr({}),
@@ -47199,7 +47199,7 @@ Required: ` + m.join(", "));
47199
47199
  };
47200
47200
  return { onChange: (Wo, ys) => {
47201
47201
  const lo = ys.name;
47202
- return lo === "url" ? mn(Wo()) : Qn([
47202
+ return lo === "url" ? fn(Wo()) : Qn([
47203
47203
  "anchor",
47204
47204
  "link"
47205
47205
  ], lo) ? Uo(Wo(), lo) : ((lo === "text" || lo === "title") && (ke[lo] = Wo()[lo]), un.none());
@@ -47228,8 +47228,8 @@ Required: ` + m.join(", "));
47228
47228
  const Ne = ke.href;
47229
47229
  return j === 1 && !ji(Ne) || j === 0 && /^\s*www(\.|\d\.)/i.test(Ne) ? un.some({
47230
47230
  message: `The URL you entered seems to be an external link. Do you want to add the required ${ue}:// prefix?`,
47231
- preprocess: (mn) => ({
47232
- ...mn,
47231
+ preprocess: (fn) => ({
47232
+ ...fn,
47233
47233
  href: ue + "://" + Ne
47234
47234
  })
47235
47235
  }) : un.none();
@@ -47272,8 +47272,8 @@ Required: ` + m.join(", "));
47272
47272
  } }, Ad = { getRels: (j, ue) => {
47273
47273
  const ke = ao(j);
47274
47274
  if (ke.length > 0) {
47275
- const Ne = Wt(ue, "_blank"), mt = pt(j) === !1, mn = (rs) => qo(Ke.getValue(rs), Ne);
47276
- return (mt ? Ke.sanitizeWith(mn) : Ke.sanitize)(ke);
47275
+ const Ne = Wt(ue, "_blank"), mt = pt(j) === !1, fn = (rs) => qo(Ke.getValue(rs), Ne);
47276
+ return (mt ? Ke.sanitizeWith(fn) : Ke.sanitize)(ke);
47277
47277
  }
47278
47278
  return un.none();
47279
47279
  } }, nl = [
@@ -47292,9 +47292,9 @@ Required: ` + m.join(", "));
47292
47292
  const Ne = j.getAttrib(ue, ke);
47293
47293
  return Ne !== null && Ne.length > 0 ? un.some(Ne) : un.none();
47294
47294
  }, Ua = (j, ue) => {
47295
- const ke = j.dom, mt = bt(j) ? un.some(wr(j.selection, ue)) : un.none(), mn = ue.bind((lo) => un.from(ke.getAttrib(lo, "href"))), Uo = ue.bind((lo) => un.from(ke.getAttrib(lo, "target"))), rs = ue.bind((lo) => ks(ke, lo, "rel")), Wo = ue.bind((lo) => ks(ke, lo, "class")), ys = ue.bind((lo) => ks(ke, lo, "title"));
47295
+ const ke = j.dom, mt = bt(j) ? un.some(wr(j.selection, ue)) : un.none(), fn = ue.bind((lo) => un.from(ke.getAttrib(lo, "href"))), Uo = ue.bind((lo) => un.from(ke.getAttrib(lo, "target"))), rs = ue.bind((lo) => ks(ke, lo, "rel")), Wo = ue.bind((lo) => ks(ke, lo, "class")), ys = ue.bind((lo) => ks(ke, lo, "title"));
47296
47296
  return {
47297
- url: mn,
47297
+ url: fn,
47298
47298
  text: mt,
47299
47299
  title: ys,
47300
47300
  target: Uo,
@@ -47321,7 +47321,7 @@ Required: ` + m.join(", "));
47321
47321
  Hc(j), ke.close();
47322
47322
  return;
47323
47323
  }
47324
- const mt = (rs) => un.from(Ne[rs]).filter((Wo) => !Wt(ue.anchor[rs], Wo)), mn = {
47324
+ const mt = (rs) => un.from(Ne[rs]).filter((Wo) => !Wt(ue.anchor[rs], Wo)), fn = {
47325
47325
  href: Ne.url.value,
47326
47326
  text: mt("text"),
47327
47327
  target: mt("target"),
@@ -47332,7 +47332,7 @@ Required: ` + m.join(", "));
47332
47332
  href: Ne.url.value,
47333
47333
  attach: Ne.url.meta !== void 0 && Ne.url.meta.attach ? Ne.url.meta.attach : Io
47334
47334
  };
47335
- Il.preprocess(j, mn).then((rs) => {
47335
+ Il.preprocess(j, fn).then((rs) => {
47336
47336
  Nl(j, Uo, rs);
47337
47337
  }), ke.close();
47338
47338
  }, Cc = (j) => {
@@ -47364,7 +47364,7 @@ Required: ` + m.join(", "));
47364
47364
  name: "text",
47365
47365
  type: "input",
47366
47366
  label: "Text to display"
47367
- })).toArray(), mn = j.flags.titleEnabled ? [{
47367
+ })).toArray(), fn = j.flags.titleEnabled ? [{
47368
47368
  name: "title",
47369
47369
  type: "input",
47370
47370
  label: "Title"
@@ -47377,8 +47377,8 @@ Required: ` + m.join(", "));
47377
47377
  items: Bn([
47378
47378
  Ne,
47379
47379
  mt,
47380
- mn,
47381
- gn([
47380
+ fn,
47381
+ mn([
47382
47382
  Wo.anchor.map(Ke.createUi("anchor", "Anchors")),
47383
47383
  Wo.rels.map(Ke.createUi("rel", "Rel")),
47384
47384
  Wo.targets.map(Ke.createUi("target", "Open link in...")),
@@ -47465,10 +47465,10 @@ Required: ` + m.join(", "));
47465
47465
  const ke = () => ue.setEnabled(Vl(j));
47466
47466
  return ke(), Fl(j, ke);
47467
47467
  }, wl = (j) => (ue) => {
47468
- const ke = (mn) => Qo(mn) || Gi(j.selection.getRng()), Ne = j.dom.getParents(j.selection.getStart()), mt = (mn) => {
47469
- ue.setEnabled(ke(mn) && j.selection.isEditable());
47468
+ const ke = (fn) => Qo(fn) || Gi(j.selection.getRng()), Ne = j.dom.getParents(j.selection.getStart()), mt = (fn) => {
47469
+ ue.setEnabled(ke(fn) && j.selection.isEditable());
47470
47470
  };
47471
- return mt(Ne), Fl(j, (mn) => mt(mn.parents));
47471
+ return mt(Ne), Fl(j, (fn) => mt(fn.parents));
47472
47472
  }, Ji = (j) => {
47473
47473
  j.addShortcut("Meta+K", "", () => {
47474
47474
  j.execCommand("mceLink");
@@ -47517,12 +47517,12 @@ Required: ` + m.join(", "));
47517
47517
  const ue = (mt) => {
47518
47518
  mt.selection.collapse(!1);
47519
47519
  }, ke = (mt) => {
47520
- const mn = j.selection.getNode();
47521
- return mt.setEnabled(bs(j, mn)), Io;
47520
+ const fn = j.selection.getNode();
47521
+ return mt.setEnabled(bs(j, fn)), Io;
47522
47522
  }, Ne = (mt) => {
47523
- const mn = Jn(j), Uo = bt(j);
47524
- if (mn.isNone() && Uo) {
47525
- const rs = wr(j.selection, mn);
47523
+ const fn = Jn(j), Uo = bt(j);
47524
+ if (fn.isNone() && Uo) {
47525
+ const rs = wr(j.selection, fn);
47526
47526
  return Ue(rs.length === 0, mt);
47527
47527
  } else
47528
47528
  return un.none();
@@ -47544,16 +47544,16 @@ Required: ` + m.join(", "));
47544
47544
  tooltip: "Link",
47545
47545
  primary: !0,
47546
47546
  onSetup: (mt) => {
47547
- const mn = j.selection.getNode();
47548
- return mt.setActive(bs(j, mn)), ea(j)(mt);
47547
+ const fn = j.selection.getNode();
47548
+ return mt.setActive(bs(j, fn)), ea(j)(mt);
47549
47549
  },
47550
47550
  onAction: (mt) => {
47551
- const mn = mt.getValue(), Uo = Ne(mn);
47551
+ const fn = mt.getValue(), Uo = Ne(fn);
47552
47552
  Nl(j, {
47553
- href: mn,
47553
+ href: fn,
47554
47554
  attach: Io
47555
47555
  }, {
47556
- href: mn,
47556
+ href: fn,
47557
47557
  text: Uo,
47558
47558
  title: un.none(),
47559
47559
  rel: un.none(),
@@ -47598,8 +47598,8 @@ Required: ` + m.join(", "));
47598
47598
  }, Ee = (I) => {
47599
47599
  const Y = typeof I;
47600
47600
  return I === null ? "null" : Y === "object" && Array.isArray(I) ? "array" : Y === "object" && se(I, String, (re, Le) => Le.isPrototypeOf(re)) ? "string" : Y;
47601
- }, ge = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => lt(I) && se(I, Y, (re, Le) => de(re) === Le), Pe = ge("string"), lt = ge("object"), $t = (I) => Q(I, Object), _n = ge("array"), Gn = Ae(null), Ro = G("boolean"), Gs = (I) => I == null, Io = (I) => !Gs(I), Pt = G("function"), pr = G("number"), un = (I, Y) => {
47602
- if (_n(I)) {
47601
+ }, ge = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => lt(I) && se(I, Y, (re, Le) => de(re) === Le), Pe = ge("string"), lt = ge("object"), $t = (I) => Q(I, Object), Sn = ge("array"), Gn = Ae(null), Ro = G("boolean"), Gs = (I) => I == null, Io = (I) => !Gs(I), Pt = G("function"), pr = G("number"), un = (I, Y) => {
47602
+ if (Sn(I)) {
47603
47603
  for (let re = 0, Le = I.length; re < Le; ++re)
47604
47604
  if (!Y(I[re]))
47605
47605
  return !1;
@@ -47694,10 +47694,10 @@ Required: ` + m.join(", "));
47694
47694
  }, Bn = (I, Y) => {
47695
47695
  const re = {};
47696
47696
  return os(I, Y, Nn(re), me), re;
47697
- }, Ge = (I, Y) => Qn.call(I, Y), fe = (I, Y) => Ge(I, Y) && I[Y] !== void 0 && I[Y] !== null, Wt = Array.prototype.push, gn = (I) => {
47697
+ }, Ge = (I, Y) => Qn.call(I, Y), fe = (I, Y) => Ge(I, Y) && I[Y] !== void 0 && I[Y] !== null, Wt = Array.prototype.push, mn = (I) => {
47698
47698
  const Y = [];
47699
47699
  for (let re = 0, Le = I.length; re < Le; ++re) {
47700
- if (!_n(I[re]))
47700
+ if (!Sn(I[re]))
47701
47701
  throw new Error("Arr.flatten item " + re + " was not an array, input: " + I);
47702
47702
  Wt.apply(Y, I[re]);
47703
47703
  }
@@ -48114,7 +48114,7 @@ Required: ` + m.join(", "));
48114
48114
  }) }, Ls = (I) => {
48115
48115
  const Y = ia.sanitizer((Ms) => I.convertURL(Ms.value || Ms.url || "", "src")), re = new Promise((Ms) => {
48116
48116
  ji(I, (pi) => {
48117
- Ms(Y(pi).map((Vs) => gn([
48117
+ Ms(Y(pi).map((Vs) => mn([
48118
48118
  [{
48119
48119
  text: "None",
48120
48120
  value: ""
@@ -48188,7 +48188,7 @@ Required: ` + m.join(", "));
48188
48188
  type: "grid",
48189
48189
  columns: 2
48190
48190
  } : { type: "panel" };
48191
- return gn([
48191
+ return mn([
48192
48192
  [Y],
48193
48193
  re.toArray(),
48194
48194
  I.hasAccessibilityOptions && I.hasDescription ? [qt] : [],
@@ -48197,7 +48197,7 @@ Required: ` + m.join(", "));
48197
48197
  I.hasDimensions ? [Xn] : [],
48198
48198
  [{
48199
48199
  ...as(I.classList.isSome() && I.hasImageCaption),
48200
- items: gn([
48200
+ items: mn([
48201
48201
  $s.toArray(),
48202
48202
  I.hasImageCaption ? [ct] : []
48203
48203
  ])
@@ -48332,7 +48332,7 @@ Required: ` + m.join(", "));
48332
48332
  I.open = !1;
48333
48333
  }, ju = (I) => I.hasAdvTab || I.hasUploadUrl || I.hasUploadHandler ? {
48334
48334
  type: "tabpanel",
48335
- tabs: gn([
48335
+ tabs: mn([
48336
48336
  [Xi.makeTab(I)],
48337
48337
  I.hasAdvTab ? [ua.makeTab(I)] : [],
48338
48338
  I.hasUploadTab && (I.hasUploadUrl || I.hasUploadHandler) ? [Or.makeTab(I)] : []
@@ -48365,7 +48365,7 @@ Required: ` + m.join(", "));
48365
48365
  I.editorUpload.blobCache.add(Y);
48366
48366
  }, mt = (I) => (Y) => {
48367
48367
  I.windowManager.alert(Y);
48368
- }, mn = (I) => (Y) => Vc(I, Y), Uo = (I) => (Y) => I.dom.parseStyle(Y), rs = (I) => (Y, re) => I.dom.serializeStyle(Y, re), Wo = (I) => (Y) => Yi(I).upload([Y], !1).then((re) => {
48368
+ }, fn = (I) => (Y) => Vc(I, Y), Uo = (I) => (Y) => I.dom.parseStyle(Y), rs = (I) => (Y, re) => I.dom.serializeStyle(Y, re), Wo = (I) => (Y) => Yi(I).upload([Y], !1).then((re) => {
48369
48369
  var Le;
48370
48370
  return re.length === 0 ? Promise.reject("Failed to upload image") : re[0].status === !1 ? Promise.reject((Le = re[0].error) === null || Le === void 0 ? void 0 : Le.message) : re[0];
48371
48371
  }), ys = (I) => {
@@ -48374,7 +48374,7 @@ Required: ` + m.join(", "));
48374
48374
  addToBlobCache: Ne(I),
48375
48375
  createBlobCache: ke(I),
48376
48376
  alertErr: mt(I),
48377
- normalizeCss: mn(I),
48377
+ normalizeCss: fn(I),
48378
48378
  parseStyle: Uo(I),
48379
48379
  serializeStyle: rs(I),
48380
48380
  uploadImage: Wo(I)
@@ -48467,7 +48467,7 @@ Required: ` + m.join(", "));
48467
48467
  }, se = (x) => {
48468
48468
  const T = typeof x;
48469
48469
  return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && de(x, String, (V, K) => K.isPrototypeOf(V)) ? "string" : T;
48470
- }, Ee = (x) => (T) => se(T) === x, ge = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = ge("boolean"), lt = G(void 0), $t = (x) => x == null, _n = (x) => !$t(x), Gn = ge("function"), Ro = ge("number"), Gs = () => {
48470
+ }, Ee = (x) => (T) => se(T) === x, ge = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = ge("boolean"), lt = G(void 0), $t = (x) => x == null, Sn = (x) => !$t(x), Gn = ge("function"), Ro = ge("number"), Gs = () => {
48471
48471
  }, Io = (x, T) => (V) => x(T(V)), Pt = (x) => () => x, pr = (x) => x, un = (x, T) => x === T;
48472
48472
  function me(x, ...T) {
48473
48473
  return (...V) => {
@@ -48530,7 +48530,7 @@ Required: ` + m.join(", "));
48530
48530
  throw new Error(T ?? "Called getOrDie on None");
48531
48531
  }
48532
48532
  static from(T) {
48533
- return _n(T) ? oe.some(T) : oe.none();
48533
+ return Sn(T) ? oe.some(T) : oe.none();
48534
48534
  }
48535
48535
  getOrNull() {
48536
48536
  return this.tag ? this.value : null;
@@ -48564,12 +48564,12 @@ Required: ` + m.join(", "));
48564
48564
  }, Wt = (x, T) => {
48565
48565
  const V = {};
48566
48566
  return fe(x, T, Ge(V), Gs), V;
48567
- }, gn = (x, T) => {
48567
+ }, mn = (x, T) => {
48568
48568
  const V = [];
48569
48569
  return Bn(x, (K, be) => {
48570
48570
  V.push(T(K, be));
48571
48571
  }), V;
48572
- }, Ue = (x) => gn(x, pr), A = (x) => Nn(x).length, Vt = (x, T) => et(x, T) ? oe.from(x[T]) : oe.none(), et = (x, T) => os.call(x, T), Ao = (x, T) => et(x, T) && x[T] !== void 0 && x[T] !== null, dn = (x) => {
48572
+ }, Ue = (x) => mn(x, pr), A = (x) => Nn(x).length, Vt = (x, T) => et(x, T) ? oe.from(x[T]) : oe.none(), et = (x, T) => os.call(x, T), Ao = (x, T) => et(x, T) && x[T] !== void 0 && x[T] !== null, dn = (x) => {
48573
48573
  for (const T in x)
48574
48574
  if (os.call(x, T))
48575
48575
  return !1;
@@ -48723,7 +48723,7 @@ Required: ` + m.join(", "));
48723
48723
  }, Hc = (x) => oe.from(x.dom.previousSibling).map(Jn.fromDom), mi = (x) => oe.from(x.dom.nextSibling).map(Jn.fromDom), xr = (x) => pt(x.dom.childNodes, Jn.fromDom), dr = (x, T) => {
48724
48724
  const V = x.dom.childNodes;
48725
48725
  return oe.from(V[T]).map(Jn.fromDom);
48726
- }, Us = (x) => dr(x, 0), vl = (x) => tl(x) && _n(x.dom.host), Vr = Gn(Element.prototype.attachShadow) && Gn(Node.prototype.getRootNode) ? (x) => Jn.fromDom(x.dom.getRootNode()) : hn, ca = (x) => {
48726
+ }, Us = (x) => dr(x, 0), vl = (x) => tl(x) && Sn(x.dom.host), Vr = Gn(Element.prototype.attachShadow) && Gn(Node.prototype.getRootNode) ? (x) => Jn.fromDom(x.dom.getRootNode()) : hn, ca = (x) => {
48727
48727
  const T = Vr(x);
48728
48728
  return vl(T) ? oe.some(T) : oe.none();
48729
48729
  }, Is = (x) => Jn.fromDom(x.dom.host), Dr = (x) => {
@@ -48802,7 +48802,7 @@ Required: ` + m.join(", "));
48802
48802
  }, mt = (x, T) => {
48803
48803
  const V = x.dom;
48804
48804
  ju(V, T), Xi(Ls(x, "style").map(Zu), "") && ns(x, "style");
48805
- }, mn = (x, T, V = 0) => Ls(x, T).map((K) => parseInt(K, 10)).getOr(V), Uo = (x, T) => rs(x, T, Qn), rs = (x, T, V) => _e(xr(x), (K) => bs(K, T) ? V(K) ? [K] : [] : rs(K, T, V)), Wo = [
48805
+ }, fn = (x, T, V = 0) => Ls(x, T).map((K) => parseInt(K, 10)).getOr(V), Uo = (x, T) => rs(x, T, Qn), rs = (x, T, V) => _e(xr(x), (K) => bs(K, T) ? V(K) ? [K] : [] : rs(K, T, V)), Wo = [
48806
48806
  "tfoot",
48807
48807
  "thead",
48808
48808
  "tbody",
@@ -48850,13 +48850,13 @@ Required: ` + m.join(", "));
48850
48850
  ], 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), Xn = (x) => Uo(x, "tr"), qt = (x) => Dt(x).fold(Pt([]), (T) => Cc(T, "colgroup")), $s = (x, T) => pt(x, (V) => {
48851
48851
  if (bt(V) === "colgroup") {
48852
48852
  const K = pt(Le(V), (be) => {
48853
- const Ze = mn(be, "span", 1);
48853
+ const Ze = fn(be, "span", 1);
48854
48854
  return Fs(be, 1, Ze);
48855
48855
  });
48856
48856
  return bu(V, K, "colgroup");
48857
48857
  } else {
48858
48858
  const K = pt(re(V), (be) => {
48859
- const Ze = mn(be, "rowspan", 1), ft = mn(be, "colspan", 1);
48859
+ const Ze = fn(be, "rowspan", 1), ft = fn(be, "colspan", 1);
48860
48860
  return Fs(be, Ze, ft);
48861
48861
  });
48862
48862
  return bu(V, K, T(V));
@@ -50020,7 +50020,7 @@ Required: ` + T.join(", "));
50020
50020
  return K.concat(be).concat(Ze).concat(ft).concat(Ot);
50021
50021
  }, fb = (x, T, V, K) => {
50022
50022
  if (T.tagName === "TD" || T.tagName === "TH")
50023
- Ae(V) && _n(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
50023
+ Ae(V) && Sn(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
50024
50024
  else if (T.children)
50025
50025
  for (let be = 0; be < T.children.length; be++)
50026
50026
  fb(x, T.children[be], V, K);
@@ -50619,10 +50619,10 @@ Required: ` + T.join(", "));
50619
50619
  const T = Om(x);
50620
50620
  sr(x), x1(x), jl(x, T), Kr(x, T), oa(x);
50621
50621
  };
50622
- var fn = () => {
50622
+ var gn = () => {
50623
50623
  R.add("table", Au);
50624
50624
  };
50625
- fn();
50625
+ gn();
50626
50626
  })();
50627
50627
  (function() {
50628
50628
  var R = tinymce.util.Tools.resolve("tinymce.PluginManager");
@@ -50733,7 +50733,7 @@ Required: ` + T.join(", "));
50733
50733
  new RegExp(Ae.katakana),
50734
50734
  new RegExp(Ae.extendnumlet),
50735
50735
  new RegExp("@")
50736
- ], lt = "", $t = new RegExp("^" + Ae.punctuation + "$"), _n = /^\s+$/, Gn = Pe, Ro = Q.OTHER, Gs = (qe) => {
50736
+ ], lt = "", $t = new RegExp("^" + Ae.punctuation + "$"), Sn = /^\s+$/, Gn = Pe, Ro = Q.OTHER, Gs = (qe) => {
50737
50737
  let At = Ro;
50738
50738
  const Ke = Gn.length;
50739
50739
  for (let _e = 0; _e < Ke; ++_e) {
@@ -50766,7 +50766,7 @@ Required: ` + T.join(", "));
50766
50766
  return !1;
50767
50767
  const Go = qe[At - 1];
50768
50768
  return (Ke === Q.MIDLETTER || Ke === Q.MIDNUMLET || _e === Q.AT) && _e === Q.ALETTER && Go === Q.ALETTER || (Ke === Q.NUMERIC || Ke === Q.ALETTER) && (_e === Q.NUMERIC || _e === Q.ALETTER) || (Ke === Q.MIDNUM || Ke === Q.MIDNUMLET) && _e === Q.NUMERIC && Go === Q.NUMERIC || Ke === Q.NUMERIC && (_e === Q.MIDNUM || _e === Q.MIDNUMLET) && yn === 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 && (yn === Q.ALETTER || yn === Q.NUMERIC || yn === Q.KATAKANA || yn === Q.EXTEND || yn === 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);
50769
- }, un = lt, me = _n, _t = $t, Ea = (qe) => qe === "http" || qe === "https", Qn = (qe, At) => {
50769
+ }, un = lt, me = Sn, _t = $t, Ea = (qe) => qe === "http" || qe === "https", Qn = (qe, At) => {
50770
50770
  let Ke;
50771
50771
  for (Ke = At; Ke < qe.length && !me.test(qe[Ke]); Ke++)
50772
50772
  ;
@@ -50808,11 +50808,11 @@ Required: ` + T.join(", "));
50808
50808
  const _e = ge(qe, At), yn = Pt(_e);
50809
50809
  return Nn(qe, _e, yn, Ke);
50810
50810
  }, fe = (qe, At, Ke) => Bn(qe, At, Ke).words, Wt = (qe) => qe.replace(/\uFEFF/g, "");
50811
- var gn = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");
50811
+ var mn = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");
50812
50812
  const Ue = (qe, At) => {
50813
50813
  const Ke = At.getBlockElements(), _e = At.getVoidElements(), yn = (za) => Ke[za.nodeName] || _e[za.nodeName], Go = [];
50814
50814
  let Ft = "";
50815
- const Tr = new gn(qe, qe);
50815
+ const Tr = new mn(qe, qe);
50816
50816
  let Lo;
50817
50817
  for (; Lo = Tr.next(); )
50818
50818
  Lo.nodeType === 3 ? Ft += Wt(Lo.data) : yn(Lo) && Ft.length && (Go.push(Ft), Ft = "");
@@ -51015,8 +51015,8 @@ const MQ = { class: "font-bold ptext-lg dark:text-white" }, PQ = ["id"], BQ = /*
51015
51015
  "gl-textarea-form-invalid mt-4": R.error_message !== ""
51016
51016
  }]),
51017
51017
  type: R.type,
51018
- "onUpdate:modelValue": $t[0] || ($t[0] = (_n) => Pe.value = _n),
51019
- onKeydown: $t[1] || ($t[1] = (_n) => lt.$emit("keydown", _n)),
51018
+ "onUpdate:modelValue": $t[0] || ($t[0] = (Sn) => Pe.value = Sn),
51019
+ onKeydown: $t[1] || ($t[1] = (Sn) => lt.$emit("keydown", Sn)),
51020
51020
  ref_key: "input",
51021
51021
  ref: G,
51022
51022
  rows: "4"
@@ -51496,12 +51496,12 @@ function kee(R, de, se, Ee, ge, G) {
51496
51496
  key: lt,
51497
51497
  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"
51498
51498
  }, [
51499
- (ve(!0), xe(vo, null, hr(se.columns, ($t, _n) => (ve(), xe("td", {
51500
- key: _n,
51499
+ (ve(!0), xe(vo, null, hr(se.columns, ($t, Sn) => (ve(), xe("td", {
51500
+ key: Sn,
51501
51501
  "data-label": $t.field_label,
51502
51502
  class: an(["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", {
51503
- "rounded-t-lg lg:rounded-t-none": _n === 0,
51504
- "rounded-b-lg lg:rounded-b-none": _n === se.columns.length - 1
51503
+ "rounded-t-lg lg:rounded-t-none": Sn === 0,
51504
+ "rounded-b-lg lg:rounded-b-none": Sn === se.columns.length - 1
51505
51505
  }])
51506
51506
  }, [
51507
51507
  P("div", See, [
@@ -51825,9 +51825,9 @@ function pte(R, de, se, Ee, ge, G) {
51825
51825
  field: lt.field_name,
51826
51826
  xprops: se.xprops,
51827
51827
  tdProps: lt.tdProps,
51828
- onDeleteAction: de[2] || (de[2] = (_n) => G.GetItemLists()),
51829
- onEditAction: (_n) => G.editAction(Q),
51830
- onGeneralAction: (_n) => G.generalAction(Q)
51828
+ onDeleteAction: de[2] || (de[2] = (Sn) => G.GetItemLists()),
51829
+ onEditAction: (Sn) => G.editAction(Q),
51830
+ onGeneralAction: (Sn) => G.generalAction(Q)
51831
51831
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), xe(vo, { key: 1 }, [
51832
51832
  _o(gt(Q[lt.field_name]), 1)
51833
51833
  ], 64))
@@ -52135,8 +52135,8 @@ function Ute(R, de, se, Ee, ge, G) {
52135
52135
  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"
52136
52136
  }, gt(lt), 9, Fte)
52137
52137
  ]),
52138
- (ve(!0), xe(vo, null, hr(Pe, ($t, _n) => (ve(), xe("tr", {
52139
- key: _n,
52138
+ (ve(!0), xe(vo, null, hr(Pe, ($t, Sn) => (ve(), xe("tr", {
52139
+ key: Sn,
52140
52140
  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"
52141
52141
  }, [
52142
52142
  (ve(!0), xe(vo, null, hr(se.columns, (Gn, Ro) => (ve(), xe("td", {
@@ -52497,9 +52497,9 @@ const Qae = /* @__PURE__ */ Jr(Rne, [["render", $ne]]), Mne = {
52497
52497
  const R = Vo(!1), de = QG("accordionsWrapper"), Ee = (() => {
52498
52498
  var lt = (/* @__PURE__ */ new Date()).getTime();
52499
52499
  typeof performance < "u" && typeof performance.now == "function" && (lt += performance.now());
52500
- var $t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(_n) {
52500
+ var $t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Sn) {
52501
52501
  var Gn = (lt + Math.random() * 16) % 16 | 0;
52502
- return lt = Math.floor(lt / 16), (_n === "x" ? Gn : Gn & 3 | 8).toString(16);
52502
+ return lt = Math.floor(lt / 16), (Sn === "x" ? Gn : Gn & 3 | 8).toString(16);
52503
52503
  });
52504
52504
  return $t;
52505
52505
  })(), ge = { isOpen: R, id: Ee }, G = vc(() => de.accordions.value), Ae = vc(() => G.value.length > 0 && G.value[0].id === Ee), Q = vc(() => G.value.length > 0 && G.value[G.value.length - 1].id === Ee);
@@ -52748,11 +52748,11 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52748
52748
  type: "success",
52749
52749
  duration: 5e3
52750
52750
  });
52751
- }).catch((_n) => {
52752
- console.log(_n);
52751
+ }).catch((Sn) => {
52752
+ console.log(Sn);
52753
52753
  });
52754
52754
  };
52755
- return (_n, Gn) => {
52755
+ return (Sn, Gn) => {
52756
52756
  const Ro = nq("click-outside");
52757
52757
  return ve(), xe(vo, null, [
52758
52758
  cb(Oj, {
@@ -52760,7 +52760,7 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52760
52760
  onConfirmDelete: $t,
52761
52761
  onCancelDelete: Q
52762
52762
  }, null, 8, ["isOpen"]),
52763
- R.row && _n.can(`edit_${R.xprops.permission} || delete_${R.xprops.permission}`) ? Va((ve(), xe("div", aoe, [
52763
+ R.row && Sn.can(`edit_${R.xprops.permission} || delete_${R.xprops.permission}`) ? Va((ve(), xe("div", aoe, [
52764
52764
  P("button", {
52765
52765
  onClick: Ae,
52766
52766
  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",
@@ -52768,7 +52768,7 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52768
52768
  }, coe),
52769
52769
  Va(P("div", ioe, [
52770
52770
  P("ul", uoe, [
52771
- _n.can(`edit_${R.xprops.permission}`) ? (ve(), xe("li", doe, [
52771
+ Sn.can(`edit_${R.xprops.permission}`) ? (ve(), xe("li", doe, [
52772
52772
  P("a", {
52773
52773
  href: R.xprops.route + "/" + R.row.id + "/edit",
52774
52774
  class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
@@ -52777,7 +52777,7 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52777
52777
  _o(" Edit")
52778
52778
  ], 8, moe)
52779
52779
  ])) : yt("", !0),
52780
- _n.can(`delete_${R.xprops.permission}`) ? (ve(), xe("li", goe, [
52780
+ Sn.can(`delete_${R.xprops.permission}`) ? (ve(), xe("li", goe, [
52781
52781
  P("a", {
52782
52782
  href: "#",
52783
52783
  onClick: oc(Pe, ["prevent"]),
@@ -52854,11 +52854,11 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52854
52854
  type: "success",
52855
52855
  duration: 5e3
52856
52856
  });
52857
- }).catch((_n) => {
52858
- console.log(_n);
52857
+ }).catch((Sn) => {
52858
+ console.log(Sn);
52859
52859
  });
52860
52860
  };
52861
- return (_n, Gn) => {
52861
+ return (Sn, Gn) => {
52862
52862
  const Ro = nq("click-outside");
52863
52863
  return ve(), xe(vo, null, [
52864
52864
  cb(Oj, {
@@ -52866,7 +52866,7 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52866
52866
  onConfirmDelete: $t,
52867
52867
  onCancelDelete: Q
52868
52868
  }, null, 8, ["isOpen"]),
52869
- R.row && _n.can(`delete_${R.xprops.permission}`) ? Va((ve(), xe("div", poe, [
52869
+ R.row && Sn.can(`delete_${R.xprops.permission}`) ? Va((ve(), xe("div", poe, [
52870
52870
  P("button", {
52871
52871
  onClick: Ae,
52872
52872
  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",
@@ -52874,7 +52874,7 @@ const ele = /* @__PURE__ */ Jr(Mne, [["render", Vne]]), zne = {
52874
52874
  }, voe),
52875
52875
  Va(P("div", yoe, [
52876
52876
  P("ul", woe, [
52877
- _n.can(`delete_${R.xprops.permission}`) ? (ve(), xe("li", xoe, [
52877
+ Sn.can(`delete_${R.xprops.permission}`) ? (ve(), xe("li", xoe, [
52878
52878
  P("a", {
52879
52879
  href: "#",
52880
52880
  onClick: oc(Pe, ["prevent"]),
@@ -53519,7 +53519,7 @@ const yle = /* @__PURE__ */ Jr(cre, [["render", wre]]), xre = {
53519
53519
  Q.value = Ro, Pe.value = Gs;
53520
53520
  })), $t = () => {
53521
53521
  Ae.value = !1, Q.value(!0);
53522
- }, _n = () => {
53522
+ }, Sn = () => {
53523
53523
  Ae.value = !1, Q.value(!1);
53524
53524
  };
53525
53525
  return de({
@@ -53546,7 +53546,7 @@ const yle = /* @__PURE__ */ Jr(cre, [["render", wre]]), xre = {
53546
53546
  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"
53547
53547
  }, gt(ge.value), 1),
53548
53548
  P("button", {
53549
- onClick: _n,
53549
+ onClick: Sn,
53550
53550
  type: "button",
53551
53551
  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"
53552
53552
  }, gt(G.value), 1)