@orchidui/dashboard 1.19.0-3 → 1.20.1-0

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.
@@ -1715,20 +1715,20 @@ function Id() {
1715
1715
  if (il) return Os;
1716
1716
  il = 1;
1717
1717
  var r = -1, t = 1, e = 0;
1718
- function n(g, x, v, O, U) {
1718
+ function n(g, x, v, C, P) {
1719
1719
  if (g === x)
1720
1720
  return g ? [[e, g]] : [];
1721
1721
  if (v != null) {
1722
- var L = Mt(g, x, v);
1723
- if (L)
1724
- return L;
1722
+ var S = Mt(g, x, v);
1723
+ if (S)
1724
+ return S;
1725
1725
  }
1726
1726
  var $ = a(g, x), H = g.substring(0, $);
1727
1727
  g = g.substring($), x = x.substring($), $ = d(g, x);
1728
1728
  var z = g.substring(g.length - $);
1729
1729
  g = g.substring(0, g.length - $), x = x.substring(0, x.length - $);
1730
1730
  var N = s(g, x);
1731
- return H && N.unshift([e, H]), z && N.push([e, z]), K(N, U), O && E(N), N;
1731
+ return H && N.unshift([e, H]), z && N.push([e, z]), K(N, P), C && E(N), N;
1732
1732
  }
1733
1733
  function s(g, x) {
1734
1734
  var v;
@@ -1736,41 +1736,41 @@ function Id() {
1736
1736
  return [[t, x]];
1737
1737
  if (!x)
1738
1738
  return [[r, g]];
1739
- var O = g.length > x.length ? g : x, U = g.length > x.length ? x : g, L = O.indexOf(U);
1740
- if (L !== -1)
1739
+ var C = g.length > x.length ? g : x, P = g.length > x.length ? x : g, S = C.indexOf(P);
1740
+ if (S !== -1)
1741
1741
  return v = [
1742
- [t, O.substring(0, L)],
1743
- [e, U],
1744
- [t, O.substring(L + U.length)]
1742
+ [t, C.substring(0, S)],
1743
+ [e, P],
1744
+ [t, C.substring(S + P.length)]
1745
1745
  ], g.length > x.length && (v[0][0] = v[2][0] = r), v;
1746
- if (U.length === 1)
1746
+ if (P.length === 1)
1747
1747
  return [
1748
1748
  [r, g],
1749
1749
  [t, x]
1750
1750
  ];
1751
1751
  var $ = y(g, x);
1752
1752
  if ($) {
1753
- var H = $[0], z = $[1], N = $[2], _ = $[3], S = $[4], V = n(H, N), W = n(z, _);
1754
- return V.concat([[e, S]], W);
1753
+ var H = $[0], z = $[1], N = $[2], _ = $[3], O = $[4], V = n(H, N), W = n(z, _);
1754
+ return V.concat([[e, O]], W);
1755
1755
  }
1756
1756
  return i(g, x);
1757
1757
  }
1758
1758
  function i(g, x) {
1759
- for (var v = g.length, O = x.length, U = Math.ceil((v + O) / 2), L = U, $ = 2 * U, H = new Array($), z = new Array($), N = 0; N < $; N++)
1759
+ for (var v = g.length, C = x.length, P = Math.ceil((v + C) / 2), S = P, $ = 2 * P, H = new Array($), z = new Array($), N = 0; N < $; N++)
1760
1760
  H[N] = -1, z[N] = -1;
1761
- H[L + 1] = 0, z[L + 1] = 0;
1762
- for (var _ = v - O, S = _ % 2 !== 0, V = 0, W = 0, R = 0, pt = 0, ht = 0; ht < U; ht++) {
1761
+ H[S + 1] = 0, z[S + 1] = 0;
1762
+ for (var _ = v - C, O = _ % 2 !== 0, V = 0, W = 0, M = 0, pt = 0, ht = 0; ht < P; ht++) {
1763
1763
  for (var lt = -ht + V; lt <= ht - W; lt += 2) {
1764
- var dt = L + lt, gt;
1764
+ var dt = S + lt, gt;
1765
1765
  lt === -ht || lt !== ht && H[dt - 1] < H[dt + 1] ? gt = H[dt + 1] : gt = H[dt - 1] + 1;
1766
- for (var yt = gt - lt; gt < v && yt < O && g.charAt(gt) === x.charAt(yt); )
1766
+ for (var yt = gt - lt; gt < v && yt < C && g.charAt(gt) === x.charAt(yt); )
1767
1767
  gt++, yt++;
1768
1768
  if (H[dt] = gt, gt > v)
1769
1769
  W += 2;
1770
- else if (yt > O)
1770
+ else if (yt > C)
1771
1771
  V += 2;
1772
- else if (S) {
1773
- var mt = L + _ - lt;
1772
+ else if (O) {
1773
+ var mt = S + _ - lt;
1774
1774
  if (mt >= 0 && mt < $ && z[mt] !== -1) {
1775
1775
  var ct = v - z[mt];
1776
1776
  if (gt >= ct)
@@ -1778,19 +1778,19 @@ function Id() {
1778
1778
  }
1779
1779
  }
1780
1780
  }
1781
- for (var Ct = -ht + R; Ct <= ht - pt; Ct += 2) {
1782
- var mt = L + Ct, ct;
1781
+ for (var Ct = -ht + M; Ct <= ht - pt; Ct += 2) {
1782
+ var mt = S + Ct, ct;
1783
1783
  Ct === -ht || Ct !== ht && z[mt - 1] < z[mt + 1] ? ct = z[mt + 1] : ct = z[mt - 1] + 1;
1784
- for (var kt = ct - Ct; ct < v && kt < O && g.charAt(v - ct - 1) === x.charAt(O - kt - 1); )
1784
+ for (var kt = ct - Ct; ct < v && kt < C && g.charAt(v - ct - 1) === x.charAt(C - kt - 1); )
1785
1785
  ct++, kt++;
1786
1786
  if (z[mt] = ct, ct > v)
1787
1787
  pt += 2;
1788
- else if (kt > O)
1789
- R += 2;
1790
- else if (!S) {
1791
- var dt = L + _ - Ct;
1788
+ else if (kt > C)
1789
+ M += 2;
1790
+ else if (!O) {
1791
+ var dt = S + _ - Ct;
1792
1792
  if (dt >= 0 && dt < $ && H[dt] !== -1) {
1793
- var gt = H[dt], yt = L + gt - dt;
1793
+ var gt = H[dt], yt = S + gt - dt;
1794
1794
  if (ct = v - ct, gt >= ct)
1795
1795
  return o(g, x, gt, yt);
1796
1796
  }
@@ -1802,53 +1802,53 @@ function Id() {
1802
1802
  [t, x]
1803
1803
  ];
1804
1804
  }
1805
- function o(g, x, v, O) {
1806
- var U = g.substring(0, v), L = x.substring(0, O), $ = g.substring(v), H = x.substring(O), z = n(U, L), N = n($, H);
1805
+ function o(g, x, v, C) {
1806
+ var P = g.substring(0, v), S = x.substring(0, C), $ = g.substring(v), H = x.substring(C), z = n(P, S), N = n($, H);
1807
1807
  return z.concat(N);
1808
1808
  }
1809
1809
  function a(g, x) {
1810
1810
  if (!g || !x || g.charAt(0) !== x.charAt(0))
1811
1811
  return 0;
1812
- for (var v = 0, O = Math.min(g.length, x.length), U = O, L = 0; v < U; )
1813
- g.substring(L, U) == x.substring(L, U) ? (v = U, L = v) : O = U, U = Math.floor((O - v) / 2 + v);
1814
- return Z(g.charCodeAt(U - 1)) && U--, U;
1812
+ for (var v = 0, C = Math.min(g.length, x.length), P = C, S = 0; v < P; )
1813
+ g.substring(S, P) == x.substring(S, P) ? (v = P, S = v) : C = P, P = Math.floor((C - v) / 2 + v);
1814
+ return Z(g.charCodeAt(P - 1)) && P--, P;
1815
1815
  }
1816
1816
  function h(g, x) {
1817
- var v = g.length, O = x.length;
1818
- if (v == 0 || O == 0)
1817
+ var v = g.length, C = x.length;
1818
+ if (v == 0 || C == 0)
1819
1819
  return 0;
1820
- v > O ? g = g.substring(v - O) : v < O && (x = x.substring(0, v));
1821
- var U = Math.min(v, O);
1820
+ v > C ? g = g.substring(v - C) : v < C && (x = x.substring(0, v));
1821
+ var P = Math.min(v, C);
1822
1822
  if (g == x)
1823
- return U;
1824
- for (var L = 0, $ = 1; ; ) {
1825
- var H = g.substring(U - $), z = x.indexOf(H);
1823
+ return P;
1824
+ for (var S = 0, $ = 1; ; ) {
1825
+ var H = g.substring(P - $), z = x.indexOf(H);
1826
1826
  if (z == -1)
1827
- return L;
1828
- $ += z, (z == 0 || g.substring(U - $) == x.substring(0, $)) && (L = $, $++);
1827
+ return S;
1828
+ $ += z, (z == 0 || g.substring(P - $) == x.substring(0, $)) && (S = $, $++);
1829
1829
  }
1830
1830
  }
1831
1831
  function d(g, x) {
1832
1832
  if (!g || !x || g.slice(-1) !== x.slice(-1))
1833
1833
  return 0;
1834
- for (var v = 0, O = Math.min(g.length, x.length), U = O, L = 0; v < U; )
1835
- g.substring(g.length - U, g.length - L) == x.substring(x.length - U, x.length - L) ? (v = U, L = v) : O = U, U = Math.floor((O - v) / 2 + v);
1836
- return rt(g.charCodeAt(g.length - U)) && U--, U;
1834
+ for (var v = 0, C = Math.min(g.length, x.length), P = C, S = 0; v < P; )
1835
+ g.substring(g.length - P, g.length - S) == x.substring(x.length - P, x.length - S) ? (v = P, S = v) : C = P, P = Math.floor((C - v) / 2 + v);
1836
+ return rt(g.charCodeAt(g.length - P)) && P--, P;
1837
1837
  }
1838
1838
  function y(g, x) {
1839
- var v = g.length > x.length ? g : x, O = g.length > x.length ? x : g;
1840
- if (v.length < 4 || O.length * 2 < v.length)
1839
+ var v = g.length > x.length ? g : x, C = g.length > x.length ? x : g;
1840
+ if (v.length < 4 || C.length * 2 < v.length)
1841
1841
  return null;
1842
- function U(W, R, pt) {
1843
- for (var ht = W.substring(pt, pt + Math.floor(W.length / 4)), lt = -1, dt = "", gt, yt, mt, ct; (lt = R.indexOf(ht, lt + 1)) !== -1; ) {
1842
+ function P(W, M, pt) {
1843
+ for (var ht = W.substring(pt, pt + Math.floor(W.length / 4)), lt = -1, dt = "", gt, yt, mt, ct; (lt = M.indexOf(ht, lt + 1)) !== -1; ) {
1844
1844
  var Ct = a(
1845
1845
  W.substring(pt),
1846
- R.substring(lt)
1846
+ M.substring(lt)
1847
1847
  ), kt = d(
1848
1848
  W.substring(0, pt),
1849
- R.substring(0, lt)
1849
+ M.substring(0, lt)
1850
1850
  );
1851
- dt.length < kt + Ct && (dt = R.substring(lt - kt, lt) + R.substring(lt, lt + Ct), gt = W.substring(0, pt - kt), yt = W.substring(pt + Ct), mt = R.substring(0, lt - kt), ct = R.substring(lt + Ct));
1851
+ dt.length < kt + Ct && (dt = M.substring(lt - kt, lt) + M.substring(lt, lt + Ct), gt = W.substring(0, pt - kt), yt = W.substring(pt + Ct), mt = M.substring(0, lt - kt), ct = M.substring(lt + Ct));
1852
1852
  }
1853
1853
  return dt.length * 2 >= W.length ? [
1854
1854
  gt,
@@ -1858,68 +1858,68 @@ function Id() {
1858
1858
  dt
1859
1859
  ] : null;
1860
1860
  }
1861
- var L = U(
1861
+ var S = P(
1862
1862
  v,
1863
- O,
1863
+ C,
1864
1864
  Math.ceil(v.length / 4)
1865
- ), $ = U(
1865
+ ), $ = P(
1866
1866
  v,
1867
- O,
1867
+ C,
1868
1868
  Math.ceil(v.length / 2)
1869
1869
  ), H;
1870
- if (!L && !$)
1870
+ if (!S && !$)
1871
1871
  return null;
1872
- $ ? L ? H = L[4].length > $[4].length ? L : $ : H = $ : H = L;
1873
- var z, N, _, S;
1874
- g.length > x.length ? (z = H[0], N = H[1], _ = H[2], S = H[3]) : (_ = H[0], S = H[1], z = H[2], N = H[3]);
1872
+ $ ? S ? H = S[4].length > $[4].length ? S : $ : H = $ : H = S;
1873
+ var z, N, _, O;
1874
+ g.length > x.length ? (z = H[0], N = H[1], _ = H[2], O = H[3]) : (_ = H[0], O = H[1], z = H[2], N = H[3]);
1875
1875
  var V = H[4];
1876
- return [z, N, _, S, V];
1876
+ return [z, N, _, O, V];
1877
1877
  }
1878
1878
  function E(g) {
1879
- for (var x = !1, v = [], O = 0, U = null, L = 0, $ = 0, H = 0, z = 0, N = 0; L < g.length; )
1880
- g[L][0] == e ? (v[O++] = L, $ = z, H = N, z = 0, N = 0, U = g[L][1]) : (g[L][0] == t ? z += g[L][1].length : N += g[L][1].length, U && U.length <= Math.max($, H) && U.length <= Math.max(z, N) && (g.splice(v[O - 1], 0, [
1879
+ for (var x = !1, v = [], C = 0, P = null, S = 0, $ = 0, H = 0, z = 0, N = 0; S < g.length; )
1880
+ g[S][0] == e ? (v[C++] = S, $ = z, H = N, z = 0, N = 0, P = g[S][1]) : (g[S][0] == t ? z += g[S][1].length : N += g[S][1].length, P && P.length <= Math.max($, H) && P.length <= Math.max(z, N) && (g.splice(v[C - 1], 0, [
1881
1881
  r,
1882
- U
1883
- ]), g[v[O - 1] + 1][0] = t, O--, O--, L = O > 0 ? v[O - 1] : -1, $ = 0, H = 0, z = 0, N = 0, U = null, x = !0)), L++;
1884
- for (x && K(g), j(g), L = 1; L < g.length; ) {
1885
- if (g[L - 1][0] == r && g[L][0] == t) {
1886
- var _ = g[L - 1][1], S = g[L][1], V = h(_, S), W = h(S, _);
1887
- V >= W ? (V >= _.length / 2 || V >= S.length / 2) && (g.splice(L, 0, [
1882
+ P
1883
+ ]), g[v[C - 1] + 1][0] = t, C--, C--, S = C > 0 ? v[C - 1] : -1, $ = 0, H = 0, z = 0, N = 0, P = null, x = !0)), S++;
1884
+ for (x && K(g), j(g), S = 1; S < g.length; ) {
1885
+ if (g[S - 1][0] == r && g[S][0] == t) {
1886
+ var _ = g[S - 1][1], O = g[S][1], V = h(_, O), W = h(O, _);
1887
+ V >= W ? (V >= _.length / 2 || V >= O.length / 2) && (g.splice(S, 0, [
1888
1888
  e,
1889
- S.substring(0, V)
1890
- ]), g[L - 1][1] = _.substring(
1889
+ O.substring(0, V)
1890
+ ]), g[S - 1][1] = _.substring(
1891
1891
  0,
1892
1892
  _.length - V
1893
- ), g[L + 1][1] = S.substring(V), L++) : (W >= _.length / 2 || W >= S.length / 2) && (g.splice(L, 0, [
1893
+ ), g[S + 1][1] = O.substring(V), S++) : (W >= _.length / 2 || W >= O.length / 2) && (g.splice(S, 0, [
1894
1894
  e,
1895
1895
  _.substring(0, W)
1896
- ]), g[L - 1][0] = t, g[L - 1][1] = S.substring(
1896
+ ]), g[S - 1][0] = t, g[S - 1][1] = O.substring(
1897
1897
  0,
1898
- S.length - W
1899
- ), g[L + 1][0] = r, g[L + 1][1] = _.substring(W), L++), L++;
1898
+ O.length - W
1899
+ ), g[S + 1][0] = r, g[S + 1][1] = _.substring(W), S++), S++;
1900
1900
  }
1901
- L++;
1901
+ S++;
1902
1902
  }
1903
1903
  }
1904
1904
  var p = /[^a-zA-Z0-9]/, w = /\s/, A = /[\r\n]/, q = /\n\r?\n$/, D = /^\r?\n\r?\n/;
1905
1905
  function j(g) {
1906
- function x(W, R) {
1907
- if (!W || !R)
1906
+ function x(W, M) {
1907
+ if (!W || !M)
1908
1908
  return 6;
1909
- var pt = W.charAt(W.length - 1), ht = R.charAt(0), lt = pt.match(p), dt = ht.match(p), gt = lt && pt.match(w), yt = dt && ht.match(w), mt = gt && pt.match(A), ct = yt && ht.match(A), Ct = mt && W.match(q), kt = ct && R.match(D);
1909
+ var pt = W.charAt(W.length - 1), ht = M.charAt(0), lt = pt.match(p), dt = ht.match(p), gt = lt && pt.match(w), yt = dt && ht.match(w), mt = gt && pt.match(A), ct = yt && ht.match(A), Ct = mt && W.match(q), kt = ct && M.match(D);
1910
1910
  return Ct || kt ? 5 : mt || ct ? 4 : lt && !gt && yt ? 3 : gt || yt ? 2 : lt || dt ? 1 : 0;
1911
1911
  }
1912
1912
  for (var v = 1; v < g.length - 1; ) {
1913
1913
  if (g[v - 1][0] == e && g[v + 1][0] == e) {
1914
- var O = g[v - 1][1], U = g[v][1], L = g[v + 1][1], $ = d(O, U);
1914
+ var C = g[v - 1][1], P = g[v][1], S = g[v + 1][1], $ = d(C, P);
1915
1915
  if ($) {
1916
- var H = U.substring(U.length - $);
1917
- O = O.substring(0, O.length - $), U = H + U.substring(0, U.length - $), L = H + L;
1916
+ var H = P.substring(P.length - $);
1917
+ C = C.substring(0, C.length - $), P = H + P.substring(0, P.length - $), S = H + S;
1918
1918
  }
1919
- for (var z = O, N = U, _ = L, S = x(O, U) + x(U, L); U.charAt(0) === L.charAt(0); ) {
1920
- O += U.charAt(0), U = U.substring(1) + L.charAt(0), L = L.substring(1);
1921
- var V = x(O, U) + x(U, L);
1922
- V >= S && (S = V, z = O, N = U, _ = L);
1919
+ for (var z = C, N = P, _ = S, O = x(C, P) + x(P, S); P.charAt(0) === S.charAt(0); ) {
1920
+ C += P.charAt(0), P = P.substring(1) + S.charAt(0), S = S.substring(1);
1921
+ var V = x(C, P) + x(P, S);
1922
+ V >= O && (O = V, z = C, N = P, _ = S);
1923
1923
  }
1924
1924
  g[v - 1][1] != z && (z ? g[v - 1][1] = z : (g.splice(v - 1, 1), v--), g[v][1] = N, _ ? g[v + 1][1] = _ : (g.splice(v + 1, 1), v--));
1925
1925
  }
@@ -1928,64 +1928,64 @@ function Id() {
1928
1928
  }
1929
1929
  function K(g, x) {
1930
1930
  g.push([e, ""]);
1931
- for (var v = 0, O = 0, U = 0, L = "", $ = "", H; v < g.length; ) {
1931
+ for (var v = 0, C = 0, P = 0, S = "", $ = "", H; v < g.length; ) {
1932
1932
  if (v < g.length - 1 && !g[v][1]) {
1933
1933
  g.splice(v, 1);
1934
1934
  continue;
1935
1935
  }
1936
1936
  switch (g[v][0]) {
1937
1937
  case t:
1938
- U++, $ += g[v][1], v++;
1938
+ P++, $ += g[v][1], v++;
1939
1939
  break;
1940
1940
  case r:
1941
- O++, L += g[v][1], v++;
1941
+ C++, S += g[v][1], v++;
1942
1942
  break;
1943
1943
  case e:
1944
- var z = v - U - O - 1;
1944
+ var z = v - P - C - 1;
1945
1945
  if (x) {
1946
1946
  if (z >= 0 && bt(g[z][1])) {
1947
1947
  var N = g[z][1].slice(-1);
1948
1948
  if (g[z][1] = g[z][1].slice(
1949
1949
  0,
1950
1950
  -1
1951
- ), L = N + L, $ = N + $, !g[z][1]) {
1951
+ ), S = N + S, $ = N + $, !g[z][1]) {
1952
1952
  g.splice(z, 1), v--;
1953
1953
  var _ = z - 1;
1954
- g[_] && g[_][0] === t && (U++, $ = g[_][1] + $, _--), g[_] && g[_][0] === r && (O++, L = g[_][1] + L, _--), z = _;
1954
+ g[_] && g[_][0] === t && (P++, $ = g[_][1] + $, _--), g[_] && g[_][0] === r && (C++, S = g[_][1] + S, _--), z = _;
1955
1955
  }
1956
1956
  }
1957
1957
  if (nt(g[v][1])) {
1958
1958
  var N = g[v][1].charAt(0);
1959
- g[v][1] = g[v][1].slice(1), L += N, $ += N;
1959
+ g[v][1] = g[v][1].slice(1), S += N, $ += N;
1960
1960
  }
1961
1961
  }
1962
1962
  if (v < g.length - 1 && !g[v][1]) {
1963
1963
  g.splice(v, 1);
1964
1964
  break;
1965
1965
  }
1966
- if (L.length > 0 || $.length > 0) {
1967
- L.length > 0 && $.length > 0 && (H = a($, L), H !== 0 && (z >= 0 ? g[z][1] += $.substring(
1966
+ if (S.length > 0 || $.length > 0) {
1967
+ S.length > 0 && $.length > 0 && (H = a($, S), H !== 0 && (z >= 0 ? g[z][1] += $.substring(
1968
1968
  0,
1969
1969
  H
1970
1970
  ) : (g.splice(0, 0, [
1971
1971
  e,
1972
1972
  $.substring(0, H)
1973
- ]), v++), $ = $.substring(H), L = L.substring(H)), H = d($, L), H !== 0 && (g[v][1] = $.substring($.length - H) + g[v][1], $ = $.substring(
1973
+ ]), v++), $ = $.substring(H), S = S.substring(H)), H = d($, S), H !== 0 && (g[v][1] = $.substring($.length - H) + g[v][1], $ = $.substring(
1974
1974
  0,
1975
1975
  $.length - H
1976
- ), L = L.substring(
1976
+ ), S = S.substring(
1977
1977
  0,
1978
- L.length - H
1978
+ S.length - H
1979
1979
  )));
1980
- var S = U + O;
1981
- L.length === 0 && $.length === 0 ? (g.splice(v - S, S), v = v - S) : L.length === 0 ? (g.splice(v - S, S, [t, $]), v = v - S + 1) : $.length === 0 ? (g.splice(v - S, S, [r, L]), v = v - S + 1) : (g.splice(
1982
- v - S,
1983
- S,
1984
- [r, L],
1980
+ var O = P + C;
1981
+ S.length === 0 && $.length === 0 ? (g.splice(v - O, O), v = v - O) : S.length === 0 ? (g.splice(v - O, O, [t, $]), v = v - O + 1) : $.length === 0 ? (g.splice(v - O, O, [r, S]), v = v - O + 1) : (g.splice(
1982
+ v - O,
1983
+ O,
1984
+ [r, S],
1985
1985
  [t, $]
1986
- ), v = v - S + 2);
1986
+ ), v = v - O + 2);
1987
1987
  }
1988
- v !== 0 && g[v - 1][0] === e ? (g[v - 1][1] += g[v][1], g.splice(v, 1)) : v++, U = 0, O = 0, L = "", $ = "";
1988
+ v !== 0 && g[v - 1][0] === e ? (g[v - 1][1] += g[v][1], g.splice(v, 1)) : v++, P = 0, C = 0, S = "", $ = "";
1989
1989
  break;
1990
1990
  }
1991
1991
  }
@@ -2017,29 +2017,29 @@ function Id() {
2017
2017
  g[v][1].length > 0 && x.push(g[v]);
2018
2018
  return x;
2019
2019
  }
2020
- function vt(g, x, v, O) {
2021
- return bt(g) || nt(O) ? null : At([
2020
+ function vt(g, x, v, C) {
2021
+ return bt(g) || nt(C) ? null : At([
2022
2022
  [e, g],
2023
2023
  [r, x],
2024
2024
  [t, v],
2025
- [e, O]
2025
+ [e, C]
2026
2026
  ]);
2027
2027
  }
2028
2028
  function Mt(g, x, v) {
2029
- var O = typeof v == "number" ? { index: v, length: 0 } : v.oldRange, U = typeof v == "number" ? null : v.newRange, L = g.length, $ = x.length;
2030
- if (O.length === 0 && (U === null || U.length === 0)) {
2031
- var H = O.index, z = g.slice(0, H), N = g.slice(H), _ = U ? U.index : null;
2029
+ var C = typeof v == "number" ? { index: v, length: 0 } : v.oldRange, P = typeof v == "number" ? null : v.newRange, S = g.length, $ = x.length;
2030
+ if (C.length === 0 && (P === null || P.length === 0)) {
2031
+ var H = C.index, z = g.slice(0, H), N = g.slice(H), _ = P ? P.index : null;
2032
2032
  t: {
2033
- var S = H + $ - L;
2034
- if (_ !== null && _ !== S || S < 0 || S > $)
2033
+ var O = H + $ - S;
2034
+ if (_ !== null && _ !== O || O < 0 || O > $)
2035
2035
  break t;
2036
- var V = x.slice(0, S), W = x.slice(S);
2036
+ var V = x.slice(0, O), W = x.slice(O);
2037
2037
  if (W !== N)
2038
2038
  break t;
2039
- var R = Math.min(H, S), pt = z.slice(0, R), ht = V.slice(0, R);
2039
+ var M = Math.min(H, O), pt = z.slice(0, M), ht = V.slice(0, M);
2040
2040
  if (pt !== ht)
2041
2041
  break t;
2042
- var lt = z.slice(R), dt = V.slice(R);
2042
+ var lt = z.slice(M), dt = V.slice(M);
2043
2043
  return vt(pt, lt, dt, N);
2044
2044
  }
2045
2045
  t: {
@@ -2048,28 +2048,28 @@ function Id() {
2048
2048
  var gt = H, V = x.slice(0, gt), W = x.slice(gt);
2049
2049
  if (V !== z)
2050
2050
  break t;
2051
- var yt = Math.min(L - gt, $ - gt), mt = N.slice(N.length - yt), ct = W.slice(W.length - yt);
2051
+ var yt = Math.min(S - gt, $ - gt), mt = N.slice(N.length - yt), ct = W.slice(W.length - yt);
2052
2052
  if (mt !== ct)
2053
2053
  break t;
2054
2054
  var lt = N.slice(0, N.length - yt), dt = W.slice(0, W.length - yt);
2055
2055
  return vt(z, lt, dt, mt);
2056
2056
  }
2057
2057
  }
2058
- if (O.length > 0 && U && U.length === 0)
2058
+ if (C.length > 0 && P && P.length === 0)
2059
2059
  t: {
2060
- var pt = g.slice(0, O.index), mt = g.slice(O.index + O.length), R = pt.length, yt = mt.length;
2061
- if ($ < R + yt)
2060
+ var pt = g.slice(0, C.index), mt = g.slice(C.index + C.length), M = pt.length, yt = mt.length;
2061
+ if ($ < M + yt)
2062
2062
  break t;
2063
- var ht = x.slice(0, R), ct = x.slice($ - yt);
2063
+ var ht = x.slice(0, M), ct = x.slice($ - yt);
2064
2064
  if (pt !== ht || mt !== ct)
2065
2065
  break t;
2066
- var lt = g.slice(R, L - yt), dt = x.slice(R, $ - yt);
2066
+ var lt = g.slice(M, S - yt), dt = x.slice(M, $ - yt);
2067
2067
  return vt(pt, lt, dt, mt);
2068
2068
  }
2069
2069
  return null;
2070
2070
  }
2071
- function Lt(g, x, v, O) {
2072
- return n(g, x, v, O, !0);
2071
+ function Lt(g, x, v, C) {
2072
+ return n(g, x, v, C, !0);
2073
2073
  }
2074
2074
  return Lt.INSERT = t, Lt.DELETE = r, Lt.EQUAL = e, Os = Lt, Os;
2075
2075
  }
@@ -2078,9 +2078,9 @@ Jn.exports;
2078
2078
  var ll;
2079
2079
  function go() {
2080
2080
  return ll || (ll = 1, function(r, t) {
2081
- var e = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", h = "[object Date]", d = "[object Error]", y = "[object Function]", E = "[object GeneratorFunction]", p = "[object Map]", w = "[object Number]", A = "[object Object]", q = "[object Promise]", D = "[object RegExp]", j = "[object Set]", K = "[object String]", Z = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", bt = "[object DataView]", At = "[object Float32Array]", vt = "[object Float64Array]", Mt = "[object Int8Array]", Lt = "[object Int16Array]", g = "[object Int32Array]", x = "[object Uint8Array]", v = "[object Uint8ClampedArray]", O = "[object Uint16Array]", U = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, $ = /\w*$/, H = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, N = {};
2082
- N[i] = N[o] = N[nt] = N[bt] = N[a] = N[h] = N[At] = N[vt] = N[Mt] = N[Lt] = N[g] = N[p] = N[w] = N[A] = N[D] = N[j] = N[K] = N[Z] = N[x] = N[v] = N[O] = N[U] = !0, N[d] = N[y] = N[rt] = !1;
2083
- var _ = typeof rn == "object" && rn && rn.Object === Object && rn, S = typeof self == "object" && self && self.Object === Object && self, V = _ || S || Function("return this")(), W = t && !t.nodeType && t, R = W && !0 && r && !r.nodeType && r, pt = R && R.exports === W;
2081
+ var e = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", h = "[object Date]", d = "[object Error]", y = "[object Function]", E = "[object GeneratorFunction]", p = "[object Map]", w = "[object Number]", A = "[object Object]", q = "[object Promise]", D = "[object RegExp]", j = "[object Set]", K = "[object String]", Z = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", bt = "[object DataView]", At = "[object Float32Array]", vt = "[object Float64Array]", Mt = "[object Int8Array]", Lt = "[object Int16Array]", g = "[object Int32Array]", x = "[object Uint8Array]", v = "[object Uint8ClampedArray]", C = "[object Uint16Array]", P = "[object Uint32Array]", S = /[\\^$.*+?()[\]{}|]/g, $ = /\w*$/, H = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, N = {};
2082
+ N[i] = N[o] = N[nt] = N[bt] = N[a] = N[h] = N[At] = N[vt] = N[Mt] = N[Lt] = N[g] = N[p] = N[w] = N[A] = N[D] = N[j] = N[K] = N[Z] = N[x] = N[v] = N[C] = N[P] = !0, N[d] = N[y] = N[rt] = !1;
2083
+ var _ = typeof rn == "object" && rn && rn.Object === Object && rn, O = typeof self == "object" && self && self.Object === Object && self, V = _ || O || Function("return this")(), W = t && !t.nodeType && t, M = W && !0 && r && !r.nodeType && r, pt = M && M.exports === W;
2084
2084
  function ht(l, u) {
2085
2085
  return l.set(u[0], u[1]), l;
2086
2086
  }
@@ -2140,7 +2140,7 @@ function go() {
2140
2140
  var l = /[^.]+$/.exec(Ee && Ee.keys && Ee.keys.IE_PROTO || "");
2141
2141
  return l ? "Symbol(src)_1." + l : "";
2142
2142
  }(), Te = ie.toString, jt = fe.hasOwnProperty, Pt = fe.toString, Ht = RegExp(
2143
- "^" + Te.call(jt).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2143
+ "^" + Te.call(jt).replace(S, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2144
2144
  ), Jt = pt ? V.Buffer : void 0, le = V.Symbol, St = V.Uint8Array, xt = Ae(Object.getPrototypeOf, Object), zt = Object.create, ne = fe.propertyIsEnumerable, Pe = De.splice, Xt = Object.getOwnPropertySymbols, te = Jt ? Jt.isBuffer : void 0, Ce = Ae(Object.keys, Object), Ot = pe(V, "DataView"), re = pe(V, "Map"), Ft = pe(V, "Promise"), Ye = pe(V, "Set"), dn = pe(V, "WeakMap"), Ue = pe(Object, "create"), Qe = Yt(Ot), Se = Yt(re), fn = Yt(Ft), Je = Yt(Ye), k = Yt(dn), c = le ? le.prototype : void 0, f = c ? c.valueOf : void 0;
2145
2145
  function b(l) {
2146
2146
  var u = -1, m = l ? l.length : 0;
@@ -2152,7 +2152,7 @@ function go() {
2152
2152
  function T() {
2153
2153
  this.__data__ = Ue ? Ue(null) : {};
2154
2154
  }
2155
- function C(l) {
2155
+ function L(l) {
2156
2156
  return this.has(l) && delete this.__data__[l];
2157
2157
  }
2158
2158
  function B(l) {
@@ -2163,7 +2163,7 @@ function go() {
2163
2163
  }
2164
2164
  return jt.call(u, l) ? u[l] : void 0;
2165
2165
  }
2166
- function P(l) {
2166
+ function U(l) {
2167
2167
  var u = this.__data__;
2168
2168
  return Ue ? u[l] !== void 0 : jt.call(u, l);
2169
2169
  }
@@ -2171,7 +2171,7 @@ function go() {
2171
2171
  var m = this.__data__;
2172
2172
  return m[l] = Ue && u === void 0 ? n : u, this;
2173
2173
  }
2174
- b.prototype.clear = T, b.prototype.delete = C, b.prototype.get = B, b.prototype.has = P, b.prototype.set = G;
2174
+ b.prototype.clear = T, b.prototype.delete = L, b.prototype.get = B, b.prototype.has = U, b.prototype.set = G;
2175
2175
  function F(l) {
2176
2176
  var u = -1, m = l ? l.length : 0;
2177
2177
  for (this.clear(); ++u < m; ) {
@@ -2435,8 +2435,8 @@ function go() {
2435
2435
  case g:
2436
2436
  case x:
2437
2437
  case v:
2438
- case O:
2439
- case U:
2438
+ case C:
2439
+ case P:
2440
2440
  return ds(l, I);
2441
2441
  case p:
2442
2442
  return vr(l, I, m);
@@ -2526,8 +2526,8 @@ tr.exports;
2526
2526
  var ol;
2527
2527
  function mo() {
2528
2528
  return ol || (ol = 1, function(r, t) {
2529
- var e = 200, n = "__lodash_hash_undefined__", s = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", h = "[object Array]", d = "[object AsyncFunction]", y = "[object Boolean]", E = "[object Date]", p = "[object Error]", w = "[object Function]", A = "[object GeneratorFunction]", q = "[object Map]", D = "[object Number]", j = "[object Null]", K = "[object Object]", Z = "[object Promise]", rt = "[object Proxy]", nt = "[object RegExp]", bt = "[object Set]", At = "[object String]", vt = "[object Symbol]", Mt = "[object Undefined]", Lt = "[object WeakMap]", g = "[object ArrayBuffer]", x = "[object DataView]", v = "[object Float32Array]", O = "[object Float64Array]", U = "[object Int8Array]", L = "[object Int16Array]", $ = "[object Int32Array]", H = "[object Uint8Array]", z = "[object Uint8ClampedArray]", N = "[object Uint16Array]", _ = "[object Uint32Array]", S = /[\\^$.*+?()[\]{}|]/g, V = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, R = {};
2530
- R[v] = R[O] = R[U] = R[L] = R[$] = R[H] = R[z] = R[N] = R[_] = !0, R[a] = R[h] = R[g] = R[y] = R[x] = R[E] = R[p] = R[w] = R[q] = R[D] = R[K] = R[nt] = R[bt] = R[At] = R[Lt] = !1;
2529
+ var e = 200, n = "__lodash_hash_undefined__", s = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", h = "[object Array]", d = "[object AsyncFunction]", y = "[object Boolean]", E = "[object Date]", p = "[object Error]", w = "[object Function]", A = "[object GeneratorFunction]", q = "[object Map]", D = "[object Number]", j = "[object Null]", K = "[object Object]", Z = "[object Promise]", rt = "[object Proxy]", nt = "[object RegExp]", bt = "[object Set]", At = "[object String]", vt = "[object Symbol]", Mt = "[object Undefined]", Lt = "[object WeakMap]", g = "[object ArrayBuffer]", x = "[object DataView]", v = "[object Float32Array]", C = "[object Float64Array]", P = "[object Int8Array]", S = "[object Int16Array]", $ = "[object Int32Array]", H = "[object Uint8Array]", z = "[object Uint8ClampedArray]", N = "[object Uint16Array]", _ = "[object Uint32Array]", O = /[\\^$.*+?()[\]{}|]/g, V = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, M = {};
2530
+ M[v] = M[C] = M[P] = M[S] = M[$] = M[H] = M[z] = M[N] = M[_] = !0, M[a] = M[h] = M[g] = M[y] = M[x] = M[E] = M[p] = M[w] = M[q] = M[D] = M[K] = M[nt] = M[bt] = M[At] = M[Lt] = !1;
2531
2531
  var pt = typeof rn == "object" && rn && rn.Object === Object && rn, ht = typeof self == "object" && self && self.Object === Object && self, lt = pt || ht || Function("return this")(), dt = t && !t.nodeType && t, gt = dt && !0 && r && !r.nodeType && r, yt = gt && gt.exports === dt, mt = yt && pt.process, ct = function() {
2532
2532
  try {
2533
2533
  return mt && mt.binding && mt.binding("util");
@@ -2589,8 +2589,8 @@ function mo() {
2589
2589
  var l = /[^.]+$/.exec(le && le.keys && le.keys.IE_PROTO || "");
2590
2590
  return l ? "Symbol(src)_1." + l : "";
2591
2591
  }(), ne = Jt.toString, Pe = RegExp(
2592
- "^" + St.call(xt).replace(S, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2593
- ), Xt = yt ? lt.Buffer : void 0, te = lt.Symbol, Ce = lt.Uint8Array, Ot = Jt.propertyIsEnumerable, re = Pt.splice, Ft = te ? te.toStringTag : void 0, Ye = Object.getOwnPropertySymbols, dn = Xt ? Xt.isBuffer : void 0, Ue = Te(Object.keys, Object), Qe = He(lt, "DataView"), Se = He(lt, "Map"), fn = He(lt, "Promise"), Je = He(lt, "Set"), k = He(lt, "WeakMap"), c = He(Object, "create"), f = Yt(Qe), b = Yt(Se), T = Yt(fn), C = Yt(Je), B = Yt(k), P = te ? te.prototype : void 0, G = P ? P.valueOf : void 0;
2592
+ "^" + St.call(xt).replace(O, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2593
+ ), Xt = yt ? lt.Buffer : void 0, te = lt.Symbol, Ce = lt.Uint8Array, Ot = Jt.propertyIsEnumerable, re = Pt.splice, Ft = te ? te.toStringTag : void 0, Ye = Object.getOwnPropertySymbols, dn = Xt ? Xt.isBuffer : void 0, Ue = Te(Object.keys, Object), Qe = He(lt, "DataView"), Se = He(lt, "Map"), fn = He(lt, "Promise"), Je = He(lt, "Set"), k = He(lt, "WeakMap"), c = He(Object, "create"), f = Yt(Qe), b = Yt(Se), T = Yt(fn), L = Yt(Je), B = Yt(k), U = te ? te.prototype : void 0, G = U ? U.valueOf : void 0;
2594
2594
  function F(l) {
2595
2595
  var u = -1, m = l == null ? 0 : l.length;
2596
2596
  for (this.clear(); ++u < m; ) {
@@ -2776,7 +2776,7 @@ function mo() {
2776
2776
  return u.test(Yt(l));
2777
2777
  }
2778
2778
  function ds(l) {
2779
- return qe(l) && Zn(l.length) && !!R[pn(l)];
2779
+ return qe(l) && Zn(l.length) && !!M[pn(l)];
2780
2780
  }
2781
2781
  function fs(l) {
2782
2782
  if (!ws(l))
@@ -2921,7 +2921,7 @@ function mo() {
2921
2921
  return q;
2922
2922
  case T:
2923
2923
  return Z;
2924
- case C:
2924
+ case L:
2925
2925
  return bt;
2926
2926
  case B:
2927
2927
  return Lt;
@@ -4740,7 +4740,7 @@ X(me, "DEFAULTS", {
4740
4740
  "core/module": he,
4741
4741
  "core/theme": Hn
4742
4742
  });
4743
- let M = me;
4743
+ let R = me;
4744
4744
  function bl(r) {
4745
4745
  return typeof r == "string" ? document.querySelector(r) : r;
4746
4746
  }
@@ -4760,13 +4760,13 @@ function Jd(r, t) {
4760
4760
  const e = bl(r);
4761
4761
  if (!e)
4762
4762
  throw new Error("Invalid Quill container");
4763
- const s = !t.theme || t.theme === M.DEFAULTS.theme ? Hn : M.import(`themes/${t.theme}`);
4763
+ const s = !t.theme || t.theme === R.DEFAULTS.theme ? Hn : R.import(`themes/${t.theme}`);
4764
4764
  if (!s)
4765
4765
  throw new Error(`Invalid theme ${t.theme}. Did you register it?`);
4766
4766
  const {
4767
4767
  modules: i,
4768
4768
  ...o
4769
- } = M.DEFAULTS, {
4769
+ } = R.DEFAULTS, {
4770
4770
  modules: a,
4771
4771
  ...h
4772
4772
  } = s.DEFAULTS;
@@ -4791,7 +4791,7 @@ function Jd(r, t) {
4791
4791
  modules: Object.entries(y).reduce((w, A) => {
4792
4792
  let [q, D] = A;
4793
4793
  if (!D) return w;
4794
- const j = M.import(`modules/${q}`);
4794
+ const j = R.import(`modules/${q}`);
4795
4795
  return j == null ? (jn.error(`Cannot load ${q} module. Are you sure you registered it?`), w) : {
4796
4796
  ...w,
4797
4797
  // @ts-expect-error
@@ -5101,7 +5101,7 @@ ${Yr(this.code(t, e))}
5101
5101
  }
5102
5102
  class Zt extends $t {
5103
5103
  static register() {
5104
- M.register(An);
5104
+ R.register(An);
5105
5105
  }
5106
5106
  }
5107
5107
  X(Zt, "TAB", " ");
@@ -5216,7 +5216,7 @@ class Qr extends he {
5216
5216
  if (t.defaultPrevented || t.isComposing || t.keyCode === 229 && (t.key === "Enter" || t.key === "Backspace")) return;
5217
5217
  const s = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((j) => Qr.match(t, j));
5218
5218
  if (s.length === 0) return;
5219
- const i = M.find(t.target, !0);
5219
+ const i = R.find(t.target, !0);
5220
5220
  if (i && i.scroll !== this.quill.scroll) return;
5221
5221
  const o = this.quill.getSelection();
5222
5222
  if (o == null || !this.quill.hasFocus()) return;
@@ -5259,7 +5259,7 @@ class Qr extends he {
5259
5259
  }
5260
5260
  }
5261
5261
  }
5262
- this.quill.updateContents(o, M.sources.USER), this.quill.focus();
5262
+ this.quill.updateContents(o, R.sources.USER), this.quill.focus();
5263
5263
  }
5264
5264
  handleDelete(t, e) {
5265
5265
  const n = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix) ? 2 : 1;
@@ -5274,7 +5274,7 @@ class Qr extends he {
5274
5274
  s = Qt.AttributeMap.diff(h, d) || {}, Object.keys(s).length > 0 && (o = o.retain(a.length() - 1).retain(1, s));
5275
5275
  }
5276
5276
  }
5277
- this.quill.updateContents(o, M.sources.USER), this.quill.focus();
5277
+ this.quill.updateContents(o, R.sources.USER), this.quill.focus();
5278
5278
  }
5279
5279
  handleDeleteRange(t) {
5280
5280
  Ti({
@@ -5285,7 +5285,7 @@ class Qr extends he {
5285
5285
  handleEnter(t, e) {
5286
5286
  const n = Object.keys(e.format).reduce((i, o) => (this.quill.scroll.query(o, et.BLOCK) && !Array.isArray(e.format[o]) && (i[o] = e.format[o]), i), {}), s = new tt().retain(t.index).delete(t.length).insert(`
5287
5287
  `, n);
5288
- this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(t.index + 1, M.sources.SILENT), this.quill.focus();
5288
+ this.quill.updateContents(s, R.sources.USER), this.quill.setSelection(t.index + 1, R.sources.SILENT), this.quill.focus();
5289
5289
  }
5290
5290
  }
5291
5291
  const of = {
@@ -5298,7 +5298,7 @@ const of = {
5298
5298
  key: "Tab",
5299
5299
  format: ["blockquote", "indent", "list"],
5300
5300
  handler(r, t) {
5301
- return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "+1", M.sources.USER), !1);
5301
+ return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "+1", R.sources.USER), !1);
5302
5302
  }
5303
5303
  },
5304
5304
  outdent: {
@@ -5307,7 +5307,7 @@ const of = {
5307
5307
  format: ["blockquote", "indent", "list"],
5308
5308
  // highlight tab or tab at beginning of list, indent or blockquote
5309
5309
  handler(r, t) {
5310
- return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "-1", M.sources.USER), !1);
5310
+ return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "-1", R.sources.USER), !1);
5311
5311
  }
5312
5312
  },
5313
5313
  "outdent backspace": {
@@ -5320,7 +5320,7 @@ const of = {
5320
5320
  format: ["indent", "list"],
5321
5321
  offset: 0,
5322
5322
  handler(r, t) {
5323
- t.format.indent != null ? this.quill.format("indent", "-1", M.sources.USER) : t.format.list != null && this.quill.format("list", !1, M.sources.USER);
5323
+ t.format.indent != null ? this.quill.format("indent", "-1", R.sources.USER) : t.format.list != null && this.quill.format("list", !1, R.sources.USER);
5324
5324
  }
5325
5325
  },
5326
5326
  "indent code-block": Nl(!0),
@@ -5331,7 +5331,7 @@ const of = {
5331
5331
  collapsed: !0,
5332
5332
  prefix: /\t$/,
5333
5333
  handler(r) {
5334
- this.quill.deleteText(r.index - 1, 1, M.sources.USER);
5334
+ this.quill.deleteText(r.index - 1, 1, R.sources.USER);
5335
5335
  }
5336
5336
  },
5337
5337
  tab: {
@@ -5340,7 +5340,7 @@ const of = {
5340
5340
  if (t.format.table) return !0;
5341
5341
  this.quill.history.cutoff();
5342
5342
  const e = new tt().retain(r.index).delete(r.length).insert(" ");
5343
- return this.quill.updateContents(e, M.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index + 1, M.sources.SILENT), !1;
5343
+ return this.quill.updateContents(e, R.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index + 1, R.sources.SILENT), !1;
5344
5344
  }
5345
5345
  },
5346
5346
  "blockquote empty enter": {
@@ -5349,7 +5349,7 @@ const of = {
5349
5349
  format: ["blockquote"],
5350
5350
  empty: !0,
5351
5351
  handler() {
5352
- this.quill.format("blockquote", !1, M.sources.USER);
5352
+ this.quill.format("blockquote", !1, R.sources.USER);
5353
5353
  }
5354
5354
  },
5355
5355
  "list empty enter": {
@@ -5361,7 +5361,7 @@ const of = {
5361
5361
  const e = {
5362
5362
  list: !1
5363
5363
  };
5364
- t.format.indent && (e.indent = !1), this.quill.formatLine(r.index, r.length, e, M.sources.USER);
5364
+ t.format.indent && (e.indent = !1), this.quill.formatLine(r.index, r.length, e, R.sources.USER);
5365
5365
  }
5366
5366
  },
5367
5367
  "checklist enter": {
@@ -5379,7 +5379,7 @@ const of = {
5379
5379
  `, n).retain(t.length() - e - 1).retain(1, {
5380
5380
  list: "unchecked"
5381
5381
  });
5382
- this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(r.index + 1, M.sources.SILENT), this.quill.scrollSelectionIntoView();
5382
+ this.quill.updateContents(s, R.sources.USER), this.quill.setSelection(r.index + 1, R.sources.SILENT), this.quill.scrollSelectionIntoView();
5383
5383
  }
5384
5384
  },
5385
5385
  "header enter": {
@@ -5392,7 +5392,7 @@ const of = {
5392
5392
  `, t.format).retain(e.length() - n - 1).retain(1, {
5393
5393
  header: null
5394
5394
  });
5395
- this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(r.index + 1, M.sources.SILENT), this.quill.scrollSelectionIntoView();
5395
+ this.quill.updateContents(s, R.sources.USER), this.quill.setSelection(r.index + 1, R.sources.SILENT), this.quill.scrollSelectionIntoView();
5396
5396
  }
5397
5397
  },
5398
5398
  "table backspace": {
@@ -5424,12 +5424,12 @@ const of = {
5424
5424
  if (o < 0) {
5425
5425
  const h = new tt().retain(a).insert(`
5426
5426
  `);
5427
- this.quill.updateContents(h, M.sources.USER), this.quill.setSelection(r.index + 1, r.length, M.sources.SILENT);
5427
+ this.quill.updateContents(h, R.sources.USER), this.quill.setSelection(r.index + 1, r.length, R.sources.SILENT);
5428
5428
  } else if (o > 0) {
5429
5429
  a += e.length();
5430
5430
  const h = new tt().retain(a).insert(`
5431
5431
  `);
5432
- this.quill.updateContents(h, M.sources.USER), this.quill.setSelection(a, M.sources.USER);
5432
+ this.quill.updateContents(h, R.sources.USER), this.quill.setSelection(a, R.sources.USER);
5433
5433
  }
5434
5434
  }
5435
5435
  }
@@ -5443,7 +5443,7 @@ const of = {
5443
5443
  event: e,
5444
5444
  line: n
5445
5445
  } = t, s = n.offset(this.quill.scroll);
5446
- e.shiftKey ? this.quill.setSelection(s - 1, M.sources.USER) : this.quill.setSelection(s + n.length(), M.sources.USER);
5446
+ e.shiftKey ? this.quill.setSelection(s - 1, R.sources.USER) : this.quill.setSelection(s + n.length(), R.sources.USER);
5447
5447
  }
5448
5448
  },
5449
5449
  "list autofill": {
@@ -5478,11 +5478,11 @@ const of = {
5478
5478
  default:
5479
5479
  i = "ordered";
5480
5480
  }
5481
- this.quill.insertText(r.index, " ", M.sources.USER), this.quill.history.cutoff();
5481
+ this.quill.insertText(r.index, " ", R.sources.USER), this.quill.history.cutoff();
5482
5482
  const o = new tt().retain(r.index - s).delete(e + 1).retain(n.length() - 2 - s).retain(1, {
5483
5483
  list: i
5484
5484
  });
5485
- return this.quill.updateContents(o, M.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index - e, M.sources.SILENT), !1;
5485
+ return this.quill.updateContents(o, R.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index - e, R.sources.SILENT), !1;
5486
5486
  }
5487
5487
  },
5488
5488
  "code exit": {
@@ -5499,7 +5499,7 @@ const of = {
5499
5499
  const i = new tt().retain(r.index + t.length() - e - 2).retain(1, {
5500
5500
  "code-block": null
5501
5501
  }).delete(1);
5502
- return this.quill.updateContents(i, M.sources.USER), this.quill.setSelection(r.index - 1, M.sources.SILENT), !1;
5502
+ return this.quill.updateContents(i, R.sources.USER), this.quill.setSelection(r.index - 1, R.sources.SILENT), !1;
5503
5503
  }
5504
5504
  return !0;
5505
5505
  }
@@ -5528,7 +5528,7 @@ function Nl(r) {
5528
5528
  TAB: i
5529
5529
  } = s;
5530
5530
  if (t.length === 0 && !n.shiftKey) {
5531
- this.quill.insertText(t.index, i, M.sources.USER), this.quill.setSelection(t.index + i.length, M.sources.SILENT);
5531
+ this.quill.insertText(t.index, i, R.sources.USER), this.quill.setSelection(t.index + i.length, R.sources.SILENT);
5532
5532
  return;
5533
5533
  }
5534
5534
  const o = t.length === 0 ? this.quill.getLines(t.index, 1) : this.quill.getLines(t);
@@ -5538,7 +5538,7 @@ function Nl(r) {
5538
5538
  } = t;
5539
5539
  o.forEach((d, y) => {
5540
5540
  r ? (d.insertAt(0, i), y === 0 ? a += i.length : h += i.length) : d.domNode.textContent.startsWith(i) && (d.deleteAt(0, i.length), y === 0 ? a -= i.length : h -= i.length);
5541
- }), this.quill.update(M.sources.USER), this.quill.setSelection(a, h, M.sources.SILENT);
5541
+ }), this.quill.update(R.sources.USER), this.quill.setSelection(a, h, R.sources.SILENT);
5542
5542
  }
5543
5543
  };
5544
5544
  }
@@ -5554,7 +5554,7 @@ function Dr(r, t) {
5554
5554
  } = n;
5555
5555
  r === "ArrowRight" && (s += n.length + 1);
5556
5556
  const [i] = this.quill.getLeaf(s);
5557
- return i instanceof se ? (r === "ArrowLeft" ? t ? this.quill.setSelection(n.index - 1, n.length + 1, M.sources.USER) : this.quill.setSelection(n.index - 1, M.sources.USER) : t ? this.quill.setSelection(n.index, n.length + 1, M.sources.USER) : this.quill.setSelection(n.index + n.length + 1, M.sources.USER), !1) : !0;
5557
+ return i instanceof se ? (r === "ArrowLeft" ? t ? this.quill.setSelection(n.index - 1, n.length + 1, R.sources.USER) : this.quill.setSelection(n.index - 1, R.sources.USER) : t ? this.quill.setSelection(n.index, n.length + 1, R.sources.USER) : this.quill.setSelection(n.index + n.length + 1, R.sources.USER), !1) : !0;
5558
5558
  }
5559
5559
  };
5560
5560
  }
@@ -5563,7 +5563,7 @@ function Ds(r) {
5563
5563
  key: r[0],
5564
5564
  shortKey: !0,
5565
5565
  handler(t, e) {
5566
- this.quill.format(r, !e.format[r], M.sources.USER);
5566
+ this.quill.format(r, !e.format[r], R.sources.USER);
5567
5567
  }
5568
5568
  };
5569
5569
  }
@@ -5580,11 +5580,11 @@ function Al(r) {
5580
5580
  for (; a.prev != null; )
5581
5581
  a = a.prev, o = o.next;
5582
5582
  const h = o.offset(this.quill.scroll) + Math.min(e.offset, o.length() - 1);
5583
- this.quill.setSelection(h, 0, M.sources.USER);
5583
+ this.quill.setSelection(h, 0, R.sources.USER);
5584
5584
  }
5585
5585
  } else {
5586
5586
  const o = s.table()[n];
5587
- o != null && (r ? this.quill.setSelection(o.offset(this.quill.scroll) + o.length() - 1, 0, M.sources.USER) : this.quill.setSelection(o.offset(this.quill.scroll), 0, M.sources.USER));
5587
+ o != null && (r ? this.quill.setSelection(o.offset(this.quill.scroll) + o.length() - 1, 0, R.sources.USER) : this.quill.setSelection(o.offset(this.quill.scroll), 0, R.sources.USER));
5588
5588
  }
5589
5589
  return !1;
5590
5590
  }
@@ -5612,7 +5612,7 @@ function Ti(r) {
5612
5612
  const i = n[0].formats(), o = n[n.length - 1].formats();
5613
5613
  s = Qt.AttributeMap.diff(o, i) || {};
5614
5614
  }
5615
- t.deleteText(e, M.sources.USER), Object.keys(s).length > 0 && t.formatLine(e.index, 1, s, M.sources.USER), t.setSelection(e.index, M.sources.SILENT);
5615
+ t.deleteText(e, R.sources.USER), Object.keys(s).length > 0 && t.formatLine(e.index, 1, s, R.sources.USER), t.setSelection(e.index, R.sources.SILENT);
5616
5616
  }
5617
5617
  function cf(r, t, e, n) {
5618
5618
  return t.prev == null && t.next == null ? e.prev == null && e.next == null ? n === 0 ? -1 : 1 : e.prev == null ? -1 : 1 : t.prev == null ? -1 : t.next == null ? 1 : null;
@@ -5721,19 +5721,19 @@ class _o extends he {
5721
5721
  return Ci(this.quill.scroll, n, i, o, s);
5722
5722
  }
5723
5723
  dangerouslyPasteHTML(t, e) {
5724
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : M.sources.API;
5724
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : R.sources.API;
5725
5725
  if (typeof t == "string") {
5726
5726
  const s = this.convert({
5727
5727
  html: t,
5728
5728
  text: ""
5729
5729
  });
5730
- this.quill.setContents(s, e), this.quill.setSelection(0, M.sources.SILENT);
5730
+ this.quill.setContents(s, e), this.quill.setSelection(0, R.sources.SILENT);
5731
5731
  } else {
5732
5732
  const s = this.convert({
5733
5733
  html: e,
5734
5734
  text: ""
5735
5735
  });
5736
- this.quill.updateContents(new tt().retain(t).concat(s), n), this.quill.setSelection(t + s.length(), M.sources.SILENT);
5736
+ this.quill.updateContents(new tt().retain(t).concat(s), n), this.quill.setSelection(t + s.length(), R.sources.SILENT);
5737
5737
  }
5738
5738
  }
5739
5739
  onCaptureCopy(t) {
@@ -5809,7 +5809,7 @@ class _o extends he {
5809
5809
  html: s
5810
5810
  });
5811
5811
  const a = new tt().retain(t.index).delete(t.length).concat(o);
5812
- this.quill.updateContents(a, M.sources.USER), this.quill.setSelection(a.length() - t.length, M.sources.SILENT), this.quill.scrollSelectionIntoView();
5812
+ this.quill.updateContents(a, R.sources.USER), this.quill.setSelection(a.length() - t.length, R.sources.SILENT), this.quill.scrollSelectionIntoView();
5813
5813
  }
5814
5814
  prepareMatching(t, e) {
5815
5815
  const n = [], s = [];
@@ -6000,8 +6000,8 @@ class Ro extends he {
6000
6000
  redo: []
6001
6001
  });
6002
6002
  X(this, "currentRange", null);
6003
- this.quill.on(M.events.EDITOR_CHANGE, (s, i, o, a) => {
6004
- s === M.events.SELECTION_CHANGE ? i && a !== M.sources.SILENT && (this.currentRange = i) : s === M.events.TEXT_CHANGE && (this.ignoreChange || (!this.options.userOnly || a === M.sources.USER ? this.record(i, o) : this.transform(i)), this.currentRange = ei(this.currentRange, i));
6003
+ this.quill.on(R.events.EDITOR_CHANGE, (s, i, o, a) => {
6004
+ s === R.events.SELECTION_CHANGE ? i && a !== R.sources.SILENT && (this.currentRange = i) : s === R.events.TEXT_CHANGE && (this.ignoreChange || (!this.options.userOnly || a === R.sources.USER ? this.record(i, o) : this.transform(i)), this.currentRange = ei(this.currentRange, i));
6005
6005
  }), this.quill.keyboard.addBinding({
6006
6006
  key: "z",
6007
6007
  shortKey: !0
@@ -6024,7 +6024,7 @@ class Ro extends he {
6024
6024
  this.stack[n].push({
6025
6025
  delta: o,
6026
6026
  range: ei(s.range, o)
6027
- }), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(s.delta, M.sources.USER), this.ignoreChange = !1, this.restoreSelection(s);
6027
+ }), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(s.delta, R.sources.USER), this.ignoreChange = !1, this.restoreSelection(s);
6028
6028
  }
6029
6029
  clear() {
6030
6030
  this.stack = {
@@ -6064,10 +6064,10 @@ class Ro extends he {
6064
6064
  }
6065
6065
  restoreSelection(e) {
6066
6066
  if (e.range)
6067
- this.quill.setSelection(e.range, M.sources.USER);
6067
+ this.quill.setSelection(e.range, R.sources.USER);
6068
6068
  else {
6069
6069
  const n = jf(this.quill.scroll, e.delta);
6070
- this.quill.setSelection(n, M.sources.USER);
6070
+ this.quill.setSelection(n, R.sources.USER);
6071
6071
  }
6072
6072
  }
6073
6073
  }
@@ -6155,7 +6155,7 @@ class Uf extends he {
6155
6155
  constructor(t, e) {
6156
6156
  super(t, e), t.root.addEventListener("beforeinput", (n) => {
6157
6157
  this.handleBeforeInput(n);
6158
- }), /Android/i.test(navigator.userAgent) || t.on(M.events.COMPOSITION_BEFORE_START, () => {
6158
+ }), /Android/i.test(navigator.userAgent) || t.on(R.events.COMPOSITION_BEFORE_START, () => {
6159
6159
  this.handleCompositionStart();
6160
6160
  });
6161
6161
  }
@@ -6170,10 +6170,10 @@ class Uf extends he {
6170
6170
  if (t.length === 0) return !1;
6171
6171
  if (e) {
6172
6172
  const n = this.quill.getFormat(t.index, 1);
6173
- this.deleteRange(t), this.quill.updateContents(new tt().retain(t.index).insert(e, n), M.sources.USER);
6173
+ this.deleteRange(t), this.quill.updateContents(new tt().retain(t.index).insert(e, n), R.sources.USER);
6174
6174
  } else
6175
6175
  this.deleteRange(t);
6176
- return this.quill.setSelection(t.index + e.length, 0, M.sources.SILENT), !0;
6176
+ return this.quill.setSelection(t.index + e.length, 0, R.sources.SILENT), !0;
6177
6177
  }
6178
6178
  handleBeforeInput(t) {
6179
6179
  if (this.quill.composition.isComposing || t.defaultPrevented || !Pf.includes(t.inputType))
@@ -6218,7 +6218,7 @@ class Vf extends he {
6218
6218
  if (!(s instanceof ve) || !s.uiNode)
6219
6219
  return !0;
6220
6220
  const o = getComputedStyle(s.domNode).direction === "rtl";
6221
- return o && i.key !== "ArrowRight" || !o && i.key !== "ArrowLeft" ? !0 : (this.quill.setSelection(e.index - 1, e.length + (i.shiftKey ? 1 : 0), M.sources.USER), !1);
6221
+ return o && i.key !== "ArrowRight" || !o && i.key !== "ArrowLeft" ? !0 : (this.quill.setSelection(e.index - 1, e.length + (i.shiftKey ? 1 : 0), R.sources.USER), !1);
6222
6222
  }
6223
6223
  });
6224
6224
  }
@@ -6254,7 +6254,7 @@ class Vf extends he {
6254
6254
  i.setStartAfter(s.uiNode), i.setEndAfter(s.uiNode), e.removeAllRanges(), e.addRange(i);
6255
6255
  }
6256
6256
  }
6257
- M.register({
6257
+ R.register({
6258
6258
  "blots/block": $t,
6259
6259
  "blots/block/embed": ue,
6260
6260
  "blots/break": Ne,
@@ -6314,7 +6314,7 @@ class mr extends $t {
6314
6314
  return t.getAttribute("data-list") || void 0;
6315
6315
  }
6316
6316
  static register() {
6317
- M.register(gr);
6317
+ R.register(gr);
6318
6318
  }
6319
6319
  constructor(t, e) {
6320
6320
  super(t, e);
@@ -6559,7 +6559,7 @@ const Wf = (r, t, e) => {
6559
6559
  };
6560
6560
  class Bo extends he {
6561
6561
  static register() {
6562
- M.register(Ke, !0), M.register(ce, !0), M.register(rr, !0);
6562
+ R.register(Ke, !0), R.register(ce, !0), R.register(rr, !0);
6563
6563
  }
6564
6564
  constructor(t, e) {
6565
6565
  if (super(t, e), this.options.hljs == null)
@@ -6572,7 +6572,7 @@ class Bo extends he {
6572
6572
  }, {}), this.highlightBlot = this.highlightBlot.bind(this), this.initListener(), this.initTimer();
6573
6573
  }
6574
6574
  initListener() {
6575
- this.quill.on(M.events.SCROLL_BLOT_MOUNT, (t) => {
6575
+ this.quill.on(R.events.SCROLL_BLOT_MOUNT, (t) => {
6576
6576
  if (!(t instanceof rr)) return;
6577
6577
  const e = this.quill.root.ownerDocument.createElement("select");
6578
6578
  this.options.languages.forEach((n) => {
@@ -6589,7 +6589,7 @@ class Bo extends he {
6589
6589
  }
6590
6590
  initTimer() {
6591
6591
  let t = null;
6592
- this.quill.on(M.events.SCROLL_OPTIMIZE, () => {
6592
+ this.quill.on(R.events.SCROLL_OPTIMIZE, () => {
6593
6593
  t && clearTimeout(t), t = setTimeout(() => {
6594
6594
  this.highlight(), t = null;
6595
6595
  }, this.options.interval);
@@ -6598,11 +6598,11 @@ class Bo extends he {
6598
6598
  highlight() {
6599
6599
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6600
6600
  if (this.quill.selection.composing) return;
6601
- this.quill.update(M.sources.USER);
6601
+ this.quill.update(R.sources.USER);
6602
6602
  const n = this.quill.getSelection();
6603
6603
  (t == null ? this.quill.scroll.descendants(rr) : [t]).forEach((i) => {
6604
6604
  i.highlight(this.highlightBlot, e);
6605
- }), this.quill.update(M.sources.SILENT), n != null && this.quill.setSelection(n, M.sources.SILENT);
6605
+ }), this.quill.update(R.sources.SILENT), n != null && this.quill.setSelection(n, R.sources.SILENT);
6606
6606
  }
6607
6607
  highlightBlot(t) {
6608
6608
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "plain";
@@ -6785,7 +6785,7 @@ function Si() {
6785
6785
  }
6786
6786
  class Zf extends he {
6787
6787
  static register() {
6788
- M.register(ye), M.register(We), M.register(Re), M.register(zn);
6788
+ R.register(ye), R.register(We), R.register(Re), R.register(zn);
6789
6789
  }
6790
6790
  constructor() {
6791
6791
  super(...arguments), this.listenBalanceCells();
@@ -6797,17 +6797,17 @@ class Zf extends he {
6797
6797
  }
6798
6798
  deleteColumn() {
6799
6799
  const [t, , e] = this.getTable();
6800
- e != null && (t.deleteColumn(e.cellOffset()), this.quill.update(M.sources.USER));
6800
+ e != null && (t.deleteColumn(e.cellOffset()), this.quill.update(R.sources.USER));
6801
6801
  }
6802
6802
  deleteRow() {
6803
6803
  const [, t] = this.getTable();
6804
- t != null && (t.remove(), this.quill.update(M.sources.USER));
6804
+ t != null && (t.remove(), this.quill.update(R.sources.USER));
6805
6805
  }
6806
6806
  deleteTable() {
6807
6807
  const [t] = this.getTable();
6808
6808
  if (t == null) return;
6809
6809
  const e = t.offset();
6810
- t.remove(), this.quill.update(M.sources.USER), this.quill.setSelection(e, M.sources.SILENT);
6810
+ t.remove(), this.quill.update(R.sources.USER), this.quill.setSelection(e, R.sources.SILENT);
6811
6811
  }
6812
6812
  getTable() {
6813
6813
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.quill.getSelection();
@@ -6824,9 +6824,9 @@ class Zf extends he {
6824
6824
  const [n, s, i] = this.getTable(e);
6825
6825
  if (i == null) return;
6826
6826
  const o = i.cellOffset();
6827
- n.insertColumn(o + t), this.quill.update(M.sources.USER);
6827
+ n.insertColumn(o + t), this.quill.update(R.sources.USER);
6828
6828
  let a = s.rowOffset();
6829
- t === 0 && (a += 1), this.quill.setSelection(e.index + a, e.length, M.sources.SILENT);
6829
+ t === 0 && (a += 1), this.quill.setSelection(e.index + a, e.length, R.sources.SILENT);
6830
6830
  }
6831
6831
  insertColumnLeft() {
6832
6832
  this.insertColumn(0);
@@ -6840,7 +6840,7 @@ class Zf extends he {
6840
6840
  const [n, s, i] = this.getTable(e);
6841
6841
  if (i == null) return;
6842
6842
  const o = s.rowOffset();
6843
- n.insertRow(o + t), this.quill.update(M.sources.USER), t > 0 ? this.quill.setSelection(e, M.sources.SILENT) : this.quill.setSelection(e.index + s.children.length, e.length, M.sources.SILENT);
6843
+ n.insertRow(o + t), this.quill.update(R.sources.USER), t > 0 ? this.quill.setSelection(e, R.sources.SILENT) : this.quill.setSelection(e.index + s.children.length, e.length, R.sources.SILENT);
6844
6844
  }
6845
6845
  insertRowAbove() {
6846
6846
  this.insertRow(0);
@@ -6858,12 +6858,12 @@ class Zf extends he {
6858
6858
  table: Si()
6859
6859
  });
6860
6860
  }, new tt().retain(n.index));
6861
- this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(n.index, M.sources.SILENT), this.balanceTables();
6861
+ this.quill.updateContents(s, R.sources.USER), this.quill.setSelection(n.index, R.sources.SILENT), this.balanceTables();
6862
6862
  }
6863
6863
  listenBalanceCells() {
6864
- this.quill.on(M.events.SCROLL_OPTIMIZE, (t) => {
6865
- t.some((e) => ["TD", "TR", "TBODY", "TABLE"].includes(e.target.tagName) ? (this.quill.once(M.events.TEXT_CHANGE, (n, s, i) => {
6866
- i === M.sources.USER && this.balanceTables();
6864
+ this.quill.on(R.events.SCROLL_OPTIMIZE, (t) => {
6865
+ t.some((e) => ["TD", "TR", "TBODY", "TABLE"].includes(e.target.tagName) ? (this.quill.once(R.events.TEXT_CHANGE, (n, s, i) => {
6866
+ i === R.sources.USER && this.balanceTables();
6867
6867
  }), !0) : !1);
6868
6868
  });
6869
6869
  }
@@ -6886,7 +6886,7 @@ class Li extends he {
6886
6886
  o && this.addHandler(i, o);
6887
6887
  }), Array.from(this.container.querySelectorAll("button, select")).forEach((i) => {
6888
6888
  this.attach(i);
6889
- }), this.quill.on(M.events.EDITOR_CHANGE, () => {
6889
+ }), this.quill.on(R.events.EDITOR_CHANGE, () => {
6890
6890
  const [i] = this.quill.selection.getRange();
6891
6891
  this.update(i);
6892
6892
  });
@@ -6921,9 +6921,9 @@ class Li extends he {
6921
6921
  if (i = prompt(`Enter ${e}`), !i) return;
6922
6922
  this.quill.updateContents(new tt().retain(o.index).delete(o.length).insert({
6923
6923
  [e]: i
6924
- }), M.sources.USER);
6924
+ }), R.sources.USER);
6925
6925
  } else
6926
- this.quill.format(e, i, M.sources.USER);
6926
+ this.quill.format(e, i, R.sources.USER);
6927
6927
  this.update(o);
6928
6928
  }), this.controls.push([e, t]);
6929
6929
  }
@@ -6988,30 +6988,30 @@ Li.DEFAULTS = {
6988
6988
  if (r.length === 0) {
6989
6989
  const t = this.quill.getFormat();
6990
6990
  Object.keys(t).forEach((e) => {
6991
- this.quill.scroll.query(e, et.INLINE) != null && this.quill.format(e, !1, M.sources.USER);
6991
+ this.quill.scroll.query(e, et.INLINE) != null && this.quill.format(e, !1, R.sources.USER);
6992
6992
  });
6993
6993
  } else
6994
- this.quill.removeFormat(r.index, r.length, M.sources.USER);
6994
+ this.quill.removeFormat(r.index, r.length, R.sources.USER);
6995
6995
  },
6996
6996
  direction(r) {
6997
6997
  const {
6998
6998
  align: t
6999
6999
  } = this.quill.getFormat();
7000
- r === "rtl" && t == null ? this.quill.format("align", "right", M.sources.USER) : !r && t === "right" && this.quill.format("align", !1, M.sources.USER), this.quill.format("direction", r, M.sources.USER);
7000
+ r === "rtl" && t == null ? this.quill.format("align", "right", R.sources.USER) : !r && t === "right" && this.quill.format("align", !1, R.sources.USER), this.quill.format("direction", r, R.sources.USER);
7001
7001
  },
7002
7002
  indent(r) {
7003
7003
  const t = this.quill.getSelection(), e = this.quill.getFormat(t), n = parseInt(e.indent || 0, 10);
7004
7004
  if (r === "+1" || r === "-1") {
7005
7005
  let s = r === "+1" ? 1 : -1;
7006
- e.direction === "rtl" && (s *= -1), this.quill.format("indent", n + s, M.sources.USER);
7006
+ e.direction === "rtl" && (s *= -1), this.quill.format("indent", n + s, R.sources.USER);
7007
7007
  }
7008
7008
  },
7009
7009
  link(r) {
7010
- r === !0 && (r = prompt("Enter link URL:")), this.quill.format("link", r, M.sources.USER);
7010
+ r === !0 && (r = prompt("Enter link URL:")), this.quill.format("link", r, R.sources.USER);
7011
7011
  },
7012
7012
  list(r) {
7013
7013
  const t = this.quill.getSelection(), e = this.quill.getFormat(t);
7014
- r === "check" ? e.list === "checked" || e.list === "unchecked" ? this.quill.format("list", !1, M.sources.USER) : this.quill.format("list", "unchecked", M.sources.USER) : this.quill.format("list", r, M.sources.USER);
7014
+ r === "check" ? e.list === "checked" || e.list === "unchecked" ? this.quill.format("list", !1, R.sources.USER) : this.quill.format("list", "unchecked", R.sources.USER) : this.quill.format("list", r, R.sources.USER);
7015
7015
  }
7016
7016
  }
7017
7017
  };
@@ -7406,7 +7406,7 @@ Ho.DEFAULTS = on({}, br.DEFAULTS, {
7406
7406
  toolbar: {
7407
7407
  handlers: {
7408
7408
  link(r) {
7409
- r ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1, M.sources.USER);
7409
+ r ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1, R.sources.USER);
7410
7410
  }
7411
7411
  }
7412
7412
  }
@@ -7484,13 +7484,13 @@ Fo.DEFAULTS = on({}, br.DEFAULTS, {
7484
7484
  } = this.quill.theme;
7485
7485
  n.edit("link", e);
7486
7486
  } else
7487
- this.quill.format("link", !1, M.sources.USER);
7487
+ this.quill.format("link", !1, R.sources.USER);
7488
7488
  }
7489
7489
  }
7490
7490
  }
7491
7491
  }
7492
7492
  });
7493
- M.register({
7493
+ R.register({
7494
7494
  "attributors/attribute/direction": Ao,
7495
7495
  "attributors/class/align": wo,
7496
7496
  "attributors/class/background": nf,
@@ -7505,7 +7505,7 @@ M.register({
7505
7505
  "attributors/style/font": Lo,
7506
7506
  "attributors/style/size": qo
7507
7507
  }, !0);
7508
- M.register({
7508
+ R.register({
7509
7509
  "formats/align": wo,
7510
7510
  "formats/direction": Eo,
7511
7511
  "formats/indent": Kf,
@@ -7547,7 +7547,7 @@ const U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7547
7547
  OpIterator: Qt.OpIterator,
7548
7548
  Parchment: po,
7549
7549
  Range: cn,
7550
- default: M
7550
+ default: R
7551
7551
  }, Symbol.toStringTag, { value: "Module" }));
7552
7552
  var Ps = { exports: {} };
7553
7553
  const $1 = /* @__PURE__ */ _d(U1);
@@ -7566,27 +7566,27 @@ function H1() {
7566
7566
  var i = window.webpackHotUpdatequillBetterTable;
7567
7567
  window.webpackHotUpdatequillBetterTable = // eslint-disable-next-line no-unused-vars
7568
7568
  /******/
7569
- function(_, S) {
7570
- O(_, S), i && i(_, S);
7569
+ function(_, O) {
7570
+ C(_, O), i && i(_, O);
7571
7571
  };
7572
7572
  function o(N) {
7573
7573
  var _ = document.createElement("script");
7574
7574
  _.charset = "utf-8", _.src = z.p + "" + N + "." + d + ".hot-update.js", document.head.appendChild(_);
7575
7575
  }
7576
7576
  function a(N) {
7577
- return N = N || 1e4, new Promise(function(_, S) {
7577
+ return N = N || 1e4, new Promise(function(_, O) {
7578
7578
  if (typeof XMLHttpRequest > "u")
7579
- return S(new Error("No browser support"));
7579
+ return O(new Error("No browser support"));
7580
7580
  try {
7581
7581
  var V = new XMLHttpRequest(), W = z.p + "" + d + ".hot-update.json";
7582
7582
  V.open("GET", W, !0), V.timeout = N, V.send(null);
7583
- } catch (R) {
7584
- return S(R);
7583
+ } catch (M) {
7584
+ return O(M);
7585
7585
  }
7586
7586
  V.onreadystatechange = function() {
7587
7587
  if (V.readyState === 4)
7588
7588
  if (V.status === 0)
7589
- S(
7589
+ O(
7590
7590
  /******/
7591
7591
  new Error("Manifest request to " + W + " timed out.")
7592
7592
  /******/
@@ -7594,15 +7594,15 @@ function H1() {
7594
7594
  else if (V.status === 404)
7595
7595
  _();
7596
7596
  else if (V.status !== 200 && V.status !== 304)
7597
- S(new Error("Manifest request to " + W + " failed."));
7597
+ O(new Error("Manifest request to " + W + " failed."));
7598
7598
  else {
7599
7599
  try {
7600
- var R = JSON.parse(V.responseText);
7600
+ var M = JSON.parse(V.responseText);
7601
7601
  } catch (pt) {
7602
- S(pt);
7602
+ O(pt);
7603
7603
  return;
7604
7604
  }
7605
- _(R);
7605
+ _(M);
7606
7606
  }
7607
7607
  };
7608
7608
  });
@@ -7611,15 +7611,15 @@ function H1() {
7611
7611
  function q(N) {
7612
7612
  var _ = H[N];
7613
7613
  if (!_) return z;
7614
- var S = function(R) {
7615
- return _.hot.active ? (H[R] ? H[R].parents.indexOf(N) === -1 && H[R].parents.push(N) : (w = [N], p = R), _.children.indexOf(R) === -1 && _.children.push(R)) : (console.warn(
7614
+ var O = function(M) {
7615
+ return _.hot.active ? (H[M] ? H[M].parents.indexOf(N) === -1 && H[M].parents.push(N) : (w = [N], p = M), _.children.indexOf(M) === -1 && _.children.push(M)) : (console.warn(
7616
7616
  /******/
7617
7617
  "[HMR] unexpected require(" + /******/
7618
- R + /******/
7618
+ M + /******/
7619
7619
  ") from disposed module " + /******/
7620
7620
  N
7621
7621
  /******/
7622
- ), w = []), z(R);
7622
+ ), w = []), z(M);
7623
7623
  }, V = function(pt) {
7624
7624
  return {
7625
7625
  /******/
@@ -7641,17 +7641,17 @@ function H1() {
7641
7641
  /******/
7642
7642
  Object.prototype.hasOwnProperty.call(z, W) && /******/
7643
7643
  W !== "e" && /******/
7644
- W !== "t" && Object.defineProperty(S, W, V(W));
7645
- return S.e = function(R) {
7646
- return K === "ready" && Z("prepare"), nt++, z.e(R).then(pt, function(ht) {
7644
+ W !== "t" && Object.defineProperty(O, W, V(W));
7645
+ return O.e = function(M) {
7646
+ return K === "ready" && Z("prepare"), nt++, z.e(M).then(pt, function(ht) {
7647
7647
  throw pt(), ht;
7648
7648
  });
7649
7649
  function pt() {
7650
- nt--, K === "prepare" && (bt[R] || U(R), nt === 0 && rt === 0 && L());
7650
+ nt--, K === "prepare" && (bt[M] || P(M), nt === 0 && rt === 0 && S());
7651
7651
  }
7652
- }, S.t = function(R, pt) {
7653
- return pt & 1 && (R = S(R)), z.t(R, pt & -2);
7654
- }, S;
7652
+ }, O.t = function(M, pt) {
7653
+ return pt & 1 && (M = O(M)), z.t(M, pt & -2);
7654
+ }, O;
7655
7655
  }
7656
7656
  function D(N) {
7657
7657
  var _ = {
@@ -7675,35 +7675,35 @@ function H1() {
7675
7675
  /******/
7676
7676
  active: !0,
7677
7677
  /******/
7678
- accept: function(S, V) {
7679
- if (S === void 0) _._selfAccepted = !0;
7680
- else if (typeof S == "function") _._selfAccepted = S;
7681
- else if (typeof S == "object")
7682
- for (var W = 0; W < S.length; W++)
7683
- _._acceptedDependencies[S[W]] = V || function() {
7678
+ accept: function(O, V) {
7679
+ if (O === void 0) _._selfAccepted = !0;
7680
+ else if (typeof O == "function") _._selfAccepted = O;
7681
+ else if (typeof O == "object")
7682
+ for (var W = 0; W < O.length; W++)
7683
+ _._acceptedDependencies[O[W]] = V || function() {
7684
7684
  };
7685
- else _._acceptedDependencies[S] = V || function() {
7685
+ else _._acceptedDependencies[O] = V || function() {
7686
7686
  };
7687
7687
  },
7688
7688
  /******/
7689
- decline: function(S) {
7690
- if (S === void 0) _._selfDeclined = !0;
7691
- else if (typeof S == "object")
7692
- for (var V = 0; V < S.length; V++)
7693
- _._declinedDependencies[S[V]] = !0;
7694
- else _._declinedDependencies[S] = !0;
7689
+ decline: function(O) {
7690
+ if (O === void 0) _._selfDeclined = !0;
7691
+ else if (typeof O == "object")
7692
+ for (var V = 0; V < O.length; V++)
7693
+ _._declinedDependencies[O[V]] = !0;
7694
+ else _._declinedDependencies[O] = !0;
7695
7695
  },
7696
7696
  /******/
7697
- dispose: function(S) {
7698
- _._disposeHandlers.push(S);
7697
+ dispose: function(O) {
7698
+ _._disposeHandlers.push(O);
7699
7699
  },
7700
7700
  /******/
7701
- addDisposeHandler: function(S) {
7702
- _._disposeHandlers.push(S);
7701
+ addDisposeHandler: function(O) {
7702
+ _._disposeHandlers.push(O);
7703
7703
  },
7704
7704
  /******/
7705
- removeDisposeHandler: function(S) {
7706
- var V = _._disposeHandlers.indexOf(S);
7705
+ removeDisposeHandler: function(O) {
7706
+ var V = _._disposeHandlers.indexOf(O);
7707
7707
  V >= 0 && _._disposeHandlers.splice(V, 1);
7708
7708
  },
7709
7709
  /******/
@@ -7714,17 +7714,17 @@ function H1() {
7714
7714
  /******/
7715
7715
  apply: $,
7716
7716
  /******/
7717
- status: function(S) {
7718
- if (!S) return K;
7719
- j.push(S);
7717
+ status: function(O) {
7718
+ if (!O) return K;
7719
+ j.push(O);
7720
7720
  },
7721
7721
  /******/
7722
- addStatusHandler: function(S) {
7723
- j.push(S);
7722
+ addStatusHandler: function(O) {
7723
+ j.push(O);
7724
7724
  },
7725
7725
  /******/
7726
- removeStatusHandler: function(S) {
7727
- var V = j.indexOf(S);
7726
+ removeStatusHandler: function(O) {
7727
+ var V = j.indexOf(O);
7728
7728
  V >= 0 && j.splice(V, 1);
7729
7729
  },
7730
7730
  /******/
@@ -7754,35 +7754,35 @@ function H1() {
7754
7754
  if (!_)
7755
7755
  return Z("idle"), null;
7756
7756
  At = {}, bt = {}, vt = _.c, g = _.h, Z("prepare");
7757
- var S = new Promise(function(W, R) {
7757
+ var O = new Promise(function(W, M) {
7758
7758
  Mt = {
7759
7759
  /******/
7760
7760
  resolve: W,
7761
7761
  /******/
7762
- reject: R
7762
+ reject: M
7763
7763
  /******/
7764
7764
  };
7765
7765
  });
7766
7766
  Lt = {};
7767
7767
  var V = 2;
7768
- return U(V), /******/
7768
+ return P(V), /******/
7769
7769
  K === "prepare" && /******/
7770
7770
  nt === 0 && /******/
7771
- rt === 0 && L(), S;
7771
+ rt === 0 && S(), O;
7772
7772
  });
7773
7773
  }
7774
- function O(N, _) {
7774
+ function C(N, _) {
7775
7775
  if (!(!vt[N] || !At[N])) {
7776
7776
  At[N] = !1;
7777
- for (var S in _)
7778
- Object.prototype.hasOwnProperty.call(_, S) && (Lt[S] = _[S]);
7779
- --rt === 0 && nt === 0 && L();
7777
+ for (var O in _)
7778
+ Object.prototype.hasOwnProperty.call(_, O) && (Lt[O] = _[O]);
7779
+ --rt === 0 && nt === 0 && S();
7780
7780
  }
7781
7781
  }
7782
- function U(N) {
7782
+ function P(N) {
7783
7783
  vt[N] ? (At[N] = !0, rt++, o(N)) : bt[N] = !0;
7784
7784
  }
7785
- function L() {
7785
+ function S() {
7786
7786
  Z("ready");
7787
7787
  var N = Mt;
7788
7788
  if (Mt = null, !!N)
@@ -7802,8 +7802,8 @@ function H1() {
7802
7802
  );
7803
7803
  else {
7804
7804
  var _ = [];
7805
- for (var S in Lt)
7806
- Object.prototype.hasOwnProperty.call(Lt, S) && _.push(x(S));
7805
+ for (var O in Lt)
7806
+ Object.prototype.hasOwnProperty.call(Lt, O) && _.push(x(O));
7807
7807
  N.resolve(_);
7808
7808
  }
7809
7809
  }
@@ -7811,7 +7811,7 @@ function H1() {
7811
7811
  if (K !== "ready")
7812
7812
  throw new Error("apply() is only allowed in ready status");
7813
7813
  N = N || {};
7814
- var _, S, V, W, R;
7814
+ var _, O, V, W, M;
7815
7815
  function pt(St) {
7816
7816
  for (var xt = [St], zt = {}, ne = xt.map(function(Ft) {
7817
7817
  return {
@@ -7903,9 +7903,9 @@ function H1() {
7903
7903
  };
7904
7904
  for (var mt in Lt)
7905
7905
  if (Object.prototype.hasOwnProperty.call(Lt, mt)) {
7906
- R = x(mt);
7906
+ M = x(mt);
7907
7907
  var ct;
7908
- Lt[mt] ? ct = pt(R) : ct = {
7908
+ Lt[mt] ? ct = pt(M) : ct = {
7909
7909
  /******/
7910
7910
  type: "disposed",
7911
7911
  /******/
@@ -7941,7 +7941,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
7941
7941
  case "unaccepted":
7942
7942
  N.onUnaccepted && N.onUnaccepted(ct), N.ignoreUnaccepted || (Ct = new Error(
7943
7943
  /******/
7944
- "Aborted because " + R + " is not accepted" + de
7944
+ "Aborted because " + M + " is not accepted" + de
7945
7945
  /******/
7946
7946
  ));
7947
7947
  break;
@@ -7960,78 +7960,78 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
7960
7960
  if (Ct)
7961
7961
  return Z("abort"), Promise.reject(Ct);
7962
7962
  if (kt) {
7963
- gt[R] = Lt[R], ht(dt, ct.outdatedModules);
7964
- for (R in ct.outdatedDependencies)
7963
+ gt[M] = Lt[M], ht(dt, ct.outdatedModules);
7964
+ for (M in ct.outdatedDependencies)
7965
7965
  /******/
7966
7966
  Object.prototype.hasOwnProperty.call(
7967
7967
  /******/
7968
7968
  ct.outdatedDependencies,
7969
7969
  /******/
7970
- R
7970
+ M
7971
7971
  /******/
7972
- ) && (lt[R] || (lt[R] = []), ht(
7972
+ ) && (lt[M] || (lt[M] = []), ht(
7973
7973
  /******/
7974
- lt[R],
7974
+ lt[M],
7975
7975
  /******/
7976
- ct.outdatedDependencies[R]
7976
+ ct.outdatedDependencies[M]
7977
7977
  /******/
7978
7978
  ));
7979
7979
  }
7980
- Ae && (ht(dt, [ct.moduleId]), gt[R] = yt);
7980
+ Ae && (ht(dt, [ct.moduleId]), gt[M] = yt);
7981
7981
  }
7982
7982
  var De = [];
7983
- for (S = 0; S < dt.length; S++)
7984
- R = dt[S], /******/
7985
- H[R] && /******/
7986
- H[R].hot._selfAccepted && /******/
7983
+ for (O = 0; O < dt.length; O++)
7984
+ M = dt[O], /******/
7985
+ H[M] && /******/
7986
+ H[M].hot._selfAccepted && /******/
7987
7987
  // removed self-accepted modules should not be required
7988
7988
  /******/
7989
- gt[R] !== yt && De.push({
7989
+ gt[M] !== yt && De.push({
7990
7990
  /******/
7991
- module: R,
7991
+ module: M,
7992
7992
  /******/
7993
- errorHandler: H[R].hot._selfAccepted
7993
+ errorHandler: H[M].hot._selfAccepted
7994
7994
  /******/
7995
7995
  });
7996
7996
  Z("dispose"), Object.keys(vt).forEach(function(St) {
7997
7997
  vt[St] === !1 && s(St);
7998
7998
  });
7999
7999
  for (var ie, fe = dt.slice(); fe.length > 0; )
8000
- if (R = fe.pop(), W = H[R], !!W) {
8000
+ if (M = fe.pop(), W = H[M], !!W) {
8001
8001
  var Ee = {}, je = W.hot._disposeHandlers;
8002
8002
  for (V = 0; V < je.length; V++)
8003
8003
  _ = je[V], _(Ee);
8004
- for (E[R] = Ee, W.hot.active = !1, delete H[R], delete lt[R], V = 0; V < W.children.length; V++) {
8004
+ for (E[M] = Ee, W.hot.active = !1, delete H[M], delete lt[M], V = 0; V < W.children.length; V++) {
8005
8005
  var Te = H[W.children[V]];
8006
- Te && (ie = Te.parents.indexOf(R), ie >= 0 && Te.parents.splice(ie, 1));
8006
+ Te && (ie = Te.parents.indexOf(M), ie >= 0 && Te.parents.splice(ie, 1));
8007
8007
  }
8008
8008
  }
8009
8009
  var jt, Pt;
8010
- for (R in lt)
8010
+ for (M in lt)
8011
8011
  if (
8012
8012
  /******/
8013
- Object.prototype.hasOwnProperty.call(lt, R) && (W = H[R], W)
8013
+ Object.prototype.hasOwnProperty.call(lt, M) && (W = H[M], W)
8014
8014
  )
8015
- for (Pt = lt[R], V = 0; V < Pt.length; V++)
8015
+ for (Pt = lt[M], V = 0; V < Pt.length; V++)
8016
8016
  jt = Pt[V], ie = W.children.indexOf(jt), ie >= 0 && W.children.splice(ie, 1);
8017
8017
  Z("apply"), d = g;
8018
- for (R in gt)
8019
- Object.prototype.hasOwnProperty.call(gt, R) && (n[R] = gt[R]);
8018
+ for (M in gt)
8019
+ Object.prototype.hasOwnProperty.call(gt, M) && (n[M] = gt[M]);
8020
8020
  var Ht = null;
8021
- for (R in lt)
8021
+ for (M in lt)
8022
8022
  if (
8023
8023
  /******/
8024
- Object.prototype.hasOwnProperty.call(lt, R) && (W = H[R], W)
8024
+ Object.prototype.hasOwnProperty.call(lt, M) && (W = H[M], W)
8025
8025
  ) {
8026
- Pt = lt[R];
8026
+ Pt = lt[M];
8027
8027
  var Jt = [];
8028
- for (S = 0; S < Pt.length; S++)
8029
- if (jt = Pt[S], _ = W.hot._acceptedDependencies[jt], _) {
8028
+ for (O = 0; O < Pt.length; O++)
8029
+ if (jt = Pt[O], _ = W.hot._acceptedDependencies[jt], _) {
8030
8030
  if (Jt.indexOf(_) !== -1) continue;
8031
8031
  Jt.push(_);
8032
8032
  }
8033
- for (S = 0; S < Jt.length; S++) {
8034
- _ = Jt[S];
8033
+ for (O = 0; O < Jt.length; O++) {
8034
+ _ = Jt[O];
8035
8035
  try {
8036
8036
  _(Pt);
8037
8037
  } catch (St) {
@@ -8039,9 +8039,9 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8039
8039
  /******/
8040
8040
  type: "accept-errored",
8041
8041
  /******/
8042
- moduleId: R,
8042
+ moduleId: M,
8043
8043
  /******/
8044
- dependencyId: Pt[S],
8044
+ dependencyId: Pt[O],
8045
8045
  /******/
8046
8046
  error: St
8047
8047
  /******/
@@ -8049,11 +8049,11 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8049
8049
  }
8050
8050
  }
8051
8051
  }
8052
- for (S = 0; S < De.length; S++) {
8053
- var le = De[S];
8054
- R = le.module, w = [R];
8052
+ for (O = 0; O < De.length; O++) {
8053
+ var le = De[O];
8054
+ M = le.module, w = [M];
8055
8055
  try {
8056
- z(R);
8056
+ z(M);
8057
8057
  } catch (St) {
8058
8058
  if (typeof le.errorHandler == "function")
8059
8059
  try {
@@ -8063,7 +8063,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8063
8063
  /******/
8064
8064
  type: "self-accept-error-handler-errored",
8065
8065
  /******/
8066
- moduleId: R,
8066
+ moduleId: M,
8067
8067
  /******/
8068
8068
  error: xt,
8069
8069
  /******/
@@ -8076,7 +8076,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8076
8076
  /******/
8077
8077
  type: "self-accept-errored",
8078
8078
  /******/
8079
- moduleId: R,
8079
+ moduleId: M,
8080
8080
  /******/
8081
8081
  error: St
8082
8082
  /******/
@@ -8108,17 +8108,17 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8108
8108
  };
8109
8109
  return n[N].call(_.exports, _, _.exports, q(N)), _.l = !0, _.exports;
8110
8110
  }
8111
- return z.m = n, z.c = H, z.d = function(N, _, S) {
8112
- z.o(N, _) || Object.defineProperty(N, _, { enumerable: !0, get: S });
8111
+ return z.m = n, z.c = H, z.d = function(N, _, O) {
8112
+ z.o(N, _) || Object.defineProperty(N, _, { enumerable: !0, get: O });
8113
8113
  }, z.r = function(N) {
8114
8114
  typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(N, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(N, "__esModule", { value: !0 });
8115
8115
  }, z.t = function(N, _) {
8116
8116
  if (_ & 1 && (N = z(N)), _ & 8 || _ & 4 && typeof N == "object" && N && N.__esModule) return N;
8117
- var S = /* @__PURE__ */ Object.create(null);
8118
- if (z.r(S), Object.defineProperty(S, "default", { enumerable: !0, value: N }), _ & 2 && typeof N != "string") for (var V in N) z.d(S, V, (function(W) {
8117
+ var O = /* @__PURE__ */ Object.create(null);
8118
+ if (z.r(O), Object.defineProperty(O, "default", { enumerable: !0, value: N }), _ & 2 && typeof N != "string") for (var V in N) z.d(O, V, (function(W) {
8119
8119
  return N[W];
8120
8120
  }).bind(null, V));
8121
- return S;
8121
+ return O;
8122
8122
  }, z.n = function(N) {
8123
8123
  var _ = N && N.__esModule ? (
8124
8124
  /******/
@@ -8231,12 +8231,12 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8231
8231
  b += ("0" + Number(f[T]).toString(16)).slice(-2);
8232
8232
  return b;
8233
8233
  } else if (c.test(k)) {
8234
- var C = k.replace(/#/, "").split("");
8235
- if (C.length === 6)
8234
+ var L = k.replace(/#/, "").split("");
8235
+ if (L.length === 6)
8236
8236
  return k;
8237
- if (C.length === 3) {
8238
- for (var B = "#", T = 0; T < C.length; T += 1)
8239
- B += C[T] + C[T];
8237
+ if (L.length === 3) {
8238
+ for (var B = "#", T = 0; T < L.length; T += 1)
8239
+ B += L[T] + L[T];
8240
8240
  return B;
8241
8241
  }
8242
8242
  }
@@ -8269,10 +8269,10 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8269
8269
  }
8270
8270
  updateToolCells() {
8271
8271
  const c = a.a.find(this.table), f = c.children.tail.children.head.children, b = c.colGroup().children, T = K(f);
8272
- let C = Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell"));
8273
- for (let B = 0; B < Math.max(T, C.length); B++) {
8274
- let P = b.at(B), G = P && parseInt(P.formats()[P.statics.blotName].width, 10), F = null;
8275
- C[B] ? C[B] && B >= T ? C[B].remove() : (F = C[B], h(F, {
8272
+ let L = Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell"));
8273
+ for (let B = 0; B < Math.max(T, L.length); B++) {
8274
+ let U = b.at(B), G = U && parseInt(U.formats()[U.statics.blotName].width, 10), F = null;
8275
+ L[B] ? L[B] && B >= T ? L[B].remove() : (F = L[B], h(F, {
8276
8276
  "min-width": "".concat(G, "px")
8277
8277
  })) : (F = this.createToolCell(), this.domNode.appendChild(F), this.addColCellHolderHandler(F), h(F, {
8278
8278
  "min-width": "".concat(G, "px")
@@ -8284,17 +8284,17 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8284
8284
  }
8285
8285
  addColCellHolderHandler(c) {
8286
8286
  const f = a.a.find(this.table), b = c.querySelector(".qlbt-col-tool-cell-holder");
8287
- let T = !1, C = 0, B = 0, P = 0, G = 0, F = {}, Y = {}, it = null;
8287
+ let T = !1, L = 0, B = 0, U = 0, G = 0, F = {}, Y = {}, it = null;
8288
8288
  const ot = (at) => {
8289
- at.preventDefault(), T && (B = at.clientX, G + B - C >= q ? P = B - C : P = q - G, h(it, {
8290
- left: "".concat(Y.left + Y.width - 1 + P, "px")
8289
+ at.preventDefault(), T && (B = at.clientX, G + B - L >= q ? U = B - L : U = q - G, h(it, {
8290
+ left: "".concat(Y.left + Y.width - 1 + U, "px")
8291
8291
  }));
8292
8292
  }, Q = (at) => {
8293
8293
  at.preventDefault();
8294
8294
  const Et = Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell")).indexOf(c), Rt = f.colGroup().children.at(Et);
8295
- T && (Rt.format("width", G + P), h(c, {
8296
- "min-width": "".concat(G + P, "px")
8297
- }), C = 0, B = 0, P = 0, G = 0, T = !1, b.classList.remove("dragging")), document.removeEventListener("mousemove", ot, !1), document.removeEventListener("mouseup", Q, !1), F = {}, Y = {}, it.remove(), it = null, f.updateTableWidth();
8295
+ T && (Rt.format("width", G + U), h(c, {
8296
+ "min-width": "".concat(G + U, "px")
8297
+ }), L = 0, B = 0, U = 0, G = 0, T = !1, b.classList.remove("dragging")), document.removeEventListener("mousemove", ot, !1), document.removeEventListener("mouseup", Q, !1), F = {}, Y = {}, it.remove(), it = null, f.updateTableWidth();
8298
8298
  const $e = this.quill.getModule("better-table").tableSelection;
8299
8299
  $e && $e.clearSelection();
8300
8300
  }, ut = (at) => {
@@ -8306,7 +8306,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8306
8306
  height: "".concat(F.height + w + 4, "px"),
8307
8307
  width: "1px",
8308
8308
  backgroundColor: D
8309
- }), document.body.appendChild(it), T = !0, C = at.clientX, G = Y.width, b.classList.add("dragging");
8309
+ }), document.body.appendChild(it), T = !0, L = at.clientX, G = Y.width, b.classList.add("dragging");
8310
8310
  };
8311
8311
  b.addEventListener("mousedown", ut, !1);
8312
8312
  }
@@ -8341,19 +8341,19 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8341
8341
  const {
8342
8342
  row: b,
8343
8343
  cell: T,
8344
- rowspan: C,
8344
+ rowspan: L,
8345
8345
  colspan: B
8346
8346
  } = rt.formats(this.domNode);
8347
8347
  c === rt.blotName ? f ? super.format(c, {
8348
8348
  value: f,
8349
8349
  row: b,
8350
8350
  cell: T,
8351
- rowspan: C,
8351
+ rowspan: L,
8352
8352
  colspan: B
8353
- }) : b ? this.replaceWith(U.blotName, {
8353
+ }) : b ? this.replaceWith(P.blotName, {
8354
8354
  row: b,
8355
8355
  cell: T,
8356
- rowspan: C,
8356
+ rowspan: L,
8357
8357
  colspan: B
8358
8358
  }) : super.format(c, f) : super.format(c, f);
8359
8359
  }
@@ -8363,14 +8363,14 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8363
8363
  rowspan: b,
8364
8364
  colspan: T
8365
8365
  } = rt.formats(this.domNode);
8366
- if (f && !(this.parent instanceof L) && this.wrap(L.blotName, {
8366
+ if (f && !(this.parent instanceof S) && this.wrap(S.blotName, {
8367
8367
  row: f,
8368
8368
  colspan: T,
8369
8369
  rowspan: b
8370
8370
  }), this.enforceAllowedChildren(), this.uiNode != null && this.uiNode !== this.domNode.firstChild && this.domNode.insertBefore(this.uiNode, this.domNode.firstChild), this.children.length === 0)
8371
8371
  if (this.statics.defaultChild != null) {
8372
- const C = this.scroll.create(this.statics.defaultChild.blotName);
8373
- this.appendChild(C);
8372
+ const L = this.scroll.create(this.statics.defaultChild.blotName);
8373
+ this.appendChild(L);
8374
8374
  } else
8375
8375
  this.remove();
8376
8376
  this.cache = {};
@@ -8383,8 +8383,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8383
8383
  }, g = ["row", "cell"], x = ["rowspan", "colspan"], v = {
8384
8384
  rowspan: 1,
8385
8385
  colspan: 1
8386
- }, O = 5;
8387
- class U extends At {
8386
+ }, C = 5;
8387
+ class P extends At {
8388
8388
  static create(c) {
8389
8389
  const f = super.create(c);
8390
8390
  return g.forEach((b) => {
@@ -8408,34 +8408,34 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8408
8408
  const {
8409
8409
  row: b,
8410
8410
  cell: T,
8411
- rowspan: C,
8411
+ rowspan: L,
8412
8412
  colspan: B
8413
- } = U.formats(this.domNode);
8413
+ } = P.formats(this.domNode);
8414
8414
  super.format(c, {
8415
8415
  value: f,
8416
8416
  row: b,
8417
8417
  cell: T,
8418
- rowspan: C,
8418
+ rowspan: L,
8419
8419
  colspan: B
8420
8420
  });
8421
8421
  } else
8422
8422
  super.format(c, f);
8423
8423
  }
8424
8424
  optimize(c) {
8425
- const f = this.domNode.getAttribute("data-row"), b = this.domNode.getAttribute("data-rowspan"), T = this.domNode.getAttribute("data-colspan"), C = this.domNode.getAttribute("data-cell-bg");
8425
+ const f = this.domNode.getAttribute("data-row"), b = this.domNode.getAttribute("data-rowspan"), T = this.domNode.getAttribute("data-colspan"), L = this.domNode.getAttribute("data-cell-bg");
8426
8426
  this.statics.requiredContainer && !(this.parent instanceof this.statics.requiredContainer) && this.wrap(this.statics.requiredContainer.blotName, {
8427
8427
  row: f,
8428
8428
  colspan: T,
8429
8429
  rowspan: b,
8430
- "cell-bg": C
8430
+ "cell-bg": L
8431
8431
  }), super.optimize(c);
8432
8432
  }
8433
8433
  tableCell() {
8434
8434
  return this.parent;
8435
8435
  }
8436
8436
  }
8437
- U.blotName = "table-cell-line", U.className = "qlbt-cell-line", U.tagName = "P";
8438
- class L extends vt {
8437
+ P.blotName = "table-cell-line", P.className = "qlbt-cell-line", P.tagName = "P";
8438
+ class S extends vt {
8439
8439
  checkMerge() {
8440
8440
  if (super.checkMerge() && this.next.children.head != null) {
8441
8441
  const c = this.children.head.formats()[this.children.head.statics.blotName], f = this.children.tail.formats()[this.children.tail.statics.blotName], b = this.next.children.head.formats()[this.next.children.head.statics.blotName], T = this.next.children.tail.formats()[this.next.children.tail.statics.blotName];
@@ -8487,7 +8487,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8487
8487
  return this.row() && this.row().table();
8488
8488
  }
8489
8489
  }
8490
- L.blotName = "table", L.tagName = "TD";
8490
+ S.blotName = "table", S.tagName = "TD";
8491
8491
  class $ extends vt {
8492
8492
  checkMerge() {
8493
8493
  if (super.checkMerge() && this.next.children.head != null) {
@@ -8563,17 +8563,17 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8563
8563
  let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], b = arguments.length > 2 ? arguments[2] : void 0;
8564
8564
  const [T] = this.descendants(H);
8565
8565
  if (T == null || T.children.head == null) return;
8566
- const C = this.descendants(L), B = [], P = [];
8567
- if (C.forEach((G) => {
8566
+ const L = this.descendants(S), B = [], U = [];
8567
+ if (L.forEach((G) => {
8568
8568
  const F = d(G.domNode.getBoundingClientRect(), b);
8569
- F.x + O > c.x && F.x1 - O < c.x1 ? B.push(G) : F.x < c.x + O && F.x1 > c.x1 - O && P.push(G);
8570
- }), B.length === C.length)
8569
+ F.x + C > c.x && F.x1 - C < c.x1 ? B.push(G) : F.x < c.x + C && F.x1 > c.x1 - C && U.push(G);
8570
+ }), B.length === L.length)
8571
8571
  return this.tableDestroy(), !0;
8572
8572
  f.forEach((G) => {
8573
8573
  this.colGroup().children.at(f[0]).remove();
8574
8574
  }), B.forEach((G) => {
8575
8575
  G.remove();
8576
- }), P.forEach((G) => {
8576
+ }), U.forEach((G) => {
8577
8577
  const F = parseInt(G.formats().colspan, 10);
8578
8578
  parseInt(G.formats().width, 10), G.format("colspan", F - f.length);
8579
8579
  }), this.updateTableWidth();
@@ -8581,30 +8581,30 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8581
8581
  deleteRow(c, f) {
8582
8582
  const [b] = this.descendants(H);
8583
8583
  if (b == null || b.children.head == null) return;
8584
- const T = this.descendants(L), C = this.descendants($), B = [], P = [], G = [], F = C.filter((it) => {
8584
+ const T = this.descendants(S), L = this.descendants($), B = [], U = [], G = [], F = L.filter((it) => {
8585
8585
  const ot = d(it.domNode.getBoundingClientRect(), f);
8586
- return ot.y > c.y - O && ot.y1 < c.y1 + O;
8586
+ return ot.y > c.y - C && ot.y1 < c.y1 + C;
8587
8587
  });
8588
8588
  if (T.forEach((it) => {
8589
8589
  const ot = d(it.domNode.getBoundingClientRect(), f);
8590
- ot.y > c.y - O && ot.y1 < c.y1 + O ? B.push(it) : ot.y < c.y + O && ot.y1 > c.y1 - O && (P.push(it), Math.abs(ot.y - c.y) < O && G.push(it));
8590
+ ot.y > c.y - C && ot.y1 < c.y1 + C ? B.push(it) : ot.y < c.y + C && ot.y1 > c.y1 - C && (U.push(it), Math.abs(ot.y - c.y) < C && G.push(it));
8591
8591
  }), B.length === T.length) {
8592
8592
  this.tableDestroy();
8593
8593
  return;
8594
8594
  }
8595
8595
  const Y = this.rows().reduce((it, ot) => {
8596
8596
  let Q = d(ot.domNode.getBoundingClientRect(), f);
8597
- return Q.y > c.y - O && Q.y1 < c.y1 + O && (it += 1), it;
8597
+ return Q.y > c.y - C && Q.y1 < c.y1 + C && (it += 1), it;
8598
8598
  }, 0);
8599
8599
  G.forEach((it) => {
8600
8600
  const ot = d(it.domNode.getBoundingClientRect(), f), Q = it.parent.next, at = Q.children.reduce((It, Et) => {
8601
8601
  const Rt = d(Et.domNode.getBoundingClientRect(), f);
8602
- return Math.abs(ot.x1 - Rt.x) < O && (It = Et), It;
8602
+ return Math.abs(ot.x1 - Rt.x) < C && (It = Et), It;
8603
8603
  }, null);
8604
8604
  Q.insertBefore(it, at), it.format("row", Q.formats().row);
8605
8605
  }), B.forEach((it) => {
8606
8606
  it.remove();
8607
- }), P.forEach((it) => {
8607
+ }), U.forEach((it) => {
8608
8608
  const ot = parseInt(it.formats().rowspan, 10);
8609
8609
  it.format("rowspan", ot - Y);
8610
8610
  }), F.forEach((it) => it.remove());
@@ -8614,27 +8614,27 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8614
8614
  this.remove(), f.hideTableTools(), c.update(a.a.sources.USER);
8615
8615
  }
8616
8616
  insertCell(c, f) {
8617
- const b = W(), T = c.formats().row, C = this.scroll.create(L.blotName, Object.assign({}, v, {
8617
+ const b = W(), T = c.formats().row, L = this.scroll.create(S.blotName, Object.assign({}, v, {
8618
8618
  row: T
8619
- })), B = this.scroll.create(U.blotName, {
8619
+ })), B = this.scroll.create(P.blotName, {
8620
8620
  row: T,
8621
8621
  cell: b
8622
8622
  });
8623
- C.appendChild(B), f ? c.insertBefore(C, f) : c.appendChild(C);
8623
+ L.appendChild(B), f ? c.insertBefore(L, f) : c.appendChild(L);
8624
8624
  }
8625
8625
  insertColumn(c, f) {
8626
8626
  let b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, T = arguments.length > 3 ? arguments[3] : void 0;
8627
- const [C] = this.descendants(H), [B] = this.descendants(N), P = this.descendants(z);
8627
+ const [L] = this.descendants(H), [B] = this.descendants(N), U = this.descendants(z);
8628
8628
  let G = [], F = [], Y = [];
8629
- if (C == null || C.children.head == null) return;
8630
- this.descendants(L).forEach((ut) => {
8629
+ if (L == null || L.children.head == null) return;
8630
+ this.descendants(S).forEach((ut) => {
8631
8631
  const at = d(ut.domNode.getBoundingClientRect(), T);
8632
- b ? Math.abs(at.x1 - c.x1) < O ? G.push(ut) : c.x1 - at.x > O && c.x1 - at.x1 < -O && F.push(ut) : Math.abs(at.x - c.x) < O ? G.push(ut) : c.x - at.x > O && c.x - at.x1 < -O && F.push(ut);
8632
+ b ? Math.abs(at.x1 - c.x1) < C ? G.push(ut) : c.x1 - at.x > C && c.x1 - at.x1 < -C && F.push(ut) : Math.abs(at.x - c.x) < C ? G.push(ut) : c.x - at.x > C && c.x - at.x1 < -C && F.push(ut);
8633
8633
  }), G.forEach((ut) => {
8634
- const at = b ? ut.next : ut, It = W(), Et = ut.parent, Rt = Et.formats().row, $e = ut.formats(), tn = this.scroll.create(L.blotName, Object.assign({}, v, {
8634
+ const at = b ? ut.next : ut, It = W(), Et = ut.parent, Rt = Et.formats().row, $e = ut.formats(), tn = this.scroll.create(S.blotName, Object.assign({}, v, {
8635
8635
  row: Rt,
8636
8636
  rowspan: $e.rowspan
8637
- })), Vt = this.scroll.create(U.blotName, {
8637
+ })), Vt = this.scroll.create(P.blotName, {
8638
8638
  row: Rt,
8639
8639
  cell: It,
8640
8640
  rowspan: $e.rowspan
@@ -8642,7 +8642,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8642
8642
  tn.appendChild(Vt), at ? Et.insertBefore(tn, at) : Et.appendChild(tn), Y.push(tn);
8643
8643
  });
8644
8644
  const ot = this.scroll.create(z.blotName, !0);
8645
- let Q = b ? P[f].next : P[f];
8645
+ let Q = b ? U[f].next : U[f];
8646
8646
  return Q ? B.insertBefore(ot, Q) : B.appendChild(ot), F.forEach((ut) => {
8647
8647
  const at = ut.formats().colspan;
8648
8648
  ut.format("colspan", parseInt(at, 10) + 1), Y.push(ut);
@@ -8654,64 +8654,64 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8654
8654
  insertRow(c, f, b) {
8655
8655
  const [T] = this.descendants(H);
8656
8656
  if (T == null || T.children.head == null) return;
8657
- const C = this.descendants(L), B = V(), P = this.scroll.create($.blotName, {
8657
+ const L = this.descendants(S), B = V(), U = this.scroll.create($.blotName, {
8658
8658
  row: B
8659
8659
  });
8660
8660
  let G = [], F = [], Y = [];
8661
- C.forEach((Q) => {
8661
+ L.forEach((Q) => {
8662
8662
  const ut = d(Q.domNode.getBoundingClientRect(), b);
8663
- f ? Math.abs(ut.y1 - c.y1) < O ? G.push(Q) : c.y1 - ut.y > O && c.y1 - ut.y1 < -O && F.push(Q) : Math.abs(ut.y - c.y) < O ? G.push(Q) : c.y - ut.y > O && c.y - ut.y1 < -O && F.push(Q);
8663
+ f ? Math.abs(ut.y1 - c.y1) < C ? G.push(Q) : c.y1 - ut.y > C && c.y1 - ut.y1 < -C && F.push(Q) : Math.abs(ut.y - c.y) < C ? G.push(Q) : c.y - ut.y > C && c.y - ut.y1 < -C && F.push(Q);
8664
8664
  });
8665
8665
  const it = (Q, ut) => {
8666
8666
  let at = Q.domNode.getBoundingClientRect().x, It = ut.domNode.getBoundingClientRect().x;
8667
8667
  return at - It;
8668
8668
  };
8669
8669
  G.sort(it), G.forEach((Q) => {
8670
- const ut = W(), at = Q.formats(), It = this.scroll.create(L.blotName, Object.assign({}, v, {
8670
+ const ut = W(), at = Q.formats(), It = this.scroll.create(S.blotName, Object.assign({}, v, {
8671
8671
  row: B,
8672
8672
  colspan: at.colspan
8673
- })), Et = this.scroll.create(U.blotName, {
8673
+ })), Et = this.scroll.create(P.blotName, {
8674
8674
  row: B,
8675
8675
  cell: ut,
8676
8676
  colspan: at.colspan
8677
8677
  }), Rt = this.scroll.create(bt.blotName);
8678
- Et.appendChild(Rt), It.appendChild(Et), P.appendChild(It), Y.push(It);
8678
+ Et.appendChild(Rt), It.appendChild(Et), U.appendChild(It), Y.push(It);
8679
8679
  }), F.forEach((Q) => {
8680
8680
  const ut = parseInt(Q.formats().rowspan, 10);
8681
8681
  Q.format("rowspan", ut + 1), Y.push(Q);
8682
8682
  });
8683
8683
  const ot = this.rows().find((Q) => {
8684
8684
  let ut = d(Q.domNode.getBoundingClientRect(), b);
8685
- return f ? Math.abs(ut.y - c.y - c.height) < O : Math.abs(ut.y - c.y) < O;
8685
+ return f ? Math.abs(ut.y - c.y - c.height) < C : Math.abs(ut.y - c.y) < C;
8686
8686
  });
8687
- return T.insertBefore(P, ot), Y.sort(it), Y;
8687
+ return T.insertBefore(U, ot), Y.sort(it), Y;
8688
8688
  }
8689
- mergeCells(c, f, b, T, C) {
8689
+ mergeCells(c, f, b, T, L) {
8690
8690
  const B = f.reduce((F, Y, it) => (it !== 0 ? (F && Y.moveChildren(F), Y.remove()) : (Y.format("colspan", T), Y.format("rowspan", b), F = Y), F), null);
8691
- let P = B.domNode.getAttribute("data-row"), G = B.children.head.domNode.getAttribute("data-cell");
8691
+ let U = B.domNode.getAttribute("data-row"), G = B.children.head.domNode.getAttribute("data-cell");
8692
8692
  return B.children.forEach((F) => {
8693
- F.format("cell", G), F.format("row", P), F.format("colspan", T), F.format("rowspan", b);
8693
+ F.format("cell", G), F.format("row", U), F.format("colspan", T), F.format("rowspan", b);
8694
8694
  }), B;
8695
8695
  }
8696
8696
  unmergeCells(c, f) {
8697
- let b = {}, T = 1, C = 1;
8697
+ let b = {}, T = 1, L = 1;
8698
8698
  c.forEach((B) => {
8699
- if (b = B.formats(), T = b.rowspan, C = b.colspan, C > 1) {
8700
- let P = B.next, G = B.row();
8699
+ if (b = B.formats(), T = b.rowspan, L = b.colspan, L > 1) {
8700
+ let U = B.next, G = B.row();
8701
8701
  B.format("colspan", 1);
8702
- for (let F = C; F > 1; F--)
8703
- this.insertCell(G, P);
8702
+ for (let F = L; F > 1; F--)
8703
+ this.insertCell(G, U);
8704
8704
  }
8705
8705
  if (T > 1) {
8706
- let P = T, G = B.row().next;
8707
- for (; P > 1; ) {
8706
+ let U = T, G = B.row().next;
8707
+ for (; U > 1; ) {
8708
8708
  let F = G.children.reduce((Y, it) => {
8709
8709
  let ot = d(B.domNode.getBoundingClientRect(), f), Q = d(it.domNode.getBoundingClientRect(), f);
8710
- return Math.abs(ot.x1 - Q.x) < O && (Y = it), Y;
8710
+ return Math.abs(ot.x1 - Q.x) < C && (Y = it), Y;
8711
8711
  }, null);
8712
- for (let Y = C; Y > 0; Y--)
8712
+ for (let Y = L; Y > 0; Y--)
8713
8713
  this.insertCell(G, F);
8714
- P -= 1, G = G.next;
8714
+ U -= 1, G = G.next;
8715
8715
  }
8716
8716
  B.format("rowspan", 1);
8717
8717
  }
@@ -8723,20 +8723,20 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8723
8723
  }
8724
8724
  }
8725
8725
  _.blotName = "table-container", _.className = "quill-better-table", _.tagName = "TABLE";
8726
- class S extends vt {
8726
+ class O extends vt {
8727
8727
  constructor(c, f) {
8728
8728
  super(c, f);
8729
8729
  const b = a.a.find(c.domNode.parentNode);
8730
8730
  f.addEventListener("scroll", (T) => {
8731
- const C = b.getModule("better-table");
8732
- C.columnTool && (C.columnTool.domNode.scrollLeft = T.target.scrollLeft), C.tableSelection && C.tableSelection.selectedTds.length > 0 && C.tableSelection.repositionHelpLines();
8731
+ const L = b.getModule("better-table");
8732
+ L.columnTool && (L.columnTool.domNode.scrollLeft = T.target.scrollLeft), L.tableSelection && L.tableSelection.selectedTds.length > 0 && L.tableSelection.repositionHelpLines();
8733
8733
  }, !1);
8734
8734
  }
8735
8735
  table() {
8736
8736
  return this.children.head;
8737
8737
  }
8738
8738
  }
8739
- S.blotName = "table-view", S.className = "quill-better-table-wrapper", S.tagName = "DIV", S.allowedChildren = [_], _.requiredContainer = S, _.allowedChildren = [H, N], H.requiredContainer = _, H.allowedChildren = [$], $.requiredContainer = H, $.allowedChildren = [L], L.requiredContainer = $, L.allowedChildren = [U, nt], U.requiredContainer = L, N.allowedChildren = [z], N.requiredContainer = _, z.requiredContainer = N;
8739
+ O.blotName = "table-view", O.className = "quill-better-table-wrapper", O.tagName = "DIV", O.allowedChildren = [_], _.requiredContainer = O, _.allowedChildren = [H, N], H.requiredContainer = _, H.allowedChildren = [$], $.requiredContainer = H, $.allowedChildren = [S], S.requiredContainer = $, S.allowedChildren = [P, nt], P.requiredContainer = S, N.allowedChildren = [z], N.requiredContainer = _, z.requiredContainer = N;
8740
8740
  function V() {
8741
8741
  const k = Math.random().toString(36).slice(2, 6);
8742
8742
  return "row-".concat(k);
@@ -8745,7 +8745,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8745
8745
  const k = Math.random().toString(36).slice(2, 6);
8746
8746
  return "cell-".concat(k);
8747
8747
  }
8748
- const R = "#0589f3", pt = ["left", "right", "top", "bottom"], ht = 2;
8748
+ const M = "#0589f3", pt = ["left", "right", "top", "bottom"], ht = 2;
8749
8749
  class lt {
8750
8750
  constructor(c, f, b) {
8751
8751
  if (!c) return null;
@@ -8757,49 +8757,49 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8757
8757
  this[f] = document.createElement("div"), this[f].classList.add("qlbt-selection-line"), this[f].classList.add("qlbt-selection-line-" + f), h(this[f], {
8758
8758
  position: "absolute",
8759
8759
  display: "none",
8760
- "background-color": R
8760
+ "background-color": M
8761
8761
  }), c.appendChild(this[f]);
8762
8762
  });
8763
8763
  }
8764
8764
  mouseDownHandler(c) {
8765
8765
  if (c.button !== 0 || !c.target.closest(".quill-better-table")) return;
8766
- this.quill.root.addEventListener("mousemove", C, !1), this.quill.root.addEventListener("mouseup", B, !1);
8766
+ this.quill.root.addEventListener("mousemove", L, !1), this.quill.root.addEventListener("mouseup", B, !1);
8767
8767
  const f = this, b = c.target.closest("td[data-row]"), T = d(b.getBoundingClientRect(), this.quill.root.parentNode);
8768
8768
  this.dragging = !0, this.boundary = dt(T, T), this.correctBoundary(), this.selectedTds = this.computeSelectedTds(), this.repositionHelpLines();
8769
- function C(P) {
8770
- if (P.button !== 0 || !P.target.closest(".quill-better-table")) return;
8771
- const G = P.target.closest("td[data-row]"), F = d(G.getBoundingClientRect(), f.quill.root.parentNode);
8769
+ function L(U) {
8770
+ if (U.button !== 0 || !U.target.closest(".quill-better-table")) return;
8771
+ const G = U.target.closest("td[data-row]"), F = d(G.getBoundingClientRect(), f.quill.root.parentNode);
8772
8772
  f.boundary = dt(T, F), f.correctBoundary(), f.selectedTds = f.computeSelectedTds(), f.repositionHelpLines(), b !== G && f.quill.blur();
8773
8773
  }
8774
- function B(P) {
8775
- f.quill.root.removeEventListener("mousemove", C, !1), f.quill.root.removeEventListener("mouseup", B, !1), f.dragging = !1;
8774
+ function B(U) {
8775
+ f.quill.root.removeEventListener("mousemove", L, !1), f.quill.root.removeEventListener("mouseup", B, !1), f.dragging = !1;
8776
8776
  }
8777
8777
  }
8778
8778
  correctBoundary() {
8779
- a.a.find(this.table).descendants(L).forEach((b) => {
8779
+ a.a.find(this.table).descendants(S).forEach((b) => {
8780
8780
  let {
8781
8781
  x: T,
8782
- y: C,
8782
+ y: L,
8783
8783
  width: B,
8784
- height: P
8784
+ height: U
8785
8785
  } = d(b.domNode.getBoundingClientRect(), this.quill.root.parentNode);
8786
- (T + ht >= this.boundary.x && T + ht <= this.boundary.x1 || T - ht + B >= this.boundary.x && T - ht + B <= this.boundary.x1) && (C + ht >= this.boundary.y && C + ht <= this.boundary.y1 || C - ht + P >= this.boundary.y && C - ht + P <= this.boundary.y1) && (this.boundary = dt(this.boundary, {
8786
+ (T + ht >= this.boundary.x && T + ht <= this.boundary.x1 || T - ht + B >= this.boundary.x && T - ht + B <= this.boundary.x1) && (L + ht >= this.boundary.y && L + ht <= this.boundary.y1 || L - ht + U >= this.boundary.y && L - ht + U <= this.boundary.y1) && (this.boundary = dt(this.boundary, {
8787
8787
  x: T,
8788
- y: C,
8788
+ y: L,
8789
8789
  width: B,
8790
- height: P
8790
+ height: U
8791
8791
  }));
8792
8792
  });
8793
8793
  }
8794
8794
  computeSelectedTds() {
8795
- return a.a.find(this.table).descendants(L).reduce((b, T) => {
8795
+ return a.a.find(this.table).descendants(S).reduce((b, T) => {
8796
8796
  let {
8797
- x: C,
8797
+ x: L,
8798
8798
  y: B,
8799
- width: P,
8799
+ width: U,
8800
8800
  height: G
8801
8801
  } = d(T.domNode.getBoundingClientRect(), this.quill.root.parentNode);
8802
- return C + ht >= this.boundary.x && C - ht + P <= this.boundary.x1 && B + ht >= this.boundary.y && B - ht + G <= this.boundary.y1 && b.push(T), b;
8802
+ return L + ht >= this.boundary.x && L - ht + U <= this.boundary.x1 && B + ht >= this.boundary.y && B - ht + G <= this.boundary.y1 && b.push(T), b;
8803
8803
  }, []);
8804
8804
  }
8805
8805
  repositionHelpLines() {
@@ -8853,14 +8853,14 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8853
8853
  }
8854
8854
  }
8855
8855
  function dt(k, c) {
8856
- let f = Math.min(k.x, c.x, k.x + k.width - 1, c.x + c.width - 1), b = Math.max(k.x, c.x, k.x + k.width - 1, c.x + c.width - 1), T = Math.min(k.y, c.y, k.y + k.height - 1, c.y + c.height - 1), C = Math.max(k.y, c.y, k.y + k.height - 1, c.y + c.height - 1), B = b - f, P = C - T;
8856
+ let f = Math.min(k.x, c.x, k.x + k.width - 1, c.x + c.width - 1), b = Math.max(k.x, c.x, k.x + k.width - 1, c.x + c.width - 1), T = Math.min(k.y, c.y, k.y + k.height - 1, c.y + c.height - 1), L = Math.max(k.y, c.y, k.y + k.height - 1, c.y + c.height - 1), B = b - f, U = L - T;
8857
8857
  return {
8858
8858
  x: f,
8859
8859
  x1: b,
8860
8860
  y: T,
8861
- y1: C,
8861
+ y1: L,
8862
8862
  width: B,
8863
- height: P
8863
+ height: U
8864
8864
  };
8865
8865
  }
8866
8866
  var gt = i(1), yt = /* @__PURE__ */ i.n(gt), mt = i(2), ct = /* @__PURE__ */ i.n(mt), Ct = i(3), kt = /* @__PURE__ */ i.n(Ct), Ae = i(4), de = /* @__PURE__ */ i.n(Ae), De = i(5), ie = /* @__PURE__ */ i.n(De), fe = i(6), Ee = /* @__PURE__ */ i.n(fe), je = i(7), Te = /* @__PURE__ */ i.n(je), jt = i(8), Pt = /* @__PURE__ */ i.n(jt), Ht = i(9), Jt = /* @__PURE__ */ i.n(Ht);
@@ -8905,11 +8905,11 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8905
8905
  text: "Merge selected cells",
8906
8906
  iconSrc: ie.a,
8907
8907
  handler() {
8908
- const k = a.a.find(this.table), c = k.rows().reduce((T, C) => {
8909
- let B = d(C.domNode.getBoundingClientRect(), this.quill.root.parentNode);
8908
+ const k = a.a.find(this.table), c = k.rows().reduce((T, L) => {
8909
+ let B = d(L.domNode.getBoundingClientRect(), this.quill.root.parentNode);
8910
8910
  return B.y > this.boundary.y - xt && B.y + B.height < this.boundary.y + this.boundary.height + xt && (T += 1), T;
8911
- }, 0), f = this.columnToolCells.reduce((T, C) => {
8912
- let B = d(C.getBoundingClientRect(), this.quill.root.parentNode);
8911
+ }, 0), f = this.columnToolCells.reduce((T, L) => {
8912
+ let B = d(L.getBoundingClientRect(), this.quill.root.parentNode);
8913
8913
  return B.x > this.boundary.x - xt && B.x + B.width < this.boundary.x + this.boundary.width + xt && (T += 1), T;
8914
8914
  }, 0), b = k.mergeCells(this.boundary, this.selectedTds, c, f, this.quill.root.parentNode);
8915
8915
  this.quill.update(a.a.sources.USER), this.tableSelection.setSelection(b.domNode.getBoundingClientRect(), b.domNode.getBoundingClientRect());
@@ -8971,30 +8971,30 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
8971
8971
  "min-height": "".concat(le, "px"),
8972
8972
  width: "".concat(St, "px")
8973
8973
  });
8974
- for (let P in this.menuItems)
8975
- this.menuItems[P] && (this.domNode.appendChild(this.menuItemCreator(Object.assign({}, Pe[P], this.menuItems[P]))), ["insertRowDown", "unmergeCells"].indexOf(P) > -1 && this.domNode.appendChild(C()));
8976
- this.options.color && this.options.color !== !1 && (this.domNode.appendChild(C()), this.domNode.appendChild(B(this.colorSubTitle)), this.domNode.appendChild(this.colorsItemCreator(this.cellColors)));
8977
- function C() {
8978
- const P = document.createElement("div");
8979
- return P.classList.add("qlbt-operation-menu-dividing"), P;
8974
+ for (let U in this.menuItems)
8975
+ this.menuItems[U] && (this.domNode.appendChild(this.menuItemCreator(Object.assign({}, Pe[U], this.menuItems[U]))), ["insertRowDown", "unmergeCells"].indexOf(U) > -1 && this.domNode.appendChild(L()));
8976
+ this.options.color && this.options.color !== !1 && (this.domNode.appendChild(L()), this.domNode.appendChild(B(this.colorSubTitle)), this.domNode.appendChild(this.colorsItemCreator(this.cellColors)));
8977
+ function L() {
8978
+ const U = document.createElement("div");
8979
+ return U.classList.add("qlbt-operation-menu-dividing"), U;
8980
8980
  }
8981
- function B(P) {
8981
+ function B(U) {
8982
8982
  const G = document.createElement("div");
8983
- return G.classList.add("qlbt-operation-menu-subtitle"), G.innerText = P, G;
8983
+ return G.classList.add("qlbt-operation-menu-subtitle"), G.innerText = U, G;
8984
8984
  }
8985
8985
  }
8986
8986
  colorsItemCreator(c) {
8987
8987
  const f = this, b = document.createElement("div");
8988
- b.classList.add("qlbt-operation-color-picker"), c.forEach((C) => {
8989
- let B = T(C);
8988
+ b.classList.add("qlbt-operation-color-picker"), c.forEach((L) => {
8989
+ let B = T(L);
8990
8990
  b.appendChild(B);
8991
8991
  });
8992
- function T(C) {
8992
+ function T(L) {
8993
8993
  const B = document.createElement("div");
8994
- return B.classList.add("qlbt-operation-color-picker-item"), B.setAttribute("data-color", C), B.style.backgroundColor = C, B.addEventListener("click", function() {
8995
- const P = f.tableSelection.selectedTds;
8996
- P && P.length > 0 && P.forEach((G) => {
8997
- G.format("cell-bg", C);
8994
+ return B.classList.add("qlbt-operation-color-picker-item"), B.setAttribute("data-color", L), B.style.backgroundColor = L, B.addEventListener("click", function() {
8995
+ const U = f.tableSelection.selectedTds;
8996
+ U && U.length > 0 && U.forEach((G) => {
8997
+ G.format("cell-bg", L);
8998
8998
  });
8999
8999
  }, !1), B;
9000
9000
  }
@@ -9006,33 +9006,33 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9006
9006
  iconSrc: b,
9007
9007
  handler: T
9008
9008
  } = c;
9009
- const C = document.createElement("div");
9010
- C.classList.add("qlbt-operation-menu-item");
9009
+ const L = document.createElement("div");
9010
+ L.classList.add("qlbt-operation-menu-item");
9011
9011
  const B = document.createElement("span");
9012
9012
  B.classList.add("qlbt-operation-menu-icon"), B.innerHTML = b;
9013
- const P = document.createElement("span");
9014
- return P.classList.add("qlbt-operation-menu-text"), P.innerText = f, C.appendChild(B), C.appendChild(P), C.addEventListener("click", T.bind(this), !1), C;
9013
+ const U = document.createElement("span");
9014
+ return U.classList.add("qlbt-operation-menu-text"), U.innerText = f, L.appendChild(B), L.appendChild(U), L.addEventListener("click", T.bind(this), !1), L;
9015
9015
  }
9016
9016
  }
9017
9017
  function te(k, c, f, b) {
9018
- return k.reduce((T, C) => {
9019
- let B = d(C.getBoundingClientRect(), b);
9020
- return f(B, c) && (T = k.indexOf(C)), T;
9018
+ return k.reduce((T, L) => {
9019
+ let B = d(L.getBoundingClientRect(), b);
9020
+ return f(B, c) && (T = k.indexOf(L)), T;
9021
9021
  }, !1);
9022
9022
  }
9023
9023
  function Ce(k, c, f, b) {
9024
- return k.reduce((T, C) => {
9025
- let B = d(C.getBoundingClientRect(), b);
9026
- return f(B, c) && T.push(k.indexOf(C)), T;
9024
+ return k.reduce((T, L) => {
9025
+ let B = d(L.getBoundingClientRect(), b);
9026
+ return f(B, c) && T.push(k.indexOf(L)), T;
9027
9027
  }, []);
9028
9028
  }
9029
9029
  const Ot = a.a.import("delta");
9030
9030
  function re(k, c, f) {
9031
- const b = k.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, C = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("td")), P = C.indexOf(b) + 1, G = B.indexOf(k) + 1, F = k.getAttribute("colspan") || !1, Y = k.getAttribute("rowspan") || !1, it = k.getAttribute("data-cell-bg") || k.style.backgroundColor;
9031
+ const b = k.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, L = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("td")), U = L.indexOf(b) + 1, G = B.indexOf(k) + 1, F = k.getAttribute("colspan") || !1, Y = k.getAttribute("rowspan") || !1, it = k.getAttribute("data-cell-bg") || k.style.backgroundColor;
9032
9032
  return c.length() === 0 ? (c = new Ot().insert(`
9033
9033
  `, {
9034
9034
  "table-cell-line": {
9035
- row: P,
9035
+ row: U,
9036
9036
  cell: G,
9037
9037
  rowspan: Y,
9038
9038
  colspan: F
@@ -9056,10 +9056,10 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9056
9056
  return ot;
9057
9057
  }, new Ot()), c.reduce((ot, Q) => (Q.insert && typeof Q.insert == "string" && Q.insert.startsWith(`
9058
9058
  `) ? ot.insert(Q.insert, Object.assign({}, Object.assign({}, {
9059
- row: P
9059
+ row: U
9060
9060
  }, Q.attributes.table), {
9061
9061
  "table-cell-line": {
9062
- row: P,
9062
+ row: U,
9063
9063
  cell: G,
9064
9064
  rowspan: Y,
9065
9065
  colspan: F,
@@ -9068,11 +9068,11 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9068
9068
  }, y(Q.attributes, ["table"]))) : Q.attributes && Q.attributes.background && Q.attributes.background === p(it) ? ot.insert(Q.insert, Object.assign({}, y(Q.attributes, ["table", "table-cell-line", "background"]))) : ot.insert(Q.insert, Object.assign({}, y(Q.attributes, ["table", "table-cell-line"]))), ot), new Ot()));
9069
9069
  }
9070
9070
  function Ft(k, c, f) {
9071
- const b = k.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, C = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("th")), P = C.indexOf(b) + 1, G = B.indexOf(k) + 1, F = k.getAttribute("colspan") || !1, Y = k.getAttribute("rowspan") || !1;
9071
+ const b = k.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, L = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("th")), U = L.indexOf(b) + 1, G = B.indexOf(k) + 1, F = k.getAttribute("colspan") || !1, Y = k.getAttribute("rowspan") || !1;
9072
9072
  return c.length() === 0 ? (c = new Ot().insert(`
9073
9073
  `, {
9074
9074
  "table-cell-line": {
9075
- row: P,
9075
+ row: U,
9076
9076
  cell: G,
9077
9077
  rowspan: Y,
9078
9078
  colspan: F
@@ -9093,7 +9093,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9093
9093
  ` ? it.insert(`
9094
9094
  `, {
9095
9095
  "table-cell-line": {
9096
- row: P,
9096
+ row: U,
9097
9097
  cell: G,
9098
9098
  rowspan: Y,
9099
9099
  colspan: F
@@ -9106,7 +9106,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9106
9106
  }, new Ot()), c.reduce((it, ot) => (ot.insert && typeof ot.insert == "string" && ot.insert.startsWith(`
9107
9107
  `) ? it.insert(ot.insert, Object.assign({}, {
9108
9108
  "table-cell-line": {
9109
- row: P,
9109
+ row: U,
9110
9110
  cell: G,
9111
9111
  rowspan: Y,
9112
9112
  colspan: F
@@ -9120,30 +9120,30 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9120
9120
  const B = Array.from(T.querySelectorAll("td")).concat(Array.from(T.querySelectorAll("th"))).reduce((G, F) => {
9121
9121
  const Y = F.getAttribute("colspan") || 1;
9122
9122
  return G = G + parseInt(Y, 10), G;
9123
- }, 0), P = k.querySelectorAll("col").length;
9124
- if (P === B)
9123
+ }, 0), U = k.querySelectorAll("col").length;
9124
+ if (U === B)
9125
9125
  return c;
9126
9126
  {
9127
- for (let F = 0; F < B - P; F++)
9127
+ for (let F = 0; F < B - U; F++)
9128
9128
  b.insert(`
9129
9129
  `, {
9130
9130
  "table-col": !0
9131
9131
  });
9132
- if (P === 0) return b.concat(c);
9132
+ if (U === 0) return b.concat(c);
9133
9133
  let G = 0;
9134
- return c.reduce((F, Y) => (F.insert(Y.insert, Y.attributes), Y.attributes && Y.attributes["table-col"] && (G += Y.insert.length, G === P && (F = F.concat(b))), F), new Ot());
9134
+ return c.reduce((F, Y) => (F.insert(Y.insert, Y.attributes), Y.attributes && Y.attributes["table-col"] && (G += Y.insert.length, G === U && (F = F.concat(b))), F), new Ot());
9135
9135
  }
9136
9136
  }
9137
9137
  const dn = a.a.import("core/module"), Ue = a.a.import("delta");
9138
9138
  class Qe extends dn {
9139
9139
  static register() {
9140
- a.a.register(z, !0), a.a.register(N, !0), a.a.register(U, !0), a.a.register(L, !0), a.a.register($, !0), a.a.register(H, !0), a.a.register(_, !0), a.a.register(S, !0), a.a.register(S, !0);
9140
+ a.a.register(z, !0), a.a.register(N, !0), a.a.register(P, !0), a.a.register(S, !0), a.a.register($, !0), a.a.register(H, !0), a.a.register(_, !0), a.a.register(O, !0), a.a.register(O, !0);
9141
9141
  }
9142
9142
  constructor(c, f) {
9143
9143
  super(c, f), this.quill.root.addEventListener("click", (T) => {
9144
- const C = E(T);
9145
- if (!C || C.length <= 0) return;
9146
- const B = C.filter((P) => P.tagName && P.tagName.toUpperCase() === "TABLE" && P.classList.contains("quill-better-table"))[0];
9144
+ const L = E(T);
9145
+ if (!L || L.length <= 0) return;
9146
+ const B = L.filter((U) => U.tagName && U.tagName.toUpperCase() === "TABLE" && U.classList.contains("quill-better-table"))[0];
9147
9147
  if (B) {
9148
9148
  if (this.table === B) return;
9149
9149
  this.table && this.hideTableTools(), this.showTableTools(B, c, f);
@@ -9151,25 +9151,25 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9151
9151
  }, !1), this.quill.root.addEventListener("contextmenu", (T) => {
9152
9152
  if (!this.table) return !0;
9153
9153
  T.preventDefault();
9154
- const C = E(T);
9155
- if (!C || C.length <= 0) return;
9156
- const B = C.filter((Y) => Y.tagName && Y.tagName.toUpperCase() === "TABLE" && Y.classList.contains("quill-better-table"))[0], P = C.filter((Y) => Y.tagName && Y.tagName.toUpperCase() === "TR" && Y.getAttribute("data-row"))[0], G = C.filter((Y) => Y.tagName && Y.tagName.toUpperCase() === "TD" && Y.getAttribute("data-row"))[0];
9154
+ const L = E(T);
9155
+ if (!L || L.length <= 0) return;
9156
+ const B = L.filter((Y) => Y.tagName && Y.tagName.toUpperCase() === "TABLE" && Y.classList.contains("quill-better-table"))[0], U = L.filter((Y) => Y.tagName && Y.tagName.toUpperCase() === "TR" && Y.getAttribute("data-row"))[0], G = L.filter((Y) => Y.tagName && Y.tagName.toUpperCase() === "TD" && Y.getAttribute("data-row"))[0];
9157
9157
  let F = this.tableSelection.selectedTds.map((Y) => Y.domNode).includes(G);
9158
9158
  (this.tableSelection.selectedTds.length <= 0 || !F) && this.tableSelection.setSelection(G.getBoundingClientRect(), G.getBoundingClientRect()), this.tableOperationMenu && (this.tableOperationMenu = this.tableOperationMenu.destroy()), B && (this.tableOperationMenu = new Xt({
9159
9159
  table: B,
9160
- row: P,
9160
+ row: U,
9161
9161
  cell: G,
9162
9162
  left: T.pageX,
9163
9163
  top: T.pageY
9164
9164
  }, c, f.operationMenu));
9165
9165
  }, !1), c.getModule("keyboard"), c.keyboard.addBinding({
9166
9166
  key: "Backspace"
9167
- }, {}, function(T, C) {
9167
+ }, {}, function(T, L) {
9168
9168
  if (T.index === 0 || this.quill.getLength() <= 1) return !0;
9169
9169
  const [B] = this.quill.getLine(T.index);
9170
- if (C.offset === 0) {
9171
- const [P] = this.quill.getLine(T.index - 1);
9172
- if (P != null && P.statics.blotName === "table-cell-line" && B.statics.blotName !== "table-cell-line")
9170
+ if (L.offset === 0) {
9171
+ const [U] = this.quill.getLine(T.index - 1);
9172
+ if (U != null && U.statics.blotName === "table-cell-line" && B.statics.blotName !== "table-cell-line")
9173
9173
  return !1;
9174
9174
  }
9175
9175
  return !0;
@@ -9181,33 +9181,33 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9181
9181
  let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.quill.getSelection();
9182
9182
  if (c == null) return [null, null, null, -1];
9183
9183
  const [f, b] = this.quill.getLine(c.index);
9184
- if (f == null || f.statics.blotName !== U.blotName)
9184
+ if (f == null || f.statics.blotName !== P.blotName)
9185
9185
  return [null, null, null, -1];
9186
- const T = f.tableCell(), C = T.row();
9187
- return [C.table(), C, T, b];
9186
+ const T = f.tableCell(), L = T.row();
9187
+ return [L.table(), L, T, b];
9188
9188
  }
9189
9189
  insertTable(c, f) {
9190
9190
  const b = this.quill.getSelection(!0);
9191
9191
  if (b == null) return;
9192
- let T = this.quill.getLeaf(b.index)[0], C = new Ue().retain(b.index);
9192
+ let T = this.quill.getLeaf(b.index)[0], L = new Ue().retain(b.index);
9193
9193
  if (Je(T)) {
9194
9194
  console.warn("Can not insert table into a table cell.");
9195
9195
  return;
9196
9196
  }
9197
- C.insert(`
9198
- `), C = new Array(f).fill(`
9199
- `).reduce((B, P) => (B.insert(P, {
9197
+ L.insert(`
9198
+ `), L = new Array(f).fill(`
9199
+ `).reduce((B, U) => (B.insert(U, {
9200
9200
  "table-col": !0
9201
- }), B), C), C = new Array(c).fill(0).reduce((B) => {
9202
- let P = V();
9201
+ }), B), L), L = new Array(c).fill(0).reduce((B) => {
9202
+ let U = V();
9203
9203
  return new Array(f).fill(`
9204
9204
  `).reduce((G, F) => (G.insert(F, {
9205
9205
  "table-cell-line": {
9206
- row: P,
9206
+ row: U,
9207
9207
  cell: W()
9208
9208
  }
9209
9209
  }), G), B);
9210
- }, C), this.quill.updateContents(C, a.a.sources.USER), this.quill.setSelection(b.index + f + 1, a.a.sources.API);
9210
+ }, L), this.quill.updateContents(L, a.a.sources.USER), this.quill.setSelection(b.index + f + 1, a.a.sources.API);
9211
9211
  }
9212
9212
  showTableTools(c, f, b) {
9213
9213
  this.table = c, this.columnTool = new j(c, f, b), this.tableSelection = new lt(c, f, b);
@@ -9243,7 +9243,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9243
9243
  if (this.quill.selection && this.quill.selection.composing) return;
9244
9244
  const f = a.a.imports.parchment.Scope;
9245
9245
  k.length > 0 && this.quill.scroll.deleteAt(k.index, k.length);
9246
- const b = Object.keys(c.format).reduce((T, C) => (this.quill.scroll.query(C, f.BLOCK) && !Array.isArray(c.format[C]) && (T[C] = c.format[C]), T), {});
9246
+ const b = Object.keys(c.format).reduce((T, L) => (this.quill.scroll.query(L, f.BLOCK) && !Array.isArray(c.format[L]) && (T[L] = c.format[L]), T), {});
9247
9247
  this.quill.insertText(k.index, `
9248
9248
  `, b["table-cell-line"], a.a.sources.USER), this.quill.setSelection(k.index + 1, a.a.sources.SILENT), this.quill.focus(), Object.keys(c.format).forEach((T) => {
9249
9249
  b[T] == null && (Array.isArray(c.format[T]) || T !== "link" && this.quill.format(T, c.format[T], a.a.sources.USER));
@@ -9270,8 +9270,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9270
9270
  handler(k, c) {
9271
9271
  const f = c.line.prev;
9272
9272
  if (f && f.statics.blotName === "table-view") {
9273
- const b = f.table().rows(), C = b[b.length - 1].children.head.children.head;
9274
- return this.quill.setSelection(C.offset(this.quill.scroll), 0, a.a.sources.USER), !1;
9273
+ const b = f.table().rows(), L = b[b.length - 1].children.head.children.head;
9274
+ return this.quill.setSelection(L.offset(this.quill.scroll), 0, a.a.sources.USER), !1;
9275
9275
  }
9276
9276
  return !0;
9277
9277
  }
@@ -9285,25 +9285,25 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9285
9285
  handler(c, f) {
9286
9286
  const b = k ? "prev" : "next";
9287
9287
  if (f.line[b] != null) return !0;
9288
- const C = f.line.parent, B = C.parent[b];
9288
+ const L = f.line.parent, B = L.parent[b];
9289
9289
  if (B != null && B.statics.blotName === "table-row") {
9290
- let P = B.children.head, G = parseInt(P.formats().colspan, 10), F = C, Y = parseInt(F.formats().colspan, 10);
9290
+ let U = B.children.head, G = parseInt(U.formats().colspan, 10), F = L, Y = parseInt(F.formats().colspan, 10);
9291
9291
  for (; F.prev != null; )
9292
9292
  F = F.prev, Y += parseInt(F.formats().colspan, 10);
9293
- for (; P.next != null && G < Y; )
9294
- P = P.next, G += parseInt(P.formats().colspan, 10);
9295
- const it = P.offset(this.quill.scroll);
9293
+ for (; U.next != null && G < Y; )
9294
+ U = U.next, G += parseInt(U.formats().colspan, 10);
9295
+ const it = U.offset(this.quill.scroll);
9296
9296
  this.quill.setSelection(it, 0, a.a.sources.USER);
9297
9297
  } else {
9298
- const P = C.table().parent[b];
9299
- P != null && (k ? this.quill.setSelection(P.offset(this.quill.scroll) + P.length() - 1, 0, a.a.sources.USER) : this.quill.setSelection(P.offset(this.quill.scroll), 0, a.a.sources.USER));
9298
+ const U = L.table().parent[b];
9299
+ U != null && (k ? this.quill.setSelection(U.offset(this.quill.scroll) + U.length() - 1, 0, a.a.sources.USER) : this.quill.setSelection(U.offset(this.quill.scroll), 0, a.a.sources.USER));
9300
9300
  }
9301
9301
  return !1;
9302
9302
  }
9303
9303
  };
9304
9304
  }
9305
9305
  function fn(k) {
9306
- return k.statics.blotName === L.blotName;
9306
+ return k.statics.blotName === S.blotName;
9307
9307
  }
9308
9308
  function Je(k) {
9309
9309
  return k && k.parent ? fn(k.parent) ? !0 : Je(k.parent) : !1;
@@ -9323,10 +9323,14 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
9323
9323
  }(Ps)), Ps.exports;
9324
9324
  }
9325
9325
  var z1 = H1();
9326
- const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
9326
+ const Bl = /* @__PURE__ */ yi(z1), F1 = R.import("delta"), Q1 = Ko({
9327
9327
  name: "QuillEditor",
9328
9328
  inheritAttrs: !1,
9329
9329
  props: {
9330
+ isTextOnly: {
9331
+ type: Boolean,
9332
+ default: !1
9333
+ },
9330
9334
  content: {
9331
9335
  type: [String, Object]
9332
9336
  },
@@ -9387,9 +9391,9 @@ const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
9387
9391
  });
9388
9392
  let e, n;
9389
9393
  const s = qi(), i = (x, v) => {
9390
- M != null && M.imports && x in M.imports || M.register(x, v);
9394
+ R != null && R.imports && x in R.imports || R.register(x, v);
9391
9395
  };
9392
- M.register(
9396
+ R.register(
9393
9397
  {
9394
9398
  "modules/better-table": Bl
9395
9399
  },
@@ -9397,33 +9401,46 @@ const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
9397
9401
  );
9398
9402
  const o = () => {
9399
9403
  var x;
9400
- if (s.value) {
9401
- if (n = a(), r.modules)
9402
- if (Array.isArray(r.modules))
9403
- for (const v of r.modules)
9404
- i(`modules/${v.name}`, v.module);
9405
- else
9406
- i(`modules/${r.modules.name}`, r.modules.module);
9407
- e = new M(s.value, n), rt(r.content), e.on("text-change", p), e.on("selection-change", A), e.on("editor-change", q), r.theme !== "bubble" && s.value.classList.remove("ql-bubble"), r.theme !== "snow" && s.value.classList.remove("ql-snow"), (x = e.getModule("toolbar")) === null || x === void 0 || x.container.addEventListener("mousedown", (v) => {
9408
- ["picker-hue-range-slider", "picker-opacity-slider"].includes(
9409
- v.target.getAttribute("class")
9410
- ) || v.target.tagName === "INPUT" || v.preventDefault();
9411
- }), t.emit("ready", e);
9404
+ if (!s.value) return;
9405
+ if (n = a(), r.modules)
9406
+ if (Array.isArray(r.modules))
9407
+ for (const C of r.modules)
9408
+ i(`modules/${C.name}`, C.module);
9409
+ else
9410
+ i(`modules/${r.modules.name}`, r.modules.module);
9411
+ e = new R(s.value, n), rt(r.content), e.on("text-change", p), e.on("selection-change", A), e.on("editor-change", q), r.theme !== "bubble" && s.value.classList.remove("ql-bubble"), r.theme !== "snow" && s.value.classList.remove("ql-snow"), (x = e.getModule("toolbar")) === null || x === void 0 || x.container.addEventListener("mousedown", (C) => {
9412
+ ["picker-hue-range-slider", "picker-opacity-slider"].includes(
9413
+ C.target.getAttribute("class")
9414
+ ) || C.target.tagName === "INPUT" || C.preventDefault();
9415
+ }), t.emit("ready", e);
9416
+ function v() {
9417
+ e.root.querySelectorAll("img").forEach((S) => {
9418
+ const $ = S.getAttribute("src");
9419
+ if ($ && ($.startsWith("data:image/") || r.isTextOnly)) {
9420
+ const H = R.find(S);
9421
+ H ? H.deleteAt(0) : S.remove();
9422
+ }
9423
+ });
9412
9424
  }
9425
+ e.root.addEventListener("paste", function() {
9426
+ setTimeout(() => {
9427
+ v();
9428
+ }, 10);
9429
+ });
9413
9430
  }, a = () => {
9414
9431
  const x = {};
9415
9432
  if (r.theme !== "" && (x.theme = r.theme), r.readOnly && (x.readOnly = r.readOnly), r.placeholder && (x.placeholder = r.placeholder), r.id && r.id !== "" && (x.modules = {
9416
9433
  toolbar: r.id
9417
9434
  }), r.modules) {
9418
9435
  const v = (() => {
9419
- var O, U;
9420
- const L = {};
9436
+ var C, P;
9437
+ const S = {};
9421
9438
  if (Array.isArray(r.modules))
9422
9439
  for (const $ of r.modules)
9423
- L[$.name] = (O = $.options) !== null && O !== void 0 ? O : {};
9440
+ S[$.name] = (C = $.options) !== null && C !== void 0 ? C : {};
9424
9441
  else
9425
- L[r.modules.name] = (U = r.modules.options) !== null && U !== void 0 ? U : {};
9426
- return L;
9442
+ S[r.modules.name] = (P = r.modules.options) !== null && P !== void 0 ? P : {};
9443
+ return S;
9427
9444
  })();
9428
9445
  x.modules = Object.assign({}, x.modules, v);
9429
9446
  }
@@ -9454,13 +9471,13 @@ const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
9454
9471
  return !d(y.diff(x));
9455
9472
  }
9456
9473
  return !1;
9457
- }, p = (x, v, O) => {
9458
- y = h(Z()), E(r.content) || t.emit("update:content", y), t.emit("textChange", { delta: x, oldContents: v, source: O });
9459
- }, w = qi(), A = (x, v, O) => {
9460
- w.value = !!(e != null && e.hasFocus()), t.emit("selectionChange", { range: x, oldRange: v, source: O });
9474
+ }, p = (x, v, C) => {
9475
+ y = h(Z()), E(r.content) || t.emit("update:content", y), t.emit("textChange", { delta: x, oldContents: v, source: C });
9476
+ }, w = qi(), A = (x, v, C) => {
9477
+ w.value = !!(e != null && e.hasFocus()), t.emit("selectionChange", { range: x, oldRange: v, source: C });
9461
9478
  };
9462
9479
  Es(w, (x) => {
9463
- x ? t.emit("focus", s) : t.emit("blur", s);
9480
+ x ? t.emit("focus", s.value) : t.emit("blur", s.value);
9464
9481
  });
9465
9482
  const q = (...x) => {
9466
9483
  x[0] === "text-change" && t.emit("editorChange", {
@@ -9483,11 +9500,11 @@ const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
9483
9500
  make sure to call this method when the editor ready
9484
9501
  or use v-on:ready="onReady(quill)" event instead.`;
9485
9502
  }, Z = (x, v) => r.contentType === "html" ? At() : r.contentType === "text" ? nt(x, v) : e == null ? void 0 : e.getContents(x, v), rt = (x, v = "api") => {
9486
- const O = x || (r.contentType === "delta" ? new F1() : "");
9487
- r.contentType === "html" ? vt(O) : r.contentType === "text" ? bt(O, v) : e == null || e.setContents(O, v), y = h(O);
9503
+ const C = x || (r.contentType === "delta" ? new F1() : "");
9504
+ r.contentType === "html" ? vt(C) : r.contentType === "text" ? bt(C, v) : e == null || e.setContents(C, v), y = h(C);
9488
9505
  }, nt = (x, v) => {
9489
- var O;
9490
- return (O = e == null ? void 0 : e.getText(x, v)) !== null && O !== void 0 ? O : "";
9506
+ var C;
9507
+ return (C = e == null ? void 0 : e.getText(x, v)) !== null && C !== void 0 ? C : "";
9491
9508
  }, bt = (x, v = "api") => {
9492
9509
  e == null || e.setText(x, v);
9493
9510
  }, At = () => {
@@ -9496,8 +9513,8 @@ const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
9496
9513
  }, vt = (x) => {
9497
9514
  e && (e.root.innerHTML = x);
9498
9515
  }, Mt = (x, v = "api") => {
9499
- const O = e == null ? void 0 : e.clipboard.convert(x);
9500
- O && (e == null || e.setContents(O, v));
9516
+ const C = e == null ? void 0 : e.clipboard.convert(x);
9517
+ C && (e == null || e.setContents(C, v));
9501
9518
  }, Lt = () => {
9502
9519
  e == null || e.focus();
9503
9520
  }, g = () => {
@@ -9546,7 +9563,7 @@ const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
9546
9563
  }
9547
9564
  });
9548
9565
  export {
9549
- M as Q,
9566
+ R as Q,
9550
9567
  Q1 as a,
9551
9568
  yi as g
9552
9569
  };