@qualityunit/liveagent-components-editor 0.0.65 → 0.0.67

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 (150) hide show
  1. package/dist/{af-OLEnbSyW.js → af-D9iy9Trq.js} +1 -1
  2. package/dist/{af.umd-C3SE_8yW.js → af.umd-DgAipEDI.js} +2 -2
  3. package/dist/{ar-BmYicPoH.js → ar-BKhab0xh.js} +1 -1
  4. package/dist/{ar.umd-B-m2ySjL.js → ar.umd-CubCAcg8.js} +2 -2
  5. package/dist/{ast-Cen4kg86.js → ast-n_TMDS7U.js} +1 -1
  6. package/dist/{ast.umd-BgQPxfMI.js → ast.umd-bOWS-mwu.js} +2 -2
  7. package/dist/{az-CuGithd9.js → az-Dh7vDxMr.js} +1 -1
  8. package/dist/{az.umd-B-R2oOhg.js → az.umd-C7p_bscG.js} +2 -2
  9. package/dist/{bg-Bfefka0n.js → bg-DMZ6f9WZ.js} +1 -1
  10. package/dist/{bg.umd-Djgc7wN3.js → bg.umd-F88DU1Wg.js} +2 -2
  11. package/dist/bn-B-S77Zsa.js +12 -0
  12. package/dist/bn.umd-ChQUzP0K.js +41 -0
  13. package/dist/{bs-C9HED1Uu.js → bs-CLP23HTb.js} +1 -1
  14. package/dist/{bs.umd-SCFCz1vb.js → bs.umd-DMctczyE.js} +2 -2
  15. package/dist/{ca-DpNcvBDU.js → ca-BOzo87c6.js} +1 -1
  16. package/dist/{ca.umd-xU0_eTZq.js → ca.umd-BihvEEpx.js} +2 -2
  17. package/dist/ckeditor.js +1 -1
  18. package/dist/{ckeditor5-CZglviFn.js → ckeditor5-DmaN9CJe.js} +12289 -11982
  19. package/dist/{cs-BJmg9EPI.js → cs-DocHE2jw.js} +1 -1
  20. package/dist/{cs.umd-CZ389mxS.js → cs.umd-BKCXX6se.js} +2 -2
  21. package/dist/{da-MbCHd_aJ.js → da-DIDd7atq.js} +1 -1
  22. package/dist/{da.umd-C2Xvq6vN.js → da.umd-BRTGiRw6.js} +2 -2
  23. package/dist/{de-BU7sjUZN.js → de-Bip6e7Px.js} +1 -1
  24. package/dist/{de-ch-Cpd8-ct7.js → de-ch-CbKDFbAQ.js} +1 -1
  25. package/dist/{de-ch.umd-XL2vafcn.js → de-ch.umd-wUlv5DEH.js} +2 -2
  26. package/dist/{de.umd-CFDRJkPA.js → de.umd-DRQrDzyw.js} +2 -2
  27. package/dist/editor-lib.js +225 -210
  28. package/dist/{el-BTN9fWiF.js → el-DVchT-ah.js} +1 -1
  29. package/dist/{el.umd-CIi4ahQm.js → el.umd-BFpvvJ-I.js} +2 -2
  30. package/dist/{en-CfmG1wgA.js → en-DdUbswXt.js} +1 -1
  31. package/dist/{en-au-DmEbVK-b.js → en-au-DhaWlYaL.js} +1 -1
  32. package/dist/{en-au.umd-K5O0NtnZ.js → en-au.umd-ydidEFiS.js} +2 -2
  33. package/dist/{en-gb-DHdhYZHy.js → en-gb-B-YD4rrZ.js} +1 -1
  34. package/dist/{en-gb.umd-Djz0ODay.js → en-gb.umd-BsNQ6b1d.js} +2 -2
  35. package/dist/{en.umd--qWRhXvx.js → en.umd-weqjFrhV.js} +2 -2
  36. package/dist/{eo-U6Q1C5_E.js → eo-DVaUzb33.js} +1 -1
  37. package/dist/{eo.umd-BXjd--Nk.js → eo.umd-8eODJtbw.js} +2 -2
  38. package/dist/{es-co-BHRl8ocA.js → es-co-JcGqDxvM.js} +1 -1
  39. package/dist/{es-co.umd-Bng1vUov.js → es-co.umd-BRdOGH4j.js} +2 -2
  40. package/dist/{es-sMq6N_Y5.js → es-nnuRT4u0.js} +1 -1
  41. package/dist/{es.umd-CfXWR8ov.js → es.umd-Dw1Z9COF.js} +2 -2
  42. package/dist/{et-BkHqAKud.js → et-CQ9qOMgh.js} +1 -1
  43. package/dist/{et.umd-BRmtjYmJ.js → et.umd-S2M52mnH.js} +2 -2
  44. package/dist/{eu-D8T1OJh8.js → eu-CffwdRQn.js} +1 -1
  45. package/dist/{eu.umd-CinysHmE.js → eu.umd-B28V5Km6.js} +2 -2
  46. package/dist/{fa-NpZx_G2x.js → fa-BEQ0Lgbx.js} +1 -1
  47. package/dist/{fa.umd-CrpsJBu5.js → fa.umd-lDOOO2RC.js} +2 -2
  48. package/dist/{fi-C7ACmRJD.js → fi-q2B3WODs.js} +1 -1
  49. package/dist/{fi.umd-B2ThuzZE.js → fi.umd-BvneWYFC.js} +2 -2
  50. package/dist/{fr-BK5l-ZLo.js → fr-DQgg9Cnf.js} +1 -1
  51. package/dist/{fr.umd-Df23hBXq.js → fr.umd-D62gjzjp.js} +2 -2
  52. package/dist/{gl-B8L4gJWO.js → gl-7JhMRgp6.js} +1 -1
  53. package/dist/{gl.umd-Dbt1j1_e.js → gl.umd-C14bI7EJ.js} +2 -2
  54. package/dist/{gu-Bq9eFId5.js → gu-C4cIWw-L.js} +1 -1
  55. package/dist/{gu.umd-iLdofGxs.js → gu.umd-p1DXYF3o.js} +2 -2
  56. package/dist/{he-Dn8UPxNP.js → he-D8fESlR0.js} +1 -1
  57. package/dist/{he.umd-DAXSgf8q.js → he.umd-0eny49jM.js} +2 -2
  58. package/dist/{hi-CJw0ZrLH.js → hi-BC_Ekbrq.js} +1 -1
  59. package/dist/{hi.umd-4m7ArdxH.js → hi.umd-BxA9JF5p.js} +2 -2
  60. package/dist/{hr-DrmwaURm.js → hr-CZ0iJCzh.js} +1 -1
  61. package/dist/{hr.umd-CxHsgHir.js → hr.umd-CLY4VcLF.js} +2 -2
  62. package/dist/{hu-guip6Kue.js → hu-WYkHgEQb.js} +1 -1
  63. package/dist/{hu.umd-CEAM7ilp.js → hu.umd-O9dxxwYJ.js} +2 -2
  64. package/dist/{hy-D8SXNFIA.js → hy-BJEtQZ_o.js} +1 -1
  65. package/dist/{hy.umd-Bm-th_O0.js → hy.umd-QuDZK7Q9.js} +2 -2
  66. package/dist/{id-BPHiYT9r.js → id-BcOKSd9_.js} +1 -1
  67. package/dist/{id.umd-CxVq0nN0.js → id.umd-CcBeghPL.js} +2 -2
  68. package/dist/{it-QFsp7Phx.js → it-CR8Q2FGK.js} +1 -1
  69. package/dist/{it.umd-DNnruPq7.js → it.umd-C4E16Dm_.js} +2 -2
  70. package/dist/{ja-C7iTwiJh.js → ja-CsLnt5wE.js} +1 -1
  71. package/dist/{ja.umd-CE21CTX4.js → ja.umd-P1pijgkM.js} +2 -2
  72. package/dist/{jv-C57vsj4u.js → jv-C7gpKmrf.js} +1 -1
  73. package/dist/{jv.umd-B9X1lSr-.js → jv.umd-CvTl6sQv.js} +2 -2
  74. package/dist/{kk-BDgU5M4I.js → kk-B0SsP2xy.js} +1 -1
  75. package/dist/{kk.umd-CF0FWkrF.js → kk.umd-BcXXAkun.js} +2 -2
  76. package/dist/{km-CSOb8_LI.js → km-n9pdTCAX.js} +1 -1
  77. package/dist/{km.umd-cA5KxS-K.js → km.umd-CholgscZ.js} +2 -2
  78. package/dist/{kn-CXIHX3zk.js → kn-DAcYnnqf.js} +1 -1
  79. package/dist/{kn.umd-Bait2iVD.js → kn.umd-D85bXW4F.js} +2 -2
  80. package/dist/{ko-BEW2ID_m.js → ko-DDoL4zSZ.js} +1 -1
  81. package/dist/{ko.umd-BMYwVJUL.js → ko.umd-DcL3nOkO.js} +2 -2
  82. package/dist/{ku-B4JB5pIA.js → ku-DVDD8yCJ.js} +1 -1
  83. package/dist/{ku.umd-Cudu2231.js → ku.umd-Bt_herv1.js} +2 -2
  84. package/dist/{lt-BDs3H1fC.js → lt-CFgNL2mH.js} +1 -1
  85. package/dist/{lt.umd-LL2qDiaf.js → lt.umd-D9wj0eIc.js} +2 -2
  86. package/dist/{lv-DB_B1KBH.js → lv-Cb12ezVs.js} +1 -1
  87. package/dist/{lv.umd-CmRyTyXt.js → lv.umd-Buy8vmO5.js} +2 -2
  88. package/dist/{ms-CLSS74k_.js → ms-BExoNisn.js} +1 -1
  89. package/dist/{ms.umd-BgY93G86.js → ms.umd-DdXHxFKo.js} +2 -2
  90. package/dist/{nb-CIXxFV6E.js → nb-e3mpMMIe.js} +1 -1
  91. package/dist/{nb.umd-CV3IJZdO.js → nb.umd-CUsnU1Wh.js} +2 -2
  92. package/dist/{ne-Bo79eFgQ.js → ne-CMWzKlQY.js} +1 -1
  93. package/dist/{ne.umd-B4RP3sRW.js → ne.umd-DQzV30OX.js} +2 -2
  94. package/dist/{nl-DiCAZgZp.js → nl-odzV5l54.js} +1 -1
  95. package/dist/{nl.umd-CtBGDrkR.js → nl.umd-7a-8T1ke.js} +2 -2
  96. package/dist/{no-BSfx1UZR.js → no-Br9RevjM.js} +1 -1
  97. package/dist/{no.umd-Jd8iU94o.js → no.umd-DbNFo_VW.js} +2 -2
  98. package/dist/{oc-BTrHj_fc.js → oc-CQeRyzFl.js} +1 -1
  99. package/dist/{oc.umd-CZ8lJBiJ.js → oc.umd-BAYYIyjO.js} +2 -2
  100. package/dist/{pl-B-AaAsp4.js → pl-C830XLqJ.js} +1 -1
  101. package/dist/{pl.umd-Cv_d-kGB.js → pl.umd-C3a_jQvQ.js} +2 -2
  102. package/dist/{pt-cOv7pn5W.js → pt-CYApiKrx.js} +1 -1
  103. package/dist/{pt-br-BqGxhYgG.js → pt-br-BWNn7bt0.js} +1 -1
  104. package/dist/{pt-br.umd-CUIkeOwI.js → pt-br.umd-DIyFrmMW.js} +2 -2
  105. package/dist/{pt.umd-CK49G9ip.js → pt.umd-Cn2qWGDo.js} +2 -2
  106. package/dist/{ro-CPFGP4_V.js → ro-Dg5h-Qp_.js} +1 -1
  107. package/dist/{ro.umd-Cr6YMPGk.js → ro.umd-DvejC5Ya.js} +2 -2
  108. package/dist/{ru-CJ1bWKso.js → ru-Cta053-m.js} +1 -1
  109. package/dist/{ru.umd-BWmC8EV4.js → ru.umd-BQfTLJBN.js} +2 -2
  110. package/dist/{si-D1bdmWUf.js → si-CWWceCBv.js} +1 -1
  111. package/dist/{si.umd-CntLiTcJ.js → si.umd-DGxNQ6ZE.js} +2 -2
  112. package/dist/{sk-DoB4vMyn.js → sk-v7iV_Zd-.js} +1 -1
  113. package/dist/{sk.umd-RgflOeK6.js → sk.umd-C6BO88xr.js} +2 -2
  114. package/dist/{sl-CTqOz-gZ.js → sl-DCt_Vcsh.js} +1 -1
  115. package/dist/{sl.umd-DHxoC024.js → sl.umd-CeiY-KcK.js} +2 -2
  116. package/dist/{sq-BvaQPZZF.js → sq-d6FdIP1k.js} +1 -1
  117. package/dist/{sq.umd-ySIcCb8B.js → sq.umd-DmVaUVG2.js} +2 -2
  118. package/dist/{sr-CSUgjs3i.js → sr-BAOdkH75.js} +1 -1
  119. package/dist/{sr-latn-D4xYEy3V.js → sr-latn-DazZHo4G.js} +1 -1
  120. package/dist/{sr-latn.umd-DHtH0gPg.js → sr-latn.umd-2aVJYVj0.js} +2 -2
  121. package/dist/{sr.umd-BxbqIc7C.js → sr.umd-C48GZe_l.js} +2 -2
  122. package/dist/{sv-DEZLMsBN.js → sv-DKNA3ojV.js} +1 -1
  123. package/dist/{sv.umd-DSHKT3tk.js → sv.umd-DjXZ5V6A.js} +2 -2
  124. package/dist/{th-DSWOPCzT.js → th-DG7MJz8i.js} +1 -1
  125. package/dist/{th.umd-B_7scKt9.js → th.umd-C45gtu-V.js} +2 -2
  126. package/dist/{ti-B19StfN-.js → ti-CsFom50z.js} +1 -1
  127. package/dist/{ti.umd-D6J9eFOH.js → ti.umd-DxZHVR3i.js} +2 -2
  128. package/dist/{tk-D60vRypT.js → tk-CGyohOEl.js} +1 -1
  129. package/dist/{tk.umd-CVr-5wpO.js → tk.umd-B0dcFbGa.js} +2 -2
  130. package/dist/{tr-C9F5xPAk.js → tr-CW9yc2xy.js} +1 -1
  131. package/dist/{tr.umd-CmHxGI1c.js → tr.umd-CyCy6dfg.js} +2 -2
  132. package/dist/{tt-B8xvoi2k.js → tt-BMP0SraD.js} +1 -1
  133. package/dist/{tt.umd-CA1qY2DU.js → tt.umd-C7EyWIe0.js} +2 -2
  134. package/dist/{ug-BG0uHRWA.js → ug-DtJNLTzg.js} +1 -1
  135. package/dist/{ug.umd-DTbpgGPw.js → ug.umd-DLxhjMqG.js} +2 -2
  136. package/dist/{uk-EdXdOIz4.js → uk-ByOaOdvP.js} +1 -1
  137. package/dist/{uk.umd-D1d2NpF1.js → uk.umd-DI4559nh.js} +2 -2
  138. package/dist/{ur-DF4yosP-.js → ur-_XEztS0n.js} +1 -1
  139. package/dist/{ur.umd-C5nTXrSr.js → ur.umd-CFuv9fq3.js} +2 -2
  140. package/dist/{uz-CUaUHp_S.js → uz-gOHY0ENQ.js} +1 -1
  141. package/dist/{uz.umd-aKMkjIyz.js → uz.umd-C42MH0vJ.js} +2 -2
  142. package/dist/{vi-C8cYXnkQ.js → vi-leygrz-k.js} +1 -1
  143. package/dist/{vi.umd-84BaYyBm.js → vi.umd-gbGAhxNQ.js} +2 -2
  144. package/dist/{zh-cn-Ck2wb4R3.js → zh-cn-6E_LuBO1.js} +1 -1
  145. package/dist/{zh-cn.umd-fGgwohJI.js → zh-cn.umd-BVZAb0mi.js} +2 -2
  146. package/dist/{zh-CkXvQU55.js → zh-wH-ajcst.js} +1 -1
  147. package/dist/{zh.umd-zRLVtq71.js → zh.umd-Ds5xROMw.js} +2 -2
  148. package/package.json +6 -6
  149. package/dist/bn-BXUDRsSF.js +0 -12
  150. package/dist/bn.umd-CcTo7Hjt.js +0 -41
@@ -1,360 +1,375 @@
1
- import { b as Q, E as fe, r as H, a as M, p as O, U as ve, h as b, c as W, H as $, d as U, s as Y, e as x, f as A, i as T, j as oe, I as V, k as j, l as Z, m as ce, n as _e, o as z, q as de, t as he, u as be, v as ge, w as me, x as Ee, y as ye, z as pe, A as Ae, B as Te, C as xe, D as Ne, F as Ie, G as ke, J as we, K as He, L as ee, M as te, N as Me, O as k, P as re, Q as D, R as q, S as C, T as ae, V as w, W as R, X as K, Y as S, Z as Ce, _ as Re, $ as Se, a0 as De } from "./ckeditor5-CZglviFn.js";
2
- function Le(e, t, r = !1) {
3
- b && W();
4
- var a = e, n = null, i = null, f = ve, _ = r ? fe : 0, c = !1;
5
- const h = (v, s = !0) => {
6
- c = !0, l(s, v);
7
- }, l = (v, s) => {
8
- if (f === (f = v)) return;
9
- let u = !1;
10
- if (b) {
11
- const o = (
12
- /** @type {Comment} */
13
- a.data === $
14
- );
15
- !!f === o && (a = U(), Y(a), x(!1), u = !0);
1
+ import { b as Q, E as fe, r as k, a as w, p as q, U as ve, h as g, c as W, H as oe, d as $, e as B, s as F, f as I, i as A, j as y, k as ce, I as U, l as j, m as Z, n as _e, o as he, q as z, t as de, u as be, v as ge, w as me, x as Ee, y as pe, z as Te, A as Ae, B as ye, C as Ie, N as Ne, D as Se, F as Me, G as He, J as ke, K as we, L as Re, M as ee, O as te, P as Ce, Q as M, R as ae, S as D, T as V, V as R, W as re, X as H, Y as C, Z as K, _ as L, $ as Le, a0 as De, a1 as Pe, a2 as Oe } from "./ckeditor5-DmaN9CJe.js";
2
+ function Ue(e, t, [a, r] = [0, 0]) {
3
+ g && a === 0 && W();
4
+ var n = e, l = null, f = null, v = ve, _ = a > 0 ? fe : 0, d = !1;
5
+ const i = (u, s = !0) => {
6
+ d = !0, c(s, u);
7
+ }, c = (u, s) => {
8
+ if (v === (v = u)) return;
9
+ let o = !1;
10
+ if (g && r !== -1) {
11
+ if (a === 0) {
12
+ const b = (
13
+ /** @type {Comment} */
14
+ n.data
15
+ );
16
+ b === oe ? r = 0 : b === $ ? r = 1 / 0 : (r = parseInt(b.substring(1)), r !== r && (r = v ? 1 / 0 : -1));
17
+ }
18
+ const m = r > a;
19
+ !!v === m && (n = B(), F(n), I(!1), o = !0, r = -1);
16
20
  }
17
- f ? (n ? H(n) : s && (n = M(() => s(a))), i && O(i, () => {
18
- i = null;
19
- })) : (i ? H(i) : s && (i = M(() => s(a))), n && O(n, () => {
20
- n = null;
21
- })), u && x(!0);
21
+ v ? (l ? k(l) : s && (l = w(() => s(n))), f && q(f, () => {
22
+ f = null;
23
+ })) : (f ? k(f) : s && (f = w(() => s(n, [a + 1, r]))), l && q(l, () => {
24
+ l = null;
25
+ })), o && I(!0);
22
26
  };
23
27
  Q(() => {
24
- c = !1, t(h), c || l(null, null);
25
- }, _), b && (a = A);
28
+ d = !1, t(i), d || c(null, null);
29
+ }, _), g && (n = A);
26
30
  }
27
- function Pe(e, t) {
31
+ function Ve(e, t) {
28
32
  return t;
29
33
  }
30
- function Ve(e, t, r, a) {
31
- for (var n = [], i = t.length, f = 0; f < i; f++)
32
- be(t[f].e, n, !0);
33
- var _ = i > 0 && n.length === 0 && r !== null;
34
- if (_) {
35
- var c = (
34
+ function xe(e, t, a, r) {
35
+ for (var n = [], l = t.length, f = 0; f < l; f++)
36
+ ge(t[f].e, n, !0);
37
+ var v = l > 0 && n.length === 0 && a !== null;
38
+ if (v) {
39
+ var _ = (
36
40
  /** @type {Element} */
37
41
  /** @type {Element} */
38
- r.parentNode
42
+ a.parentNode
39
43
  );
40
- ge(c), c.append(
44
+ me(_), _.append(
41
45
  /** @type {Element} */
42
- r
43
- ), a.clear(), p(e, t[0].prev, t[i - 1].next);
46
+ a
47
+ ), r.clear(), T(e, t[0].prev, t[l - 1].next);
44
48
  }
45
- me(n, () => {
46
- for (var h = 0; h < i; h++) {
47
- var l = t[h];
48
- _ || (a.delete(l.k), p(e, l.prev, l.next)), Ee(l.e, !_);
49
+ Ee(n, () => {
50
+ for (var d = 0; d < l; d++) {
51
+ var i = t[d];
52
+ v || (r.delete(i.k), T(e, i.prev, i.next)), pe(i.e, !v);
49
53
  }
50
54
  });
51
55
  }
52
- function qe(e, t, r, a, n, i = null) {
53
- var f = e, _ = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
54
- b && W();
55
- var c = null, h = !1, l = oe(() => {
56
- var v = r();
57
- return de(v) ? v : v == null ? [] : j(v);
56
+ function Ye(e, t, a, r, n, l = null) {
57
+ var f = e, v = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
58
+ g && W();
59
+ var _ = null, d = !1, i = ce(() => {
60
+ var c = a();
61
+ return de(c) ? c : c == null ? [] : j(c);
58
62
  });
59
63
  Q(() => {
60
- var v = T(l), s = v.length;
61
- if (h && s === 0)
64
+ var c = y(i), u = c.length;
65
+ if (d && u === 0)
62
66
  return;
63
- h = s === 0;
64
- let u = !1;
65
- if (b) {
67
+ d = u === 0;
68
+ let s = !1;
69
+ if (g) {
66
70
  var o = (
67
71
  /** @type {Comment} */
68
72
  f.data === $
69
73
  );
70
- o !== (s === 0) && (f = U(), Y(f), x(!1), u = !0);
74
+ o !== (u === 0) && (f = B(), F(f), I(!1), s = !0);
71
75
  }
72
- if (b) {
73
- for (var m = null, E, d = 0; d < s; d++) {
76
+ if (g) {
77
+ for (var m = null, b, h = 0; h < u; h++) {
74
78
  if (A.nodeType === 8 && /** @type {Comment} */
75
- A.data === Te) {
79
+ A.data === Ie) {
76
80
  f = /** @type {Comment} */
77
- A, u = !0, x(!1);
81
+ A, s = !0, I(!1);
78
82
  break;
79
83
  }
80
- var g = v[d], N = a(g, d);
81
- E = ne(
84
+ var E = c[h], N = r(E, h);
85
+ b = ne(
82
86
  A,
83
- _,
87
+ v,
84
88
  m,
85
89
  null,
86
- g,
90
+ E,
87
91
  N,
88
- d,
92
+ h,
89
93
  n,
90
94
  t,
91
- r
92
- ), _.items.set(N, E), m = E;
95
+ a
96
+ ), v.items.set(N, b), m = b;
93
97
  }
94
- s > 0 && Y(U());
98
+ u > 0 && F(B());
95
99
  }
96
- b || Be(v, _, f, n, t, a, r), i !== null && (s === 0 ? c ? H(c) : c = M(() => i(f)) : c !== null && O(c, () => {
97
- c = null;
98
- })), u && x(!0), T(l);
99
- }), b && (f = A);
100
+ g || qe(c, v, f, n, t, r, a), l !== null && (u === 0 ? _ ? k(_) : _ = w(() => l(f)) : _ !== null && q(_, () => {
101
+ _ = null;
102
+ })), s && I(!0), y(i);
103
+ }), g && (f = A);
100
104
  }
101
- function Be(e, t, r, a, n, i, f) {
102
- var _ = e.length, c = t.items, h = t.first, l = h, v, s = null, u = [], o = [], m, E, d, g;
103
- for (g = 0; g < _; g += 1) {
104
- if (m = e[g], E = i(m, g), d = c.get(E), d === void 0) {
105
- var N = l ? (
105
+ function qe(e, t, a, r, n, l, f) {
106
+ var v = e.length, _ = t.items, d = t.first, i = d, c, u = null, s = [], o = [], m, b, h, E;
107
+ for (E = 0; E < v; E += 1) {
108
+ if (m = e[E], b = l(m, E), h = _.get(b), h === void 0) {
109
+ var N = i ? (
106
110
  /** @type {TemplateNode} */
107
- l.e.nodes_start
108
- ) : r;
109
- s = ne(
111
+ i.e.nodes_start
112
+ ) : a;
113
+ u = ne(
110
114
  N,
111
115
  t,
112
- s,
113
- s === null ? t.first : s.next,
116
+ u,
117
+ u === null ? t.first : u.next,
114
118
  m,
119
+ b,
115
120
  E,
116
- g,
117
- a,
121
+ r,
118
122
  n,
119
123
  f
120
- ), c.set(E, s), u = [], o = [], l = s.next;
124
+ ), _.set(b, u), s = [], o = [], i = u.next;
121
125
  continue;
122
126
  }
123
- if (Fe(d, m, g), (d.e.f & V) !== 0 && H(d.e), d !== l) {
124
- if (v !== void 0 && v.has(d)) {
125
- if (u.length < o.length) {
126
- var I = o[0], y;
127
- s = I.prev;
128
- var X = u[0], L = u[u.length - 1];
129
- for (y = 0; y < u.length; y += 1)
130
- G(u[y], I, r);
131
- for (y = 0; y < o.length; y += 1)
132
- v.delete(o[y]);
133
- p(t, X.prev, L.next), p(t, s, X), p(t, L, I), l = I, s = L, g -= 1, u = [], o = [];
127
+ if (Be(h, m, E), (h.e.f & U) !== 0 && k(h.e), h !== i) {
128
+ if (c !== void 0 && c.has(h)) {
129
+ if (s.length < o.length) {
130
+ var S = o[0], p;
131
+ u = S.prev;
132
+ var X = s[0], P = s[s.length - 1];
133
+ for (p = 0; p < s.length; p += 1)
134
+ G(s[p], S, a);
135
+ for (p = 0; p < o.length; p += 1)
136
+ c.delete(o[p]);
137
+ T(t, X.prev, P.next), T(t, u, X), T(t, P, S), i = S, u = P, E -= 1, s = [], o = [];
134
138
  } else
135
- v.delete(d), G(d, l, r), p(t, d.prev, d.next), p(t, d, s === null ? t.first : s.next), p(t, s, d), s = d;
139
+ 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;
136
140
  continue;
137
141
  }
138
- for (u = [], o = []; l !== null && l.k !== E; )
139
- (l.e.f & V) === 0 && (v ?? (v = /* @__PURE__ */ new Set())).add(l), o.push(l), l = l.next;
140
- if (l === null)
142
+ for (s = [], o = []; i !== null && i.k !== b; )
143
+ (i.e.f & U) === 0 && (c ?? (c = /* @__PURE__ */ new Set())).add(i), o.push(i), i = i.next;
144
+ if (i === null)
141
145
  continue;
142
- d = l;
146
+ h = i;
143
147
  }
144
- u.push(d), s = d, l = d.next;
148
+ s.push(h), u = h, i = h.next;
145
149
  }
146
- if (l !== null || v !== void 0) {
147
- for (var P = v === void 0 ? [] : j(v); l !== null; )
148
- (l.e.f & V) === 0 && P.push(l), l = l.next;
149
- var ie = P.length;
150
+ if (i !== null || c !== void 0) {
151
+ for (var O = c === void 0 ? [] : j(c); i !== null; )
152
+ (i.e.f & U) === 0 && O.push(i), i = i.next;
153
+ var ie = O.length;
150
154
  if (ie > 0) {
151
155
  var ue = null;
152
- Ve(t, P, ue, c);
156
+ xe(t, O, ue, _);
153
157
  }
154
158
  }
155
- Z.first = t.first && t.first.e, Z.last = s && s.e;
159
+ Z.first = t.first && t.first.e, Z.last = u && u.e;
156
160
  }
157
- function Fe(e, t, r, a) {
158
- ce(e.v, t), e.i = r;
161
+ function Be(e, t, a, r) {
162
+ _e(e.v, t), e.i = a;
159
163
  }
160
- function ne(e, t, r, a, n, i, f, _, c, h) {
161
- var l = (c & pe) !== 0, v = (c & Ae) === 0, s = l ? v ? _e(n) : z(n) : n, u = (c & he) === 0 ? f : z(f), o = {
162
- i: u,
163
- v: s,
164
- k: i,
164
+ function ne(e, t, a, r, n, l, f, v, _, d) {
165
+ var i = (_ & Ae) !== 0, c = (_ & ye) === 0, u = i ? c ? he(n) : z(n) : n, s = (_ & be) === 0 ? f : z(f), o = {
166
+ i: s,
167
+ v: u,
168
+ k: l,
165
169
  a: null,
166
170
  // @ts-expect-error
167
171
  e: null,
168
- prev: r,
169
- next: a
172
+ prev: a,
173
+ next: r
170
174
  };
171
175
  try {
172
- return o.e = M(() => _(e, s, u, h), b), o.e.prev = r && r.e, o.e.next = a && a.e, r === null ? t.first = o : (r.next = o, r.e.next = o.e), a !== null && (a.prev = o, a.e.prev = o.e), o;
176
+ return o.e = w(() => v(e, u, s, d), g), o.e.prev = a && a.e, o.e.next = r && r.e, a === null ? t.first = o : (a.next = o, a.e.next = o.e), r !== null && (r.prev = o, r.e.prev = o.e), o;
173
177
  } finally {
174
178
  }
175
179
  }
176
- function G(e, t, r) {
177
- for (var a = e.next ? (
180
+ function G(e, t, a) {
181
+ for (var r = e.next ? (
178
182
  /** @type {TemplateNode} */
179
183
  e.next.e.nodes_start
180
- ) : r, n = t ? (
184
+ ) : a, n = t ? (
181
185
  /** @type {TemplateNode} */
182
186
  t.e.nodes_start
183
- ) : r, i = (
187
+ ) : a, l = (
184
188
  /** @type {TemplateNode} */
185
189
  e.e.nodes_start
186
- ); i !== a; ) {
190
+ ); l !== r; ) {
187
191
  var f = (
188
192
  /** @type {TemplateNode} */
189
- ye(i)
193
+ Te(l)
190
194
  );
191
- n.before(i), i = f;
195
+ n.before(l), l = f;
192
196
  }
193
197
  }
194
- function p(e, t, r) {
195
- t === null ? e.first = r : (t.next = r, t.e.next = r && r.e), r !== null && (r.prev = t, r.e.prev = t && t.e);
198
+ function T(e, t, a) {
199
+ 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);
196
200
  }
197
201
  function se(e) {
198
- var t, r, a = "";
199
- if (typeof e == "string" || typeof e == "number") a += e;
202
+ var t, a, r = "";
203
+ if (typeof e == "string" || typeof e == "number") r += e;
200
204
  else if (typeof e == "object") if (Array.isArray(e)) {
201
205
  var n = e.length;
202
- for (t = 0; t < n; t++) e[t] && (r = se(e[t])) && (a && (a += " "), a += r);
203
- } else for (r in e) e[r] && (a && (a += " "), a += r);
204
- return a;
206
+ for (t = 0; t < n; t++) e[t] && (a = se(e[t])) && (r && (r += " "), r += a);
207
+ } else for (a in e) e[a] && (r && (r += " "), r += a);
208
+ return r;
205
209
  }
206
- function Oe() {
207
- for (var e, t, r = 0, a = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = se(e)) && (a && (a += " "), a += t);
208
- return a;
210
+ function Fe() {
211
+ for (var e, t, a = 0, r = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = se(e)) && (r && (r += " "), r += t);
212
+ return r;
209
213
  }
210
- function Ue(e) {
211
- return typeof e == "object" ? Oe(e) : e ?? "";
214
+ function Ke(e) {
215
+ return typeof e == "object" ? Fe(e) : e ?? "";
212
216
  }
213
- function Ye(e, t, r) {
214
- var a = e == null ? "" : "" + e;
215
- return a === "" ? null : a;
217
+ function Xe(e, t, a) {
218
+ var r = e == null ? "" : "" + e;
219
+ return r === "" ? null : r;
216
220
  }
217
- function Ke(e, t, r, a, n, i) {
221
+ function Ze(e, t, a, r, n, l) {
218
222
  var f = e.__className;
219
- if (b || f !== r) {
220
- var _ = Ye(r);
221
- (!b || _ !== e.getAttribute("class")) && (_ == null ? e.removeAttribute("class") : e.className = _), e.__className = r;
223
+ if (g || f !== a) {
224
+ var v = Xe(a);
225
+ (!g || v !== e.getAttribute("class")) && (v == null ? e.removeAttribute("class") : e.className = v), e.__className = a;
222
226
  }
223
- return i;
227
+ return l;
224
228
  }
225
- function Xe(e, t, r, a) {
226
- var n = e.__attributes ?? (e.__attributes = {});
227
- b && (n[t] = e.getAttribute(t)), n[t] !== (n[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" && Ze(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
229
+ const ze = Symbol("is custom element"), Ge = Symbol("is html");
230
+ function Je(e, t, a, r) {
231
+ var n = Qe(e);
232
+ g && (n[t] = e.getAttribute(t)), n[t] !== (n[t] = a) && (a == null ? e.removeAttribute(t) : typeof a != "string" && We(e).includes(t) ? e[t] = a : e.setAttribute(t, a));
233
+ }
234
+ function Qe(e) {
235
+ return (
236
+ /** @type {Record<string | symbol, unknown>} **/
237
+ // @ts-expect-error
238
+ e.__attributes ?? (e.__attributes = {
239
+ [ze]: e.nodeName.includes("-"),
240
+ [Ge]: e.namespaceURI === Ne
241
+ })
242
+ );
228
243
  }
229
244
  var J = /* @__PURE__ */ new Map();
230
- function Ze(e) {
245
+ function We(e) {
231
246
  var t = J.get(e.nodeName);
232
247
  if (t) return t;
233
248
  J.set(e.nodeName, t = []);
234
- for (var r, a = e, n = Element.prototype; n !== a; ) {
235
- r = Ne(a);
236
- for (var i in r)
237
- r[i].set && t.push(i);
238
- a = xe(a);
249
+ for (var a, r = e, n = Element.prototype; n !== r; ) {
250
+ a = Me(r);
251
+ for (var l in a)
252
+ a[l].set && t.push(l);
253
+ r = Se(r);
239
254
  }
240
255
  return t;
241
256
  }
242
- function ze(e, t, r = t) {
243
- var a = Ie();
257
+ function $e(e, t, a = t) {
258
+ var r = He();
244
259
  ke(e, "input", (n) => {
245
- var i = n ? e.defaultValue : e.value;
246
- if (i = B(e) ? F(i) : i, r(i), a && i !== (i = t())) {
247
- var f = e.selectionStart, _ = e.selectionEnd;
248
- e.value = i ?? "", _ !== null && (e.selectionStart = f, e.selectionEnd = Math.min(_, e.value.length));
260
+ var l = n ? e.defaultValue : e.value;
261
+ if (l = x(e) ? Y(l) : l, a(l), r && l !== (l = t())) {
262
+ var f = e.selectionStart, v = e.selectionEnd;
263
+ e.value = l ?? "", v !== null && (e.selectionStart = f, e.selectionEnd = Math.min(v, e.value.length));
249
264
  }
250
265
  }), // If we are hydrating and the value has since changed,
251
266
  // then use the updated value from the input instead.
252
- (b && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
267
+ (g && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
253
268
  // TODO Svelte 6: remove input.value check and set to empty string?
254
- we(t) == null && e.value) && r(B(e) ? F(e.value) : e.value), He(() => {
269
+ we(t) == null && e.value) && a(x(e) ? Y(e.value) : e.value), Re(() => {
255
270
  var n = t();
256
- B(e) && n === F(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
271
+ x(e) && n === Y(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
257
272
  });
258
273
  }
259
- function B(e) {
274
+ function x(e) {
260
275
  var t = e.type;
261
276
  return t === "number" || t === "range";
262
277
  }
263
- function F(e) {
278
+ function Y(e) {
264
279
  return e === "" ? null : +e;
265
280
  }
266
- var Ge = D("<button> </button>"), Je = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
281
+ var je = D("<button> </button>"), et = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
267
282
  function le(e, t) {
268
283
  te(t, !1);
269
- const r = Me();
270
- let a = k(t, "buttons", 28, () => []);
284
+ const a = Ce();
285
+ let r = M(t, "buttons", 28, () => []);
271
286
  function n() {
272
- r("html", {});
287
+ a("html", {});
273
288
  }
274
- function i() {
275
- r("plain", {});
289
+ function l() {
290
+ a("plain", {});
276
291
  }
277
- re();
278
- var f = Je(), _ = R(f), c = K(_, 2), h = K(c, 2);
279
- return qe(h, 1, a, Pe, (l, v) => {
280
- var s = Ge(), u = R(s, !0);
281
- S(s), Ce(() => {
282
- Ke(s, 1, Ue(T(v).style)), Xe(s, "title", T(v).text), Re(u, T(v).text);
283
- }), q("click", s, function(...o) {
292
+ ae();
293
+ var f = et(), v = C(f), _ = K(v, 2), d = K(_, 2);
294
+ return Ye(d, 1, r, Ve, (i, c) => {
295
+ var u = je(), s = C(u, !0);
296
+ L(u), Le(() => {
297
+ Ze(u, 1, Ke(y(c).style)), Je(u, "title", y(c).text), De(s, y(c).text);
298
+ }), V("click", u, function(...o) {
284
299
  var m;
285
- (m = T(v).handler) == null || m.apply(this, o);
286
- }), C(l, s);
287
- }), S(f), q("click", _, n), q("click", c, i), C(e, f), ae({
300
+ (m = y(c).handler) == null || m.apply(this, o);
301
+ }), R(i, u);
302
+ }), L(f), V("click", v, n), V("click", _, l), R(e, f), re({
288
303
  get buttons() {
289
- return a();
304
+ return r();
290
305
  },
291
- set buttons(l) {
292
- a(l), w();
306
+ set buttons(i) {
307
+ r(i), H();
293
308
  }
294
309
  });
295
310
  }
296
311
  ee(le, { buttons: {} }, [], [], !0);
297
- var Qe = D("<textarea></textarea>"), We = D('<main><div class="Editor"><!></div> <!></main>');
298
- function $e(e, t) {
312
+ var tt = D("<textarea></textarea>"), at = D('<main><div class="Editor"><!></div> <!></main>');
313
+ function rt(e, t) {
299
314
  te(t, !1);
300
- let r = k(t, "value", 12, ""), a = k(t, "buttons", 28, () => []), n = k(t, "html", 12, !0);
301
- function i() {
315
+ let a = M(t, "value", 12, ""), r = M(t, "buttons", 28, () => []), n = M(t, "html", 12, !0);
316
+ function l() {
302
317
  n() || n(!0);
303
318
  }
304
319
  function f() {
305
- n() && (r(r().replace(/<[^>]*>?/gm, "")), n(!1));
320
+ n() && (a(a().replace(/<[^>]*>?/gm, "")), n(!1));
306
321
  }
307
- re();
308
- var _ = We(), c = R(_), h = R(c);
322
+ ae();
323
+ var v = at(), _ = C(v), d = C(_);
309
324
  {
310
- var l = (u) => {
311
- Se(u, {
325
+ var i = (s) => {
326
+ Pe(s, {
312
327
  get value() {
313
- return r();
328
+ return a();
314
329
  },
315
330
  set value(o) {
316
- r(o);
331
+ a(o);
317
332
  },
318
333
  $$legacy: !0
319
334
  });
320
- }, v = (u) => {
321
- var o = Qe();
322
- De(o), ze(o, r), C(u, o);
335
+ }, c = (s) => {
336
+ var o = tt();
337
+ Oe(o), $e(o, a), R(s, o);
323
338
  };
324
- Le(h, (u) => {
325
- n() ? u(l) : u(v, !1);
339
+ Ue(d, (s) => {
340
+ n() ? s(i) : s(c, !1);
326
341
  });
327
342
  }
328
- S(c);
329
- var s = K(c, 2);
330
- return le(s, {
343
+ L(_);
344
+ var u = K(_, 2);
345
+ return le(u, {
331
346
  get buttons() {
332
- return a();
347
+ return r();
333
348
  },
334
- set buttons(u) {
335
- a(u);
349
+ set buttons(s) {
350
+ r(s);
336
351
  },
337
- $$events: { html: i, plain: f },
352
+ $$events: { html: l, plain: f },
338
353
  $$legacy: !0
339
- }), S(_), C(e, _), ae({
354
+ }), L(v), R(e, v), re({
340
355
  get value() {
341
- return r();
356
+ return a();
342
357
  },
343
- set value(u) {
344
- r(u), w();
358
+ set value(s) {
359
+ a(s), H();
345
360
  },
346
361
  get buttons() {
347
- return a();
362
+ return r();
348
363
  },
349
- set buttons(u) {
350
- a(u), w();
364
+ set buttons(s) {
365
+ r(s), H();
351
366
  },
352
367
  get html() {
353
368
  return n();
354
369
  },
355
- set html(u) {
356
- n(u), w();
370
+ set html(s) {
371
+ n(s), H();
357
372
  }
358
373
  });
359
374
  }
360
- customElements.define("switchable-editor", ee($e, { value: {}, buttons: {}, html: {} }, [], [], !1));
375
+ customElements.define("switchable-editor", ee(rt, { value: {}, buttons: {}, html: {} }, [], [], !1));