@qualityunit/liveagent-components-editor 0.0.71 → 0.0.72

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.
Files changed (78) hide show
  1. package/dist/{af.umd-C27ZwHJ2.js → af.umd-CoCIUNiI.js} +1 -1
  2. package/dist/{ar.umd-BLqp6CCu.js → ar.umd-BKx-W0tr.js} +1 -1
  3. package/dist/{ast.umd-C1rOWewa.js → ast.umd-Dt9er55p.js} +1 -1
  4. package/dist/{az.umd-CROTGXsE.js → az.umd-D5TIDqPL.js} +1 -1
  5. package/dist/{be.umd-Qd-Jcx0n.js → be.umd-BV_DlxOB.js} +1 -1
  6. package/dist/{bg.umd-EeLCsCEB.js → bg.umd-Dt3Zv_g2.js} +1 -1
  7. package/dist/{bn.umd-2LZ9jrjw.js → bn.umd-BTUSGy11.js} +1 -1
  8. package/dist/{bs.umd-Iz0RgF_1.js → bs.umd-Ka00MoQM.js} +1 -1
  9. package/dist/{ca.umd-atSfUWFM.js → ca.umd-suYFPD88.js} +1 -1
  10. package/dist/ckeditor.js +1 -1
  11. package/dist/{ckeditor5-CuUFvpkZ.js → ckeditor5-D2QErzM6.js} +5796 -5822
  12. package/dist/{cs.umd-IFA0pwhE.js → cs.umd-x7slclOK.js} +1 -1
  13. package/dist/{da.umd-D2ZFFi34.js → da.umd-UsYuB24Y.js} +1 -1
  14. package/dist/{de-ch.umd-CRQ4jf6E.js → de-ch.umd-EKfs1Qnx.js} +1 -1
  15. package/dist/{de.umd-BHOpnqY0.js → de.umd-CB9AMlqs.js} +1 -1
  16. package/dist/editor-lib.js +222 -222
  17. package/dist/{el.umd-CflvwW2M.js → el.umd-tuvbUJo4.js} +1 -1
  18. package/dist/{en-au.umd-D1_HV9RF.js → en-au.umd-BcG6sfUm.js} +1 -1
  19. package/dist/{en-gb.umd-DITv7FVz.js → en-gb.umd-NSV9Qdlu.js} +1 -1
  20. package/dist/{en.umd-CDqSUuQW.js → en.umd-BKxN81KV.js} +1 -1
  21. package/dist/{eo.umd-Co6XmKvy.js → eo.umd-Dqvg4nzj.js} +1 -1
  22. package/dist/{es-co.umd-yRqlp04o.js → es-co.umd-61MYjHwi.js} +1 -1
  23. package/dist/{es.umd-BO21W2ls.js → es.umd-DdqyA64B.js} +1 -1
  24. package/dist/{et.umd-DS2Y5pWq.js → et.umd-BV3UW_tC.js} +1 -1
  25. package/dist/{eu.umd-U1tl_Z9e.js → eu.umd-BAN8wIOf.js} +1 -1
  26. package/dist/{fa.umd-B8sUrCnR.js → fa.umd-ATBwAkw5.js} +1 -1
  27. package/dist/{fi.umd-BqknPWs9.js → fi.umd-BHrlTHK0.js} +1 -1
  28. package/dist/{fr.umd-D23X1P0I.js → fr.umd-Jw9Zons_.js} +1 -1
  29. package/dist/{gl.umd-hHLljZA5.js → gl.umd-CNkmhwB4.js} +1 -1
  30. package/dist/{gu.umd-C8U528M4.js → gu.umd-00lFmXPO.js} +1 -1
  31. package/dist/{he.umd-BOQOcM1n.js → he.umd-7YYyY1iF.js} +1 -1
  32. package/dist/{hi.umd-Ctr475eY.js → hi.umd-DYoMi-MS.js} +1 -1
  33. package/dist/{hr.umd-w7vqWz2Z.js → hr.umd-67glZ3-Q.js} +1 -1
  34. package/dist/{hu.umd-CQjaOaCp.js → hu.umd-Dq4gl_n0.js} +1 -1
  35. package/dist/{hy.umd-BF4x6itl.js → hy.umd-Cs-lvRRD.js} +1 -1
  36. package/dist/{id.umd-CNb5wswI.js → id.umd-Dhql4Jm5.js} +1 -1
  37. package/dist/{it.umd-D5PMLNGo.js → it.umd-CQdOmHYU.js} +1 -1
  38. package/dist/{ja.umd-Dg5Ik2YZ.js → ja.umd-BwE_47st.js} +1 -1
  39. package/dist/{jv.umd-BWiPxZjh.js → jv.umd-BIoAsCDY.js} +1 -1
  40. package/dist/{kk.umd-QWCeDj3y.js → kk.umd-z81sMhlB.js} +1 -1
  41. package/dist/{km.umd-tukqX_Lu.js → km.umd-B7T5YUVJ.js} +1 -1
  42. package/dist/{kn.umd-BSH4Bcln.js → kn.umd-CunVn2tZ.js} +1 -1
  43. package/dist/{ko.umd-WtTc6xzf.js → ko.umd-Dp3ihOvr.js} +1 -1
  44. package/dist/{ku.umd-CeueRibs.js → ku.umd-hQ62LNgB.js} +1 -1
  45. package/dist/liveagent-components-editor.css +1 -1
  46. package/dist/{lt.umd-oQ0FOVNf.js → lt.umd-B_O-6dkw.js} +1 -1
  47. package/dist/{lv.umd-_J3238CQ.js → lv.umd-DKo5KqYE.js} +1 -1
  48. package/dist/{ms.umd-DgNEyPk-.js → ms.umd-Co4PwjLY.js} +1 -1
  49. package/dist/{nb.umd-_MHIp5En.js → nb.umd-DkOROyFr.js} +1 -1
  50. package/dist/{ne.umd-BW5zcY9S.js → ne.umd-B86qIxZm.js} +1 -1
  51. package/dist/{nl.umd-DYnGxMhY.js → nl.umd-B_FlZ4io.js} +1 -1
  52. package/dist/{no.umd-B0jmgjbP.js → no.umd-BXUKz3dx.js} +1 -1
  53. package/dist/{oc.umd-COQXoRyJ.js → oc.umd-B0GCzXuk.js} +1 -1
  54. package/dist/{pl.umd-DnVNdQ7Q.js → pl.umd-IQ03Dkz8.js} +1 -1
  55. package/dist/{pt-br.umd-BvBvIw8z.js → pt-br.umd-CogbWFGo.js} +1 -1
  56. package/dist/{pt.umd-BfVbx6wK.js → pt.umd-CN26Y3Tb.js} +1 -1
  57. package/dist/{ro.umd-DXX856qe.js → ro.umd-D-o1WWDP.js} +1 -1
  58. package/dist/{ru.umd-D0vufQJu.js → ru.umd-BVY44pSM.js} +1 -1
  59. package/dist/{si.umd-Boa1nqDY.js → si.umd-Nd1OSre8.js} +1 -1
  60. package/dist/{sk.umd-guuNudzi.js → sk.umd-MtWhWNcQ.js} +1 -1
  61. package/dist/{sl.umd-CiM3fESL.js → sl.umd-BAr8B6P7.js} +1 -1
  62. package/dist/{sq.umd-Dc7jGda3.js → sq.umd-BDeZUk1u.js} +1 -1
  63. package/dist/{sr-latn.umd-BXMQGjVu.js → sr-latn.umd-CuzERsIu.js} +1 -1
  64. package/dist/{sr.umd-fiUwgjuB.js → sr.umd-CF2Z4YM1.js} +1 -1
  65. package/dist/{sv.umd-CIn156_E.js → sv.umd-Be99Ob3H.js} +1 -1
  66. package/dist/{th.umd-DEw48tHD.js → th.umd-buZ_rnbW.js} +1 -1
  67. package/dist/{ti.umd-BNvQsp3N.js → ti.umd-C2t_ph17.js} +1 -1
  68. package/dist/{tk.umd-B7UkQ7eG.js → tk.umd-Dy1Ej7GY.js} +1 -1
  69. package/dist/{tr.umd-BPtnVQce.js → tr.umd-B9uBlAvT.js} +1 -1
  70. package/dist/{tt.umd-DjpY-K4D.js → tt.umd-Brl4B-au.js} +1 -1
  71. package/dist/{ug.umd-3fy2fG9G.js → ug.umd-NH5UBnrj.js} +1 -1
  72. package/dist/{uk.umd-UQjUeNAz.js → uk.umd-yZf57C7C.js} +1 -1
  73. package/dist/{ur.umd-Cf0qVN-P.js → ur.umd-DKpS0nAJ.js} +1 -1
  74. package/dist/{uz.umd-tqNZF-B8.js → uz.umd-82L3dSKq.js} +1 -1
  75. package/dist/{vi.umd-D6BXvM2I.js → vi.umd-CKevk75k.js} +1 -1
  76. package/dist/{zh-cn.umd-CbKYIaRD.js → zh-cn.umd-5e8Uudpb.js} +1 -1
  77. package/dist/{zh.umd-RKAzErpU.js → zh.umd-D1EKfpud.js} +1 -1
  78. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { g as k } from "./ckeditor5-CuUFvpkZ.js";
1
+ import { g as k } from "./ckeditor5-D2QErzM6.js";
2
2
  function m(e, n) {
3
3
  for (var a = 0; a < n.length; a++) {
4
4
  const t = n[a];
@@ -1,4 +1,4 @@
1
- import { g as d } from "./ckeditor5-CuUFvpkZ.js";
1
+ import { g as d } from "./ckeditor5-D2QErzM6.js";
2
2
  function g(e, a) {
3
3
  for (var i = 0; i < a.length; i++) {
4
4
  const t = a[i];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-CuUFvpkZ.js";
1
+ import { g as c } from "./ckeditor5-D2QErzM6.js";
2
2
  function g(e, l) {
3
3
  for (var i = 0; i < l.length; i++) {
4
4
  const t = l[i];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-CuUFvpkZ.js";
1
+ import { g as c } from "./ckeditor5-D2QErzM6.js";
2
2
  function h(e, a) {
3
3
  for (var i = 0; i < a.length; i++) {
4
4
  const t = a[i];
@@ -1,369 +1,369 @@
1
- import { b as Q, E as oe, r as k, a as w, p as q, U as ve, h as g, c as W, d as $, H as ce, e as j, f as B, s as F, i as I, j as y, k as A, l as _e, I as U, m as ee, n as Z, o as he, q as de, t as z, u as be, v as ge, w as me, x as Ee, y as pe, z as Te, A as ye, B as Ae, C as Ie, D as Ne, N as Se, F as Me, G as He, J as ke, K as we, L as Re, M as Ce, O as te, P as ae, Q as Le, R as M, S as re, T as D, V, W as R, X as ne, Y as H, Z as C, _ as K, $ as L, a0 as De, a1 as Pe, a2 as Oe, a3 as Ue } from "./ckeditor5-CuUFvpkZ.js";
2
- function Ve(e, t, [a, r] = [0, 0]) {
3
- g && a === 0 && W();
4
- var n = e, l = null, f = null, o = ve, _ = a > 0 ? oe : 0, d = !1;
5
- const i = (u, s = !0) => {
6
- d = !0, c(s, u);
7
- }, c = (u, s) => {
8
- if (o === (o = u)) return;
9
- let v = !1;
1
+ import { b as W, E as oe, r as w, a as C, p as B, U as ce, h as g, c as $, d as j, H as _e, e as ee, f as F, s as K, i as N, j as A, k as p, l as he, I as V, m as ae, n as z, o as de, q as be, t as G, u as ge, v as Ee, w as me, x as pe, y as Te, z as ye, A as Ae, B as Ne, C as Ie, D as Me, F as Se, N as He, G as ke, J as we, K as Ce, L as Re, M as S, O as De, P as te, Q as re, R as Le, S as H, T as se, V as O, W as x, X as R, Y as ne, Z as k, _ as D, $ as X, a0 as L, a1 as Oe, a2 as Pe, a3 as Ue, a4 as Ve } from "./ckeditor5-D2QErzM6.js";
2
+ function xe(e, a, [t, r] = [0, 0]) {
3
+ g && t === 0 && $();
4
+ var s = e, l = null, u = null, o = ce, _ = t > 0 ? oe : 0, d = !1;
5
+ const i = (f, n = !0) => {
6
+ d = !0, v(n, f);
7
+ }, v = (f, n) => {
8
+ if (o === (o = f)) return;
9
+ let c = !1;
10
10
  if (g && r !== -1) {
11
- if (a === 0) {
12
- const b = $(n);
13
- b === ce ? r = 0 : b === j ? r = 1 / 0 : (r = parseInt(b.substring(1)), r !== r && (r = o ? 1 / 0 : -1));
11
+ if (t === 0) {
12
+ const b = j(s);
13
+ b === _e ? r = 0 : b === ee ? r = 1 / 0 : (r = parseInt(b.substring(1)), r !== r && (r = o ? 1 / 0 : -1));
14
14
  }
15
- const m = r > a;
16
- !!o === m && (n = B(), F(n), I(!1), v = !0, r = -1);
15
+ const E = r > t;
16
+ !!o === E && (s = F(), K(s), N(!1), c = !0, r = -1);
17
17
  }
18
- o ? (l ? k(l) : s && (l = w(() => s(n))), f && q(f, () => {
19
- f = null;
20
- })) : (f ? k(f) : s && (f = w(() => s(n, [a + 1, r]))), l && q(l, () => {
18
+ o ? (l ? w(l) : n && (l = C(() => n(s))), u && B(u, () => {
19
+ u = null;
20
+ })) : (u ? w(u) : n && (u = C(() => n(s, [t + 1, r]))), l && B(l, () => {
21
21
  l = null;
22
- })), v && I(!0);
22
+ })), c && N(!0);
23
23
  };
24
- Q(() => {
25
- d = !1, t(i), d || c(null, null);
26
- }, _), g && (n = y);
24
+ W(() => {
25
+ d = !1, a(i), d || v(null, null);
26
+ }, _), g && (s = A);
27
27
  }
28
- function xe(e, t) {
29
- return t;
28
+ function Ye(e, a) {
29
+ return a;
30
30
  }
31
- function Ye(e, t, a, r) {
32
- for (var n = [], l = t.length, f = 0; f < l; f++)
33
- me(t[f].e, n, !0);
34
- var o = l > 0 && n.length === 0 && a !== null;
31
+ function qe(e, a, t, r) {
32
+ for (var s = [], l = a.length, u = 0; u < l; u++)
33
+ me(a[u].e, s, !0);
34
+ var o = l > 0 && s.length === 0 && t !== null;
35
35
  if (o) {
36
36
  var _ = (
37
37
  /** @type {Element} */
38
38
  /** @type {Element} */
39
- a.parentNode
39
+ t.parentNode
40
40
  );
41
- Ee(_), _.append(
41
+ pe(_), _.append(
42
42
  /** @type {Element} */
43
- a
44
- ), r.clear(), T(e, t[0].prev, t[l - 1].next);
43
+ t
44
+ ), r.clear(), y(e, a[0].prev, a[l - 1].next);
45
45
  }
46
- pe(n, () => {
46
+ Te(s, () => {
47
47
  for (var d = 0; d < l; d++) {
48
- var i = t[d];
49
- o || (r.delete(i.k), T(e, i.prev, i.next)), Te(i.e, !o);
48
+ var i = a[d];
49
+ o || (r.delete(i.k), y(e, i.prev, i.next)), ye(i.e, !o);
50
50
  }
51
51
  });
52
52
  }
53
- function qe(e, t, a, r, n, l = null) {
54
- var f = e, o = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
55
- g && W();
56
- var _ = null, d = !1, i = _e(() => {
57
- var c = a();
58
- return be(c) ? c : c == null ? [] : ee(c);
53
+ function Be(e, a, t, r, s, l = null) {
54
+ var u = e, o = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
55
+ g && $();
56
+ var _ = null, d = !1, i = he(() => {
57
+ var v = t();
58
+ return ge(v) ? v : v == null ? [] : ae(v);
59
59
  });
60
- Q(() => {
61
- var c = A(i), u = c.length;
62
- if (d && u === 0)
60
+ W(() => {
61
+ var v = p(i), f = v.length;
62
+ if (d && f === 0)
63
63
  return;
64
- d = u === 0;
65
- let s = !1;
64
+ d = f === 0;
65
+ let n = !1;
66
66
  if (g) {
67
- var v = $(f) === j;
68
- v !== (u === 0) && (f = B(), F(f), I(!1), s = !0);
67
+ var c = j(u) === ee;
68
+ c !== (f === 0) && (u = F(), K(u), N(!1), n = !0);
69
69
  }
70
70
  if (g) {
71
- for (var m = null, b, h = 0; h < u; h++) {
72
- if (y.nodeType === 8 && /** @type {Comment} */
73
- y.data === Ne) {
74
- f = /** @type {Comment} */
75
- y, s = !0, I(!1);
71
+ for (var E = null, b, h = 0; h < f; h++) {
72
+ if (A.nodeType === Me && /** @type {Comment} */
73
+ A.data === Se) {
74
+ u = /** @type {Comment} */
75
+ A, n = !0, N(!1);
76
76
  break;
77
77
  }
78
- var E = c[h], N = r(E, h);
79
- b = se(
80
- y,
78
+ var m = v[h], I = r(m, h);
79
+ b = le(
80
+ A,
81
81
  o,
82
- m,
83
- null,
84
82
  E,
85
- N,
83
+ null,
84
+ m,
85
+ I,
86
86
  h,
87
- n,
88
- t,
89
- a
90
- ), o.items.set(N, b), m = b;
87
+ s,
88
+ a,
89
+ t
90
+ ), o.items.set(I, b), E = b;
91
91
  }
92
- u > 0 && F(B());
92
+ f > 0 && K(F());
93
93
  }
94
- g || Be(c, o, f, n, t, r, a), l !== null && (u === 0 ? _ ? k(_) : _ = w(() => l(f)) : _ !== null && q(_, () => {
94
+ g || Fe(v, o, u, s, a, r, t), l !== null && (f === 0 ? _ ? w(_) : _ = C(() => l(u)) : _ !== null && B(_, () => {
95
95
  _ = null;
96
- })), s && I(!0), A(i);
97
- }), g && (f = y);
96
+ })), n && N(!0), p(i);
97
+ }), g && (u = A);
98
98
  }
99
- function Be(e, t, a, r, n, l, f) {
100
- var o = e.length, _ = t.items, d = t.first, i = d, c, u = null, s = [], v = [], m, b, h, E;
101
- for (E = 0; E < o; E += 1) {
102
- if (m = e[E], b = l(m, E), h = _.get(b), h === void 0) {
103
- var N = i ? (
99
+ function Fe(e, a, t, r, s, l, u) {
100
+ var o = e.length, _ = a.items, d = a.first, i = d, v, f = null, n = [], c = [], E, b, h, m;
101
+ for (m = 0; m < o; m += 1) {
102
+ if (E = e[m], b = l(E, m), h = _.get(b), h === void 0) {
103
+ var I = i ? (
104
104
  /** @type {TemplateNode} */
105
105
  i.e.nodes_start
106
- ) : a;
107
- u = se(
108
- N,
109
- t,
110
- u,
111
- u === null ? t.first : u.next,
112
- m,
113
- b,
106
+ ) : t;
107
+ f = le(
108
+ I,
109
+ a,
110
+ f,
111
+ f === null ? a.first : f.next,
114
112
  E,
113
+ b,
114
+ m,
115
115
  r,
116
- n,
117
- f
118
- ), _.set(b, u), s = [], v = [], i = u.next;
116
+ s,
117
+ u
118
+ ), _.set(b, f), n = [], c = [], i = f.next;
119
119
  continue;
120
120
  }
121
- if (Fe(h, m, E), (h.e.f & U) !== 0 && k(h.e), h !== i) {
122
- if (c !== void 0 && c.has(h)) {
123
- if (s.length < v.length) {
124
- var S = v[0], p;
125
- u = S.prev;
126
- var X = s[0], P = s[s.length - 1];
127
- for (p = 0; p < s.length; p += 1)
128
- G(s[p], S, a);
129
- for (p = 0; p < v.length; p += 1)
130
- c.delete(v[p]);
131
- T(t, X.prev, P.next), T(t, u, X), T(t, P, S), i = S, u = P, E -= 1, s = [], v = [];
121
+ if (Ke(h, E, m), (h.e.f & V) !== 0 && w(h.e), h !== i) {
122
+ if (v !== void 0 && v.has(h)) {
123
+ if (n.length < c.length) {
124
+ var M = c[0], T;
125
+ f = M.prev;
126
+ var Z = n[0], P = n[n.length - 1];
127
+ for (T = 0; T < n.length; T += 1)
128
+ J(n[T], M, t);
129
+ for (T = 0; T < c.length; T += 1)
130
+ v.delete(c[T]);
131
+ y(a, Z.prev, P.next), y(a, f, Z), y(a, P, M), i = M, f = P, m -= 1, n = [], c = [];
132
132
  } else
133
- c.delete(h), G(h, i, a), T(t, h.prev, h.next), T(t, h, u === null ? t.first : u.next), T(t, u, h), u = h;
133
+ v.delete(h), J(h, i, t), y(a, h.prev, h.next), y(a, h, f === null ? a.first : f.next), y(a, f, h), f = h;
134
134
  continue;
135
135
  }
136
- for (s = [], v = []; i !== null && i.k !== b; )
137
- (i.e.f & U) === 0 && (c ?? (c = /* @__PURE__ */ new Set())).add(i), v.push(i), i = i.next;
136
+ for (n = [], c = []; i !== null && i.k !== b; )
137
+ (i.e.f & V) === 0 && (v ?? (v = /* @__PURE__ */ new Set())).add(i), c.push(i), i = i.next;
138
138
  if (i === null)
139
139
  continue;
140
140
  h = i;
141
141
  }
142
- s.push(h), u = h, i = h.next;
142
+ n.push(h), f = h, i = h.next;
143
143
  }
144
- if (i !== null || c !== void 0) {
145
- for (var O = c === void 0 ? [] : ee(c); i !== null; )
146
- (i.e.f & U) === 0 && O.push(i), i = i.next;
147
- var ue = O.length;
144
+ if (i !== null || v !== void 0) {
145
+ for (var U = v === void 0 ? [] : ae(v); i !== null; )
146
+ (i.e.f & V) === 0 && U.push(i), i = i.next;
147
+ var ue = U.length;
148
148
  if (ue > 0) {
149
- var fe = null;
150
- Ye(t, O, fe, _);
149
+ var ve = null;
150
+ qe(a, U, ve, _);
151
151
  }
152
152
  }
153
- Z.first = t.first && t.first.e, Z.last = u && u.e;
153
+ z.first = a.first && a.first.e, z.last = f && f.e;
154
154
  }
155
- function Fe(e, t, a, r) {
156
- he(e.v, t), e.i = a;
155
+ function Ke(e, a, t, r) {
156
+ de(e.v, a), e.i = t;
157
157
  }
158
- function se(e, t, a, r, n, l, f, o, _, d) {
159
- var i = (_ & Ae) !== 0, c = (_ & Ie) === 0, u = i ? c ? de(n) : z(n) : n, s = (_ & ge) === 0 ? f : z(f), v = {
160
- i: s,
161
- v: u,
158
+ function le(e, a, t, r, s, l, u, o, _, d) {
159
+ var i = (_ & Ne) !== 0, v = (_ & Ie) === 0, f = i ? v ? be(s, !1, !1) : G(s) : s, n = (_ & Ee) === 0 ? u : G(u), c = {
160
+ i: n,
161
+ v: f,
162
162
  k: l,
163
163
  a: null,
164
164
  // @ts-expect-error
165
165
  e: null,
166
- prev: a,
166
+ prev: t,
167
167
  next: r
168
168
  };
169
169
  try {
170
- return v.e = w(() => o(e, u, s, d), g), v.e.prev = a && a.e, v.e.next = r && r.e, a === null ? t.first = v : (a.next = v, a.e.next = v.e), r !== null && (r.prev = v, r.e.prev = v.e), v;
170
+ return c.e = C(() => o(e, f, n, d), g), c.e.prev = t && t.e, c.e.next = r && r.e, t === null ? a.first = c : (t.next = c, t.e.next = c.e), r !== null && (r.prev = c, r.e.prev = c.e), c;
171
171
  } finally {
172
172
  }
173
173
  }
174
- function G(e, t, a) {
174
+ function J(e, a, t) {
175
175
  for (var r = e.next ? (
176
176
  /** @type {TemplateNode} */
177
177
  e.next.e.nodes_start
178
- ) : a, n = t ? (
178
+ ) : t, s = a ? (
179
179
  /** @type {TemplateNode} */
180
- t.e.nodes_start
181
- ) : a, l = (
180
+ a.e.nodes_start
181
+ ) : t, l = (
182
182
  /** @type {TemplateNode} */
183
183
  e.e.nodes_start
184
184
  ); l !== r; ) {
185
- var f = (
185
+ var u = (
186
186
  /** @type {TemplateNode} */
187
- ye(l)
187
+ Ae(l)
188
188
  );
189
- n.before(l), l = f;
189
+ s.before(l), l = u;
190
190
  }
191
191
  }
192
- function T(e, t, a) {
193
- t === null ? e.first = a : (t.next = a, t.e.next = a && a.e), a !== null && (a.prev = t, a.e.prev = t && t.e);
192
+ function y(e, a, t) {
193
+ a === null ? e.first = t : (a.next = t, a.e.next = t && t.e), t !== null && (t.prev = a, t.e.prev = a && a.e);
194
194
  }
195
- function le(e) {
196
- var t, a, r = "";
195
+ function ie(e) {
196
+ var a, t, r = "";
197
197
  if (typeof e == "string" || typeof e == "number") r += e;
198
198
  else if (typeof e == "object") if (Array.isArray(e)) {
199
- var n = e.length;
200
- for (t = 0; t < n; t++) e[t] && (a = le(e[t])) && (r && (r += " "), r += a);
201
- } else for (a in e) e[a] && (r && (r += " "), r += a);
199
+ var s = e.length;
200
+ for (a = 0; a < s; a++) e[a] && (t = ie(e[a])) && (r && (r += " "), r += t);
201
+ } else for (t in e) e[t] && (r && (r += " "), r += t);
202
202
  return r;
203
203
  }
204
- function Ke() {
205
- for (var e, t, a = 0, r = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = le(e)) && (r && (r += " "), r += t);
204
+ function Xe() {
205
+ for (var e, a, t = 0, r = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (a = ie(e)) && (r && (r += " "), r += a);
206
206
  return r;
207
207
  }
208
- function Xe(e) {
209
- return typeof e == "object" ? Ke(e) : e ?? "";
208
+ function Ze(e) {
209
+ return typeof e == "object" ? Xe(e) : e ?? "";
210
210
  }
211
- function Ze(e, t, a) {
211
+ function ze(e, a, t) {
212
212
  var r = e == null ? "" : "" + e;
213
213
  return r === "" ? null : r;
214
214
  }
215
- function ze(e, t, a, r, n, l) {
216
- var f = e.__className;
217
- if (g || f !== a || f === void 0) {
218
- var o = Ze(a);
219
- (!g || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e.__className = a;
215
+ function Ge(e, a, t, r, s, l) {
216
+ var u = e.__className;
217
+ if (g || u !== t || u === void 0) {
218
+ var o = ze(t);
219
+ (!g || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e.__className = t;
220
220
  }
221
221
  return l;
222
222
  }
223
- const Ge = Symbol("is custom element"), Je = Symbol("is html");
224
- function Qe(e, t, a, r) {
225
- var n = We(e);
226
- g && (n[t] = e.getAttribute(t)), n[t] !== (n[t] = a) && (a == null ? e.removeAttribute(t) : typeof a != "string" && $e(e).includes(t) ? e[t] = a : e.setAttribute(t, a));
223
+ const Je = Symbol("is custom element"), Qe = Symbol("is html");
224
+ function We(e, a, t, r) {
225
+ var s = $e(e);
226
+ g && (s[a] = e.getAttribute(a)), s[a] !== (s[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && je(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
227
227
  }
228
- function We(e) {
228
+ function $e(e) {
229
229
  return (
230
230
  /** @type {Record<string | symbol, unknown>} **/
231
231
  // @ts-expect-error
232
232
  e.__attributes ?? (e.__attributes = {
233
- [Ge]: e.nodeName.includes("-"),
234
- [Je]: e.namespaceURI === Se
233
+ [Je]: e.nodeName.includes("-"),
234
+ [Qe]: e.namespaceURI === He
235
235
  })
236
236
  );
237
237
  }
238
- var J = /* @__PURE__ */ new Map();
239
- function $e(e) {
240
- var t = J.get(e.nodeName);
241
- if (t) return t;
242
- J.set(e.nodeName, t = []);
243
- for (var a, r = e, n = Element.prototype; n !== r; ) {
244
- a = He(r);
245
- for (var l in a)
246
- a[l].set && t.push(l);
247
- r = Me(r);
238
+ var Q = /* @__PURE__ */ new Map();
239
+ function je(e) {
240
+ var a = Q.get(e.nodeName);
241
+ if (a) return a;
242
+ Q.set(e.nodeName, a = []);
243
+ for (var t, r = e, s = Element.prototype; s !== r; ) {
244
+ t = we(r);
245
+ for (var l in t)
246
+ t[l].set && a.push(l);
247
+ r = ke(r);
248
248
  }
249
- return t;
249
+ return a;
250
250
  }
251
- function je(e, t, a = t) {
252
- var r = ke();
253
- we(e, "input", (n) => {
254
- var l = n ? e.defaultValue : e.value;
255
- if (l = x(e) ? Y(l) : l, a(l), r && l !== (l = t())) {
256
- var f = e.selectionStart, o = e.selectionEnd;
257
- e.value = l ?? "", o !== null && (e.selectionStart = f, e.selectionEnd = Math.min(o, e.value.length));
251
+ function ea(e, a, t = a) {
252
+ var r = Ce();
253
+ Re(e, "input", (s) => {
254
+ var l = s ? e.defaultValue : e.value;
255
+ if (l = Y(e) ? q(l) : l, t(l), r && l !== (l = a())) {
256
+ var u = e.selectionStart, o = e.selectionEnd;
257
+ e.value = l ?? "", o !== null && (e.selectionStart = u, e.selectionEnd = Math.min(o, e.value.length));
258
258
  }
259
259
  }), // If we are hydrating and the value has since changed,
260
260
  // then use the updated value from the input instead.
261
261
  (g && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
262
262
  // TODO Svelte 6: remove input.value check and set to empty string?
263
- Re(t) == null && e.value) && a(x(e) ? Y(e.value) : e.value), Ce(() => {
264
- var n = t();
265
- x(e) && n === Y(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
263
+ S(a) == null && e.value) && t(Y(e) ? q(e.value) : e.value), De(() => {
264
+ var s = a();
265
+ Y(e) && s === q(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
266
266
  });
267
267
  }
268
- function x(e) {
269
- var t = e.type;
270
- return t === "number" || t === "range";
271
- }
272
268
  function Y(e) {
269
+ var a = e.type;
270
+ return a === "number" || a === "range";
271
+ }
272
+ function q(e) {
273
273
  return e === "" ? null : +e;
274
274
  }
275
- var et = D("<button> </button>"), tt = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
276
- function ie(e, t) {
277
- ae(t, !1);
278
- const a = Le();
279
- let r = M(t, "buttons", 28, () => []);
280
- function n() {
281
- a("html", {});
275
+ var aa = O("<button> </button>"), ta = O('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
276
+ function fe(e, a) {
277
+ re(a, !1);
278
+ const t = Le();
279
+ let r = H(a, "buttons", 28, () => []);
280
+ function s() {
281
+ t("html", {});
282
282
  }
283
283
  function l() {
284
- a("plain", {});
284
+ t("plain", {});
285
285
  }
286
- re();
287
- var f = tt(), o = C(f), _ = K(o, 2), d = K(_, 2);
288
- return qe(d, 1, r, xe, (i, c) => {
289
- var u = et(), s = C(u, !0);
290
- L(u), De(() => {
291
- ze(u, 1, Xe(A(c).style)), Qe(u, "title", A(c).text), Pe(s, A(c).text);
292
- }), V("click", u, function(...v) {
293
- var m;
294
- (m = A(c).handler) == null || m.apply(this, v);
295
- }), R(i, u);
296
- }), L(f), V("click", o, n), V("click", _, l), R(e, f), ne({
286
+ se();
287
+ var u = ta(), o = D(u), _ = X(o, 2), d = X(_, 2);
288
+ return Be(d, 1, r, Ye, (i, v) => {
289
+ var f = aa(), n = D(f, !0);
290
+ L(f), Oe(() => {
291
+ Ge(f, 1, Ze((p(v), S(() => p(v).style)))), We(f, "title", (p(v), S(() => p(v).text))), Pe(n, (p(v), S(() => p(v).text)));
292
+ }), x("click", f, function(...c) {
293
+ var E;
294
+ (E = p(v).handler) == null || E.apply(this, c);
295
+ }), R(i, f);
296
+ }), L(u), x("click", o, s), x("click", _, l), R(e, u), ne({
297
297
  get buttons() {
298
298
  return r();
299
299
  },
300
300
  set buttons(i) {
301
- r(i), H();
301
+ r(i), k();
302
302
  }
303
303
  });
304
304
  }
305
- te(ie, { buttons: {} }, [], [], !0);
306
- var at = D("<textarea></textarea>"), rt = D('<main><div class="Editor"><!></div> <!></main>');
307
- function nt(e, t) {
308
- ae(t, !1);
309
- let a = M(t, "value", 12, ""), r = M(t, "buttons", 28, () => []), n = M(t, "html", 12, !0);
305
+ te(fe, { buttons: {} }, [], [], !0);
306
+ var ra = O("<textarea></textarea>"), sa = O('<main><div class="Editor"><!></div> <!></main>');
307
+ function na(e, a) {
308
+ re(a, !1);
309
+ let t = H(a, "value", 12, ""), r = H(a, "buttons", 28, () => []), s = H(a, "html", 12, !0);
310
310
  function l() {
311
- n() || n(!0);
311
+ s() || s(!0);
312
312
  }
313
- function f() {
314
- n() && (a(a().replace(/<[^>]*>?/gm, "")), n(!1));
313
+ function u() {
314
+ s() && (t(t().replace(/<[^>]*>?/gm, "")), s(!1));
315
315
  }
316
- re();
317
- var o = rt(), _ = C(o), d = C(_);
316
+ se();
317
+ var o = sa(), _ = D(o), d = D(_);
318
318
  {
319
- var i = (s) => {
320
- Oe(s, {
319
+ var i = (n) => {
320
+ Ue(n, {
321
321
  get value() {
322
- return a();
322
+ return t();
323
323
  },
324
- set value(v) {
325
- a(v);
324
+ set value(c) {
325
+ t(c);
326
326
  },
327
327
  $$legacy: !0
328
328
  });
329
- }, c = (s) => {
330
- var v = at();
331
- Ue(v), je(v, a), R(s, v);
329
+ }, v = (n) => {
330
+ var c = ra();
331
+ Ve(c), ea(c, t), R(n, c);
332
332
  };
333
- Ve(d, (s) => {
334
- n() ? s(i) : s(c, !1);
333
+ xe(d, (n) => {
334
+ s() ? n(i) : n(v, !1);
335
335
  });
336
336
  }
337
337
  L(_);
338
- var u = K(_, 2);
339
- return ie(u, {
338
+ var f = X(_, 2);
339
+ return fe(f, {
340
340
  get buttons() {
341
341
  return r();
342
342
  },
343
- set buttons(s) {
344
- r(s);
343
+ set buttons(n) {
344
+ r(n);
345
345
  },
346
- $$events: { html: l, plain: f },
346
+ $$events: { html: l, plain: u },
347
347
  $$legacy: !0
348
348
  }), L(o), R(e, o), ne({
349
349
  get value() {
350
- return a();
350
+ return t();
351
351
  },
352
- set value(s) {
353
- a(s), H();
352
+ set value(n) {
353
+ t(n), k();
354
354
  },
355
355
  get buttons() {
356
356
  return r();
357
357
  },
358
- set buttons(s) {
359
- r(s), H();
358
+ set buttons(n) {
359
+ r(n), k();
360
360
  },
361
361
  get html() {
362
- return n();
362
+ return s();
363
363
  },
364
- set html(s) {
365
- n(s), H();
364
+ set html(n) {
365
+ s(n), k();
366
366
  }
367
367
  });
368
368
  }
369
- customElements.define("switchable-editor", te(nt, { value: {}, buttons: {}, html: {} }, [], [], !1));
369
+ customElements.define("switchable-editor", te(na, { value: {}, buttons: {}, html: {} }, [], [], !1));
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-CuUFvpkZ.js";
1
+ import { g as c } from "./ckeditor5-D2QErzM6.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-CuUFvpkZ.js";
1
+ import { g as c } from "./ckeditor5-D2QErzM6.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];