@qualityunit/liveagent-components-editor 0.0.25 → 0.0.27

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.
@@ -119,7 +119,7 @@ let Fi = [];
119
119
  const yr = [], Xp = /* @__PURE__ */ Promise.resolve();
120
120
  let kr = !1;
121
121
  function e1() {
122
- kr || (kr = !0, Xp.then(Ke));
122
+ kr || (kr = !0, Xp.then(Ue));
123
123
  }
124
124
  function Cr(n) {
125
125
  Fi.push(n);
@@ -129,7 +129,7 @@ function KV(n) {
129
129
  }
130
130
  const Vo = /* @__PURE__ */ new Set();
131
131
  let bi = 0;
132
- function Ke() {
132
+ function Ue() {
133
133
  if (bi !== 0)
134
134
  return;
135
135
  const n = Sn;
@@ -247,7 +247,7 @@ function a1(n, e, t, i, s, o, r = null, a = [-1]) {
247
247
  c.fragment && c.fragment.l(d), d.forEach(_a);
248
248
  } else
249
249
  c.fragment && c.fragment.c();
250
- e.intro && n1(n.$$.fragment), s1(n, e.target, e.anchor), Ke();
250
+ e.intro && n1(n.$$.fragment), s1(n, e.target, e.anchor), Ue();
251
251
  }
252
252
  bn(l);
253
253
  }
@@ -676,10 +676,10 @@ function _n(n, e, t) {
676
676
  function h(p) {
677
677
  const _ = (d[p - 1] !== void 0 ? d[p - 1] : -1) + 1, y = d[p + 1] !== void 0 ? d[p + 1] : -1, T = _ > y ? -1 : 1;
678
678
  u[p + T] && (u[p] = u[p + T].slice(0)), u[p] || (u[p] = []), u[p].push(_ > y ? o : r);
679
- let k = Math.max(_, y), M = k - p;
680
- for (; M < a && k < l && t(n[M], e[k]); )
681
- M++, k++, u[p].push("equal");
682
- return k;
679
+ let D = Math.max(_, y), k = D - p;
680
+ for (; k < a && D < l && t(n[k], e[D]); )
681
+ k++, D++, u[p].push("equal");
682
+ return D;
683
683
  }
684
684
  let f = 0, m;
685
685
  do {
@@ -719,7 +719,7 @@ class kt {
719
719
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
720
720
  */
721
721
  const ke = new Array(256).fill("").map((n, e) => ("0" + e.toString(16)).slice(-2));
722
- function We() {
722
+ function qe() {
723
723
  const n = Math.random() * 4294967296 >>> 0, e = Math.random() * 4294967296 >>> 0, t = Math.random() * 4294967296 >>> 0, i = Math.random() * 4294967296 >>> 0;
724
724
  return "e" + ke[n >> 0 & 255] + ke[n >> 8 & 255] + ke[n >> 16 & 255] + ke[n >> 24 & 255] + ke[e >> 0 & 255] + ke[e >> 8 & 255] + ke[e >> 16 & 255] + ke[e >> 24 & 255] + ke[t >> 0 & 255] + ke[t >> 8 & 255] + ke[t >> 16 & 255] + ke[t >> 24 & 255] + ke[i >> 0 & 255] + ke[i >> 8 & 255] + ke[i >> 16 & 255] + ke[i >> 24 & 255];
725
725
  }
@@ -959,7 +959,7 @@ function S1(n, e) {
959
959
  return t && t[e] ? t[e].emitter : null;
960
960
  }
961
961
  function yh(n, e) {
962
- n[Er] || (n[Er] = e || We());
962
+ n[Er] || (n[Er] = e || qe());
963
963
  }
964
964
  function Mo(n) {
965
965
  return n[Er];
@@ -1036,12 +1036,12 @@ var D1 = "[object Null]", N1 = "[object Undefined]", Cl = ct ? ct.toStringTag :
1036
1036
  function Bt(n) {
1037
1037
  return n == null ? n === void 0 ? N1 : D1 : Cl && Cl in Object(n) ? L1(n) : F1(n);
1038
1038
  }
1039
- function qe(n) {
1039
+ function je(n) {
1040
1040
  return n != null && typeof n == "object";
1041
1041
  }
1042
1042
  var $1 = "[object Symbol]";
1043
1043
  function fo(n) {
1044
- return typeof n == "symbol" || qe(n) && Bt(n) == $1;
1044
+ return typeof n == "symbol" || je(n) && Bt(n) == $1;
1045
1045
  }
1046
1046
  function z1(n, e) {
1047
1047
  for (var t = -1, i = n == null ? 0 : n.length, s = Array(i); ++t < i; )
@@ -1069,7 +1069,7 @@ var q1 = /^\s+/;
1069
1069
  function j1(n) {
1070
1070
  return n && n.slice(0, W1(n) + 1).replace(q1, "");
1071
1071
  }
1072
- function X(n) {
1072
+ function ee(n) {
1073
1073
  var e = typeof n;
1074
1074
  return n != null && (e == "object" || e == "function");
1075
1075
  }
@@ -1079,9 +1079,9 @@ function Sl(n) {
1079
1079
  return n;
1080
1080
  if (fo(n))
1081
1081
  return Al;
1082
- if (X(n)) {
1082
+ if (ee(n)) {
1083
1083
  var e = typeof n.valueOf == "function" ? n.valueOf() : n;
1084
- n = X(e) ? e + "" : e;
1084
+ n = ee(e) ? e + "" : e;
1085
1085
  }
1086
1086
  if (typeof n != "string")
1087
1087
  return n === 0 ? n : +n;
@@ -1094,7 +1094,7 @@ function Vt(n) {
1094
1094
  }
1095
1095
  var Y1 = "[object AsyncFunction]", Q1 = "[object Function]", X1 = "[object GeneratorFunction]", e0 = "[object Proxy]";
1096
1096
  function ti(n) {
1097
- if (!X(n))
1097
+ if (!ee(n))
1098
1098
  return !1;
1099
1099
  var e = Bt(n);
1100
1100
  return e == Q1 || e == X1 || e == Y1 || e == e0;
@@ -1124,7 +1124,7 @@ var s0 = /[\\^$.*+?()[\]{}|]/g, o0 = /^\[object .+?Constructor\]$/, r0 = Functio
1124
1124
  "^" + l0.call(c0).replace(s0, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1125
1125
  );
1126
1126
  function d0(n) {
1127
- if (!X(n) || t0(n))
1127
+ if (!ee(n) || t0(n))
1128
1128
  return !1;
1129
1129
  var e = ti(n) ? u0 : o0;
1130
1130
  return e.test(li(n));
@@ -1140,7 +1140,7 @@ var Ar = ci(nt, "WeakMap"), Il = Object.create, f0 = /* @__PURE__ */ function()
1140
1140
  function n() {
1141
1141
  }
1142
1142
  return function(e) {
1143
- if (!X(e))
1143
+ if (!ee(e))
1144
1144
  return {};
1145
1145
  if (Il)
1146
1146
  return Il(e);
@@ -1259,7 +1259,7 @@ function po(n) {
1259
1259
  return n != null && Ca(n.length) && !ti(n);
1260
1260
  }
1261
1261
  function R0(n, e, t) {
1262
- if (!X(t))
1262
+ if (!ee(t))
1263
1263
  return !1;
1264
1264
  var i = typeof e;
1265
1265
  return (i == "number" ? po(t) && mo(e, t.length) : i == "string" && e in t) ? Yn(t[e], n) : !1;
@@ -1286,12 +1286,12 @@ function M0(n, e) {
1286
1286
  }
1287
1287
  var L0 = "[object Arguments]";
1288
1288
  function Rl(n) {
1289
- return qe(n) && Bt(n) == L0;
1289
+ return je(n) && Bt(n) == L0;
1290
1290
  }
1291
1291
  var xh = Object.prototype, O0 = xh.hasOwnProperty, B0 = xh.propertyIsEnumerable, $s = Rl(/* @__PURE__ */ function() {
1292
1292
  return arguments;
1293
1293
  }()) ? Rl : function(n) {
1294
- return qe(n) && O0.call(n, "callee") && !B0.call(n, "callee");
1294
+ return je(n) && O0.call(n, "callee") && !B0.call(n, "callee");
1295
1295
  };
1296
1296
  function F0() {
1297
1297
  return !1;
@@ -1300,7 +1300,7 @@ var Ih = typeof exports == "object" && exports && !exports.nodeType && exports,
1300
1300
  te[tw] = te[iw] = te[nw] = te[sw] = te[ow] = te[rw] = te[aw] = te[lw] = te[cw] = !0;
1301
1301
  te[$0] = te[z0] = te[X0] = te[H0] = te[ew] = te[U0] = te[W0] = te[q0] = te[j0] = te[G0] = te[K0] = te[Z0] = te[J0] = te[Y0] = te[Q0] = !1;
1302
1302
  function uw(n) {
1303
- return qe(n) && Ca(n.length) && !!te[Bt(n)];
1303
+ return je(n) && Ca(n.length) && !!te[Bt(n)];
1304
1304
  }
1305
1305
  function Aa(n) {
1306
1306
  return function(e) {
@@ -1350,7 +1350,7 @@ function bw(n) {
1350
1350
  }
1351
1351
  var _w = Object.prototype, vw = _w.hasOwnProperty;
1352
1352
  function yw(n) {
1353
- if (!X(n))
1353
+ if (!ee(n))
1354
1354
  return bw(n);
1355
1355
  var e = Ta(n), t = [];
1356
1356
  for (var i in n)
@@ -1547,7 +1547,7 @@ function Lh(n, e) {
1547
1547
  }
1548
1548
  var Ra = Vh(Object.getPrototypeOf, Object), tb = "[object Object]", ib = Function.prototype, nb = Object.prototype, Oh = ib.toString, sb = nb.hasOwnProperty, ob = Oh.call(Object);
1549
1549
  function Se(n) {
1550
- if (!qe(n) || Bt(n) != tb)
1550
+ if (!je(n) || Bt(n) != tb)
1551
1551
  return !1;
1552
1552
  var e = Ra(n);
1553
1553
  if (e === null)
@@ -1995,20 +1995,20 @@ function df(n) {
1995
1995
  }
1996
1996
  var pv = "[object Map]";
1997
1997
  function wv(n) {
1998
- return qe(n) && Vn(n) == pv;
1998
+ return je(n) && Vn(n) == pv;
1999
1999
  }
2000
2000
  var Jl = $i && $i.isMap, bv = Jl ? Aa(Jl) : wv, _v = "[object Set]";
2001
2001
  function vv(n) {
2002
- return qe(n) && Vn(n) == _v;
2002
+ return je(n) && Vn(n) == _v;
2003
2003
  }
2004
- var Yl = $i && $i.isSet, yv = Yl ? Aa(Yl) : vv, kv = 1, Cv = 2, Ev = 4, hf = "[object Arguments]", Tv = "[object Array]", Av = "[object Boolean]", Sv = "[object Date]", xv = "[object Error]", ff = "[object Function]", Iv = "[object GeneratorFunction]", Pv = "[object Map]", Rv = "[object Number]", mf = "[object Object]", Vv = "[object RegExp]", Mv = "[object Set]", Lv = "[object String]", Ov = "[object Symbol]", Bv = "[object WeakMap]", Fv = "[object ArrayBuffer]", Dv = "[object DataView]", Nv = "[object Float32Array]", $v = "[object Float64Array]", zv = "[object Int8Array]", Hv = "[object Int16Array]", Uv = "[object Int32Array]", Wv = "[object Uint8Array]", qv = "[object Uint8ClampedArray]", jv = "[object Uint16Array]", Gv = "[object Uint32Array]", Y = {};
2005
- Y[hf] = Y[Tv] = Y[Fv] = Y[Dv] = Y[Av] = Y[Sv] = Y[Nv] = Y[$v] = Y[zv] = Y[Hv] = Y[Uv] = Y[Pv] = Y[Rv] = Y[mf] = Y[Vv] = Y[Mv] = Y[Lv] = Y[Ov] = Y[Wv] = Y[qv] = Y[jv] = Y[Gv] = !0;
2006
- Y[xv] = Y[ff] = Y[Bv] = !1;
2004
+ var Yl = $i && $i.isSet, yv = Yl ? Aa(Yl) : vv, kv = 1, Cv = 2, Ev = 4, hf = "[object Arguments]", Tv = "[object Array]", Av = "[object Boolean]", Sv = "[object Date]", xv = "[object Error]", ff = "[object Function]", Iv = "[object GeneratorFunction]", Pv = "[object Map]", Rv = "[object Number]", mf = "[object Object]", Vv = "[object RegExp]", Mv = "[object Set]", Lv = "[object String]", Ov = "[object Symbol]", Bv = "[object WeakMap]", Fv = "[object ArrayBuffer]", Dv = "[object DataView]", Nv = "[object Float32Array]", $v = "[object Float64Array]", zv = "[object Int8Array]", Hv = "[object Int16Array]", Uv = "[object Int32Array]", Wv = "[object Uint8Array]", qv = "[object Uint8ClampedArray]", jv = "[object Uint16Array]", Gv = "[object Uint32Array]", Q = {};
2005
+ Q[hf] = Q[Tv] = Q[Fv] = Q[Dv] = Q[Av] = Q[Sv] = Q[Nv] = Q[$v] = Q[zv] = Q[Hv] = Q[Uv] = Q[Pv] = Q[Rv] = Q[mf] = Q[Vv] = Q[Mv] = Q[Lv] = Q[Ov] = Q[Wv] = Q[qv] = Q[jv] = Q[Gv] = !0;
2006
+ Q[xv] = Q[ff] = Q[Bv] = !1;
2007
2007
  function Di(n, e, t, i, s, o) {
2008
2008
  var r, a = e & kv, l = e & Cv, c = e & Ev;
2009
2009
  if (t && (r = s ? t(n, i, s, o) : t(n)), r !== void 0)
2010
2010
  return r;
2011
- if (!X(n))
2011
+ if (!ee(n))
2012
2012
  return n;
2013
2013
  var u = De(n);
2014
2014
  if (u) {
@@ -2022,7 +2022,7 @@ function Di(n, e, t, i, s, o) {
2022
2022
  if (r = l || h ? {} : df(n), !a)
2023
2023
  return l ? O_(n, x_(r, n)) : M_(n, S_(r, n));
2024
2024
  } else {
2025
- if (!Y[d])
2025
+ if (!Q[d])
2026
2026
  return s ? n : {};
2027
2027
  r = gv(n, d, a);
2028
2028
  }
@@ -2177,16 +2177,16 @@ function Ty(n, e, t, i, s, o) {
2177
2177
  h = a[d];
2178
2178
  var y = n[h], T = e[h];
2179
2179
  if (i)
2180
- var k = r ? i(T, y, h, e, n, o) : i(y, T, h, n, e, o);
2181
- if (!(k === void 0 ? y === T || s(y, T, t, i, o) : k)) {
2180
+ var D = r ? i(T, y, h, e, n, o) : i(y, T, h, n, e, o);
2181
+ if (!(D === void 0 ? y === T || s(y, T, t, i, o) : D)) {
2182
2182
  p = !1;
2183
2183
  break;
2184
2184
  }
2185
2185
  _ || (_ = h == "constructor");
2186
2186
  }
2187
2187
  if (p && !_) {
2188
- var M = n.constructor, D = e.constructor;
2189
- M != D && "constructor" in n && "constructor" in e && !(typeof M == "function" && M instanceof M && typeof D == "function" && D instanceof D) && (p = !1);
2188
+ var k = n.constructor, M = e.constructor;
2189
+ k != M && "constructor" in n && "constructor" in e && !(typeof k == "function" && k instanceof k && typeof M == "function" && M instanceof M) && (p = !1);
2190
2190
  }
2191
2191
  return o.delete(n), o.delete(e), p;
2192
2192
  }
@@ -2212,7 +2212,7 @@ function xy(n, e, t, i, s, o) {
2212
2212
  return h ? (o || (o = new Xe()), Ty(n, e, t, i, s, o)) : !1;
2213
2213
  }
2214
2214
  function es(n, e, t, i, s) {
2215
- return n === e ? !0 : n == null || e == null || !qe(n) && !qe(e) ? n !== n && e !== e : xy(n, e, t, i, es, s);
2215
+ return n === e ? !0 : n == null || e == null || !je(n) && !je(e) ? n !== n && e !== e : xy(n, e, t, i, es, s);
2216
2216
  }
2217
2217
  var Iy = 1, Py = 2;
2218
2218
  function Ry(n, e, t, i) {
@@ -2241,7 +2241,7 @@ function Ry(n, e, t, i) {
2241
2241
  return !0;
2242
2242
  }
2243
2243
  function wf(n) {
2244
- return n === n && !X(n);
2244
+ return n === n && !ee(n);
2245
2245
  }
2246
2246
  function Vy(n) {
2247
2247
  for (var e = Qn(n), t = e.length; t--; ) {
@@ -2321,40 +2321,40 @@ function zi(n, e, t) {
2321
2321
  var i, s, o, r, a, l, c = 0, u = !1, d = !1, h = !0;
2322
2322
  if (typeof n != "function")
2323
2323
  throw new TypeError(jy);
2324
- e = Sl(e) || 0, X(t) && (u = !!t.leading, d = "maxWait" in t, o = d ? Gy(Sl(t.maxWait) || 0, e) : o, h = "trailing" in t ? !!t.trailing : h);
2325
- function f(E) {
2326
- var R = i, I = s;
2327
- return i = s = void 0, c = E, r = n.apply(I, R), r;
2324
+ e = Sl(e) || 0, ee(t) && (u = !!t.leading, d = "maxWait" in t, o = d ? Gy(Sl(t.maxWait) || 0, e) : o, h = "trailing" in t ? !!t.trailing : h);
2325
+ function f(C) {
2326
+ var P = i, x = s;
2327
+ return i = s = void 0, c = C, r = n.apply(x, P), r;
2328
2328
  }
2329
- function m(E) {
2330
- return c = E, a = setTimeout(y, e), u ? f(E) : r;
2329
+ function m(C) {
2330
+ return c = C, a = setTimeout(y, e), u ? f(C) : r;
2331
2331
  }
2332
- function p(E) {
2333
- var R = E - l, I = E - c, ee = e - R;
2334
- return d ? Ky(ee, o - I) : ee;
2332
+ function p(C) {
2333
+ var P = C - l, x = C - c, Y = e - P;
2334
+ return d ? Ky(Y, o - x) : Y;
2335
2335
  }
2336
- function _(E) {
2337
- var R = E - l, I = E - c;
2338
- return l === void 0 || R >= e || R < 0 || d && I >= o;
2336
+ function _(C) {
2337
+ var P = C - l, x = C - c;
2338
+ return l === void 0 || P >= e || P < 0 || d && x >= o;
2339
2339
  }
2340
2340
  function y() {
2341
- var E = Do();
2342
- if (_(E))
2343
- return T(E);
2344
- a = setTimeout(y, p(E));
2341
+ var C = Do();
2342
+ if (_(C))
2343
+ return T(C);
2344
+ a = setTimeout(y, p(C));
2345
2345
  }
2346
- function T(E) {
2347
- return a = void 0, h && i ? f(E) : (i = s = void 0, r);
2346
+ function T(C) {
2347
+ return a = void 0, h && i ? f(C) : (i = s = void 0, r);
2348
2348
  }
2349
- function k() {
2349
+ function D() {
2350
2350
  a !== void 0 && clearTimeout(a), c = 0, i = l = s = a = void 0;
2351
2351
  }
2352
- function M() {
2352
+ function k() {
2353
2353
  return a === void 0 ? r : T(Do());
2354
2354
  }
2355
- function D() {
2356
- var E = Do(), R = _(E);
2357
- if (i = arguments, s = this, l = E, R) {
2355
+ function M() {
2356
+ var C = Do(), P = _(C);
2357
+ if (i = arguments, s = this, l = C, P) {
2358
2358
  if (a === void 0)
2359
2359
  return m(l);
2360
2360
  if (d)
@@ -2362,13 +2362,13 @@ function zi(n, e, t) {
2362
2362
  }
2363
2363
  return a === void 0 && (a = setTimeout(y, e)), r;
2364
2364
  }
2365
- return D.cancel = k, D.flush = M, D;
2365
+ return M.cancel = D, M.flush = k, M;
2366
2366
  }
2367
2367
  function Mr(n, e, t) {
2368
2368
  (t !== void 0 && !Yn(n[e], t) || t === void 0 && !(e in n)) && go(n, e, t);
2369
2369
  }
2370
2370
  function Zy(n) {
2371
- return qe(n) && po(n);
2371
+ return je(n) && po(n);
2372
2372
  }
2373
2373
  function Lr(n, e) {
2374
2374
  if (!(e === "constructor" && typeof n[e] == "function") && e != "__proto__")
@@ -2386,13 +2386,13 @@ function Yy(n, e, t, i, s, o, r) {
2386
2386
  var u = o ? o(a, l, t + "", n, e, r) : void 0, d = u === void 0;
2387
2387
  if (d) {
2388
2388
  var h = De(l), f = !h && xn(l), m = !h && !f && Sa(l);
2389
- u = l, h || f || m ? De(a) ? u = a : Zy(a) ? u = Sh(a) : f ? (d = !1, u = rf(l, !0)) : m ? (d = !1, u = uf(l, !0)) : u = [] : Se(l) || $s(l) ? (u = a, $s(a) ? u = Jy(a) : (!X(a) || ti(a)) && (u = df(l))) : d = !1;
2389
+ u = l, h || f || m ? De(a) ? u = a : Zy(a) ? u = Sh(a) : f ? (d = !1, u = rf(l, !0)) : m ? (d = !1, u = uf(l, !0)) : u = [] : Se(l) || $s(l) ? (u = a, $s(a) ? u = Jy(a) : (!ee(a) || ti(a)) && (u = df(l))) : d = !1;
2390
2390
  }
2391
2391
  d && (r.set(l, u), s(u, l, i, o, r), r.delete(l)), Mr(n, t, u);
2392
2392
  }
2393
2393
  function Oa(n, e, t, i, s) {
2394
2394
  n !== e && _f(e, function(o, r) {
2395
- if (s || (s = new Xe()), X(o))
2395
+ if (s || (s = new Xe()), ee(o))
2396
2396
  Yy(n, e, r, t, Oa, i, s);
2397
2397
  else {
2398
2398
  var a = i ? i(Lr(n, r), o, r + "", n, e, s) : void 0;
@@ -2413,13 +2413,13 @@ function t2(n) {
2413
2413
  }
2414
2414
  var i2 = "[object String]";
2415
2415
  function ic(n) {
2416
- return typeof n == "string" || !De(n) && qe(n) && Bt(n) == i2;
2416
+ return typeof n == "string" || !De(n) && je(n) && Bt(n) == i2;
2417
2417
  }
2418
2418
  function n2(n, e) {
2419
2419
  return e.length < 2 ? n : Pa(n, Bh(e, 0, -1));
2420
2420
  }
2421
2421
  function ni(n) {
2422
- return qe(n) && n.nodeType === 1 && !Se(n);
2422
+ return je(n) && n.nodeType === 1 && !Se(n);
2423
2423
  }
2424
2424
  function Us(n, e) {
2425
2425
  return es(n, e);
@@ -2442,7 +2442,7 @@ function r2(n, e) {
2442
2442
  return e = _o(e, n), n = n2(n, e), n == null || delete n[Yi(Xy(e))];
2443
2443
  }
2444
2444
  function a2(n, e, t, i) {
2445
- if (!X(n))
2445
+ if (!ee(n))
2446
2446
  return n;
2447
2447
  e = _o(e, n);
2448
2448
  for (var s = -1, o = e.length, r = o - 1, a = n; a != null && ++s < o; ) {
@@ -2451,7 +2451,7 @@ function a2(n, e, t, i) {
2451
2451
  return n;
2452
2452
  if (s != r) {
2453
2453
  var u = a[l];
2454
- c = i ? i(u, l, a) : void 0, c === void 0 && (c = X(u) ? u : mo(e[s + 1]) ? [] : {});
2454
+ c = i ? i(u, l, a) : void 0, c === void 0 && (c = ee(u) ? u : mo(e[s + 1]) ? [] : {});
2455
2455
  }
2456
2456
  ka(a, l, c), a = a[l];
2457
2457
  }
@@ -2467,7 +2467,7 @@ function Mn(n, e, t) {
2467
2467
  var i = !0, s = !0;
2468
2468
  if (typeof n != "function")
2469
2469
  throw new TypeError(u2);
2470
- return X(t) && (i = "leading" in t ? !!t.leading : i, s = "trailing" in t ? !!t.trailing : s), zi(n, e, {
2470
+ return ee(t) && (i = "leading" in t ? !!t.leading : i, s = "trailing" in t ? !!t.trailing : s), zi(n, e, {
2471
2471
  leading: i,
2472
2472
  maxWait: e,
2473
2473
  trailing: s
@@ -2486,7 +2486,7 @@ function W(n) {
2486
2486
  return yf;
2487
2487
  class e extends n {
2488
2488
  set(i, s) {
2489
- if (X(i)) {
2489
+ if (ee(i)) {
2490
2490
  Object.keys(i).forEach((r) => {
2491
2491
  this.set(r, i[r]);
2492
2492
  }, this);
@@ -3029,7 +3029,7 @@ class v2 extends Z() {
3029
3029
  }
3030
3030
  }
3031
3031
  function y2(n) {
3032
- return n["data-ck-expando"] || (n["data-ck-expando"] = We());
3032
+ return n["data-ck-expando"] || (n["data-ck-expando"] = qe());
3033
3033
  }
3034
3034
  function Af(n, e) {
3035
3035
  let t = y2(n);
@@ -3383,7 +3383,7 @@ function T2(n, e) {
3383
3383
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3384
3384
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3385
3385
  */
3386
- class Q {
3386
+ class X {
3387
3387
  /**
3388
3388
  * Creates an instance of the `ResizeObserver` class.
3389
3389
  *
@@ -3394,7 +3394,7 @@ class Q {
3394
3394
  * object with information about the resize event.
3395
3395
  */
3396
3396
  constructor(e, t) {
3397
- Q._observerInstance || Q._createObserver(), this._element = e, this._callback = t, Q._addElementCallback(e, t), Q._observerInstance.observe(e);
3397
+ X._observerInstance || X._createObserver(), this._element = e, this._callback = t, X._addElementCallback(e, t), X._observerInstance.observe(e);
3398
3398
  }
3399
3399
  /**
3400
3400
  * The element observed by this observer.
@@ -3406,37 +3406,37 @@ class Q {
3406
3406
  * Destroys the observer which disables the `callback` passed to the {@link #constructor}.
3407
3407
  */
3408
3408
  destroy() {
3409
- Q._deleteElementCallback(this._element, this._callback);
3409
+ X._deleteElementCallback(this._element, this._callback);
3410
3410
  }
3411
3411
  /**
3412
3412
  * Registers a new resize callback for the DOM element.
3413
3413
  */
3414
3414
  static _addElementCallback(e, t) {
3415
- Q._elementCallbacks || (Q._elementCallbacks = /* @__PURE__ */ new Map());
3416
- let i = Q._elementCallbacks.get(e);
3417
- i || (i = /* @__PURE__ */ new Set(), Q._elementCallbacks.set(e, i)), i.add(t);
3415
+ X._elementCallbacks || (X._elementCallbacks = /* @__PURE__ */ new Map());
3416
+ let i = X._elementCallbacks.get(e);
3417
+ i || (i = /* @__PURE__ */ new Set(), X._elementCallbacks.set(e, i)), i.add(t);
3418
3418
  }
3419
3419
  /**
3420
3420
  * Removes a resize callback from the DOM element. If no callbacks are left
3421
3421
  * for the element, it removes the element from the native observer.
3422
3422
  */
3423
3423
  static _deleteElementCallback(e, t) {
3424
- const i = Q._getElementCallbacks(e);
3425
- i && (i.delete(t), i.size || (Q._elementCallbacks.delete(e), Q._observerInstance.unobserve(e))), Q._elementCallbacks && !Q._elementCallbacks.size && (Q._observerInstance = null, Q._elementCallbacks = null);
3424
+ const i = X._getElementCallbacks(e);
3425
+ i && (i.delete(t), i.size || (X._elementCallbacks.delete(e), X._observerInstance.unobserve(e))), X._elementCallbacks && !X._elementCallbacks.size && (X._observerInstance = null, X._elementCallbacks = null);
3426
3426
  }
3427
3427
  /**
3428
3428
  * Returns are registered resize callbacks for the DOM element.
3429
3429
  */
3430
3430
  static _getElementCallbacks(e) {
3431
- return Q._elementCallbacks ? Q._elementCallbacks.get(e) : null;
3431
+ return X._elementCallbacks ? X._elementCallbacks.get(e) : null;
3432
3432
  }
3433
3433
  /**
3434
3434
  * Creates the single native observer shared across all `ResizeObserver` instances.
3435
3435
  */
3436
3436
  static _createObserver() {
3437
- Q._observerInstance = new S.window.ResizeObserver((e) => {
3437
+ X._observerInstance = new S.window.ResizeObserver((e) => {
3438
3438
  for (const t of e) {
3439
- const i = Q._getElementCallbacks(t.target);
3439
+ const i = X._getElementCallbacks(t.target);
3440
3440
  if (i)
3441
3441
  for (const s of i)
3442
3442
  s(t);
@@ -3444,8 +3444,8 @@ class Q {
3444
3444
  });
3445
3445
  }
3446
3446
  }
3447
- Q._observerInstance = null;
3448
- Q._elementCallbacks = null;
3447
+ X._observerInstance = null;
3448
+ X._elementCallbacks = null;
3449
3449
  /**
3450
3450
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3451
3451
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -4271,7 +4271,7 @@ class ye extends Z() {
4271
4271
  if (this.get(i))
4272
4272
  throw new g("collection-add-item-already-exists", this);
4273
4273
  } else
4274
- e[t] = i = We();
4274
+ e[t] = i = qe();
4275
4275
  return i;
4276
4276
  }
4277
4277
  /**
@@ -4893,77 +4893,77 @@ class Df extends Z() {
4893
4893
  init(e, t = [], i = []) {
4894
4894
  const s = this, o = this._context;
4895
4895
  f(e), p(e);
4896
- const r = e.filter((E) => !d(E, t)), a = [...m(r)];
4897
- D(a, i);
4898
- const l = k(a);
4899
- return M(l, "init").then(() => M(l, "afterInit")).then(() => l);
4900
- function c(E) {
4901
- return typeof E == "function";
4896
+ const r = e.filter((C) => !d(C, t)), a = [...m(r)];
4897
+ M(a, i);
4898
+ const l = D(a);
4899
+ return k(l, "init").then(() => k(l, "afterInit")).then(() => l);
4900
+ function c(C) {
4901
+ return typeof C == "function";
4902
4902
  }
4903
- function u(E) {
4904
- return c(E) && !!E.isContextPlugin;
4903
+ function u(C) {
4904
+ return c(C) && !!C.isContextPlugin;
4905
4905
  }
4906
- function d(E, R) {
4907
- return R.some((I) => I === E || h(E) === I || h(I) === E);
4906
+ function d(C, P) {
4907
+ return P.some((x) => x === C || h(C) === x || h(x) === C);
4908
4908
  }
4909
- function h(E) {
4910
- return c(E) ? E.pluginName || E.name : E;
4909
+ function h(C) {
4910
+ return c(C) ? C.pluginName || C.name : C;
4911
4911
  }
4912
- function f(E, R = /* @__PURE__ */ new Set()) {
4913
- E.forEach((I) => {
4914
- c(I) && (R.has(I) || (R.add(I), I.pluginName && !s._availablePlugins.has(I.pluginName) && s._availablePlugins.set(I.pluginName, I), I.requires && f(I.requires, R)));
4912
+ function f(C, P = /* @__PURE__ */ new Set()) {
4913
+ C.forEach((x) => {
4914
+ c(x) && (P.has(x) || (P.add(x), x.pluginName && !s._availablePlugins.has(x.pluginName) && s._availablePlugins.set(x.pluginName, x), x.requires && f(x.requires, P)));
4915
4915
  });
4916
4916
  }
4917
- function m(E, R = /* @__PURE__ */ new Set()) {
4918
- return E.map((I) => c(I) ? I : s._availablePlugins.get(I)).reduce((I, ee) => R.has(ee) ? I : (R.add(ee), ee.requires && (p(ee.requires, ee), m(ee.requires, R).forEach((Nt) => I.add(Nt))), I.add(ee)), /* @__PURE__ */ new Set());
4917
+ function m(C, P = /* @__PURE__ */ new Set()) {
4918
+ return C.map((x) => c(x) ? x : s._availablePlugins.get(x)).reduce((x, Y) => P.has(Y) ? x : (P.add(Y), Y.requires && (p(Y.requires, Y), m(Y.requires, P).forEach((Nt) => x.add(Nt))), x.add(Y)), /* @__PURE__ */ new Set());
4919
4919
  }
4920
- function p(E, R = null) {
4921
- E.map((I) => c(I) ? I : s._availablePlugins.get(I) || I).forEach((I) => {
4922
- _(I, R), y(I, R), T(I, R);
4920
+ function p(C, P = null) {
4921
+ C.map((x) => c(x) ? x : s._availablePlugins.get(x) || x).forEach((x) => {
4922
+ _(x, P), y(x, P), T(x, P);
4923
4923
  });
4924
4924
  }
4925
- function _(E, R) {
4926
- if (!c(E))
4927
- throw R ? new g("plugincollection-soft-required", o, { missingPlugin: E, requiredBy: h(R) }) : new g("plugincollection-plugin-not-found", o, { plugin: E });
4925
+ function _(C, P) {
4926
+ if (!c(C))
4927
+ throw P ? new g("plugincollection-soft-required", o, { missingPlugin: C, requiredBy: h(P) }) : new g("plugincollection-plugin-not-found", o, { plugin: C });
4928
4928
  }
4929
- function y(E, R) {
4930
- if (u(R) && !u(E))
4931
- throw new g("plugincollection-context-required", o, { plugin: h(E), requiredBy: h(R) });
4929
+ function y(C, P) {
4930
+ if (u(P) && !u(C))
4931
+ throw new g("plugincollection-context-required", o, { plugin: h(C), requiredBy: h(P) });
4932
4932
  }
4933
- function T(E, R) {
4934
- if (R && d(E, t))
4935
- throw new g("plugincollection-required", o, { plugin: h(E), requiredBy: h(R) });
4933
+ function T(C, P) {
4934
+ if (P && d(C, t))
4935
+ throw new g("plugincollection-required", o, { plugin: h(C), requiredBy: h(P) });
4936
4936
  }
4937
- function k(E) {
4938
- return E.map((R) => {
4939
- let I = s._contextPlugins.get(R);
4940
- return I = I || new R(o), s._add(R, I), I;
4937
+ function D(C) {
4938
+ return C.map((P) => {
4939
+ let x = s._contextPlugins.get(P);
4940
+ return x = x || new P(o), s._add(P, x), x;
4941
4941
  });
4942
4942
  }
4943
- function M(E, R) {
4944
- return E.reduce((I, ee) => !ee[R] || s._contextPlugins.has(ee) ? I : I.then(ee[R].bind(ee)), Promise.resolve());
4945
- }
4946
- function D(E, R) {
4947
- for (const I of R) {
4948
- if (typeof I != "function")
4949
- throw new g("plugincollection-replace-plugin-invalid-type", null, { pluginItem: I });
4950
- const ee = I.pluginName;
4951
- if (!ee)
4952
- throw new g("plugincollection-replace-plugin-missing-name", null, { pluginItem: I });
4953
- if (I.requires && I.requires.length)
4954
- throw new g("plugincollection-plugin-for-replacing-cannot-have-dependencies", null, { pluginName: ee });
4955
- const Nt = s._availablePlugins.get(ee);
4943
+ function k(C, P) {
4944
+ return C.reduce((x, Y) => !Y[P] || s._contextPlugins.has(Y) ? x : x.then(Y[P].bind(Y)), Promise.resolve());
4945
+ }
4946
+ function M(C, P) {
4947
+ for (const x of P) {
4948
+ if (typeof x != "function")
4949
+ throw new g("plugincollection-replace-plugin-invalid-type", null, { pluginItem: x });
4950
+ const Y = x.pluginName;
4951
+ if (!Y)
4952
+ throw new g("plugincollection-replace-plugin-missing-name", null, { pluginItem: x });
4953
+ if (x.requires && x.requires.length)
4954
+ throw new g("plugincollection-plugin-for-replacing-cannot-have-dependencies", null, { pluginName: Y });
4955
+ const Nt = s._availablePlugins.get(Y);
4956
4956
  if (!Nt)
4957
- throw new g("plugincollection-plugin-for-replacing-not-exist", null, { pluginName: ee });
4958
- const wl = E.indexOf(Nt);
4957
+ throw new g("plugincollection-plugin-for-replacing-not-exist", null, { pluginName: Y });
4958
+ const wl = C.indexOf(Nt);
4959
4959
  if (wl === -1) {
4960
4960
  if (s._contextPlugins.has(Nt))
4961
4961
  return;
4962
- throw new g("plugincollection-plugin-for-replacing-not-loaded", null, { pluginName: ee });
4962
+ throw new g("plugincollection-plugin-for-replacing-not-loaded", null, { pluginName: Y });
4963
4963
  }
4964
4964
  if (Nt.requires && Nt.requires.length)
4965
- throw new g("plugincollection-replaced-plugin-cannot-have-dependencies", null, { pluginName: ee });
4966
- E.splice(wl, 1, I), s._availablePlugins.set(ee, I);
4965
+ throw new g("plugincollection-replaced-plugin-cannot-have-dependencies", null, { pluginName: Y });
4966
+ C.splice(wl, 1, x), s._availablePlugins.set(Y, x);
4967
4967
  }
4968
4968
  }
4969
4969
  }
@@ -5800,7 +5800,7 @@ class Ks {
5800
5800
  return Array.isArray(i);
5801
5801
  }
5802
5802
  set(e, t) {
5803
- if (X(e))
5803
+ if (ee(e))
5804
5804
  for (const [i, s] of Object.entries(e))
5805
5805
  this._styleProcessor.toNormalizedForm(i, s, this._styles);
5806
5806
  else
@@ -5953,7 +5953,7 @@ class Ks {
5953
5953
  getAsString(e) {
5954
5954
  if (this.isEmpty)
5955
5955
  return;
5956
- if (this._styles[e] && !X(this._styles[e]))
5956
+ if (this._styles[e] && !ee(this._styles[e]))
5957
5957
  return this._styles[e];
5958
5958
  const i = this._styleProcessor.getReducedForm(e, this._styles).find(([s]) => s === e);
5959
5959
  if (Array.isArray(i))
@@ -6034,7 +6034,7 @@ class mk {
6034
6034
  * @param styles Object holding normalized styles.
6035
6035
  */
6036
6036
  toNormalizedForm(e, t, i) {
6037
- if (X(t)) {
6037
+ if (ee(t)) {
6038
6038
  zo(i, Nr(e), t);
6039
6039
  return;
6040
6040
  }
@@ -6359,7 +6359,7 @@ function Nr(n) {
6359
6359
  }
6360
6360
  function zo(n, e, t) {
6361
6361
  let i = t;
6362
- X(t) && (i = Ba({}, Rn(n, e), t)), l2(n, e, i);
6362
+ ee(t) && (i = Ba({}, Rn(n, e), t)), l2(n, e, i);
6363
6363
  }
6364
6364
  /**
6365
6365
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
@@ -6980,7 +6980,7 @@ let Zt = class {
6980
6980
  throw new g("view-tree-walker-no-start-position", null);
6981
6981
  if (e.direction && e.direction != "forward" && e.direction != "backward")
6982
6982
  throw new g("view-tree-walker-unknown-direction", e.startPosition, { direction: e.direction });
6983
- this.boundaries = e.boundaries || null, e.startPosition ? this._position = C._createAt(e.startPosition) : this._position = C._createAt(e.boundaries[e.direction == "backward" ? "end" : "start"]), this.direction = e.direction || "forward", this.singleCharacters = !!e.singleCharacters, this.shallow = !!e.shallow, this.ignoreElementEnd = !!e.ignoreElementEnd, this._boundaryStartParent = this.boundaries ? this.boundaries.start.parent : null, this._boundaryEndParent = this.boundaries ? this.boundaries.end.parent : null;
6983
+ this.boundaries = e.boundaries || null, e.startPosition ? this._position = E._createAt(e.startPosition) : this._position = E._createAt(e.boundaries[e.direction == "backward" ? "end" : "start"]), this.direction = e.direction || "forward", this.singleCharacters = !!e.singleCharacters, this.shallow = !!e.shallow, this.ignoreElementEnd = !!e.ignoreElementEnd, this._boundaryStartParent = this.boundaries ? this.boundaries.start.parent : null, this._boundaryEndParent = this.boundaries ? this.boundaries.end.parent : null;
6984
6984
  }
6985
6985
  /**
6986
6986
  * Iterable interface.
@@ -7038,13 +7038,13 @@ let Zt = class {
7038
7038
  let s;
7039
7039
  if (i instanceof ie) {
7040
7040
  if (e.isAtEnd)
7041
- return this._position = C._createAfter(i), this._next();
7041
+ return this._position = E._createAfter(i), this._next();
7042
7042
  s = i.data[e.offset];
7043
7043
  } else
7044
7044
  s = i.getChild(e.offset);
7045
7045
  if (s instanceof et) {
7046
7046
  if (!this.shallow)
7047
- e = new C(s, 0);
7047
+ e = new E(s, 0);
7048
7048
  else {
7049
7049
  if (this.boundaries && this.boundaries.end.isBefore(e))
7050
7050
  return { done: !0, value: void 0 };
@@ -7054,9 +7054,9 @@ let Zt = class {
7054
7054
  }
7055
7055
  if (s instanceof ie) {
7056
7056
  if (this.singleCharacters)
7057
- return e = new C(s, 0), this._position = e, this._next();
7057
+ return e = new E(s, 0), this._position = e, this._next();
7058
7058
  let o = s.data.length, r;
7059
- return s == this._boundaryEndParent ? (o = this.boundaries.end.offset, r = new ot(s, 0, o), e = C._createAfter(r)) : (r = new ot(s, 0, s.data.length), e.offset++), this._position = e, this._formatReturnValue("text", r, t, e, o);
7059
+ return s == this._boundaryEndParent ? (o = this.boundaries.end.offset, r = new ot(s, 0, o), e = E._createAfter(r)) : (r = new ot(s, 0, s.data.length), e.offset++), this._position = e, this._formatReturnValue("text", r, t, e, o);
7060
7060
  }
7061
7061
  if (typeof s == "string") {
7062
7062
  let o;
@@ -7064,7 +7064,7 @@ let Zt = class {
7064
7064
  const r = new ot(i, e.offset, o);
7065
7065
  return e.offset += o, this._position = e, this._formatReturnValue("text", r, t, e, o);
7066
7066
  }
7067
- return e = C._createAfter(i), this._position = e, this.ignoreElementEnd ? this._next() : this._formatReturnValue("elementEnd", i, t, e);
7067
+ return e = E._createAfter(i), this._position = e, this.ignoreElementEnd ? this._next() : this._formatReturnValue("elementEnd", i, t, e);
7068
7068
  }
7069
7069
  /**
7070
7070
  * Makes a step backward in view. Moves the {@link #position} to the previous position and returns the encountered value.
@@ -7079,19 +7079,19 @@ let Zt = class {
7079
7079
  let s;
7080
7080
  if (i instanceof ie) {
7081
7081
  if (e.isAtStart)
7082
- return this._position = C._createBefore(i), this._previous();
7082
+ return this._position = E._createBefore(i), this._previous();
7083
7083
  s = i.data[e.offset - 1];
7084
7084
  } else
7085
7085
  s = i.getChild(e.offset - 1);
7086
7086
  if (s instanceof et)
7087
- return this.shallow ? (e.offset--, this._position = e, this._formatReturnValue("elementStart", s, t, e, 1)) : (e = new C(s, s.childCount), this._position = e, this.ignoreElementEnd ? this._previous() : this._formatReturnValue("elementEnd", s, t, e));
7087
+ return this.shallow ? (e.offset--, this._position = e, this._formatReturnValue("elementStart", s, t, e, 1)) : (e = new E(s, s.childCount), this._position = e, this.ignoreElementEnd ? this._previous() : this._formatReturnValue("elementEnd", s, t, e));
7088
7088
  if (s instanceof ie) {
7089
7089
  if (this.singleCharacters)
7090
- return e = new C(s, s.data.length), this._position = e, this._previous();
7090
+ return e = new E(s, s.data.length), this._position = e, this._previous();
7091
7091
  let o = s.data.length, r;
7092
7092
  if (s == this._boundaryStartParent) {
7093
7093
  const a = this.boundaries.start.offset;
7094
- r = new ot(s, a, s.data.length - a), o = r.data.length, e = C._createBefore(r);
7094
+ r = new ot(s, a, s.data.length - a), o = r.data.length, e = E._createBefore(r);
7095
7095
  } else
7096
7096
  r = new ot(s, 0, s.data.length), e.offset--;
7097
7097
  return this._position = e, this._formatReturnValue("text", r, t, e, o);
@@ -7108,7 +7108,7 @@ let Zt = class {
7108
7108
  const r = new ot(i, e.offset, o);
7109
7109
  return this._position = e, this._formatReturnValue("text", r, t, e, o);
7110
7110
  }
7111
- return e = C._createBefore(i), this._position = e, this._formatReturnValue("elementStart", i, t, e, 1);
7111
+ return e = E._createBefore(i), this._position = e, this._formatReturnValue("elementStart", i, t, e, 1);
7112
7112
  }
7113
7113
  /**
7114
7114
  * Format returned data and adjust `previousPosition` and `nextPosition` if reach the bound of the {@link module:engine/view/text~Text}.
@@ -7120,7 +7120,7 @@ let Zt = class {
7120
7120
  * @param length Length of the item.
7121
7121
  */
7122
7122
  _formatReturnValue(e, t, i, s, o) {
7123
- return t instanceof ot && (t.offsetInText + t.data.length == t.textNode.data.length && (this.direction == "forward" && !(this.boundaries && this.boundaries.end.isEqual(this.position)) ? (s = C._createAfter(t.textNode), this._position = s) : i = C._createAfter(t.textNode)), t.offsetInText === 0 && (this.direction == "backward" && !(this.boundaries && this.boundaries.start.isEqual(this.position)) ? (s = C._createBefore(t.textNode), this._position = s) : i = C._createBefore(t.textNode))), {
7123
+ return t instanceof ot && (t.offsetInText + t.data.length == t.textNode.data.length && (this.direction == "forward" && !(this.boundaries && this.boundaries.end.isEqual(this.position)) ? (s = E._createAfter(t.textNode), this._position = s) : i = E._createAfter(t.textNode)), t.offsetInText === 0 && (this.direction == "backward" && !(this.boundaries && this.boundaries.start.isEqual(this.position)) ? (s = E._createBefore(t.textNode), this._position = s) : i = E._createBefore(t.textNode))), {
7124
7124
  done: !1,
7125
7125
  value: {
7126
7126
  type: e,
@@ -7136,7 +7136,7 @@ let Zt = class {
7136
7136
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7137
7137
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
7138
7138
  */
7139
- let C = class mt extends ui {
7139
+ let E = class mt extends ui {
7140
7140
  /**
7141
7141
  * Creates a position.
7142
7142
  *
@@ -7376,7 +7376,7 @@ let C = class mt extends ui {
7376
7376
  return new mt(e.parent, e.index);
7377
7377
  }
7378
7378
  };
7379
- C.prototype.is = function(n) {
7379
+ E.prototype.is = function(n) {
7380
7380
  return n === "position" || n === "view:position";
7381
7381
  };
7382
7382
  /**
@@ -7449,7 +7449,7 @@ let F = class Pt extends ui {
7449
7449
  */
7450
7450
  getEnlarged() {
7451
7451
  let e = this.start.getLastMatchingPosition(gs, { direction: "backward" }), t = this.end.getLastMatchingPosition(gs);
7452
- return e.parent.is("$text") && e.isAtStart && (e = C._createBefore(e.parent)), t.parent.is("$text") && t.isAtEnd && (t = C._createAfter(t.parent)), new Pt(e, t);
7452
+ return e.parent.is("$text") && e.isAtStart && (e = E._createBefore(e.parent)), t.parent.is("$text") && t.isAtEnd && (t = E._createAfter(t.parent)), new Pt(e, t);
7453
7453
  }
7454
7454
  /**
7455
7455
  * Creates a minimum range that has the same content as this range but is trimmed in both ways (at the beginning
@@ -7476,7 +7476,7 @@ let F = class Pt extends ui {
7476
7476
  return new Pt(e, e);
7477
7477
  let t = this.end.getLastMatchingPosition(gs, { direction: "backward" });
7478
7478
  const i = e.nodeAfter, s = t.nodeBefore;
7479
- return i && i.is("$text") && (e = new C(i, 0)), s && s.is("$text") && (t = new C(s, s.data.length)), new Pt(e, t);
7479
+ return i && i.is("$text") && (e = new E(i, 0)), s && s.is("$text") && (t = new E(s, s.data.length)), new Pt(e, t);
7480
7480
  }
7481
7481
  /**
7482
7482
  * Two ranges are equal if their start and end positions are equal.
@@ -7668,7 +7668,7 @@ let F = class Pt extends ui {
7668
7668
  * @returns Created range.
7669
7669
  */
7670
7670
  static _createFromParentsAndOffsets(e, t, i, s) {
7671
- return new this(new C(e, t), new C(i, s));
7671
+ return new this(new E(e, t), new E(i, s));
7672
7672
  }
7673
7673
  /**
7674
7674
  * Creates a new range, spreading from specified {@link module:engine/view/position~Position position} to a position moved by
@@ -7699,7 +7699,7 @@ let F = class Pt extends ui {
7699
7699
  */
7700
7700
  static _createOn(e) {
7701
7701
  const t = e.is("$textProxy") ? e.offsetSize : 1;
7702
- return this._createFromPositionAndShift(C._createBefore(e), t);
7702
+ return this._createFromPositionAndShift(E._createBefore(e), t);
7703
7703
  }
7704
7704
  };
7705
7705
  F.prototype.is = function(n) {
@@ -8032,14 +8032,14 @@ let vt = class Wf extends Z(ui) {
8032
8032
  this._setRanges(t.getRanges(), t.isBackward), this._setFakeOptions({ fake: t.isFake, label: t.fakeSelectionLabel });
8033
8033
  else if (t instanceof F)
8034
8034
  this._setRanges([t], s && s.backward), this._setFakeOptions(s);
8035
- else if (t instanceof C)
8035
+ else if (t instanceof E)
8036
8036
  this._setRanges([new F(t)]), this._setFakeOptions(s);
8037
8037
  else if (t instanceof di) {
8038
8038
  const o = !!s && !!s.backward;
8039
8039
  let r;
8040
8040
  if (i === void 0)
8041
8041
  throw new g("view-selection-setto-required-second-parameter", this);
8042
- i == "in" ? r = F._createIn(t) : i == "on" ? r = F._createOn(t) : r = new F(C._createAt(t, i)), this._setRanges([r], o), this._setFakeOptions(s);
8042
+ i == "in" ? r = F._createIn(t) : i == "on" ? r = F._createOn(t) : r = new F(E._createAt(t, i)), this._setRanges([r], o), this._setFakeOptions(s);
8043
8043
  } else if (Ne(t))
8044
8044
  this._setRanges(t, s && s.backward), this._setFakeOptions(s);
8045
8045
  else
@@ -8058,7 +8058,7 @@ let vt = class Wf extends Z(ui) {
8058
8058
  setFocus(e, t) {
8059
8059
  if (this.anchor === null)
8060
8060
  throw new g("view-selection-setfocus-no-ranges", this);
8061
- const i = C._createAt(e, t);
8061
+ const i = E._createAt(e, t);
8062
8062
  if (i.compareWith(this.focus) == "same")
8063
8063
  return;
8064
8064
  const s = this.anchor;
@@ -9333,7 +9333,7 @@ class Kf {
9333
9333
  * @returns The new position or range, after breaking the attribute elements.
9334
9334
  */
9335
9335
  breakAttributes(e) {
9336
- return e instanceof C ? this._breakAttributes(e) : this._breakAttributesRange(e);
9336
+ return e instanceof E ? this._breakAttributes(e) : this._breakAttributesRange(e);
9337
9337
  }
9338
9338
  /**
9339
9339
  * Breaks a {@link module:engine/view/containerelement~ContainerElement container view element} into two, at the given position.
@@ -9367,14 +9367,14 @@ class Kf {
9367
9367
  if (!t.parent)
9368
9368
  throw new g("view-writer-break-root", this.document);
9369
9369
  if (e.isAtStart)
9370
- return C._createBefore(t);
9370
+ return E._createBefore(t);
9371
9371
  if (!e.isAtEnd) {
9372
9372
  const i = t._clone(!1);
9373
- this.insert(C._createAfter(t), i);
9374
- const s = new F(e, C._createAt(t, "end")), o = new C(i, 0);
9373
+ this.insert(E._createAfter(t), i);
9374
+ const s = new F(e, E._createAt(t, "end")), o = new E(i, 0);
9375
9375
  this.move(s, o);
9376
9376
  }
9377
- return C._createAfter(t);
9377
+ return E._createAfter(t);
9378
9378
  }
9379
9379
  /**
9380
9380
  * Merges {@link module:engine/view/attributeelement~AttributeElement attribute elements}. It also merges text nodes if needed.
@@ -9412,7 +9412,7 @@ class Kf {
9412
9412
  return e;
9413
9413
  if (i.is("attributeElement") && i.childCount === 0) {
9414
9414
  const r = i.parent, a = i.index;
9415
- return i._remove(), this._removeFromClonedElementsGroup(i), this.mergeAttributes(new C(r, a));
9415
+ return i._remove(), this._removeFromClonedElementsGroup(i), this.mergeAttributes(new E(r, a));
9416
9416
  }
9417
9417
  const s = i.getChild(t - 1), o = i.getChild(t);
9418
9418
  if (!s || !o)
@@ -9421,7 +9421,7 @@ class Kf {
9421
9421
  return Ec(s, o);
9422
9422
  if (s.is("attributeElement") && o.is("attributeElement") && s.isSimilar(o)) {
9423
9423
  const r = s.childCount;
9424
- return s._appendChild(o.getChildren()), o._remove(), this._removeFromClonedElementsGroup(o), this.mergeAttributes(new C(s, r));
9424
+ return s._appendChild(o.getChildren()), o._remove(), this._removeFromClonedElementsGroup(o), this.mergeAttributes(new E(s, r));
9425
9425
  }
9426
9426
  return e;
9427
9427
  }
@@ -9449,8 +9449,8 @@ class Kf {
9449
9449
  const t = e.nodeBefore, i = e.nodeAfter;
9450
9450
  if (!t || !i || !t.is("containerElement") || !i.is("containerElement"))
9451
9451
  throw new g("view-writer-merge-containers-invalid-position", this.document);
9452
- const s = t.getChild(t.childCount - 1), o = s instanceof ie ? C._createAt(s, "end") : C._createAt(t, "end");
9453
- return this.move(F._createIn(i), C._createAt(t, "end")), this.remove(F._createOn(i)), o;
9452
+ const s = t.getChild(t.childCount - 1), o = s instanceof ie ? E._createAt(s, "end") : E._createAt(t, "end");
9453
+ return this.move(F._createIn(i), E._createAt(t, "end")), this.remove(F._createOn(i)), o;
9454
9454
  }
9455
9455
  /**
9456
9456
  * Inserts a node or nodes at specified position. Takes care about breaking attributes before insertion
@@ -9620,7 +9620,7 @@ class Kf {
9620
9620
  */
9621
9621
  rename(e, t) {
9622
9622
  const i = new Ln(this.document, e, t.getAttributes());
9623
- return this.insert(C._createAfter(t), i), this.move(F._createIn(t), C._createAt(i, 0)), this.remove(F._createOn(t)), i;
9623
+ return this.insert(E._createAfter(t), i), this.move(F._createIn(t), E._createAt(i, 0)), this.remove(F._createOn(t)), i;
9624
9624
  }
9625
9625
  /**
9626
9626
  * Cleans up memory by removing obsolete cloned elements group from the writer.
@@ -9655,7 +9655,7 @@ class Kf {
9655
9655
  * @param offset Offset or one of the flags. Used only when the first parameter is a {@link module:engine/view/item~Item view item}.
9656
9656
  */
9657
9657
  createPositionAt(e, t) {
9658
- return C._createAt(e, t);
9658
+ return E._createAt(e, t);
9659
9659
  }
9660
9660
  /**
9661
9661
  * Creates a new position after given view item.
@@ -9663,7 +9663,7 @@ class Kf {
9663
9663
  * @param item View item after which the position should be located.
9664
9664
  */
9665
9665
  createPositionAfter(e) {
9666
- return C._createAfter(e);
9666
+ return E._createAfter(e);
9667
9667
  }
9668
9668
  /**
9669
9669
  * Creates a new position before given view item.
@@ -9671,7 +9671,7 @@ class Kf {
9671
9671
  * @param item View item before which the position should be located.
9672
9672
  */
9673
9673
  createPositionBefore(e) {
9674
- return C._createBefore(e);
9674
+ return E._createBefore(e);
9675
9675
  }
9676
9676
  /**
9677
9677
  * Creates a range spanning from `start` position to `end` position.
@@ -9786,10 +9786,10 @@ class Kf {
9786
9786
  for (; o < i; ) {
9787
9787
  const l = e.getChild(o), c = l.is("$text"), u = l.is("attributeElement");
9788
9788
  if (u && this._wrapAttributeElement(s, l))
9789
- r.push(new C(e, o));
9789
+ r.push(new E(e, o));
9790
9790
  else if (c || !u || xk(s, l)) {
9791
9791
  const d = s._clone();
9792
- l._remove(), d._appendChild(l), e._insertChild(o, d), this._addToClonedElementsGroup(d), r.push(new C(e, o));
9792
+ l._remove(), d._appendChild(l), e._insertChild(o, d), this._addToClonedElementsGroup(d), r.push(new E(e, o));
9793
9793
  } else
9794
9794
  this._wrapChildren(l, 0, l.childCount, s);
9795
9795
  o++;
@@ -9817,11 +9817,11 @@ class Kf {
9817
9817
  }
9818
9818
  if (l.isSimilar(s)) {
9819
9819
  const c = l.getChildren(), u = l.childCount;
9820
- l._remove(), e._insertChild(o, c), this._removeFromClonedElementsGroup(l), r.push(new C(e, o), new C(e, o + u)), o += u, i += u - 1;
9820
+ l._remove(), e._insertChild(o, c), this._removeFromClonedElementsGroup(l), r.push(new E(e, o), new E(e, o + u)), o += u, i += u - 1;
9821
9821
  continue;
9822
9822
  }
9823
9823
  if (this._unwrapAttributeElement(s, l)) {
9824
- r.push(new C(e, o), new C(e, o + 1)), o++;
9824
+ r.push(new E(e, o), new E(e, o + 1)), o++;
9825
9825
  continue;
9826
9826
  }
9827
9827
  this._unwrapChildren(l, 0, l.childCount, s), o++;
@@ -9866,7 +9866,7 @@ class Kf {
9866
9866
  i._priority = Number.POSITIVE_INFINITY, i.isSimilar = () => !1, e.parent._insertChild(e.offset, i);
9867
9867
  const s = new F(e, e.getShiftedBy(1));
9868
9868
  this.wrap(s, t);
9869
- const o = new C(i.parent, i.index);
9869
+ const o = new E(i.parent, i.index);
9870
9870
  i._remove();
9871
9871
  const r = o.nodeBefore, a = o.nodeAfter;
9872
9872
  return r instanceof ie && a instanceof ie ? Ec(r, a) : Cc(o);
@@ -9966,17 +9966,17 @@ class Kf {
9966
9966
  return this._breakAttributes(qo(e), t);
9967
9967
  const o = s.childCount;
9968
9968
  if (i == o) {
9969
- const r = new C(s.parent, s.index + 1);
9969
+ const r = new E(s.parent, s.index + 1);
9970
9970
  return this._breakAttributes(r, t);
9971
9971
  } else if (i === 0) {
9972
- const r = new C(s.parent, s.index);
9972
+ const r = new E(s.parent, s.index);
9973
9973
  return this._breakAttributes(r, t);
9974
9974
  } else {
9975
9975
  const r = s.index + 1, a = s._clone();
9976
9976
  s.parent._insertChild(r, a), this._addToClonedElementsGroup(a);
9977
9977
  const l = s.childCount - i, c = s._removeChildren(i, l);
9978
9978
  a._appendChild(c);
9979
- const u = new C(s.parent, r);
9979
+ const u = new E(s.parent, r);
9980
9980
  return this._breakAttributes(u, t);
9981
9981
  }
9982
9982
  }
@@ -10043,21 +10043,21 @@ function xk(n, e) {
10043
10043
  function Cc(n) {
10044
10044
  const e = n.nodeBefore;
10045
10045
  if (e && e.is("$text"))
10046
- return new C(e, e.data.length);
10046
+ return new E(e, e.data.length);
10047
10047
  const t = n.nodeAfter;
10048
- return t && t.is("$text") ? new C(t, 0) : n;
10048
+ return t && t.is("$text") ? new E(t, 0) : n;
10049
10049
  }
10050
10050
  function qo(n) {
10051
10051
  if (n.offset == n.parent.data.length)
10052
- return new C(n.parent.parent, n.parent.index + 1);
10052
+ return new E(n.parent.parent, n.parent.index + 1);
10053
10053
  if (n.offset === 0)
10054
- return new C(n.parent.parent, n.parent.index);
10054
+ return new E(n.parent.parent, n.parent.index);
10055
10055
  const e = n.parent.data.slice(n.offset);
10056
- return n.parent._data = n.parent.data.slice(0, n.offset), n.parent.parent._insertChild(n.parent.index + 1, new ie(n.root.document, e)), new C(n.parent.parent, n.parent.index + 1);
10056
+ return n.parent._data = n.parent.data.slice(0, n.offset), n.parent.parent._insertChild(n.parent.index + 1, new ie(n.root.document, e)), new E(n.parent.parent, n.parent.index + 1);
10057
10057
  }
10058
10058
  function Ec(n, e) {
10059
10059
  const t = n.data.length;
10060
- return n._data += e.data, e._remove(), new C(n, t);
10060
+ return n._data += e.data, e._remove(), new E(n, t);
10061
10061
  }
10062
10062
  const Ik = [ie, Jt, Ln, qa, ja, Co];
10063
10063
  function Zf(n, e) {
@@ -10173,7 +10173,7 @@ class Vk extends W() {
10173
10173
  const t = L.isBlink && !L.isAndroid ? !this.isSelecting : !0;
10174
10174
  for (const i of this.markedChildren)
10175
10175
  this._updateChildrenMappings(i);
10176
- t ? (this._inlineFiller && !this._isSelectionInInlineFiller() && this._removeInlineFiller(), this._inlineFiller ? e = this._getInlineFillerPosition() : this._needsInlineFillerAtSelection() && (e = this.selection.getFirstPosition(), this.markedChildren.add(e.parent))) : this._inlineFiller && this._inlineFiller.parentNode && (e = this.domConverter.domPositionToView(this._inlineFiller), e && e.parent.is("$text") && (e = C._createBefore(e.parent)));
10176
+ t ? (this._inlineFiller && !this._isSelectionInInlineFiller() && this._removeInlineFiller(), this._inlineFiller ? e = this._getInlineFillerPosition() : this._needsInlineFillerAtSelection() && (e = this.selection.getFirstPosition(), this.markedChildren.add(e.parent))) : this._inlineFiller && this._inlineFiller.parentNode && (e = this.domConverter.domPositionToView(this._inlineFiller), e && e.parent.is("$text") && (e = E._createBefore(e.parent)));
10177
10177
  for (const i of this.markedAttributes)
10178
10178
  this._updateAttrs(i);
10179
10179
  for (const i of this.markedChildren)
@@ -10233,7 +10233,7 @@ class Vk extends W() {
10233
10233
  */
10234
10234
  _getInlineFillerPosition() {
10235
10235
  const e = this.selection.getFirstPosition();
10236
- return e.parent.is("$text") ? C._createBefore(e.parent) : e;
10236
+ return e.parent.is("$text") ? E._createBefore(e.parent) : e;
10237
10237
  }
10238
10238
  /**
10239
10239
  * Returns `true` if the selection has not left the inline filler's text node.
@@ -10923,25 +10923,25 @@ class Xf {
10923
10923
  return this.domPositionToView(e.parentNode, ms(e));
10924
10924
  const i = this.mapDomToView(e);
10925
10925
  if (i && (i.is("uiElement") || i.is("rawElement")))
10926
- return C._createBefore(i);
10926
+ return E._createBefore(i);
10927
10927
  if (ue(e)) {
10928
10928
  if (pn(e))
10929
10929
  return this.domPositionToView(e.parentNode, ms(e));
10930
10930
  const s = this.findCorrespondingViewText(e);
10931
10931
  let o = t;
10932
- return s ? (Le(e) && (o -= Ye, o = o < 0 ? 0 : o), new C(s, o)) : null;
10932
+ return s ? (Le(e) && (o -= Ye, o = o < 0 ? 0 : o), new E(s, o)) : null;
10933
10933
  } else {
10934
10934
  if (t === 0) {
10935
10935
  const s = this.mapDomToView(e);
10936
10936
  if (s)
10937
- return new C(s, 0);
10937
+ return new E(s, 0);
10938
10938
  } else {
10939
10939
  const s = e.childNodes[t - 1];
10940
10940
  if (ue(s) && pn(s) || s && this.isBlockFiller(s))
10941
10941
  return this.domPositionToView(s.parentNode, ms(s));
10942
10942
  const o = ue(s) ? this.findCorrespondingViewText(s) : this.mapDomToView(s);
10943
10943
  if (o && o.parent)
10944
- return new C(o.parent, o.index + 1);
10944
+ return new E(o.parent, o.index + 1);
10945
10945
  }
10946
10946
  return null;
10947
10947
  }
@@ -11341,7 +11341,7 @@ class Xf {
11341
11341
  */
11342
11342
  _getTouchingInlineViewNode(e, t) {
11343
11343
  const i = new Zt({
11344
- startPosition: t ? C._createAfter(e) : C._createBefore(e),
11344
+ startPosition: t ? E._createAfter(e) : E._createBefore(e),
11345
11345
  direction: t ? "forward" : "backward"
11346
11346
  });
11347
11347
  for (const s of i) {
@@ -12362,7 +12362,7 @@ let eC = class extends W() {
12362
12362
  * @param offset Offset or one of the flags. Used only when first parameter is a {@link module:engine/view/item~Item view item}.
12363
12363
  */
12364
12364
  createPositionAt(e, t) {
12365
- return C._createAt(e, t);
12365
+ return E._createAt(e, t);
12366
12366
  }
12367
12367
  /**
12368
12368
  * Creates a new position after given view item.
@@ -12370,7 +12370,7 @@ let eC = class extends W() {
12370
12370
  * @param item View item after which the position should be located.
12371
12371
  */
12372
12372
  createPositionAfter(e) {
12373
- return C._createAfter(e);
12373
+ return E._createAfter(e);
12374
12374
  }
12375
12375
  /**
12376
12376
  * Creates a new position before given view item.
@@ -12378,7 +12378,7 @@ let eC = class extends W() {
12378
12378
  * @param item View item before which the position should be located.
12379
12379
  */
12380
12380
  createPositionBefore(e) {
12381
- return C._createBefore(e);
12381
+ return E._createBefore(e);
12382
12382
  }
12383
12383
  /**
12384
12384
  * Creates a range spanning from `start` position to `end` position.
@@ -14941,10 +14941,10 @@ class om extends Z() {
14941
14941
  findPositionIn(e, t) {
14942
14942
  let i, s = 0, o = 0, r = 0;
14943
14943
  if (e.is("$text"))
14944
- return new C(e, t);
14944
+ return new E(e, t);
14945
14945
  for (; o < t; )
14946
14946
  i = e.getChild(r), s = this.getModelLength(i), o += s, r++;
14947
- return o == t ? this._moveViewPositionToTextNode(new C(e, r)) : this.findPositionIn(i, t - (o - s));
14947
+ return o == t ? this._moveViewPositionToTextNode(new E(e, r)) : this.findPositionIn(i, t - (o - s));
14948
14948
  }
14949
14949
  /**
14950
14950
  * Because we prefer positions in the text nodes over positions next to text nodes, if the view position was next to a text node,
@@ -14961,7 +14961,7 @@ class om extends Z() {
14961
14961
  */
14962
14962
  _moveViewPositionToTextNode(e) {
14963
14963
  const t = e.nodeBefore, i = e.nodeAfter;
14964
- return t instanceof ie ? new C(t, t.data.length) : i instanceof ie ? new C(i, 0) : e;
14964
+ return t instanceof ie ? new E(t, t.data.length) : i instanceof ie ? new E(i, 0) : e;
14965
14965
  }
14966
14966
  }
14967
14967
  /**
@@ -16537,7 +16537,7 @@ class fC extends Oe {
16537
16537
  }
16538
16538
  }
16539
16539
  overrideGravity() {
16540
- const e = We();
16540
+ const e = qe();
16541
16541
  return this._overriddenGravityRegister.add(e), this._overriddenGravityRegister.size === 1 && this._updateAttributes(!0), e;
16542
16542
  }
16543
16543
  restoreGravity(e) {
@@ -22114,18 +22114,18 @@ class at extends $e {
22114
22114
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
22115
22115
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
22116
22116
  */
22117
- const Ge = {};
22118
- Ge[le.className] = le;
22119
- Ge[pe.className] = pe;
22120
- Ge[xe.className] = xe;
22121
- Ge[z.className] = z;
22122
- Ge[de.className] = de;
22123
- Ge[$e.className] = $e;
22124
- Ge[Ie.className] = Ie;
22125
- Ge[yt.className] = yt;
22126
- Ge[at.className] = at;
22127
- Ge[K.className] = K;
22128
- Ge[re.className] = re;
22117
+ const Ke = {};
22118
+ Ke[le.className] = le;
22119
+ Ke[pe.className] = pe;
22120
+ Ke[xe.className] = xe;
22121
+ Ke[z.className] = z;
22122
+ Ke[de.className] = de;
22123
+ Ke[$e.className] = $e;
22124
+ Ke[Ie.className] = Ie;
22125
+ Ke[yt.className] = yt;
22126
+ Ke[at.className] = at;
22127
+ Ke[K.className] = K;
22128
+ Ke[re.className] = re;
22129
22129
  class z5 {
22130
22130
  /**
22131
22131
  * Creates an operation instance from a JSON object (parsed JSON string).
@@ -22134,7 +22134,7 @@ class z5 {
22134
22134
  * @param document Document on which this operation will be applied.
22135
22135
  */
22136
22136
  static fromJSON(e, t) {
22137
- return Ge[e.__className].fromJSON(e, t);
22137
+ return Ke[e.__className].fromJSON(e, t);
22138
22138
  }
22139
22139
  }
22140
22140
  /**
@@ -26652,7 +26652,7 @@ class en {
26652
26652
  * @param offset Offset or one of the flags. Used only when first parameter is a {@link module:engine/view/item~Item view item}.
26653
26653
  */
26654
26654
  createPositionAt(e, t) {
26655
- return C._createAt(e, t);
26655
+ return E._createAt(e, t);
26656
26656
  }
26657
26657
  /**
26658
26658
  * Creates a new position after given view item.
@@ -26660,7 +26660,7 @@ class en {
26660
26660
  * @param item View item after which the position should be located.
26661
26661
  */
26662
26662
  createPositionAfter(e) {
26663
- return C._createAfter(e);
26663
+ return E._createAfter(e);
26664
26664
  }
26665
26665
  /**
26666
26666
  * Creates a new position before given view item.
@@ -26668,7 +26668,7 @@ class en {
26668
26668
  * @param item View item before which the position should be located.
26669
26669
  */
26670
26670
  createPositionBefore(e) {
26671
- return C._createBefore(e);
26671
+ return E._createBefore(e);
26672
26672
  }
26673
26673
  /**
26674
26674
  * Creates a range spanning from `start` position to `end` position.
@@ -27683,7 +27683,7 @@ const dT = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d=
27683
27683
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
27684
27684
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
27685
27685
  */
27686
- const P = {
27686
+ const R = {
27687
27687
  bold: JT,
27688
27688
  cancel: dT,
27689
27689
  caption: hT,
@@ -28503,7 +28503,7 @@ function Xa(n) {
28503
28503
  return n instanceof Ae;
28504
28504
  }
28505
28505
  function ou(n) {
28506
- return X(n[0]) && n[0].ns;
28506
+ return ee(n[0]) && n[0].ns;
28507
28507
  }
28508
28508
  function ru() {
28509
28509
  return {
@@ -28810,7 +28810,7 @@ class tn extends A {
28810
28810
  * @inheritDoc
28811
28811
  */
28812
28812
  constructor(e) {
28813
- super(e), this.set("text", void 0), this.set("for", void 0), this.id = `ck-editor__label_${We()}`;
28813
+ super(e), this.set("text", void 0), this.set("for", void 0), this.id = `ck-editor__label_${qe()}`;
28814
28814
  const t = this.bindTemplate;
28815
28815
  this.setTemplate({
28816
28816
  tag: "label",
@@ -29197,7 +29197,7 @@ class O extends A {
29197
29197
  */
29198
29198
  constructor(e, t = new OA()) {
29199
29199
  super(e), this._focusDelayed = null;
29200
- const i = this.bindTemplate, s = We();
29200
+ const i = this.bindTemplate, s = qe();
29201
29201
  this.set("ariaLabel", void 0), this.set("ariaLabelledBy", `ck-editor__aria-label_${s}`), this.set("class", void 0), this.set("labelStyle", void 0), this.set("icon", void 0), this.set("isEnabled", !0), this.set("isOn", !1), this.set("isVisible", !0), this.set("isToggleable", !1), this.set("keystroke", void 0), this.set("label", void 0), this.set("role", void 0), this.set("tabindex", -1), this.set("tooltip", !1), this.set("tooltipPosition", "s"), this.set("type", "button"), this.set("withText", !1), this.set("withKeystroke", !1), this.children = this.createCollection(), this.labelView = this._setupLabelView(t), this.iconView = new dt(), this.iconView.extendTemplate({
29202
29202
  attributes: {
29203
29203
  class: "ck-button__icon"
@@ -29808,7 +29808,7 @@ function hu(n) {
29808
29808
  const zn = zm, Hm = {};
29809
29809
  for (const n of Object.keys(zn))
29810
29810
  Hm[zn[n]] = n;
29811
- const x = {
29811
+ const I = {
29812
29812
  rgb: { channels: 3, labels: "rgb" },
29813
29813
  hsl: { channels: 3, labels: "hsl" },
29814
29814
  hsv: { channels: 3, labels: "hsv" },
@@ -29825,25 +29825,25 @@ const x = {
29825
29825
  apple: { channels: 3, labels: ["r16", "g16", "b16"] },
29826
29826
  gray: { channels: 1, labels: ["gray"] }
29827
29827
  };
29828
- var Um = x;
29829
- for (const n of Object.keys(x)) {
29830
- if (!("channels" in x[n]))
29828
+ var Um = I;
29829
+ for (const n of Object.keys(I)) {
29830
+ if (!("channels" in I[n]))
29831
29831
  throw new Error("missing channels property: " + n);
29832
- if (!("labels" in x[n]))
29832
+ if (!("labels" in I[n]))
29833
29833
  throw new Error("missing channel labels property: " + n);
29834
- if (x[n].labels.length !== x[n].channels)
29834
+ if (I[n].labels.length !== I[n].channels)
29835
29835
  throw new Error("channel and label counts mismatch: " + n);
29836
- const { channels: e, labels: t } = x[n];
29837
- delete x[n].channels, delete x[n].labels, Object.defineProperty(x[n], "channels", { value: e }), Object.defineProperty(x[n], "labels", { value: t });
29836
+ const { channels: e, labels: t } = I[n];
29837
+ delete I[n].channels, delete I[n].labels, Object.defineProperty(I[n], "channels", { value: e }), Object.defineProperty(I[n], "labels", { value: t });
29838
29838
  }
29839
- x.rgb.hsl = function(n) {
29839
+ I.rgb.hsl = function(n) {
29840
29840
  const e = n[0] / 255, t = n[1] / 255, i = n[2] / 255, s = Math.min(e, t, i), o = Math.max(e, t, i), r = o - s;
29841
29841
  let a, l;
29842
29842
  o === s ? a = 0 : e === o ? a = (t - i) / r : t === o ? a = 2 + (i - e) / r : i === o && (a = 4 + (e - t) / r), a = Math.min(a * 60, 360), a < 0 && (a += 360);
29843
29843
  const c = (s + o) / 2;
29844
29844
  return o === s ? l = 0 : c <= 0.5 ? l = r / (o + s) : l = r / (2 - o - s), [a, l * 100, c * 100];
29845
29845
  };
29846
- x.rgb.hsv = function(n) {
29846
+ I.rgb.hsv = function(n) {
29847
29847
  let e, t, i, s, o;
29848
29848
  const r = n[0] / 255, a = n[1] / 255, l = n[2] / 255, c = Math.max(r, a, l), u = c - Math.min(r, a, l), d = function(h) {
29849
29849
  return (c - h) / 6 / u + 1 / 2;
@@ -29854,20 +29854,20 @@ x.rgb.hsv = function(n) {
29854
29854
  c * 100
29855
29855
  ];
29856
29856
  };
29857
- x.rgb.hwb = function(n) {
29857
+ I.rgb.hwb = function(n) {
29858
29858
  const e = n[0], t = n[1];
29859
29859
  let i = n[2];
29860
- const s = x.rgb.hsl(n)[0], o = 1 / 255 * Math.min(e, Math.min(t, i));
29860
+ const s = I.rgb.hsl(n)[0], o = 1 / 255 * Math.min(e, Math.min(t, i));
29861
29861
  return i = 1 - 1 / 255 * Math.max(e, Math.max(t, i)), [s, o * 100, i * 100];
29862
29862
  };
29863
- x.rgb.cmyk = function(n) {
29863
+ I.rgb.cmyk = function(n) {
29864
29864
  const e = n[0] / 255, t = n[1] / 255, i = n[2] / 255, s = Math.min(1 - e, 1 - t, 1 - i), o = (1 - e - s) / (1 - s) || 0, r = (1 - t - s) / (1 - s) || 0, a = (1 - i - s) / (1 - s) || 0;
29865
29865
  return [o * 100, r * 100, a * 100, s * 100];
29866
29866
  };
29867
29867
  function $A(n, e) {
29868
29868
  return (n[0] - e[0]) ** 2 + (n[1] - e[1]) ** 2 + (n[2] - e[2]) ** 2;
29869
29869
  }
29870
- x.rgb.keyword = function(n) {
29870
+ I.rgb.keyword = function(n) {
29871
29871
  const e = Hm[n];
29872
29872
  if (e)
29873
29873
  return e;
@@ -29878,23 +29878,23 @@ x.rgb.keyword = function(n) {
29878
29878
  }
29879
29879
  return i;
29880
29880
  };
29881
- x.keyword.rgb = function(n) {
29881
+ I.keyword.rgb = function(n) {
29882
29882
  return zn[n];
29883
29883
  };
29884
- x.rgb.xyz = function(n) {
29884
+ I.rgb.xyz = function(n) {
29885
29885
  let e = n[0] / 255, t = n[1] / 255, i = n[2] / 255;
29886
29886
  e = e > 0.04045 ? ((e + 0.055) / 1.055) ** 2.4 : e / 12.92, t = t > 0.04045 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92, i = i > 0.04045 ? ((i + 0.055) / 1.055) ** 2.4 : i / 12.92;
29887
29887
  const s = e * 0.4124 + t * 0.3576 + i * 0.1805, o = e * 0.2126 + t * 0.7152 + i * 0.0722, r = e * 0.0193 + t * 0.1192 + i * 0.9505;
29888
29888
  return [s * 100, o * 100, r * 100];
29889
29889
  };
29890
- x.rgb.lab = function(n) {
29891
- const e = x.rgb.xyz(n);
29890
+ I.rgb.lab = function(n) {
29891
+ const e = I.rgb.xyz(n);
29892
29892
  let t = e[0], i = e[1], s = e[2];
29893
29893
  t /= 95.047, i /= 100, s /= 108.883, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, i = i > 8856e-6 ? i ** (1 / 3) : 7.787 * i + 16 / 116, s = s > 8856e-6 ? s ** (1 / 3) : 7.787 * s + 16 / 116;
29894
29894
  const o = 116 * i - 16, r = 500 * (t - i), a = 200 * (i - s);
29895
29895
  return [o, r, a];
29896
29896
  };
29897
- x.hsl.rgb = function(n) {
29897
+ I.hsl.rgb = function(n) {
29898
29898
  const e = n[0] / 360, t = n[1] / 100, i = n[2] / 100;
29899
29899
  let s, o, r;
29900
29900
  if (t === 0)
@@ -29905,7 +29905,7 @@ x.hsl.rgb = function(n) {
29905
29905
  o = e + 1 / 3 * -(c - 1), o < 0 && o++, o > 1 && o--, 6 * o < 1 ? r = a + (s - a) * 6 * o : 2 * o < 1 ? r = s : 3 * o < 2 ? r = a + (s - a) * (2 / 3 - o) * 6 : r = a, l[c] = r * 255;
29906
29906
  return l;
29907
29907
  };
29908
- x.hsl.hsv = function(n) {
29908
+ I.hsl.hsv = function(n) {
29909
29909
  const e = n[0];
29910
29910
  let t = n[1] / 100, i = n[2] / 100, s = t;
29911
29911
  const o = Math.max(i, 0.01);
@@ -29913,7 +29913,7 @@ x.hsl.hsv = function(n) {
29913
29913
  const r = (i + t) / 2, a = i === 0 ? 2 * s / (o + s) : 2 * t / (i + t);
29914
29914
  return [e, a * 100, r * 100];
29915
29915
  };
29916
- x.hsv.rgb = function(n) {
29916
+ I.hsv.rgb = function(n) {
29917
29917
  const e = n[0] / 60, t = n[1] / 100;
29918
29918
  let i = n[2] / 100;
29919
29919
  const s = Math.floor(e) % 6, o = e - Math.floor(e), r = 255 * i * (1 - t), a = 255 * i * (1 - t * o), l = 255 * i * (1 - t * (1 - o));
@@ -29932,14 +29932,14 @@ x.hsv.rgb = function(n) {
29932
29932
  return [i, r, a];
29933
29933
  }
29934
29934
  };
29935
- x.hsv.hsl = function(n) {
29935
+ I.hsv.hsl = function(n) {
29936
29936
  const e = n[0], t = n[1] / 100, i = n[2] / 100, s = Math.max(i, 0.01);
29937
29937
  let o, r;
29938
29938
  r = (2 - t) * i;
29939
29939
  const a = (2 - t) * s;
29940
29940
  return o = t * s, o /= a <= 1 ? a : 2 - a, o = o || 0, r /= 2, [e, o * 100, r * 100];
29941
29941
  };
29942
- x.hwb.rgb = function(n) {
29942
+ I.hwb.rgb = function(n) {
29943
29943
  const e = n[0] / 360;
29944
29944
  let t = n[1] / 100, i = n[2] / 100;
29945
29945
  const s = t + i;
@@ -29973,62 +29973,62 @@ x.hwb.rgb = function(n) {
29973
29973
  }
29974
29974
  return [c * 255, u * 255, d * 255];
29975
29975
  };
29976
- x.cmyk.rgb = function(n) {
29976
+ I.cmyk.rgb = function(n) {
29977
29977
  const e = n[0] / 100, t = n[1] / 100, i = n[2] / 100, s = n[3] / 100, o = 1 - Math.min(1, e * (1 - s) + s), r = 1 - Math.min(1, t * (1 - s) + s), a = 1 - Math.min(1, i * (1 - s) + s);
29978
29978
  return [o * 255, r * 255, a * 255];
29979
29979
  };
29980
- x.xyz.rgb = function(n) {
29980
+ I.xyz.rgb = function(n) {
29981
29981
  const e = n[0] / 100, t = n[1] / 100, i = n[2] / 100;
29982
29982
  let s, o, r;
29983
29983
  return s = e * 3.2406 + t * -1.5372 + i * -0.4986, o = e * -0.9689 + t * 1.8758 + i * 0.0415, r = e * 0.0557 + t * -0.204 + i * 1.057, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92, s = Math.min(Math.max(0, s), 1), o = Math.min(Math.max(0, o), 1), r = Math.min(Math.max(0, r), 1), [s * 255, o * 255, r * 255];
29984
29984
  };
29985
- x.xyz.lab = function(n) {
29985
+ I.xyz.lab = function(n) {
29986
29986
  let e = n[0], t = n[1], i = n[2];
29987
29987
  e /= 95.047, t /= 100, i /= 108.883, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, i = i > 8856e-6 ? i ** (1 / 3) : 7.787 * i + 16 / 116;
29988
29988
  const s = 116 * t - 16, o = 500 * (e - t), r = 200 * (t - i);
29989
29989
  return [s, o, r];
29990
29990
  };
29991
- x.lab.xyz = function(n) {
29991
+ I.lab.xyz = function(n) {
29992
29992
  const e = n[0], t = n[1], i = n[2];
29993
29993
  let s, o, r;
29994
29994
  o = (e + 16) / 116, s = t / 500 + o, r = o - i / 200;
29995
29995
  const a = o ** 3, l = s ** 3, c = r ** 3;
29996
29996
  return o = a > 8856e-6 ? a : (o - 16 / 116) / 7.787, s = l > 8856e-6 ? l : (s - 16 / 116) / 7.787, r = c > 8856e-6 ? c : (r - 16 / 116) / 7.787, s *= 95.047, o *= 100, r *= 108.883, [s, o, r];
29997
29997
  };
29998
- x.lab.lch = function(n) {
29998
+ I.lab.lch = function(n) {
29999
29999
  const e = n[0], t = n[1], i = n[2];
30000
30000
  let s;
30001
30001
  s = Math.atan2(i, t) * 360 / 2 / Math.PI, s < 0 && (s += 360);
30002
30002
  const r = Math.sqrt(t * t + i * i);
30003
30003
  return [e, r, s];
30004
30004
  };
30005
- x.lch.lab = function(n) {
30005
+ I.lch.lab = function(n) {
30006
30006
  const e = n[0], t = n[1], s = n[2] / 360 * 2 * Math.PI, o = t * Math.cos(s), r = t * Math.sin(s);
30007
30007
  return [e, o, r];
30008
30008
  };
30009
- x.rgb.ansi16 = function(n, e = null) {
30009
+ I.rgb.ansi16 = function(n, e = null) {
30010
30010
  const [t, i, s] = n;
30011
- let o = e === null ? x.rgb.hsv(n)[2] : e;
30011
+ let o = e === null ? I.rgb.hsv(n)[2] : e;
30012
30012
  if (o = Math.round(o / 50), o === 0)
30013
30013
  return 30;
30014
30014
  let r = 30 + (Math.round(s / 255) << 2 | Math.round(i / 255) << 1 | Math.round(t / 255));
30015
30015
  return o === 2 && (r += 60), r;
30016
30016
  };
30017
- x.hsv.ansi16 = function(n) {
30018
- return x.rgb.ansi16(x.hsv.rgb(n), n[2]);
30017
+ I.hsv.ansi16 = function(n) {
30018
+ return I.rgb.ansi16(I.hsv.rgb(n), n[2]);
30019
30019
  };
30020
- x.rgb.ansi256 = function(n) {
30020
+ I.rgb.ansi256 = function(n) {
30021
30021
  const e = n[0], t = n[1], i = n[2];
30022
30022
  return e === t && t === i ? e < 8 ? 16 : e > 248 ? 231 : Math.round((e - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(e / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(i / 255 * 5);
30023
30023
  };
30024
- x.ansi16.rgb = function(n) {
30024
+ I.ansi16.rgb = function(n) {
30025
30025
  let e = n % 10;
30026
30026
  if (e === 0 || e === 7)
30027
30027
  return n > 50 && (e += 3.5), e = e / 10.5 * 255, [e, e, e];
30028
30028
  const t = (~~(n > 50) + 1) * 0.5, i = (e & 1) * t * 255, s = (e >> 1 & 1) * t * 255, o = (e >> 2 & 1) * t * 255;
30029
30029
  return [i, s, o];
30030
30030
  };
30031
- x.ansi256.rgb = function(n) {
30031
+ I.ansi256.rgb = function(n) {
30032
30032
  if (n >= 232) {
30033
30033
  const o = (n - 232) * 10 + 8;
30034
30034
  return [o, o, o];
@@ -30038,11 +30038,11 @@ x.ansi256.rgb = function(n) {
30038
30038
  const t = Math.floor(n / 36) / 5 * 255, i = Math.floor((e = n % 36) / 6) / 5 * 255, s = e % 6 / 5 * 255;
30039
30039
  return [t, i, s];
30040
30040
  };
30041
- x.rgb.hex = function(n) {
30041
+ I.rgb.hex = function(n) {
30042
30042
  const t = (((Math.round(n[0]) & 255) << 16) + ((Math.round(n[1]) & 255) << 8) + (Math.round(n[2]) & 255)).toString(16).toUpperCase();
30043
30043
  return "000000".substring(t.length) + t;
30044
30044
  };
30045
- x.hex.rgb = function(n) {
30045
+ I.hex.rgb = function(n) {
30046
30046
  const e = n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
30047
30047
  if (!e)
30048
30048
  return [0, 0, 0];
@@ -30051,22 +30051,22 @@ x.hex.rgb = function(n) {
30051
30051
  const i = parseInt(t, 16), s = i >> 16 & 255, o = i >> 8 & 255, r = i & 255;
30052
30052
  return [s, o, r];
30053
30053
  };
30054
- x.rgb.hcg = function(n) {
30054
+ I.rgb.hcg = function(n) {
30055
30055
  const e = n[0] / 255, t = n[1] / 255, i = n[2] / 255, s = Math.max(Math.max(e, t), i), o = Math.min(Math.min(e, t), i), r = s - o;
30056
30056
  let a, l;
30057
30057
  return r < 1 ? a = o / (1 - r) : a = 0, r <= 0 ? l = 0 : s === e ? l = (t - i) / r % 6 : s === t ? l = 2 + (i - e) / r : l = 4 + (e - t) / r, l /= 6, l %= 1, [l * 360, r * 100, a * 100];
30058
30058
  };
30059
- x.hsl.hcg = function(n) {
30059
+ I.hsl.hcg = function(n) {
30060
30060
  const e = n[1] / 100, t = n[2] / 100, i = t < 0.5 ? 2 * e * t : 2 * e * (1 - t);
30061
30061
  let s = 0;
30062
30062
  return i < 1 && (s = (t - 0.5 * i) / (1 - i)), [n[0], i * 100, s * 100];
30063
30063
  };
30064
- x.hsv.hcg = function(n) {
30064
+ I.hsv.hcg = function(n) {
30065
30065
  const e = n[1] / 100, t = n[2] / 100, i = e * t;
30066
30066
  let s = 0;
30067
30067
  return i < 1 && (s = (t - i) / (1 - i)), [n[0], i * 100, s * 100];
30068
30068
  };
30069
- x.hcg.rgb = function(n) {
30069
+ I.hcg.rgb = function(n) {
30070
30070
  const e = n[0] / 360, t = n[1] / 100, i = n[2] / 100;
30071
30071
  if (t === 0)
30072
30072
  return [i * 255, i * 255, i * 255];
@@ -30097,52 +30097,52 @@ x.hcg.rgb = function(n) {
30097
30097
  (t * s[2] + l) * 255
30098
30098
  ];
30099
30099
  };
30100
- x.hcg.hsv = function(n) {
30100
+ I.hcg.hsv = function(n) {
30101
30101
  const e = n[1] / 100, t = n[2] / 100, i = e + t * (1 - e);
30102
30102
  let s = 0;
30103
30103
  return i > 0 && (s = e / i), [n[0], s * 100, i * 100];
30104
30104
  };
30105
- x.hcg.hsl = function(n) {
30105
+ I.hcg.hsl = function(n) {
30106
30106
  const e = n[1] / 100, i = n[2] / 100 * (1 - e) + 0.5 * e;
30107
30107
  let s = 0;
30108
30108
  return i > 0 && i < 0.5 ? s = e / (2 * i) : i >= 0.5 && i < 1 && (s = e / (2 * (1 - i))), [n[0], s * 100, i * 100];
30109
30109
  };
30110
- x.hcg.hwb = function(n) {
30110
+ I.hcg.hwb = function(n) {
30111
30111
  const e = n[1] / 100, t = n[2] / 100, i = e + t * (1 - e);
30112
30112
  return [n[0], (i - e) * 100, (1 - i) * 100];
30113
30113
  };
30114
- x.hwb.hcg = function(n) {
30114
+ I.hwb.hcg = function(n) {
30115
30115
  const e = n[1] / 100, i = 1 - n[2] / 100, s = i - e;
30116
30116
  let o = 0;
30117
30117
  return s < 1 && (o = (i - s) / (1 - s)), [n[0], s * 100, o * 100];
30118
30118
  };
30119
- x.apple.rgb = function(n) {
30119
+ I.apple.rgb = function(n) {
30120
30120
  return [n[0] / 65535 * 255, n[1] / 65535 * 255, n[2] / 65535 * 255];
30121
30121
  };
30122
- x.rgb.apple = function(n) {
30122
+ I.rgb.apple = function(n) {
30123
30123
  return [n[0] / 255 * 65535, n[1] / 255 * 65535, n[2] / 255 * 65535];
30124
30124
  };
30125
- x.gray.rgb = function(n) {
30125
+ I.gray.rgb = function(n) {
30126
30126
  return [n[0] / 100 * 255, n[0] / 100 * 255, n[0] / 100 * 255];
30127
30127
  };
30128
- x.gray.hsl = function(n) {
30128
+ I.gray.hsl = function(n) {
30129
30129
  return [0, 0, n[0]];
30130
30130
  };
30131
- x.gray.hsv = x.gray.hsl;
30132
- x.gray.hwb = function(n) {
30131
+ I.gray.hsv = I.gray.hsl;
30132
+ I.gray.hwb = function(n) {
30133
30133
  return [0, 100, n[0]];
30134
30134
  };
30135
- x.gray.cmyk = function(n) {
30135
+ I.gray.cmyk = function(n) {
30136
30136
  return [0, 0, 0, n[0]];
30137
30137
  };
30138
- x.gray.lab = function(n) {
30138
+ I.gray.lab = function(n) {
30139
30139
  return [n[0], 0, 0];
30140
30140
  };
30141
- x.gray.hex = function(n) {
30141
+ I.gray.hex = function(n) {
30142
30142
  const e = Math.round(n[0] / 100 * 255) & 255, i = ((e << 16) + (e << 8) + e).toString(16).toUpperCase();
30143
30143
  return "000000".substring(i.length) + i;
30144
30144
  };
30145
- x.rgb.gray = function(n) {
30145
+ I.rgb.gray = function(n) {
30146
30146
  return [(n[0] + n[1] + n[2]) / 3 / 255 * 100];
30147
30147
  };
30148
30148
  const Xs = Um;
@@ -30305,7 +30305,7 @@ class nn extends A {
30305
30305
  */
30306
30306
  constructor(e, t) {
30307
30307
  super(e);
30308
- const i = `ck-labeled-field-view-${We()}`, s = `ck-labeled-field-view-status-${We()}`;
30308
+ const i = `ck-labeled-field-view-${qe()}`, s = `ck-labeled-field-view-status-${qe()}`;
30309
30309
  this.fieldView = t(this, i, s), this.set("label", void 0), this.set("isEnabled", !0), this.set("isEmpty", !0), this.set("isFocused", !1), this.set("errorText", null), this.set("infoText", null), this.set("class", void 0), this.set("placeholder", void 0), this.labelView = this._createLabelView(i), this.statusView = this._createStatusView(s), this.fieldWrapperChildren = this.createCollection([this.fieldView, this.labelView]), this.bind("_statusText").to(this, "errorText", this, "infoText", (r, a) => r || a);
30310
30310
  const o = this.bindTemplate;
30311
30311
  this.setTemplate({
@@ -31007,16 +31007,16 @@ function Ym(n) {
31007
31007
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
31008
31008
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
31009
31009
  */
31010
- const { threeVerticalDots: Qm } = P, cS = {
31011
- alignLeft: P.alignLeft,
31012
- bold: P.bold,
31013
- importExport: P.importExport,
31014
- paragraph: P.paragraph,
31015
- plus: P.plus,
31016
- text: P.text,
31017
- threeVerticalDots: P.threeVerticalDots,
31018
- pilcrow: P.pilcrow,
31019
- dragIndicator: P.dragIndicator
31010
+ const { threeVerticalDots: Qm } = R, cS = {
31011
+ alignLeft: R.alignLeft,
31012
+ bold: R.bold,
31013
+ importExport: R.importExport,
31014
+ paragraph: R.paragraph,
31015
+ plus: R.plus,
31016
+ text: R.text,
31017
+ threeVerticalDots: R.threeVerticalDots,
31018
+ pilcrow: R.pilcrow,
31019
+ dragIndicator: R.dragIndicator
31020
31020
  };
31021
31021
  class tl extends A {
31022
31022
  /**
@@ -31120,7 +31120,7 @@ class tl extends A {
31120
31120
  */
31121
31121
  _buildItemsFromConfig(e, t, i) {
31122
31122
  const s = Ym(e), o = i || s.removeItems;
31123
- return this._cleanItemsConfiguration(s.items, t, o).map((a) => X(a) ? this._createNestedToolbarDropdown(a, t, o) : a === "|" ? new Jm() : a === "-" ? new aS() : t.create(a)).filter((a) => !!a);
31123
+ return this._cleanItemsConfiguration(s.items, t, o).map((a) => ee(a) ? this._createNestedToolbarDropdown(a, t, o) : a === "|" ? new Jm() : a === "-" ? new aS() : t.create(a)).filter((a) => !!a);
31124
31124
  }
31125
31125
  /**
31126
31126
  * Cleans up the {@link module:ui/toolbar/toolbarview~ToolbarView#items} of the toolbar by removing unwanted items and
@@ -31132,7 +31132,7 @@ class tl extends A {
31132
31132
  * @returns Items after the clean-up.
31133
31133
  */
31134
31134
  _cleanItemsConfiguration(e, t, i) {
31135
- const s = e.filter((o, r, a) => o === "|" ? !0 : i.indexOf(o) !== -1 ? !1 : o === "-" ? this.options.shouldGroupWhenFull ? (U("toolbarview-line-break-ignored-when-grouping-items", a), !1) : !0 : !X(o) && !t.has(o) ? (U("toolbarview-item-unavailable", { item: o }), !1) : !0);
31135
+ const s = e.filter((o, r, a) => o === "|" ? !0 : i.indexOf(o) !== -1 ? !1 : o === "-" ? this.options.shouldGroupWhenFull ? (U("toolbarview-line-break-ignored-when-grouping-items", a), !1) : !0 : !ee(o) && !t.has(o) ? (U("toolbarview-item-unavailable", { item: o }), !1) : !0);
31136
31136
  return this._cleanSeparatorsAndLineBreaks(s);
31137
31137
  }
31138
31138
  /**
@@ -31311,7 +31311,7 @@ class hS {
31311
31311
  */
31312
31312
  _enableGroupingOnResize() {
31313
31313
  let e;
31314
- this.resizeObserver = new Q(this.viewElement, (t) => {
31314
+ this.resizeObserver = new X(this.viewElement, (t) => {
31315
31315
  (!e || e !== t.contentRect.width || this.shouldUpdateGroupingOnNextResize) && (this.shouldUpdateGroupingOnNextResize = !1, this._updateGrouping(), e = t.contentRect.width);
31316
31316
  }), this._updateGrouping();
31317
31317
  }
@@ -32194,7 +32194,7 @@ class US extends W(ye) {
32194
32194
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
32195
32195
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
32196
32196
  */
32197
- const { eraser: WS, colorPalette: qS } = P;
32197
+ const { eraser: WS, colorPalette: qS } = R;
32198
32198
  class jS extends A {
32199
32199
  /**
32200
32200
  * Creates an instance of the view.
@@ -32484,13 +32484,13 @@ class GS extends A {
32484
32484
  _createActionButtons() {
32485
32485
  const e = this.locale, t = e.t, i = new O(e), s = new O(e);
32486
32486
  return i.set({
32487
- icon: P.check,
32487
+ icon: R.check,
32488
32488
  class: "ck-button-save",
32489
32489
  type: "button",
32490
32490
  withText: !1,
32491
32491
  label: t("Accept")
32492
32492
  }), s.set({
32493
- icon: P.cancel,
32493
+ icon: R.cancel,
32494
32494
  class: "ck-button-cancel",
32495
32495
  type: "button",
32496
32496
  withText: !1,
@@ -33165,7 +33165,7 @@ class ji extends JS(A) {
33165
33165
  return e.set({
33166
33166
  label: t("Close"),
33167
33167
  tooltip: !0,
33168
- icon: P.cancel
33168
+ icon: R.cancel
33169
33169
  }), e.on("execute", () => this.fire("close", { source: "closeButton" })), e;
33170
33170
  }
33171
33171
  }
@@ -33891,7 +33891,7 @@ class ge extends ze() {
33891
33891
  o.has(this.balloonPanelView) || o.add(this.balloonPanelView), this.tooltipTextView.text = t, this.balloonPanelView.pin({
33892
33892
  target: e,
33893
33893
  positions: ge.getPositioningFunctions(i)
33894
- }), this._resizeObserver = new Q(e, () => {
33894
+ }), this._resizeObserver = new X(e, () => {
33895
33895
  si(e) || this._unpinTooltip();
33896
33896
  }), this._mutationObserver.attach(e), this.balloonPanelView.class = [Eu, s].filter((r) => r).join(" ");
33897
33897
  for (const r of ge._editors)
@@ -34991,7 +34991,7 @@ class yx extends A {
34991
34991
  constructor(e) {
34992
34992
  super(e);
34993
34993
  const t = e.t, i = this.bindTemplate;
34994
- this.set("isNavigationVisible", !0), this.focusTracker = new ne(), this.buttonPrevView = this._createButtonView(t("Previous"), P.previousArrow), this.buttonNextView = this._createButtonView(t("Next"), P.nextArrow), this.content = this.createCollection(), this.setTemplate({
34994
+ this.set("isNavigationVisible", !0), this.focusTracker = new ne(), this.buttonPrevView = this._createButtonView(t("Previous"), R.previousArrow), this.buttonNextView = this._createButtonView(t("Next"), R.nextArrow), this.content = this.createCollection(), this.setTemplate({
34995
34995
  tag: "div",
34996
34996
  attributes: {
34997
34997
  class: [
@@ -35266,13 +35266,13 @@ class Ex extends nn {
35266
35266
  showIcon: !0,
35267
35267
  creator: os
35268
35268
  }, t);
35269
- super(e, s.creator), this.label = t.label, this._viewConfig = s, this._viewConfig.showIcon && (this.iconView = new dt(), this.iconView.content = P.loupe, this.fieldWrapperChildren.add(this.iconView, 0), this.extendTemplate({
35269
+ super(e, s.creator), this.label = t.label, this._viewConfig = s, this._viewConfig.showIcon && (this.iconView = new dt(), this.iconView.content = R.loupe, this.fieldWrapperChildren.add(this.iconView, 0), this.extendTemplate({
35270
35270
  attributes: {
35271
35271
  class: "ck-search__query_with-icon"
35272
35272
  }
35273
35273
  })), this._viewConfig.showResetButton && (this.resetButtonView = new O(e), this.resetButtonView.set({
35274
35274
  label: i("Clear"),
35275
- icon: P.cancel,
35275
+ icon: R.cancel,
35276
35276
  class: "ck-search__reset",
35277
35277
  isVisible: !1,
35278
35278
  tooltip: !0
@@ -36730,10 +36730,10 @@ function Ux(n) {
36730
36730
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
36731
36731
  */
36732
36732
  const ks = /* @__PURE__ */ new Map([
36733
- ["left", P.alignLeft],
36734
- ["right", P.alignRight],
36735
- ["center", P.alignCenter],
36736
- ["justify", P.alignJustify]
36733
+ ["left", R.alignLeft],
36734
+ ["right", R.alignRight],
36735
+ ["center", R.alignCenter],
36736
+ ["justify", R.alignJustify]
36737
36737
  ]);
36738
36738
  class Wx extends w {
36739
36739
  /**
@@ -37719,8 +37719,8 @@ function It(n, e, t, i) {
37719
37719
  const _ = p.createPositionAt(d, 0), y = p.createPositionAt(d, m[0].length), T = new Fe(_, y);
37720
37720
  if (s({ match: m }) !== !1) {
37721
37721
  p.remove(T);
37722
- const M = n.model.document.selection.getFirstRange(), D = p.createRangeIn(d);
37723
- d.isEmpty && !D.isEqual(M) && !D.containsRange(M, !0) && p.remove(d);
37722
+ const k = n.model.document.selection.getFirstRange(), M = p.createRangeIn(d);
37723
+ d.isEmpty && !M.isEqual(k) && !M.containsRange(k, !0) && p.remove(d);
37724
37724
  }
37725
37725
  T.detach(), n.model.enqueueChange(() => {
37726
37726
  n.plugins.get("Delete").requestUndoOnBackspace();
@@ -37764,10 +37764,10 @@ function Ci(n, e, t, i) {
37764
37764
  if (u.length != 1 || d.type !== "insert" || d.name != "$text" || d.length != 1)
37765
37765
  return;
37766
37766
  const h = c.focus, f = h.parent, { text: m, range: p } = eI(l.createRange(l.createPositionAt(f, 0), h), l), _ = o(m), y = Lu(p.start, _.format, l), T = Lu(p.start, _.remove, l);
37767
- y.length && T.length && l.enqueueChange((k) => {
37768
- if (i(k, y) !== !1) {
37769
- for (const D of T.reverse())
37770
- k.remove(D);
37767
+ y.length && T.length && l.enqueueChange((D) => {
37768
+ if (i(D, y) !== !1) {
37769
+ for (const M of T.reverse())
37770
+ D.remove(M);
37771
37771
  l.enqueueChange(() => {
37772
37772
  n.plugins.get("Delete").requestUndoOnBackspace();
37773
37773
  });
@@ -38056,7 +38056,7 @@ class nI extends w {
38056
38056
  const s = e.commands.get(tr), o = new O(i);
38057
38057
  return o.set({
38058
38058
  label: t("Bold"),
38059
- icon: P.bold,
38059
+ icon: R.bold,
38060
38060
  keystroke: "CTRL+B",
38061
38061
  tooltip: !0,
38062
38062
  isToggleable: !0
@@ -38846,7 +38846,7 @@ class II extends w {
38846
38846
  const s = e.commands.get("blockQuote"), o = new O(i);
38847
38847
  return o.set({
38848
38848
  label: t("Block quote"),
38849
- icon: P.quote,
38849
+ icon: R.quote,
38850
38850
  tooltip: !0,
38851
38851
  isToggleable: !0
38852
38852
  }), o.bind("isOn", "isEnabled").to(s, "value", "isEnabled"), this.listenTo(o, "execute", () => {
@@ -39242,7 +39242,7 @@ class An extends w {
39242
39242
  * @param name Name of marker
39243
39243
  */
39244
39244
  _getUniqueMarkerName(e) {
39245
- const t = e.split(":"), i = We().substring(1, 6);
39245
+ const t = e.split(":"), i = qe().substring(1, 6);
39246
39246
  return t.length === 3 ? `${t.slice(0, 2).join(":")}:${i}` : `${t.join(":")}:${i}`;
39247
39247
  }
39248
39248
  }
@@ -41082,14 +41082,14 @@ class As extends w {
41082
41082
  const t = this.editor.editing, i = e.start.nodeBefore, s = e.start.nodeAfter, o = e.start.parent, r = i ? t.mapper.toViewElement(i) : null, a = r ? t.view.domConverter.mapViewToDom(r) : null, l = s ? t.mapper.toViewElement(s) : null, c = l ? t.view.domConverter.mapViewToDom(l) : null, u = t.mapper.toViewElement(o);
41083
41083
  if (!u)
41084
41084
  return;
41085
- const d = t.view.domConverter.mapViewToDom(u), h = this._getScrollableRect(u), { scrollX: f, scrollY: m } = S.window, p = a ? new B(a) : null, _ = c ? new B(c) : null, y = new B(d).excludeScrollbarsAndBorders(), T = p ? p.bottom : y.top, k = _ ? _.top : y.bottom, M = S.window.getComputedStyle(d), D = T <= k ? (T + k) / 2 : k;
41086
- if (h.top < D && D < h.bottom) {
41087
- const E = y.left + parseFloat(M.paddingLeft), R = y.right - parseFloat(M.paddingRight), I = Math.max(E + f, h.left), ee = Math.min(R + f, h.right);
41085
+ const d = t.view.domConverter.mapViewToDom(u), h = this._getScrollableRect(u), { scrollX: f, scrollY: m } = S.window, p = a ? new B(a) : null, _ = c ? new B(c) : null, y = new B(d).excludeScrollbarsAndBorders(), T = p ? p.bottom : y.top, D = _ ? _.top : y.bottom, k = S.window.getComputedStyle(d), M = T <= D ? (T + D) / 2 : D;
41086
+ if (h.top < M && M < h.bottom) {
41087
+ const C = y.left + parseFloat(k.paddingLeft), P = y.right - parseFloat(k.paddingRight), x = Math.max(C + f, h.left), Y = Math.min(P + f, h.right);
41088
41088
  this._dropTargetLineView.set({
41089
41089
  isVisible: !0,
41090
- left: I,
41091
- top: D + m,
41092
- width: ee - I
41090
+ left: x,
41091
+ top: M + m,
41092
+ width: Y - x
41093
41093
  });
41094
41094
  } else
41095
41095
  this._dropTargetLineView.isVisible = !1;
@@ -41105,7 +41105,7 @@ class As extends w {
41105
41105
  else {
41106
41106
  const s = this.editor.editing.view.domConverter.mapViewToDom(e);
41107
41107
  i = k3(s), this._domEmitter.listenTo(i, "scroll", this._reconvertMarkerThrottled, { usePassive: !0 });
41108
- const o = new Q(i, this._reconvertMarkerThrottled);
41108
+ const o = new X(i, this._reconvertMarkerThrottled);
41109
41109
  this._scrollables.set(t, {
41110
41110
  domElement: i,
41111
41111
  resizeObserver: o
@@ -41300,7 +41300,7 @@ class E3 extends w {
41300
41300
  a.preventDefault();
41301
41301
  return;
41302
41302
  }
41303
- this._draggingUid = We(), a.dataTransfer.effectAllowed = this.isEnabled ? "copyMove" : "copy", a.dataTransfer.setData("application/ckeditor5-dragging-uid", this._draggingUid);
41303
+ this._draggingUid = qe(), a.dataTransfer.effectAllowed = this.isEnabled ? "copyMove" : "copy", a.dataTransfer.setData("application/ckeditor5-dragging-uid", this._draggingUid);
41304
41304
  const l = t.createSelection(this._draggedRange.toRange());
41305
41305
  this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(a.dataTransfer, l, "dragstart");
41306
41306
  const { dataTransfer: u, domTarget: d, domEvent: h } = a, { clientX: f } = h;
@@ -41856,7 +41856,7 @@ class D3 extends w {
41856
41856
  * @inheritDoc
41857
41857
  */
41858
41858
  init() {
41859
- const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ? P.undo : P.redo, o = t.uiLanguageDirection == "ltr" ? P.redo : P.undo;
41859
+ const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ? R.undo : R.redo, o = t.uiLanguageDirection == "ltr" ? R.redo : R.undo;
41860
41860
  this._addButton("undo", i("Undo"), "CTRL+Z", s), this._addButton("redo", i("Redo"), "CTRL+Y", o);
41861
41861
  }
41862
41862
  /**
@@ -42541,7 +42541,7 @@ class eP extends A {
42541
42541
  constructor(e) {
42542
42542
  super(e);
42543
42543
  const t = this.locale.t;
42544
- this.focusTracker = new ne(), this.keystrokes = new ae(), this.labeledInput = this._createLabeledInputView(), this.saveButtonView = this._createButton(t("Save"), P.check, "ck-button-save"), this.saveButtonView.type = "submit", this.cancelButtonView = this._createButton(t("Cancel"), P.cancel, "ck-button-cancel", "cancel"), this._focusables = new Ae(), this._focusCycler = new Ee({
42544
+ this.focusTracker = new ne(), this.keystrokes = new ae(), this.labeledInput = this._createLabeledInputView(), this.saveButtonView = this._createButton(t("Save"), R.check, "ck-button-save"), this.saveButtonView.type = "submit", this.cancelButtonView = this._createButton(t("Cancel"), R.cancel, "ck-button-cancel", "cancel"), this._focusables = new Ae(), this._focusCycler = new Ee({
42545
42545
  focusables: this._focusables,
42546
42546
  focusTracker: this.focusTracker,
42547
42547
  keystrokeHandler: this.keystrokes,
@@ -42679,7 +42679,7 @@ class iP extends w {
42679
42679
  const s = e.commands.get("imageTextAlternative"), o = new O(i);
42680
42680
  return o.set({
42681
42681
  label: t("Change image text alternative"),
42682
- icon: P.textAlternative,
42682
+ icon: R.textAlternative,
42683
42683
  tooltip: !0
42684
42684
  }), o.bind("isEnabled").to(s, "isEnabled"), o.bind("isOn").to(s, "value", (r) => !!r), this.listenTo(o, "execute", () => {
42685
42685
  this._showForm();
@@ -43832,7 +43832,7 @@ class mP extends w {
43832
43832
  e.ui.componentFactory.add("toggleImageCaption", (o) => {
43833
43833
  const r = e.commands.get("toggleImageCaption"), a = new O(o);
43834
43834
  return a.set({
43835
- icon: P.caption,
43835
+ icon: R.caption,
43836
43836
  tooltip: !0,
43837
43837
  isToggleable: !0
43838
43838
  }), a.bind("isOn", "isEnabled").to(r, "value", "isEnabled"), a.bind("label").to(r, "value", (l) => s(l ? "Toggle caption off" : "Toggle caption on")), this.listenTo(a, "execute", () => {
@@ -44017,7 +44017,7 @@ class id extends W() {
44017
44017
  * @param uploadAdapterCreator The function which returns {@link module:upload/filerepository~UploadAdapter} instance.
44018
44018
  */
44019
44019
  constructor(e, t) {
44020
- super(), this.id = We(), this._filePromiseWrapper = this._createFilePromiseWrapper(e), this._adapter = t(this), this._reader = new pP(), this.set("status", "idle"), this.set("uploaded", 0), this.set("uploadTotal", null), this.bind("uploadedPercent").to(this, "uploaded", this, "uploadTotal", (i, s) => s ? i / s * 100 : 0), this.set("uploadResponse", null);
44020
+ super(), this.id = qe(), this._filePromiseWrapper = this._createFilePromiseWrapper(e), this._adapter = t(this), this._reader = new pP(), this.set("status", "idle"), this.set("uploaded", 0), this.set("uploadTotal", null), this.bind("uploadedPercent").to(this, "uploaded", this, "uploadTotal", (i, s) => s ? i / s * 100 : 0), this.set("uploadResponse", null);
44021
44021
  }
44022
44022
  /**
44023
44023
  * A `Promise` which resolves to a `File` instance associated with this file loader.
@@ -44247,7 +44247,7 @@ class CP extends w {
44247
44247
  acceptedType: a.map((c) => `image/${c}`).join(","),
44248
44248
  allowMultipleFiles: !0,
44249
44249
  label: t("Upload image from computer"),
44250
- icon: P.imageUpload,
44250
+ icon: R.imageUpload,
44251
44251
  tooltip: !0
44252
44252
  }), o.bind("isEnabled").to(r), o.on("done", (c, u) => {
44253
44253
  const d = Array.from(u).filter((h) => l.test(h.type));
@@ -44748,10 +44748,10 @@ class Yg extends w {
44748
44748
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
44749
44749
  */
44750
44750
  const cr = {
44751
- small: P.objectSizeSmall,
44752
- medium: P.objectSizeMedium,
44753
- large: P.objectSizeLarge,
44754
- original: P.objectSizeFull
44751
+ small: R.objectSizeSmall,
44752
+ medium: R.objectSizeMedium,
44753
+ large: R.objectSizeLarge,
44754
+ original: R.objectSizeFull
44755
44755
  };
44756
44756
  class DP extends w {
44757
44757
  /**
@@ -45032,7 +45032,7 @@ class HP extends V {
45032
45032
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
45033
45033
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
45034
45034
  */
45035
- const { objectFullWidth: UP, objectInline: Qg, objectLeft: Xg, objectRight: ta, objectCenter: ia, objectBlockLeft: ep, objectBlockRight: tp } = P, Fs = {
45035
+ const { objectFullWidth: UP, objectInline: Qg, objectLeft: Xg, objectRight: ta, objectCenter: ia, objectBlockLeft: ep, objectBlockRight: tp } = R, Fs = {
45036
45036
  // This style represents an image placed in the line of text.
45037
45037
  get inline() {
45038
45038
  return {
@@ -45334,7 +45334,7 @@ class QP extends w {
45334
45334
  for (const r of s)
45335
45335
  this._createButton(r);
45336
45336
  const o = ld([
45337
- ...t.filter(X),
45337
+ ...t.filter(ee),
45338
45338
  ...na.getDefaultDropdownDefinitions(e)
45339
45339
  ], this.localizedDefaultStylesTitles);
45340
45340
  for (const r of o)
@@ -45450,7 +45450,7 @@ class e4 extends w {
45450
45450
  }
45451
45451
  }
45452
45452
  function t4(n) {
45453
- return n.map((e) => X(e) ? e.name : e);
45453
+ return n.map((e) => ee(e) ? e.name : e);
45454
45454
  }
45455
45455
  /**
45456
45456
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
@@ -45486,7 +45486,7 @@ class n4 extends w {
45486
45486
  * @inheritDoc
45487
45487
  */
45488
45488
  init() {
45489
- const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ? P.indent : P.outdent, o = t.uiLanguageDirection == "ltr" ? P.outdent : P.indent;
45489
+ const e = this.editor, t = e.locale, i = e.t, s = t.uiLanguageDirection == "ltr" ? R.indent : R.outdent, o = t.uiLanguageDirection == "ltr" ? R.outdent : R.indent;
45490
45490
  this._defineButton("indent", i("Increase indent"), s), this._defineButton("outdent", i("Decrease indent"), o);
45491
45491
  }
45492
45492
  /**
@@ -46297,7 +46297,7 @@ class A4 extends A {
46297
46297
  constructor(e, t) {
46298
46298
  super(e), this.focusTracker = new ne(), this.keystrokes = new ae(), this._focusables = new Ae();
46299
46299
  const i = e.t;
46300
- this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"), P.check, "ck-button-save"), this.saveButtonView.type = "submit", this.cancelButtonView = this._createButton(i("Cancel"), P.cancel, "ck-button-cancel", "cancel"), this._manualDecoratorSwitches = this._createManualDecoratorSwitches(t), this.children = this._createFormChildren(t.manualDecorators), this._focusCycler = new Ee({
46300
+ this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"), R.check, "ck-button-save"), this.saveButtonView.type = "submit", this.cancelButtonView = this._createButton(i("Cancel"), R.cancel, "ck-button-cancel", "cancel"), this._manualDecoratorSwitches = this._createManualDecoratorSwitches(t), this.children = this._createFormChildren(t.manualDecorators), this._focusCycler = new Ee({
46301
46301
  focusables: this._focusables,
46302
46302
  focusTracker: this.focusTracker,
46303
46303
  keystrokeHandler: this.keystrokes,
@@ -46458,7 +46458,7 @@ class x4 extends A {
46458
46458
  constructor(e, t = {}) {
46459
46459
  super(e), this.focusTracker = new ne(), this.keystrokes = new ae(), this._focusables = new Ae();
46460
46460
  const i = e.t;
46461
- this.previewButtonView = this._createPreviewButton(), this.unlinkButtonView = this._createButton(i("Unlink"), S4, "unlink"), this.editButtonView = this._createButton(i("Edit link"), P.pencil, "edit"), this.set("href", void 0), this._linkConfig = t, this._focusCycler = new Ee({
46461
+ this.previewButtonView = this._createPreviewButton(), this.unlinkButtonView = this._createButton(i("Unlink"), S4, "unlink"), this.editButtonView = this._createButton(i("Edit link"), R.pencil, "edit"), this.set("href", void 0), this._linkConfig = t, this._focusCycler = new Ee({
46462
46462
  focusables: this._focusables,
46463
46463
  focusTracker: this.focusTracker,
46464
46464
  keystrokeHandler: this.keystrokes,
@@ -47064,7 +47064,7 @@ class B4 extends w {
47064
47064
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
47065
47065
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
47066
47066
  */
47067
- class je {
47067
+ class Ge {
47068
47068
  /**
47069
47069
  * Creates a document list iterator.
47070
47070
  *
@@ -47179,7 +47179,7 @@ class Gi {
47179
47179
  */
47180
47180
  /* istanbul ignore next: static function definition -- @preserve */
47181
47181
  static next() {
47182
- return We();
47182
+ return qe();
47183
47183
  }
47184
47184
  }
47185
47185
  function se(n) {
@@ -47192,7 +47192,7 @@ function cl(n, e = {}) {
47192
47192
  ];
47193
47193
  }
47194
47194
  function Ot(n, e = {}) {
47195
- const t = e.direction == "forward", i = Array.from(new je(n, {
47195
+ const t = e.direction == "forward", i = Array.from(new Ge(n, {
47196
47196
  ...e,
47197
47197
  includeSelf: t,
47198
47198
  sameIndent: !0,
@@ -47201,16 +47201,16 @@ function Ot(n, e = {}) {
47201
47201
  return t ? i : i.reverse();
47202
47202
  }
47203
47203
  function D4(n) {
47204
- return Array.from(new je(n, {
47204
+ return Array.from(new Ge(n, {
47205
47205
  direction: "forward",
47206
47206
  higherIndent: !0
47207
47207
  }));
47208
47208
  }
47209
47209
  function dp(n) {
47210
- const e = new je(n, {
47210
+ const e = new Ge(n, {
47211
47211
  sameIndent: !0,
47212
47212
  sameAttributes: "listType"
47213
- }), t = new je(n, {
47213
+ }), t = new Ge(n, {
47214
47214
  sameIndent: !0,
47215
47215
  sameAttributes: "listType",
47216
47216
  includeSelf: !0,
@@ -47222,13 +47222,13 @@ function dp(n) {
47222
47222
  ];
47223
47223
  }
47224
47224
  function ri(n) {
47225
- return !je.first(n, {
47225
+ return !Ge.first(n, {
47226
47226
  sameIndent: !0,
47227
47227
  sameAttributes: "listItemId"
47228
47228
  });
47229
47229
  }
47230
47230
  function bd(n) {
47231
- return !je.first(n, {
47231
+ return !Ge.first(n, {
47232
47232
  direction: "forward",
47233
47233
  sameIndent: !0,
47234
47234
  sameAttributes: "listItemId"
@@ -47278,7 +47278,7 @@ function N4(n, e) {
47278
47278
  n = H(n);
47279
47279
  const t = ds(n), i = /* @__PURE__ */ new Set(), s = Math.min(...t.map((r) => r.getAttribute("listIndent"))), o = /* @__PURE__ */ new Map();
47280
47280
  for (const r of t)
47281
- o.set(r, je.first(r, { lowerIndent: !0 }));
47281
+ o.set(r, Ge.first(r, { lowerIndent: !0 }));
47282
47282
  for (const r of t) {
47283
47283
  if (i.has(r))
47284
47284
  continue;
@@ -47375,7 +47375,7 @@ class _d extends V {
47375
47375
  for (const o of s) {
47376
47376
  if (!o.hasAttribute("listType"))
47377
47377
  continue;
47378
- const r = je.first(o, { sameIndent: !0 });
47378
+ const r = Ge.first(o, { sameIndent: !0 });
47379
47379
  r && i.setAttribute("listType", r.getAttribute("listType"), o);
47380
47380
  }
47381
47381
  this._fireAfterExecute(s);
@@ -47401,7 +47401,7 @@ class _d extends V {
47401
47401
  if (this._direction == "backward" || qn(e) && !ri(e[0]))
47402
47402
  return !0;
47403
47403
  e = ds(e), t = e[0];
47404
- const i = je.first(t, { sameIndent: !0 });
47404
+ const i = Ge.first(t, { sameIndent: !0 });
47405
47405
  return i ? i.getAttribute("listType") == t.getAttribute("listType") : !1;
47406
47406
  }
47407
47407
  }
@@ -47599,7 +47599,7 @@ class kd extends V {
47599
47599
  let o, r;
47600
47600
  if (e.isCollapsed || s) {
47601
47601
  const a = s || e.getFirstPosition().parent, l = ri(a);
47602
- this._direction == "backward" ? (r = a, l && !t ? o = je.first(a, { sameIndent: !0, lowerIndent: !0 }) : o = a.previousSibling) : (o = a, r = a.nextSibling);
47602
+ this._direction == "backward" ? (r = a, l && !t ? o = Ge.first(a, { sameIndent: !0, lowerIndent: !0 }) : o = a.previousSibling) : (o = a, r = a.nextSibling);
47603
47603
  } else
47604
47604
  o = e.getFirstPosition().parent, r = e.getLastPosition().parent;
47605
47605
  return {
@@ -47965,7 +47965,7 @@ function e7(n, e, t, i) {
47965
47965
  const a = q4(i, r, o.getAttribute("listItemId")), l = W4(i, r, o.getAttribute("listType"));
47966
47966
  for (const c of t)
47967
47967
  (c.scope == "list" || c.scope == "item") && o.hasAttribute(c.attributeName) && c.setAttributeOnDowncast(i, o.getAttribute(c.attributeName), c.scope == "list" ? l : a);
47968
- if (e = i.wrap(e, a), e = i.wrap(e, l), r == 0 || (o = je.first(o, { lowerIndent: !0 }), !o))
47968
+ if (e = i.wrap(e, a), e = i.wrap(e, l), r == 0 || (o = Ge.first(o, { lowerIndent: !0 }), !o))
47969
47969
  break;
47970
47970
  }
47971
47971
  }
@@ -48069,7 +48069,7 @@ class aa extends w {
48069
48069
  const l = a.parent;
48070
48070
  if (!se(l))
48071
48071
  return;
48072
- if (!je.first(l, {
48072
+ if (!Ge.first(l, {
48073
48073
  sameAttributes: "listType",
48074
48074
  sameIndent: !0
48075
48075
  }) && l.getAttribute("listIndent") === 0)
@@ -48303,7 +48303,7 @@ class s7 extends w {
48303
48303
  */
48304
48304
  init() {
48305
48305
  const e = this.editor.t;
48306
- xd(this.editor, "numberedList", e("Numbered List"), P.numberedList), xd(this.editor, "bulletedList", e("Bulleted List"), P.bulletedList);
48306
+ xd(this.editor, "numberedList", e("Numbered List"), R.numberedList), xd(this.editor, "bulletedList", e("Bulleted List"), R.bulletedList);
48307
48307
  }
48308
48308
  }
48309
48309
  /**
@@ -48886,7 +48886,7 @@ class k7 extends w {
48886
48886
  editor: e,
48887
48887
  parentCommandName: "bulletedList",
48888
48888
  buttonLabel: t("Bulleted List"),
48889
- buttonIcon: P.bulletedList,
48889
+ buttonIcon: R.bulletedList,
48890
48890
  styleGridAriaLabel: t("Bulleted list styles toolbar"),
48891
48891
  styleDefinitions: [
48892
48892
  {
@@ -48912,7 +48912,7 @@ class k7 extends w {
48912
48912
  editor: e,
48913
48913
  parentCommandName: "numberedList",
48914
48914
  buttonLabel: t("Numbered List"),
48915
- buttonIcon: P.numberedList,
48915
+ buttonIcon: R.numberedList,
48916
48916
  styleGridAriaLabel: t("Numbered list styles toolbar"),
48917
48917
  styleDefinitions: [
48918
48918
  {
@@ -49681,8 +49681,8 @@ function Tp(n, e, t) {
49681
49681
  const d = o, h = d + a, f = [...new j(s, { startRow: d, endRow: h, includeAllSlots: !0 })];
49682
49682
  let m = null, p;
49683
49683
  for (const _ of f) {
49684
- const { row: y, column: T, cell: k } = _;
49685
- k === n && p === void 0 && (p = T), p !== void 0 && p === T && y === h && (m = wi(t, _.getPositionBefore(), l));
49684
+ const { row: y, column: T, cell: D } = _;
49685
+ D === n && p === void 0 && (p = T), p !== void 0 && p === T && y === h && (m = wi(t, _.getPositionBefore(), l));
49686
49686
  }
49687
49687
  return oe("rowspan", a, n, t), m;
49688
49688
  }
@@ -50143,16 +50143,16 @@ class be extends w {
50143
50143
  return;
50144
50144
  }
50145
50145
  const h = r ? Math.max(s, a) : s, f = new j(e, { endRow: h }), m = new Array(c).fill(1);
50146
- for (const { row: p, column: _, cellHeight: y, cellWidth: T, cell: k } of f) {
50147
- const M = p + y - 1, D = p < s && s <= M, E = p <= a && a <= M;
50148
- D ? (u.setAttribute("rowspan", y + o, k), m[_] = -T) : r && E && (m[_] = T);
50146
+ for (const { row: p, column: _, cellHeight: y, cellWidth: T, cell: D } of f) {
50147
+ const k = p + y - 1, M = p < s && s <= k, C = p <= a && a <= k;
50148
+ M ? (u.setAttribute("rowspan", y + o, D), m[_] = -T) : r && C && (m[_] = T);
50149
50149
  }
50150
50150
  for (let p = 0; p < o; p++) {
50151
50151
  const _ = u.createElement("tableRow");
50152
50152
  u.insert(_, e, s);
50153
50153
  for (let y = 0; y < m.length; y++) {
50154
- const T = m[y], k = u.createPositionAt(_, "end");
50155
- T > 0 && wi(u, k, T > 1 ? { colspan: T } : void 0), y += Math.abs(T) - 1;
50154
+ const T = m[y], D = u.createPositionAt(_, "end");
50155
+ T > 0 && wi(u, D, T > 1 ? { colspan: T } : void 0), y += Math.abs(T) - 1;
50156
50156
  }
50157
50157
  }
50158
50158
  });
@@ -50352,8 +50352,8 @@ class be extends w {
50352
50352
  }
50353
50353
  if (a < t) {
50354
50354
  const c = t - a, u = [...new j(o)], { column: d } = u.find(({ cell: p }) => p === e), h = u.filter(({ cell: p, cellWidth: _, column: y }) => {
50355
- const T = p !== e && y === d, k = y < d && y + _ > d;
50356
- return T || k;
50355
+ const T = p !== e && y === d, D = y < d && y + _ > d;
50356
+ return T || D;
50357
50357
  });
50358
50358
  for (const { cell: p, cellWidth: _ } of h)
50359
50359
  l.setAttribute("colspan", _ + c, p);
@@ -50430,8 +50430,8 @@ class be extends w {
50430
50430
  const { column: f } = u.find(({ cell: p }) => p === e), m = {};
50431
50431
  d > 1 && (m.rowspan = d), l > 1 && (m.colspan = l);
50432
50432
  for (const p of u) {
50433
- const { column: _, row: y } = p, T = y >= r + h, k = _ === f, M = (y + r + h) % d === 0;
50434
- T && k && M && Li(1, c, p.getPositionBefore(), m);
50433
+ const { column: _, row: y } = p, T = y >= r + h, D = _ === f, k = (y + r + h) % d === 0;
50434
+ T && D && k && Li(1, c, p.getPositionBefore(), m);
50435
50435
  }
50436
50436
  }
50437
50437
  if (a < t) {
@@ -51232,7 +51232,7 @@ class S6 extends w {
51232
51232
  e.ui.componentFactory.add("insertTable", (o) => {
51233
51233
  const r = e.commands.get("insertTable"), a = fe(o);
51234
51234
  a.bind("isEnabled").to(r), a.buttonView.set({
51235
- icon: P.table,
51235
+ icon: R.table,
51236
51236
  label: t("Insert table"),
51237
51237
  tooltip: !0
51238
51238
  });
@@ -51743,8 +51743,8 @@ class I6 extends w {
51743
51743
  for (const _ of c) {
51744
51744
  const { row: y, column: T } = _;
51745
51745
  T === s.firstColumn && (d = _.getPositionBefore());
51746
- const k = y - s.firstRow, M = T - s.firstColumn, D = l[k % a][M % r], E = D ? o.cloneElement(D) : null, R = this._replaceTableSlotCell(_, E, d, o);
51747
- R && (xp(R, y, T, s.lastRow, s.lastColumn, o), u.push(R), d = o.createPositionAfter(R));
51746
+ const D = y - s.firstRow, k = T - s.firstColumn, M = l[D % a][k % r], C = M ? o.cloneElement(M) : null, P = this._replaceTableSlotCell(_, C, d, o);
51747
+ P && (xp(P, y, T, s.lastRow, s.lastColumn, o), u.push(P), d = o.createPositionAfter(P));
51748
51748
  }
51749
51749
  const h = parseInt(i.getAttribute("headingRows") || "0"), f = parseInt(i.getAttribute("headingColumns") || "0"), m = s.firstRow < h && h <= s.lastRow, p = s.firstColumn < f && f <= s.lastColumn;
51750
51750
  if (m) {
@@ -52009,8 +52009,8 @@ class L6 extends w {
52009
52009
  y.setCellSelection(T, p);
52010
52010
  } else {
52011
52011
  const T = s.createPositionAt(p, _ ? 0 : "end");
52012
- s.change((k) => {
52013
- k.setSelection(T);
52012
+ s.change((D) => {
52013
+ D.setSelection(T);
52014
52014
  });
52015
52015
  }
52016
52016
  }
@@ -52481,7 +52481,7 @@ function Ai(n, e, t, i, s) {
52481
52481
  function Y6(n) {
52482
52482
  return c2(n).replace(/ /g, "");
52483
52483
  }
52484
- function Ue(n) {
52484
+ function We(n) {
52485
52485
  return `html${Y6(n)}Attributes`;
52486
52486
  }
52487
52487
  /**
@@ -52496,7 +52496,7 @@ function fl({ model: n }) {
52496
52496
  function Q6(n, { view: e, isInline: t }) {
52497
52497
  const i = n.t;
52498
52498
  return (s, { writer: o }) => {
52499
- const r = i("HTML object"), a = Po(e, s, o), l = s.getAttribute(Ue(e));
52499
+ const r = i("HTML object"), a = Po(e, s, o), l = s.getAttribute(We(e));
52500
52500
  o.addClass("html-object-embed__content", a), l && lt(o, l, a);
52501
52501
  const c = o.createContainerElement(t ? "span" : "div", {
52502
52502
  class: "html-object-embed",
@@ -52557,13 +52557,13 @@ function Gn({ view: n }, e) {
52557
52557
  if (!s.modelRange || s.modelRange.isCollapsed)
52558
52558
  return;
52559
52559
  const r = e.processViewAttributes(s.viewItem, o);
52560
- r && o.writer.setAttribute(Ue(s.viewItem.name), r, s.modelRange);
52560
+ r && o.writer.setAttribute(We(s.viewItem.name), r, s.modelRange);
52561
52561
  }, { priority: "low" });
52562
52562
  };
52563
52563
  }
52564
52564
  function Kn({ view: n, model: e }) {
52565
52565
  return (t) => {
52566
- t.on(`attribute:${Ue(n)}:${e}`, (i, s, o) => {
52566
+ t.on(`attribute:${We(n)}:${e}`, (i, s, o) => {
52567
52567
  if (!o.consumable.consume(s.item, i.name))
52568
52568
  return;
52569
52569
  const { attributeOldValue: r, attributeNewValue: a } = s, l = o.writer, c = o.mapper.toViewElement(s.item);
@@ -53932,7 +53932,7 @@ class ce extends w {
53932
53932
  i.register(r, e.modelSchema);
53933
53933
  /* istanbul ignore next: paranoid check -- @preserve */
53934
53934
  o && (i.extend(e.model, {
53935
- allowAttributes: [Ue(o), "htmlContent"]
53935
+ allowAttributes: [We(o), "htmlContent"]
53936
53936
  }), t.data.registerRawContentMatcher({
53937
53937
  name: o
53938
53938
  }), s.for("upcast").elementToElement({
@@ -53945,7 +53945,7 @@ class ce extends w {
53945
53945
  }), s.for("upcast").add(Gn(e, this)), s.for("editingDowncast").elementToStructure({
53946
53946
  model: {
53947
53947
  name: r,
53948
- attributes: [Ue(o)]
53948
+ attributes: [We(o)]
53949
53949
  },
53950
53950
  view: Q6(t, e)
53951
53951
  }), s.for("dataDowncast").elementToElement({
@@ -53974,7 +53974,7 @@ class ce extends w {
53974
53974
  });
53975
53975
  }
53976
53976
  o && (i.extend(e.model, {
53977
- allowAttributes: Ue(o)
53977
+ allowAttributes: We(o)
53978
53978
  }), s.for("upcast").add(Gn(e, this)), s.for("downcast").add(Kn(e)));
53979
53979
  }
53980
53980
  /**
@@ -54192,7 +54192,7 @@ class lR extends w {
54192
54192
  _addAttributeConversion(e) {
54193
54193
  const t = this.editor, i = t.conversion, s = t.plugins.get(ce);
54194
54194
  t.model.schema.extend(e.model, {
54195
- allowAttributes: Ue(e.view)
54195
+ allowAttributes: We(e.view)
54196
54196
  }), i.for("upcast").add(Gn(e, s)), i.for("downcast").add(Kn(e));
54197
54197
  }
54198
54198
  }
@@ -54392,7 +54392,7 @@ class gR extends w {
54392
54392
  }), s.on(`register:${r}`, (a, l) => {
54393
54393
  l.model === "media" && (t.extend("media", {
54394
54394
  allowAttributes: [
54395
- Ue(r),
54395
+ We(r),
54396
54396
  "htmlFigureAttributes"
54397
54397
  ]
54398
54398
  }), i.for("upcast").add(pR(s, r)), i.for("dataDowncast").add(bR(r)), a.stop());
@@ -54402,7 +54402,7 @@ class gR extends w {
54402
54402
  function pR(n, e) {
54403
54403
  const t = (i, s, o) => {
54404
54404
  const r = s.viewItem;
54405
- a(r, Ue(e));
54405
+ a(r, We(e));
54406
54406
  function a(l, c) {
54407
54407
  const u = n.processViewAttributes(l, o);
54408
54408
  u && o.writer.setAttribute(c, u, s.modelRange);
@@ -54425,7 +54425,7 @@ function wR(n) {
54425
54425
  }
54426
54426
  function bR(n) {
54427
54427
  return (e) => {
54428
- t(n, Ue(n)), t("figure", "htmlFigureAttributes");
54428
+ t(n, We(n)), t("figure", "htmlFigureAttributes");
54429
54429
  function t(i, s) {
54430
54430
  e.on(`attribute:${s}:media`, (o, r, a) => {
54431
54431
  if (!a.consumable.consume(r.item, o.name))
@@ -54648,7 +54648,7 @@ class AR extends w {
54648
54648
  }), s.on("register", (a, l) => {
54649
54649
  if (!r.includes(l.view) || (a.stop(), t.checkAttribute("$block", "htmlLiAttributes")))
54650
54650
  return;
54651
- const c = r.map((u) => Ue(u));
54651
+ const c = r.map((u) => We(u));
54652
54652
  t.extend("$listItem", { allowAttributes: c }), i.for("upcast").add((u) => {
54653
54653
  u.on("element:ul", pr("htmlUlAttributes", s), { priority: "low" }), u.on("element:ol", pr("htmlOlAttributes", s), { priority: "low" }), u.on("element:li", pr("htmlLiAttributes", s), { priority: "low" });
54654
54654
  });
@@ -54830,7 +54830,7 @@ class IR extends w {
54830
54830
  */
54831
54831
  getGhsAttributeNameForElement(e) {
54832
54832
  const t = this.editor.plugins.get("DataSchema"), i = Array.from(t.getDefinitionsForView(e, !1)), s = i.find((o) => o.isInline && !i[0].isObject);
54833
- return s ? s.model : Ue(e);
54833
+ return s ? s.model : We(e);
54834
54834
  }
54835
54835
  /**
54836
54836
  * Updates GHS model attribute for a specified view element name, so it includes the given class name.
@@ -56341,7 +56341,7 @@ class Tt extends w {
56341
56341
  * @internal
56342
56342
  */
56343
56343
  hasAllClasses(e, t) {
56344
- return X(e) && m8(e) && t.every((i) => e.classes.includes(i));
56344
+ return ee(e) && m8(e) && t.every((i) => e.classes.includes(i));
56345
56345
  }
56346
56346
  /**
56347
56347
  * This is where the styles feature configures the GHS feature. This method translates normalized
@@ -57300,7 +57300,7 @@ class z8 extends w {
57300
57300
  return l.set({
57301
57301
  label: c,
57302
57302
  tooltip: !0,
57303
- icon: P.codeBlock,
57303
+ icon: R.codeBlock,
57304
57304
  isToggleable: !0
57305
57305
  }), l.bind("isOn").to(r, "value", (u) => !!u), l.on("execute", () => {
57306
57306
  e.execute("codeBlock", {
@@ -57442,7 +57442,7 @@ class K8 extends w {
57442
57442
  const s = e.commands.get("horizontalLine"), o = new O(i);
57443
57443
  return o.set({
57444
57444
  label: t("Horizontal line"),
57445
- icon: P.horizontalLine,
57445
+ icon: R.horizontalLine,
57446
57446
  tooltip: !0
57447
57447
  }), o.bind("isEnabled").to(s, "isEnabled"), this.listenTo(o, "execute", () => {
57448
57448
  e.execute("horizontalLine"), e.editing.view.focus();
@@ -58848,7 +58848,7 @@ class CV extends A {
58848
58848
  constructor(e, t) {
58849
58849
  super(t);
58850
58850
  const i = t.t;
58851
- this.focusTracker = new ne(), this.keystrokes = new ae(), this.set("mediaURLInputValue", ""), this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"), P.check, "ck-button-save"), this.saveButtonView.type = "submit", this.saveButtonView.bind("isEnabled").to(this, "mediaURLInputValue", (s) => !!s), this.cancelButtonView = this._createButton(i("Cancel"), P.cancel, "ck-button-cancel", "cancel"), this._focusables = new Ae(), this._focusCycler = new Ee({
58851
+ this.focusTracker = new ne(), this.keystrokes = new ae(), this.set("mediaURLInputValue", ""), this.urlInputView = this._createUrlInput(), this.saveButtonView = this._createButton(i("Save"), R.check, "ck-button-save"), this.saveButtonView.type = "submit", this.saveButtonView.bind("isEnabled").to(this, "mediaURLInputValue", (s) => !!s), this.cancelButtonView = this._createButton(i("Cancel"), R.cancel, "ck-button-cancel", "cancel"), this._focusables = new Ae(), this._focusCycler = new Ee({
58852
58852
  focusables: this._focusables,
58853
58853
  focusTracker: this.focusTracker,
58854
58854
  keystrokeHandler: this.keystrokes,
@@ -59373,13 +59373,13 @@ function OV(n) {
59373
59373
  e = mh("div");
59374
59374
  },
59375
59375
  m(t, i) {
59376
- fh(t, e, i), n[14](e);
59376
+ fh(t, e, i), n[15](e);
59377
59377
  },
59378
59378
  p: Bi,
59379
59379
  i: Bi,
59380
59380
  o: Bi,
59381
59381
  d(t) {
59382
- t && _a(e), n[14](null);
59382
+ t && _a(e), n[15](null);
59383
59383
  }
59384
59384
  };
59385
59385
  }
@@ -59437,43 +59437,44 @@ function DV(n, e, t) {
59437
59437
  "sourceEditing"
59438
59438
  ] } = e, { allowHtmlSupport: r = !1 } = e, { value: a = "" } = e, { placeHolder: l = "" } = e, { lang: c = "en" } = e, { valueChange: u = (k, M) => {
59439
59439
  } } = e, { stateChange: d = (k, M) => {
59440
+ } } = e, { sourceEditingModeChange: h = (k, M) => {
59440
59441
  } } = e;
59441
- const h = () => f;
59442
- let f = null, m = null;
59443
- function p(k) {
59442
+ const f = () => m;
59443
+ let m = null, p = null;
59444
+ function _(k) {
59444
59445
  k.plugins.get("FileRepository").createUploadAdapter = (M) => new LV(M, i, s);
59445
59446
  }
59446
- const _ = (k) => {
59447
- f != null && (f.focus(), f.model.change((M) => {
59448
- if (f == null)
59447
+ const y = (k) => {
59448
+ m != null && (m.focus(), m.model.change((M) => {
59449
+ if (m == null)
59449
59450
  return;
59450
- let D = f.model.document.getRoot();
59451
- if (D == null)
59451
+ let C = m.model.document.getRoot();
59452
+ if (C == null)
59452
59453
  return;
59453
- const E = FV(k, M, D);
59454
- if (E != null) {
59455
- M.setSelection(M.createPositionBefore(E)), M.remove(E);
59456
- const R = E.data.split(k);
59457
- M.insertText(R[0], f.model.document.selection.getFirstPosition() ?? void 0);
59458
- const I = f.model.document.selection.getFirstPosition();
59459
- M.insertText(R[1], f.model.document.selection.getFirstPosition() ?? void 0), M.setSelection(I);
59454
+ const P = FV(k, M, C);
59455
+ if (P != null) {
59456
+ M.setSelection(M.createPositionBefore(P)), M.remove(P);
59457
+ const x = P.data.split(k);
59458
+ M.insertText(x[0], m.model.document.selection.getFirstPosition() ?? void 0);
59459
+ const Y = m.model.document.selection.getFirstPosition();
59460
+ M.insertText(x[1], m.model.document.selection.getFirstPosition() ?? void 0), M.setSelection(Y);
59460
59461
  }
59461
59462
  }));
59462
- }, y = (k) => {
59463
- f != null && (f.focus(), f.model.change((M) => {
59464
- if (f == null)
59463
+ }, T = (k) => {
59464
+ m != null && (m.focus(), m.model.change((M) => {
59465
+ if (m == null)
59465
59466
  return;
59466
- let D = JSON.parse(k);
59467
- if (D.root == null || D.path == null || D.stickiness == null)
59467
+ let C = JSON.parse(k);
59468
+ if (C.root == null || C.path == null || C.stickiness == null)
59468
59469
  return;
59469
- let E = f.model.document.getRoot(D.root);
59470
- E != null && M.setSelection(M.createPositionFromPath(E, D.path, D.stickiness));
59470
+ let P = m.model.document.getRoot(C.root);
59471
+ P != null && M.setSelection(M.createPositionFromPath(P, C.path, C.stickiness));
59471
59472
  }));
59472
59473
  };
59473
59474
  ba.create(a, {
59474
59475
  placeholder: l,
59475
59476
  toolbar: o,
59476
- extraPlugins: [p, BV],
59477
+ extraPlugins: [_, BV],
59477
59478
  htmlSupport: {
59478
59479
  allow: r ? [
59479
59480
  {
@@ -59482,33 +59483,78 @@ function DV(n, e, t) {
59482
59483
  classes: !0,
59483
59484
  styles: !0
59484
59485
  }
59485
- ] : [{ name: "style" }]
59486
+ ] : [
59487
+ {
59488
+ name: "a",
59489
+ attributes: ["href", "target"],
59490
+ classes: !0,
59491
+ styles: !0
59492
+ },
59493
+ {
59494
+ name: /^(b|i|br|center|hr|nav|s|strong|style|u)$/
59495
+ },
59496
+ {
59497
+ name: /^(div|p|span)$/,
59498
+ classes: !0,
59499
+ styles: !0
59500
+ },
59501
+ {
59502
+ name: /^(figure|figcaption)$/,
59503
+ classes: !0,
59504
+ styles: !0
59505
+ },
59506
+ {
59507
+ name: "img",
59508
+ attributes: ["src", "width", "height", "alt"],
59509
+ classes: !0,
59510
+ styles: !0
59511
+ },
59512
+ {
59513
+ name: /^(table|tbody|th|tr|td)$/,
59514
+ attributes: [
59515
+ "id",
59516
+ "cellpadding",
59517
+ "cellspacing",
59518
+ "colspan",
59519
+ "rowspan",
59520
+ "border",
59521
+ "width",
59522
+ "height",
59523
+ "align",
59524
+ "valign"
59525
+ ],
59526
+ classes: !0,
59527
+ styles: !0
59528
+ }
59529
+ ]
59486
59530
  },
59487
59531
  language: { ui: c }
59488
59532
  }).then((k) => {
59489
- t(13, f = k), m != null && k.ui.view.element != null && m.appendChild(k.ui.view.element), k.model.document.on("change:data", (M, D) => {
59490
- t(1, a = k.getData()), u(M, D);
59491
- }), k.on("change:state", (M, D, E, R) => {
59492
- d(M, E);
59533
+ t(14, m = k), p != null && k.ui.view.element != null && p.appendChild(k.ui.view.element), k.model.document.on("change:data", (M, C) => {
59534
+ t(1, a = k.getData()), u(M, C);
59535
+ }), k.on("change:state", (M, C, P, x) => {
59536
+ d(M, P);
59537
+ }), k.plugins.has("SourceEditing") && k.plugins.get("SourceEditing").isEnabled && k.plugins.get("SourceEditing").on("change:isSourceEditingMode", (M, C, P, x) => {
59538
+ h(M, P);
59493
59539
  }), d(null, "ready");
59494
59540
  }).catch((k) => {
59495
59541
  console.error(k.stack);
59496
59542
  });
59497
- function T(k) {
59543
+ function D(k) {
59498
59544
  vr[k ? "unshift" : "push"](() => {
59499
- m = k, t(0, m);
59545
+ p = k, t(0, p);
59500
59546
  });
59501
59547
  }
59502
59548
  return n.$$set = (k) => {
59503
- "insertImageServiceUrl" in k && t(2, i = k.insertImageServiceUrl), "getImageServiceUrl" in k && t(3, s = k.getImageServiceUrl), "items" in k && t(4, o = k.items), "allowHtmlSupport" in k && t(5, r = k.allowHtmlSupport), "value" in k && t(1, a = k.value), "placeHolder" in k && t(6, l = k.placeHolder), "lang" in k && t(7, c = k.lang), "valueChange" in k && t(8, u = k.valueChange), "stateChange" in k && t(9, d = k.stateChange);
59549
+ "insertImageServiceUrl" in k && t(2, i = k.insertImageServiceUrl), "getImageServiceUrl" in k && t(3, s = k.getImageServiceUrl), "items" in k && t(4, o = k.items), "allowHtmlSupport" in k && t(5, r = k.allowHtmlSupport), "value" in k && t(1, a = k.value), "placeHolder" in k && t(6, l = k.placeHolder), "lang" in k && t(7, c = k.lang), "valueChange" in k && t(8, u = k.valueChange), "stateChange" in k && t(9, d = k.stateChange), "sourceEditingModeChange" in k && t(10, h = k.sourceEditingModeChange);
59504
59550
  }, n.$$.update = () => {
59505
59551
  if (n.$$.dirty & /*editor, placeHolder*/
59506
- 8256) {
59552
+ 16448) {
59507
59553
  let k;
59508
- f != null && (k = f.editing.view.document.getRoot("main")) != null && k.placeholder != l && (k.placeholder = l);
59554
+ m != null && (k = m.editing.view.document.getRoot("main")) != null && k.placeholder != l && (k.placeholder = l);
59509
59555
  }
59510
59556
  }, [
59511
- m,
59557
+ p,
59512
59558
  a,
59513
59559
  i,
59514
59560
  s,
@@ -59519,10 +59565,11 @@ function DV(n, e, t) {
59519
59565
  u,
59520
59566
  d,
59521
59567
  h,
59522
- _,
59523
- y,
59524
59568
  f,
59525
- T
59569
+ y,
59570
+ T,
59571
+ m,
59572
+ D
59526
59573
  ];
59527
59574
  }
59528
59575
  class NV extends c1 {
@@ -59537,76 +59584,83 @@ class NV extends c1 {
59537
59584
  lang: 7,
59538
59585
  valueChange: 8,
59539
59586
  stateChange: 9,
59540
- getEditor: 10,
59541
- setCursorPositionAtPlaceholder: 11,
59542
- setCursorPositionFromJSONString: 12
59587
+ sourceEditingModeChange: 10,
59588
+ getEditor: 11,
59589
+ setCursorPositionAtPlaceholder: 12,
59590
+ setCursorPositionFromJSONString: 13
59543
59591
  });
59544
59592
  }
59545
59593
  get insertImageServiceUrl() {
59546
59594
  return this.$$.ctx[2];
59547
59595
  }
59548
59596
  set insertImageServiceUrl(e) {
59549
- this.$$set({ insertImageServiceUrl: e }), Ke();
59597
+ this.$$set({ insertImageServiceUrl: e }), Ue();
59550
59598
  }
59551
59599
  get getImageServiceUrl() {
59552
59600
  return this.$$.ctx[3];
59553
59601
  }
59554
59602
  set getImageServiceUrl(e) {
59555
- this.$$set({ getImageServiceUrl: e }), Ke();
59603
+ this.$$set({ getImageServiceUrl: e }), Ue();
59556
59604
  }
59557
59605
  get items() {
59558
59606
  return this.$$.ctx[4];
59559
59607
  }
59560
59608
  set items(e) {
59561
- this.$$set({ items: e }), Ke();
59609
+ this.$$set({ items: e }), Ue();
59562
59610
  }
59563
59611
  get allowHtmlSupport() {
59564
59612
  return this.$$.ctx[5];
59565
59613
  }
59566
59614
  set allowHtmlSupport(e) {
59567
- this.$$set({ allowHtmlSupport: e }), Ke();
59615
+ this.$$set({ allowHtmlSupport: e }), Ue();
59568
59616
  }
59569
59617
  get value() {
59570
59618
  return this.$$.ctx[1];
59571
59619
  }
59572
59620
  set value(e) {
59573
- this.$$set({ value: e }), Ke();
59621
+ this.$$set({ value: e }), Ue();
59574
59622
  }
59575
59623
  get placeHolder() {
59576
59624
  return this.$$.ctx[6];
59577
59625
  }
59578
59626
  set placeHolder(e) {
59579
- this.$$set({ placeHolder: e }), Ke();
59627
+ this.$$set({ placeHolder: e }), Ue();
59580
59628
  }
59581
59629
  get lang() {
59582
59630
  return this.$$.ctx[7];
59583
59631
  }
59584
59632
  set lang(e) {
59585
- this.$$set({ lang: e }), Ke();
59633
+ this.$$set({ lang: e }), Ue();
59586
59634
  }
59587
59635
  get valueChange() {
59588
59636
  return this.$$.ctx[8];
59589
59637
  }
59590
59638
  set valueChange(e) {
59591
- this.$$set({ valueChange: e }), Ke();
59639
+ this.$$set({ valueChange: e }), Ue();
59592
59640
  }
59593
59641
  get stateChange() {
59594
59642
  return this.$$.ctx[9];
59595
59643
  }
59596
59644
  set stateChange(e) {
59597
- this.$$set({ stateChange: e }), Ke();
59645
+ this.$$set({ stateChange: e }), Ue();
59598
59646
  }
59599
- get getEditor() {
59647
+ get sourceEditingModeChange() {
59600
59648
  return this.$$.ctx[10];
59601
59649
  }
59602
- get setCursorPositionAtPlaceholder() {
59650
+ set sourceEditingModeChange(e) {
59651
+ this.$$set({ sourceEditingModeChange: e }), Ue();
59652
+ }
59653
+ get getEditor() {
59603
59654
  return this.$$.ctx[11];
59604
59655
  }
59605
- get setCursorPositionFromJSONString() {
59656
+ get setCursorPositionAtPlaceholder() {
59606
59657
  return this.$$.ctx[12];
59607
59658
  }
59659
+ get setCursorPositionFromJSONString() {
59660
+ return this.$$.ctx[13];
59661
+ }
59608
59662
  }
59609
- customElements.define("ckeditor5-classic", l1(NV, { insertImageServiceUrl: {}, getImageServiceUrl: {}, items: {}, allowHtmlSupport: { type: "Boolean" }, value: {}, placeHolder: {}, lang: {}, valueChange: {}, stateChange: {} }, [], ["getEditor", "setCursorPositionAtPlaceholder", "setCursorPositionFromJSONString"], !1));
59663
+ customElements.define("ckeditor5-classic", l1(NV, { insertImageServiceUrl: {}, getImageServiceUrl: {}, items: {}, allowHtmlSupport: { type: "Boolean" }, value: {}, placeHolder: {}, lang: {}, valueChange: {}, stateChange: {}, sourceEditingModeChange: {} }, [], ["getEditor", "setCursorPositionAtPlaceholder", "setCursorPositionFromJSONString"], !1));
59610
59664
  export {
59611
59665
  o1 as A,
59612
59666
  ZV as B,
@@ -59618,7 +59672,7 @@ export {
59618
59672
  l1 as c,
59619
59673
  fh as d,
59620
59674
  mh as e,
59621
- Ke as f,
59675
+ Ue as f,
59622
59676
  zV as g,
59623
59677
  _a as h,
59624
59678
  a1 as i,