reacthub-pixitweenjs 0.2.19 → 0.2.20

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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import * as at from "react";
1
+ import * as ot from "react";
2
2
  import Wl, { useState as le, useRef as dt, useLayoutEffect as Yl, useCallback as Pe, useEffect as Pr, useContext as yi, useReducer as Xh } from "react";
3
3
  import { PixiComponent as Wh, applyDefaultProps as Yh, withFilters as sa, Container as Ft, Sprite as aa, useApp as Kl, AnimatedSprite as Kh, Graphics as Zh, Text as Qh } from "@pixi/react";
4
4
  import _e from "gsap";
@@ -535,7 +535,7 @@ ti.exports;
535
535
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
536
536
  "invalid-input": "Invalid input"
537
537
  }, v = l - h, x = Math.floor, S = String.fromCharCode, w;
538
- function E(k) {
538
+ function T(k) {
539
539
  throw new RangeError(_[k]);
540
540
  }
541
541
  function N(k, I) {
@@ -549,7 +549,7 @@ ti.exports;
549
549
  var j = k.split("."), G = N(j, I).join(".");
550
550
  return L + G;
551
551
  }
552
- function T(k) {
552
+ function E(k) {
553
553
  for (var I = [], P = 0, L = k.length, j, G; P < L; )
554
554
  j = k.charCodeAt(P++), j >= 55296 && j <= 56319 && P < L ? (G = k.charCodeAt(P++), (G & 64512) == 56320 ? I.push(((j & 1023) << 10) + (G & 1023) + 65536) : (I.push(j), P--)) : I.push(j);
555
555
  return I;
@@ -573,30 +573,30 @@ ti.exports;
573
573
  return x(L + (v + 1) * k / (k + f));
574
574
  }
575
575
  function U(k) {
576
- var I = [], P = k.length, L, j = 0, G = p, M = d, B, q, H, X, K, tt, rt, ot, ut;
576
+ var I = [], P = k.length, L, j = 0, G = p, M = d, B, q, H, X, K, tt, rt, at, ut;
577
577
  for (B = k.lastIndexOf(m), B < 0 && (B = 0), q = 0; q < B; ++q)
578
- k.charCodeAt(q) >= 128 && E("not-basic"), I.push(k.charCodeAt(q));
578
+ k.charCodeAt(q) >= 128 && T("not-basic"), I.push(k.charCodeAt(q));
579
579
  for (H = B > 0 ? B + 1 : 0; H < P; ) {
580
- for (X = j, K = 1, tt = l; H >= P && E("invalid-input"), rt = R(k.charCodeAt(H++)), (rt >= l || rt > x((o - j) / K)) && E("overflow"), j += rt * K, ot = tt <= M ? h : tt >= M + c ? c : tt - M, !(rt < ot); tt += l)
581
- ut = l - ot, K > x(o / ut) && E("overflow"), K *= ut;
582
- L = I.length + 1, M = F(j - X, L, X == 0), x(j / L) > o - G && E("overflow"), G += x(j / L), j %= L, I.splice(j++, 0, G);
580
+ for (X = j, K = 1, tt = l; H >= P && T("invalid-input"), rt = R(k.charCodeAt(H++)), (rt >= l || rt > x((o - j) / K)) && T("overflow"), j += rt * K, at = tt <= M ? h : tt >= M + c ? c : tt - M, !(rt < at); tt += l)
581
+ ut = l - at, K > x(o / ut) && T("overflow"), K *= ut;
582
+ L = I.length + 1, M = F(j - X, L, X == 0), x(j / L) > o - G && T("overflow"), G += x(j / L), j %= L, I.splice(j++, 0, G);
583
583
  }
584
584
  return O(I);
585
585
  }
586
586
  function D(k) {
587
- var I, P, L, j, G, M, B, q, H, X, K, tt = [], rt, ot, ut, It;
588
- for (k = T(k), rt = k.length, I = p, P = 0, G = d, M = 0; M < rt; ++M)
587
+ var I, P, L, j, G, M, B, q, H, X, K, tt = [], rt, at, ut, It;
588
+ for (k = E(k), rt = k.length, I = p, P = 0, G = d, M = 0; M < rt; ++M)
589
589
  K = k[M], K < 128 && tt.push(S(K));
590
590
  for (L = j = tt.length, j && tt.push(m); L < rt; ) {
591
591
  for (B = o, M = 0; M < rt; ++M)
592
592
  K = k[M], K >= I && K < B && (B = K);
593
- for (ot = L + 1, B - I > x((o - P) / ot) && E("overflow"), P += (B - I) * ot, I = B, M = 0; M < rt; ++M)
594
- if (K = k[M], K < I && ++P > o && E("overflow"), K == I) {
593
+ for (at = L + 1, B - I > x((o - P) / at) && T("overflow"), P += (B - I) * at, I = B, M = 0; M < rt; ++M)
594
+ if (K = k[M], K < I && ++P > o && T("overflow"), K == I) {
595
595
  for (q = P, H = l; X = H <= G ? h : H >= G + c ? c : H - G, !(q < X); H += l)
596
596
  It = q - X, ut = l - X, tt.push(
597
597
  S(C(X + It % ut, 0))
598
598
  ), q = x(It / ut);
599
- tt.push(S(C(q, 0))), G = F(P, ot, L == j), P = 0, ++L;
599
+ tt.push(S(C(q, 0))), G = F(P, at, L == j), P = 0, ++L;
600
600
  }
601
601
  ++P, ++I;
602
602
  }
@@ -627,7 +627,7 @@ ti.exports;
627
627
  * @type Object
628
628
  */
629
629
  ucs2: {
630
- decode: T,
630
+ decode: E,
631
631
  encode: O
632
632
  },
633
633
  decode: U,
@@ -1075,7 +1075,7 @@ var ks = sf, fo = ks.custom, po = cu(fo) ? fo : null, yf = function e(t, r, n, i
1075
1075
  if (bf(t))
1076
1076
  return qr(u(String(t)));
1077
1077
  if (!vf(t) && !yo(t)) {
1078
- var w = En(t, u), E = ho ? ho(t) === Object.prototype : t instanceof Object || t.constructor === Object, N = t instanceof Object ? "" : "null prototype", A = !E && Vt && Object(t) === t && Vt in t ? da.call($e(t), 8, -1) : N ? "Object" : "", T = E || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", O = T + (A || N ? "[" + ge.call(lo.call([], A || [], N || []), ": ") + "] " : "");
1078
+ var w = En(t, u), T = ho ? ho(t) === Object.prototype : t instanceof Object || t.constructor === Object, N = t instanceof Object ? "" : "null prototype", A = !T && Vt && Object(t) === t && Vt in t ? da.call($e(t), 8, -1) : N ? "Object" : "", E = T || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", O = E + (A || N ? "[" + ge.call(lo.call([], A || [], N || []), ": ") + "] " : "");
1079
1079
  return w.length === 0 ? O + "{}" : f ? O + "{" + Ms(w, f) + "}" : O + "{ " + ge.call(w, ", ") + " }";
1080
1080
  }
1081
1081
  return String(t);
@@ -1540,17 +1540,17 @@ var pa = ha, Lr = ef, Mf = yf, Lf = pa("%TypeError%"), Tn = pa("%WeakMap%", !0),
1540
1540
  var w = [];
1541
1541
  if (typeof y > "u")
1542
1542
  return w;
1543
- var E;
1543
+ var T;
1544
1544
  if (n === "comma" && Ae(y))
1545
- p && o && (y = qn.maybeMap(y, o)), E = [{ value: y.length > 0 ? y.join(",") || null : void 0 }];
1545
+ p && o && (y = qn.maybeMap(y, o)), T = [{ value: y.length > 0 ? y.join(",") || null : void 0 }];
1546
1546
  else if (Ae(l))
1547
- E = l;
1547
+ T = l;
1548
1548
  else {
1549
1549
  var N = Object.keys(y);
1550
- E = h ? N.sort(h) : N;
1550
+ T = h ? N.sort(h) : N;
1551
1551
  }
1552
- for (var A = i && Ae(y) && y.length === 1 ? r + "[]" : r, T = 0; T < E.length; ++T) {
1553
- var O = E[T], R = typeof O == "object" && typeof O.value < "u" ? O.value : y[O];
1552
+ for (var A = i && Ae(y) && y.length === 1 ? r + "[]" : r, E = 0; E < T.length; ++E) {
1553
+ var O = T[E], R = typeof O == "object" && typeof O.value < "u" ? O.value : y[O];
1554
1554
  if (!(a && R === null)) {
1555
1555
  var C = Ae(y) ? typeof n == "function" ? n(A, O) : A : A + (c ? "." + O : "[" + O + "]");
1556
1556
  g.set(t, _);
@@ -1847,15 +1847,15 @@ he.prototype.parse = function(e, t, r) {
1847
1847
  for (var x = "", S = 0, w = v.length; S < w; S++)
1848
1848
  v.charCodeAt(S) > 127 ? x += "x" : x += v[S];
1849
1849
  if (!x.match(xo)) {
1850
- var E = b.slice(0, d), N = b.slice(d + 1), A = v.match(kd);
1851
- A && (E.push(A[1]), N.unshift(A[2])), N.length && (o = "/" + N.join(".") + o), this.hostname = E.join(".");
1850
+ var T = b.slice(0, d), N = b.slice(d + 1), A = v.match(kd);
1851
+ A && (T.push(A[1]), N.unshift(A[2])), N.length && (o = "/" + N.join(".") + o), this.hostname = T.join(".");
1852
1852
  break;
1853
1853
  }
1854
1854
  }
1855
1855
  }
1856
1856
  this.hostname.length > Cd ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), y || (this.hostname = Ad.toASCII(this.hostname));
1857
- var T = this.port ? ":" + this.port : "", O = this.hostname || "";
1858
- this.host = O + T, this.href += this.host, y && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
1857
+ var E = this.port ? ":" + this.port : "", O = this.hostname || "";
1858
+ this.host = O + E, this.href += this.host, y && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
1859
1859
  }
1860
1860
  if (!Pd[c])
1861
1861
  for (var d = 0, _ = Fs.length; d < _; d++) {
@@ -1869,8 +1869,8 @@ he.prototype.parse = function(e, t, r) {
1869
1869
  F !== -1 && (this.hash = o.substr(F), o = o.slice(0, F));
1870
1870
  var U = o.indexOf("?");
1871
1871
  if (U !== -1 ? (this.search = o.substr(U), this.query = o.substr(U + 1), t && (this.query = Ds.parse(this.query)), o = o.slice(0, U)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Tr[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
1872
- var T = this.pathname || "", D = this.search || "";
1873
- this.path = T + D;
1872
+ var E = this.pathname || "", D = this.search || "";
1873
+ this.path = E + D;
1874
1874
  }
1875
1875
  return this.href = this.format(), this;
1876
1876
  };
@@ -1946,10 +1946,10 @@ he.prototype.resolveObject = function(e) {
1946
1946
  }
1947
1947
  if (!b.length)
1948
1948
  return r.pathname = null, r.search ? r.path = "/" + r.search : r.path = null, r.href = r.format(), r;
1949
- for (var S = b.slice(-1)[0], w = (r.host || e.host || b.length > 1) && (S === "." || S === "..") || S === "", E = 0, N = b.length; N >= 0; N--)
1950
- S = b[N], S === "." ? b.splice(N, 1) : S === ".." ? (b.splice(N, 1), E++) : E && (b.splice(N, 1), E--);
1949
+ for (var S = b.slice(-1)[0], w = (r.host || e.host || b.length > 1) && (S === "." || S === "..") || S === "", T = 0, N = b.length; N >= 0; N--)
1950
+ S = b[N], S === "." ? b.splice(N, 1) : S === ".." ? (b.splice(N, 1), T++) : T && (b.splice(N, 1), T--);
1951
1951
  if (!g && !y)
1952
- for (; E--; E)
1952
+ for (; T--; T)
1953
1953
  b.unshift("..");
1954
1954
  g && b[0] !== "" && (!b[0] || b[0].charAt(0) !== "/") && b.unshift(""), w && b.join("/").substr(-1) !== "/" && b.push("");
1955
1955
  var A = b[0] === "" || b[0] && b[0].charAt(0) === "/";
@@ -3074,8 +3074,8 @@ class Tt {
3074
3074
  }
3075
3075
  intersects(t, r) {
3076
3076
  if (!r) {
3077
- const E = this.x < t.x ? t.x : this.x;
3078
- if ((this.right > t.right ? t.right : this.right) <= E)
3077
+ const T = this.x < t.x ? t.x : this.x;
3078
+ if ((this.right > t.right ? t.right : this.right) <= T)
3079
3079
  return !1;
3080
3080
  const A = this.y < t.y ? t.y : this.y;
3081
3081
  return (this.bottom > t.bottom ? t.bottom : this.bottom) > A;
@@ -8695,12 +8695,12 @@ class Yo {
8695
8695
  const o = a[a.length - 2], h = a[a.length - 1] - r, c = o - t, f = i - r, u = n - t, d = Math.abs(h * u - c * f);
8696
8696
  if (d < 1e-8 || s === 0)
8697
8697
  return (a[a.length - 2] !== t || a[a.length - 1] !== r) && a.push(t, r), null;
8698
- const p = h * h + c * c, m = f * f + u * u, g = h * f + c * u, y = s * Math.sqrt(p) / d, b = s * Math.sqrt(m) / d, _ = y * g / p, v = b * g / m, x = y * u + b * c, S = y * f + b * h, w = c * (b + _), E = h * (b + _), N = u * (y + v), A = f * (y + v), T = Math.atan2(E - S, w - x), O = Math.atan2(A - S, N - x);
8698
+ const p = h * h + c * c, m = f * f + u * u, g = h * f + c * u, y = s * Math.sqrt(p) / d, b = s * Math.sqrt(m) / d, _ = y * g / p, v = b * g / m, x = y * u + b * c, S = y * f + b * h, w = c * (b + _), T = h * (b + _), N = u * (y + v), A = f * (y + v), E = Math.atan2(T - S, w - x), O = Math.atan2(A - S, N - x);
8699
8699
  return {
8700
8700
  cx: x + t,
8701
8701
  cy: S + r,
8702
8702
  radius: s,
8703
- startAngle: T,
8703
+ startAngle: E,
8704
8704
  endAngle: O,
8705
8705
  anticlockwise: c * f > u * h
8706
8706
  };
@@ -8785,18 +8785,18 @@ function wy(e, t) {
8785
8785
  const c = t.points, f = n.length / 2;
8786
8786
  let u = n.length;
8787
8787
  const d = c.length / 2, p = s.width / 2, m = p * p, g = s.miterLimit * s.miterLimit;
8788
- let y = n[0], b = n[1], _ = n[2], v = n[3], x = 0, S = 0, w = -(b - v), E = y - _, N = 0, A = 0, T = Math.sqrt(w * w + E * E);
8789
- w /= T, E /= T, w *= p, E *= p;
8788
+ let y = n[0], b = n[1], _ = n[2], v = n[3], x = 0, S = 0, w = -(b - v), T = y - _, N = 0, A = 0, E = Math.sqrt(w * w + T * T);
8789
+ w /= E, T /= E, w *= p, T *= p;
8790
8790
  const O = s.alignment, R = (1 - O) * 2, C = O * 2;
8791
- l || (s.cap === Je.ROUND ? u += qe(y - w * (R - C) * 0.5, b - E * (R - C) * 0.5, y - w * R, b - E * R, y + w * C, b + E * C, c, !0) + 2 : s.cap === Je.SQUARE && (u += Ko(y, b, w, E, R, C, !0, c))), c.push(y - w * R, b - E * R, y + w * C, b + E * C);
8791
+ l || (s.cap === Je.ROUND ? u += qe(y - w * (R - C) * 0.5, b - T * (R - C) * 0.5, y - w * R, b - T * R, y + w * C, b + T * C, c, !0) + 2 : s.cap === Je.SQUARE && (u += Ko(y, b, w, T, R, C, !0, c))), c.push(y - w * R, b - T * R, y + w * C, b + T * C);
8792
8792
  for (let D = 1; D < f - 1; ++D) {
8793
- y = n[(D - 1) * 2], b = n[(D - 1) * 2 + 1], _ = n[D * 2], v = n[D * 2 + 1], x = n[(D + 1) * 2], S = n[(D + 1) * 2 + 1], w = -(b - v), E = y - _, T = Math.sqrt(w * w + E * E), w /= T, E /= T, w *= p, E *= p, N = -(v - S), A = _ - x, T = Math.sqrt(N * N + A * A), N /= T, A /= T, N *= p, A *= p;
8793
+ y = n[(D - 1) * 2], b = n[(D - 1) * 2 + 1], _ = n[D * 2], v = n[D * 2 + 1], x = n[(D + 1) * 2], S = n[(D + 1) * 2 + 1], w = -(b - v), T = y - _, E = Math.sqrt(w * w + T * T), w /= E, T /= E, w *= p, T *= p, N = -(v - S), A = _ - x, E = Math.sqrt(N * N + A * A), N /= E, A /= E, N *= p, A *= p;
8794
8794
  const z = _ - y, $ = b - v, k = _ - x, I = S - v, P = z * k + $ * I, L = $ * k - I * z, j = L < 0;
8795
8795
  if (Math.abs(L) < 1e-3 * Math.abs(P)) {
8796
- c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), P >= 0 && (s.join === se.ROUND ? u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 4 : u += 2, c.push(_ - N * C, v - A * C, _ + N * R, v + A * R));
8796
+ c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), P >= 0 && (s.join === se.ROUND ? u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 4 : u += 2, c.push(_ - N * C, v - A * C, _ + N * R, v + A * R));
8797
8797
  continue;
8798
8798
  }
8799
- const G = (-w + y) * (-E + v) - (-w + _) * (-E + b), M = (-N + x) * (-A + v) - (-N + _) * (-A + S), B = (z * M - k * G) / L, q = (I * G - $ * M) / L, H = (B - _) * (B - _) + (q - v) * (q - v), X = _ + (B - _) * R, K = v + (q - v) * R, tt = _ - (B - _) * C, rt = v - (q - v) * C, ot = Math.min(z * z + $ * $, k * k + I * I), ut = j ? R : C, It = ot + ut * ut * m, St = H <= It;
8799
+ const G = (-w + y) * (-T + v) - (-w + _) * (-T + b), M = (-N + x) * (-A + v) - (-N + _) * (-A + S), B = (z * M - k * G) / L, q = (I * G - $ * M) / L, H = (B - _) * (B - _) + (q - v) * (q - v), X = _ + (B - _) * R, K = v + (q - v) * R, tt = _ - (B - _) * C, rt = v - (q - v) * C, at = Math.min(z * z + $ * $, k * k + I * I), ut = j ? R : C, It = at + ut * ut * m, St = H <= It;
8800
8800
  let V = s.join;
8801
8801
  if (V === se.MITER && H / m > g && (V = se.BEVEL), St)
8802
8802
  switch (V) {
@@ -8805,29 +8805,29 @@ function wy(e, t) {
8805
8805
  break;
8806
8806
  }
8807
8807
  case se.BEVEL: {
8808
- j ? c.push(X, K, _ + w * C, v + E * C, X, K, _ + N * C, v + A * C) : c.push(_ - w * R, v - E * R, tt, rt, _ - N * R, v - A * R, tt, rt), u += 2;
8808
+ j ? c.push(X, K, _ + w * C, v + T * C, X, K, _ + N * C, v + A * C) : c.push(_ - w * R, v - T * R, tt, rt, _ - N * R, v - A * R, tt, rt), u += 2;
8809
8809
  break;
8810
8810
  }
8811
8811
  case se.ROUND: {
8812
- j ? (c.push(X, K, _ + w * C, v + E * C), u += qe(_, v, _ + w * C, v + E * C, _ + N * C, v + A * C, c, !0) + 4, c.push(X, K, _ + N * C, v + A * C)) : (c.push(_ - w * R, v - E * R, tt, rt), u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 4, c.push(_ - N * R, v - A * R, tt, rt));
8812
+ j ? (c.push(X, K, _ + w * C, v + T * C), u += qe(_, v, _ + w * C, v + T * C, _ + N * C, v + A * C, c, !0) + 4, c.push(X, K, _ + N * C, v + A * C)) : (c.push(_ - w * R, v - T * R, tt, rt), u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 4, c.push(_ - N * R, v - A * R, tt, rt));
8813
8813
  break;
8814
8814
  }
8815
8815
  }
8816
8816
  else {
8817
- switch (c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), V) {
8817
+ switch (c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), V) {
8818
8818
  case se.MITER: {
8819
8819
  j ? c.push(tt, rt, tt, rt) : c.push(X, K, X, K), u += 2;
8820
8820
  break;
8821
8821
  }
8822
8822
  case se.ROUND: {
8823
- j ? u += qe(_, v, _ + w * C, v + E * C, _ + N * C, v + A * C, c, !0) + 2 : u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 2;
8823
+ j ? u += qe(_, v, _ + w * C, v + T * C, _ + N * C, v + A * C, c, !0) + 2 : u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 2;
8824
8824
  break;
8825
8825
  }
8826
8826
  }
8827
8827
  c.push(_ - N * R, v - A * R, _ + N * C, v + A * C), u += 2;
8828
8828
  }
8829
8829
  }
8830
- y = n[(f - 2) * 2], b = n[(f - 2) * 2 + 1], _ = n[(f - 1) * 2], v = n[(f - 1) * 2 + 1], w = -(b - v), E = y - _, T = Math.sqrt(w * w + E * E), w /= T, E /= T, w *= p, E *= p, c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), l || (s.cap === Je.ROUND ? u += qe(_ - w * (R - C) * 0.5, v - E * (R - C) * 0.5, _ - w * R, v - E * R, _ + w * C, v + E * C, c, !1) + 2 : s.cap === Je.SQUARE && (u += Ko(_, v, w, E, R, C, !1, c)));
8830
+ y = n[(f - 2) * 2], b = n[(f - 2) * 2 + 1], _ = n[(f - 1) * 2], v = n[(f - 1) * 2 + 1], w = -(b - v), T = y - _, E = Math.sqrt(w * w + T * T), w /= E, T /= E, w *= p, T *= p, c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), l || (s.cap === Je.ROUND ? u += qe(_ - w * (R - C) * 0.5, v - T * (R - C) * 0.5, _ - w * R, v - T * R, _ + w * C, v + T * C, c, !1) + 2 : s.cap === Je.SQUARE && (u += Ko(_, v, w, T, R, C, !1, c)));
8831
8831
  const F = t.indices, U = kr.epsilon * kr.epsilon;
8832
8832
  for (let D = d; D < u + d - 2; ++D)
8833
8833
  y = c[D * 2], b = c[D * 2 + 1], _ = c[(D + 1) * 2], v = c[(D + 1) * 2 + 1], x = c[(D + 2) * 2], S = c[(D + 2) * 2 + 1], !(Math.abs(y * (v - S) + _ * (S - b) + x * (b - v)) < U) && F.push(D, D + 1, D + 2);
@@ -10464,52 +10464,52 @@ const jn = {}, Yy = Rt.IDENTITY, Ky = {
10464
10464
  onDoubleClick: a,
10465
10465
  uniqueId: o = ""
10466
10466
  }) => {
10467
- const l = de.utils.string2hex("#F3C409"), h = de.utils.string2hex("#F3C409"), c = at.useRef({
10467
+ console.log("transformer props", {
10468
+ pixiTransformerRef: e,
10469
+ imageRef: t,
10470
+ isMounted: r,
10471
+ transformCommit: n,
10472
+ transformChange: i,
10473
+ mouseoverEvent: s,
10474
+ onDoubleClick: a,
10475
+ uniqueId: o
10476
+ });
10477
+ const l = de.utils.string2hex("#F3C409"), h = de.utils.string2hex("#F3C409"), c = ot.useRef({
10468
10478
  isDragging: !1
10469
- }), f = at.useCallback(() => {
10479
+ }), f = ot.useCallback(() => {
10470
10480
  s && !c.current.isDragging && s(!0);
10471
- }, [s]), u = at.useCallback(() => {
10481
+ }, [s]), u = ot.useCallback(() => {
10472
10482
  s && !c.current.isDragging && s(!1);
10473
- }, [s]), d = at.useCallback(() => {
10483
+ }, [s]), d = ot.useCallback(() => {
10474
10484
  c.current.isDragging = !0;
10475
- }, []), p = at.useCallback(() => {
10476
- c.current.isDragging = !1;
10477
- }, []), m = at.useCallback(() => {
10485
+ }, []), p = ot.useCallback(() => {
10478
10486
  c.current.isDragging = !1;
10479
- }, []), g = at.useCallback(() => {
10480
- console.log("dobule click in pixi transformer"), a && a({ uniqueId: o });
10481
- }, [a]), y = at.useCallback(
10482
- (_) => {
10483
- c.current.isDragging = !0, i && i(_);
10487
+ }, []), m = ot.useCallback(
10488
+ (y) => {
10489
+ c.current.isDragging = !0, i && i(y);
10484
10490
  },
10485
10491
  [i]
10486
- ), b = at.useCallback(() => {
10492
+ ), g = ot.useCallback(() => {
10487
10493
  if (t.current === null)
10488
10494
  return;
10489
- const _ = t.current.x, v = t.current.y, x = t.current.width, S = t.current.height, w = t.current.rotation, E = [
10495
+ const y = t.current.x, b = t.current.y, _ = t.current.width, v = t.current.height, x = t.current.rotation, S = [
10490
10496
  t.current.scale.x,
10491
10497
  t.current.scale.y
10492
10498
  ];
10493
10499
  n && n({
10494
10500
  uniqueId: o,
10495
10501
  transformation: {
10496
- x: Math.round(_),
10497
- y: Math.round(v),
10498
- width: Math.round(Math.max(5, x)),
10499
- height: Math.round(Math.max(5, S)),
10500
- rotate: Math.round(w),
10501
- scale: E
10502
+ x: Math.round(y),
10503
+ y: Math.round(b),
10504
+ width: Math.round(Math.max(5, _)),
10505
+ height: Math.round(Math.max(5, v)),
10506
+ rotate: Math.round(x),
10507
+ scale: S
10502
10508
  }
10503
10509
  }), c.current.isDragging = !1;
10504
10510
  }, [n]);
10505
- return at.useEffect(() => (e.current && (e.current.on("mouseover", f), e.current.on("mouseout", u), e.current.on("mousedown", d), e.current.on("mouseup", p), e.current.on("mouseupoutside", m), e.current.addListener("dblclick", g)), () => {
10506
- e.current && (e.current.off("mouseover", f), e.current.off("mouseout", u), e.current.off("mousedown", d), e.current.off("mouseup", p), e.current.off(
10507
- "mouseupoutside",
10508
- m
10509
- ), e.current.removeListener(
10510
- "dblclick",
10511
- g
10512
- ));
10511
+ return ot.useEffect(() => (e.current && (e.current.on("mouseover", f), e.current.on("mouseout", u), e.current.on("mousedown", d), e.current.on("mouseup", p)), () => {
10512
+ e.current && (e.current.off("mouseover", f), e.current.off("mouseout", u), e.current.off("mousedown", d), e.current.off("mouseup", p));
10513
10513
  }), []), /* @__PURE__ */ ft.jsx(
10514
10514
  Zy,
10515
10515
  {
@@ -10528,8 +10528,8 @@ const jn = {}, Yy = Rt.IDENTITY, Ky = {
10528
10528
  shape: "circle",
10529
10529
  radius: 9
10530
10530
  },
10531
- transformchange: y,
10532
- transformcommit: b
10531
+ transformchange: m,
10532
+ transformcommit: g
10533
10533
  }
10534
10534
  );
10535
10535
  };
@@ -10571,7 +10571,7 @@ function em() {
10571
10571
  var ll = Ii.emitCustomEvent = tm;
10572
10572
  Ii.newCustomEventEmitter = em;
10573
10573
  var dn = Ii.useCustomEventListener = Jy;
10574
- const vn = at.createContext({}), tr = {
10574
+ const vn = ot.createContext({}), tr = {
10575
10575
  STOP: "GSAP_STOP",
10576
10576
  PAUSE: "GSAP_PAUSE",
10577
10577
  PLAY: "GSAP_PLAY",
@@ -10901,7 +10901,7 @@ function Yg(e) {
10901
10901
  }
10902
10902
  var Kg = Yg;
10903
10903
  const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], Ma = (e) => {
10904
- const [t, r] = at.useState(!1), [, n] = le(!1), [, i] = le(!1), s = dt(null), a = dt(null), o = dt(null), l = dt(null), { tl: h } = yi(vn), {
10904
+ const [t, r] = ot.useState(!1), [, n] = le(!1), [, i] = le(!1), s = dt(null), a = dt(null), o = dt(null), l = dt(null), { tl: h } = yi(vn), {
10905
10905
  uniqueId: c,
10906
10906
  startAt: f,
10907
10907
  endAt: u,
@@ -10913,18 +10913,18 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
10913
10913
  const {
10914
10914
  contrast: S = 1,
10915
10915
  saturation: w = 1,
10916
- brightness: E = 1,
10916
+ brightness: T = 1,
10917
10917
  alpha: N = 1,
10918
10918
  blurRadius: A = 0
10919
- } = b || {}, T = {
10920
- ...E > 1 && { brightness: E },
10919
+ } = b || {}, E = {
10920
+ ...T > 1 && { brightness: T },
10921
10921
  ...S > 1 && { contrast: S },
10922
10922
  ...w > 1 && { saturation: w },
10923
10923
  ...N !== 0 && { alpha: N }
10924
10924
  };
10925
- at.useEffect(() => {
10925
+ ot.useEffect(() => {
10926
10926
  s.current && r(!0);
10927
- }, []), at.useEffect(() => {
10927
+ }, []), ot.useEffect(() => {
10928
10928
  let U = _e.context(() => {
10929
10929
  });
10930
10930
  if (s.current && h.current) {
@@ -10951,16 +10951,16 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
10951
10951
  }
10952
10952
  return () => U.revert();
10953
10953
  }, [_, f, u]);
10954
- const O = at.useCallback(() => {
10954
+ const O = ot.useCallback(() => {
10955
10955
  n(!0);
10956
- }, []), R = at.useCallback(
10956
+ }, []), R = ot.useCallback(
10957
10957
  (U) => {
10958
10958
  console.log("changeEnd", U), e.onAnchorTransformationEnd && (console.log("running onAnchorTransformationEnd"), e.onAnchorTransformationEnd(U));
10959
10959
  },
10960
10960
  []
10961
10961
  ), C = sa(Ft, {
10962
10962
  ...A > 0 && { blur: de.filters.BlurFilter },
10963
- ...!ee(T) && { adjust: wa },
10963
+ ...!ee(E) && { adjust: wa },
10964
10964
  matrix: de.filters.ColorMatrixFilter
10965
10965
  }), F = (b == null ? void 0 : b.enabled) || v && v !== Ye.Normal;
10966
10966
  return /* @__PURE__ */ ft.jsxs(Ft, { ref: a, children: [
@@ -10979,7 +10979,7 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
10979
10979
  {
10980
10980
  scale: 1,
10981
10981
  blur: { blur: A, quality: 4 },
10982
- adjust: T,
10982
+ adjust: E,
10983
10983
  apply: ({ matrix: U }) => {
10984
10984
  v === Ye.BlackAndWhite ? U.desaturate() : v === Ye.Sepia ? U.sepia() : v === Ye.RetroVintage || v === Ye.NightVision ? U.negative() : v === Ye.Normal && U.reset();
10985
10985
  },
@@ -11864,8 +11864,8 @@ var T0 = function() {
11864
11864
  }, S0 = function(t, r, n, i, s, a, o, l, h, c, f, u) {
11865
11865
  var d = Math.pow(s, 2), p = Math.pow(a, 2), m = Math.pow(f, 2), g = Math.pow(u, 2), y = d * p - d * g - p * m;
11866
11866
  y < 0 && (y = 0), y /= d * g + p * m, y = Math.sqrt(y) * (o === l ? -1 : 1);
11867
- var b = y * s / a * u, _ = y * -a / s * f, v = c * b - h * _ + (t + n) / 2, x = h * b + c * _ + (r + i) / 2, S = (f - b) / s, w = (u - _) / a, E = (-f - b) / s, N = (-u - _) / a, A = Ol(1, 0, S, w), T = Ol(S, w, E, N);
11868
- return l === 0 && T > 0 && (T -= rn), l === 1 && T < 0 && (T += rn), [v, x, A, T];
11867
+ var b = y * s / a * u, _ = y * -a / s * f, v = c * b - h * _ + (t + n) / 2, x = h * b + c * _ + (r + i) / 2, S = (f - b) / s, w = (u - _) / a, T = (-f - b) / s, N = (-u - _) / a, A = Ol(1, 0, S, w), E = Ol(S, w, T, N);
11868
+ return l === 0 && E > 0 && (E -= rn), l === 1 && E < 0 && (E += rn), [v, x, A, E];
11869
11869
  }, Rl = function(t) {
11870
11870
  var r = t.px, n = t.py, i = t.cx, s = t.cy, a = t.rx, o = t.ry, l = t.xAxisRotation, h = l === void 0 ? 0 : l, c = t.largeArcFlag, f = c === void 0 ? 0 : c, u = t.sweepFlag, d = u === void 0 ? 0 : u, p = [];
11871
11871
  if (a === 0 || o === 0)
@@ -11876,12 +11876,12 @@ var T0 = function() {
11876
11876
  a = Math.abs(a), o = Math.abs(o);
11877
11877
  var _ = Math.pow(y, 2) / Math.pow(a, 2) + Math.pow(b, 2) / Math.pow(o, 2);
11878
11878
  _ > 1 && (a *= Math.sqrt(_), o *= Math.sqrt(_));
11879
- var v = S0(r, n, i, s, a, o, f, d, m, g, y, b), x = T0(v, 4), S = x[0], w = x[1], E = x[2], N = x[3], A = Math.abs(N) / (rn / 4);
11879
+ var v = S0(r, n, i, s, a, o, f, d, m, g, y, b), x = T0(v, 4), S = x[0], w = x[1], T = x[2], N = x[3], A = Math.abs(N) / (rn / 4);
11880
11880
  Math.abs(1 - A) < 1e-7 && (A = 1);
11881
- var T = Math.max(Math.ceil(A), 1);
11882
- N /= T;
11883
- for (var O = 0; O < T; O++)
11884
- p.push(A0(E, N)), E += N;
11881
+ var E = Math.max(Math.ceil(A), 1);
11882
+ N /= E;
11883
+ for (var O = 0; O < E; O++)
11884
+ p.push(A0(T, N)), T += N;
11885
11885
  return p.map(function(R) {
11886
11886
  var C = xs(R[0], a, o, g, m, S, w), F = C.x, U = C.y, D = xs(R[1], a, o, g, m, S, w), z = D.x, $ = D.y, k = xs(R[2], a, o, g, m, S, w), I = k.x, P = k.y;
11887
11887
  return { x1: F, y1: U, x2: z, y2: $, x: I, y: P };
@@ -12426,7 +12426,7 @@ function Il(e, t, r, n) {
12426
12426
  function H0(e, t, r, n, i, s, a, o, l, h) {
12427
12427
  var c = h * (e - r) / 2 + l * (t - n) / 2, f = -l * (e - r) / 2 + h * (t - n) / 2, u = a * a, d = o * o, p = c * c, m = f * f, g = u * d - u * m - d * p;
12428
12428
  g < 0 && (g = 0), g /= u * m + d * p, g = Math.sqrt(g) * (i === s ? -1 : 1);
12429
- var y = g * a / o * f, b = g * -o / a * c, _ = h * y - l * b + (e + r) / 2, v = l * y + h * b + (t + n) / 2, x = (c - y) / a, S = (f - b) / o, w = (-c - y) / a, E = (-f - b) / o, N = Il(1, 0, x, S), A = Il(x, S, w, E);
12429
+ var y = g * a / o * f, b = g * -o / a * c, _ = h * y - l * b + (e + r) / 2, v = l * y + h * b + (t + n) / 2, x = (c - y) / a, S = (f - b) / o, w = (-c - y) / a, T = (-f - b) / o, N = Il(1, 0, x, S), A = Il(x, S, w, T);
12430
12430
  return s === 0 && A > 0 && (A -= nn), s === 1 && A < 0 && (A += nn), [_, v, N, A];
12431
12431
  }
12432
12432
  function z0(e, t) {
@@ -12448,9 +12448,9 @@ var V0 = function(t, r, n, i, s, a, o, l, h) {
12448
12448
  g.push(z0(y, b)), y += b;
12449
12449
  return g.map(function(x) {
12450
12450
  for (var S = 0; S < x.length; S += 2) {
12451
- var w = x[S + 0], E = x[S + 1];
12452
- w *= o, E *= l;
12453
- var N = f * w - c * E, A = c * w + f * E;
12451
+ var w = x[S + 0], T = x[S + 1];
12452
+ w *= o, T *= l;
12453
+ var N = f * w - c * T, A = c * w + f * T;
12454
12454
  x[S + 0] = N + m[0], x[S + 1] = A + m[1];
12455
12455
  }
12456
12456
  return x;
@@ -12717,7 +12717,7 @@ Pt.prototype.unshort = function() {
12717
12717
  };
12718
12718
  var Q0 = Pt, J0 = Q0;
12719
12719
  const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12720
- const [t, r] = at.useState(null), n = dt(null), i = dt(null), s = dt(null), {
12720
+ const [t, r] = ot.useState(null), n = dt(null), i = dt(null), s = dt(null), {
12721
12721
  path: a,
12722
12722
  transformation: {
12723
12723
  x: o,
@@ -12737,11 +12737,11 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12737
12737
  mouseover: v,
12738
12738
  mouseout: x
12739
12739
  } = e, S = Kl();
12740
- return at.useEffect(() => {
12741
- const w = tb(a).scale(5).translate(0, 0).toString(), E = `<svg xmlns="http://www.w3.org/2000/svg" width="${h}" height="${c}">
12740
+ return ot.useEffect(() => {
12741
+ const w = tb(a).scale(5).translate(0, 0).toString(), T = `<svg xmlns="http://www.w3.org/2000/svg" width="${h}" height="${c}">
12742
12742
  <path stroke="${d}" stroke-width="${p}" fill="${u}" d="${w}">
12743
12743
  </path>
12744
- </svg>`, N = new O0(E), A = S.renderer.generateTexture(N);
12744
+ </svg>`, N = new O0(T), A = S.renderer.generateTexture(N);
12745
12745
  return r(A), () => {
12746
12746
  };
12747
12747
  }, [S, a, d, p, u]), /* @__PURE__ */ ft.jsx(Ma, { ...e, children: /* @__PURE__ */ ft.jsx(Ft, { ref: i, children: /* @__PURE__ */ ft.jsx(Ft, { ref: s, children: t && /* @__PURE__ */ ft.jsx(
@@ -12774,9 +12774,9 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12774
12774
  loaded: !1,
12775
12775
  size: { width: 50, height: 50 },
12776
12776
  isDragging: !1
12777
- }, [, r] = at.useState(!1), n = dt(t);
12777
+ }, [, r] = ot.useState(!1), n = dt(t);
12778
12778
  console.log("allProps", e);
12779
- const i = dt(null), s = dt(null), { tl: a, playerTimeRef: o } = yi(vn), { uniqueId: l, src: h, startAt: c, endAt: f, mute: u, speed: d } = e, p = at.useRef(null);
12779
+ const i = dt(null), s = dt(null), { tl: a, playerTimeRef: o } = yi(vn), { uniqueId: l, src: h, startAt: c, endAt: f, mute: u, speed: d } = e, p = ot.useRef(null);
12780
12780
  dn(tr.PAUSE, () => {
12781
12781
  var v;
12782
12782
  console.log("pause event"), i.current && ((v = p.current) == null || v.pause(), n.current.isPlaying = !1);
@@ -12820,18 +12820,18 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12820
12820
  });
12821
12821
  }
12822
12822
  return () => v.revert();
12823
- }, [c, f]), at.useEffect(() => {
12823
+ }, [c, f]), ot.useEffect(() => {
12824
12824
  i.current && r(!0);
12825
- }, []), at.useEffect(() => {
12825
+ }, []), ot.useEffect(() => {
12826
12826
  i.current && p.current && (console.log("soundref", p.current), n.current.mute = u, n.current.speed = d, console.log("containerAudio", p.current.volume), p.current.volume = u ? 0 : 1);
12827
12827
  }, [u, d]);
12828
- const _ = at.useCallback(
12828
+ const _ = ot.useCallback(
12829
12829
  (v, x) => {
12830
12830
  p.current = x, n.current.loaded = !0;
12831
12831
  },
12832
12832
  []
12833
12833
  );
12834
- return at.useEffect(() => (ee(h) || (p.current = Jh.from({
12834
+ return ot.useEffect(() => (ee(h) || (p.current = Jh.from({
12835
12835
  url: h,
12836
12836
  preload: !0,
12837
12837
  singleInstance: !0,
@@ -13781,12 +13781,12 @@ Object.defineProperty($i, "__esModule", {
13781
13781
  });
13782
13782
  $i.lzw = void 0;
13783
13783
  var gT = function(t, r, n) {
13784
- var i = 4096, s = -1, a = n, o, l, h, c, f, u, d, S, p, m, x, g, w, E, A, N, y = new Array(n), b = new Array(i), _ = new Array(i), v = new Array(i + 1);
13784
+ var i = 4096, s = -1, a = n, o, l, h, c, f, u, d, S, p, m, x, g, w, T, A, N, y = new Array(n), b = new Array(i), _ = new Array(i), v = new Array(i + 1);
13785
13785
  for (g = t, l = 1 << g, f = l + 1, o = l + 2, d = s, c = g + 1, h = (1 << c) - 1, p = 0; p < l; p++)
13786
13786
  b[p] = 0, _[p] = p;
13787
- var x, S, w, E, N, A;
13788
- for (x = S = w = E = N = A = 0, m = 0; m < a; ) {
13789
- if (E === 0) {
13787
+ var x, S, w, T, N, A;
13788
+ for (x = S = w = T = N = A = 0, m = 0; m < a; ) {
13789
+ if (T === 0) {
13790
13790
  if (S < c) {
13791
13791
  x += r[A] << S, S += 8, A++;
13792
13792
  continue;
@@ -13798,14 +13798,14 @@ var gT = function(t, r, n) {
13798
13798
  continue;
13799
13799
  }
13800
13800
  if (d == s) {
13801
- v[E++] = _[p], d = p, w = p;
13801
+ v[T++] = _[p], d = p, w = p;
13802
13802
  continue;
13803
13803
  }
13804
- for (u = p, p == o && (v[E++] = w, p = d); p > l; )
13805
- v[E++] = _[p], p = b[p];
13806
- w = _[p] & 255, v[E++] = w, o < i && (b[o] = d, _[o] = w, o++, !(o & h) && o < i && (c++, h += o)), d = u;
13804
+ for (u = p, p == o && (v[T++] = w, p = d); p > l; )
13805
+ v[T++] = _[p], p = b[p];
13806
+ w = _[p] & 255, v[T++] = w, o < i && (b[o] = d, _[o] = w, o++, !(o & h) && o < i && (c++, h += o)), d = u;
13807
13807
  }
13808
- E--, y[N++] = v[E], m++;
13808
+ T--, y[N++] = v[T], m++;
13809
13809
  }
13810
13810
  for (m = N; m < a; m++)
13811
13811
  y[m] = 0;
@@ -13942,10 +13942,10 @@ const kT = (e) => ({
13942
13942
  forwardRef: t,
13943
13943
  ...r
13944
13944
  }) => {
13945
- const n = at.useRef(null);
13946
- return at.useImperativeHandle(t, () => n.current, [
13945
+ const n = ot.useRef(null);
13946
+ return ot.useImperativeHandle(t, () => n.current, [
13947
13947
  n
13948
- ]), at.useEffect(() => {
13948
+ ]), ot.useEffect(() => {
13949
13949
  if (n.current === null)
13950
13950
  return;
13951
13951
  const i = n.current;
@@ -13958,7 +13958,7 @@ const kT = (e) => ({
13958
13958
  isPlaying: e
13959
13959
  }
13960
13960
  );
13961
- }, UT = at.memo(DT), $T = sa(Ft, {
13961
+ }, UT = ot.memo(DT), $T = sa(Ft, {
13962
13962
  blur: de.filters.BlurFilter,
13963
13963
  adjust: wa,
13964
13964
  matrix: de.filters.ColorMatrixFilter
@@ -13972,11 +13972,11 @@ const kT = (e) => ({
13972
13972
  size: { width: 50, height: 50 },
13973
13973
  isDragging: !1
13974
13974
  }, aA = (e) => {
13975
- const [t, r] = at.useState([]), [, n] = at.useState(0), [i, s] = at.useState([]), [, a] = le(0), [, o] = le(!1), [l, h] = le(!1), [, c] = le(!1), [f, u] = IT({ autoPlay: !1 }), d = at.useRef(null), p = dt(null), m = dt(null), g = dt(null), y = dt(null), b = dt(null), _ = dt(GT), { tl: v } = yi(vn), { frames: x, delays: S, loaded: w } = f, {
13976
- uniqueId: E,
13975
+ const [t, r] = ot.useState([]), [, n] = ot.useState(0), [i, s] = ot.useState([]), [, a] = le(0), [, o] = le(!1), [l, h] = le(!1), [, c] = le(!1), [f, u] = IT({ autoPlay: !1 }), d = ot.useRef(null), p = dt(null), m = dt(null), g = dt(null), y = dt(null), b = dt(null), _ = dt(GT), { tl: v } = yi(vn), { frames: x, delays: S, loaded: w } = f, {
13976
+ uniqueId: T,
13977
13977
  src: N,
13978
13978
  startAt: A,
13979
- endAt: T,
13979
+ endAt: E,
13980
13980
  initialAlpha: O,
13981
13981
  locked: R,
13982
13982
  loop: C,
@@ -14002,27 +14002,27 @@ const kT = (e) => ({
14002
14002
  applyTransformer: tt,
14003
14003
  onAnchorTransformationEnd: rt
14004
14004
  } = e, {
14005
- contrast: ot = 1,
14005
+ contrast: at = 1,
14006
14006
  saturation: ut = 1,
14007
14007
  exposure: It = 1,
14008
14008
  blurRadius: St = 0,
14009
14009
  alpha: V = 1
14010
14010
  } = P || {}, W = {
14011
14011
  brightness: It,
14012
- contrast: ot,
14012
+ contrast: at,
14013
14013
  saturation: ut,
14014
14014
  alpha: V
14015
14015
  }, Q = Kl();
14016
14016
  BT(N, u), dn(tr.PAUSE, (_t) => {
14017
14017
  console.log("pause event", _t), p.current && (p.current.stop(), _.current.isPlaying = !1);
14018
14018
  });
14019
- const J = at.useCallback(
14019
+ const J = ot.useCallback(
14020
14020
  (_t) => {
14021
14021
  console.log("changeEnd", _t), rt && rt(_t);
14022
14022
  },
14023
14023
  []
14024
14024
  );
14025
- at.useEffect(() => {
14025
+ ot.useEffect(() => {
14026
14026
  if (!ee(x)) {
14027
14027
  const _t = sT(x, (re) => {
14028
14028
  const { data: qt, width: $a, height: zh } = re, Vh = new Uint8Array(qt);
@@ -14056,7 +14056,7 @@ const kT = (e) => ({
14056
14056
  });
14057
14057
  if (m.current && v.current) {
14058
14058
  const xt = {
14059
- duration: Number(T) - Number(A),
14059
+ duration: Number(E) - Number(A),
14060
14060
  onStart: Y,
14061
14061
  onComplete: ht,
14062
14062
  onStartParams: [A],
@@ -14070,28 +14070,28 @@ const kT = (e) => ({
14070
14070
  ee(Mt.from) ? ee(Mt.to) ? ee(Mt.fromTo) ? v.current.to(m.current, { alpha: 1, duration: 0.01 }, A).from(y.current, { ...xt }, A).to(
14071
14071
  m.current,
14072
14072
  { alpha: 0, duration: 0.1 },
14073
- Number(T) - 0.1
14073
+ Number(E) - 0.1
14074
14074
  ) : v.current.fromTo(
14075
14075
  m.current,
14076
14076
  (re = Mt.fromTo) == null ? void 0 : re.from,
14077
14077
  (qt = Mt.fromTo) == null ? void 0 : qt.to,
14078
14078
  A
14079
- ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, T - 0.2) : v.current.to(
14079
+ ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2) : v.current.to(
14080
14080
  m.current,
14081
14081
  { alpha: 1, duration: 0.2, ...Mt.to },
14082
14082
  A
14083
- ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, T - 0.2) : v.current.from(m.current, { ...Mt.from }, A).to(y.current, { alpha: 1, duration: 0.2 }, A).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, T - 0.2);
14083
+ ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2) : v.current.from(m.current, { ...Mt.from }, A).to(y.current, { alpha: 1, duration: 0.2 }, A).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2);
14084
14084
  });
14085
14085
  }
14086
14086
  return () => _t.revert();
14087
- }, [I, A, T]);
14088
- const Gt = at.useCallback(() => {
14087
+ }, [I, A, E]);
14088
+ const Gt = ot.useCallback(() => {
14089
14089
  h(!0);
14090
14090
  }, []);
14091
14091
  Q.ticker.add((_t) => {
14092
14092
  d.current && (d.current.rotation += 0.01 * _t, d.current.clear().lineStyle(4, 16777215, 1).moveTo(40, 0).arc(0, 0, 40, 0, Math.PI * 2 * 0.6, !1));
14093
14093
  });
14094
- const bt = at.useCallback((_t) => {
14094
+ const bt = ot.useCallback((_t) => {
14095
14095
  _t.clear();
14096
14096
  }, []);
14097
14097
  return (
@@ -14167,7 +14167,7 @@ const kT = (e) => ({
14167
14167
  transformCommit: J,
14168
14168
  transformChange: Gt,
14169
14169
  mouseoverEvent: c,
14170
- uniqueId: E
14170
+ uniqueId: T
14171
14171
  }
14172
14172
  )
14173
14173
  ] })
@@ -14570,21 +14570,21 @@ var Hh = { exports: {} };
14570
14570
  value: !0
14571
14571
  }), n.default = n.BlockEmbed = n.bubbleFormats = void 0;
14572
14572
  var s = function() {
14573
- function T(O, R) {
14573
+ function E(O, R) {
14574
14574
  for (var C = 0; C < R.length; C++) {
14575
14575
  var F = R[C];
14576
14576
  F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(O, F.key, F);
14577
14577
  }
14578
14578
  }
14579
14579
  return function(O, R, C) {
14580
- return R && T(O.prototype, R), C && T(O, C), O;
14580
+ return R && E(O.prototype, R), C && E(O, C), O;
14581
14581
  };
14582
- }(), a = function T(O, R, C) {
14582
+ }(), a = function E(O, R, C) {
14583
14583
  O === null && (O = Function.prototype);
14584
14584
  var F = Object.getOwnPropertyDescriptor(O, R);
14585
14585
  if (F === void 0) {
14586
14586
  var U = Object.getPrototypeOf(O);
14587
- return U === null ? void 0 : T(U, R, C);
14587
+ return U === null ? void 0 : E(U, R, C);
14588
14588
  } else {
14589
14589
  if ("value" in F)
14590
14590
  return F.value;
@@ -14592,25 +14592,25 @@ var Hh = { exports: {} };
14592
14592
  return D === void 0 ? void 0 : D.call(C);
14593
14593
  }
14594
14594
  }, o = i(3), l = _(o), h = i(2), c = _(h), f = i(0), u = _(f), d = i(16), p = _(d), m = i(6), g = _(m), y = i(7), b = _(y);
14595
- function _(T) {
14596
- return T && T.__esModule ? T : { default: T };
14595
+ function _(E) {
14596
+ return E && E.__esModule ? E : { default: E };
14597
14597
  }
14598
- function v(T, O) {
14599
- if (!(T instanceof O))
14598
+ function v(E, O) {
14599
+ if (!(E instanceof O))
14600
14600
  throw new TypeError("Cannot call a class as a function");
14601
14601
  }
14602
- function x(T, O) {
14603
- if (!T)
14602
+ function x(E, O) {
14603
+ if (!E)
14604
14604
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14605
- return O && (typeof O == "object" || typeof O == "function") ? O : T;
14605
+ return O && (typeof O == "object" || typeof O == "function") ? O : E;
14606
14606
  }
14607
- function S(T, O) {
14607
+ function S(E, O) {
14608
14608
  if (typeof O != "function" && O !== null)
14609
14609
  throw new TypeError("Super expression must either be null or a function, not " + typeof O);
14610
- T.prototype = Object.create(O && O.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(T, O) : T.__proto__ = O);
14610
+ E.prototype = Object.create(O && O.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(E, O) : E.__proto__ = O);
14611
14611
  }
14612
- var w = 1, E = function(T) {
14613
- S(O, T);
14612
+ var w = 1, T = function(E) {
14613
+ S(O, E);
14614
14614
  function O() {
14615
14615
  return v(this, O), x(this, (O.__proto__ || Object.getPrototypeOf(O)).apply(this, arguments));
14616
14616
  }
@@ -14647,9 +14647,9 @@ var Hh = { exports: {} };
14647
14647
  }
14648
14648
  }]), O;
14649
14649
  }(u.default.Embed);
14650
- E.scope = u.default.Scope.BLOCK_BLOT;
14651
- var N = function(T) {
14652
- S(O, T);
14650
+ T.scope = u.default.Scope.BLOCK_BLOT;
14651
+ var N = function(E) {
14652
+ S(O, E);
14653
14653
  function O(R) {
14654
14654
  v(this, O);
14655
14655
  var C = x(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, R));
@@ -14734,11 +14734,11 @@ var Hh = { exports: {} };
14734
14734
  }]), O;
14735
14735
  }(u.default.Block);
14736
14736
  N.blotName = "block", N.tagName = "P", N.defaultChild = "break", N.allowedChildren = [g.default, u.default.Embed, b.default];
14737
- function A(T) {
14737
+ function A(E) {
14738
14738
  var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14739
- return T == null || (typeof T.formats == "function" && (O = (0, l.default)(O, T.formats())), T.parent == null || T.parent.blotName == "scroll" || T.parent.statics.scope !== T.statics.scope) ? O : A(T.parent, O);
14739
+ return E == null || (typeof E.formats == "function" && (O = (0, l.default)(O, E.formats())), E.parent == null || E.parent.blotName == "scroll" || E.parent.statics.scope !== E.statics.scope) ? O : A(E.parent, O);
14740
14740
  }
14741
- n.bubbleFormats = A, n.BlockEmbed = E, n.default = N;
14741
+ n.bubbleFormats = A, n.BlockEmbed = T, n.default = N;
14742
14742
  },
14743
14743
  /* 5 */
14744
14744
  /***/
@@ -14787,11 +14787,11 @@ var Hh = { exports: {} };
14787
14787
  };
14788
14788
  }();
14789
14789
  i(50);
14790
- var l = i(2), h = A(l), c = i(14), f = A(c), u = i(8), d = A(u), p = i(9), m = A(p), g = i(0), y = A(g), b = i(15), _ = A(b), v = i(3), x = A(v), S = i(10), w = A(S), E = i(34), N = A(E);
14790
+ var l = i(2), h = A(l), c = i(14), f = A(c), u = i(8), d = A(u), p = i(9), m = A(p), g = i(0), y = A(g), b = i(15), _ = A(b), v = i(3), x = A(v), S = i(10), w = A(S), T = i(34), N = A(T);
14791
14791
  function A($) {
14792
14792
  return $ && $.__esModule ? $ : { default: $ };
14793
14793
  }
14794
- function T($, k, I) {
14794
+ function E($, k, I) {
14795
14795
  return k in $ ? Object.defineProperty($, k, { value: I, enumerable: !0, configurable: !0, writable: !0 }) : $[k] = I, $;
14796
14796
  }
14797
14797
  function O($, k) {
@@ -14896,11 +14896,11 @@ var Hh = { exports: {} };
14896
14896
  if (G == null)
14897
14897
  return M;
14898
14898
  if (y.default.query(I, y.default.Scope.BLOCK))
14899
- M = L.editor.formatLine(G.index, G.length, T({}, I, P));
14899
+ M = L.editor.formatLine(G.index, G.length, E({}, I, P));
14900
14900
  else {
14901
14901
  if (G.length === 0)
14902
14902
  return L.selection.format(I, P), M;
14903
- M = L.editor.formatText(G.index, G.length, T({}, I, P));
14903
+ M = L.editor.formatText(G.index, G.length, E({}, I, P));
14904
14904
  }
14905
14905
  return L.setSelection(G, d.default.sources.SILENT), M;
14906
14906
  }, j);
@@ -15324,8 +15324,8 @@ var Hh = { exports: {} };
15324
15324
  } else {
15325
15325
  if ("value" in S)
15326
15326
  return S.value;
15327
- var E = S.get;
15328
- return E === void 0 ? void 0 : E.call(x);
15327
+ var T = S.get;
15328
+ return T === void 0 ? void 0 : T.call(x);
15329
15329
  }
15330
15330
  }, o = i(54), l = f(o), h = i(10), c = f(h);
15331
15331
  function f(b) {
@@ -15373,11 +15373,11 @@ var Hh = { exports: {} };
15373
15373
  }, {
15374
15374
  key: "handleDOM",
15375
15375
  value: function(x) {
15376
- for (var S = arguments.length, w = Array(S > 1 ? S - 1 : 0), E = 1; E < S; E++)
15377
- w[E - 1] = arguments[E];
15376
+ for (var S = arguments.length, w = Array(S > 1 ? S - 1 : 0), T = 1; T < S; T++)
15377
+ w[T - 1] = arguments[T];
15378
15378
  (this.listeners[x.type] || []).forEach(function(N) {
15379
- var A = N.node, T = N.handler;
15380
- (x.target === A || A.contains(x.target)) && T.apply(void 0, [x].concat(w));
15379
+ var A = N.node, E = N.handler;
15380
+ (x.target === A || A.contains(x.target)) && E.apply(void 0, [x].concat(w));
15381
15381
  });
15382
15382
  }
15383
15383
  }, {
@@ -15519,10 +15519,10 @@ var Hh = { exports: {} };
15519
15519
  value: !0
15520
15520
  }), n.default = n.Code = void 0;
15521
15521
  var s = function() {
15522
- function E(N, A) {
15523
- var T = [], O = !0, R = !1, C = void 0;
15522
+ function T(N, A) {
15523
+ var E = [], O = !0, R = !1, C = void 0;
15524
15524
  try {
15525
- for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (T.push(U.value), !(A && T.length === A)); O = !0)
15525
+ for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (E.push(U.value), !(A && E.length === A)); O = !0)
15526
15526
  ;
15527
15527
  } catch (D) {
15528
15528
  R = !0, C = D;
@@ -15534,145 +15534,145 @@ var Hh = { exports: {} };
15534
15534
  throw C;
15535
15535
  }
15536
15536
  }
15537
- return T;
15537
+ return E;
15538
15538
  }
15539
15539
  return function(N, A) {
15540
15540
  if (Array.isArray(N))
15541
15541
  return N;
15542
15542
  if (Symbol.iterator in Object(N))
15543
- return E(N, A);
15543
+ return T(N, A);
15544
15544
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
15545
15545
  };
15546
15546
  }(), a = function() {
15547
- function E(N, A) {
15548
- for (var T = 0; T < A.length; T++) {
15549
- var O = A[T];
15547
+ function T(N, A) {
15548
+ for (var E = 0; E < A.length; E++) {
15549
+ var O = A[E];
15550
15550
  O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(N, O.key, O);
15551
15551
  }
15552
15552
  }
15553
- return function(N, A, T) {
15554
- return A && E(N.prototype, A), T && E(N, T), N;
15553
+ return function(N, A, E) {
15554
+ return A && T(N.prototype, A), E && T(N, E), N;
15555
15555
  };
15556
- }(), o = function E(N, A, T) {
15556
+ }(), o = function T(N, A, E) {
15557
15557
  N === null && (N = Function.prototype);
15558
15558
  var O = Object.getOwnPropertyDescriptor(N, A);
15559
15559
  if (O === void 0) {
15560
15560
  var R = Object.getPrototypeOf(N);
15561
- return R === null ? void 0 : E(R, A, T);
15561
+ return R === null ? void 0 : T(R, A, E);
15562
15562
  } else {
15563
15563
  if ("value" in O)
15564
15564
  return O.value;
15565
15565
  var C = O.get;
15566
- return C === void 0 ? void 0 : C.call(T);
15566
+ return C === void 0 ? void 0 : C.call(E);
15567
15567
  }
15568
15568
  }, l = i(2), h = b(l), c = i(0), f = b(c), u = i(4), d = b(u), p = i(6), m = b(p), g = i(7), y = b(g);
15569
- function b(E) {
15570
- return E && E.__esModule ? E : { default: E };
15569
+ function b(T) {
15570
+ return T && T.__esModule ? T : { default: T };
15571
15571
  }
15572
- function _(E, N) {
15573
- if (!(E instanceof N))
15572
+ function _(T, N) {
15573
+ if (!(T instanceof N))
15574
15574
  throw new TypeError("Cannot call a class as a function");
15575
15575
  }
15576
- function v(E, N) {
15577
- if (!E)
15576
+ function v(T, N) {
15577
+ if (!T)
15578
15578
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15579
- return N && (typeof N == "object" || typeof N == "function") ? N : E;
15579
+ return N && (typeof N == "object" || typeof N == "function") ? N : T;
15580
15580
  }
15581
- function x(E, N) {
15581
+ function x(T, N) {
15582
15582
  if (typeof N != "function" && N !== null)
15583
15583
  throw new TypeError("Super expression must either be null or a function, not " + typeof N);
15584
- E.prototype = Object.create(N && N.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), N && (Object.setPrototypeOf ? Object.setPrototypeOf(E, N) : E.__proto__ = N);
15584
+ T.prototype = Object.create(N && N.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), N && (Object.setPrototypeOf ? Object.setPrototypeOf(T, N) : T.__proto__ = N);
15585
15585
  }
15586
- var S = function(E) {
15587
- x(N, E);
15586
+ var S = function(T) {
15587
+ x(N, T);
15588
15588
  function N() {
15589
15589
  return _(this, N), v(this, (N.__proto__ || Object.getPrototypeOf(N)).apply(this, arguments));
15590
15590
  }
15591
15591
  return N;
15592
15592
  }(m.default);
15593
15593
  S.blotName = "code", S.tagName = "CODE";
15594
- var w = function(E) {
15595
- x(N, E);
15594
+ var w = function(T) {
15595
+ x(N, T);
15596
15596
  function N() {
15597
15597
  return _(this, N), v(this, (N.__proto__ || Object.getPrototypeOf(N)).apply(this, arguments));
15598
15598
  }
15599
15599
  return a(N, [{
15600
15600
  key: "delta",
15601
15601
  value: function() {
15602
- var T = this, O = this.domNode.textContent;
15602
+ var E = this, O = this.domNode.textContent;
15603
15603
  return O.endsWith(`
15604
15604
  `) && (O = O.slice(0, -1)), O.split(`
15605
15605
  `).reduce(function(R, C) {
15606
15606
  return R.insert(C).insert(`
15607
- `, T.formats());
15607
+ `, E.formats());
15608
15608
  }, new h.default());
15609
15609
  }
15610
15610
  }, {
15611
15611
  key: "format",
15612
- value: function(T, O) {
15613
- if (!(T === this.statics.blotName && O)) {
15612
+ value: function(E, O) {
15613
+ if (!(E === this.statics.blotName && O)) {
15614
15614
  var R = this.descendant(y.default, this.length() - 1), C = s(R, 1), F = C[0];
15615
- F != null && F.deleteAt(F.length() - 1, 1), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "format", this).call(this, T, O);
15615
+ F != null && F.deleteAt(F.length() - 1, 1), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "format", this).call(this, E, O);
15616
15616
  }
15617
15617
  }
15618
15618
  }, {
15619
15619
  key: "formatAt",
15620
- value: function(T, O, R, C) {
15620
+ value: function(E, O, R, C) {
15621
15621
  if (O !== 0 && !(f.default.query(R, f.default.Scope.BLOCK) == null || R === this.statics.blotName && C === this.statics.formats(this.domNode))) {
15622
- var F = this.newlineIndex(T);
15623
- if (!(F < 0 || F >= T + O)) {
15624
- var U = this.newlineIndex(T, !0) + 1, D = F - U + 1, z = this.isolate(U, D), $ = z.next;
15625
- z.format(R, C), $ instanceof N && $.formatAt(0, T - U + O - D, R, C);
15622
+ var F = this.newlineIndex(E);
15623
+ if (!(F < 0 || F >= E + O)) {
15624
+ var U = this.newlineIndex(E, !0) + 1, D = F - U + 1, z = this.isolate(U, D), $ = z.next;
15625
+ z.format(R, C), $ instanceof N && $.formatAt(0, E - U + O - D, R, C);
15626
15626
  }
15627
15627
  }
15628
15628
  }
15629
15629
  }, {
15630
15630
  key: "insertAt",
15631
- value: function(T, O, R) {
15631
+ value: function(E, O, R) {
15632
15632
  if (R == null) {
15633
- var C = this.descendant(y.default, T), F = s(C, 2), U = F[0], D = F[1];
15633
+ var C = this.descendant(y.default, E), F = s(C, 2), U = F[0], D = F[1];
15634
15634
  U.insertAt(D, O);
15635
15635
  }
15636
15636
  }
15637
15637
  }, {
15638
15638
  key: "length",
15639
15639
  value: function() {
15640
- var T = this.domNode.textContent.length;
15640
+ var E = this.domNode.textContent.length;
15641
15641
  return this.domNode.textContent.endsWith(`
15642
- `) ? T : T + 1;
15642
+ `) ? E : E + 1;
15643
15643
  }
15644
15644
  }, {
15645
15645
  key: "newlineIndex",
15646
- value: function(T) {
15646
+ value: function(E) {
15647
15647
  var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
15648
15648
  if (O)
15649
- return this.domNode.textContent.slice(0, T).lastIndexOf(`
15649
+ return this.domNode.textContent.slice(0, E).lastIndexOf(`
15650
15650
  `);
15651
- var R = this.domNode.textContent.slice(T).indexOf(`
15651
+ var R = this.domNode.textContent.slice(E).indexOf(`
15652
15652
  `);
15653
- return R > -1 ? T + R : -1;
15653
+ return R > -1 ? E + R : -1;
15654
15654
  }
15655
15655
  }, {
15656
15656
  key: "optimize",
15657
- value: function(T) {
15657
+ value: function(E) {
15658
15658
  this.domNode.textContent.endsWith(`
15659
15659
  `) || this.appendChild(f.default.create("text", `
15660
- `)), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "optimize", this).call(this, T);
15660
+ `)), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "optimize", this).call(this, E);
15661
15661
  var O = this.next;
15662
- O != null && O.prev === this && O.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === O.statics.formats(O.domNode) && (O.optimize(T), O.moveChildren(this), O.remove());
15662
+ O != null && O.prev === this && O.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === O.statics.formats(O.domNode) && (O.optimize(E), O.moveChildren(this), O.remove());
15663
15663
  }
15664
15664
  }, {
15665
15665
  key: "replace",
15666
- value: function(T) {
15667
- o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "replace", this).call(this, T), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O) {
15666
+ value: function(E) {
15667
+ o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "replace", this).call(this, E), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O) {
15668
15668
  var R = f.default.find(O);
15669
15669
  R == null ? O.parentNode.removeChild(O) : R instanceof f.default.Embed ? R.remove() : R.unwrap();
15670
15670
  });
15671
15671
  }
15672
15672
  }], [{
15673
15673
  key: "create",
15674
- value: function(T) {
15675
- var O = o(N.__proto__ || Object.getPrototypeOf(N), "create", this).call(this, T);
15674
+ value: function(E) {
15675
+ var O = o(N.__proto__ || Object.getPrototypeOf(N), "create", this).call(this, E);
15676
15676
  return O.setAttribute("spellcheck", !1), O;
15677
15677
  }
15678
15678
  }, {
@@ -15729,7 +15729,7 @@ var Hh = { exports: {} };
15729
15729
  return function(k, I, P) {
15730
15730
  return I && $(k.prototype, I), P && $(k, P), k;
15731
15731
  };
15732
- }(), l = i(2), h = O(l), c = i(20), f = O(c), u = i(0), d = O(u), p = i(13), m = O(p), g = i(24), y = O(g), b = i(4), _ = O(b), v = i(16), x = O(v), S = i(21), w = O(S), E = i(11), N = O(E), A = i(3), T = O(A);
15732
+ }(), l = i(2), h = O(l), c = i(20), f = O(c), u = i(0), d = O(u), p = i(13), m = O(p), g = i(24), y = O(g), b = i(4), _ = O(b), v = i(16), x = O(v), S = i(21), w = O(S), T = i(11), N = O(T), A = i(3), E = O(A);
15733
15733
  function O($) {
15734
15734
  return $ && $.__esModule ? $ : { default: $ };
15735
15735
  }
@@ -15758,12 +15758,12 @@ var Hh = { exports: {} };
15758
15758
  H.endsWith(`
15759
15759
  `) && L && (L = !1, H = H.slice(0, -1)), G >= j && !H.endsWith(`
15760
15760
  `) && (L = !0), P.scroll.insertAt(G, H);
15761
- var X = P.scroll.line(G), K = a(X, 2), tt = K[0], rt = K[1], ot = (0, T.default)({}, (0, b.bubbleFormats)(tt));
15761
+ var X = P.scroll.line(G), K = a(X, 2), tt = K[0], rt = K[1], at = (0, E.default)({}, (0, b.bubbleFormats)(tt));
15762
15762
  if (tt instanceof _.default) {
15763
15763
  var ut = tt.descendant(d.default.Leaf, rt), It = a(ut, 1), St = It[0];
15764
- ot = (0, T.default)(ot, (0, b.bubbleFormats)(St));
15764
+ at = (0, E.default)(at, (0, b.bubbleFormats)(St));
15765
15765
  }
15766
- q = f.default.attributes.diff(ot, q) || {};
15766
+ q = f.default.attributes.diff(at, q) || {};
15767
15767
  } else if (s(M.insert) === "object") {
15768
15768
  var V = Object.keys(M.insert)[0];
15769
15769
  if (V == null)
@@ -15843,7 +15843,7 @@ var Hh = { exports: {} };
15843
15843
  }
15844
15844
  return B;
15845
15845
  });
15846
- return T.default.apply(T.default, G);
15846
+ return E.default.apply(E.default, G);
15847
15847
  }
15848
15848
  }, {
15849
15849
  key: "getText",
@@ -15932,10 +15932,10 @@ var Hh = { exports: {} };
15932
15932
  value: !0
15933
15933
  }), n.default = n.Range = void 0;
15934
15934
  var s = function() {
15935
- function E(N, A) {
15936
- var T = [], O = !0, R = !1, C = void 0;
15935
+ function T(N, A) {
15936
+ var E = [], O = !0, R = !1, C = void 0;
15937
15937
  try {
15938
- for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (T.push(U.value), !(A && T.length === A)); O = !0)
15938
+ for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (E.push(U.value), !(A && E.length === A)); O = !0)
15939
15939
  ;
15940
15940
  } catch (D) {
15941
15941
  R = !0, C = D;
@@ -15947,57 +15947,57 @@ var Hh = { exports: {} };
15947
15947
  throw C;
15948
15948
  }
15949
15949
  }
15950
- return T;
15950
+ return E;
15951
15951
  }
15952
15952
  return function(N, A) {
15953
15953
  if (Array.isArray(N))
15954
15954
  return N;
15955
15955
  if (Symbol.iterator in Object(N))
15956
- return E(N, A);
15956
+ return T(N, A);
15957
15957
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
15958
15958
  };
15959
15959
  }(), a = function() {
15960
- function E(N, A) {
15961
- for (var T = 0; T < A.length; T++) {
15962
- var O = A[T];
15960
+ function T(N, A) {
15961
+ for (var E = 0; E < A.length; E++) {
15962
+ var O = A[E];
15963
15963
  O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(N, O.key, O);
15964
15964
  }
15965
15965
  }
15966
- return function(N, A, T) {
15967
- return A && E(N.prototype, A), T && E(N, T), N;
15966
+ return function(N, A, E) {
15967
+ return A && T(N.prototype, A), E && T(N, E), N;
15968
15968
  };
15969
15969
  }(), o = i(0), l = y(o), h = i(21), c = y(h), f = i(11), u = y(f), d = i(8), p = y(d), m = i(10), g = y(m);
15970
- function y(E) {
15971
- return E && E.__esModule ? E : { default: E };
15970
+ function y(T) {
15971
+ return T && T.__esModule ? T : { default: T };
15972
15972
  }
15973
- function b(E) {
15974
- if (Array.isArray(E)) {
15975
- for (var N = 0, A = Array(E.length); N < E.length; N++)
15976
- A[N] = E[N];
15973
+ function b(T) {
15974
+ if (Array.isArray(T)) {
15975
+ for (var N = 0, A = Array(T.length); N < T.length; N++)
15976
+ A[N] = T[N];
15977
15977
  return A;
15978
15978
  } else
15979
- return Array.from(E);
15979
+ return Array.from(T);
15980
15980
  }
15981
- function _(E, N) {
15982
- if (!(E instanceof N))
15981
+ function _(T, N) {
15982
+ if (!(T instanceof N))
15983
15983
  throw new TypeError("Cannot call a class as a function");
15984
15984
  }
15985
- var v = (0, g.default)("quill:selection"), x = function E(N) {
15985
+ var v = (0, g.default)("quill:selection"), x = function T(N) {
15986
15986
  var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
15987
- _(this, E), this.index = N, this.length = A;
15987
+ _(this, T), this.index = N, this.length = A;
15988
15988
  }, S = function() {
15989
- function E(N, A) {
15990
- var T = this;
15991
- _(this, E), this.emitter = A, this.scroll = N, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = l.default.create("cursor", this), this.lastRange = this.savedRange = new x(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
15992
- T.mouseDown || setTimeout(T.update.bind(T, p.default.sources.USER), 1);
15989
+ function T(N, A) {
15990
+ var E = this;
15991
+ _(this, T), this.emitter = A, this.scroll = N, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = l.default.create("cursor", this), this.lastRange = this.savedRange = new x(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
15992
+ E.mouseDown || setTimeout(E.update.bind(E, p.default.sources.USER), 1);
15993
15993
  }), this.emitter.on(p.default.events.EDITOR_CHANGE, function(O, R) {
15994
- O === p.default.events.TEXT_CHANGE && R.length() > 0 && T.update(p.default.sources.SILENT);
15994
+ O === p.default.events.TEXT_CHANGE && R.length() > 0 && E.update(p.default.sources.SILENT);
15995
15995
  }), this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE, function() {
15996
- if (T.hasFocus()) {
15997
- var O = T.getNativeRange();
15998
- O != null && O.start.node !== T.cursor.textNode && T.emitter.once(p.default.events.SCROLL_UPDATE, function() {
15996
+ if (E.hasFocus()) {
15997
+ var O = E.getNativeRange();
15998
+ O != null && O.start.node !== E.cursor.textNode && E.emitter.once(p.default.events.SCROLL_UPDATE, function() {
15999
15999
  try {
16000
- T.setNativeRange(O.start.node, O.start.offset, O.end.node, O.end.offset);
16000
+ E.setNativeRange(O.start.node, O.start.offset, O.end.node, O.end.offset);
16001
16001
  } catch {
16002
16002
  }
16003
16003
  });
@@ -16005,11 +16005,11 @@ var Hh = { exports: {} };
16005
16005
  }), this.emitter.on(p.default.events.SCROLL_OPTIMIZE, function(O, R) {
16006
16006
  if (R.range) {
16007
16007
  var C = R.range, F = C.startNode, U = C.startOffset, D = C.endNode, z = C.endOffset;
16008
- T.setNativeRange(F, U, D, z);
16008
+ E.setNativeRange(F, U, D, z);
16009
16009
  }
16010
16010
  }), this.update(p.default.sources.SILENT);
16011
16011
  }
16012
- return a(E, [{
16012
+ return a(T, [{
16013
16013
  key: "handleComposition",
16014
16014
  value: function() {
16015
16015
  var A = this;
@@ -16017,11 +16017,11 @@ var Hh = { exports: {} };
16017
16017
  A.composing = !0;
16018
16018
  }), this.root.addEventListener("compositionend", function() {
16019
16019
  if (A.composing = !1, A.cursor.parent) {
16020
- var T = A.cursor.restore();
16021
- if (!T)
16020
+ var E = A.cursor.restore();
16021
+ if (!E)
16022
16022
  return;
16023
16023
  setTimeout(function() {
16024
- A.setNativeRange(T.startNode, T.startOffset, T.endNode, T.endOffset);
16024
+ A.setNativeRange(E.startNode, E.startOffset, E.endNode, E.endOffset);
16025
16025
  }, 1);
16026
16026
  }
16027
16027
  });
@@ -16043,7 +16043,7 @@ var Hh = { exports: {} };
16043
16043
  }
16044
16044
  }, {
16045
16045
  key: "format",
16046
- value: function(A, T) {
16046
+ value: function(A, E) {
16047
16047
  if (!(this.scroll.whitelist != null && !this.scroll.whitelist[A])) {
16048
16048
  this.scroll.update();
16049
16049
  var O = this.getNativeRange();
@@ -16059,24 +16059,24 @@ var Hh = { exports: {} };
16059
16059
  R.insertBefore(this.cursor, O.start.node);
16060
16060
  this.cursor.attach();
16061
16061
  }
16062
- this.cursor.format(A, T), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
16062
+ this.cursor.format(A, E), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
16063
16063
  }
16064
16064
  }
16065
16065
  }
16066
16066
  }, {
16067
16067
  key: "getBounds",
16068
16068
  value: function(A) {
16069
- var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, O = this.scroll.length();
16070
- A = Math.min(A, O - 1), T = Math.min(A + T, O - 1) - A;
16069
+ var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, O = this.scroll.length();
16070
+ A = Math.min(A, O - 1), E = Math.min(A + E, O - 1) - A;
16071
16071
  var R = void 0, C = this.scroll.leaf(A), F = s(C, 2), U = F[0], D = F[1];
16072
16072
  if (U == null)
16073
16073
  return null;
16074
16074
  var z = U.position(D, !0), $ = s(z, 2);
16075
16075
  R = $[0], D = $[1];
16076
16076
  var k = document.createRange();
16077
- if (T > 0) {
16077
+ if (E > 0) {
16078
16078
  k.setStart(R, D);
16079
- var I = this.scroll.leaf(A + T), P = s(I, 2);
16079
+ var I = this.scroll.leaf(A + E), P = s(I, 2);
16080
16080
  if (U = P[0], D = P[1], U == null)
16081
16081
  return null;
16082
16082
  var L = U.position(D, !0), j = s(L, 2);
@@ -16099,10 +16099,10 @@ var Hh = { exports: {} };
16099
16099
  var A = document.getSelection();
16100
16100
  if (A == null || A.rangeCount <= 0)
16101
16101
  return null;
16102
- var T = A.getRangeAt(0);
16103
- if (T == null)
16102
+ var E = A.getRangeAt(0);
16103
+ if (E == null)
16104
16104
  return null;
16105
- var O = this.normalizeNative(T);
16105
+ var O = this.normalizeNative(E);
16106
16106
  return v.info("getNativeRange", O), O;
16107
16107
  }
16108
16108
  }, {
@@ -16111,8 +16111,8 @@ var Hh = { exports: {} };
16111
16111
  var A = this.getNativeRange();
16112
16112
  if (A == null)
16113
16113
  return [null, null];
16114
- var T = this.normalizedToRange(A);
16115
- return [T, A];
16114
+ var E = this.normalizedToRange(A);
16115
+ return [E, A];
16116
16116
  }
16117
16117
  }, {
16118
16118
  key: "hasFocus",
@@ -16122,10 +16122,10 @@ var Hh = { exports: {} };
16122
16122
  }, {
16123
16123
  key: "normalizedToRange",
16124
16124
  value: function(A) {
16125
- var T = this, O = [[A.start.node, A.start.offset]];
16125
+ var E = this, O = [[A.start.node, A.start.offset]];
16126
16126
  A.native.collapsed || O.push([A.end.node, A.end.offset]);
16127
16127
  var R = O.map(function(U) {
16128
- var D = s(U, 2), z = D[0], $ = D[1], k = l.default.find(z, !0), I = k.offset(T.scroll);
16128
+ var D = s(U, 2), z = D[0], $ = D[1], k = l.default.find(z, !0), I = k.offset(E.scroll);
16129
16129
  return $ === 0 ? I : k instanceof l.default.Container ? I + k.length() : I + k.index(z, $);
16130
16130
  }), C = Math.min(Math.max.apply(Math, b(R)), this.scroll.length() - 1), F = Math.min.apply(Math, [C].concat(b(R)));
16131
16131
  return new x(F, C - F);
@@ -16135,12 +16135,12 @@ var Hh = { exports: {} };
16135
16135
  value: function(A) {
16136
16136
  if (!w(this.root, A.startContainer) || !A.collapsed && !w(this.root, A.endContainer))
16137
16137
  return null;
16138
- var T = {
16138
+ var E = {
16139
16139
  start: { node: A.startContainer, offset: A.startOffset },
16140
16140
  end: { node: A.endContainer, offset: A.endOffset },
16141
16141
  native: A
16142
16142
  };
16143
- return [T.start, T.end].forEach(function(O) {
16143
+ return [E.start, E.end].forEach(function(O) {
16144
16144
  for (var R = O.node, C = O.offset; !(R instanceof Text) && R.childNodes.length > 0; )
16145
16145
  if (R.childNodes.length > C)
16146
16146
  R = R.childNodes[C], C = 0;
@@ -16149,28 +16149,28 @@ var Hh = { exports: {} };
16149
16149
  else
16150
16150
  break;
16151
16151
  O.node = R, O.offset = C;
16152
- }), T;
16152
+ }), E;
16153
16153
  }
16154
16154
  }, {
16155
16155
  key: "rangeToNative",
16156
16156
  value: function(A) {
16157
- var T = this, O = A.collapsed ? [A.index] : [A.index, A.index + A.length], R = [], C = this.scroll.length();
16157
+ var E = this, O = A.collapsed ? [A.index] : [A.index, A.index + A.length], R = [], C = this.scroll.length();
16158
16158
  return O.forEach(function(F, U) {
16159
16159
  F = Math.min(C - 1, F);
16160
- var D = void 0, z = T.scroll.leaf(F), $ = s(z, 2), k = $[0], I = $[1], P = k.position(I, U !== 0), L = s(P, 2);
16160
+ var D = void 0, z = E.scroll.leaf(F), $ = s(z, 2), k = $[0], I = $[1], P = k.position(I, U !== 0), L = s(P, 2);
16161
16161
  D = L[0], I = L[1], R.push(D, I);
16162
16162
  }), R.length < 2 && (R = R.concat(R)), R;
16163
16163
  }
16164
16164
  }, {
16165
16165
  key: "scrollIntoView",
16166
16166
  value: function(A) {
16167
- var T = this.lastRange;
16168
- if (T != null) {
16169
- var O = this.getBounds(T.index, T.length);
16167
+ var E = this.lastRange;
16168
+ if (E != null) {
16169
+ var O = this.getBounds(E.index, E.length);
16170
16170
  if (O != null) {
16171
- var R = this.scroll.length() - 1, C = this.scroll.line(Math.min(T.index, R)), F = s(C, 1), U = F[0], D = U;
16172
- if (T.length > 0) {
16173
- var z = this.scroll.line(Math.min(T.index + T.length, R)), $ = s(z, 1);
16171
+ var R = this.scroll.length() - 1, C = this.scroll.line(Math.min(E.index, R)), F = s(C, 1), U = F[0], D = U;
16172
+ if (E.length > 0) {
16173
+ var z = this.scroll.line(Math.min(E.index + E.length, R)), $ = s(z, 1);
16174
16174
  D = $[0];
16175
16175
  }
16176
16176
  if (!(U == null || D == null)) {
@@ -16182,18 +16182,18 @@ var Hh = { exports: {} };
16182
16182
  }
16183
16183
  }, {
16184
16184
  key: "setNativeRange",
16185
- value: function(A, T) {
16186
- var O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : A, R = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : T, C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
16187
- if (v.info("setNativeRange", A, T, O, R), !(A != null && (this.root.parentNode == null || A.parentNode == null || O.parentNode == null))) {
16185
+ value: function(A, E) {
16186
+ var O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : A, R = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : E, C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
16187
+ if (v.info("setNativeRange", A, E, O, R), !(A != null && (this.root.parentNode == null || A.parentNode == null || O.parentNode == null))) {
16188
16188
  var F = document.getSelection();
16189
16189
  if (F != null)
16190
16190
  if (A != null) {
16191
16191
  this.hasFocus() || this.root.focus();
16192
16192
  var U = (this.getNativeRange() || {}).native;
16193
- if (U == null || C || A !== U.startContainer || T !== U.startOffset || O !== U.endContainer || R !== U.endOffset) {
16194
- A.tagName == "BR" && (T = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode), O.tagName == "BR" && (R = [].indexOf.call(O.parentNode.childNodes, O), O = O.parentNode);
16193
+ if (U == null || C || A !== U.startContainer || E !== U.startOffset || O !== U.endContainer || R !== U.endOffset) {
16194
+ A.tagName == "BR" && (E = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode), O.tagName == "BR" && (R = [].indexOf.call(O.parentNode.childNodes, O), O = O.parentNode);
16195
16195
  var D = document.createRange();
16196
- D.setStart(A, T), D.setEnd(O, R), F.removeAllRanges(), F.addRange(D);
16196
+ D.setStart(A, E), D.setEnd(O, R), F.removeAllRanges(), F.addRange(D);
16197
16197
  }
16198
16198
  } else
16199
16199
  F.removeAllRanges(), this.root.blur(), document.body.focus();
@@ -16202,10 +16202,10 @@ var Hh = { exports: {} };
16202
16202
  }, {
16203
16203
  key: "setRange",
16204
16204
  value: function(A) {
16205
- var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : p.default.sources.API;
16206
- if (typeof T == "string" && (O = T, T = !1), v.info("setRange", A), A != null) {
16205
+ var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : p.default.sources.API;
16206
+ if (typeof E == "string" && (O = E, E = !1), v.info("setRange", A), A != null) {
16207
16207
  var R = this.rangeToNative(A);
16208
- this.setNativeRange.apply(this, b(R).concat([T]));
16208
+ this.setNativeRange.apply(this, b(R).concat([E]));
16209
16209
  } else
16210
16210
  this.setNativeRange(null);
16211
16211
  this.update(O);
@@ -16213,26 +16213,26 @@ var Hh = { exports: {} };
16213
16213
  }, {
16214
16214
  key: "update",
16215
16215
  value: function() {
16216
- var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p.default.sources.USER, T = this.lastRange, O = this.getRange(), R = s(O, 2), C = R[0], F = R[1];
16217
- if (this.lastRange = C, this.lastRange != null && (this.savedRange = this.lastRange), !(0, u.default)(T, this.lastRange)) {
16216
+ var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p.default.sources.USER, E = this.lastRange, O = this.getRange(), R = s(O, 2), C = R[0], F = R[1];
16217
+ if (this.lastRange = C, this.lastRange != null && (this.savedRange = this.lastRange), !(0, u.default)(E, this.lastRange)) {
16218
16218
  var U;
16219
16219
  !this.composing && F != null && F.native.collapsed && F.start.node !== this.cursor.textNode && this.cursor.restore();
16220
- var D = [p.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(T), A];
16220
+ var D = [p.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(E), A];
16221
16221
  if ((U = this.emitter).emit.apply(U, [p.default.events.EDITOR_CHANGE].concat(D)), A !== p.default.sources.SILENT) {
16222
16222
  var z;
16223
16223
  (z = this.emitter).emit.apply(z, D);
16224
16224
  }
16225
16225
  }
16226
16226
  }
16227
- }]), E;
16227
+ }]), T;
16228
16228
  }();
16229
- function w(E, N) {
16229
+ function w(T, N) {
16230
16230
  try {
16231
16231
  N.parentNode;
16232
16232
  } catch {
16233
16233
  return !1;
16234
16234
  }
16235
- return N instanceof Text && (N = N.parentNode), E.contains(N);
16235
+ return N instanceof Text && (N = N.parentNode), T.contains(N);
16236
16236
  }
16237
16237
  n.Range = x, n.default = S;
16238
16238
  },
@@ -16666,65 +16666,65 @@ var Hh = { exports: {} };
16666
16666
  typeof g == "object" && (y = g.depth, b = g.prototype, _ = g.includeNonEnumerable, g = g.circular);
16667
16667
  var v = [], x = [], S = typeof Buffer < "u";
16668
16668
  typeof g > "u" && (g = !0), typeof y > "u" && (y = 1 / 0);
16669
- function w(E, N) {
16670
- if (E === null)
16669
+ function w(T, N) {
16670
+ if (T === null)
16671
16671
  return null;
16672
16672
  if (N === 0)
16673
- return E;
16674
- var A, T;
16675
- if (typeof E != "object")
16676
- return E;
16677
- if (s(E, a))
16673
+ return T;
16674
+ var A, E;
16675
+ if (typeof T != "object")
16676
+ return T;
16677
+ if (s(T, a))
16678
16678
  A = new a();
16679
- else if (s(E, o))
16679
+ else if (s(T, o))
16680
16680
  A = new o();
16681
- else if (s(E, l))
16681
+ else if (s(T, l))
16682
16682
  A = new l(function(k, I) {
16683
- E.then(function(P) {
16683
+ T.then(function(P) {
16684
16684
  k(w(P, N - 1));
16685
16685
  }, function(P) {
16686
16686
  I(w(P, N - 1));
16687
16687
  });
16688
16688
  });
16689
- else if (h.__isArray(E))
16689
+ else if (h.__isArray(T))
16690
16690
  A = [];
16691
- else if (h.__isRegExp(E))
16692
- A = new RegExp(E.source, p(E)), E.lastIndex && (A.lastIndex = E.lastIndex);
16693
- else if (h.__isDate(E))
16694
- A = new Date(E.getTime());
16691
+ else if (h.__isRegExp(T))
16692
+ A = new RegExp(T.source, p(T)), T.lastIndex && (A.lastIndex = T.lastIndex);
16693
+ else if (h.__isDate(T))
16694
+ A = new Date(T.getTime());
16695
16695
  else {
16696
- if (S && Buffer.isBuffer(E))
16697
- return Buffer.allocUnsafe ? A = Buffer.allocUnsafe(E.length) : A = new Buffer(E.length), E.copy(A), A;
16698
- s(E, Error) ? A = Object.create(E) : typeof b > "u" ? (T = Object.getPrototypeOf(E), A = Object.create(T)) : (A = Object.create(b), T = b);
16696
+ if (S && Buffer.isBuffer(T))
16697
+ return Buffer.allocUnsafe ? A = Buffer.allocUnsafe(T.length) : A = new Buffer(T.length), T.copy(A), A;
16698
+ s(T, Error) ? A = Object.create(T) : typeof b > "u" ? (E = Object.getPrototypeOf(T), A = Object.create(E)) : (A = Object.create(b), E = b);
16699
16699
  }
16700
16700
  if (g) {
16701
- var O = v.indexOf(E);
16701
+ var O = v.indexOf(T);
16702
16702
  if (O != -1)
16703
16703
  return x[O];
16704
- v.push(E), x.push(A);
16704
+ v.push(T), x.push(A);
16705
16705
  }
16706
- s(E, a) && E.forEach(function(k, I) {
16706
+ s(T, a) && T.forEach(function(k, I) {
16707
16707
  var P = w(I, N - 1), L = w(k, N - 1);
16708
16708
  A.set(P, L);
16709
- }), s(E, o) && E.forEach(function(k) {
16709
+ }), s(T, o) && T.forEach(function(k) {
16710
16710
  var I = w(k, N - 1);
16711
16711
  A.add(I);
16712
16712
  });
16713
- for (var R in E) {
16713
+ for (var R in T) {
16714
16714
  var C;
16715
- T && (C = Object.getOwnPropertyDescriptor(T, R)), !(C && C.set == null) && (A[R] = w(E[R], N - 1));
16715
+ E && (C = Object.getOwnPropertyDescriptor(E, R)), !(C && C.set == null) && (A[R] = w(T[R], N - 1));
16716
16716
  }
16717
16717
  if (Object.getOwnPropertySymbols)
16718
- for (var F = Object.getOwnPropertySymbols(E), R = 0; R < F.length; R++) {
16719
- var U = F[R], D = Object.getOwnPropertyDescriptor(E, U);
16720
- D && !D.enumerable && !_ || (A[U] = w(E[U], N - 1), D.enumerable || Object.defineProperty(A, U, {
16718
+ for (var F = Object.getOwnPropertySymbols(T), R = 0; R < F.length; R++) {
16719
+ var U = F[R], D = Object.getOwnPropertyDescriptor(T, U);
16720
+ D && !D.enumerable && !_ || (A[U] = w(T[U], N - 1), D.enumerable || Object.defineProperty(A, U, {
16721
16721
  enumerable: !1
16722
16722
  }));
16723
16723
  }
16724
16724
  if (_)
16725
- for (var z = Object.getOwnPropertyNames(E), R = 0; R < z.length; R++) {
16726
- var $ = z[R], D = Object.getOwnPropertyDescriptor(E, $);
16727
- D && D.enumerable || (A[$] = w(E[$], N - 1), Object.defineProperty(A, $, {
16725
+ for (var z = Object.getOwnPropertyNames(T), R = 0; R < z.length; R++) {
16726
+ var $ = z[R], D = Object.getOwnPropertyDescriptor(T, $);
16727
+ D && D.enumerable || (A[$] = w(T[$], N - 1), Object.defineProperty(A, $, {
16728
16728
  enumerable: !1
16729
16729
  }));
16730
16730
  }
@@ -16770,10 +16770,10 @@ var Hh = { exports: {} };
16770
16770
  value: !0
16771
16771
  });
16772
16772
  var s = function() {
16773
- function A(T, O) {
16773
+ function A(E, O) {
16774
16774
  var R = [], C = !0, F = !1, U = void 0;
16775
16775
  try {
16776
- for (var D = T[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
16776
+ for (var D = E[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
16777
16777
  ;
16778
16778
  } catch ($) {
16779
16779
  F = !0, U = $;
@@ -16787,28 +16787,28 @@ var Hh = { exports: {} };
16787
16787
  }
16788
16788
  return R;
16789
16789
  }
16790
- return function(T, O) {
16791
- if (Array.isArray(T))
16792
- return T;
16793
- if (Symbol.iterator in Object(T))
16794
- return A(T, O);
16790
+ return function(E, O) {
16791
+ if (Array.isArray(E))
16792
+ return E;
16793
+ if (Symbol.iterator in Object(E))
16794
+ return A(E, O);
16795
16795
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
16796
16796
  };
16797
16797
  }(), a = function() {
16798
- function A(T, O) {
16798
+ function A(E, O) {
16799
16799
  for (var R = 0; R < O.length; R++) {
16800
16800
  var C = O[R];
16801
- C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(T, C.key, C);
16801
+ C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(E, C.key, C);
16802
16802
  }
16803
16803
  }
16804
- return function(T, O, R) {
16805
- return O && A(T.prototype, O), R && A(T, R), T;
16804
+ return function(E, O, R) {
16805
+ return O && A(E.prototype, O), R && A(E, R), E;
16806
16806
  };
16807
- }(), o = function A(T, O, R) {
16808
- T === null && (T = Function.prototype);
16809
- var C = Object.getOwnPropertyDescriptor(T, O);
16807
+ }(), o = function A(E, O, R) {
16808
+ E === null && (E = Function.prototype);
16809
+ var C = Object.getOwnPropertyDescriptor(E, O);
16810
16810
  if (C === void 0) {
16811
- var F = Object.getPrototypeOf(T);
16811
+ var F = Object.getPrototypeOf(E);
16812
16812
  return F === null ? void 0 : A(F, O, R);
16813
16813
  } else {
16814
16814
  if ("value" in C)
@@ -16820,34 +16820,34 @@ var Hh = { exports: {} };
16820
16820
  function v(A) {
16821
16821
  return A && A.__esModule ? A : { default: A };
16822
16822
  }
16823
- function x(A, T) {
16824
- if (!(A instanceof T))
16823
+ function x(A, E) {
16824
+ if (!(A instanceof E))
16825
16825
  throw new TypeError("Cannot call a class as a function");
16826
16826
  }
16827
- function S(A, T) {
16827
+ function S(A, E) {
16828
16828
  if (!A)
16829
16829
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16830
- return T && (typeof T == "object" || typeof T == "function") ? T : A;
16830
+ return E && (typeof E == "object" || typeof E == "function") ? E : A;
16831
16831
  }
16832
- function w(A, T) {
16833
- if (typeof T != "function" && T !== null)
16834
- throw new TypeError("Super expression must either be null or a function, not " + typeof T);
16835
- A.prototype = Object.create(T && T.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(A, T) : A.__proto__ = T);
16832
+ function w(A, E) {
16833
+ if (typeof E != "function" && E !== null)
16834
+ throw new TypeError("Super expression must either be null or a function, not " + typeof E);
16835
+ A.prototype = Object.create(E && E.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(A, E) : A.__proto__ = E);
16836
16836
  }
16837
- function E(A) {
16837
+ function T(A) {
16838
16838
  return A instanceof d.default || A instanceof u.BlockEmbed;
16839
16839
  }
16840
16840
  var N = function(A) {
16841
- w(T, A);
16842
- function T(O, R) {
16843
- x(this, T);
16844
- var C = S(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, O));
16841
+ w(E, A);
16842
+ function E(O, R) {
16843
+ x(this, E);
16844
+ var C = S(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O));
16845
16845
  return C.emitter = R.emitter, Array.isArray(R.whitelist) && (C.whitelist = R.whitelist.reduce(function(F, U) {
16846
16846
  return F[U] = !0, F;
16847
16847
  }, {})), C.domNode.addEventListener("DOMNodeInserted", function() {
16848
16848
  }), C.optimize(), C.enable(), C;
16849
16849
  }
16850
- return a(T, [{
16850
+ return a(E, [{
16851
16851
  key: "batchStart",
16852
16852
  value: function() {
16853
16853
  this.batch = !0;
@@ -16861,7 +16861,7 @@ var Hh = { exports: {} };
16861
16861
  key: "deleteAt",
16862
16862
  value: function(R, C) {
16863
16863
  var F = this.line(R), U = s(F, 2), D = U[0], z = U[1], $ = this.line(R + C), k = s($, 1), I = k[0];
16864
- if (o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "deleteAt", this).call(this, R, C), I != null && D !== I && z > 0) {
16864
+ if (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "deleteAt", this).call(this, R, C), I != null && D !== I && z > 0) {
16865
16865
  if (D instanceof u.BlockEmbed || I instanceof u.BlockEmbed) {
16866
16866
  this.optimize();
16867
16867
  return;
@@ -16890,7 +16890,7 @@ var Hh = { exports: {} };
16890
16890
  }, {
16891
16891
  key: "formatAt",
16892
16892
  value: function(R, C, F, U) {
16893
- this.whitelist != null && !this.whitelist[F] || (o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "formatAt", this).call(this, R, C, F, U), this.optimize());
16893
+ this.whitelist != null && !this.whitelist[F] || (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "formatAt", this).call(this, R, C, F, U), this.optimize());
16894
16894
  }
16895
16895
  }, {
16896
16896
  key: "insertAt",
@@ -16906,7 +16906,7 @@ var Hh = { exports: {} };
16906
16906
  this.appendChild(D);
16907
16907
  }
16908
16908
  else
16909
- o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "insertAt", this).call(this, R, C, F);
16909
+ o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "insertAt", this).call(this, R, C, F);
16910
16910
  this.optimize();
16911
16911
  }
16912
16912
  }
@@ -16917,7 +16917,7 @@ var Hh = { exports: {} };
16917
16917
  var F = h.default.create(this.statics.defaultChild);
16918
16918
  F.appendChild(R), R = F;
16919
16919
  }
16920
- o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "insertBefore", this).call(this, R, C);
16920
+ o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "insertBefore", this).call(this, R, C);
16921
16921
  }
16922
16922
  }, {
16923
16923
  key: "leaf",
@@ -16927,7 +16927,7 @@ var Hh = { exports: {} };
16927
16927
  }, {
16928
16928
  key: "line",
16929
16929
  value: function(R) {
16930
- return R === this.length() ? this.line(R - 1) : this.descendant(E, R);
16930
+ return R === this.length() ? this.line(R - 1) : this.descendant(T, R);
16931
16931
  }
16932
16932
  }, {
16933
16933
  key: "lines",
@@ -16935,7 +16935,7 @@ var Hh = { exports: {} };
16935
16935
  var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, F = function U(D, z, $) {
16936
16936
  var k = [], I = $;
16937
16937
  return D.children.forEachAt(z, $, function(P, L, j) {
16938
- E(P) ? k.push(P) : P instanceof h.default.Container && (k = k.concat(U(P, L, I))), I -= j;
16938
+ T(P) ? k.push(P) : P instanceof h.default.Container && (k = k.concat(U(P, L, I))), I -= j;
16939
16939
  }), k;
16940
16940
  };
16941
16941
  return F(this, R, C);
@@ -16944,22 +16944,22 @@ var Hh = { exports: {} };
16944
16944
  key: "optimize",
16945
16945
  value: function() {
16946
16946
  var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
16947
- this.batch !== !0 && (o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "optimize", this).call(this, R, C), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_OPTIMIZE, R, C));
16947
+ this.batch !== !0 && (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "optimize", this).call(this, R, C), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_OPTIMIZE, R, C));
16948
16948
  }
16949
16949
  }, {
16950
16950
  key: "path",
16951
16951
  value: function(R) {
16952
- return o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "path", this).call(this, R).slice(1);
16952
+ return o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "path", this).call(this, R).slice(1);
16953
16953
  }
16954
16954
  }, {
16955
16955
  key: "update",
16956
16956
  value: function(R) {
16957
16957
  if (this.batch !== !0) {
16958
16958
  var C = f.default.sources.USER;
16959
- typeof R == "string" && (C = R), Array.isArray(R) || (R = this.observer.takeRecords()), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE, C, R), o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "update", this).call(this, R.concat([])), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_UPDATE, C, R);
16959
+ typeof R == "string" && (C = R), Array.isArray(R) || (R = this.observer.takeRecords()), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE, C, R), o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "update", this).call(this, R.concat([])), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_UPDATE, C, R);
16960
16960
  }
16961
16961
  }
16962
- }]), T;
16962
+ }]), E;
16963
16963
  }(h.default.Scroll);
16964
16964
  N.blotName = "scroll", N.className = "ql-editor", N.tagName = "DIV", N.defaultChild = "block", N.allowedChildren = [d.default, u.BlockEmbed, _.default], n.default = N;
16965
16965
  },
@@ -16977,7 +16977,7 @@ var Hh = { exports: {} };
16977
16977
  function M(B, q) {
16978
16978
  var H = [], X = !0, K = !1, tt = void 0;
16979
16979
  try {
16980
- for (var rt = B[Symbol.iterator](), ot; !(X = (ot = rt.next()).done) && (H.push(ot.value), !(q && H.length === q)); X = !0)
16980
+ for (var rt = B[Symbol.iterator](), at; !(X = (at = rt.next()).done) && (H.push(at.value), !(q && H.length === q)); X = !0)
16981
16981
  ;
16982
16982
  } catch (ut) {
16983
16983
  K = !0, tt = ut;
@@ -17008,11 +17008,11 @@ var Hh = { exports: {} };
17008
17008
  return function(B, q, H) {
17009
17009
  return q && M(B.prototype, q), H && M(B, H), B;
17010
17010
  };
17011
- }(), l = i(21), h = A(l), c = i(11), f = A(c), u = i(3), d = A(u), p = i(2), m = A(p), g = i(20), y = A(g), b = i(0), _ = A(b), v = i(5), x = A(v), S = i(10), w = A(S), E = i(9), N = A(E);
17011
+ }(), l = i(21), h = A(l), c = i(11), f = A(c), u = i(3), d = A(u), p = i(2), m = A(p), g = i(20), y = A(g), b = i(0), _ = A(b), v = i(5), x = A(v), S = i(10), w = A(S), T = i(9), N = A(T);
17012
17012
  function A(M) {
17013
17013
  return M && M.__esModule ? M : { default: M };
17014
17014
  }
17015
- function T(M, B, q) {
17015
+ function E(M, B, q) {
17016
17016
  return B in M ? Object.defineProperty(M, B, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : M[B] = q, M;
17017
17017
  }
17018
17018
  function O(M, B) {
@@ -17066,7 +17066,7 @@ var Hh = { exports: {} };
17066
17066
  if (tt.length !== 0) {
17067
17067
  var rt = H.quill.getSelection();
17068
17068
  if (!(rt == null || !H.quill.hasFocus())) {
17069
- var ot = H.quill.getLine(rt.index), ut = a(ot, 2), It = ut[0], St = ut[1], V = H.quill.getLeaf(rt.index), W = a(V, 2), Q = W[0], J = W[1], Y = rt.length === 0 ? [Q, J] : H.quill.getLeaf(rt.index + rt.length), ht = a(Y, 2), Z = ht[0], it = ht[1], At = Q instanceof _.default.Text ? Q.value().slice(0, J) : "", Gt = Z instanceof _.default.Text ? Z.value().slice(it) : "", bt = {
17069
+ var at = H.quill.getLine(rt.index), ut = a(at, 2), It = ut[0], St = ut[1], V = H.quill.getLeaf(rt.index), W = a(V, 2), Q = W[0], J = W[1], Y = rt.length === 0 ? [Q, J] : H.quill.getLeaf(rt.index + rt.length), ht = a(Y, 2), Z = ht[0], it = ht[1], At = Q instanceof _.default.Text ? Q.value().slice(0, J) : "", Gt = Z instanceof _.default.Text ? Z.value().slice(it) : "", bt = {
17070
17070
  collapsed: rt.length === 0,
17071
17071
  empty: rt.length === 0 && It.length() <= 1,
17072
17072
  format: H.quill.getFormat(rt),
@@ -17202,24 +17202,24 @@ var Hh = { exports: {} };
17202
17202
  var H = q.prefix.length, X = this.quill.getLine(B.index), K = a(X, 2), tt = K[0], rt = K[1];
17203
17203
  if (rt > H)
17204
17204
  return !0;
17205
- var ot = void 0;
17205
+ var at = void 0;
17206
17206
  switch (q.prefix.trim()) {
17207
17207
  case "[]":
17208
17208
  case "[ ]":
17209
- ot = "unchecked";
17209
+ at = "unchecked";
17210
17210
  break;
17211
17211
  case "[x]":
17212
- ot = "checked";
17212
+ at = "checked";
17213
17213
  break;
17214
17214
  case "-":
17215
17215
  case "*":
17216
- ot = "bullet";
17216
+ at = "bullet";
17217
17217
  break;
17218
17218
  default:
17219
- ot = "ordered";
17219
+ at = "ordered";
17220
17220
  }
17221
17221
  this.quill.insertText(B.index, " ", x.default.sources.USER), this.quill.history.cutoff();
17222
- var ut = new m.default().retain(B.index - rt).delete(H + 1).retain(tt.length() - 2 - rt).retain(1, { list: ot });
17222
+ var ut = new m.default().retain(B.index - rt).delete(H + 1).retain(tt.length() - 2 - rt).retain(1, { list: at });
17223
17223
  this.quill.updateContents(ut, x.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(B.index - H, x.default.sources.SILENT);
17224
17224
  }
17225
17225
  },
@@ -17246,10 +17246,10 @@ var Hh = { exports: {} };
17246
17246
  key: M,
17247
17247
  shiftKey: B,
17248
17248
  altKey: null
17249
- }, T(q, H, /^$/), T(q, "handler", function(K) {
17249
+ }, E(q, H, /^$/), E(q, "handler", function(K) {
17250
17250
  var tt = K.index;
17251
17251
  M === D.keys.RIGHT && (tt += K.length + 1);
17252
- var rt = this.quill.getLeaf(tt), ot = a(rt, 1), ut = ot[0];
17252
+ var rt = this.quill.getLeaf(tt), at = a(rt, 1), ut = at[0];
17253
17253
  return ut instanceof _.default.Embed ? (M === D.keys.LEFT ? B ? this.quill.setSelection(K.index - 1, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index - 1, x.default.sources.USER) : B ? this.quill.setSelection(K.index, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index + K.length + 1, x.default.sources.USER), !1) : !0;
17254
17254
  }), q;
17255
17255
  }
@@ -17257,8 +17257,8 @@ var Hh = { exports: {} };
17257
17257
  if (!(M.index === 0 || this.quill.getLength() <= 1)) {
17258
17258
  var q = this.quill.getLine(M.index), H = a(q, 1), X = H[0], K = {};
17259
17259
  if (B.offset === 0) {
17260
- var tt = this.quill.getLine(M.index - 1), rt = a(tt, 1), ot = rt[0];
17261
- if (ot != null && ot.length() > 1) {
17260
+ var tt = this.quill.getLine(M.index - 1), rt = a(tt, 1), at = rt[0];
17261
+ if (at != null && at.length() > 1) {
17262
17262
  var ut = X.formats(), It = this.quill.getFormat(M.index - 1, 1);
17263
17263
  K = y.default.attributes.diff(ut, It) || {};
17264
17264
  }
@@ -17272,7 +17272,7 @@ var Hh = { exports: {} };
17272
17272
  if (!(M.index >= this.quill.getLength() - q)) {
17273
17273
  var H = {}, X = 0, K = this.quill.getLine(M.index), tt = a(K, 1), rt = tt[0];
17274
17274
  if (B.offset >= rt.length() - 1) {
17275
- var ot = this.quill.getLine(M.index + 1), ut = a(ot, 1), It = ut[0];
17275
+ var at = this.quill.getLine(M.index + 1), ut = a(at, 1), It = ut[0];
17276
17276
  if (It) {
17277
17277
  var St = rt.formats(), V = this.quill.getFormat(M.index, 1);
17278
17278
  H = y.default.attributes.diff(St, V) || {}, X = It.length();
@@ -17306,12 +17306,12 @@ var Hh = { exports: {} };
17306
17306
  shiftKey: !M,
17307
17307
  format: { "code-block": !0 },
17308
17308
  handler: function(q) {
17309
- var H = _.default.query("code-block"), X = q.index, K = q.length, tt = this.quill.scroll.descendant(H, X), rt = a(tt, 2), ot = rt[0], ut = rt[1];
17310
- if (ot != null) {
17311
- var It = this.quill.getIndex(ot), St = ot.newlineIndex(ut, !0) + 1, V = ot.newlineIndex(It + ut + K), W = ot.domNode.textContent.slice(St, V).split(`
17309
+ var H = _.default.query("code-block"), X = q.index, K = q.length, tt = this.quill.scroll.descendant(H, X), rt = a(tt, 2), at = rt[0], ut = rt[1];
17310
+ if (at != null) {
17311
+ var It = this.quill.getIndex(at), St = at.newlineIndex(ut, !0) + 1, V = at.newlineIndex(It + ut + K), W = at.domNode.textContent.slice(St, V).split(`
17312
17312
  `);
17313
17313
  ut = 0, W.forEach(function(Q, J) {
17314
- M ? (ot.insertAt(St + ut, H.TAB), ut += H.TAB.length, J === 0 ? X += H.TAB.length : K += H.TAB.length) : Q.startsWith(H.TAB) && (ot.deleteAt(St + ut, H.TAB.length), ut -= H.TAB.length, J === 0 ? X -= H.TAB.length : K -= H.TAB.length), ut += Q.length + 1;
17314
+ M ? (at.insertAt(St + ut, H.TAB), ut += H.TAB.length, J === 0 ? X += H.TAB.length : K += H.TAB.length) : Q.startsWith(H.TAB) && (at.deleteAt(St + ut, H.TAB.length), ut -= H.TAB.length, J === 0 ? X -= H.TAB.length : K -= H.TAB.length), ut += Q.length + 1;
17315
17315
  }), this.quill.update(x.default.sources.USER), this.quill.setSelection(X, K, x.default.sources.SILENT);
17316
17316
  }
17317
17317
  }
@@ -17350,13 +17350,13 @@ var Hh = { exports: {} };
17350
17350
  function y(b, _) {
17351
17351
  var v = [], x = !0, S = !1, w = void 0;
17352
17352
  try {
17353
- for (var E = b[Symbol.iterator](), N; !(x = (N = E.next()).done) && (v.push(N.value), !(_ && v.length === _)); x = !0)
17353
+ for (var T = b[Symbol.iterator](), N; !(x = (N = T.next()).done) && (v.push(N.value), !(_ && v.length === _)); x = !0)
17354
17354
  ;
17355
17355
  } catch (A) {
17356
17356
  S = !0, w = A;
17357
17357
  } finally {
17358
17358
  try {
17359
- !x && E.return && E.return();
17359
+ !x && T.return && T.return();
17360
17360
  } finally {
17361
17361
  if (S)
17362
17362
  throw w;
@@ -17460,10 +17460,10 @@ var Hh = { exports: {} };
17460
17460
  key: "restore",
17461
17461
  value: function() {
17462
17462
  if (!(this.selection.composing || this.parent == null)) {
17463
- var v = this.textNode, x = this.selection.getNativeRange(), S = void 0, w = void 0, E = void 0;
17463
+ var v = this.textNode, x = this.selection.getNativeRange(), S = void 0, w = void 0, T = void 0;
17464
17464
  if (x != null && x.start.node === v && x.end.node === v) {
17465
17465
  var N = [v, x.start.offset, x.end.offset];
17466
- S = N[0], w = N[1], E = N[2];
17466
+ S = N[0], w = N[1], T = N[2];
17467
17467
  }
17468
17468
  for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
17469
17469
  this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
@@ -17472,14 +17472,14 @@ var Hh = { exports: {} };
17472
17472
  this.next instanceof f.default ? (S = this.next.domNode, this.next.insertAt(0, A), this.textNode.data = b.CONTENTS) : (this.textNode.data = A, this.parent.insertBefore(h.default.create(this.textNode), this), this.textNode = document.createTextNode(b.CONTENTS), this.domNode.appendChild(this.textNode));
17473
17473
  }
17474
17474
  if (this.remove(), w != null) {
17475
- var T = [w, E].map(function(R) {
17475
+ var E = [w, T].map(function(R) {
17476
17476
  return Math.max(0, Math.min(S.data.length, R - 1));
17477
- }), O = s(T, 2);
17478
- return w = O[0], E = O[1], {
17477
+ }), O = s(E, 2);
17478
+ return w = O[0], T = O[1], {
17479
17479
  startNode: S,
17480
17480
  startOffset: w,
17481
17481
  endNode: S,
17482
- endOffset: E
17482
+ endOffset: T
17483
17483
  };
17484
17484
  }
17485
17485
  }
@@ -17488,8 +17488,8 @@ var Hh = { exports: {} };
17488
17488
  key: "update",
17489
17489
  value: function(v, x) {
17490
17490
  var S = this;
17491
- if (v.some(function(E) {
17492
- return E.type === "characterData" && E.target === S.textNode;
17491
+ if (v.some(function(T) {
17492
+ return T.type === "characterData" && T.target === S.textNode;
17493
17493
  })) {
17494
17494
  var w = this.restore();
17495
17495
  w && (x.range = w);
@@ -17831,7 +17831,7 @@ var Hh = { exports: {} };
17831
17831
  Object.defineProperty(n, "__esModule", {
17832
17832
  value: !0
17833
17833
  });
17834
- var s = i(0), a = F(s), o = i(5), l = F(o), h = i(4), c = F(h), f = i(16), u = F(f), d = i(25), p = F(d), m = i(24), g = F(m), y = i(35), b = F(y), _ = i(6), v = F(_), x = i(22), S = F(x), w = i(7), E = F(w), N = i(55), A = F(N), T = i(42), O = F(T), R = i(23), C = F(R);
17834
+ var s = i(0), a = F(s), o = i(5), l = F(o), h = i(4), c = F(h), f = i(16), u = F(f), d = i(25), p = F(d), m = i(24), g = F(m), y = i(35), b = F(y), _ = i(6), v = F(_), x = i(22), S = F(x), w = i(7), T = F(w), N = i(55), A = F(N), E = i(42), O = F(E), R = i(23), C = F(R);
17835
17835
  function F(U) {
17836
17836
  return U && U.__esModule ? U : { default: U };
17837
17837
  }
@@ -17844,11 +17844,11 @@ var Hh = { exports: {} };
17844
17844
  "blots/embed": b.default,
17845
17845
  "blots/inline": v.default,
17846
17846
  "blots/scroll": S.default,
17847
- "blots/text": E.default,
17847
+ "blots/text": T.default,
17848
17848
  "modules/clipboard": A.default,
17849
17849
  "modules/history": O.default,
17850
17850
  "modules/keyboard": C.default
17851
- }), a.default.register(c.default, u.default, g.default, v.default, S.default, E.default), n.default = l.default;
17851
+ }), a.default.register(c.default, u.default, g.default, v.default, S.default, T.default), n.default = l.default;
17852
17852
  },
17853
17853
  /* 30 */
17854
17854
  /***/
@@ -18180,10 +18180,10 @@ var Hh = { exports: {} };
18180
18180
  var x = void 0, S = void 0, w = v.data.split(m).join("");
18181
18181
  if (v === this.leftGuard)
18182
18182
  if (this.prev instanceof c.default) {
18183
- var E = this.prev.length();
18184
- this.prev.insertAt(E, w), x = {
18183
+ var T = this.prev.length();
18184
+ this.prev.insertAt(T, w), x = {
18185
18185
  startNode: this.prev.domNode,
18186
- startOffset: E + w.length
18186
+ startOffset: T + w.length
18187
18187
  };
18188
18188
  } else
18189
18189
  S = document.createTextNode(w), this.parent.insertBefore(l.default.create(S), this), x = {
@@ -18206,8 +18206,8 @@ var Hh = { exports: {} };
18206
18206
  var S = this;
18207
18207
  v.forEach(function(w) {
18208
18208
  if (w.type === "characterData" && (w.target === S.leftGuard || w.target === S.rightGuard)) {
18209
- var E = S.restore(w.target);
18210
- E && (x.range = E);
18209
+ var T = S.restore(w.target);
18210
+ T && (x.range = T);
18211
18211
  }
18212
18212
  });
18213
18213
  }
@@ -18438,17 +18438,17 @@ var Hh = { exports: {} };
18438
18438
  function v(x, S) {
18439
18439
  d(this, v);
18440
18440
  var w = p(this, (v.__proto__ || Object.getPrototypeOf(v)).call(this, x, S));
18441
- return w.lastRecorded = 0, w.ignoreChange = !1, w.clear(), w.quill.on(h.default.events.EDITOR_CHANGE, function(E, N, A, T) {
18442
- E !== h.default.events.TEXT_CHANGE || w.ignoreChange || (!w.options.userOnly || T === h.default.sources.USER ? w.record(N, A) : w.transform(N));
18441
+ return w.lastRecorded = 0, w.ignoreChange = !1, w.clear(), w.quill.on(h.default.events.EDITOR_CHANGE, function(T, N, A, E) {
18442
+ T !== h.default.events.TEXT_CHANGE || w.ignoreChange || (!w.options.userOnly || E === h.default.sources.USER ? w.record(N, A) : w.transform(N));
18443
18443
  }), w.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, w.undo.bind(w)), w.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, w.redo.bind(w)), /Win/i.test(navigator.platform) && w.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, w.redo.bind(w)), w;
18444
18444
  }
18445
18445
  return s(v, [{
18446
18446
  key: "change",
18447
18447
  value: function(S, w) {
18448
18448
  if (this.stack[S].length !== 0) {
18449
- var E = this.stack[S].pop();
18450
- this.stack[w].push(E), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(E[S], h.default.sources.USER), this.ignoreChange = !1;
18451
- var N = b(E[S]);
18449
+ var T = this.stack[S].pop();
18450
+ this.stack[w].push(T), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(T[S], h.default.sources.USER), this.ignoreChange = !1;
18451
+ var N = b(T[S]);
18452
18452
  this.quill.setSelection(N);
18453
18453
  }
18454
18454
  }
@@ -18467,15 +18467,15 @@ var Hh = { exports: {} };
18467
18467
  value: function(S, w) {
18468
18468
  if (S.ops.length !== 0) {
18469
18469
  this.stack.redo = [];
18470
- var E = this.quill.getContents().diff(w), N = Date.now();
18470
+ var T = this.quill.getContents().diff(w), N = Date.now();
18471
18471
  if (this.lastRecorded + this.options.delay > N && this.stack.undo.length > 0) {
18472
18472
  var A = this.stack.undo.pop();
18473
- E = E.compose(A.undo), S = A.redo.compose(S);
18473
+ T = T.compose(A.undo), S = A.redo.compose(S);
18474
18474
  } else
18475
18475
  this.lastRecorded = N;
18476
18476
  this.stack.undo.push({
18477
18477
  redo: S,
18478
- undo: E
18478
+ undo: T
18479
18479
  }), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
18480
18480
  }
18481
18481
  }
@@ -18548,7 +18548,7 @@ var Hh = { exports: {} };
18548
18548
  var q = M.get;
18549
18549
  return q === void 0 ? void 0 : q.call(G);
18550
18550
  }
18551
- }, o = i(3), l = N(o), h = i(2), c = N(h), f = i(8), u = N(f), d = i(23), p = N(d), m = i(34), g = N(m), y = i(59), b = N(y), _ = i(60), v = N(_), x = i(28), S = N(x), w = i(61), E = N(w);
18551
+ }, o = i(3), l = N(o), h = i(2), c = N(h), f = i(8), u = N(f), d = i(23), p = N(d), m = i(34), g = N(m), y = i(59), b = N(y), _ = i(60), v = N(_), x = i(28), S = N(x), w = i(61), T = N(w);
18552
18552
  function N(P) {
18553
18553
  return P && P.__esModule ? P : { default: P };
18554
18554
  }
@@ -18556,7 +18556,7 @@ var Hh = { exports: {} };
18556
18556
  if (!(P instanceof L))
18557
18557
  throw new TypeError("Cannot call a class as a function");
18558
18558
  }
18559
- function T(P, L) {
18559
+ function E(P, L) {
18560
18560
  if (!P)
18561
18561
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18562
18562
  return L && (typeof L == "object" || typeof L == "function") ? L : P;
@@ -18570,7 +18570,7 @@ var Hh = { exports: {} };
18570
18570
  O(L, P);
18571
18571
  function L(j, G) {
18572
18572
  A(this, L);
18573
- var M = T(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G)), B = function q(H) {
18573
+ var M = E(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G)), B = function q(H) {
18574
18574
  if (!document.body.contains(j.root))
18575
18575
  return document.body.removeEventListener("click", q);
18576
18576
  M.tooltip != null && !M.tooltip.root.contains(H.target) && document.activeElement !== M.tooltip.textbox && !M.quill.hasFocus() && M.tooltip.hide(), M.pickers != null && M.pickers.forEach(function(X) {
@@ -18655,7 +18655,7 @@ var Hh = { exports: {} };
18655
18655
  O(L, P);
18656
18656
  function L(j, G) {
18657
18657
  A(this, L);
18658
- var M = T(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G));
18658
+ var M = E(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G));
18659
18659
  return M.textbox = M.root.querySelector('input[type="text"]'), M.listen(), M;
18660
18660
  }
18661
18661
  return s(L, [{
@@ -18709,7 +18709,7 @@ var Hh = { exports: {} };
18709
18709
  this.textbox.value = "", this.hide();
18710
18710
  }
18711
18711
  }]), L;
18712
- }(E.default);
18712
+ }(T.default);
18713
18713
  function k(P) {
18714
18714
  var L = P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
18715
18715
  return L ? (L[1] || "https") + "://www.youtube.com/embed/" + L[2] + "?showinfo=0" : (L = P.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (L[1] || "https") + "://player.vimeo.com/video/" + L[2] + "/" : P;
@@ -18851,8 +18851,8 @@ var Hh = { exports: {} };
18851
18851
  for (_.forEach(function(x) {
18852
18852
  var S = o.find(x.target, !0);
18853
18853
  S != null && (S.domNode === x.target && (x.type === "childList" ? (y(o.find(x.previousSibling, !1)), [].forEach.call(x.addedNodes, function(w) {
18854
- var E = o.find(w, !1);
18855
- y(E, !1), E instanceof a.default && E.children.forEach(function(N) {
18854
+ var T = o.find(w, !1);
18855
+ y(T, !1), T instanceof a.default && T.children.forEach(function(N) {
18856
18856
  y(N, !1);
18857
18857
  });
18858
18858
  })) : x.type === "attributes" && y(S.prev)), y(S));
@@ -19124,12 +19124,12 @@ var Hh = { exports: {} };
19124
19124
  if (v == x)
19125
19125
  return v ? [[a, v]] : [];
19126
19126
  (S < 0 || v.length < S) && (S = null);
19127
- var w = f(v, x), E = v.substring(0, w);
19127
+ var w = f(v, x), T = v.substring(0, w);
19128
19128
  v = v.substring(w), x = x.substring(w), w = u(v, x);
19129
19129
  var N = v.substring(v.length - w);
19130
19130
  v = v.substring(0, v.length - w), x = x.substring(0, x.length - w);
19131
19131
  var A = l(v, x);
19132
- return E && A.unshift([a, E]), N && A.push([a, N]), p(A), S != null && (A = y(A, S)), A = b(A), A;
19132
+ return T && A.unshift([a, T]), N && A.push([a, N]), p(A), S != null && (A = y(A, S)), A = b(A), A;
19133
19133
  }
19134
19134
  function l(v, x) {
19135
19135
  var S;
@@ -19137,33 +19137,33 @@ var Hh = { exports: {} };
19137
19137
  return [[s, x]];
19138
19138
  if (!x)
19139
19139
  return [[i, v]];
19140
- var w = v.length > x.length ? v : x, E = v.length > x.length ? x : v, N = w.indexOf(E);
19140
+ var w = v.length > x.length ? v : x, T = v.length > x.length ? x : v, N = w.indexOf(T);
19141
19141
  if (N != -1)
19142
19142
  return S = [
19143
19143
  [s, w.substring(0, N)],
19144
- [a, E],
19145
- [s, w.substring(N + E.length)]
19144
+ [a, T],
19145
+ [s, w.substring(N + T.length)]
19146
19146
  ], v.length > x.length && (S[0][0] = S[2][0] = i), S;
19147
- if (E.length == 1)
19147
+ if (T.length == 1)
19148
19148
  return [[i, v], [s, x]];
19149
19149
  var A = d(v, x);
19150
19150
  if (A) {
19151
- var T = A[0], O = A[1], R = A[2], C = A[3], F = A[4], U = o(T, R), D = o(O, C);
19151
+ var E = A[0], O = A[1], R = A[2], C = A[3], F = A[4], U = o(E, R), D = o(O, C);
19152
19152
  return U.concat([[a, F]], D);
19153
19153
  }
19154
19154
  return h(v, x);
19155
19155
  }
19156
19156
  function h(v, x) {
19157
- for (var S = v.length, w = x.length, E = Math.ceil((S + w) / 2), N = E, A = 2 * E, T = new Array(A), O = new Array(A), R = 0; R < A; R++)
19158
- T[R] = -1, O[R] = -1;
19159
- T[N + 1] = 0, O[N + 1] = 0;
19160
- for (var C = S - w, F = C % 2 != 0, U = 0, D = 0, z = 0, $ = 0, k = 0; k < E; k++) {
19157
+ for (var S = v.length, w = x.length, T = Math.ceil((S + w) / 2), N = T, A = 2 * T, E = new Array(A), O = new Array(A), R = 0; R < A; R++)
19158
+ E[R] = -1, O[R] = -1;
19159
+ E[N + 1] = 0, O[N + 1] = 0;
19160
+ for (var C = S - w, F = C % 2 != 0, U = 0, D = 0, z = 0, $ = 0, k = 0; k < T; k++) {
19161
19161
  for (var I = -k + U; I <= k - D; I += 2) {
19162
19162
  var P = N + I, L;
19163
- I == -k || I != k && T[P - 1] < T[P + 1] ? L = T[P + 1] : L = T[P - 1] + 1;
19163
+ I == -k || I != k && E[P - 1] < E[P + 1] ? L = E[P + 1] : L = E[P - 1] + 1;
19164
19164
  for (var j = L - I; L < S && j < w && v.charAt(L) == x.charAt(j); )
19165
19165
  L++, j++;
19166
- if (T[P] = L, L > S)
19166
+ if (E[P] = L, L > S)
19167
19167
  D += 2;
19168
19168
  else if (j > w)
19169
19169
  U += 2;
@@ -19187,8 +19187,8 @@ var Hh = { exports: {} };
19187
19187
  z += 2;
19188
19188
  else if (!F) {
19189
19189
  var P = N + C - B;
19190
- if (P >= 0 && P < A && T[P] != -1) {
19191
- var L = T[P], j = N + L - P;
19190
+ if (P >= 0 && P < A && E[P] != -1) {
19191
+ var L = E[P], j = N + L - P;
19192
19192
  if (M = S - M, L >= M)
19193
19193
  return c(v, x, L, j);
19194
19194
  }
@@ -19198,28 +19198,28 @@ var Hh = { exports: {} };
19198
19198
  return [[i, v], [s, x]];
19199
19199
  }
19200
19200
  function c(v, x, S, w) {
19201
- var E = v.substring(0, S), N = x.substring(0, w), A = v.substring(S), T = x.substring(w), O = o(E, N), R = o(A, T);
19201
+ var T = v.substring(0, S), N = x.substring(0, w), A = v.substring(S), E = x.substring(w), O = o(T, N), R = o(A, E);
19202
19202
  return O.concat(R);
19203
19203
  }
19204
19204
  function f(v, x) {
19205
19205
  if (!v || !x || v.charAt(0) != x.charAt(0))
19206
19206
  return 0;
19207
- for (var S = 0, w = Math.min(v.length, x.length), E = w, N = 0; S < E; )
19208
- v.substring(N, E) == x.substring(N, E) ? (S = E, N = S) : w = E, E = Math.floor((w - S) / 2 + S);
19209
- return E;
19207
+ for (var S = 0, w = Math.min(v.length, x.length), T = w, N = 0; S < T; )
19208
+ v.substring(N, T) == x.substring(N, T) ? (S = T, N = S) : w = T, T = Math.floor((w - S) / 2 + S);
19209
+ return T;
19210
19210
  }
19211
19211
  function u(v, x) {
19212
19212
  if (!v || !x || v.charAt(v.length - 1) != x.charAt(x.length - 1))
19213
19213
  return 0;
19214
- for (var S = 0, w = Math.min(v.length, x.length), E = w, N = 0; S < E; )
19215
- v.substring(v.length - E, v.length - N) == x.substring(x.length - E, x.length - N) ? (S = E, N = S) : w = E, E = Math.floor((w - S) / 2 + S);
19216
- return E;
19214
+ for (var S = 0, w = Math.min(v.length, x.length), T = w, N = 0; S < T; )
19215
+ v.substring(v.length - T, v.length - N) == x.substring(x.length - T, x.length - N) ? (S = T, N = S) : w = T, T = Math.floor((w - S) / 2 + S);
19216
+ return T;
19217
19217
  }
19218
19218
  function d(v, x) {
19219
19219
  var S = v.length > x.length ? v : x, w = v.length > x.length ? x : v;
19220
19220
  if (S.length < 4 || w.length * 2 < S.length)
19221
19221
  return null;
19222
- function E(D, z, $) {
19222
+ function T(D, z, $) {
19223
19223
  for (var k = D.substring($, $ + Math.floor(D.length / 4)), I = -1, P = "", L, j, G, M; (I = z.indexOf(k, I + 1)) != -1; ) {
19224
19224
  var B = f(
19225
19225
  D.substring($),
@@ -19238,58 +19238,58 @@ var Hh = { exports: {} };
19238
19238
  P
19239
19239
  ] : null;
19240
19240
  }
19241
- var N = E(
19241
+ var N = T(
19242
19242
  S,
19243
19243
  w,
19244
19244
  Math.ceil(S.length / 4)
19245
- ), A = E(
19245
+ ), A = T(
19246
19246
  S,
19247
19247
  w,
19248
19248
  Math.ceil(S.length / 2)
19249
- ), T;
19249
+ ), E;
19250
19250
  if (!N && !A)
19251
19251
  return null;
19252
- A ? N ? T = N[4].length > A[4].length ? N : A : T = A : T = N;
19252
+ A ? N ? E = N[4].length > A[4].length ? N : A : E = A : E = N;
19253
19253
  var O, R, C, F;
19254
- v.length > x.length ? (O = T[0], R = T[1], C = T[2], F = T[3]) : (C = T[0], F = T[1], O = T[2], R = T[3]);
19255
- var U = T[4];
19254
+ v.length > x.length ? (O = E[0], R = E[1], C = E[2], F = E[3]) : (C = E[0], F = E[1], O = E[2], R = E[3]);
19255
+ var U = E[4];
19256
19256
  return [O, R, C, F, U];
19257
19257
  }
19258
19258
  function p(v) {
19259
19259
  v.push([a, ""]);
19260
- for (var x = 0, S = 0, w = 0, E = "", N = "", A; x < v.length; )
19260
+ for (var x = 0, S = 0, w = 0, T = "", N = "", A; x < v.length; )
19261
19261
  switch (v[x][0]) {
19262
19262
  case s:
19263
19263
  w++, N += v[x][1], x++;
19264
19264
  break;
19265
19265
  case i:
19266
- S++, E += v[x][1], x++;
19266
+ S++, T += v[x][1], x++;
19267
19267
  break;
19268
19268
  case a:
19269
- S + w > 1 ? (S !== 0 && w !== 0 && (A = f(N, E), A !== 0 && (x - S - w > 0 && v[x - S - w - 1][0] == a ? v[x - S - w - 1][1] += N.substring(0, A) : (v.splice(0, 0, [
19269
+ S + w > 1 ? (S !== 0 && w !== 0 && (A = f(N, T), A !== 0 && (x - S - w > 0 && v[x - S - w - 1][0] == a ? v[x - S - w - 1][1] += N.substring(0, A) : (v.splice(0, 0, [
19270
19270
  a,
19271
19271
  N.substring(0, A)
19272
- ]), x++), N = N.substring(A), E = E.substring(A)), A = u(N, E), A !== 0 && (v[x][1] = N.substring(N.length - A) + v[x][1], N = N.substring(0, N.length - A), E = E.substring(0, E.length - A))), S === 0 ? v.splice(
19272
+ ]), x++), N = N.substring(A), T = T.substring(A)), A = u(N, T), A !== 0 && (v[x][1] = N.substring(N.length - A) + v[x][1], N = N.substring(0, N.length - A), T = T.substring(0, T.length - A))), S === 0 ? v.splice(
19273
19273
  x - w,
19274
19274
  S + w,
19275
19275
  [s, N]
19276
19276
  ) : w === 0 ? v.splice(
19277
19277
  x - S,
19278
19278
  S + w,
19279
- [i, E]
19279
+ [i, T]
19280
19280
  ) : v.splice(
19281
19281
  x - S - w,
19282
19282
  S + w,
19283
- [i, E],
19283
+ [i, T],
19284
19284
  [s, N]
19285
- ), x = x - S - w + (S ? 1 : 0) + (w ? 1 : 0) + 1) : x !== 0 && v[x - 1][0] == a ? (v[x - 1][1] += v[x][1], v.splice(x, 1)) : x++, w = 0, S = 0, E = "", N = "";
19285
+ ), x = x - S - w + (S ? 1 : 0) + (w ? 1 : 0) + 1) : x !== 0 && v[x - 1][0] == a ? (v[x - 1][1] += v[x][1], v.splice(x, 1)) : x++, w = 0, S = 0, T = "", N = "";
19286
19286
  break;
19287
19287
  }
19288
19288
  v[v.length - 1][1] === "" && v.pop();
19289
- var T = !1;
19289
+ var E = !1;
19290
19290
  for (x = 1; x < v.length - 1; )
19291
- v[x - 1][0] == a && v[x + 1][0] == a && (v[x][1].substring(v[x][1].length - v[x - 1][1].length) == v[x - 1][1] ? (v[x][1] = v[x - 1][1] + v[x][1].substring(0, v[x][1].length - v[x - 1][1].length), v[x + 1][1] = v[x - 1][1] + v[x + 1][1], v.splice(x - 1, 1), T = !0) : v[x][1].substring(0, v[x + 1][1].length) == v[x + 1][1] && (v[x - 1][1] += v[x + 1][1], v[x][1] = v[x][1].substring(v[x + 1][1].length) + v[x + 1][1], v.splice(x + 1, 1), T = !0)), x++;
19292
- T && p(v);
19291
+ v[x - 1][0] == a && v[x + 1][0] == a && (v[x][1].substring(v[x][1].length - v[x - 1][1].length) == v[x - 1][1] ? (v[x][1] = v[x - 1][1] + v[x][1].substring(0, v[x][1].length - v[x - 1][1].length), v[x + 1][1] = v[x - 1][1] + v[x + 1][1], v.splice(x - 1, 1), E = !0) : v[x][1].substring(0, v[x + 1][1].length) == v[x + 1][1] && (v[x - 1][1] += v[x + 1][1], v[x][1] = v[x][1].substring(v[x + 1][1].length) + v[x + 1][1], v.splice(x + 1, 1), E = !0)), x++;
19292
+ E && p(v);
19293
19293
  }
19294
19294
  var m = o;
19295
19295
  m.INSERT = s, m.DELETE = i, m.EQUAL = a, r.exports = m;
@@ -19297,15 +19297,15 @@ var Hh = { exports: {} };
19297
19297
  if (x === 0)
19298
19298
  return [a, v];
19299
19299
  for (var S = 0, w = 0; w < v.length; w++) {
19300
- var E = v[w];
19301
- if (E[0] === i || E[0] === a) {
19302
- var N = S + E[1].length;
19300
+ var T = v[w];
19301
+ if (T[0] === i || T[0] === a) {
19302
+ var N = S + T[1].length;
19303
19303
  if (x === N)
19304
19304
  return [w + 1, v];
19305
19305
  if (x < N) {
19306
19306
  v = v.slice();
19307
- var A = x - S, T = [E[0], E[1].slice(0, A)], O = [E[0], E[1].slice(A)];
19308
- return v.splice(w, 1, T, O), [w + 1, v];
19307
+ var A = x - S, E = [T[0], T[1].slice(0, A)], O = [T[0], T[1].slice(A)];
19308
+ return v.splice(w, 1, E, O), [w + 1, v];
19309
19309
  } else
19310
19310
  S = N;
19311
19311
  }
@@ -19313,17 +19313,17 @@ var Hh = { exports: {} };
19313
19313
  throw new Error("cursor_pos is out of bounds!");
19314
19314
  }
19315
19315
  function y(v, x) {
19316
- var S = g(v, x), w = S[1], E = S[0], N = w[E], A = w[E + 1];
19316
+ var S = g(v, x), w = S[1], T = S[0], N = w[T], A = w[T + 1];
19317
19317
  if (N == null)
19318
19318
  return v;
19319
19319
  if (N[0] !== a)
19320
19320
  return v;
19321
19321
  if (A != null && N[1] + A[1] === A[1] + N[1])
19322
- return w.splice(E, 2, A, N), _(w, E, 2);
19322
+ return w.splice(T, 2, A, N), _(w, T, 2);
19323
19323
  if (A != null && A[1].indexOf(N[1]) === 0) {
19324
- w.splice(E, 2, [A[0], N[1]], [0, N[1]]);
19325
- var T = A[1].slice(N[1].length);
19326
- return T.length > 0 && w.splice(E + 2, 0, [A[0], T]), _(w, E, 3);
19324
+ w.splice(T, 2, [A[0], N[1]], [0, N[1]]);
19325
+ var E = A[1].slice(N[1].length);
19326
+ return E.length > 0 && w.splice(T + 2, 0, [A[0], E]), _(w, T, 3);
19327
19327
  } else
19328
19328
  return v;
19329
19329
  }
@@ -19332,19 +19332,19 @@ var Hh = { exports: {} };
19332
19332
  return A.charCodeAt(0) >= 56320 && A.charCodeAt(0) <= 57343;
19333
19333
  }, w = function(A) {
19334
19334
  return A.charCodeAt(A.length - 1) >= 55296 && A.charCodeAt(A.length - 1) <= 56319;
19335
- }, E = 2; E < v.length; E += 1)
19336
- v[E - 2][0] === a && w(v[E - 2][1]) && v[E - 1][0] === i && S(v[E - 1][1]) && v[E][0] === s && S(v[E][1]) && (x = !0, v[E - 1][1] = v[E - 2][1].slice(-1) + v[E - 1][1], v[E][1] = v[E - 2][1].slice(-1) + v[E][1], v[E - 2][1] = v[E - 2][1].slice(0, -1));
19335
+ }, T = 2; T < v.length; T += 1)
19336
+ v[T - 2][0] === a && w(v[T - 2][1]) && v[T - 1][0] === i && S(v[T - 1][1]) && v[T][0] === s && S(v[T][1]) && (x = !0, v[T - 1][1] = v[T - 2][1].slice(-1) + v[T - 1][1], v[T][1] = v[T - 2][1].slice(-1) + v[T][1], v[T - 2][1] = v[T - 2][1].slice(0, -1));
19337
19337
  if (!x)
19338
19338
  return v;
19339
- for (var N = [], E = 0; E < v.length; E += 1)
19340
- v[E][1].length > 0 && N.push(v[E]);
19339
+ for (var N = [], T = 0; T < v.length; T += 1)
19340
+ v[T][1].length > 0 && N.push(v[T]);
19341
19341
  return N;
19342
19342
  }
19343
19343
  function _(v, x, S) {
19344
19344
  for (var w = x + S - 1; w >= 0 && w >= x - 1; w--)
19345
19345
  if (w + 1 < v.length) {
19346
- var E = v[w], N = v[w + 1];
19347
- E[0] === N[1] && v.splice(w, 2, [E[0], E[1] + N[1]]);
19346
+ var T = v[w], N = v[w + 1];
19347
+ T[0] === N[1] && v.splice(w, 2, [T[0], T[1] + N[1]]);
19348
19348
  }
19349
19349
  return v;
19350
19350
  }
@@ -19526,7 +19526,7 @@ var Hh = { exports: {} };
19526
19526
  return function(W, Q, J) {
19527
19527
  return Q && V(W.prototype, Q), J && V(W, J), W;
19528
19528
  };
19529
- }(), l = i(3), h = O(l), c = i(2), f = O(c), u = i(0), d = O(u), p = i(5), m = O(p), g = i(10), y = O(g), b = i(9), _ = O(b), v = i(36), x = i(37), S = i(13), w = O(S), E = i(26), N = i(38), A = i(39), T = i(40);
19529
+ }(), l = i(3), h = O(l), c = i(2), f = O(c), u = i(0), d = O(u), p = i(5), m = O(p), g = i(10), y = O(g), b = i(9), _ = O(b), v = i(36), x = i(37), S = i(13), w = O(S), T = i(26), N = i(38), A = i(39), E = i(40);
19530
19530
  function O(V) {
19531
19531
  return V && V.__esModule ? V : { default: V };
19532
19532
  }
@@ -19547,9 +19547,9 @@ var Hh = { exports: {} };
19547
19547
  throw new TypeError("Super expression must either be null or a function, not " + typeof W);
19548
19548
  V.prototype = Object.create(W && W.prototype, { constructor: { value: V, enumerable: !1, writable: !0, configurable: !0 } }), W && (Object.setPrototypeOf ? Object.setPrototypeOf(V, W) : V.__proto__ = W);
19549
19549
  }
19550
- var D = (0, y.default)("quill:clipboard"), z = "__ql-matcher", $ = [[Node.TEXT_NODE, St], [Node.TEXT_NODE, ot], ["br", K], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, X], [Node.ELEMENT_NODE, ut], [Node.ELEMENT_NODE, H], [Node.ELEMENT_NODE, It], ["li", rt], ["b", q.bind(q, "bold")], ["i", q.bind(q, "italic")], ["style", tt]], k = [v.AlignAttribute, N.DirectionAttribute].reduce(function(V, W) {
19550
+ var D = (0, y.default)("quill:clipboard"), z = "__ql-matcher", $ = [[Node.TEXT_NODE, St], [Node.TEXT_NODE, at], ["br", K], [Node.ELEMENT_NODE, at], [Node.ELEMENT_NODE, X], [Node.ELEMENT_NODE, ut], [Node.ELEMENT_NODE, H], [Node.ELEMENT_NODE, It], ["li", rt], ["b", q.bind(q, "bold")], ["i", q.bind(q, "italic")], ["style", tt]], k = [v.AlignAttribute, N.DirectionAttribute].reduce(function(V, W) {
19551
19551
  return V[W.keyName] = W, V;
19552
- }, {}), I = [v.AlignStyle, x.BackgroundStyle, E.ColorStyle, N.DirectionStyle, A.FontStyle, T.SizeStyle].reduce(function(V, W) {
19552
+ }, {}), I = [v.AlignStyle, x.BackgroundStyle, T.ColorStyle, N.DirectionStyle, A.FontStyle, E.SizeStyle].reduce(function(V, W) {
19553
19553
  return V[W.keyName] = W, V;
19554
19554
  }, {}), P = function(V) {
19555
19555
  U(W, V);
@@ -19707,7 +19707,7 @@ var Hh = { exports: {} };
19707
19707
  (d.default.query(Y) || {}).blotName === "list" && (J += 1), Y = Y.parentNode;
19708
19708
  return J <= 0 ? W : W.compose(new f.default().retain(W.length() - 1).retain(1, { indent: J }));
19709
19709
  }
19710
- function ot(V, W) {
19710
+ function at(V, W) {
19711
19711
  return G(W, `
19712
19712
  `) || (M(V) || W.length() > 0 && V.nextSibling && M(V.nextSibling)) && W.insert(`
19713
19713
  `), W;
@@ -19740,7 +19740,7 @@ var Hh = { exports: {} };
19740
19740
  }
19741
19741
  return W.insert(Q);
19742
19742
  }
19743
- n.default = P, n.matchAttributor = H, n.matchBlot = X, n.matchNewline = ot, n.matchSpacing = ut, n.matchText = St;
19743
+ n.default = P, n.matchAttributor = H, n.matchBlot = X, n.matchNewline = at, n.matchSpacing = ut, n.matchText = St;
19744
19744
  },
19745
19745
  /* 56 */
19746
19746
  /***/
@@ -19819,7 +19819,7 @@ var Hh = { exports: {} };
19819
19819
  value: !0
19820
19820
  }), n.addControls = n.default = void 0;
19821
19821
  var s = function() {
19822
- function T(O, R) {
19822
+ function E(O, R) {
19823
19823
  var C = [], F = !0, U = !1, D = void 0;
19824
19824
  try {
19825
19825
  for (var z = O[Symbol.iterator](), $; !(F = ($ = z.next()).done) && (C.push($.value), !(R && C.length === R)); F = !0)
@@ -19840,42 +19840,42 @@ var Hh = { exports: {} };
19840
19840
  if (Array.isArray(O))
19841
19841
  return O;
19842
19842
  if (Symbol.iterator in Object(O))
19843
- return T(O, R);
19843
+ return E(O, R);
19844
19844
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
19845
19845
  };
19846
19846
  }(), a = function() {
19847
- function T(O, R) {
19847
+ function E(O, R) {
19848
19848
  for (var C = 0; C < R.length; C++) {
19849
19849
  var F = R[C];
19850
19850
  F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(O, F.key, F);
19851
19851
  }
19852
19852
  }
19853
19853
  return function(O, R, C) {
19854
- return R && T(O.prototype, R), C && T(O, C), O;
19854
+ return R && E(O.prototype, R), C && E(O, C), O;
19855
19855
  };
19856
19856
  }(), o = i(2), l = y(o), h = i(0), c = y(h), f = i(5), u = y(f), d = i(10), p = y(d), m = i(9), g = y(m);
19857
- function y(T) {
19858
- return T && T.__esModule ? T : { default: T };
19857
+ function y(E) {
19858
+ return E && E.__esModule ? E : { default: E };
19859
19859
  }
19860
- function b(T, O, R) {
19861
- return O in T ? Object.defineProperty(T, O, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : T[O] = R, T;
19860
+ function b(E, O, R) {
19861
+ return O in E ? Object.defineProperty(E, O, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : E[O] = R, E;
19862
19862
  }
19863
- function _(T, O) {
19864
- if (!(T instanceof O))
19863
+ function _(E, O) {
19864
+ if (!(E instanceof O))
19865
19865
  throw new TypeError("Cannot call a class as a function");
19866
19866
  }
19867
- function v(T, O) {
19868
- if (!T)
19867
+ function v(E, O) {
19868
+ if (!E)
19869
19869
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19870
- return O && (typeof O == "object" || typeof O == "function") ? O : T;
19870
+ return O && (typeof O == "object" || typeof O == "function") ? O : E;
19871
19871
  }
19872
- function x(T, O) {
19872
+ function x(E, O) {
19873
19873
  if (typeof O != "function" && O !== null)
19874
19874
  throw new TypeError("Super expression must either be null or a function, not " + typeof O);
19875
- T.prototype = Object.create(O && O.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(T, O) : T.__proto__ = O);
19875
+ E.prototype = Object.create(O && O.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(E, O) : E.__proto__ = O);
19876
19876
  }
19877
- var S = (0, p.default)("quill:toolbar"), w = function(T) {
19878
- x(O, T);
19877
+ var S = (0, p.default)("quill:toolbar"), w = function(E) {
19878
+ x(O, E);
19879
19879
  function O(R, C) {
19880
19880
  _(this, O);
19881
19881
  var F = v(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, R, C));
@@ -19974,29 +19974,29 @@ var Hh = { exports: {} };
19974
19974
  }]), O;
19975
19975
  }(g.default);
19976
19976
  w.DEFAULTS = {};
19977
- function E(T, O, R) {
19977
+ function T(E, O, R) {
19978
19978
  var C = document.createElement("button");
19979
- C.setAttribute("type", "button"), C.classList.add("ql-" + O), R != null && (C.value = R), T.appendChild(C);
19979
+ C.setAttribute("type", "button"), C.classList.add("ql-" + O), R != null && (C.value = R), E.appendChild(C);
19980
19980
  }
19981
- function N(T, O) {
19981
+ function N(E, O) {
19982
19982
  Array.isArray(O[0]) || (O = [O]), O.forEach(function(R) {
19983
19983
  var C = document.createElement("span");
19984
19984
  C.classList.add("ql-formats"), R.forEach(function(F) {
19985
19985
  if (typeof F == "string")
19986
- E(C, F);
19986
+ T(C, F);
19987
19987
  else {
19988
19988
  var U = Object.keys(F)[0], D = F[U];
19989
- Array.isArray(D) ? A(C, U, D) : E(C, U, D);
19989
+ Array.isArray(D) ? A(C, U, D) : T(C, U, D);
19990
19990
  }
19991
- }), T.appendChild(C);
19991
+ }), E.appendChild(C);
19992
19992
  });
19993
19993
  }
19994
- function A(T, O, R) {
19994
+ function A(E, O, R) {
19995
19995
  var C = document.createElement("select");
19996
19996
  C.classList.add("ql-" + O), R.forEach(function(F) {
19997
19997
  var U = document.createElement("option");
19998
19998
  F !== !1 ? U.setAttribute("value", F) : U.setAttribute("selected", "selected"), C.appendChild(U);
19999
- }), T.appendChild(C);
19999
+ }), E.appendChild(C);
20000
20000
  }
20001
20001
  w.DEFAULTS = {
20002
20002
  container: null,
@@ -20235,10 +20235,10 @@ var Hh = { exports: {} };
20235
20235
  value: !0
20236
20236
  });
20237
20237
  var s = function() {
20238
- function A(T, O) {
20238
+ function A(E, O) {
20239
20239
  var R = [], C = !0, F = !1, U = void 0;
20240
20240
  try {
20241
- for (var D = T[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
20241
+ for (var D = E[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
20242
20242
  ;
20243
20243
  } catch ($) {
20244
20244
  F = !0, U = $;
@@ -20252,18 +20252,18 @@ var Hh = { exports: {} };
20252
20252
  }
20253
20253
  return R;
20254
20254
  }
20255
- return function(T, O) {
20256
- if (Array.isArray(T))
20257
- return T;
20258
- if (Symbol.iterator in Object(T))
20259
- return A(T, O);
20255
+ return function(E, O) {
20256
+ if (Array.isArray(E))
20257
+ return E;
20258
+ if (Symbol.iterator in Object(E))
20259
+ return A(E, O);
20260
20260
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
20261
20261
  };
20262
- }(), a = function A(T, O, R) {
20263
- T === null && (T = Function.prototype);
20264
- var C = Object.getOwnPropertyDescriptor(T, O);
20262
+ }(), a = function A(E, O, R) {
20263
+ E === null && (E = Function.prototype);
20264
+ var C = Object.getOwnPropertyDescriptor(E, O);
20265
20265
  if (C === void 0) {
20266
- var F = Object.getPrototypeOf(T);
20266
+ var F = Object.getPrototypeOf(E);
20267
20267
  return F === null ? void 0 : A(F, O, R);
20268
20268
  } else {
20269
20269
  if ("value" in C)
@@ -20272,55 +20272,55 @@ var Hh = { exports: {} };
20272
20272
  return U === void 0 ? void 0 : U.call(R);
20273
20273
  }
20274
20274
  }, o = function() {
20275
- function A(T, O) {
20275
+ function A(E, O) {
20276
20276
  for (var R = 0; R < O.length; R++) {
20277
20277
  var C = O[R];
20278
- C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(T, C.key, C);
20278
+ C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(E, C.key, C);
20279
20279
  }
20280
20280
  }
20281
- return function(T, O, R) {
20282
- return O && A(T.prototype, O), R && A(T, R), T;
20281
+ return function(E, O, R) {
20282
+ return O && A(E.prototype, O), R && A(E, R), E;
20283
20283
  };
20284
20284
  }(), l = i(3), h = _(l), c = i(8), f = _(c), u = i(43), d = _(u), p = i(27), m = _(p), g = i(15), y = i(41), b = _(y);
20285
20285
  function _(A) {
20286
20286
  return A && A.__esModule ? A : { default: A };
20287
20287
  }
20288
- function v(A, T) {
20289
- if (!(A instanceof T))
20288
+ function v(A, E) {
20289
+ if (!(A instanceof E))
20290
20290
  throw new TypeError("Cannot call a class as a function");
20291
20291
  }
20292
- function x(A, T) {
20292
+ function x(A, E) {
20293
20293
  if (!A)
20294
20294
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
20295
- return T && (typeof T == "object" || typeof T == "function") ? T : A;
20295
+ return E && (typeof E == "object" || typeof E == "function") ? E : A;
20296
20296
  }
20297
- function S(A, T) {
20298
- if (typeof T != "function" && T !== null)
20299
- throw new TypeError("Super expression must either be null or a function, not " + typeof T);
20300
- A.prototype = Object.create(T && T.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(A, T) : A.__proto__ = T);
20297
+ function S(A, E) {
20298
+ if (typeof E != "function" && E !== null)
20299
+ throw new TypeError("Super expression must either be null or a function, not " + typeof E);
20300
+ A.prototype = Object.create(E && E.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(A, E) : A.__proto__ = E);
20301
20301
  }
20302
- var w = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], E = function(A) {
20303
- S(T, A);
20304
- function T(O, R) {
20305
- v(this, T), R.modules.toolbar != null && R.modules.toolbar.container == null && (R.modules.toolbar.container = w);
20306
- var C = x(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, O, R));
20302
+ var w = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], T = function(A) {
20303
+ S(E, A);
20304
+ function E(O, R) {
20305
+ v(this, E), R.modules.toolbar != null && R.modules.toolbar.container == null && (R.modules.toolbar.container = w);
20306
+ var C = x(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O, R));
20307
20307
  return C.quill.container.classList.add("ql-snow"), C;
20308
20308
  }
20309
- return o(T, [{
20309
+ return o(E, [{
20310
20310
  key: "extendToolbar",
20311
20311
  value: function(R) {
20312
20312
  R.container.classList.add("ql-snow"), this.buildButtons([].slice.call(R.container.querySelectorAll("button")), b.default), this.buildPickers([].slice.call(R.container.querySelectorAll("select")), b.default), this.tooltip = new N(this.quill, this.options.bounds), R.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(C, F) {
20313
20313
  R.handlers.link.call(R, !F.format.link);
20314
20314
  });
20315
20315
  }
20316
- }]), T;
20316
+ }]), E;
20317
20317
  }(d.default);
20318
- E.DEFAULTS = (0, h.default)(!0, {}, d.default.DEFAULTS, {
20318
+ T.DEFAULTS = (0, h.default)(!0, {}, d.default.DEFAULTS, {
20319
20319
  modules: {
20320
20320
  toolbar: {
20321
20321
  handlers: {
20322
- link: function(T) {
20323
- if (T) {
20322
+ link: function(E) {
20323
+ if (E) {
20324
20324
  var O = this.quill.getSelection();
20325
20325
  if (O == null || O.length == 0)
20326
20326
  return;
@@ -20336,17 +20336,17 @@ var Hh = { exports: {} };
20336
20336
  }
20337
20337
  });
20338
20338
  var N = function(A) {
20339
- S(T, A);
20340
- function T(O, R) {
20341
- v(this, T);
20342
- var C = x(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, O, R));
20339
+ S(E, A);
20340
+ function E(O, R) {
20341
+ v(this, E);
20342
+ var C = x(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O, R));
20343
20343
  return C.preview = C.root.querySelector("a.ql-preview"), C;
20344
20344
  }
20345
- return o(T, [{
20345
+ return o(E, [{
20346
20346
  key: "listen",
20347
20347
  value: function() {
20348
20348
  var R = this;
20349
- a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(C) {
20349
+ a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(C) {
20350
20350
  R.root.classList.contains("ql-editing") ? R.save() : R.edit("link", R.preview.textContent), C.preventDefault();
20351
20351
  }), this.root.querySelector("a.ql-remove").addEventListener("click", function(C) {
20352
20352
  if (R.linkRange != null) {
@@ -20373,11 +20373,11 @@ var Hh = { exports: {} };
20373
20373
  }, {
20374
20374
  key: "show",
20375
20375
  value: function() {
20376
- a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "show", this).call(this), this.root.removeAttribute("data-mode");
20376
+ a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "show", this).call(this), this.root.removeAttribute("data-mode");
20377
20377
  }
20378
- }]), T;
20378
+ }]), E;
20379
20379
  }(u.BaseTooltip);
20380
- N.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(""), n.default = E;
20380
+ N.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(""), n.default = T;
20381
20381
  },
20382
20382
  /* 63 */
20383
20383
  /***/
@@ -20385,7 +20385,7 @@ var Hh = { exports: {} };
20385
20385
  Object.defineProperty(n, "__esModule", {
20386
20386
  value: !0
20387
20387
  });
20388
- var s = i(29), a = Y(s), o = i(36), l = i(38), h = i(64), c = i(65), f = Y(c), u = i(66), d = Y(u), p = i(67), m = Y(p), g = i(37), y = i(26), b = i(39), _ = i(40), v = i(56), x = Y(v), S = i(68), w = Y(S), E = i(27), N = Y(E), A = i(69), T = Y(A), O = i(70), R = Y(O), C = i(71), F = Y(C), U = i(72), D = Y(U), z = i(73), $ = Y(z), k = i(13), I = Y(k), P = i(74), L = Y(P), j = i(75), G = Y(j), M = i(57), B = Y(M), q = i(41), H = Y(q), X = i(28), K = Y(X), tt = i(59), rt = Y(tt), ot = i(60), ut = Y(ot), It = i(61), St = Y(It), V = i(108), W = Y(V), Q = i(62), J = Y(Q);
20388
+ var s = i(29), a = Y(s), o = i(36), l = i(38), h = i(64), c = i(65), f = Y(c), u = i(66), d = Y(u), p = i(67), m = Y(p), g = i(37), y = i(26), b = i(39), _ = i(40), v = i(56), x = Y(v), S = i(68), w = Y(S), T = i(27), N = Y(T), A = i(69), E = Y(A), O = i(70), R = Y(O), C = i(71), F = Y(C), U = i(72), D = Y(U), z = i(73), $ = Y(z), k = i(13), I = Y(k), P = i(74), L = Y(P), j = i(75), G = Y(j), M = i(57), B = Y(M), q = i(41), H = Y(q), X = i(28), K = Y(X), tt = i(59), rt = Y(tt), at = i(60), ut = Y(at), It = i(61), St = Y(It), V = i(108), W = Y(V), Q = i(62), J = Y(Q);
20389
20389
  function Y(ht) {
20390
20390
  return ht && ht.__esModule ? ht : { default: ht };
20391
20391
  }
@@ -20419,7 +20419,7 @@ var Hh = { exports: {} };
20419
20419
  "formats/code": k.Code,
20420
20420
  "formats/italic": w.default,
20421
20421
  "formats/link": N.default,
20422
- "formats/script": T.default,
20422
+ "formats/script": E.default,
20423
20423
  "formats/strike": R.default,
20424
20424
  "formats/underline": F.default,
20425
20425
  "formats/image": D.default,
@@ -20604,8 +20604,8 @@ var Hh = { exports: {} };
20604
20604
  var s = function() {
20605
20605
  function v(x, S) {
20606
20606
  for (var w = 0; w < S.length; w++) {
20607
- var E = S[w];
20608
- E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(x, E.key, E);
20607
+ var T = S[w];
20608
+ T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(x, T.key, T);
20609
20609
  }
20610
20610
  }
20611
20611
  return function(x, S, w) {
@@ -20613,14 +20613,14 @@ var Hh = { exports: {} };
20613
20613
  };
20614
20614
  }(), a = function v(x, S, w) {
20615
20615
  x === null && (x = Function.prototype);
20616
- var E = Object.getOwnPropertyDescriptor(x, S);
20617
- if (E === void 0) {
20616
+ var T = Object.getOwnPropertyDescriptor(x, S);
20617
+ if (T === void 0) {
20618
20618
  var N = Object.getPrototypeOf(x);
20619
20619
  return N === null ? void 0 : v(N, S, w);
20620
20620
  } else {
20621
- if ("value" in E)
20622
- return E.value;
20623
- var A = E.get;
20621
+ if ("value" in T)
20622
+ return T.value;
20623
+ var A = T.get;
20624
20624
  return A === void 0 ? void 0 : A.call(w);
20625
20625
  }
20626
20626
  }, o = i(0), l = d(o), h = i(4), c = d(h), f = i(25), u = d(f);
@@ -20651,8 +20651,8 @@ var Hh = { exports: {} };
20651
20651
  }
20652
20652
  return s(x, [{
20653
20653
  key: "format",
20654
- value: function(w, E) {
20655
- w === _.blotName && !E ? this.replaceWith(l.default.create(this.statics.scope)) : a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "format", this).call(this, w, E);
20654
+ value: function(w, T) {
20655
+ w === _.blotName && !T ? this.replaceWith(l.default.create(this.statics.scope)) : a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "format", this).call(this, w, T);
20656
20656
  }
20657
20657
  }, {
20658
20658
  key: "remove",
@@ -20661,8 +20661,8 @@ var Hh = { exports: {} };
20661
20661
  }
20662
20662
  }, {
20663
20663
  key: "replaceWith",
20664
- value: function(w, E) {
20665
- return this.parent.isolate(this.offset(this.parent), this.length()), w === this.parent.statics.blotName ? (this.parent.replaceWith(w, E), this) : (this.parent.unwrap(), a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replaceWith", this).call(this, w, E));
20664
+ value: function(w, T) {
20665
+ return this.parent.isolate(this.offset(this.parent), this.length()), w === this.parent.statics.blotName ? (this.parent.replaceWith(w, T), this) : (this.parent.unwrap(), a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replaceWith", this).call(this, w, T));
20666
20666
  }
20667
20667
  }], [{
20668
20668
  key: "formats",
@@ -20676,7 +20676,7 @@ var Hh = { exports: {} };
20676
20676
  y(x, v), s(x, null, [{
20677
20677
  key: "create",
20678
20678
  value: function(w) {
20679
- var E = w === "ordered" ? "OL" : "UL", N = a(x.__proto__ || Object.getPrototypeOf(x), "create", this).call(this, E);
20679
+ var T = w === "ordered" ? "OL" : "UL", N = a(x.__proto__ || Object.getPrototypeOf(x), "create", this).call(this, T);
20680
20680
  return (w === "checked" || w === "unchecked") && N.setAttribute("data-checked", w === "checked"), N;
20681
20681
  }
20682
20682
  }, {
@@ -20690,18 +20690,18 @@ var Hh = { exports: {} };
20690
20690
  }]);
20691
20691
  function x(S) {
20692
20692
  m(this, x);
20693
- var w = g(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this, S)), E = function(A) {
20693
+ var w = g(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this, S)), T = function(A) {
20694
20694
  if (A.target.parentNode === S) {
20695
- var T = w.statics.formats(S), O = l.default.find(A.target);
20696
- T === "checked" ? O.format("list", "unchecked") : T === "unchecked" && O.format("list", "checked");
20695
+ var E = w.statics.formats(S), O = l.default.find(A.target);
20696
+ E === "checked" ? O.format("list", "unchecked") : E === "unchecked" && O.format("list", "checked");
20697
20697
  }
20698
20698
  };
20699
- return S.addEventListener("touchstart", E), S.addEventListener("mousedown", E), w;
20699
+ return S.addEventListener("touchstart", T), S.addEventListener("mousedown", T), w;
20700
20700
  }
20701
20701
  return s(x, [{
20702
20702
  key: "format",
20703
- value: function(w, E) {
20704
- this.children.length > 0 && this.children.tail.format(w, E);
20703
+ value: function(w, T) {
20704
+ this.children.length > 0 && this.children.tail.format(w, T);
20705
20705
  }
20706
20706
  }, {
20707
20707
  key: "formats",
@@ -20710,11 +20710,11 @@ var Hh = { exports: {} };
20710
20710
  }
20711
20711
  }, {
20712
20712
  key: "insertBefore",
20713
- value: function(w, E) {
20713
+ value: function(w, T) {
20714
20714
  if (w instanceof b)
20715
- a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "insertBefore", this).call(this, w, E);
20715
+ a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "insertBefore", this).call(this, w, T);
20716
20716
  else {
20717
- var N = E == null ? this.length() : E.offset(this), A = this.split(N);
20717
+ var N = T == null ? this.length() : T.offset(this), A = this.split(N);
20718
20718
  A.parent.insertBefore(w, A);
20719
20719
  }
20720
20720
  }
@@ -20722,15 +20722,15 @@ var Hh = { exports: {} };
20722
20722
  key: "optimize",
20723
20723
  value: function(w) {
20724
20724
  a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "optimize", this).call(this, w);
20725
- var E = this.next;
20726
- E != null && E.prev === this && E.statics.blotName === this.statics.blotName && E.domNode.tagName === this.domNode.tagName && E.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (E.moveChildren(this), E.remove());
20725
+ var T = this.next;
20726
+ T != null && T.prev === this && T.statics.blotName === this.statics.blotName && T.domNode.tagName === this.domNode.tagName && T.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (T.moveChildren(this), T.remove());
20727
20727
  }
20728
20728
  }, {
20729
20729
  key: "replace",
20730
20730
  value: function(w) {
20731
20731
  if (w.statics.blotName !== this.statics.blotName) {
20732
- var E = l.default.create(this.statics.defaultChild);
20733
- w.moveChildren(E), this.appendChild(E);
20732
+ var T = l.default.create(this.statics.defaultChild);
20733
+ w.moveChildren(T), this.appendChild(T);
20734
20734
  }
20735
20735
  a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replace", this).call(this, w);
20736
20736
  }
@@ -21096,8 +21096,8 @@ var Hh = { exports: {} };
21096
21096
  v === null && (v = Function.prototype);
21097
21097
  var w = Object.getOwnPropertyDescriptor(v, x);
21098
21098
  if (w === void 0) {
21099
- var E = Object.getPrototypeOf(v);
21100
- return E === null ? void 0 : _(E, x, S);
21099
+ var T = Object.getPrototypeOf(v);
21100
+ return T === null ? void 0 : _(T, x, S);
21101
21101
  } else {
21102
21102
  if ("value" in w)
21103
21103
  return w.value;
@@ -21169,21 +21169,21 @@ var Hh = { exports: {} };
21169
21169
  value: !0
21170
21170
  }), n.default = n.CodeToken = n.CodeBlock = void 0;
21171
21171
  var s = function() {
21172
- function S(w, E) {
21173
- for (var N = 0; N < E.length; N++) {
21174
- var A = E[N];
21172
+ function S(w, T) {
21173
+ for (var N = 0; N < T.length; N++) {
21174
+ var A = T[N];
21175
21175
  A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(w, A.key, A);
21176
21176
  }
21177
21177
  }
21178
- return function(w, E, N) {
21179
- return E && S(w.prototype, E), N && S(w, N), w;
21178
+ return function(w, T, N) {
21179
+ return T && S(w.prototype, T), N && S(w, N), w;
21180
21180
  };
21181
- }(), a = function S(w, E, N) {
21181
+ }(), a = function S(w, T, N) {
21182
21182
  w === null && (w = Function.prototype);
21183
- var A = Object.getOwnPropertyDescriptor(w, E);
21183
+ var A = Object.getOwnPropertyDescriptor(w, T);
21184
21184
  if (A === void 0) {
21185
- var T = Object.getPrototypeOf(w);
21186
- return T === null ? void 0 : S(T, E, N);
21185
+ var E = Object.getPrototypeOf(w);
21186
+ return E === null ? void 0 : S(E, T, N);
21187
21187
  } else {
21188
21188
  if ("value" in A)
21189
21189
  return A.value;
@@ -21236,15 +21236,15 @@ var Hh = { exports: {} };
21236
21236
  c.default.register(v, !0), c.default.register(_, !0);
21237
21237
  }
21238
21238
  }]);
21239
- function w(E, N) {
21239
+ function w(T, N) {
21240
21240
  g(this, w);
21241
- var A = y(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, E, N));
21241
+ var A = y(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, T, N));
21242
21242
  if (typeof A.options.highlight != "function")
21243
21243
  throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
21244
- var T = null;
21244
+ var E = null;
21245
21245
  return A.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
21246
- clearTimeout(T), T = setTimeout(function() {
21247
- A.highlight(), T = null;
21246
+ clearTimeout(E), E = setTimeout(function() {
21247
+ A.highlight(), E = null;
21248
21248
  }, A.options.interval);
21249
21249
  }), A.highlight(), A;
21250
21250
  }
@@ -21255,8 +21255,8 @@ var Hh = { exports: {} };
21255
21255
  if (!this.quill.selection.composing) {
21256
21256
  this.quill.update(c.default.sources.USER);
21257
21257
  var A = this.quill.getSelection();
21258
- this.quill.scroll.descendants(_).forEach(function(T) {
21259
- T.highlight(N.options.highlight);
21258
+ this.quill.scroll.descendants(_).forEach(function(E) {
21259
+ E.highlight(N.options.highlight);
21260
21260
  }), this.quill.update(c.default.sources.SILENT), A != null && this.quill.setSelection(A, c.default.sources.SILENT);
21261
21261
  }
21262
21262
  }
@@ -21438,102 +21438,102 @@ var Hh = { exports: {} };
21438
21438
  Object.defineProperty(n, "__esModule", {
21439
21439
  value: !0
21440
21440
  }), n.default = n.BubbleTooltip = void 0;
21441
- var s = function w(E, N, A) {
21442
- E === null && (E = Function.prototype);
21443
- var T = Object.getOwnPropertyDescriptor(E, N);
21444
- if (T === void 0) {
21445
- var O = Object.getPrototypeOf(E);
21441
+ var s = function w(T, N, A) {
21442
+ T === null && (T = Function.prototype);
21443
+ var E = Object.getOwnPropertyDescriptor(T, N);
21444
+ if (E === void 0) {
21445
+ var O = Object.getPrototypeOf(T);
21446
21446
  return O === null ? void 0 : w(O, N, A);
21447
21447
  } else {
21448
- if ("value" in T)
21449
- return T.value;
21450
- var R = T.get;
21448
+ if ("value" in E)
21449
+ return E.value;
21450
+ var R = E.get;
21451
21451
  return R === void 0 ? void 0 : R.call(A);
21452
21452
  }
21453
21453
  }, a = function() {
21454
- function w(E, N) {
21454
+ function w(T, N) {
21455
21455
  for (var A = 0; A < N.length; A++) {
21456
- var T = N[A];
21457
- T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(E, T.key, T);
21456
+ var E = N[A];
21457
+ E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(T, E.key, E);
21458
21458
  }
21459
21459
  }
21460
- return function(E, N, A) {
21461
- return N && w(E.prototype, N), A && w(E, A), E;
21460
+ return function(T, N, A) {
21461
+ return N && w(T.prototype, N), A && w(T, A), T;
21462
21462
  };
21463
21463
  }(), o = i(3), l = g(o), h = i(8), c = g(h), f = i(43), u = g(f), d = i(15), p = i(41), m = g(p);
21464
21464
  function g(w) {
21465
21465
  return w && w.__esModule ? w : { default: w };
21466
21466
  }
21467
- function y(w, E) {
21468
- if (!(w instanceof E))
21467
+ function y(w, T) {
21468
+ if (!(w instanceof T))
21469
21469
  throw new TypeError("Cannot call a class as a function");
21470
21470
  }
21471
- function b(w, E) {
21471
+ function b(w, T) {
21472
21472
  if (!w)
21473
21473
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
21474
- return E && (typeof E == "object" || typeof E == "function") ? E : w;
21474
+ return T && (typeof T == "object" || typeof T == "function") ? T : w;
21475
21475
  }
21476
- function _(w, E) {
21477
- if (typeof E != "function" && E !== null)
21478
- throw new TypeError("Super expression must either be null or a function, not " + typeof E);
21479
- w.prototype = Object.create(E && E.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(w, E) : w.__proto__ = E);
21476
+ function _(w, T) {
21477
+ if (typeof T != "function" && T !== null)
21478
+ throw new TypeError("Super expression must either be null or a function, not " + typeof T);
21479
+ w.prototype = Object.create(T && T.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(w, T) : w.__proto__ = T);
21480
21480
  }
21481
21481
  var v = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], x = function(w) {
21482
- _(E, w);
21483
- function E(N, A) {
21484
- y(this, E), A.modules.toolbar != null && A.modules.toolbar.container == null && (A.modules.toolbar.container = v);
21485
- var T = b(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, N, A));
21486
- return T.quill.container.classList.add("ql-bubble"), T;
21482
+ _(T, w);
21483
+ function T(N, A) {
21484
+ y(this, T), A.modules.toolbar != null && A.modules.toolbar.container == null && (A.modules.toolbar.container = v);
21485
+ var E = b(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, N, A));
21486
+ return E.quill.container.classList.add("ql-bubble"), E;
21487
21487
  }
21488
- return a(E, [{
21488
+ return a(T, [{
21489
21489
  key: "extendToolbar",
21490
21490
  value: function(A) {
21491
21491
  this.tooltip = new S(this.quill, this.options.bounds), this.tooltip.root.appendChild(A.container), this.buildButtons([].slice.call(A.container.querySelectorAll("button")), m.default), this.buildPickers([].slice.call(A.container.querySelectorAll("select")), m.default);
21492
21492
  }
21493
- }]), E;
21493
+ }]), T;
21494
21494
  }(u.default);
21495
21495
  x.DEFAULTS = (0, l.default)(!0, {}, u.default.DEFAULTS, {
21496
21496
  modules: {
21497
21497
  toolbar: {
21498
21498
  handlers: {
21499
- link: function(E) {
21500
- E ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
21499
+ link: function(T) {
21500
+ T ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
21501
21501
  }
21502
21502
  }
21503
21503
  }
21504
21504
  }
21505
21505
  });
21506
21506
  var S = function(w) {
21507
- _(E, w);
21508
- function E(N, A) {
21509
- y(this, E);
21510
- var T = b(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, N, A));
21511
- return T.quill.on(c.default.events.EDITOR_CHANGE, function(O, R, C, F) {
21507
+ _(T, w);
21508
+ function T(N, A) {
21509
+ y(this, T);
21510
+ var E = b(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, N, A));
21511
+ return E.quill.on(c.default.events.EDITOR_CHANGE, function(O, R, C, F) {
21512
21512
  if (O === c.default.events.SELECTION_CHANGE)
21513
21513
  if (R != null && R.length > 0 && F === c.default.sources.USER) {
21514
- T.show(), T.root.style.left = "0px", T.root.style.width = "", T.root.style.width = T.root.offsetWidth + "px";
21515
- var U = T.quill.getLines(R.index, R.length);
21514
+ E.show(), E.root.style.left = "0px", E.root.style.width = "", E.root.style.width = E.root.offsetWidth + "px";
21515
+ var U = E.quill.getLines(R.index, R.length);
21516
21516
  if (U.length === 1)
21517
- T.position(T.quill.getBounds(R));
21517
+ E.position(E.quill.getBounds(R));
21518
21518
  else {
21519
- var D = U[U.length - 1], z = T.quill.getIndex(D), $ = Math.min(D.length() - 1, R.index + R.length - z), k = T.quill.getBounds(new d.Range(z, $));
21520
- T.position(k);
21519
+ var D = U[U.length - 1], z = E.quill.getIndex(D), $ = Math.min(D.length() - 1, R.index + R.length - z), k = E.quill.getBounds(new d.Range(z, $));
21520
+ E.position(k);
21521
21521
  }
21522
21522
  } else
21523
- document.activeElement !== T.textbox && T.quill.hasFocus() && T.hide();
21524
- }), T;
21523
+ document.activeElement !== E.textbox && E.quill.hasFocus() && E.hide();
21524
+ }), E;
21525
21525
  }
21526
- return a(E, [{
21526
+ return a(T, [{
21527
21527
  key: "listen",
21528
21528
  value: function() {
21529
21529
  var A = this;
21530
- s(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
21530
+ s(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
21531
21531
  A.root.classList.remove("ql-editing");
21532
21532
  }), this.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
21533
21533
  setTimeout(function() {
21534
21534
  if (!A.root.classList.contains("ql-hidden")) {
21535
- var T = A.quill.getSelection();
21536
- T != null && A.position(A.quill.getBounds(T));
21535
+ var E = A.quill.getSelection();
21536
+ E != null && A.position(A.quill.getBounds(E));
21537
21537
  }
21538
21538
  }, 1);
21539
21539
  });
@@ -21546,12 +21546,12 @@ var Hh = { exports: {} };
21546
21546
  }, {
21547
21547
  key: "position",
21548
21548
  value: function(A) {
21549
- var T = s(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "position", this).call(this, A), O = this.root.querySelector(".ql-tooltip-arrow");
21550
- if (O.style.marginLeft = "", T === 0)
21551
- return T;
21552
- O.style.marginLeft = -1 * T - O.offsetWidth / 2 + "px";
21549
+ var E = s(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "position", this).call(this, A), O = this.root.querySelector(".ql-tooltip-arrow");
21550
+ if (O.style.marginLeft = "", E === 0)
21551
+ return E;
21552
+ O.style.marginLeft = -1 * E - O.offsetWidth / 2 + "px";
21553
21553
  }
21554
- }]), E;
21554
+ }]), T;
21555
21555
  }(f.BaseTooltip);
21556
21556
  S.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(""), n.BubbleTooltip = S, n.default = x;
21557
21557
  },
@@ -21587,11 +21587,11 @@ const oA = (e) => {
21587
21587
  scale: x = [1, 1],
21588
21588
  x: S,
21589
21589
  y: w,
21590
- rotation: E = 1,
21590
+ rotation: T = 1,
21591
21591
  /// font
21592
21592
  fontFamily: N = "Arial",
21593
21593
  fontWeight: A = "normal",
21594
- fontStyle: T = "normal",
21594
+ fontStyle: E = "normal",
21595
21595
  fontSize: O = 16,
21596
21596
  // fill
21597
21597
  fill: R = "black",
@@ -21607,12 +21607,12 @@ const oA = (e) => {
21607
21607
  leading: k = 0,
21608
21608
  letterSpacing: I
21609
21609
  } = u;
21610
- at.useEffect(() => {
21610
+ ot.useEffect(() => {
21611
21611
  o.current = Number(O);
21612
21612
  }, [O]);
21613
- const P = ["italic", "oblique"].includes(T) ? T : void 0, L = ["bold", "lighter", "100", "200", "300"].includes(
21613
+ const P = ["italic", "oblique"].includes(E) ? E : void 0, L = ["bold", "lighter", "100", "200", "300"].includes(
21614
21614
  A
21615
- ) ? A : void 0, j = Number(I) > 0 ? I : void 0, G = at.useMemo(() => new de.TextStyle({
21615
+ ) ? A : void 0, j = Number(I) > 0 ? I : void 0, G = ot.useMemo(() => new de.TextStyle({
21616
21616
  fontFamily: N,
21617
21617
  fontSize: O,
21618
21618
  fill: R || "white",
@@ -21653,7 +21653,7 @@ const oA = (e) => {
21653
21653
  F,
21654
21654
  $
21655
21655
  ]);
21656
- at.useEffect(() => {
21656
+ ot.useEffect(() => {
21657
21657
  l.current = {
21658
21658
  ...u
21659
21659
  };
@@ -21665,7 +21665,7 @@ const oA = (e) => {
21665
21665
  droptype: "titles"
21666
21666
  });
21667
21667
  };
21668
- return at.useEffect(() => {
21668
+ return ot.useEffect(() => {
21669
21669
  if (t && s.current) {
21670
21670
  let q = document.getElementById("note-editor");
21671
21671
  if (q) {
@@ -21713,7 +21713,7 @@ const oA = (e) => {
21713
21713
  style: G,
21714
21714
  x: S,
21715
21715
  y: w,
21716
- rotation: E,
21716
+ rotation: T,
21717
21717
  anchor: 0.5,
21718
21718
  text: c,
21719
21719
  ...!t && !f && {
@@ -21746,10 +21746,10 @@ const oA = (e) => {
21746
21746
  size: { width: 50, height: 50 },
21747
21747
  isDragging: !1
21748
21748
  }, lA = (e) => {
21749
- const [t, r] = at.useState(!1), [, n] = le(!1), [, i] = at.useState({
21749
+ const [t, r] = ot.useState(!1), [, n] = le(!1), [, i] = ot.useState({
21750
21750
  isWaiting: !1,
21751
21751
  isStalled: !1
21752
- }), [s, a] = at.useState(), [o, l] = le(!1), h = dt(null), c = dt(null), f = dt(null), u = dt(null), d = dt(null), p = dt(null), m = dt(XT), {
21752
+ }), [s, a] = ot.useState(), [o, l] = le(!1), h = dt(null), c = dt(null), f = dt(null), u = dt(null), d = dt(null), p = dt(null), m = dt(XT), {
21753
21753
  tl: g,
21754
21754
  playerTimeRef: y,
21755
21755
  isDragging: b
@@ -21759,10 +21759,10 @@ const oA = (e) => {
21759
21759
  locked: x = !1,
21760
21760
  src: S,
21761
21761
  startAt: w,
21762
- endAt: E,
21762
+ endAt: T,
21763
21763
  frameStartAt: N,
21764
21764
  frameEndAt: A,
21765
- initialAlpha: T,
21765
+ initialAlpha: E,
21766
21766
  transformation: {
21767
21767
  x: O,
21768
21768
  y: R,
@@ -21787,21 +21787,21 @@ const oA = (e) => {
21787
21787
  contrast: K = 1,
21788
21788
  saturation: tt = 1,
21789
21789
  exposure: rt = 1,
21790
- blurRadius: ot = 0,
21790
+ blurRadius: at = 0,
21791
21791
  alpha: ut = 1
21792
21792
  } = $ || {}, It = {
21793
21793
  brightness: rt,
21794
21794
  contrast: K,
21795
21795
  saturation: tt,
21796
21796
  alpha: ut
21797
- }, St = at.useCallback(() => {
21797
+ }, St = ot.useCallback(() => {
21798
21798
  l(!0);
21799
- }, []), V = at.useCallback(
21799
+ }, []), V = ot.useCallback(
21800
21800
  (Z) => {
21801
21801
  console.log("changeEnd", Z), H && (console.log("running onAnchorTransformationEnd"), H(Z));
21802
21802
  },
21803
21803
  []
21804
- ), W = at.useMemo(() => {
21804
+ ), W = ot.useMemo(() => {
21805
21805
  const Z = document.createElement("video");
21806
21806
  return Z.src = S, Z.crossOrigin = "Anonymus", Z.autoplay = !1, Z.currentTime = 1e-4, Z;
21807
21807
  }, [S]);
@@ -21810,11 +21810,11 @@ const oA = (e) => {
21810
21810
  const it = p.current;
21811
21811
  it.currentTime > 0 && !it.paused && !it.ended && it.readyState > it.HAVE_CURRENT_DATA && p.current.pause(), m.current.isPlaying = !1;
21812
21812
  }
21813
- }), at.useEffect(() => {
21813
+ }), ot.useEffect(() => {
21814
21814
  console.log("current", p.current, b), p.current && (b ? (p.current.pause(), m.current.isPlaying = !1, m.current.isDragging = !0) : m.current.isDragging = !1);
21815
21815
  }, [b]);
21816
21816
  const Q = (Z) => {
21817
- p.current && (console.log("video gsapOnStart", y.current, b), y.current >= Z && y.current <= E && !b && (p.current.currentTime = Number(N) || Number(Z), p.current.play(), m.current.isPlaying = !0));
21817
+ p.current && (console.log("video gsapOnStart", y.current, b), y.current >= Z && y.current <= T && !b && (p.current.currentTime = Number(N) || Number(Z), p.current.play(), m.current.isPlaying = !0));
21818
21818
  }, J = () => {
21819
21819
  if (console.log("onComplete triggered"), p.current) {
21820
21820
  const Z = p.current;
@@ -21837,7 +21837,7 @@ const oA = (e) => {
21837
21837
  });
21838
21838
  if (c.current && g.current) {
21839
21839
  const it = {
21840
- duration: Number(E) - Number(w),
21840
+ duration: Number(T) - Number(w),
21841
21841
  onStart: Q,
21842
21842
  onComplete: J,
21843
21843
  onStartParams: [w],
@@ -21851,30 +21851,30 @@ const oA = (e) => {
21851
21851
  ee(At.from) ? ee(At.to) ? ee(At.fromTo) ? g.current.to(c.current, { alpha: 1, duration: 0.01 }, w).from(u.current, { ...it }, w).to(
21852
21852
  c.current,
21853
21853
  { alpha: 0, duration: 0.1 },
21854
- Number(E) - 0.1
21854
+ Number(T) - 0.1
21855
21855
  ) : g.current.fromTo(
21856
21856
  c.current,
21857
21857
  (Gt = At.fromTo) == null ? void 0 : Gt.from,
21858
21858
  (bt = At.fromTo) == null ? void 0 : bt.to,
21859
21859
  w
21860
- ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, E - 0.2) : g.current.to(
21860
+ ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2) : g.current.to(
21861
21861
  c.current,
21862
21862
  { alpha: 1, duration: 0.2, ...At.to },
21863
21863
  w
21864
- ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, E - 0.2) : g.current.from(c.current, { ...At.from }, w).to(u.current, { alpha: 1, duration: 0.2 }, w).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, E - 0.2);
21864
+ ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2) : g.current.from(c.current, { ...At.from }, w).to(u.current, { alpha: 1, duration: 0.2 }, w).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2);
21865
21865
  });
21866
21866
  }
21867
21867
  return () => Z.revert();
21868
- }, [z, w, E]), at.useEffect(() => {
21868
+ }, [z, w, T]), ot.useEffect(() => {
21869
21869
  c.current && r(!0);
21870
- }, []), at.useEffect(() => {
21870
+ }, []), ot.useEffect(() => {
21871
21871
  p.current && (p.current.muted = v);
21872
- }, [v]), at.useEffect(() => {
21872
+ }, [v]), ot.useEffect(() => {
21873
21873
  if (p.current) {
21874
21874
  const Z = p.current;
21875
21875
  Z.currentTime > 0 && !Z.paused && !Z.ended && Z.readyState > Z.HAVE_CURRENT_DATA && (o || b) && (p.current.pause(), m.current.isPlaying = !1);
21876
21876
  }
21877
- }, [o, b]), at.useEffect(() => {
21877
+ }, [o, b]), ot.useEffect(() => {
21878
21878
  const Z = Math.round((Number(N) + Number.EPSILON) * 100) / 100, it = function() {
21879
21879
  p.current && (p.current.currentTime = Z);
21880
21880
  }, At = function() {
@@ -21911,7 +21911,7 @@ const oA = (e) => {
21911
21911
  Ft,
21912
21912
  {
21913
21913
  ref: c,
21914
- alpha: T,
21914
+ alpha: E,
21915
21915
  position: [O, R],
21916
21916
  pivot: [O, R],
21917
21917
  width: C,
@@ -21920,7 +21920,7 @@ const oA = (e) => {
21920
21920
  zT,
21921
21921
  {
21922
21922
  scale: 1,
21923
- blur: { blur: ot, quality: 4 },
21923
+ blur: { blur: at, quality: 4 },
21924
21924
  adjust: It,
21925
21925
  apply: ({ matrix: Z }) => {
21926
21926
  k === "BlackAndWhite" ? Z.desaturate() : k === "Sepia" ? Z.sepia() : k === "RetroVintage" || k === "NightVision" ? Z.negative() : k === "Normal" && Z.reset();