cft-builder 0.2.42 → 0.2.45

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.
@@ -1,11 +1,11 @@
1
- var Ml = Object.defineProperty;
2
- var Dl = (n, t, e) => t in n ? Ml(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var T = (n, t, e) => (Dl(n, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-B_vFCTnc.js";
1
+ var Bl = Object.defineProperty;
2
+ var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-CeHBLX2N.js";
5
5
  function Ki(n) {
6
6
  return n;
7
7
  }
8
- function Zl(n, t, e) {
8
+ function Vl(n, t, e) {
9
9
  switch (e.length) {
10
10
  case 0:
11
11
  return n.call(t);
@@ -18,108 +18,106 @@ function Zl(n, t, e) {
18
18
  }
19
19
  return n.apply(t, e);
20
20
  }
21
- var Wl = 800, Xl = 16, Yl = Date.now;
22
- function Ql(n) {
21
+ var Zl = 800, Wl = 16, Xl = Date.now;
22
+ function Yl(n) {
23
23
  var t = 0, e = 0;
24
24
  return function() {
25
- var s = Yl(), r = Xl - (s - e);
25
+ var s = Xl(), r = Wl - (s - e);
26
26
  if (e = s, r > 0) {
27
- if (++t >= Wl)
27
+ if (++t >= Zl)
28
28
  return arguments[0];
29
29
  } else
30
30
  t = 0;
31
31
  return n.apply(void 0, arguments);
32
32
  };
33
33
  }
34
- function Jl(n) {
34
+ function Ql(n) {
35
35
  return function() {
36
36
  return n;
37
37
  };
38
38
  }
39
- var to = ti ? function(n, t) {
39
+ var Jl = ti ? function(n, t) {
40
40
  return ti(n, "toString", {
41
41
  configurable: !0,
42
42
  enumerable: !1,
43
- value: Jl(t),
43
+ value: Ql(t),
44
44
  writable: !0
45
45
  });
46
- } : Ki;
47
- const eo = to;
48
- var so = Ql(eo), li = Math.max;
49
- function no(n, t, e) {
46
+ } : Ki, to = Yl(Jl), li = Math.max;
47
+ function eo(n, t, e) {
50
48
  return t = li(t === void 0 ? n.length - 1 : t, 0), function() {
51
49
  for (var s = arguments, r = -1, i = li(s.length - t, 0), o = Array(i); ++r < i; )
52
50
  o[r] = s[t + r];
53
51
  r = -1;
54
52
  for (var a = Array(t + 1); ++r < t; )
55
53
  a[r] = s[r];
56
- return a[t] = e(o), Zl(n, this, a);
54
+ return a[t] = e(o), Vl(n, this, a);
57
55
  };
58
56
  }
59
- function ro(n, t) {
60
- return so(no(n, t, Ki), n + "");
57
+ function so(n, t) {
58
+ return to(eo(n, t, Ki), n + "");
61
59
  }
62
- function io(n, t, e) {
60
+ function no(n, t, e) {
63
61
  if (!Rr(e))
64
62
  return !1;
65
63
  var s = typeof t;
66
- return (s == "number" ? Hi(e) && Ul(t, e.length) : s == "string" && t in e) ? Br(e[t], n) : !1;
64
+ return (s == "number" ? Hi(e) && Dl(t, e.length) : s == "string" && t in e) ? Br(e[t], n) : !1;
67
65
  }
68
- function lo(n) {
69
- return ro(function(t, e) {
66
+ function ro(n) {
67
+ return so(function(t, e) {
70
68
  var s = -1, r = e.length, i = r > 1 ? e[r - 1] : void 0, o = r > 2 ? e[2] : void 0;
71
- for (i = n.length > 3 && typeof i == "function" ? (r--, i) : void 0, o && io(e[0], e[1], o) && (i = r < 3 ? void 0 : i, r = 1), t = Object(t); ++s < r; ) {
69
+ for (i = n.length > 3 && typeof i == "function" ? (r--, i) : void 0, o && no(e[0], e[1], o) && (i = r < 3 ? void 0 : i, r = 1), t = Object(t); ++s < r; ) {
72
70
  var a = e[s];
73
71
  a && n(t, a, s, i);
74
72
  }
75
73
  return t;
76
74
  });
77
75
  }
78
- var oo = "__lodash_hash_undefined__";
79
- function ao(n) {
80
- return this.__data__.set(n, oo), this;
76
+ var io = "__lodash_hash_undefined__";
77
+ function lo(n) {
78
+ return this.__data__.set(n, io), this;
81
79
  }
82
- function co(n) {
80
+ function oo(n) {
83
81
  return this.__data__.has(n);
84
82
  }
85
83
  function Zs(n) {
86
84
  var t = -1, e = n == null ? 0 : n.length;
87
- for (this.__data__ = new Pl(); ++t < e; )
85
+ for (this.__data__ = new Ul(); ++t < e; )
88
86
  this.add(n[t]);
89
87
  }
90
- Zs.prototype.add = Zs.prototype.push = ao;
91
- Zs.prototype.has = co;
92
- function uo(n, t) {
88
+ Zs.prototype.add = Zs.prototype.push = lo;
89
+ Zs.prototype.has = oo;
90
+ function ao(n, t) {
93
91
  for (var e = -1, s = n == null ? 0 : n.length; ++e < s; )
94
92
  if (t(n[e], e, n))
95
93
  return !0;
96
94
  return !1;
97
95
  }
98
- function ho(n, t) {
96
+ function co(n, t) {
99
97
  return n.has(t);
100
98
  }
101
- var fo = 1, go = 2;
99
+ var uo = 1, ho = 2;
102
100
  function Gi(n, t, e, s, r, i) {
103
- var o = e & fo, a = n.length, c = t.length;
101
+ var o = e & uo, a = n.length, c = t.length;
104
102
  if (a != c && !(o && c > a))
105
103
  return !1;
106
104
  var h = i.get(n), d = i.get(t);
107
105
  if (h && d)
108
106
  return h == t && d == n;
109
- var b = -1, g = !0, p = e & go ? new Zs() : void 0;
107
+ var b = -1, g = !0, p = e & ho ? new Zs() : void 0;
110
108
  for (i.set(n, t), i.set(t, n); ++b < a; ) {
111
109
  var m = n[b], y = t[b];
112
110
  if (s)
113
- var E = o ? s(y, m, b, t, n, i) : s(m, y, b, n, t, i);
114
- if (E !== void 0) {
115
- if (E)
111
+ var v = o ? s(y, m, b, t, n, i) : s(m, y, b, n, t, i);
112
+ if (v !== void 0) {
113
+ if (v)
116
114
  continue;
117
115
  g = !1;
118
116
  break;
119
117
  }
120
118
  if (p) {
121
- if (!uo(t, function(N, w) {
122
- if (!ho(p, w) && (m === N || r(m, N, e, s, i)))
119
+ if (!ao(t, function(N, w) {
120
+ if (!co(p, w) && (m === N || r(m, N, e, s, i)))
123
121
  return p.push(w);
124
122
  })) {
125
123
  g = !1;
@@ -132,62 +130,62 @@ function Gi(n, t, e, s, r, i) {
132
130
  }
133
131
  return i.delete(n), i.delete(t), g;
134
132
  }
135
- function po(n) {
133
+ function fo(n) {
136
134
  var t = -1, e = Array(n.size);
137
135
  return n.forEach(function(s, r) {
138
136
  e[++t] = [r, s];
139
137
  }), e;
140
138
  }
141
- function mo(n) {
139
+ function go(n) {
142
140
  var t = -1, e = Array(n.size);
143
141
  return n.forEach(function(s) {
144
142
  e[++t] = s;
145
143
  }), e;
146
144
  }
147
- var bo = 1, yo = 2, vo = "[object Boolean]", Eo = "[object Date]", No = "[object Error]", Ao = "[object Map]", wo = "[object Number]", xo = "[object RegExp]", To = "[object Set]", Lo = "[object String]", qo = "[object Symbol]", So = "[object ArrayBuffer]", Oo = "[object DataView]", oi = ei ? ei.prototype : void 0, er = oi ? oi.valueOf : void 0;
148
- function Co(n, t, e, s, r, i, o) {
145
+ var po = 1, mo = 2, bo = "[object Boolean]", yo = "[object Date]", vo = "[object Error]", Eo = "[object Map]", No = "[object Number]", Ao = "[object RegExp]", wo = "[object Set]", xo = "[object String]", To = "[object Symbol]", Lo = "[object ArrayBuffer]", qo = "[object DataView]", oi = ei ? ei.prototype : void 0, er = oi ? oi.valueOf : void 0;
146
+ function So(n, t, e, s, r, i, o) {
149
147
  switch (e) {
150
- case Oo:
148
+ case qo:
151
149
  if (n.byteLength != t.byteLength || n.byteOffset != t.byteOffset)
152
150
  return !1;
153
151
  n = n.buffer, t = t.buffer;
154
- case So:
152
+ case Lo:
155
153
  return !(n.byteLength != t.byteLength || !i(new si(n), new si(t)));
156
- case vo:
157
- case Eo:
158
- case wo:
159
- return Br(+n, +t);
154
+ case bo:
155
+ case yo:
160
156
  case No:
157
+ return Br(+n, +t);
158
+ case vo:
161
159
  return n.name == t.name && n.message == t.message;
160
+ case Ao:
162
161
  case xo:
163
- case Lo:
164
162
  return n == t + "";
165
- case Ao:
166
- var a = po;
167
- case To:
168
- var c = s & bo;
169
- if (a || (a = mo), n.size != t.size && !c)
163
+ case Eo:
164
+ var a = fo;
165
+ case wo:
166
+ var c = s & po;
167
+ if (a || (a = go), n.size != t.size && !c)
170
168
  return !1;
171
169
  var h = o.get(n);
172
170
  if (h)
173
171
  return h == t;
174
- s |= yo, o.set(n, t);
172
+ s |= mo, o.set(n, t);
175
173
  var d = Gi(a(n), a(t), s, r, i, o);
176
174
  return o.delete(n), d;
177
- case qo:
175
+ case To:
178
176
  if (er)
179
177
  return er.call(n) == er.call(t);
180
178
  }
181
179
  return !1;
182
180
  }
183
- var _o = 1, ko = Object.prototype, Io = ko.hasOwnProperty;
184
- function Ro(n, t, e, s, r, i) {
185
- var o = e & _o, a = ni(n), c = a.length, h = ni(t), d = h.length;
181
+ var Oo = 1, Co = Object.prototype, _o = Co.hasOwnProperty;
182
+ function ko(n, t, e, s, r, i) {
183
+ var o = e & Oo, a = ni(n), c = a.length, h = ni(t), d = h.length;
186
184
  if (c != d && !o)
187
185
  return !1;
188
186
  for (var b = c; b--; ) {
189
187
  var g = a[b];
190
- if (!(o ? g in t : Io.call(t, g)))
188
+ if (!(o ? g in t : _o.call(t, g)))
191
189
  return !1;
192
190
  }
193
191
  var p = i.get(n), m = i.get(t);
@@ -195,7 +193,7 @@ function Ro(n, t, e, s, r, i) {
195
193
  return p == t && m == n;
196
194
  var y = !0;
197
195
  i.set(n, t), i.set(t, n);
198
- for (var E = o; ++b < c; ) {
196
+ for (var v = o; ++b < c; ) {
199
197
  g = a[b];
200
198
  var N = n[g], w = t[g];
201
199
  if (s)
@@ -204,16 +202,16 @@ function Ro(n, t, e, s, r, i) {
204
202
  y = !1;
205
203
  break;
206
204
  }
207
- E || (E = g == "constructor");
205
+ v || (v = g == "constructor");
208
206
  }
209
- if (y && !E) {
207
+ if (y && !v) {
210
208
  var S = n.constructor, L = t.constructor;
211
209
  S != L && "constructor" in n && "constructor" in t && !(typeof S == "function" && S instanceof S && typeof L == "function" && L instanceof L) && (y = !1);
212
210
  }
213
211
  return i.delete(n), i.delete(t), y;
214
212
  }
215
- var Bo = 1, ai = "[object Arguments]", ci = "[object Array]", Us = "[object Object]", Mo = Object.prototype, ui = Mo.hasOwnProperty;
216
- function Do(n, t, e, s, r, i) {
213
+ var Io = 1, ai = "[object Arguments]", ci = "[object Array]", Us = "[object Object]", Ro = Object.prototype, ui = Ro.hasOwnProperty;
214
+ function Bo(n, t, e, s, r, i) {
217
215
  var o = Vs(n), a = Vs(t), c = o ? ci : ri(n), h = a ? ci : ri(t);
218
216
  c = c == ai ? Us : c, h = h == ai ? Us : h;
219
217
  var d = c == Us, b = h == Us, g = c == h;
@@ -223,44 +221,44 @@ function Do(n, t, e, s, r, i) {
223
221
  o = !0, d = !1;
224
222
  }
225
223
  if (g && !d)
226
- return i || (i = new zs()), o || $i(n) ? Gi(n, t, e, s, r, i) : Co(n, t, c, e, s, r, i);
227
- if (!(e & Bo)) {
224
+ return i || (i = new zs()), o || $i(n) ? Gi(n, t, e, s, r, i) : So(n, t, c, e, s, r, i);
225
+ if (!(e & Io)) {
228
226
  var p = d && ui.call(n, "__wrapped__"), m = b && ui.call(t, "__wrapped__");
229
227
  if (p || m) {
230
- var y = p ? n.value() : n, E = m ? t.value() : t;
231
- return i || (i = new zs()), r(y, E, e, s, i);
228
+ var y = p ? n.value() : n, v = m ? t.value() : t;
229
+ return i || (i = new zs()), r(y, v, e, s, i);
232
230
  }
233
231
  }
234
- return g ? (i || (i = new zs()), Ro(n, t, e, s, r, i)) : !1;
232
+ return g ? (i || (i = new zs()), ko(n, t, e, s, r, i)) : !1;
235
233
  }
236
234
  function Vi(n, t, e, s, r) {
237
- return n === t ? !0 : n == null || t == null || !dr(n) && !dr(t) ? n !== n && t !== t : Do(n, t, e, s, Vi, r);
235
+ return n === t ? !0 : n == null || t == null || !dr(n) && !dr(t) ? n !== n && t !== t : Bo(n, t, e, s, Vi, r);
238
236
  }
239
- function Uo(n) {
237
+ function Mo(n) {
240
238
  return function(t, e, s) {
241
239
  for (var r = -1, i = Object(t), o = s(t), a = o.length; a--; ) {
242
- var c = o[n ? a : ++r];
240
+ var c = o[++r];
243
241
  if (e(i[c], c, i) === !1)
244
242
  break;
245
243
  }
246
244
  return t;
247
245
  };
248
246
  }
249
- var Po = Uo();
247
+ var Do = Mo();
250
248
  function gr(n, t, e) {
251
- (e !== void 0 && !Br(n[t], e) || e === void 0 && !(t in n)) && jl(n, t, e);
249
+ (e !== void 0 && !Br(n[t], e) || e === void 0 && !(t in n)) && Pl(n, t, e);
252
250
  }
253
- function jo(n) {
251
+ function Uo(n) {
254
252
  return dr(n) && Hi(n);
255
253
  }
256
254
  function pr(n, t) {
257
255
  if (!(t === "constructor" && typeof n[t] == "function") && t != "__proto__")
258
256
  return n[t];
259
257
  }
260
- function Ho(n) {
261
- return Hl(n, Fi(n));
258
+ function Po(n) {
259
+ return jl(n, Fi(n));
262
260
  }
263
- function $o(n, t, e, s, r, i, o) {
261
+ function jo(n, t, e, s, r, i, o) {
264
262
  var a = pr(n, e), c = pr(t, e), h = o.get(c);
265
263
  if (h) {
266
264
  gr(n, e, h);
@@ -269,14 +267,14 @@ function $o(n, t, e, s, r, i, o) {
269
267
  var d = i ? i(a, c, e + "", n, t, o) : void 0, b = d === void 0;
270
268
  if (b) {
271
269
  var g = Vs(c), p = !g && fr(c), m = !g && !p && $i(c);
272
- d = c, g || p || m ? Vs(a) ? d = a : jo(a) ? d = $l(a) : p ? (b = !1, d = Fl(c, !0)) : m ? (b = !1, d = zl(c, !0)) : d = [] : Kl(c) || ii(c) ? (d = a, ii(a) ? d = Ho(a) : (!Rr(a) || Gl(a)) && (d = Vl(c))) : b = !1;
270
+ d = c, g || p || m ? Vs(a) ? d = a : Uo(a) ? d = Hl(a) : p ? (b = !1, d = $l(c, !0)) : m ? (b = !1, d = Fl(c, !0)) : d = [] : zl(c) || ii(c) ? (d = a, ii(a) ? d = Po(a) : (!Rr(a) || Kl(a)) && (d = Gl(c))) : b = !1;
273
271
  }
274
272
  b && (o.set(c, d), r(d, c, s, i, o), o.delete(c)), gr(n, e, d);
275
273
  }
276
274
  function Zi(n, t, e, s, r) {
277
- n !== t && Po(t, function(i, o) {
275
+ n !== t && Do(t, function(i, o) {
278
276
  if (r || (r = new zs()), Rr(i))
279
- $o(n, t, o, e, Zi, s, r);
277
+ jo(n, t, o, e, Zi, s, r);
280
278
  else {
281
279
  var a = s ? s(pr(n, o), i, o + "", n, t, r) : void 0;
282
280
  a === void 0 && (a = i), gr(n, o, a);
@@ -286,10 +284,10 @@ function Zi(n, t, e, s, r) {
286
284
  function Mr(n, t) {
287
285
  return Vi(n, t);
288
286
  }
289
- var Gt = lo(function(n, t, e) {
287
+ var Gt = ro(function(n, t, e) {
290
288
  Zi(n, t, e);
291
289
  }), C = /* @__PURE__ */ ((n) => (n[n.TYPE = 3] = "TYPE", n[n.LEVEL = 12] = "LEVEL", n[n.ATTRIBUTE = 13] = "ATTRIBUTE", n[n.BLOT = 14] = "BLOT", n[n.INLINE = 7] = "INLINE", n[n.BLOCK = 11] = "BLOCK", n[n.BLOCK_BLOT = 10] = "BLOCK_BLOT", n[n.INLINE_BLOT = 6] = "INLINE_BLOT", n[n.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", n[n.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", n[n.ANY = 15] = "ANY", n))(C || {});
292
- class qt {
290
+ class St {
293
291
  constructor(t, e, s = {}) {
294
292
  this.attrName = t, this.keyName = e;
295
293
  const r = C.TYPE & C.ATTRIBUTE;
@@ -376,7 +374,7 @@ let qe = Wi;
376
374
  function hi(n, t) {
377
375
  return (n.getAttribute("class") || "").split(/\s+/).filter((e) => e.indexOf(`${t}-`) === 0);
378
376
  }
379
- class Fo extends qt {
377
+ class Ho extends St {
380
378
  static keys(t) {
381
379
  return (t.getAttribute("class") || "").split(/\s+/).map((e) => e.split("-").slice(0, -1).join("-"));
382
380
  }
@@ -393,12 +391,12 @@ class Fo extends qt {
393
391
  return this.canAdd(t, e) ? e : "";
394
392
  }
395
393
  }
396
- const vt = Fo;
394
+ const vt = Ho;
397
395
  function sr(n) {
398
396
  const t = n.split("-"), e = t.slice(1).map((s) => s[0].toUpperCase() + s.slice(1)).join("");
399
397
  return t[0] + e;
400
398
  }
401
- class zo extends qt {
399
+ class $o extends St {
402
400
  static keys(t) {
403
401
  return (t.getAttribute("style") || "").split(";").map((e) => e.split(":")[0].trim());
404
402
  }
@@ -413,8 +411,8 @@ class zo extends qt {
413
411
  return this.canAdd(t, e) ? e : "";
414
412
  }
415
413
  }
416
- const Vt = zo;
417
- class Ko {
414
+ const Vt = $o;
415
+ class Fo {
418
416
  constructor(t) {
419
417
  this.attributes = {}, this.domNode = t, this.build();
420
418
  }
@@ -426,10 +424,10 @@ class Ko {
426
424
  const t = qe.find(this.domNode);
427
425
  if (t == null)
428
426
  return;
429
- const e = qt.keys(this.domNode), s = vt.keys(this.domNode), r = Vt.keys(this.domNode);
427
+ const e = St.keys(this.domNode), s = vt.keys(this.domNode), r = Vt.keys(this.domNode);
430
428
  e.concat(s).concat(r).forEach((i) => {
431
429
  const o = t.scroll.query(i, C.ATTRIBUTE);
432
- o instanceof qt && (this.attributes[o.attrName] = o);
430
+ o instanceof St && (this.attributes[o.attrName] = o);
433
431
  });
434
432
  }
435
433
  copy(t) {
@@ -450,7 +448,7 @@ class Ko {
450
448
  );
451
449
  }
452
450
  }
453
- const Qs = Ko, Xi = class {
451
+ const Qs = Fo, Xi = class {
454
452
  constructor(t, e) {
455
453
  this.scroll = t, this.domNode = e, qe.blots.set(e, this), this.prev = null, this.next = null;
456
454
  }
@@ -561,9 +559,9 @@ const Qi = class extends Yi {
561
559
  }
562
560
  };
563
561
  Qi.scope = C.INLINE_BLOT;
564
- let Go = Qi;
565
- const X = Go;
566
- class Vo {
562
+ let zo = Qi;
563
+ const X = zo;
564
+ class Ko {
567
565
  constructor() {
568
566
  this.head = null, this.tail = null, this.length = 0;
569
567
  }
@@ -697,7 +695,7 @@ const Ji = class $t extends Yi {
697
695
  * Called during construction, should fill its own children LinkedList.
698
696
  */
699
697
  build() {
700
- this.children = new Vo(), Array.from(this.domNode.childNodes).filter((t) => t !== this.uiNode).reverse().forEach((t) => {
698
+ this.children = new Ko(), Array.from(this.domNode.childNodes).filter((t) => t !== this.uiNode).reverse().forEach((t) => {
701
699
  try {
702
700
  const e = fi(t, this.scroll);
703
701
  this.insertBefore(e, this.children.head || void 0);
@@ -831,9 +829,9 @@ const Ji = class $t extends Yi {
831
829
  }
832
830
  };
833
831
  Ji.uiClass = "";
834
- let Zo = Ji;
835
- const bt = Zo;
836
- function Wo(n, t) {
832
+ let Go = Ji;
833
+ const bt = Go;
834
+ function Vo(n, t) {
837
835
  if (Object.keys(n).length !== Object.keys(t).length)
838
836
  return !1;
839
837
  for (const e in n)
@@ -866,7 +864,7 @@ const ye = class ve extends bt {
866
864
  const s = this.scroll.query(t, C.INLINE);
867
865
  if (s == null)
868
866
  return;
869
- s instanceof qt ? this.attributes.attribute(s, e) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e);
867
+ s instanceof St ? this.attributes.attribute(s, e) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e);
870
868
  }
871
869
  }
872
870
  formats() {
@@ -882,7 +880,7 @@ const ye = class ve extends bt {
882
880
  if (Object.keys(e).length === 0)
883
881
  return this.unwrap();
884
882
  const s = this.next;
885
- s instanceof ve && s.prev === this && Wo(e, s.formats()) && (s.moveChildren(this), s.remove());
883
+ s instanceof ve && s.prev === this && Vo(e, s.formats()) && (s.moveChildren(this), s.remove());
886
884
  }
887
885
  replaceWith(t, e) {
888
886
  const s = super.replaceWith(t, e);
@@ -899,8 +897,8 @@ const ye = class ve extends bt {
899
897
  }
900
898
  };
901
899
  ye.allowedChildren = [ye, X], ye.blotName = "inline", ye.scope = C.INLINE_BLOT, ye.tagName = "SPAN";
902
- let Xo = ye;
903
- const Dr = Xo, Ee = class br extends bt {
900
+ let Zo = ye;
901
+ const Dr = Zo, Ee = class br extends bt {
904
902
  static create(t) {
905
903
  return super.create(t);
906
904
  }
@@ -918,7 +916,7 @@ const Dr = Xo, Ee = class br extends bt {
918
916
  }
919
917
  format(t, e) {
920
918
  const s = this.scroll.query(t, C.BLOCK);
921
- s != null && (s instanceof qt ? this.attributes.attribute(s, e) : t === this.statics.blotName && !e ? this.replaceWith(br.blotName) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e));
919
+ s != null && (s instanceof St ? this.attributes.attribute(s, e) : t === this.statics.blotName && !e ? this.replaceWith(br.blotName) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e));
922
920
  }
923
921
  formats() {
924
922
  const t = this.attributes.values(), e = this.statics.formats(this.domNode, this.scroll);
@@ -954,8 +952,8 @@ Ee.blotName = "block", Ee.scope = C.BLOCK_BLOT, Ee.tagName = "P", Ee.allowedChil
954
952
  Ee,
955
953
  X
956
954
  ];
957
- let Yo = Ee;
958
- const es = Yo, yr = class extends bt {
955
+ let Wo = Ee;
956
+ const es = Wo, yr = class extends bt {
959
957
  checkMerge() {
960
958
  return this.next !== null && this.next.statics.blotName === this.statics.blotName;
961
959
  }
@@ -973,9 +971,9 @@ const es = Yo, yr = class extends bt {
973
971
  }
974
972
  };
975
973
  yr.blotName = "container", yr.scope = C.BLOCK_BLOT;
976
- let Qo = yr;
977
- const Js = Qo;
978
- class Jo extends X {
974
+ let Xo = yr;
975
+ const Js = Xo;
976
+ class Yo extends X {
979
977
  static formats(t, e) {
980
978
  }
981
979
  format(t, e) {
@@ -988,17 +986,17 @@ class Jo extends X {
988
986
  return this.statics.formats(this.domNode, this.scroll);
989
987
  }
990
988
  }
991
- const nt = Jo, ta = {
989
+ const rt = Yo, Qo = {
992
990
  attributes: !0,
993
991
  characterData: !0,
994
992
  characterDataOldValue: !0,
995
993
  childList: !0,
996
994
  subtree: !0
997
- }, ea = 100, Ne = class extends bt {
995
+ }, Jo = 100, Ne = class extends bt {
998
996
  constructor(t, e) {
999
997
  super(null, e), this.registry = t, this.scroll = this, this.build(), this.observer = new MutationObserver((s) => {
1000
998
  this.update(s);
1001
- }), this.observer.observe(this.domNode, ta), this.attach();
999
+ }), this.observer.observe(this.domNode, Qo), this.attach();
1002
1000
  }
1003
1001
  create(t, e) {
1004
1002
  return this.registry.create(this, t, e);
@@ -1043,7 +1041,7 @@ const nt = Jo, ta = {
1043
1041
  };
1044
1042
  let a = t;
1045
1043
  for (let c = 0; a.length > 0; c += 1) {
1046
- if (c >= ea)
1044
+ if (c >= Jo)
1047
1045
  throw new Error("[Parchment] Maximum optimize iterations reached");
1048
1046
  for (a.forEach((h) => {
1049
1047
  const d = this.find(h.target, !0);
@@ -1069,8 +1067,8 @@ const nt = Jo, ta = {
1069
1067
  }
1070
1068
  };
1071
1069
  Ne.blotName = "scroll", Ne.defaultChild = es, Ne.allowedChildren = [es, Js], Ne.scope = C.BLOCK_BLOT, Ne.tagName = "DIV";
1072
- let sa = Ne;
1073
- const Ur = sa, vr = class tl extends X {
1070
+ let ta = Ne;
1071
+ const Ur = ta, vr = class tl extends X {
1074
1072
  static create(t) {
1075
1073
  return document.createTextNode(t);
1076
1074
  }
@@ -1116,15 +1114,15 @@ const Ur = sa, vr = class tl extends X {
1116
1114
  }
1117
1115
  };
1118
1116
  vr.blotName = "text", vr.scope = C.INLINE_BLOT;
1119
- let na = vr;
1120
- const Ws = na, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1117
+ let ea = vr;
1118
+ const Ws = ea, sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1121
1119
  __proto__: null,
1122
- Attributor: qt,
1120
+ Attributor: St,
1123
1121
  AttributorStore: Qs,
1124
1122
  BlockBlot: es,
1125
1123
  ClassAttributor: vt,
1126
1124
  ContainerBlot: Js,
1127
- EmbedBlot: nt,
1125
+ EmbedBlot: rt,
1128
1126
  InlineBlot: Dr,
1129
1127
  LeafBlot: X,
1130
1128
  ParentBlot: bt,
@@ -1134,12 +1132,12 @@ const Ws = na, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1134
1132
  StyleAttributor: Vt,
1135
1133
  TextBlot: Ws
1136
1134
  }, Symbol.toStringTag, { value: "Module" }));
1137
- var Er = { exports: {} }, st = -1, J = 1, F = 0;
1135
+ var Er = { exports: {} }, nt = -1, J = 1, F = 0;
1138
1136
  function ss(n, t, e, s, r) {
1139
1137
  if (n === t)
1140
1138
  return n ? [[F, n]] : [];
1141
1139
  if (e != null) {
1142
- var i = da(n, t, e);
1140
+ var i = ha(n, t, e);
1143
1141
  if (i)
1144
1142
  return i;
1145
1143
  }
@@ -1147,42 +1145,42 @@ function ss(n, t, e, s, r) {
1147
1145
  n = n.substring(o), t = t.substring(o), o = tn(n, t);
1148
1146
  var c = n.substring(n.length - o);
1149
1147
  n = n.substring(0, n.length - o), t = t.substring(0, t.length - o);
1150
- var h = ia(n, t);
1151
- return a && h.unshift([F, a]), c && h.push([F, c]), jr(h, r), s && aa(h), h;
1148
+ var h = na(n, t);
1149
+ return a && h.unshift([F, a]), c && h.push([F, c]), jr(h, r), s && la(h), h;
1152
1150
  }
1153
- function ia(n, t) {
1151
+ function na(n, t) {
1154
1152
  var e;
1155
1153
  if (!n)
1156
1154
  return [[J, t]];
1157
1155
  if (!t)
1158
- return [[st, n]];
1156
+ return [[nt, n]];
1159
1157
  var s = n.length > t.length ? n : t, r = n.length > t.length ? t : n, i = s.indexOf(r);
1160
1158
  if (i !== -1)
1161
1159
  return e = [
1162
1160
  [J, s.substring(0, i)],
1163
1161
  [F, r],
1164
1162
  [J, s.substring(i + r.length)]
1165
- ], n.length > t.length && (e[0][0] = e[2][0] = st), e;
1163
+ ], n.length > t.length && (e[0][0] = e[2][0] = nt), e;
1166
1164
  if (r.length === 1)
1167
1165
  return [
1168
- [st, n],
1166
+ [nt, n],
1169
1167
  [J, t]
1170
1168
  ];
1171
- var o = oa(n, t);
1169
+ var o = ia(n, t);
1172
1170
  if (o) {
1173
1171
  var a = o[0], c = o[1], h = o[2], d = o[3], b = o[4], g = ss(a, h), p = ss(c, d);
1174
1172
  return g.concat([[F, b]], p);
1175
1173
  }
1176
- return la(n, t);
1174
+ return ra(n, t);
1177
1175
  }
1178
- function la(n, t) {
1176
+ function ra(n, t) {
1179
1177
  for (var e = n.length, s = t.length, r = Math.ceil((e + s) / 2), i = r, o = 2 * r, a = new Array(o), c = new Array(o), h = 0; h < o; h++)
1180
1178
  a[h] = -1, c[h] = -1;
1181
1179
  a[i + 1] = 0, c[i + 1] = 0;
1182
- for (var d = e - s, b = d % 2 !== 0, g = 0, p = 0, m = 0, y = 0, E = 0; E < r; E++) {
1183
- for (var N = -E + g; N <= E - p; N += 2) {
1180
+ for (var d = e - s, b = d % 2 !== 0, g = 0, p = 0, m = 0, y = 0, v = 0; v < r; v++) {
1181
+ for (var N = -v + g; N <= v - p; N += 2) {
1184
1182
  var w = i + N, x;
1185
- N === -E || N !== E && a[w - 1] < a[w + 1] ? x = a[w + 1] : x = a[w - 1] + 1;
1183
+ N === -v || N !== v && a[w - 1] < a[w + 1] ? x = a[w + 1] : x = a[w - 1] + 1;
1186
1184
  for (var S = x - N; x < e && S < s && n.charAt(x) === t.charAt(S); )
1187
1185
  x++, S++;
1188
1186
  if (a[w] = x, x > e)
@@ -1198,17 +1196,17 @@ function la(n, t) {
1198
1196
  }
1199
1197
  }
1200
1198
  }
1201
- for (var B = -E + m; B <= E - y; B += 2) {
1202
- var L = i + B, k;
1203
- B === -E || B !== E && c[L - 1] < c[L + 1] ? k = c[L + 1] : k = c[L - 1] + 1;
1204
- for (var j = k - B; k < e && j < s && n.charAt(e - k - 1) === t.charAt(s - j - 1); )
1199
+ for (var R = -v + m; R <= v - y; R += 2) {
1200
+ var L = i + R, k;
1201
+ R === -v || R !== v && c[L - 1] < c[L + 1] ? k = c[L + 1] : k = c[L - 1] + 1;
1202
+ for (var j = k - R; k < e && j < s && n.charAt(e - k - 1) === t.charAt(s - j - 1); )
1205
1203
  k++, j++;
1206
1204
  if (c[L] = k, k > e)
1207
1205
  y += 2;
1208
1206
  else if (j > s)
1209
1207
  m += 2;
1210
1208
  else if (!b) {
1211
- var w = i + d - B;
1209
+ var w = i + d - R;
1212
1210
  if (w >= 0 && w < o && a[w] !== -1) {
1213
1211
  var x = a[w], S = i + x - w;
1214
1212
  if (k = e - k, x >= k)
@@ -1218,7 +1216,7 @@ function la(n, t) {
1218
1216
  }
1219
1217
  }
1220
1218
  return [
1221
- [st, n],
1219
+ [nt, n],
1222
1220
  [J, t]
1223
1221
  ];
1224
1222
  }
@@ -1255,20 +1253,20 @@ function tn(n, t) {
1255
1253
  n.substring(n.length - r, n.length - i) == t.substring(t.length - r, t.length - i) ? (e = r, i = e) : s = r, r = Math.floor((s - e) / 2 + e);
1256
1254
  return sl(n.charCodeAt(n.length - r)) && r--, r;
1257
1255
  }
1258
- function oa(n, t) {
1256
+ function ia(n, t) {
1259
1257
  var e = n.length > t.length ? n : t, s = n.length > t.length ? t : n;
1260
1258
  if (e.length < 4 || s.length * 2 < e.length)
1261
1259
  return null;
1262
1260
  function r(p, m, y) {
1263
- for (var E = p.substring(y, y + Math.floor(p.length / 4)), N = -1, w = "", x, S, L, k; (N = m.indexOf(E, N + 1)) !== -1; ) {
1264
- var B = Pr(
1261
+ for (var v = p.substring(y, y + Math.floor(p.length / 4)), N = -1, w = "", x, S, L, k; (N = m.indexOf(v, N + 1)) !== -1; ) {
1262
+ var R = Pr(
1265
1263
  p.substring(y),
1266
1264
  m.substring(N)
1267
1265
  ), j = tn(
1268
1266
  p.substring(0, y),
1269
1267
  m.substring(0, N)
1270
1268
  );
1271
- w.length < j + B && (w = m.substring(N - j, N) + m.substring(N, N + B), x = p.substring(0, y - j), S = p.substring(y + B), L = m.substring(0, N - j), k = m.substring(N + B));
1269
+ w.length < j + R && (w = m.substring(N - j, N) + m.substring(N, N + R), x = p.substring(0, y - j), S = p.substring(y + R), L = m.substring(0, N - j), k = m.substring(N + R));
1272
1270
  }
1273
1271
  return w.length * 2 >= p.length ? [
1274
1272
  x,
@@ -1295,14 +1293,14 @@ function oa(n, t) {
1295
1293
  var g = a[4];
1296
1294
  return [c, h, d, b, g];
1297
1295
  }
1298
- function aa(n) {
1296
+ function la(n) {
1299
1297
  for (var t = !1, e = [], s = 0, r = null, i = 0, o = 0, a = 0, c = 0, h = 0; i < n.length; )
1300
1298
  n[i][0] == F ? (e[s++] = i, o = c, a = h, c = 0, h = 0, r = n[i][1]) : (n[i][0] == J ? c += n[i][1].length : h += n[i][1].length, r && r.length <= Math.max(o, a) && r.length <= Math.max(c, h) && (n.splice(e[s - 1], 0, [
1301
- st,
1299
+ nt,
1302
1300
  r
1303
1301
  ]), n[e[s - 1] + 1][0] = J, s--, s--, i = s > 0 ? e[s - 1] : -1, o = 0, a = 0, c = 0, h = 0, r = null, t = !0)), i++;
1304
- for (t && jr(n), ha(n), i = 1; i < n.length; ) {
1305
- if (n[i - 1][0] == st && n[i][0] == J) {
1302
+ for (t && jr(n), ca(n), i = 1; i < n.length; ) {
1303
+ if (n[i - 1][0] == nt && n[i][0] == J) {
1306
1304
  var d = n[i - 1][1], b = n[i][1], g = gi(d, b), p = gi(b, d);
1307
1305
  g >= p ? (g >= d.length / 2 || g >= b.length / 2) && (n.splice(i, 0, [
1308
1306
  F,
@@ -1316,18 +1314,18 @@ function aa(n) {
1316
1314
  ]), n[i - 1][0] = J, n[i - 1][1] = b.substring(
1317
1315
  0,
1318
1316
  b.length - p
1319
- ), n[i + 1][0] = st, n[i + 1][1] = d.substring(p), i++), i++;
1317
+ ), n[i + 1][0] = nt, n[i + 1][1] = d.substring(p), i++), i++;
1320
1318
  }
1321
1319
  i++;
1322
1320
  }
1323
1321
  }
1324
- var pi = /[^a-zA-Z0-9]/, mi = /\s/, bi = /[\r\n]/, ca = /\n\r?\n$/, ua = /^\r?\n\r?\n/;
1325
- function ha(n) {
1322
+ var pi = /[^a-zA-Z0-9]/, mi = /\s/, bi = /[\r\n]/, oa = /\n\r?\n$/, aa = /^\r?\n\r?\n/;
1323
+ function ca(n) {
1326
1324
  function t(p, m) {
1327
1325
  if (!p || !m)
1328
1326
  return 6;
1329
- var y = p.charAt(p.length - 1), E = m.charAt(0), N = y.match(pi), w = E.match(pi), x = N && y.match(mi), S = w && E.match(mi), L = x && y.match(bi), k = S && E.match(bi), B = L && p.match(ca), j = k && m.match(ua);
1330
- return B || j ? 5 : L || k ? 4 : N && !x && S ? 3 : x || S ? 2 : N || w ? 1 : 0;
1327
+ var y = p.charAt(p.length - 1), v = m.charAt(0), N = y.match(pi), w = v.match(pi), x = N && y.match(mi), S = w && v.match(mi), L = x && y.match(bi), k = S && v.match(bi), R = L && p.match(oa), j = k && m.match(aa);
1328
+ return R || j ? 5 : L || k ? 4 : N && !x && S ? 3 : x || S ? 2 : N || w ? 1 : 0;
1331
1329
  }
1332
1330
  for (var e = 1; e < n.length - 1; ) {
1333
1331
  if (n[e - 1][0] == F && n[e + 1][0] == F) {
@@ -1357,7 +1355,7 @@ function jr(n, t) {
1357
1355
  case J:
1358
1356
  r++, o += n[e][1], e++;
1359
1357
  break;
1360
- case st:
1358
+ case nt:
1361
1359
  s++, i += n[e][1], e++;
1362
1360
  break;
1363
1361
  case F:
@@ -1371,7 +1369,7 @@ function jr(n, t) {
1371
1369
  ), i = h + i, o = h + o, !n[c][1]) {
1372
1370
  n.splice(c, 1), e--;
1373
1371
  var d = c - 1;
1374
- n[d] && n[d][0] === J && (r++, o = n[d][1] + o, d--), n[d] && n[d][0] === st && (s++, i = n[d][1] + i, d--), c = d;
1372
+ n[d] && n[d][0] === J && (r++, o = n[d][1] + o, d--), n[d] && n[d][0] === nt && (s++, i = n[d][1] + i, d--), c = d;
1375
1373
  }
1376
1374
  }
1377
1375
  if (nl(n[e][1])) {
@@ -1398,10 +1396,10 @@ function jr(n, t) {
1398
1396
  i.length - a
1399
1397
  )));
1400
1398
  var b = r + s;
1401
- i.length === 0 && o.length === 0 ? (n.splice(e - b, b), e = e - b) : i.length === 0 ? (n.splice(e - b, b, [J, o]), e = e - b + 1) : o.length === 0 ? (n.splice(e - b, b, [st, i]), e = e - b + 1) : (n.splice(
1399
+ i.length === 0 && o.length === 0 ? (n.splice(e - b, b), e = e - b) : i.length === 0 ? (n.splice(e - b, b, [J, o]), e = e - b + 1) : o.length === 0 ? (n.splice(e - b, b, [nt, i]), e = e - b + 1) : (n.splice(
1402
1400
  e - b,
1403
1401
  b,
1404
- [st, i],
1402
+ [nt, i],
1405
1403
  [J, o]
1406
1404
  ), e = e - b + 2);
1407
1405
  }
@@ -1432,20 +1430,20 @@ function nl(n) {
1432
1430
  function rl(n) {
1433
1431
  return el(n.charCodeAt(n.length - 1));
1434
1432
  }
1435
- function fa(n) {
1433
+ function ua(n) {
1436
1434
  for (var t = [], e = 0; e < n.length; e++)
1437
1435
  n[e][1].length > 0 && t.push(n[e]);
1438
1436
  return t;
1439
1437
  }
1440
1438
  function nr(n, t, e, s) {
1441
- return rl(n) || nl(s) ? null : fa([
1439
+ return rl(n) || nl(s) ? null : ua([
1442
1440
  [F, n],
1443
- [st, t],
1441
+ [nt, t],
1444
1442
  [J, e],
1445
1443
  [F, s]
1446
1444
  ]);
1447
1445
  }
1448
- function da(n, t, e) {
1446
+ function ha(n, t, e) {
1449
1447
  var s = typeof e == "number" ? { index: e, length: 0 } : e.oldRange, r = typeof e == "number" ? null : e.newRange, i = n.length, o = t.length;
1450
1448
  if (s.length === 0 && (r === null || r.length === 0)) {
1451
1449
  var a = s.index, c = n.slice(0, a), h = n.slice(a), d = r ? r.index : null;
@@ -1456,8 +1454,8 @@ function da(n, t, e) {
1456
1454
  var g = t.slice(0, b), p = t.slice(b);
1457
1455
  if (p !== h)
1458
1456
  break t;
1459
- var m = Math.min(a, b), y = c.slice(0, m), E = g.slice(0, m);
1460
- if (y !== E)
1457
+ var m = Math.min(a, b), y = c.slice(0, m), v = g.slice(0, m);
1458
+ if (y !== v)
1461
1459
  break t;
1462
1460
  var N = c.slice(m), w = g.slice(m);
1463
1461
  return nr(y, N, w, h);
@@ -1480,8 +1478,8 @@ function da(n, t, e) {
1480
1478
  var y = n.slice(0, s.index), L = n.slice(s.index + s.length), m = y.length, S = L.length;
1481
1479
  if (o < m + S)
1482
1480
  break t;
1483
- var E = t.slice(0, m), k = t.slice(o - S);
1484
- if (y !== E || L !== k)
1481
+ var v = t.slice(0, m), k = t.slice(o - S);
1482
+ if (y !== v || L !== k)
1485
1483
  break t;
1486
1484
  var N = n.slice(m, i - S), w = t.slice(m, o - S);
1487
1485
  return nr(y, N, w, L);
@@ -1492,13 +1490,13 @@ function en(n, t, e, s) {
1492
1490
  return ss(n, t, e, s, !0);
1493
1491
  }
1494
1492
  en.INSERT = J;
1495
- en.DELETE = st;
1493
+ en.DELETE = nt;
1496
1494
  en.EQUAL = F;
1497
- var ga = en, Xs = { exports: {} };
1495
+ var fa = en, Xs = { exports: {} };
1498
1496
  Xs.exports;
1499
1497
  (function(n, t) {
1500
- var e = 200, s = "__lodash_hash_undefined__", r = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", c = "[object Date]", h = "[object Error]", d = "[object Function]", b = "[object GeneratorFunction]", g = "[object Map]", p = "[object Number]", m = "[object Object]", y = "[object Promise]", E = "[object RegExp]", N = "[object Set]", w = "[object String]", x = "[object Symbol]", S = "[object WeakMap]", L = "[object ArrayBuffer]", k = "[object DataView]", B = "[object Float32Array]", j = "[object Float64Array]", Ct = "[object Int8Array]", Pt = "[object Int16Array]", Zt = "[object Int32Array]", Wt = "[object Uint8Array]", us = "[object Uint8ClampedArray]", hs = "[object Uint16Array]", fs = "[object Uint32Array]", on = /[\\^$.*+?()[\]{}|]/g, an = /\w*$/, cn = /^\[object .+?Constructor\]$/, un = /^(?:0|[1-9]\d*)$/, U = {};
1501
- U[i] = U[o] = U[L] = U[k] = U[a] = U[c] = U[B] = U[j] = U[Ct] = U[Pt] = U[Zt] = U[g] = U[p] = U[m] = U[E] = U[N] = U[w] = U[x] = U[Wt] = U[us] = U[hs] = U[fs] = !0, U[h] = U[d] = U[S] = !1;
1498
+ var e = 200, s = "__lodash_hash_undefined__", r = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", c = "[object Date]", h = "[object Error]", d = "[object Function]", b = "[object GeneratorFunction]", g = "[object Map]", p = "[object Number]", m = "[object Object]", y = "[object Promise]", v = "[object RegExp]", N = "[object Set]", w = "[object String]", x = "[object Symbol]", S = "[object WeakMap]", L = "[object ArrayBuffer]", k = "[object DataView]", R = "[object Float32Array]", j = "[object Float64Array]", Ct = "[object Int8Array]", Pt = "[object Int16Array]", Zt = "[object Int32Array]", Wt = "[object Uint8Array]", us = "[object Uint8ClampedArray]", hs = "[object Uint16Array]", fs = "[object Uint32Array]", on = /[\\^$.*+?()[\]{}|]/g, an = /\w*$/, cn = /^\[object .+?Constructor\]$/, un = /^(?:0|[1-9]\d*)$/, U = {};
1499
+ U[i] = U[o] = U[L] = U[k] = U[a] = U[c] = U[R] = U[j] = U[Ct] = U[Pt] = U[Zt] = U[g] = U[p] = U[m] = U[v] = U[N] = U[w] = U[x] = U[Wt] = U[us] = U[hs] = U[fs] = !0, U[h] = U[d] = U[S] = !1;
1502
1500
  var hn = typeof Ft == "object" && Ft && Ft.Object === Object && Ft, fn = typeof self == "object" && self && self.Object === Object && self, ut = hn || fn || Function("return this")(), ds = t && !t.nodeType && t, P = ds && !0 && n && !n.nodeType && n, gs = P && P.exports === ds;
1503
1501
  function dn(l, u) {
1504
1502
  return l.set(u[0], u[1]), l;
@@ -1507,25 +1505,24 @@ Xs.exports;
1507
1505
  return l.add(u), l;
1508
1506
  }
1509
1507
  function ps(l, u) {
1510
- for (var f = -1, v = l ? l.length : 0; ++f < v && u(l[f], f, l) !== !1; )
1508
+ for (var f = -1, E = l ? l.length : 0; ++f < E && u(l[f], f, l) !== !1; )
1511
1509
  ;
1512
1510
  return l;
1513
1511
  }
1514
1512
  function ms(l, u) {
1515
- for (var f = -1, v = u.length, I = l.length; ++f < v; )
1513
+ for (var f = -1, E = u.length, I = l.length; ++f < E; )
1516
1514
  l[I + f] = u[f];
1517
1515
  return l;
1518
1516
  }
1519
- function _e(l, u, f, v) {
1520
- var I = -1, _ = l ? l.length : 0;
1521
- for (v && _ && (f = l[++I]); ++I < _; )
1517
+ function _e(l, u, f, E) {
1518
+ for (var I = -1, _ = l ? l.length : 0; ++I < _; )
1522
1519
  f = u(f, l[I], I, l);
1523
1520
  return f;
1524
1521
  }
1525
1522
  function ke(l, u) {
1526
- for (var f = -1, v = Array(l); ++f < l; )
1527
- v[f] = u(f);
1528
- return v;
1523
+ for (var f = -1, E = Array(l); ++f < l; )
1524
+ E[f] = u(f);
1525
+ return E;
1529
1526
  }
1530
1527
  function bs(l, u) {
1531
1528
  return l == null ? void 0 : l[u];
@@ -1541,8 +1538,8 @@ Xs.exports;
1541
1538
  }
1542
1539
  function ys(l) {
1543
1540
  var u = -1, f = Array(l.size);
1544
- return l.forEach(function(v, I) {
1545
- f[++u] = [I, v];
1541
+ return l.forEach(function(E, I) {
1542
+ f[++u] = [I, E];
1546
1543
  }), f;
1547
1544
  }
1548
1545
  function Re(l, u) {
@@ -1552,21 +1549,21 @@ Xs.exports;
1552
1549
  }
1553
1550
  function vs(l) {
1554
1551
  var u = -1, f = Array(l.size);
1555
- return l.forEach(function(v) {
1556
- f[++u] = v;
1552
+ return l.forEach(function(E) {
1553
+ f[++u] = E;
1557
1554
  }), f;
1558
1555
  }
1559
1556
  var gn = Array.prototype, pn = Function.prototype, oe = Object.prototype, Be = ut["__core-js_shared__"], Es = function() {
1560
1557
  var l = /[^.]+$/.exec(Be && Be.keys && Be.keys.IE_PROTO || "");
1561
1558
  return l ? "Symbol(src)_1." + l : "";
1562
- }(), Ns = pn.toString, Nt = oe.hasOwnProperty, ae = oe.toString, mn = RegExp(
1563
- "^" + Ns.call(Nt).replace(on, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1564
- ), Xt = gs ? ut.Buffer : void 0, ce = ut.Symbol, Me = ut.Uint8Array, rt = Re(Object.getPrototypeOf, Object), As = Object.create, ws = oe.propertyIsEnumerable, bn = gn.splice, De = Object.getOwnPropertySymbols, ue = Xt ? Xt.isBuffer : void 0, xs = Re(Object.keys, Object), he = dt(ut, "DataView"), Yt = dt(ut, "Map"), ft = dt(ut, "Promise"), fe = dt(ut, "Set"), Ue = dt(ut, "WeakMap"), Qt = dt(Object, "create"), Pe = Q(he), Jt = Q(Yt), je = Q(ft), He = Q(fe), $e = Q(Ue), jt = ce ? ce.prototype : void 0, Ts = jt ? jt.valueOf : void 0;
1559
+ }(), Ns = pn.toString, At = oe.hasOwnProperty, ae = oe.toString, mn = RegExp(
1560
+ "^" + Ns.call(At).replace(on, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1561
+ ), Xt = gs ? ut.Buffer : void 0, ce = ut.Symbol, Me = ut.Uint8Array, it = Re(Object.getPrototypeOf, Object), As = Object.create, ws = oe.propertyIsEnumerable, bn = gn.splice, De = Object.getOwnPropertySymbols, ue = Xt ? Xt.isBuffer : void 0, xs = Re(Object.keys, Object), he = dt(ut, "DataView"), Yt = dt(ut, "Map"), ft = dt(ut, "Promise"), fe = dt(ut, "Set"), Ue = dt(ut, "WeakMap"), Qt = dt(Object, "create"), Pe = Q(he), Jt = Q(Yt), je = Q(ft), He = Q(fe), $e = Q(Ue), jt = ce ? ce.prototype : void 0, Ts = jt ? jt.valueOf : void 0;
1565
1562
  function _t(l) {
1566
1563
  var u = -1, f = l ? l.length : 0;
1567
1564
  for (this.clear(); ++u < f; ) {
1568
- var v = l[u];
1569
- this.set(v[0], v[1]);
1565
+ var E = l[u];
1566
+ this.set(E[0], E[1]);
1570
1567
  }
1571
1568
  }
1572
1569
  function yn() {
@@ -1581,11 +1578,11 @@ Xs.exports;
1581
1578
  var f = u[l];
1582
1579
  return f === s ? void 0 : f;
1583
1580
  }
1584
- return Nt.call(u, l) ? u[l] : void 0;
1581
+ return At.call(u, l) ? u[l] : void 0;
1585
1582
  }
1586
1583
  function Ls(l) {
1587
1584
  var u = this.__data__;
1588
- return Qt ? u[l] !== void 0 : Nt.call(u, l);
1585
+ return Qt ? u[l] !== void 0 : At.call(u, l);
1589
1586
  }
1590
1587
  function Fe(l, u) {
1591
1588
  var f = this.__data__;
@@ -1595,8 +1592,8 @@ Xs.exports;
1595
1592
  function z(l) {
1596
1593
  var u = -1, f = l ? l.length : 0;
1597
1594
  for (this.clear(); ++u < f; ) {
1598
- var v = l[u];
1599
- this.set(v[0], v[1]);
1595
+ var E = l[u];
1596
+ this.set(E[0], E[1]);
1600
1597
  }
1601
1598
  }
1602
1599
  function Nn() {
@@ -1606,8 +1603,8 @@ Xs.exports;
1606
1603
  var u = this.__data__, f = ge(u, l);
1607
1604
  if (f < 0)
1608
1605
  return !1;
1609
- var v = u.length - 1;
1610
- return f == v ? u.pop() : bn.call(u, f, 1), !0;
1606
+ var E = u.length - 1;
1607
+ return f == E ? u.pop() : bn.call(u, f, 1), !0;
1611
1608
  }
1612
1609
  function wn(l) {
1613
1610
  var u = this.__data__, f = ge(u, l);
@@ -1617,15 +1614,15 @@ Xs.exports;
1617
1614
  return ge(this.__data__, l) > -1;
1618
1615
  }
1619
1616
  function Tn(l, u) {
1620
- var f = this.__data__, v = ge(f, l);
1621
- return v < 0 ? f.push([l, u]) : f[v][1] = u, this;
1617
+ var f = this.__data__, E = ge(f, l);
1618
+ return E < 0 ? f.push([l, u]) : f[E][1] = u, this;
1622
1619
  }
1623
1620
  z.prototype.clear = Nn, z.prototype.delete = An, z.prototype.get = wn, z.prototype.has = xn, z.prototype.set = Tn;
1624
1621
  function V(l) {
1625
1622
  var u = -1, f = l ? l.length : 0;
1626
1623
  for (this.clear(); ++u < f; ) {
1627
- var v = l[u];
1628
- this.set(v[0], v[1]);
1624
+ var E = l[u];
1625
+ this.set(E[0], E[1]);
1629
1626
  }
1630
1627
  }
1631
1628
  function Ln() {
@@ -1648,7 +1645,7 @@ Xs.exports;
1648
1645
  return ee(this, l).set(l, u), this;
1649
1646
  }
1650
1647
  V.prototype.clear = Ln, V.prototype.delete = qn, V.prototype.get = Sn, V.prototype.has = On, V.prototype.set = Cn;
1651
- function tt(l) {
1648
+ function et(l) {
1652
1649
  this.__data__ = new z(l);
1653
1650
  }
1654
1651
  function _n() {
@@ -1666,23 +1663,23 @@ Xs.exports;
1666
1663
  function Bn(l, u) {
1667
1664
  var f = this.__data__;
1668
1665
  if (f instanceof z) {
1669
- var v = f.__data__;
1670
- if (!Yt || v.length < e - 1)
1671
- return v.push([l, u]), this;
1672
- f = this.__data__ = new V(v);
1666
+ var E = f.__data__;
1667
+ if (!Yt || E.length < e - 1)
1668
+ return E.push([l, u]), this;
1669
+ f = this.__data__ = new V(E);
1673
1670
  }
1674
1671
  return f.set(l, u), this;
1675
1672
  }
1676
- tt.prototype.clear = _n, tt.prototype.delete = kn, tt.prototype.get = In, tt.prototype.has = Rn, tt.prototype.set = Bn;
1673
+ et.prototype.clear = _n, et.prototype.delete = kn, et.prototype.get = In, et.prototype.has = Rn, et.prototype.set = Bn;
1677
1674
  function de(l, u) {
1678
- var f = Ve(l) || me(l) ? ke(l.length, String) : [], v = f.length, I = !!v;
1675
+ var f = Ve(l) || me(l) ? ke(l.length, String) : [], E = f.length, I = !!E;
1679
1676
  for (var _ in l)
1680
- (u || Nt.call(l, _)) && !(I && (_ == "length" || Wn(_, v))) && f.push(_);
1677
+ At.call(l, _) && !(I && (_ == "length" || Wn(_, E))) && f.push(_);
1681
1678
  return f;
1682
1679
  }
1683
1680
  function qs(l, u, f) {
1684
- var v = l[u];
1685
- (!(Nt.call(l, u) && ks(v, f)) || f === void 0 && !(u in l)) && (l[u] = f);
1681
+ var E = l[u];
1682
+ (!(At.call(l, u) && ks(E, f)) || f === void 0 && !(u in l)) && (l[u] = f);
1686
1683
  }
1687
1684
  function ge(l, u) {
1688
1685
  for (var f = l.length; f--; )
@@ -1690,19 +1687,19 @@ Xs.exports;
1690
1687
  return f;
1691
1688
  return -1;
1692
1689
  }
1693
- function At(l, u) {
1690
+ function wt(l, u) {
1694
1691
  return l && Ge(u, We(u), l);
1695
1692
  }
1696
- function ze(l, u, f, v, I, _, R) {
1697
- var M;
1698
- if (v && (M = _ ? v(l, I, _, R) : v(l)), M !== void 0)
1699
- return M;
1700
- if (!xt(l))
1693
+ function ze(l, u, f, E, I, _, M) {
1694
+ var B;
1695
+ if (E && (B = _ ? E(l, I, _, M) : E(l)), B !== void 0)
1696
+ return B;
1697
+ if (!Tt(l))
1701
1698
  return l;
1702
1699
  var H = Ve(l);
1703
1700
  if (H) {
1704
- if (M = Vn(l), !u)
1705
- return zn(l, M);
1701
+ if (B = Vn(l), !u)
1702
+ return zn(l, B);
1706
1703
  } else {
1707
1704
  var D = It(l), Z = D == d || D == b;
1708
1705
  if (Is(l))
@@ -1710,36 +1707,36 @@ Xs.exports;
1710
1707
  if (D == m || D == i || Z && !_) {
1711
1708
  if (Ie(l))
1712
1709
  return _ ? l : {};
1713
- if (M = wt(Z ? {} : l), !u)
1714
- return Kn(l, At(M, l));
1710
+ if (B = xt(Z ? {} : l), !u)
1711
+ return Kn(l, wt(B, l));
1715
1712
  } else {
1716
1713
  if (!U[D])
1717
1714
  return _ ? l : {};
1718
- M = Zn(l, D, ze, u);
1715
+ B = Zn(l, D, ze, u);
1719
1716
  }
1720
1717
  }
1721
- R || (R = new tt());
1722
- var et = R.get(l);
1723
- if (et)
1724
- return et;
1725
- if (R.set(l, M), !H)
1718
+ M || (M = new et());
1719
+ var st = M.get(l);
1720
+ if (st)
1721
+ return st;
1722
+ if (M.set(l, B), !H)
1726
1723
  var $ = f ? Gn(l) : We(l);
1727
1724
  return ps($ || l, function(W, K) {
1728
- $ && (K = W, W = l[K]), qs(M, K, ze(W, u, f, v, K, l, R));
1729
- }), M;
1725
+ $ && (K = W, W = l[K]), qs(B, K, ze(W, u, f, E, K, l, M));
1726
+ }), B;
1730
1727
  }
1731
1728
  function Mn(l) {
1732
- return xt(l) ? As(l) : {};
1729
+ return Tt(l) ? As(l) : {};
1733
1730
  }
1734
1731
  function Dn(l, u, f) {
1735
- var v = u(l);
1736
- return Ve(l) ? v : ms(v, f(l));
1732
+ var E = u(l);
1733
+ return Ve(l) ? E : ms(E, f(l));
1737
1734
  }
1738
1735
  function Un(l) {
1739
1736
  return ae.call(l);
1740
1737
  }
1741
1738
  function Pn(l) {
1742
- if (!xt(l) || Yn(l))
1739
+ if (!Tt(l) || Yn(l))
1743
1740
  return !1;
1744
1741
  var u = Ze(l) || Ie(l) ? mn : cn;
1745
1742
  return u.test(Q(l));
@@ -1749,7 +1746,7 @@ Xs.exports;
1749
1746
  return xs(l);
1750
1747
  var u = [];
1751
1748
  for (var f in Object(l))
1752
- Nt.call(l, f) && f != "constructor" && u.push(f);
1749
+ At.call(l, f) && f != "constructor" && u.push(f);
1753
1750
  return u;
1754
1751
  }
1755
1752
  function pe(l, u) {
@@ -1767,16 +1764,16 @@ Xs.exports;
1767
1764
  return new l.constructor(f, l.byteOffset, l.byteLength);
1768
1765
  }
1769
1766
  function Ss(l, u, f) {
1770
- var v = u ? f(ys(l), !0) : ys(l);
1771
- return _e(v, dn, new l.constructor());
1767
+ var E = u ? f(ys(l), !0) : ys(l);
1768
+ return _e(E, dn, new l.constructor());
1772
1769
  }
1773
1770
  function Os(l) {
1774
1771
  var u = new l.constructor(l.source, an.exec(l));
1775
1772
  return u.lastIndex = l.lastIndex, u;
1776
1773
  }
1777
1774
  function Hn(l, u, f) {
1778
- var v = u ? f(vs(l), !0) : vs(l);
1779
- return _e(v, ht, new l.constructor());
1775
+ var E = u ? f(vs(l), !0) : vs(l);
1776
+ return _e(E, ht, new l.constructor());
1780
1777
  }
1781
1778
  function $n(l) {
1782
1779
  return Ts ? Object(Ts.call(l)) : {};
@@ -1786,16 +1783,16 @@ Xs.exports;
1786
1783
  return new l.constructor(f, l.byteOffset, l.length);
1787
1784
  }
1788
1785
  function zn(l, u) {
1789
- var f = -1, v = l.length;
1790
- for (u || (u = Array(v)); ++f < v; )
1786
+ var f = -1, E = l.length;
1787
+ for (u || (u = Array(E)); ++f < E; )
1791
1788
  u[f] = l[f];
1792
1789
  return u;
1793
1790
  }
1794
- function Ge(l, u, f, v) {
1791
+ function Ge(l, u, f, E) {
1795
1792
  f || (f = {});
1796
1793
  for (var I = -1, _ = u.length; ++I < _; ) {
1797
- var R = u[I], M = v ? v(f[R], l[R], R, f, l) : void 0;
1798
- qs(f, R, M === void 0 ? l[R] : M);
1794
+ var M = u[I], B = void 0;
1795
+ qs(f, M, B === void 0 ? l[M] : B);
1799
1796
  }
1800
1797
  return f;
1801
1798
  }
@@ -1815,9 +1812,9 @@ Xs.exports;
1815
1812
  }
1816
1813
  var kt = De ? Re(De, Object) : Jn, It = Un;
1817
1814
  (he && It(new he(new ArrayBuffer(1))) != k || Yt && It(new Yt()) != g || ft && It(ft.resolve()) != y || fe && It(new fe()) != N || Ue && It(new Ue()) != S) && (It = function(l) {
1818
- var u = ae.call(l), f = u == m ? l.constructor : void 0, v = f ? Q(f) : void 0;
1819
- if (v)
1820
- switch (v) {
1815
+ var u = ae.call(l), f = u == m ? l.constructor : void 0, E = f ? Q(f) : void 0;
1816
+ if (E)
1817
+ switch (E) {
1821
1818
  case Pe:
1822
1819
  return k;
1823
1820
  case Jt:
@@ -1833,12 +1830,12 @@ Xs.exports;
1833
1830
  });
1834
1831
  function Vn(l) {
1835
1832
  var u = l.length, f = l.constructor(u);
1836
- return u && typeof l[0] == "string" && Nt.call(l, "index") && (f.index = l.index, f.input = l.input), f;
1833
+ return u && typeof l[0] == "string" && At.call(l, "index") && (f.index = l.index, f.input = l.input), f;
1837
1834
  }
1838
- function wt(l) {
1839
- return typeof l.constructor == "function" && !Cs(l) ? Mn(rt(l)) : {};
1835
+ function xt(l) {
1836
+ return typeof l.constructor == "function" && !Cs(l) ? Mn(it(l)) : {};
1840
1837
  }
1841
- function Zn(l, u, f, v) {
1838
+ function Zn(l, u, f, E) {
1842
1839
  var I = l.constructor;
1843
1840
  switch (u) {
1844
1841
  case L:
@@ -1847,8 +1844,8 @@ Xs.exports;
1847
1844
  case c:
1848
1845
  return new I(+l);
1849
1846
  case k:
1850
- return te(l, v);
1851
- case B:
1847
+ return te(l, E);
1848
+ case R:
1852
1849
  case j:
1853
1850
  case Ct:
1854
1851
  case Pt:
@@ -1857,16 +1854,16 @@ Xs.exports;
1857
1854
  case us:
1858
1855
  case hs:
1859
1856
  case fs:
1860
- return Fn(l, v);
1857
+ return Fn(l, E);
1861
1858
  case g:
1862
- return Ss(l, v, f);
1859
+ return Ss(l, E, f);
1863
1860
  case p:
1864
1861
  case w:
1865
1862
  return new I(l);
1866
- case E:
1863
+ case v:
1867
1864
  return Os(l);
1868
1865
  case N:
1869
- return Hn(l, v, f);
1866
+ return Hn(l, E, f);
1870
1867
  case x:
1871
1868
  return $n(l);
1872
1869
  }
@@ -1905,7 +1902,7 @@ Xs.exports;
1905
1902
  return l === u || l !== l && u !== u;
1906
1903
  }
1907
1904
  function me(l) {
1908
- return Qn(l) && Nt.call(l, "callee") && (!ws.call(l, "callee") || ae.call(l) == i);
1905
+ return Qn(l) && At.call(l, "callee") && (!ws.call(l, "callee") || ae.call(l) == i);
1909
1906
  }
1910
1907
  var Ve = Array.isArray;
1911
1908
  function be(l) {
@@ -1916,13 +1913,13 @@ Xs.exports;
1916
1913
  }
1917
1914
  var Is = ue || tr;
1918
1915
  function Ze(l) {
1919
- var u = xt(l) ? ae.call(l) : "";
1916
+ var u = Tt(l) ? ae.call(l) : "";
1920
1917
  return u == d || u == b;
1921
1918
  }
1922
1919
  function Rs(l) {
1923
1920
  return typeof l == "number" && l > -1 && l % 1 == 0 && l <= r;
1924
1921
  }
1925
- function xt(l) {
1922
+ function Tt(l) {
1926
1923
  var u = typeof l;
1927
1924
  return !!l && (u == "object" || u == "function");
1928
1925
  }
@@ -1943,8 +1940,8 @@ Xs.exports;
1943
1940
  var il = Xs.exports, Ys = { exports: {} };
1944
1941
  Ys.exports;
1945
1942
  (function(n, t) {
1946
- var e = 200, s = "__lodash_hash_undefined__", r = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", c = "[object Array]", h = "[object AsyncFunction]", d = "[object Boolean]", b = "[object Date]", g = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", y = "[object Map]", E = "[object Number]", N = "[object Null]", w = "[object Object]", x = "[object Promise]", S = "[object Proxy]", L = "[object RegExp]", k = "[object Set]", B = "[object String]", j = "[object Symbol]", Ct = "[object Undefined]", Pt = "[object WeakMap]", Zt = "[object ArrayBuffer]", Wt = "[object DataView]", us = "[object Float32Array]", hs = "[object Float64Array]", fs = "[object Int8Array]", on = "[object Int16Array]", an = "[object Int32Array]", cn = "[object Uint8Array]", un = "[object Uint8ClampedArray]", U = "[object Uint16Array]", hn = "[object Uint32Array]", fn = /[\\^$.*+?()[\]{}|]/g, ut = /^\[object .+?Constructor\]$/, ds = /^(?:0|[1-9]\d*)$/, P = {};
1947
- P[us] = P[hs] = P[fs] = P[on] = P[an] = P[cn] = P[un] = P[U] = P[hn] = !0, P[a] = P[c] = P[Zt] = P[d] = P[Wt] = P[b] = P[g] = P[p] = P[y] = P[E] = P[w] = P[L] = P[k] = P[B] = P[Pt] = !1;
1943
+ var e = 200, s = "__lodash_hash_undefined__", r = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", c = "[object Array]", h = "[object AsyncFunction]", d = "[object Boolean]", b = "[object Date]", g = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", y = "[object Map]", v = "[object Number]", N = "[object Null]", w = "[object Object]", x = "[object Promise]", S = "[object Proxy]", L = "[object RegExp]", k = "[object Set]", R = "[object String]", j = "[object Symbol]", Ct = "[object Undefined]", Pt = "[object WeakMap]", Zt = "[object ArrayBuffer]", Wt = "[object DataView]", us = "[object Float32Array]", hs = "[object Float64Array]", fs = "[object Int8Array]", on = "[object Int16Array]", an = "[object Int32Array]", cn = "[object Uint8Array]", un = "[object Uint8ClampedArray]", U = "[object Uint16Array]", hn = "[object Uint32Array]", fn = /[\\^$.*+?()[\]{}|]/g, ut = /^\[object .+?Constructor\]$/, ds = /^(?:0|[1-9]\d*)$/, P = {};
1944
+ P[us] = P[hs] = P[fs] = P[on] = P[an] = P[cn] = P[un] = P[U] = P[hn] = !0, P[a] = P[c] = P[Zt] = P[d] = P[Wt] = P[b] = P[g] = P[p] = P[y] = P[v] = P[w] = P[L] = P[k] = P[R] = P[Pt] = !1;
1948
1945
  var gs = typeof Ft == "object" && Ft && Ft.Object === Object && Ft, dn = typeof self == "object" && self && self.Object === Object && self, ht = gs || dn || Function("return this")(), ps = t && !t.nodeType && t, ms = ps && !0 && n && !n.nodeType && n, _e = ms && ms.exports === ps, ke = _e && gs.process, bs = function() {
1949
1946
  try {
1950
1947
  return ke && ke.binding && ke.binding("util");
@@ -1952,27 +1949,27 @@ Ys.exports;
1952
1949
  }
1953
1950
  }(), Ie = bs && bs.isTypedArray;
1954
1951
  function ys(l, u) {
1955
- for (var f = -1, v = l == null ? 0 : l.length, I = 0, _ = []; ++f < v; ) {
1956
- var R = l[f];
1957
- u(R, f, l) && (_[I++] = R);
1952
+ for (var f = -1, E = l == null ? 0 : l.length, I = 0, _ = []; ++f < E; ) {
1953
+ var M = l[f];
1954
+ u(M, f, l) && (_[I++] = M);
1958
1955
  }
1959
1956
  return _;
1960
1957
  }
1961
1958
  function Re(l, u) {
1962
- for (var f = -1, v = u.length, I = l.length; ++f < v; )
1959
+ for (var f = -1, E = u.length, I = l.length; ++f < E; )
1963
1960
  l[I + f] = u[f];
1964
1961
  return l;
1965
1962
  }
1966
1963
  function vs(l, u) {
1967
- for (var f = -1, v = l == null ? 0 : l.length; ++f < v; )
1964
+ for (var f = -1, E = l == null ? 0 : l.length; ++f < E; )
1968
1965
  if (u(l[f], f, l))
1969
1966
  return !0;
1970
1967
  return !1;
1971
1968
  }
1972
1969
  function gn(l, u) {
1973
- for (var f = -1, v = Array(l); ++f < l; )
1974
- v[f] = u(f);
1975
- return v;
1970
+ for (var f = -1, E = Array(l); ++f < l; )
1971
+ E[f] = u(f);
1972
+ return E;
1976
1973
  }
1977
1974
  function pn(l) {
1978
1975
  return function(u) {
@@ -1987,8 +1984,8 @@ Ys.exports;
1987
1984
  }
1988
1985
  function Es(l) {
1989
1986
  var u = -1, f = Array(l.size);
1990
- return l.forEach(function(v, I) {
1991
- f[++u] = [I, v];
1987
+ return l.forEach(function(E, I) {
1988
+ f[++u] = [I, E];
1992
1989
  }), f;
1993
1990
  }
1994
1991
  function Ns(l, u) {
@@ -1996,23 +1993,23 @@ Ys.exports;
1996
1993
  return l(u(f));
1997
1994
  };
1998
1995
  }
1999
- function Nt(l) {
1996
+ function At(l) {
2000
1997
  var u = -1, f = Array(l.size);
2001
- return l.forEach(function(v) {
2002
- f[++u] = v;
1998
+ return l.forEach(function(E) {
1999
+ f[++u] = E;
2003
2000
  }), f;
2004
2001
  }
2005
- var ae = Array.prototype, mn = Function.prototype, Xt = Object.prototype, ce = ht["__core-js_shared__"], Me = mn.toString, rt = Xt.hasOwnProperty, As = function() {
2002
+ var ae = Array.prototype, mn = Function.prototype, Xt = Object.prototype, ce = ht["__core-js_shared__"], Me = mn.toString, it = Xt.hasOwnProperty, As = function() {
2006
2003
  var l = /[^.]+$/.exec(ce && ce.keys && ce.keys.IE_PROTO || "");
2007
2004
  return l ? "Symbol(src)_1." + l : "";
2008
2005
  }(), ws = Xt.toString, bn = RegExp(
2009
- "^" + Me.call(rt).replace(fn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2006
+ "^" + Me.call(it).replace(fn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2010
2007
  ), De = _e ? ht.Buffer : void 0, ue = ht.Symbol, xs = ht.Uint8Array, he = Xt.propertyIsEnumerable, Yt = ae.splice, ft = ue ? ue.toStringTag : void 0, fe = Object.getOwnPropertySymbols, Ue = De ? De.isBuffer : void 0, Qt = Ns(Object.keys, Object), Pe = kt(ht, "DataView"), Jt = kt(ht, "Map"), je = kt(ht, "Promise"), He = kt(ht, "Set"), $e = kt(ht, "WeakMap"), jt = kt(Object, "create"), Ts = Q(Pe), _t = Q(Jt), yn = Q(je), vn = Q(He), En = Q($e), Ls = ue ? ue.prototype : void 0, Fe = Ls ? Ls.valueOf : void 0;
2011
2008
  function z(l) {
2012
2009
  var u = -1, f = l == null ? 0 : l.length;
2013
2010
  for (this.clear(); ++u < f; ) {
2014
- var v = l[u];
2015
- this.set(v[0], v[1]);
2011
+ var E = l[u];
2012
+ this.set(E[0], E[1]);
2016
2013
  }
2017
2014
  }
2018
2015
  function Nn() {
@@ -2028,11 +2025,11 @@ Ys.exports;
2028
2025
  var f = u[l];
2029
2026
  return f === s ? void 0 : f;
2030
2027
  }
2031
- return rt.call(u, l) ? u[l] : void 0;
2028
+ return it.call(u, l) ? u[l] : void 0;
2032
2029
  }
2033
2030
  function xn(l) {
2034
2031
  var u = this.__data__;
2035
- return jt ? u[l] !== void 0 : rt.call(u, l);
2032
+ return jt ? u[l] !== void 0 : it.call(u, l);
2036
2033
  }
2037
2034
  function Tn(l, u) {
2038
2035
  var f = this.__data__;
@@ -2042,8 +2039,8 @@ Ys.exports;
2042
2039
  function V(l) {
2043
2040
  var u = -1, f = l == null ? 0 : l.length;
2044
2041
  for (this.clear(); ++u < f; ) {
2045
- var v = l[u];
2046
- this.set(v[0], v[1]);
2042
+ var E = l[u];
2043
+ this.set(E[0], E[1]);
2047
2044
  }
2048
2045
  }
2049
2046
  function Ln() {
@@ -2053,8 +2050,8 @@ Ys.exports;
2053
2050
  var u = this.__data__, f = pe(u, l);
2054
2051
  if (f < 0)
2055
2052
  return !1;
2056
- var v = u.length - 1;
2057
- return f == v ? u.pop() : Yt.call(u, f, 1), --this.size, !0;
2053
+ var E = u.length - 1;
2054
+ return f == E ? u.pop() : Yt.call(u, f, 1), --this.size, !0;
2058
2055
  }
2059
2056
  function Sn(l) {
2060
2057
  var u = this.__data__, f = pe(u, l);
@@ -2064,15 +2061,15 @@ Ys.exports;
2064
2061
  return pe(this.__data__, l) > -1;
2065
2062
  }
2066
2063
  function Cn(l, u) {
2067
- var f = this.__data__, v = pe(f, l);
2068
- return v < 0 ? (++this.size, f.push([l, u])) : f[v][1] = u, this;
2064
+ var f = this.__data__, E = pe(f, l);
2065
+ return E < 0 ? (++this.size, f.push([l, u])) : f[E][1] = u, this;
2069
2066
  }
2070
2067
  V.prototype.clear = Ln, V.prototype.delete = qn, V.prototype.get = Sn, V.prototype.has = On, V.prototype.set = Cn;
2071
- function tt(l) {
2068
+ function et(l) {
2072
2069
  var u = -1, f = l == null ? 0 : l.length;
2073
2070
  for (this.clear(); ++u < f; ) {
2074
- var v = l[u];
2075
- this.set(v[0], v[1]);
2071
+ var E = l[u];
2072
+ this.set(E[0], E[1]);
2076
2073
  }
2077
2074
  }
2078
2075
  function _n() {
@@ -2093,13 +2090,13 @@ Ys.exports;
2093
2090
  return dt(this, l).has(l);
2094
2091
  }
2095
2092
  function Bn(l, u) {
2096
- var f = dt(this, l), v = f.size;
2097
- return f.set(l, u), this.size += f.size == v ? 0 : 1, this;
2093
+ var f = dt(this, l), E = f.size;
2094
+ return f.set(l, u), this.size += f.size == E ? 0 : 1, this;
2098
2095
  }
2099
- tt.prototype.clear = _n, tt.prototype.delete = kn, tt.prototype.get = In, tt.prototype.has = Rn, tt.prototype.set = Bn;
2096
+ et.prototype.clear = _n, et.prototype.delete = kn, et.prototype.get = In, et.prototype.has = Rn, et.prototype.set = Bn;
2100
2097
  function de(l) {
2101
2098
  var u = -1, f = l == null ? 0 : l.length;
2102
- for (this.__data__ = new tt(); ++u < f; )
2099
+ for (this.__data__ = new et(); ++u < f; )
2103
2100
  this.add(l[u]);
2104
2101
  }
2105
2102
  function qs(l) {
@@ -2109,7 +2106,7 @@ Ys.exports;
2109
2106
  return this.__data__.has(l);
2110
2107
  }
2111
2108
  de.prototype.add = de.prototype.push = qs, de.prototype.has = ge;
2112
- function At(l) {
2109
+ function wt(l) {
2113
2110
  var u = this.__data__ = new V(l);
2114
2111
  this.size = u.size;
2115
2112
  }
@@ -2129,23 +2126,23 @@ Ys.exports;
2129
2126
  function Pn(l, u) {
2130
2127
  var f = this.__data__;
2131
2128
  if (f instanceof V) {
2132
- var v = f.__data__;
2133
- if (!Jt || v.length < e - 1)
2134
- return v.push([l, u]), this.size = ++f.size, this;
2135
- f = this.__data__ = new tt(v);
2129
+ var E = f.__data__;
2130
+ if (!Jt || E.length < e - 1)
2131
+ return E.push([l, u]), this.size = ++f.size, this;
2132
+ f = this.__data__ = new et(E);
2136
2133
  }
2137
2134
  return f.set(l, u), this.size = f.size, this;
2138
2135
  }
2139
- At.prototype.clear = ze, At.prototype.delete = Mn, At.prototype.get = Dn, At.prototype.has = Un, At.prototype.set = Pn;
2136
+ wt.prototype.clear = ze, wt.prototype.delete = Mn, wt.prototype.get = Dn, wt.prototype.has = Un, wt.prototype.set = Pn;
2140
2137
  function jn(l, u) {
2141
- var f = me(l), v = !f && ks(l), I = !f && !v && be(l), _ = !f && !v && !I && Bs(l), R = f || v || I || _, M = R ? gn(l.length, String) : [], H = M.length;
2138
+ var f = me(l), E = !f && ks(l), I = !f && !E && be(l), _ = !f && !E && !I && Bs(l), M = f || E || I || _, B = M ? gn(l.length, String) : [], H = B.length;
2142
2139
  for (var D in l)
2143
- (u || rt.call(l, D)) && !(R && // Safari 9 has enumerable `arguments.length` in strict mode.
2140
+ it.call(l, D) && !(M && // Safari 9 has enumerable `arguments.length` in strict mode.
2144
2141
  (D == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
2145
2142
  I && (D == "offset" || D == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
2146
2143
  _ && (D == "buffer" || D == "byteLength" || D == "byteOffset") || // Skip index properties.
2147
- Zn(D, H))) && M.push(D);
2148
- return M;
2144
+ Zn(D, H))) && B.push(D);
2145
+ return B;
2149
2146
  }
2150
2147
  function pe(l, u) {
2151
2148
  for (var f = l.length; f--; )
@@ -2154,37 +2151,37 @@ Ys.exports;
2154
2151
  return -1;
2155
2152
  }
2156
2153
  function Ke(l, u, f) {
2157
- var v = u(l);
2158
- return me(l) ? v : Re(v, f(l));
2154
+ var E = u(l);
2155
+ return me(l) ? E : Re(E, f(l));
2159
2156
  }
2160
2157
  function te(l) {
2161
2158
  return l == null ? l === void 0 ? Ct : N : ft && ft in Object(l) ? It(l) : Cs(l);
2162
2159
  }
2163
2160
  function Ss(l) {
2164
- return xt(l) && te(l) == a;
2161
+ return Tt(l) && te(l) == a;
2165
2162
  }
2166
- function Os(l, u, f, v, I) {
2167
- return l === u ? !0 : l == null || u == null || !xt(l) && !xt(u) ? l !== l && u !== u : Hn(l, u, f, v, Os, I);
2163
+ function Os(l, u, f, E, I) {
2164
+ return l === u ? !0 : l == null || u == null || !Tt(l) && !Tt(u) ? l !== l && u !== u : Hn(l, u, f, E, Os, I);
2168
2165
  }
2169
- function Hn(l, u, f, v, I, _) {
2170
- var R = me(l), M = me(u), H = R ? c : wt(l), D = M ? c : wt(u);
2166
+ function Hn(l, u, f, E, I, _) {
2167
+ var M = me(l), B = me(u), H = M ? c : xt(l), D = B ? c : xt(u);
2171
2168
  H = H == a ? w : H, D = D == a ? w : D;
2172
- var Z = H == w, et = D == w, $ = H == D;
2169
+ var Z = H == w, st = D == w, $ = H == D;
2173
2170
  if ($ && be(l)) {
2174
2171
  if (!be(u))
2175
2172
  return !1;
2176
- R = !0, Z = !1;
2173
+ M = !0, Z = !1;
2177
2174
  }
2178
2175
  if ($ && !Z)
2179
- return _ || (_ = new At()), R || Bs(l) ? Ge(l, u, f, v, I, _) : Kn(l, u, H, f, v, I, _);
2176
+ return _ || (_ = new wt()), M || Bs(l) ? Ge(l, u, f, E, I, _) : Kn(l, u, H, f, E, I, _);
2180
2177
  if (!(f & r)) {
2181
- var W = Z && rt.call(l, "__wrapped__"), K = et && rt.call(u, "__wrapped__");
2178
+ var W = Z && it.call(l, "__wrapped__"), K = st && it.call(u, "__wrapped__");
2182
2179
  if (W || K) {
2183
2180
  var Ht = W ? l.value() : l, Rt = K ? u.value() : u;
2184
- return _ || (_ = new At()), I(Ht, Rt, f, v, _);
2181
+ return _ || (_ = new wt()), I(Ht, Rt, f, E, _);
2185
2182
  }
2186
2183
  }
2187
- return $ ? (_ || (_ = new At()), Gn(l, u, f, v, I, _)) : !1;
2184
+ return $ ? (_ || (_ = new wt()), Gn(l, u, f, E, I, _)) : !1;
2188
2185
  }
2189
2186
  function $n(l) {
2190
2187
  if (!Rs(l) || Xn(l))
@@ -2193,50 +2190,50 @@ Ys.exports;
2193
2190
  return u.test(Q(l));
2194
2191
  }
2195
2192
  function Fn(l) {
2196
- return xt(l) && Ze(l.length) && !!P[te(l)];
2193
+ return Tt(l) && Ze(l.length) && !!P[te(l)];
2197
2194
  }
2198
2195
  function zn(l) {
2199
2196
  if (!Yn(l))
2200
2197
  return Qt(l);
2201
2198
  var u = [];
2202
2199
  for (var f in Object(l))
2203
- rt.call(l, f) && f != "constructor" && u.push(f);
2200
+ it.call(l, f) && f != "constructor" && u.push(f);
2204
2201
  return u;
2205
2202
  }
2206
- function Ge(l, u, f, v, I, _) {
2207
- var R = f & r, M = l.length, H = u.length;
2208
- if (M != H && !(R && H > M))
2203
+ function Ge(l, u, f, E, I, _) {
2204
+ var M = f & r, B = l.length, H = u.length;
2205
+ if (B != H && !(M && H > B))
2209
2206
  return !1;
2210
2207
  var D = _.get(l);
2211
2208
  if (D && _.get(u))
2212
2209
  return D == u;
2213
- var Z = -1, et = !0, $ = f & i ? new de() : void 0;
2214
- for (_.set(l, u), _.set(u, l); ++Z < M; ) {
2210
+ var Z = -1, st = !0, $ = f & i ? new de() : void 0;
2211
+ for (_.set(l, u), _.set(u, l); ++Z < B; ) {
2215
2212
  var W = l[Z], K = u[Z];
2216
- if (v)
2217
- var Ht = R ? v(K, W, Z, u, l, _) : v(W, K, Z, l, u, _);
2213
+ if (E)
2214
+ var Ht = M ? E(K, W, Z, u, l, _) : E(W, K, Z, l, u, _);
2218
2215
  if (Ht !== void 0) {
2219
2216
  if (Ht)
2220
2217
  continue;
2221
- et = !1;
2218
+ st = !1;
2222
2219
  break;
2223
2220
  }
2224
2221
  if ($) {
2225
2222
  if (!vs(u, function(Rt, se) {
2226
- if (!oe($, se) && (W === Rt || I(W, Rt, f, v, _)))
2223
+ if (!oe($, se) && (W === Rt || I(W, Rt, f, E, _)))
2227
2224
  return $.push(se);
2228
2225
  })) {
2229
- et = !1;
2226
+ st = !1;
2230
2227
  break;
2231
2228
  }
2232
- } else if (!(W === K || I(W, K, f, v, _))) {
2233
- et = !1;
2229
+ } else if (!(W === K || I(W, K, f, E, _))) {
2230
+ st = !1;
2234
2231
  break;
2235
2232
  }
2236
2233
  }
2237
- return _.delete(l), _.delete(u), et;
2234
+ return _.delete(l), _.delete(u), st;
2238
2235
  }
2239
- function Kn(l, u, f, v, I, _, R) {
2236
+ function Kn(l, u, f, E, I, _, M) {
2240
2237
  switch (f) {
2241
2238
  case Wt:
2242
2239
  if (l.byteLength != u.byteLength || l.byteOffset != u.byteOffset)
@@ -2246,38 +2243,38 @@ Ys.exports;
2246
2243
  return !(l.byteLength != u.byteLength || !_(new xs(l), new xs(u)));
2247
2244
  case d:
2248
2245
  case b:
2249
- case E:
2246
+ case v:
2250
2247
  return _s(+l, +u);
2251
2248
  case g:
2252
2249
  return l.name == u.name && l.message == u.message;
2253
2250
  case L:
2254
- case B:
2251
+ case R:
2255
2252
  return l == u + "";
2256
2253
  case y:
2257
- var M = Es;
2254
+ var B = Es;
2258
2255
  case k:
2259
- var H = v & r;
2260
- if (M || (M = Nt), l.size != u.size && !H)
2256
+ var H = E & r;
2257
+ if (B || (B = At), l.size != u.size && !H)
2261
2258
  return !1;
2262
- var D = R.get(l);
2259
+ var D = M.get(l);
2263
2260
  if (D)
2264
2261
  return D == u;
2265
- v |= i, R.set(l, u);
2266
- var Z = Ge(M(l), M(u), v, I, _, R);
2267
- return R.delete(l), Z;
2262
+ E |= i, M.set(l, u);
2263
+ var Z = Ge(B(l), B(u), E, I, _, M);
2264
+ return M.delete(l), Z;
2268
2265
  case j:
2269
2266
  if (Fe)
2270
2267
  return Fe.call(l) == Fe.call(u);
2271
2268
  }
2272
2269
  return !1;
2273
2270
  }
2274
- function Gn(l, u, f, v, I, _) {
2275
- var R = f & r, M = ee(l), H = M.length, D = ee(u), Z = D.length;
2276
- if (H != Z && !R)
2271
+ function Gn(l, u, f, E, I, _) {
2272
+ var M = f & r, B = ee(l), H = B.length, D = ee(u), Z = D.length;
2273
+ if (H != Z && !M)
2277
2274
  return !1;
2278
- for (var et = H; et--; ) {
2279
- var $ = M[et];
2280
- if (!(R ? $ in u : rt.call(u, $)))
2275
+ for (var st = H; st--; ) {
2276
+ var $ = B[st];
2277
+ if (!(M ? $ in u : it.call(u, $)))
2281
2278
  return !1;
2282
2279
  }
2283
2280
  var W = _.get(l);
@@ -2285,12 +2282,12 @@ Ys.exports;
2285
2282
  return W == u;
2286
2283
  var K = !0;
2287
2284
  _.set(l, u), _.set(u, l);
2288
- for (var Ht = R; ++et < H; ) {
2289
- $ = M[et];
2285
+ for (var Ht = M; ++st < H; ) {
2286
+ $ = B[st];
2290
2287
  var Rt = l[$], se = u[$];
2291
- if (v)
2292
- var Jr = R ? v(se, Rt, $, u, l, _) : v(Rt, se, $, l, u, _);
2293
- if (!(Jr === void 0 ? Rt === se || I(Rt, se, f, v, _) : Jr)) {
2288
+ if (E)
2289
+ var Jr = M ? E(se, Rt, $, u, l, _) : E(Rt, se, $, l, u, _);
2290
+ if (!(Jr === void 0 ? Rt === se || I(Rt, se, f, E, _) : Jr)) {
2294
2291
  K = !1;
2295
2292
  break;
2296
2293
  }
@@ -2314,24 +2311,24 @@ Ys.exports;
2314
2311
  return $n(f) ? f : void 0;
2315
2312
  }
2316
2313
  function It(l) {
2317
- var u = rt.call(l, ft), f = l[ft];
2314
+ var u = it.call(l, ft), f = l[ft];
2318
2315
  try {
2319
2316
  l[ft] = void 0;
2320
- var v = !0;
2317
+ var E = !0;
2321
2318
  } catch {
2322
2319
  }
2323
2320
  var I = ws.call(l);
2324
- return v && (u ? l[ft] = f : delete l[ft]), I;
2321
+ return E && (u ? l[ft] = f : delete l[ft]), I;
2325
2322
  }
2326
2323
  var Vn = fe ? function(l) {
2327
2324
  return l == null ? [] : (l = Object(l), ys(fe(l), function(u) {
2328
2325
  return he.call(l, u);
2329
2326
  }));
2330
- } : Jn, wt = te;
2331
- (Pe && wt(new Pe(new ArrayBuffer(1))) != Wt || Jt && wt(new Jt()) != y || je && wt(je.resolve()) != x || He && wt(new He()) != k || $e && wt(new $e()) != Pt) && (wt = function(l) {
2332
- var u = te(l), f = u == w ? l.constructor : void 0, v = f ? Q(f) : "";
2333
- if (v)
2334
- switch (v) {
2327
+ } : Jn, xt = te;
2328
+ (Pe && xt(new Pe(new ArrayBuffer(1))) != Wt || Jt && xt(new Jt()) != y || je && xt(je.resolve()) != x || He && xt(new He()) != k || $e && xt(new $e()) != Pt) && (xt = function(l) {
2329
+ var u = te(l), f = u == w ? l.constructor : void 0, E = f ? Q(f) : "";
2330
+ if (E)
2331
+ switch (E) {
2335
2332
  case Ts:
2336
2333
  return Wt;
2337
2334
  case _t:
@@ -2381,7 +2378,7 @@ Ys.exports;
2381
2378
  var ks = Ss(/* @__PURE__ */ function() {
2382
2379
  return arguments;
2383
2380
  }()) ? Ss : function(l) {
2384
- return xt(l) && rt.call(l, "callee") && !he.call(l, "callee");
2381
+ return Tt(l) && it.call(l, "callee") && !he.call(l, "callee");
2385
2382
  }, me = Array.isArray;
2386
2383
  function Ve(l) {
2387
2384
  return l != null && Ze(l.length) && !Is(l);
@@ -2403,7 +2400,7 @@ Ys.exports;
2403
2400
  var u = typeof l;
2404
2401
  return l != null && (u == "object" || u == "function");
2405
2402
  }
2406
- function xt(l) {
2403
+ function Tt(l) {
2407
2404
  return l != null && typeof l == "object";
2408
2405
  }
2409
2406
  var Bs = Ie ? pn(Ie) : Fn;
@@ -2420,12 +2417,12 @@ Ys.exports;
2420
2417
  })(Ys, Ys.exports);
2421
2418
  var ll = Ys.exports, Hr = {};
2422
2419
  Object.defineProperty(Hr, "__esModule", { value: !0 });
2423
- const pa = il, ma = ll;
2420
+ const da = il, ga = ll;
2424
2421
  var Nr;
2425
2422
  (function(n) {
2426
2423
  function t(i = {}, o = {}, a = !1) {
2427
2424
  typeof i != "object" && (i = {}), typeof o != "object" && (o = {});
2428
- let c = pa(o);
2425
+ let c = da(o);
2429
2426
  a || (c = Object.keys(c).reduce((h, d) => (c[d] != null && (h[d] = c[d]), h), {}));
2430
2427
  for (const h in i)
2431
2428
  i[h] !== void 0 && o[h] === void 0 && (c[h] = i[h]);
@@ -2434,7 +2431,7 @@ var Nr;
2434
2431
  n.compose = t;
2435
2432
  function e(i = {}, o = {}) {
2436
2433
  typeof i != "object" && (i = {}), typeof o != "object" && (o = {});
2437
- const a = Object.keys(i).concat(Object.keys(o)).reduce((c, h) => (ma(i[h], o[h]) || (c[h] = o[h] === void 0 ? null : o[h]), c), {});
2434
+ const a = Object.keys(i).concat(Object.keys(o)).reduce((c, h) => (ga(i[h], o[h]) || (c[h] = o[h] === void 0 ? null : o[h]), c), {});
2438
2435
  return Object.keys(a).length > 0 ? a : void 0;
2439
2436
  }
2440
2437
  n.diff = e;
@@ -2470,7 +2467,7 @@ sn.default = Ar;
2470
2467
  var $r = {};
2471
2468
  Object.defineProperty($r, "__esModule", { value: !0 });
2472
2469
  const yi = sn;
2473
- class ba {
2470
+ class pa {
2474
2471
  constructor(t) {
2475
2472
  this.ops = t, this.index = 0, this.offset = 0;
2476
2473
  }
@@ -2509,14 +2506,13 @@ class ba {
2509
2506
  const t = this.offset, e = this.index, s = this.next(), r = this.ops.slice(this.index);
2510
2507
  return this.offset = t, this.index = e, [s].concat(r);
2511
2508
  }
2512
- } else
2513
- return [];
2509
+ } else return [];
2514
2510
  }
2515
2511
  }
2516
- $r.default = ba;
2512
+ $r.default = pa;
2517
2513
  (function(n, t) {
2518
2514
  Object.defineProperty(t, "__esModule", { value: !0 }), t.AttributeMap = t.OpIterator = t.Op = void 0;
2519
- const e = ga, s = il, r = ll, i = Hr;
2515
+ const e = fa, s = il, r = ll, i = Hr;
2520
2516
  t.AttributeMap = i.default;
2521
2517
  const o = sn;
2522
2518
  t.Op = o.default;
@@ -2607,20 +2603,20 @@ $r.default = ba;
2607
2603
  }
2608
2604
  slice(g = 0, p = 1 / 0) {
2609
2605
  const m = [], y = new a.default(this.ops);
2610
- let E = 0;
2611
- for (; E < p && y.hasNext(); ) {
2606
+ let v = 0;
2607
+ for (; v < p && y.hasNext(); ) {
2612
2608
  let N;
2613
- E < g ? N = y.next(g - E) : (N = y.next(p - E), m.push(N)), E += o.default.length(N);
2609
+ v < g ? N = y.next(g - v) : (N = y.next(p - v), m.push(N)), v += o.default.length(N);
2614
2610
  }
2615
2611
  return new d(m);
2616
2612
  }
2617
2613
  compose(g) {
2618
- const p = new a.default(this.ops), m = new a.default(g.ops), y = [], E = m.peek();
2619
- if (E != null && typeof E.retain == "number" && E.attributes == null) {
2620
- let w = E.retain;
2614
+ const p = new a.default(this.ops), m = new a.default(g.ops), y = [], v = m.peek();
2615
+ if (v != null && typeof v.retain == "number" && v.attributes == null) {
2616
+ let w = v.retain;
2621
2617
  for (; p.peekType() === "insert" && p.peekLength() <= w; )
2622
2618
  w -= p.peekLength(), y.push(p.next());
2623
- E.retain - w > 0 && m.next(E.retain - w);
2619
+ v.retain - w > 0 && m.next(v.retain - w);
2624
2620
  }
2625
2621
  const N = new d(y);
2626
2622
  for (; p.hasNext() || m.hasNext(); )
@@ -2637,18 +2633,17 @@ $r.default = ba;
2637
2633
  else if (typeof S.retain == "number")
2638
2634
  x.retain == null ? L.insert = x.insert : L.retain = x.retain;
2639
2635
  else {
2640
- const B = x.retain == null ? "insert" : "retain", [j, Ct, Pt] = h(x[B], S.retain), Zt = d.getHandler(j);
2641
- L[B] = {
2642
- [j]: Zt.compose(Ct, Pt, B === "retain")
2636
+ const R = x.retain == null ? "insert" : "retain", [j, Ct, Pt] = h(x[R], S.retain), Zt = d.getHandler(j);
2637
+ L[R] = {
2638
+ [j]: Zt.compose(Ct, Pt, R === "retain")
2643
2639
  };
2644
2640
  }
2645
2641
  const k = i.default.compose(x.attributes, S.attributes, typeof x.retain == "number");
2646
2642
  if (k && (L.attributes = k), N.push(L), !m.hasNext() && r(N.ops[N.ops.length - 1], L)) {
2647
- const B = new d(p.rest());
2648
- return N.concat(B).chop();
2643
+ const R = new d(p.rest());
2644
+ return N.concat(R).chop();
2649
2645
  }
2650
- } else
2651
- typeof S.delete == "number" && (typeof x.retain == "number" || typeof x.retain == "object" && x.retain !== null) && N.push(S);
2646
+ } else typeof S.delete == "number" && (typeof x.retain == "number" || typeof x.retain == "object" && x.retain !== null) && N.push(S);
2652
2647
  }
2653
2648
  return N.chop();
2654
2649
  }
@@ -2664,8 +2659,8 @@ $r.default = ba;
2664
2659
  return typeof S.insert == "string" ? S.insert : c;
2665
2660
  const L = x === g ? "on" : "with";
2666
2661
  throw new Error("diff() called " + L + " non-document");
2667
- }).join("")), y = new d(), E = e(m[0], m[1], p, !0), N = new a.default(this.ops), w = new a.default(g.ops);
2668
- return E.forEach((x) => {
2662
+ }).join("")), y = new d(), v = e(m[0], m[1], p, !0), N = new a.default(this.ops), w = new a.default(g.ops);
2663
+ return v.forEach((x) => {
2669
2664
  let S = x[1].length;
2670
2665
  for (; S > 0; ) {
2671
2666
  let L = 0;
@@ -2678,8 +2673,8 @@ $r.default = ba;
2678
2673
  break;
2679
2674
  case e.EQUAL:
2680
2675
  L = Math.min(N.peekLength(), w.peekLength(), S);
2681
- const k = N.next(L), B = w.next(L);
2682
- r(k.insert, B.insert) ? y.retain(L, i.default.diff(k.attributes, B.attributes)) : y.push(B).delete(L);
2676
+ const k = N.next(L), R = w.next(L);
2677
+ r(k.insert, R.insert) ? y.retain(L, i.default.diff(k.attributes, R.attributes)) : y.push(R).delete(L);
2683
2678
  break;
2684
2679
  }
2685
2680
  S -= L;
@@ -2689,7 +2684,7 @@ $r.default = ba;
2689
2684
  eachLine(g, p = `
2690
2685
  `) {
2691
2686
  const m = new a.default(this.ops);
2692
- let y = new d(), E = 0;
2687
+ let y = new d(), v = 0;
2693
2688
  for (; m.hasNext(); ) {
2694
2689
  if (m.peekType() !== "insert")
2695
2690
  return;
@@ -2699,12 +2694,12 @@ $r.default = ba;
2699
2694
  else if (x > 0)
2700
2695
  y.push(m.next(x));
2701
2696
  else {
2702
- if (g(y, m.next(1).attributes || {}, E) === !1)
2697
+ if (g(y, m.next(1).attributes || {}, v) === !1)
2703
2698
  return;
2704
- E += 1, y = new d();
2699
+ v += 1, y = new d();
2705
2700
  }
2706
2701
  }
2707
- y.length() > 0 && g(y, {}, E);
2702
+ y.length() > 0 && g(y, {}, v);
2708
2703
  }
2709
2704
  invert(g) {
2710
2705
  const p = new d();
@@ -2715,12 +2710,12 @@ $r.default = ba;
2715
2710
  if (typeof y.retain == "number" && y.attributes == null)
2716
2711
  return p.retain(y.retain), m + y.retain;
2717
2712
  if (y.delete || typeof y.retain == "number") {
2718
- const E = y.delete || y.retain;
2719
- return g.slice(m, m + E).forEach((w) => {
2713
+ const v = y.delete || y.retain;
2714
+ return g.slice(m, m + v).forEach((w) => {
2720
2715
  y.delete ? p.push(w) : y.retain && y.attributes && p.retain(o.default.length(w), i.default.invert(y.attributes, w.attributes));
2721
- }), m + E;
2716
+ }), m + v;
2722
2717
  } else if (typeof y.retain == "object" && y.retain !== null) {
2723
- const E = g.slice(m, m + 1), N = new a.default(E.ops).next(), [w, x, S] = h(y.retain, N.insert), L = d.getHandler(w);
2718
+ const v = g.slice(m, m + 1), N = new a.default(v.ops).next(), [w, x, S] = h(y.retain, N.insert), L = d.getHandler(w);
2724
2719
  return p.retain({ [w]: L.invert(x, S) }, i.default.invert(y.attributes, N.attributes)), m + 1;
2725
2720
  }
2726
2721
  }
@@ -2730,31 +2725,31 @@ $r.default = ba;
2730
2725
  transform(g, p = !1) {
2731
2726
  if (p = !!p, typeof g == "number")
2732
2727
  return this.transformPosition(g, p);
2733
- const m = g, y = new a.default(this.ops), E = new a.default(m.ops), N = new d();
2734
- for (; y.hasNext() || E.hasNext(); )
2735
- if (y.peekType() === "insert" && (p || E.peekType() !== "insert"))
2728
+ const m = g, y = new a.default(this.ops), v = new a.default(m.ops), N = new d();
2729
+ for (; y.hasNext() || v.hasNext(); )
2730
+ if (y.peekType() === "insert" && (p || v.peekType() !== "insert"))
2736
2731
  N.retain(o.default.length(y.next()));
2737
- else if (E.peekType() === "insert")
2738
- N.push(E.next());
2732
+ else if (v.peekType() === "insert")
2733
+ N.push(v.next());
2739
2734
  else {
2740
- const w = Math.min(y.peekLength(), E.peekLength()), x = y.next(w), S = E.next(w);
2735
+ const w = Math.min(y.peekLength(), v.peekLength()), x = y.next(w), S = v.next(w);
2741
2736
  if (x.delete)
2742
2737
  continue;
2743
2738
  if (S.delete)
2744
2739
  N.push(S);
2745
2740
  else {
2746
2741
  const L = x.retain, k = S.retain;
2747
- let B = typeof k == "object" && k !== null ? k : w;
2742
+ let R = typeof k == "object" && k !== null ? k : w;
2748
2743
  if (typeof L == "object" && L !== null && typeof k == "object" && k !== null) {
2749
2744
  const j = Object.keys(L)[0];
2750
2745
  if (j === Object.keys(k)[0]) {
2751
2746
  const Ct = d.getHandler(j);
2752
- Ct && (B = {
2747
+ Ct && (R = {
2753
2748
  [j]: Ct.transform(L[j], k[j], p)
2754
2749
  });
2755
2750
  }
2756
2751
  }
2757
- N.retain(B, i.default.transform(x.attributes, S.attributes, p));
2752
+ N.retain(R, i.default.transform(x.attributes, S.attributes, p));
2758
2753
  }
2759
2754
  }
2760
2755
  return N.chop();
@@ -2764,22 +2759,21 @@ $r.default = ba;
2764
2759
  const m = new a.default(this.ops);
2765
2760
  let y = 0;
2766
2761
  for (; m.hasNext() && y <= g; ) {
2767
- const E = m.peekLength(), N = m.peekType();
2762
+ const v = m.peekLength(), N = m.peekType();
2768
2763
  if (m.next(), N === "delete") {
2769
- g -= Math.min(E, g - y);
2764
+ g -= Math.min(v, g - y);
2770
2765
  continue;
2771
- } else
2772
- N === "insert" && (y < g || !p) && (g += E);
2773
- y += E;
2766
+ } else N === "insert" && (y < g || !p) && (g += v);
2767
+ y += v;
2774
2768
  }
2775
2769
  return g;
2776
2770
  }
2777
2771
  }
2778
2772
  d.Op = o.default, d.OpIterator = a.default, d.AttributeMap = i.default, d.handlers = {}, t.default = d, n.exports = d, n.exports.default = d;
2779
2773
  })(Er, Er.exports);
2780
- var ct = Er.exports;
2781
- const O = /* @__PURE__ */ zi(ct);
2782
- class Et extends nt {
2774
+ var tt = Er.exports;
2775
+ const O = /* @__PURE__ */ zi(tt);
2776
+ class Et extends rt {
2783
2777
  static value() {
2784
2778
  }
2785
2779
  optimize() {
@@ -2796,36 +2790,37 @@ Et.blotName = "break";
2796
2790
  Et.tagName = "BR";
2797
2791
  let yt = class extends Ws {
2798
2792
  };
2793
+ const ma = {
2794
+ "&": "&amp;",
2795
+ "<": "&lt;",
2796
+ ">": "&gt;",
2797
+ '"': "&quot;",
2798
+ "'": "&#39;"
2799
+ };
2799
2800
  function nn(n) {
2800
- return n.replace(/[&<>"']/g, (t) => ({
2801
- "&": "&amp;",
2802
- "<": "&lt;",
2803
- ">": "&gt;",
2804
- '"': "&quot;",
2805
- "'": "&#39;"
2806
- })[t]);
2807
- }
2808
- const Tt = class Tt extends Dr {
2801
+ return n.replace(/[&<>"']/g, (t) => ma[t]);
2802
+ }
2803
+ const Lt = class Lt extends Dr {
2809
2804
  static compare(t, e) {
2810
- const s = Tt.order.indexOf(t), r = Tt.order.indexOf(e);
2805
+ const s = Lt.order.indexOf(t), r = Lt.order.indexOf(e);
2811
2806
  return s >= 0 || r >= 0 ? s - r : t === e ? 0 : t < e ? -1 : 1;
2812
2807
  }
2813
2808
  formatAt(t, e, s, r) {
2814
- if (Tt.compare(this.statics.blotName, s) < 0 && this.scroll.query(s, C.BLOT)) {
2809
+ if (Lt.compare(this.statics.blotName, s) < 0 && this.scroll.query(s, C.BLOT)) {
2815
2810
  const i = this.isolate(t, e);
2816
2811
  r && i.wrap(s, r);
2817
2812
  } else
2818
2813
  super.formatAt(t, e, s, r);
2819
2814
  }
2820
2815
  optimize(t) {
2821
- if (super.optimize(t), this.parent instanceof Tt && Tt.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
2816
+ if (super.optimize(t), this.parent instanceof Lt && Lt.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
2822
2817
  const e = this.parent.isolate(this.offset(), this.length());
2823
2818
  this.moveChildren(e), e.wrap(this);
2824
2819
  }
2825
2820
  }
2826
2821
  };
2827
- T(Tt, "allowedChildren", [Tt, Et, nt, yt]), // Lower index means deeper in the DOM tree, since not found (-1) is for embeds
2828
- T(Tt, "order", [
2822
+ T(Lt, "allowedChildren", [Lt, Et, rt, yt]), // Lower index means deeper in the DOM tree, since not found (-1) is for embeds
2823
+ T(Lt, "order", [
2829
2824
  "cursor",
2830
2825
  "inline",
2831
2826
  // Must be lower
@@ -2839,7 +2834,7 @@ T(Tt, "order", [
2839
2834
  "code"
2840
2835
  // Must be higher
2841
2836
  ]);
2842
- let St = Tt;
2837
+ let Ot = Lt;
2843
2838
  const vi = 1;
2844
2839
  class G extends es {
2845
2840
  constructor() {
@@ -2860,8 +2855,7 @@ class G extends es {
2860
2855
  super.insertAt(e, s, r), this.cache = {};
2861
2856
  return;
2862
2857
  }
2863
- if (s.length === 0)
2864
- return;
2858
+ if (s.length === 0) return;
2865
2859
  const i = s.split(`
2866
2860
  `), o = i.shift();
2867
2861
  o.length > 0 && (e < this.length() - 1 || this.children.tail == null ? super.insertAt(Math.min(e, this.length() - 1), o) : this.children.tail.insertAt(this.children.tail.length(), o), this.cache = {});
@@ -2902,8 +2896,8 @@ class G extends es {
2902
2896
  G.blotName = "block";
2903
2897
  G.tagName = "P";
2904
2898
  G.defaultChild = Et;
2905
- G.allowedChildren = [Et, St, nt, yt];
2906
- class at extends nt {
2899
+ G.allowedChildren = [Et, Ot, rt, yt];
2900
+ class ct extends rt {
2907
2901
  attach() {
2908
2902
  super.attach(), this.attributes = new Qs(this.domNode);
2909
2903
  }
@@ -2935,25 +2929,25 @@ class at extends nt {
2935
2929
  }), i && this.parent.insertBefore(this.scroll.create("text", i), a);
2936
2930
  }
2937
2931
  }
2938
- at.scope = C.BLOCK_BLOT;
2932
+ ct.scope = C.BLOCK_BLOT;
2939
2933
  function ol(n) {
2940
2934
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
2941
- return n.descendants(X).reduce((e, s) => s.length() === 0 ? e : e.insert(s.value(), lt(s, {}, t)), new O()).insert(`
2942
- `, lt(n));
2935
+ return n.descendants(X).reduce((e, s) => s.length() === 0 ? e : e.insert(s.value(), ot(s, {}, t)), new O()).insert(`
2936
+ `, ot(n));
2943
2937
  }
2944
- function lt(n) {
2938
+ function ot(n) {
2945
2939
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
2946
2940
  return n == null || ("formats" in n && typeof n.formats == "function" && (t = {
2947
2941
  ...t,
2948
2942
  ...n.formats()
2949
- }, e && delete t["code-token"]), n.parent == null || n.parent.statics.blotName === "scroll" || n.parent.statics.scope !== n.statics.scope) ? t : lt(n.parent, t, e);
2943
+ }, e && delete t["code-token"]), n.parent == null || n.parent.statics.blotName === "scroll" || n.parent.statics.scope !== n.statics.scope) ? t : ot(n.parent, t, e);
2950
2944
  }
2951
- const it = class it extends nt {
2945
+ const lt = class lt extends rt {
2952
2946
  // Zero width no break space
2953
2947
  static value() {
2954
2948
  }
2955
2949
  constructor(t, e, s) {
2956
- super(t, e), this.selection = s, this.textNode = document.createTextNode(it.CONTENTS), this.domNode.appendChild(this.textNode), this.savedLength = 0;
2950
+ super(t, e), this.selection = s, this.textNode = document.createTextNode(lt.CONTENTS), this.domNode.appendChild(this.textNode), this.savedLength = 0;
2957
2951
  }
2958
2952
  detach() {
2959
2953
  this.parent != null && this.parent.removeChild(this);
@@ -2966,7 +2960,7 @@ const it = class it extends nt {
2966
2960
  let s = this, r = 0;
2967
2961
  for (; s != null && s.statics.scope !== C.BLOCK_BLOT; )
2968
2962
  r += s.offset(s.parent), s = s.parent;
2969
- s != null && (this.savedLength = it.CONTENTS.length, s.optimize(), s.formatAt(r, it.CONTENTS.length, t, e), this.savedLength = 0);
2963
+ s != null && (this.savedLength = lt.CONTENTS.length, s.optimize(), s.formatAt(r, lt.CONTENTS.length, t, e), this.savedLength = 0);
2970
2964
  }
2971
2965
  index(t, e) {
2972
2966
  return t === this.textNode ? 0 : super.index(t, e);
@@ -2981,15 +2975,14 @@ const it = class it extends nt {
2981
2975
  super.remove(), this.parent = null;
2982
2976
  }
2983
2977
  restore() {
2984
- if (this.selection.composing || this.parent == null)
2985
- return null;
2978
+ if (this.selection.composing || this.parent == null) return null;
2986
2979
  const t = this.selection.getNativeRange();
2987
2980
  for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
2988
2981
  this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
2989
2982
  const e = this.prev instanceof yt ? this.prev : null, s = e ? e.length() : 0, r = this.next instanceof yt ? this.next : null, i = r ? r.text : "", {
2990
2983
  textNode: o
2991
- } = this, a = o.data.split(it.CONTENTS).join("");
2992
- o.data = it.CONTENTS;
2984
+ } = this, a = o.data.split(lt.CONTENTS).join("");
2985
+ o.data = lt.CONTENTS;
2993
2986
  let c;
2994
2987
  if (e)
2995
2988
  c = e, (a || r) && (e.insertAt(e.length(), a + i), r && r.remove());
@@ -3034,7 +3027,7 @@ const it = class it extends nt {
3034
3027
  } = this;
3035
3028
  for (; e; ) {
3036
3029
  if (e.domNode.tagName === "A") {
3037
- this.savedLength = it.CONTENTS.length, e.isolate(this.offset(e), this.length()).unwrap(), this.savedLength = 0;
3030
+ this.savedLength = lt.CONTENTS.length, e.isolate(this.offset(e), this.length()).unwrap(), this.savedLength = 0;
3038
3031
  break;
3039
3032
  }
3040
3033
  e = e.parent;
@@ -3044,8 +3037,8 @@ const it = class it extends nt {
3044
3037
  return "";
3045
3038
  }
3046
3039
  };
3047
- T(it, "blotName", "cursor"), T(it, "className", "ql-cursor"), T(it, "tagName", "span"), T(it, "CONTENTS", "\uFEFF");
3048
- let Se = it;
3040
+ T(lt, "blotName", "cursor"), T(lt, "className", "ql-cursor"), T(lt, "tagName", "span"), T(lt, "CONTENTS", "\uFEFF");
3041
+ let Se = lt;
3049
3042
  var al = { exports: {} };
3050
3043
  (function(n) {
3051
3044
  var t = Object.prototype.hasOwnProperty, e = "~";
@@ -3069,17 +3062,14 @@ var al = { exports: {} };
3069
3062
  }
3070
3063
  a.prototype.eventNames = function() {
3071
3064
  var h = [], d, b;
3072
- if (this._eventsCount === 0)
3073
- return h;
3065
+ if (this._eventsCount === 0) return h;
3074
3066
  for (b in d = this._events)
3075
3067
  t.call(d, b) && h.push(e ? b.slice(1) : b);
3076
3068
  return Object.getOwnPropertySymbols ? h.concat(Object.getOwnPropertySymbols(d)) : h;
3077
3069
  }, a.prototype.listeners = function(h) {
3078
3070
  var d = e ? e + h : h, b = this._events[d];
3079
- if (!b)
3080
- return [];
3081
- if (b.fn)
3082
- return [b.fn];
3071
+ if (!b) return [];
3072
+ if (b.fn) return [b.fn];
3083
3073
  for (var g = 0, p = b.length, m = new Array(p); g < p; g++)
3084
3074
  m[g] = b[g].fn;
3085
3075
  return m;
@@ -3088,48 +3078,46 @@ var al = { exports: {} };
3088
3078
  return b ? b.fn ? 1 : b.length : 0;
3089
3079
  }, a.prototype.emit = function(h, d, b, g, p, m) {
3090
3080
  var y = e ? e + h : h;
3091
- if (!this._events[y])
3092
- return !1;
3093
- var E = this._events[y], N = arguments.length, w, x;
3094
- if (E.fn) {
3095
- switch (E.once && this.removeListener(h, E.fn, void 0, !0), N) {
3081
+ if (!this._events[y]) return !1;
3082
+ var v = this._events[y], N = arguments.length, w, x;
3083
+ if (v.fn) {
3084
+ switch (v.once && this.removeListener(h, v.fn, void 0, !0), N) {
3096
3085
  case 1:
3097
- return E.fn.call(E.context), !0;
3086
+ return v.fn.call(v.context), !0;
3098
3087
  case 2:
3099
- return E.fn.call(E.context, d), !0;
3088
+ return v.fn.call(v.context, d), !0;
3100
3089
  case 3:
3101
- return E.fn.call(E.context, d, b), !0;
3090
+ return v.fn.call(v.context, d, b), !0;
3102
3091
  case 4:
3103
- return E.fn.call(E.context, d, b, g), !0;
3092
+ return v.fn.call(v.context, d, b, g), !0;
3104
3093
  case 5:
3105
- return E.fn.call(E.context, d, b, g, p), !0;
3094
+ return v.fn.call(v.context, d, b, g, p), !0;
3106
3095
  case 6:
3107
- return E.fn.call(E.context, d, b, g, p, m), !0;
3096
+ return v.fn.call(v.context, d, b, g, p, m), !0;
3108
3097
  }
3109
3098
  for (x = 1, w = new Array(N - 1); x < N; x++)
3110
3099
  w[x - 1] = arguments[x];
3111
- E.fn.apply(E.context, w);
3100
+ v.fn.apply(v.context, w);
3112
3101
  } else {
3113
- var S = E.length, L;
3102
+ var S = v.length, L;
3114
3103
  for (x = 0; x < S; x++)
3115
- switch (E[x].once && this.removeListener(h, E[x].fn, void 0, !0), N) {
3104
+ switch (v[x].once && this.removeListener(h, v[x].fn, void 0, !0), N) {
3116
3105
  case 1:
3117
- E[x].fn.call(E[x].context);
3106
+ v[x].fn.call(v[x].context);
3118
3107
  break;
3119
3108
  case 2:
3120
- E[x].fn.call(E[x].context, d);
3109
+ v[x].fn.call(v[x].context, d);
3121
3110
  break;
3122
3111
  case 3:
3123
- E[x].fn.call(E[x].context, d, b);
3112
+ v[x].fn.call(v[x].context, d, b);
3124
3113
  break;
3125
3114
  case 4:
3126
- E[x].fn.call(E[x].context, d, b, g);
3115
+ v[x].fn.call(v[x].context, d, b, g);
3127
3116
  break;
3128
3117
  default:
3129
- if (!w)
3130
- for (L = 1, w = new Array(N - 1); L < N; L++)
3131
- w[L - 1] = arguments[L];
3132
- E[x].fn.apply(E[x].context, w);
3118
+ if (!w) for (L = 1, w = new Array(N - 1); L < N; L++)
3119
+ w[L - 1] = arguments[L];
3120
+ v[x].fn.apply(v[x].context, w);
3133
3121
  }
3134
3122
  }
3135
3123
  return !0;
@@ -3139,17 +3127,16 @@ var al = { exports: {} };
3139
3127
  return i(this, h, d, b, !0);
3140
3128
  }, a.prototype.removeListener = function(h, d, b, g) {
3141
3129
  var p = e ? e + h : h;
3142
- if (!this._events[p])
3143
- return this;
3130
+ if (!this._events[p]) return this;
3144
3131
  if (!d)
3145
3132
  return o(this, p), this;
3146
3133
  var m = this._events[p];
3147
3134
  if (m.fn)
3148
3135
  m.fn === d && (!g || m.once) && (!b || m.context === b) && o(this, p);
3149
3136
  else {
3150
- for (var y = 0, E = [], N = m.length; y < N; y++)
3151
- (m[y].fn !== d || g && !m[y].once || b && m[y].context !== b) && E.push(m[y]);
3152
- E.length ? this._events[p] = E.length === 1 ? E[0] : E : o(this, p);
3137
+ for (var y = 0, v = [], N = m.length; y < N; y++)
3138
+ (m[y].fn !== d || g && !m[y].once || b && m[y].context !== b) && v.push(m[y]);
3139
+ v.length ? this._events[p] = v.length === 1 ? v[0] : v : o(this, p);
3153
3140
  }
3154
3141
  return this;
3155
3142
  }, a.prototype.removeAllListeners = function(h) {
@@ -3157,8 +3144,8 @@ var al = { exports: {} };
3157
3144
  return h ? (d = e ? e + h : h, this._events[d] && o(this, d)) : (this._events = new s(), this._eventsCount = 0), this;
3158
3145
  }, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = e, a.EventEmitter = a, n.exports = a;
3159
3146
  })(al);
3160
- var ya = al.exports;
3161
- const va = /* @__PURE__ */ zi(ya), wr = /* @__PURE__ */ new WeakMap(), xr = ["error", "warn", "log", "info"];
3147
+ var ba = al.exports;
3148
+ const ya = /* @__PURE__ */ zi(ba), wr = /* @__PURE__ */ new WeakMap(), xr = ["error", "warn", "log", "info"];
3162
3149
  let Tr = "warn";
3163
3150
  function cl(n) {
3164
3151
  if (Tr && xr.indexOf(n) <= xr.indexOf(Tr)) {
@@ -3174,8 +3161,8 @@ Ut.level = (n) => {
3174
3161
  Tr = n;
3175
3162
  };
3176
3163
  cl.level = Ut.level;
3177
- const rr = Ut("quill:events"), Ea = ["selectionchange", "mousedown", "mouseup", "click"];
3178
- Ea.forEach((n) => {
3164
+ const rr = Ut("quill:events"), va = ["selectionchange", "mousedown", "mouseup", "click"];
3165
+ va.forEach((n) => {
3179
3166
  document.addEventListener(n, function() {
3180
3167
  for (var t = arguments.length, e = new Array(t), s = 0; s < t; s++)
3181
3168
  e[s] = arguments[s];
@@ -3185,7 +3172,7 @@ Ea.forEach((n) => {
3185
3172
  });
3186
3173
  });
3187
3174
  });
3188
- class q extends va {
3175
+ class q extends ya {
3189
3176
  constructor() {
3190
3177
  super(), this.domListeners = {}, this.on("error", rr.error);
3191
3178
  }
@@ -3238,13 +3225,12 @@ class ne {
3238
3225
  this.index = t, this.length = e;
3239
3226
  }
3240
3227
  }
3241
- class Na {
3228
+ class Ea {
3242
3229
  constructor(t, e) {
3243
3230
  this.emitter = e, this.scroll = t, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = this.scroll.create("cursor", this), this.savedRange = new ne(0, 0), this.lastRange = this.savedRange, this.lastNative = null, this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, () => {
3244
3231
  !this.mouseDown && !this.composing && setTimeout(this.update.bind(this, q.sources.USER), 1);
3245
3232
  }), this.emitter.on(q.events.SCROLL_BEFORE_UPDATE, () => {
3246
- if (!this.hasFocus())
3247
- return;
3233
+ if (!this.hasFocus()) return;
3248
3234
  const s = this.getNativeRange();
3249
3235
  s != null && s.start.node !== this.cursor.textNode && this.emitter.once(q.events.SCROLL_UPDATE, (r, i) => {
3250
3236
  try {
@@ -3272,8 +3258,7 @@ class Na {
3272
3258
  }), this.emitter.on(q.events.COMPOSITION_END, () => {
3273
3259
  if (this.composing = !1, this.cursor.parent) {
3274
3260
  const t = this.cursor.restore();
3275
- if (!t)
3276
- return;
3261
+ if (!t) return;
3277
3262
  setTimeout(() => {
3278
3263
  this.setNativeRange(t.startNode, t.startOffset, t.endNode, t.endOffset);
3279
3264
  }, 1);
@@ -3298,8 +3283,7 @@ class Na {
3298
3283
  if (!(s == null || !s.native.collapsed || this.scroll.query(t, C.BLOCK))) {
3299
3284
  if (s.start.node !== this.cursor.textNode) {
3300
3285
  const r = this.scroll.find(s.start.node, !1);
3301
- if (r == null)
3302
- return;
3286
+ if (r == null) return;
3303
3287
  if (r instanceof X) {
3304
3288
  const i = r.split(s.start.offset);
3305
3289
  r.parent.insertBefore(this.cursor, i);
@@ -3315,8 +3299,7 @@ class Na {
3315
3299
  const s = this.scroll.length();
3316
3300
  t = Math.min(t, s - 1), e = Math.min(t + e, s - 1) - t;
3317
3301
  let r, [i, o] = this.scroll.leaf(t);
3318
- if (i == null)
3319
- return null;
3302
+ if (i == null) return null;
3320
3303
  if (e > 0 && o === i.length()) {
3321
3304
  const [d] = this.scroll.leaf(t + 1);
3322
3305
  if (d) {
@@ -3334,8 +3317,7 @@ class Na {
3334
3317
  return null;
3335
3318
  o < r.data.length ? (a.setStart(r, o), a.setEnd(r, o + 1)) : (a.setStart(r, o - 1), a.setEnd(r, o), c = "right"), h = a.getBoundingClientRect();
3336
3319
  } else {
3337
- if (!(i.domNode instanceof Element))
3338
- return null;
3320
+ if (!(i.domNode instanceof Element)) return null;
3339
3321
  h = i.domNode.getBoundingClientRect(), o > 0 && (c = "right");
3340
3322
  }
3341
3323
  return {
@@ -3349,11 +3331,9 @@ class Na {
3349
3331
  }
3350
3332
  getNativeRange() {
3351
3333
  const t = document.getSelection();
3352
- if (t == null || t.rangeCount <= 0)
3353
- return null;
3334
+ if (t == null || t.rangeCount <= 0) return null;
3354
3335
  const e = t.getRangeAt(0);
3355
- if (e == null)
3356
- return null;
3336
+ if (e == null) return null;
3357
3337
  const s = this.normalizeNative(e);
3358
3338
  return ir.info("getNativeRange", s), s;
3359
3339
  }
@@ -3465,8 +3445,8 @@ function lr(n, t) {
3465
3445
  }
3466
3446
  return n.contains(t);
3467
3447
  }
3468
- const Aa = /^[ -~]*$/;
3469
- class wa {
3448
+ const Na = /^[ -~]*$/;
3449
+ class Aa {
3470
3450
  constructor(t) {
3471
3451
  this.scroll = t, this.delta = this.getDelta();
3472
3452
  }
@@ -3475,46 +3455,44 @@ class wa {
3475
3455
  let e = this.scroll.length();
3476
3456
  this.scroll.batchStart();
3477
3457
  const s = Ei(t), r = new O();
3478
- return Ta(s.ops.slice()).reduce((o, a) => {
3479
- const c = ct.Op.length(a);
3458
+ return xa(s.ops.slice()).reduce((o, a) => {
3459
+ const c = tt.Op.length(a);
3480
3460
  let h = a.attributes || {}, d = !1, b = !1;
3481
3461
  if (a.insert != null) {
3482
3462
  if (r.retain(c), typeof a.insert == "string") {
3483
3463
  const m = a.insert;
3484
3464
  b = !m.endsWith(`
3485
- `) && (e <= o || !!this.scroll.descendant(at, o)[0]), this.scroll.insertAt(o, m);
3486
- const [y, E] = this.scroll.line(o);
3487
- let N = Gt({}, lt(y));
3465
+ `) && (e <= o || !!this.scroll.descendant(ct, o)[0]), this.scroll.insertAt(o, m);
3466
+ const [y, v] = this.scroll.line(o);
3467
+ let N = Gt({}, ot(y));
3488
3468
  if (y instanceof G) {
3489
- const [w] = y.descendant(X, E);
3490
- w && (N = Gt(N, lt(w)));
3469
+ const [w] = y.descendant(X, v);
3470
+ w && (N = Gt(N, ot(w)));
3491
3471
  }
3492
- h = ct.AttributeMap.diff(N, h) || {};
3472
+ h = tt.AttributeMap.diff(N, h) || {};
3493
3473
  } else if (typeof a.insert == "object") {
3494
3474
  const m = Object.keys(a.insert)[0];
3495
- if (m == null)
3496
- return o;
3475
+ if (m == null) return o;
3497
3476
  const y = this.scroll.query(m, C.INLINE) != null;
3498
3477
  if (y)
3499
- (e <= o || this.scroll.descendant(at, o)[0]) && (b = !0);
3478
+ (e <= o || this.scroll.descendant(ct, o)[0]) && (b = !0);
3500
3479
  else if (o > 0) {
3501
- const [E, N] = this.scroll.descendant(X, o - 1);
3502
- E instanceof yt ? E.value()[N] !== `
3503
- ` && (d = !0) : E instanceof nt && E.statics.scope === C.INLINE_BLOT && (d = !0);
3480
+ const [v, N] = this.scroll.descendant(X, o - 1);
3481
+ v instanceof yt ? v.value()[N] !== `
3482
+ ` && (d = !0) : v instanceof rt && v.statics.scope === C.INLINE_BLOT && (d = !0);
3504
3483
  }
3505
3484
  if (this.scroll.insertAt(o, m, a.insert[m]), y) {
3506
- const [E] = this.scroll.descendant(X, o);
3507
- if (E) {
3508
- const N = Gt({}, lt(E));
3509
- h = ct.AttributeMap.diff(N, h) || {};
3485
+ const [v] = this.scroll.descendant(X, o);
3486
+ if (v) {
3487
+ const N = Gt({}, ot(v));
3488
+ h = tt.AttributeMap.diff(N, h) || {};
3510
3489
  }
3511
3490
  }
3512
3491
  }
3513
3492
  e += c;
3514
3493
  } else if (r.push(a), a.retain !== null && typeof a.retain == "object") {
3515
3494
  const m = Object.keys(a.retain)[0];
3516
- if (m == null)
3517
- return o;
3495
+ if (m == null) return o;
3518
3496
  this.scroll.updateEmbedAt(o, m, a.retain[m]);
3519
3497
  }
3520
3498
  Object.keys(h).forEach((m) => {
@@ -3522,7 +3500,7 @@ class wa {
3522
3500
  });
3523
3501
  const g = d ? 1 : 0, p = b ? 1 : 0;
3524
3502
  return e += g + p, r.retain(g), r.delete(p), o + c + g + p;
3525
- }, 0), r.reduce((o, a) => typeof a.delete == "number" ? (this.scroll.deleteAt(o, a.delete), o) : o + ct.Op.length(a), 0), this.scroll.batchEnd(), this.scroll.optimize(), this.update(s);
3503
+ }, 0), r.reduce((o, a) => typeof a.delete == "number" ? (this.scroll.deleteAt(o, a.delete), o) : o + tt.Op.length(a), 0), this.scroll.batchEnd(), this.scroll.optimize(), this.update(s);
3526
3504
  }
3527
3505
  deleteText(t, e) {
3528
3506
  return this.scroll.deleteAt(t, e), this.update(new O().retain(t).delete(e));
@@ -3559,14 +3537,12 @@ class wa {
3559
3537
  }) : (s = this.scroll.lines(t, e), r = this.scroll.descendants(X, t, e));
3560
3538
  const [i, o] = [s, r].map((a) => {
3561
3539
  const c = a.shift();
3562
- if (c == null)
3563
- return {};
3564
- let h = lt(c);
3540
+ if (c == null) return {};
3541
+ let h = ot(c);
3565
3542
  for (; Object.keys(h).length > 0; ) {
3566
3543
  const d = a.shift();
3567
- if (d == null)
3568
- return h;
3569
- h = xa(lt(d), h);
3544
+ if (d == null) return h;
3545
+ h = wa(ot(d), h);
3570
3546
  }
3571
3547
  return h;
3572
3548
  });
@@ -3604,13 +3580,10 @@ class wa {
3604
3580
  }), this.update(new O().retain(t).insert(e, xe(s)));
3605
3581
  }
3606
3582
  isBlank() {
3607
- if (this.scroll.children.length === 0)
3608
- return !0;
3609
- if (this.scroll.children.length > 1)
3610
- return !1;
3583
+ if (this.scroll.children.length === 0) return !0;
3584
+ if (this.scroll.children.length > 1) return !1;
3611
3585
  const t = this.scroll.children.head;
3612
- if ((t == null ? void 0 : t.statics.blotName) !== G.blotName)
3613
- return !1;
3586
+ if ((t == null ? void 0 : t.statics.blotName) !== G.blotName) return !1;
3614
3587
  const e = t;
3615
3588
  return e.children.length > 1 ? !1 : e.children.head instanceof Et;
3616
3589
  }
@@ -3626,8 +3599,8 @@ class wa {
3626
3599
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
3627
3600
  const r = this.delta;
3628
3601
  if (e.length === 1 && e[0].type === "characterData" && // @ts-expect-error Fix me later
3629
- e[0].target.data.match(Aa) && this.scroll.find(e[0].target)) {
3630
- const i = this.scroll.find(e[0].target), o = lt(i), a = i.offset(this.scroll), c = e[0].oldValue.replace(Se.CONTENTS, ""), h = new O().insert(c), d = new O().insert(i.value()), b = s && {
3602
+ e[0].target.data.match(Na) && this.scroll.find(e[0].target)) {
3603
+ const i = this.scroll.find(e[0].target), o = ot(i), a = i.offset(this.scroll), c = e[0].oldValue.replace(Se.CONTENTS, ""), h = new O().insert(c), d = new O().insert(i.value()), b = s && {
3631
3604
  oldRange: Ni(s.oldRange, -a),
3632
3605
  newRange: Ni(s.newRange, -a)
3633
3606
  };
@@ -3662,7 +3635,7 @@ function ns(n, t, e) {
3662
3635
  if ("html" in n && typeof n.html == "function")
3663
3636
  return n.html(t, e);
3664
3637
  if (n instanceof yt)
3665
- return nn(n.value().slice(t, t + e));
3638
+ return nn(n.value().slice(t, t + e)).replaceAll(" ", "&nbsp;");
3666
3639
  if (n instanceof bt) {
3667
3640
  if (n.statics.blotName === "list-container") {
3668
3641
  const h = [];
@@ -3690,10 +3663,9 @@ function ns(n, t, e) {
3690
3663
  }
3691
3664
  return n.domNode instanceof Element ? n.domNode.outerHTML : "";
3692
3665
  }
3693
- function xa(n, t) {
3666
+ function wa(n, t) {
3694
3667
  return Object.keys(t).reduce((e, s) => {
3695
- if (n[s] == null)
3696
- return e;
3668
+ if (n[s] == null) return e;
3697
3669
  const r = t[s];
3698
3670
  return r === n[s] ? e[s] = r : Array.isArray(r) ? r.indexOf(n[s]) < 0 ? e[s] = r.concat([n[s]]) : e[s] = r : e[s] = [r, n[s]], e;
3699
3671
  }, {});
@@ -3727,7 +3699,7 @@ function Ni(n, t) {
3727
3699
  } = n;
3728
3700
  return new ne(e + t, s);
3729
3701
  }
3730
- function Ta(n) {
3702
+ function xa(n) {
3731
3703
  const t = [];
3732
3704
  return n.forEach((e) => {
3733
3705
  typeof e.insert == "string" ? e.insert.split(`
@@ -3743,15 +3715,15 @@ function Ta(n) {
3743
3715
  }) : t.push(e);
3744
3716
  }), t;
3745
3717
  }
3746
- class ul {
3718
+ class Nt {
3747
3719
  constructor(t) {
3748
3720
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3749
3721
  this.quill = t, this.options = e;
3750
3722
  }
3751
3723
  }
3752
- T(ul, "DEFAULTS", {});
3753
- const Ot = ul, Ps = "\uFEFF";
3754
- class Fr extends nt {
3724
+ T(Nt, "DEFAULTS", {});
3725
+ const Ps = "\uFEFF";
3726
+ class Fr extends rt {
3755
3727
  constructor(t, e) {
3756
3728
  super(t, e), this.contentNode = document.createElement("span"), this.contentNode.setAttribute("contenteditable", "false"), Array.from(this.domNode.childNodes).forEach((s) => {
3757
3729
  this.contentNode.appendChild(s);
@@ -3775,14 +3747,13 @@ class Fr extends nt {
3775
3747
  startNode: s,
3776
3748
  startOffset: r.length
3777
3749
  };
3778
- else
3779
- t === this.rightGuard && (this.next instanceof yt ? (this.next.insertAt(0, r), e = {
3780
- startNode: this.next.domNode,
3781
- startOffset: r.length
3782
- }) : (s = document.createTextNode(r), this.parent.insertBefore(this.scroll.create(s), this.next), e = {
3783
- startNode: s,
3784
- startOffset: r.length
3785
- }));
3750
+ else t === this.rightGuard && (this.next instanceof yt ? (this.next.insertAt(0, r), e = {
3751
+ startNode: this.next.domNode,
3752
+ startOffset: r.length
3753
+ }) : (s = document.createTextNode(r), this.parent.insertBefore(this.scroll.create(s), this.next), e = {
3754
+ startNode: s,
3755
+ startOffset: r.length
3756
+ }));
3786
3757
  return t.data = Ps, e;
3787
3758
  }
3788
3759
  update(t, e) {
@@ -3794,7 +3765,7 @@ class Fr extends nt {
3794
3765
  });
3795
3766
  }
3796
3767
  }
3797
- class La {
3768
+ class Ta {
3798
3769
  constructor(t, e) {
3799
3770
  T(this, "isComposing", !1);
3800
3771
  this.scroll = t, this.emitter = e, this.setupListeners();
@@ -3837,7 +3808,7 @@ T(Je, "DEFAULTS", {
3837
3808
  default: Je
3838
3809
  });
3839
3810
  let Oe = Je;
3840
- const qa = (n) => n.parentElement || n.getRootNode().host || null, Sa = (n) => {
3811
+ const La = (n) => n.parentElement || n.getRootNode().host || null, qa = (n) => {
3841
3812
  const t = n.getBoundingClientRect(), e = "offsetWidth" in n && Math.abs(t.width) / n.offsetWidth || 1, s = "offsetHeight" in n && Math.abs(t.height) / n.offsetHeight || 1;
3842
3813
  return {
3843
3814
  top: t.top,
@@ -3848,7 +3819,7 @@ const qa = (n) => n.parentElement || n.getRootNode().host || null, Sa = (n) => {
3848
3819
  }, js = (n) => {
3849
3820
  const t = parseInt(n, 10);
3850
3821
  return Number.isNaN(t) ? 0 : t;
3851
- }, Ai = (n, t, e, s, r, i) => n < e && t > s ? 0 : n < e ? -(e - n + r) : t > s ? t - n > s - e ? n + r - e : t - s + i : 0, Oa = (n, t) => {
3822
+ }, Ai = (n, t, e, s, r, i) => n < e && t > s ? 0 : n < e ? -(e - n + r) : t > s ? t - n > s - e ? n + r - e : t - s + i : 0, Sa = (n, t) => {
3852
3823
  var i, o, a;
3853
3824
  const e = n.ownerDocument;
3854
3825
  let s = t, r = n;
@@ -3858,7 +3829,7 @@ const qa = (n) => n.parentElement || n.getRootNode().host || null, Sa = (n) => {
3858
3829
  right: ((i = window.visualViewport) == null ? void 0 : i.width) ?? e.documentElement.clientWidth,
3859
3830
  bottom: ((o = window.visualViewport) == null ? void 0 : o.height) ?? e.documentElement.clientHeight,
3860
3831
  left: 0
3861
- } : Sa(r), d = getComputedStyle(r), b = Ai(s.left, s.right, h.left, h.right, js(d.scrollPaddingLeft), js(d.scrollPaddingRight)), g = Ai(s.top, s.bottom, h.top, h.bottom, js(d.scrollPaddingTop), js(d.scrollPaddingBottom));
3832
+ } : qa(r), d = getComputedStyle(r), b = Ai(s.left, s.right, h.left, h.right, js(d.scrollPaddingLeft), js(d.scrollPaddingRight)), g = Ai(s.top, s.bottom, h.top, h.bottom, js(d.scrollPaddingTop), js(d.scrollPaddingBottom));
3862
3833
  if (b || g)
3863
3834
  if (c)
3864
3835
  (a = e.defaultView) == null || a.scrollBy(b, g);
@@ -3868,19 +3839,19 @@ const qa = (n) => n.parentElement || n.getRootNode().host || null, Sa = (n) => {
3868
3839
  scrollTop: m
3869
3840
  } = r;
3870
3841
  g && (r.scrollTop += g), b && (r.scrollLeft += b);
3871
- const y = r.scrollLeft - p, E = r.scrollTop - m;
3842
+ const y = r.scrollLeft - p, v = r.scrollTop - m;
3872
3843
  s = {
3873
3844
  left: s.left - y,
3874
- top: s.top - E,
3845
+ top: s.top - v,
3875
3846
  right: s.right - y,
3876
- bottom: s.bottom - E
3847
+ bottom: s.bottom - v
3877
3848
  };
3878
3849
  }
3879
- r = c || d.position === "fixed" ? null : qa(r);
3850
+ r = c || d.position === "fixed" ? null : La(r);
3880
3851
  }
3881
- }, Ca = 100, _a = ["block", "break", "cursor", "inline", "scroll", "text"], ka = (n, t, e) => {
3852
+ }, Oa = 100, Ca = ["block", "break", "cursor", "inline", "scroll", "text"], _a = (n, t, e) => {
3882
3853
  const s = new qe();
3883
- return _a.forEach((r) => {
3854
+ return Ca.forEach((r) => {
3884
3855
  const i = t.query(r);
3885
3856
  i && s.register(i);
3886
3857
  }), n.forEach((r) => {
@@ -3888,7 +3859,7 @@ const qa = (n) => n.parentElement || n.getRootNode().host || null, Sa = (n) => {
3888
3859
  i || e.error(`Cannot register "${r}" specified in "formats" config. Are you sure it was registered?`);
3889
3860
  let o = 0;
3890
3861
  for (; i; )
3891
- if (s.register(i), i = "blotName" in i ? i.requiredContainer ?? null : null, o += 1, o > Ca) {
3862
+ if (s.register(i), i = "blotName" in i ? i.requiredContainer ?? null : null, o += 1, o > Oa) {
3892
3863
  e.error(`Cycle detected in registering blot requiredContainer: "${r}"`);
3893
3864
  break;
3894
3865
  }
@@ -3919,7 +3890,7 @@ const pt = class pt {
3919
3890
  }
3920
3891
  constructor(t) {
3921
3892
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3922
- if (this.options = Ia(t, e), this.container = this.options.container, this.container == null) {
3893
+ if (this.options = ka(t, e), this.container = this.options.container, this.container == null) {
3923
3894
  Le.error("Invalid Quill container", t);
3924
3895
  return;
3925
3896
  }
@@ -3931,7 +3902,7 @@ const pt = class pt {
3931
3902
  throw new Error(`Cannot initialize Quill without "${r}" blot`);
3932
3903
  if (this.scroll = new i(this.options.registry, this.root, {
3933
3904
  emitter: this.emitter
3934
- }), this.editor = new wa(this.scroll), this.selection = new Na(this.scroll, this.emitter), this.composition = new La(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.uploader = this.theme.addModule("uploader"), this.theme.addModule("input"), this.theme.addModule("uiNode"), this.theme.init(), this.emitter.on(q.events.EDITOR_CHANGE, (o) => {
3905
+ }), this.editor = new Aa(this.scroll), this.selection = new Ea(this.scroll, this.emitter), this.composition = new Ta(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.uploader = this.theme.addModule("uploader"), this.theme.addModule("input"), this.theme.addModule("uiNode"), this.theme.init(), this.emitter.on(q.events.EDITOR_CHANGE, (o) => {
3935
3906
  o === q.events.TEXT_CHANGE && this.root.classList.toggle("ql-blank", this.editor.isBlank());
3936
3907
  }), this.emitter.on(q.events.SCROLL_UPDATE, (o, a) => {
3937
3908
  const c = this.selection.lastRange, [h] = this.selection.getRange(), d = c && h ? {
@@ -3995,8 +3966,7 @@ const pt = class pt {
3995
3966
  return gt.call(this, () => {
3996
3967
  const r = this.getSelection(!0);
3997
3968
  let i = new O();
3998
- if (r == null)
3999
- return i;
3969
+ if (r == null) return i;
4000
3970
  if (this.scroll.query(t, C.BLOCK))
4001
3971
  i = this.editor.formatLine(r.index, r.length, {
4002
3972
  [t]: e
@@ -4035,8 +4005,7 @@ const pt = class pt {
4035
4005
  }
4036
4006
  getBounds(t) {
4037
4007
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, s = null;
4038
- if (typeof t == "number" ? s = this.selection.getBounds(t, e) : s = this.selection.getBounds(t.index, t.length), !s)
4039
- return null;
4008
+ if (typeof t == "number" ? s = this.selection.getBounds(t, e) : s = this.selection.getBounds(t.index, t.length), !s) return null;
4040
4009
  const r = this.container.getBoundingClientRect();
4041
4010
  return {
4042
4011
  bottom: s.bottom - r.top,
@@ -4112,7 +4081,7 @@ const pt = class pt {
4112
4081
  return [t, e, , s] = Bt(t, e, s), gt.call(this, () => this.editor.removeFormat(t, e), s, t);
4113
4082
  }
4114
4083
  scrollRectIntoView(t) {
4115
- Oa(this.root, t);
4084
+ Sa(this.root, t);
4116
4085
  }
4117
4086
  /**
4118
4087
  * @deprecated Use Quill#scrollSelectionIntoView() instead.
@@ -4166,10 +4135,10 @@ T(pt, "DEFAULTS", {
4166
4135
  readOnly: !1,
4167
4136
  registry: Hs,
4168
4137
  theme: "default"
4169
- }), T(pt, "events", q.events), T(pt, "sources", q.sources), T(pt, "version", "2.0.2"), T(pt, "imports", {
4138
+ }), T(pt, "events", q.events), T(pt, "sources", q.sources), T(pt, "version", "2.0.3"), T(pt, "imports", {
4170
4139
  delta: O,
4171
- parchment: ra,
4172
- "core/module": Ot,
4140
+ parchment: sa,
4141
+ "core/module": Nt,
4173
4142
  "core/theme": Oe
4174
4143
  });
4175
4144
  let A = pt;
@@ -4188,7 +4157,7 @@ function ar(n) {
4188
4157
  function xi(n) {
4189
4158
  return Object.fromEntries(Object.entries(n).filter((t) => t[1] !== void 0));
4190
4159
  }
4191
- function Ia(n, t) {
4160
+ function ka(n, t) {
4192
4161
  const e = wi(n);
4193
4162
  if (!e)
4194
4163
  throw new Error("Invalid Quill container");
@@ -4215,20 +4184,19 @@ function Ia(n, t) {
4215
4184
  ...xi(t)
4216
4185
  };
4217
4186
  let g = t.registry;
4218
- return g ? t.formats && Le.warn('Ignoring "formats" option because "registry" is specified') : g = t.formats ? ka(t.formats, b.registry, Le) : b.registry, {
4187
+ return g ? t.formats && Le.warn('Ignoring "formats" option because "registry" is specified') : g = t.formats ? _a(t.formats, b.registry, Le) : b.registry, {
4219
4188
  ...b,
4220
4189
  registry: g,
4221
4190
  container: e,
4222
4191
  theme: r,
4223
4192
  modules: Object.entries(d).reduce((p, m) => {
4224
- let [y, E] = m;
4225
- if (!E)
4226
- return p;
4193
+ let [y, v] = m;
4194
+ if (!v) return p;
4227
4195
  const N = A.import(`modules/${y}`);
4228
4196
  return N == null ? (Le.error(`Cannot load ${y} module. Are you sure you registered it?`), p) : {
4229
4197
  ...p,
4230
4198
  // @ts-expect-error
4231
- [y]: Gt({}, N.DEFAULTS || {}, E)
4199
+ [y]: Gt({}, N.DEFAULTS || {}, v)
4232
4200
  };
4233
4201
  }, {}),
4234
4202
  bounds: wi(b.bounds)
@@ -4251,8 +4219,7 @@ function Bt(n, t, e, s, r) {
4251
4219
  }
4252
4220
  function Ti(n, t, e, s) {
4253
4221
  const r = typeof e == "number" ? e : 0;
4254
- if (n == null)
4255
- return null;
4222
+ if (n == null) return null;
4256
4223
  let i, o;
4257
4224
  return t && typeof t.transformPosition == "function" ? [i, o] = [n.index, n.index + n.length].map((a) => (
4258
4225
  // @ts-expect-error -- TODO: add a better type guard around `index`
@@ -4262,7 +4229,7 @@ function Ti(n, t, e, s) {
4262
4229
  class re extends Js {
4263
4230
  }
4264
4231
  function Li(n) {
4265
- return n instanceof G || n instanceof at;
4232
+ return n instanceof G || n instanceof ct;
4266
4233
  }
4267
4234
  function qi(n) {
4268
4235
  return typeof n.updateContent == "function";
@@ -4278,8 +4245,7 @@ class we extends Ur {
4278
4245
  Array.isArray(this.batch) || (this.batch = []);
4279
4246
  }
4280
4247
  batchEnd() {
4281
- if (!this.batch)
4282
- return;
4248
+ if (!this.batch) return;
4283
4249
  const t = this.batch;
4284
4250
  this.batch = !1, this.update(t);
4285
4251
  }
@@ -4295,7 +4261,7 @@ class we extends Ur {
4295
4261
  deleteAt(t, e) {
4296
4262
  const [s, r] = this.line(t), [i] = this.line(t + e);
4297
4263
  if (super.deleteAt(t, e), i != null && s !== i && r > 0) {
4298
- if (s instanceof at || i instanceof at) {
4264
+ if (s instanceof ct || i instanceof ct) {
4299
4265
  this.optimize();
4300
4266
  return;
4301
4267
  }
@@ -4335,19 +4301,18 @@ class we extends Ur {
4335
4301
  insertContents(t, e) {
4336
4302
  const s = this.deltaToRenderBlocks(e.concat(new O().insert(`
4337
4303
  `))), r = s.pop();
4338
- if (r == null)
4339
- return;
4304
+ if (r == null) return;
4340
4305
  this.batchStart();
4341
4306
  const i = s.shift();
4342
4307
  if (i) {
4343
- const c = i.type === "block" && (i.delta.length() === 0 || !this.descendant(at, t)[0] && t < this.length()), h = i.type === "block" ? i.delta : new O().insert({
4308
+ const c = i.type === "block" && (i.delta.length() === 0 || !this.descendant(ct, t)[0] && t < this.length()), h = i.type === "block" ? i.delta : new O().insert({
4344
4309
  [i.key]: i.value
4345
4310
  });
4346
4311
  cr(this, t, h);
4347
4312
  const d = i.type === "block" ? 1 : 0, b = t + h.length() + d;
4348
4313
  c && this.insertAt(b - 1, `
4349
4314
  `);
4350
- const g = lt(this.line(t)[0]), p = ct.AttributeMap.diff(g, i.attributes) || {};
4315
+ const g = ot(this.line(t)[0]), p = tt.AttributeMap.diff(g, i.attributes) || {};
4351
4316
  Object.keys(p).forEach((m) => {
4352
4317
  this.formatAt(b - 1, 1, m, p[m]);
4353
4318
  }), t = b;
@@ -4416,7 +4381,7 @@ class we extends Ur {
4416
4381
  }), t.length > 0 && this.emitter.emit(q.events.SCROLL_BEFORE_UPDATE, e, t), super.update(t.concat([])), t.length > 0 && this.emitter.emit(q.events.SCROLL_UPDATE, e, t);
4417
4382
  }
4418
4383
  updateEmbedAt(t, e, s) {
4419
- const [r] = this.descendant((i) => i instanceof at, t);
4384
+ const [r] = this.descendant((i) => i instanceof ct, t);
4420
4385
  r && r.statics.blotName === e && qi(r) && r.updateContent(s);
4421
4386
  }
4422
4387
  handleDragStart(t) {
@@ -4442,8 +4407,7 @@ class we extends Ur {
4442
4407
  a && s.insert(a, r.attributes);
4443
4408
  } else {
4444
4409
  const o = Object.keys(i)[0];
4445
- if (!o)
4446
- return;
4410
+ if (!o) return;
4447
4411
  this.query(o, C.INLINE) ? s.push(r) : (s.length() && e.push({
4448
4412
  type: "block",
4449
4413
  delta: s,
@@ -4477,24 +4441,23 @@ class we extends Ur {
4477
4441
  }), i;
4478
4442
  }
4479
4443
  }
4480
- T(we, "blotName", "scroll"), T(we, "className", "ql-editor"), T(we, "tagName", "DIV"), T(we, "defaultChild", G), T(we, "allowedChildren", [G, at, re]);
4444
+ T(we, "blotName", "scroll"), T(we, "className", "ql-editor"), T(we, "tagName", "DIV"), T(we, "defaultChild", G), T(we, "allowedChildren", [G, ct, re]);
4481
4445
  function cr(n, t, e) {
4482
4446
  e.reduce((s, r) => {
4483
- const i = ct.Op.length(r);
4447
+ const i = tt.Op.length(r);
4484
4448
  let o = r.attributes || {};
4485
4449
  if (r.insert != null) {
4486
4450
  if (typeof r.insert == "string") {
4487
4451
  const a = r.insert;
4488
4452
  n.insertAt(s, a);
4489
- const [c] = n.descendant(X, s), h = lt(c);
4490
- o = ct.AttributeMap.diff(h, o) || {};
4453
+ const [c] = n.descendant(X, s), h = ot(c);
4454
+ o = tt.AttributeMap.diff(h, o) || {};
4491
4455
  } else if (typeof r.insert == "object") {
4492
4456
  const a = Object.keys(r.insert)[0];
4493
- if (a == null)
4494
- return s;
4457
+ if (a == null) return s;
4495
4458
  if (n.insertAt(s, a, r.insert[a]), n.scroll.query(a, C.INLINE) != null) {
4496
- const [h] = n.descendant(X, s), d = lt(h);
4497
- o = ct.AttributeMap.diff(d, o) || {};
4459
+ const [h] = n.descendant(X, s), d = ot(h);
4460
+ o = tt.AttributeMap.diff(d, o) || {};
4498
4461
  }
4499
4462
  }
4500
4463
  }
@@ -4506,20 +4469,20 @@ function cr(n, t, e) {
4506
4469
  const zr = {
4507
4470
  scope: C.BLOCK,
4508
4471
  whitelist: ["right", "center", "justify"]
4509
- }, Ra = new qt("align", "align", zr), hl = new vt("align", "ql-align", zr), fl = new Vt("align", "text-align", zr);
4510
- class dl extends Vt {
4472
+ }, Ia = new St("align", "align", zr), ul = new vt("align", "ql-align", zr), hl = new Vt("align", "text-align", zr);
4473
+ class fl extends Vt {
4511
4474
  value(t) {
4512
4475
  let e = super.value(t);
4513
4476
  return e.startsWith("rgb(") ? (e = e.replace(/^[^\d]+/, "").replace(/[^\d]+$/, ""), `#${e.split(",").map((r) => `00${parseInt(r, 10).toString(16)}`.slice(-2)).join("")}`) : e;
4514
4477
  }
4515
4478
  }
4516
- const Ba = new vt("color", "ql-color", {
4479
+ const Ra = new vt("color", "ql-color", {
4517
4480
  scope: C.INLINE
4518
- }), Kr = new dl("color", "color", {
4481
+ }), Kr = new fl("color", "color", {
4519
4482
  scope: C.INLINE
4520
- }), Ma = new vt("background", "ql-bg", {
4483
+ }), Ba = new vt("background", "ql-bg", {
4521
4484
  scope: C.INLINE
4522
- }), Gr = new dl("background", "background-color", {
4485
+ }), Gr = new fl("background", "background-color", {
4523
4486
  scope: C.INLINE
4524
4487
  });
4525
4488
  class ie extends re {
@@ -4543,7 +4506,7 @@ class Y extends G {
4543
4506
  }
4544
4507
  }
4545
4508
  T(Y, "TAB", " ");
4546
- class Vr extends St {
4509
+ class Vr extends Ot {
4547
4510
  }
4548
4511
  Vr.blotName = "code";
4549
4512
  Vr.tagName = "CODE";
@@ -4559,23 +4522,23 @@ Y.requiredContainer = ie;
4559
4522
  const Zr = {
4560
4523
  scope: C.BLOCK,
4561
4524
  whitelist: ["rtl"]
4562
- }, gl = new qt("direction", "dir", Zr), pl = new vt("direction", "ql-direction", Zr), ml = new Vt("direction", "direction", Zr), bl = {
4525
+ }, dl = new St("direction", "dir", Zr), gl = new vt("direction", "ql-direction", Zr), pl = new Vt("direction", "direction", Zr), ml = {
4563
4526
  scope: C.INLINE,
4564
4527
  whitelist: ["serif", "monospace"]
4565
- }, yl = new vt("font", "ql-font", bl);
4566
- class Da extends Vt {
4528
+ }, bl = new vt("font", "ql-font", ml);
4529
+ class Ma extends Vt {
4567
4530
  value(t) {
4568
4531
  return super.value(t).replace(/["']/g, "");
4569
4532
  }
4570
4533
  }
4571
- const vl = new Da("font", "font-family", bl), El = new vt("size", "ql-size", {
4534
+ const yl = new Ma("font", "font-family", ml), vl = new vt("size", "ql-size", {
4572
4535
  scope: C.INLINE,
4573
4536
  whitelist: ["small", "large", "huge"]
4574
- }), Nl = new Vt("size", "font-size", {
4537
+ }), El = new Vt("size", "font-size", {
4575
4538
  scope: C.INLINE,
4576
4539
  whitelist: ["10px", "18px", "32px"]
4577
- }), Ua = Ut("quill:keyboard"), Pa = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
4578
- class rn extends Ot {
4540
+ }), Da = Ut("quill:keyboard"), Ua = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
4541
+ class rn extends Nt {
4579
4542
  static match(t, e) {
4580
4543
  return ["altKey", "ctrlKey", "metaKey", "shiftKey"].some((s) => !!e[s] !== t[s] && e[s] !== null) ? !1 : e.key === t.key || e.key === t.which;
4581
4544
  }
@@ -4630,9 +4593,9 @@ class rn extends Ot {
4630
4593
  }
4631
4594
  addBinding(t) {
4632
4595
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
4633
- const r = Ha(t);
4596
+ const r = ja(t);
4634
4597
  if (r == null) {
4635
- Ua.warn("Attempted to add invalid keyboard binding", r);
4598
+ Da.warn("Attempted to add invalid keyboard binding", r);
4636
4599
  return;
4637
4600
  }
4638
4601
  typeof e == "function" && (e = {
@@ -4651,17 +4614,13 @@ class rn extends Ot {
4651
4614
  }
4652
4615
  listen() {
4653
4616
  this.quill.root.addEventListener("keydown", (t) => {
4654
- if (t.defaultPrevented || t.isComposing || t.keyCode === 229 && (t.key === "Enter" || t.key === "Backspace"))
4655
- return;
4617
+ if (t.defaultPrevented || t.isComposing || t.keyCode === 229 && (t.key === "Enter" || t.key === "Backspace")) return;
4656
4618
  const r = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((N) => rn.match(t, N));
4657
- if (r.length === 0)
4658
- return;
4619
+ if (r.length === 0) return;
4659
4620
  const i = A.find(t.target, !0);
4660
- if (i && i.scroll !== this.quill.scroll)
4661
- return;
4621
+ if (i && i.scroll !== this.quill.scroll) return;
4662
4622
  const o = this.quill.getSelection();
4663
- if (o == null || !this.quill.hasFocus())
4664
- return;
4623
+ if (o == null || !this.quill.hasFocus()) return;
4665
4624
  const [a, c] = this.quill.getLine(o.index), [h, d] = this.quill.getLeaf(o.index), [b, g] = o.length === 0 ? [h, d] : this.quill.getLeaf(o.index + o.length), p = h instanceof Ws ? h.value().slice(0, d) : "", m = b instanceof Ws ? b.value().slice(g) : "", y = {
4666
4625
  collapsed: o.length === 0,
4667
4626
  // @ts-expect-error Fix me later
@@ -4687,8 +4646,7 @@ class rn extends Ot {
4687
4646
  }
4688
4647
  handleBackspace(t, e) {
4689
4648
  const s = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix) ? 2 : 1;
4690
- if (t.index === 0 || this.quill.getLength() <= 1)
4691
- return;
4649
+ if (t.index === 0 || this.quill.getLength() <= 1) return;
4692
4650
  let r = {};
4693
4651
  const [i] = this.quill.getLine(t.index);
4694
4652
  let o = new O().retain(t.index - s).delete(s);
@@ -4696,7 +4654,7 @@ class rn extends Ot {
4696
4654
  const [a] = this.quill.getLine(t.index - 1);
4697
4655
  if (a && !(a.statics.blotName === "block" && a.length() <= 1)) {
4698
4656
  const h = i.formats(), d = this.quill.getFormat(t.index - 1, 1);
4699
- if (r = ct.AttributeMap.diff(h, d) || {}, Object.keys(r).length > 0) {
4657
+ if (r = tt.AttributeMap.diff(h, d) || {}, Object.keys(r).length > 0) {
4700
4658
  const b = new O().retain(t.index + i.length() - 2).retain(1, r);
4701
4659
  o = o.compose(b);
4702
4660
  }
@@ -4706,8 +4664,7 @@ class rn extends Ot {
4706
4664
  }
4707
4665
  handleDelete(t, e) {
4708
4666
  const s = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix) ? 2 : 1;
4709
- if (t.index >= this.quill.getLength() - s)
4710
- return;
4667
+ if (t.index >= this.quill.getLength() - s) return;
4711
4668
  let r = {};
4712
4669
  const [i] = this.quill.getLine(t.index);
4713
4670
  let o = new O().retain(t.index).delete(s);
@@ -4715,7 +4672,7 @@ class rn extends Ot {
4715
4672
  const [a] = this.quill.getLine(t.index + 1);
4716
4673
  if (a) {
4717
4674
  const c = i.formats(), h = this.quill.getFormat(t.index, 1);
4718
- r = ct.AttributeMap.diff(c, h) || {}, Object.keys(r).length > 0 && (o = o.retain(a.length() - 1).retain(1, r));
4675
+ r = tt.AttributeMap.diff(c, h) || {}, Object.keys(r).length > 0 && (o = o.retain(a.length() - 1).retain(1, r));
4719
4676
  }
4720
4677
  }
4721
4678
  this.quill.updateContents(o, A.sources.USER), this.quill.focus();
@@ -4732,7 +4689,7 @@ class rn extends Ot {
4732
4689
  this.quill.updateContents(r, A.sources.USER), this.quill.setSelection(t.index + 1, A.sources.SILENT), this.quill.focus();
4733
4690
  }
4734
4691
  }
4735
- const ja = {
4692
+ const Pa = {
4736
4693
  bindings: {
4737
4694
  bold: ur("bold"),
4738
4695
  italic: ur("italic"),
@@ -4781,8 +4738,7 @@ const ja = {
4781
4738
  tab: {
4782
4739
  key: "Tab",
4783
4740
  handler(n, t) {
4784
- if (t.format.table)
4785
- return !0;
4741
+ if (t.format.table) return !0;
4786
4742
  this.quill.history.cutoff();
4787
4743
  const e = new O().retain(n.index).delete(n.length).insert(" ");
4788
4744
  return this.quill.updateContents(e, A.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(n.index + 1, A.sources.SILENT), !1;
@@ -4863,9 +4819,8 @@ const ja = {
4863
4819
  handler(n) {
4864
4820
  const t = this.quill.getModule("table");
4865
4821
  if (t) {
4866
- const [e, s, r, i] = t.getTable(n), o = $a(e, s, r, i);
4867
- if (o == null)
4868
- return;
4822
+ const [e, s, r, i] = t.getTable(n), o = Ha(e, s, r, i);
4823
+ if (o == null) return;
4869
4824
  let a = e.offset();
4870
4825
  if (o < 0) {
4871
4826
  const c = new O().retain(a).insert(`
@@ -4903,13 +4858,11 @@ const ja = {
4903
4858
  },
4904
4859
  prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
4905
4860
  handler(n, t) {
4906
- if (this.quill.scroll.query("list") == null)
4907
- return !0;
4861
+ if (this.quill.scroll.query("list") == null) return !0;
4908
4862
  const {
4909
4863
  length: e
4910
4864
  } = t.prefix, [s, r] = this.quill.getLine(n.index);
4911
- if (r > e)
4912
- return !0;
4865
+ if (r > e) return !0;
4913
4866
  let i;
4914
4867
  switch (t.prefix.trim()) {
4915
4868
  case "[]":
@@ -4960,7 +4913,7 @@ const ja = {
4960
4913
  "table up": Oi(!0)
4961
4914
  }
4962
4915
  };
4963
- rn.DEFAULTS = ja;
4916
+ rn.DEFAULTS = Pa;
4964
4917
  function Si(n) {
4965
4918
  return {
4966
4919
  key: "Tab",
@@ -5002,7 +4955,7 @@ function $s(n, t) {
5002
4955
  } = s;
5003
4956
  n === "ArrowRight" && (r += s.length + 1);
5004
4957
  const [i] = this.quill.getLeaf(r);
5005
- return i instanceof nt ? (n === "ArrowLeft" ? t ? this.quill.setSelection(s.index - 1, s.length + 1, A.sources.USER) : this.quill.setSelection(s.index - 1, A.sources.USER) : t ? this.quill.setSelection(s.index, s.length + 1, A.sources.USER) : this.quill.setSelection(s.index + s.length + 1, A.sources.USER), !1) : !0;
4958
+ return i instanceof rt ? (n === "ArrowLeft" ? t ? this.quill.setSelection(s.index - 1, s.length + 1, A.sources.USER) : this.quill.setSelection(s.index - 1, A.sources.USER) : t ? this.quill.setSelection(s.index, s.length + 1, A.sources.USER) : this.quill.setSelection(s.index + s.length + 1, A.sources.USER), !1) : !0;
5006
4959
  }
5007
4960
  };
5008
4961
  }
@@ -5038,7 +4991,7 @@ function Oi(n) {
5038
4991
  }
5039
4992
  };
5040
4993
  }
5041
- function Ha(n) {
4994
+ function ja(n) {
5042
4995
  if (typeof n == "string" || typeof n == "number")
5043
4996
  n = {
5044
4997
  key: n
@@ -5047,7 +5000,7 @@ function Ha(n) {
5047
5000
  n = xe(n);
5048
5001
  else
5049
5002
  return null;
5050
- return n.shortKey && (n[Pa] = n.shortKey, delete n.shortKey), n;
5003
+ return n.shortKey && (n[Ua] = n.shortKey, delete n.shortKey), n;
5051
5004
  }
5052
5005
  function Wr(n) {
5053
5006
  let {
@@ -5058,52 +5011,52 @@ function Wr(n) {
5058
5011
  let r = {};
5059
5012
  if (s.length > 1) {
5060
5013
  const i = s[0].formats(), o = s[s.length - 1].formats();
5061
- r = ct.AttributeMap.diff(o, i) || {};
5014
+ r = tt.AttributeMap.diff(o, i) || {};
5062
5015
  }
5063
5016
  t.deleteText(e, A.sources.USER), Object.keys(r).length > 0 && t.formatLine(e.index, 1, r, A.sources.USER), t.setSelection(e.index, A.sources.SILENT);
5064
5017
  }
5065
- function $a(n, t, e, s) {
5018
+ function Ha(n, t, e, s) {
5066
5019
  return t.prev == null && t.next == null ? e.prev == null && e.next == null ? s === 0 ? -1 : 1 : e.prev == null ? -1 : 1 : t.prev == null ? -1 : t.next == null ? 1 : null;
5067
5020
  }
5068
- const Fa = /font-weight:\s*normal/, za = ["P", "OL", "UL"], Ci = (n) => n && za.includes(n.tagName), Ka = (n) => {
5021
+ const $a = /font-weight:\s*normal/, Fa = ["P", "OL", "UL"], Ci = (n) => n && Fa.includes(n.tagName), za = (n) => {
5069
5022
  Array.from(n.querySelectorAll("br")).filter((t) => Ci(t.previousElementSibling) && Ci(t.nextElementSibling)).forEach((t) => {
5070
5023
  var e;
5071
5024
  (e = t.parentNode) == null || e.removeChild(t);
5072
5025
  });
5073
- }, Ga = (n) => {
5026
+ }, Ka = (n) => {
5074
5027
  Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter((t) => {
5075
5028
  var e;
5076
- return (e = t.getAttribute("style")) == null ? void 0 : e.match(Fa);
5029
+ return (e = t.getAttribute("style")) == null ? void 0 : e.match($a);
5077
5030
  }).forEach((t) => {
5078
5031
  var s;
5079
5032
  const e = n.createDocumentFragment();
5080
5033
  e.append(...t.childNodes), (s = t.parentNode) == null || s.replaceChild(e, t);
5081
5034
  });
5082
5035
  };
5083
- function Va(n) {
5084
- n.querySelector('[id^="docs-internal-guid-"]') && (Ga(n), Ka(n));
5036
+ function Ga(n) {
5037
+ n.querySelector('[id^="docs-internal-guid-"]') && (Ka(n), za(n));
5085
5038
  }
5086
- const Za = /\bmso-list:[^;]*ignore/i, Wa = /\bmso-list:[^;]*\bl(\d+)/i, Xa = /\bmso-list:[^;]*\blevel(\d+)/i, Ya = (n, t) => {
5087
- const e = n.getAttribute("style"), s = e == null ? void 0 : e.match(Wa);
5039
+ const Va = /\bmso-list:[^;]*ignore/i, Za = /\bmso-list:[^;]*\bl(\d+)/i, Wa = /\bmso-list:[^;]*\blevel(\d+)/i, Xa = (n, t) => {
5040
+ const e = n.getAttribute("style"), s = e == null ? void 0 : e.match(Za);
5088
5041
  if (!s)
5089
5042
  return null;
5090
- const r = Number(s[1]), i = e == null ? void 0 : e.match(Xa), o = i ? Number(i[1]) : 1, a = new RegExp(`@list l${r}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`, "i"), c = t.match(a), h = c && c[1] === "bullet" ? "bullet" : "ordered";
5043
+ const r = Number(s[1]), i = e == null ? void 0 : e.match(Wa), o = i ? Number(i[1]) : 1, a = new RegExp(`@list l${r}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`, "i"), c = t.match(a), h = c && c[1] === "bullet" ? "bullet" : "ordered";
5091
5044
  return {
5092
5045
  id: r,
5093
5046
  indent: o,
5094
5047
  type: h,
5095
5048
  element: n
5096
5049
  };
5097
- }, Qa = (n) => {
5050
+ }, Ya = (n) => {
5098
5051
  var o, a;
5099
5052
  const t = Array.from(n.querySelectorAll("[style*=mso-list]")), e = [], s = [];
5100
5053
  t.forEach((c) => {
5101
- (c.getAttribute("style") || "").match(Za) ? e.push(c) : s.push(c);
5054
+ (c.getAttribute("style") || "").match(Va) ? e.push(c) : s.push(c);
5102
5055
  }), e.forEach((c) => {
5103
5056
  var h;
5104
5057
  return (h = c.parentNode) == null ? void 0 : h.removeChild(c);
5105
5058
  });
5106
- const r = n.documentElement.innerHTML, i = s.map((c) => Ya(c, r)).filter((c) => c);
5059
+ const r = n.documentElement.innerHTML, i = s.map((c) => Xa(c, r)).filter((c) => c);
5107
5060
  for (; i.length; ) {
5108
5061
  const c = [];
5109
5062
  let h = i.shift();
@@ -5126,17 +5079,17 @@ const Za = /\bmso-list:[^;]*ignore/i, Wa = /\bmso-list:[^;]*\bl(\d+)/i, Xa = /\b
5126
5079
  });
5127
5080
  }
5128
5081
  };
5129
- function Ja(n) {
5130
- n.documentElement.getAttribute("xmlns:w") === "urn:schemas-microsoft-com:office:word" && Qa(n);
5082
+ function Qa(n) {
5083
+ n.documentElement.getAttribute("xmlns:w") === "urn:schemas-microsoft-com:office:word" && Ya(n);
5131
5084
  }
5132
- const tc = [Ja, Va], ec = (n) => {
5133
- n.documentElement && tc.forEach((t) => {
5085
+ const Ja = [Qa, Ga], tc = (n) => {
5086
+ n.documentElement && Ja.forEach((t) => {
5134
5087
  t(n);
5135
5088
  });
5136
- }, sc = Ut("quill:clipboard"), nc = [[Node.TEXT_NODE, pc], [Node.TEXT_NODE, ki], ["br", ac], [Node.ELEMENT_NODE, ki], [Node.ELEMENT_NODE, oc], [Node.ELEMENT_NODE, lc], [Node.ELEMENT_NODE, dc], ["li", hc], ["ol, ul", fc], ["pre", cc], ["tr", gc], ["b", hr("bold")], ["i", hr("italic")], ["strike", hr("strike")], ["style", uc]], rc = [Ra, gl].reduce((n, t) => (n[t.keyName] = t, n), {}), _i = [fl, Gr, Kr, ml, vl, Nl].reduce((n, t) => (n[t.keyName] = t, n), {});
5137
- class Al extends Ot {
5089
+ }, ec = Ut("quill:clipboard"), sc = [[Node.TEXT_NODE, gc], [Node.TEXT_NODE, ki], ["br", oc], [Node.ELEMENT_NODE, ki], [Node.ELEMENT_NODE, lc], [Node.ELEMENT_NODE, ic], [Node.ELEMENT_NODE, fc], ["li", uc], ["ol, ul", hc], ["pre", ac], ["tr", dc], ["b", hr("bold")], ["i", hr("italic")], ["strike", hr("strike")], ["style", cc]], nc = [Ia, dl].reduce((n, t) => (n[t.keyName] = t, n), {}), _i = [hl, Gr, Kr, pl, yl, El].reduce((n, t) => (n[t.keyName] = t, n), {});
5090
+ class Nl extends Nt {
5138
5091
  constructor(t, e) {
5139
- super(t, e), this.quill.root.addEventListener("copy", (s) => this.onCaptureCopy(s, !1)), this.quill.root.addEventListener("cut", (s) => this.onCaptureCopy(s, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [], nc.concat(this.options.matchers ?? []).forEach((s) => {
5092
+ super(t, e), this.quill.root.addEventListener("copy", (s) => this.onCaptureCopy(s, !1)), this.quill.root.addEventListener("cut", (s) => this.onCaptureCopy(s, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [], sc.concat(this.options.matchers ?? []).forEach((s) => {
5140
5093
  let [r, i] = s;
5141
5094
  this.addMatcher(r, i);
5142
5095
  });
@@ -5160,7 +5113,7 @@ class Al extends Ot {
5160
5113
  `) && (i.ops[i.ops.length - 1].attributes == null || r.table) ? i.compose(new O().retain(i.length() - 1).delete(1)) : i;
5161
5114
  }
5162
5115
  normalizeHTML(t) {
5163
- ec(t);
5116
+ tc(t);
5164
5117
  }
5165
5118
  convertHTML(t) {
5166
5119
  const e = new DOMParser().parseFromString(t, "text/html");
@@ -5187,12 +5140,10 @@ class Al extends Ot {
5187
5140
  onCaptureCopy(t) {
5188
5141
  var o, a;
5189
5142
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
5190
- if (t.defaultPrevented)
5191
- return;
5143
+ if (t.defaultPrevented) return;
5192
5144
  t.preventDefault();
5193
5145
  const [s] = this.quill.selection.getRange();
5194
- if (s == null)
5195
- return;
5146
+ if (s == null) return;
5196
5147
  const {
5197
5148
  html: r,
5198
5149
  text: i
@@ -5211,12 +5162,10 @@ class Al extends Ot {
5211
5162
  }
5212
5163
  onCapturePaste(t) {
5213
5164
  var o, a, c, h, d;
5214
- if (t.defaultPrevented || !this.quill.isEnabled())
5215
- return;
5165
+ if (t.defaultPrevented || !this.quill.isEnabled()) return;
5216
5166
  t.preventDefault();
5217
5167
  const e = this.quill.getSelection(!0);
5218
- if (e == null)
5219
- return;
5168
+ if (e == null) return;
5220
5169
  const s = (o = t.clipboardData) == null ? void 0 : o.getData("text/html");
5221
5170
  let r = (a = t.clipboardData) == null ? void 0 : a.getData("text/plain");
5222
5171
  if (!s && !r) {
@@ -5256,7 +5205,7 @@ class Al extends Ot {
5256
5205
  text: s,
5257
5206
  html: r
5258
5207
  }, i);
5259
- sc.log("onPaste", o, {
5208
+ ec.log("onPaste", o, {
5260
5209
  text: s,
5261
5210
  html: r
5262
5211
  });
@@ -5287,13 +5236,12 @@ class Al extends Ot {
5287
5236
  }), [s, r];
5288
5237
  }
5289
5238
  }
5290
- T(Al, "DEFAULTS", {
5239
+ T(Nl, "DEFAULTS", {
5291
5240
  matchers: []
5292
5241
  });
5293
5242
  function le(n, t, e, s) {
5294
5243
  return s.query(t) ? n.reduce((r, i) => {
5295
- if (!i.insert)
5296
- return r;
5244
+ if (!i.insert) return r;
5297
5245
  if (i.attributes && i.attributes[t])
5298
5246
  return r.push(i);
5299
5247
  const o = e ? {
@@ -5309,24 +5257,22 @@ function ls(n, t) {
5309
5257
  let e = "";
5310
5258
  for (let s = n.ops.length - 1; s >= 0 && e.length < t.length; --s) {
5311
5259
  const r = n.ops[s];
5312
- if (typeof r.insert != "string")
5313
- break;
5260
+ if (typeof r.insert != "string") break;
5314
5261
  e = r.insert + e;
5315
5262
  }
5316
5263
  return e.slice(-1 * t.length) === t;
5317
5264
  }
5318
5265
  function zt(n, t) {
5319
- if (!(n instanceof Element))
5320
- return !1;
5266
+ if (!(n instanceof Element)) return !1;
5321
5267
  const e = t.query(n);
5322
- return e && e.prototype instanceof nt ? !1 : ["address", "article", "blockquote", "canvas", "dd", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "iframe", "li", "main", "nav", "ol", "output", "p", "pre", "section", "table", "td", "tr", "ul", "video"].includes(n.tagName.toLowerCase());
5268
+ return e && e.prototype instanceof rt ? !1 : ["address", "article", "blockquote", "canvas", "dd", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "iframe", "li", "main", "nav", "ol", "output", "p", "pre", "section", "table", "td", "tr", "ul", "video"].includes(n.tagName.toLowerCase());
5323
5269
  }
5324
- function ic(n, t) {
5270
+ function rc(n, t) {
5325
5271
  return n.previousElementSibling && n.nextElementSibling && !zt(n.previousElementSibling, t) && !zt(n.nextElementSibling, t);
5326
5272
  }
5327
5273
  const Fs = /* @__PURE__ */ new WeakMap();
5328
- function wl(n) {
5329
- return n == null ? !1 : (Fs.has(n) || (n.tagName === "PRE" ? Fs.set(n, !0) : Fs.set(n, wl(n.parentNode))), Fs.get(n));
5274
+ function Al(n) {
5275
+ return n == null ? !1 : (Fs.has(n) || (n.tagName === "PRE" ? Fs.set(n, !0) : Fs.set(n, Al(n.parentNode))), Fs.get(n));
5330
5276
  }
5331
5277
  function Xr(n, t, e, s, r) {
5332
5278
  return t.nodeType === t.TEXT_NODE ? s.reduce((i, o) => o(t, i, n), new O()) : t.nodeType === t.ELEMENT_NODE ? Array.from(t.childNodes || []).reduce((i, o) => {
@@ -5337,21 +5283,20 @@ function Xr(n, t, e, s, r) {
5337
5283
  function hr(n) {
5338
5284
  return (t, e, s) => le(e, n, !0, s);
5339
5285
  }
5340
- function lc(n, t, e) {
5341
- const s = qt.keys(n), r = vt.keys(n), i = Vt.keys(n), o = {};
5286
+ function ic(n, t, e) {
5287
+ const s = St.keys(n), r = vt.keys(n), i = Vt.keys(n), o = {};
5342
5288
  return s.concat(r).concat(i).forEach((a) => {
5343
5289
  let c = e.query(a, C.ATTRIBUTE);
5344
- c != null && (o[c.attrName] = c.value(n), o[c.attrName]) || (c = rc[a], c != null && (c.attrName === a || c.keyName === a) && (o[c.attrName] = c.value(n) || void 0), c = _i[a], c != null && (c.attrName === a || c.keyName === a) && (c = _i[a], o[c.attrName] = c.value(n) || void 0));
5290
+ c != null && (o[c.attrName] = c.value(n), o[c.attrName]) || (c = nc[a], c != null && (c.attrName === a || c.keyName === a) && (o[c.attrName] = c.value(n) || void 0), c = _i[a], c != null && (c.attrName === a || c.keyName === a) && (c = _i[a], o[c.attrName] = c.value(n) || void 0));
5345
5291
  }), Object.entries(o).reduce((a, c) => {
5346
5292
  let [h, d] = c;
5347
5293
  return le(a, h, d, e);
5348
5294
  }, t);
5349
5295
  }
5350
- function oc(n, t, e) {
5296
+ function lc(n, t, e) {
5351
5297
  const s = e.query(n);
5352
- if (s == null)
5353
- return t;
5354
- if (s.prototype instanceof nt) {
5298
+ if (s == null) return t;
5299
+ if (s.prototype instanceof rt) {
5355
5300
  const r = {}, i = s.value(n);
5356
5301
  if (i != null)
5357
5302
  return r[s.blotName] = i, new O().insert(r, s.formats(n, e));
@@ -5361,19 +5306,19 @@ function oc(n, t, e) {
5361
5306
  return le(t, s.blotName, s.formats(n, e), e);
5362
5307
  return t;
5363
5308
  }
5364
- function ac(n, t) {
5309
+ function oc(n, t) {
5365
5310
  return ls(t, `
5366
5311
  `) || t.insert(`
5367
5312
  `), t;
5368
5313
  }
5369
- function cc(n, t, e) {
5314
+ function ac(n, t, e) {
5370
5315
  const s = e.query("code-block"), r = s && "formats" in s && typeof s.formats == "function" ? s.formats(n, e) : !0;
5371
5316
  return le(t, "code-block", r, e);
5372
5317
  }
5373
- function uc() {
5318
+ function cc() {
5374
5319
  return new O();
5375
5320
  }
5376
- function hc(n, t, e) {
5321
+ function uc(n, t, e) {
5377
5322
  const s = e.query(n);
5378
5323
  if (s == null || // @ts-expect-error
5379
5324
  s.blotName !== "list" || !ls(t, `
@@ -5387,7 +5332,7 @@ function hc(n, t, e) {
5387
5332
  ...a.attributes || {}
5388
5333
  }) : o, new O());
5389
5334
  }
5390
- function fc(n, t, e) {
5335
+ function hc(n, t, e) {
5391
5336
  const s = n;
5392
5337
  let r = s.tagName === "OL" ? "ordered" : "bullet";
5393
5338
  const i = s.getAttribute("data-checked");
@@ -5406,7 +5351,7 @@ function ki(n, t, e) {
5406
5351
  return t.insert(`
5407
5352
  `);
5408
5353
  const r = e.query(s);
5409
- if (r && r.prototype instanceof at)
5354
+ if (r && r.prototype instanceof ct)
5410
5355
  return t.insert(`
5411
5356
  `);
5412
5357
  s = s.firstChild;
@@ -5415,7 +5360,7 @@ function ki(n, t, e) {
5415
5360
  }
5416
5361
  return t;
5417
5362
  }
5418
- function dc(n, t, e) {
5363
+ function fc(n, t, e) {
5419
5364
  var i;
5420
5365
  const s = {}, r = n.style || {};
5421
5366
  return r.fontStyle === "italic" && (s.italic = !0), r.textDecoration === "underline" && (s.underline = !0), r.textDecoration === "line-through" && (s.strike = !0), ((i = r.fontWeight) != null && i.startsWith("bold") || // @ts-expect-error Fix me later
@@ -5424,7 +5369,7 @@ function dc(n, t, e) {
5424
5369
  return le(o, c, h, e);
5425
5370
  }, t), parseFloat(r.textIndent || 0) > 0 ? new O().insert(" ").concat(t) : t;
5426
5371
  }
5427
- function gc(n, t, e) {
5372
+ function dc(n, t, e) {
5428
5373
  var r, i;
5429
5374
  const s = ((r = n.parentElement) == null ? void 0 : r.tagName) === "TABLE" ? n.parentElement : (i = n.parentElement) == null ? void 0 : i.parentElement;
5430
5375
  if (s != null) {
@@ -5433,24 +5378,20 @@ function gc(n, t, e) {
5433
5378
  }
5434
5379
  return t;
5435
5380
  }
5436
- function pc(n, t, e) {
5381
+ function gc(n, t, e) {
5437
5382
  var r;
5438
5383
  let s = n.data;
5439
5384
  if (((r = n.parentElement) == null ? void 0 : r.tagName) === "O:P")
5440
5385
  return t.insert(s.trim());
5441
- if (!wl(n)) {
5386
+ if (!Al(n)) {
5442
5387
  if (s.trim().length === 0 && s.includes(`
5443
- `) && !ic(n, e))
5388
+ `) && !rc(n, e))
5444
5389
  return t;
5445
- const i = (o, a) => {
5446
- const c = a.replace(/[^\u00a0]/g, "");
5447
- return c.length < 1 && o ? " " : c;
5448
- };
5449
- s = s.replace(/\r\n/g, " ").replace(/\n/g, " "), s = s.replace(/\s\s+/g, i.bind(i, !0)), (n.previousSibling == null && n.parentElement != null && zt(n.parentElement, e) || n.previousSibling instanceof Element && zt(n.previousSibling, e)) && (s = s.replace(/^\s+/, i.bind(i, !1))), (n.nextSibling == null && n.parentElement != null && zt(n.parentElement, e) || n.nextSibling instanceof Element && zt(n.nextSibling, e)) && (s = s.replace(/\s+$/, i.bind(i, !1)));
5390
+ s = s.replace(/[^\S\u00a0]/g, " "), s = s.replace(/ {2,}/g, " "), (n.previousSibling == null && n.parentElement != null && zt(n.parentElement, e) || n.previousSibling instanceof Element && zt(n.previousSibling, e)) && (s = s.replace(/^ /, "")), (n.nextSibling == null && n.parentElement != null && zt(n.parentElement, e) || n.nextSibling instanceof Element && zt(n.nextSibling, e)) && (s = s.replace(/ $/, "")), s = s.replaceAll(" ", " ");
5450
5391
  }
5451
5392
  return t.insert(s);
5452
5393
  }
5453
- class xl extends Ot {
5394
+ class wl extends Nt {
5454
5395
  constructor(e, s) {
5455
5396
  super(e, s);
5456
5397
  T(this, "lastRecorded", 0);
@@ -5477,11 +5418,9 @@ class xl extends Ot {
5477
5418
  });
5478
5419
  }
5479
5420
  change(e, s) {
5480
- if (this.stack[e].length === 0)
5481
- return;
5421
+ if (this.stack[e].length === 0) return;
5482
5422
  const r = this.stack[e].pop();
5483
- if (!r)
5484
- return;
5423
+ if (!r) return;
5485
5424
  const i = this.quill.getContents(), o = r.delta.invert(i);
5486
5425
  this.stack[s].push({
5487
5426
  delta: o,
@@ -5498,8 +5437,7 @@ class xl extends Ot {
5498
5437
  this.lastRecorded = 0;
5499
5438
  }
5500
5439
  record(e, s) {
5501
- if (e.ops.length === 0)
5502
- return;
5440
+ if (e.ops.length === 0) return;
5503
5441
  this.stack.redo = [];
5504
5442
  let r = e.invert(s), i = this.currentRange;
5505
5443
  const o = Date.now();
@@ -5529,12 +5467,12 @@ class xl extends Ot {
5529
5467
  if (e.range)
5530
5468
  this.quill.setSelection(e.range, A.sources.USER);
5531
5469
  else {
5532
- const s = bc(this.quill.scroll, e.delta);
5470
+ const s = mc(this.quill.scroll, e.delta);
5533
5471
  this.quill.setSelection(s, A.sources.USER);
5534
5472
  }
5535
5473
  }
5536
5474
  }
5537
- T(xl, "DEFAULTS", {
5475
+ T(wl, "DEFAULTS", {
5538
5476
  delay: 1e3,
5539
5477
  maxStack: 100,
5540
5478
  userOnly: !1
@@ -5549,26 +5487,25 @@ function Ii(n, t) {
5549
5487
  }, e = r.delta.transform(e), n[s].delta.length() === 0 && n.splice(s, 1);
5550
5488
  }
5551
5489
  }
5552
- function mc(n, t) {
5490
+ function pc(n, t) {
5553
5491
  const e = t.ops[t.ops.length - 1];
5554
5492
  return e == null ? !1 : e.insert != null ? typeof e.insert == "string" && e.insert.endsWith(`
5555
5493
  `) : e.attributes != null ? Object.keys(e.attributes).some((s) => n.query(s, C.BLOCK) != null) : !1;
5556
5494
  }
5557
- function bc(n, t) {
5495
+ function mc(n, t) {
5558
5496
  const e = t.reduce((r, i) => r + (i.delete || 0), 0);
5559
5497
  let s = t.length() - e;
5560
- return mc(n, t) && (s -= 1), s;
5498
+ return pc(n, t) && (s -= 1), s;
5561
5499
  }
5562
5500
  function Lr(n, t) {
5563
- if (!n)
5564
- return n;
5501
+ if (!n) return n;
5565
5502
  const e = t.transformPosition(n.index), s = t.transformPosition(n.index + n.length);
5566
5503
  return {
5567
5504
  index: e,
5568
5505
  length: s - e
5569
5506
  };
5570
5507
  }
5571
- class Tl extends Ot {
5508
+ class xl extends Nt {
5572
5509
  constructor(t, e) {
5573
5510
  super(t, e), t.root.addEventListener("drop", (s) => {
5574
5511
  var o;
@@ -5595,7 +5532,7 @@ class Tl extends Ot {
5595
5532
  }), s.length > 0 && this.options.handler.call(this, t, s);
5596
5533
  }
5597
5534
  }
5598
- Tl.DEFAULTS = {
5535
+ xl.DEFAULTS = {
5599
5536
  mimetypes: ["image/png", "image/jpeg"],
5600
5537
  handler(n, t) {
5601
5538
  if (!this.quill.scroll.query("image"))
@@ -5614,8 +5551,8 @@ Tl.DEFAULTS = {
5614
5551
  });
5615
5552
  }
5616
5553
  };
5617
- const yc = ["insertText", "insertReplacementText"];
5618
- class vc extends Ot {
5554
+ const bc = ["insertText", "insertReplacementText"];
5555
+ class yc extends Nt {
5619
5556
  constructor(t, e) {
5620
5557
  super(t, e), t.root.addEventListener("beforeinput", (s) => {
5621
5558
  this.handleBeforeInput(s);
@@ -5631,8 +5568,7 @@ class vc extends Ot {
5631
5568
  }
5632
5569
  replaceText(t) {
5633
5570
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
5634
- if (t.length === 0)
5635
- return !1;
5571
+ if (t.length === 0) return !1;
5636
5572
  if (e) {
5637
5573
  const s = this.quill.getFormat(t.index, 1);
5638
5574
  this.deleteRange(t), this.quill.updateContents(new O().retain(t.index).insert(e, s), A.sources.USER);
@@ -5641,12 +5577,12 @@ class vc extends Ot {
5641
5577
  return this.quill.setSelection(t.index + e.length, 0, A.sources.SILENT), !0;
5642
5578
  }
5643
5579
  handleBeforeInput(t) {
5644
- if (this.quill.composition.isComposing || t.defaultPrevented || !yc.includes(t.inputType))
5580
+ if (this.quill.composition.isComposing || t.defaultPrevented || !bc.includes(t.inputType))
5645
5581
  return;
5646
5582
  const e = t.getTargetRanges ? t.getTargetRanges()[0] : null;
5647
5583
  if (!e || e.collapsed === !0)
5648
5584
  return;
5649
- const s = Ec(t);
5585
+ const s = vc(t);
5650
5586
  if (s == null)
5651
5587
  return;
5652
5588
  const r = this.quill.selection.normalizeNative(e), i = r ? this.quill.selection.normalizedToRange(r) : null;
@@ -5657,13 +5593,13 @@ class vc extends Ot {
5657
5593
  t && this.replaceText(t);
5658
5594
  }
5659
5595
  }
5660
- function Ec(n) {
5596
+ function vc(n) {
5661
5597
  var t;
5662
5598
  return typeof n.data == "string" ? n.data : (t = n.dataTransfer) != null && t.types.includes("text/plain") ? n.dataTransfer.getData("text/plain") : null;
5663
5599
  }
5664
- const Nc = /Mac/i.test(navigator.platform), Ac = 100, wc = (n) => !!(n.key === "ArrowLeft" || n.key === "ArrowRight" || // RTL scripts or moving from the end of the previous line
5665
- n.key === "ArrowUp" || n.key === "ArrowDown" || n.key === "Home" || Nc && n.key === "a" && n.ctrlKey === !0);
5666
- class xc extends Ot {
5600
+ const Ec = /Mac/i.test(navigator.platform), Nc = 100, Ac = (n) => !!(n.key === "ArrowLeft" || n.key === "ArrowRight" || // RTL scripts or moving from the end of the previous line
5601
+ n.key === "ArrowUp" || n.key === "ArrowDown" || n.key === "Home" || Ec && n.key === "a" && n.ctrlKey === !0);
5602
+ class wc extends Nt {
5667
5603
  constructor(e, s) {
5668
5604
  super(e, s);
5669
5605
  T(this, "isListening", !1);
@@ -5689,7 +5625,7 @@ class xc extends Ot {
5689
5625
  }
5690
5626
  handleNavigationShortcuts() {
5691
5627
  this.quill.root.addEventListener("keydown", (e) => {
5692
- !e.defaultPrevented && wc(e) && this.ensureListeningToSelectionChange();
5628
+ !e.defaultPrevented && Ac(e) && this.ensureListeningToSelectionChange();
5693
5629
  });
5694
5630
  }
5695
5631
  /**
@@ -5699,8 +5635,7 @@ class xc extends Ot {
5699
5635
  * the selection within the handler of a `selectionchange` event.
5700
5636
  */
5701
5637
  ensureListeningToSelectionChange() {
5702
- if (this.selectionChangeDeadline = Date.now() + Ac, this.isListening)
5703
- return;
5638
+ if (this.selectionChangeDeadline = Date.now() + Nc, this.isListening) return;
5704
5639
  this.isListening = !0;
5705
5640
  const e = () => {
5706
5641
  this.isListening = !1, Date.now() <= this.selectionChangeDeadline && this.handleSelectionChange();
@@ -5711,43 +5646,39 @@ class xc extends Ot {
5711
5646
  }
5712
5647
  handleSelectionChange() {
5713
5648
  const e = document.getSelection();
5714
- if (!e)
5715
- return;
5649
+ if (!e) return;
5716
5650
  const s = e.getRangeAt(0);
5717
- if (s.collapsed !== !0 || s.startOffset !== 0)
5718
- return;
5651
+ if (s.collapsed !== !0 || s.startOffset !== 0) return;
5719
5652
  const r = this.quill.scroll.find(s.startContainer);
5720
- if (!(r instanceof bt) || !r.uiNode)
5721
- return;
5653
+ if (!(r instanceof bt) || !r.uiNode) return;
5722
5654
  const i = document.createRange();
5723
5655
  i.setStartAfter(r.uiNode), i.setEndAfter(r.uiNode), e.removeAllRanges(), e.addRange(i);
5724
5656
  }
5725
5657
  }
5726
5658
  A.register({
5727
5659
  "blots/block": G,
5728
- "blots/block/embed": at,
5660
+ "blots/block/embed": ct,
5729
5661
  "blots/break": Et,
5730
5662
  "blots/container": re,
5731
5663
  "blots/cursor": Se,
5732
5664
  "blots/embed": Fr,
5733
- "blots/inline": St,
5665
+ "blots/inline": Ot,
5734
5666
  "blots/scroll": we,
5735
5667
  "blots/text": yt,
5736
- "modules/clipboard": Al,
5737
- "modules/history": xl,
5668
+ "modules/clipboard": Nl,
5669
+ "modules/history": wl,
5738
5670
  "modules/keyboard": rn,
5739
- "modules/uploader": Tl,
5740
- "modules/input": vc,
5741
- "modules/uiNode": xc
5671
+ "modules/uploader": xl,
5672
+ "modules/input": yc,
5673
+ "modules/uiNode": wc
5742
5674
  });
5743
- class Tc extends vt {
5675
+ class xc extends vt {
5744
5676
  add(t, e) {
5745
5677
  let s = 0;
5746
5678
  if (e === "+1" || e === "-1") {
5747
5679
  const r = this.value(t) || 0;
5748
5680
  s = e === "+1" ? r + 1 : r - 1;
5749
- } else
5750
- typeof e == "number" && (s = e);
5681
+ } else typeof e == "number" && (s = e);
5751
5682
  return s === 0 ? (this.remove(t), !0) : super.add(t, s.toString());
5752
5683
  }
5753
5684
  canAdd(t, e) {
@@ -5757,7 +5688,7 @@ class Tc extends vt {
5757
5688
  return parseInt(super.value(t), 10) || void 0;
5758
5689
  }
5759
5690
  }
5760
- const Lc = new Tc("indent", "ql-indent", {
5691
+ const Tc = new xc("indent", "ql-indent", {
5761
5692
  scope: C.BLOCK,
5762
5693
  // @ts-expect-error
5763
5694
  whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
@@ -5789,8 +5720,7 @@ class as extends G {
5789
5720
  constructor(t, e) {
5790
5721
  super(t, e);
5791
5722
  const s = e.ownerDocument.createElement("span"), r = (i) => {
5792
- if (!t.isEnabled())
5793
- return;
5723
+ if (!t.isEnabled()) return;
5794
5724
  const o = this.statics.formats(e, t);
5795
5725
  o === "checked" ? (this.format("list", "unchecked"), i.preventDefault()) : o === "unchecked" && (this.format("list", "checked"), i.preventDefault());
5796
5726
  };
@@ -5804,7 +5734,7 @@ as.blotName = "list";
5804
5734
  as.tagName = "LI";
5805
5735
  os.allowedChildren = [as];
5806
5736
  as.requiredContainer = os;
5807
- class rs extends St {
5737
+ class rs extends Ot {
5808
5738
  static create() {
5809
5739
  return super.create();
5810
5740
  }
@@ -5819,7 +5749,7 @@ T(rs, "blotName", "bold"), T(rs, "tagName", ["STRONG", "B"]);
5819
5749
  class Or extends rs {
5820
5750
  }
5821
5751
  T(Or, "blotName", "italic"), T(Or, "tagName", ["EM", "I"]);
5822
- class Kt extends St {
5752
+ class Kt extends Ot {
5823
5753
  static create(t) {
5824
5754
  const e = super.create(t);
5825
5755
  return e.setAttribute("href", this.sanitize(t)), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("target", "_blank"), e;
@@ -5828,35 +5758,33 @@ class Kt extends St {
5828
5758
  return t.getAttribute("href");
5829
5759
  }
5830
5760
  static sanitize(t) {
5831
- return Ll(t, this.PROTOCOL_WHITELIST) ? t : this.SANITIZED_URL;
5761
+ return Tl(t, this.PROTOCOL_WHITELIST) ? t : this.SANITIZED_URL;
5832
5762
  }
5833
5763
  format(t, e) {
5834
5764
  t !== this.statics.blotName || !e ? super.format(t, e) : this.domNode.setAttribute("href", this.constructor.sanitize(e));
5835
5765
  }
5836
5766
  }
5837
5767
  T(Kt, "blotName", "link"), T(Kt, "tagName", "A"), T(Kt, "SANITIZED_URL", "about:blank"), T(Kt, "PROTOCOL_WHITELIST", ["http", "https", "mailto", "tel", "sms"]);
5838
- function Ll(n, t) {
5768
+ function Tl(n, t) {
5839
5769
  const e = document.createElement("a");
5840
5770
  e.href = n;
5841
5771
  const s = e.href.slice(0, e.href.indexOf(":"));
5842
5772
  return t.indexOf(s) > -1;
5843
5773
  }
5844
- class Cr extends St {
5774
+ class Cr extends Ot {
5845
5775
  static create(t) {
5846
5776
  return t === "super" ? document.createElement("sup") : t === "sub" ? document.createElement("sub") : super.create(t);
5847
5777
  }
5848
5778
  static formats(t) {
5849
- if (t.tagName === "SUB")
5850
- return "sub";
5851
- if (t.tagName === "SUP")
5852
- return "super";
5779
+ if (t.tagName === "SUB") return "sub";
5780
+ if (t.tagName === "SUP") return "super";
5853
5781
  }
5854
5782
  }
5855
5783
  T(Cr, "blotName", "script"), T(Cr, "tagName", ["SUB", "SUP"]);
5856
5784
  class _r extends rs {
5857
5785
  }
5858
5786
  T(_r, "blotName", "strike"), T(_r, "tagName", ["S", "STRIKE"]);
5859
- class kr extends St {
5787
+ class kr extends Ot {
5860
5788
  }
5861
5789
  T(kr, "blotName", "underline"), T(kr, "tagName", "U");
5862
5790
  class Ks extends Fr {
@@ -5881,7 +5809,7 @@ class Ks extends Fr {
5881
5809
  }
5882
5810
  T(Ks, "blotName", "formula"), T(Ks, "className", "ql-formula"), T(Ks, "tagName", "SPAN");
5883
5811
  const Ri = ["alt", "height", "width"];
5884
- class Ir extends nt {
5812
+ class Ir extends rt {
5885
5813
  static create(t) {
5886
5814
  const e = super.create(t);
5887
5815
  return typeof t == "string" && e.setAttribute("src", this.sanitize(t)), e;
@@ -5893,7 +5821,7 @@ class Ir extends nt {
5893
5821
  return /\.(jpe?g|gif|png)$/.test(t) || /^data:image\/.+;base64/.test(t);
5894
5822
  }
5895
5823
  static sanitize(t) {
5896
- return Ll(t, ["http", "https", "data"]) ? t : "//:0";
5824
+ return Tl(t, ["http", "https", "data"]) ? t : "//:0";
5897
5825
  }
5898
5826
  static value(t) {
5899
5827
  return t.getAttribute("src");
@@ -5904,7 +5832,7 @@ class Ir extends nt {
5904
5832
  }
5905
5833
  T(Ir, "blotName", "image"), T(Ir, "tagName", "IMG");
5906
5834
  const Bi = ["height", "width"];
5907
- class Gs extends at {
5835
+ class Gs extends ct {
5908
5836
  static create(t) {
5909
5837
  const e = super.create(t);
5910
5838
  return e.setAttribute("frameborder", "0"), e.setAttribute("allowfullscreen", "true"), e.setAttribute("src", this.sanitize(t)), e;
@@ -5932,7 +5860,7 @@ T(Gs, "blotName", "video"), T(Gs, "className", "ql-video"), T(Gs, "tagName", "IF
5932
5860
  const Ye = new vt("code-token", "hljs", {
5933
5861
  scope: C.INLINE
5934
5862
  });
5935
- class Mt extends St {
5863
+ class Mt extends Ot {
5936
5864
  static formats(t, e) {
5937
5865
  for (; t != null && t !== e.domNode; ) {
5938
5866
  if (t.classList && t.classList.contains(Y.className))
@@ -5952,7 +5880,7 @@ class Mt extends St {
5952
5880
  }
5953
5881
  Mt.blotName = "code-token";
5954
5882
  Mt.className = "ql-token";
5955
- class ot extends Y {
5883
+ class at extends Y {
5956
5884
  static create(t) {
5957
5885
  const e = super.create(t);
5958
5886
  return typeof t == "string" && e.setAttribute("data-language", t), e;
@@ -5975,20 +5903,19 @@ class Qe extends ie {
5975
5903
  super.attach(), this.forceNext = !1, this.scroll.emitMount(this);
5976
5904
  }
5977
5905
  format(t, e) {
5978
- t === ot.blotName && (this.forceNext = !0, this.children.forEach((s) => {
5906
+ t === at.blotName && (this.forceNext = !0, this.children.forEach((s) => {
5979
5907
  s.format(t, e);
5980
5908
  }));
5981
5909
  }
5982
5910
  formatAt(t, e, s, r) {
5983
- s === ot.blotName && (this.forceNext = !0), super.formatAt(t, e, s, r);
5911
+ s === at.blotName && (this.forceNext = !0), super.formatAt(t, e, s, r);
5984
5912
  }
5985
5913
  highlight(t) {
5986
5914
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
5987
- if (this.children.head == null)
5988
- return;
5915
+ if (this.children.head == null) return;
5989
5916
  const r = `${Array.from(this.domNode.childNodes).filter((o) => o !== this.uiNode).map((o) => o.textContent).join(`
5990
5917
  `)}
5991
- `, i = ot.formats(this.children.head.domNode);
5918
+ `, i = at.formats(this.children.head.domNode);
5992
5919
  if (e || this.forceNext || this.cachedText !== r) {
5993
5920
  if (r.trim().length > 0 || this.cachedText == null) {
5994
5921
  const o = this.children.reduce((c, h) => c.concat(ol(h, !1)), new O()), a = t(r, i);
@@ -5998,7 +5925,7 @@ class Qe extends ie {
5998
5925
  attributes: b
5999
5926
  } = h;
6000
5927
  return d ? (b && Object.keys(b).forEach((g) => {
6001
- [ot.blotName, Mt.blotName].includes(g) && this.formatAt(c, d, g, b[g]);
5928
+ [at.blotName, Mt.blotName].includes(g) && this.formatAt(c, d, g, b[g]);
6002
5929
  }), c + d) : c;
6003
5930
  }, 0);
6004
5931
  }
@@ -6007,21 +5934,21 @@ class Qe extends ie {
6007
5934
  }
6008
5935
  html(t, e) {
6009
5936
  const [s] = this.children.find(t);
6010
- return `<pre data-language="${s ? ot.formats(s.domNode) : "plain"}">
5937
+ return `<pre data-language="${s ? at.formats(s.domNode) : "plain"}">
6011
5938
  ${nn(this.code(t, e))}
6012
5939
  </pre>`;
6013
5940
  }
6014
5941
  optimize(t) {
6015
5942
  if (super.optimize(t), this.parent != null && this.children.head != null && this.uiNode != null) {
6016
- const e = ot.formats(this.children.head.domNode);
5943
+ const e = at.formats(this.children.head.domNode);
6017
5944
  e !== this.uiNode.value && (this.uiNode.value = e);
6018
5945
  }
6019
5946
  }
6020
5947
  }
6021
- Qe.allowedChildren = [ot];
6022
- ot.requiredContainer = Qe;
6023
- ot.allowedChildren = [Mt, Se, yt, Et];
6024
- const qc = (n, t, e) => {
5948
+ Qe.allowedChildren = [at];
5949
+ at.requiredContainer = Qe;
5950
+ at.allowedChildren = [Mt, Se, yt, Et];
5951
+ const Lc = (n, t, e) => {
6025
5952
  if (typeof n.versionString == "string") {
6026
5953
  const s = n.versionString.split(".")[0];
6027
5954
  if (parseInt(s, 10) >= 11)
@@ -6031,9 +5958,9 @@ const qc = (n, t, e) => {
6031
5958
  }
6032
5959
  return n.highlight(t, e).value;
6033
5960
  };
6034
- class ql extends Ot {
5961
+ class Ll extends Nt {
6035
5962
  static register() {
6036
- A.register(Mt, !0), A.register(ot, !0), A.register(Qe, !0);
5963
+ A.register(Mt, !0), A.register(at, !0), A.register(Qe, !0);
6037
5964
  }
6038
5965
  constructor(t, e) {
6039
5966
  if (super(t, e), this.options.hljs == null)
@@ -6047,8 +5974,7 @@ class ql extends Ot {
6047
5974
  }
6048
5975
  initListener() {
6049
5976
  this.quill.on(A.events.SCROLL_BLOT_MOUNT, (t) => {
6050
- if (!(t instanceof Qe))
6051
- return;
5977
+ if (!(t instanceof Qe)) return;
6052
5978
  const e = this.quill.root.ownerDocument.createElement("select");
6053
5979
  this.options.languages.forEach((s) => {
6054
5980
  let {
@@ -6058,8 +5984,8 @@ class ql extends Ot {
6058
5984
  const o = e.ownerDocument.createElement("option");
6059
5985
  o.textContent = i, o.setAttribute("value", r), e.appendChild(o);
6060
5986
  }), e.addEventListener("change", () => {
6061
- t.format(ot.blotName, e.value), this.quill.root.focus(), this.highlight(t, !0);
6062
- }), t.uiNode == null && (t.attachUI(e), t.children.head && (e.value = ot.formats(t.children.head.domNode)));
5987
+ t.format(at.blotName, e.value), this.quill.root.focus(), this.highlight(t, !0);
5988
+ }), t.uiNode == null && (t.attachUI(e), t.children.head && (e.value = at.formats(t.children.head.domNode)));
6063
5989
  });
6064
5990
  }
6065
5991
  initTimer() {
@@ -6072,8 +5998,7 @@ class ql extends Ot {
6072
5998
  }
6073
5999
  highlight() {
6074
6000
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6075
- if (this.quill.selection.composing)
6076
- return;
6001
+ if (this.quill.selection.composing) return;
6077
6002
  this.quill.update(A.sources.USER);
6078
6003
  const s = this.quill.getSelection();
6079
6004
  (t == null ? this.quill.scroll.descendants(Qe) : [t]).forEach((i) => {
@@ -6089,7 +6014,7 @@ class ql extends Ot {
6089
6014
  [Y.blotName]: e
6090
6015
  }), r.insert(i)), new O());
6091
6016
  const s = this.quill.root.ownerDocument.createElement("div");
6092
- return s.classList.add(Y.className), s.innerHTML = qc(this.options.hljs, e, t), Xr(this.quill.scroll, s, [(r, i) => {
6017
+ return s.classList.add(Y.className), s.innerHTML = Lc(this.options.hljs, e, t), Xr(this.quill.scroll, s, [(r, i) => {
6093
6018
  const o = Ye.value(r);
6094
6019
  return o ? i.compose(new O().retain(i.length(), {
6095
6020
  [Mt.blotName]: o
@@ -6101,7 +6026,7 @@ class ql extends Ot {
6101
6026
  }), o.insert(a)), i)], /* @__PURE__ */ new WeakMap());
6102
6027
  }
6103
6028
  }
6104
- ql.DEFAULTS = {
6029
+ Ll.DEFAULTS = {
6105
6030
  hljs: window.hljs,
6106
6031
  interval: 1e3,
6107
6032
  languages: [{
@@ -6185,8 +6110,7 @@ class Dt extends re {
6185
6110
  }
6186
6111
  optimize(t) {
6187
6112
  super.optimize(t), this.children.forEach((e) => {
6188
- if (e.next == null)
6189
- return;
6113
+ if (e.next == null) return;
6190
6114
  const s = e.formats(), r = e.next.formats();
6191
6115
  if (s.table !== r.table) {
6192
6116
  const i = this.splitAfter(e);
@@ -6202,9 +6126,9 @@ class Dt extends re {
6202
6126
  }
6203
6127
  }
6204
6128
  T(Dt, "blotName", "table-row"), T(Dt, "tagName", "TR");
6205
- class Lt extends re {
6129
+ class qt extends re {
6206
6130
  }
6207
- T(Lt, "blotName", "table-body"), T(Lt, "tagName", "TBODY");
6131
+ T(qt, "blotName", "table-body"), T(qt, "tagName", "TBODY");
6208
6132
  class Ce extends re {
6209
6133
  balanceCells() {
6210
6134
  const t = this.descendants(Dt), e = t.reduce((s, r) => Math.max(r.children.length, s), 0);
@@ -6221,23 +6145,22 @@ class Ce extends re {
6221
6145
  return this.rows().map((e) => e.children.at(t));
6222
6146
  }
6223
6147
  deleteColumn(t) {
6224
- const [e] = this.descendant(Lt);
6148
+ const [e] = this.descendant(qt);
6225
6149
  e == null || e.children.head == null || e.children.forEach((s) => {
6226
6150
  const r = s.children.at(t);
6227
6151
  r != null && r.remove();
6228
6152
  });
6229
6153
  }
6230
6154
  insertColumn(t) {
6231
- const [e] = this.descendant(Lt);
6155
+ const [e] = this.descendant(qt);
6232
6156
  e == null || e.children.head == null || e.children.forEach((s) => {
6233
6157
  const r = s.children.at(t), i = mt.formats(s.children.head.domNode), o = this.scroll.create(mt.blotName, i);
6234
6158
  s.insertBefore(o, r);
6235
6159
  });
6236
6160
  }
6237
6161
  insertRow(t) {
6238
- const [e] = this.descendant(Lt);
6239
- if (e == null || e.children.head == null)
6240
- return;
6162
+ const [e] = this.descendant(qt);
6163
+ if (e == null || e.children.head == null) return;
6241
6164
  const s = Yr(), r = this.scroll.create(Dt.blotName);
6242
6165
  e.children.head.children.forEach(() => {
6243
6166
  const o = this.scroll.create(mt.blotName, s);
@@ -6252,18 +6175,18 @@ class Ce extends re {
6252
6175
  }
6253
6176
  }
6254
6177
  T(Ce, "blotName", "table-container"), T(Ce, "tagName", "TABLE");
6255
- Ce.allowedChildren = [Lt];
6256
- Lt.requiredContainer = Ce;
6257
- Lt.allowedChildren = [Dt];
6258
- Dt.requiredContainer = Lt;
6178
+ Ce.allowedChildren = [qt];
6179
+ qt.requiredContainer = Ce;
6180
+ qt.allowedChildren = [Dt];
6181
+ Dt.requiredContainer = qt;
6259
6182
  Dt.allowedChildren = [mt];
6260
6183
  mt.requiredContainer = Dt;
6261
6184
  function Yr() {
6262
6185
  return `row-${Math.random().toString(36).slice(2, 6)}`;
6263
6186
  }
6264
- class Sc extends Ot {
6187
+ class qc extends Nt {
6265
6188
  static register() {
6266
- A.register(mt), A.register(Dt), A.register(Lt), A.register(Ce);
6189
+ A.register(mt), A.register(Dt), A.register(qt), A.register(Ce);
6267
6190
  }
6268
6191
  constructor() {
6269
6192
  super(...arguments), this.listenBalanceCells();
@@ -6283,15 +6206,13 @@ class Sc extends Ot {
6283
6206
  }
6284
6207
  deleteTable() {
6285
6208
  const [t] = this.getTable();
6286
- if (t == null)
6287
- return;
6209
+ if (t == null) return;
6288
6210
  const e = t.offset();
6289
6211
  t.remove(), this.quill.update(A.sources.USER), this.quill.setSelection(e, A.sources.SILENT);
6290
6212
  }
6291
6213
  getTable() {
6292
6214
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.quill.getSelection();
6293
- if (t == null)
6294
- return [null, null, null, -1];
6215
+ if (t == null) return [null, null, null, -1];
6295
6216
  const [e, s] = this.quill.getLine(t.index);
6296
6217
  if (e == null || e.statics.blotName !== mt.blotName)
6297
6218
  return [null, null, null, -1];
@@ -6300,11 +6221,9 @@ class Sc extends Ot {
6300
6221
  }
6301
6222
  insertColumn(t) {
6302
6223
  const e = this.quill.getSelection();
6303
- if (!e)
6304
- return;
6224
+ if (!e) return;
6305
6225
  const [s, r, i] = this.getTable(e);
6306
- if (i == null)
6307
- return;
6226
+ if (i == null) return;
6308
6227
  const o = i.cellOffset();
6309
6228
  s.insertColumn(o + t), this.quill.update(A.sources.USER);
6310
6229
  let a = r.rowOffset();
@@ -6318,11 +6237,9 @@ class Sc extends Ot {
6318
6237
  }
6319
6238
  insertRow(t) {
6320
6239
  const e = this.quill.getSelection();
6321
- if (!e)
6322
- return;
6240
+ if (!e) return;
6323
6241
  const [s, r, i] = this.getTable(e);
6324
- if (i == null)
6325
- return;
6242
+ if (i == null) return;
6326
6243
  const o = r.rowOffset();
6327
6244
  s.insertRow(o + t), this.quill.update(A.sources.USER), t > 0 ? this.quill.setSelection(e, A.sources.SILENT) : this.quill.setSelection(e.index + r.children.length, e.length, A.sources.SILENT);
6328
6245
  }
@@ -6334,8 +6251,7 @@ class Sc extends Ot {
6334
6251
  }
6335
6252
  insertTable(t, e) {
6336
6253
  const s = this.quill.getSelection();
6337
- if (s == null)
6338
- return;
6254
+ if (s == null) return;
6339
6255
  const r = new Array(t).fill(0).reduce((i) => {
6340
6256
  const o = new Array(e).fill(`
6341
6257
  `).join("");
@@ -6354,14 +6270,13 @@ class Sc extends Ot {
6354
6270
  }
6355
6271
  }
6356
6272
  const Mi = Ut("quill:toolbar");
6357
- class Qr extends Ot {
6273
+ class Qr extends Nt {
6358
6274
  constructor(t, e) {
6359
6275
  var s, r;
6360
6276
  if (super(t, e), Array.isArray(this.options.container)) {
6361
6277
  const i = document.createElement("div");
6362
- i.setAttribute("role", "toolbar"), Oc(i, this.options.container), (r = (s = t.container) == null ? void 0 : s.parentNode) == null || r.insertBefore(i, t.container), this.container = i;
6363
- } else
6364
- typeof this.options.container == "string" ? this.container = document.querySelector(this.options.container) : this.container = this.options.container;
6278
+ i.setAttribute("role", "toolbar"), Sc(i, this.options.container), (r = (s = t.container) == null ? void 0 : s.parentNode) == null || r.insertBefore(i, t.container), this.container = i;
6279
+ } else typeof this.options.container == "string" ? this.container = document.querySelector(this.options.container) : this.container = this.options.container;
6365
6280
  if (!(this.container instanceof HTMLElement)) {
6366
6281
  Mi.error("Container required for toolbar", this.options);
6367
6282
  return;
@@ -6382,8 +6297,7 @@ class Qr extends Ot {
6382
6297
  }
6383
6298
  attach(t) {
6384
6299
  let e = Array.from(t.classList).find((r) => r.indexOf("ql-") === 0);
6385
- if (!e)
6386
- return;
6300
+ if (!e) return;
6387
6301
  if (e = e.slice(3), t.tagName === "BUTTON" && t.setAttribute("type", "button"), this.handlers[e] == null && this.quill.scroll.query(e) == null) {
6388
6302
  Mi.warn("ignoring attaching to nonexistent format", e, t);
6389
6303
  return;
@@ -6392,8 +6306,7 @@ class Qr extends Ot {
6392
6306
  t.addEventListener(s, (r) => {
6393
6307
  let i;
6394
6308
  if (t.tagName === "SELECT") {
6395
- if (t.selectedIndex < 0)
6396
- return;
6309
+ if (t.selectedIndex < 0) return;
6397
6310
  const a = t.options[t.selectedIndex];
6398
6311
  a.hasAttribute("selected") ? i = !1 : i = a.value || !1;
6399
6312
  } else
@@ -6404,10 +6317,9 @@ class Qr extends Ot {
6404
6317
  this.handlers[e].call(this, i);
6405
6318
  else if (
6406
6319
  // @ts-expect-error
6407
- this.quill.scroll.query(e).prototype instanceof nt
6320
+ this.quill.scroll.query(e).prototype instanceof rt
6408
6321
  ) {
6409
- if (i = prompt(`Enter ${e}`), !i)
6410
- return;
6322
+ if (i = prompt(`Enter ${e}`), !i) return;
6411
6323
  this.quill.updateContents(new O().retain(o.index).delete(o.length).insert({
6412
6324
  [e]: i
6413
6325
  }), A.sources.USER);
@@ -6448,7 +6360,7 @@ function Di(n, t, e) {
6448
6360
  const s = document.createElement("button");
6449
6361
  s.setAttribute("type", "button"), s.classList.add(`ql-${t}`), s.setAttribute("aria-pressed", "false"), e != null ? (s.value = e, s.setAttribute("aria-label", `${t}: ${e}`)) : s.setAttribute("aria-label", t), n.appendChild(s);
6450
6362
  }
6451
- function Oc(n, t) {
6363
+ function Sc(n, t) {
6452
6364
  Array.isArray(t[0]) || (t = [t]), t.forEach((e) => {
6453
6365
  const s = document.createElement("span");
6454
6366
  s.classList.add("ql-formats"), e.forEach((r) => {
@@ -6456,12 +6368,12 @@ function Oc(n, t) {
6456
6368
  Di(s, r);
6457
6369
  else {
6458
6370
  const i = Object.keys(r)[0], o = r[i];
6459
- Array.isArray(o) ? Cc(s, i, o) : Di(s, i, o);
6371
+ Array.isArray(o) ? Oc(s, i, o) : Di(s, i, o);
6460
6372
  }
6461
6373
  }), n.appendChild(s);
6462
6374
  });
6463
6375
  }
6464
- function Cc(n, t, e) {
6376
+ function Oc(n, t, e) {
6465
6377
  const s = document.createElement("select");
6466
6378
  s.classList.add(`ql-${t}`), e.forEach((r) => {
6467
6379
  const i = document.createElement("option");
@@ -6504,54 +6416,54 @@ Qr.DEFAULTS = {
6504
6416
  }
6505
6417
  }
6506
6418
  };
6507
- const _c = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', kc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', Ic = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', Rc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', Bc = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', Mc = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', Dc = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', Uc = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', Ui = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', Pc = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', jc = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', Hc = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', $c = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', Fc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', zc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Kc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Gc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', Vc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Zc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', Wc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', Xc = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', Yc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', Qc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', Jc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', tu = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', eu = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', su = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', nu = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', ru = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', iu = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', lu = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', ou = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', au = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', is = {
6419
+ const Cc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', _c = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', kc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', Ic = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', Rc = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', Bc = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', Mc = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', Dc = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', Ui = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', Uc = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', Pc = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', jc = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', Hc = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', $c = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', Fc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', zc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Kc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', Gc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Vc = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', Zc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', Wc = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', Xc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', Yc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', Qc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', Jc = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', tu = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', eu = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', su = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', nu = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', ru = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', iu = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', lu = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', ou = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', is = {
6508
6420
  align: {
6509
- "": _c,
6510
- center: kc,
6511
- right: Ic,
6512
- justify: Rc
6421
+ "": Cc,
6422
+ center: _c,
6423
+ right: kc,
6424
+ justify: Ic
6513
6425
  },
6514
- background: Bc,
6515
- blockquote: Mc,
6516
- bold: Dc,
6517
- clean: Uc,
6426
+ background: Rc,
6427
+ blockquote: Bc,
6428
+ bold: Mc,
6429
+ clean: Dc,
6518
6430
  code: Ui,
6519
6431
  "code-block": Ui,
6520
- color: Pc,
6432
+ color: Uc,
6521
6433
  direction: {
6522
- "": jc,
6523
- rtl: Hc
6434
+ "": Pc,
6435
+ rtl: jc
6524
6436
  },
6525
- formula: $c,
6437
+ formula: Hc,
6526
6438
  header: {
6527
- 1: Fc,
6528
- 2: zc,
6529
- 3: Kc,
6530
- 4: Gc,
6531
- 5: Vc,
6532
- 6: Zc
6439
+ 1: $c,
6440
+ 2: Fc,
6441
+ 3: zc,
6442
+ 4: Kc,
6443
+ 5: Gc,
6444
+ 6: Vc
6533
6445
  },
6534
- italic: Wc,
6535
- image: Xc,
6446
+ italic: Zc,
6447
+ image: Wc,
6536
6448
  indent: {
6537
- "+1": Yc,
6538
- "-1": Qc
6449
+ "+1": Xc,
6450
+ "-1": Yc
6539
6451
  },
6540
- link: Jc,
6452
+ link: Qc,
6541
6453
  list: {
6542
- bullet: tu,
6543
- check: eu,
6544
- ordered: su
6454
+ bullet: Jc,
6455
+ check: tu,
6456
+ ordered: eu
6545
6457
  },
6546
6458
  script: {
6547
- sub: nu,
6548
- super: ru
6459
+ sub: su,
6460
+ super: nu
6549
6461
  },
6550
- strike: iu,
6551
- table: lu,
6552
- underline: ou,
6553
- video: au
6554
- }, cu = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';
6462
+ strike: ru,
6463
+ table: iu,
6464
+ underline: lu,
6465
+ video: ou
6466
+ }, au = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';
6555
6467
  let Pi = 0;
6556
6468
  function ji(n, t) {
6557
6469
  n.setAttribute(t, `${n.getAttribute(t) !== "true"}`);
@@ -6593,7 +6505,7 @@ class ln {
6593
6505
  }
6594
6506
  buildLabel() {
6595
6507
  const t = document.createElement("span");
6596
- return t.classList.add("ql-picker-label"), t.innerHTML = cu, t.tabIndex = "0", t.setAttribute("role", "button"), t.setAttribute("aria-expanded", "false"), this.container.appendChild(t), t;
6508
+ return t.classList.add("ql-picker-label"), t.innerHTML = au, t.tabIndex = "0", t.setAttribute("role", "button"), t.setAttribute("aria-expanded", "false"), this.container.appendChild(t), t;
6597
6509
  }
6598
6510
  buildOptions() {
6599
6511
  const t = document.createElement("span");
@@ -6632,7 +6544,7 @@ class ln {
6632
6544
  this.label.classList.toggle("ql-active", e);
6633
6545
  }
6634
6546
  }
6635
- class Sl extends ln {
6547
+ class ql extends ln {
6636
6548
  constructor(t, e) {
6637
6549
  super(t), this.label.innerHTML = e, this.container.classList.add("ql-color-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0, 7).forEach((s) => {
6638
6550
  s.classList.add("ql-primary");
@@ -6648,7 +6560,7 @@ class Sl extends ln {
6648
6560
  s && (s.tagName === "line" ? s.style.stroke = r : s.style.fill = r);
6649
6561
  }
6650
6562
  }
6651
- class Ol extends ln {
6563
+ class Sl extends ln {
6652
6564
  constructor(t, e) {
6653
6565
  super(t), this.container.classList.add("ql-icon-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((s) => {
6654
6566
  s.innerHTML = e[s.getAttribute("data-value") || ""];
@@ -6658,21 +6570,20 @@ class Ol extends ln {
6658
6570
  super.selectItem(t, e);
6659
6571
  const s = t || this.defaultItem;
6660
6572
  if (s != null) {
6661
- if (this.label.innerHTML === s.innerHTML)
6662
- return;
6573
+ if (this.label.innerHTML === s.innerHTML) return;
6663
6574
  this.label.innerHTML = s.innerHTML;
6664
6575
  }
6665
6576
  }
6666
6577
  }
6667
- const uu = (n) => {
6578
+ const cu = (n) => {
6668
6579
  const {
6669
6580
  overflowY: t
6670
6581
  } = getComputedStyle(n, null);
6671
6582
  return t !== "visible" && t !== "clip";
6672
6583
  };
6673
- class Cl {
6584
+ class Ol {
6674
6585
  constructor(t, e) {
6675
- this.quill = t, this.boundsContainer = e || document.body, this.root = t.addContainer("ql-tooltip"), this.root.innerHTML = this.constructor.TEMPLATE, uu(this.quill.root) && this.quill.root.addEventListener("scroll", () => {
6586
+ this.quill = t, this.boundsContainer = e || document.body, this.root = t.addContainer("ql-tooltip"), this.root.innerHTML = this.constructor.TEMPLATE, cu(this.quill.root) && this.quill.root.addEventListener("scroll", () => {
6676
6587
  this.root.style.marginTop = `${-1 * this.quill.root.scrollTop}px`;
6677
6588
  }), this.hide();
6678
6589
  }
@@ -6694,7 +6605,7 @@ class Cl {
6694
6605
  this.root.classList.remove("ql-editing"), this.root.classList.remove("ql-hidden");
6695
6606
  }
6696
6607
  }
6697
- const hu = [!1, "center", "right", "justify"], fu = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], du = [!1, "serif", "monospace"], gu = ["1", "2", "3", !1], pu = ["small", !1, "large", "huge"];
6608
+ const uu = [!1, "center", "right", "justify"], hu = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], fu = [!1, "serif", "monospace"], du = ["1", "2", "3", !1], gu = ["small", !1, "large", "huge"];
6698
6609
  class cs extends Oe {
6699
6610
  constructor(t, e) {
6700
6611
  super(t, e);
@@ -6732,13 +6643,13 @@ class cs extends Oe {
6732
6643
  }
6733
6644
  buildPickers(t, e) {
6734
6645
  this.pickers = Array.from(t).map((r) => {
6735
- if (r.classList.contains("ql-align") && (r.querySelector("option") == null && Xe(r, hu), typeof e.align == "object"))
6736
- return new Ol(r, e.align);
6646
+ if (r.classList.contains("ql-align") && (r.querySelector("option") == null && Xe(r, uu), typeof e.align == "object"))
6647
+ return new Sl(r, e.align);
6737
6648
  if (r.classList.contains("ql-background") || r.classList.contains("ql-color")) {
6738
6649
  const i = r.classList.contains("ql-background") ? "background" : "color";
6739
- return r.querySelector("option") == null && Xe(r, fu, i === "background" ? "#ffffff" : "#000000"), new Sl(r, e[i]);
6650
+ return r.querySelector("option") == null && Xe(r, hu, i === "background" ? "#ffffff" : "#000000"), new ql(r, e[i]);
6740
6651
  }
6741
- return r.querySelector("option") == null && (r.classList.contains("ql-font") ? Xe(r, du) : r.classList.contains("ql-header") ? Xe(r, gu) : r.classList.contains("ql-size") && Xe(r, pu)), new ln(r);
6652
+ return r.querySelector("option") == null && (r.classList.contains("ql-font") ? Xe(r, fu) : r.classList.contains("ql-header") ? Xe(r, du) : r.classList.contains("ql-size") && Xe(r, gu)), new ln(r);
6742
6653
  });
6743
6654
  const s = () => {
6744
6655
  this.pickers.forEach((r) => {
@@ -6769,7 +6680,7 @@ cs.DEFAULTS = Gt({}, Oe.DEFAULTS, {
6769
6680
  }
6770
6681
  }
6771
6682
  });
6772
- class _l extends Cl {
6683
+ class Cl extends Ol {
6773
6684
  constructor(t, e) {
6774
6685
  super(t, e), this.textbox = this.root.querySelector('input[type="text"]'), this.listen();
6775
6686
  }
@@ -6783,8 +6694,7 @@ class _l extends Cl {
6783
6694
  }
6784
6695
  edit() {
6785
6696
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
6786
- if (this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), this.textbox == null)
6787
- return;
6697
+ if (this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), this.textbox == null) return;
6788
6698
  e != null ? this.textbox.value = e : t !== this.root.getAttribute("data-mode") && (this.textbox.value = "");
6789
6699
  const s = this.quill.getBounds(this.quill.selection.savedRange);
6790
6700
  s != null && this.position(s), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute(`data-${t}`) || ""), this.root.setAttribute("data-mode", t);
@@ -6807,10 +6717,9 @@ class _l extends Cl {
6807
6717
  break;
6808
6718
  }
6809
6719
  case "video":
6810
- t = mu(t);
6720
+ t = pu(t);
6811
6721
  case "formula": {
6812
- if (!t)
6813
- break;
6722
+ if (!t) break;
6814
6723
  const e = this.quill.getSelection(!0);
6815
6724
  if (e != null) {
6816
6725
  const s = e.index + e.length;
@@ -6828,7 +6737,7 @@ class _l extends Cl {
6828
6737
  this.textbox.value = "", this.hide();
6829
6738
  }
6830
6739
  }
6831
- function mu(n) {
6740
+ function pu(n) {
6832
6741
  let t = n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
6833
6742
  return t ? `${t[1] || "https"}://www.youtube.com/embed/${t[2]}?showinfo=0` : (t = n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? `${t[1] || "https"}://player.vimeo.com/video/${t[2]}/` : n;
6834
6743
  }
@@ -6839,12 +6748,12 @@ function Xe(n, t) {
6839
6748
  s === e ? r.setAttribute("selected", "selected") : r.setAttribute("value", String(s)), n.appendChild(r);
6840
6749
  });
6841
6750
  }
6842
- const bu = [["bold", "italic", "link"], [{
6751
+ const mu = [["bold", "italic", "link"], [{
6843
6752
  header: 1
6844
6753
  }, {
6845
6754
  header: 2
6846
6755
  }, "blockquote"]];
6847
- class kl extends _l {
6756
+ class _l extends Cl {
6848
6757
  constructor(t, e) {
6849
6758
  super(t, e), this.quill.on(q.events.EDITOR_CHANGE, (s, r, i, o) => {
6850
6759
  if (s === q.events.SELECTION_CHANGE)
@@ -6858,8 +6767,7 @@ class kl extends _l {
6858
6767
  const c = a[a.length - 1], h = this.quill.getIndex(c), d = Math.min(c.length() - 1, r.index + r.length - h), b = this.quill.getBounds(new ne(h, d));
6859
6768
  b != null && this.position(b);
6860
6769
  }
6861
- } else
6862
- document.activeElement !== this.textbox && this.quill.hasFocus() && this.hide();
6770
+ } else document.activeElement !== this.textbox && this.quill.hasFocus() && this.hide();
6863
6771
  });
6864
6772
  }
6865
6773
  listen() {
@@ -6867,8 +6775,7 @@ class kl extends _l {
6867
6775
  this.root.classList.remove("ql-editing");
6868
6776
  }), this.quill.on(q.events.SCROLL_OPTIMIZE, () => {
6869
6777
  setTimeout(() => {
6870
- if (this.root.classList.contains("ql-hidden"))
6871
- return;
6778
+ if (this.root.classList.contains("ql-hidden")) return;
6872
6779
  const t = this.quill.getSelection();
6873
6780
  if (t != null) {
6874
6781
  const e = this.quill.getBounds(t);
@@ -6885,16 +6792,16 @@ class kl extends _l {
6885
6792
  return s.style.marginLeft = "", e !== 0 && (s.style.marginLeft = `${-1 * e - s.offsetWidth / 2}px`), e;
6886
6793
  }
6887
6794
  }
6888
- T(kl, "TEMPLATE", ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""));
6889
- class Il extends cs {
6795
+ T(_l, "TEMPLATE", ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""));
6796
+ class kl extends cs {
6890
6797
  constructor(t, e) {
6891
- e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = bu), super(t, e), this.quill.container.classList.add("ql-bubble");
6798
+ e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = mu), super(t, e), this.quill.container.classList.add("ql-bubble");
6892
6799
  }
6893
6800
  extendToolbar(t) {
6894
- this.tooltip = new kl(this.quill, this.options.bounds), t.container != null && (this.tooltip.root.appendChild(t.container), this.buildButtons(t.container.querySelectorAll("button"), is), this.buildPickers(t.container.querySelectorAll("select"), is));
6801
+ this.tooltip = new _l(this.quill, this.options.bounds), t.container != null && (this.tooltip.root.appendChild(t.container), this.buildButtons(t.container.querySelectorAll("button"), is), this.buildPickers(t.container.querySelectorAll("select"), is));
6895
6802
  }
6896
6803
  }
6897
- Il.DEFAULTS = Gt({}, cs.DEFAULTS, {
6804
+ kl.DEFAULTS = Gt({}, cs.DEFAULTS, {
6898
6805
  modules: {
6899
6806
  toolbar: {
6900
6807
  handlers: {
@@ -6905,14 +6812,14 @@ Il.DEFAULTS = Gt({}, cs.DEFAULTS, {
6905
6812
  }
6906
6813
  }
6907
6814
  });
6908
- const yu = [[{
6815
+ const bu = [[{
6909
6816
  header: ["1", "2", "3", !1]
6910
6817
  }], ["bold", "italic", "underline", "link"], [{
6911
6818
  list: "ordered"
6912
6819
  }, {
6913
6820
  list: "bullet"
6914
6821
  }], ["clean"]];
6915
- class Rl extends _l {
6822
+ class Il extends Cl {
6916
6823
  constructor() {
6917
6824
  super(...arguments);
6918
6825
  T(this, "preview", this.root.querySelector("a.ql-preview"));
@@ -6948,13 +6855,13 @@ class Rl extends _l {
6948
6855
  super.show(), this.root.removeAttribute("data-mode");
6949
6856
  }
6950
6857
  }
6951
- T(Rl, "TEMPLATE", ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""));
6952
- class Bl extends cs {
6858
+ T(Il, "TEMPLATE", ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""));
6859
+ class Rl extends cs {
6953
6860
  constructor(t, e) {
6954
- e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = yu), super(t, e), this.quill.container.classList.add("ql-snow");
6861
+ e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = bu), super(t, e), this.quill.container.classList.add("ql-snow");
6955
6862
  }
6956
6863
  extendToolbar(t) {
6957
- t.container != null && (t.container.classList.add("ql-snow"), this.buildButtons(t.container.querySelectorAll("button"), is), this.buildPickers(t.container.querySelectorAll("select"), is), this.tooltip = new Rl(this.quill, this.options.bounds), t.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({
6864
+ t.container != null && (t.container.classList.add("ql-snow"), this.buildButtons(t.container.querySelectorAll("button"), is), this.buildPickers(t.container.querySelectorAll("select"), is), this.tooltip = new Il(this.quill, this.options.bounds), t.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({
6958
6865
  key: "k",
6959
6866
  shortKey: !0
6960
6867
  }, (e, s) => {
@@ -6962,15 +6869,14 @@ class Bl extends cs {
6962
6869
  }));
6963
6870
  }
6964
6871
  }
6965
- Bl.DEFAULTS = Gt({}, cs.DEFAULTS, {
6872
+ Rl.DEFAULTS = Gt({}, cs.DEFAULTS, {
6966
6873
  modules: {
6967
6874
  toolbar: {
6968
6875
  handlers: {
6969
6876
  link(n) {
6970
6877
  if (n) {
6971
6878
  const t = this.quill.getSelection();
6972
- if (t == null || t.length === 0)
6973
- return;
6879
+ if (t == null || t.length === 0) return;
6974
6880
  let e = this.quill.getText(t);
6975
6881
  /^\S+@\S+\.\S+$/.test(e) && e.indexOf("mailto:") !== 0 && (e = `mailto:${e}`);
6976
6882
  const {
@@ -6985,28 +6891,28 @@ Bl.DEFAULTS = Gt({}, cs.DEFAULTS, {
6985
6891
  }
6986
6892
  });
6987
6893
  A.register({
6988
- "attributors/attribute/direction": gl,
6989
- "attributors/class/align": hl,
6990
- "attributors/class/background": Ma,
6991
- "attributors/class/color": Ba,
6992
- "attributors/class/direction": pl,
6993
- "attributors/class/font": yl,
6994
- "attributors/class/size": El,
6995
- "attributors/style/align": fl,
6894
+ "attributors/attribute/direction": dl,
6895
+ "attributors/class/align": ul,
6896
+ "attributors/class/background": Ba,
6897
+ "attributors/class/color": Ra,
6898
+ "attributors/class/direction": gl,
6899
+ "attributors/class/font": bl,
6900
+ "attributors/class/size": vl,
6901
+ "attributors/style/align": hl,
6996
6902
  "attributors/style/background": Gr,
6997
6903
  "attributors/style/color": Kr,
6998
- "attributors/style/direction": ml,
6999
- "attributors/style/font": vl,
7000
- "attributors/style/size": Nl
6904
+ "attributors/style/direction": pl,
6905
+ "attributors/style/font": yl,
6906
+ "attributors/style/size": El
7001
6907
  }, !0);
7002
6908
  A.register({
7003
- "formats/align": hl,
7004
- "formats/direction": pl,
7005
- "formats/indent": Lc,
6909
+ "formats/align": ul,
6910
+ "formats/direction": gl,
6911
+ "formats/indent": Tc,
7006
6912
  "formats/background": Gr,
7007
6913
  "formats/color": Kr,
7008
- "formats/font": yl,
7009
- "formats/size": El,
6914
+ "formats/font": bl,
6915
+ "formats/size": vl,
7010
6916
  "formats/blockquote": qr,
7011
6917
  "formats/code-block": Y,
7012
6918
  "formats/header": Sr,
@@ -7021,20 +6927,25 @@ A.register({
7021
6927
  "formats/formula": Ks,
7022
6928
  "formats/image": Ir,
7023
6929
  "formats/video": Gs,
7024
- "modules/syntax": ql,
7025
- "modules/table": Sc,
6930
+ "modules/syntax": Ll,
6931
+ "modules/table": qc,
7026
6932
  "modules/toolbar": Qr,
7027
- "themes/bubble": Il,
7028
- "themes/snow": Bl,
6933
+ "themes/bubble": kl,
6934
+ "themes/snow": Rl,
7029
6935
  "ui/icons": is,
7030
6936
  "ui/picker": ln,
7031
- "ui/icon-picker": Ol,
7032
- "ui/color-picker": Sl,
7033
- "ui/tooltip": Cl
6937
+ "ui/icon-picker": Sl,
6938
+ "ui/color-picker": ql,
6939
+ "ui/tooltip": Ol
7034
6940
  }, !0);
6941
+ const Tu = tt.AttributeMap, Lu = tt.Op, qu = tt.OpIterator;
7035
6942
  export {
7036
- Ot as Module,
7037
- ra as Parchment,
6943
+ Tu as AttributeMap,
6944
+ O as Delta,
6945
+ Nt as Module,
6946
+ Lu as Op,
6947
+ qu as OpIterator,
6948
+ sa as Parchment,
7038
6949
  ne as Range,
7039
6950
  A as default
7040
6951
  };