@qualityunit/liveagent-components-editor 0.0.61 → 0.0.62

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 (76) hide show
  1. package/dist/{af.umd-DJgTWlsL.js → af.umd-D8Oq4WTB.js} +1 -1
  2. package/dist/{ar.umd-CEenera_.js → ar.umd-B-Ip_iuO.js} +1 -1
  3. package/dist/{ast.umd-DO0Ecd2b.js → ast.umd-CUlJY99W.js} +1 -1
  4. package/dist/{az.umd-DuaW-p9q.js → az.umd-B44eCMx6.js} +1 -1
  5. package/dist/{bg.umd-vcVAOS2Y.js → bg.umd-42JniZfP.js} +1 -1
  6. package/dist/{bn.umd-BmGNaHsR.js → bn.umd-BHchKczN.js} +1 -1
  7. package/dist/{bs.umd-DfbE2r0g.js → bs.umd-BvyepSSX.js} +1 -1
  8. package/dist/{ca.umd-CajnMwgk.js → ca.umd-tyduLD1S.js} +1 -1
  9. package/dist/ckeditor.js +1 -1
  10. package/dist/{ckeditor5-C2vyCKKC.js → ckeditor5-CiFYmPZ9.js} +10595 -10533
  11. package/dist/{cs.umd-CI0oxNr9.js → cs.umd-DXWvj9EV.js} +1 -1
  12. package/dist/{da.umd-0EFTFo4o.js → da.umd-Bd5DgCS1.js} +1 -1
  13. package/dist/{de-ch.umd-C1t5LE9G.js → de-ch.umd-C-WR8x4v.js} +1 -1
  14. package/dist/{de.umd-DB91BwuG.js → de.umd-mPonvjxM.js} +1 -1
  15. package/dist/editor-lib.js +232 -242
  16. package/dist/{el.umd-a5nJRPb2.js → el.umd-D7VoBc43.js} +1 -1
  17. package/dist/{en-au.umd-Bg2zj2Hd.js → en-au.umd-JDcdZnRa.js} +1 -1
  18. package/dist/{en-gb.umd-BGivOIyC.js → en-gb.umd-D_0_KgPT.js} +1 -1
  19. package/dist/{en.umd-bLHNF1Em.js → en.umd-BnbOY9Qu.js} +1 -1
  20. package/dist/{eo.umd-C_5yKsQJ.js → eo.umd-BiQR7po-.js} +1 -1
  21. package/dist/{es-co.umd-CKZBMbGL.js → es-co.umd-DTIQQjoV.js} +1 -1
  22. package/dist/{es.umd-Bi_K3ZbQ.js → es.umd-TNcpnu1Y.js} +1 -1
  23. package/dist/{et.umd-BiZlniQp.js → et.umd-DYKfuslq.js} +1 -1
  24. package/dist/{eu.umd-DLtP96ya.js → eu.umd-BUEnbYAn.js} +1 -1
  25. package/dist/{fa.umd-BppZGyYu.js → fa.umd-BihUafdI.js} +1 -1
  26. package/dist/{fi.umd-DJD7DJC7.js → fi.umd-DcikNVX8.js} +1 -1
  27. package/dist/{fr.umd-DLyuN5uu.js → fr.umd-CogJltaH.js} +1 -1
  28. package/dist/{gl.umd-D2KCJfv9.js → gl.umd-BBgTjviU.js} +1 -1
  29. package/dist/{gu.umd-DStme9fo.js → gu.umd-BD8BDDvf.js} +1 -1
  30. package/dist/{he.umd-Bi9YZgI7.js → he.umd-8Yy_M3HI.js} +1 -1
  31. package/dist/{hi.umd-BjKVZui-.js → hi.umd-BJC6gQjX.js} +1 -1
  32. package/dist/{hr.umd-N-5MWsFC.js → hr.umd-BVZP_7DC.js} +1 -1
  33. package/dist/{hu.umd-tVwaCeuy.js → hu.umd-B1ljVM63.js} +1 -1
  34. package/dist/{hy.umd-DMbG4xYU.js → hy.umd-BQbvkH0r.js} +1 -1
  35. package/dist/{id.umd-CKKYOsBX.js → id.umd-BBPTZ6gc.js} +1 -1
  36. package/dist/{it.umd-DkrHfjNT.js → it.umd-CMeJcd5z.js} +1 -1
  37. package/dist/{ja.umd-CmFXZxsL.js → ja.umd-egYXQ0Cr.js} +1 -1
  38. package/dist/{jv.umd-CsbAOsTr.js → jv.umd-BN_ztzb1.js} +1 -1
  39. package/dist/{kk.umd-C6oyDx78.js → kk.umd-DRyORDrc.js} +1 -1
  40. package/dist/{km.umd-BsF3vc5x.js → km.umd-B0WDv1v4.js} +1 -1
  41. package/dist/{kn.umd-Bo_w-Vtz.js → kn.umd-BTY-xN5c.js} +1 -1
  42. package/dist/{ko.umd-4lbSwGuK.js → ko.umd-CcMqy_T9.js} +1 -1
  43. package/dist/{ku.umd-CQ_DGM3J.js → ku.umd-DC6UnrKQ.js} +1 -1
  44. package/dist/{lt.umd-B8tx6SZq.js → lt.umd-CbeO7ZRQ.js} +1 -1
  45. package/dist/{lv.umd-CzeEJwpj.js → lv.umd-C3R_We0j.js} +1 -1
  46. package/dist/{ms.umd-Buv_vMt4.js → ms.umd-zSDX-nep.js} +1 -1
  47. package/dist/{nb.umd-CJQaAb_F.js → nb.umd-D51nq2uV.js} +1 -1
  48. package/dist/{ne.umd-DI4lgYgL.js → ne.umd-CUwiN9ji.js} +1 -1
  49. package/dist/{nl.umd-D2fMONAX.js → nl.umd-KYKzSp0A.js} +1 -1
  50. package/dist/{no.umd-BwegLmU9.js → no.umd-DvNqhm3y.js} +1 -1
  51. package/dist/{oc.umd-O4H-d-Uj.js → oc.umd-AqbDyTQh.js} +1 -1
  52. package/dist/{pl.umd-BFZd5t49.js → pl.umd-a48uNdyI.js} +1 -1
  53. package/dist/{pt-br.umd-BLrZHCVA.js → pt-br.umd-Dl6ibQ5e.js} +1 -1
  54. package/dist/{pt.umd-DTWGcxwT.js → pt.umd-CzLLUCAO.js} +1 -1
  55. package/dist/{ro.umd-D-7-K1LV.js → ro.umd-Cof6hEHy.js} +1 -1
  56. package/dist/{ru.umd-ByslxoTY.js → ru.umd-CCZ9LtLS.js} +1 -1
  57. package/dist/{si.umd-TLviMQku.js → si.umd-C-324APQ.js} +1 -1
  58. package/dist/{sk.umd-A8qA-BvO.js → sk.umd-SkNipKIM.js} +1 -1
  59. package/dist/{sl.umd-D75X7pzl.js → sl.umd-8rOS-has.js} +1 -1
  60. package/dist/{sq.umd-eKwTpm0q.js → sq.umd-B7CbcRfG.js} +1 -1
  61. package/dist/{sr-latn.umd-CbE2rvwV.js → sr-latn.umd-Dm54k4hO.js} +1 -1
  62. package/dist/{sr.umd-DY8E5KQY.js → sr.umd-B4ssFkxa.js} +1 -1
  63. package/dist/{sv.umd-WJjU0io2.js → sv.umd-CoiRjSUG.js} +1 -1
  64. package/dist/{th.umd-5HwupYqp.js → th.umd-BYiiKbpg.js} +1 -1
  65. package/dist/{ti.umd-Cj_fIBjJ.js → ti.umd-Bg-92Hf4.js} +1 -1
  66. package/dist/{tk.umd-BlsZV5Te.js → tk.umd-Cf6HghuD.js} +1 -1
  67. package/dist/{tr.umd-DfmzXrOZ.js → tr.umd-C2XnEI2x.js} +1 -1
  68. package/dist/{tt.umd-CJ7Y-7W8.js → tt.umd-Drb4_jP_.js} +1 -1
  69. package/dist/{ug.umd-CSfDHFz8.js → ug.umd-CtKrEWP4.js} +1 -1
  70. package/dist/{uk.umd-Cdj0W6hX.js → uk.umd-IL1SQTpu.js} +1 -1
  71. package/dist/{ur.umd-uuUO1KsL.js → ur.umd-DmXyBWO_.js} +1 -1
  72. package/dist/{uz.umd-CCwju0Gs.js → uz.umd-D9uNkuG6.js} +1 -1
  73. package/dist/{vi.umd-DRiPcNM5.js → vi.umd-Dv7g8Kpw.js} +1 -1
  74. package/dist/{zh-cn.umd-BhDfDYd1.js → zh-cn.umd-ByGdISOe.js} +1 -1
  75. package/dist/{zh.umd-B2BXoK51.js → zh.umd-CC7vyDbG.js} +1 -1
  76. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { g as k } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as k } from "./ckeditor5-CiFYmPZ9.js";
2
2
  function m(e, o) {
3
3
  for (var a = 0; a < o.length; a++) {
4
4
  const t = o[a];
@@ -1,4 +1,4 @@
1
- import { g as d } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as d } from "./ckeditor5-CiFYmPZ9.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-C2vyCKKC.js";
1
+ import { g as c } from "./ckeditor5-CiFYmPZ9.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 o } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as o } from "./ckeditor5-CiFYmPZ9.js";
2
2
  function h(e, a) {
3
3
  for (var i = 0; i < a.length; i++) {
4
4
  const t = a[i];
@@ -1,359 +1,349 @@
1
- import { b as Z, h as b, a as $, E as oe, H as j, r as Y, s as q, c as T, d as I, e as M, p as K, f as N, i as ee, j as te, I as k, k as z, l as ce, m as ve, n as _e, o as de, q as he, t as be, u as me, v as G, w as ge, x as Ee, y as pe, z as ye, A as xe, B as J, C as Ne, D as Te, F as Ae, G as we, J as ke, K as Ce, L as ae, M as ne, N as C, O as re, P as B, Q as R, R as se, S, T as H, U as P, V as U, W as He, X as w, Y as D, Z as Ie, _ as Me, $ as Re } from "./ckeditor5-C2vyCKKC.js";
2
- function Pe(t) {
3
- throw new Error("lifecycle_outside_component");
4
- }
5
- function De(t, e, a = !1) {
6
- b && $();
7
- var n = t, r = null, i = null, f = null, _ = a ? oe : 0, o = !1;
8
- const h = (c, u = !0) => {
9
- o = !0, l(u, c);
10
- }, l = (c, u) => {
11
- if (f === (f = c)) return;
1
+ import { b as W, h as g, a as $, E as fe, H as j, r as Y, s as q, c as T, d as M, e as C, p as K, f as x, U as ve, i as oe, j as ee, I as k, k as z, l as ce, m as _e, n as de, o as he, q as be, t as ge, u as me, v as G, w as Ee, x as ye, y as pe, z as Ne, A as xe, B as Te, C as Ae, D as Ie, F as ke, G as we, J as He, K as ae, L as te, M as Me, N as w, O as re, P as F, Q as R, R as ne, S as L, T as H, V as S, W as X, X as Ce, Y as I, Z as D, _ as Re, $ as Se, a0 as De } from "./ckeditor5-CiFYmPZ9.js";
2
+ function Le(e, a, t = !1) {
3
+ g && $();
4
+ var r = e, n = null, l = null, v = ve, c = t ? fe : 0, o = !1;
5
+ const h = (i, u = !0) => {
6
+ o = !0, _(u, i);
7
+ }, _ = (i, u) => {
8
+ if (v === (v = i)) return;
12
9
  let s = !1;
13
- if (b) {
14
- const d = (
10
+ if (g) {
11
+ const f = (
15
12
  /** @type {Comment} */
16
- n.data === j
13
+ r.data === j
17
14
  );
18
- f === d && (n = Y(), q(n), T(!1), s = !0);
15
+ !!v === f && (r = Y(), q(r), T(!1), s = !0);
19
16
  }
20
- f ? (r ? I(r) : u && (r = M(() => u(n))), i && K(i, () => {
21
- i = null;
22
- })) : (i ? I(i) : u && (i = M(() => u(n))), r && K(r, () => {
23
- r = null;
17
+ v ? (n ? M(n) : u && (n = C(() => u(r))), l && K(l, () => {
18
+ l = null;
19
+ })) : (l ? M(l) : u && (l = C(() => u(r))), n && K(n, () => {
20
+ n = null;
24
21
  })), s && T(!0);
25
22
  };
26
- Z(() => {
27
- o = !1, e(h), o || l(null, null);
28
- }, _), b && (n = N);
23
+ W(() => {
24
+ o = !1, a(h), o || _(null, null);
25
+ }, c), g && (r = x);
29
26
  }
30
- function Se(t, e) {
31
- return e;
27
+ function Pe(e, a) {
28
+ return a;
32
29
  }
33
- function Le(t, e, a, n) {
34
- for (var r = [], i = e.length, f = 0; f < i; f++)
35
- ve(e[f].e, r, !0);
36
- var _ = i > 0 && r.length === 0 && a !== null;
37
- if (_) {
30
+ function Ve(e, a, t, r) {
31
+ for (var n = [], l = a.length, v = 0; v < l; v++)
32
+ _e(a[v].e, n, !0);
33
+ var c = l > 0 && n.length === 0 && t !== null;
34
+ if (c) {
38
35
  var o = (
39
36
  /** @type {Element} */
40
37
  /** @type {Element} */
41
- a.parentNode
38
+ t.parentNode
42
39
  );
43
- _e(o), o.append(
40
+ de(o), o.append(
44
41
  /** @type {Element} */
45
- a
46
- ), n.clear(), y(t, e[0].prev, e[i - 1].next);
42
+ t
43
+ ), r.clear(), N(e, a[0].prev, a[l - 1].next);
47
44
  }
48
- de(r, () => {
49
- for (var h = 0; h < i; h++) {
50
- var l = e[h];
51
- _ || (n.delete(l.k), y(t, l.prev, l.next)), he(l.e, !_);
45
+ he(n, () => {
46
+ for (var h = 0; h < l; h++) {
47
+ var _ = a[h];
48
+ c || (r.delete(_.k), N(e, _.prev, _.next)), be(_.e, !c);
52
49
  }
53
50
  });
54
51
  }
55
- function Ve(t, e, a, n, r, i = null) {
56
- var f = t, _ = { flags: e, items: /* @__PURE__ */ new Map(), first: null };
57
- b && $();
52
+ function Be(e, a, t, r, n, l = null) {
53
+ var v = e, c = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
54
+ g && $();
58
55
  var o = null, h = !1;
59
- Z(() => {
60
- var l = a(), c = ee(l) ? l : l == null ? [] : te(l), u = c.length;
56
+ W(() => {
57
+ var _ = t(), i = oe(_) ? _ : _ == null ? [] : ee(_), u = i.length;
61
58
  if (h && u === 0)
62
59
  return;
63
60
  h = u === 0;
64
61
  let s = !1;
65
- if (b) {
66
- var d = (
62
+ if (g) {
63
+ var f = (
67
64
  /** @type {Comment} */
68
- f.data === j
65
+ v.data === j
69
66
  );
70
- d !== (u === 0) && (f = Y(), q(f), T(!1), s = !0);
67
+ f !== (u === 0) && (v = Y(), q(v), T(!1), s = !0);
71
68
  }
72
- if (b) {
73
- for (var g = null, E, v = 0; v < u; v++) {
74
- if (N.nodeType === 8 && /** @type {Comment} */
75
- N.data === Ee) {
76
- f = /** @type {Comment} */
77
- N, s = !0, T(!1);
69
+ if (g) {
70
+ for (var b = null, y, m = 0; m < u; m++) {
71
+ if (x.nodeType === 8 && /** @type {Comment} */
72
+ x.data === ye) {
73
+ v = /** @type {Comment} */
74
+ x, s = !0, T(!1);
78
75
  break;
79
76
  }
80
- var m = c[v], A = n(m, v);
81
- E = le(N, _, g, null, m, A, v, r, e), _.items.set(A, E), g = E;
77
+ var d = i[m], E = r(d, m);
78
+ y = se(
79
+ x,
80
+ c,
81
+ b,
82
+ null,
83
+ d,
84
+ E,
85
+ m,
86
+ n,
87
+ a
88
+ ), c.items.set(E, y), b = y;
82
89
  }
83
90
  u > 0 && q(Y());
84
91
  }
85
- if (!b) {
86
- var x = (
92
+ if (!g) {
93
+ var P = (
87
94
  /** @type {Effect} */
88
- be
95
+ ge
96
+ );
97
+ Fe(
98
+ i,
99
+ c,
100
+ v,
101
+ n,
102
+ a,
103
+ (P.f & k) !== 0,
104
+ r
89
105
  );
90
- Be(c, _, f, r, e, (x.f & k) !== 0, n);
91
106
  }
92
- i !== null && (u === 0 ? o ? I(o) : o = M(() => i(f)) : o !== null && K(o, () => {
107
+ l !== null && (u === 0 ? o ? M(o) : o = C(() => l(v)) : o !== null && K(o, () => {
93
108
  o = null;
94
- })), s && T(!0), a();
95
- }), b && (f = N);
109
+ })), s && T(!0), t();
110
+ }), g && (v = x);
96
111
  }
97
- function Be(t, e, a, n, r, i, f) {
98
- var _ = t.length, o = e.items, h = e.first, l = h, c, u = null, s = [], d = [], g, E, v, m;
99
- for (m = 0; m < _; m += 1) {
100
- if (g = t[m], E = f(g, m), v = o.get(E), v === void 0) {
101
- var A = l ? (
112
+ function Fe(e, a, t, r, n, l, v, c) {
113
+ var o = e.length, h = a.items, _ = a.first, i = _, u, s = null, f = [], b = [], y, m, d, E;
114
+ for (E = 0; E < o; E += 1) {
115
+ if (y = e[E], m = v(y, E), d = h.get(m), d === void 0) {
116
+ var P = i ? (
102
117
  /** @type {TemplateNode} */
103
- l.e.nodes_start
104
- ) : a;
105
- u = le(
106
- A,
107
- e,
108
- u,
109
- u === null ? e.first : u.next,
110
- g,
111
- E,
118
+ i.e.nodes_start
119
+ ) : t;
120
+ s = se(
121
+ P,
122
+ a,
123
+ s,
124
+ s === null ? a.first : s.next,
125
+ y,
112
126
  m,
113
- n,
114
- r
115
- ), o.set(E, u), s = [], d = [], l = u.next;
127
+ E,
128
+ r,
129
+ n
130
+ ), h.set(m, s), f = [], b = [], i = s.next;
116
131
  continue;
117
132
  }
118
- if (Fe(v, g, m), v.e.f & k && I(v.e), v !== l) {
119
- if (c !== void 0 && c.has(v)) {
120
- if (s.length < d.length) {
121
- var x = d[0], p;
122
- u = x.prev;
123
- var X = s[0], L = s[s.length - 1];
124
- for (p = 0; p < s.length; p += 1)
125
- Q(s[p], x, a);
126
- for (p = 0; p < d.length; p += 1)
127
- c.delete(d[p]);
128
- y(e, X.prev, L.next), y(e, u, X), y(e, L, x), l = x, u = L, m -= 1, s = [], d = [];
133
+ if (Oe(d, y, E), d.e.f & k && M(d.e), d !== i) {
134
+ if (u !== void 0 && u.has(d)) {
135
+ if (f.length < b.length) {
136
+ var A = b[0], p;
137
+ s = A.prev;
138
+ var Z = f[0], V = f[f.length - 1];
139
+ for (p = 0; p < f.length; p += 1)
140
+ J(f[p], A, t);
141
+ for (p = 0; p < b.length; p += 1)
142
+ u.delete(b[p]);
143
+ N(a, Z.prev, V.next), N(a, s, Z), N(a, V, A), i = A, s = V, E -= 1, f = [], b = [];
129
144
  } else
130
- c.delete(v), Q(v, l, a), y(e, v.prev, v.next), y(e, v, u === null ? e.first : u.next), y(e, u, v), u = v;
145
+ u.delete(d), J(d, i, t), N(a, d.prev, d.next), N(a, d, s === null ? a.first : s.next), N(a, s, d), s = d;
131
146
  continue;
132
147
  }
133
- for (s = [], d = []; l !== null && l.k !== E; )
134
- (i || !(l.e.f & k)) && (c ?? (c = /* @__PURE__ */ new Set())).add(l), d.push(l), l = l.next;
135
- if (l === null)
148
+ for (f = [], b = []; i !== null && i.k !== m; )
149
+ (l || !(i.e.f & k)) && (u ?? (u = /* @__PURE__ */ new Set())).add(i), b.push(i), i = i.next;
150
+ if (i === null)
136
151
  continue;
137
- v = l;
152
+ d = i;
138
153
  }
139
- s.push(v), u = v, l = v.next;
154
+ f.push(d), s = d, i = d.next;
140
155
  }
141
- if (l !== null || c !== void 0) {
142
- for (var V = c === void 0 ? [] : te(c); l !== null; )
143
- (i || !(l.e.f & k)) && V.push(l), l = l.next;
144
- var ue = V.length;
145
- if (ue > 0) {
146
- var fe = null;
147
- Le(e, V, fe, o);
156
+ if (i !== null || u !== void 0) {
157
+ for (var B = u === void 0 ? [] : ee(u); i !== null; )
158
+ (l || !(i.e.f & k)) && B.push(i), i = i.next;
159
+ var ie = B.length;
160
+ if (ie > 0) {
161
+ var ue = null;
162
+ Ve(a, B, ue, h);
148
163
  }
149
164
  }
150
- z.first = e.first && e.first.e, z.last = u && u.e;
165
+ z.first = a.first && a.first.e, z.last = s && s.e;
151
166
  }
152
- function Fe(t, e, a, n) {
153
- ce(t.v, e), t.i = a;
167
+ function Oe(e, a, t, r) {
168
+ ce(e.v, a), e.i = t;
154
169
  }
155
- function le(t, e, a, n, r, i, f, _, o) {
156
- var h = (o & pe) !== 0, l = (o & ye) === 0, c = h ? l ? me(r) : G(r) : r, u = o & ge ? G(f) : f, s = {
157
- i: u,
158
- v: c,
159
- k: i,
170
+ function se(e, a, t, r, n, l, v, c, o, h) {
171
+ var _ = (o & pe) !== 0, i = (o & Ne) === 0, u = _ ? i ? me(n) : G(n) : n, s = o & Ee ? G(v) : v, f = {
172
+ i: s,
173
+ v: u,
174
+ k: l,
160
175
  a: null,
161
176
  // @ts-expect-error
162
177
  e: null,
163
- prev: a,
164
- next: n
178
+ prev: t,
179
+ next: r
165
180
  };
166
181
  try {
167
- return s.e = M(() => _(t, c, u), b), s.e.prev = a && a.e, s.e.next = n && n.e, a === null ? e.first = s : (a.next = s, a.e.next = s.e), n !== null && (n.prev = s, n.e.prev = s.e), s;
182
+ return f.e = C(() => c(e, u, s), g), f.e.prev = t && t.e, f.e.next = r && r.e, t === null ? a.first = f : (t.next = f, t.e.next = f.e), r !== null && (r.prev = f, r.e.prev = f.e), f;
168
183
  } finally {
169
184
  }
170
185
  }
171
- function Q(t, e, a) {
172
- for (var n = t.next ? (
186
+ function J(e, a, t) {
187
+ for (var r = e.next ? (
173
188
  /** @type {TemplateNode} */
174
- t.next.e.nodes_start
175
- ) : a, r = e ? (
189
+ e.next.e.nodes_start
190
+ ) : t, n = a ? (
176
191
  /** @type {TemplateNode} */
177
- e.e.nodes_start
178
- ) : a, i = (
192
+ a.e.nodes_start
193
+ ) : t, l = (
179
194
  /** @type {TemplateNode} */
180
- t.e.nodes_start
181
- ); i !== n; ) {
182
- var f = (
195
+ e.e.nodes_start
196
+ ); l !== r; ) {
197
+ var v = (
183
198
  /** @type {TemplateNode} */
184
- xe(i)
199
+ xe(l)
185
200
  );
186
- r.before(i), i = f;
201
+ n.before(l), l = v;
187
202
  }
188
203
  }
189
- function y(t, e, a) {
190
- e === null ? t.first = a : (e.next = a, e.e.next = a && a.e), a !== null && (a.prev = e, a.e.prev = e && e.e);
204
+ function N(e, a, t) {
205
+ 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);
191
206
  }
192
- function Oe(t, e, a, n) {
193
- var r = t.__attributes ?? (t.__attributes = {});
194
- b && (r[e] = t.getAttribute(e)), r[e] !== (r[e] = a) && (a == null ? t.removeAttribute(e) : typeof a != "string" && Ye(t).includes(e) ? t[e] = a : t.setAttribute(e, a));
207
+ function Ue(e, a, t, r) {
208
+ var n = e.__attributes ?? (e.__attributes = {});
209
+ g && (n[a] = e.getAttribute(a)), n[a] !== (n[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && Ye(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
195
210
  }
196
- var W = /* @__PURE__ */ new Map();
197
- function Ye(t) {
198
- var e = W.get(t.nodeName);
199
- if (e) return e;
200
- W.set(t.nodeName, e = []);
201
- for (var a, n = J(t), r = Element.prototype; r !== n; ) {
202
- a = Ne(n);
203
- for (var i in a)
204
- a[i].set && e.push(i);
205
- n = J(n);
211
+ var Q = /* @__PURE__ */ new Map();
212
+ function Ye(e) {
213
+ var a = Q.get(e.nodeName);
214
+ if (a) return a;
215
+ Q.set(e.nodeName, a = []);
216
+ for (var t, r = e, n = Element.prototype; n !== r; ) {
217
+ t = Ae(r);
218
+ for (var l in t)
219
+ t[l].set && a.push(l);
220
+ r = Te(r);
206
221
  }
207
- return e;
222
+ return a;
208
223
  }
209
- function qe(t, e) {
210
- var a = t.__className, n = Ke(e);
211
- b && t.className === n ? t.__className = n : (a !== n || b && t.className !== n) && (e == null ? t.removeAttribute("class") : t.className = n, t.__className = n);
224
+ function qe(e, a) {
225
+ var t = e.__className, r = Ke(a);
226
+ g && e.className === r ? e.__className = r : (t !== r || g && e.className !== r) && (a == null ? e.removeAttribute("class") : e.className = r, e.__className = r);
212
227
  }
213
- function Ke(t) {
214
- return t ?? "";
228
+ function Ke(e) {
229
+ return e ?? "";
215
230
  }
216
- function Ue(t, e, a = e) {
217
- var n = Te();
218
- Ae(t, "input", (r) => {
219
- var i = r ? t.defaultValue : t.value;
220
- i = F(t) ? O(i) : i, a(i), n && i !== (i = e()) && (t.value = i ?? "");
231
+ function Xe(e, a, t = a) {
232
+ var r = Ie();
233
+ ke(e, "input", (n) => {
234
+ var l = n ? e.defaultValue : e.value;
235
+ if (l = O(e) ? U(l) : l, t(l), r && l !== (l = a())) {
236
+ var v = e.selectionStart, c = e.selectionEnd;
237
+ e.value = l ?? "", c !== null && (e.selectionStart = v, e.selectionEnd = Math.min(c, e.value.length));
238
+ }
221
239
  }), // If we are hydrating and the value has since changed,
222
240
  // then use the updated value from the input instead.
223
- (b && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
241
+ (g && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
224
242
  // TODO Svelte 6: remove input.value check and set to empty string?
225
- we(e) == null && t.value) && a(F(t) ? O(t.value) : t.value), ke(() => {
226
- var r = e();
227
- F(t) && r === O(t.value) || t.type === "date" && !r && !t.value || r !== t.value && (t.value = r ?? "");
243
+ we(a) == null && e.value) && t(O(e) ? U(e.value) : e.value), He(() => {
244
+ var n = a();
245
+ O(e) && n === U(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
228
246
  });
229
247
  }
230
- function F(t) {
231
- var e = t.type;
232
- return e === "number" || e === "range";
233
- }
234
- function O(t) {
235
- return t === "" ? null : +t;
248
+ function O(e) {
249
+ var a = e.type;
250
+ return a === "number" || a === "range";
236
251
  }
237
- function Xe(t, e, { bubbles: a = !1, cancelable: n = !1 } = {}) {
238
- return new CustomEvent(t, { detail: e, bubbles: a, cancelable: n });
239
- }
240
- function ze() {
241
- const t = Ce;
242
- return t === null && Pe(), (e, a, n) => {
243
- var i;
244
- const r = (
245
- /** @type {Record<string, Function | Function[]>} */
246
- (i = t.s.$$events) == null ? void 0 : i[
247
- /** @type {any} */
248
- e
249
- ]
250
- );
251
- if (r) {
252
- const f = ee(r) ? r.slice() : [r], _ = Xe(
253
- /** @type {string} */
254
- e,
255
- a,
256
- n
257
- );
258
- for (const o of f)
259
- o.call(t.x, _);
260
- return !_.defaultPrevented;
261
- }
262
- return !0;
263
- };
252
+ function U(e) {
253
+ return e === "" ? null : +e;
264
254
  }
265
- var Ge = S("<button> </button>"), Je = S('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
266
- function ie(t, e) {
267
- ne(e, !1);
268
- const a = ze();
269
- let n = C(e, "buttons", 28, () => []);
270
- function r() {
271
- a("html", {});
255
+ var Ze = L("<button> </button>"), ze = L('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
256
+ function le(e, a) {
257
+ te(a, !1);
258
+ const t = Me();
259
+ let r = w(a, "buttons", 28, () => []);
260
+ function n() {
261
+ t("html", {});
272
262
  }
273
- function i() {
274
- a("plain", {});
263
+ function l() {
264
+ t("plain", {});
275
265
  }
276
266
  re();
277
- var f = Je(), _ = P(f), o = U(_, 2), h = U(o, 2);
278
- return Ve(h, 1, n, Se, (l, c) => {
279
- var u = Ge(), s = P(u, !0);
280
- D(u), He(() => {
281
- qe(u, w(c).style), Oe(u, "title", w(c).text), Ie(s, w(c).text);
282
- }), B("click", u, function(...d) {
283
- var g;
284
- (g = w(c).handler) == null || g.apply(this, d);
285
- }), R(l, u);
286
- }), D(f), B("click", _, r), B("click", o, i), R(t, f), se({
267
+ var v = ze(), c = S(v), o = X(c, 2), h = X(o, 2);
268
+ return Be(h, 1, r, Pe, (_, i) => {
269
+ var u = Ze(), s = S(u, !0);
270
+ D(u), Ce(() => {
271
+ qe(u, I(i).style), Ue(u, "title", I(i).text), Re(s, I(i).text);
272
+ }), F("click", u, function(...f) {
273
+ var b;
274
+ (b = I(i).handler) == null || b.apply(this, f);
275
+ }), R(_, u);
276
+ }), D(v), F("click", c, n), F("click", o, l), R(e, v), ne({
287
277
  get buttons() {
288
- return n();
278
+ return r();
289
279
  },
290
- set buttons(l) {
291
- n(l), H();
280
+ set buttons(_) {
281
+ r(_), H();
292
282
  }
293
283
  });
294
284
  }
295
- ae(ie, { buttons: {} }, [], [], !0);
296
- var Qe = S("<textarea></textarea>"), We = S('<main><div class="Editor"><!></div> <!></main>');
297
- function Ze(t, e) {
298
- ne(e, !1);
299
- let a = C(e, "value", 12, ""), n = C(e, "buttons", 28, () => []), r = C(e, "html", 12, !0);
300
- function i() {
301
- r() || r(!0);
285
+ ae(le, { buttons: {} }, [], [], !0);
286
+ var Ge = L("<textarea></textarea>"), Je = L('<main><div class="Editor"><!></div> <!></main>');
287
+ function Qe(e, a) {
288
+ te(a, !1);
289
+ let t = w(a, "value", 12, ""), r = w(a, "buttons", 28, () => []), n = w(a, "html", 12, !0);
290
+ function l() {
291
+ n() || n(!0);
302
292
  }
303
- function f() {
304
- r() && (a(a().replace(/<[^>]*>?/gm, "")), r(!1));
293
+ function v() {
294
+ n() && (t(t().replace(/<[^>]*>?/gm, "")), n(!1));
305
295
  }
306
296
  re();
307
- var _ = We(), o = P(_), h = P(o);
297
+ var c = Je(), o = S(c), h = S(o);
308
298
  {
309
- var l = (s) => {
310
- Me(s, {
299
+ var _ = (s) => {
300
+ Se(s, {
311
301
  get value() {
312
- return a();
302
+ return t();
313
303
  },
314
- set value(d) {
315
- a(d);
304
+ set value(f) {
305
+ t(f);
316
306
  },
317
307
  $$legacy: !0
318
308
  });
319
- }, c = (s) => {
320
- var d = Qe();
321
- Re(d), Ue(d, a), R(s, d);
309
+ }, i = (s) => {
310
+ var f = Ge();
311
+ De(f), Xe(f, t), R(s, f);
322
312
  };
323
- De(h, (s) => {
324
- r() ? s(l) : s(c, !1);
313
+ Le(h, (s) => {
314
+ n() ? s(_) : s(i, !1);
325
315
  });
326
316
  }
327
317
  D(o);
328
- var u = U(o, 2);
329
- return ie(u, {
318
+ var u = X(o, 2);
319
+ return le(u, {
330
320
  get buttons() {
331
- return n();
321
+ return r();
332
322
  },
333
323
  set buttons(s) {
334
- n(s);
324
+ r(s);
335
325
  },
336
- $$events: { html: i, plain: f },
326
+ $$events: { html: l, plain: v },
337
327
  $$legacy: !0
338
- }), D(_), R(t, _), se({
328
+ }), D(c), R(e, c), ne({
339
329
  get value() {
340
- return a();
330
+ return t();
341
331
  },
342
332
  set value(s) {
343
- a(s), H();
333
+ t(s), H();
344
334
  },
345
335
  get buttons() {
346
- return n();
336
+ return r();
347
337
  },
348
338
  set buttons(s) {
349
- n(s), H();
339
+ r(s), H();
350
340
  },
351
341
  get html() {
352
- return r();
342
+ return n();
353
343
  },
354
344
  set html(s) {
355
- r(s), H();
345
+ n(s), H();
356
346
  }
357
347
  });
358
348
  }
359
- customElements.define("switchable-editor", ae(Ze, { value: {}, buttons: {}, html: {} }, [], [], !1));
349
+ customElements.define("switchable-editor", ae(Qe, { value: {}, buttons: {}, html: {} }, [], [], !1));
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-C2vyCKKC.js";
1
+ import { g as c } from "./ckeditor5-CiFYmPZ9.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-C2vyCKKC.js";
1
+ import { g as c } from "./ckeditor5-CiFYmPZ9.js";
2
2
  function g(t, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const e = l[a];