golden-logic-ui 1.2.284 → 1.2.285

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.
@@ -778,7 +778,7 @@ const G8e = /* @__PURE__ */ Ii(Cme, [["render", Eme]]), Ame = { class: "bg-white
778
778
  function ue(F) {
779
779
  return Array.isArray(F) && F.length > 0 && F.every((tn) => typeof tn == "object" && tn !== null);
780
780
  }
781
- function Se(F) {
781
+ function Ce(F) {
782
782
  return F.every((tn) => typeof tn == "object" && tn !== null);
783
783
  }
784
784
  function te(F) {
@@ -813,7 +813,7 @@ const G8e = /* @__PURE__ */ Ii(Cme, [["render", Eme]]), Ame = { class: "bg-white
813
813
  }
814
814
  function fe() {
815
815
  if (ue(f.value))
816
- return Se(f.value) ? h.value.filter(
816
+ return Ce(f.value) ? h.value.filter(
817
817
  (F) => f.value.some(
818
818
  (tn) => String(tn.id) === String(F.id)
819
819
  )
@@ -823,7 +823,7 @@ const G8e = /* @__PURE__ */ Ii(Cme, [["render", Eme]]), Ame = { class: "bg-white
823
823
  )
824
824
  ) || [];
825
825
  if (s.modelValue)
826
- return Se(s.modelValue) ? h.value.filter(
826
+ return Ce(s.modelValue) ? h.value.filter(
827
827
  (F) => s.modelValue.some(
828
828
  (tn) => String(tn.id) === String(F.id)
829
829
  )
@@ -1621,7 +1621,7 @@ const G8e = /* @__PURE__ */ Ii(Cme, [["render", Eme]]), Ame = { class: "bg-white
1621
1621
  }, ue = (ft) => {
1622
1622
  const Zt = Z.value, Xt = q(Zt);
1623
1623
  Xt && !isNaN(Xt.getTime()) && !te(Xt) ? Z.value = L(Xt) : Zt !== "" && (Z.value = L(a.modelValue)), c("blur-sm", ft);
1624
- }, Se = pc(() => {
1624
+ }, Ce = pc(() => {
1625
1625
  const ft = new Date(C.value, x.value, 1), Zt = new Date(C.value, x.value + 1, 0), Xt = ft.getDay(), Ze = Zt.getDate(), ce = [], Ue = new Date(C.value, x.value, 0).getDate();
1626
1626
  for (let Qe = Xt - 1; Qe >= 0; Qe--)
1627
1627
  ce.push({
@@ -1906,7 +1906,7 @@ const G8e = /* @__PURE__ */ Ii(Cme, [["render", Eme]]), Ame = { class: "bg-white
1906
1906
  }, Vt(Xt), 1))), 128))
1907
1907
  ]),
1908
1908
  U("div", Ige, [
1909
- (Fe(!0), He(so, null, Nr(Se.value, (Xt, Ze) => (Fe(), He("button", {
1909
+ (Fe(!0), He(so, null, Nr(Ce.value, (Xt, Ze) => (Fe(), He("button", {
1910
1910
  key: Ze,
1911
1911
  type: "button",
1912
1912
  onClick: (ce) => ot(Xt),
@@ -2057,28 +2057,28 @@ const G8e = /* @__PURE__ */ Ii(Cme, [["render", Eme]]), Ame = { class: "bg-white
2057
2057
  );
2058
2058
  const h = (Z) => {
2059
2059
  if (!Z) return null;
2060
- let Y, ue, Se;
2060
+ let Y, ue, Ce;
2061
2061
  const te = Z.split(/[-/]/);
2062
2062
  if (te.length !== 3) return new Date(Z);
2063
2063
  switch (s.date_format) {
2064
2064
  case "DD-MM-YYYY":
2065
2065
  case "DD/MM/YYYY":
2066
- Se = parseInt(te[0]), ue = parseInt(te[1]) - 1, Y = parseInt(te[2]);
2066
+ Ce = parseInt(te[0]), ue = parseInt(te[1]) - 1, Y = parseInt(te[2]);
2067
2067
  break;
2068
2068
  case "MM-DD-YYYY":
2069
2069
  case "MM/DD/YYYY":
2070
- ue = parseInt(te[0]) - 1, Se = parseInt(te[1]), Y = parseInt(te[2]);
2070
+ ue = parseInt(te[0]) - 1, Ce = parseInt(te[1]), Y = parseInt(te[2]);
2071
2071
  break;
2072
2072
  default:
2073
- Y = parseInt(te[0]), ue = parseInt(te[1]) - 1, Se = parseInt(te[2]);
2073
+ Y = parseInt(te[0]), ue = parseInt(te[1]) - 1, Ce = parseInt(te[2]);
2074
2074
  break;
2075
2075
  }
2076
- const De = new Date(Y, ue, Se);
2076
+ const De = new Date(Y, ue, Ce);
2077
2077
  return isNaN(De.getTime()) ? null : De;
2078
2078
  }, b = pc(() => f.value.start ? f.value.start : s.min_date_end), x = pc(() => f.value.end ? f.value.end : s.max_date_start), C = (Z, Y) => {
2079
2079
  if (Z && Y) {
2080
- const ue = h(Z), Se = h(Y);
2081
- if (ue && Se && ue > Se)
2080
+ const ue = h(Z), Ce = h(Y);
2081
+ if (ue && Ce && ue > Ce)
2082
2082
  return c.value = "Start date cannot be after end date.", !1;
2083
2083
  }
2084
2084
  return c.value = "", !0;
@@ -3902,7 +3902,7 @@ const iRe = /* @__PURE__ */ Ii(X0e, [["render", Spe], ["__scopeId", "data-v-4c7f
3902
3902
  setup(r, { emit: t }) {
3903
3903
  const s = r, a = t;
3904
3904
  Ys(null);
3905
- const c = Ys({}), f = Ys(!1), h = Ys(0), b = Ys(!1), x = Ys(""), C = Ys(""), T = Ys(!1), R = Ys(1), M = Ys(null), L = Ys(1), q = Ys([]), Z = Ys([]), Y = Ys([]), ue = Ys(null), Se = Ys(null), te = async (ce = "down") => {
3905
+ const c = Ys({}), f = Ys(!1), h = Ys(0), b = Ys(!1), x = Ys(""), C = Ys(""), T = Ys(!1), R = Ys(1), M = Ys(null), L = Ys(1), q = Ys([]), Z = Ys([]), Y = Ys([]), ue = Ys(null), Ce = Ys(null), te = async (ce = "down") => {
3906
3906
  if (!T.value) {
3907
3907
  T.value = !0;
3908
3908
  try {
@@ -4004,7 +4004,7 @@ const iRe = /* @__PURE__ */ Ii(X0e, [["render", Spe], ["__scopeId", "data-v-4c7f
4004
4004
  ce.target.id != s.field_name + "search" + C.value && ce.target.id != s.field_name && !ce.target.classList.contains("showOptions" + C.value) && (Ze(), h.value = 0, b.value = !1);
4005
4005
  }
4006
4006
  function Kt(ce) {
4007
- const Ue = `${ce}${C.value}`, ye = document.getElementById(Ue), Qe = Se.value;
4007
+ const Ue = `${ce}${C.value}`, ye = document.getElementById(Ue), Qe = Ce.value;
4008
4008
  if (ye && Qe) {
4009
4009
  const Re = ye.getBoundingClientRect(), vt = Qe.getBoundingClientRect();
4010
4010
  Re.top < vt.top ? Qe.scrollTop -= vt.top - Re.top : Re.bottom > vt.bottom && (Qe.scrollTop += Re.bottom - vt.bottom);
@@ -4179,7 +4179,7 @@ const iRe = /* @__PURE__ */ Ii(X0e, [["render", Spe], ["__scopeId", "data-v-4c7f
4179
4179
  class: "overflow-y-auto max-h-64 px-1 py-1",
4180
4180
  onScroll: De,
4181
4181
  ref_key: "dropdownRef",
4182
- ref: Se
4182
+ ref: Ce
4183
4183
  }, [
4184
4184
  q.value.length ? (Fe(!0), He(so, { key: 0 }, Nr(q.value, (ye, Qe) => (Fe(), He("div", {
4185
4185
  class: Cn([
@@ -4404,7 +4404,7 @@ function B1e() {
4404
4404
  }, q = (e) => {
4405
4405
  const o = typeof e;
4406
4406
  return e === null ? "null" : o === "object" && Array.isArray(e) ? "array" : o === "object" && L(e, String, (i, u) => u.isPrototypeOf(i)) ? "string" : o;
4407
- }, Z = (e) => (o) => q(o) === e, Y = (e) => (o) => typeof o === e, ue = (e) => (o) => e === o, Se = (e, o) => De(e) && L(e, o, (i, u) => M(i) === u), te = Z("string"), De = Z("object"), Ct = (e) => Se(e, Object), ot = Z("array"), G = ue(null), rt = Y("boolean"), at = ue(void 0), wt = (e) => e == null, Me = (e) => !wt(e), fe = Y("function"), Kt = Y("number"), xt = (e, o) => {
4407
+ }, Z = (e) => (o) => q(o) === e, Y = (e) => (o) => typeof o === e, ue = (e) => (o) => e === o, Ce = (e, o) => De(e) && L(e, o, (i, u) => M(i) === u), te = Z("string"), De = Z("object"), Ct = (e) => Ce(e, Object), ot = Z("array"), G = ue(null), rt = Y("boolean"), at = ue(void 0), wt = (e) => e == null, Me = (e) => !wt(e), fe = Y("function"), Kt = Y("number"), xt = (e, o) => {
4408
4408
  if (ot(e)) {
4409
4409
  for (let i = 0, u = e.length; i < u; ++i)
4410
4410
  if (!o(e[i]))
@@ -5517,7 +5517,7 @@ function B1e() {
5517
5517
  }, yi = (e) => {
5518
5518
  const o = e.toLowerCase();
5519
5519
  return o === "svg" ? "svg" : o === "math" ? "math" : "html";
5520
- }, B = (e) => yi(e) !== "html", z = (e) => B(e.nodeName), ie = (e) => yi(e.nodeName), Ce = [
5520
+ }, B = (e) => yi(e) !== "html", z = (e) => B(e.nodeName), ie = (e) => yi(e.nodeName), Se = [
5521
5521
  "svg",
5522
5522
  "math"
5523
5523
  ], ut = () => {
@@ -5531,7 +5531,7 @@ function B1e() {
5531
5531
  };
5532
5532
  }, Ee = "data-mce-block", vn = (e) => _n(Qs(e), (o) => !/[A-Z]/.test(o)), ns = (e) => pt(vn(e), (o) => {
5533
5533
  const i = CSS.escape(o);
5534
- return `${i}:` + pt(Ce, (u) => `not(${u} ${i})`).join(":");
5534
+ return `${i}:` + pt(Se, (u) => `not(${u} ${i})`).join(":");
5535
5535
  }).join(","), rs = (e, o) => Me(o.querySelector(e)) ? (o.setAttribute(Ee, "true"), o.getAttribute("data-mce-selected") === "inline-boundary" && o.removeAttribute("data-mce-selected"), !0) : (o.removeAttribute(Ee), !1), qs = (e, o) => {
5536
5536
  const i = ns(e.getTransparentElements()), u = ns(e.getBlockElements());
5537
5537
  return _n(o.querySelectorAll(i), (m) => rs(u, m));
@@ -8002,7 +8002,7 @@ Required: ` + o.join(", "));
8002
8002
  const m = u.split("="), v = m[0], w = m.length > 1 ? m[1] : v;
8003
8003
  return i[Wo(v)] = Wo(w), i;
8004
8004
  }, {});
8005
- }, OO = (e) => Se(e, RegExp), Kn = (e) => (o) => o.options.get(e), H0 = (e) => te(e) || De(e), Cw = (e, o = "") => (i) => {
8005
+ }, OO = (e) => Ce(e, RegExp), Kn = (e) => (o) => o.options.get(e), H0 = (e) => te(e) || De(e), Cw = (e, o = "") => (i) => {
8006
8006
  const u = te(i);
8007
8007
  if (u)
8008
8008
  if (i.indexOf("=") !== -1) {
@@ -18035,7 +18035,7 @@ Input object: ` + _8(e.input), X3 = (e, o) => FL(e, eo(o, tk)), Xj = ft(Fj), q3
18035
18035
  getLastRng: o.get
18036
18036
  };
18037
18037
  }, fE = (e, o) => (nn.each(o, (i) => {
18038
- Se(i, RegExp) ? e = e.replace(i, "") : e = e.replace(i[0], i[1]);
18038
+ Ce(i, RegExp) ? e = e.replace(i, "") : e = e.replace(i[0], i[1]);
18039
18039
  }), e), EY = (e) => {
18040
18040
  const o = km(), i = Xm({}, o);
18041
18041
  let u = "";
@@ -20447,7 +20447,7 @@ Input object: ` + _8(e.input), X3 = (e, o) => FL(e, eo(o, tk)), Xj = ft(Fj), q3
20447
20447
  case "object[]":
20448
20448
  return (i) => xt(i, De);
20449
20449
  case "regexp":
20450
- return (i) => Se(i, RegExp);
20450
+ return (i) => Ce(i, RegExp);
20451
20451
  default:
20452
20452
  return vt;
20453
20453
  }
@@ -21559,7 +21559,7 @@ function I1e() {
21559
21559
  }, s = (n) => {
21560
21560
  const l = typeof n;
21561
21561
  return n === null ? "null" : l === "object" && Array.isArray(n) ? "array" : l === "object" && t(n, String, (d, g) => g.isPrototypeOf(d)) ? "string" : l;
21562
- }, a = (n) => (l) => s(l) === n, c = (n) => (l) => typeof l === n, f = (n) => (l) => n === l, h = (n, l) => x(n) && t(n, l, (d, g) => r(d) === g), b = a("string"), x = a("object"), C = (n) => h(n, Object), T = a("array"), R = f(null), M = c("boolean"), L = f(void 0), q = (n) => n == null, Z = (n) => !q(n), Y = c("function"), ue = c("number"), Se = (n, l) => {
21562
+ }, a = (n) => (l) => s(l) === n, c = (n) => (l) => typeof l === n, f = (n) => (l) => n === l, h = (n, l) => x(n) && t(n, l, (d, g) => r(d) === g), b = a("string"), x = a("object"), C = (n) => h(n, Object), T = a("array"), R = f(null), M = c("boolean"), L = f(void 0), q = (n) => n == null, Z = (n) => !q(n), Y = c("function"), ue = c("number"), Ce = (n, l) => {
21563
21563
  if (T(n)) {
21564
21564
  for (let d = 0, g = n.length; d < g; ++d)
21565
21565
  if (!l(n[d]))
@@ -22746,7 +22746,7 @@ function I1e() {
22746
22746
  ` + Ip(n.errors).join(`
22747
22747
  `) + `
22748
22748
 
22749
- Input object: ` + Ab(n.input), Tl = (n, l) => Ar(n, Ut(l, As)), Vy = (n, l) => ym(n, l), Ia = Q, zl = K, Rb = (n) => _l((l) => ce(n, l) ? po.value(l) : po.error(`Unsupported value: "${l}", choose one of "${n.join(", ")}".`)), on = (n) => Ia(n, n, Fs(), Fa()), Zl = (n, l) => Ia(n, n, Fs(), l), zp = (n) => Zl(n, Om), ca = (n) => Zl(n, sn), vu = (n, l) => Ia(n, n, Fs(), Rb(l)), Ul = (n) => Zl(n, Oh), Qc = (n, l) => Ia(n, n, ti(), md((d) => bi.serror("The field: " + n + " is forbidden. " + l))), vi = (n, l) => Ia(n, n, Fs(), As(l)), Mb = (n, l) => Ia(n, n, Fs(), Vp(l)), Dr = (n, l) => Ia(n, n, Fs(), cl(l)), Bo = (n) => Ia(n, n, ti(), Fa()), gd = (n, l) => Ia(n, n, ti(), l), Vc = (n) => gd(n, Om), yi = (n) => gd(n, sn), B = (n, l) => gd(n, Rb(l)), z = (n) => gd(n, Oh), ie = (n, l) => gd(n, cl(l)), Ce = (n, l) => gd(n, As(l)), ut = (n, l) => gd(n, Lc(l)), Ee = (n, l) => Ia(n, n, Or(l), Fa()), vn = (n, l, d) => Ia(n, n, Or(l), d), ns = (n, l) => vn(n, l, Om), rs = (n, l) => vn(n, l, sn), qs = (n, l, d) => vn(n, l, Rb(d)), Co = (n, l) => vn(n, l, C0), Vs = (n, l) => vn(n, l, Oh), Gr = (n, l) => vn(n, l, k0), pa = (n, l, d) => vn(n, l, cl(d)), Oc = (n, l, d) => vn(n, l, As(d)), Vi = { generate: (n) => {
22749
+ Input object: ` + Ab(n.input), Tl = (n, l) => Ar(n, Ut(l, As)), Vy = (n, l) => ym(n, l), Ia = Q, zl = K, Rb = (n) => _l((l) => ce(n, l) ? po.value(l) : po.error(`Unsupported value: "${l}", choose one of "${n.join(", ")}".`)), on = (n) => Ia(n, n, Fs(), Fa()), Zl = (n, l) => Ia(n, n, Fs(), l), zp = (n) => Zl(n, Om), ca = (n) => Zl(n, sn), vu = (n, l) => Ia(n, n, Fs(), Rb(l)), Ul = (n) => Zl(n, Oh), Qc = (n, l) => Ia(n, n, ti(), md((d) => bi.serror("The field: " + n + " is forbidden. " + l))), vi = (n, l) => Ia(n, n, Fs(), As(l)), Mb = (n, l) => Ia(n, n, Fs(), Vp(l)), Dr = (n, l) => Ia(n, n, Fs(), cl(l)), Bo = (n) => Ia(n, n, ti(), Fa()), gd = (n, l) => Ia(n, n, ti(), l), Vc = (n) => gd(n, Om), yi = (n) => gd(n, sn), B = (n, l) => gd(n, Rb(l)), z = (n) => gd(n, Oh), ie = (n, l) => gd(n, cl(l)), Se = (n, l) => gd(n, As(l)), ut = (n, l) => gd(n, Lc(l)), Ee = (n, l) => Ia(n, n, Or(l), Fa()), vn = (n, l, d) => Ia(n, n, Or(l), d), ns = (n, l) => vn(n, l, Om), rs = (n, l) => vn(n, l, sn), qs = (n, l, d) => vn(n, l, Rb(d)), Co = (n, l) => vn(n, l, C0), Vs = (n, l) => vn(n, l, Oh), Gr = (n, l) => vn(n, l, k0), pa = (n, l, d) => vn(n, l, cl(d)), Oc = (n, l, d) => vn(n, l, As(d)), Vi = { generate: (n) => {
22750
22750
  if (!T(n))
22751
22751
  throw new Error("cases must be an array");
22752
22752
  if (n.length === 0)
@@ -22993,10 +22993,10 @@ Required: ` + l.join(", "));
22993
22993
  }), Z2 = (n, l, d) => Th((g, y) => {
22994
22994
  d(g, n, l);
22995
22995
  }), Zb = (n, l, d, g, y, S) => {
22996
- const k = Lc(n), D = Ce(l, [ut("config", n)]);
22996
+ const k = Lc(n), D = Se(l, [ut("config", n)]);
22997
22997
  return o_(k, D, l, d, g, y, S);
22998
22998
  }, IA = (n, l, d, g, y, S) => {
22999
- const k = n, D = Ce(l, [gd("config", n)]);
22999
+ const k = n, D = Se(l, [gd("config", n)]);
23000
23000
  return o_(k, D, l, d, g, y, S);
23001
23001
  }, Yr = (n, l, d) => n_((y, ...S) => {
23002
23002
  const k = [y].concat(S);
@@ -23443,7 +23443,7 @@ Required: ` + l.join(", "));
23443
23443
  on("numRows")
23444
23444
  ]), nw = () => Zl("markers", B0()), nv = () => vi("markers", [on("backgroundMenu")].concat(iO()).concat(aO())), Ag = (n) => vi("markers", Re(n, on)), Tm = (n, l, d) => (XA(), Ia(l, l, d, _l((g) => po.value((...y) => g.apply(void 0, y))))), Ro = (n) => Tm("onHandler", n, Or(te)), Uc = (n) => Tm("onKeyboardHandler", n, Or(F.none)), I0 = (n) => Tm("onHandler", n, Fs()), lO = (n) => Tm("onKeyboardHandler", n, Fs()), ni = (n, l) => zl(n, G(l)), sv = (n) => zl(n, rt), Dh = G(F0);
23445
23445
  var jA = [
23446
- Ce("contextual", [
23446
+ Se("contextual", [
23447
23447
  ca("fadeInClass"),
23448
23448
  ca("fadeOutClass"),
23449
23449
  ca("transitionClass"),
@@ -23546,7 +23546,7 @@ Check the ` + wg() + " event handlers"), !1) : !0;
23546
23546
  value: n.uid,
23547
23547
  writable: !0
23548
23548
  }), yu(uO, n)), y_ = (n) => eo(n.dom, uO), V0 = (n) => pn(n, uO), a1 = (n) => Kp((l, ...d) => n(l.getApis(), l, ...d), n), O_ = (n, l) => {
23549
- const d = Re(l, (y) => Ce(y.name(), [
23549
+ const d = Re(l, (y) => Se(y.name(), [
23550
23550
  on("config"),
23551
23551
  Ee("state", vd)
23552
23552
  ])), g = Pr("component.behaviours", As(d), n.behaviours).fold((y) => {
@@ -24375,7 +24375,7 @@ Receiver: ` + tf(l.element), H, S.data);
24375
24375
  (function(n) {
24376
24376
  n.TopToBottom = "toptobottom", n.BottomToTop = "bottomtotop";
24377
24377
  })(Mh || (Mh = {}));
24378
- const PO = "data-alloy-vertical-dir", C5 = (n) => bO(n, (l) => co(l) && ro(l, "data-alloy-vertical-dir") === Mh.BottomToTop), Mg = () => Ce("layouts", [
24378
+ const PO = "data-alloy-vertical-dir", C5 = (n) => bO(n, (l) => co(l) && ro(l, "data-alloy-vertical-dir") === Mh.BottomToTop), Mg = () => Se("layouts", [
24379
24379
  on("onLtr"),
24380
24380
  on("onRtl"),
24381
24381
  Bo("onBottomLtr"),
@@ -24748,7 +24748,7 @@ Receiver: ` + tf(l.element), H, S.data);
24748
24748
  Bo("getBounds")
24749
24749
  ], kv = [
24750
24750
  Zl("anchor", Cv),
24751
- Ce("transition", FO)
24751
+ Se("transition", FO)
24752
24752
  ], IO = () => {
24753
24753
  const n = document.documentElement;
24754
24754
  return g5(0, 0, n.clientWidth, n.clientHeight);
@@ -24958,7 +24958,7 @@ Receiver: ` + tf(l.element), H, S.data);
24958
24958
  state: H5
24959
24959
  }), Nm = G("dismiss.popups"), Bm = G("reposition.popups"), UO = G("mouse.released"), Jw = Lc([
24960
24960
  Ee("isExtraPart", xt),
24961
- Ce("fireEventInstead", [Ee("event", Cg())])
24961
+ Se("fireEventInstead", [Ee("event", Cg())])
24962
24962
  ]), ku = (n) => {
24963
24963
  const l = Qi("Dismissal", Jw, n);
24964
24964
  return {
@@ -24970,7 +24970,7 @@ Receiver: ` + tf(l.element), H, S.data);
24970
24970
  }
24971
24971
  };
24972
24972
  }, z5 = Lc([
24973
- Ce("fireEventInstead", [Ee("event", B2())]),
24973
+ Se("fireEventInstead", [Ee("event", B2())]),
24974
24974
  Ul("doReposition")
24975
24975
  ]), Y0 = (n) => {
24976
24976
  const l = Qi("Reposition", z5, n);
@@ -26864,8 +26864,8 @@ Components: ` + JSON.stringify(l.components, null, 2));
26864
26864
  In,
26865
26865
  Wc
26866
26866
  ]),
26867
- Ce("fireDismissalEventInstead", [Ee("event", Cg())]),
26868
- Ce("fireRepositionEventInstead", [Ee("event", B2())]),
26867
+ Se("fireDismissalEventInstead", [Ee("event", Cg())]),
26868
+ Se("fireRepositionEventInstead", [Ee("event", B2())]),
26869
26869
  Ee("getRelated", F.none),
26870
26870
  Ee("isExtraPart", xt),
26871
26871
  Ee("eventOrder", F.none)
@@ -27036,7 +27036,7 @@ Components: ` + JSON.stringify(l.components, null, 2));
27036
27036
  return us(d.length > 0, d);
27037
27037
  }, LS = (n) => T4(n).fold(() => {
27038
27038
  const l = x4(n);
27039
- return Se(l, b) && l.length > 0;
27039
+ return Ce(l, b) && l.length > 0;
27040
27040
  }, St), XP = (n) => O4(n) === dx.bottom, E4 = (n) => {
27041
27041
  var l;
27042
27042
  if (!n.inline)
@@ -28762,7 +28762,7 @@ Components: ` + JSON.stringify(l.components, null, 2));
28762
28762
  contextsizeinputform: Zv
28763
28763
  }), hB = (n) => Pr("ContextForm", cC, n), MD = Zg.concat([jl("contexttoolbarbutton")]), ND = As([
28764
28764
  jl("contexttoolbar"),
28765
- Ce("launch", MD),
28765
+ Se("launch", MD),
28766
28766
  Zl("items", yh([
28767
28767
  sn,
28768
28768
  Vp([
@@ -29521,13 +29521,13 @@ Components: ` + JSON.stringify(l.components, null, 2));
29521
29521
  });
29522
29522
  return l;
29523
29523
  }, qm = (n) => (l) => l.options.get(n), o$ = "#000000", TW = (n) => {
29524
- const l = n.options.register, d = (S) => Se(S, b) ? {
29524
+ const l = n.options.register, d = (S) => Ce(S, b) ? {
29525
29525
  value: _W(S),
29526
29526
  valid: !0
29527
29527
  } : {
29528
29528
  valid: !1,
29529
29529
  message: "Must be an array of strings."
29530
- }, g = (S) => Se(S, b) ? {
29530
+ }, g = (S) => Ce(S, b) ? {
29531
29531
  value: oF(S),
29532
29532
  valid: !0
29533
29533
  } : {
@@ -31251,7 +31251,7 @@ The conflicting element is` + (Ve(J.element) ? " " : " not ") + "already in the
31251
31251
  }), PX = [
31252
31252
  on("invalidClass"),
31253
31253
  Ee("getRoot", F.none),
31254
- Ce("notify", [
31254
+ Se("notify", [
31255
31255
  Ee("aria", "alert"),
31256
31256
  Ee("getContainer", F.none),
31257
31257
  Ee("validHtml", ""),
@@ -31259,7 +31259,7 @@ The conflicting element is` + (Ve(J.element) ? " " : " not ") + "already in the
31259
31259
  Ro("onInvalid"),
31260
31260
  Ro("onValidate")
31261
31261
  ]),
31262
- Ce("validator", [
31262
+ Se("validator", [
31263
31263
  on("validate"),
31264
31264
  Ee("onEvent", "input"),
31265
31265
  Ee("validateOnLoad", !0)
@@ -36337,7 +36337,7 @@ The conflicting element is` + (Ve(J.element) ? " " : " not ") + "already in the
36337
36337
  on("lazySink"),
36338
36338
  Ul("fetch"),
36339
36339
  z("getBounds"),
36340
- Ce("fireDismissalEventInstead", [Ee("event", Cg())]),
36340
+ Se("fireDismissalEventInstead", [Ee("event", Cg())]),
36341
36341
  Mg(),
36342
36342
  Ro("onToggled")
36343
36343
  ]), YG = G([
@@ -38694,7 +38694,7 @@ The conflicting element is` + (Ve(J.element) ? " " : " not ") + "already in the
38694
38694
  }, gK = (n) => {
38695
38695
  const l = n.split("|");
38696
38696
  return Re(l, (d) => ({ items: d.trim().split(" ") }));
38697
- }, pK = (n) => Se(n, (l) => (eo(l, "name") || eo(l, "label")) && eo(l, "items")), vE = (n) => {
38697
+ }, pK = (n) => Ce(n, (l) => (eo(l, "name") || eo(l, "label")) && eo(l, "items")), vE = (n) => {
38698
38698
  const l = n.toolbar, d = n.buttons;
38699
38699
  return l === !1 ? [] : l === void 0 || l === !0 ? mK(d) : b(l) ? gK(l) : pK(l) ? l : (console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"), []);
38700
38700
  }, bK = (n, l, d, g, y, S) => pn(l, d.toLowerCase()).orThunk(() => S.bind((k) => Ks(k, (D) => pn(l, D + d.toLowerCase())))).fold(() => pn(vQ, d.toLowerCase()).map((k) => k(n, y)), (k) => k.type === "grouptoolbarbutton" && !g ? (console.warn(`Ignoring the '${d}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`), F.none()) : bQ(k, y, n, d.toLowerCase())), fy = (n, l, d, g) => {
@@ -38709,7 +38709,7 @@ The conflicting element is` + (Ve(J.element) ? " " : " not ") + "already in the
38709
38709
  return an(S, (k) => k.items.length > 0);
38710
38710
  }, fk = (n, l, d, g) => {
38711
38711
  const y = l.mainUi.outerContainer, S = d.toolbar, k = d.buttons;
38712
- if (Se(S, b)) {
38712
+ if (Ce(S, b)) {
38713
38713
  const D = S.map((N) => {
38714
38714
  const H = {
38715
38715
  toolbar: N,
@@ -40202,7 +40202,7 @@ The conflicting element is` + (Ve(J.element) ? " " : " not ") + "already in the
40202
40202
  processor: (d) => d === !1 ? {
40203
40203
  value: [],
40204
40204
  valid: !0
40205
- } : b(d) || Se(d, b) ? {
40205
+ } : b(d) || Ce(d, b) ? {
40206
40206
  value: UR(d),
40207
40207
  valid: !0
40208
40208
  } : {
@@ -40590,7 +40590,7 @@ The conflicting element is` + (Ve(J.element) ? " " : " not ") + "already in the
40590
40590
  },
40591
40591
  events: d
40592
40592
  }));
40593
- var RJ = Ce("snaps", [
40593
+ var RJ = Se("snaps", [
40594
40594
  on("getSnapPoints"),
40595
40595
  Ro("onSensor"),
40596
40596
  on("leftAttr"),
@@ -43379,7 +43379,7 @@ function L1e() {
43379
43379
  const O = typeof p;
43380
43380
  return p === null ? "null" : O === "object" && Array.isArray(p) ? "array" : O === "object" && t(p, String, (_, A) => A.isPrototypeOf(_)) ? "string" : O;
43381
43381
  }, a = (p) => (O) => s(O) === p, c = (p) => (O) => typeof O === p, f = (p) => (O) => p === O, h = a("string"), b = a("object"), x = a("array"), C = f(null), T = c("boolean"), R = f(void 0), M = (p) => p == null, L = (p) => !M(p), q = c("function"), Z = c("number"), Y = () => {
43382
- }, ue = (p, O) => (..._) => p(O.apply(null, _)), Se = (p, O) => (_) => p(O(_)), te = (p) => () => p, De = (p) => p, Ct = (p, O) => p === O;
43382
+ }, ue = (p, O) => (..._) => p(O.apply(null, _)), Ce = (p, O) => (_) => p(O(_)), te = (p) => () => p, De = (p) => p, Ct = (p, O) => p === O;
43383
43383
  function ot(p, ...O) {
43384
43384
  return (..._) => {
43385
43385
  const A = O.concat(_);
@@ -43831,7 +43831,7 @@ function L1e() {
43831
43831
  if (O == null || O.ownerDocument === null)
43832
43832
  return !1;
43833
43833
  const _ = O.ownerDocument;
43834
- return Wt(bt.fromDom(O)).fold(() => _.body.contains(O), Se(ro, bn));
43834
+ return Wt(bt.fromDom(O)).fold(() => _.body.contains(O), Ce(ro, bn));
43835
43835
  }, zs = () => oe(bt.fromDom(document)), oe = (p) => {
43836
43836
  const O = p.dom.body;
43837
43837
  if (O == null)
@@ -44498,7 +44498,7 @@ function L1e() {
44498
44498
  pixelSize: yi,
44499
44499
  percentageSize: Vc,
44500
44500
  noneSize: gd
44501
- }, Ce = (p, O, _, A, V, X) => ({
44501
+ }, Se = (p, O, _, A, V, X) => ({
44502
44502
  minRow: p,
44503
44503
  minCol: O,
44504
44504
  maxRow: _,
@@ -44515,7 +44515,7 @@ function L1e() {
44515
44515
  const dn = Tt.row, Bn = dn + Tt.rowspan - 1, On = Tt.column, xn = On + Tt.colspan - 1;
44516
44516
  dn < V ? V = dn : Bn > re && (re = Bn), On < X ? X = On : xn > ve && (ve = xn);
44517
44517
  }
44518
- }), Ce(V, X, re, ve, xe, st);
44518
+ }), Se(V, X, re, ve, xe, st);
44519
44519
  }, Ee = (p, O, _) => {
44520
44520
  const A = p[_].element, V = bt.fromTag("td");
44521
44521
  dr(V, bt.fromTag("br")), (O ? dr : na)(A, V);
@@ -47666,7 +47666,7 @@ function Q1e() {
47666
47666
  return Q.apply(null, Ge);
47667
47667
  };
47668
47668
  }
47669
- const Se = (Q) => (K) => !Q(K), te = Z(!1);
47669
+ const Ce = (Q) => (K) => !Q(K), te = Z(!1);
47670
47670
  class De {
47671
47671
  constructor(K, le) {
47672
47672
  this.tag = K, this.value = le;
@@ -48259,7 +48259,7 @@ function Q1e() {
48259
48259
  fe(Kt(Q, _t), (le) => sr(K, le));
48260
48260
  }, g0 = (Q) => {
48261
48261
  const K = Me(bn(Q), ke.fromDom);
48262
- return vt(tn(K, Se(Mi)), tn(Xt(K), Se(Mi)), (le, Ge) => ({
48262
+ return vt(tn(K, Ce(Mi)), tn(Xt(K), Ce(Mi)), (le, Ge) => ({
48263
48263
  start: le,
48264
48264
  end: Ge
48265
48265
  }));
@@ -48824,15 +48824,15 @@ function V1e() {
48824
48824
  return !1;
48825
48825
  }, Z = () => {
48826
48826
  }, Y = (pe) => () => pe, ue = (pe, Ve) => pe === Ve;
48827
- class Se {
48827
+ class Ce {
48828
48828
  constructor(Ve, mt) {
48829
48829
  this.tag = Ve, this.value = mt;
48830
48830
  }
48831
48831
  static some(Ve) {
48832
- return new Se(!0, Ve);
48832
+ return new Ce(!0, Ve);
48833
48833
  }
48834
48834
  static none() {
48835
- return Se.singletonNone;
48835
+ return Ce.singletonNone;
48836
48836
  }
48837
48837
  fold(Ve, mt) {
48838
48838
  return this.tag ? mt(this.value) : Ve();
@@ -48844,10 +48844,10 @@ function V1e() {
48844
48844
  return !this.tag;
48845
48845
  }
48846
48846
  map(Ve) {
48847
- return this.tag ? Se.some(Ve(this.value)) : Se.none();
48847
+ return this.tag ? Ce.some(Ve(this.value)) : Ce.none();
48848
48848
  }
48849
48849
  bind(Ve) {
48850
- return this.tag ? Ve(this.value) : Se.none();
48850
+ return this.tag ? Ve(this.value) : Ce.none();
48851
48851
  }
48852
48852
  exists(Ve) {
48853
48853
  return this.tag && Ve(this.value);
@@ -48856,7 +48856,7 @@ function V1e() {
48856
48856
  return !this.tag || Ve(this.value);
48857
48857
  }
48858
48858
  filter(Ve) {
48859
- return !this.tag || Ve(this.value) ? this : Se.none();
48859
+ return !this.tag || Ve(this.value) ? this : Ce.none();
48860
48860
  }
48861
48861
  getOr(Ve) {
48862
48862
  return this.tag ? this.value : Ve;
@@ -48876,7 +48876,7 @@ function V1e() {
48876
48876
  throw new Error(Ve ?? "Called getOrDie on None");
48877
48877
  }
48878
48878
  static from(Ve) {
48879
- return M(Ve) ? Se.some(Ve) : Se.none();
48879
+ return M(Ve) ? Ce.some(Ve) : Ce.none();
48880
48880
  }
48881
48881
  getOrNull() {
48882
48882
  return this.tag ? this.value : null;
@@ -48894,7 +48894,7 @@ function V1e() {
48894
48894
  return this.tag ? `some(${this.value})` : "none()";
48895
48895
  }
48896
48896
  }
48897
- Se.singletonNone = new Se(!1);
48897
+ Ce.singletonNone = new Ce(!1);
48898
48898
  const te = Array.prototype.indexOf, De = Array.prototype.push, Ct = (pe, Ve) => te.call(pe, Ve), ot = (pe, Ve) => Ct(pe, Ve) > -1, G = (pe, Ve) => {
48899
48899
  const mt = pe.length, Wt = new Array(mt);
48900
48900
  for (let bn = 0; bn < mt; bn++) {
@@ -48923,7 +48923,7 @@ function V1e() {
48923
48923
  if (Wt.isSome())
48924
48924
  return Wt;
48925
48925
  }
48926
- return Se.none();
48926
+ return Ce.none();
48927
48927
  }, Kt = (pe, Ve, mt = ue) => pe.exists((Wt) => mt(Wt, Ve)), xt = (pe) => {
48928
48928
  const Ve = [], mt = (Wt) => {
48929
48929
  Ve.push(Wt);
@@ -48931,7 +48931,7 @@ function V1e() {
48931
48931
  for (let Wt = 0; Wt < pe.length; Wt++)
48932
48932
  pe[Wt].each(mt);
48933
48933
  return Ve;
48934
- }, St = (pe, Ve) => pe ? Se.some(Ve) : Se.none(), F = (pe) => (Ve) => Ve.options.get(pe), tn = (pe) => {
48934
+ }, St = (pe, Ve) => pe ? Ce.some(Ve) : Ce.none(), F = (pe) => (Ve) => Ve.options.get(pe), tn = (pe) => {
48935
48935
  const Ve = pe.options.register;
48936
48936
  Ve("link_assume_external_targets", {
48937
48937
  processor: (mt) => {
@@ -49010,7 +49010,7 @@ function V1e() {
49010
49010
  }, ci = (pe, Ve) => {
49011
49011
  const mt = ["noopener"], Wt = pe ? pe.split(/\s+/) : [], bn = (zs) => _n.trim(zs.sort().join(" ")), Gt = (zs) => (zs = ts(zs), zs.length > 0 ? zs.concat(mt) : mt), ts = (zs) => zs.filter((oe) => _n.inArray(mt, oe) === -1), ro = Ve ? Gt(Wt) : ts(Wt);
49012
49012
  return ro.length > 0 ? bn(ro) : "";
49013
- }, ur = (pe) => pe.replace(/\uFEFF/g, ""), Ks = (pe, Ve) => (Ve = Ve || Ho(pe.selection.getRng())[0] || pe.selection.getNode(), Js(Ve) ? Se.from(pe.dom.select("a[href]", Ve)[0]) : Se.from(pe.dom.getParent(Ve, "a[href]"))), lo = (pe, Ve) => Ks(pe, Ve).isSome(), Cr = (pe, Ve) => {
49013
+ }, ur = (pe) => pe.replace(/\uFEFF/g, ""), Ks = (pe, Ve) => (Ve = Ve || Ho(pe.selection.getRng())[0] || pe.selection.getNode(), Js(Ve) ? Ce.from(pe.dom.select("a[href]", Ve)[0]) : Ce.from(pe.dom.getParent(Ve, "a[href]"))), lo = (pe, Ve) => Ks(pe, Ve).isSome(), Cr = (pe, Ve) => {
49014
49014
  const mt = Ve.fold(() => pe.getContent({ format: "text" }), (Wt) => Wt.innerText || Wt.textContent || "");
49015
49015
  return ur(mt);
49016
49016
  }, Ho = (pe) => ir(pe, Bs), Ut = (pe) => _n.grep(pe, Bs), Nn = (pe) => Ut(pe).length > 0, Pn = (pe) => Ho(pe).length > 0, Ln = (pe) => {
@@ -49032,7 +49032,7 @@ function V1e() {
49032
49032
  const Wt = ci(mt.rel, mt.target === "_blank");
49033
49033
  mt.rel = Wt || null;
49034
49034
  }
49035
- return Se.from(mt.target).isNone() && Ue(pe) === !1 && (mt.target = Ze(pe)), mt.href = kr(mt.href, ft(pe)), mt;
49035
+ return Ce.from(mt.target).isNone() && Ue(pe) === !1 && (mt.target = Ze(pe)), mt.href = kr(mt.href, ft(pe)), mt;
49036
49036
  }, Br = (pe, Ve, mt, Wt) => {
49037
49037
  mt.each((Gt) => {
49038
49038
  pt(Ve, "innerText") ? Ve.innerText = Gt : Ve.textContent = Gt;
@@ -49129,7 +49129,7 @@ function V1e() {
49129
49129
  });
49130
49130
  }
49131
49131
  }), mt;
49132
- }, Da = (pe = us) => (Ve) => Se.from(Ve).map((mt) => di(mt, pe)), je = {
49132
+ }, Da = (pe = us) => (Ve) => Ce.from(Ve).map((mt) => di(mt, pe)), je = {
49133
49133
  sanitize: (pe) => Da(us)(pe),
49134
49134
  sanitizeWith: Da,
49135
49135
  createUi: (pe, Ve) => (mt) => ({
@@ -49150,24 +49150,24 @@ function V1e() {
49150
49150
  }
49151
49151
  },
49152
49152
  text: Gt ? pe : ts.text
49153
- })) : Se.none();
49154
- }, et = (pe, Ve) => Ve === "link" ? pe.link : Ve === "anchor" ? pe.anchor : Se.none(), he = {
49153
+ })) : Ce.none();
49154
+ }, et = (pe, Ve) => Ve === "link" ? pe.link : Ve === "anchor" ? pe.anchor : Ce.none(), he = {
49155
49155
  init: (pe, Ve) => {
49156
49156
  const mt = {
49157
49157
  text: pe.text,
49158
49158
  title: pe.title
49159
49159
  }, Wt = (zs) => {
49160
49160
  var oe;
49161
- return St(mt.title.length <= 0, Se.from((oe = zs.meta) === null || oe === void 0 ? void 0 : oe.title).getOr(""));
49161
+ return St(mt.title.length <= 0, Ce.from((oe = zs.meta) === null || oe === void 0 ? void 0 : oe.title).getOr(""));
49162
49162
  }, bn = (zs) => {
49163
49163
  var oe;
49164
- return St(mt.text.length <= 0, Se.from((oe = zs.meta) === null || oe === void 0 ? void 0 : oe.text).getOr(zs.value));
49164
+ return St(mt.text.length <= 0, Ce.from((oe = zs.meta) === null || oe === void 0 ? void 0 : oe.text).getOr(zs.value));
49165
49165
  }, Gt = (zs) => {
49166
49166
  const oe = bn(zs.url), ge = Wt(zs.url);
49167
- return oe.isSome() || ge.isSome() ? Se.some({
49167
+ return oe.isSome() || ge.isSome() ? Ce.some({
49168
49168
  ...oe.map((Ke) => ({ text: Ke })).getOr({}),
49169
49169
  ...ge.map((Ke) => ({ title: Ke })).getOr({})
49170
- }) : Se.none();
49170
+ }) : Ce.none();
49171
49171
  }, ts = (zs, oe) => {
49172
49172
  const ge = et(Ve, oe).getOr([]);
49173
49173
  return tt(mt.text, oe, ge, zs);
@@ -49177,7 +49177,7 @@ function V1e() {
49177
49177
  return ge === "url" ? Gt(zs()) : ot([
49178
49178
  "anchor",
49179
49179
  "link"
49180
- ], ge) ? ts(zs(), ge) : ((ge === "text" || ge === "title") && (mt[ge] = zs()[ge]), Se.none());
49180
+ ], ge) ? ts(zs(), ge) : ((ge === "text" || ge === "title") && (mt[ge] = zs()[ge]), Ce.none());
49181
49181
  } };
49182
49182
  },
49183
49183
  getDelta: tt
@@ -49192,22 +49192,22 @@ function V1e() {
49192
49192
  });
49193
49193
  }, Ot = (pe) => {
49194
49194
  const Ve = pe.href;
49195
- return Ve.indexOf("@") > 0 && Ve.indexOf("/") === -1 && Ve.indexOf("mailto:") === -1 ? Se.some({
49195
+ return Ve.indexOf("@") > 0 && Ve.indexOf("/") === -1 && Ve.indexOf("mailto:") === -1 ? Ce.some({
49196
49196
  message: "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",
49197
49197
  preprocess: (Wt) => ({
49198
49198
  ...Wt,
49199
49199
  href: "mailto:" + Ve
49200
49200
  })
49201
- }) : Se.none();
49201
+ }) : Ce.none();
49202
49202
  }, Ht = (pe, Ve) => (mt) => {
49203
49203
  const Wt = mt.href;
49204
- return pe === 1 && !js(Wt) || pe === 0 && /^\s*www(\.|\d\.)/i.test(Wt) ? Se.some({
49204
+ return pe === 1 && !js(Wt) || pe === 0 && /^\s*www(\.|\d\.)/i.test(Wt) ? Ce.some({
49205
49205
  message: `The URL you entered seems to be an external link. Do you want to add the required ${Ve}:// prefix?`,
49206
49206
  preprocess: (Gt) => ({
49207
49207
  ...Gt,
49208
49208
  href: Ve + "://" + Wt
49209
49209
  })
49210
- }) : Se.none();
49210
+ }) : Ce.none();
49211
49211
  }, Fn = { preprocess: (pe, Ve) => fe([
49212
49212
  Ot,
49213
49213
  Ht(ft(pe), ce(pe))
@@ -49223,23 +49223,23 @@ function V1e() {
49223
49223
  value: "#" + bn
49224
49224
  }] : [];
49225
49225
  });
49226
- return mt.length > 0 ? Se.some([{
49226
+ return mt.length > 0 ? Ce.some([{
49227
49227
  text: "None",
49228
49228
  value: ""
49229
- }].concat(mt)) : Se.none();
49229
+ }].concat(mt)) : Ce.none();
49230
49230
  } }, Ye = { getClasses: (pe) => {
49231
49231
  const Ve = Qe(pe);
49232
- return Ve.length > 0 ? je.sanitize(Ve) : Se.none();
49232
+ return Ve.length > 0 ? je.sanitize(Ve) : Ce.none();
49233
49233
  } }, Qt = (pe) => {
49234
49234
  try {
49235
- return Se.some(JSON.parse(pe));
49235
+ return Ce.some(JSON.parse(pe));
49236
49236
  } catch {
49237
- return Se.none();
49237
+ return Ce.none();
49238
49238
  }
49239
49239
  }, En = { getLinks: (pe) => {
49240
49240
  const Ve = (Wt) => pe.convertURL(Wt.value || Wt.url || "", "href"), mt = Xt(pe);
49241
49241
  return new Promise((Wt) => {
49242
- h(mt) ? fetch(mt).then((bn) => bn.ok ? bn.text().then(Qt) : Promise.reject()).then(Wt, () => Wt(Se.none())) : L(mt) ? mt((bn) => Wt(Se.some(bn))) : Wt(Se.from(mt));
49242
+ h(mt) ? fetch(mt).then((bn) => bn.ok ? bn.text().then(Qt) : Promise.reject()).then(Wt, () => Wt(Ce.none())) : L(mt) ? mt((bn) => Wt(Ce.some(bn))) : Wt(Ce.from(mt));
49243
49243
  }).then((Wt) => Wt.bind(je.sanitizeWith(Ve)).map((bn) => bn.length > 0 ? [{
49244
49244
  text: "None",
49245
49245
  value: ""
@@ -49250,7 +49250,7 @@ function V1e() {
49250
49250
  const Wt = Kt(Ve, "_blank"), bn = vt(pe) === !1, Gt = (ro) => ci(je.getValue(ro), Wt);
49251
49251
  return (bn ? je.sanitizeWith(Gt) : je.sanitize)(mt);
49252
49252
  }
49253
- return Se.none();
49253
+ return Ce.none();
49254
49254
  } }, Qn = [
49255
49255
  {
49256
49256
  text: "Current window",
@@ -49262,12 +49262,12 @@ function V1e() {
49262
49262
  }
49263
49263
  ], bs = { getTargets: (pe) => {
49264
49264
  const Ve = Ue(pe);
49265
- return x(Ve) ? je.sanitize(Ve).orThunk(() => Se.some(Qn)) : Ve === !1 ? Se.none() : Se.some(Qn);
49265
+ return x(Ve) ? je.sanitize(Ve).orThunk(() => Ce.some(Qn)) : Ve === !1 ? Ce.none() : Ce.some(Qn);
49266
49266
  } }, Oo = (pe, Ve, mt) => {
49267
49267
  const Wt = pe.getAttrib(Ve, mt);
49268
- return Wt !== null && Wt.length > 0 ? Se.some(Wt) : Se.none();
49268
+ return Wt !== null && Wt.length > 0 ? Ce.some(Wt) : Ce.none();
49269
49269
  }, pr = (pe, Ve) => {
49270
- const mt = pe.dom, bn = Ln(pe) ? Se.some(Cr(pe.selection, Ve)) : Se.none(), Gt = Ve.bind((ge) => Se.from(mt.getAttrib(ge, "href"))), ts = Ve.bind((ge) => Se.from(mt.getAttrib(ge, "target"))), ro = Ve.bind((ge) => Oo(mt, ge, "rel")), zs = Ve.bind((ge) => Oo(mt, ge, "class")), oe = Ve.bind((ge) => Oo(mt, ge, "title"));
49270
+ const mt = pe.dom, bn = Ln(pe) ? Ce.some(Cr(pe.selection, Ve)) : Ce.none(), Gt = Ve.bind((ge) => Ce.from(mt.getAttrib(ge, "href"))), ts = Ve.bind((ge) => Ce.from(mt.getAttrib(ge, "target"))), ro = Ve.bind((ge) => Oo(mt, ge, "rel")), zs = Ve.bind((ge) => Oo(mt, ge, "class")), oe = Ve.bind((ge) => Oo(mt, ge, "title"));
49271
49271
  return {
49272
49272
  url: Gt,
49273
49273
  text: bn,
@@ -49296,7 +49296,7 @@ function V1e() {
49296
49296
  ui(pe), mt.close();
49297
49297
  return;
49298
49298
  }
49299
- const bn = (ro) => Se.from(Wt[ro]).filter((zs) => !Kt(Ve.anchor[ro], zs)), Gt = {
49299
+ const bn = (ro) => Ce.from(Wt[ro]).filter((zs) => !Kt(Ve.anchor[ro], zs)), Gt = {
49300
49300
  href: Wt.url.value,
49301
49301
  text: bn("text"),
49302
49302
  target: bn("target"),
@@ -49343,7 +49343,7 @@ function V1e() {
49343
49343
  name: "title",
49344
49344
  type: "input",
49345
49345
  label: "Title"
49346
- }] : [], ts = Se.from(Ze(mt)), ro = co(pe, ts), zs = pe.catalogs, oe = he.init(ro, zs);
49346
+ }] : [], ts = Ce.from(Ze(mt)), ro = co(pe, ts), zs = pe.catalogs, oe = he.init(ro, zs);
49347
49347
  return {
49348
49348
  title: "Insert/Edit Link",
49349
49349
  size: "normal",
@@ -49407,15 +49407,15 @@ function V1e() {
49407
49407
  }
49408
49408
  };
49409
49409
  }, zd = (pe) => {
49410
- const Ve = dr(Se.none()), mt = () => Ve.get().each(pe);
49410
+ const Ve = dr(Ce.none()), mt = () => Ve.get().each(pe);
49411
49411
  return {
49412
49412
  clear: () => {
49413
- mt(), Ve.set(Se.none());
49413
+ mt(), Ve.set(Ce.none());
49414
49414
  },
49415
49415
  isSet: () => Ve.get().isSome(),
49416
49416
  get: () => Ve.get(),
49417
49417
  set: (ro) => {
49418
- mt(), Ve.set(Se.some(ro));
49418
+ mt(), Ve.set(Ce.some(ro));
49419
49419
  }
49420
49420
  };
49421
49421
  }, vl = () => {
@@ -49540,7 +49540,7 @@ function V1e() {
49540
49540
  const zs = Cr(pe.selection, ts);
49541
49541
  return St(zs.length === 0, Gt);
49542
49542
  } else
49543
- return Se.none();
49543
+ return Ce.none();
49544
49544
  };
49545
49545
  pe.ui.registry.addContextForm("quicklink", {
49546
49546
  launch: {
@@ -49570,10 +49570,10 @@ function V1e() {
49570
49570
  }, {
49571
49571
  href: ts,
49572
49572
  text: ro,
49573
- title: Se.none(),
49574
- rel: Se.none(),
49575
- target: Se.from(Ze(pe)),
49576
- class: Se.none()
49573
+ title: Ce.none(),
49574
+ rel: Ce.none(),
49575
+ target: Ce.from(Ze(pe)),
49576
+ class: Ce.none()
49577
49577
  }), mt(pe), Gt.hide();
49578
49578
  }
49579
49579
  },
@@ -49620,7 +49620,7 @@ function H1e() {
49620
49620
  }, a = (oe) => {
49621
49621
  const ge = typeof oe;
49622
49622
  return oe === null ? "null" : ge === "object" && Array.isArray(oe) ? "array" : ge === "object" && s(oe, String, (Ke, Et) => Et.isPrototypeOf(Ke)) ? "string" : ge;
49623
- }, c = (oe) => (ge) => a(ge) === oe, f = (oe) => (ge) => typeof ge === oe, h = (oe) => (ge) => oe === ge, b = (oe, ge) => C(oe) && s(oe, ge, (Ke, Et) => t(Ke) === Et), x = c("string"), C = c("object"), T = (oe) => b(oe, Object), R = c("array"), M = h(null), L = f("boolean"), q = (oe) => oe == null, Z = (oe) => !q(oe), Y = f("function"), ue = f("number"), Se = (oe, ge) => {
49623
+ }, c = (oe) => (ge) => a(ge) === oe, f = (oe) => (ge) => typeof ge === oe, h = (oe) => (ge) => oe === ge, b = (oe, ge) => C(oe) && s(oe, ge, (Ke, Et) => t(Ke) === Et), x = c("string"), C = c("object"), T = (oe) => b(oe, Object), R = c("array"), M = h(null), L = f("boolean"), q = (oe) => oe == null, Z = (oe) => !q(oe), Y = f("function"), ue = f("number"), Ce = (oe, ge) => {
49624
49624
  if (R(oe)) {
49625
49625
  for (let Ke = 0, Et = oe.length; Ke < Et; ++Ke)
49626
49626
  if (!ge(oe[Ke]))
@@ -49792,7 +49792,7 @@ function H1e() {
49792
49792
  default: !1
49793
49793
  }), ge("image_list", {
49794
49794
  processor: (Ke) => {
49795
- const Et = Ke === !1 || x(Ke) || Se(Ke, C) || Y(Ke);
49795
+ const Et = Ke === !1 || x(Ke) || Ce(Ke, C) || Y(Ke);
49796
49796
  return Et ? {
49797
49797
  value: Ke,
49798
49798
  valid: Et
@@ -50595,7 +50595,7 @@ function z1e() {
50595
50595
  const Ht = Ne[Le], un = de[Ht];
50596
50596
  he(un, Ht);
50597
50597
  }
50598
- }, ue = (de, he) => Se(de, he) ? C.from(de[he]) : C.none(), Se = (de, he) => Z.call(de, he), te = (de) => (he) => he.options.get(de), De = (de) => {
50598
+ }, ue = (de, he) => Ce(de, he) ? C.from(de[he]) : C.none(), Ce = (de, he) => Z.call(de, he), te = (de) => (he) => he.options.get(de), De = (de) => {
50599
50599
  const he = de.options.register;
50600
50600
  he("audio_template_callback", { processor: "function" }), he("video_template_callback", { processor: "function" }), he("iframe_template_callback", { processor: "function" }), he("media_live_embeds", {
50601
50601
  processor: "boolean",
@@ -50875,7 +50875,7 @@ function z1e() {
50875
50875
  }), js = (de) => (he) => Un(de, he), Lo = (de, he) => {
50876
50876
  const Ne = wt(de);
50877
50877
  return Ne ? Bs(he, js(de), Ne) : ir(he, js(de));
50878
- }, ci = (de) => Se(To, de), ur = (de, he) => ue(he, de).bind((Ne) => ue(Ne, "meta")), Ks = (de, he, Ne) => (Le) => {
50878
+ }, ci = (de) => Ce(To, de), ur = (de, he) => ue(he, de).bind((Ne) => ue(Ne, "meta")), Ks = (de, he, Ne) => (Le) => {
50879
50879
  const Ot = () => ue(de, Le), Ht = () => ue(he, Le), un = (dt) => ue(dt, "value").bind((Ie) => Ie.length > 0 ? C.some(Ie) : C.none()), Fn = () => Ot().bind((dt) => f(dt) ? un(dt).orThunk(Ht) : Ht().orThunk(() => C.from(dt))), bt = () => Ht().orThunk(() => Ot().bind((dt) => f(dt) ? un(dt) : C.from(dt)));
50880
50880
  return { [Le]: (Le === Ne ? Fn() : bt()).getOr("") };
50881
50881
  }, lo = (de, he) => {
@@ -51083,7 +51083,7 @@ function z1e() {
51083
51083
  return he === "iframe" || he === "video" || he === "audio";
51084
51084
  }, Uo = (de, he, Ne, Le = null) => {
51085
51085
  const Ot = de.attr(Ne);
51086
- return x(Ot) ? Ot : Se(he, Ne) ? null : Le;
51086
+ return x(Ot) ? Ot : Ce(he, Ne) ? null : Le;
51087
51087
  }, ui = (de, he, Ne) => {
51088
51088
  const Le = he.name === "img" || de.name === "video", Ot = Le ? "300" : null, Ht = de.name === "audio" ? "30" : "150", un = Le ? Ht : null;
51089
51089
  he.attr({
@@ -51266,17 +51266,17 @@ function Z1e() {
51266
51266
  return yre || (yre = 1, (function() {
51267
51267
  var r = tinymce.util.Tools.resolve("tinymce.PluginManager");
51268
51268
  const t = (B, z, ie) => {
51269
- var Ce;
51270
- return ie(B, z.prototype) ? !0 : ((Ce = B.constructor) === null || Ce === void 0 ? void 0 : Ce.name) === z.name;
51269
+ var Se;
51270
+ return ie(B, z.prototype) ? !0 : ((Se = B.constructor) === null || Se === void 0 ? void 0 : Se.name) === z.name;
51271
51271
  }, s = (B) => {
51272
51272
  const z = typeof B;
51273
- return B === null ? "null" : z === "object" && Array.isArray(B) ? "array" : z === "object" && t(B, String, (ie, Ce) => Ce.isPrototypeOf(ie)) ? "string" : z;
51273
+ return B === null ? "null" : z === "object" && Array.isArray(B) ? "array" : z === "object" && t(B, String, (ie, Se) => Se.isPrototypeOf(ie)) ? "string" : z;
51274
51274
  }, a = (B) => (z) => s(z) === B, c = (B) => (z) => typeof z === B, f = (B) => (z) => B === z, h = a("string"), b = a("array"), x = c("boolean"), C = f(void 0), T = (B) => B == null, R = (B) => !T(B), M = c("function"), L = c("number"), q = () => {
51275
- }, Z = (B, z) => (ie) => B(z(ie)), Y = (B) => () => B, ue = (B) => B, Se = (B, z) => B === z;
51275
+ }, Z = (B, z) => (ie) => B(z(ie)), Y = (B) => () => B, ue = (B) => B, Ce = (B, z) => B === z;
51276
51276
  function te(B, ...z) {
51277
51277
  return (...ie) => {
51278
- const Ce = z.concat(ie);
51279
- return B.apply(null, Ce);
51278
+ const Se = z.concat(ie);
51279
+ return B.apply(null, Se);
51280
51280
  };
51281
51281
  }
51282
51282
  const De = (B) => {
@@ -51355,23 +51355,23 @@ function Z1e() {
51355
51355
  G.singletonNone = new G(!1);
51356
51356
  const rt = Object.keys, at = Object.hasOwnProperty, wt = (B, z) => {
51357
51357
  const ie = rt(B);
51358
- for (let Ce = 0, ut = ie.length; Ce < ut; Ce++) {
51359
- const Ee = ie[Ce], vn = B[Ee];
51358
+ for (let Se = 0, ut = ie.length; Se < ut; Se++) {
51359
+ const Ee = ie[Se], vn = B[Ee];
51360
51360
  z(vn, Ee);
51361
51361
  }
51362
51362
  }, Me = (B) => (z, ie) => {
51363
51363
  B[ie] = z;
51364
- }, fe = (B, z, ie, Ce) => {
51364
+ }, fe = (B, z, ie, Se) => {
51365
51365
  wt(B, (ut, Ee) => {
51366
- (z(ut, Ee) ? ie : Ce)(ut, Ee);
51366
+ (z(ut, Ee) ? ie : Se)(ut, Ee);
51367
51367
  });
51368
51368
  }, Kt = (B, z) => {
51369
51369
  const ie = {};
51370
51370
  return fe(B, z, Me(ie), q), ie;
51371
51371
  }, xt = (B, z) => {
51372
51372
  const ie = [];
51373
- return wt(B, (Ce, ut) => {
51374
- ie.push(z(Ce, ut));
51373
+ return wt(B, (Se, ut) => {
51374
+ ie.push(z(Se, ut));
51375
51375
  }), ie;
51376
51376
  }, St = (B) => xt(B, ue), F = (B) => rt(B).length, tn = (B, z) => ft(B, z) ? G.from(B[z]) : G.none(), ft = (B, z) => at.call(B, z), Zt = (B, z) => ft(B, z) && B[z] !== void 0 && B[z] !== null, Xt = (B) => {
51377
51377
  for (const z in B)
@@ -51379,7 +51379,7 @@ function Z1e() {
51379
51379
  return !1;
51380
51380
  return !0;
51381
51381
  }, Ze = Array.prototype.indexOf, ce = Array.prototype.push, Ue = (B, z) => Ze.call(B, z), ye = (B, z) => Ue(B, z) > -1, Qe = (B, z) => {
51382
- for (let ie = 0, Ce = B.length; ie < Ce; ie++) {
51382
+ for (let ie = 0, Se = B.length; ie < Se; ie++) {
51383
51383
  const ut = B[ie];
51384
51384
  if (z(ut, ie))
51385
51385
  return !0;
@@ -51387,66 +51387,66 @@ function Z1e() {
51387
51387
  return !1;
51388
51388
  }, Re = (B, z) => {
51389
51389
  const ie = [];
51390
- for (let Ce = 0; Ce < B; Ce++)
51391
- ie.push(z(Ce));
51390
+ for (let Se = 0; Se < B; Se++)
51391
+ ie.push(z(Se));
51392
51392
  return ie;
51393
51393
  }, vt = (B, z) => {
51394
- const ie = B.length, Ce = new Array(ie);
51394
+ const ie = B.length, Se = new Array(ie);
51395
51395
  for (let ut = 0; ut < ie; ut++) {
51396
51396
  const Ee = B[ut];
51397
- Ce[ut] = z(Ee, ut);
51397
+ Se[ut] = z(Ee, ut);
51398
51398
  }
51399
- return Ce;
51399
+ return Se;
51400
51400
  }, ne = (B, z) => {
51401
- for (let ie = 0, Ce = B.length; ie < Ce; ie++) {
51401
+ for (let ie = 0, Se = B.length; ie < Se; ie++) {
51402
51402
  const ut = B[ie];
51403
51403
  z(ut, ie);
51404
51404
  }
51405
51405
  }, $n = (B, z) => {
51406
51406
  for (let ie = B.length - 1; ie >= 0; ie--) {
51407
- const Ce = B[ie];
51408
- z(Ce, ie);
51407
+ const Se = B[ie];
51408
+ z(Se, ie);
51409
51409
  }
51410
51410
  }, an = (B, z) => {
51411
- const ie = [], Ce = [];
51411
+ const ie = [], Se = [];
51412
51412
  for (let ut = 0, Ee = B.length; ut < Ee; ut++) {
51413
51413
  const vn = B[ut];
51414
- (z(vn, ut) ? ie : Ce).push(vn);
51414
+ (z(vn, ut) ? ie : Se).push(vn);
51415
51415
  }
51416
51416
  return {
51417
51417
  pass: ie,
51418
- fail: Ce
51418
+ fail: Se
51419
51419
  };
51420
51420
  }, ss = (B, z) => {
51421
51421
  const ie = [];
51422
- for (let Ce = 0, ut = B.length; Ce < ut; Ce++) {
51423
- const Ee = B[Ce];
51424
- z(Ee, Ce) && ie.push(Ee);
51422
+ for (let Se = 0, ut = B.length; Se < ut; Se++) {
51423
+ const Ee = B[Se];
51424
+ z(Ee, Se) && ie.push(Ee);
51425
51425
  }
51426
51426
  return ie;
51427
- }, cs = (B, z, ie) => ($n(B, (Ce, ut) => {
51428
- ie = z(ie, Ce, ut);
51429
- }), ie), rr = (B, z, ie) => (ne(B, (Ce, ut) => {
51430
- ie = z(ie, Ce, ut);
51427
+ }, cs = (B, z, ie) => ($n(B, (Se, ut) => {
51428
+ ie = z(ie, Se, ut);
51429
+ }), ie), rr = (B, z, ie) => (ne(B, (Se, ut) => {
51430
+ ie = z(ie, Se, ut);
51431
51431
  }), ie), We = (B, z, ie) => {
51432
- for (let Ce = 0, ut = B.length; Ce < ut; Ce++) {
51433
- const Ee = B[Ce];
51434
- if (z(Ee, Ce))
51432
+ for (let Se = 0, ut = B.length; Se < ut; Se++) {
51433
+ const Ee = B[Se];
51434
+ if (z(Ee, Se))
51435
51435
  return G.some(Ee);
51436
- if (ie(Ee, Ce))
51436
+ if (ie(Ee, Se))
51437
51437
  break;
51438
51438
  }
51439
51439
  return G.none();
51440
51440
  }, ct = (B, z) => We(B, z, Ct), pt = (B) => {
51441
51441
  const z = [];
51442
- for (let ie = 0, Ce = B.length; ie < Ce; ++ie) {
51442
+ for (let ie = 0, Se = B.length; ie < Se; ++ie) {
51443
51443
  if (!b(B[ie]))
51444
51444
  throw new Error("Arr.flatten item " + ie + " was not an array, input: " + B);
51445
51445
  ce.apply(z, B[ie]);
51446
51446
  }
51447
51447
  return z;
51448
51448
  }, ke = (B, z) => pt(vt(B, z)), Un = (B, z) => {
51449
- for (let ie = 0, Ce = B.length; ie < Ce; ++ie) {
51449
+ for (let ie = 0, Se = B.length; ie < Se; ++ie) {
51450
51450
  const ut = B[ie];
51451
51451
  if (z(ut, ie) !== !0)
51452
51452
  return !1;
@@ -51454,31 +51454,31 @@ function Z1e() {
51454
51454
  return !0;
51455
51455
  }, Ds = (B, z) => {
51456
51456
  const ie = {};
51457
- for (let Ce = 0, ut = B.length; Ce < ut; Ce++) {
51458
- const Ee = B[Ce];
51459
- ie[String(Ee)] = z(Ee, Ce);
51457
+ for (let Se = 0, ut = B.length; Se < ut; Se++) {
51458
+ const Ee = B[Se];
51459
+ ie[String(Ee)] = z(Ee, Se);
51460
51460
  }
51461
51461
  return ie;
51462
51462
  }, _n = (B, z) => z >= 0 && z < B.length ? G.some(B[z]) : G.none(), To = (B) => _n(B, 0), Bs = (B) => _n(B, B.length - 1), ir = (B, z) => {
51463
51463
  for (let ie = 0; ie < B.length; ie++) {
51464
- const Ce = z(B[ie], ie);
51465
- if (Ce.isSome())
51466
- return Ce;
51464
+ const Se = z(B[ie], ie);
51465
+ if (Se.isSome())
51466
+ return Se;
51467
51467
  }
51468
51468
  return G.none();
51469
51469
  }, js = 8, Lo = 9, ci = 11, ur = 1, Ks = 3, lo = (B, z) => {
51470
- const Ce = (z || document).createElement("div");
51471
- if (Ce.innerHTML = B, !Ce.hasChildNodes() || Ce.childNodes.length > 1) {
51470
+ const Se = (z || document).createElement("div");
51471
+ if (Se.innerHTML = B, !Se.hasChildNodes() || Se.childNodes.length > 1) {
51472
51472
  const ut = "HTML does not have a single root node";
51473
51473
  throw console.error(ut, B), new Error(ut);
51474
51474
  }
51475
- return Ut(Ce.childNodes[0]);
51475
+ return Ut(Se.childNodes[0]);
51476
51476
  }, Cr = (B, z) => {
51477
- const Ce = (z || document).createElement(B);
51478
- return Ut(Ce);
51477
+ const Se = (z || document).createElement(B);
51478
+ return Ut(Se);
51479
51479
  }, Ho = (B, z) => {
51480
- const Ce = (z || document).createTextNode(B);
51481
- return Ut(Ce);
51480
+ const Se = (z || document).createTextNode(B);
51481
+ return Ut(Se);
51482
51482
  }, Ut = (B) => {
51483
51483
  if (B == null)
51484
51484
  throw new Error("Node cannot be null or undefined");
@@ -51494,15 +51494,15 @@ function Z1e() {
51494
51494
  if (ie.nodeType !== ur)
51495
51495
  return !1;
51496
51496
  {
51497
- const Ce = ie;
51498
- if (Ce.matches !== void 0)
51499
- return Ce.matches(z);
51500
- if (Ce.msMatchesSelector !== void 0)
51501
- return Ce.msMatchesSelector(z);
51502
- if (Ce.webkitMatchesSelector !== void 0)
51503
- return Ce.webkitMatchesSelector(z);
51504
- if (Ce.mozMatchesSelector !== void 0)
51505
- return Ce.mozMatchesSelector(z);
51497
+ const Se = ie;
51498
+ if (Se.matches !== void 0)
51499
+ return Se.matches(z);
51500
+ if (Se.msMatchesSelector !== void 0)
51501
+ return Se.msMatchesSelector(z);
51502
+ if (Se.webkitMatchesSelector !== void 0)
51503
+ return Se.webkitMatchesSelector(z);
51504
+ if (Se.mozMatchesSelector !== void 0)
51505
+ return Se.mozMatchesSelector(z);
51506
51506
  throw new Error("Browser lacks native selectors");
51507
51507
  }
51508
51508
  }, Js = (B) => B.nodeType !== ur && B.nodeType !== Lo && B.nodeType !== ci || B.childElementCount === 0, jo = (B, z) => {
@@ -51515,13 +51515,13 @@ function Z1e() {
51515
51515
  typeof window < "u" || Function("return this;")();
51516
51516
  const pn = (B) => B.dom.nodeName.toLowerCase(), eo = (B) => B.dom.nodeType, gr = (B) => (z) => eo(z) === B, Fr = (B) => eo(B) === js || pn(B) === "#comment", wi = gr(ur), Li = gr(Ks), Uo = gr(Lo), ui = gr(ci), Si = (B) => (z) => wi(z) && pn(z) === B, zo = (B) => Pn.fromDom(B.dom.ownerDocument), us = (B) => Uo(B) ? B : zo(B), ar = (B) => G.from(B.dom.parentNode).map(Pn.fromDom), di = (B, z) => {
51517
51517
  const ie = M(z) ? z : Ct;
51518
- let Ce = B.dom;
51518
+ let Se = B.dom;
51519
51519
  const ut = [];
51520
- for (; Ce.parentNode !== null && Ce.parentNode !== void 0; ) {
51521
- const Ee = Ce.parentNode, vn = Pn.fromDom(Ee);
51520
+ for (; Se.parentNode !== null && Se.parentNode !== void 0; ) {
51521
+ const Ee = Se.parentNode, vn = Pn.fromDom(Ee);
51522
51522
  if (ut.push(vn), ie(vn) === !0)
51523
51523
  break;
51524
- Ce = Ee;
51524
+ Se = Ee;
51525
51525
  }
51526
51526
  return ut;
51527
51527
  }, Da = (B) => G.from(B.dom.previousSibling).map(Pn.fromDom), bl = (B) => G.from(B.dom.nextSibling).map(Pn.fromDom), we = (B) => vt(B.dom.childNodes, Pn.fromDom), je = (B, z) => {
@@ -51537,13 +51537,13 @@ function Z1e() {
51537
51537
  const ie = z.ownerDocument;
51538
51538
  return et(Pn.fromDom(z)).fold(() => ie.body.contains(z), Z(he, de));
51539
51539
  };
51540
- var Ne = (B, z, ie, Ce, ut) => B(ie, Ce) ? G.some(ie) : M(ut) && ut(ie) ? G.none() : z(ie, Ce, ut);
51540
+ var Ne = (B, z, ie, Se, ut) => B(ie, Se) ? G.some(ie) : M(ut) && ut(ie) ? G.none() : z(ie, Se, ut);
51541
51541
  const Le = (B, z, ie) => {
51542
- let Ce = B.dom;
51542
+ let Se = B.dom;
51543
51543
  const ut = M(ie) ? ie : Ct;
51544
- for (; Ce.parentNode; ) {
51545
- Ce = Ce.parentNode;
51546
- const Ee = Pn.fromDom(Ce);
51544
+ for (; Se.parentNode; ) {
51545
+ Se = Se.parentNode;
51546
+ const Ee = Pn.fromDom(Se);
51547
51547
  if (z(Ee))
51548
51548
  return G.some(Ee);
51549
51549
  if (ut(Ee))
@@ -51553,10 +51553,10 @@ function Z1e() {
51553
51553
  }, Ot = (B, z, ie) => Ne((ut, Ee) => Ee(ut), Le, B, z, ie), Ht = (B, z) => {
51554
51554
  const ie = (ut) => z(Pn.fromDom(ut));
51555
51555
  return ct(B.dom.childNodes, ie).map(Pn.fromDom);
51556
- }, un = (B, z, ie) => Le(B, (Ce) => Ln(Ce, z), ie), Fn = (B, z) => Ht(B, (ie) => Ln(ie, z)), bt = (B, z) => kr(z, B), dt = (B, z, ie) => Ne((ut, Ee) => Ln(ut, Ee), un, B, z, ie), Ie = (B) => dt(B, "[contenteditable]"), Ye = (B, z = !1) => he(B) ? B.dom.isContentEditable : Ie(B).fold(Y(z), (ie) => Qt(ie) === "true"), Qt = (B) => B.dom.contentEditable, Jt = (B) => B.nodeName.toLowerCase(), En = (B) => Pn.fromDom(B.getBody()), es = (B) => (z) => Qs(z, En(B)), os = (B) => B ? B.replace(/px$/, "") : "", Qn = (B) => /^\d+(\.\d+)?$/.test(B) ? B + "px" : B, ps = (B) => Pn.fromDom(B.selection.getStart()), bs = (B) => Pn.fromDom(B.selection.getEnd()), Oo = (B) => Ot(B, Si("table")).forall(Ye), pr = (B, z) => ss(we(B), z), Wo = (B, z) => {
51556
+ }, un = (B, z, ie) => Le(B, (Se) => Ln(Se, z), ie), Fn = (B, z) => Ht(B, (ie) => Ln(ie, z)), bt = (B, z) => kr(z, B), dt = (B, z, ie) => Ne((ut, Ee) => Ln(ut, Ee), un, B, z, ie), Ie = (B) => dt(B, "[contenteditable]"), Ye = (B, z = !1) => he(B) ? B.dom.isContentEditable : Ie(B).fold(Y(z), (ie) => Qt(ie) === "true"), Qt = (B) => B.dom.contentEditable, Jt = (B) => B.nodeName.toLowerCase(), En = (B) => Pn.fromDom(B.getBody()), es = (B) => (z) => Qs(z, En(B)), os = (B) => B ? B.replace(/px$/, "") : "", Qn = (B) => /^\d+(\.\d+)?$/.test(B) ? B + "px" : B, ps = (B) => Pn.fromDom(B.selection.getStart()), bs = (B) => Pn.fromDom(B.selection.getEnd()), Oo = (B) => Ot(B, Si("table")).forall(Ye), pr = (B, z) => ss(we(B), z), Wo = (B, z) => {
51557
51557
  let ie = [];
51558
- return ne(we(B), (Ce) => {
51559
- z(Ce) && (ie = ie.concat([Ce])), ie = ie.concat(Wo(Ce, z));
51558
+ return ne(we(B), (Se) => {
51559
+ z(Se) && (ie = ie.concat([Se])), ie = ie.concat(Wo(Se, z));
51560
51560
  }), ie;
51561
51561
  }, Ga = (B, z) => pr(B, (ie) => Ln(ie, z)), ta = (B, z) => jo(z, B), Xs = (B, z, ie) => {
51562
51562
  if (h(ie) || x(ie) || L(ie))
@@ -51567,20 +51567,20 @@ function Z1e() {
51567
51567
  Xs(B.dom, z, ie);
51568
51568
  }, mo = (B, z) => {
51569
51569
  const ie = B.dom;
51570
- wt(z, (Ce, ut) => {
51571
- Xs(ie, ut, Ce);
51570
+ wt(z, (Se, ut) => {
51571
+ Xs(ie, ut, Se);
51572
51572
  });
51573
51573
  }, Pi = (B, z) => {
51574
51574
  const ie = B.dom.getAttribute(z);
51575
51575
  return ie === null ? void 0 : ie;
51576
51576
  }, Di = (B, z) => G.from(Pi(B, z)), na = (B, z) => {
51577
51577
  B.dom.removeAttribute(z);
51578
- }, dr = (B) => rr(B.dom.attributes, (z, ie) => (z[ie.name] = ie.value, z), {}), zd = (B, z, ie = Se) => B.exists((Ce) => ie(Ce, z)), vl = (B) => {
51579
- const z = [], ie = (Ce) => {
51580
- z.push(Ce);
51578
+ }, dr = (B) => rr(B.dom.attributes, (z, ie) => (z[ie.name] = ie.value, z), {}), zd = (B, z, ie = Ce) => B.exists((Se) => ie(Se, z)), vl = (B) => {
51579
+ const z = [], ie = (Se) => {
51580
+ z.push(Se);
51581
51581
  };
51582
- for (let Ce = 0; Ce < B.length; Ce++)
51583
- B[Ce].each(ie);
51582
+ for (let Se = 0; Se < B.length; Se++)
51583
+ B[Se].each(ie);
51584
51584
  return z;
51585
51585
  }, Mu = (B, z, ie) => B.isSome() && z.isSome() ? G.some(ie(B.getOrDie(), z.getOrDie())) : G.none(), bo = (B) => B.bind(ue), Kl = (B, z) => B ? G.some(z) : G.none(), Er = (B, z) => B.substring(z), Nu = (B, z, ie) => z === "" || B.length >= z.length && B.substr(ie, ie + z.length) === z, yl = (B, z) => Jl(B, z) ? Er(B, z.length) : B, Jl = (B, z) => Nu(B, z, 0), au = ((B) => (z) => z.replace(B, ""))(/^\s+|\s+$/g), Ol = (B) => B.length > 0, lu = (B) => !Ol(B), Mc = (B, z = 10) => {
51586
51586
  const ie = parseInt(B, z);
@@ -51595,18 +51595,18 @@ function Z1e() {
51595
51595
  }, Nc = (B, z) => {
51596
51596
  mi(B) && B.style.removeProperty(z);
51597
51597
  }, cu = (B, z, ie) => {
51598
- const Ce = B.dom;
51599
- ec(Ce, z, ie);
51598
+ const Se = B.dom;
51599
+ ec(Se, z, ie);
51600
51600
  }, Bu = (B, z) => {
51601
51601
  const ie = B.dom, ut = window.getComputedStyle(ie).getPropertyValue(z);
51602
51602
  return ut === "" && !he(B) ? xl(ie, z) : ut;
51603
51603
  }, xl = (B, z) => mi(B) ? B.style.getPropertyValue(z) : "", Kr = (B, z) => {
51604
- const ie = B.dom, Ce = xl(ie, z);
51605
- return G.from(Ce).filter((ut) => ut.length > 0);
51604
+ const ie = B.dom, Se = xl(ie, z);
51605
+ return G.from(Se).filter((ut) => ut.length > 0);
51606
51606
  }, oi = (B, z) => {
51607
51607
  const ie = B.dom;
51608
51608
  Nc(ie, z), zd(Di(B, "style").map(au), "") && na(B, "style");
51609
- }, $a = (B, z, ie = 0) => Di(B, z).map((Ce) => parseInt(Ce, 10)).getOr(ie), uu = (B, z) => du(B, z, ot), du = (B, z, ie) => ke(we(B), (Ce) => Ln(Ce, z) ? ie(Ce) ? [Ce] : [] : du(Ce, z, ie)), sa = [
51609
+ }, $a = (B, z, ie = 0) => Di(B, z).map((Se) => parseInt(Se, 10)).getOr(ie), uu = (B, z) => du(B, z, ot), du = (B, z, ie) => ke(we(B), (Se) => Ln(Se, z) ? ie(Se) ? [Se] : [] : du(Se, z, ie)), sa = [
51610
51610
  "tfoot",
51611
51611
  "thead",
51612
51612
  "tbody",
@@ -51618,22 +51618,22 @@ function Z1e() {
51618
51618
  element: B,
51619
51619
  rowspan: z,
51620
51620
  colspan: ie
51621
- }), Wt = (B, z, ie, Ce, ut, Ee) => ({
51621
+ }), Wt = (B, z, ie, Se, ut, Ee) => ({
51622
51622
  element: B,
51623
51623
  rowspan: z,
51624
51624
  colspan: ie,
51625
- row: Ce,
51625
+ row: Se,
51626
51626
  column: ut,
51627
51627
  isLocked: Ee
51628
51628
  }), bn = (B, z, ie) => ({
51629
51629
  element: B,
51630
51630
  cells: z,
51631
51631
  section: ie
51632
- }), Gt = (B, z, ie, Ce) => ({
51632
+ }), Gt = (B, z, ie, Se) => ({
51633
51633
  startRow: B,
51634
51634
  startCol: z,
51635
51635
  finishRow: ie,
51636
- finishCol: Ce
51636
+ finishCol: Se
51637
51637
  }), ts = (B, z, ie) => ({
51638
51638
  element: B,
51639
51639
  colspan: z,
@@ -51646,48 +51646,48 @@ function Z1e() {
51646
51646
  return G.none();
51647
51647
  if (ye(B, pn(z)))
51648
51648
  return G.some(z);
51649
- const Ce = (ut) => Ln(ut, "table") || ie(ut);
51650
- return un(z, B.join(","), Ce);
51649
+ const Se = (ut) => Ln(ut, "table") || ie(ut);
51650
+ return un(z, B.join(","), Se);
51651
51651
  }, oe = (B, z) => zs([
51652
51652
  "td",
51653
51653
  "th"
51654
51654
  ], B, z), ge = (B) => uu(B, "th,td"), Ke = (B) => Ln(B, "colgroup") ? Ga(B, "col") : ke(Tn(B), (z) => Ga(z, "col")), Et = (B, z) => dt(B, "table", z), jn = (B) => uu(B, "tr"), Tn = (B) => Et(B).fold(Y([]), (z) => Ga(z, "colgroup")), Qo = (B, z) => vt(B, (ie) => {
51655
51655
  if (pn(ie) === "colgroup") {
51656
- const Ce = vt(Ke(ie), (ut) => {
51656
+ const Se = vt(Ke(ie), (ut) => {
51657
51657
  const Ee = $a(ut, "span", 1);
51658
51658
  return mt(ut, 1, Ee);
51659
51659
  });
51660
- return bn(ie, Ce, "colgroup");
51660
+ return bn(ie, Se, "colgroup");
51661
51661
  } else {
51662
- const Ce = vt(ge(ie), (ut) => {
51662
+ const Se = vt(ge(ie), (ut) => {
51663
51663
  const Ee = $a(ut, "rowspan", 1), vn = $a(ut, "colspan", 1);
51664
51664
  return mt(ut, Ee, vn);
51665
51665
  });
51666
- return bn(ie, Ce, z(ie));
51666
+ return bn(ie, Se, z(ie));
51667
51667
  }
51668
51668
  }), gi = (B) => ar(B).map((z) => {
51669
51669
  const ie = pn(z);
51670
51670
  return pe(ie) ? ie : "tbody";
51671
51671
  }).getOr("tbody"), nn = (B) => {
51672
- const z = jn(B), Ce = [
51672
+ const z = jn(B), Se = [
51673
51673
  ...Tn(B),
51674
51674
  ...z
51675
51675
  ];
51676
- return Qo(Ce, gi);
51676
+ return Qo(Se, gi);
51677
51677
  }, Sa = "data-snooker-locked-cols", nr = (B) => Di(B, Sa).bind((z) => G.from(z.match(/\d+/g))).map((z) => Ds(z, ot)), vc = (B, z) => B + "," + z, jr = (B, z, ie) => G.from(B.access[vc(z, ie)]), ho = (B, z, ie) => {
51678
- const Ce = Ra(B, (ut) => ie(z, ut.element));
51679
- return Ce.length > 0 ? G.some(Ce[0]) : G.none();
51678
+ const Se = Ra(B, (ut) => ie(z, ut.element));
51679
+ return Se.length > 0 ? G.some(Se[0]) : G.none();
51680
51680
  }, Ra = (B, z) => {
51681
- const ie = ke(B.all, (Ce) => Ce.cells);
51681
+ const ie = ke(B.all, (Se) => Se.cells);
51682
51682
  return ss(ie, z);
51683
51683
  }, Ri = (B) => {
51684
51684
  const z = {};
51685
51685
  let ie = 0;
51686
- return ne(B.cells, (Ce) => {
51687
- const ut = Ce.colspan;
51686
+ return ne(B.cells, (Se) => {
51687
+ const ut = Se.colspan;
51688
51688
  Re(ut, (Ee) => {
51689
51689
  const vn = ie + Ee;
51690
- z[vn] = ts(Ce.element, ut, vn);
51690
+ z[vn] = ts(Se.element, ut, vn);
51691
51691
  }), ie += ut;
51692
51692
  }), z;
51693
51693
  }, Ma = (B) => {
@@ -51745,33 +51745,33 @@ function Z1e() {
51745
51745
  };
51746
51746
  var Mi = tinymce.util.Tools.resolve("tinymce.util.Tools");
51747
51747
  const oa = (B, z, ie) => {
51748
- const Ce = B.select("td,th", z);
51748
+ const Se = B.select("td,th", z);
51749
51749
  let ut;
51750
- for (let Ee = 0; Ee < Ce.length; Ee++) {
51751
- const vn = B.getStyle(Ce[Ee], ie);
51750
+ for (let Ee = 0; Ee < Se.length; Ee++) {
51751
+ const vn = B.getStyle(Se[Ee], ie);
51752
51752
  if (C(ut) && (ut = vn), ut !== vn)
51753
51753
  return "";
51754
51754
  }
51755
51755
  return ut;
51756
51756
  }, Ya = (B, z, ie) => {
51757
- Mi.each("left center right".split(" "), (Ce) => {
51758
- Ce !== ie && B.formatter.remove("align" + Ce, {}, z);
51757
+ Mi.each("left center right".split(" "), (Se) => {
51758
+ Se !== ie && B.formatter.remove("align" + Se, {}, z);
51759
51759
  }), ie && B.formatter.apply("align" + ie, {}, z);
51760
51760
  }, Fu = (B, z, ie) => {
51761
- Mi.each("top middle bottom".split(" "), (Ce) => {
51762
- Ce !== ie && B.formatter.remove("valign" + Ce, {}, z);
51761
+ Mi.each("top middle bottom".split(" "), (Se) => {
51762
+ Se !== ie && B.formatter.remove("valign" + Se, {}, z);
51763
51763
  }), ie && B.formatter.apply("valign" + ie, {}, z);
51764
51764
  }, _e = (B, z, ie) => {
51765
51765
  B.dispatch("TableModified", {
51766
51766
  ...ie,
51767
51767
  table: z
51768
51768
  });
51769
- }, Pe = (B, z) => Zd(B).getOr(z), _t = (B, z, ie) => Pe(Bu(B, z), ie), Yt = (B, z, ie, Ce) => {
51770
- const ut = _t(B, `padding-${ie}`, 0), Ee = _t(B, `padding-${Ce}`, 0), vn = _t(B, `border-${ie}-width`, 0), ns = _t(B, `border-${Ce}-width`, 0);
51769
+ }, Pe = (B, z) => Zd(B).getOr(z), _t = (B, z, ie) => Pe(Bu(B, z), ie), Yt = (B, z, ie, Se) => {
51770
+ const ut = _t(B, `padding-${ie}`, 0), Ee = _t(B, `padding-${Se}`, 0), vn = _t(B, `border-${ie}-width`, 0), ns = _t(B, `border-${Se}-width`, 0);
51771
51771
  return z - ut - Ee - vn - ns;
51772
51772
  }, hs = (B, z) => {
51773
- const ie = B.dom, Ce = ie.getBoundingClientRect().width || ie.offsetWidth;
51774
- return Yt(B, Ce, "left", "right");
51773
+ const ie = B.dom, Se = ie.getBoundingClientRect().width || ie.offsetWidth;
51774
+ return Yt(B, Se, "left", "right");
51775
51775
  }, io = (B) => hs(B);
51776
51776
  var fr = tinymce.util.Tools.resolve("tinymce.Env");
51777
51777
  const pi = "tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol", rl = Re(5, (B) => {
@@ -51796,8 +51796,8 @@ function Z1e() {
51796
51796
  value: B.toLowerCase()
51797
51797
  })), Ir = "100%", ri = (B) => {
51798
51798
  var z;
51799
- const ie = B.dom, Ce = (z = ie.getParent(B.selection.getStart(), ie.isBlock)) !== null && z !== void 0 ? z : B.getBody();
51800
- return io(Pn.fromDom(Ce)) + "px";
51799
+ const ie = B.dom, Se = (z = ie.getParent(B.selection.getStart(), ie.isBlock)) !== null && z !== void 0 ? z : B.getBody();
51800
+ return io(Pn.fromDom(Se)) + "px";
51801
51801
  }, Ci = (B, z) => hh(B) || !yc(B) ? z : cg(B) ? {
51802
51802
  ...z,
51803
51803
  width: ri(B)
@@ -51860,42 +51860,42 @@ function Z1e() {
51860
51860
  return z.isSet("table_default_attributes") ? ie : Ca(B, ie);
51861
51861
  }, Df = (B, z) => z.column >= B.startCol && z.column + z.colspan - 1 <= B.finishCol && z.row >= B.startRow && z.row + z.rowspan - 1 <= B.finishRow, b0 = (B, z) => {
51862
51862
  let ie = !0;
51863
- const Ce = te(Df, z);
51863
+ const Se = te(Df, z);
51864
51864
  for (let ut = z.startRow; ut <= z.finishRow; ut++)
51865
51865
  for (let Ee = z.startCol; Ee <= z.finishCol; Ee++)
51866
- ie = ie && hu.getAt(B, ut, Ee).exists(Ce);
51866
+ ie = ie && hu.getAt(B, ut, Ee).exists(Se);
51867
51867
  return ie ? G.some(z) : G.none();
51868
51868
  }, Je = (B, z) => Gt(Math.min(B.row, z.row), Math.min(B.column, z.column), Math.max(B.row + B.rowspan - 1, z.row + z.rowspan - 1), Math.max(B.column + B.colspan - 1, z.column + z.colspan - 1)), $f = (B, z, ie) => {
51869
- const Ce = hu.findItem(B, z, Qs), ut = hu.findItem(B, ie, Qs);
51870
- return Ce.bind((Ee) => ut.map((vn) => Je(Ee, vn)));
51871
- }, wl = (B, z, ie) => $f(B, z, ie).bind((Ce) => b0(B, Ce)), kb = (B, z, ie) => {
51872
- const Ce = Ap(B);
51873
- return wl(Ce, z, ie);
51869
+ const Se = hu.findItem(B, z, Qs), ut = hu.findItem(B, ie, Qs);
51870
+ return Se.bind((Ee) => ut.map((vn) => Je(Ee, vn)));
51871
+ }, wl = (B, z, ie) => $f(B, z, ie).bind((Se) => b0(B, Se)), kb = (B, z, ie) => {
51872
+ const Se = Ap(B);
51873
+ return wl(Se, z, ie);
51874
51874
  }, Ap = hu.fromTable, Ud = (B, z) => {
51875
- ar(B).each((Ce) => {
51876
- Ce.dom.insertBefore(z.dom, B.dom);
51875
+ ar(B).each((Se) => {
51876
+ Se.dom.insertBefore(z.dom, B.dom);
51877
51877
  });
51878
51878
  }, Zo = (B, z) => {
51879
51879
  bl(B).fold(() => {
51880
51880
  ar(B).each((ut) => {
51881
51881
  Ba(ut, z);
51882
51882
  });
51883
- }, (Ce) => {
51884
- Ud(Ce, z);
51883
+ }, (Se) => {
51884
+ Ud(Se, z);
51885
51885
  });
51886
51886
  }, ii = (B, z) => {
51887
51887
  Be(B).fold(() => {
51888
51888
  Ba(B, z);
51889
- }, (Ce) => {
51890
- B.dom.insertBefore(z.dom, Ce.dom);
51889
+ }, (Se) => {
51890
+ B.dom.insertBefore(z.dom, Se.dom);
51891
51891
  });
51892
51892
  }, Ba = (B, z) => {
51893
51893
  B.dom.appendChild(z.dom);
51894
51894
  }, hd = (B, z) => {
51895
51895
  Ud(B, z), Ba(z, B);
51896
51896
  }, v0 = (B, z) => {
51897
- ne(z, (ie, Ce) => {
51898
- const ut = Ce === 0 ? B : z[Ce - 1];
51897
+ ne(z, (ie, Se) => {
51898
+ const ut = Se === 0 ? B : z[Se - 1];
51899
51899
  Zo(ut, ie);
51900
51900
  });
51901
51901
  }, Rf = (B, z) => {
@@ -51912,11 +51912,11 @@ function Z1e() {
51912
51912
  const ie = (Ee) => {
51913
51913
  if (!B(Ee))
51914
51914
  throw new Error("Can only get " + z + " value of a " + z + " node");
51915
- return Ce(Ee).getOr("");
51916
- }, Ce = (Ee) => B(Ee) ? G.from(Ee.dom.nodeValue) : G.none();
51915
+ return Se(Ee).getOr("");
51916
+ }, Se = (Ee) => B(Ee) ? G.from(Ee.dom.nodeValue) : G.none();
51917
51917
  return {
51918
51918
  get: ie,
51919
- getOption: Ce,
51919
+ getOption: Se,
51920
51920
  set: (Ee, vn) => {
51921
51921
  if (!B(Ee))
51922
51922
  throw new Error("Can only set raw " + z + " value of a " + z + " node");
@@ -51957,7 +51957,7 @@ function Z1e() {
51957
51957
  "pre",
51958
51958
  "address"
51959
51959
  ], hm = () => {
51960
- const B = (qs) => Pn.fromDom(qs.dom.cloneNode(!1)), z = (qs) => us(qs).dom, ie = (qs) => wi(qs) ? pn(qs) === "body" ? !0 : ye(tc, pn(qs)) : !1, Ce = (qs) => wi(qs) ? ye([
51960
+ const B = (qs) => Pn.fromDom(qs.dom.cloneNode(!1)), z = (qs) => us(qs).dom, ie = (qs) => wi(qs) ? pn(qs) === "body" ? !0 : ye(tc, pn(qs)) : !1, Se = (qs) => wi(qs) ? ye([
51961
51961
  "br",
51962
51962
  "img",
51963
51963
  "hr",
@@ -52038,45 +52038,45 @@ function Z1e() {
52038
52038
  getText: Xd,
52039
52039
  setText: fm,
52040
52040
  isBoundary: ie,
52041
- isEmptyTag: Ce,
52041
+ isEmptyTag: Se,
52042
52042
  isNonEditable: ut
52043
52043
  }),
52044
52044
  eq: Qs,
52045
52045
  is: Br
52046
52046
  };
52047
52047
  };
52048
- const ka = (B, z, ie, Ce) => {
52048
+ const ka = (B, z, ie, Se) => {
52049
52049
  const ut = ie[0], Ee = ie.slice(1);
52050
- return Ce(B, z, ut, Ee);
52051
- }, qd = (B, z, ie) => ie.length > 0 ? ka(B, z, ie, Bc) : G.none(), Bc = (B, z, ie, Ce) => {
52050
+ return Se(B, z, ut, Ee);
52051
+ }, qd = (B, z, ie) => ie.length > 0 ? ka(B, z, ie, Bc) : G.none(), Bc = (B, z, ie, Se) => {
52052
52052
  const ut = z(B, ie);
52053
- return cs(Ce, (Ee, vn) => {
52053
+ return cs(Se, (Ee, vn) => {
52054
52054
  const ns = z(B, vn);
52055
52055
  return al(B, Ee, ns);
52056
52056
  }, ut);
52057
- }, al = (B, z, ie) => z.bind((Ce) => ie.filter(te(B.eq, Ce))), Mf = qd, _b = hm(), fg = (B, z) => Mf(_b, (ie, Ce) => B(Ce), z), Lu = (B) => un(B, "table"), mh = (B, z) => {
52057
+ }, al = (B, z, ie) => z.bind((Se) => ie.filter(te(B.eq, Se))), Mf = qd, _b = hm(), fg = (B, z) => Mf(_b, (ie, Se) => B(Se), z), Lu = (B) => un(B, "table"), mh = (B, z) => {
52058
52058
  const ie = ta(B, z);
52059
52059
  return ie.length > 0 ? G.some(ie) : G.none();
52060
- }, Pp = (B, z, ie) => bt(B, z).bind((Ce) => bt(B, ie).bind((ut) => fg(Lu, [
52061
- Ce,
52060
+ }, Pp = (B, z, ie) => bt(B, z).bind((Se) => bt(B, ie).bind((ut) => fg(Lu, [
52061
+ Se,
52062
52062
  ut
52063
52063
  ]).map((Ee) => ({
52064
- first: Ce,
52064
+ first: Se,
52065
52065
  last: ut,
52066
52066
  table: Ee
52067
- })))), hg = (B, z) => mh(B, z), Dp = (B, z, ie) => Pp(B, z, ie).bind((Ce) => {
52068
- const ut = (rs) => Qs(B, rs), Ee = "thead,tfoot,tbody,table", vn = un(Ce.first, Ee, ut), ns = un(Ce.last, Ee, ut);
52069
- return vn.bind((rs) => ns.bind((qs) => Qs(rs, qs) ? kb(Ce.table, Ce.first, Ce.last) : G.none()));
52067
+ })))), hg = (B, z) => mh(B, z), Dp = (B, z, ie) => Pp(B, z, ie).bind((Se) => {
52068
+ const ut = (rs) => Qs(B, rs), Ee = "thead,tfoot,tbody,table", vn = un(Se.first, Ee, ut), ns = un(Se.last, Ee, ut);
52069
+ return vn.bind((rs) => ns.bind((qs) => Qs(rs, qs) ? kb(Se.table, Se.first, Se.last) : G.none()));
52070
52070
  }), $p = (B) => vt(B, Pn.fromDom), Rp = "data-mce-selected", Qu = "data-mce-first-selected", y0 = "td[" + Qu + "],th[" + Qu + "]", gu = "data-mce-last-selected", ei = "td[" + gu + "],th[" + gu + "]", Ni = {
52071
52071
  selected: Rp,
52072
52072
  firstSelectedSelector: y0,
52073
52073
  lastSelectedSelector: ei
52074
52074
  }, nc = (B) => Et(B).bind((z) => hg(z, Ni.firstSelectedSelector)).fold(Y(B), (z) => z[0]), gh = (B) => (z, ie) => {
52075
- const Ce = pn(z), ut = Ce === "col" || Ce === "colgroup" ? nc(z) : z;
52075
+ const Se = pn(z), ut = Se === "col" || Se === "colgroup" ? nc(z) : z;
52076
52076
  return dt(ut, B, ie);
52077
52077
  }, ph = gh("th,td,caption"), ia = gh("th,td"), ls = (B) => $p(B.model.table.getSelectedCells()), O0 = (B, z) => {
52078
- const ie = ia(B), Ce = ie.bind((ut) => Et(ut)).map((ut) => jn(ut));
52079
- return Mu(ie, Ce, (ut, Ee) => ss(Ee, (vn) => Qe($p(vn.dom.cells), (ns) => Pi(ns, z) === "1" || Qs(ns, ut)))).getOr([]);
52078
+ const ie = ia(B), Se = ie.bind((ut) => Et(ut)).map((ut) => jn(ut));
52079
+ return Mu(ie, Se, (ut, Ee) => ss(Ee, (vn) => Qe($p(vn.dom.cells), (ns) => Pi(ns, z) === "1" || Qs(ns, ut)))).getOr([]);
52080
52080
  }, pu = [
52081
52081
  {
52082
52082
  text: "None",
@@ -52100,13 +52100,13 @@ function Z1e() {
52100
52100
  }, oc = (B) => {
52101
52101
  const z = bu(B.red) + bu(B.green) + bu(B.blue);
52102
52102
  return sc(z);
52103
- }, mg = /^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i, ki = /^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i, ll = (B, z, ie, Ce) => ({
52103
+ }, mg = /^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i, ki = /^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i, ll = (B, z, ie, Se) => ({
52104
52104
  red: B,
52105
52105
  green: z,
52106
52106
  blue: ie,
52107
- alpha: Ce
52108
- }), Cl = (B, z, ie, Ce) => {
52109
- const ut = parseInt(B, 10), Ee = parseInt(z, 10), vn = parseInt(ie, 10), ns = parseFloat(Ce);
52107
+ alpha: Se
52108
+ }), Cl = (B, z, ie, Se) => {
52109
+ const ut = parseInt(B, 10), Ee = parseInt(z, 10), vn = parseInt(ie, 10), ns = parseFloat(Se);
52110
52110
  return ll(ut, Ee, vn, ns);
52111
52111
  }, uo = (B) => {
52112
52112
  const z = mg.exec(B);
@@ -52119,7 +52119,7 @@ function Z1e() {
52119
52119
  z.height = 1, z.width = 1;
52120
52120
  const ie = z.getContext("2d");
52121
52121
  ie.clearRect(0, 0, z.width, z.height), ie.fillStyle = "#FFFFFF", ie.fillStyle = B, ie.fillRect(0, 0, 1, 1);
52122
- const Ce = ie.getImageData(0, 0, 1, 1).data, ut = Ce[0], Ee = Ce[1], vn = Ce[2], ns = Ce[3];
52122
+ const Se = ie.getImageData(0, 0, 1, 1).data, ut = Se[0], Ee = Se[1], vn = Se[2], ns = Se[3];
52123
52123
  return oc(ll(ut, Ee, vn, ns));
52124
52124
  }), Fc = (B) => uo(B).map(oc).map((z) => "#" + z.value).getOr(B), bh = (B) => {
52125
52125
  let z = B;
@@ -52141,10 +52141,10 @@ function Z1e() {
52141
52141
  ie(), z.set(G.some(ns));
52142
52142
  }
52143
52143
  };
52144
- }, gg = () => Lr((B) => B.unbind()), po = (B, z, ie) => (Ce) => {
52144
+ }, gg = () => Lr((B) => B.unbind()), po = (B, z, ie) => (Se) => {
52145
52145
  const ut = gg(), Ee = lu(ie), vn = () => {
52146
52146
  const ns = ls(B), rs = (qs) => B.formatter.match(z, { value: ie }, qs.dom, Ee);
52147
- Ee ? (Ce.setActive(!Qe(ns, rs)), ut.set(B.formatter.formatChanged(z, (qs) => Ce.setActive(!qs), !0))) : (Ce.setActive(Un(ns, rs)), ut.set(B.formatter.formatChanged(z, Ce.setActive, !1, { value: ie })));
52147
+ Ee ? (Se.setActive(!Qe(ns, rs)), ut.set(B.formatter.formatChanged(z, (qs) => Se.setActive(!qs), !0))) : (Se.setActive(Un(ns, rs)), ut.set(B.formatter.formatChanged(z, Se.setActive, !1, { value: ie })));
52148
52148
  };
52149
52149
  return B.initialized ? vn() : B.on("init", vn), ut.clear;
52150
52150
  }, ga = (B) => Zt(B, "menu"), Ic = (B) => vt(B, (z) => {
@@ -52162,16 +52162,16 @@ function Z1e() {
52162
52162
  value: "mce-no-match"
52163
52163
  },
52164
52164
  ...B
52165
- ])) : G.none(), Vl = (B, z, ie, Ce) => vt(z, (ut) => {
52165
+ ])) : G.none(), Vl = (B, z, ie, Se) => vt(z, (ut) => {
52166
52166
  const Ee = ut.text || ut.title;
52167
52167
  return ga(ut) ? {
52168
52168
  type: "nestedmenuitem",
52169
52169
  text: Ee,
52170
- getSubmenuItems: () => Vl(B, ut.menu, ie, Ce)
52170
+ getSubmenuItems: () => Vl(B, ut.menu, ie, Se)
52171
52171
  } : {
52172
52172
  text: Ee,
52173
52173
  type: "togglemenuitem",
52174
- onAction: () => Ce(ut.value),
52174
+ onAction: () => Se(ut.value),
52175
52175
  onSetup: po(B, ie, ut.value)
52176
52176
  };
52177
52177
  }), pm = (B, z) => (ie) => {
@@ -52179,8 +52179,8 @@ function Z1e() {
52179
52179
  }, vh = (B) => ke(B, (z) => ga(z) ? [{
52180
52180
  ...z,
52181
52181
  menu: vh(z.menu)
52182
- }] : Ol(z.value) ? [z] : []), bm = (B, z, ie, Ce) => (ut) => ut(Vl(B, z, ie, Ce)), Gd = (B, z, ie) => {
52183
- const Ce = vt(z, (ut) => ({
52182
+ }] : Ol(z.value) ? [z] : []), bm = (B, z, ie, Se) => (ut) => ut(Vl(B, z, ie, Se)), Gd = (B, z, ie) => {
52183
+ const Se = vt(z, (ut) => ({
52184
52184
  text: ut.title,
52185
52185
  value: "#" + _i(ut.value).value,
52186
52186
  type: "choiceitem"
@@ -52189,7 +52189,7 @@ function Z1e() {
52189
52189
  type: "fancymenuitem",
52190
52190
  fancytype: "colorswatch",
52191
52191
  initData: {
52192
- colors: Ce.length > 0 ? Ce : void 0,
52192
+ colors: Se.length > 0 ? Se : void 0,
52193
52193
  allowCustomColors: !1
52194
52194
  },
52195
52195
  onAction: (ut) => {
@@ -52286,7 +52286,7 @@ function Z1e() {
52286
52286
  items: pu
52287
52287
  }
52288
52288
  ], Q = (B) => bi.concat(Np(B).toArray()), K = (B, z) => {
52289
- const Ce = [
52289
+ const Se = [
52290
52290
  {
52291
52291
  name: "borderstyle",
52292
52292
  type: "listbox",
@@ -52314,7 +52314,7 @@ function Z1e() {
52314
52314
  name: "borderwidth",
52315
52315
  type: "input",
52316
52316
  label: "Border width"
52317
- }].concat(Ce) : Ce
52317
+ }].concat(Se) : Se
52318
52318
  };
52319
52319
  }, Ge = { normal: (B, z) => {
52320
52320
  const ie = B.dom;
@@ -52339,18 +52339,18 @@ function Z1e() {
52339
52339
  const z = ss(B, (ie) => lt(ie.element));
52340
52340
  return z.length === 0 ? G.some("td") : z.length === B.length ? G.some("th") : G.none();
52341
52341
  }, Fs = (B) => {
52342
- const z = vt(B, (ut) => Vn(ut).type), ie = ye(z, "header"), Ce = ye(z, "footer");
52343
- if (!ie && !Ce)
52342
+ const z = vt(B, (ut) => Vn(ut).type), ie = ye(z, "header"), Se = ye(z, "footer");
52343
+ if (!ie && !Se)
52344
52344
  return G.some("body");
52345
52345
  {
52346
52346
  const ut = ye(z, "body");
52347
- return ie && !ut && !Ce ? G.some("header") : !ie && !ut && Ce ? G.some("footer") : G.none();
52347
+ return ie && !ut && !Se ? G.some("header") : !ie && !ut && Se ? G.some("footer") : G.none();
52348
52348
  }
52349
52349
  }, fs = (B) => {
52350
52350
  let z = !1, ie;
52351
- return (...Ce) => (z || (z = !0, ie = B.apply(null, Ce)), ie);
52352
- }, Or = (B, z) => ir(B.all, (ie) => ct(ie.cells, (Ce) => Qs(z, Ce.element))), ti = (B, z, ie) => {
52353
- const Ce = vt(z.selection, (Ee) => oe(Ee).bind((vn) => Or(B, vn)).filter(ie)), ut = vl(Ce);
52351
+ return (...Se) => (z || (z = !0, ie = B.apply(null, Se)), ie);
52352
+ }, Or = (B, z) => ir(B.all, (ie) => ct(ie.cells, (Se) => Qs(z, Se.element))), ti = (B, z, ie) => {
52353
+ const Se = vt(z.selection, (Ee) => oe(Ee).bind((vn) => Or(B, vn)).filter(ie)), ut = vl(Se);
52354
52354
  return Kl(ut.length > 0, ut);
52355
52355
  }, Hl = (B, z) => z.mergable, rc = (B, z) => z.unmergable, Bp = (B, z) => ti(B, z, ot), Tb = (B, z) => Or(B, z).exists((ie) => !ie.isLocked), Eb = (B, z) => Un(z, (ie) => Tb(B, ie)), kl = (B, z) => Hl(B, z).filter((ie) => Eb(B, ie.cells)), Fp = (B, z) => rc(B, z).filter((ie) => Eb(B, ie));
52356
52356
  ({ ...{ generate: (B) => {
@@ -52359,11 +52359,11 @@ function Z1e() {
52359
52359
  if (B.length === 0)
52360
52360
  throw new Error("there must be at least one case");
52361
52361
  const z = [], ie = {};
52362
- return ne(B, (Ce, ut) => {
52363
- const Ee = rt(Ce);
52362
+ return ne(B, (Se, ut) => {
52363
+ const Ee = rt(Se);
52364
52364
  if (Ee.length !== 1)
52365
52365
  throw new Error("one and only one name per case");
52366
- const vn = Ee[0], ns = Ce[vn];
52366
+ const vn = Ee[0], ns = Se[vn];
52367
52367
  if (ie[vn] !== void 0)
52368
52368
  throw new Error("duplicate key detected:" + vn);
52369
52369
  if (vn === "cata")
@@ -52439,15 +52439,15 @@ Required: ` + z.join(", "));
52439
52439
  };
52440
52440
  }, $2 = (B) => {
52441
52441
  const z = B[0], ie = B.slice(1);
52442
- return ne(ie, (Ce) => {
52442
+ return ne(ie, (Se) => {
52443
52443
  ne(rt(z), (ut) => {
52444
- wt(Ce, (Ee, vn) => {
52444
+ wt(Se, (Ee, vn) => {
52445
52445
  const ns = z[ut];
52446
52446
  ns !== "" && ut === vn && ns !== Ee && (z[ut] = ut === "class" ? "mce-no-match" : "");
52447
52447
  });
52448
52448
  });
52449
52449
  }), z;
52450
- }, md = (B, z, ie, Ce) => ct(B, (ut) => !C(ie.formatter.matchNode(Ce, z + ut))).getOr(""), vg = te(md, [
52450
+ }, md = (B, z, ie, Se) => ct(B, (ut) => !C(ie.formatter.matchNode(Se, z + ut))).getOr(""), vg = te(md, [
52451
52451
  "left",
52452
52452
  "center",
52453
52453
  "right"
@@ -52456,7 +52456,7 @@ Required: ` + z.join(", "));
52456
52456
  "middle",
52457
52457
  "bottom"
52458
52458
  ], "valign"), Pb = (B, z) => {
52459
- const ie = ug(B), Ce = p0(B), ut = () => ({
52459
+ const ie = ug(B), Se = p0(B), ut = () => ({
52460
52460
  borderstyle: tn(ie, "border-style").getOr(""),
52461
52461
  bordercolor: pg(tn(ie, "border-color").getOr("")),
52462
52462
  backgroundcolor: pg(tn(ie, "background-color").getOr(""))
@@ -52471,9 +52471,9 @@ Required: ` + z.join(", "));
52471
52471
  border: ""
52472
52472
  }, vn = () => {
52473
52473
  const Co = ie["border-width"];
52474
- return yc(B) && Co ? { border: Co } : tn(Ce, "border").fold(() => ({}), (Vs) => ({ border: Vs }));
52474
+ return yc(B) && Co ? { border: Co } : tn(Se, "border").fold(() => ({}), (Vs) => ({ border: Vs }));
52475
52475
  }, ns = z ? ut() : {}, rs = () => {
52476
- const Co = tn(ie, "border-spacing").or(tn(Ce, "cellspacing")).fold(() => ({}), (Gr) => ({ cellspacing: Gr })), Vs = tn(ie, "border-padding").or(tn(Ce, "cellpadding")).fold(() => ({}), (Gr) => ({ cellpadding: Gr }));
52476
+ const Co = tn(ie, "border-spacing").or(tn(Se, "cellspacing")).fold(() => ({}), (Gr) => ({ cellspacing: Gr })), Vs = tn(ie, "border-padding").or(tn(Se, "cellpadding")).fold(() => ({}), (Gr) => ({ cellpadding: Gr }));
52477
52477
  return {
52478
52478
  ...Co,
52479
52479
  ...Vs
@@ -52482,7 +52482,7 @@ Required: ` + z.join(", "));
52482
52482
  return {
52483
52483
  ...Ee,
52484
52484
  ...ie,
52485
- ...Ce,
52485
+ ...Se,
52486
52486
  ...ns,
52487
52487
  ...vn(),
52488
52488
  ...rs()
@@ -52491,7 +52491,7 @@ Required: ` + z.join(", "));
52491
52491
  const ie = { selection: $p(B.cells) };
52492
52492
  return la(z, ie);
52493
52493
  }).getOr(""), Ly = (B, z, ie) => {
52494
- const Ce = (ns, rs) => {
52494
+ const Se = (ns, rs) => {
52495
52495
  const qs = Kr(Pn.fromDom(rs), "border-width");
52496
52496
  return yc(B) && qs.isSome() ? qs.getOr("") : ns.getAttrib(rs, "border") || oa(B.dom, rs, "border-width") || oa(B.dom, rs, "border") || "";
52497
52497
  }, ut = B.dom, Ee = yc(B) ? ut.getStyle(z, "border-spacing") || ut.getAttrib(z, "cellspacing") : ut.getAttrib(z, "cellspacing") || ut.getStyle(z, "border-spacing"), vn = yc(B) ? oa(ut, z, "padding") || ut.getAttrib(z, "cellpadding") : ut.getAttrib(z, "cellpadding") || oa(ut, z, "padding");
@@ -52500,23 +52500,23 @@ Required: ` + z.join(", "));
52500
52500
  height: ut.getStyle(z, "height") || ut.getAttrib(z, "height"),
52501
52501
  cellspacing: Ee ?? "",
52502
52502
  cellpadding: vn ?? "",
52503
- border: Ce(ut, z),
52503
+ border: Se(ut, z),
52504
52504
  caption: !!ut.select("caption", z)[0],
52505
52505
  class: ut.getAttrib(z, "class", ""),
52506
52506
  align: vg(B, z),
52507
52507
  ...ie ? bg(z) : {}
52508
52508
  };
52509
52509
  }, vm = (B, z, ie) => {
52510
- const Ce = B.dom;
52510
+ const Se = B.dom;
52511
52511
  return {
52512
- height: Ce.getStyle(z, "height") || Ce.getAttrib(z, "height"),
52513
- class: Ce.getAttrib(z, "class", ""),
52512
+ height: Se.getStyle(z, "height") || Se.getAttrib(z, "height"),
52513
+ class: Se.getAttrib(z, "class", ""),
52514
52514
  type: R2(z),
52515
52515
  align: vg(B, z),
52516
52516
  ...ie ? bg(z) : {}
52517
52517
  };
52518
- }, w0 = (B, z, ie, Ce) => {
52519
- const ut = B.dom, Ee = Ce.getOr(z);
52518
+ }, w0 = (B, z, ie, Se) => {
52519
+ const ut = B.dom, Ee = Se.getOr(z);
52520
52520
  return {
52521
52521
  width: ((ns, rs) => ut.getStyle(ns, rs) || ut.getAttrib(ns, rs))(Ee, "width"),
52522
52522
  scope: ut.getAttrib(z, "scope"),
@@ -52527,48 +52527,48 @@ Required: ` + z.join(", "));
52527
52527
  ...ie ? bg(z) : {}
52528
52528
  };
52529
52529
  }, ds = (B, z) => {
52530
- const ie = hu.fromTable(B), Ce = hu.justCells(ie), ut = ss(Ce, (Ee) => Qe(z, (vn) => Qs(Ee.element, vn)));
52530
+ const ie = hu.fromTable(B), Se = hu.justCells(ie), ut = ss(Se, (Ee) => Qe(z, (vn) => Qs(Ee.element, vn)));
52531
52531
  return vt(ut, (Ee) => ({
52532
52532
  element: Ee.element.dom,
52533
52533
  column: hu.getColumnAt(ie, Ee.column).map((vn) => vn.element.dom)
52534
52534
  }));
52535
- }, Yd = (B, z, ie, Ce) => {
52536
- Ce("scope") && B.setAttrib("scope", ie.scope), Ce("class") && ie.class !== "mce-no-match" && B.setAttrib("class", ie.class), Ce("width") && z.setStyle("width", Qn(ie.width));
52535
+ }, Yd = (B, z, ie, Se) => {
52536
+ Se("scope") && B.setAttrib("scope", ie.scope), Se("class") && ie.class !== "mce-no-match" && B.setAttrib("class", ie.class), Se("width") && z.setStyle("width", Qn(ie.width));
52537
52537
  }, Lc = (B, z, ie) => {
52538
52538
  ie("backgroundcolor") && B.setFormat("tablecellbackgroundcolor", z.backgroundcolor), ie("bordercolor") && B.setFormat("tablecellbordercolor", z.bordercolor), ie("borderstyle") && B.setFormat("tablecellborderstyle", z.borderstyle), ie("borderwidth") && B.setFormat("tablecellborderwidth", Qn(z.borderwidth));
52539
- }, As = (B, z, ie, Ce) => {
52539
+ }, As = (B, z, ie, Se) => {
52540
52540
  const ut = z.length === 1;
52541
52541
  ne(z, (Ee) => {
52542
- const vn = Ee.element, ns = ut ? ot : Ce, rs = Ge.normal(B, vn), qs = Ee.column.map((Co) => Ge.normal(B, Co)).getOr(rs);
52543
- Yd(rs, qs, ie, ns), fd(B) && Lc(rs, ie, ns), Ce("halign") && Ya(B, vn, ie.halign), Ce("valign") && Fu(B, vn, ie.valign);
52542
+ const vn = Ee.element, ns = ut ? ot : Se, rs = Ge.normal(B, vn), qs = Ee.column.map((Co) => Ge.normal(B, Co)).getOr(rs);
52543
+ Yd(rs, qs, ie, ns), fd(B) && Lc(rs, ie, ns), Se("halign") && Ya(B, vn, ie.halign), Se("valign") && Fu(B, vn, ie.valign);
52544
52544
  });
52545
52545
  }, cl = (B, z) => {
52546
52546
  B.execCommand("mceTableCellType", !1, {
52547
52547
  type: z.celltype,
52548
52548
  no_events: !0
52549
52549
  });
52550
- }, yh = (B, z, ie, Ce) => {
52551
- const ut = Kt(Ce, (Ee, vn) => ie[vn] !== Ee);
52550
+ }, yh = (B, z, ie, Se) => {
52551
+ const ut = Kt(Se, (Ee, vn) => ie[vn] !== Ee);
52552
52552
  F(ut) > 0 && z.length >= 1 && Et(z[0]).each((Ee) => {
52553
52553
  const vn = ds(Ee, z), ns = F(Kt(ut, (qs, Co) => Co !== "scope" && Co !== "celltype")) > 0, rs = ft(ut, "celltype");
52554
- (ns || ft(ut, "scope")) && As(B, vn, Ce, te(ft, ut)), rs && cl(B, Ce), _e(B, Ee.dom, {
52554
+ (ns || ft(ut, "scope")) && As(B, vn, Se, te(ft, ut)), rs && cl(B, Se), _e(B, Ee.dom, {
52555
52555
  structure: rs,
52556
52556
  style: ns
52557
52557
  });
52558
52558
  });
52559
- }, Db = (B, z, ie, Ce) => {
52560
- const ut = Ce.getData();
52561
- Ce.close(), B.undoManager.transact(() => {
52559
+ }, Db = (B, z, ie, Se) => {
52560
+ const ut = Se.getData();
52561
+ Se.close(), B.undoManager.transact(() => {
52562
52562
  yh(B, z, ie, ut), B.focus();
52563
52563
  });
52564
52564
  }, ym = (B, z) => {
52565
- const ie = Et(z[0]).map((Ce) => vt(ds(Ce, z), (ut) => w0(B, ut.element, fd(B), ut.column)));
52565
+ const ie = Et(z[0]).map((Se) => vt(ds(Se, z), (ut) => w0(B, ut.element, fd(B), ut.column)));
52566
52566
  return $2(ie.getOrDie());
52567
52567
  }, Vp = (B) => {
52568
52568
  const z = ls(B);
52569
52569
  if (z.length === 0)
52570
52570
  return;
52571
- const ie = ym(B, z), Ce = {
52571
+ const ie = ym(B, z), Se = {
52572
52572
  type: "tabpanel",
52573
52573
  tabs: [
52574
52574
  {
@@ -52589,7 +52589,7 @@ Required: ` + z.join(", "));
52589
52589
  B.windowManager.open({
52590
52590
  title: "Cell Properties",
52591
52591
  size: "normal",
52592
- body: fd(B) ? Ce : ut,
52592
+ body: fd(B) ? Se : ut,
52593
52593
  buttons: [
52594
52594
  {
52595
52595
  type: "cancel",
@@ -52663,38 +52663,38 @@ Required: ` + z.join(", "));
52663
52663
  ie("class") && z.class !== "mce-no-match" && B.setAttrib("class", z.class), ie("height") && B.setStyle("height", Qn(z.height));
52664
52664
  }, C0 = (B, z, ie) => {
52665
52665
  ie("backgroundcolor") && B.setStyle("background-color", z.backgroundcolor), ie("bordercolor") && B.setStyle("border-color", z.bordercolor), ie("borderstyle") && B.setStyle("border-style", z.borderstyle);
52666
- }, Oh = (B, z, ie, Ce) => {
52667
- const Ee = z.length === 1 ? ot : Ce;
52666
+ }, Oh = (B, z, ie, Se) => {
52667
+ const Ee = z.length === 1 ? ot : Se;
52668
52668
  ne(z, (vn) => {
52669
52669
  const ns = Ga(Pn.fromDom(vn), "td,th"), rs = Ge.normal(B, vn);
52670
- sn(rs, ie, Ee), uh(B) && C0(rs, ie, Ee), Ce("height") && ne(ns, (qs) => {
52670
+ sn(rs, ie, Ee), uh(B) && C0(rs, ie, Ee), Se("height") && ne(ns, (qs) => {
52671
52671
  B.dom.setStyle(qs.dom, "height", null);
52672
- }), Ce("align") && Ya(B, vn, ie.align);
52672
+ }), Se("align") && Ya(B, vn, ie.align);
52673
52673
  });
52674
52674
  }, Nf = (B, z) => {
52675
52675
  B.execCommand("mceTableRowType", !1, {
52676
52676
  type: z.type,
52677
52677
  no_events: !0
52678
52678
  });
52679
- }, k0 = (B, z, ie, Ce) => {
52680
- const ut = Kt(Ce, (Ee, vn) => ie[vn] !== Ee);
52679
+ }, k0 = (B, z, ie, Se) => {
52680
+ const ut = Kt(Se, (Ee, vn) => ie[vn] !== Ee);
52681
52681
  if (F(ut) > 0) {
52682
52682
  const Ee = ft(ut, "type"), vn = Ee ? F(ut) > 1 : !0;
52683
- vn && Oh(B, z, Ce, te(ft, ut)), Ee && Nf(B, Ce), Et(Pn.fromDom(z[0])).each((ns) => _e(B, ns.dom, {
52683
+ vn && Oh(B, z, Se, te(ft, ut)), Ee && Nf(B, Se), Et(Pn.fromDom(z[0])).each((ns) => _e(B, ns.dom, {
52684
52684
  structure: Ee,
52685
52685
  style: vn
52686
52686
  }));
52687
52687
  }
52688
- }, Hp = (B, z, ie, Ce) => {
52689
- const ut = Ce.getData();
52690
- Ce.close(), B.undoManager.transact(() => {
52688
+ }, Hp = (B, z, ie, Se) => {
52689
+ const ut = Se.getData();
52690
+ Se.close(), B.undoManager.transact(() => {
52691
52691
  k0(B, z, ie, ut), B.focus();
52692
52692
  });
52693
52693
  }, Ar = (B) => {
52694
52694
  const z = O0(ps(B), Ni.selected);
52695
52695
  if (z.length === 0)
52696
52696
  return;
52697
- const ie = vt(z, (vn) => vm(B, vn.dom, uh(B))), Ce = $2(ie), ut = {
52697
+ const ie = vt(z, (vn) => vm(B, vn.dom, uh(B))), Se = $2(ie), ut = {
52698
52698
  type: "tabpanel",
52699
52699
  tabs: [
52700
52700
  {
@@ -52729,11 +52729,11 @@ Required: ` + z.join(", "));
52729
52729
  primary: !0
52730
52730
  }
52731
52731
  ],
52732
- initialData: Ce,
52733
- onSubmit: te(Hp, B, vt(z, (vn) => vn.dom), Ce)
52732
+ initialData: Se,
52733
+ onSubmit: te(Hp, B, vt(z, (vn) => vn.dom), Se)
52734
52734
  });
52735
52735
  }, Qy = (B, z, ie) => {
52736
- const Ce = ie ? [
52736
+ const Se = ie ? [
52737
52737
  {
52738
52738
  type: "input",
52739
52739
  name: "cols",
@@ -52812,18 +52812,18 @@ Required: ` + z.join(", "));
52812
52812
  label: "Class",
52813
52813
  items: z
52814
52814
  }] : [];
52815
- return Ce.concat(ut).concat(Ee).concat(vn).concat(ns);
52816
- }, _l = (B, z, ie, Ce) => {
52815
+ return Se.concat(ut).concat(Ee).concat(vn).concat(ns);
52816
+ }, _l = (B, z, ie, Se) => {
52817
52817
  if (z.tagName === "TD" || z.tagName === "TH")
52818
- h(ie) && R(Ce) ? B.setStyle(z, ie, Ce) : B.setStyles(z, ie);
52818
+ h(ie) && R(Se) ? B.setStyle(z, ie, Se) : B.setStyles(z, ie);
52819
52819
  else if (z.children)
52820
52820
  for (let ut = 0; ut < z.children.length; ut++)
52821
- _l(B, z.children[ut], ie, Ce);
52822
- }, Ur = (B, z, ie, Ce) => {
52821
+ _l(B, z.children[ut], ie, Se);
52822
+ }, Ur = (B, z, ie, Se) => {
52823
52823
  const ut = B.dom, Ee = {}, vn = {}, ns = yc(B), rs = dh(B), qs = parseFloat(ie.border) === 0;
52824
52824
  if (!C(ie.class) && ie.class !== "mce-no-match" && (Ee.class = ie.class), vn.height = Qn(ie.height), ns ? vn.width = Qn(ie.width) : ut.getAttrib(z, "width") && (Ee.width = os(ie.width)), ns ? (qs ? (Ee.border = 0, vn["border-width"] = "") : (vn["border-width"] = Qn(ie.border), Ee.border = 1), vn["border-spacing"] = Qn(ie.cellspacing)) : (Ee.border = qs ? 0 : ie.border, Ee.cellpadding = ie.cellpadding, Ee.cellspacing = ie.cellspacing), ns && z.children) {
52825
52825
  const Co = {};
52826
- if (qs ? Co["border-width"] = "" : Ce.border && (Co["border-width"] = Qn(ie.border)), Ce.cellpadding && (Co.padding = Qn(ie.cellpadding)), rs && Ce.bordercolor && (Co["border-color"] = ie.bordercolor), !Xt(Co))
52826
+ if (qs ? Co["border-width"] = "" : Se.border && (Co["border-width"] = Qn(ie.border)), Se.cellpadding && (Co.padding = Qn(ie.cellpadding)), rs && Se.bordercolor && (Co["border-color"] = ie.bordercolor), !Xt(Co))
52827
52827
  for (let Vs = 0; Vs < z.children.length; Vs++)
52828
52828
  _l(ut, z.children[Vs], Co);
52829
52829
  }
@@ -52838,9 +52838,9 @@ Required: ` + z.join(", "));
52838
52838
  ...p0(B),
52839
52839
  ...Ee
52840
52840
  });
52841
- }, $b = (B, z, ie, Ce) => {
52842
- const ut = B.dom, Ee = Ce.getData(), vn = Kt(Ee, (ns, rs) => ie[rs] !== ns);
52843
- Ce.close(), B.undoManager.transact(() => {
52841
+ }, $b = (B, z, ie, Se) => {
52842
+ const ut = B.dom, Ee = Se.getData(), vn = Kt(Ee, (ns, rs) => ie[rs] !== ns);
52843
+ Se.close(), B.undoManager.transact(() => {
52844
52844
  if (!z) {
52845
52845
  const ns = Mc(Ee.cols).getOr(1), rs = Mc(Ee.rows).getOr(1);
52846
52846
  B.execCommand("mceInsertTable", !1, {
@@ -52868,8 +52868,8 @@ Required: ` + z.join(", "));
52868
52868
  });
52869
52869
  }, Pr = (B, z) => {
52870
52870
  const ie = B.dom;
52871
- let Ce, ut = Pb(B, dh(B));
52872
- z ? (ut.cols = "1", ut.rows = "1", dh(B) && (ut.borderstyle = "", ut.bordercolor = "", ut.backgroundcolor = "")) : (Ce = ie.getParent(B.selection.getStart(), "table", B.getBody()), Ce ? ut = Ly(B, Ce, dh(B)) : dh(B) && (ut.borderstyle = "", ut.bordercolor = "", ut.backgroundcolor = ""));
52871
+ let Se, ut = Pb(B, dh(B));
52872
+ z ? (ut.cols = "1", ut.rows = "1", dh(B) && (ut.borderstyle = "", ut.bordercolor = "", ut.backgroundcolor = "")) : (Se = ie.getParent(B.selection.getStart(), "table", B.getBody()), Se ? ut = Ly(B, Se, dh(B)) : dh(B) && (ut.borderstyle = "", ut.bordercolor = "", ut.backgroundcolor = ""));
52873
52873
  const Ee = _r(Iu(B));
52874
52874
  Ee.isSome() && ut.class && (ut.class = ut.class.replace(/\s*mce\-item\-table\s*/g, ""));
52875
52875
  const vn = {
@@ -52894,7 +52894,7 @@ Required: ` + z.join(", "));
52894
52894
  title: "Table Properties",
52895
52895
  size: "normal",
52896
52896
  body: qs,
52897
- onSubmit: te($b, B, Ce, ut),
52897
+ onSubmit: te($b, B, Se, ut),
52898
52898
  buttons: [
52899
52899
  {
52900
52900
  type: "cancel",
@@ -52919,12 +52919,12 @@ Required: ` + z.join(", "));
52919
52919
  mceTableRowProps: te(Ar, B),
52920
52920
  mceTableCellProps: te(Vp, B),
52921
52921
  mceInsertTableDialog: te(Pr, B, !0)
52922
- }, (ie, Ce) => B.addCommand(Ce, () => z(ie)));
52922
+ }, (ie, Se) => B.addCommand(Se, () => z(ie)));
52923
52923
  }, Qi = (B, z) => Fn(B, z).isSome(), yg = ue, Tl = (B) => {
52924
- const z = (Ce, ut) => Di(Ce, ut).exists((Ee) => parseInt(Ee, 10) > 1), ie = (Ce) => z(Ce, "rowspan") || z(Ce, "colspan");
52924
+ const z = (Se, ut) => Di(Se, ut).exists((Ee) => parseInt(Ee, 10) > 1), ie = (Se) => z(Se, "rowspan") || z(Se, "colspan");
52925
52925
  return B.length > 0 && Un(B, ie) ? G.some(B) : G.none();
52926
- }, Vy = (B, z, ie) => z.length <= 1 ? G.none() : Dp(B, ie.firstSelectedSelector, ie.lastSelectedSelector).map((Ce) => ({
52927
- bounds: Ce,
52926
+ }, Vy = (B, z, ie) => z.length <= 1 ? G.none() : Dp(B, ie.firstSelectedSelector, ie.lastSelectedSelector).map((Se) => ({
52927
+ bounds: Se,
52928
52928
  cells: z
52929
52929
  })), Ia = (B) => ({
52930
52930
  element: B,
@@ -52938,8 +52938,8 @@ Required: ` + z.join(", "));
52938
52938
  selection: yg(B)
52939
52939
  }), Rb = (B) => {
52940
52940
  const z = bh(G.none()), ie = bh([]);
52941
- let Ce = G.none();
52942
- const ut = Si("caption"), Ee = (Go) => Ce.forall((ai) => !ai[Go]), vn = () => ph(ps(B), es(B)), ns = () => ph(bs(B), es(B)), rs = () => vn().bind((Go) => bo(Mu(Et(Go), ns().bind(Et), (ai, ul) => Qs(ai, ul) ? ut(Go) ? G.some(Ia(Go)) : G.some(zl(ls(B), ai, Go)) : G.none()))), qs = (Go) => Et(Go.element).map((ul) => {
52941
+ let Se = G.none();
52942
+ const ut = Si("caption"), Ee = (Go) => Se.forall((ai) => !ai[Go]), vn = () => ph(ps(B), es(B)), ns = () => ph(bs(B), es(B)), rs = () => vn().bind((Go) => bo(Mu(Et(Go), ns().bind(Et), (ai, ul) => Qs(ai, ul) ? ut(Go) ? G.some(Ia(Go)) : G.some(zl(ls(B), ai, Go)) : G.none()))), qs = (Go) => Et(Go.element).map((ul) => {
52943
52943
  const xc = hu.fromTable(ul), Bb = Bp(xc, Go).getOr([]), M2 = rr(Bb, (Kd, xg) => (xg.isLocked && (Kd.onAny = !0, xg.column === 0 ? Kd.onFirst = !0 : xg.column + xg.colspan >= xc.grid.columns && (Kd.onLast = !0)), Kd), {
52944
52944
  onAny: !1,
52945
52945
  onFirst: !1,
@@ -52951,7 +52951,7 @@ Required: ` + z.join(", "));
52951
52951
  locked: M2
52952
52952
  };
52953
52953
  }), Co = () => {
52954
- z.set(fs(rs)()), Ce = z.get().bind(qs), ne(ie.get(), De);
52954
+ z.set(fs(rs)()), Se = z.get().bind(qs), ne(ie.get(), De);
52955
52955
  }, Vs = (Go) => (Go(), ie.set(ie.get().concat([Go])), () => {
52956
52956
  ie.set(ss(ie.get(), (ai) => ai !== Go));
52957
52957
  }), Gr = (Go, ai) => Vs(() => z.get().fold(() => {
@@ -52962,7 +52962,7 @@ Required: ` + z.join(", "));
52962
52962
  Go.setEnabled(!1), Go.setActive(!1);
52963
52963
  }, (xc) => {
52964
52964
  Go.setEnabled(!ai(xc) && B.selection.isEditable()), Go.setActive(ul(xc));
52965
- })), Oc = (Go) => Ce.exists((ai) => ai.locked[Go]), xm = (Go) => Gr(Go, (ai) => !1), Vi = (Go) => Gr(Go, (ai) => ut(ai.element)), _0 = (Go) => (ai) => Gr(ai, (ul) => ut(ul.element) || Oc(Go)), Og = (Go) => (ai) => Gr(ai, (ul) => ut(ul.element) || Go().isNone()), wm = (Go, ai) => (ul) => Gr(ul, (xc) => ut(xc.element) || Go().isNone() || Oc(ai)), Hu = (Go) => Gr(Go, (ai) => Ee("mergeable")), Zp = (Go) => Gr(Go, (ai) => Ee("unmergeable")), yu = (Go) => pa(Go, Ct, (ai) => Et(ai.element, es(B)).exists((xc) => Qi(xc, "caption"))), Bf = (Go, ai) => (ul) => pa(ul, (xc) => ut(xc.element), () => B.queryCommandValue(Go) === ai), Hy = Bf("mceTableRowType", "header"), Nb = Bf("mceTableColType", "th");
52965
+ })), Oc = (Go) => Se.exists((ai) => ai.locked[Go]), xm = (Go) => Gr(Go, (ai) => !1), Vi = (Go) => Gr(Go, (ai) => ut(ai.element)), _0 = (Go) => (ai) => Gr(ai, (ul) => ut(ul.element) || Oc(Go)), Og = (Go) => (ai) => Gr(ai, (ul) => ut(ul.element) || Go().isNone()), wm = (Go, ai) => (ul) => Gr(ul, (xc) => ut(xc.element) || Go().isNone() || Oc(ai)), Hu = (Go) => Gr(Go, (ai) => Ee("mergeable")), Zp = (Go) => Gr(Go, (ai) => Ee("unmergeable")), yu = (Go) => pa(Go, Ct, (ai) => Et(ai.element, es(B)).exists((xc) => Qi(xc, "caption"))), Bf = (Go, ai) => (ul) => pa(ul, (xc) => ut(xc.element), () => B.queryCommandValue(Go) === ai), Hy = Bf("mceTableRowType", "header"), Nb = Bf("mceTableColType", "th");
52966
52966
  return B.on("NodeChange ExecCommand TableSelectorChange", Co), {
52967
52967
  onSetupTable: xm,
52968
52968
  onSetupCellOrRow: Vi,
@@ -52982,7 +52982,7 @@ Required: ` + z.join(", "));
52982
52982
  const Zl = "x-tinymce/dom-table-", zp = Zl + "rows", ca = Zl + "columns", vu = (B) => {
52983
52983
  var z;
52984
52984
  const ie = (z = on.read()) !== null && z !== void 0 ? z : [];
52985
- return ir(ie, (Ce) => G.from(Ce.getType(B)));
52985
+ return ir(ie, (Se) => G.from(Se.getType(B)));
52986
52986
  }, Ul = () => vu(zp), Qc = () => vu(ca), vi = (B) => (z) => {
52987
52987
  const ie = () => {
52988
52988
  z.setEnabled(B.selection.isEditable());
@@ -52997,7 +52997,7 @@ Required: ` + z.join(", "));
52997
52997
  onSetup: vi(B),
52998
52998
  fetch: (ns) => ns("inserttable | cell row column | advtablesort | tableprops deletetable")
52999
52999
  });
53000
- const ie = (ns) => () => B.execCommand(ns), Ce = (ns, rs) => {
53000
+ const ie = (ns) => () => B.execCommand(ns), Se = (ns, rs) => {
53001
53001
  B.queryCommandSupported(rs.command) && B.ui.registry.addButton(ns, {
53002
53002
  ...rs,
53003
53003
  onAction: M(rs.onAction) ? rs.onAction : ie(rs.command)
@@ -53008,107 +53008,107 @@ Required: ` + z.join(", "));
53008
53008
  onAction: M(rs.onAction) ? rs.onAction : ie(rs.command)
53009
53009
  });
53010
53010
  };
53011
- Ce("tableprops", {
53011
+ Se("tableprops", {
53012
53012
  tooltip: "Table properties",
53013
53013
  command: "mceTableProps",
53014
53014
  icon: "table",
53015
53015
  onSetup: z.onSetupTable
53016
- }), Ce("tabledelete", {
53016
+ }), Se("tabledelete", {
53017
53017
  tooltip: "Delete table",
53018
53018
  command: "mceTableDelete",
53019
53019
  icon: "table-delete-table",
53020
53020
  onSetup: z.onSetupTable
53021
- }), Ce("tablecellprops", {
53021
+ }), Se("tablecellprops", {
53022
53022
  tooltip: "Cell properties",
53023
53023
  command: "mceTableCellProps",
53024
53024
  icon: "table-cell-properties",
53025
53025
  onSetup: z.onSetupCellOrRow
53026
- }), Ce("tablemergecells", {
53026
+ }), Se("tablemergecells", {
53027
53027
  tooltip: "Merge cells",
53028
53028
  command: "mceTableMergeCells",
53029
53029
  icon: "table-merge-cells",
53030
53030
  onSetup: z.onSetupMergeable
53031
- }), Ce("tablesplitcells", {
53031
+ }), Se("tablesplitcells", {
53032
53032
  tooltip: "Split cell",
53033
53033
  command: "mceTableSplitCells",
53034
53034
  icon: "table-split-cells",
53035
53035
  onSetup: z.onSetupUnmergeable
53036
- }), Ce("tableinsertrowbefore", {
53036
+ }), Se("tableinsertrowbefore", {
53037
53037
  tooltip: "Insert row before",
53038
53038
  command: "mceTableInsertRowBefore",
53039
53039
  icon: "table-insert-row-above",
53040
53040
  onSetup: z.onSetupCellOrRow
53041
- }), Ce("tableinsertrowafter", {
53041
+ }), Se("tableinsertrowafter", {
53042
53042
  tooltip: "Insert row after",
53043
53043
  command: "mceTableInsertRowAfter",
53044
53044
  icon: "table-insert-row-after",
53045
53045
  onSetup: z.onSetupCellOrRow
53046
- }), Ce("tabledeleterow", {
53046
+ }), Se("tabledeleterow", {
53047
53047
  tooltip: "Delete row",
53048
53048
  command: "mceTableDeleteRow",
53049
53049
  icon: "table-delete-row",
53050
53050
  onSetup: z.onSetupCellOrRow
53051
- }), Ce("tablerowprops", {
53051
+ }), Se("tablerowprops", {
53052
53052
  tooltip: "Row properties",
53053
53053
  command: "mceTableRowProps",
53054
53054
  icon: "table-row-properties",
53055
53055
  onSetup: z.onSetupCellOrRow
53056
- }), Ce("tableinsertcolbefore", {
53056
+ }), Se("tableinsertcolbefore", {
53057
53057
  tooltip: "Insert column before",
53058
53058
  command: "mceTableInsertColBefore",
53059
53059
  icon: "table-insert-column-before",
53060
53060
  onSetup: z.onSetupColumn("onFirst")
53061
- }), Ce("tableinsertcolafter", {
53061
+ }), Se("tableinsertcolafter", {
53062
53062
  tooltip: "Insert column after",
53063
53063
  command: "mceTableInsertColAfter",
53064
53064
  icon: "table-insert-column-after",
53065
53065
  onSetup: z.onSetupColumn("onLast")
53066
- }), Ce("tabledeletecol", {
53066
+ }), Se("tabledeletecol", {
53067
53067
  tooltip: "Delete column",
53068
53068
  command: "mceTableDeleteCol",
53069
53069
  icon: "table-delete-column",
53070
53070
  onSetup: z.onSetupColumn("onAny")
53071
- }), Ce("tablecutrow", {
53071
+ }), Se("tablecutrow", {
53072
53072
  tooltip: "Cut row",
53073
53073
  command: "mceTableCutRow",
53074
53074
  icon: "cut-row",
53075
53075
  onSetup: z.onSetupCellOrRow
53076
- }), Ce("tablecopyrow", {
53076
+ }), Se("tablecopyrow", {
53077
53077
  tooltip: "Copy row",
53078
53078
  command: "mceTableCopyRow",
53079
53079
  icon: "duplicate-row",
53080
53080
  onSetup: z.onSetupCellOrRow
53081
- }), Ce("tablepasterowbefore", {
53081
+ }), Se("tablepasterowbefore", {
53082
53082
  tooltip: "Paste row before",
53083
53083
  command: "mceTablePasteRowBefore",
53084
53084
  icon: "paste-row-before",
53085
53085
  onSetup: z.onSetupPasteable(Ul)
53086
- }), Ce("tablepasterowafter", {
53086
+ }), Se("tablepasterowafter", {
53087
53087
  tooltip: "Paste row after",
53088
53088
  command: "mceTablePasteRowAfter",
53089
53089
  icon: "paste-row-after",
53090
53090
  onSetup: z.onSetupPasteable(Ul)
53091
- }), Ce("tablecutcol", {
53091
+ }), Se("tablecutcol", {
53092
53092
  tooltip: "Cut column",
53093
53093
  command: "mceTableCutCol",
53094
53094
  icon: "cut-column",
53095
53095
  onSetup: z.onSetupColumn("onAny")
53096
- }), Ce("tablecopycol", {
53096
+ }), Se("tablecopycol", {
53097
53097
  tooltip: "Copy column",
53098
53098
  command: "mceTableCopyCol",
53099
53099
  icon: "duplicate-column",
53100
53100
  onSetup: z.onSetupColumn("onAny")
53101
- }), Ce("tablepastecolbefore", {
53101
+ }), Se("tablepastecolbefore", {
53102
53102
  tooltip: "Paste column before",
53103
53103
  command: "mceTablePasteColBefore",
53104
53104
  icon: "paste-column-before",
53105
53105
  onSetup: z.onSetupPasteableColumn(Qc, "onFirst")
53106
- }), Ce("tablepastecolafter", {
53106
+ }), Se("tablepastecolafter", {
53107
53107
  tooltip: "Paste column after",
53108
53108
  command: "mceTablePasteColAfter",
53109
53109
  icon: "paste-column-after",
53110
53110
  onSetup: z.onSetupPasteableColumn(Qc, "onLast")
53111
- }), Ce("tableinsertdialog", {
53111
+ }), Se("tableinsertdialog", {
53112
53112
  tooltip: "Insert table",
53113
53113
  command: "mceInsertTableDialog",
53114
53114
  icon: "table",
@@ -53171,7 +53171,7 @@ Required: ` + z.join(", "));
53171
53171
  onSetup: z.onSetupTableColumnHeaders
53172
53172
  });
53173
53173
  }, Dr = (B) => {
53174
- const z = (Ce) => B.dom.is(Ce, "table") && B.getBody().contains(Ce) && B.dom.isEditable(Ce.parentNode), ie = lg(B);
53174
+ const z = (Se) => B.dom.is(Se, "table") && B.getBody().contains(Se) && B.dom.isEditable(Se.parentNode), ie = lg(B);
53175
53175
  ie.length > 0 && B.ui.registry.addContextToolbar("table", {
53176
53176
  predicate: z,
53177
53177
  items: ie,
@@ -53186,7 +53186,7 @@ Required: ` + z.join(", "));
53186
53186
  B.off("NodeChange", ie);
53187
53187
  };
53188
53188
  }, gd = (B, z) => {
53189
- const ie = (Vs) => () => B.execCommand(Vs), Ce = (Vs, Gr) => B.queryCommandSupported(Gr.command) ? (B.ui.registry.addMenuItem(Vs, {
53189
+ const ie = (Vs) => () => B.execCommand(Vs), Se = (Vs, Gr) => B.queryCommandSupported(Gr.command) ? (B.ui.registry.addMenuItem(Vs, {
53190
53190
  ...Gr,
53191
53191
  onAction: M(Gr.onAction) ? Gr.onAction : ie(Gr.command)
53192
53192
  }), !0) : !1, ut = (Vs, Gr) => {
@@ -53200,111 +53200,111 @@ Required: ` + z.join(", "));
53200
53200
  columns: Vs.numColumns
53201
53201
  });
53202
53202
  }, vn = [
53203
- Ce("tableinsertrowbefore", {
53203
+ Se("tableinsertrowbefore", {
53204
53204
  text: "Insert row before",
53205
53205
  icon: "table-insert-row-above",
53206
53206
  command: "mceTableInsertRowBefore",
53207
53207
  onSetup: z.onSetupCellOrRow
53208
53208
  }),
53209
- Ce("tableinsertrowafter", {
53209
+ Se("tableinsertrowafter", {
53210
53210
  text: "Insert row after",
53211
53211
  icon: "table-insert-row-after",
53212
53212
  command: "mceTableInsertRowAfter",
53213
53213
  onSetup: z.onSetupCellOrRow
53214
53214
  }),
53215
- Ce("tabledeleterow", {
53215
+ Se("tabledeleterow", {
53216
53216
  text: "Delete row",
53217
53217
  icon: "table-delete-row",
53218
53218
  command: "mceTableDeleteRow",
53219
53219
  onSetup: z.onSetupCellOrRow
53220
53220
  }),
53221
- Ce("tablerowprops", {
53221
+ Se("tablerowprops", {
53222
53222
  text: "Row properties",
53223
53223
  icon: "table-row-properties",
53224
53224
  command: "mceTableRowProps",
53225
53225
  onSetup: z.onSetupCellOrRow
53226
53226
  }),
53227
- Ce("tablecutrow", {
53227
+ Se("tablecutrow", {
53228
53228
  text: "Cut row",
53229
53229
  icon: "cut-row",
53230
53230
  command: "mceTableCutRow",
53231
53231
  onSetup: z.onSetupCellOrRow
53232
53232
  }),
53233
- Ce("tablecopyrow", {
53233
+ Se("tablecopyrow", {
53234
53234
  text: "Copy row",
53235
53235
  icon: "duplicate-row",
53236
53236
  command: "mceTableCopyRow",
53237
53237
  onSetup: z.onSetupCellOrRow
53238
53238
  }),
53239
- Ce("tablepasterowbefore", {
53239
+ Se("tablepasterowbefore", {
53240
53240
  text: "Paste row before",
53241
53241
  icon: "paste-row-before",
53242
53242
  command: "mceTablePasteRowBefore",
53243
53243
  onSetup: z.onSetupPasteable(Ul)
53244
53244
  }),
53245
- Ce("tablepasterowafter", {
53245
+ Se("tablepasterowafter", {
53246
53246
  text: "Paste row after",
53247
53247
  icon: "paste-row-after",
53248
53248
  command: "mceTablePasteRowAfter",
53249
53249
  onSetup: z.onSetupPasteable(Ul)
53250
53250
  })
53251
53251
  ], ns = [
53252
- Ce("tableinsertcolumnbefore", {
53252
+ Se("tableinsertcolumnbefore", {
53253
53253
  text: "Insert column before",
53254
53254
  icon: "table-insert-column-before",
53255
53255
  command: "mceTableInsertColBefore",
53256
53256
  onSetup: z.onSetupColumn("onFirst")
53257
53257
  }),
53258
- Ce("tableinsertcolumnafter", {
53258
+ Se("tableinsertcolumnafter", {
53259
53259
  text: "Insert column after",
53260
53260
  icon: "table-insert-column-after",
53261
53261
  command: "mceTableInsertColAfter",
53262
53262
  onSetup: z.onSetupColumn("onLast")
53263
53263
  }),
53264
- Ce("tabledeletecolumn", {
53264
+ Se("tabledeletecolumn", {
53265
53265
  text: "Delete column",
53266
53266
  icon: "table-delete-column",
53267
53267
  command: "mceTableDeleteCol",
53268
53268
  onSetup: z.onSetupColumn("onAny")
53269
53269
  }),
53270
- Ce("tablecutcolumn", {
53270
+ Se("tablecutcolumn", {
53271
53271
  text: "Cut column",
53272
53272
  icon: "cut-column",
53273
53273
  command: "mceTableCutCol",
53274
53274
  onSetup: z.onSetupColumn("onAny")
53275
53275
  }),
53276
- Ce("tablecopycolumn", {
53276
+ Se("tablecopycolumn", {
53277
53277
  text: "Copy column",
53278
53278
  icon: "duplicate-column",
53279
53279
  command: "mceTableCopyCol",
53280
53280
  onSetup: z.onSetupColumn("onAny")
53281
53281
  }),
53282
- Ce("tablepastecolumnbefore", {
53282
+ Se("tablepastecolumnbefore", {
53283
53283
  text: "Paste column before",
53284
53284
  icon: "paste-column-before",
53285
53285
  command: "mceTablePasteColBefore",
53286
53286
  onSetup: z.onSetupPasteableColumn(Qc, "onFirst")
53287
53287
  }),
53288
- Ce("tablepastecolumnafter", {
53288
+ Se("tablepastecolumnafter", {
53289
53289
  text: "Paste column after",
53290
53290
  icon: "paste-column-after",
53291
53291
  command: "mceTablePasteColAfter",
53292
53292
  onSetup: z.onSetupPasteableColumn(Qc, "onLast")
53293
53293
  })
53294
53294
  ], rs = [
53295
- Ce("tablecellprops", {
53295
+ Se("tablecellprops", {
53296
53296
  text: "Cell properties",
53297
53297
  icon: "table-cell-properties",
53298
53298
  command: "mceTableCellProps",
53299
53299
  onSetup: z.onSetupCellOrRow
53300
53300
  }),
53301
- Ce("tablemergecells", {
53301
+ Se("tablemergecells", {
53302
53302
  text: "Merge cells",
53303
53303
  icon: "table-merge-cells",
53304
53304
  command: "mceTableMergeCells",
53305
53305
  onSetup: z.onSetupMergeable
53306
53306
  }),
53307
- Ce("tablesplitcells", {
53307
+ Se("tablesplitcells", {
53308
53308
  text: "Split cell",
53309
53309
  icon: "table-split-cells",
53310
53310
  command: "mceTableSplitCells",
@@ -53330,11 +53330,11 @@ Required: ` + z.join(", "));
53330
53330
  icon: "table",
53331
53331
  onAction: ie("mceInsertTableDialog"),
53332
53332
  onSetup: Bo(B)
53333
- }), Ce("tableprops", {
53333
+ }), Se("tableprops", {
53334
53334
  text: "Table properties",
53335
53335
  onSetup: z.onSetupTable,
53336
53336
  command: "mceTableProps"
53337
- }), Ce("deletetable", {
53337
+ }), Se("deletetable", {
53338
53338
  text: "Delete table",
53339
53339
  icon: "table-delete-table",
53340
53340
  onSetup: z.onSetupTable,
@@ -53569,14 +53569,14 @@ function W1e() {
53569
53569
  return !1;
53570
53570
  const Ds = We[ct - 1];
53571
53571
  return (pt === b.MIDLETTER || pt === b.MIDNUMLET || ke === b.AT) && ke === b.ALETTER && Ds === b.ALETTER || (pt === b.NUMERIC || pt === b.ALETTER) && (ke === b.NUMERIC || ke === b.ALETTER) || (pt === b.MIDNUM || pt === b.MIDNUMLET) && ke === b.NUMERIC && Ds === b.NUMERIC || pt === b.NUMERIC && (ke === b.MIDNUM || ke === b.MIDNUMLET) && Un === b.NUMERIC || (pt === b.EXTEND || pt === b.FORMAT) && (ke === b.ALETTER || ke === b.NUMERIC || ke === b.KATAKANA || ke === b.EXTEND || ke === b.FORMAT) || (ke === b.EXTEND || ke === b.FORMAT && (Un === b.ALETTER || Un === b.NUMERIC || Un === b.KATAKANA || Un === b.EXTEND || Un === b.FORMAT)) && (pt === b.ALETTER || pt === b.NUMERIC || pt === b.KATAKANA || pt === b.EXTEND || pt === b.FORMAT) || pt === b.CR && ke === b.LF ? !1 : pt === b.NEWLINE || pt === b.CR || pt === b.LF || ke === b.NEWLINE || ke === b.CR || ke === b.LF ? !0 : !(pt === b.KATAKANA && ke === b.KATAKANA || ke === b.EXTENDNUMLET && (pt === b.ALETTER || pt === b.NUMERIC || pt === b.KATAKANA || pt === b.EXTENDNUMLET) || pt === b.EXTENDNUMLET && (ke === b.ALETTER || ke === b.NUMERIC || ke === b.KATAKANA) || pt === b.AT);
53572
- }, Se = C, te = R, De = T, Ct = (We) => We === "http" || We === "https", ot = (We, ct) => {
53572
+ }, Ce = C, te = R, De = T, Ct = (We) => We === "http" || We === "https", ot = (We, ct) => {
53573
53573
  let pt;
53574
53574
  for (pt = ct; pt < We.length && !te.test(We[pt]); pt++)
53575
53575
  ;
53576
53576
  return pt;
53577
53577
  }, G = (We, ct) => {
53578
53578
  const pt = ot(We, ct + 1);
53579
- return We.slice(ct + 1, pt).join(Se).substr(0, 3) === "://" ? pt : ct;
53579
+ return We.slice(ct + 1, pt).join(Ce).substr(0, 3) === "://" ? pt : ct;
53580
53580
  }, rt = (We, ct, pt, ke) => {
53581
53581
  const Un = [], Ds = [];
53582
53582
  let _n = [];
@@ -53584,7 +53584,7 @@ function W1e() {
53584
53584
  if (_n.push(We[To]), ue(pt, To)) {
53585
53585
  const Bs = ct[To];
53586
53586
  if ((ke.includeWhitespace || !te.test(Bs)) && (ke.includePunctuation || !De.test(Bs))) {
53587
- const ir = To - _n.length + 1, js = To + 1, Lo = ct.slice(ir, js).join(Se);
53587
+ const ir = To - _n.length + 1, js = To + 1, Lo = ct.slice(ir, js).join(Ce);
53588
53588
  if (Ct(Lo)) {
53589
53589
  const ci = G(ct, To), ur = We.slice(js, ci);
53590
53590
  Array.prototype.push.apply(_n, ur), To = ci;
@@ -53759,7 +53759,7 @@ function X1e() {
53759
53759
  }, c = (_e) => {
53760
53760
  const Pe = typeof _e;
53761
53761
  return _e === null ? "null" : Pe === "object" && Array.isArray(_e) ? "array" : Pe === "object" && a(_e, String, (_t, Yt) => Yt.isPrototypeOf(_t)) ? "string" : Pe;
53762
- }, f = (_e) => (Pe) => c(Pe) === _e, h = (_e) => (Pe) => typeof Pe === _e, b = (_e) => (Pe) => _e === Pe, x = f("string"), C = f("object"), T = f("array"), R = b(null), M = h("boolean"), L = b(void 0), q = (_e) => _e == null, Z = (_e) => !q(_e), Y = h("function"), ue = h("number"), Se = () => {
53762
+ }, f = (_e) => (Pe) => c(Pe) === _e, h = (_e) => (Pe) => typeof Pe === _e, b = (_e) => (Pe) => _e === Pe, x = f("string"), C = f("object"), T = f("array"), R = b(null), M = h("boolean"), L = b(void 0), q = (_e) => _e == null, Z = (_e) => !q(_e), Y = h("function"), ue = h("number"), Ce = () => {
53763
53763
  }, te = (_e, Pe) => (..._t) => _e(Pe.apply(null, _t)), De = (_e, Pe) => (_t) => _e(Pe(_t)), Ct = (_e) => () => _e;
53764
53764
  function ot(_e, ...Pe) {
53765
53765
  return (..._t) => {
@@ -53895,7 +53895,7 @@ function X1e() {
53895
53895
  }
53896
53896
  };
53897
53897
  }, Ue = () => ce((_e) => _e.unbind()), ye = () => {
53898
- const _e = ce(Se);
53898
+ const _e = ce(Ce);
53899
53899
  return {
53900
53900
  ..._e,
53901
53901
  on: (_t) => _e.get().each(_t)
@@ -54292,7 +54292,7 @@ function X1e() {
54292
54292
  }, du = (_e, Pe, _t) => oi(_t).map((Yt) => {
54293
54293
  const hs = (xo) => Pe(Ne(xo));
54294
54294
  return Yt.addEventListener(_e, hs), { unbind: () => Yt.removeEventListener(_e, hs) };
54295
- }).getOrThunk(() => ({ unbind: Se }));
54295
+ }).getOrThunk(() => ({ unbind: Ce }));
54296
54296
  var sa = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), pe = tinymce.util.Tools.resolve("tinymce.Env");
54297
54297
  const Ve = (_e, Pe) => {
54298
54298
  _e.dispatch("FullscreenStateChanged", { state: Pe }), _e.dispatch("ResizeEditor");
@@ -54327,8 +54327,8 @@ function X1e() {
54327
54327
  Yt && Yt !== "no-styles" ? tt(_t, _e.parseStyle(Yt)) : lo(_t, "style"), lo(_t, gi);
54328
54328
  });
54329
54329
  }, Ma = sa.DOM, fi = () => uu(window), fu = (_e) => window.scrollTo(_e.x, _e.y), cm = oi().fold(() => ({
54330
- bind: Se,
54331
- unbind: Se
54330
+ bind: Ce,
54331
+ unbind: Ce
54332
54332
  }), (_e) => {
54333
54333
  const Pe = ye(), _t = Ue(), Yt = Ue(), hs = () => {
54334
54334
  document.body.scrollTop = 0, document.documentElement.scrollTop = 0;
@@ -54559,7 +54559,7 @@ function q1e() {
54559
54559
  }, Y = () => ue(0, 0), ue = (Ut, Nn) => ({
54560
54560
  major: Ut,
54561
54561
  minor: Nn
54562
- }), Se = {
54562
+ }), Ce = {
54563
54563
  nu: ue,
54564
54564
  detect: Z,
54565
54565
  unknown: Y
@@ -54570,19 +54570,19 @@ function q1e() {
54570
54570
  return Ln === ((jo = Js.brand) === null || jo === void 0 ? void 0 : jo.toLowerCase());
54571
54571
  }).map((Js) => ({
54572
54572
  current: Js.name,
54573
- version: Se.nu(parseInt(Pn.version, 10), 0)
54573
+ version: Ce.nu(parseInt(Pn.version, 10), 0)
54574
54574
  }));
54575
54575
  }), De = (Ut, Nn) => {
54576
54576
  const Pn = String(Nn).toLowerCase();
54577
54577
  return C(Ut, (Ln) => Ln.search(Pn));
54578
54578
  }, Ct = (Ut, Nn) => De(Ut, Nn).map((Pn) => {
54579
- const Ln = Se.detect(Pn.versionRegexes, Nn);
54579
+ const Ln = Ce.detect(Pn.versionRegexes, Nn);
54580
54580
  return {
54581
54581
  current: Pn.name,
54582
54582
  version: Ln
54583
54583
  };
54584
54584
  }), ot = (Ut, Nn) => De(Ut, Nn).map((Pn) => {
54585
- const Ln = Se.detect(Pn.versionRegexes, Nn);
54585
+ const Ln = Ce.detect(Pn.versionRegexes, Nn);
54586
54586
  return {
54587
54587
  current: Pn.name,
54588
54588
  version: Ln
@@ -54684,7 +54684,7 @@ function q1e() {
54684
54684
  oses: h(Me)
54685
54685
  }, Kt = "Edge", xt = "Chromium", St = "IE", F = "Opera", tn = "Firefox", ft = "Safari", Zt = () => Xt({
54686
54686
  current: void 0,
54687
- version: Se.unknown()
54687
+ version: Ce.unknown()
54688
54688
  }), Xt = (Ut) => {
54689
54689
  const Nn = Ut.current, Pn = Ut.version, Ln = (Js) => () => Nn === Js;
54690
54690
  return {
@@ -54702,7 +54702,7 @@ function q1e() {
54702
54702
  nu: Xt
54703
54703
  }, ce = "Windows", Ue = "iOS", ye = "Android", Qe = "Linux", Re = "macOS", vt = "Solaris", ne = "FreeBSD", $n = "ChromeOS", an = () => ss({
54704
54704
  current: void 0,
54705
- version: Se.unknown()
54705
+ version: Ce.unknown()
54706
54706
  }), ss = (Ut) => {
54707
54707
  const Nn = Ut.current, Pn = Ut.version, Ln = (Js) => () => Nn === Js;
54708
54708
  return {
@@ -54927,7 +54927,7 @@ function j1e() {
54927
54927
  Ue[Re.k] = Re.v;
54928
54928
  }), Ue;
54929
54929
  };
54930
- var Se = tinymce.util.Tools.resolve("tinymce.util.Tools");
54930
+ var Ce = tinymce.util.Tools.resolve("tinymce.util.Tools");
54931
54931
  const te = (Ze) => /\btox\-/.test(Ze.className), De = (Ze, ce) => Ze.dom.isChildOf(ce, Ze.getBody()), Ct = (Ze) => (ce) => x(ce) && Ze.test(ce.nodeName), ot = Ct(/^(OL|UL|DL)$/), G = Ct(/^(TH|TD)$/), rt = (Ze, ce, Ue) => L(ce, (ye) => ot(ye) && !te(ye), G).exists((ye) => ye.nodeName === Ue && De(Ze, ye)), at = (Ze) => {
54932
54932
  const ce = Ze.dom.getParent(Ze.selection.getNode(), "ol,ul"), Ue = Ze.dom.getStyle(ce, "listStyleType");
54933
54933
  return C.from(Ue);
@@ -54959,7 +54959,7 @@ function j1e() {
54959
54959
  presets: "listpreview",
54960
54960
  columns: 3,
54961
54961
  fetch: ($n) => {
54962
- const an = Se.map(Re, (ss) => {
54962
+ const an = Ce.map(Re, (ss) => {
54963
54963
  const cs = Qe === "OL" ? "num" : "bull", rr = ss === "disc" || ss === "decimal" ? "default" : ss, We = xt(ss), ct = Kt(ss);
54964
54964
  return {
54965
54965
  type: "choiceitem",
@@ -55091,7 +55091,7 @@ function G1e() {
55091
55091
  }
55092
55092
  }
55093
55093
  ue.singletonNone = new ue(!1);
55094
- const Se = Y;
55094
+ const Ce = Y;
55095
55095
  var te = tinymce.util.Tools.resolve("tinymce.Env"), De = tinymce.util.Tools.resolve("tinymce.util.Tools");
55096
55096
  const Ct = Array.prototype.slice, ot = Array.prototype.push, G = (Ie, Ye) => {
55097
55097
  const Qt = Ie.length, Jt = new Array(Qt);
@@ -55349,7 +55349,7 @@ function G1e() {
55349
55349
  Ie.remove(Ye), Qt && Ie.isEmpty(Qt) && Ie.remove(Qt);
55350
55350
  }, bl = (Ie, Ye) => {
55351
55351
  const Jt = "(" + Ie.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&").replace(/\s/g, "[^\\S\\r\\n\\uFEFF]") + ")";
55352
- return Ye ? `(?:^|\\s|${Se()})` + Jt + `(?=$|\\s|${Se()})` : Jt;
55352
+ return Ye ? `(?:^|\\s|${Ce()})` + Jt + `(?=$|\\s|${Ce()})` : Jt;
55353
55353
  }, we = (Ie, Ye, Qt, Jt, En, es) => {
55354
55354
  const os = Ie.selection, Qn = bl(Qt, En), ps = os.isForward(), bs = {
55355
55355
  regex: new RegExp(Qn, Jt ? "g" : "gi"),
@@ -55690,10 +55690,10 @@ function Y1e() {
55690
55690
  });
55691
55691
  }, ue = (xt, St, F) => {
55692
55692
  F.removeAttribute("name"), F.id = St, xt.addVisual(), xt.undoManager.add();
55693
- }, Se = (xt, St) => {
55693
+ }, Ce = (xt, St) => {
55694
55694
  const F = q(xt);
55695
55695
  F ? ue(xt, St, F) : Y(xt, St), xt.focus();
55696
- }, te = (xt, St) => L(St) ? (Se(xt, St), !0) : (xt.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."), !1), De = (xt) => {
55696
+ }, te = (xt, St) => L(St) ? (Ce(xt, St), !0) : (xt.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."), !1), De = (xt) => {
55697
55697
  const St = Z(xt);
55698
55698
  xt.windowManager.open({
55699
55699
  title: "Anchor",
@@ -55804,7 +55804,7 @@ function K1e() {
55804
55804
  }, C = (ye) => {
55805
55805
  const Qe = typeof ye;
55806
55806
  return ye === null ? "null" : Qe === "object" && Array.isArray(ye) ? "array" : Qe === "object" && x(ye, String, (Re, vt) => vt.isPrototypeOf(Re)) ? "string" : Qe;
55807
- }, T = (ye) => (Qe) => C(Qe) === ye, R = (ye) => (Qe) => ye === Qe, M = T("string"), L = R(void 0), q = (ye) => ye == null, Z = (ye) => !q(ye), Y = (ye) => (Qe) => !ye(Qe), ue = Object.hasOwnProperty, Se = (ye, Qe) => ue.call(ye, Qe), te = (ye, Qe, Re) => ye.length >= Qe.length && ye.substr(Re, Re + Qe.length) === Qe, De = (ye, Qe, Re = 0, vt) => {
55807
+ }, T = (ye) => (Qe) => C(Qe) === ye, R = (ye) => (Qe) => ye === Qe, M = T("string"), L = R(void 0), q = (ye) => ye == null, Z = (ye) => !q(ye), Y = (ye) => (Qe) => !ye(Qe), ue = Object.hasOwnProperty, Ce = (ye, Qe) => ue.call(ye, Qe), te = (ye, Qe, Re) => ye.length >= Qe.length && ye.substr(Re, Re + Qe.length) === Qe, De = (ye, Qe, Re = 0, vt) => {
55808
55808
  const ne = ye.indexOf(Qe, Re);
55809
55809
  return ne !== -1 ? L(vt) ? !0 : ne + Qe.length <= vt : !1;
55810
55810
  }, Ct = (ye, Qe) => te(ye, Qe, 0), ot = "\uFEFF", G = (ye) => ye === ot, rt = (ye) => ye.replace(/\uFEFF/g, "");
@@ -55829,7 +55829,7 @@ function K1e() {
55829
55829
  const vt = ye.schema.getVoidElements(), ne = c(ye), { dom: $n, selection: an } = ye;
55830
55830
  if ($n.getParent(an.getNode(), "a[href]") !== null || ye.mode.isReadOnly())
55831
55831
  return null;
55832
- const ss = an.getRng(), cs = at($n, (Bs) => $n.isBlock(Bs) || Se(vt, Bs.nodeName.toLowerCase()) || $n.getContentEditable(Bs) === "false"), {
55832
+ const ss = an.getRng(), cs = at($n, (Bs) => $n.isBlock(Bs) || Ce(vt, Bs.nodeName.toLowerCase()) || $n.getContentEditable(Bs) === "false"), {
55833
55833
  container: rr,
55834
55834
  offset: We
55835
55835
  } = F(ss.endContainer, ss.endOffset), ct = (Re = $n.getParent(rr, $n.isBlock)) !== null && Re !== void 0 ? Re : $n.getRoot(), pt = cs.backwards(rr, We + Qe, (Bs, ir) => {
@@ -55978,7 +55978,7 @@ function J1e() {
55978
55978
  }
55979
55979
  }
55980
55980
  Y.singletonNone = new Y(!1);
55981
- const ue = Array.prototype.push, Se = (We, ct) => {
55981
+ const ue = Array.prototype.push, Ce = (We, ct) => {
55982
55982
  const pt = We.length, ke = new Array(pt);
55983
55983
  for (let Un = 0; Un < pt; Un++) {
55984
55984
  const Ds = We[Un];
@@ -56007,7 +56007,7 @@ function J1e() {
56007
56007
  ue.apply(ct, We[pt]);
56008
56008
  }
56009
56009
  return ct;
56010
- }, G = (We, ct) => ot(Se(We, ct));
56010
+ }, G = (We, ct) => ot(Ce(We, ct));
56011
56011
  var rt = tinymce.util.Tools.resolve("tinymce.util.Tools");
56012
56012
  const at = (We) => (ct) => ct.options.get(We), wt = (We) => {
56013
56013
  const ct = We.options.register, pt = (ke) => L(ke) || x(ke);
@@ -57257,7 +57257,7 @@ function J1e() {
57257
57257
  const pt = [], ke = ct.toLowerCase();
57258
57258
  return te(We.characters, (Un) => {
57259
57259
  Qe(Un[0], Un[1], ke) && pt.push(Un);
57260
- }), Se(pt, (Un) => ({
57260
+ }), Ce(pt, (Un) => ({
57261
57261
  text: Un[1],
57262
57262
  value: ye(Un[0]),
57263
57263
  icon: ye(Un[0])
@@ -57273,7 +57273,7 @@ function J1e() {
57273
57273
  type: "collection",
57274
57274
  name: "results"
57275
57275
  }
57276
- ], ke = () => Se(ct, (Ks) => ({
57276
+ ], ke = () => Ce(ct, (Ks) => ({
57277
57277
  title: Ks.name,
57278
57278
  name: Ks.name,
57279
57279
  items: pt()
@@ -57423,7 +57423,7 @@ function ebe() {
57423
57423
  }
57424
57424
  };
57425
57425
  };
57426
- var Se = tinymce.util.Tools.resolve("tinymce.util.Tools");
57426
+ var Ce = tinymce.util.Tools.resolve("tinymce.util.Tools");
57427
57427
  const te = (ot) => (G) => {
57428
57428
  const rt = () => {
57429
57429
  G.setEnabled(ot.selection.isEditable());
@@ -57438,7 +57438,7 @@ function ebe() {
57438
57438
  tooltip: "Insert date/time",
57439
57439
  select: (Me) => Me === rt.get(),
57440
57440
  fetch: (Me) => {
57441
- Me(Se.map(G, (fe) => ({
57441
+ Me(Ce.map(G, (fe) => ({
57442
57442
  type: "choiceitem",
57443
57443
  text: L(ot, fe),
57444
57444
  value: fe
@@ -57458,7 +57458,7 @@ function ebe() {
57458
57458
  ot.ui.registry.addNestedMenuItem("insertdatetime", {
57459
57459
  icon: "insert-time",
57460
57460
  text: "Date/time",
57461
- getSubmenuItems: () => Se.map(G, (Me) => ({
57461
+ getSubmenuItems: () => Ce.map(G, (Me) => ({
57462
57462
  type: "menuitem",
57463
57463
  text: L(ot, Me),
57464
57464
  onAction: wt(Me)
@@ -60604,40 +60604,40 @@ function Mbe(r, t, s, a, c, f, h, b) {
60604
60604
  T = T.assignedSlot || T.parentNode;
60605
60605
  continue;
60606
60606
  }
60607
- let Se = T.getBoundingClientRect();
60608
- ({ scaleX: q, scaleY: Z } = nce(T, Se)), M = {
60609
- left: Se.left,
60610
- right: Se.left + T.clientWidth * q,
60611
- top: Se.top,
60612
- bottom: Se.top + T.clientHeight * Z
60607
+ let Ce = T.getBoundingClientRect();
60608
+ ({ scaleX: q, scaleY: Z } = nce(T, Ce)), M = {
60609
+ left: Ce.left,
60610
+ right: Ce.left + T.clientWidth * q,
60611
+ top: Ce.top,
60612
+ bottom: Ce.top + T.clientHeight * Z
60613
60613
  };
60614
60614
  }
60615
60615
  let Y = 0, ue = 0;
60616
60616
  if (c == "nearest")
60617
60617
  t.top < M.top ? (ue = t.top - (M.top + h), s > 0 && t.bottom > M.bottom + ue && (ue = t.bottom - M.bottom + h)) : t.bottom > M.bottom && (ue = t.bottom - M.bottom + h, s < 0 && t.top - ue < M.top && (ue = t.top - (M.top + h)));
60618
60618
  else {
60619
- let Se = t.bottom - t.top, te = M.bottom - M.top;
60620
- ue = (c == "center" && Se <= te ? t.top + Se / 2 - te / 2 : c == "start" || c == "center" && s < 0 ? t.top - h : t.bottom - te + h) - M.top;
60619
+ let Ce = t.bottom - t.top, te = M.bottom - M.top;
60620
+ ue = (c == "center" && Ce <= te ? t.top + Ce / 2 - te / 2 : c == "start" || c == "center" && s < 0 ? t.top - h : t.bottom - te + h) - M.top;
60621
60621
  }
60622
60622
  if (a == "nearest" ? t.left < M.left ? (Y = t.left - (M.left + f), s > 0 && t.right > M.right + Y && (Y = t.right - M.right + f)) : t.right > M.right && (Y = t.right - M.right + f, s < 0 && t.left < M.left + Y && (Y = t.left - (M.left + f))) : Y = (a == "center" ? t.left + (t.right - t.left) / 2 - (M.right - M.left) / 2 : a == "start" == b ? t.left - f : t.right - (M.right - M.left) + f) - M.left, Y || ue)
60623
60623
  if (L)
60624
60624
  C.scrollBy(Y, ue);
60625
60625
  else {
60626
- let Se = 0, te = 0;
60626
+ let Ce = 0, te = 0;
60627
60627
  if (ue) {
60628
60628
  let De = T.scrollTop;
60629
60629
  T.scrollTop += ue / Z, te = (T.scrollTop - De) * Z;
60630
60630
  }
60631
60631
  if (Y) {
60632
60632
  let De = T.scrollLeft;
60633
- T.scrollLeft += Y / q, Se = (T.scrollLeft - De) * q;
60633
+ T.scrollLeft += Y / q, Ce = (T.scrollLeft - De) * q;
60634
60634
  }
60635
60635
  t = {
60636
- left: t.left - Se,
60636
+ left: t.left - Ce,
60637
60637
  top: t.top - te,
60638
- right: t.right - Se,
60638
+ right: t.right - Ce,
60639
60639
  bottom: t.bottom - te
60640
- }, Se && Math.abs(Se - Y) < 1 && (a = "nearest"), te && Math.abs(te - ue) < 1 && (c = "nearest");
60640
+ }, Ce && Math.abs(Ce - Y) < 1 && (a = "nearest"), te && Math.abs(te - ue) < 1 && (c = "nearest");
60641
60641
  }
60642
60642
  if (L)
60643
60643
  break;
@@ -62379,8 +62379,8 @@ class iie extends ja {
62379
62379
  Ct.breakAtStart ? ot.breakAfter = 1 : Ct.content.length && ot.merge(ot.length, ot.length, Ct.content[0], !1, Ct.openStart, 0) && (ot.breakAfter = Ct.content[0].breakAfter, Ct.content.shift()), De.content.length && ot.merge(0, 0, De.content[De.content.length - 1], !0, 0, De.openEnd) && De.content.pop(), M = De.content.concat(ot).concat(Ct.content);
62380
62380
  } else
62381
62381
  ({ content: M, breakAtStart: L, openStart: q, openEnd: Z } = U6.build(this.view.state.doc, T, R, this.decorations, this.dynamicDecorationMap));
62382
- let { i: Y, off: ue } = f.findPos(C, 1), { i: Se, off: te } = f.findPos(x, -1);
62383
- cce(this, Se, te, Y, ue, M, L, q, Z);
62382
+ let { i: Y, off: ue } = f.findPos(C, 1), { i: Ce, off: te } = f.findPos(x, -1);
62383
+ cce(this, Ce, te, Y, ue, M, L, q, Z);
62384
62384
  }
62385
62385
  a && this.fixCompositionDOM(a);
62386
62386
  }
@@ -62792,15 +62792,15 @@ function Ute(r, t, s) {
62792
62792
  for (let Y = 0; Y < Z.length; Y++) {
62793
62793
  let ue = Z[Y];
62794
62794
  c && Vee(c, ue) && (ue = aie(lie(ue, c.bottom), c.top));
62795
- let Se = dve(t, ue), te = fve(s, ue);
62796
- if (Se == 0 && te == 0)
62795
+ let Ce = dve(t, ue), te = fve(s, ue);
62796
+ if (Ce == 0 && te == 0)
62797
62797
  return q.nodeType == 3 ? cie(q, t, s) : Ute(q, t, s);
62798
- if (!a || h > te || h == te && f > Se) {
62799
- a = q, c = ue, f = Se, h = te;
62800
- let De = te ? s < ue.top ? -1 : 1 : Se ? t < ue.left ? -1 : 1 : 0;
62798
+ if (!a || h > te || h == te && f > Ce) {
62799
+ a = q, c = ue, f = Ce, h = te;
62800
+ let De = te ? s < ue.top ? -1 : 1 : Ce ? t < ue.left ? -1 : 1 : 0;
62801
62801
  b = !De || (De > 0 ? Y < Z.length - 1 : Y > 0);
62802
62802
  }
62803
- Se == 0 ? s > ue.bottom && (!T || T.bottom < ue.bottom) ? (x = q, T = ue) : s < ue.top && (!R || R.top > ue.top) && (C = q, R = ue) : T && Vee(T, ue) ? T = lie(T, ue.bottom) : R && Vee(R, ue) && (R = aie(R, ue.top));
62803
+ Ce == 0 ? s > ue.bottom && (!T || T.bottom < ue.bottom) ? (x = q, T = ue) : s < ue.top && (!R || R.top > ue.top) && (C = q, R = ue) : T && Vee(T, ue) ? T = lie(T, ue.bottom) : R && Vee(R, ue) && (R = aie(R, ue.top));
62804
62804
  }
62805
62805
  }
62806
62806
  if (T && T.bottom >= s ? (a = x, c = T) : R && R.top <= s && (a = C, c = R), !a)
@@ -62854,22 +62854,22 @@ function Bce(r, t, s, a = -1) {
62854
62854
  return r.viewport.to == r.state.doc.length ? r.state.doc.length : s ? null : uie(r, h, x, T, R);
62855
62855
  let q = r.dom.ownerDocument, Z = r.root.elementFromPoint ? r.root : q, Y = Z.elementFromPoint(T, R);
62856
62856
  Y && !r.contentDOM.contains(Y) && (Y = null), Y || (T = Math.max(h.left + 1, Math.min(h.right - 1, T)), Y = Z.elementFromPoint(T, R), Y && !r.contentDOM.contains(Y) && (Y = null));
62857
- let ue, Se = -1;
62857
+ let ue, Ce = -1;
62858
62858
  if (Y && ((c = r.docView.nearest(Y)) === null || c === void 0 ? void 0 : c.isEditable) != !1) {
62859
62859
  if (q.caretPositionFromPoint) {
62860
62860
  let De = q.caretPositionFromPoint(T, R);
62861
- De && ({ offsetNode: ue, offset: Se } = De);
62861
+ De && ({ offsetNode: ue, offset: Ce } = De);
62862
62862
  } else if (q.caretRangeFromPoint) {
62863
62863
  let De = q.caretRangeFromPoint(T, R);
62864
- De && ({ startContainer: ue, startOffset: Se } = De, (!r.contentDOM.contains(ue) || oo.safari && hve(ue, Se, T) || oo.chrome && mve(ue, Se, T)) && (ue = void 0));
62864
+ De && ({ startContainer: ue, startOffset: Ce } = De, (!r.contentDOM.contains(ue) || oo.safari && hve(ue, Ce, T) || oo.chrome && mve(ue, Ce, T)) && (ue = void 0));
62865
62865
  }
62866
- ue && (Se = Math.min(xb(ue), Se));
62866
+ ue && (Ce = Math.min(xb(ue), Ce));
62867
62867
  }
62868
62868
  if (!ue || !r.docView.dom.contains(ue)) {
62869
62869
  let De = su.find(r.docView, L);
62870
62870
  if (!De)
62871
62871
  return M > x.top + x.height / 2 ? x.to : x.from;
62872
- ({ node: ue, offset: Se } = Ute(De.dom, T, R));
62872
+ ({ node: ue, offset: Ce } = Ute(De.dom, T, R));
62873
62873
  }
62874
62874
  let te = r.docView.nearest(ue);
62875
62875
  if (!te)
@@ -62878,7 +62878,7 @@ function Bce(r, t, s, a = -1) {
62878
62878
  let De = te.dom.getBoundingClientRect();
62879
62879
  return t.y < De.top || t.y <= De.bottom && t.x <= (De.left + De.right) / 2 ? te.posAtStart : te.posAtEnd;
62880
62880
  } else
62881
- return te.localPosFromDOM(ue, Se) + te.posAtStart;
62881
+ return te.localPosFromDOM(ue, Ce) + te.posAtStart;
62882
62882
  }
62883
62883
  function uie(r, t, s, a, c) {
62884
62884
  let f = Math.round((a - t.left) * r.defaultCharacterWidth);
@@ -63157,10 +63157,10 @@ function wve(r, t, s) {
63157
63157
  // ignored.
63158
63158
  q.to >= T.from && q.from <= T.to)
63159
63159
  return { range: q };
63160
- let ue = c.changes({ from: Y, to: Z, insert: t.insert }), Se = q.to - f.to;
63160
+ let ue = c.changes({ from: Y, to: Z, insert: t.insert }), Ce = q.to - f.to;
63161
63161
  return {
63162
63162
  changes: ue,
63163
- range: x ? Es.range(Math.max(0, x.anchor + Se), Math.max(0, x.head + Se)) : q.map(ue)
63163
+ range: x ? Es.range(Math.max(0, x.anchor + Ce), Math.max(0, x.head + Ce)) : q.map(ue)
63164
63164
  };
63165
63165
  });
63166
63166
  } else
@@ -64274,12 +64274,12 @@ class kie {
64274
64274
  let ue = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
64275
64275
  if (ue != this.inView && (this.inView = ue, ue && (x = !0)), !this.inView && !this.scrollTarget && !Gve(t.dom))
64276
64276
  return 0;
64277
- let Se = b.width;
64278
- if ((this.contentDOMWidth != Se || this.editorHeight != t.scrollDOM.clientHeight) && (this.contentDOMWidth = b.width, this.editorHeight = t.scrollDOM.clientHeight, C |= 16), x) {
64277
+ let Ce = b.width;
64278
+ if ((this.contentDOMWidth != Ce || this.editorHeight != t.scrollDOM.clientHeight) && (this.contentDOMWidth = b.width, this.editorHeight = t.scrollDOM.clientHeight, C |= 16), x) {
64279
64279
  let De = t.docView.measureVisibleLineHeights(this.viewport);
64280
- if (c.mustRefreshForHeights(De) && (h = !0), h || c.lineWrapping && Math.abs(Se - this.contentDOMWidth) > c.charWidth) {
64280
+ if (c.mustRefreshForHeights(De) && (h = !0), h || c.lineWrapping && Math.abs(Ce - this.contentDOMWidth) > c.charWidth) {
64281
64281
  let { lineHeight: Ct, charWidth: ot, textHeight: G } = t.docView.measureTextSize();
64282
- h = Ct > 0 && c.refresh(f, Ct, ot, G, Se / ot, De), h && (t.docView.minWidth = 0, C |= 16);
64282
+ h = Ct > 0 && c.refresh(f, Ct, ot, G, Ce / ot, De), h && (t.docView.minWidth = 0, C |= 16);
64283
64283
  }
64284
64284
  Z > 0 && Y > 0 ? T = Math.max(Z, Y) : Z < 0 && Y < 0 && (T = Math.min(Z, Y)), Sie();
64285
64285
  for (let Ct of this.viewports) {
@@ -64357,14 +64357,14 @@ class kie {
64357
64357
  x(T, ue - 10, M, L), x(ue + 10, R, M, L);
64358
64358
  return;
64359
64359
  }
64360
- let Y = eye(t, (ue) => ue.from >= M.from && ue.to <= M.to && Math.abs(ue.from - T) < f && Math.abs(ue.to - R) < f && !Z.some((Se) => ue.from < Se && ue.to > Se));
64360
+ let Y = eye(t, (ue) => ue.from >= M.from && ue.to <= M.to && Math.abs(ue.from - T) < f && Math.abs(ue.to - R) < f && !Z.some((Ce) => ue.from < Ce && ue.to > Ce));
64361
64361
  if (!Y) {
64362
64362
  if (R < M.to && s && a && s.visibleRanges.some((te) => te.from <= R && te.to >= R)) {
64363
64363
  let te = s.moveToLineBoundary(Es.cursor(R), !1, !0).head;
64364
64364
  te > T && (R = te);
64365
64365
  }
64366
- let ue = this.gapSize(M, T, R, L), Se = a || ue < 2e6 ? ue : 2e6;
64367
- Y = new zee(T, R, ue, Se);
64366
+ let ue = this.gapSize(M, T, R, L), Ce = a || ue < 2e6 ? ue : 2e6;
64367
+ Y = new zee(T, R, ue, Ce);
64368
64368
  }
64369
64369
  b.push(Y);
64370
64370
  }, C = (T) => {
@@ -64377,8 +64377,8 @@ class kie {
64377
64377
  if (a) {
64378
64378
  let Z = c / this.heightOracle.lineLength * this.heightOracle.lineHeight, Y, ue;
64379
64379
  if (M != null) {
64380
- let Se = eH(R, M), te = ((this.visibleBottom - this.visibleTop) / 2 + Z) / T.height;
64381
- Y = Se - te, ue = Se + te;
64380
+ let Ce = eH(R, M), te = ((this.visibleBottom - this.visibleTop) / 2 + Z) / T.height;
64381
+ Y = Ce - te, ue = Ce + te;
64382
64382
  } else
64383
64383
  Y = (this.visibleTop - T.top - Z) / T.height, ue = (this.visibleBottom - T.top + Z) / T.height;
64384
64384
  L = JV(R, Y), q = JV(R, ue);
@@ -64387,12 +64387,12 @@ class kie {
64387
64387
  if (Z > 2e6)
64388
64388
  for (let ot of t)
64389
64389
  ot.from >= T.from && ot.from < T.to && ot.size != ot.displaySize && ot.from * this.heightOracle.charWidth + ue < this.pixelViewport.left && (ue = ot.size - ot.displaySize);
64390
- let Se = this.pixelViewport.left + ue, te = this.pixelViewport.right + ue, De, Ct;
64390
+ let Ce = this.pixelViewport.left + ue, te = this.pixelViewport.right + ue, De, Ct;
64391
64391
  if (M != null) {
64392
- let ot = eH(R, M), G = ((te - Se) / 2 + Y) / Z;
64392
+ let ot = eH(R, M), G = ((te - Ce) / 2 + Y) / Z;
64393
64393
  De = ot - G, Ct = ot + G;
64394
64394
  } else
64395
- De = (Se - Y) / Z, Ct = (te + Y) / Z;
64395
+ De = (Ce - Y) / Z, Ct = (te + Y) / Z;
64396
64396
  L = JV(R, De), q = JV(R, Ct);
64397
64397
  }
64398
64398
  L > T.from && x(T.from, L, T, R), q < T.to && x(q, T.to, T, R);
@@ -66016,12 +66016,12 @@ function fye(r, t = aye) {
66016
66016
  var R, M;
66017
66017
  let L = s[h] || (s[h] = /* @__PURE__ */ Object.create(null)), q = b.split(/ (?!$)/).map((ue) => lye(ue, t));
66018
66018
  for (let ue = 1; ue < q.length; ue++) {
66019
- let Se = q.slice(0, ue).join(" ");
66020
- c(Se, !0), L[Se] || (L[Se] = {
66019
+ let Ce = q.slice(0, ue).join(" ");
66020
+ c(Ce, !0), L[Ce] || (L[Ce] = {
66021
66021
  preventDefault: !0,
66022
66022
  stopPropagation: !1,
66023
66023
  run: [(te) => {
66024
- let De = p2 = { view: te, prefix: Se, scope: h };
66024
+ let De = p2 = { view: te, prefix: Ce, scope: h };
66025
66025
  return setTimeout(() => {
66026
66026
  p2 == De && (p2 = null);
66027
66027
  }, dye), !0;
@@ -66230,7 +66230,7 @@ const Uee = /* @__PURE__ */ Io.define({
66230
66230
  T.style.top = E6;
66231
66231
  continue;
66232
66232
  }
66233
- let L = x.arrow ? C.dom.querySelector(".cm-tooltip-arrow") : null, q = L ? 7 : 0, Z = M.right - M.left, Y = (t = $ie.get(C)) !== null && t !== void 0 ? t : M.bottom - M.top, ue = C.offset || bye, Se = this.view.textDirection == $c.LTR, te = M.width > a.right - a.left ? Se ? a.left : a.right - M.width : Se ? Math.max(a.left, Math.min(R.left - (L ? 14 : 0) + ue.x, a.right - Z)) : Math.min(Math.max(a.left, R.left - Z + (L ? 14 : 0) - ue.x), a.right - Z), De = this.above[b];
66233
+ let L = x.arrow ? C.dom.querySelector(".cm-tooltip-arrow") : null, q = L ? 7 : 0, Z = M.right - M.left, Y = (t = $ie.get(C)) !== null && t !== void 0 ? t : M.bottom - M.top, ue = C.offset || bye, Ce = this.view.textDirection == $c.LTR, te = M.width > a.right - a.left ? Ce ? a.left : a.right - M.width : Ce ? Math.max(a.left, Math.min(R.left - (L ? 14 : 0) + ue.x, a.right - Z)) : Math.min(Math.max(a.left, R.left - Z + (L ? 14 : 0) - ue.x), a.right - Z), De = this.above[b];
66234
66234
  !x.strictSide && (De ? R.top - Y - q - ue.y < a.top : R.bottom + Y + q + ue.y > a.bottom) && De == a.bottom - R.bottom > R.top - a.top && (De = this.above[b] = !De);
66235
66235
  let Ct = (De ? R.top - a.top : a.bottom - R.bottom) - q;
66236
66236
  if (Ct < Y && C.resize !== !1) {
@@ -66245,7 +66245,7 @@ const Uee = /* @__PURE__ */ Io.define({
66245
66245
  for (let rt of h)
66246
66246
  rt.left < G && rt.right > te && rt.top < ot + Y && rt.bottom > ot && (ot = De ? rt.top - Y - 2 - q : rt.bottom + q + 2);
66247
66247
  if (this.position == "absolute" ? (T.style.top = (ot - r.parent.top) / f + "px", Rie(T, (te - r.parent.left) / c)) : (T.style.top = ot / f + "px", Rie(T, te / c)), L) {
66248
- let rt = R.left + (Se ? ue.x : -ue.x) - (te + 14 - 7);
66248
+ let rt = R.left + (Ce ? ue.x : -ue.x) - (te + 14 - 7);
66249
66249
  L.style.left = rt / c + "px";
66250
66250
  }
66251
66251
  C.overlap !== !0 && h.push({ left: te, top: ot, right: G, bottom: ot + Y }), T.classList.toggle("cm-tooltip-above", De), T.classList.toggle("cm-tooltip-below", !De), C.positioned && C.positioned(r.space);
@@ -67846,11 +67846,11 @@ function Rye(r) {
67846
67846
  } else Me == -3 ? C = rt : Me == -4 && (T = rt);
67847
67847
  return G;
67848
67848
  }
67849
- let Se = [], te = [];
67849
+ let Ce = [], te = [];
67850
67850
  for (; b.pos > 0; )
67851
- R(r.start || 0, r.bufferStart || 0, Se, te, -1, 0);
67852
- let De = (t = r.length) !== null && t !== void 0 ? t : Se.length ? te[0] + Se[0].length : 0;
67853
- return new Yl(x[r.topID], Se.reverse(), te.reverse(), De);
67851
+ R(r.start || 0, r.bufferStart || 0, Ce, te, -1, 0);
67852
+ let De = (t = r.length) !== null && t !== void 0 ? t : Ce.length ? te[0] + Ce[0].length : 0;
67853
+ return new Yl(x[r.topID], Ce.reverse(), te.reverse(), De);
67854
67854
  }
67855
67855
  const Qie = /* @__PURE__ */ new WeakMap();
67856
67856
  function kH(r, t) {
@@ -67878,7 +67878,7 @@ function Mne(r, t, s, a, c, f, h, b, x) {
67878
67878
  C * 1.5 / 8
67879
67879
  /* Balance.BranchFactor */
67880
67880
  ), R = [], M = [];
67881
- function L(q, Z, Y, ue, Se) {
67881
+ function L(q, Z, Y, ue, Ce) {
67882
67882
  for (let te = Y; te < ue; ) {
67883
67883
  let De = te, Ct = Z[te], ot = kH(r, q[te]);
67884
67884
  for (te++; te < ue; te++) {
@@ -67890,7 +67890,7 @@ function Mne(r, t, s, a, c, f, h, b, x) {
67890
67890
  if (te == De + 1) {
67891
67891
  if (ot > T) {
67892
67892
  let G = q[De];
67893
- L(G.children, G.positions, 0, G.children.length, Z[De] + Se);
67893
+ L(G.children, G.positions, 0, G.children.length, Z[De] + Ce);
67894
67894
  continue;
67895
67895
  }
67896
67896
  R.push(q[De]);
@@ -67898,7 +67898,7 @@ function Mne(r, t, s, a, c, f, h, b, x) {
67898
67898
  let G = Z[te - 1] + q[te - 1].length - Ct;
67899
67899
  R.push(Mne(r, q, Z, De, te, Ct, G, null, x));
67900
67900
  }
67901
- M.push(Ct + Se - f);
67901
+ M.push(Ct + Ce - f);
67902
67902
  }
67903
67903
  }
67904
67904
  return L(t, s, a, c, 0), (b || x)(R, M, h);
@@ -68179,12 +68179,12 @@ function Lye(r) {
68179
68179
  while (!r.tree);
68180
68180
  let c = r.tree, f = c.children.indexOf(a), h = c.children[f], b = h.buffer, x = [f];
68181
68181
  function C(T, R, M, L, q, Z) {
68182
- let Y = s[Z], ue = [], Se = [];
68183
- zie(h, T, Y, ue, Se, L);
68182
+ let Y = s[Z], ue = [], Ce = [];
68183
+ zie(h, T, Y, ue, Ce, L);
68184
68184
  let te = b[Y + 1], De = b[Y + 2];
68185
68185
  x.push(ue.length);
68186
68186
  let Ct = Z ? C(Y + 4, b[Y + 3], h.set.types[b[Y]], te, De - te, Z - 1) : t.toTree();
68187
- return ue.push(Ct), Se.push(te - L), zie(h, b[Y + 3], R, ue, Se, L), new Yl(M, ue, Se, q);
68187
+ return ue.push(Ct), Ce.push(te - L), zie(h, b[Y + 3], R, ue, Ce, L), new Yl(M, ue, Ce, q);
68188
68188
  }
68189
68189
  c.children[f] = C(0, b.length, ch.none, 0, h.length, s.length - 1);
68190
68190
  for (let T of x) {
@@ -68492,13 +68492,13 @@ class qye {
68492
68492
  if (M && M.overlay) {
68493
68493
  let L = t.node.enter(M.overlay[0].from + b, 1), q = this.highlighters.filter((Y) => !Y.scope || Y.scope(M.tree.type)), Z = t.firstChild();
68494
68494
  for (let Y = 0, ue = b; ; Y++) {
68495
- let Se = Y < M.overlay.length ? M.overlay[Y] : null, te = Se ? Se.from + b : x, De = Math.max(s, ue), Ct = Math.min(a, te);
68495
+ let Ce = Y < M.overlay.length ? M.overlay[Y] : null, te = Ce ? Ce.from + b : x, De = Math.max(s, ue), Ct = Math.min(a, te);
68496
68496
  if (De < Ct && Z)
68497
68497
  for (; t.from < Ct && (this.highlightRange(t, De, Ct, c, f), this.startSpan(Math.min(Ct, t.to), C), !(t.to >= te || !t.nextSibling())); )
68498
68498
  ;
68499
- if (!Se || te > a)
68499
+ if (!Ce || te > a)
68500
68500
  break;
68501
- ue = Se.to + b, ue > s && (this.highlightRange(L.cursor(), Math.max(s, Se.from + b), Math.min(a, ue), "", q), this.startSpan(Math.min(a, ue), C));
68501
+ ue = Ce.to + b, ue > s && (this.highlightRange(L.cursor(), Math.max(s, Ce.from + b), Math.min(a, ue), "", q), this.startSpan(Math.min(a, ue), C));
68502
68502
  }
68503
68503
  Z && t.parent();
68504
68504
  } else if (t.firstChild()) {
@@ -71897,8 +71897,8 @@ class i2e {
71897
71897
  return null;
71898
71898
  let { chars: s, folded: a, any: c, precise: f, byWord: h } = this;
71899
71899
  if (s.length == 1) {
71900
- let Se = Dk(t, 0), te = jE(Se), De = te == t.length ? 0 : -100;
71901
- if (Se != s[0]) if (Se == a[0])
71900
+ let Ce = Dk(t, 0), te = jE(Ce), De = te == t.length ? 0 : -100;
71901
+ if (Ce != s[0]) if (Ce == a[0])
71902
71902
  De += -200;
71903
71903
  else
71904
71904
  return null;
@@ -71909,19 +71909,19 @@ class i2e {
71909
71909
  return this.ret(t.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
71910
71910
  let x = s.length, C = 0;
71911
71911
  if (b < 0) {
71912
- for (let Se = 0, te = Math.min(t.length, 200); Se < te && C < x; ) {
71913
- let De = Dk(t, Se);
71914
- (De == s[C] || De == a[C]) && (c[C++] = Se), Se += jE(De);
71912
+ for (let Ce = 0, te = Math.min(t.length, 200); Ce < te && C < x; ) {
71913
+ let De = Dk(t, Ce);
71914
+ (De == s[C] || De == a[C]) && (c[C++] = Ce), Ce += jE(De);
71915
71915
  }
71916
71916
  if (C < x)
71917
71917
  return null;
71918
71918
  }
71919
71919
  let T = 0, R = 0, M = !1, L = 0, q = -1, Z = -1, Y = /[a-z]/.test(t), ue = !0;
71920
- for (let Se = 0, te = Math.min(t.length, 200), De = 0; Se < te && R < x; ) {
71921
- let Ct = Dk(t, Se);
71922
- b < 0 && (T < x && Ct == s[T] && (f[T++] = Se), L < x && (Ct == s[L] || Ct == a[L] ? (L == 0 && (q = Se), Z = Se + 1, L++) : L = 0));
71920
+ for (let Ce = 0, te = Math.min(t.length, 200), De = 0; Ce < te && R < x; ) {
71921
+ let Ct = Dk(t, Ce);
71922
+ b < 0 && (T < x && Ct == s[T] && (f[T++] = Ce), L < x && (Ct == s[L] || Ct == a[L] ? (L == 0 && (q = Ce), Z = Ce + 1, L++) : L = 0));
71923
71923
  let ot, G = Ct < 255 ? Ct >= 48 && Ct <= 57 || Ct >= 97 && Ct <= 122 ? 2 : Ct >= 65 && Ct <= 90 ? 1 : 0 : (ot = gbe(Ct)) != ot.toLowerCase() ? 1 : ot != ot.toUpperCase() ? 2 : 0;
71924
- (!Se || G == 1 && Y || De == 0 && G != 0) && (s[R] == Ct || a[R] == Ct && (M = !0) ? h[R++] = Se : h.length && (ue = !1)), De = G, Se += jE(Ct);
71924
+ (!Ce || G == 1 && Y || De == 0 && G != 0) && (s[R] == Ct || a[R] == Ct && (M = !0) ? h[R++] = Ce : h.length && (ue = !1)), De = G, Ce += jE(Ct);
71925
71925
  }
71926
71926
  return R == x && h[0] == 0 && ue ? this.result(-100 + (M ? -200 : 0), h, t) : L == x && q == 0 ? this.ret(-200 - t.length + (Z == t.length ? 0 : -100), [0, Z]) : b > -1 ? this.ret(-700 - t.length, [b, b + this.pattern.length]) : L == x ? this.ret(-900 - t.length, [q, Z]) : R == x ? this.result(-100 + (M ? -200 : 0) + -700 + (ue ? 0 : -1100), h, t) : s.length == 2 ? null : this.result((c[0] ? -700 : 0) + -200 + -1100, c, t);
71927
71927
  }
@@ -71990,8 +71990,8 @@ function l2e(r, t, s, a, c, f) {
71990
71990
  (h ? t.right : c.right - t.left) - 30
71991
71991
  /* Info.Margin */
71992
71992
  );
71993
- let Se = c.bottom - t.bottom;
71994
- Se >= Z || Se > t.top ? T = s.bottom - t.top : (C = "bottom", T = t.bottom - s.top);
71993
+ let Ce = c.bottom - t.bottom;
71994
+ Ce >= Z || Ce > t.top ? T = s.bottom - t.top : (C = "bottom", T = t.bottom - s.top);
71995
71995
  }
71996
71996
  let Y = (t.bottom - t.top) / f.offsetHeight, ue = (t.right - t.left) / f.offsetWidth;
71997
71997
  return {
@@ -75276,16 +75276,16 @@ const Wae = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command em
75276
75276
  if (M && a == ">" && q.name == "EndTag") {
75277
75277
  let Y = q.parent;
75278
75278
  if (((T = (C = Y.parent) === null || C === void 0 ? void 0 : C.lastChild) === null || T === void 0 ? void 0 : T.name) != "CloseTag" && (Z = xA(h.doc, Y.parent, L)) && !Wae.has(Z)) {
75279
- let ue = L + (h.doc.sliceString(L, L + 1) === ">" ? 1 : 0), Se = `</${Z}>`;
75280
- return { range: x, changes: { from: L, to: ue, insert: Se } };
75279
+ let ue = L + (h.doc.sliceString(L, L + 1) === ">" ? 1 : 0), Ce = `</${Z}>`;
75280
+ return { range: x, changes: { from: L, to: ue, insert: Ce } };
75281
75281
  }
75282
75282
  } else if (M && a == "/" && q.name == "IncompleteCloseTag") {
75283
75283
  let Y = q.parent;
75284
75284
  if (q.from == L - 2 && ((R = Y.lastChild) === null || R === void 0 ? void 0 : R.name) != "CloseTag" && (Z = xA(h.doc, Y, L)) && !Wae.has(Z)) {
75285
- let ue = L + (h.doc.sliceString(L, L + 1) === ">" ? 1 : 0), Se = `${Z}>`;
75285
+ let ue = L + (h.doc.sliceString(L, L + 1) === ">" ? 1 : 0), Ce = `${Z}>`;
75286
75286
  return {
75287
- range: Es.cursor(L + Se.length, -1),
75288
- changes: { from: L, to: ue, insert: Se }
75287
+ range: Es.cursor(L + Ce.length, -1),
75288
+ changes: { from: L, to: ue, insert: Ce }
75289
75289
  };
75290
75290
  }
75291
75291
  }
@@ -75945,8 +75945,8 @@ const Pde = /* @__PURE__ */ Ii(qSe, [["render", nCe]]), sCe = {
75945
75945
  }
75946
75946
  },
75947
75947
  setup(r, { expose: t }) {
75948
- const s = Ys(""), a = Ys(""), c = Ys(""), f = Ys("Cancel"), h = Ys(!1), b = Ys(!1), x = Ys(!1), C = Ys(void 0), T = Ys(void 0), R = (Y = {}) => (s.value = Y.title, a.value = Y.message, c.value = Y.okButton, Y.cancelButton && (f.value = Y.cancelButton), Y.hasLoading && (x.value = Y.hasLoading), h.value = !0, new Promise((ue, Se) => {
75949
- C.value = ue, T.value = Se;
75948
+ const s = Ys(""), a = Ys(""), c = Ys(""), f = Ys("Cancel"), h = Ys(!1), b = Ys(!1), x = Ys(!1), C = Ys(void 0), T = Ys(void 0), R = (Y = {}) => (s.value = Y.title, a.value = Y.message, c.value = Y.okButton, Y.cancelButton && (f.value = Y.cancelButton), Y.hasLoading && (x.value = Y.hasLoading), h.value = !0, new Promise((ue, Ce) => {
75949
+ C.value = ue, T.value = Ce;
75950
75950
  })), M = () => {
75951
75951
  b.value = !0;
75952
75952
  }, L = () => {
@@ -75965,7 +75965,7 @@ const Pde = /* @__PURE__ */ Ii(qSe, [["render", nCe]]), sCe = {
75965
75965
  showLoading: M,
75966
75966
  hideLoading: L
75967
75967
  }), (Y, ue) => {
75968
- const Se = id("gl-button");
75968
+ const Ce = id("gl-button");
75969
75969
  return h.value ? (Fe(), He("div", sCe, [
75970
75970
  U("div", oCe, [
75971
75971
  ue[1] || (ue[1] = U("div", {
@@ -76014,7 +76014,7 @@ const Pde = /* @__PURE__ */ Ii(qSe, [["render", nCe]]), sCe = {
76014
76014
  fo(" Loading... ")
76015
76015
  ])),
76016
76016
  _: 1
76017
- })) : (Fe(), nu(Se, {
76017
+ })) : (Fe(), nu(Ce, {
76018
76018
  key: 0,
76019
76019
  onClick: q,
76020
76020
  tag: "button",
@@ -76025,7 +76025,7 @@ const Pde = /* @__PURE__ */ Ii(qSe, [["render", nCe]]), sCe = {
76025
76025
  ]),
76026
76026
  _: 1
76027
76027
  })),
76028
- Ql(Se, {
76028
+ Ql(Ce, {
76029
76029
  onClick: Z,
76030
76030
  tag: "button",
76031
76031
  button_type: "light"
@@ -76960,7 +76960,7 @@ function QCe(r, t, s, a) {
76960
76960
  c[c.length] = { t: "t", v: b }, ++h;
76961
76961
  break;
76962
76962
  }
76963
- var Y = 0, ue = 0, Se;
76963
+ var Y = 0, ue = 0, Ce;
76964
76964
  for (h = c.length - 1, x = "t"; h >= 0; --h)
76965
76965
  switch (c[h].t) {
76966
76966
  case "h":
@@ -76968,7 +76968,7 @@ function QCe(r, t, s, a) {
76968
76968
  c[h].t = M, x = "h", Y < 1 && (Y = 1);
76969
76969
  break;
76970
76970
  case "s":
76971
- (Se = c[h].v.match(/\.0+$/)) && (ue = Math.max(ue, Se[0].length - 1)), Y < 3 && (Y = 3);
76971
+ (Ce = c[h].v.match(/\.0+$/)) && (ue = Math.max(ue, Ce[0].length - 1)), Y < 3 && (Y = 3);
76972
76972
  /* falls through */
76973
76973
  case "d":
76974
76974
  case "y":
@@ -77203,13 +77203,13 @@ var ZCe = /* @__PURE__ */ (function() {
77203
77203
  for (wt = 1; wt != 16; ++wt) fe[wt - 1] = typeof Int32Array < "u" ? Me.subarray(wt * 256, wt * 256 + 256) : Me.slice(wt * 256, wt * 256 + 256);
77204
77204
  return fe;
77205
77205
  }
77206
- var c = a(s), f = c[0], h = c[1], b = c[2], x = c[3], C = c[4], T = c[5], R = c[6], M = c[7], L = c[8], q = c[9], Z = c[10], Y = c[11], ue = c[12], Se = c[13], te = c[14];
77206
+ var c = a(s), f = c[0], h = c[1], b = c[2], x = c[3], C = c[4], T = c[5], R = c[6], M = c[7], L = c[8], q = c[9], Z = c[10], Y = c[11], ue = c[12], Ce = c[13], te = c[14];
77207
77207
  function De(G, rt) {
77208
77208
  for (var at = rt ^ -1, wt = 0, Me = G.length; wt < Me; ) at = at >>> 8 ^ s[(at ^ G.charCodeAt(wt++)) & 255];
77209
77209
  return ~at;
77210
77210
  }
77211
77211
  function Ct(G, rt) {
77212
- for (var at = rt ^ -1, wt = G.length - 15, Me = 0; Me < wt; ) at = te[G[Me++] ^ at & 255] ^ Se[G[Me++] ^ at >> 8 & 255] ^ ue[G[Me++] ^ at >> 16 & 255] ^ Y[G[Me++] ^ at >>> 24] ^ Z[G[Me++]] ^ q[G[Me++]] ^ L[G[Me++]] ^ M[G[Me++]] ^ R[G[Me++]] ^ T[G[Me++]] ^ C[G[Me++]] ^ x[G[Me++]] ^ b[G[Me++]] ^ h[G[Me++]] ^ f[G[Me++]] ^ s[G[Me++]];
77212
+ for (var at = rt ^ -1, wt = G.length - 15, Me = 0; Me < wt; ) at = te[G[Me++] ^ at & 255] ^ Ce[G[Me++] ^ at >> 8 & 255] ^ ue[G[Me++] ^ at >> 16 & 255] ^ Y[G[Me++] ^ at >>> 24] ^ Z[G[Me++]] ^ q[G[Me++]] ^ L[G[Me++]] ^ M[G[Me++]] ^ R[G[Me++]] ^ T[G[Me++]] ^ C[G[Me++]] ^ x[G[Me++]] ^ b[G[Me++]] ^ h[G[Me++]] ^ f[G[Me++]] ^ s[G[Me++]];
77213
77213
  for (wt += 15; Me < wt; ) at = at >>> 8 ^ s[(at ^ G[Me++]) & 255];
77214
77214
  return ~at;
77215
77215
  }
@@ -77309,7 +77309,7 @@ var ZCe = /* @__PURE__ */ (function() {
77309
77309
  Le[dt] = bt;
77310
77310
  var Ie = L(we, Xe);
77311
77311
  Y(Ne, et, Ie, Xe, Le);
77312
- var Ye = Se(Ie, de, Le, Xe);
77312
+ var Ye = Ce(Ie, de, Le, Xe);
77313
77313
  Ye[de].name = "!Directory", tt > 0 && he !== Kt && (Ye[he].name = "!MiniFAT"), Ye[Le[0]].name = "!FAT", Ye.fat_addrs = Le, Ye.ssz = Xe;
77314
77314
  var Qt = {}, Jt = [], En = [], es = [];
77315
77315
  te(de, Ye, Ie, Jt, tt, Qt, En, he), q(En, es, Jt), Jt.shift();
@@ -77389,7 +77389,7 @@ var ZCe = /* @__PURE__ */ (function() {
77389
77389
  }
77390
77390
  return { nodes: et, data: cle([de]) };
77391
77391
  }
77392
- function Se(we, je, Be, Xe) {
77392
+ function Ce(we, je, Be, Xe) {
77393
77393
  var tt = we.length, et = [], de = [], he = [], Ne = [], Le = Xe - 1, Ot = 0, Ht = 0, un = 0, Fn = 0;
77394
77394
  for (Ot = 0; Ot < tt; ++Ot)
77395
77395
  if (he = [], un = Ot + je, un >= tt && (un -= tt), !de[un]) {
@@ -80433,10 +80433,10 @@ var S_e = /* @__PURE__ */ (function() {
80433
80433
  }
80434
80434
  var Z = 0, Y = 521;
80435
80435
  R == 2 && (Z = T.read_shift(2)), T.l += 3, R != 2 && (Z = T.read_shift(4)), Z > 1048576 && (Z = 1e6), R != 2 && (Y = T.read_shift(2));
80436
- var ue = T.read_shift(2), Se = x.codepage || 1252;
80437
- R != 2 && (T.l += 16, T.read_shift(1), T[T.l] !== 0 && (Se = r[T[T.l]]), T.l += 1, T.l += 2), q && (T.l += 36);
80436
+ var ue = T.read_shift(2), Ce = x.codepage || 1252;
80437
+ R != 2 && (T.l += 16, T.read_shift(1), T[T.l] !== 0 && (Ce = r[T[T.l]]), T.l += 1, T.l += 2), q && (T.l += 36);
80438
80438
  for (var te = [], De = {}, Ct = Math.min(T.length, R == 2 ? 521 : Y - 10 - (L ? 264 : 0)), ot = q ? 32 : 11; T.l < Ct && T[T.l] != 13; )
80439
- switch (De = {}, De.name = sz.utils.decode(Se, T.slice(T.l, T.l + ot)).replace(/[\u0000\r\n].*$/g, ""), T.l += ot, De.type = String.fromCharCode(T.read_shift(1)), R != 2 && !q && (De.offset = T.read_shift(4)), De.len = T.read_shift(1), R == 2 && (De.offset = T.read_shift(2)), De.dec = T.read_shift(1), De.name.length && te.push(De), R != 2 && (T.l += q ? 13 : 14), De.type) {
80439
+ switch (De = {}, De.name = sz.utils.decode(Ce, T.slice(T.l, T.l + ot)).replace(/[\u0000\r\n].*$/g, ""), T.l += ot, De.type = String.fromCharCode(T.read_shift(1)), R != 2 && !q && (De.offset = T.read_shift(4)), De.len = T.read_shift(1), R == 2 && (De.offset = T.read_shift(2)), De.dec = T.read_shift(1), De.name.length && te.push(De), R != 2 && (T.l += q ? 13 : 14), De.type) {
80440
80440
  case "B":
80441
80441
  (!L || De.len != 8) && x.WTF && console.log("Skipping " + De.name + ":" + De.type);
80442
80442
  break;
@@ -80486,7 +80486,7 @@ var S_e = /* @__PURE__ */ (function() {
80486
80486
  for (++T.l, C[++G] = [], rt = 0, rt = 0; rt != te.length; ++rt) {
80487
80487
  var at = T.slice(T.l, T.l + te[rt].len);
80488
80488
  T.l += te[rt].len, ng(at, 0);
80489
- var wt = sz.utils.decode(Se, at);
80489
+ var wt = sz.utils.decode(Ce, at);
80490
80490
  switch (te[rt].type) {
80491
80491
  case "C":
80492
80492
  wt.trim().length && (C[G][rt] = wt.replace(/\s+$/, ""));
@@ -80581,7 +80581,7 @@ var S_e = /* @__PURE__ */ (function() {
80581
80581
  function h(b, x) {
80582
80582
  var C = x || {};
80583
80583
  if (+C.codepage >= 0 && uM(+C.codepage), C.type == "string") throw new Error("Cannot write DBF to JS string");
80584
- var T = im(), R = pz(b, { header: 1, raw: !0, cellDates: !0 }), M = R[0], L = R.slice(1), q = b["!cols"] || [], Z = 0, Y = 0, ue = 0, Se = 1;
80584
+ var T = im(), R = pz(b, { header: 1, raw: !0, cellDates: !0 }), M = R[0], L = R.slice(1), q = b["!cols"] || [], Z = 0, Y = 0, ue = 0, Ce = 1;
80585
80585
  for (Z = 0; Z < M.length; ++Z) {
80586
80586
  if (((q[Z] || {}).DBF || {}).name) {
80587
80587
  M[Z] = q[Z].DBF.name, ++ue;
@@ -80627,10 +80627,10 @@ var S_e = /* @__PURE__ */ (function() {
80627
80627
  }
80628
80628
  at = Math.max(at, String(wt[Y]).length), G = G && G != rt ? "C" : rt;
80629
80629
  }
80630
- at > 250 && (at = 250), rt = ((q[Z] || {}).DBF || {}).type, rt == "C" && q[Z].DBF.len > at && (at = q[Z].DBF.len), G == "B" && rt == "N" && (G = "N", ot[Z] = q[Z].DBF.dec, at = q[Z].DBF.len), Ct[Z] = G == "C" || rt == "N" ? at : f[G] || 0, Se += Ct[Z], De[Z] = G;
80630
+ at > 250 && (at = 250), rt = ((q[Z] || {}).DBF || {}).type, rt == "C" && q[Z].DBF.len > at && (at = q[Z].DBF.len), G == "B" && rt == "N" && (G = "N", ot[Z] = q[Z].DBF.dec, at = q[Z].DBF.len), Ct[Z] = G == "C" || rt == "N" ? at : f[G] || 0, Ce += Ct[Z], De[Z] = G;
80631
80631
  }
80632
80632
  var Me = T.next(32);
80633
- for (Me.write_shift(4, 318902576), Me.write_shift(4, L.length), Me.write_shift(2, 296 + 32 * ue), Me.write_shift(2, Se), Z = 0; Z < 4; ++Z) Me.write_shift(4, 0);
80633
+ for (Me.write_shift(4, 318902576), Me.write_shift(4, L.length), Me.write_shift(2, 296 + 32 * ue), Me.write_shift(2, Ce), Z = 0; Z < 4; ++Z) Me.write_shift(4, 0);
80634
80634
  for (Me.write_shift(4, 0 | (+t[
80635
80635
  /*::String(*/
80636
80636
  Dde
@@ -80643,7 +80643,7 @@ var S_e = /* @__PURE__ */ (function() {
80643
80643
  var xt = T.next(264);
80644
80644
  for (xt.write_shift(4, 13), Z = 0; Z < 65; ++Z) xt.write_shift(4, 0);
80645
80645
  for (Z = 0; Z < L.length; ++Z) {
80646
- var St = T.next(Se);
80646
+ var St = T.next(Ce);
80647
80647
  for (St.write_shift(1, 0), Y = 0; Y < M.length; ++Y)
80648
80648
  if (M[Y] != null)
80649
80649
  switch (De[Y]) {
@@ -80792,7 +80792,7 @@ var S_e = /* @__PURE__ */ (function() {
80792
80792
  throw new Error("Unrecognized type " + L.type);
80793
80793
  }
80794
80794
  function f(M, L) {
80795
- var q = M.split(/[\n\r]+/), Z = -1, Y = -1, ue = 0, Se = 0, te = [], De = [], Ct = null, ot = {}, G = [], rt = [], at = [], wt = 0, Me;
80795
+ var q = M.split(/[\n\r]+/), Z = -1, Y = -1, ue = 0, Ce = 0, te = [], De = [], Ct = null, ot = {}, G = [], rt = [], at = [], wt = 0, Me;
80796
80796
  for (+L.codepage >= 0 && uM(+L.codepage); ue !== q.length; ++ue) {
80797
80797
  wt = 0;
80798
80798
  var fe = q[ue].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(t, s), Kt = fe.replace(/;;/g, "\0").split(";").map(function(Qe) {
@@ -80819,22 +80819,22 @@ var S_e = /* @__PURE__ */ (function() {
80819
80819
  break;
80820
80820
  case "C":
80821
80821
  var F = !1, tn = !1, ft = !1, Zt = !1, Xt = -1, Ze = -1;
80822
- for (Se = 1; Se < Kt.length; ++Se) switch (Kt[Se].charAt(0)) {
80822
+ for (Ce = 1; Ce < Kt.length; ++Ce) switch (Kt[Ce].charAt(0)) {
80823
80823
  case "A":
80824
80824
  break;
80825
80825
  // TODO: comment
80826
80826
  case "X":
80827
- Y = parseInt(Kt[Se].slice(1)) - 1, tn = !0;
80827
+ Y = parseInt(Kt[Ce].slice(1)) - 1, tn = !0;
80828
80828
  break;
80829
80829
  case "Y":
80830
- for (Z = parseInt(Kt[Se].slice(1)) - 1, tn || (Y = 0), Me = te.length; Me <= Z; ++Me) te[Me] = [];
80830
+ for (Z = parseInt(Kt[Ce].slice(1)) - 1, tn || (Y = 0), Me = te.length; Me <= Z; ++Me) te[Me] = [];
80831
80831
  break;
80832
80832
  case "K":
80833
- St = Kt[Se].slice(1), St.charAt(0) === '"' ? St = St.slice(1, St.length - 1) : St === "TRUE" ? St = !0 : St === "FALSE" ? St = !1 : isNaN(Dy(St)) ? isNaN(fM(St).getDate()) || (St = ah(St)) : (St = Dy(St), Ct !== null && zde(Ct) && (St = Xde(St))), F = !0;
80833
+ St = Kt[Ce].slice(1), St.charAt(0) === '"' ? St = St.slice(1, St.length - 1) : St === "TRUE" ? St = !0 : St === "FALSE" ? St = !1 : isNaN(Dy(St)) ? isNaN(fM(St).getDate()) || (St = ah(St)) : (St = Dy(St), Ct !== null && zde(Ct) && (St = Xde(St))), F = !0;
80834
80834
  break;
80835
80835
  case "E":
80836
80836
  Zt = !0;
80837
- var ce = wTe(Kt[Se].slice(1), { r: Z, c: Y });
80837
+ var ce = wTe(Kt[Ce].slice(1), { r: Z, c: Y });
80838
80838
  te[Z][Y] = [te[Z][Y], ce];
80839
80839
  break;
80840
80840
  case "S":
@@ -80844,10 +80844,10 @@ var S_e = /* @__PURE__ */ (function() {
80844
80844
  break;
80845
80845
  // unknown
80846
80846
  case "R":
80847
- Xt = parseInt(Kt[Se].slice(1)) - 1;
80847
+ Xt = parseInt(Kt[Ce].slice(1)) - 1;
80848
80848
  break;
80849
80849
  case "C":
80850
- Ze = parseInt(Kt[Se].slice(1)) - 1;
80850
+ Ze = parseInt(Kt[Ce].slice(1)) - 1;
80851
80851
  break;
80852
80852
  default:
80853
80853
  if (L && L.WTF) throw new Error("SYLK bad record " + fe);
@@ -80861,15 +80861,15 @@ var S_e = /* @__PURE__ */ (function() {
80861
80861
  break;
80862
80862
  case "F":
80863
80863
  var ye = 0;
80864
- for (Se = 1; Se < Kt.length; ++Se) switch (Kt[Se].charAt(0)) {
80864
+ for (Ce = 1; Ce < Kt.length; ++Ce) switch (Kt[Ce].charAt(0)) {
80865
80865
  case "X":
80866
- Y = parseInt(Kt[Se].slice(1)) - 1, ++ye;
80866
+ Y = parseInt(Kt[Ce].slice(1)) - 1, ++ye;
80867
80867
  break;
80868
80868
  case "Y":
80869
- for (Z = parseInt(Kt[Se].slice(1)) - 1, Me = te.length; Me <= Z; ++Me) te[Me] = [];
80869
+ for (Z = parseInt(Kt[Ce].slice(1)) - 1, Me = te.length; Me <= Z; ++Me) te[Me] = [];
80870
80870
  break;
80871
80871
  case "M":
80872
- wt = parseInt(Kt[Se].slice(1)) / 20;
80872
+ wt = parseInt(Kt[Ce].slice(1)) / 20;
80873
80873
  break;
80874
80874
  case "F":
80875
80875
  break;
@@ -80878,7 +80878,7 @@ var S_e = /* @__PURE__ */ (function() {
80878
80878
  break;
80879
80879
  /* hide grid */
80880
80880
  case "P":
80881
- Ct = De[parseInt(Kt[Se].slice(1))];
80881
+ Ct = De[parseInt(Kt[Ce].slice(1))];
80882
80882
  break;
80883
80883
  case "S":
80884
80884
  break;
@@ -80890,14 +80890,14 @@ var S_e = /* @__PURE__ */ (function() {
80890
80890
  break;
80891
80891
  /* font */
80892
80892
  case "W":
80893
- for (at = Kt[Se].slice(1).split(" "), Me = parseInt(at[0], 10); Me <= parseInt(at[1], 10); ++Me)
80893
+ for (at = Kt[Ce].slice(1).split(" "), Me = parseInt(at[0], 10); Me <= parseInt(at[1], 10); ++Me)
80894
80894
  wt = parseInt(at[2], 10), rt[Me - 1] = wt === 0 ? { hidden: !0 } : { wch: wt }, fse(rt[Me - 1]);
80895
80895
  break;
80896
80896
  case "C":
80897
- Y = parseInt(Kt[Se].slice(1)) - 1, rt[Y] || (rt[Y] = {});
80897
+ Y = parseInt(Kt[Ce].slice(1)) - 1, rt[Y] || (rt[Y] = {});
80898
80898
  break;
80899
80899
  case "R":
80900
- Z = parseInt(Kt[Se].slice(1)) - 1, G[Z] || (G[Z] = {}), wt > 0 ? (G[Z].hpt = wt, G[Z].hpx = Mfe(wt)) : wt === 0 && (G[Z].hidden = !0);
80900
+ Z = parseInt(Kt[Ce].slice(1)) - 1, G[Z] || (G[Z] = {}), wt > 0 ? (G[Z].hpt = wt, G[Z].hpx = Mfe(wt)) : wt === 0 && (G[Z].hidden = !0);
80901
80901
  break;
80902
80902
  default:
80903
80903
  if (L && L.WTF) throw new Error("SYLK bad record " + fe);
@@ -80912,8 +80912,8 @@ var S_e = /* @__PURE__ */ (function() {
80912
80912
  }
80913
80913
  function h(M, L) {
80914
80914
  var q = c(M, L), Z = q[0], Y = q[1], ue = AA(Z, L);
80915
- return Hd(Y).forEach(function(Se) {
80916
- ue[Se] = Y[Se];
80915
+ return Hd(Y).forEach(function(Ce) {
80916
+ ue[Ce] = Y[Ce];
80917
80917
  }), ue;
80918
80918
  }
80919
80919
  function b(M, L) {
@@ -80953,13 +80953,13 @@ var S_e = /* @__PURE__ */ (function() {
80953
80953
  });
80954
80954
  }
80955
80955
  function R(M, L) {
80956
- var q = ["ID;PWXL;N;E"], Z = [], Y = pl(M["!ref"]), ue, Se = Array.isArray(M), te = `\r
80956
+ var q = ["ID;PWXL;N;E"], Z = [], Y = pl(M["!ref"]), ue, Ce = Array.isArray(M), te = `\r
80957
80957
  `;
80958
80958
  q.push("P;PGeneral"), q.push("F;P0;DG0G8;M255"), M["!cols"] && C(q, M["!cols"]), M["!rows"] && T(q, M["!rows"]), q.push("B;Y" + (Y.e.r - Y.s.r + 1) + ";X" + (Y.e.c - Y.s.c + 1) + ";D" + [Y.s.c, Y.s.r, Y.e.c, Y.e.r].join(" "));
80959
80959
  for (var De = Y.s.r; De <= Y.e.r; ++De)
80960
80960
  for (var Ct = Y.s.c; Ct <= Y.e.c; ++Ct) {
80961
80961
  var ot = wa({ r: De, c: Ct });
80962
- ue = Se ? (M[De] || [])[Ct] : M[ot], !(!ue || ue.v == null && (!ue.f || ue.F)) && Z.push(x(ue, M, De, Ct));
80962
+ ue = Ce ? (M[De] || [])[Ct] : M[ot], !(!ue || ue.v == null && (!ue.f || ue.F)) && Z.push(x(ue, M, De, Ct));
80963
80963
  }
80964
80964
  return q.join(te) + te + Z.join(te) + te + "E" + te;
80965
80965
  }
@@ -81057,8 +81057,8 @@ var S_e = /* @__PURE__ */ (function() {
81057
81057
  }
81058
81058
  h(C, -1, 0, "EOD");
81059
81059
  var ue = `\r
81060
- `, Se = C.join(ue);
81061
- return Se;
81060
+ `, Ce = C.join(ue);
81061
+ return Ce;
81062
81062
  };
81063
81063
  })();
81064
81064
  return {
@@ -81077,22 +81077,22 @@ var S_e = /* @__PURE__ */ (function() {
81077
81077
  function s(R, M) {
81078
81078
  for (var L = R.split(`
81079
81079
  `), q = -1, Z = -1, Y = 0, ue = []; Y !== L.length; ++Y) {
81080
- var Se = L[Y].trim().split(":");
81081
- if (Se[0] === "cell") {
81082
- var te = ud(Se[1]);
81080
+ var Ce = L[Y].trim().split(":");
81081
+ if (Ce[0] === "cell") {
81082
+ var te = ud(Ce[1]);
81083
81083
  if (ue.length <= te.r) for (q = ue.length; q <= te.r; ++q) ue[q] || (ue[q] = []);
81084
- switch (q = te.r, Z = te.c, Se[2]) {
81084
+ switch (q = te.r, Z = te.c, Ce[2]) {
81085
81085
  case "t":
81086
- ue[q][Z] = r(Se[3]);
81086
+ ue[q][Z] = r(Ce[3]);
81087
81087
  break;
81088
81088
  case "v":
81089
- ue[q][Z] = +Se[3];
81089
+ ue[q][Z] = +Ce[3];
81090
81090
  break;
81091
81091
  case "vtf":
81092
- var De = Se[Se.length - 1];
81092
+ var De = Ce[Ce.length - 1];
81093
81093
  /* falls through */
81094
81094
  case "vtc":
81095
- Se[3] === "nl" ? ue[q][Z] = !!+Se[4] : ue[q][Z] = +Se[4], Se[2] == "vtf" && (ue[q][Z] = [ue[q][Z], De]);
81095
+ Ce[3] === "nl" ? ue[q][Z] = !!+Ce[4] : ue[q][Z] = +Ce[4], Ce[2] == "vtf" && (ue[q][Z] = [ue[q][Z], De]);
81096
81096
  }
81097
81097
  }
81098
81098
  }
@@ -81121,9 +81121,9 @@ var S_e = /* @__PURE__ */ (function() {
81121
81121
  `), x = "--SocialCalcSpreadsheetControlSave--";
81122
81122
  function C(R) {
81123
81123
  if (!R || !R["!ref"]) return "";
81124
- for (var M = [], L = [], q, Z = "", Y = ig(R["!ref"]), ue = Array.isArray(R), Se = Y.s.r; Se <= Y.e.r; ++Se)
81124
+ for (var M = [], L = [], q, Z = "", Y = ig(R["!ref"]), ue = Array.isArray(R), Ce = Y.s.r; Ce <= Y.e.r; ++Ce)
81125
81125
  for (var te = Y.s.c; te <= Y.e.c; ++te)
81126
- if (Z = wa({ r: Se, c: te }), q = ue ? (R[Se] || [])[te] : R[Z], !(!q || q.v == null || q.t === "z")) {
81126
+ if (Z = wa({ r: Ce, c: te }), q = ue ? (R[Ce] || [])[te] : R[Z], !(!q || q.v == null || q.t === "z")) {
81127
81127
  switch (L = ["cell", Z, "t"], q.t) {
81128
81128
  case "s":
81129
81129
  case "str":
@@ -81164,13 +81164,13 @@ var S_e = /* @__PURE__ */ (function() {
81164
81164
  var M = R || {}, L = [];
81165
81165
  if (!T || T.length === 0) return L;
81166
81166
  for (var q = T.split(/[\r\n]/), Z = q.length - 1; Z >= 0 && q[Z].length === 0; ) --Z;
81167
- for (var Y = 10, ue = 0, Se = 0; Se <= Z; ++Se)
81168
- ue = q[Se].indexOf(" "), ue == -1 ? ue = q[Se].length : ue++, Y = Math.max(Y, ue);
81169
- for (Se = 0; Se <= Z; ++Se) {
81170
- L[Se] = [];
81167
+ for (var Y = 10, ue = 0, Ce = 0; Ce <= Z; ++Ce)
81168
+ ue = q[Ce].indexOf(" "), ue == -1 ? ue = q[Ce].length : ue++, Y = Math.max(Y, ue);
81169
+ for (Ce = 0; Ce <= Z; ++Ce) {
81170
+ L[Ce] = [];
81171
81171
  var te = 0;
81172
- for (r(q[Se].slice(0, Y).trim(), L, Se, te, M), te = 1; te <= (q[Se].length - Y) / 10 + 1; ++te)
81173
- r(q[Se].slice(Y + (te - 1) * 10, Y + te * 10).trim(), L, Se, te, M);
81172
+ for (r(q[Ce].slice(0, Y).trim(), L, Ce, te, M), te = 1; te <= (q[Ce].length - Y) / 10 + 1; ++te)
81173
+ r(q[Ce].slice(Y + (te - 1) * 10, Y + te * 10).trim(), L, Ce, te, M);
81174
81174
  }
81175
81175
  return M.sheetRows && (L = L.slice(0, M.sheetRows)), L;
81176
81176
  }
@@ -81209,7 +81209,7 @@ var S_e = /* @__PURE__ */ (function() {
81209
81209
  function f(T, R) {
81210
81210
  var M = R || {}, L = "", q = M.dense ? [] : {}, Z = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
81211
81211
  T.slice(0, 4) == "sep=" ? T.charCodeAt(5) == 13 && T.charCodeAt(6) == 10 ? (L = T.charAt(4), T = T.slice(7)) : T.charCodeAt(5) == 13 || T.charCodeAt(5) == 10 ? (L = T.charAt(4), T = T.slice(6)) : L = c(T.slice(0, 1024)) : M && M.FS ? L = M.FS : L = c(T.slice(0, 1024));
81212
- var Y = 0, ue = 0, Se = 0, te = 0, De = 0, Ct = L.charCodeAt(0), ot = !1, G = 0, rt = T.charCodeAt(0);
81212
+ var Y = 0, ue = 0, Ce = 0, te = 0, De = 0, Ct = L.charCodeAt(0), ot = !1, G = 0, rt = T.charCodeAt(0);
81213
81213
  T = T.replace(/\r\n/mg, `
81214
81214
  `);
81215
81215
  var at = M.dateNF != null ? HCe(M.dateNF) : null;
@@ -81226,8 +81226,8 @@ var S_e = /* @__PURE__ */ (function() {
81226
81226
  fe.t = "b", fe.v = !0;
81227
81227
  else if (Me == "FALSE")
81228
81228
  fe.t = "b", fe.v = !1;
81229
- else if (!isNaN(Se = Dy(Me)))
81230
- fe.t = "n", M.cellText !== !1 && (fe.w = Me), fe.v = Se;
81229
+ else if (!isNaN(Ce = Dy(Me)))
81230
+ fe.t = "n", M.cellText !== !1 && (fe.w = Me), fe.v = Ce;
81231
81231
  else if (!isNaN(fM(Me).getDate()) || at && Me.match(at)) {
81232
81232
  fe.z = M.dateNF || bc[14];
81233
81233
  var Kt = 0;
@@ -81281,8 +81281,8 @@ var S_e = /* @__PURE__ */ (function() {
81281
81281
  function C(T) {
81282
81282
  for (var R = [], M = pl(T["!ref"]), L, q = Array.isArray(T), Z = M.s.r; Z <= M.e.r; ++Z) {
81283
81283
  for (var Y = [], ue = M.s.c; ue <= M.e.c; ++ue) {
81284
- var Se = wa({ r: Z, c: ue });
81285
- if (L = q ? (T[Z] || [])[ue] : T[Se], !L || L.v == null) {
81284
+ var Ce = wa({ r: Z, c: ue });
81285
+ if (L = q ? (T[Z] || [])[ue] : T[Ce], !L || L.v == null) {
81286
81286
  Y.push(" ");
81287
81287
  continue;
81288
81288
  }
@@ -81523,7 +81523,7 @@ var S_e = /* @__PURE__ */ (function() {
81523
81523
  var Qe = Ue & 32768;
81524
81524
  return Ue &= -32769, Ue = (Qe ? ce : 0) + (Ue >= 8192 ? Ue - 16384 : Ue), (Qe ? "" : "$") + (ye ? _f(Ue) : Qd(Ue));
81525
81525
  }
81526
- var Se = {
81526
+ var Ce = {
81527
81527
  51: ["FALSE", 0],
81528
81528
  52: ["TRUE", 0],
81529
81529
  70: ["LEN", 1],
@@ -81622,13 +81622,13 @@ var S_e = /* @__PURE__ */ (function() {
81622
81622
  default:
81623
81623
  if (an < 32 && te[an])
81624
81624
  $n = ye.pop(), ne = ye.pop(), ye.push(ne + te[an] + $n);
81625
- else if (Se[an]) {
81626
- if (Qe = Se[an][1], Qe == 69 && (Qe = ce[ce.l++]), Qe > ye.length) {
81625
+ else if (Ce[an]) {
81626
+ if (Qe = Ce[an][1], Qe == 69 && (Qe = ce[ce.l++]), Qe > ye.length) {
81627
81627
  console.error("WK1 bad formula parse 0x" + an.toString(16) + ":|" + ye.join("|") + "|");
81628
81628
  return;
81629
81629
  }
81630
81630
  var We = ye.slice(-Qe);
81631
- ye.length -= Qe, ye.push(Se[an][0] + "(" + We.join(",") + ")");
81631
+ ye.length -= Qe, ye.push(Ce[an][0] + "(" + We.join(",") + ")");
81632
81632
  } else return an <= 7 ? console.error("WK1 invalid opcode " + an.toString(16)) : an <= 24 ? console.error("WK1 unsupported op " + an.toString(16)) : an <= 30 ? console.error("WK1 invalid opcode " + an.toString(16)) : an <= 115 ? console.error("WK1 unsupported function opcode " + an.toString(16)) : console.error("WK1 unrecognized opcode " + an.toString(16));
81633
81633
  }
81634
81634
  }
@@ -83448,7 +83448,7 @@ function SA(r, t, s, a, c) {
83448
83448
  { s: { c: 0, r: 0 } }
83449
83449
  ), b = [], x, C, T, R = 0, M = 0, L, q = "";
83450
83450
  if (!r[0] || !r[0][0]) return "";
83451
- for (var Z = -1, Y = "", ue = 0, Se = r[0].length; ue < Se; ++ue) {
83451
+ for (var Z = -1, Y = "", ue = 0, Ce = r[0].length; ue < Ce; ++ue) {
83452
83452
  var te = r[0][ue];
83453
83453
  switch (te[0]) {
83454
83454
  case "PtgUminus":
@@ -85074,8 +85074,8 @@ function i3e(r, t, s, a) {
85074
85074
  for (R = h.s.r; R <= h.e.r; ++R) {
85075
85075
  for (f = [], C = Qd(R), M = h.s.c; M <= h.e.c; ++M) {
85076
85076
  x = T[M] + C;
85077
- var Se = q ? (r[R] || [])[M] : r[x];
85078
- Se !== void 0 && (b = r3e(Se, x, r, t)) != null && f.push(b);
85077
+ var Ce = q ? (r[R] || [])[M] : r[x];
85078
+ Ce !== void 0 && (b = r3e(Ce, x, r, t)) != null && f.push(b);
85079
85079
  }
85080
85080
  (f.length > 0 || L && L[R]) && (Z = { r: C }, L && L[R] && (Y = L[R], Y.hidden && (Z.hidden = 1), ue = -1, Y.hpx ? ue = mz(Y.hpx) : Y.hpt && (ue = Y.hpt), ue > -1 && (Z.ht = ue, Z.customHeight = 1), Y.level && (Z.outlineLevel = Y.level)), c[c.length] = $s("row", f.join(""), Z));
85081
85081
  }
@@ -85885,8 +85885,8 @@ function JEe(r, t, s, a) {
85885
85885
  var c = pl(r["!ref"]), f = r["!merges"] || [], h = 0, b = [];
85886
85886
  r["!cols"] && r["!cols"].forEach(function(Y, ue) {
85887
85887
  fse(Y);
85888
- var Se = !!Y.width, te = Hz(ue, Y), De = { "ss:Index": ue + 1 };
85889
- Se && (De["ss:Width"] = fz(te.width)), Y.hidden && (De["ss:Hidden"] = "1"), b.push($s("Column", null, De));
85888
+ var Ce = !!Y.width, te = Hz(ue, Y), De = { "ss:Index": ue + 1 };
85889
+ Ce && (De["ss:Width"] = fz(te.width)), Y.hidden && (De["ss:Hidden"] = "1"), b.push($s("Column", null, De));
85890
85890
  });
85891
85891
  for (var x = Array.isArray(r), C = c.s.r; C <= c.e.r; ++C) {
85892
85892
  for (var T = [KEe(C, (r["!rows"] || [])[C])], R = c.s.c; R <= c.e.c; ++R) {
@@ -90200,8 +90200,8 @@ function vAe(r, t, s) {
90200
90200
  ue && (bAe(a, ue, Z, Y, t), C && ue.l && f["!links"].push([T, ue.l]));
90201
90201
  }
90202
90202
  }
90203
- var Se = b.CodeName || b.name || c;
90204
- return C && Rs(a, 574, s_e((h.Views || [])[0])), C && (f["!merges"] || []).length && Rs(a, 229, m_e(f["!merges"])), C && gAe(a, f), Rs(a, 442, Efe(Se)), C && hAe(a, f), Rs(
90203
+ var Ce = b.CodeName || b.name || c;
90204
+ return C && Rs(a, 574, s_e((h.Views || [])[0])), C && (f["!merges"] || []).length && Rs(a, 229, m_e(f["!merges"])), C && gAe(a, f), Rs(a, 442, Efe(Ce)), C && hAe(a, f), Rs(
90205
90205
  a,
90206
90206
  10
90207
90207
  /* EOF */
@@ -90256,10 +90256,10 @@ function yAe(r, t, s) {
90256
90256
  var ue = f[Z] || {};
90257
90257
  Rs(L, 133, e_e({ pos: Y, hs: ue.Hidden || 0, dt: 0, name: r.SheetNames[Z] }, s)), Y += t[Z].length;
90258
90258
  }
90259
- var Se = L.end();
90260
- if (q != Se.length) throw new Error("BS8 " + q + " != " + Se.length);
90259
+ var Ce = L.end();
90260
+ if (q != Ce.length) throw new Error("BS8 " + q + " != " + Ce.length);
90261
90261
  var te = [];
90262
- return T.length && te.push(T), Se.length && te.push(Se), M.length && te.push(M), Bd(te);
90262
+ return T.length && te.push(T), Ce.length && te.push(Ce), M.length && te.push(M), Bd(te);
90263
90263
  }
90264
90264
  function OAe(r, t) {
90265
90265
  var s = t || {}, a = [];
@@ -90331,7 +90331,7 @@ function she(r, t, s) {
90331
90331
  var T = ig(r["!ref"]);
90332
90332
  C.s.r = Math.min(C.s.r, T.s.r), C.s.c = Math.min(C.s.c, T.s.c), C.e.r = Math.max(C.e.r, T.e.r), C.e.c = Math.max(C.e.c, T.e.c), c == -1 && (C.e.r = c = T.e.r + 1);
90333
90333
  }
90334
- var R = [], M = 0, L = r["!rows"] || (r["!rows"] = []), q = 0, Z = 0, Y = 0, ue = 0, Se = 0, te = 0;
90334
+ var R = [], M = 0, L = r["!rows"] || (r["!rows"] = []), q = 0, Z = 0, Y = 0, ue = 0, Ce = 0, te = 0;
90335
90335
  for (r["!cols"] || (r["!cols"] = []); q < b.length && Z < x; ++q) {
90336
90336
  var De = b[q];
90337
90337
  if (Ple(De)) {
@@ -90347,7 +90347,7 @@ function she(r, t, s) {
90347
90347
  var at = R[M];
90348
90348
  at.s.c == ue + f && at.s.r < Z + c && Z + c <= at.e.r && (ue = at.e.c + 1 - f, M = -1);
90349
90349
  }
90350
- te = +ot.getAttribute("colspan") || 1, ((Se = +ot.getAttribute("rowspan") || 1) > 1 || te > 1) && R.push({ s: { r: Z + c, c: ue + f }, e: { r: Z + c + (Se || 1) - 1, c: ue + f + (te || 1) - 1 } });
90350
+ te = +ot.getAttribute("colspan") || 1, ((Ce = +ot.getAttribute("rowspan") || 1) > 1 || te > 1) && R.push({ s: { r: Z + c, c: ue + f }, e: { r: Z + c + (Ce || 1) - 1, c: ue + f + (te || 1) - 1 } });
90351
90351
  var wt = { t: "s", v: G }, Me = ot.getAttribute("data-t") || ot.getAttribute("t") || "";
90352
90352
  G != null && (G.length == 0 ? wt.t = Me || "z" : a.raw || G.trim().length == 0 || Me == "s" || (G === "TRUE" ? wt = { t: "b", v: !0 } : G === "FALSE" ? wt = { t: "b", v: !1 } : isNaN(Dy(G)) ? isNaN(fM(G).getDate()) || (wt = { t: "d", v: ah(G) }, a.cellDates || (wt = { t: "n", v: am(wt.v) }), wt.z = a.dateNF || bc[14]) : wt = { t: "n", v: Dy(G) })), wt.z === void 0 && rt != null && (wt.z = rt);
90353
90353
  var fe = "", Kt = ot.getElementsByTagName("A");
@@ -90423,10 +90423,10 @@ var TAe = /* @__PURE__ */ (function() {
90423
90423
  for (Z = Y[C] ? ' table:style-name="ro' + Y[C].ods + '"' : "", x.push(" <table:table-row" + Z + `>
90424
90424
  `), T = 0; T < R.s.c; ++T) x.push(t);
90425
90425
  for (; T <= R.e.c; ++T) {
90426
- var ue = !1, Se = {}, te = "";
90426
+ var ue = !1, Ce = {}, te = "";
90427
90427
  for (L = 0; L != M.length; ++L)
90428
90428
  if (!(M[L].s.c > T) && !(M[L].s.r > C) && !(M[L].e.c < T) && !(M[L].e.r < C)) {
90429
- (M[L].s.c != T || M[L].s.r != C) && (ue = !0), Se["table:number-columns-spanned"] = M[L].e.c - M[L].s.c + 1, Se["table:number-rows-spanned"] = M[L].e.r - M[L].s.r + 1;
90429
+ (M[L].s.c != T || M[L].s.r != C) && (ue = !0), Ce["table:number-columns-spanned"] = M[L].e.c - M[L].s.c + 1, Ce["table:number-rows-spanned"] = M[L].e.r - M[L].s.r + 1;
90430
90430
  break;
90431
90431
  }
90432
90432
  if (ue) {
@@ -90434,9 +90434,9 @@ var TAe = /* @__PURE__ */ (function() {
90434
90434
  continue;
90435
90435
  }
90436
90436
  var De = wa({ r: C, c: T }), Ct = q ? (f[C] || [])[T] : f[De];
90437
- if (Ct && Ct.f && (Se["table:formula"] = xa(X4e(Ct.f)), Ct.F && Ct.F.slice(0, De.length) == De)) {
90437
+ if (Ct && Ct.f && (Ce["table:formula"] = xa(X4e(Ct.f)), Ct.F && Ct.F.slice(0, De.length) == De)) {
90438
90438
  var ot = ig(Ct.F);
90439
- Se["table:number-matrix-columns-spanned"] = ot.e.c - ot.s.c + 1, Se["table:number-matrix-rows-spanned"] = ot.e.r - ot.s.r + 1;
90439
+ Ce["table:number-matrix-columns-spanned"] = ot.e.c - ot.s.c + 1, Ce["table:number-matrix-rows-spanned"] = ot.e.r - ot.s.r + 1;
90440
90440
  }
90441
90441
  if (!Ct) {
90442
90442
  x.push(t);
@@ -90444,17 +90444,17 @@ var TAe = /* @__PURE__ */ (function() {
90444
90444
  }
90445
90445
  switch (Ct.t) {
90446
90446
  case "b":
90447
- te = Ct.v ? "TRUE" : "FALSE", Se["office:value-type"] = "boolean", Se["office:boolean-value"] = Ct.v ? "true" : "false";
90447
+ te = Ct.v ? "TRUE" : "FALSE", Ce["office:value-type"] = "boolean", Ce["office:boolean-value"] = Ct.v ? "true" : "false";
90448
90448
  break;
90449
90449
  case "n":
90450
- te = Ct.w || String(Ct.v || 0), Se["office:value-type"] = "float", Se["office:value"] = Ct.v || 0;
90450
+ te = Ct.w || String(Ct.v || 0), Ce["office:value-type"] = "float", Ce["office:value"] = Ct.v || 0;
90451
90451
  break;
90452
90452
  case "s":
90453
90453
  case "str":
90454
- te = Ct.v == null ? "" : Ct.v, Se["office:value-type"] = "string";
90454
+ te = Ct.v == null ? "" : Ct.v, Ce["office:value-type"] = "string";
90455
90455
  break;
90456
90456
  case "d":
90457
- te = Ct.w || ah(Ct.v).toISOString(), Se["office:value-type"] = "date", Se["office:date-value"] = ah(Ct.v).toISOString(), Se["table:style-name"] = "ce1";
90457
+ te = Ct.w || ah(Ct.v).toISOString(), Ce["office:value-type"] = "date", Ce["office:date-value"] = ah(Ct.v).toISOString(), Ce["table:style-name"] = "ce1";
90458
90458
  break;
90459
90459
  //case 'e':
90460
90460
  default:
@@ -90466,7 +90466,7 @@ var TAe = /* @__PURE__ */ (function() {
90466
90466
  var rt = Ct.l.Target;
90467
90467
  rt = rt.charAt(0) == "#" ? "#" + q4e(rt.slice(1)) : rt, rt.charAt(0) != "#" && !rt.match(/^\w+:/) && (rt = "../" + rt), G = $s("text:a", G, { "xlink:href": rt.replace(/&/g, "&amp;") });
90468
90468
  }
90469
- x.push(" " + $s("table:table-cell", $s("text:p", G, {}), Se) + `
90469
+ x.push(" " + $s("table:table-cell", $s("text:p", G, {}), Ce) + `
90470
90470
  `);
90471
90471
  }
90472
90472
  x.push(` </table:table-row>
@@ -90912,11 +90912,11 @@ function RAe(r, t) {
90912
90912
  var ue = $u(L.messages[0].data);
90913
90913
  {
90914
90914
  ue[6][0].data = ya(a.e.r + 1), ue[7][0].data = ya(a.e.c + 1);
90915
- var Se = h2(ue[46][0].data), te = Aa.find(C, b[Se].location), De = vp(yp(te.content));
90915
+ var Ce = h2(ue[46][0].data), te = Aa.find(C, b[Ce].location), De = vp(yp(te.content));
90916
90916
  {
90917
- for (var Ct = 0; Ct < De.length && De[Ct].id != Se; ++Ct)
90917
+ for (var Ct = 0; Ct < De.length && De[Ct].id != Ce; ++Ct)
90918
90918
  ;
90919
- if (De[Ct].id != Se)
90919
+ if (De[Ct].id != Ce)
90920
90920
  throw "Bad ColumnRowUIDMapArchive";
90921
90921
  var ot = $u(De[Ct].messages[0].data);
90922
90922
  ot[1] = [], ot[2] = [], ot[3] = [];
@@ -91079,8 +91079,8 @@ function FAe(r, t) {
91079
91079
  var q = M["!comments"], Z = !1, Y = "";
91080
91080
  if (q && q.length > 0) {
91081
91081
  var ue = !1;
91082
- q.forEach(function(Se) {
91083
- Se[1].forEach(function(te) {
91082
+ q.forEach(function(Ce) {
91083
+ Ce[1].forEach(function(te) {
91084
91084
  te.T == !0 && (ue = !0);
91085
91085
  });
91086
91086
  }), ue && (Y = "xl/threadedComments/threadedComment" + b + "." + s, Hr(f, Y, mTe(q, T, t)), c.threadedcomments.push(Y), Oa(R, -1, "../threadedComments/threadedComment" + b + "." + s, Fi.TCMNT)), Y = "xl/comments" + b + "." + s, Hr(f, Y, Qfe(q)), c.comments.push(Y), Oa(R, -1, "../comments" + b + "." + s, Fi.CMNT), Z = !0;
@@ -91362,20 +91362,20 @@ function pz(r, t) {
91362
91362
  x = T;
91363
91363
  }
91364
91364
  a > 0 && (c = 0);
91365
- var R = Qd(x.s.r), M = [], L = [], q = 0, Z = 0, Y = Array.isArray(r), ue = x.s.r, Se = 0, te = {};
91365
+ var R = Qd(x.s.r), M = [], L = [], q = 0, Z = 0, Y = Array.isArray(r), ue = x.s.r, Ce = 0, te = {};
91366
91366
  Y && !r[ue] && (r[ue] = []);
91367
91367
  var De = C.skipHidden && r["!cols"] || [], Ct = C.skipHidden && r["!rows"] || [];
91368
- for (Se = x.s.c; Se <= x.e.c; ++Se)
91369
- if (!(De[Se] || {}).hidden)
91370
- switch (M[Se] = _f(Se), s = Y ? r[ue][Se] : r[M[Se] + R], a) {
91368
+ for (Ce = x.s.c; Ce <= x.e.c; ++Ce)
91369
+ if (!(De[Ce] || {}).hidden)
91370
+ switch (M[Ce] = _f(Ce), s = Y ? r[ue][Ce] : r[M[Ce] + R], a) {
91371
91371
  case 1:
91372
- f[Se] = Se - x.s.c;
91372
+ f[Ce] = Ce - x.s.c;
91373
91373
  break;
91374
91374
  case 2:
91375
- f[Se] = M[Se];
91375
+ f[Ce] = M[Ce];
91376
91376
  break;
91377
91377
  case 3:
91378
- f[Se] = C.header[Se - x.s.c];
91378
+ f[Ce] = C.header[Ce - x.s.c];
91379
91379
  break;
91380
91380
  default:
91381
91381
  if (s == null && (s = { w: "__EMPTY", t: "s" }), b = h = By(s, null, C), Z = te[h] || 0, !Z) te[h] = 1;
@@ -91385,7 +91385,7 @@ function pz(r, t) {
91385
91385
  while (te[b]);
91386
91386
  te[h] = Z, te[b] = 1;
91387
91387
  }
91388
- f[Se] = b;
91388
+ f[Ce] = b;
91389
91389
  }
91390
91390
  for (ue = x.s.r + c; ue <= x.e.r; ++ue)
91391
91391
  if (!(Ct[ue] || {}).hidden) {
@@ -91474,8 +91474,8 @@ function che(r, t, s) {
91474
91474
  t.forEach(function(Z, Y) {
91475
91475
  Hd(Z).forEach(function(ue) {
91476
91476
  (L = M.indexOf(ue)) == -1 && (M[L = M.length] = ue);
91477
- var Se = Z[ue], te = "z", De = "", Ct = wa({ c: b + L, r: h + Y + c });
91478
- C = pM(f, Ct), Se && typeof Se == "object" && !(Se instanceof Date) ? f[Ct] = Se : (typeof Se == "number" ? te = "n" : typeof Se == "boolean" ? te = "b" : typeof Se == "string" ? te = "s" : Se instanceof Date ? (te = "d", a.cellDates || (te = "n", Se = am(Se)), De = a.dateNF || bc[14]) : Se === null && a.nullError && (te = "e", Se = 0), C ? (C.t = te, C.v = Se, delete C.w, delete C.R, De && (C.z = De)) : f[Ct] = C = { t: te, v: Se }, De && (C.z = De));
91477
+ var Ce = Z[ue], te = "z", De = "", Ct = wa({ c: b + L, r: h + Y + c });
91478
+ C = pM(f, Ct), Ce && typeof Ce == "object" && !(Ce instanceof Date) ? f[Ct] = Ce : (typeof Ce == "number" ? te = "n" : typeof Ce == "boolean" ? te = "b" : typeof Ce == "string" ? te = "s" : Ce instanceof Date ? (te = "d", a.cellDates || (te = "n", Ce = am(Ce)), De = a.dateNF || bc[14]) : Ce === null && a.nullError && (te = "e", Ce = 0), C ? (C.t = te, C.v = Ce, delete C.w, delete C.R, De && (C.z = De)) : f[Ct] = C = { t: te, v: Ce }, De && (C.z = De));
91479
91479
  });
91480
91480
  }), T.e.c = Math.max(T.e.c, b + M.length - 1);
91481
91481
  var q = Qd(h);
@@ -91658,34 +91658,32 @@ class n5e {
91658
91658
  s.settings.closeCallback(), s.removeCanvasImg();
91659
91659
  return;
91660
91660
  }
91661
- var x = "__gl_print_wrap__", C = "__gl_print_style__";
91662
91661
  try {
91663
- let Z = function() {
91664
- clearTimeout(q), window.removeEventListener("afterprint", Y);
91665
- var ue = document.getElementById(x), Se = document.getElementById(C);
91666
- ue && ue.remove(), Se && Se.remove();
91667
- try {
91668
- a.remove();
91669
- } catch {
91662
+ let L = function() {
91663
+ if (!R) {
91664
+ for (R = !0, clearTimeout(M), window.removeEventListener("afterprint", L); document.body.firstChild; )
91665
+ document.body.removeChild(document.body.firstChild);
91666
+ document.body.appendChild(T);
91667
+ try {
91668
+ a.remove();
91669
+ } catch {
91670
+ }
91671
+ s.settings.closeCallback(), s.removeCanvasImg();
91670
91672
  }
91671
- s.settings.closeCallback(), s.removeCanvasImg();
91672
- }, Y = function() {
91673
- Z();
91674
91673
  };
91675
- var T = a.contentDocument || a.contentWindow.document, R = "";
91676
- T.querySelectorAll("style").forEach(function(ue) {
91677
- R += ue.textContent;
91674
+ var x = a.contentDocument || a.contentWindow.document, C = document.createElement("div");
91675
+ x.body.childNodes.forEach(function(q) {
91676
+ C.appendChild(document.importNode(q, !0));
91678
91677
  });
91679
- var M = document.createElement("div");
91680
- M.id = x, T.body.childNodes.forEach(function(ue) {
91681
- M.appendChild(document.importNode(ue, !0));
91682
- }), document.body.appendChild(M);
91683
- var L = document.createElement("style");
91684
- L.id = C, L.textContent = R + "@media print{body *{visibility:hidden!important}#" + x + ",#" + x + " *{visibility:visible!important}#" + x + "{position:absolute!important;left:0!important;top:0!important;width:100%!important}}", document.head.appendChild(L), window.addEventListener("afterprint", Y);
91685
- var q = setTimeout(Z, 6e4);
91678
+ for (var T = document.createDocumentFragment(); document.body.firstChild; )
91679
+ T.appendChild(document.body.firstChild);
91680
+ document.body.appendChild(C);
91681
+ var R = !1;
91682
+ window.addEventListener("afterprint", L);
91683
+ var M = setTimeout(L, 6e4);
91686
91684
  window.print();
91687
- } catch (Z) {
91688
- console.error("Print error:", Z);
91685
+ } catch (L) {
91686
+ console.error("Print error:", L);
91689
91687
  try {
91690
91688
  a.remove();
91691
91689
  } catch {
@@ -92477,13 +92475,13 @@ function N5e(r, t, s, a, c, f) {
92477
92475
  class: "w-4 h-4 rounded-sm"
92478
92476
  }, null, 40, $5e)
92479
92477
  ])) : Rt("", !0),
92480
- (Fe(!0), He(so, null, Nr(f.visibleColumns, (ue, Se) => (Fe(), He("td", {
92478
+ (Fe(!0), He(so, null, Nr(f.visibleColumns, (ue, Ce) => (Fe(), He("td", {
92481
92479
  style: Rle(ue?.style),
92482
- key: Se,
92480
+ key: Ce,
92483
92481
  "data-label": ue.field_label,
92484
92482
  class: Cn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none print:before:content-none! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border! dark:border-gray-700", {
92485
92483
  /* 'rounded-t-lg lg:rounded-t-none': colIndex === 0,*/
92486
- "rounded-b-lg lg:rounded-b-none!": Se === s.columns.length - 1
92484
+ "rounded-b-lg lg:rounded-b-none!": Ce === s.columns.length - 1
92487
92485
  }])
92488
92486
  }, [
92489
92487
  U("div", {