storybook 9.0.0-alpha.17 → 9.0.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.cjs +48 -49
- package/dist/bin/index.js +55 -56
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +42 -43
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +42 -43
- package/dist/core-server/index.cjs +122 -119
- package/dist/core-server/index.js +1596 -1593
- package/dist/core-server/presets/common-manager.js +5730 -3498
- package/dist/instrumenter/index.cjs +1354 -1711
- package/dist/instrumenter/index.js +188 -545
- package/dist/manager/globals-runtime.js +24667 -22626
- package/dist/manager/runtime.js +4 -2
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +17670 -15630
- package/dist/test/index.cjs +6 -6
- package/dist/test/index.js +6 -6
- package/package.json +1 -1
|
@@ -1742,7 +1742,7 @@ i(Sn, "p");
|
|
|
1742
1742
|
// ../node_modules/tinyrainbow/dist/browser.js
|
|
1743
1743
|
var ie = Sn();
|
|
1744
1744
|
|
|
1745
|
-
// ../node_modules/@vitest/
|
|
1745
|
+
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
1746
1746
|
function jn(e, t) {
|
|
1747
1747
|
return t.forEach(function(r) {
|
|
1748
1748
|
r && typeof r != "string" && !Array.isArray(r) && Object.keys(r).forEach(function(n) {
|
|
@@ -1777,19 +1777,7 @@ function qe(e, t, r, n, o, s, c = ": ") {
|
|
|
1777
1777
|
u += "\u2026";
|
|
1778
1778
|
break;
|
|
1779
1779
|
}
|
|
1780
|
-
let l = s(
|
|
1781
|
-
f.value[0],
|
|
1782
|
-
t,
|
|
1783
|
-
y,
|
|
1784
|
-
n,
|
|
1785
|
-
o
|
|
1786
|
-
), h = s(
|
|
1787
|
-
f.value[1],
|
|
1788
|
-
t,
|
|
1789
|
-
y,
|
|
1790
|
-
n,
|
|
1791
|
-
o
|
|
1792
|
-
);
|
|
1780
|
+
let l = s(f.value[0], t, y, n, o), h = s(f.value[1], t, y, n, o);
|
|
1793
1781
|
u += l + c + h, f = e.next(), f.done ? t.min || (u += ",") : u += `,${t.spacingInner}`;
|
|
1794
1782
|
}
|
|
1795
1783
|
u += t.spacingOuter + r;
|
|
@@ -1826,13 +1814,7 @@ function it(e, t, r, n, o, s) {
|
|
|
1826
1814
|
c += "\u2026";
|
|
1827
1815
|
break;
|
|
1828
1816
|
}
|
|
1829
|
-
(u(e) || y in e) && (c += s(
|
|
1830
|
-
u(e) ? e.getInt8(y) : e[y],
|
|
1831
|
-
t,
|
|
1832
|
-
f,
|
|
1833
|
-
n,
|
|
1834
|
-
o
|
|
1835
|
-
)), y < a - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
|
|
1817
|
+
(u(e) || y in e) && (c += s(u(e) ? e.getInt8(y) : e[y], t, f, n, o)), y < a - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
|
|
1836
1818
|
}
|
|
1837
1819
|
c += t.spacingOuter + r;
|
|
1838
1820
|
}
|
|
@@ -1856,32 +1838,18 @@ i(nr, "printObjectProperties");
|
|
|
1856
1838
|
var $c = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, nt = " ", Rc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
|
|
1857
1839
|
let c = e.toString();
|
|
1858
1840
|
if (c === "ArrayContaining" || c === "ArrayNotContaining")
|
|
1859
|
-
return ++n > t.maxDepth ? `[${c}]` : `${c + nt}[${it(
|
|
1860
|
-
e.sample,
|
|
1861
|
-
t,
|
|
1862
|
-
r,
|
|
1863
|
-
n,
|
|
1864
|
-
o,
|
|
1865
|
-
s
|
|
1866
|
-
)}]`;
|
|
1841
|
+
return ++n > t.maxDepth ? `[${c}]` : `${c + nt}[${it(e.sample, t, r, n, o, s)}]`;
|
|
1867
1842
|
if (c === "ObjectContaining" || c === "ObjectNotContaining")
|
|
1868
|
-
return ++n > t.maxDepth ? `[${c}]` : `${c + nt}{${nr(
|
|
1869
|
-
e.sample,
|
|
1870
|
-
t,
|
|
1871
|
-
r,
|
|
1872
|
-
n,
|
|
1873
|
-
o,
|
|
1874
|
-
s
|
|
1875
|
-
)}}`;
|
|
1843
|
+
return ++n > t.maxDepth ? `[${c}]` : `${c + nt}{${nr(e.sample, t, r, n, o, s)}}`;
|
|
1876
1844
|
if (c === "StringMatching" || c === "StringNotMatching" || c === "StringContaining" || c === "StringNotContaining")
|
|
1877
1845
|
return c + nt + s(e.sample, t, r, n, o);
|
|
1878
1846
|
if (typeof e.toAsymmetricMatcher != "function")
|
|
1879
|
-
throw new TypeError(
|
|
1880
|
-
`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`
|
|
1881
|
-
);
|
|
1847
|
+
throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);
|
|
1882
1848
|
return e.toAsymmetricMatcher();
|
|
1883
|
-
}, "serialize$5"), Ic = /* @__PURE__ */ i((e) => e && e.$$typeof === $c, "test$5"), Nc = {
|
|
1884
|
-
|
|
1849
|
+
}, "serialize$5"), Ic = /* @__PURE__ */ i((e) => e && e.$$typeof === $c, "test$5"), Nc = {
|
|
1850
|
+
serialize: Rc,
|
|
1851
|
+
test: Ic
|
|
1852
|
+
}, jc = " ", Mn = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), Mc = /^(?:HTML\w*Collection|NodeList)$/;
|
|
1885
1853
|
function xc(e) {
|
|
1886
1854
|
return Mn.has(e) || Mc.test(e);
|
|
1887
1855
|
}
|
|
@@ -1893,25 +1861,12 @@ function Fc(e) {
|
|
|
1893
1861
|
i(Fc, "isNamedNodeMap");
|
|
1894
1862
|
var Lc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
|
|
1895
1863
|
let c = e.constructor.name;
|
|
1896
|
-
return ++n > t.maxDepth ? `[${c}]` : (t.min ? "" : c + jc) + (Mn.has(c) ? `{${nr(
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
r,
|
|
1903
|
-
n,
|
|
1904
|
-
o,
|
|
1905
|
-
s
|
|
1906
|
-
)}}` : `[${it(
|
|
1907
|
-
[...e],
|
|
1908
|
-
t,
|
|
1909
|
-
r,
|
|
1910
|
-
n,
|
|
1911
|
-
o,
|
|
1912
|
-
s
|
|
1913
|
-
)}]`);
|
|
1914
|
-
}, "serialize$4"), Dc = { serialize: Lc, test: vc };
|
|
1864
|
+
return ++n > t.maxDepth ? `[${c}]` : (t.min ? "" : c + jc) + (Mn.has(c) ? `{${nr(Fc(e) ? [...e].reduce((u, a) => (u[a.name] = a.value, u),
|
|
1865
|
+
{}) : { ...e }, t, r, n, o, s)}}` : `[${it([...e], t, r, n, o, s)}]`);
|
|
1866
|
+
}, "serialize$4"), Dc = {
|
|
1867
|
+
serialize: Lc,
|
|
1868
|
+
test: vc
|
|
1869
|
+
};
|
|
1915
1870
|
function xn(e) {
|
|
1916
1871
|
return e.replaceAll("<", "<").replaceAll(">", ">");
|
|
1917
1872
|
}
|
|
@@ -1927,9 +1882,7 @@ function or(e, t, r, n, o, s, c) {
|
|
|
1927
1882
|
}
|
|
1928
1883
|
i(or, "printProps");
|
|
1929
1884
|
function ir(e, t, r, n, o, s) {
|
|
1930
|
-
return e.map(
|
|
1931
|
-
(c) => t.spacingOuter + r + (typeof c == "string" ? vn(c, t) : s(c, t, r, n, o))
|
|
1932
|
-
).join("");
|
|
1885
|
+
return e.map((c) => t.spacingOuter + r + (typeof c == "string" ? vn(c, t) : s(c, t, r, n, o))).join("");
|
|
1933
1886
|
}
|
|
1934
1887
|
i(ir, "printChildren");
|
|
1935
1888
|
function vn(e, t) {
|
|
@@ -1969,7 +1922,7 @@ function zc(e) {
|
|
|
1969
1922
|
i(zc, "testNode");
|
|
1970
1923
|
var Wc = /* @__PURE__ */ i((e) => {
|
|
1971
1924
|
var t;
|
|
1972
|
-
return ((t = e
|
|
1925
|
+
return (e == null || (t = e.constructor) === null || t === void 0 ? void 0 : t.name) && zc(e);
|
|
1973
1926
|
}, "test$3");
|
|
1974
1927
|
function Yc(e) {
|
|
1975
1928
|
return e.nodeType === Fn;
|
|
@@ -1989,136 +1942,58 @@ var Vc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
|
|
|
1989
1942
|
if (Gc(e))
|
|
1990
1943
|
return Bc(e.data, t);
|
|
1991
1944
|
let c = Zt(e) ? "DocumentFragment" : e.tagName.toLowerCase();
|
|
1992
|
-
return ++n > t.maxDepth ? cr(c, t) : sr(
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
n,
|
|
2003
|
-
o,
|
|
2004
|
-
s
|
|
2005
|
-
),
|
|
2006
|
-
ir(
|
|
2007
|
-
Array.prototype.slice.call(e.childNodes || e.children),
|
|
2008
|
-
t,
|
|
2009
|
-
r + t.indent,
|
|
2010
|
-
n,
|
|
2011
|
-
o,
|
|
2012
|
-
s
|
|
2013
|
-
),
|
|
2014
|
-
t,
|
|
2015
|
-
r
|
|
2016
|
-
);
|
|
2017
|
-
}, "serialize$3"), Hc = { serialize: Vc, test: Wc }, Kc = "@@__IMMUTABLE_ITERABLE__@@", Jc = "@@__IMMUTABLE_LIST__@@", Xc = "@@__IMMUTABLE_K\
|
|
2018
|
-
EYED__@@", Zc = "@@__IMMUTABLE_MAP__@@", En = "@@__IMMUTABLE_ORDERED__@@", Qc = "@@__IMMUTABLE_RECORD__@@", ea = "@@__IMMUTABLE_SEQ__@@", ta = "\
|
|
2019
|
-
@@__IMMUTABLE_SET__@@", ra = "@@__IMMUTABLE_STACK__@@", Pe = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), ct = /* @__PURE__ */ i(
|
|
2020
|
-
(e) => `[${e}]`, "printAsLeaf"), Ue = " ", An = "\u2026";
|
|
1945
|
+
return ++n > t.maxDepth ? cr(c, t) : sr(c, or(Zt(e) ? [] : Array.from(e.attributes, (u) => u.name).sort(), Zt(e) ? {} : [...e.attributes].
|
|
1946
|
+
reduce((u, a) => (u[a.name] = a.value, u), {}), t, r + t.indent, n, o, s), ir(Array.prototype.slice.call(e.childNodes || e.children), t, r +
|
|
1947
|
+
t.indent, n, o, s), t, r);
|
|
1948
|
+
}, "serialize$3"), Hc = {
|
|
1949
|
+
serialize: Vc,
|
|
1950
|
+
test: Wc
|
|
1951
|
+
}, Kc = "@@__IMMUTABLE_ITERABLE__@@", Jc = "@@__IMMUTABLE_LIST__@@", Xc = "@@__IMMUTABLE_KEYED__@@", Zc = "@@__IMMUTABLE_MAP__@@", En = "@@_\
|
|
1952
|
+
_IMMUTABLE_ORDERED__@@", Qc = "@@__IMMUTABLE_RECORD__@@", ea = "@@__IMMUTABLE_SEQ__@@", ta = "@@__IMMUTABLE_SET__@@", ra = "@@__IMMUTABLE_ST\
|
|
1953
|
+
ACK__@@", Pe = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), ct = /* @__PURE__ */ i((e) => `[${e}]`, "printAsLeaf"), Ue = "\
|
|
1954
|
+
", An = "\u2026";
|
|
2021
1955
|
function na(e, t, r, n, o, s, c) {
|
|
2022
|
-
return ++n > t.maxDepth ? ct(Pe(c)) : `${Pe(c) + Ue}{${qe(
|
|
2023
|
-
e.entries(),
|
|
2024
|
-
t,
|
|
2025
|
-
r,
|
|
2026
|
-
n,
|
|
2027
|
-
o,
|
|
2028
|
-
s
|
|
2029
|
-
)}}`;
|
|
1956
|
+
return ++n > t.maxDepth ? ct(Pe(c)) : `${Pe(c) + Ue}{${qe(e.entries(), t, r, n, o, s)}}`;
|
|
2030
1957
|
}
|
|
2031
1958
|
i(na, "printImmutableEntries");
|
|
2032
1959
|
function oa(e) {
|
|
2033
1960
|
let t = 0;
|
|
2034
|
-
return {
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
1961
|
+
return { next() {
|
|
1962
|
+
if (t < e._keys.length) {
|
|
1963
|
+
let r = e._keys[t++];
|
|
1964
|
+
return {
|
|
1965
|
+
done: !1,
|
|
1966
|
+
value: [r, e.get(r)]
|
|
1967
|
+
};
|
|
2041
1968
|
}
|
|
2042
|
-
|
|
1969
|
+
return {
|
|
1970
|
+
done: !0,
|
|
1971
|
+
value: void 0
|
|
1972
|
+
};
|
|
1973
|
+
} };
|
|
2043
1974
|
}
|
|
2044
1975
|
i(oa, "getRecordEntries");
|
|
2045
1976
|
function ia(e, t, r, n, o, s) {
|
|
2046
1977
|
let c = Pe(e._name || "Record");
|
|
2047
|
-
return ++n > t.maxDepth ? ct(c) : `${c + Ue}{${qe(
|
|
2048
|
-
oa(e),
|
|
2049
|
-
t,
|
|
2050
|
-
r,
|
|
2051
|
-
n,
|
|
2052
|
-
o,
|
|
2053
|
-
s
|
|
2054
|
-
)}}`;
|
|
1978
|
+
return ++n > t.maxDepth ? ct(c) : `${c + Ue}{${qe(oa(e), t, r, n, o, s)}}`;
|
|
2055
1979
|
}
|
|
2056
1980
|
i(ia, "printImmutableRecord");
|
|
2057
1981
|
function sa(e, t, r, n, o, s) {
|
|
2058
1982
|
let c = Pe("Seq");
|
|
2059
|
-
return ++n > t.maxDepth ? ct(c) : e[Xc] ? `${c + Ue}{${
|
|
2060
|
-
e.
|
|
2061
|
-
e.entries(),
|
|
2062
|
-
t,
|
|
2063
|
-
r,
|
|
2064
|
-
n,
|
|
2065
|
-
o,
|
|
2066
|
-
s
|
|
2067
|
-
) : An}}` : `${c + Ue}[${e._iter || e._array || e._collection || e._iterable ? rr(
|
|
2068
|
-
e.values(),
|
|
2069
|
-
t,
|
|
2070
|
-
r,
|
|
2071
|
-
n,
|
|
2072
|
-
o,
|
|
2073
|
-
s
|
|
2074
|
-
) : An}]`;
|
|
1983
|
+
return ++n > t.maxDepth ? ct(c) : e[Xc] ? `${c + Ue}{${e._iter || e._object ? qe(e.entries(), t, r, n, o, s) : An}}` : `${c + Ue}[${e._iter ||
|
|
1984
|
+
e._array || e._collection || e._iterable ? rr(e.values(), t, r, n, o, s) : An}]`;
|
|
2075
1985
|
}
|
|
2076
1986
|
i(sa, "printImmutableSeq");
|
|
2077
1987
|
function Qt(e, t, r, n, o, s, c) {
|
|
2078
|
-
return ++n > t.maxDepth ? ct(Pe(c)) : `${Pe(c) + Ue}[${rr(
|
|
2079
|
-
e.values(),
|
|
2080
|
-
t,
|
|
2081
|
-
r,
|
|
2082
|
-
n,
|
|
2083
|
-
o,
|
|
2084
|
-
s
|
|
2085
|
-
)}]`;
|
|
1988
|
+
return ++n > t.maxDepth ? ct(Pe(c)) : `${Pe(c) + Ue}[${rr(e.values(), t, r, n, o, s)}]`;
|
|
2086
1989
|
}
|
|
2087
1990
|
i(Qt, "printImmutableValues");
|
|
2088
|
-
var ca = /* @__PURE__ */ i((e, t, r, n, o, s) => e[Zc] ? na(
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
s,
|
|
2095
|
-
e[En] ? "OrderedMap" : "Map"
|
|
2096
|
-
) : e[Jc] ? Qt(
|
|
2097
|
-
e,
|
|
2098
|
-
t,
|
|
2099
|
-
r,
|
|
2100
|
-
n,
|
|
2101
|
-
o,
|
|
2102
|
-
s,
|
|
2103
|
-
"List"
|
|
2104
|
-
) : e[ta] ? Qt(
|
|
2105
|
-
e,
|
|
2106
|
-
t,
|
|
2107
|
-
r,
|
|
2108
|
-
n,
|
|
2109
|
-
o,
|
|
2110
|
-
s,
|
|
2111
|
-
e[En] ? "OrderedSet" : "Set"
|
|
2112
|
-
) : e[ra] ? Qt(
|
|
2113
|
-
e,
|
|
2114
|
-
t,
|
|
2115
|
-
r,
|
|
2116
|
-
n,
|
|
2117
|
-
o,
|
|
2118
|
-
s,
|
|
2119
|
-
"Stack"
|
|
2120
|
-
) : e[ea] ? sa(e, t, r, n, o, s) : ia(e, t, r, n, o, s), "serialize$2"), aa = /* @__PURE__ */ i((e) => e && (e[Kc] === !0 || e[Qc] === !0), "\
|
|
2121
|
-
test$2"), ua = { serialize: ca, test: aa };
|
|
1991
|
+
var ca = /* @__PURE__ */ i((e, t, r, n, o, s) => e[Zc] ? na(e, t, r, n, o, s, e[En] ? "OrderedMap" : "Map") : e[Jc] ? Qt(e, t, r, n, o, s, "\
|
|
1992
|
+
List") : e[ta] ? Qt(e, t, r, n, o, s, e[En] ? "OrderedSet" : "Set") : e[ra] ? Qt(e, t, r, n, o, s, "Stack") : e[ea] ? sa(e, t, r, n, o, s) :
|
|
1993
|
+
ia(e, t, r, n, o, s), "serialize$2"), aa = /* @__PURE__ */ i((e) => e && (e[Kc] === !0 || e[Qc] === !0), "test$2"), ua = {
|
|
1994
|
+
serialize: ca,
|
|
1995
|
+
test: aa
|
|
1996
|
+
};
|
|
2122
1997
|
function Bn(e) {
|
|
2123
1998
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2124
1999
|
}
|
|
@@ -2201,7 +2076,7 @@ function fa() {
|
|
|
2201
2076
|
return _n || (_n = 1, er.exports = la()), er.exports;
|
|
2202
2077
|
}
|
|
2203
2078
|
i(fa, "requireReactIs$1");
|
|
2204
|
-
var kn =
|
|
2079
|
+
var kn = fa(), pa = /* @__PURE__ */ Bn(kn), ya = /* @__PURE__ */ jn({
|
|
2205
2080
|
__proto__: null,
|
|
2206
2081
|
default: pa
|
|
2207
2082
|
}, [kn]), tr = { exports: {} };
|
|
@@ -2344,9 +2219,7 @@ var Un = ma(), ha = /* @__PURE__ */ Bn(Un), da = /* @__PURE__ */ jn({
|
|
|
2344
2219
|
"isSuspense",
|
|
2345
2220
|
"isSuspenseList",
|
|
2346
2221
|
"isValidElementType"
|
|
2347
|
-
], be = Object.fromEntries(
|
|
2348
|
-
ba.map((e) => [e, (t) => da[e](t) || ya[e](t)])
|
|
2349
|
-
);
|
|
2222
|
+
], be = Object.fromEntries(ba.map((e) => [e, (t) => da[e](t) || ya[e](t)]));
|
|
2350
2223
|
function qn(e, t = []) {
|
|
2351
2224
|
if (Array.isArray(e))
|
|
2352
2225
|
for (let r of e)
|
|
@@ -2389,57 +2262,23 @@ function Sa(e) {
|
|
|
2389
2262
|
return Object.keys(t).filter((r) => r !== "children" && t[r] !== void 0).sort();
|
|
2390
2263
|
}
|
|
2391
2264
|
i(Sa, "getPropKeys$1");
|
|
2392
|
-
var Ea = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? cr(Pn(e), t) : sr(
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
r + t.indent,
|
|
2399
|
-
n,
|
|
2400
|
-
o,
|
|
2401
|
-
s
|
|
2402
|
-
),
|
|
2403
|
-
ir(
|
|
2404
|
-
qn(e.props.children),
|
|
2405
|
-
t,
|
|
2406
|
-
r + t.indent,
|
|
2407
|
-
n,
|
|
2408
|
-
o,
|
|
2409
|
-
s
|
|
2410
|
-
),
|
|
2411
|
-
t,
|
|
2412
|
-
r
|
|
2413
|
-
), "serialize$1"), Aa = /* @__PURE__ */ i((e) => e != null && be.isElement(e), "test$1"), Oa = { serialize: Ea, test: Aa }, _a = typeof Symbol ==
|
|
2414
|
-
"function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
2265
|
+
var Ea = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? cr(Pn(e), t) : sr(Pn(e), or(Sa(e), e.props, t, r + t.indent, n, o, s), ir(
|
|
2266
|
+
qn(e.props.children), t, r + t.indent, n, o, s), t, r), "serialize$1"), Aa = /* @__PURE__ */ i((e) => e != null && be.isElement(e), "test$1"),
|
|
2267
|
+
Oa = {
|
|
2268
|
+
serialize: Ea,
|
|
2269
|
+
test: Aa
|
|
2270
|
+
}, _a = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
2415
2271
|
function wa(e) {
|
|
2416
2272
|
let { props: t } = e;
|
|
2417
2273
|
return t ? Object.keys(t).filter((r) => t[r] !== void 0).sort() : [];
|
|
2418
2274
|
}
|
|
2419
2275
|
i(wa, "getPropKeys");
|
|
2420
|
-
var Ta = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? cr(e.type, t) : sr(
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
r + t.indent,
|
|
2427
|
-
n,
|
|
2428
|
-
o,
|
|
2429
|
-
s
|
|
2430
|
-
) : "",
|
|
2431
|
-
e.children ? ir(
|
|
2432
|
-
e.children,
|
|
2433
|
-
t,
|
|
2434
|
-
r + t.indent,
|
|
2435
|
-
n,
|
|
2436
|
-
o,
|
|
2437
|
-
s
|
|
2438
|
-
) : "",
|
|
2439
|
-
t,
|
|
2440
|
-
r
|
|
2441
|
-
), "serialize"), Pa = /* @__PURE__ */ i((e) => e && e.$$typeof === _a, "test"), Ca = { serialize: Ta, test: Pa }, zn = Object.prototype.toString,
|
|
2442
|
-
$a = Date.prototype.toISOString, Ra = Error.prototype.toString, Cn = RegExp.prototype.toString;
|
|
2276
|
+
var Ta = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? cr(e.type, t) : sr(e.type, e.props ? or(wa(e), e.props, t, r + t.indent,
|
|
2277
|
+
n, o, s) : "", e.children ? ir(e.children, t, r + t.indent, n, o, s) : "", t, r), "serialize"), Pa = /* @__PURE__ */ i((e) => e && e.$$typeof ===
|
|
2278
|
+
_a, "test"), Ca = {
|
|
2279
|
+
serialize: Ta,
|
|
2280
|
+
test: Pa
|
|
2281
|
+
}, zn = Object.prototype.toString, $a = Date.prototype.toISOString, Ra = Error.prototype.toString, Cn = RegExp.prototype.toString;
|
|
2443
2282
|
function ot(e) {
|
|
2444
2283
|
return typeof e.constructor == "function" && e.constructor.name || "Object";
|
|
2445
2284
|
}
|
|
@@ -2514,37 +2353,11 @@ function Yn(e, t, r, n, o, s) {
|
|
|
2514
2353
|
if (t.callToJSON && !c && e.toJSON && typeof e.toJSON == "function" && !s)
|
|
2515
2354
|
return he(e.toJSON(), t, r, n, o, !0);
|
|
2516
2355
|
let a = zn.call(e);
|
|
2517
|
-
return a === "[object Arguments]" ? c ? "[Arguments]" : `${u ? "" : "Arguments "}[${it(
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
o,
|
|
2523
|
-
he
|
|
2524
|
-
)}]` : Ma(a) ? c ? `[${e.constructor.name}]` : `${u || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name}\
|
|
2525
|
-
`}[${it(e, t, r, n, o, he)}]` : a === "[object Map]" ? c ? "[Map]" : `Map {${qe(
|
|
2526
|
-
e.entries(),
|
|
2527
|
-
t,
|
|
2528
|
-
r,
|
|
2529
|
-
n,
|
|
2530
|
-
o,
|
|
2531
|
-
he,
|
|
2532
|
-
" => "
|
|
2533
|
-
)}}` : a === "[object Set]" ? c ? "[Set]" : `Set {${rr(
|
|
2534
|
-
e.values(),
|
|
2535
|
-
t,
|
|
2536
|
-
r,
|
|
2537
|
-
n,
|
|
2538
|
-
o,
|
|
2539
|
-
he
|
|
2540
|
-
)}}` : c || Ia(e) ? `[${ot(e)}]` : `${u || !t.printBasicPrototype && ot(e) === "Object" ? "" : `${ot(e)} `}{${nr(
|
|
2541
|
-
e,
|
|
2542
|
-
t,
|
|
2543
|
-
r,
|
|
2544
|
-
n,
|
|
2545
|
-
o,
|
|
2546
|
-
he
|
|
2547
|
-
)}}`;
|
|
2356
|
+
return a === "[object Arguments]" ? c ? "[Arguments]" : `${u ? "" : "Arguments "}[${it(e, t, r, n, o, he)}]` : Ma(a) ? c ? `[${e.constructor.
|
|
2357
|
+
name}]` : `${u || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${it(e, t, r, n, o, he)}]` : a ===
|
|
2358
|
+
"[object Map]" ? c ? "[Map]" : `Map {${qe(e.entries(), t, r, n, o, he, " => ")}}` : a === "[object Set]" ? c ? "[Set]" : `Set {${rr(e.values(),
|
|
2359
|
+
t, r, n, o, he)}}` : c || Ia(e) ? `[${ot(e)}]` : `${u || !t.printBasicPrototype && ot(e) === "Object" ? "" : `${ot(e)} `}{${nr(e, t, r, n,
|
|
2360
|
+
o, he)}}`;
|
|
2548
2361
|
}
|
|
2549
2362
|
i(Yn, "printComplexValue");
|
|
2550
2363
|
var Fa = {
|
|
@@ -2559,14 +2372,7 @@ var Fa = {
|
|
|
2559
2372
|
...e instanceof AggregateError ? { errors: e.errors } : {},
|
|
2560
2373
|
...f
|
|
2561
2374
|
}, l = e.name !== "Error" ? e.name : ot(e);
|
|
2562
|
-
return c ? `[${l}]` : `${l} {${qe(
|
|
2563
|
-
Object.entries(y).values(),
|
|
2564
|
-
t,
|
|
2565
|
-
r,
|
|
2566
|
-
n,
|
|
2567
|
-
o,
|
|
2568
|
-
s
|
|
2569
|
-
)}}`;
|
|
2375
|
+
return c ? `[${l}]` : `${l} {${qe(Object.entries(y).values(), t, r, n, o, s)}}`;
|
|
2570
2376
|
}
|
|
2571
2377
|
};
|
|
2572
2378
|
function La(e) {
|
|
@@ -2576,28 +2382,20 @@ i(La, "isNewPlugin");
|
|
|
2576
2382
|
function Gn(e, t, r, n, o, s) {
|
|
2577
2383
|
let c;
|
|
2578
2384
|
try {
|
|
2579
|
-
c = La(e) ? e.serialize(t, r, n, o, s, he) : e.print(
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
(u) => {
|
|
2583
|
-
let a = n + r.indent;
|
|
2584
|
-
return a + u.replaceAll(ja, `
|
|
2385
|
+
c = La(e) ? e.serialize(t, r, n, o, s, he) : e.print(t, (u) => he(u, r, n, o, s), (u) => {
|
|
2386
|
+
let a = n + r.indent;
|
|
2387
|
+
return a + u.replaceAll(ja, `
|
|
2585
2388
|
${a}`);
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
},
|
|
2592
|
-
r.colors
|
|
2593
|
-
);
|
|
2389
|
+
}, {
|
|
2390
|
+
edgeSpacing: r.spacingOuter,
|
|
2391
|
+
min: r.min,
|
|
2392
|
+
spacing: r.spacingInner
|
|
2393
|
+
}, r.colors);
|
|
2594
2394
|
} catch (u) {
|
|
2595
2395
|
throw new st(u.message, u.stack);
|
|
2596
2396
|
}
|
|
2597
2397
|
if (typeof c != "string")
|
|
2598
|
-
throw new TypeError(
|
|
2599
|
-
`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`
|
|
2600
|
-
);
|
|
2398
|
+
throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`);
|
|
2601
2399
|
return c;
|
|
2602
2400
|
}
|
|
2603
2401
|
i(Gn, "printPlugin");
|
|
@@ -2616,20 +2414,8 @@ function he(e, t, r, n, o, s) {
|
|
|
2616
2414
|
let c = Vn(t.plugins, e);
|
|
2617
2415
|
if (c !== null)
|
|
2618
2416
|
return Gn(c, e, t, r, n, o);
|
|
2619
|
-
let u = Wn(
|
|
2620
|
-
|
|
2621
|
-
t.printFunctionName,
|
|
2622
|
-
t.escapeRegex,
|
|
2623
|
-
t.escapeString
|
|
2624
|
-
);
|
|
2625
|
-
return u !== null ? u : Yn(
|
|
2626
|
-
e,
|
|
2627
|
-
t,
|
|
2628
|
-
r,
|
|
2629
|
-
n,
|
|
2630
|
-
o,
|
|
2631
|
-
s
|
|
2632
|
-
);
|
|
2417
|
+
let u = Wn(e, t.printFunctionName, t.escapeRegex, t.escapeString);
|
|
2418
|
+
return u !== null ? u : Yn(e, t, r, n, o, s);
|
|
2633
2419
|
}
|
|
2634
2420
|
i(he, "printer");
|
|
2635
2421
|
var ar = {
|
|
@@ -2658,9 +2444,7 @@ function Da(e) {
|
|
|
2658
2444
|
if (!Object.prototype.hasOwnProperty.call(se, t))
|
|
2659
2445
|
throw new Error(`pretty-format: Unknown option "${t}".`);
|
|
2660
2446
|
if (e.min && e.indent !== void 0 && e.indent !== 0)
|
|
2661
|
-
throw new Error(
|
|
2662
|
-
'pretty-format: Options "min" and "indent" cannot be used together.'
|
|
2663
|
-
);
|
|
2447
|
+
throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
|
|
2664
2448
|
}
|
|
2665
2449
|
i(Da, "validateOptions");
|
|
2666
2450
|
function Ba() {
|
|
@@ -2669,15 +2453,16 @@ function Ba() {
|
|
|
2669
2453
|
if (n && typeof n.close == "string" && typeof n.open == "string")
|
|
2670
2454
|
e[t] = n;
|
|
2671
2455
|
else
|
|
2672
|
-
throw new Error(
|
|
2673
|
-
`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`
|
|
2674
|
-
);
|
|
2456
|
+
throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);
|
|
2675
2457
|
return e;
|
|
2676
2458
|
}, /* @__PURE__ */ Object.create(null));
|
|
2677
2459
|
}
|
|
2678
2460
|
i(Ba, "getColorsHighlight");
|
|
2679
2461
|
function ka() {
|
|
2680
|
-
return Hn.reduce((e, t) => (e[t] = {
|
|
2462
|
+
return Hn.reduce((e, t) => (e[t] = {
|
|
2463
|
+
close: "",
|
|
2464
|
+
open: ""
|
|
2465
|
+
}, e), /* @__PURE__ */ Object.create(null));
|
|
2681
2466
|
}
|
|
2682
2467
|
i(ka, "getColorsEmpty");
|
|
2683
2468
|
function Kn(e) {
|
|
@@ -2723,12 +2508,7 @@ function re(e, t) {
|
|
|
2723
2508
|
if (n !== null)
|
|
2724
2509
|
return Gn(n, e, Nn(t), "", 0, []);
|
|
2725
2510
|
}
|
|
2726
|
-
let r = Wn(
|
|
2727
|
-
e,
|
|
2728
|
-
Kn(t),
|
|
2729
|
-
Jn(t),
|
|
2730
|
-
Xn(t)
|
|
2731
|
-
);
|
|
2511
|
+
let r = Wn(e, Kn(t), Jn(t), Xn(t));
|
|
2732
2512
|
return r !== null ? r : Yn(e, Nn(t), "", 0, []);
|
|
2733
2513
|
}
|
|
2734
2514
|
i(re, "format");
|
|
@@ -3156,14 +2936,7 @@ onstructor" in e ? e.constructor !== Object ? hr(e, r) : Se(e, r) : e === Object
|
|
|
3156
2936
|
i(zt, "inspect");
|
|
3157
2937
|
|
|
3158
2938
|
// ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
3159
|
-
var {
|
|
3160
|
-
AsymmetricMatcher: jf,
|
|
3161
|
-
DOMCollection: Mf,
|
|
3162
|
-
DOMElement: xf,
|
|
3163
|
-
Immutable: vf,
|
|
3164
|
-
ReactElement: Ff,
|
|
3165
|
-
ReactTestComponent: Lf
|
|
3166
|
-
} = ze, Ds = [
|
|
2939
|
+
var { AsymmetricMatcher: jf, DOMCollection: Mf, DOMElement: xf, Immutable: vf, ReactElement: Ff, ReactTestComponent: Lf } = ze, Ds = [
|
|
3167
2940
|
Lf,
|
|
3168
2941
|
Ff,
|
|
3169
2942
|
xf,
|
|
@@ -3177,7 +2950,6 @@ function _e(e, t = 10, { maxLength: r, ...n } = {}) {
|
|
|
3177
2950
|
s = re(e, {
|
|
3178
2951
|
maxDepth: t,
|
|
3179
2952
|
escapeString: !1,
|
|
3180
|
-
// min: true,
|
|
3181
2953
|
plugins: Ds,
|
|
3182
2954
|
...n
|
|
3183
2955
|
});
|
|
@@ -3186,12 +2958,14 @@ function _e(e, t = 10, { maxLength: r, ...n } = {}) {
|
|
|
3186
2958
|
callToJSON: !1,
|
|
3187
2959
|
maxDepth: t,
|
|
3188
2960
|
escapeString: !1,
|
|
3189
|
-
// min: true,
|
|
3190
2961
|
plugins: Ds,
|
|
3191
2962
|
...n
|
|
3192
2963
|
});
|
|
3193
2964
|
}
|
|
3194
|
-
return s.length >= o && t > 1 ? _e(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), {
|
|
2965
|
+
return s.length >= o && t > 1 ? _e(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), {
|
|
2966
|
+
maxLength: r,
|
|
2967
|
+
...n
|
|
2968
|
+
}) : s;
|
|
3195
2969
|
}
|
|
3196
2970
|
i(_e, "stringify");
|
|
3197
2971
|
var Df = /%[sdjifoOc%]/g;
|
|
@@ -3199,7 +2973,10 @@ function Bs(...e) {
|
|
|
3199
2973
|
if (typeof e[0] != "string") {
|
|
3200
2974
|
let s = [];
|
|
3201
2975
|
for (let c = 0; c < e.length; c++)
|
|
3202
|
-
s.push(Qe(e[c], {
|
|
2976
|
+
s.push(Qe(e[c], {
|
|
2977
|
+
depth: 0,
|
|
2978
|
+
colors: !1
|
|
2979
|
+
}));
|
|
3203
2980
|
return s.join(" ");
|
|
3204
2981
|
}
|
|
3205
2982
|
let t = e.length, r = 1, n = e[0], o = String(n).replace(Df, (s) => {
|
|
@@ -3211,8 +2988,10 @@ function Bs(...e) {
|
|
|
3211
2988
|
case "%s": {
|
|
3212
2989
|
let c = e[r++];
|
|
3213
2990
|
return typeof c == "bigint" ? `${c.toString()}n` : typeof c == "number" && c === 0 && 1 / c < 0 ? "-0" : typeof c == "object" && c !==
|
|
3214
|
-
null ? typeof c.toString == "function" && c.toString !== Object.prototype.toString ? c.toString() : Qe(c, {
|
|
3215
|
-
|
|
2991
|
+
null ? typeof c.toString == "function" && c.toString !== Object.prototype.toString ? c.toString() : Qe(c, {
|
|
2992
|
+
depth: 0,
|
|
2993
|
+
colors: !1
|
|
2994
|
+
}) : String(c);
|
|
3216
2995
|
}
|
|
3217
2996
|
case "%d": {
|
|
3218
2997
|
let c = e[r++];
|
|
@@ -3225,7 +3004,10 @@ function Bs(...e) {
|
|
|
3225
3004
|
case "%f":
|
|
3226
3005
|
return Number.parseFloat(String(e[r++])).toString();
|
|
3227
3006
|
case "%o":
|
|
3228
|
-
return Qe(e[r++], {
|
|
3007
|
+
return Qe(e[r++], {
|
|
3008
|
+
showHidden: !0,
|
|
3009
|
+
showProxy: !0
|
|
3010
|
+
});
|
|
3229
3011
|
case "%O":
|
|
3230
3012
|
return Qe(e[r++]);
|
|
3231
3013
|
case "%c":
|
|
@@ -3235,10 +3017,7 @@ function Bs(...e) {
|
|
|
3235
3017
|
return JSON.stringify(e[r++]);
|
|
3236
3018
|
} catch (c) {
|
|
3237
3019
|
let u = c.message;
|
|
3238
|
-
if (
|
|
3239
|
-
// chromium
|
|
3240
|
-
u.includes("circular structure") || u.includes("cyclic structures") || u.includes("cyclic object")
|
|
3241
|
-
)
|
|
3020
|
+
if (u.includes("circular structure") || u.includes("cyclic structures") || u.includes("cyclic object"))
|
|
3242
3021
|
return "[Circular]";
|
|
3243
3022
|
throw c;
|
|
3244
3023
|
}
|
|
@@ -3372,29 +3151,14 @@ function qf(e) {
|
|
|
3372
3151
|
let t = !1, r = [], n = 0, o = null, s = 0, c = 0, u = 0, a = 0, f = 0;
|
|
3373
3152
|
for (; s < e.length; )
|
|
3374
3153
|
e[s][0] === F ? (r[n++] = s, c = a, u = f, a = 0, f = 0, o = e[s][1]) : (e[s][0] === q ? a += e[s][1].length : f += e[s][1].length, o &&
|
|
3375
|
-
o.length <= Math.max(c, u) && o.length <= Math.max(a, f) && (e.splice(
|
|
3376
|
-
|
|
3377
|
-
0,
|
|
3378
|
-
new M(Y, o)
|
|
3379
|
-
), e[r[n - 1] + 1][0] = q, n--, n--, s = n > 0 ? r[n - 1] : -1, c = 0, u = 0, a = 0, f = 0, o = null, t = !0)), s++;
|
|
3154
|
+
o.length <= Math.max(c, u) && o.length <= Math.max(a, f) && (e.splice(r[n - 1], 0, new M(Y, o)), e[r[n - 1] + 1][0] = q, n--, n--, s = n >
|
|
3155
|
+
0 ? r[n - 1] : -1, c = 0, u = 0, a = 0, f = 0, o = null, t = !0)), s++;
|
|
3380
3156
|
for (t && oc(e), Yf(e), s = 1; s < e.length; ) {
|
|
3381
3157
|
if (e[s - 1][0] === Y && e[s][0] === q) {
|
|
3382
3158
|
let y = e[s - 1][1], l = e[s][1], h = qs(y, l), g = qs(l, y);
|
|
3383
|
-
h >= g ? (h >= y.length / 2 || h >= l.length / 2) && (e.splice(
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
new M(F, l.substring(0, h))
|
|
3387
|
-
), e[s - 1][1] = y.substring(
|
|
3388
|
-
0,
|
|
3389
|
-
y.length - h
|
|
3390
|
-
), e[s + 1][1] = l.substring(h), s++) : (g >= y.length / 2 || g >= l.length / 2) && (e.splice(
|
|
3391
|
-
s,
|
|
3392
|
-
0,
|
|
3393
|
-
new M(F, y.substring(0, g))
|
|
3394
|
-
), e[s - 1][0] = q, e[s - 1][1] = l.substring(
|
|
3395
|
-
0,
|
|
3396
|
-
l.length - g
|
|
3397
|
-
), e[s + 1][0] = Y, e[s + 1][1] = y.substring(g), s++), s++;
|
|
3159
|
+
h >= g ? (h >= y.length / 2 || h >= l.length / 2) && (e.splice(s, 0, new M(F, l.substring(0, h))), e[s - 1][1] = y.substring(0, y.length -
|
|
3160
|
+
h), e[s + 1][1] = l.substring(h), s++) : (g >= y.length / 2 || g >= l.length / 2) && (e.splice(s, 0, new M(F, y.substring(0, g))), e[s -
|
|
3161
|
+
1][0] = q, e[s - 1][1] = l.substring(0, l.length - g), e[s + 1][0] = Y, e[s + 1][1] = y.substring(g), s++), s++;
|
|
3398
3162
|
}
|
|
3399
3163
|
s++;
|
|
3400
3164
|
}
|
|
@@ -3435,30 +3199,19 @@ function oc(e) {
|
|
|
3435
3199
|
break;
|
|
3436
3200
|
case F:
|
|
3437
3201
|
r + n > 1 ? (r !== 0 && n !== 0 && (c = Uf(s, o), c !== 0 && (t - r - n > 0 && e[t - r - n - 1][0] === F ? e[t - r - n - 1][1] += s.
|
|
3438
|
-
substring(0, c) : (e.splice(
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
), t++), s = s.substring(c), o = o.substring(c)), c = nc(s, o), c !== 0 && (e[t][1] = s.substring(s.length - c) + e[t][1], s = s.substring(
|
|
3443
|
-
0,
|
|
3444
|
-
s.length - c
|
|
3445
|
-
), o = o.substring(
|
|
3446
|
-
0,
|
|
3447
|
-
o.length - c
|
|
3448
|
-
))), t -= r + n, e.splice(t, r + n), o.length && (e.splice(t, 0, new M(Y, o)), t++), s.length && (e.splice(t, 0, new M(q, s)), t++),
|
|
3449
|
-
t++) : t !== 0 && e[t - 1][0] === F ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, n = 0, r = 0, o = "", s = "";
|
|
3202
|
+
substring(0, c) : (e.splice(0, 0, new M(F, s.substring(0, c))), t++), s = s.substring(c), o = o.substring(c)), c = nc(s, o), c !== 0 &&
|
|
3203
|
+
(e[t][1] = s.substring(s.length - c) + e[t][1], s = s.substring(0, s.length - c), o = o.substring(0, o.length - c))), t -= r + n, e.
|
|
3204
|
+
splice(t, r + n), o.length && (e.splice(t, 0, new M(Y, o)), t++), s.length && (e.splice(t, 0, new M(q, s)), t++), t++) : t !== 0 && e[t -
|
|
3205
|
+
1][0] === F ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, n = 0, r = 0, o = "", s = "";
|
|
3450
3206
|
break;
|
|
3451
3207
|
}
|
|
3452
3208
|
e[e.length - 1][1] === "" && e.pop();
|
|
3453
3209
|
let u = !1;
|
|
3454
3210
|
for (t = 1; t < e.length - 1; )
|
|
3455
|
-
e[t - 1][0] === F && e[t + 1][0] === F && (e[t][1].substring(
|
|
3456
|
-
|
|
3457
|
-
) === e[t
|
|
3458
|
-
|
|
3459
|
-
e[t][1].length - e[t - 1][1].length
|
|
3460
|
-
), e[t + 1][1] = e[t - 1][1] + e[t + 1][1], e.splice(t - 1, 1), u = !0) : e[t][1].substring(0, e[t + 1][1].length) === e[t + 1][1] && (e[t -
|
|
3461
|
-
1][1] += e[t + 1][1], e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t + 1][1], e.splice(t + 1, 1), u = !0)), t++;
|
|
3211
|
+
e[t - 1][0] === F && e[t + 1][0] === F && (e[t][1].substring(e[t][1].length - e[t - 1][1].length) === e[t - 1][1] ? (e[t][1] = e[t - 1][1] +
|
|
3212
|
+
e[t][1].substring(0, e[t][1].length - e[t - 1][1].length), e[t + 1][1] = e[t - 1][1] + e[t + 1][1], e.splice(t - 1, 1), u = !0) : e[t][1].
|
|
3213
|
+
substring(0, e[t + 1][1].length) === e[t + 1][1] && (e[t - 1][1] += e[t + 1][1], e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t +
|
|
3214
|
+
1][1], e.splice(t + 1, 1), u = !0)), t++;
|
|
3462
3215
|
u && oc(e);
|
|
3463
3216
|
}
|
|
3464
3217
|
i(oc, "diff_cleanupMerge");
|
|
@@ -3780,63 +3533,23 @@ function Kf(e, t) {
|
|
|
3780
3533
|
}
|
|
3781
3534
|
i(Kf, "formatTrailingSpaces");
|
|
3782
3535
|
function an(e, t, r, n, o, s) {
|
|
3783
|
-
return e.length !== 0 ? r(
|
|
3784
|
-
`${n} ${Kf(e, o)}`
|
|
3785
|
-
) : n !== " " ? r(n) : t && s.length !== 0 ? r(`${n} ${s}`) : "";
|
|
3536
|
+
return e.length !== 0 ? r(`${n} ${Kf(e, o)}`) : n !== " " ? r(n) : t && s.length !== 0 ? r(`${n} ${s}`) : "";
|
|
3786
3537
|
}
|
|
3787
3538
|
i(an, "printDiffLine");
|
|
3788
|
-
function cc(e, t, {
|
|
3789
|
-
|
|
3790
|
-
aIndicator: n,
|
|
3791
|
-
changeLineTrailingSpaceColor: o,
|
|
3792
|
-
emptyFirstOrLastLinePlaceholder: s
|
|
3793
|
-
}) {
|
|
3794
|
-
return an(
|
|
3795
|
-
e,
|
|
3796
|
-
t,
|
|
3797
|
-
r,
|
|
3798
|
-
n,
|
|
3799
|
-
o,
|
|
3800
|
-
s
|
|
3801
|
-
);
|
|
3539
|
+
function cc(e, t, { aColor: r, aIndicator: n, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
|
|
3540
|
+
return an(e, t, r, n, o, s);
|
|
3802
3541
|
}
|
|
3803
3542
|
i(cc, "printDeleteLine");
|
|
3804
|
-
function ac(e, t, {
|
|
3805
|
-
|
|
3806
|
-
bIndicator: n,
|
|
3807
|
-
changeLineTrailingSpaceColor: o,
|
|
3808
|
-
emptyFirstOrLastLinePlaceholder: s
|
|
3809
|
-
}) {
|
|
3810
|
-
return an(
|
|
3811
|
-
e,
|
|
3812
|
-
t,
|
|
3813
|
-
r,
|
|
3814
|
-
n,
|
|
3815
|
-
o,
|
|
3816
|
-
s
|
|
3817
|
-
);
|
|
3543
|
+
function ac(e, t, { bColor: r, bIndicator: n, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
|
|
3544
|
+
return an(e, t, r, n, o, s);
|
|
3818
3545
|
}
|
|
3819
3546
|
i(ac, "printInsertLine");
|
|
3820
|
-
function uc(e, t, {
|
|
3821
|
-
|
|
3822
|
-
commonIndicator: n,
|
|
3823
|
-
commonLineTrailingSpaceColor: o,
|
|
3824
|
-
emptyFirstOrLastLinePlaceholder: s
|
|
3825
|
-
}) {
|
|
3826
|
-
return an(
|
|
3827
|
-
e,
|
|
3828
|
-
t,
|
|
3829
|
-
r,
|
|
3830
|
-
n,
|
|
3831
|
-
o,
|
|
3832
|
-
s
|
|
3833
|
-
);
|
|
3547
|
+
function uc(e, t, { commonColor: r, commonIndicator: n, commonLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
|
|
3548
|
+
return an(e, t, r, n, o, s);
|
|
3834
3549
|
}
|
|
3835
3550
|
i(uc, "printCommonLine");
|
|
3836
3551
|
function Vs(e, t, r, n, { patchColor: o }) {
|
|
3837
|
-
return o(
|
|
3838
|
-
`@@ -${e + 1},${t - e} +${r + 1},${n - r} @@`
|
|
3839
|
-
);
|
|
3552
|
+
return o(`@@ -${e + 1},${t - e} +${r + 1},${n - r} @@`);
|
|
3840
3553
|
}
|
|
3841
3554
|
i(Vs, "createPatchMark");
|
|
3842
3555
|
function Jf(e, t) {
|
|
@@ -3891,13 +3604,7 @@ function Jf(e, t) {
|
|
|
3891
3604
|
let P = b + n;
|
|
3892
3605
|
for (let N = b; N !== P; N += 1)
|
|
3893
3606
|
S(e[N][1]);
|
|
3894
|
-
l[h] = Vs(
|
|
3895
|
-
g,
|
|
3896
|
-
p,
|
|
3897
|
-
m,
|
|
3898
|
-
d,
|
|
3899
|
-
t
|
|
3900
|
-
), h = l.length, l.push("");
|
|
3607
|
+
l[h] = Vs(g, p, m, d, t), h = l.length, l.push("");
|
|
3901
3608
|
let O = E - o;
|
|
3902
3609
|
g = p + O, m = d + O, p = g, d = m;
|
|
3903
3610
|
for (let N = a - n; N !== a; N += 1)
|
|
@@ -3947,7 +3654,7 @@ function Qf() {
|
|
|
3947
3654
|
compareKeys: void 0,
|
|
3948
3655
|
contextLines: lc,
|
|
3949
3656
|
emptyFirstOrLastLinePlaceholder: "",
|
|
3950
|
-
expand: !
|
|
3657
|
+
expand: !1,
|
|
3951
3658
|
includeChangeCounts: !1,
|
|
3952
3659
|
omitAnnotationLines: !1,
|
|
3953
3660
|
patchColor: ie.yellow,
|
|
@@ -3990,19 +3697,13 @@ function rp(e) {
|
|
|
3990
3697
|
r += 1;
|
|
3991
3698
|
break;
|
|
3992
3699
|
}
|
|
3993
|
-
}), {
|
|
3700
|
+
}), {
|
|
3701
|
+
a: t,
|
|
3702
|
+
b: r
|
|
3703
|
+
};
|
|
3994
3704
|
}
|
|
3995
3705
|
i(rp, "countChanges");
|
|
3996
|
-
function np({
|
|
3997
|
-
aAnnotation: e,
|
|
3998
|
-
aColor: t,
|
|
3999
|
-
aIndicator: r,
|
|
4000
|
-
bAnnotation: n,
|
|
4001
|
-
bColor: o,
|
|
4002
|
-
bIndicator: s,
|
|
4003
|
-
includeChangeCounts: c,
|
|
4004
|
-
omitAnnotationLines: u
|
|
4005
|
-
}, a) {
|
|
3706
|
+
function np({ aAnnotation: e, aColor: t, aIndicator: r, bAnnotation: n, bColor: o, bIndicator: s, includeChangeCounts: c, omitAnnotationLines: u }, a) {
|
|
4006
3707
|
if (u)
|
|
4007
3708
|
return "";
|
|
4008
3709
|
let f = "", y = "";
|
|
@@ -4024,22 +3725,14 @@ ${r.truncateAnnotation}`) : "");
|
|
|
4024
3725
|
}
|
|
4025
3726
|
i(un, "printDiffLines");
|
|
4026
3727
|
function Ht(e, t, r) {
|
|
4027
|
-
let n = we(r), [o, s] = fc(
|
|
4028
|
-
De(e) ? [] : e,
|
|
4029
|
-
De(t) ? [] : t,
|
|
4030
|
-
n
|
|
4031
|
-
);
|
|
3728
|
+
let n = we(r), [o, s] = fc(De(e) ? [] : e, De(t) ? [] : t, n);
|
|
4032
3729
|
return un(o, s, n);
|
|
4033
3730
|
}
|
|
4034
3731
|
i(Ht, "diffLinesUnified");
|
|
4035
3732
|
function op(e, t, r, n, o) {
|
|
4036
3733
|
if (De(e) && De(r) && (e = [], r = []), De(t) && De(n) && (t = [], n = []), e.length !== r.length || t.length !== n.length)
|
|
4037
3734
|
return Ht(e, t, o);
|
|
4038
|
-
let [s, c] = fc(
|
|
4039
|
-
r,
|
|
4040
|
-
n,
|
|
4041
|
-
o
|
|
4042
|
-
), u = 0, a = 0;
|
|
3735
|
+
let [s, c] = fc(r, n, o), u = 0, a = 0;
|
|
4043
3736
|
return s.forEach((f) => {
|
|
4044
3737
|
switch (f[0]) {
|
|
4045
3738
|
case Y:
|
|
@@ -4055,11 +3748,9 @@ function op(e, t, r, n, o) {
|
|
|
4055
3748
|
}
|
|
4056
3749
|
i(op, "diffLinesUnified2");
|
|
4057
3750
|
function fc(e, t, r) {
|
|
4058
|
-
let n = r?.truncateThreshold ?? !1, o = Math.max(
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
), s = n ? Math.min(e.length, o) : e.length, c = n ? Math.min(t.length, o) : t.length, u = s !== e.length || c !== t.length, a = /* @__PURE__ */ i(
|
|
4062
|
-
(g, m) => e[g] === t[m], "isCommon"), f = [], y = 0, l = 0;
|
|
3751
|
+
let n = r?.truncateThreshold ?? !1, o = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), s = n ? Math.min(e.length, o) : e.length, c = n ?
|
|
3752
|
+
Math.min(t.length, o) : t.length, u = s !== e.length || c !== t.length, a = /* @__PURE__ */ i((g, m) => e[g] === t[m], "isCommon"), f = [],
|
|
3753
|
+
y = 0, l = 0;
|
|
4063
3754
|
for (sc(s, c, a, /* @__PURE__ */ i((g, m, p) => {
|
|
4064
3755
|
for (; y !== m; y += 1)
|
|
4065
3756
|
f.push(new M(Y, e[y]));
|
|
@@ -4116,10 +3807,7 @@ function Ks(e) {
|
|
|
4116
3807
|
}
|
|
4117
3808
|
i(Ks, "getNewLineSymbol");
|
|
4118
3809
|
function ip(e, t, r) {
|
|
4119
|
-
let n = r?.truncateThreshold ?? !1, o = Math.max(
|
|
4120
|
-
Math.floor(r?.truncateThreshold ?? 0),
|
|
4121
|
-
0
|
|
4122
|
-
), s = e.length, c = t.length;
|
|
3810
|
+
let n = r?.truncateThreshold ?? !1, o = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), s = e.length, c = t.length;
|
|
4123
3811
|
if (n) {
|
|
4124
3812
|
let g = e.includes(`
|
|
4125
3813
|
`), m = t.includes(`
|
|
@@ -4136,18 +3824,13 @@ function ip(e, t, r) {
|
|
|
4136
3824
|
}
|
|
4137
3825
|
i(ip, "diffStrings");
|
|
4138
3826
|
function sp(e, t, r) {
|
|
4139
|
-
return t.reduce(
|
|
4140
|
-
(n, o) => n + (o[0] === F ? o[1] : o[0] === e && o[1].length !== 0 ? r(o[1]) : ""),
|
|
4141
|
-
""
|
|
4142
|
-
);
|
|
3827
|
+
return t.reduce((n, o) => n + (o[0] === F ? o[1] : o[0] === e && o[1].length !== 0 ? r(o[1]) : ""), "");
|
|
4143
3828
|
}
|
|
4144
3829
|
i(sp, "concatenateRelevantDiffs");
|
|
4145
3830
|
var fn = class fn {
|
|
4146
3831
|
op;
|
|
4147
3832
|
line;
|
|
4148
|
-
// incomplete line
|
|
4149
3833
|
lines;
|
|
4150
|
-
// complete lines
|
|
4151
3834
|
changeColor;
|
|
4152
3835
|
constructor(t, r) {
|
|
4153
3836
|
this.op = t, this.line = [], this.lines = [], this.changeColor = r;
|
|
@@ -4156,22 +3839,15 @@ var fn = class fn {
|
|
|
4156
3839
|
this.pushDiff(new M(this.op, t));
|
|
4157
3840
|
}
|
|
4158
3841
|
pushLine() {
|
|
4159
|
-
this.lines.push(
|
|
4160
|
-
|
|
4161
|
-
this.op,
|
|
4162
|
-
sp(this.op, this.line, this.changeColor)
|
|
4163
|
-
) : this.line[0][0] === this.op ? this.line[0] : new M(this.op, this.line[0][1])
|
|
4164
|
-
// was common diff
|
|
4165
|
-
), this.line.length = 0;
|
|
3842
|
+
this.lines.push(this.line.length !== 1 ? new M(this.op, sp(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] :
|
|
3843
|
+
new M(this.op, this.line[0][1])), this.line.length = 0;
|
|
4166
3844
|
}
|
|
4167
3845
|
isLineEmpty() {
|
|
4168
3846
|
return this.line.length === 0;
|
|
4169
3847
|
}
|
|
4170
|
-
// Minor input to buffer.
|
|
4171
3848
|
pushDiff(t) {
|
|
4172
3849
|
this.line.push(t);
|
|
4173
3850
|
}
|
|
4174
|
-
// Main input to buffer.
|
|
4175
3851
|
align(t) {
|
|
4176
3852
|
let r = t[1];
|
|
4177
3853
|
if (r.includes(`
|
|
@@ -4184,7 +3860,6 @@ var fn = class fn {
|
|
|
4184
3860
|
} else
|
|
4185
3861
|
this.pushDiff(t);
|
|
4186
3862
|
}
|
|
4187
|
-
// Output from buffer.
|
|
4188
3863
|
moveLinesTo(t) {
|
|
4189
3864
|
this.isLineEmpty() || this.pushLine(), t.push(...this.lines), this.lines.length = 0;
|
|
4190
3865
|
}
|
|
@@ -4208,7 +3883,6 @@ var Vt = fn, pn = class pn {
|
|
|
4208
3883
|
flushChangeLines() {
|
|
4209
3884
|
this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines);
|
|
4210
3885
|
}
|
|
4211
|
-
// Input to buffer.
|
|
4212
3886
|
align(t) {
|
|
4213
3887
|
let r = t[0], n = t[1];
|
|
4214
3888
|
if (n.includes(`
|
|
@@ -4225,7 +3899,6 @@ var Vt = fn, pn = class pn {
|
|
|
4225
3899
|
} else
|
|
4226
3900
|
this.pushDiffChangeLines(t);
|
|
4227
3901
|
}
|
|
4228
|
-
// Output from buffer.
|
|
4229
3902
|
getLines() {
|
|
4230
3903
|
return this.flushChangeLines(), this.lines;
|
|
4231
3904
|
}
|
|
@@ -4251,10 +3924,8 @@ i(cp, "getAlignedDiffs");
|
|
|
4251
3924
|
function ap(e, t) {
|
|
4252
3925
|
if (t) {
|
|
4253
3926
|
let r = e.length - 1;
|
|
4254
|
-
return e.some(
|
|
4255
|
-
|
|
4256
|
-
`)
|
|
4257
|
-
);
|
|
3927
|
+
return e.some((n, o) => n[0] === F && (o !== r || n[1] !== `
|
|
3928
|
+
`));
|
|
4258
3929
|
}
|
|
4259
3930
|
return e.some((r) => r[0] === F);
|
|
4260
3931
|
}
|
|
@@ -4263,15 +3934,9 @@ function up(e, t, r) {
|
|
|
4263
3934
|
if (e !== t && e.length !== 0 && t.length !== 0) {
|
|
4264
3935
|
let n = e.includes(`
|
|
4265
3936
|
`) || t.includes(`
|
|
4266
|
-
`), [o, s] = pc(
|
|
4267
|
-
|
|
4268
|
-
` :
|
|
4269
|
-
n ? `${t}
|
|
4270
|
-
` : t,
|
|
4271
|
-
!0,
|
|
4272
|
-
// cleanupSemantic
|
|
4273
|
-
r
|
|
4274
|
-
);
|
|
3937
|
+
`), [o, s] = pc(n ? `${e}
|
|
3938
|
+
` : e, n ? `${t}
|
|
3939
|
+
` : t, !0, r);
|
|
4275
3940
|
if (ap(o, n)) {
|
|
4276
3941
|
let c = we(r), u = cp(o, c.changeColor);
|
|
4277
3942
|
return un(u, s, c);
|
|
@@ -4292,14 +3957,7 @@ function on(e, t) {
|
|
|
4292
3957
|
return r(e);
|
|
4293
3958
|
}
|
|
4294
3959
|
i(on, "getCommonMessage");
|
|
4295
|
-
var {
|
|
4296
|
-
AsymmetricMatcher: lp,
|
|
4297
|
-
DOMCollection: fp,
|
|
4298
|
-
DOMElement: pp,
|
|
4299
|
-
Immutable: yp,
|
|
4300
|
-
ReactElement: gp,
|
|
4301
|
-
ReactTestComponent: mp
|
|
4302
|
-
} = ze, yc = [
|
|
3960
|
+
var { AsymmetricMatcher: lp, DOMCollection: fp, DOMElement: pp, Immutable: yp, ReactElement: gp, ReactTestComponent: mp } = ze, yc = [
|
|
4303
3961
|
mp,
|
|
4304
3962
|
gp,
|
|
4305
3963
|
pp,
|
|
@@ -4308,6 +3966,7 @@ var {
|
|
|
4308
3966
|
lp,
|
|
4309
3967
|
ze.Error
|
|
4310
3968
|
], sn = {
|
|
3969
|
+
maxDepth: 20,
|
|
4311
3970
|
plugins: yc
|
|
4312
3971
|
}, gc = {
|
|
4313
3972
|
callToJSON: !1,
|
|
@@ -4324,14 +3983,16 @@ function hp(e, t, r) {
|
|
|
4324
3983
|
o = e.getExpectedType(), s = o === "string";
|
|
4325
3984
|
}
|
|
4326
3985
|
if (o !== Hs(t)) {
|
|
4327
|
-
let
|
|
4328
|
-
return T.length <=
|
|
4329
|
-
}
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
${
|
|
3986
|
+
let d = function(T) {
|
|
3987
|
+
return T.length <= p ? T : `${T.slice(0, p)}...`;
|
|
3988
|
+
};
|
|
3989
|
+
i(d, "truncate");
|
|
3990
|
+
let { aAnnotation: c, aColor: u, aIndicator: a, bAnnotation: f, bColor: y, bIndicator: l } = we(r), h = cn(gc, r), g = re(e, h), m = re(
|
|
3991
|
+
t, h), p = 1e5;
|
|
3992
|
+
g = d(g), m = d(m);
|
|
3993
|
+
let S = `${u(`${a} ${c}:`)}
|
|
3994
|
+
${g}`, A = `${y(`${l} ${f}:`)}
|
|
3995
|
+
${m}`;
|
|
4335
3996
|
return `${S}
|
|
4336
3997
|
|
|
4337
3998
|
${A}`;
|
|
@@ -4380,10 +4041,7 @@ function rn(e, t, r) {
|
|
|
4380
4041
|
let s = on(ic, r);
|
|
4381
4042
|
if (n === void 0 || n === s) {
|
|
4382
4043
|
let c = cn(gc, r);
|
|
4383
|
-
n = Zs(e, t, c, r), n !== s && !o && (n = `${on(
|
|
4384
|
-
Gf,
|
|
4385
|
-
r
|
|
4386
|
-
)}
|
|
4044
|
+
n = Zs(e, t, c, r), n !== s && !o && (n = `${on(Gf, r)}
|
|
4387
4045
|
|
|
4388
4046
|
${n}`);
|
|
4389
4047
|
}
|
|
@@ -4391,31 +4049,29 @@ ${n}`);
|
|
|
4391
4049
|
}
|
|
4392
4050
|
i(rn, "compareObjects");
|
|
4393
4051
|
function cn(e, t) {
|
|
4394
|
-
let { compareKeys: r, printBasicPrototype: n } = we(t);
|
|
4052
|
+
let { compareKeys: r, printBasicPrototype: n, maxDepth: o } = we(t);
|
|
4395
4053
|
return {
|
|
4396
4054
|
...e,
|
|
4397
4055
|
compareKeys: r,
|
|
4398
|
-
printBasicPrototype: n
|
|
4056
|
+
printBasicPrototype: n,
|
|
4057
|
+
maxDepth: o ?? e.maxDepth
|
|
4399
4058
|
};
|
|
4400
4059
|
}
|
|
4401
4060
|
i(cn, "getFormatOptions");
|
|
4402
4061
|
function Zs(e, t, r, n) {
|
|
4403
|
-
let o = {
|
|
4062
|
+
let o = {
|
|
4063
|
+
...r,
|
|
4064
|
+
indent: 0
|
|
4065
|
+
}, s = re(e, o), c = re(t, o);
|
|
4404
4066
|
if (s === c)
|
|
4405
4067
|
return on(ic, n);
|
|
4406
4068
|
{
|
|
4407
4069
|
let u = re(e, r), a = re(t, r);
|
|
4408
|
-
return op(
|
|
4409
|
-
|
|
4410
|
-
`),
|
|
4411
|
-
|
|
4412
|
-
`),
|
|
4413
|
-
s.split(`
|
|
4414
|
-
`),
|
|
4415
|
-
c.split(`
|
|
4416
|
-
`),
|
|
4417
|
-
n
|
|
4418
|
-
);
|
|
4070
|
+
return op(u.split(`
|
|
4071
|
+
`), a.split(`
|
|
4072
|
+
`), s.split(`
|
|
4073
|
+
`), c.split(`
|
|
4074
|
+
`), n);
|
|
4419
4075
|
}
|
|
4420
4076
|
}
|
|
4421
4077
|
i(Zs, "getObjectsDifference");
|
|
@@ -4436,11 +4092,7 @@ function mc(e, t, r) {
|
|
|
4436
4092
|
`) || e.includes(`
|
|
4437
4093
|
`))
|
|
4438
4094
|
return up(t, e, r);
|
|
4439
|
-
let [y] = pc(t, e, !0), l = y.some((p) => p[0] === F), h = bp(n, o), g = h(n) + Ap(
|
|
4440
|
-
rc(y, Y, l)
|
|
4441
|
-
), m = h(o) + Ep(
|
|
4442
|
-
rc(y, q, l)
|
|
4443
|
-
);
|
|
4095
|
+
let [y] = pc(t, e, !0), l = y.some((p) => p[0] === F), h = bp(n, o), g = h(n) + Ap(rc(y, Y, l)), m = h(o) + Ep(rc(y, q, l));
|
|
4444
4096
|
return `${g}
|
|
4445
4097
|
${m}`;
|
|
4446
4098
|
}
|
|
@@ -4452,32 +4104,30 @@ function hc(e, t, r = /* @__PURE__ */ new WeakSet(), n = /* @__PURE__ */ new Wea
|
|
|
4452
4104
|
return e instanceof Error && t instanceof Error && typeof e.cause < "u" && typeof t.cause > "u" ? (delete e.cause, {
|
|
4453
4105
|
replacedActual: e,
|
|
4454
4106
|
replacedExpected: t
|
|
4455
|
-
}) : tc(e, t) ? r.has(e) || n.has(t) ? {
|
|
4107
|
+
}) : tc(e, t) ? r.has(e) || n.has(t) ? {
|
|
4108
|
+
replacedActual: e,
|
|
4109
|
+
replacedExpected: t
|
|
4110
|
+
} : (r.add(e), n.add(t), Qr(t).forEach((o) => {
|
|
4456
4111
|
let s = t[o], c = e[o];
|
|
4457
4112
|
if (ec(s))
|
|
4458
4113
|
s.asymmetricMatch(c) && (e[o] = s);
|
|
4459
4114
|
else if (ec(c))
|
|
4460
4115
|
c.asymmetricMatch(s) && (t[o] = c);
|
|
4461
4116
|
else if (tc(c, s)) {
|
|
4462
|
-
let u = hc(
|
|
4463
|
-
c,
|
|
4464
|
-
s,
|
|
4465
|
-
r,
|
|
4466
|
-
n
|
|
4467
|
-
);
|
|
4117
|
+
let u = hc(c, s, r, n);
|
|
4468
4118
|
e[o] = u.replacedActual, t[o] = u.replacedExpected;
|
|
4469
4119
|
}
|
|
4470
4120
|
}), {
|
|
4471
4121
|
replacedActual: e,
|
|
4472
4122
|
replacedExpected: t
|
|
4473
|
-
}) : {
|
|
4123
|
+
}) : {
|
|
4124
|
+
replacedActual: e,
|
|
4125
|
+
replacedExpected: t
|
|
4126
|
+
};
|
|
4474
4127
|
}
|
|
4475
4128
|
i(hc, "replaceAsymmetricMatcher");
|
|
4476
4129
|
function bp(...e) {
|
|
4477
|
-
let t = e.reduce(
|
|
4478
|
-
(r, n) => n.length > r ? n.length : r,
|
|
4479
|
-
0
|
|
4480
|
-
);
|
|
4130
|
+
let t = e.reduce((r, n) => n.length > r ? n.length : r, 0);
|
|
4481
4131
|
return (r) => `${r}: ${" ".repeat(t - r.length)}`;
|
|
4482
4132
|
}
|
|
4483
4133
|
i(bp, "getLabelPrinter");
|
|
@@ -4495,10 +4145,7 @@ function Ap(e) {
|
|
|
4495
4145
|
}
|
|
4496
4146
|
i(Ap, "printExpected");
|
|
4497
4147
|
function rc(e, t, r) {
|
|
4498
|
-
return e.reduce(
|
|
4499
|
-
(n, o) => n + (o[0] === F ? o[1] : o[0] === t ? r ? ie.inverse(o[1]) : o[1] : ""),
|
|
4500
|
-
""
|
|
4501
|
-
);
|
|
4148
|
+
return e.reduce((n, o) => n + (o[0] === F ? o[1] : o[0] === t ? r ? ie.inverse(o[1]) : o[1] : ""), "");
|
|
4502
4149
|
}
|
|
4503
4150
|
i(rc, "getCommonAndChangedSubstrings");
|
|
4504
4151
|
|
|
@@ -4584,12 +4231,8 @@ function yn(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
4584
4231
|
try {
|
|
4585
4232
|
return Be(n);
|
|
4586
4233
|
} catch (o) {
|
|
4587
|
-
return Be(
|
|
4588
|
-
|
|
4589
|
-
`Failed to fully serialize error: ${o?.message}
|
|
4590
|
-
Inner error message: ${n?.message}`
|
|
4591
|
-
)
|
|
4592
|
-
);
|
|
4234
|
+
return Be(new Error(`Failed to fully serialize error: ${o?.message}
|
|
4235
|
+
Inner error message: ${n?.message}`));
|
|
4593
4236
|
}
|
|
4594
4237
|
}
|
|
4595
4238
|
i(yn, "processError");
|