@qualityunit/liveagent-components-editor 0.0.78 → 0.0.80

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-CPoRHc4J.js → af-D5gaD6dV.js} +1 -1
  2. package/dist/{af.umd-Cab-3RjQ.js → af.umd-BBObLzF1.js} +1 -1
  3. package/dist/{ar-BOgsenEz.js → ar-Duc90WBQ.js} +2 -2
  4. package/dist/{ar.umd-C_68SB6h.js → ar.umd-BQViTPOQ.js} +2 -2
  5. package/dist/{ast-Ccg4JN8o.js → ast-B4SjHl2m.js} +1 -1
  6. package/dist/{ast.umd-Bcr4CdGV.js → ast.umd-Bg6PaFzl.js} +1 -1
  7. package/dist/{az-CRrZEz08.js → az-BQV6fh7D.js} +1 -1
  8. package/dist/{az.umd-T_Por67U.js → az.umd-CaouW5iZ.js} +1 -1
  9. package/dist/{be-BlrsWbdT.js → be-QDIVTAH4.js} +1 -1
  10. package/dist/{be.umd-Ba5wBLxI.js → be.umd-BzIkA30P.js} +1 -1
  11. package/dist/{bg-CwnEA8Ke.js → bg-Da5GTM08.js} +2 -2
  12. package/dist/{bg.umd-BGlALczz.js → bg.umd-uBmPqgyJ.js} +2 -2
  13. package/dist/{bn-CHsQYDvp.js → bn-BxUFA2IM.js} +2 -2
  14. package/dist/{bn.umd-BRaVrlOw.js → bn.umd-hN3SDLm7.js} +2 -2
  15. package/dist/{bs-5fxpWbJj.js → bs-CCoGGfDv.js} +1 -1
  16. package/dist/{bs.umd-Bnlw8Lzg.js → bs.umd-BCbvYm6U.js} +1 -1
  17. package/dist/{ca-5YQZJhGn.js → ca-COoS88xr.js} +1 -1
  18. package/dist/{ca.umd-Ck1e87z9.js → ca.umd-e6dlWUZS.js} +1 -1
  19. package/dist/ckeditor.js +1 -1
  20. package/dist/{ckeditor5-gdlJPF9t.js → ckeditor5-8LqIgjm8.js} +6025 -5963
  21. package/dist/{cs-DtG403IE.js → cs-REnlMT4Z.js} +1 -1
  22. package/dist/{cs.umd-BAHdjkXU.js → cs.umd-B9WFu8Q_.js} +1 -1
  23. package/dist/{da-BZyl2qQl.js → da-Bj_YNGam.js} +1 -1
  24. package/dist/{da.umd-D0DjVD9g.js → da.umd-BsFoASnq.js} +1 -1
  25. package/dist/{de-3QJSH6VA.js → de-D4PAF07G.js} +1 -1
  26. package/dist/{de-ch-DV5O-hHN.js → de-ch-B29rPGLD.js} +1 -1
  27. package/dist/{de-ch.umd-gsnBdQQB.js → de-ch.umd-Dqre3w4l.js} +1 -1
  28. package/dist/{de.umd-BdsrVXZK.js → de.umd-CBtZSMtH.js} +1 -1
  29. package/dist/editor-lib.js +372 -295
  30. package/dist/{el-NNxOV4ur.js → el-bBI_7ecr.js} +1 -1
  31. package/dist/{el.umd-CBpekQoJ.js → el.umd-CQLf_BdE.js} +1 -1
  32. package/dist/{en-B6K442fc.js → en-CamKpIpi.js} +1 -1
  33. package/dist/{en-au-BZs00ADG.js → en-au-DZB2MHYQ.js} +1 -1
  34. package/dist/{en-au.umd-ZPJid8dF.js → en-au.umd-DoIPETMX.js} +1 -1
  35. package/dist/{en-gb-ic-qRv9z.js → en-gb-C2ofF-g0.js} +1 -1
  36. package/dist/{en-gb.umd-kwpzTwr-.js → en-gb.umd-BIHRceWg.js} +1 -1
  37. package/dist/{en.umd-Ch9Oubqd.js → en.umd-BPvEN8TK.js} +1 -1
  38. package/dist/{eo-XlMsEFWW.js → eo-Bz3iidGR.js} +1 -1
  39. package/dist/{eo.umd-Bnl6oYVx.js → eo.umd-C8z3wGVR.js} +1 -1
  40. package/dist/{es-BWA39icY.js → es-DAtHaT6w.js} +1 -1
  41. package/dist/{es-co-DLf-Mtao.js → es-co-BP-P9i1g.js} +1 -1
  42. package/dist/{es-co.umd-DJ61L0k_.js → es-co.umd-SnkjnX-y.js} +1 -1
  43. package/dist/{es.umd-ByCa8qyo.js → es.umd-CuRrShuk.js} +1 -1
  44. package/dist/{et-COCeX2M8.js → et-BG-9vBh4.js} +1 -1
  45. package/dist/{et.umd-BqmqtExO.js → et.umd-C4qx6dHB.js} +1 -1
  46. package/dist/{eu-Bg5buEqx.js → eu-CW-AP7Me.js} +1 -1
  47. package/dist/{eu.umd-BjKBl8Ud.js → eu.umd-DyqBMa0g.js} +1 -1
  48. package/dist/{fa-BRUTe9C9.js → fa-_kbqJEM_.js} +1 -1
  49. package/dist/{fa.umd-DRTVJk58.js → fa.umd-C1JCdzry.js} +1 -1
  50. package/dist/{fi-RuuxqBIq.js → fi-SBDlkQVj.js} +1 -1
  51. package/dist/{fi.umd-C16ap1Id.js → fi.umd-8gQMfog4.js} +1 -1
  52. package/dist/{fr-Ct4llPBu.js → fr-c3NQjTtN.js} +1 -1
  53. package/dist/{fr.umd-BO97d2al.js → fr.umd-DWyOAq-t.js} +1 -1
  54. package/dist/{gl-OCULeNO1.js → gl-DrS6PE22.js} +1 -1
  55. package/dist/{gl.umd-Brg5c6RC.js → gl.umd-C-mNOTtJ.js} +1 -1
  56. package/dist/{gu-DKekTERO.js → gu-D_XFqGOb.js} +1 -1
  57. package/dist/{gu.umd-byLVGclo.js → gu.umd-_SuGRhga.js} +1 -1
  58. package/dist/{he-KBvLgjwQ.js → he-B9Tcq9Mk.js} +1 -1
  59. package/dist/{he.umd-BxqlsBgB.js → he.umd-CZLQ_Qgf.js} +1 -1
  60. package/dist/{hi-BLt8zCvZ.js → hi-XNs8BK2I.js} +1 -1
  61. package/dist/{hi.umd-D5nYApvL.js → hi.umd-DfZda_fB.js} +1 -1
  62. package/dist/{hr-CXOsvCo8.js → hr-CCbhDBjR.js} +1 -1
  63. package/dist/{hr.umd-PEqBz5u7.js → hr.umd-ijHs0w9L.js} +1 -1
  64. package/dist/{hu-Bw6DHnnx.js → hu-B7jOInH1.js} +1 -1
  65. package/dist/{hu.umd-D7wf-L1B.js → hu.umd-BdapSzii.js} +1 -1
  66. package/dist/{hy-i50G5xuR.js → hy-Ct_ukUje.js} +1 -1
  67. package/dist/{hy.umd-CTlYBVNA.js → hy.umd-P_ZtATrt.js} +1 -1
  68. package/dist/{id-CB3_F9_N.js → id-BsPu5NvU.js} +1 -1
  69. package/dist/{id.umd-a0c--rVZ.js → id.umd-DTDOEU5E.js} +1 -1
  70. package/dist/{it-Bvor331d.js → it-BZyHroHN.js} +1 -1
  71. package/dist/{it.umd-CpVAjdMW.js → it.umd-CA0VOVAJ.js} +1 -1
  72. package/dist/{ja-D5NfgZKc.js → ja-riWopJWK.js} +1 -1
  73. package/dist/{ja.umd-DFSW9xIO.js → ja.umd-MqZoEfTG.js} +1 -1
  74. package/dist/{jv-DeWceEXb.js → jv-B6uO4gpy.js} +1 -1
  75. package/dist/{jv.umd-BPe1puW_.js → jv.umd-qn0vYgOA.js} +1 -1
  76. package/dist/{kk-C2v_97GV.js → kk-B5skNwOC.js} +1 -1
  77. package/dist/{kk.umd-EfsFgTPp.js → kk.umd-HmorD17q.js} +1 -1
  78. package/dist/{km-BsPHnZJU.js → km-DgclFq1k.js} +1 -1
  79. package/dist/{km.umd-CUTu4xv4.js → km.umd-BSFKxLkR.js} +1 -1
  80. package/dist/{kn-I5jGQtUw.js → kn-BPjNEK4L.js} +1 -1
  81. package/dist/{kn.umd-Dbwn5j7C.js → kn.umd-DdfSyCeA.js} +1 -1
  82. package/dist/{ko-C3uR_L6R.js → ko-PPAEOQIa.js} +1 -1
  83. package/dist/{ko.umd-CsHyMD57.js → ko.umd--MFZycAu.js} +1 -1
  84. package/dist/{ku-BM9dynGt.js → ku-S9OCPa0M.js} +1 -1
  85. package/dist/{ku.umd-QqBHuETy.js → ku.umd-D7Qp5xuL.js} +1 -1
  86. package/dist/{lt-D-qUFYNv.js → lt-nV_E82wu.js} +1 -1
  87. package/dist/{lt.umd-DtWP4oxF.js → lt.umd-DMlgaS2R.js} +1 -1
  88. package/dist/{lv-IzEU9ZEJ.js → lv-CApSRjhU.js} +1 -1
  89. package/dist/{lv.umd-CExd-6mq.js → lv.umd-hhTw_lzs.js} +1 -1
  90. package/dist/{ms-Bl7zN232.js → ms-PywTuTms.js} +1 -1
  91. package/dist/{ms.umd-C0pmI2tS.js → ms.umd-CLXIOTQc.js} +1 -1
  92. package/dist/{nb-coyIDiNn.js → nb-An2iqY2p.js} +1 -1
  93. package/dist/{nb.umd-DNuV-MX1.js → nb.umd-WtygHW7n.js} +1 -1
  94. package/dist/{ne-AuPWAOD8.js → ne-BXJoeMS7.js} +1 -1
  95. package/dist/{ne.umd-DILcker0.js → ne.umd-eGVoHQDp.js} +1 -1
  96. package/dist/{nl-DzU83YO5.js → nl-CfwHHD4P.js} +2 -2
  97. package/dist/{nl.umd-Bh05XJjv.js → nl.umd-9AOF1osZ.js} +2 -2
  98. package/dist/{no-CYMGZkQZ.js → no-t7XFPNqE.js} +2 -2
  99. package/dist/{no.umd-DZzi-3hg.js → no.umd-CQsGmvN9.js} +2 -2
  100. package/dist/{oc-DgMHsTcT.js → oc-Cew2Itz6.js} +1 -1
  101. package/dist/{oc.umd-D7Sg-0ig.js → oc.umd-BvjGkAQ4.js} +1 -1
  102. package/dist/{pl-Ca-iuLYM.js → pl-BXVHIUlK.js} +1 -1
  103. package/dist/{pl.umd-DbhOekze.js → pl.umd-CXbrv-6g.js} +1 -1
  104. package/dist/{pt-U-tv_9X0.js → pt-Dv9tfe3q.js} +1 -1
  105. package/dist/{pt-br-BgLHOnR0.js → pt-br-BvR_kkEo.js} +1 -1
  106. package/dist/{pt-br.umd-DjEFq2AE.js → pt-br.umd-CMP_cp3m.js} +1 -1
  107. package/dist/{pt.umd-DtY7s2qU.js → pt.umd-C7UK6eA9.js} +1 -1
  108. package/dist/{ro-BxKdOgSd.js → ro-DOWVzO-A.js} +1 -1
  109. package/dist/{ro.umd-B-AzUjK3.js → ro.umd-ClzltQIe.js} +1 -1
  110. package/dist/{ru-Buok48Ba.js → ru-DHF6RXB5.js} +1 -1
  111. package/dist/{ru.umd-Dj1vdAzm.js → ru.umd-C61MQddk.js} +1 -1
  112. package/dist/{si-lny-61gm.js → si--cbQS_bZ.js} +1 -1
  113. package/dist/{si.umd-C5s8DIYF.js → si.umd-CfVEdMdb.js} +1 -1
  114. package/dist/{sk-DnQciuZg.js → sk--WNTOseI.js} +1 -1
  115. package/dist/{sk.umd-CJq8gCOI.js → sk.umd-DDL6D2M-.js} +1 -1
  116. package/dist/{sl-DMctTYk_.js → sl-DaUnOL11.js} +1 -1
  117. package/dist/{sl.umd-DovduN2W.js → sl.umd-BQNKhuyZ.js} +1 -1
  118. package/dist/{sq-jAeP7WBU.js → sq-BFmmRG3C.js} +1 -1
  119. package/dist/{sq.umd-Cr6kw04e.js → sq.umd-En5urIay.js} +1 -1
  120. package/dist/{sr-latn-ClOBwN-0.js → sr-latn-iIip6wGE.js} +1 -1
  121. package/dist/{sr-latn.umd-96aHoPLY.js → sr-latn.umd-Dq3e2RkH.js} +1 -1
  122. package/dist/{sr-Clvkovd4.js → sr-pQclX2n3.js} +1 -1
  123. package/dist/{sr.umd-B72OaIJj.js → sr.umd-DSwMWmLL.js} +1 -1
  124. package/dist/{sv-CbzPkpYj.js → sv-CcGb9t81.js} +1 -1
  125. package/dist/{sv.umd-OAgshMog.js → sv.umd-CINviyLc.js} +1 -1
  126. package/dist/{th-DNeuR5PV.js → th-CbSYU2YL.js} +1 -1
  127. package/dist/{th.umd-jVRY3cRe.js → th.umd-DalpTEsq.js} +1 -1
  128. package/dist/{ti-BMjjQ2Va.js → ti-Ds82dOA3.js} +1 -1
  129. package/dist/{ti.umd-SrdPh-CX.js → ti.umd-80TYL5O4.js} +1 -1
  130. package/dist/{tk-C5HNi20n.js → tk-Bokg8smS.js} +1 -1
  131. package/dist/{tk.umd-lmtjdifg.js → tk.umd-BtsH5AGM.js} +1 -1
  132. package/dist/{tr-DebLJ2FC.js → tr-kczJRBrH.js} +1 -1
  133. package/dist/{tr.umd-lQIinewH.js → tr.umd-DUfc-YeR.js} +1 -1
  134. package/dist/{tt-Bjpm6xyx.js → tt-CHBZ9vXT.js} +1 -1
  135. package/dist/{tt.umd-etcXVarG.js → tt.umd-Bp2igUrV.js} +1 -1
  136. package/dist/{ug-BfHfLa7a.js → ug-rBtH-v-Q.js} +1 -1
  137. package/dist/{ug.umd-Bz4_4ThU.js → ug.umd-Dz5Ly_CG.js} +1 -1
  138. package/dist/{uk-CvY6wKj1.js → uk-DawCIxWD.js} +1 -1
  139. package/dist/{uk.umd-C6kVS6pD.js → uk.umd-DXH3QnIS.js} +1 -1
  140. package/dist/{ur-MBKbuCXK.js → ur-rg47HiD9.js} +1 -1
  141. package/dist/{ur.umd-DwfgrmMM.js → ur.umd-zyim_cMs.js} +1 -1
  142. package/dist/{uz-twH6keot.js → uz-C57YwW61.js} +1 -1
  143. package/dist/{uz.umd-BRHMFM7m.js → uz.umd-DZrGhXJY.js} +1 -1
  144. package/dist/{vi-BPNv-pmq.js → vi-BPK3sEjf.js} +1 -1
  145. package/dist/{vi.umd-XVwL_61o.js → vi.umd-CdLU1ET0.js} +1 -1
  146. package/dist/{zh-cKnZo5Ud.js → zh-BNS15k0z.js} +1 -1
  147. package/dist/{zh-cn-BGHdixI6.js → zh-cn-C0KCdEMY.js} +1 -1
  148. package/dist/{zh-cn.umd-fW0ysVOP.js → zh-cn.umd-pCBgqBkC.js} +1 -1
  149. package/dist/{zh.umd-kLRHaXKn.js → zh.umd-DVrcBwy5.js} +1 -1
  150. package/package.json +5 -5
@@ -1,454 +1,531 @@
1
- import { b as ae, E as ge, c as te, a as H, d as S, U as ye, s as re, r as Q, p as ne, h as y, e as se, f as le, H as ie, g as Z, i as z, j as k, k as w, l as M, m as Ae, n as Te, o as Ne, q as j, t as fe, u as xe, v as Me, w as Ie, x as Se, I as Y, y as ue, z as we, A as Ce, B as ke, C as He, D as De, F as Re, G as Le, N as Pe, J as Oe, K as Fe, L as Ue, M as Ve, O as L, P as qe, Q as Be, R as ve, S as Ye, T as P, V as oe, W as q, X as $, Y as F, Z as ce, _ as de, $ as U, a0 as G, a1 as O, a2 as V, a3 as $e, a4 as Ke, a5 as We, a6 as Xe } from "./ckeditor5-gdlJPF9t.js";
2
- function Ze(e, t, a = !1) {
3
- y && se();
4
- var r = e, n = null, i = null, u = ye, o = a ? ge : 0, c = !1;
5
- const m = (v, s = !0) => {
6
- c = !0, l(s, v);
7
- };
8
- var _ = null;
9
- function p() {
10
- _ !== null && (_.lastChild.remove(), r.before(_), _ = null);
11
- var v = u ? n : i, s = u ? i : n;
12
- v && Q(v), s && ne(s, () => {
13
- u ? i = null : n = null;
14
- });
1
+ import { c as N, r as ee, d as O, p as re, a as G, b as H, m as ge, s as se, h as E, e as k, f as ne, E as ye, g as le, i as ie, H as fe, j as J, k as Q, l as I, n as x, o as Ae, q as Me, t as Te, u as te, v as ue, w as xe, x as Ne, y as Se, z as we, I as q, A as ke, B as Ce, C as Ie, D as He, F as De, G as Re, J as Le, N as Pe, K as Fe, L as Oe, M as Ve, O as Be, P as L, Q as Ue, R as Ye, S as oe, T as $e, U as P, V as ce, W as Y, X as K, Y as V, Z as ve, _ as he, $ as B, a0 as Z, a1 as F, a2 as U, a3 as qe, a4 as Ke, a5 as We, a6 as Xe } from "./ckeditor5-8LqIgjm8.js";
2
+ class ze {
3
+ /** @type {TemplateNode} */
4
+ anchor;
5
+ /** @type {Map<Batch, Key>} */
6
+ #a = /* @__PURE__ */ new Map();
7
+ /** @type {Map<Key, Effect>} */
8
+ #t = /* @__PURE__ */ new Map();
9
+ /** @type {Map<Key, Branch>} */
10
+ #e = /* @__PURE__ */ new Map();
11
+ /**
12
+ * Whether to pause (i.e. outro) on change, or destroy immediately.
13
+ * This is necessary for `<svelte:element>`
14
+ */
15
+ #r = !0;
16
+ /**
17
+ * @param {TemplateNode} anchor
18
+ * @param {boolean} transition
19
+ */
20
+ constructor(a, t = !0) {
21
+ this.anchor = a, this.#r = t;
15
22
  }
16
- const l = (v, s) => {
17
- if (u === (u = v)) return;
18
- let f = !1;
19
- if (y) {
20
- const g = le(r) === ie;
21
- !!u === g && (r = Z(), z(r), k(!1), f = !0);
23
+ #s = () => {
24
+ var a = (
25
+ /** @type {Batch} */
26
+ N
27
+ );
28
+ if (this.#a.has(a)) {
29
+ var t = (
30
+ /** @type {Key} */
31
+ this.#a.get(a)
32
+ ), r = this.#t.get(t);
33
+ if (r)
34
+ ee(r);
35
+ else {
36
+ var s = this.#e.get(t);
37
+ s && (this.#t.set(t, s.effect), this.#e.delete(t), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
38
+ }
39
+ for (const [n, l] of this.#a) {
40
+ if (this.#a.delete(n), n === a)
41
+ break;
42
+ const i = this.#e.get(l);
43
+ i && (O(i.effect), this.#e.delete(l));
44
+ }
45
+ for (const [n, l] of this.#t) {
46
+ if (n === t) continue;
47
+ const i = () => {
48
+ if (Array.from(this.#a.values()).includes(n)) {
49
+ var v = document.createDocumentFragment();
50
+ ge(l, v), v.append(G()), this.#e.set(n, { effect: l, fragment: v });
51
+ } else
52
+ O(l);
53
+ this.#t.delete(n);
54
+ };
55
+ this.#r || !r ? re(l, i, !1) : i();
56
+ }
22
57
  }
23
- var b = re(), N = r;
24
- if (b && (_ = document.createDocumentFragment(), _.append(N = te())), u ? n ??= s && H(() => s(N)) : i ??= s && H(() => s(N)), b) {
25
- var E = (
26
- /** @type {Batch} */
27
- S
28
- ), d = u ? n : i, h = u ? i : n;
29
- d && E.skipped_effects.delete(d), h && E.skipped_effects.add(h), E.add_callback(p);
30
- } else
31
- p();
32
- f && k(!0);
33
58
  };
34
- ae(() => {
35
- c = !1, t(m), c || l(null, null);
36
- }, o), y && (r = w);
59
+ /**
60
+ *
61
+ * @param {any} key
62
+ * @param {null | ((target: TemplateNode) => void)} fn
63
+ */
64
+ ensure(a, t) {
65
+ var r = (
66
+ /** @type {Batch} */
67
+ N
68
+ ), s = se();
69
+ if (t && !this.#t.has(a) && !this.#e.has(a))
70
+ if (s) {
71
+ var n = document.createDocumentFragment(), l = G();
72
+ n.append(l), this.#e.set(a, {
73
+ effect: H(() => t(l)),
74
+ fragment: n
75
+ });
76
+ } else
77
+ this.#t.set(
78
+ a,
79
+ H(() => t(this.anchor))
80
+ );
81
+ if (this.#a.set(r, a), s) {
82
+ for (const [i, c] of this.#t)
83
+ i === a ? r.skipped_effects.delete(c) : r.skipped_effects.add(c);
84
+ for (const [i, c] of this.#e)
85
+ i === a ? r.skipped_effects.delete(c.effect) : r.skipped_effects.add(c.effect);
86
+ r.add_callback(this.#s);
87
+ } else
88
+ E && (this.anchor = k), this.#s();
89
+ }
37
90
  }
38
- function ze(e, t) {
39
- return t;
91
+ function Ge(e, a, t = !1) {
92
+ E && le();
93
+ var r = new ze(e), s = t ? ye : 0;
94
+ function n(l, i) {
95
+ if (E) {
96
+ const v = ie(e) === fe;
97
+ if (l === v) {
98
+ var c = J();
99
+ Q(c), r.anchor = c, I(!1), r.ensure(l, i), I(!0);
100
+ return;
101
+ }
102
+ }
103
+ r.ensure(l, i);
104
+ }
105
+ ne(() => {
106
+ var l = !1;
107
+ a((i, c = !0) => {
108
+ l = !0, n(c, i);
109
+ }), l || n(!1, null);
110
+ }, s);
111
+ }
112
+ function Je(e, a) {
113
+ return a;
40
114
  }
41
- function Ge(e, t, a) {
42
- for (var r = e.items, n = [], i = t.length, u = 0; u < i; u++)
43
- Ce(t[u].e, n, !0);
44
- var o = i > 0 && n.length === 0 && a !== null;
45
- if (o) {
115
+ function Qe(e, a, t) {
116
+ for (var r = e.items, s = [], n = a.length, l = 0; l < n; l++)
117
+ Ce(a[l].e, s, !0);
118
+ var i = n > 0 && s.length === 0 && t !== null;
119
+ if (i) {
46
120
  var c = (
47
121
  /** @type {Element} */
48
122
  /** @type {Element} */
49
- a.parentNode
123
+ t.parentNode
50
124
  );
51
- ke(c), c.append(
125
+ Ie(c), c.append(
52
126
  /** @type {Element} */
53
- a
54
- ), r.clear(), x(e, t[0].prev, t[i - 1].next);
127
+ t
128
+ ), r.clear(), T(e, a[0].prev, a[n - 1].next);
55
129
  }
56
- He(n, () => {
57
- for (var m = 0; m < i; m++) {
58
- var _ = t[m];
59
- o || (r.delete(_.k), x(e, _.prev, _.next)), ue(_.e, !o);
130
+ He(s, () => {
131
+ for (var v = 0; v < n; v++) {
132
+ var m = a[v];
133
+ i || (r.delete(m.k), T(e, m.prev, m.next)), O(m.e, !i);
60
134
  }
61
135
  });
62
136
  }
63
- function Je(e, t, a, r, n, i = null) {
64
- var u = e, o = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
65
- y && se();
66
- var c = null, m = !1, _ = /* @__PURE__ */ new Map(), p = Ae(() => {
67
- var f = a();
68
- return xe(f) ? f : f == null ? [] : fe(f);
69
- }), l, v;
70
- function s() {
71
- Qe(
72
- v,
73
- l,
74
- o,
75
- _,
137
+ function Ze(e, a, t, r, s, n = null) {
138
+ var l = e, i = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
139
+ E && le();
140
+ var c = null, v = !1, m = /* @__PURE__ */ new Map(), g = Ae(() => {
141
+ var o = t();
142
+ return xe(o) ? o : o == null ? [] : ue(o);
143
+ }), u, d;
144
+ function f() {
145
+ je(
146
+ d,
76
147
  u,
77
- n,
78
- t,
148
+ i,
149
+ m,
150
+ l,
151
+ s,
152
+ a,
79
153
  r,
80
- a
81
- ), i !== null && (l.length === 0 ? c ? Q(c) : c = H(() => i(u)) : c !== null && ne(c, () => {
154
+ t
155
+ ), n !== null && (u.length === 0 ? c ? ee(c) : c = H(() => n(l)) : c !== null && re(c, () => {
82
156
  c = null;
83
157
  }));
84
158
  }
85
- ae(() => {
86
- v ??= /** @type {Effect} */
87
- De, l = /** @type {V[]} */
88
- M(p);
89
- var f = l.length;
90
- if (m && f === 0)
159
+ ne(() => {
160
+ d ??= /** @type {Effect} */
161
+ De, u = /** @type {V[]} */
162
+ x(g);
163
+ var o = u.length;
164
+ if (v && o === 0)
91
165
  return;
92
- m = f === 0;
166
+ v = o === 0;
93
167
  let b = !1;
94
- if (y) {
95
- var N = le(u) === ie;
96
- N !== (f === 0) && (u = Z(), z(u), k(!1), b = !0);
168
+ if (E) {
169
+ var w = ie(l) === fe;
170
+ w !== (o === 0) && (l = J(), Q(l), I(!1), b = !0);
97
171
  }
98
- if (y) {
99
- for (var E = null, d, h = 0; h < f; h++) {
100
- if (w.nodeType === Re && /** @type {Comment} */
101
- w.data === Le) {
102
- u = /** @type {Comment} */
103
- w, b = !0, k(!1);
172
+ if (E) {
173
+ for (var y = null, h, _ = 0; _ < o; _++) {
174
+ if (k.nodeType === Re && /** @type {Comment} */
175
+ k.data === Le) {
176
+ l = /** @type {Comment} */
177
+ k, b = !0, I(!1);
104
178
  break;
105
179
  }
106
- var g = l[h], A = r(g, h);
107
- d = J(
108
- w,
109
- o,
110
- E,
180
+ var p = u[_], A = r(p, _);
181
+ h = j(
182
+ k,
183
+ i,
184
+ y,
111
185
  null,
112
- g,
186
+ p,
113
187
  A,
114
- h,
115
- n,
116
- t,
117
- a
118
- ), o.items.set(A, d), E = d;
188
+ _,
189
+ s,
190
+ a,
191
+ t
192
+ ), i.items.set(A, h), y = h;
119
193
  }
120
- f > 0 && z(Z());
194
+ o > 0 && Q(J());
121
195
  }
122
- if (y)
123
- f === 0 && i && (c = H(() => i(u)));
124
- else if (re()) {
125
- var D = /* @__PURE__ */ new Set(), I = (
196
+ if (E)
197
+ o === 0 && n && (c = H(() => n(l)));
198
+ else if (se()) {
199
+ var D = /* @__PURE__ */ new Set(), S = (
126
200
  /** @type {Batch} */
127
- S
201
+ N
128
202
  );
129
- for (h = 0; h < f; h += 1) {
130
- g = l[h], A = r(g, h);
131
- var T = o.items.get(A) ?? _.get(A);
132
- T ? _e(T, g, h) : (d = J(
203
+ for (_ = 0; _ < o; _ += 1) {
204
+ p = u[_], A = r(p, _);
205
+ var M = i.items.get(A) ?? m.get(A);
206
+ M ? de(M, p, _) : (h = j(
133
207
  null,
134
- o,
208
+ i,
135
209
  null,
136
210
  null,
137
- g,
211
+ p,
138
212
  A,
139
- h,
140
- n,
141
- t,
213
+ _,
214
+ s,
142
215
  a,
216
+ t,
143
217
  !0
144
- ), _.set(A, d)), D.add(A);
218
+ ), m.set(A, h)), D.add(A);
145
219
  }
146
- for (const [R, C] of o.items)
147
- D.has(R) || I.skipped_effects.add(C.e);
148
- I.add_callback(s);
220
+ for (const [R, C] of i.items)
221
+ D.has(R) || S.skipped_effects.add(C.e);
222
+ S.add_callback(f);
149
223
  } else
150
- s();
151
- b && k(!0), M(p);
152
- }), y && (u = w);
224
+ f();
225
+ b && I(!0), x(g);
226
+ }), E && (l = k);
153
227
  }
154
- function Qe(e, t, a, r, n, i, u, o, c) {
155
- var m = t.length, _ = a.items, p = a.first, l = p, v, s = null, f = [], b = [], N, E, d, h;
156
- for (h = 0; h < m; h += 1) {
157
- if (N = t[h], E = o(N, h), d = _.get(E), d === void 0) {
158
- var g = r.get(E);
159
- if (g !== void 0) {
160
- r.delete(E), _.set(E, g);
161
- var A = s ? s.next : l;
162
- x(a, s, g), x(a, g, A), K(g, A, n), s = g;
228
+ function je(e, a, t, r, s, n, l, i, c) {
229
+ var v = a.length, m = t.items, g = t.first, u = g, d, f = null, o = [], b = [], w, y, h, _;
230
+ for (_ = 0; _ < v; _ += 1) {
231
+ if (w = a[_], y = i(w, _), h = m.get(y), h === void 0) {
232
+ var p = r.get(y);
233
+ if (p !== void 0) {
234
+ r.delete(y), m.set(y, p);
235
+ var A = f ? f.next : u;
236
+ T(t, f, p), T(t, p, A), W(p, A, s), f = p;
163
237
  } else {
164
- var D = l ? (
238
+ var D = u ? (
165
239
  /** @type {TemplateNode} */
166
- l.e.nodes_start
167
- ) : n;
168
- s = J(
240
+ u.e.nodes_start
241
+ ) : s;
242
+ f = j(
169
243
  D,
170
- a,
171
- s,
172
- s === null ? a.first : s.next,
173
- N,
174
- E,
175
- h,
176
- i,
177
- u,
244
+ t,
245
+ f,
246
+ f === null ? t.first : f.next,
247
+ w,
248
+ y,
249
+ _,
250
+ n,
251
+ l,
178
252
  c
179
253
  );
180
254
  }
181
- _.set(E, s), f = [], b = [], l = s.next;
255
+ m.set(y, f), o = [], b = [], u = f.next;
182
256
  continue;
183
257
  }
184
- if (_e(d, N, h), (d.e.f & Y) !== 0 && Q(d.e), d !== l) {
185
- if (v !== void 0 && v.has(d)) {
186
- if (f.length < b.length) {
187
- var I = b[0], T;
188
- s = I.prev;
189
- var R = f[0], C = f[f.length - 1];
190
- for (T = 0; T < f.length; T += 1)
191
- K(f[T], I, n);
192
- for (T = 0; T < b.length; T += 1)
193
- v.delete(b[T]);
194
- x(a, R.prev, C.next), x(a, s, R), x(a, C, I), l = I, s = C, h -= 1, f = [], b = [];
258
+ if (de(h, w, _), (h.e.f & q) !== 0 && ee(h.e), h !== u) {
259
+ if (d !== void 0 && d.has(h)) {
260
+ if (o.length < b.length) {
261
+ var S = b[0], M;
262
+ f = S.prev;
263
+ var R = o[0], C = o[o.length - 1];
264
+ for (M = 0; M < o.length; M += 1)
265
+ W(o[M], S, s);
266
+ for (M = 0; M < b.length; M += 1)
267
+ d.delete(b[M]);
268
+ T(t, R.prev, C.next), T(t, f, R), T(t, C, S), u = S, f = C, _ -= 1, o = [], b = [];
195
269
  } else
196
- v.delete(d), K(d, l, n), x(a, d.prev, d.next), x(a, d, s === null ? a.first : s.next), x(a, s, d), s = d;
270
+ d.delete(h), W(h, u, s), T(t, h.prev, h.next), T(t, h, f === null ? t.first : f.next), T(t, f, h), f = h;
197
271
  continue;
198
272
  }
199
- for (f = [], b = []; l !== null && l.k !== E; )
200
- (l.e.f & Y) === 0 && (v ??= /* @__PURE__ */ new Set()).add(l), b.push(l), l = l.next;
201
- if (l === null)
273
+ for (o = [], b = []; u !== null && u.k !== y; )
274
+ (u.e.f & q) === 0 && (d ??= /* @__PURE__ */ new Set()).add(u), b.push(u), u = u.next;
275
+ if (u === null)
202
276
  continue;
203
- d = l;
277
+ h = u;
204
278
  }
205
- f.push(d), s = d, l = d.next;
279
+ o.push(h), f = h, u = h.next;
206
280
  }
207
- if (l !== null || v !== void 0) {
208
- for (var B = v === void 0 ? [] : fe(v); l !== null; )
209
- (l.e.f & Y) === 0 && B.push(l), l = l.next;
210
- var be = B.length;
281
+ if (u !== null || d !== void 0) {
282
+ for (var $ = d === void 0 ? [] : ue(d); u !== null; )
283
+ (u.e.f & q) === 0 && $.push(u), u = u.next;
284
+ var be = $.length;
211
285
  if (be > 0) {
212
286
  var pe = null;
213
- Ge(a, B, pe);
287
+ Qe(t, $, pe);
214
288
  }
215
289
  }
216
- e.first = a.first && a.first.e, e.last = s && s.e;
290
+ e.first = t.first && t.first.e, e.last = f && f.e;
217
291
  for (var Ee of r.values())
218
- ue(Ee.e);
292
+ O(Ee.e);
219
293
  r.clear();
220
294
  }
221
- function _e(e, t, a, r) {
222
- Te(e.v, t), e.i = a;
295
+ function de(e, a, t, r) {
296
+ Me(e.v, a), e.i = t;
223
297
  }
224
- function J(e, t, a, r, n, i, u, o, c, m, _) {
225
- var p = (c & Ie) !== 0, l = (c & Se) === 0, v = p ? l ? Ne(n, !1, !1) : j(n) : n, s = (c & Me) === 0 ? u : j(u), f = {
226
- i: s,
227
- v,
228
- k: i,
298
+ function j(e, a, t, r, s, n, l, i, c, v, m) {
299
+ var g = (c & Se) !== 0, u = (c & we) === 0, d = g ? u ? Te(s, !1, !1) : te(s) : s, f = (c & Ne) === 0 ? l : te(l), o = {
300
+ i: f,
301
+ v: d,
302
+ k: n,
229
303
  a: null,
230
304
  // @ts-expect-error
231
305
  e: null,
232
- prev: a,
306
+ prev: t,
233
307
  next: r
234
308
  };
235
309
  try {
236
310
  if (e === null) {
237
311
  var b = document.createDocumentFragment();
238
- b.append(e = te());
312
+ b.append(e = G());
239
313
  }
240
- return f.e = H(() => o(
314
+ return o.e = H(() => i(
241
315
  /** @type {Node} */
242
316
  e,
243
- v,
244
- s,
245
- m
246
- ), y), f.e.prev = a && a.e, f.e.next = r && r.e, a === null ? _ || (t.first = f) : (a.next = f, a.e.next = f.e), r !== null && (r.prev = f, r.e.prev = f.e), f;
317
+ d,
318
+ f,
319
+ v
320
+ ), E), o.e.prev = t && t.e, o.e.next = r && r.e, t === null ? m || (a.first = o) : (t.next = o, t.e.next = o.e), r !== null && (r.prev = o, r.e.prev = o.e), o;
247
321
  } finally {
248
322
  }
249
323
  }
250
- function K(e, t, a) {
324
+ function W(e, a, t) {
251
325
  for (var r = e.next ? (
252
326
  /** @type {TemplateNode} */
253
327
  e.next.e.nodes_start
254
- ) : a, n = t ? (
328
+ ) : t, s = a ? (
255
329
  /** @type {TemplateNode} */
256
- t.e.nodes_start
257
- ) : a, i = (
330
+ a.e.nodes_start
331
+ ) : t, n = (
258
332
  /** @type {TemplateNode} */
259
333
  e.e.nodes_start
260
- ); i !== null && i !== r; ) {
261
- var u = (
334
+ ); n !== null && n !== r; ) {
335
+ var l = (
262
336
  /** @type {TemplateNode} */
263
- we(i)
337
+ ke(n)
264
338
  );
265
- n.before(i), i = u;
339
+ s.before(n), n = l;
266
340
  }
267
341
  }
268
- function x(e, t, a) {
269
- 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);
342
+ function T(e, a, t) {
343
+ 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);
270
344
  }
271
- function he(e) {
272
- var t, a, r = "";
345
+ function _e(e) {
346
+ var a, t, r = "";
273
347
  if (typeof e == "string" || typeof e == "number") r += e;
274
348
  else if (typeof e == "object") if (Array.isArray(e)) {
275
- var n = e.length;
276
- for (t = 0; t < n; t++) e[t] && (a = he(e[t])) && (r && (r += " "), r += a);
277
- } else for (a in e) e[a] && (r && (r += " "), r += a);
349
+ var s = e.length;
350
+ for (a = 0; a < s; a++) e[a] && (t = _e(e[a])) && (r && (r += " "), r += t);
351
+ } else for (t in e) e[t] && (r && (r += " "), r += t);
278
352
  return r;
279
353
  }
280
- function je() {
281
- for (var e, t, a = 0, r = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = he(e)) && (r && (r += " "), r += t);
354
+ function et() {
355
+ for (var e, a, t = 0, r = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (a = _e(e)) && (r && (r += " "), r += a);
282
356
  return r;
283
357
  }
284
- function ea(e) {
285
- return typeof e == "object" ? je(e) : e ?? "";
358
+ function tt(e) {
359
+ return typeof e == "object" ? et(e) : e ?? "";
286
360
  }
287
- function aa(e, t, a) {
361
+ function at(e, a, t) {
288
362
  var r = e == null ? "" : "" + e;
289
363
  return r === "" ? null : r;
290
364
  }
291
- function ta(e, t, a, r, n, i) {
292
- var u = e.__className;
293
- if (y || u !== a || u === void 0) {
294
- var o = aa(a);
295
- (!y || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e.__className = a;
365
+ function rt(e, a, t, r, s, n) {
366
+ var l = e.__className;
367
+ if (E || l !== t || l === void 0) {
368
+ var i = at(t);
369
+ (!E || i !== e.getAttribute("class")) && (i == null ? e.removeAttribute("class") : e.className = i), e.__className = t;
296
370
  }
297
- return i;
371
+ return n;
298
372
  }
299
- const ra = Symbol("is custom element"), na = Symbol("is html");
300
- function sa(e, t, a, r) {
301
- var n = la(e);
302
- y && (n[t] = e.getAttribute(t)), n[t] !== (n[t] = a) && (a == null ? e.removeAttribute(t) : typeof a != "string" && ia(e).includes(t) ? e[t] = a : e.setAttribute(t, a));
373
+ const st = Symbol("is custom element"), nt = Symbol("is html");
374
+ function lt(e, a, t, r) {
375
+ var s = it(e);
376
+ E && (s[a] = e.getAttribute(a)), s[a] !== (s[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && ft(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
303
377
  }
304
- function la(e) {
378
+ function it(e) {
305
379
  return (
306
380
  /** @type {Record<string | symbol, unknown>} **/
307
381
  // @ts-expect-error
308
382
  e.__attributes ??= {
309
- [ra]: e.nodeName.includes("-"),
310
- [na]: e.namespaceURI === Pe
383
+ [st]: e.nodeName.includes("-"),
384
+ [nt]: e.namespaceURI === Pe
311
385
  }
312
386
  );
313
387
  }
314
- var ee = /* @__PURE__ */ new Map();
315
- function ia(e) {
316
- var t = e.getAttribute("is") || e.nodeName, a = ee.get(t);
317
- if (a) return a;
318
- ee.set(t, a = []);
319
- for (var r, n = e, i = Element.prototype; i !== n; ) {
320
- r = Fe(n);
321
- for (var u in r)
322
- r[u].set && a.push(u);
323
- n = Oe(n);
388
+ var ae = /* @__PURE__ */ new Map();
389
+ function ft(e) {
390
+ var a = e.getAttribute("is") || e.nodeName, t = ae.get(a);
391
+ if (t) return t;
392
+ ae.set(a, t = []);
393
+ for (var r, s = e, n = Element.prototype; n !== s; ) {
394
+ r = Oe(s);
395
+ for (var l in r)
396
+ r[l].set && t.push(l);
397
+ s = Fe(s);
324
398
  }
325
- return a;
399
+ return t;
326
400
  }
327
- function fa(e, t, a = t) {
401
+ function ut(e, a, t = a) {
328
402
  var r = /* @__PURE__ */ new WeakSet();
329
- Ue(e, "input", async (n) => {
330
- var i = n ? e.defaultValue : e.value;
331
- if (i = W(e) ? X(i) : i, a(i), S !== null && r.add(S), await Ve(), i !== (i = t())) {
332
- var u = e.selectionStart, o = e.selectionEnd;
333
- e.value = i ?? "", o !== null && (e.selectionStart = u, e.selectionEnd = Math.min(o, e.value.length));
403
+ Ve(e, "input", async (s) => {
404
+ var n = s ? e.defaultValue : e.value;
405
+ if (n = X(e) ? z(n) : n, t(n), N !== null && r.add(N), await Be(), n !== (n = a())) {
406
+ var l = e.selectionStart, i = e.selectionEnd, c = e.value.length;
407
+ if (e.value = n ?? "", i !== null) {
408
+ var v = e.value.length;
409
+ l === i && i === c && v > c ? (e.selectionStart = v, e.selectionEnd = v) : (e.selectionStart = l, e.selectionEnd = Math.min(i, v));
410
+ }
334
411
  }
335
412
  }), // If we are hydrating and the value has since changed,
336
413
  // then use the updated value from the input instead.
337
- (y && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
414
+ (E && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
338
415
  // TODO Svelte 6: remove input.value check and set to empty string?
339
- L(t) == null && e.value) && (a(W(e) ? X(e.value) : e.value), S !== null && r.add(S)), qe(() => {
340
- var n = t();
416
+ L(a) == null && e.value) && (t(X(e) ? z(e.value) : e.value), N !== null && r.add(N)), Ue(() => {
417
+ var s = a();
341
418
  if (e === document.activeElement) {
342
- var i = (
419
+ var n = (
343
420
  /** @type {Batch} */
344
- Be ?? S
421
+ Ye ?? N
345
422
  );
346
- if (r.has(i))
423
+ if (r.has(n))
347
424
  return;
348
425
  }
349
- W(e) && n === X(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
426
+ X(e) && s === z(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
350
427
  });
351
428
  }
352
- function W(e) {
353
- var t = e.type;
354
- return t === "number" || t === "range";
355
- }
356
429
  function X(e) {
430
+ var a = e.type;
431
+ return a === "number" || a === "range";
432
+ }
433
+ function z(e) {
357
434
  return e === "" ? null : +e;
358
435
  }
359
- var ua = q("<button> </button>"), va = q('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
360
- function me(e, t) {
361
- de(t, !1);
362
- const a = Ye();
363
- let r = P(t, "buttons", 28, () => []);
364
- function n() {
365
- a("html", {});
436
+ var ot = Y("<button> </button>"), ct = Y('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
437
+ function me(e, a) {
438
+ he(a, !1);
439
+ const t = $e();
440
+ let r = P(a, "buttons", 28, () => []);
441
+ function s() {
442
+ t("html", {});
366
443
  }
367
- function i() {
368
- a("plain", {});
444
+ function n() {
445
+ t("plain", {});
369
446
  }
370
- var u = {
447
+ var l = {
371
448
  get buttons() {
372
449
  return r();
373
450
  },
374
- set buttons(p) {
375
- r(p), O();
451
+ set buttons(g) {
452
+ r(g), F();
376
453
  }
377
454
  };
378
- oe();
379
- var o = va(), c = U(o), m = G(c, 2), _ = G(m, 2);
380
- return Je(_, 1, r, ze, (p, l) => {
381
- var v = ua(), s = U(v, !0);
382
- V(v), $e(() => {
383
- ta(v, 1, ea((M(l), L(() => M(l).style)))), sa(v, "title", (M(l), L(() => M(l).text))), Ke(s, (M(l), L(() => M(l).text)));
384
- }), $("click", v, function(...f) {
385
- M(l).handler?.apply(this, f);
386
- }), F(p, v);
387
- }), V(o), $("click", c, n), $("click", m, i), F(e, o), ce(u);
455
+ ce();
456
+ var i = ct(), c = B(i), v = Z(c, 2), m = Z(v, 2);
457
+ return Ze(m, 1, r, Je, (g, u) => {
458
+ var d = ot(), f = B(d, !0);
459
+ U(d), qe(() => {
460
+ rt(d, 1, tt((x(u), L(() => x(u).style)))), lt(d, "title", (x(u), L(() => x(u).text))), Ke(f, (x(u), L(() => x(u).text)));
461
+ }), K("click", d, function(...o) {
462
+ x(u).handler?.apply(this, o);
463
+ }), V(g, d);
464
+ }), U(i), K("click", c, s), K("click", v, n), V(e, i), ve(l);
388
465
  }
389
- ve(me, { buttons: {} }, [], [], !0);
390
- var oa = q("<textarea></textarea>"), ca = q('<main><div class="Editor"><!></div> <!></main>');
391
- function da(e, t) {
392
- de(t, !1);
393
- let a = P(t, "value", 12, ""), r = P(t, "buttons", 28, () => []), n = P(t, "html", 12, !0);
394
- function i() {
395
- n() || n(!0);
466
+ oe(me, { buttons: {} }, [], [], !0);
467
+ var vt = Y("<textarea></textarea>"), ht = Y('<main><div class="Editor"><!></div> <!></main>');
468
+ function dt(e, a) {
469
+ he(a, !1);
470
+ let t = P(a, "value", 12, ""), r = P(a, "buttons", 28, () => []), s = P(a, "html", 12, !0);
471
+ function n() {
472
+ s() || s(!0);
396
473
  }
397
- function u() {
398
- n() && (a(a().replace(/<[^>]*>?/gm, "")), n(!1));
474
+ function l() {
475
+ s() && (t(t().replace(/<[^>]*>?/gm, "")), s(!1));
399
476
  }
400
- var o = {
477
+ var i = {
401
478
  get value() {
402
- return a();
479
+ return t();
403
480
  },
404
- set value(s) {
405
- a(s), O();
481
+ set value(f) {
482
+ t(f), F();
406
483
  },
407
484
  get buttons() {
408
485
  return r();
409
486
  },
410
- set buttons(s) {
411
- r(s), O();
487
+ set buttons(f) {
488
+ r(f), F();
412
489
  },
413
490
  get html() {
414
- return n();
491
+ return s();
415
492
  },
416
- set html(s) {
417
- n(s), O();
493
+ set html(f) {
494
+ s(f), F();
418
495
  }
419
496
  };
420
- oe();
421
- var c = ca(), m = U(c), _ = U(m);
497
+ ce();
498
+ var c = ht(), v = B(c), m = B(v);
422
499
  {
423
- var p = (s) => {
424
- We(s, {
500
+ var g = (f) => {
501
+ We(f, {
425
502
  get value() {
426
- return a();
503
+ return t();
427
504
  },
428
- set value(f) {
429
- a(f);
505
+ set value(o) {
506
+ t(o);
430
507
  },
431
508
  $$legacy: !0
432
509
  });
433
- }, l = (s) => {
434
- var f = oa();
435
- Xe(f), fa(f, a), F(s, f);
510
+ }, u = (f) => {
511
+ var o = vt();
512
+ Xe(o), ut(o, t), V(f, o);
436
513
  };
437
- Ze(_, (s) => {
438
- n() ? s(p) : s(l, !1);
514
+ Ge(m, (f) => {
515
+ s() ? f(g) : f(u, !1);
439
516
  });
440
517
  }
441
- V(m);
442
- var v = G(m, 2);
443
- return me(v, {
518
+ U(v);
519
+ var d = Z(v, 2);
520
+ return me(d, {
444
521
  get buttons() {
445
522
  return r();
446
523
  },
447
- set buttons(s) {
448
- r(s);
524
+ set buttons(f) {
525
+ r(f);
449
526
  },
450
- $$events: { html: i, plain: u },
527
+ $$events: { html: n, plain: l },
451
528
  $$legacy: !0
452
- }), V(c), F(e, c), ce(o);
529
+ }), U(c), V(e, c), ve(i);
453
530
  }
454
- customElements.define("switchable-editor", ve(da, { value: {}, buttons: {}, html: {} }, [], [], !1));
531
+ customElements.define("switchable-editor", oe(dt, { value: {}, buttons: {}, html: {} }, [], [], !1));