@orchidui/dashboard 1.87.0 → 1.88.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.
|
@@ -672,8 +672,8 @@ function so(r, t, e, n, s, i) {
|
|
|
672
672
|
break;
|
|
673
673
|
}
|
|
674
674
|
if (w) {
|
|
675
|
-
if (!Ph(t, function(
|
|
676
|
-
if (!Uh(w, K) && (A ===
|
|
675
|
+
if (!Ph(t, function(P, K) {
|
|
676
|
+
if (!Uh(w, K) && (A === P || s(A, P, e, n, i)))
|
|
677
677
|
return w.push(K);
|
|
678
678
|
})) {
|
|
679
679
|
p = !1;
|
|
@@ -751,10 +751,10 @@ function ad(r, t, e, n, s, i) {
|
|
|
751
751
|
i.set(r, t), i.set(t, r);
|
|
752
752
|
for (var D = o; ++E < h; ) {
|
|
753
753
|
p = a[E];
|
|
754
|
-
var
|
|
754
|
+
var P = r[p], K = t[p];
|
|
755
755
|
if (n)
|
|
756
|
-
var Z = o ? n(K,
|
|
757
|
-
if (!(Z === void 0 ?
|
|
756
|
+
var Z = o ? n(K, P, p, t, r, i) : n(P, K, p, r, t, i);
|
|
757
|
+
if (!(Z === void 0 ? P === K || s(P, K, e, n, i) : Z)) {
|
|
758
758
|
q = !1;
|
|
759
759
|
break;
|
|
760
760
|
}
|
|
@@ -1693,7 +1693,7 @@ function Id() {
|
|
|
1693
1693
|
if (il) return Os;
|
|
1694
1694
|
il = 1;
|
|
1695
1695
|
var r = -1, t = 1, e = 0;
|
|
1696
|
-
function n(g, x, v,
|
|
1696
|
+
function n(g, x, v, O, j) {
|
|
1697
1697
|
if (g === x)
|
|
1698
1698
|
return g ? [[e, g]] : [];
|
|
1699
1699
|
if (v != null) {
|
|
@@ -1706,7 +1706,7 @@ function Id() {
|
|
|
1706
1706
|
var z = g.substring(g.length - $);
|
|
1707
1707
|
g = g.substring(0, g.length - $), x = x.substring(0, x.length - $);
|
|
1708
1708
|
var N = s(g, x);
|
|
1709
|
-
return H && N.unshift([e, H]), z && N.push([e, z]), K(N,
|
|
1709
|
+
return H && N.unshift([e, H]), z && N.push([e, z]), K(N, j), O && E(N), N;
|
|
1710
1710
|
}
|
|
1711
1711
|
function s(g, x) {
|
|
1712
1712
|
var v;
|
|
@@ -1714,40 +1714,40 @@ function Id() {
|
|
|
1714
1714
|
return [[t, x]];
|
|
1715
1715
|
if (!x)
|
|
1716
1716
|
return [[r, g]];
|
|
1717
|
-
var
|
|
1717
|
+
var O = g.length > x.length ? g : x, j = g.length > x.length ? x : g, S = O.indexOf(j);
|
|
1718
1718
|
if (S !== -1)
|
|
1719
1719
|
return v = [
|
|
1720
|
-
[t,
|
|
1721
|
-
[e,
|
|
1722
|
-
[t,
|
|
1720
|
+
[t, O.substring(0, S)],
|
|
1721
|
+
[e, j],
|
|
1722
|
+
[t, O.substring(S + j.length)]
|
|
1723
1723
|
], g.length > x.length && (v[0][0] = v[2][0] = r), v;
|
|
1724
|
-
if (
|
|
1724
|
+
if (j.length === 1)
|
|
1725
1725
|
return [
|
|
1726
1726
|
[r, g],
|
|
1727
1727
|
[t, x]
|
|
1728
1728
|
];
|
|
1729
1729
|
var $ = y(g, x);
|
|
1730
1730
|
if ($) {
|
|
1731
|
-
var H = $[0], z = $[1], N = $[2], _ = $[3],
|
|
1732
|
-
return V.concat([[e,
|
|
1731
|
+
var H = $[0], z = $[1], N = $[2], _ = $[3], L = $[4], V = n(H, N), W = n(z, _);
|
|
1732
|
+
return V.concat([[e, L]], W);
|
|
1733
1733
|
}
|
|
1734
1734
|
return i(g, x);
|
|
1735
1735
|
}
|
|
1736
1736
|
function i(g, x) {
|
|
1737
|
-
for (var v = g.length,
|
|
1737
|
+
for (var v = g.length, O = x.length, j = Math.ceil((v + O) / 2), S = j, $ = 2 * j, H = new Array($), z = new Array($), N = 0; N < $; N++)
|
|
1738
1738
|
H[N] = -1, z[N] = -1;
|
|
1739
1739
|
H[S + 1] = 0, z[S + 1] = 0;
|
|
1740
|
-
for (var _ = v -
|
|
1740
|
+
for (var _ = v - O, L = _ % 2 !== 0, V = 0, W = 0, k = 0, pt = 0, ht = 0; ht < j; ht++) {
|
|
1741
1741
|
for (var lt = -ht + V; lt <= ht - W; lt += 2) {
|
|
1742
1742
|
var dt = S + lt, gt;
|
|
1743
1743
|
lt === -ht || lt !== ht && H[dt - 1] < H[dt + 1] ? gt = H[dt + 1] : gt = H[dt - 1] + 1;
|
|
1744
|
-
for (var yt = gt - lt; gt < v && yt <
|
|
1744
|
+
for (var yt = gt - lt; gt < v && yt < O && g.charAt(gt) === x.charAt(yt); )
|
|
1745
1745
|
gt++, yt++;
|
|
1746
1746
|
if (H[dt] = gt, gt > v)
|
|
1747
1747
|
W += 2;
|
|
1748
|
-
else if (yt >
|
|
1748
|
+
else if (yt > O)
|
|
1749
1749
|
V += 2;
|
|
1750
|
-
else if (
|
|
1750
|
+
else if (L) {
|
|
1751
1751
|
var mt = S + _ - lt;
|
|
1752
1752
|
if (mt >= 0 && mt < $ && z[mt] !== -1) {
|
|
1753
1753
|
var ct = v - z[mt];
|
|
@@ -1759,13 +1759,13 @@ function Id() {
|
|
|
1759
1759
|
for (var Ct = -ht + k; Ct <= ht - pt; Ct += 2) {
|
|
1760
1760
|
var mt = S + Ct, ct;
|
|
1761
1761
|
Ct === -ht || Ct !== ht && z[mt - 1] < z[mt + 1] ? ct = z[mt + 1] : ct = z[mt - 1] + 1;
|
|
1762
|
-
for (var Mt = ct - Ct; ct < v && Mt <
|
|
1762
|
+
for (var Mt = ct - Ct; ct < v && Mt < O && g.charAt(v - ct - 1) === x.charAt(O - Mt - 1); )
|
|
1763
1763
|
ct++, Mt++;
|
|
1764
1764
|
if (z[mt] = ct, ct > v)
|
|
1765
1765
|
pt += 2;
|
|
1766
|
-
else if (Mt >
|
|
1766
|
+
else if (Mt > O)
|
|
1767
1767
|
k += 2;
|
|
1768
|
-
else if (!
|
|
1768
|
+
else if (!L) {
|
|
1769
1769
|
var dt = S + _ - Ct;
|
|
1770
1770
|
if (dt >= 0 && dt < $ && H[dt] !== -1) {
|
|
1771
1771
|
var gt = H[dt], yt = S + gt - dt;
|
|
@@ -1780,44 +1780,44 @@ function Id() {
|
|
|
1780
1780
|
[t, x]
|
|
1781
1781
|
];
|
|
1782
1782
|
}
|
|
1783
|
-
function o(g, x, v,
|
|
1784
|
-
var
|
|
1783
|
+
function o(g, x, v, O) {
|
|
1784
|
+
var j = g.substring(0, v), S = x.substring(0, O), $ = g.substring(v), H = x.substring(O), z = n(j, S), N = n($, H);
|
|
1785
1785
|
return z.concat(N);
|
|
1786
1786
|
}
|
|
1787
1787
|
function a(g, x) {
|
|
1788
1788
|
if (!g || !x || g.charAt(0) !== x.charAt(0))
|
|
1789
1789
|
return 0;
|
|
1790
|
-
for (var v = 0,
|
|
1791
|
-
g.substring(S,
|
|
1792
|
-
return Z(g.charCodeAt(
|
|
1790
|
+
for (var v = 0, O = Math.min(g.length, x.length), j = O, S = 0; v < j; )
|
|
1791
|
+
g.substring(S, j) == x.substring(S, j) ? (v = j, S = v) : O = j, j = Math.floor((O - v) / 2 + v);
|
|
1792
|
+
return Z(g.charCodeAt(j - 1)) && j--, j;
|
|
1793
1793
|
}
|
|
1794
1794
|
function h(g, x) {
|
|
1795
|
-
var v = g.length,
|
|
1796
|
-
if (v == 0 ||
|
|
1795
|
+
var v = g.length, O = x.length;
|
|
1796
|
+
if (v == 0 || O == 0)
|
|
1797
1797
|
return 0;
|
|
1798
|
-
v >
|
|
1799
|
-
var
|
|
1798
|
+
v > O ? g = g.substring(v - O) : v < O && (x = x.substring(0, v));
|
|
1799
|
+
var j = Math.min(v, O);
|
|
1800
1800
|
if (g == x)
|
|
1801
|
-
return
|
|
1801
|
+
return j;
|
|
1802
1802
|
for (var S = 0, $ = 1; ; ) {
|
|
1803
|
-
var H = g.substring(
|
|
1803
|
+
var H = g.substring(j - $), z = x.indexOf(H);
|
|
1804
1804
|
if (z == -1)
|
|
1805
1805
|
return S;
|
|
1806
|
-
$ += z, (z == 0 || g.substring(
|
|
1806
|
+
$ += z, (z == 0 || g.substring(j - $) == x.substring(0, $)) && (S = $, $++);
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
1809
|
function d(g, x) {
|
|
1810
1810
|
if (!g || !x || g.slice(-1) !== x.slice(-1))
|
|
1811
1811
|
return 0;
|
|
1812
|
-
for (var v = 0,
|
|
1813
|
-
g.substring(g.length -
|
|
1814
|
-
return rt(g.charCodeAt(g.length -
|
|
1812
|
+
for (var v = 0, O = Math.min(g.length, x.length), j = O, S = 0; v < j; )
|
|
1813
|
+
g.substring(g.length - j, g.length - S) == x.substring(x.length - j, x.length - S) ? (v = j, S = v) : O = j, j = Math.floor((O - v) / 2 + v);
|
|
1814
|
+
return rt(g.charCodeAt(g.length - j)) && j--, j;
|
|
1815
1815
|
}
|
|
1816
1816
|
function y(g, x) {
|
|
1817
|
-
var v = g.length > x.length ? g : x,
|
|
1818
|
-
if (v.length < 4 ||
|
|
1817
|
+
var v = g.length > x.length ? g : x, O = g.length > x.length ? x : g;
|
|
1818
|
+
if (v.length < 4 || O.length * 2 < v.length)
|
|
1819
1819
|
return null;
|
|
1820
|
-
function
|
|
1820
|
+
function j(W, k, pt) {
|
|
1821
1821
|
for (var ht = W.substring(pt, pt + Math.floor(W.length / 4)), lt = -1, dt = "", gt, yt, mt, ct; (lt = k.indexOf(ht, lt + 1)) !== -1; ) {
|
|
1822
1822
|
var Ct = a(
|
|
1823
1823
|
W.substring(pt),
|
|
@@ -1836,51 +1836,51 @@ function Id() {
|
|
|
1836
1836
|
dt
|
|
1837
1837
|
] : null;
|
|
1838
1838
|
}
|
|
1839
|
-
var S =
|
|
1839
|
+
var S = j(
|
|
1840
1840
|
v,
|
|
1841
|
-
|
|
1841
|
+
O,
|
|
1842
1842
|
Math.ceil(v.length / 4)
|
|
1843
|
-
), $ =
|
|
1843
|
+
), $ = j(
|
|
1844
1844
|
v,
|
|
1845
|
-
|
|
1845
|
+
O,
|
|
1846
1846
|
Math.ceil(v.length / 2)
|
|
1847
1847
|
), H;
|
|
1848
1848
|
if (!S && !$)
|
|
1849
1849
|
return null;
|
|
1850
1850
|
$ ? S ? H = S[4].length > $[4].length ? S : $ : H = $ : H = S;
|
|
1851
|
-
var z, N, _,
|
|
1852
|
-
g.length > x.length ? (z = H[0], N = H[1], _ = H[2],
|
|
1851
|
+
var z, N, _, L;
|
|
1852
|
+
g.length > x.length ? (z = H[0], N = H[1], _ = H[2], L = H[3]) : (_ = H[0], L = H[1], z = H[2], N = H[3]);
|
|
1853
1853
|
var V = H[4];
|
|
1854
|
-
return [z, N, _,
|
|
1854
|
+
return [z, N, _, L, V];
|
|
1855
1855
|
}
|
|
1856
1856
|
function E(g) {
|
|
1857
|
-
for (var x = !1, v = [],
|
|
1858
|
-
g[S][0] == e ? (v[
|
|
1857
|
+
for (var x = !1, v = [], O = 0, j = null, S = 0, $ = 0, H = 0, z = 0, N = 0; S < g.length; )
|
|
1858
|
+
g[S][0] == e ? (v[O++] = S, $ = z, H = N, z = 0, N = 0, j = g[S][1]) : (g[S][0] == t ? z += g[S][1].length : N += g[S][1].length, j && j.length <= Math.max($, H) && j.length <= Math.max(z, N) && (g.splice(v[O - 1], 0, [
|
|
1859
1859
|
r,
|
|
1860
|
-
|
|
1861
|
-
]), g[v[
|
|
1862
|
-
for (x && K(g),
|
|
1860
|
+
j
|
|
1861
|
+
]), g[v[O - 1] + 1][0] = t, O--, O--, S = O > 0 ? v[O - 1] : -1, $ = 0, H = 0, z = 0, N = 0, j = null, x = !0)), S++;
|
|
1862
|
+
for (x && K(g), P(g), S = 1; S < g.length; ) {
|
|
1863
1863
|
if (g[S - 1][0] == r && g[S][0] == t) {
|
|
1864
|
-
var _ = g[S - 1][1],
|
|
1865
|
-
V >= W ? (V >= _.length / 2 || V >=
|
|
1864
|
+
var _ = g[S - 1][1], L = g[S][1], V = h(_, L), W = h(L, _);
|
|
1865
|
+
V >= W ? (V >= _.length / 2 || V >= L.length / 2) && (g.splice(S, 0, [
|
|
1866
1866
|
e,
|
|
1867
|
-
|
|
1867
|
+
L.substring(0, V)
|
|
1868
1868
|
]), g[S - 1][1] = _.substring(
|
|
1869
1869
|
0,
|
|
1870
1870
|
_.length - V
|
|
1871
|
-
), g[S + 1][1] =
|
|
1871
|
+
), g[S + 1][1] = L.substring(V), S++) : (W >= _.length / 2 || W >= L.length / 2) && (g.splice(S, 0, [
|
|
1872
1872
|
e,
|
|
1873
1873
|
_.substring(0, W)
|
|
1874
|
-
]), g[S - 1][0] = t, g[S - 1][1] =
|
|
1874
|
+
]), g[S - 1][0] = t, g[S - 1][1] = L.substring(
|
|
1875
1875
|
0,
|
|
1876
|
-
|
|
1876
|
+
L.length - W
|
|
1877
1877
|
), g[S + 1][0] = r, g[S + 1][1] = _.substring(W), S++), S++;
|
|
1878
1878
|
}
|
|
1879
1879
|
S++;
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
1882
|
var p = /[^a-zA-Z0-9]/, w = /\s/, A = /[\r\n]/, q = /\n\r?\n$/, D = /^\r?\n\r?\n/;
|
|
1883
|
-
function
|
|
1883
|
+
function P(g) {
|
|
1884
1884
|
function x(W, k) {
|
|
1885
1885
|
if (!W || !k)
|
|
1886
1886
|
return 6;
|
|
@@ -1889,15 +1889,15 @@ function Id() {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
for (var v = 1; v < g.length - 1; ) {
|
|
1891
1891
|
if (g[v - 1][0] == e && g[v + 1][0] == e) {
|
|
1892
|
-
var
|
|
1892
|
+
var O = g[v - 1][1], j = g[v][1], S = g[v + 1][1], $ = d(O, j);
|
|
1893
1893
|
if ($) {
|
|
1894
|
-
var H =
|
|
1895
|
-
|
|
1894
|
+
var H = j.substring(j.length - $);
|
|
1895
|
+
O = O.substring(0, O.length - $), j = H + j.substring(0, j.length - $), S = H + S;
|
|
1896
1896
|
}
|
|
1897
|
-
for (var z =
|
|
1898
|
-
|
|
1899
|
-
var V = x(
|
|
1900
|
-
V >=
|
|
1897
|
+
for (var z = O, N = j, _ = S, L = x(O, j) + x(j, S); j.charAt(0) === S.charAt(0); ) {
|
|
1898
|
+
O += j.charAt(0), j = j.substring(1) + S.charAt(0), S = S.substring(1);
|
|
1899
|
+
var V = x(O, j) + x(j, S);
|
|
1900
|
+
V >= L && (L = V, z = O, N = j, _ = S);
|
|
1901
1901
|
}
|
|
1902
1902
|
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--));
|
|
1903
1903
|
}
|
|
@@ -1906,20 +1906,20 @@ function Id() {
|
|
|
1906
1906
|
}
|
|
1907
1907
|
function K(g, x) {
|
|
1908
1908
|
g.push([e, ""]);
|
|
1909
|
-
for (var v = 0,
|
|
1909
|
+
for (var v = 0, O = 0, j = 0, S = "", $ = "", H; v < g.length; ) {
|
|
1910
1910
|
if (v < g.length - 1 && !g[v][1]) {
|
|
1911
1911
|
g.splice(v, 1);
|
|
1912
1912
|
continue;
|
|
1913
1913
|
}
|
|
1914
1914
|
switch (g[v][0]) {
|
|
1915
1915
|
case t:
|
|
1916
|
-
|
|
1916
|
+
j++, $ += g[v][1], v++;
|
|
1917
1917
|
break;
|
|
1918
1918
|
case r:
|
|
1919
|
-
|
|
1919
|
+
O++, S += g[v][1], v++;
|
|
1920
1920
|
break;
|
|
1921
1921
|
case e:
|
|
1922
|
-
var z = v -
|
|
1922
|
+
var z = v - j - O - 1;
|
|
1923
1923
|
if (x) {
|
|
1924
1924
|
if (z >= 0 && bt(g[z][1])) {
|
|
1925
1925
|
var N = g[z][1].slice(-1);
|
|
@@ -1929,7 +1929,7 @@ function Id() {
|
|
|
1929
1929
|
), S = N + S, $ = N + $, !g[z][1]) {
|
|
1930
1930
|
g.splice(z, 1), v--;
|
|
1931
1931
|
var _ = z - 1;
|
|
1932
|
-
g[_] && g[_][0] === t && (
|
|
1932
|
+
g[_] && g[_][0] === t && (j++, $ = g[_][1] + $, _--), g[_] && g[_][0] === r && (O++, S = g[_][1] + S, _--), z = _;
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
1935
|
if (nt(g[v][1])) {
|
|
@@ -1955,15 +1955,15 @@ function Id() {
|
|
|
1955
1955
|
0,
|
|
1956
1956
|
S.length - H
|
|
1957
1957
|
)));
|
|
1958
|
-
var
|
|
1959
|
-
S.length === 0 && $.length === 0 ? (g.splice(v -
|
|
1960
|
-
v -
|
|
1961
|
-
|
|
1958
|
+
var L = j + O;
|
|
1959
|
+
S.length === 0 && $.length === 0 ? (g.splice(v - L, L), v = v - L) : S.length === 0 ? (g.splice(v - L, L, [t, $]), v = v - L + 1) : $.length === 0 ? (g.splice(v - L, L, [r, S]), v = v - L + 1) : (g.splice(
|
|
1960
|
+
v - L,
|
|
1961
|
+
L,
|
|
1962
1962
|
[r, S],
|
|
1963
1963
|
[t, $]
|
|
1964
|
-
), v = v -
|
|
1964
|
+
), v = v - L + 2);
|
|
1965
1965
|
}
|
|
1966
|
-
v !== 0 && g[v - 1][0] === e ? (g[v - 1][1] += g[v][1], g.splice(v, 1)) : v++,
|
|
1966
|
+
v !== 0 && g[v - 1][0] === e ? (g[v - 1][1] += g[v][1], g.splice(v, 1)) : v++, j = 0, O = 0, S = "", $ = "";
|
|
1967
1967
|
break;
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
@@ -1995,26 +1995,26 @@ function Id() {
|
|
|
1995
1995
|
g[v][1].length > 0 && x.push(g[v]);
|
|
1996
1996
|
return x;
|
|
1997
1997
|
}
|
|
1998
|
-
function vt(g, x, v,
|
|
1999
|
-
return bt(g) || nt(
|
|
1998
|
+
function vt(g, x, v, O) {
|
|
1999
|
+
return bt(g) || nt(O) ? null : At([
|
|
2000
2000
|
[e, g],
|
|
2001
2001
|
[r, x],
|
|
2002
2002
|
[t, v],
|
|
2003
|
-
[e,
|
|
2003
|
+
[e, O]
|
|
2004
2004
|
]);
|
|
2005
2005
|
}
|
|
2006
2006
|
function kt(g, x, v) {
|
|
2007
|
-
var
|
|
2008
|
-
if (
|
|
2009
|
-
var H =
|
|
2007
|
+
var O = typeof v == "number" ? { index: v, length: 0 } : v.oldRange, j = typeof v == "number" ? null : v.newRange, S = g.length, $ = x.length;
|
|
2008
|
+
if (O.length === 0 && (j === null || j.length === 0)) {
|
|
2009
|
+
var H = O.index, z = g.slice(0, H), N = g.slice(H), _ = j ? j.index : null;
|
|
2010
2010
|
t: {
|
|
2011
|
-
var
|
|
2012
|
-
if (_ !== null && _ !==
|
|
2011
|
+
var L = H + $ - S;
|
|
2012
|
+
if (_ !== null && _ !== L || L < 0 || L > $)
|
|
2013
2013
|
break t;
|
|
2014
|
-
var V = x.slice(0,
|
|
2014
|
+
var V = x.slice(0, L), W = x.slice(L);
|
|
2015
2015
|
if (W !== N)
|
|
2016
2016
|
break t;
|
|
2017
|
-
var k = Math.min(H,
|
|
2017
|
+
var k = Math.min(H, L), pt = z.slice(0, k), ht = V.slice(0, k);
|
|
2018
2018
|
if (pt !== ht)
|
|
2019
2019
|
break t;
|
|
2020
2020
|
var lt = z.slice(k), dt = V.slice(k);
|
|
@@ -2033,9 +2033,9 @@ function Id() {
|
|
|
2033
2033
|
return vt(z, lt, dt, mt);
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
|
-
if (
|
|
2036
|
+
if (O.length > 0 && j && j.length === 0)
|
|
2037
2037
|
t: {
|
|
2038
|
-
var pt = g.slice(0,
|
|
2038
|
+
var pt = g.slice(0, O.index), mt = g.slice(O.index + O.length), k = pt.length, yt = mt.length;
|
|
2039
2039
|
if ($ < k + yt)
|
|
2040
2040
|
break t;
|
|
2041
2041
|
var ht = x.slice(0, k), ct = x.slice($ - yt);
|
|
@@ -2046,8 +2046,8 @@ function Id() {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
return null;
|
|
2048
2048
|
}
|
|
2049
|
-
function Lt(g, x, v,
|
|
2050
|
-
return n(g, x, v,
|
|
2049
|
+
function Lt(g, x, v, O) {
|
|
2050
|
+
return n(g, x, v, O, !0);
|
|
2051
2051
|
}
|
|
2052
2052
|
return Lt.INSERT = t, Lt.DELETE = r, Lt.EQUAL = e, Os = Lt, Os;
|
|
2053
2053
|
}
|
|
@@ -2056,9 +2056,9 @@ Jn.exports;
|
|
|
2056
2056
|
var ll;
|
|
2057
2057
|
function go() {
|
|
2058
2058
|
return ll || (ll = 1, (function(r, t) {
|
|
2059
|
-
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]",
|
|
2060
|
-
N[i] = N[o] = N[nt] = N[bt] = N[a] = N[h] = N[At] = N[vt] = N[kt] = N[Lt] = N[g] = N[p] = N[w] = N[A] = N[D] = N[
|
|
2061
|
-
var _ = typeof rn == "object" && rn && rn.Object === Object && rn,
|
|
2059
|
+
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]", P = "[object Set]", K = "[object String]", Z = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", bt = "[object DataView]", At = "[object Float32Array]", vt = "[object Float64Array]", kt = "[object Int8Array]", Lt = "[object Int16Array]", g = "[object Int32Array]", x = "[object Uint8Array]", v = "[object Uint8ClampedArray]", O = "[object Uint16Array]", j = "[object Uint32Array]", S = /[\\^$.*+?()[\]{}|]/g, $ = /\w*$/, H = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, N = {};
|
|
2060
|
+
N[i] = N[o] = N[nt] = N[bt] = N[a] = N[h] = N[At] = N[vt] = N[kt] = N[Lt] = N[g] = N[p] = N[w] = N[A] = N[D] = N[P] = N[K] = N[Z] = N[x] = N[v] = N[O] = N[j] = !0, N[d] = N[y] = N[rt] = !1;
|
|
2061
|
+
var _ = typeof rn == "object" && rn && rn.Object === Object && rn, L = typeof self == "object" && self && self.Object === Object && self, V = _ || L || Function("return this")(), W = t && !t.nodeType && t, k = W && !0 && r && !r.nodeType && r, pt = k && k.exports === W;
|
|
2062
2062
|
function ht(l, u) {
|
|
2063
2063
|
return l.set(u[0], u[1]), l;
|
|
2064
2064
|
}
|
|
@@ -2130,7 +2130,7 @@ function go() {
|
|
|
2130
2130
|
function T() {
|
|
2131
2131
|
this.__data__ = Ue ? Ue(null) : {};
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function C(l) {
|
|
2134
2134
|
return this.has(l) && delete this.__data__[l];
|
|
2135
2135
|
}
|
|
2136
2136
|
function B(l) {
|
|
@@ -2149,7 +2149,7 @@ function go() {
|
|
|
2149
2149
|
var m = this.__data__;
|
|
2150
2150
|
return m[l] = Ue && u === void 0 ? n : u, this;
|
|
2151
2151
|
}
|
|
2152
|
-
b.prototype.clear = T, b.prototype.delete =
|
|
2152
|
+
b.prototype.clear = T, b.prototype.delete = C, b.prototype.get = B, b.prototype.has = U, b.prototype.set = G;
|
|
2153
2153
|
function F(l) {
|
|
2154
2154
|
var u = -1, m = l ? l.length : 0;
|
|
2155
2155
|
for (this.clear(); ++u < m; ) {
|
|
@@ -2372,7 +2372,7 @@ function go() {
|
|
|
2372
2372
|
return as(m) ? m : void 0;
|
|
2373
2373
|
}
|
|
2374
2374
|
var He = Xt ? Ae(Xt, Object) : Ns, ze = os;
|
|
2375
|
-
(Ot && ze(new Ot(new ArrayBuffer(1))) != bt || re && ze(new re()) != p || Ft && ze(Ft.resolve()) != q || Ye && ze(new Ye()) !=
|
|
2375
|
+
(Ot && ze(new Ot(new ArrayBuffer(1))) != bt || re && ze(new re()) != p || Ft && ze(Ft.resolve()) != q || Ye && ze(new Ye()) != P || dn && ze(new dn()) != rt) && (ze = function(l) {
|
|
2376
2376
|
var u = Pt.call(l), m = u == A ? l.constructor : void 0, I = m ? Yt(m) : void 0;
|
|
2377
2377
|
if (I)
|
|
2378
2378
|
switch (I) {
|
|
@@ -2383,7 +2383,7 @@ function go() {
|
|
|
2383
2383
|
case fn:
|
|
2384
2384
|
return q;
|
|
2385
2385
|
case Je:
|
|
2386
|
-
return
|
|
2386
|
+
return P;
|
|
2387
2387
|
case M:
|
|
2388
2388
|
return rt;
|
|
2389
2389
|
}
|
|
@@ -2413,8 +2413,8 @@ function go() {
|
|
|
2413
2413
|
case g:
|
|
2414
2414
|
case x:
|
|
2415
2415
|
case v:
|
|
2416
|
-
case
|
|
2417
|
-
case
|
|
2416
|
+
case O:
|
|
2417
|
+
case j:
|
|
2418
2418
|
return ds(l, I);
|
|
2419
2419
|
case p:
|
|
2420
2420
|
return vr(l, I, m);
|
|
@@ -2423,7 +2423,7 @@ function go() {
|
|
|
2423
2423
|
return new ft(l);
|
|
2424
2424
|
case D:
|
|
2425
2425
|
return wr(l);
|
|
2426
|
-
case
|
|
2426
|
+
case P:
|
|
2427
2427
|
return us(l, I, m);
|
|
2428
2428
|
case Z:
|
|
2429
2429
|
return hs(l);
|
|
@@ -2504,8 +2504,8 @@ tr.exports;
|
|
|
2504
2504
|
var ol;
|
|
2505
2505
|
function mo() {
|
|
2506
2506
|
return ol || (ol = 1, (function(r, t) {
|
|
2507
|
-
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]",
|
|
2508
|
-
k[v] = k[
|
|
2507
|
+
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]", P = "[object Null]", K = "[object Object]", Z = "[object Promise]", rt = "[object Proxy]", nt = "[object RegExp]", bt = "[object Set]", At = "[object String]", vt = "[object Symbol]", kt = "[object Undefined]", Lt = "[object WeakMap]", g = "[object ArrayBuffer]", x = "[object DataView]", v = "[object Float32Array]", O = "[object Float64Array]", j = "[object Int8Array]", S = "[object Int16Array]", $ = "[object Int32Array]", H = "[object Uint8Array]", z = "[object Uint8ClampedArray]", N = "[object Uint16Array]", _ = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, V = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, k = {};
|
|
2508
|
+
k[v] = k[O] = k[j] = k[S] = k[$] = k[H] = k[z] = k[N] = k[_] = !0, k[a] = k[h] = k[g] = k[y] = k[x] = k[E] = k[p] = k[w] = k[q] = k[D] = k[K] = k[nt] = k[bt] = k[At] = k[Lt] = !1;
|
|
2509
2509
|
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() {
|
|
2510
2510
|
try {
|
|
2511
2511
|
return mt && mt.binding && mt.binding("util");
|
|
@@ -2567,8 +2567,8 @@ function mo() {
|
|
|
2567
2567
|
var l = /[^.]+$/.exec(le && le.keys && le.keys.IE_PROTO || "");
|
|
2568
2568
|
return l ? "Symbol(src)_1." + l : "";
|
|
2569
2569
|
})(), ne = Jt.toString, Pe = RegExp(
|
|
2570
|
-
"^" + St.call(xt).replace(
|
|
2571
|
-
), 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"), M = He(lt, "WeakMap"), c = He(Object, "create"), f = Yt(Qe), b = Yt(Se), T = Yt(fn),
|
|
2570
|
+
"^" + St.call(xt).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2571
|
+
), 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"), M = He(lt, "WeakMap"), c = He(Object, "create"), f = Yt(Qe), b = Yt(Se), T = Yt(fn), C = Yt(Je), B = Yt(M), U = te ? te.prototype : void 0, G = U ? U.valueOf : void 0;
|
|
2572
2572
|
function F(l) {
|
|
2573
2573
|
var u = -1, m = l == null ? 0 : l.length;
|
|
2574
2574
|
for (this.clear(); ++u < m; ) {
|
|
@@ -2719,7 +2719,7 @@ function mo() {
|
|
|
2719
2719
|
return Ln(l) ? I : Ae(I, m(l));
|
|
2720
2720
|
}
|
|
2721
2721
|
function pn(l) {
|
|
2722
|
-
return l == null ? l === void 0 ? kt :
|
|
2722
|
+
return l == null ? l === void 0 ? kt : P : Ft && Ft in Object(l) ? ze(l) : xr(l);
|
|
2723
2723
|
}
|
|
2724
2724
|
function vr(l) {
|
|
2725
2725
|
return qe(l) && pn(l) == a;
|
|
@@ -2899,7 +2899,7 @@ function mo() {
|
|
|
2899
2899
|
return q;
|
|
2900
2900
|
case T:
|
|
2901
2901
|
return Z;
|
|
2902
|
-
case
|
|
2902
|
+
case C:
|
|
2903
2903
|
return bt;
|
|
2904
2904
|
case B:
|
|
2905
2905
|
return Lt;
|
|
@@ -3179,8 +3179,8 @@ function Md() {
|
|
|
3179
3179
|
const A = [], q = new a.default(this.ops);
|
|
3180
3180
|
let D = 0;
|
|
3181
3181
|
for (; D < w && q.hasNext(); ) {
|
|
3182
|
-
let
|
|
3183
|
-
D < p ?
|
|
3182
|
+
let P;
|
|
3183
|
+
D < p ? P = q.next(p - D) : (P = q.next(w - D), A.push(P)), D += o.default.length(P);
|
|
3184
3184
|
}
|
|
3185
3185
|
return new y(A);
|
|
3186
3186
|
}
|
|
@@ -3192,12 +3192,12 @@ function Md() {
|
|
|
3192
3192
|
K -= w.peekLength(), q.push(w.next());
|
|
3193
3193
|
D.retain - K > 0 && A.next(D.retain - K);
|
|
3194
3194
|
}
|
|
3195
|
-
const
|
|
3195
|
+
const P = new y(q);
|
|
3196
3196
|
for (; w.hasNext() || A.hasNext(); )
|
|
3197
3197
|
if (A.peekType() === "insert")
|
|
3198
|
-
|
|
3198
|
+
P.push(A.next());
|
|
3199
3199
|
else if (w.peekType() === "delete")
|
|
3200
|
-
|
|
3200
|
+
P.push(w.next());
|
|
3201
3201
|
else {
|
|
3202
3202
|
const K = Math.min(w.peekLength(), A.peekLength()), Z = w.next(K), rt = A.next(K);
|
|
3203
3203
|
if (rt.retain) {
|
|
@@ -3213,13 +3213,13 @@ function Md() {
|
|
|
3213
3213
|
};
|
|
3214
3214
|
}
|
|
3215
3215
|
const bt = i.default.compose(Z.attributes, rt.attributes, typeof Z.retain == "number");
|
|
3216
|
-
if (bt && (nt.attributes = bt),
|
|
3216
|
+
if (bt && (nt.attributes = bt), P.push(nt), !A.hasNext() && s(P.ops[P.ops.length - 1], nt)) {
|
|
3217
3217
|
const At = new y(w.rest());
|
|
3218
|
-
return
|
|
3218
|
+
return P.concat(At).chop();
|
|
3219
3219
|
}
|
|
3220
|
-
} else typeof rt.delete == "number" && (typeof Z.retain == "number" || typeof Z.retain == "object" && Z.retain !== null) &&
|
|
3220
|
+
} else typeof rt.delete == "number" && (typeof Z.retain == "number" || typeof Z.retain == "object" && Z.retain !== null) && P.push(rt);
|
|
3221
3221
|
}
|
|
3222
|
-
return
|
|
3222
|
+
return P.chop();
|
|
3223
3223
|
}
|
|
3224
3224
|
concat(p) {
|
|
3225
3225
|
const w = new y(this.ops.slice());
|
|
@@ -3233,7 +3233,7 @@ function Md() {
|
|
|
3233
3233
|
return typeof rt.insert == "string" ? rt.insert : h;
|
|
3234
3234
|
const nt = Z === p ? "on" : "with";
|
|
3235
3235
|
throw new Error("diff() called " + nt + " non-document");
|
|
3236
|
-
}).join("")), q = new y(), D = e(A[0], A[1], w, !0),
|
|
3236
|
+
}).join("")), q = new y(), D = e(A[0], A[1], w, !0), P = new a.default(this.ops), K = new a.default(p.ops);
|
|
3237
3237
|
return D.forEach((Z) => {
|
|
3238
3238
|
let rt = Z[1].length;
|
|
3239
3239
|
for (; rt > 0; ) {
|
|
@@ -3243,11 +3243,11 @@ function Md() {
|
|
|
3243
3243
|
nt = Math.min(K.peekLength(), rt), q.push(K.next(nt));
|
|
3244
3244
|
break;
|
|
3245
3245
|
case e.DELETE:
|
|
3246
|
-
nt = Math.min(rt,
|
|
3246
|
+
nt = Math.min(rt, P.peekLength()), P.next(nt), q.delete(nt);
|
|
3247
3247
|
break;
|
|
3248
3248
|
case e.EQUAL:
|
|
3249
|
-
nt = Math.min(
|
|
3250
|
-
const bt =
|
|
3249
|
+
nt = Math.min(P.peekLength(), K.peekLength(), rt);
|
|
3250
|
+
const bt = P.next(nt), At = K.next(nt);
|
|
3251
3251
|
s(bt.insert, At.insert) ? q.retain(nt, i.default.diff(bt.attributes, At.attributes)) : q.push(At).delete(nt);
|
|
3252
3252
|
break;
|
|
3253
3253
|
}
|
|
@@ -3262,7 +3262,7 @@ function Md() {
|
|
|
3262
3262
|
for (; A.hasNext(); ) {
|
|
3263
3263
|
if (A.peekType() !== "insert")
|
|
3264
3264
|
return;
|
|
3265
|
-
const
|
|
3265
|
+
const P = A.peek(), K = o.default.length(P) - A.peekLength(), Z = typeof P.insert == "string" ? P.insert.indexOf(w, K) - K : -1;
|
|
3266
3266
|
if (Z < 0)
|
|
3267
3267
|
q.push(A.next());
|
|
3268
3268
|
else if (Z > 0)
|
|
@@ -3289,8 +3289,8 @@ function Md() {
|
|
|
3289
3289
|
q.delete ? w.push(K) : q.retain && q.attributes && w.retain(o.default.length(K), i.default.invert(q.attributes, K.attributes));
|
|
3290
3290
|
}), A + D;
|
|
3291
3291
|
} else if (typeof q.retain == "object" && q.retain !== null) {
|
|
3292
|
-
const D = p.slice(A, A + 1),
|
|
3293
|
-
return w.retain({ [K]: nt.invert(Z, rt) }, i.default.invert(q.attributes,
|
|
3292
|
+
const D = p.slice(A, A + 1), P = new a.default(D.ops).next(), [K, Z, rt] = d(q.retain, P.insert), nt = y.getHandler(K);
|
|
3293
|
+
return w.retain({ [K]: nt.invert(Z, rt) }, i.default.invert(q.attributes, P.attributes)), A + 1;
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
return A;
|
|
@@ -3299,18 +3299,18 @@ function Md() {
|
|
|
3299
3299
|
transform(p, w = !1) {
|
|
3300
3300
|
if (w = !!w, typeof p == "number")
|
|
3301
3301
|
return this.transformPosition(p, w);
|
|
3302
|
-
const A = p, q = new a.default(this.ops), D = new a.default(A.ops),
|
|
3302
|
+
const A = p, q = new a.default(this.ops), D = new a.default(A.ops), P = new y();
|
|
3303
3303
|
for (; q.hasNext() || D.hasNext(); )
|
|
3304
3304
|
if (q.peekType() === "insert" && (w || D.peekType() !== "insert"))
|
|
3305
|
-
|
|
3305
|
+
P.retain(o.default.length(q.next()));
|
|
3306
3306
|
else if (D.peekType() === "insert")
|
|
3307
|
-
|
|
3307
|
+
P.push(D.next());
|
|
3308
3308
|
else {
|
|
3309
3309
|
const K = Math.min(q.peekLength(), D.peekLength()), Z = q.next(K), rt = D.next(K);
|
|
3310
3310
|
if (Z.delete)
|
|
3311
3311
|
continue;
|
|
3312
3312
|
if (rt.delete)
|
|
3313
|
-
|
|
3313
|
+
P.push(rt);
|
|
3314
3314
|
else {
|
|
3315
3315
|
const nt = Z.retain, bt = rt.retain;
|
|
3316
3316
|
let At = typeof bt == "object" && bt !== null ? bt : K;
|
|
@@ -3323,21 +3323,21 @@ function Md() {
|
|
|
3323
3323
|
});
|
|
3324
3324
|
}
|
|
3325
3325
|
}
|
|
3326
|
-
|
|
3326
|
+
P.retain(At, i.default.transform(Z.attributes, rt.attributes, w));
|
|
3327
3327
|
}
|
|
3328
3328
|
}
|
|
3329
|
-
return
|
|
3329
|
+
return P.chop();
|
|
3330
3330
|
}
|
|
3331
3331
|
transformPosition(p, w = !1) {
|
|
3332
3332
|
w = !!w;
|
|
3333
3333
|
const A = new a.default(this.ops);
|
|
3334
3334
|
let q = 0;
|
|
3335
3335
|
for (; A.hasNext() && q <= p; ) {
|
|
3336
|
-
const D = A.peekLength(),
|
|
3337
|
-
if (A.next(),
|
|
3336
|
+
const D = A.peekLength(), P = A.peekType();
|
|
3337
|
+
if (A.next(), P === "delete") {
|
|
3338
3338
|
p -= Math.min(D, p - q);
|
|
3339
3339
|
continue;
|
|
3340
|
-
} else
|
|
3340
|
+
} else P === "insert" && (q < p || !w) && (p += D);
|
|
3341
3341
|
q += D;
|
|
3342
3342
|
}
|
|
3343
3343
|
return p;
|
|
@@ -3655,9 +3655,9 @@ function Dd() {
|
|
|
3655
3655
|
}, a.prototype.emit = function(d, y, E, p, w, A) {
|
|
3656
3656
|
var q = e ? e + d : d;
|
|
3657
3657
|
if (!this._events[q]) return !1;
|
|
3658
|
-
var D = this._events[q],
|
|
3658
|
+
var D = this._events[q], P = arguments.length, K, Z;
|
|
3659
3659
|
if (D.fn) {
|
|
3660
|
-
switch (D.once && this.removeListener(d, D.fn, void 0, !0),
|
|
3660
|
+
switch (D.once && this.removeListener(d, D.fn, void 0, !0), P) {
|
|
3661
3661
|
case 1:
|
|
3662
3662
|
return D.fn.call(D.context), !0;
|
|
3663
3663
|
case 2:
|
|
@@ -3671,13 +3671,13 @@ function Dd() {
|
|
|
3671
3671
|
case 6:
|
|
3672
3672
|
return D.fn.call(D.context, y, E, p, w, A), !0;
|
|
3673
3673
|
}
|
|
3674
|
-
for (Z = 1, K = new Array(
|
|
3674
|
+
for (Z = 1, K = new Array(P - 1); Z < P; Z++)
|
|
3675
3675
|
K[Z - 1] = arguments[Z];
|
|
3676
3676
|
D.fn.apply(D.context, K);
|
|
3677
3677
|
} else {
|
|
3678
3678
|
var rt = D.length, nt;
|
|
3679
3679
|
for (Z = 0; Z < rt; Z++)
|
|
3680
|
-
switch (D[Z].once && this.removeListener(d, D[Z].fn, void 0, !0),
|
|
3680
|
+
switch (D[Z].once && this.removeListener(d, D[Z].fn, void 0, !0), P) {
|
|
3681
3681
|
case 1:
|
|
3682
3682
|
D[Z].fn.call(D[Z].context);
|
|
3683
3683
|
break;
|
|
@@ -3691,7 +3691,7 @@ function Dd() {
|
|
|
3691
3691
|
D[Z].fn.call(D[Z].context, y, E, p);
|
|
3692
3692
|
break;
|
|
3693
3693
|
default:
|
|
3694
|
-
if (!K) for (nt = 1, K = new Array(
|
|
3694
|
+
if (!K) for (nt = 1, K = new Array(P - 1); nt < P; nt++)
|
|
3695
3695
|
K[nt - 1] = arguments[nt];
|
|
3696
3696
|
D[Z].fn.apply(D[Z].context, K);
|
|
3697
3697
|
}
|
|
@@ -3710,7 +3710,7 @@ function Dd() {
|
|
|
3710
3710
|
if (A.fn)
|
|
3711
3711
|
A.fn === y && (!p || A.once) && (!E || A.context === E) && o(this, w);
|
|
3712
3712
|
else {
|
|
3713
|
-
for (var q = 0, D = [],
|
|
3713
|
+
for (var q = 0, D = [], P = A.length; q < P; q++)
|
|
3714
3714
|
(A[q].fn !== y || p && !A[q].once || E && A[q].context !== E) && D.push(A[q]);
|
|
3715
3715
|
D.length ? this._events[w] = D.length === 1 ? D[0] : D : o(this, w);
|
|
3716
3716
|
}
|
|
@@ -4041,12 +4041,12 @@ class zd {
|
|
|
4041
4041
|
E = !A.endsWith(`
|
|
4042
4042
|
`) && (e <= o || !!this.scroll.descendant(ue, o)[0]), this.scroll.insertAt(o, A);
|
|
4043
4043
|
const [q, D] = this.scroll.line(o);
|
|
4044
|
-
let
|
|
4044
|
+
let P = on({}, ae(q));
|
|
4045
4045
|
if (q instanceof $t) {
|
|
4046
4046
|
const [K] = q.descendant(Wt, D);
|
|
4047
|
-
K && (
|
|
4047
|
+
K && (P = on(P, ae(K)));
|
|
4048
4048
|
}
|
|
4049
|
-
d = Qt.AttributeMap.diff(
|
|
4049
|
+
d = Qt.AttributeMap.diff(P, d) || {};
|
|
4050
4050
|
} else if (typeof a.insert == "object") {
|
|
4051
4051
|
const A = Object.keys(a.insert)[0];
|
|
4052
4052
|
if (A == null) return o;
|
|
@@ -4054,15 +4054,15 @@ class zd {
|
|
|
4054
4054
|
if (q)
|
|
4055
4055
|
(e <= o || this.scroll.descendant(ue, o)[0]) && (E = !0);
|
|
4056
4056
|
else if (o > 0) {
|
|
4057
|
-
const [D,
|
|
4058
|
-
D instanceof we ? D.value()[
|
|
4057
|
+
const [D, P] = this.scroll.descendant(Wt, o - 1);
|
|
4058
|
+
D instanceof we ? D.value()[P] !== `
|
|
4059
4059
|
` && (y = !0) : D instanceof se && D.statics.scope === et.INLINE_BLOT && (y = !0);
|
|
4060
4060
|
}
|
|
4061
4061
|
if (this.scroll.insertAt(o, A, a.insert[A]), q) {
|
|
4062
4062
|
const [D] = this.scroll.descendant(Wt, o);
|
|
4063
4063
|
if (D) {
|
|
4064
|
-
const
|
|
4065
|
-
d = Qt.AttributeMap.diff(
|
|
4064
|
+
const P = on({}, ae(D));
|
|
4065
|
+
d = Qt.AttributeMap.diff(P, d) || {};
|
|
4066
4066
|
}
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
@@ -4769,11 +4769,11 @@ function Jd(r, t) {
|
|
|
4769
4769
|
modules: Object.entries(y).reduce((w, A) => {
|
|
4770
4770
|
let [q, D] = A;
|
|
4771
4771
|
if (!D) return w;
|
|
4772
|
-
const
|
|
4773
|
-
return
|
|
4772
|
+
const P = R.import(`modules/${q}`);
|
|
4773
|
+
return P == null ? (jn.error(`Cannot load ${q} module. Are you sure you registered it?`), w) : {
|
|
4774
4774
|
...w,
|
|
4775
4775
|
// @ts-expect-error
|
|
4776
|
-
[q]: on({},
|
|
4776
|
+
[q]: on({}, P.DEFAULTS || {}, D)
|
|
4777
4777
|
};
|
|
4778
4778
|
}, {}),
|
|
4779
4779
|
bounds: bl(E.bounds)
|
|
@@ -5192,7 +5192,7 @@ class Qr extends he {
|
|
|
5192
5192
|
listen() {
|
|
5193
5193
|
this.quill.root.addEventListener("keydown", (t) => {
|
|
5194
5194
|
if (t.defaultPrevented || t.isComposing || t.keyCode === 229 && (t.key === "Enter" || t.key === "Backspace")) return;
|
|
5195
|
-
const s = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((
|
|
5195
|
+
const s = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((P) => Qr.match(t, P));
|
|
5196
5196
|
if (s.length === 0) return;
|
|
5197
5197
|
const i = R.find(t.target, !0);
|
|
5198
5198
|
if (i && i.scroll !== this.quill.scroll) return;
|
|
@@ -5209,15 +5209,15 @@ class Qr extends he {
|
|
|
5209
5209
|
suffix: A,
|
|
5210
5210
|
event: t
|
|
5211
5211
|
};
|
|
5212
|
-
s.some((
|
|
5213
|
-
if (
|
|
5212
|
+
s.some((P) => {
|
|
5213
|
+
if (P.collapsed != null && P.collapsed !== q.collapsed || P.empty != null && P.empty !== q.empty || P.offset != null && P.offset !== q.offset)
|
|
5214
5214
|
return !1;
|
|
5215
|
-
if (Array.isArray(
|
|
5216
|
-
if (
|
|
5215
|
+
if (Array.isArray(P.format)) {
|
|
5216
|
+
if (P.format.every((K) => q.format[K] == null))
|
|
5217
5217
|
return !1;
|
|
5218
|
-
} else if (typeof
|
|
5218
|
+
} else if (typeof P.format == "object" && !Object.keys(P.format).every((K) => P.format[K] === !0 ? q.format[K] != null : P.format[K] === !1 ? q.format[K] == null : mi(P.format[K], q.format[K])))
|
|
5219
5219
|
return !1;
|
|
5220
|
-
return
|
|
5220
|
+
return P.prefix != null && !P.prefix.test(q.prefix) || P.suffix != null && !P.suffix.test(q.suffix) ? !1 : P.handler.call(this, o, q, P) !== !0;
|
|
5221
5221
|
}) && t.preventDefault();
|
|
5222
5222
|
});
|
|
5223
5223
|
}
|
|
@@ -7544,27 +7544,27 @@ function H1() {
|
|
|
7544
7544
|
var i = window.webpackHotUpdatequillBetterTable;
|
|
7545
7545
|
window.webpackHotUpdatequillBetterTable = // eslint-disable-next-line no-unused-vars
|
|
7546
7546
|
/******/
|
|
7547
|
-
function(_,
|
|
7548
|
-
|
|
7547
|
+
function(_, L) {
|
|
7548
|
+
O(_, L), i && i(_, L);
|
|
7549
7549
|
};
|
|
7550
7550
|
function o(N) {
|
|
7551
7551
|
var _ = document.createElement("script");
|
|
7552
7552
|
_.charset = "utf-8", _.src = z.p + "" + N + "." + d + ".hot-update.js", document.head.appendChild(_);
|
|
7553
7553
|
}
|
|
7554
7554
|
function a(N) {
|
|
7555
|
-
return N = N || 1e4, new Promise(function(_,
|
|
7555
|
+
return N = N || 1e4, new Promise(function(_, L) {
|
|
7556
7556
|
if (typeof XMLHttpRequest > "u")
|
|
7557
|
-
return
|
|
7557
|
+
return L(new Error("No browser support"));
|
|
7558
7558
|
try {
|
|
7559
7559
|
var V = new XMLHttpRequest(), W = z.p + "" + d + ".hot-update.json";
|
|
7560
7560
|
V.open("GET", W, !0), V.timeout = N, V.send(null);
|
|
7561
7561
|
} catch (k) {
|
|
7562
|
-
return
|
|
7562
|
+
return L(k);
|
|
7563
7563
|
}
|
|
7564
7564
|
V.onreadystatechange = function() {
|
|
7565
7565
|
if (V.readyState === 4)
|
|
7566
7566
|
if (V.status === 0)
|
|
7567
|
-
|
|
7567
|
+
L(
|
|
7568
7568
|
/******/
|
|
7569
7569
|
new Error("Manifest request to " + W + " timed out.")
|
|
7570
7570
|
/******/
|
|
@@ -7572,12 +7572,12 @@ function H1() {
|
|
|
7572
7572
|
else if (V.status === 404)
|
|
7573
7573
|
_();
|
|
7574
7574
|
else if (V.status !== 200 && V.status !== 304)
|
|
7575
|
-
|
|
7575
|
+
L(new Error("Manifest request to " + W + " failed."));
|
|
7576
7576
|
else {
|
|
7577
7577
|
try {
|
|
7578
7578
|
var k = JSON.parse(V.responseText);
|
|
7579
7579
|
} catch (pt) {
|
|
7580
|
-
|
|
7580
|
+
L(pt);
|
|
7581
7581
|
return;
|
|
7582
7582
|
}
|
|
7583
7583
|
_(k);
|
|
@@ -7589,7 +7589,7 @@ function H1() {
|
|
|
7589
7589
|
function q(N) {
|
|
7590
7590
|
var _ = H[N];
|
|
7591
7591
|
if (!_) return z;
|
|
7592
|
-
var
|
|
7592
|
+
var L = function(k) {
|
|
7593
7593
|
return _.hot.active ? (H[k] ? H[k].parents.indexOf(N) === -1 && H[k].parents.push(N) : (w = [N], p = k), _.children.indexOf(k) === -1 && _.children.push(k)) : (console.warn(
|
|
7594
7594
|
/******/
|
|
7595
7595
|
"[HMR] unexpected require(" + /******/
|
|
@@ -7619,17 +7619,17 @@ function H1() {
|
|
|
7619
7619
|
/******/
|
|
7620
7620
|
Object.prototype.hasOwnProperty.call(z, W) && /******/
|
|
7621
7621
|
W !== "e" && /******/
|
|
7622
|
-
W !== "t" && Object.defineProperty(
|
|
7623
|
-
return
|
|
7622
|
+
W !== "t" && Object.defineProperty(L, W, V(W));
|
|
7623
|
+
return L.e = function(k) {
|
|
7624
7624
|
return K === "ready" && Z("prepare"), nt++, z.e(k).then(pt, function(ht) {
|
|
7625
7625
|
throw pt(), ht;
|
|
7626
7626
|
});
|
|
7627
7627
|
function pt() {
|
|
7628
|
-
nt--, K === "prepare" && (bt[k] ||
|
|
7628
|
+
nt--, K === "prepare" && (bt[k] || j(k), nt === 0 && rt === 0 && S());
|
|
7629
7629
|
}
|
|
7630
|
-
},
|
|
7631
|
-
return pt & 1 && (k =
|
|
7632
|
-
},
|
|
7630
|
+
}, L.t = function(k, pt) {
|
|
7631
|
+
return pt & 1 && (k = L(k)), z.t(k, pt & -2);
|
|
7632
|
+
}, L;
|
|
7633
7633
|
}
|
|
7634
7634
|
function D(N) {
|
|
7635
7635
|
var _ = {
|
|
@@ -7653,35 +7653,35 @@ function H1() {
|
|
|
7653
7653
|
/******/
|
|
7654
7654
|
active: !0,
|
|
7655
7655
|
/******/
|
|
7656
|
-
accept: function(
|
|
7657
|
-
if (
|
|
7658
|
-
else if (typeof
|
|
7659
|
-
else if (typeof
|
|
7660
|
-
for (var W = 0; W <
|
|
7661
|
-
_._acceptedDependencies[
|
|
7656
|
+
accept: function(L, V) {
|
|
7657
|
+
if (L === void 0) _._selfAccepted = !0;
|
|
7658
|
+
else if (typeof L == "function") _._selfAccepted = L;
|
|
7659
|
+
else if (typeof L == "object")
|
|
7660
|
+
for (var W = 0; W < L.length; W++)
|
|
7661
|
+
_._acceptedDependencies[L[W]] = V || function() {
|
|
7662
7662
|
};
|
|
7663
|
-
else _._acceptedDependencies[
|
|
7663
|
+
else _._acceptedDependencies[L] = V || function() {
|
|
7664
7664
|
};
|
|
7665
7665
|
},
|
|
7666
7666
|
/******/
|
|
7667
|
-
decline: function(
|
|
7668
|
-
if (
|
|
7669
|
-
else if (typeof
|
|
7670
|
-
for (var V = 0; V <
|
|
7671
|
-
_._declinedDependencies[
|
|
7672
|
-
else _._declinedDependencies[
|
|
7667
|
+
decline: function(L) {
|
|
7668
|
+
if (L === void 0) _._selfDeclined = !0;
|
|
7669
|
+
else if (typeof L == "object")
|
|
7670
|
+
for (var V = 0; V < L.length; V++)
|
|
7671
|
+
_._declinedDependencies[L[V]] = !0;
|
|
7672
|
+
else _._declinedDependencies[L] = !0;
|
|
7673
7673
|
},
|
|
7674
7674
|
/******/
|
|
7675
|
-
dispose: function(
|
|
7676
|
-
_._disposeHandlers.push(
|
|
7675
|
+
dispose: function(L) {
|
|
7676
|
+
_._disposeHandlers.push(L);
|
|
7677
7677
|
},
|
|
7678
7678
|
/******/
|
|
7679
|
-
addDisposeHandler: function(
|
|
7680
|
-
_._disposeHandlers.push(
|
|
7679
|
+
addDisposeHandler: function(L) {
|
|
7680
|
+
_._disposeHandlers.push(L);
|
|
7681
7681
|
},
|
|
7682
7682
|
/******/
|
|
7683
|
-
removeDisposeHandler: function(
|
|
7684
|
-
var V = _._disposeHandlers.indexOf(
|
|
7683
|
+
removeDisposeHandler: function(L) {
|
|
7684
|
+
var V = _._disposeHandlers.indexOf(L);
|
|
7685
7685
|
V >= 0 && _._disposeHandlers.splice(V, 1);
|
|
7686
7686
|
},
|
|
7687
7687
|
/******/
|
|
@@ -7692,18 +7692,18 @@ function H1() {
|
|
|
7692
7692
|
/******/
|
|
7693
7693
|
apply: $,
|
|
7694
7694
|
/******/
|
|
7695
|
-
status: function(
|
|
7696
|
-
if (!
|
|
7697
|
-
|
|
7695
|
+
status: function(L) {
|
|
7696
|
+
if (!L) return K;
|
|
7697
|
+
P.push(L);
|
|
7698
7698
|
},
|
|
7699
7699
|
/******/
|
|
7700
|
-
addStatusHandler: function(
|
|
7701
|
-
|
|
7700
|
+
addStatusHandler: function(L) {
|
|
7701
|
+
P.push(L);
|
|
7702
7702
|
},
|
|
7703
7703
|
/******/
|
|
7704
|
-
removeStatusHandler: function(
|
|
7705
|
-
var V =
|
|
7706
|
-
V >= 0 &&
|
|
7704
|
+
removeStatusHandler: function(L) {
|
|
7705
|
+
var V = P.indexOf(L);
|
|
7706
|
+
V >= 0 && P.splice(V, 1);
|
|
7707
7707
|
},
|
|
7708
7708
|
/******/
|
|
7709
7709
|
/******/
|
|
@@ -7714,11 +7714,11 @@ function H1() {
|
|
|
7714
7714
|
};
|
|
7715
7715
|
return p = void 0, _;
|
|
7716
7716
|
}
|
|
7717
|
-
var
|
|
7717
|
+
var P = [], K = "idle";
|
|
7718
7718
|
function Z(N) {
|
|
7719
7719
|
K = N;
|
|
7720
|
-
for (var _ = 0; _ <
|
|
7721
|
-
|
|
7720
|
+
for (var _ = 0; _ < P.length; _++)
|
|
7721
|
+
P[_].call(null, N);
|
|
7722
7722
|
}
|
|
7723
7723
|
var rt = 0, nt = 0, bt = {}, At = {}, vt = {}, kt, Lt, g;
|
|
7724
7724
|
function x(N) {
|
|
@@ -7732,7 +7732,7 @@ function H1() {
|
|
|
7732
7732
|
if (!_)
|
|
7733
7733
|
return Z("idle"), null;
|
|
7734
7734
|
At = {}, bt = {}, vt = _.c, g = _.h, Z("prepare");
|
|
7735
|
-
var
|
|
7735
|
+
var L = new Promise(function(W, k) {
|
|
7736
7736
|
kt = {
|
|
7737
7737
|
/******/
|
|
7738
7738
|
resolve: W,
|
|
@@ -7743,21 +7743,21 @@ function H1() {
|
|
|
7743
7743
|
});
|
|
7744
7744
|
Lt = {};
|
|
7745
7745
|
var V = 2;
|
|
7746
|
-
return
|
|
7746
|
+
return j(V), /******/
|
|
7747
7747
|
K === "prepare" && /******/
|
|
7748
7748
|
nt === 0 && /******/
|
|
7749
|
-
rt === 0 && S(),
|
|
7749
|
+
rt === 0 && S(), L;
|
|
7750
7750
|
});
|
|
7751
7751
|
}
|
|
7752
|
-
function
|
|
7752
|
+
function O(N, _) {
|
|
7753
7753
|
if (!(!vt[N] || !At[N])) {
|
|
7754
7754
|
At[N] = !1;
|
|
7755
|
-
for (var
|
|
7756
|
-
Object.prototype.hasOwnProperty.call(_,
|
|
7755
|
+
for (var L in _)
|
|
7756
|
+
Object.prototype.hasOwnProperty.call(_, L) && (Lt[L] = _[L]);
|
|
7757
7757
|
--rt === 0 && nt === 0 && S();
|
|
7758
7758
|
}
|
|
7759
7759
|
}
|
|
7760
|
-
function
|
|
7760
|
+
function j(N) {
|
|
7761
7761
|
vt[N] ? (At[N] = !0, rt++, o(N)) : bt[N] = !0;
|
|
7762
7762
|
}
|
|
7763
7763
|
function S() {
|
|
@@ -7780,8 +7780,8 @@ function H1() {
|
|
|
7780
7780
|
);
|
|
7781
7781
|
else {
|
|
7782
7782
|
var _ = [];
|
|
7783
|
-
for (var
|
|
7784
|
-
Object.prototype.hasOwnProperty.call(Lt,
|
|
7783
|
+
for (var L in Lt)
|
|
7784
|
+
Object.prototype.hasOwnProperty.call(Lt, L) && _.push(x(L));
|
|
7785
7785
|
N.resolve(_);
|
|
7786
7786
|
}
|
|
7787
7787
|
}
|
|
@@ -7789,7 +7789,7 @@ function H1() {
|
|
|
7789
7789
|
if (K !== "ready")
|
|
7790
7790
|
throw new Error("apply() is only allowed in ready status");
|
|
7791
7791
|
N = N || {};
|
|
7792
|
-
var _,
|
|
7792
|
+
var _, L, V, W, k;
|
|
7793
7793
|
function pt(St) {
|
|
7794
7794
|
for (var xt = [St], zt = {}, ne = xt.map(function(Ft) {
|
|
7795
7795
|
return {
|
|
@@ -7958,8 +7958,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
7958
7958
|
Ae && (ht(dt, [ct.moduleId]), gt[k] = yt);
|
|
7959
7959
|
}
|
|
7960
7960
|
var De = [];
|
|
7961
|
-
for (
|
|
7962
|
-
k = dt[
|
|
7961
|
+
for (L = 0; L < dt.length; L++)
|
|
7962
|
+
k = dt[L], /******/
|
|
7963
7963
|
H[k] && /******/
|
|
7964
7964
|
H[k].hot._selfAccepted && /******/
|
|
7965
7965
|
// removed self-accepted modules should not be required
|
|
@@ -8003,13 +8003,13 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8003
8003
|
) {
|
|
8004
8004
|
Pt = lt[k];
|
|
8005
8005
|
var Jt = [];
|
|
8006
|
-
for (
|
|
8007
|
-
if (jt = Pt[
|
|
8006
|
+
for (L = 0; L < Pt.length; L++)
|
|
8007
|
+
if (jt = Pt[L], _ = W.hot._acceptedDependencies[jt], _) {
|
|
8008
8008
|
if (Jt.indexOf(_) !== -1) continue;
|
|
8009
8009
|
Jt.push(_);
|
|
8010
8010
|
}
|
|
8011
|
-
for (
|
|
8012
|
-
_ = Jt[
|
|
8011
|
+
for (L = 0; L < Jt.length; L++) {
|
|
8012
|
+
_ = Jt[L];
|
|
8013
8013
|
try {
|
|
8014
8014
|
_(Pt);
|
|
8015
8015
|
} catch (St) {
|
|
@@ -8019,7 +8019,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8019
8019
|
/******/
|
|
8020
8020
|
moduleId: k,
|
|
8021
8021
|
/******/
|
|
8022
|
-
dependencyId: Pt[
|
|
8022
|
+
dependencyId: Pt[L],
|
|
8023
8023
|
/******/
|
|
8024
8024
|
error: St
|
|
8025
8025
|
/******/
|
|
@@ -8027,8 +8027,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8027
8027
|
}
|
|
8028
8028
|
}
|
|
8029
8029
|
}
|
|
8030
|
-
for (
|
|
8031
|
-
var le = De[
|
|
8030
|
+
for (L = 0; L < De.length; L++) {
|
|
8031
|
+
var le = De[L];
|
|
8032
8032
|
k = le.module, w = [k];
|
|
8033
8033
|
try {
|
|
8034
8034
|
z(k);
|
|
@@ -8086,17 +8086,17 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8086
8086
|
};
|
|
8087
8087
|
return n[N].call(_.exports, _, _.exports, q(N)), _.l = !0, _.exports;
|
|
8088
8088
|
}
|
|
8089
|
-
return z.m = n, z.c = H, z.d = function(N, _,
|
|
8090
|
-
z.o(N, _) || Object.defineProperty(N, _, { enumerable: !0, get:
|
|
8089
|
+
return z.m = n, z.c = H, z.d = function(N, _, L) {
|
|
8090
|
+
z.o(N, _) || Object.defineProperty(N, _, { enumerable: !0, get: L });
|
|
8091
8091
|
}, z.r = function(N) {
|
|
8092
8092
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(N, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(N, "__esModule", { value: !0 });
|
|
8093
8093
|
}, z.t = function(N, _) {
|
|
8094
8094
|
if (_ & 1 && (N = z(N)), _ & 8 || _ & 4 && typeof N == "object" && N && N.__esModule) return N;
|
|
8095
|
-
var
|
|
8096
|
-
if (z.r(
|
|
8095
|
+
var L = /* @__PURE__ */ Object.create(null);
|
|
8096
|
+
if (z.r(L), Object.defineProperty(L, "default", { enumerable: !0, value: N }), _ & 2 && typeof N != "string") for (var V in N) z.d(L, V, (function(W) {
|
|
8097
8097
|
return N[W];
|
|
8098
8098
|
}).bind(null, V));
|
|
8099
|
-
return
|
|
8099
|
+
return L;
|
|
8100
8100
|
}, z.n = function(N) {
|
|
8101
8101
|
var _ = N && N.__esModule ? (
|
|
8102
8102
|
/******/
|
|
@@ -8209,19 +8209,19 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8209
8209
|
b += ("0" + Number(f[T]).toString(16)).slice(-2);
|
|
8210
8210
|
return b;
|
|
8211
8211
|
} else if (c.test(M)) {
|
|
8212
|
-
var
|
|
8213
|
-
if (
|
|
8212
|
+
var C = M.replace(/#/, "").split("");
|
|
8213
|
+
if (C.length === 6)
|
|
8214
8214
|
return M;
|
|
8215
|
-
if (
|
|
8216
|
-
for (var B = "#", T = 0; T <
|
|
8217
|
-
B +=
|
|
8215
|
+
if (C.length === 3) {
|
|
8216
|
+
for (var B = "#", T = 0; T < C.length; T += 1)
|
|
8217
|
+
B += C[T] + C[T];
|
|
8218
8218
|
return B;
|
|
8219
8219
|
}
|
|
8220
8220
|
}
|
|
8221
8221
|
return M;
|
|
8222
8222
|
}
|
|
8223
8223
|
const w = 12, A = 12, q = 50, D = "#35A7ED";
|
|
8224
|
-
class
|
|
8224
|
+
class P {
|
|
8225
8225
|
constructor(c, f, b) {
|
|
8226
8226
|
if (!c) return null;
|
|
8227
8227
|
this.table = c, this.quill = f, this.options = b, this.domNode = null, this.initColTool();
|
|
@@ -8247,10 +8247,10 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8247
8247
|
}
|
|
8248
8248
|
updateToolCells() {
|
|
8249
8249
|
const c = a.a.find(this.table), f = c.children.tail.children.head.children, b = c.colGroup().children, T = K(f);
|
|
8250
|
-
let
|
|
8251
|
-
for (let B = 0; B < Math.max(T,
|
|
8250
|
+
let C = Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell"));
|
|
8251
|
+
for (let B = 0; B < Math.max(T, C.length); B++) {
|
|
8252
8252
|
let U = b.at(B), G = U && parseInt(U.formats()[U.statics.blotName].width, 10), F = null;
|
|
8253
|
-
|
|
8253
|
+
C[B] ? C[B] && B >= T ? C[B].remove() : (F = C[B], h(F, {
|
|
8254
8254
|
"min-width": "".concat(G, "px")
|
|
8255
8255
|
})) : (F = this.createToolCell(), this.domNode.appendChild(F), this.addColCellHolderHandler(F), h(F, {
|
|
8256
8256
|
"min-width": "".concat(G, "px")
|
|
@@ -8262,9 +8262,9 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8262
8262
|
}
|
|
8263
8263
|
addColCellHolderHandler(c) {
|
|
8264
8264
|
const f = a.a.find(this.table), b = c.querySelector(".qlbt-col-tool-cell-holder");
|
|
8265
|
-
let T = !1,
|
|
8265
|
+
let T = !1, C = 0, B = 0, U = 0, G = 0, F = {}, Y = {}, it = null;
|
|
8266
8266
|
const ot = (at) => {
|
|
8267
|
-
at.preventDefault(), T && (B = at.clientX, G + B -
|
|
8267
|
+
at.preventDefault(), T && (B = at.clientX, G + B - C >= q ? U = B - C : U = q - G, h(it, {
|
|
8268
8268
|
left: "".concat(Y.left + Y.width - 1 + U, "px")
|
|
8269
8269
|
}));
|
|
8270
8270
|
}, Q = (at) => {
|
|
@@ -8272,7 +8272,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8272
8272
|
const Et = Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell")).indexOf(c), Rt = f.colGroup().children.at(Et);
|
|
8273
8273
|
T && (Rt.format("width", G + U), h(c, {
|
|
8274
8274
|
"min-width": "".concat(G + U, "px")
|
|
8275
|
-
}),
|
|
8275
|
+
}), C = 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();
|
|
8276
8276
|
const $e = this.quill.getModule("better-table").tableSelection;
|
|
8277
8277
|
$e && $e.clearSelection();
|
|
8278
8278
|
}, ut = (at) => {
|
|
@@ -8284,7 +8284,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8284
8284
|
height: "".concat(F.height + w + 4, "px"),
|
|
8285
8285
|
width: "1px",
|
|
8286
8286
|
backgroundColor: D
|
|
8287
|
-
}), document.body.appendChild(it), T = !0,
|
|
8287
|
+
}), document.body.appendChild(it), T = !0, C = at.clientX, G = Y.width, b.classList.add("dragging");
|
|
8288
8288
|
};
|
|
8289
8289
|
b.addEventListener("mousedown", ut, !1);
|
|
8290
8290
|
}
|
|
@@ -8319,19 +8319,19 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8319
8319
|
const {
|
|
8320
8320
|
row: b,
|
|
8321
8321
|
cell: T,
|
|
8322
|
-
rowspan:
|
|
8322
|
+
rowspan: C,
|
|
8323
8323
|
colspan: B
|
|
8324
8324
|
} = rt.formats(this.domNode);
|
|
8325
8325
|
c === rt.blotName ? f ? super.format(c, {
|
|
8326
8326
|
value: f,
|
|
8327
8327
|
row: b,
|
|
8328
8328
|
cell: T,
|
|
8329
|
-
rowspan:
|
|
8329
|
+
rowspan: C,
|
|
8330
8330
|
colspan: B
|
|
8331
|
-
}) : b ? this.replaceWith(
|
|
8331
|
+
}) : b ? this.replaceWith(j.blotName, {
|
|
8332
8332
|
row: b,
|
|
8333
8333
|
cell: T,
|
|
8334
|
-
rowspan:
|
|
8334
|
+
rowspan: C,
|
|
8335
8335
|
colspan: B
|
|
8336
8336
|
}) : super.format(c, f) : super.format(c, f);
|
|
8337
8337
|
}
|
|
@@ -8347,8 +8347,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8347
8347
|
rowspan: b
|
|
8348
8348
|
}), this.enforceAllowedChildren(), this.uiNode != null && this.uiNode !== this.domNode.firstChild && this.domNode.insertBefore(this.uiNode, this.domNode.firstChild), this.children.length === 0)
|
|
8349
8349
|
if (this.statics.defaultChild != null) {
|
|
8350
|
-
const
|
|
8351
|
-
this.appendChild(
|
|
8350
|
+
const C = this.scroll.create(this.statics.defaultChild.blotName);
|
|
8351
|
+
this.appendChild(C);
|
|
8352
8352
|
} else
|
|
8353
8353
|
this.remove();
|
|
8354
8354
|
this.cache = {};
|
|
@@ -8361,8 +8361,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8361
8361
|
}, g = ["row", "cell"], x = ["rowspan", "colspan"], v = {
|
|
8362
8362
|
rowspan: 1,
|
|
8363
8363
|
colspan: 1
|
|
8364
|
-
},
|
|
8365
|
-
class
|
|
8364
|
+
}, O = 5;
|
|
8365
|
+
class j extends At {
|
|
8366
8366
|
static create(c) {
|
|
8367
8367
|
const f = super.create(c);
|
|
8368
8368
|
return g.forEach((b) => {
|
|
@@ -8386,33 +8386,33 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8386
8386
|
const {
|
|
8387
8387
|
row: b,
|
|
8388
8388
|
cell: T,
|
|
8389
|
-
rowspan:
|
|
8389
|
+
rowspan: C,
|
|
8390
8390
|
colspan: B
|
|
8391
|
-
} =
|
|
8391
|
+
} = j.formats(this.domNode);
|
|
8392
8392
|
super.format(c, {
|
|
8393
8393
|
value: f,
|
|
8394
8394
|
row: b,
|
|
8395
8395
|
cell: T,
|
|
8396
|
-
rowspan:
|
|
8396
|
+
rowspan: C,
|
|
8397
8397
|
colspan: B
|
|
8398
8398
|
});
|
|
8399
8399
|
} else
|
|
8400
8400
|
super.format(c, f);
|
|
8401
8401
|
}
|
|
8402
8402
|
optimize(c) {
|
|
8403
|
-
const f = this.domNode.getAttribute("data-row"), b = this.domNode.getAttribute("data-rowspan"), T = this.domNode.getAttribute("data-colspan"),
|
|
8403
|
+
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");
|
|
8404
8404
|
this.statics.requiredContainer && !(this.parent instanceof this.statics.requiredContainer) && this.wrap(this.statics.requiredContainer.blotName, {
|
|
8405
8405
|
row: f,
|
|
8406
8406
|
colspan: T,
|
|
8407
8407
|
rowspan: b,
|
|
8408
|
-
"cell-bg":
|
|
8408
|
+
"cell-bg": C
|
|
8409
8409
|
}), super.optimize(c);
|
|
8410
8410
|
}
|
|
8411
8411
|
tableCell() {
|
|
8412
8412
|
return this.parent;
|
|
8413
8413
|
}
|
|
8414
8414
|
}
|
|
8415
|
-
|
|
8415
|
+
j.blotName = "table-cell-line", j.className = "qlbt-cell-line", j.tagName = "P";
|
|
8416
8416
|
class S extends vt {
|
|
8417
8417
|
checkMerge() {
|
|
8418
8418
|
if (super.checkMerge() && this.next.children.head != null) {
|
|
@@ -8541,11 +8541,11 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8541
8541
|
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], b = arguments.length > 2 ? arguments[2] : void 0;
|
|
8542
8542
|
const [T] = this.descendants(H);
|
|
8543
8543
|
if (T == null || T.children.head == null) return;
|
|
8544
|
-
const
|
|
8545
|
-
if (
|
|
8544
|
+
const C = this.descendants(S), B = [], U = [];
|
|
8545
|
+
if (C.forEach((G) => {
|
|
8546
8546
|
const F = d(G.domNode.getBoundingClientRect(), b);
|
|
8547
|
-
F.x +
|
|
8548
|
-
}), B.length ===
|
|
8547
|
+
F.x + O > c.x && F.x1 - O < c.x1 ? B.push(G) : F.x < c.x + O && F.x1 > c.x1 - O && U.push(G);
|
|
8548
|
+
}), B.length === C.length)
|
|
8549
8549
|
return this.tableDestroy(), !0;
|
|
8550
8550
|
f.forEach((G) => {
|
|
8551
8551
|
this.colGroup().children.at(f[0]).remove();
|
|
@@ -8559,25 +8559,25 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8559
8559
|
deleteRow(c, f) {
|
|
8560
8560
|
const [b] = this.descendants(H);
|
|
8561
8561
|
if (b == null || b.children.head == null) return;
|
|
8562
|
-
const T = this.descendants(S),
|
|
8562
|
+
const T = this.descendants(S), C = this.descendants($), B = [], U = [], G = [], F = C.filter((it) => {
|
|
8563
8563
|
const ot = d(it.domNode.getBoundingClientRect(), f);
|
|
8564
|
-
return ot.y > c.y -
|
|
8564
|
+
return ot.y > c.y - O && ot.y1 < c.y1 + O;
|
|
8565
8565
|
});
|
|
8566
8566
|
if (T.forEach((it) => {
|
|
8567
8567
|
const ot = d(it.domNode.getBoundingClientRect(), f);
|
|
8568
|
-
ot.y > c.y -
|
|
8568
|
+
ot.y > c.y - O && ot.y1 < c.y1 + O ? B.push(it) : ot.y < c.y + O && ot.y1 > c.y1 - O && (U.push(it), Math.abs(ot.y - c.y) < O && G.push(it));
|
|
8569
8569
|
}), B.length === T.length) {
|
|
8570
8570
|
this.tableDestroy();
|
|
8571
8571
|
return;
|
|
8572
8572
|
}
|
|
8573
8573
|
const Y = this.rows().reduce((it, ot) => {
|
|
8574
8574
|
let Q = d(ot.domNode.getBoundingClientRect(), f);
|
|
8575
|
-
return Q.y > c.y -
|
|
8575
|
+
return Q.y > c.y - O && Q.y1 < c.y1 + O && (it += 1), it;
|
|
8576
8576
|
}, 0);
|
|
8577
8577
|
G.forEach((it) => {
|
|
8578
8578
|
const ot = d(it.domNode.getBoundingClientRect(), f), Q = it.parent.next, at = Q.children.reduce((It, Et) => {
|
|
8579
8579
|
const Rt = d(Et.domNode.getBoundingClientRect(), f);
|
|
8580
|
-
return Math.abs(ot.x1 - Rt.x) <
|
|
8580
|
+
return Math.abs(ot.x1 - Rt.x) < O && (It = Et), It;
|
|
8581
8581
|
}, null);
|
|
8582
8582
|
Q.insertBefore(it, at), it.format("row", Q.formats().row);
|
|
8583
8583
|
}), B.forEach((it) => {
|
|
@@ -8592,27 +8592,27 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8592
8592
|
this.remove(), f.hideTableTools(), c.update(a.a.sources.USER);
|
|
8593
8593
|
}
|
|
8594
8594
|
insertCell(c, f) {
|
|
8595
|
-
const b = W(), T = c.formats().row,
|
|
8595
|
+
const b = W(), T = c.formats().row, C = this.scroll.create(S.blotName, Object.assign({}, v, {
|
|
8596
8596
|
row: T
|
|
8597
|
-
})), B = this.scroll.create(
|
|
8597
|
+
})), B = this.scroll.create(j.blotName, {
|
|
8598
8598
|
row: T,
|
|
8599
8599
|
cell: b
|
|
8600
8600
|
});
|
|
8601
|
-
|
|
8601
|
+
C.appendChild(B), f ? c.insertBefore(C, f) : c.appendChild(C);
|
|
8602
8602
|
}
|
|
8603
8603
|
insertColumn(c, f) {
|
|
8604
8604
|
let b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, T = arguments.length > 3 ? arguments[3] : void 0;
|
|
8605
|
-
const [
|
|
8605
|
+
const [C] = this.descendants(H), [B] = this.descendants(N), U = this.descendants(z);
|
|
8606
8606
|
let G = [], F = [], Y = [];
|
|
8607
|
-
if (
|
|
8607
|
+
if (C == null || C.children.head == null) return;
|
|
8608
8608
|
this.descendants(S).forEach((ut) => {
|
|
8609
8609
|
const at = d(ut.domNode.getBoundingClientRect(), T);
|
|
8610
|
-
b ? Math.abs(at.x1 - c.x1) <
|
|
8610
|
+
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);
|
|
8611
8611
|
}), G.forEach((ut) => {
|
|
8612
8612
|
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, {
|
|
8613
8613
|
row: Rt,
|
|
8614
8614
|
rowspan: $e.rowspan
|
|
8615
|
-
})), Vt = this.scroll.create(
|
|
8615
|
+
})), Vt = this.scroll.create(j.blotName, {
|
|
8616
8616
|
row: Rt,
|
|
8617
8617
|
cell: It,
|
|
8618
8618
|
rowspan: $e.rowspan
|
|
@@ -8632,13 +8632,13 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8632
8632
|
insertRow(c, f, b) {
|
|
8633
8633
|
const [T] = this.descendants(H);
|
|
8634
8634
|
if (T == null || T.children.head == null) return;
|
|
8635
|
-
const
|
|
8635
|
+
const C = this.descendants(S), B = V(), U = this.scroll.create($.blotName, {
|
|
8636
8636
|
row: B
|
|
8637
8637
|
});
|
|
8638
8638
|
let G = [], F = [], Y = [];
|
|
8639
|
-
|
|
8639
|
+
C.forEach((Q) => {
|
|
8640
8640
|
const ut = d(Q.domNode.getBoundingClientRect(), b);
|
|
8641
|
-
f ? Math.abs(ut.y1 - c.y1) <
|
|
8641
|
+
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);
|
|
8642
8642
|
});
|
|
8643
8643
|
const it = (Q, ut) => {
|
|
8644
8644
|
let at = Q.domNode.getBoundingClientRect().x, It = ut.domNode.getBoundingClientRect().x;
|
|
@@ -8648,7 +8648,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8648
8648
|
const ut = W(), at = Q.formats(), It = this.scroll.create(S.blotName, Object.assign({}, v, {
|
|
8649
8649
|
row: B,
|
|
8650
8650
|
colspan: at.colspan
|
|
8651
|
-
})), Et = this.scroll.create(
|
|
8651
|
+
})), Et = this.scroll.create(j.blotName, {
|
|
8652
8652
|
row: B,
|
|
8653
8653
|
cell: ut,
|
|
8654
8654
|
colspan: at.colspan
|
|
@@ -8660,11 +8660,11 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8660
8660
|
});
|
|
8661
8661
|
const ot = this.rows().find((Q) => {
|
|
8662
8662
|
let ut = d(Q.domNode.getBoundingClientRect(), b);
|
|
8663
|
-
return f ? Math.abs(ut.y - c.y - c.height) <
|
|
8663
|
+
return f ? Math.abs(ut.y - c.y - c.height) < O : Math.abs(ut.y - c.y) < O;
|
|
8664
8664
|
});
|
|
8665
8665
|
return T.insertBefore(U, ot), Y.sort(it), Y;
|
|
8666
8666
|
}
|
|
8667
|
-
mergeCells(c, f, b, T,
|
|
8667
|
+
mergeCells(c, f, b, T, C) {
|
|
8668
8668
|
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);
|
|
8669
8669
|
let U = B.domNode.getAttribute("data-row"), G = B.children.head.domNode.getAttribute("data-cell");
|
|
8670
8670
|
return B.children.forEach((F) => {
|
|
@@ -8672,12 +8672,12 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8672
8672
|
}), B;
|
|
8673
8673
|
}
|
|
8674
8674
|
unmergeCells(c, f) {
|
|
8675
|
-
let b = {}, T = 1,
|
|
8675
|
+
let b = {}, T = 1, C = 1;
|
|
8676
8676
|
c.forEach((B) => {
|
|
8677
|
-
if (b = B.formats(), T = b.rowspan,
|
|
8677
|
+
if (b = B.formats(), T = b.rowspan, C = b.colspan, C > 1) {
|
|
8678
8678
|
let U = B.next, G = B.row();
|
|
8679
8679
|
B.format("colspan", 1);
|
|
8680
|
-
for (let F =
|
|
8680
|
+
for (let F = C; F > 1; F--)
|
|
8681
8681
|
this.insertCell(G, U);
|
|
8682
8682
|
}
|
|
8683
8683
|
if (T > 1) {
|
|
@@ -8685,9 +8685,9 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8685
8685
|
for (; U > 1; ) {
|
|
8686
8686
|
let F = G.children.reduce((Y, it) => {
|
|
8687
8687
|
let ot = d(B.domNode.getBoundingClientRect(), f), Q = d(it.domNode.getBoundingClientRect(), f);
|
|
8688
|
-
return Math.abs(ot.x1 - Q.x) <
|
|
8688
|
+
return Math.abs(ot.x1 - Q.x) < O && (Y = it), Y;
|
|
8689
8689
|
}, null);
|
|
8690
|
-
for (let Y =
|
|
8690
|
+
for (let Y = C; Y > 0; Y--)
|
|
8691
8691
|
this.insertCell(G, F);
|
|
8692
8692
|
U -= 1, G = G.next;
|
|
8693
8693
|
}
|
|
@@ -8701,20 +8701,20 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8701
8701
|
}
|
|
8702
8702
|
}
|
|
8703
8703
|
_.blotName = "table-container", _.className = "quill-better-table", _.tagName = "TABLE";
|
|
8704
|
-
class
|
|
8704
|
+
class L extends vt {
|
|
8705
8705
|
constructor(c, f) {
|
|
8706
8706
|
super(c, f);
|
|
8707
8707
|
const b = a.a.find(c.domNode.parentNode);
|
|
8708
8708
|
f.addEventListener("scroll", (T) => {
|
|
8709
|
-
const
|
|
8710
|
-
|
|
8709
|
+
const C = b.getModule("better-table");
|
|
8710
|
+
C.columnTool && (C.columnTool.domNode.scrollLeft = T.target.scrollLeft), C.tableSelection && C.tableSelection.selectedTds.length > 0 && C.tableSelection.repositionHelpLines();
|
|
8711
8711
|
}, !1);
|
|
8712
8712
|
}
|
|
8713
8713
|
table() {
|
|
8714
8714
|
return this.children.head;
|
|
8715
8715
|
}
|
|
8716
8716
|
}
|
|
8717
|
-
|
|
8717
|
+
L.blotName = "table-view", L.className = "quill-better-table-wrapper", L.tagName = "DIV", L.allowedChildren = [_], _.requiredContainer = L, _.allowedChildren = [H, N], H.requiredContainer = _, H.allowedChildren = [$], $.requiredContainer = H, $.allowedChildren = [S], S.requiredContainer = $, S.allowedChildren = [j, nt], j.requiredContainer = S, N.allowedChildren = [z], N.requiredContainer = _, z.requiredContainer = N;
|
|
8718
8718
|
function V() {
|
|
8719
8719
|
const M = Math.random().toString(36).slice(2, 6);
|
|
8720
8720
|
return "row-".concat(M);
|
|
@@ -8741,29 +8741,29 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8741
8741
|
}
|
|
8742
8742
|
mouseDownHandler(c) {
|
|
8743
8743
|
if (c.button !== 0 || !c.target.closest(".quill-better-table")) return;
|
|
8744
|
-
this.quill.root.addEventListener("mousemove",
|
|
8744
|
+
this.quill.root.addEventListener("mousemove", C, !1), this.quill.root.addEventListener("mouseup", B, !1);
|
|
8745
8745
|
const f = this, b = c.target.closest("td[data-row]"), T = d(b.getBoundingClientRect(), this.quill.root.parentNode);
|
|
8746
8746
|
this.dragging = !0, this.boundary = dt(T, T), this.correctBoundary(), this.selectedTds = this.computeSelectedTds(), this.repositionHelpLines();
|
|
8747
|
-
function
|
|
8747
|
+
function C(U) {
|
|
8748
8748
|
if (U.button !== 0 || !U.target.closest(".quill-better-table")) return;
|
|
8749
8749
|
const G = U.target.closest("td[data-row]"), F = d(G.getBoundingClientRect(), f.quill.root.parentNode);
|
|
8750
8750
|
f.boundary = dt(T, F), f.correctBoundary(), f.selectedTds = f.computeSelectedTds(), f.repositionHelpLines(), b !== G && f.quill.blur();
|
|
8751
8751
|
}
|
|
8752
8752
|
function B(U) {
|
|
8753
|
-
f.quill.root.removeEventListener("mousemove",
|
|
8753
|
+
f.quill.root.removeEventListener("mousemove", C, !1), f.quill.root.removeEventListener("mouseup", B, !1), f.dragging = !1;
|
|
8754
8754
|
}
|
|
8755
8755
|
}
|
|
8756
8756
|
correctBoundary() {
|
|
8757
8757
|
a.a.find(this.table).descendants(S).forEach((b) => {
|
|
8758
8758
|
let {
|
|
8759
8759
|
x: T,
|
|
8760
|
-
y:
|
|
8760
|
+
y: C,
|
|
8761
8761
|
width: B,
|
|
8762
8762
|
height: U
|
|
8763
8763
|
} = d(b.domNode.getBoundingClientRect(), this.quill.root.parentNode);
|
|
8764
|
-
(T + ht >= this.boundary.x && T + ht <= this.boundary.x1 || T - ht + B >= this.boundary.x && T - ht + B <= this.boundary.x1) && (
|
|
8764
|
+
(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 + U >= this.boundary.y && C - ht + U <= this.boundary.y1) && (this.boundary = dt(this.boundary, {
|
|
8765
8765
|
x: T,
|
|
8766
|
-
y:
|
|
8766
|
+
y: C,
|
|
8767
8767
|
width: B,
|
|
8768
8768
|
height: U
|
|
8769
8769
|
}));
|
|
@@ -8772,12 +8772,12 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8772
8772
|
computeSelectedTds() {
|
|
8773
8773
|
return a.a.find(this.table).descendants(S).reduce((b, T) => {
|
|
8774
8774
|
let {
|
|
8775
|
-
x:
|
|
8775
|
+
x: C,
|
|
8776
8776
|
y: B,
|
|
8777
8777
|
width: U,
|
|
8778
8778
|
height: G
|
|
8779
8779
|
} = d(T.domNode.getBoundingClientRect(), this.quill.root.parentNode);
|
|
8780
|
-
return
|
|
8780
|
+
return C + ht >= this.boundary.x && C - ht + U <= this.boundary.x1 && B + ht >= this.boundary.y && B - ht + G <= this.boundary.y1 && b.push(T), b;
|
|
8781
8781
|
}, []);
|
|
8782
8782
|
}
|
|
8783
8783
|
repositionHelpLines() {
|
|
@@ -8831,12 +8831,12 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8831
8831
|
}
|
|
8832
8832
|
}
|
|
8833
8833
|
function dt(M, c) {
|
|
8834
|
-
let f = Math.min(M.x, c.x, M.x + M.width - 1, c.x + c.width - 1), b = Math.max(M.x, c.x, M.x + M.width - 1, c.x + c.width - 1), T = Math.min(M.y, c.y, M.y + M.height - 1, c.y + c.height - 1),
|
|
8834
|
+
let f = Math.min(M.x, c.x, M.x + M.width - 1, c.x + c.width - 1), b = Math.max(M.x, c.x, M.x + M.width - 1, c.x + c.width - 1), T = Math.min(M.y, c.y, M.y + M.height - 1, c.y + c.height - 1), C = Math.max(M.y, c.y, M.y + M.height - 1, c.y + c.height - 1), B = b - f, U = C - T;
|
|
8835
8835
|
return {
|
|
8836
8836
|
x: f,
|
|
8837
8837
|
x1: b,
|
|
8838
8838
|
y: T,
|
|
8839
|
-
y1:
|
|
8839
|
+
y1: C,
|
|
8840
8840
|
width: B,
|
|
8841
8841
|
height: U
|
|
8842
8842
|
};
|
|
@@ -8883,11 +8883,11 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8883
8883
|
text: "Merge selected cells",
|
|
8884
8884
|
iconSrc: ie.a,
|
|
8885
8885
|
handler() {
|
|
8886
|
-
const M = a.a.find(this.table), c = M.rows().reduce((T,
|
|
8887
|
-
let B = d(
|
|
8886
|
+
const M = a.a.find(this.table), c = M.rows().reduce((T, C) => {
|
|
8887
|
+
let B = d(C.domNode.getBoundingClientRect(), this.quill.root.parentNode);
|
|
8888
8888
|
return B.y > this.boundary.y - xt && B.y + B.height < this.boundary.y + this.boundary.height + xt && (T += 1), T;
|
|
8889
|
-
}, 0), f = this.columnToolCells.reduce((T,
|
|
8890
|
-
let B = d(
|
|
8889
|
+
}, 0), f = this.columnToolCells.reduce((T, C) => {
|
|
8890
|
+
let B = d(C.getBoundingClientRect(), this.quill.root.parentNode);
|
|
8891
8891
|
return B.x > this.boundary.x - xt && B.x + B.width < this.boundary.x + this.boundary.width + xt && (T += 1), T;
|
|
8892
8892
|
}, 0), b = M.mergeCells(this.boundary, this.selectedTds, c, f, this.quill.root.parentNode);
|
|
8893
8893
|
this.quill.update(a.a.sources.USER), this.tableSelection.setSelection(b.domNode.getBoundingClientRect(), b.domNode.getBoundingClientRect());
|
|
@@ -8950,9 +8950,9 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8950
8950
|
width: "".concat(St, "px")
|
|
8951
8951
|
});
|
|
8952
8952
|
for (let U in this.menuItems)
|
|
8953
|
-
this.menuItems[U] && (this.domNode.appendChild(this.menuItemCreator(Object.assign({}, Pe[U], this.menuItems[U]))), ["insertRowDown", "unmergeCells"].indexOf(U) > -1 && this.domNode.appendChild(
|
|
8954
|
-
this.options.color && this.options.color !== !1 && (this.domNode.appendChild(
|
|
8955
|
-
function
|
|
8953
|
+
this.menuItems[U] && (this.domNode.appendChild(this.menuItemCreator(Object.assign({}, Pe[U], this.menuItems[U]))), ["insertRowDown", "unmergeCells"].indexOf(U) > -1 && this.domNode.appendChild(C()));
|
|
8954
|
+
this.options.color && this.options.color !== !1 && (this.domNode.appendChild(C()), this.domNode.appendChild(B(this.colorSubTitle)), this.domNode.appendChild(this.colorsItemCreator(this.cellColors)));
|
|
8955
|
+
function C() {
|
|
8956
8956
|
const U = document.createElement("div");
|
|
8957
8957
|
return U.classList.add("qlbt-operation-menu-dividing"), U;
|
|
8958
8958
|
}
|
|
@@ -8963,16 +8963,16 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8963
8963
|
}
|
|
8964
8964
|
colorsItemCreator(c) {
|
|
8965
8965
|
const f = this, b = document.createElement("div");
|
|
8966
|
-
b.classList.add("qlbt-operation-color-picker"), c.forEach((
|
|
8967
|
-
let B = T(
|
|
8966
|
+
b.classList.add("qlbt-operation-color-picker"), c.forEach((C) => {
|
|
8967
|
+
let B = T(C);
|
|
8968
8968
|
b.appendChild(B);
|
|
8969
8969
|
});
|
|
8970
|
-
function T(
|
|
8970
|
+
function T(C) {
|
|
8971
8971
|
const B = document.createElement("div");
|
|
8972
|
-
return B.classList.add("qlbt-operation-color-picker-item"), B.setAttribute("data-color",
|
|
8972
|
+
return B.classList.add("qlbt-operation-color-picker-item"), B.setAttribute("data-color", C), B.style.backgroundColor = C, B.addEventListener("click", function() {
|
|
8973
8973
|
const U = f.tableSelection.selectedTds;
|
|
8974
8974
|
U && U.length > 0 && U.forEach((G) => {
|
|
8975
|
-
G.format("cell-bg",
|
|
8975
|
+
G.format("cell-bg", C);
|
|
8976
8976
|
});
|
|
8977
8977
|
}, !1), B;
|
|
8978
8978
|
}
|
|
@@ -8984,29 +8984,29 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8984
8984
|
iconSrc: b,
|
|
8985
8985
|
handler: T
|
|
8986
8986
|
} = c;
|
|
8987
|
-
const
|
|
8988
|
-
|
|
8987
|
+
const C = document.createElement("div");
|
|
8988
|
+
C.classList.add("qlbt-operation-menu-item");
|
|
8989
8989
|
const B = document.createElement("span");
|
|
8990
8990
|
B.classList.add("qlbt-operation-menu-icon"), B.innerHTML = b;
|
|
8991
8991
|
const U = document.createElement("span");
|
|
8992
|
-
return U.classList.add("qlbt-operation-menu-text"), U.innerText = f,
|
|
8992
|
+
return U.classList.add("qlbt-operation-menu-text"), U.innerText = f, C.appendChild(B), C.appendChild(U), C.addEventListener("click", T.bind(this), !1), C;
|
|
8993
8993
|
}
|
|
8994
8994
|
}
|
|
8995
8995
|
function te(M, c, f, b) {
|
|
8996
|
-
return M.reduce((T,
|
|
8997
|
-
let B = d(
|
|
8998
|
-
return f(B, c) && (T = M.indexOf(
|
|
8996
|
+
return M.reduce((T, C) => {
|
|
8997
|
+
let B = d(C.getBoundingClientRect(), b);
|
|
8998
|
+
return f(B, c) && (T = M.indexOf(C)), T;
|
|
8999
8999
|
}, !1);
|
|
9000
9000
|
}
|
|
9001
9001
|
function Ce(M, c, f, b) {
|
|
9002
|
-
return M.reduce((T,
|
|
9003
|
-
let B = d(
|
|
9004
|
-
return f(B, c) && T.push(M.indexOf(
|
|
9002
|
+
return M.reduce((T, C) => {
|
|
9003
|
+
let B = d(C.getBoundingClientRect(), b);
|
|
9004
|
+
return f(B, c) && T.push(M.indexOf(C)), T;
|
|
9005
9005
|
}, []);
|
|
9006
9006
|
}
|
|
9007
9007
|
const Ot = a.a.import("delta");
|
|
9008
9008
|
function re(M, c, f) {
|
|
9009
|
-
const b = M.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode,
|
|
9009
|
+
const b = M.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, C = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("td")), U = C.indexOf(b) + 1, G = B.indexOf(M) + 1, F = M.getAttribute("colspan") || !1, Y = M.getAttribute("rowspan") || !1, it = M.getAttribute("data-cell-bg") || M.style.backgroundColor;
|
|
9010
9010
|
return c.length() === 0 ? (c = new Ot().insert(`
|
|
9011
9011
|
`, {
|
|
9012
9012
|
"table-cell-line": {
|
|
@@ -9046,7 +9046,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9046
9046
|
}, 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()));
|
|
9047
9047
|
}
|
|
9048
9048
|
function Ft(M, c, f) {
|
|
9049
|
-
const b = M.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode,
|
|
9049
|
+
const b = M.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, C = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("th")), U = C.indexOf(b) + 1, G = B.indexOf(M) + 1, F = M.getAttribute("colspan") || !1, Y = M.getAttribute("rowspan") || !1;
|
|
9050
9050
|
return c.length() === 0 ? (c = new Ot().insert(`
|
|
9051
9051
|
`, {
|
|
9052
9052
|
"table-cell-line": {
|
|
@@ -9115,13 +9115,13 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9115
9115
|
const dn = a.a.import("core/module"), Ue = a.a.import("delta");
|
|
9116
9116
|
class Qe extends dn {
|
|
9117
9117
|
static register() {
|
|
9118
|
-
a.a.register(z, !0), a.a.register(N, !0), a.a.register(
|
|
9118
|
+
a.a.register(z, !0), a.a.register(N, !0), a.a.register(j, !0), a.a.register(S, !0), a.a.register($, !0), a.a.register(H, !0), a.a.register(_, !0), a.a.register(L, !0), a.a.register(L, !0);
|
|
9119
9119
|
}
|
|
9120
9120
|
constructor(c, f) {
|
|
9121
9121
|
super(c, f), this.quill.root.addEventListener("click", (T) => {
|
|
9122
|
-
const
|
|
9123
|
-
if (!
|
|
9124
|
-
const B =
|
|
9122
|
+
const C = E(T);
|
|
9123
|
+
if (!C || C.length <= 0) return;
|
|
9124
|
+
const B = C.filter((U) => U.tagName && U.tagName.toUpperCase() === "TABLE" && U.classList.contains("quill-better-table"))[0];
|
|
9125
9125
|
if (B) {
|
|
9126
9126
|
if (this.table === B) return;
|
|
9127
9127
|
this.table && this.hideTableTools(), this.showTableTools(B, c, f);
|
|
@@ -9129,9 +9129,9 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9129
9129
|
}, !1), this.quill.root.addEventListener("contextmenu", (T) => {
|
|
9130
9130
|
if (!this.table) return !0;
|
|
9131
9131
|
T.preventDefault();
|
|
9132
|
-
const
|
|
9133
|
-
if (!
|
|
9134
|
-
const B =
|
|
9132
|
+
const C = E(T);
|
|
9133
|
+
if (!C || C.length <= 0) return;
|
|
9134
|
+
const B = C.filter((Y) => Y.tagName && Y.tagName.toUpperCase() === "TABLE" && Y.classList.contains("quill-better-table"))[0], U = 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];
|
|
9135
9135
|
let F = this.tableSelection.selectedTds.map((Y) => Y.domNode).includes(G);
|
|
9136
9136
|
(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({
|
|
9137
9137
|
table: B,
|
|
@@ -9142,10 +9142,10 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9142
9142
|
}, c, f.operationMenu));
|
|
9143
9143
|
}, !1), c.getModule("keyboard"), c.keyboard.addBinding({
|
|
9144
9144
|
key: "Backspace"
|
|
9145
|
-
}, {}, function(T,
|
|
9145
|
+
}, {}, function(T, C) {
|
|
9146
9146
|
if (T.index === 0 || this.quill.getLength() <= 1) return !0;
|
|
9147
9147
|
const [B] = this.quill.getLine(T.index);
|
|
9148
|
-
if (
|
|
9148
|
+
if (C.offset === 0) {
|
|
9149
9149
|
const [U] = this.quill.getLine(T.index - 1);
|
|
9150
9150
|
if (U != null && U.statics.blotName === "table-cell-line" && B.statics.blotName !== "table-cell-line")
|
|
9151
9151
|
return !1;
|
|
@@ -9159,24 +9159,24 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9159
9159
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.quill.getSelection();
|
|
9160
9160
|
if (c == null) return [null, null, null, -1];
|
|
9161
9161
|
const [f, b] = this.quill.getLine(c.index);
|
|
9162
|
-
if (f == null || f.statics.blotName !==
|
|
9162
|
+
if (f == null || f.statics.blotName !== j.blotName)
|
|
9163
9163
|
return [null, null, null, -1];
|
|
9164
|
-
const T = f.tableCell(),
|
|
9165
|
-
return [
|
|
9164
|
+
const T = f.tableCell(), C = T.row();
|
|
9165
|
+
return [C.table(), C, T, b];
|
|
9166
9166
|
}
|
|
9167
9167
|
insertTable(c, f) {
|
|
9168
9168
|
const b = this.quill.getSelection(!0);
|
|
9169
9169
|
if (b == null) return;
|
|
9170
|
-
let T = this.quill.getLeaf(b.index)[0],
|
|
9170
|
+
let T = this.quill.getLeaf(b.index)[0], C = new Ue().retain(b.index);
|
|
9171
9171
|
if (Je(T)) {
|
|
9172
9172
|
console.warn("Can not insert table into a table cell.");
|
|
9173
9173
|
return;
|
|
9174
9174
|
}
|
|
9175
|
-
|
|
9176
|
-
`),
|
|
9175
|
+
C.insert(`
|
|
9176
|
+
`), C = new Array(f).fill(`
|
|
9177
9177
|
`).reduce((B, U) => (B.insert(U, {
|
|
9178
9178
|
"table-col": !0
|
|
9179
|
-
}), B),
|
|
9179
|
+
}), B), C), C = new Array(c).fill(0).reduce((B) => {
|
|
9180
9180
|
let U = V();
|
|
9181
9181
|
return new Array(f).fill(`
|
|
9182
9182
|
`).reduce((G, F) => (G.insert(F, {
|
|
@@ -9185,10 +9185,10 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9185
9185
|
cell: W()
|
|
9186
9186
|
}
|
|
9187
9187
|
}), G), B);
|
|
9188
|
-
},
|
|
9188
|
+
}, C), this.quill.updateContents(C, a.a.sources.USER), this.quill.setSelection(b.index + f + 1, a.a.sources.API);
|
|
9189
9189
|
}
|
|
9190
9190
|
showTableTools(c, f, b) {
|
|
9191
|
-
this.table = c, this.columnTool = new
|
|
9191
|
+
this.table = c, this.columnTool = new P(c, f, b), this.tableSelection = new lt(c, f, b);
|
|
9192
9192
|
}
|
|
9193
9193
|
hideTableTools() {
|
|
9194
9194
|
this.columnTool && this.columnTool.destroy(), this.tableSelection && this.tableSelection.destroy(), this.tableOperationMenu && this.tableOperationMenu.destroy(), this.columnTool = null, this.tableSelection = null, this.tableOperationMenu = null, this.table = null;
|
|
@@ -9221,7 +9221,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9221
9221
|
if (this.quill.selection && this.quill.selection.composing) return;
|
|
9222
9222
|
const f = a.a.imports.parchment.Scope;
|
|
9223
9223
|
M.length > 0 && this.quill.scroll.deleteAt(M.index, M.length);
|
|
9224
|
-
const b = Object.keys(c.format).reduce((T,
|
|
9224
|
+
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), {});
|
|
9225
9225
|
this.quill.insertText(M.index, `
|
|
9226
9226
|
`, b["table-cell-line"], a.a.sources.USER), this.quill.setSelection(M.index + 1, a.a.sources.SILENT), this.quill.focus(), Object.keys(c.format).forEach((T) => {
|
|
9227
9227
|
b[T] == null && (Array.isArray(c.format[T]) || T !== "link" && this.quill.format(T, c.format[T], a.a.sources.USER));
|
|
@@ -9248,8 +9248,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9248
9248
|
handler(M, c) {
|
|
9249
9249
|
const f = c.line.prev;
|
|
9250
9250
|
if (f && f.statics.blotName === "table-view") {
|
|
9251
|
-
const b = f.table().rows(),
|
|
9252
|
-
return this.quill.setSelection(
|
|
9251
|
+
const b = f.table().rows(), C = b[b.length - 1].children.head.children.head;
|
|
9252
|
+
return this.quill.setSelection(C.offset(this.quill.scroll), 0, a.a.sources.USER), !1;
|
|
9253
9253
|
}
|
|
9254
9254
|
return !0;
|
|
9255
9255
|
}
|
|
@@ -9263,9 +9263,9 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9263
9263
|
handler(c, f) {
|
|
9264
9264
|
const b = M ? "prev" : "next";
|
|
9265
9265
|
if (f.line[b] != null) return !0;
|
|
9266
|
-
const
|
|
9266
|
+
const C = f.line.parent, B = C.parent[b];
|
|
9267
9267
|
if (B != null && B.statics.blotName === "table-row") {
|
|
9268
|
-
let U = B.children.head, G = parseInt(U.formats().colspan, 10), F =
|
|
9268
|
+
let U = B.children.head, G = parseInt(U.formats().colspan, 10), F = C, Y = parseInt(F.formats().colspan, 10);
|
|
9269
9269
|
for (; F.prev != null; )
|
|
9270
9270
|
F = F.prev, Y += parseInt(F.formats().colspan, 10);
|
|
9271
9271
|
for (; U.next != null && G < Y; )
|
|
@@ -9273,7 +9273,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9273
9273
|
const it = U.offset(this.quill.scroll);
|
|
9274
9274
|
this.quill.setSelection(it, 0, a.a.sources.USER);
|
|
9275
9275
|
} else {
|
|
9276
|
-
const U =
|
|
9276
|
+
const U = C.table().parent[b];
|
|
9277
9277
|
U != null && (M ? 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));
|
|
9278
9278
|
}
|
|
9279
9279
|
return !1;
|
|
@@ -9379,45 +9379,44 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = R.import("delta"), J1 = Wo({
|
|
|
9379
9379
|
);
|
|
9380
9380
|
const o = () => {
|
|
9381
9381
|
var x;
|
|
9382
|
-
if (
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9382
|
+
if (s.value) {
|
|
9383
|
+
if (n = a(), r.modules)
|
|
9384
|
+
if (Array.isArray(r.modules))
|
|
9385
|
+
for (const v of r.modules)
|
|
9386
|
+
i(`modules/${v.name}`, v.module);
|
|
9387
|
+
else
|
|
9388
|
+
i(`modules/${r.modules.name}`, r.modules.module);
|
|
9389
|
+
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", (v) => {
|
|
9390
|
+
["picker-hue-range-slider", "picker-opacity-slider"].includes(
|
|
9391
|
+
v.target.getAttribute("class")
|
|
9392
|
+
) || v.target.tagName === "INPUT" || v.preventDefault();
|
|
9393
|
+
}), t.emit("ready", e), e.root.addEventListener("paste", function() {
|
|
9394
|
+
const v = new Set(e.root.querySelectorAll("img"));
|
|
9395
|
+
setTimeout(() => {
|
|
9396
|
+
e.root.querySelectorAll("img").forEach((j) => {
|
|
9397
|
+
if (v.has(j)) return;
|
|
9398
|
+
const S = j.getAttribute("src");
|
|
9399
|
+
if (S && (S.startsWith("data:image/") || r.isTextOnly)) {
|
|
9400
|
+
const $ = R.find(j);
|
|
9401
|
+
$ ? $.deleteAt(0) : j.remove();
|
|
9402
|
+
}
|
|
9403
|
+
});
|
|
9404
|
+
}, 10);
|
|
9401
9405
|
});
|
|
9402
9406
|
}
|
|
9403
|
-
e.root.addEventListener("paste", function() {
|
|
9404
|
-
setTimeout(() => {
|
|
9405
|
-
v();
|
|
9406
|
-
}, 10);
|
|
9407
|
-
});
|
|
9408
9407
|
}, a = () => {
|
|
9409
9408
|
const x = {};
|
|
9410
9409
|
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 = {
|
|
9411
9410
|
toolbar: r.id
|
|
9412
9411
|
}), r.modules) {
|
|
9413
9412
|
const v = (() => {
|
|
9414
|
-
var
|
|
9413
|
+
var O, j;
|
|
9415
9414
|
const S = {};
|
|
9416
9415
|
if (Array.isArray(r.modules))
|
|
9417
9416
|
for (const $ of r.modules)
|
|
9418
|
-
S[$.name] = (
|
|
9417
|
+
S[$.name] = (O = $.options) !== null && O !== void 0 ? O : {};
|
|
9419
9418
|
else
|
|
9420
|
-
S[r.modules.name] = (
|
|
9419
|
+
S[r.modules.name] = (j = r.modules.options) !== null && j !== void 0 ? j : {};
|
|
9421
9420
|
return S;
|
|
9422
9421
|
})();
|
|
9423
9422
|
x.modules = Object.assign({}, x.modules, v);
|
|
@@ -9449,10 +9448,10 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = R.import("delta"), J1 = Wo({
|
|
|
9449
9448
|
return !d(y.diff(x));
|
|
9450
9449
|
}
|
|
9451
9450
|
return !1;
|
|
9452
|
-
}, p = (x, v,
|
|
9453
|
-
y = h(Z()), E(r.content) || t.emit("update:content", y), t.emit("textChange", { delta: x, oldContents: v, source:
|
|
9454
|
-
}, w = qi(), A = (x, v,
|
|
9455
|
-
w.value = !!(e != null && e.hasFocus()), t.emit("selectionChange", { range: x, oldRange: v, source:
|
|
9451
|
+
}, p = (x, v, O) => {
|
|
9452
|
+
y = h(Z()), E(r.content) || t.emit("update:content", y), t.emit("textChange", { delta: x, oldContents: v, source: O });
|
|
9453
|
+
}, w = qi(), A = (x, v, O) => {
|
|
9454
|
+
w.value = !!(e != null && e.hasFocus()), t.emit("selectionChange", { range: x, oldRange: v, source: O });
|
|
9456
9455
|
};
|
|
9457
9456
|
Es(w, (x) => {
|
|
9458
9457
|
x ? t.emit("focus", s.value) : t.emit("blur", s.value);
|
|
@@ -9469,7 +9468,7 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = R.import("delta"), J1 = Wo({
|
|
|
9469
9468
|
oldRange: x[2],
|
|
9470
9469
|
source: x[3]
|
|
9471
9470
|
});
|
|
9472
|
-
}, D = () => s.value,
|
|
9471
|
+
}, D = () => s.value, P = () => {
|
|
9473
9472
|
var x;
|
|
9474
9473
|
return (x = e == null ? void 0 : e.getModule("toolbar")) === null || x === void 0 ? void 0 : x.container;
|
|
9475
9474
|
}, K = () => {
|
|
@@ -9478,11 +9477,11 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = R.import("delta"), J1 = Wo({
|
|
|
9478
9477
|
make sure to call this method when the editor ready
|
|
9479
9478
|
or use v-on:ready="onReady(quill)" event instead.`;
|
|
9480
9479
|
}, 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") => {
|
|
9481
|
-
const
|
|
9482
|
-
r.contentType === "html" ? vt(
|
|
9480
|
+
const O = x || (r.contentType === "delta" ? new F1() : "");
|
|
9481
|
+
r.contentType === "html" ? vt(O) : r.contentType === "text" ? bt(O, v) : e == null || e.setContents(O, v), y = h(O);
|
|
9483
9482
|
}, nt = (x, v) => {
|
|
9484
|
-
var
|
|
9485
|
-
return (
|
|
9483
|
+
var O;
|
|
9484
|
+
return (O = e == null ? void 0 : e.getText(x, v)) !== null && O !== void 0 ? O : "";
|
|
9486
9485
|
}, bt = (x, v = "api") => {
|
|
9487
9486
|
e == null || e.setText(x, v);
|
|
9488
9487
|
}, At = () => {
|
|
@@ -9491,8 +9490,8 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = R.import("delta"), J1 = Wo({
|
|
|
9491
9490
|
}, vt = (x) => {
|
|
9492
9491
|
e && (e.root.innerHTML = x);
|
|
9493
9492
|
}, kt = (x, v = "api") => {
|
|
9494
|
-
const
|
|
9495
|
-
|
|
9493
|
+
const O = e == null ? void 0 : e.clipboard.convert(x);
|
|
9494
|
+
O && (e == null || e.setContents(O, v));
|
|
9496
9495
|
}, Lt = () => {
|
|
9497
9496
|
e == null || e.focus();
|
|
9498
9497
|
}, g = () => {
|
|
@@ -9519,7 +9518,7 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = R.import("delta"), J1 = Wo({
|
|
|
9519
9518
|
), {
|
|
9520
9519
|
editor: s,
|
|
9521
9520
|
getEditor: D,
|
|
9522
|
-
getToolbar:
|
|
9521
|
+
getToolbar: P,
|
|
9523
9522
|
getQuill: K,
|
|
9524
9523
|
getContents: Z,
|
|
9525
9524
|
setContents: rt,
|