storybook 9.0.0-alpha.10 → 9.0.0-alpha.11
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 +63 -64
- package/dist/bin/index.js +59 -60
- package/dist/cli/bin/index.cjs +80 -80
- package/dist/cli/bin/index.js +83 -83
- package/dist/common/index.cjs +61 -62
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +93 -94
- package/dist/component-testing/index.cjs +23 -0
- package/dist/component-testing/index.d.ts +3 -0
- package/dist/component-testing/index.js +5 -0
- package/dist/component-testing/manager.css +170 -0
- package/dist/component-testing/manager.js +3099 -0
- package/dist/component-testing/preview.cjs +40 -0
- package/dist/component-testing/preview.d.ts +5 -0
- package/dist/component-testing/preview.js +25 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.js +1 -0
- package/dist/core-server/presets/common-preset.cjs +1359 -1359
- package/dist/core-server/presets/common-preset.js +1406 -1406
- package/dist/instrumenter/index.cjs +475 -468
- package/dist/instrumenter/index.js +949 -950
- package/dist/manager/globals-runtime.js +55652 -49799
- package/dist/manager-api/index.cjs +206 -206
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +38686 -37394
- package/dist/preview-api/index.cjs +591 -588
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-api/index.js +580 -577
- package/package.json +22 -1
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var hr = Object.
|
|
5
|
-
var yr = Object.
|
|
6
|
-
var
|
|
7
|
-
var
|
|
2
|
+
var gr = Object.create;
|
|
3
|
+
var Tt = Object.defineProperty;
|
|
4
|
+
var hr = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var yr = Object.getOwnPropertyNames;
|
|
6
|
+
var dr = Object.getPrototypeOf, br = Object.prototype.hasOwnProperty;
|
|
7
|
+
var c = (t, e) => Tt(t, "name", { value: e, configurable: !0 });
|
|
8
|
+
var Sr = (t, e) => {
|
|
8
9
|
for (var n in e)
|
|
9
|
-
|
|
10
|
-
},
|
|
10
|
+
Tt(t, n, { get: e[n], enumerable: !0 });
|
|
11
|
+
}, Le = (t, e, n, r) => {
|
|
11
12
|
if (e && typeof e == "object" || typeof e == "function")
|
|
12
|
-
for (let o of
|
|
13
|
-
!
|
|
13
|
+
for (let o of yr(e))
|
|
14
|
+
!br.call(t, o) && o !== n && Tt(t, o, { get: () => e[o], enumerable: !(r = hr(e, o)) || r.enumerable });
|
|
14
15
|
return t;
|
|
15
16
|
};
|
|
16
|
-
var
|
|
17
|
+
var Er = (t, e, n) => (n = t != null ? gr(dr(t)) : {}, Le(
|
|
18
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
+
e || !t || !t.__esModule ? Tt(n, "default", { value: t, enumerable: !0 }) : n,
|
|
23
|
+
t
|
|
24
|
+
)), _r = (t) => Le(Tt({}, "__esModule", { value: !0 }), t);
|
|
17
25
|
|
|
18
26
|
// src/instrumenter/index.ts
|
|
19
|
-
var
|
|
20
|
-
|
|
27
|
+
var ui = {};
|
|
28
|
+
Sr(ui, {
|
|
21
29
|
CallStates: () => cr,
|
|
22
30
|
EVENTS: () => ot,
|
|
23
31
|
instrument: () => mr
|
|
24
32
|
});
|
|
25
|
-
module.exports =
|
|
33
|
+
module.exports = _r(ui);
|
|
26
34
|
|
|
27
35
|
// src/instrumenter/instrumenter.ts
|
|
28
36
|
var fr = require("storybook/internal/client-logger"), yt = require("storybook/internal/core-events"), W = require("@storybook/global");
|
|
29
37
|
|
|
30
38
|
// ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
31
|
-
var
|
|
39
|
+
var Cr = {
|
|
32
40
|
reset: [0, 0],
|
|
33
41
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
34
42
|
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
@@ -70,13 +78,13 @@ var Er = {
|
|
|
70
78
|
bgMagentaBright: [105, 49],
|
|
71
79
|
bgCyanBright: [106, 49],
|
|
72
80
|
bgWhiteBright: [107, 49]
|
|
73
|
-
},
|
|
74
|
-
function
|
|
81
|
+
}, Tr = Object.entries(Cr);
|
|
82
|
+
function Qt(t) {
|
|
75
83
|
return String(t);
|
|
76
84
|
}
|
|
77
|
-
c(
|
|
78
|
-
|
|
79
|
-
|
|
85
|
+
c(Qt, "a");
|
|
86
|
+
Qt.open = "";
|
|
87
|
+
Qt.close = "";
|
|
80
88
|
function xe(t = !1) {
|
|
81
89
|
let e = typeof process < "u" ? process : void 0, n = e?.env || {}, r = e?.argv || [];
|
|
82
90
|
return !("NO_COLOR" in n || r.includes("--no-color")) && ("FORCE_COLOR" in n || r.includes("--color") || e?.platform === "win32" || t && n.
|
|
@@ -99,20 +107,20 @@ function Fe(t = !1) {
|
|
|
99
107
|
}, "g"), o = {
|
|
100
108
|
isColorSupported: e
|
|
101
109
|
}, s = /* @__PURE__ */ c((i) => `\x1B[${i}m`, "d");
|
|
102
|
-
for (let [i, a] of
|
|
110
|
+
for (let [i, a] of Tr)
|
|
103
111
|
o[i] = e ? r(
|
|
104
112
|
s(a[0]),
|
|
105
113
|
s(a[1]),
|
|
106
114
|
a[2]
|
|
107
|
-
) :
|
|
115
|
+
) : Qt;
|
|
108
116
|
return o;
|
|
109
117
|
}
|
|
110
118
|
c(Fe, "p");
|
|
111
119
|
|
|
112
120
|
// ../node_modules/tinyrainbow/dist/node.js
|
|
113
121
|
var De = require("tty");
|
|
114
|
-
var
|
|
115
|
-
var et = Fe(
|
|
122
|
+
var Or = process.env.FORCE_TTY !== void 0 || (0, De.isatty)(1);
|
|
123
|
+
var et = Fe(Or);
|
|
116
124
|
|
|
117
125
|
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
118
126
|
function Ze(t, e) {
|
|
@@ -131,15 +139,15 @@ function Ze(t, e) {
|
|
|
131
139
|
}), Object.freeze(t);
|
|
132
140
|
}
|
|
133
141
|
c(Ze, "_mergeNamespaces");
|
|
134
|
-
function
|
|
142
|
+
function $r(t, e) {
|
|
135
143
|
let n = Object.keys(t), r = e === null ? n : n.sort(e);
|
|
136
144
|
if (Object.getOwnPropertySymbols)
|
|
137
145
|
for (let o of Object.getOwnPropertySymbols(t))
|
|
138
146
|
Object.getOwnPropertyDescriptor(t, o).enumerable && r.push(o);
|
|
139
147
|
return r;
|
|
140
148
|
}
|
|
141
|
-
c(
|
|
142
|
-
function
|
|
149
|
+
c($r, "getKeysOfEnumerableProperties");
|
|
150
|
+
function $t(t, e, n, r, o, s, i = ": ") {
|
|
143
151
|
let a = "", l = 0, m = t.next();
|
|
144
152
|
if (!m.done) {
|
|
145
153
|
a += e.spacingOuter;
|
|
@@ -168,8 +176,8 @@ function Ot(t, e, n, r, o, s, i = ": ") {
|
|
|
168
176
|
}
|
|
169
177
|
return a;
|
|
170
178
|
}
|
|
171
|
-
c(
|
|
172
|
-
function
|
|
179
|
+
c($t, "printIteratorEntries");
|
|
180
|
+
function ee(t, e, n, r, o, s) {
|
|
173
181
|
let i = "", a = 0, l = t.next();
|
|
174
182
|
if (!l.done) {
|
|
175
183
|
i += e.spacingOuter;
|
|
@@ -185,7 +193,7 @@ function ne(t, e, n, r, o, s) {
|
|
|
185
193
|
}
|
|
186
194
|
return i;
|
|
187
195
|
}
|
|
188
|
-
c(
|
|
196
|
+
c(ee, "printIteratorValues");
|
|
189
197
|
function Ft(t, e, n, r, o, s) {
|
|
190
198
|
let i = "";
|
|
191
199
|
t = t instanceof ArrayBuffer ? new DataView(t) : t;
|
|
@@ -211,8 +219,8 @@ function Ft(t, e, n, r, o, s) {
|
|
|
211
219
|
return i;
|
|
212
220
|
}
|
|
213
221
|
c(Ft, "printListItems");
|
|
214
|
-
function
|
|
215
|
-
let i = "", a =
|
|
222
|
+
function ne(t, e, n, r, o, s) {
|
|
223
|
+
let i = "", a = $r(t, e.compareKeys);
|
|
216
224
|
if (a.length > 0) {
|
|
217
225
|
i += e.spacingOuter;
|
|
218
226
|
let l = n + e.indent;
|
|
@@ -224,8 +232,8 @@ function re(t, e, n, r, o, s) {
|
|
|
224
232
|
}
|
|
225
233
|
return i;
|
|
226
234
|
}
|
|
227
|
-
c(
|
|
228
|
-
var
|
|
235
|
+
c(ne, "printObjectProperties");
|
|
236
|
+
var wr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, It = " ", Ar = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
229
237
|
let i = t.toString();
|
|
230
238
|
if (i === "ArrayContaining" || i === "ArrayNotContaining")
|
|
231
239
|
return ++r > e.maxDepth ? `[${i}]` : `${i + It}[${Ft(
|
|
@@ -237,7 +245,7 @@ var Or = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
|
|
|
237
245
|
s
|
|
238
246
|
)}]`;
|
|
239
247
|
if (i === "ObjectContaining" || i === "ObjectNotContaining")
|
|
240
|
-
return ++r > e.maxDepth ? `[${i}]` : `${i + It}{${
|
|
248
|
+
return ++r > e.maxDepth ? `[${i}]` : `${i + It}{${ne(
|
|
241
249
|
t.sample,
|
|
242
250
|
e,
|
|
243
251
|
n,
|
|
@@ -252,21 +260,21 @@ var Or = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
|
|
|
252
260
|
`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`
|
|
253
261
|
);
|
|
254
262
|
return t.toAsymmetricMatcher();
|
|
255
|
-
}, "serialize$5"),
|
|
256
|
-
["DOMStringMap", "NamedNodeMap"]),
|
|
257
|
-
function Pr(t) {
|
|
258
|
-
return Qe.has(t) || Nr.test(t);
|
|
259
|
-
}
|
|
260
|
-
c(Pr, "testName");
|
|
261
|
-
var Ir = /* @__PURE__ */ c((t) => t && t.constructor && !!t.constructor.name && Pr(t.constructor.name), "test$4");
|
|
263
|
+
}, "serialize$5"), Rr = /* @__PURE__ */ c((t) => t && t.$$typeof === wr, "test$5"), Nr = { serialize: Ar, test: Rr }, Pr = " ", Qe = /* @__PURE__ */ new Set(
|
|
264
|
+
["DOMStringMap", "NamedNodeMap"]), Ir = /^(?:HTML\w*Collection|NodeList)$/;
|
|
262
265
|
function Mr(t) {
|
|
266
|
+
return Qe.has(t) || Ir.test(t);
|
|
267
|
+
}
|
|
268
|
+
c(Mr, "testName");
|
|
269
|
+
var Lr = /* @__PURE__ */ c((t) => t && t.constructor && !!t.constructor.name && Mr(t.constructor.name), "test$4");
|
|
270
|
+
function xr(t) {
|
|
263
271
|
return t.constructor.name === "NamedNodeMap";
|
|
264
272
|
}
|
|
265
|
-
c(
|
|
266
|
-
var
|
|
273
|
+
c(xr, "isNamedNodeMap");
|
|
274
|
+
var Fr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
267
275
|
let i = t.constructor.name;
|
|
268
|
-
return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i +
|
|
269
|
-
|
|
276
|
+
return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i + Pr) + (Qe.has(i) ? `{${ne(
|
|
277
|
+
xr(t) ? [...t].reduce(
|
|
270
278
|
(a, l) => (a[l.name] = l.value, a),
|
|
271
279
|
{}
|
|
272
280
|
) : { ...t },
|
|
@@ -283,12 +291,12 @@ var Lr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
283
291
|
o,
|
|
284
292
|
s
|
|
285
293
|
)}]`);
|
|
286
|
-
}, "serialize$4"),
|
|
294
|
+
}, "serialize$4"), Dr = { serialize: Fr, test: Lr };
|
|
287
295
|
function ve(t) {
|
|
288
296
|
return t.replaceAll("<", "<").replaceAll(">", ">");
|
|
289
297
|
}
|
|
290
298
|
c(ve, "escapeHTML");
|
|
291
|
-
function
|
|
299
|
+
function re(t, e, n, r, o, s, i) {
|
|
292
300
|
let a = r + n.indent, l = n.colors;
|
|
293
301
|
return t.map((m) => {
|
|
294
302
|
let p = e[m], f = i(p, n, a, o, s);
|
|
@@ -297,75 +305,75 @@ function oe(t, e, n, r, o, s, i) {
|
|
|
297
305
|
value.close}`;
|
|
298
306
|
}).join("");
|
|
299
307
|
}
|
|
300
|
-
c(
|
|
301
|
-
function
|
|
308
|
+
c(re, "printProps");
|
|
309
|
+
function oe(t, e, n, r, o, s) {
|
|
302
310
|
return t.map(
|
|
303
311
|
(i) => e.spacingOuter + n + (typeof i == "string" ? tn(i, e) : s(i, e, n, r, o))
|
|
304
312
|
).join("");
|
|
305
313
|
}
|
|
306
|
-
c(
|
|
314
|
+
c(oe, "printChildren");
|
|
307
315
|
function tn(t, e) {
|
|
308
316
|
let n = e.colors.content;
|
|
309
317
|
return n.open + ve(t) + n.close;
|
|
310
318
|
}
|
|
311
319
|
c(tn, "printText");
|
|
312
|
-
function
|
|
320
|
+
function jr(t, e) {
|
|
313
321
|
let n = e.colors.comment;
|
|
314
322
|
return `${n.open}<!--${ve(t)}-->${n.close}`;
|
|
315
323
|
}
|
|
316
|
-
c(
|
|
317
|
-
function
|
|
324
|
+
c(jr, "printComment");
|
|
325
|
+
function se(t, e, n, r, o) {
|
|
318
326
|
let s = r.colors.tag;
|
|
319
327
|
return `${s.open}<${t}${e && s.close + e + r.spacingOuter + o + s.open}${n ? `>${s.close}${n}${r.spacingOuter}${o}${s.open}</${t}` : `${e &&
|
|
320
328
|
!r.min ? "" : " "}/`}>${s.close}`;
|
|
321
329
|
}
|
|
322
|
-
c(
|
|
323
|
-
function
|
|
330
|
+
c(se, "printElement");
|
|
331
|
+
function ie(t, e) {
|
|
324
332
|
let n = e.colors.tag;
|
|
325
333
|
return `${n.open}<${t}${n.close} \u2026${n.open} />${n.close}`;
|
|
326
334
|
}
|
|
327
|
-
c(
|
|
328
|
-
var
|
|
329
|
-
function
|
|
335
|
+
c(ie, "printElementAsLeaf");
|
|
336
|
+
var Br = 1, en = 3, nn = 8, rn = 11, kr = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
337
|
+
function zr(t) {
|
|
330
338
|
try {
|
|
331
339
|
return typeof t.hasAttribute == "function" && t.hasAttribute("is");
|
|
332
340
|
} catch {
|
|
333
341
|
return !1;
|
|
334
342
|
}
|
|
335
343
|
}
|
|
336
|
-
c(
|
|
337
|
-
function
|
|
338
|
-
let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") ||
|
|
339
|
-
return n ===
|
|
344
|
+
c(zr, "testHasAttribute");
|
|
345
|
+
function Yr(t) {
|
|
346
|
+
let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") || zr(t);
|
|
347
|
+
return n === Br && (kr.test(e) || o) || n === en && e === "Text" || n === nn && e === "Comment" || n === rn && e === "DocumentFragment";
|
|
340
348
|
}
|
|
341
|
-
c(
|
|
342
|
-
var
|
|
349
|
+
c(Yr, "testNode");
|
|
350
|
+
var Ur = /* @__PURE__ */ c((t) => {
|
|
343
351
|
var e;
|
|
344
|
-
return ((e = t?.constructor) == null ? void 0 : e.name) &&
|
|
352
|
+
return ((e = t?.constructor) == null ? void 0 : e.name) && Yr(t);
|
|
345
353
|
}, "test$3");
|
|
346
|
-
function
|
|
354
|
+
function Wr(t) {
|
|
347
355
|
return t.nodeType === en;
|
|
348
356
|
}
|
|
349
|
-
c(
|
|
350
|
-
function
|
|
357
|
+
c(Wr, "nodeIsText");
|
|
358
|
+
function Vr(t) {
|
|
351
359
|
return t.nodeType === nn;
|
|
352
360
|
}
|
|
353
|
-
c(
|
|
354
|
-
function
|
|
361
|
+
c(Vr, "nodeIsComment");
|
|
362
|
+
function vt(t) {
|
|
355
363
|
return t.nodeType === rn;
|
|
356
364
|
}
|
|
357
|
-
c(
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
365
|
+
c(vt, "nodeIsFragment");
|
|
366
|
+
var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
367
|
+
if (Wr(t))
|
|
360
368
|
return tn(t.data, e);
|
|
361
|
-
if (
|
|
362
|
-
return
|
|
363
|
-
let i =
|
|
364
|
-
return ++r > e.maxDepth ?
|
|
369
|
+
if (Vr(t))
|
|
370
|
+
return jr(t.data, e);
|
|
371
|
+
let i = vt(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
372
|
+
return ++r > e.maxDepth ? ie(i, e) : se(
|
|
365
373
|
i,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
374
|
+
re(
|
|
375
|
+
vt(t) ? [] : Array.from(t.attributes, (a) => a.name).sort(),
|
|
376
|
+
vt(t) ? {} : [...t.attributes].reduce(
|
|
369
377
|
(a, l) => (a[l.name] = l.value, a),
|
|
370
378
|
{}
|
|
371
379
|
),
|
|
@@ -375,7 +383,7 @@ var Wr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
375
383
|
o,
|
|
376
384
|
s
|
|
377
385
|
),
|
|
378
|
-
|
|
386
|
+
oe(
|
|
379
387
|
Array.prototype.slice.call(t.childNodes || t.children),
|
|
380
388
|
e,
|
|
381
389
|
n + e.indent,
|
|
@@ -386,12 +394,12 @@ var Wr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
386
394
|
e,
|
|
387
395
|
n
|
|
388
396
|
);
|
|
389
|
-
}, "serialize$3"),
|
|
390
|
-
EYED__@@",
|
|
391
|
-
@@__IMMUTABLE_SET__@@",
|
|
392
|
-
(t) => `[${t}]`, "printAsLeaf"),
|
|
393
|
-
function
|
|
394
|
-
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) +
|
|
397
|
+
}, "serialize$3"), Kr = { serialize: qr, test: Ur }, Gr = "@@__IMMUTABLE_ITERABLE__@@", Hr = "@@__IMMUTABLE_LIST__@@", Jr = "@@__IMMUTABLE_K\
|
|
398
|
+
EYED__@@", Xr = "@@__IMMUTABLE_MAP__@@", je = "@@__IMMUTABLE_ORDERED__@@", Zr = "@@__IMMUTABLE_RECORD__@@", Qr = "@@__IMMUTABLE_SEQ__@@", vr = "\
|
|
399
|
+
@@__IMMUTABLE_SET__@@", to = "@@__IMMUTABLE_STACK__@@", bt = /* @__PURE__ */ c((t) => `Immutable.${t}`, "getImmutableName"), jt = /* @__PURE__ */ c(
|
|
400
|
+
(t) => `[${t}]`, "printAsLeaf"), Ot = " ", Be = "\u2026";
|
|
401
|
+
function eo(t, e, n, r, o, s, i) {
|
|
402
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Ot}{${$t(
|
|
395
403
|
t.entries(),
|
|
396
404
|
e,
|
|
397
405
|
n,
|
|
@@ -400,8 +408,8 @@ function vr(t, e, n, r, o, s, i) {
|
|
|
400
408
|
s
|
|
401
409
|
)}}`;
|
|
402
410
|
}
|
|
403
|
-
c(
|
|
404
|
-
function
|
|
411
|
+
c(eo, "printImmutableEntries");
|
|
412
|
+
function no(t) {
|
|
405
413
|
let e = 0;
|
|
406
414
|
return {
|
|
407
415
|
next() {
|
|
@@ -413,11 +421,11 @@ function to(t) {
|
|
|
413
421
|
}
|
|
414
422
|
};
|
|
415
423
|
}
|
|
416
|
-
c(
|
|
417
|
-
function
|
|
424
|
+
c(no, "getRecordEntries");
|
|
425
|
+
function ro(t, e, n, r, o, s) {
|
|
418
426
|
let i = bt(t._name || "Record");
|
|
419
|
-
return ++r > e.maxDepth ? jt(i) : `${i +
|
|
420
|
-
|
|
427
|
+
return ++r > e.maxDepth ? jt(i) : `${i + Ot}{${$t(
|
|
428
|
+
no(t),
|
|
421
429
|
e,
|
|
422
430
|
n,
|
|
423
431
|
r,
|
|
@@ -425,18 +433,18 @@ function eo(t, e, n, r, o, s) {
|
|
|
425
433
|
s
|
|
426
434
|
)}}`;
|
|
427
435
|
}
|
|
428
|
-
c(
|
|
429
|
-
function
|
|
436
|
+
c(ro, "printImmutableRecord");
|
|
437
|
+
function oo(t, e, n, r, o, s) {
|
|
430
438
|
let i = bt("Seq");
|
|
431
|
-
return ++r > e.maxDepth ? jt(i) : t[
|
|
432
|
-
t._iter || t._object ?
|
|
439
|
+
return ++r > e.maxDepth ? jt(i) : t[Jr] ? `${i + Ot}{${// from Immutable collection of entries or from ECMAScript object
|
|
440
|
+
t._iter || t._object ? $t(
|
|
433
441
|
t.entries(),
|
|
434
442
|
e,
|
|
435
443
|
n,
|
|
436
444
|
r,
|
|
437
445
|
o,
|
|
438
446
|
s
|
|
439
|
-
) : Be}}` : `${i +
|
|
447
|
+
) : Be}}` : `${i + Ot}[${t._iter || t._array || t._collection || t._iterable ? ee(
|
|
440
448
|
t.values(),
|
|
441
449
|
e,
|
|
442
450
|
n,
|
|
@@ -445,9 +453,9 @@ function no(t, e, n, r, o, s) {
|
|
|
445
453
|
s
|
|
446
454
|
) : Be}]`;
|
|
447
455
|
}
|
|
448
|
-
c(
|
|
449
|
-
function
|
|
450
|
-
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) +
|
|
456
|
+
c(oo, "printImmutableSeq");
|
|
457
|
+
function te(t, e, n, r, o, s, i) {
|
|
458
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Ot}[${ee(
|
|
451
459
|
t.values(),
|
|
452
460
|
e,
|
|
453
461
|
n,
|
|
@@ -456,8 +464,8 @@ function ee(t, e, n, r, o, s, i) {
|
|
|
456
464
|
s
|
|
457
465
|
)}]`;
|
|
458
466
|
}
|
|
459
|
-
c(
|
|
460
|
-
var
|
|
467
|
+
c(te, "printImmutableValues");
|
|
468
|
+
var so = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Xr] ? eo(
|
|
461
469
|
t,
|
|
462
470
|
e,
|
|
463
471
|
n,
|
|
@@ -465,7 +473,7 @@ var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
|
|
|
465
473
|
o,
|
|
466
474
|
s,
|
|
467
475
|
t[je] ? "OrderedMap" : "Map"
|
|
468
|
-
) : t[
|
|
476
|
+
) : t[Hr] ? te(
|
|
469
477
|
t,
|
|
470
478
|
e,
|
|
471
479
|
n,
|
|
@@ -473,7 +481,7 @@ var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
|
|
|
473
481
|
o,
|
|
474
482
|
s,
|
|
475
483
|
"List"
|
|
476
|
-
) : t[
|
|
484
|
+
) : t[vr] ? te(
|
|
477
485
|
t,
|
|
478
486
|
e,
|
|
479
487
|
n,
|
|
@@ -481,7 +489,7 @@ var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
|
|
|
481
489
|
o,
|
|
482
490
|
s,
|
|
483
491
|
t[je] ? "OrderedSet" : "Set"
|
|
484
|
-
) : t[
|
|
492
|
+
) : t[to] ? te(
|
|
485
493
|
t,
|
|
486
494
|
e,
|
|
487
495
|
n,
|
|
@@ -489,15 +497,15 @@ var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
|
|
|
489
497
|
o,
|
|
490
498
|
s,
|
|
491
499
|
"Stack"
|
|
492
|
-
) : t[
|
|
493
|
-
test$2"),
|
|
500
|
+
) : t[Qr] ? oo(t, e, n, r, o, s) : ro(t, e, n, r, o, s), "serialize$2"), io = /* @__PURE__ */ c((t) => t && (t[Gr] === !0 || t[Zr] === !0), "\
|
|
501
|
+
test$2"), co = { serialize: so, test: io };
|
|
494
502
|
function on(t) {
|
|
495
503
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
496
504
|
}
|
|
497
505
|
c(on, "getDefaultExportFromCjs");
|
|
498
506
|
var Mt = { exports: {} }, N = {};
|
|
499
507
|
var ke;
|
|
500
|
-
function
|
|
508
|
+
function uo() {
|
|
501
509
|
if (ke) return N;
|
|
502
510
|
ke = 1;
|
|
503
511
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.\
|
|
@@ -565,10 +573,10 @@ object" && u !== null && (u.$$typeof === f || u.$$typeof === p || u.$$typeof ===
|
|
|
565
573
|
y || u.getModuleId !== void 0);
|
|
566
574
|
}, N.typeOf = g, N;
|
|
567
575
|
}
|
|
568
|
-
c(
|
|
576
|
+
c(uo, "requireReactIs_production");
|
|
569
577
|
var P = {};
|
|
570
578
|
var ze;
|
|
571
|
-
function
|
|
579
|
+
function lo() {
|
|
572
580
|
return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
573
581
|
function t(u) {
|
|
574
582
|
if (typeof u == "object" && u !== null) {
|
|
@@ -637,18 +645,18 @@ lazy"), y = Symbol.for("react.offscreen"), g = Symbol.for("react.client.referenc
|
|
|
637
645
|
}, P.typeOf = t;
|
|
638
646
|
}()), P;
|
|
639
647
|
}
|
|
640
|
-
c(
|
|
648
|
+
c(lo, "requireReactIs_development$1");
|
|
641
649
|
var Ye;
|
|
642
|
-
function
|
|
643
|
-
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Mt.exports =
|
|
650
|
+
function ao() {
|
|
651
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Mt.exports = uo() : Mt.exports = lo()), Mt.exports;
|
|
644
652
|
}
|
|
645
|
-
c(
|
|
646
|
-
var sn = /* @__PURE__ */
|
|
653
|
+
c(ao, "requireReactIs$1");
|
|
654
|
+
var sn = /* @__PURE__ */ ao(), fo = /* @__PURE__ */ on(sn), mo = /* @__PURE__ */ Ze({
|
|
647
655
|
__proto__: null,
|
|
648
|
-
default:
|
|
656
|
+
default: fo
|
|
649
657
|
}, [sn]), Lt = { exports: {} }, w = {};
|
|
650
658
|
var Ue;
|
|
651
|
-
function
|
|
659
|
+
function po() {
|
|
652
660
|
if (Ue) return w;
|
|
653
661
|
Ue = 1;
|
|
654
662
|
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
@@ -721,10 +729,10 @@ object" && h !== null && (h.$$typeof === S || h.$$typeof === f || h.$$typeof ===
|
|
|
721
729
|
g || h.getModuleId !== void 0);
|
|
722
730
|
}, w.typeOf = u, w;
|
|
723
731
|
}
|
|
724
|
-
c(
|
|
732
|
+
c(po, "requireReactIs_production_min");
|
|
725
733
|
var A = {};
|
|
726
734
|
var We;
|
|
727
|
-
function
|
|
735
|
+
function go() {
|
|
728
736
|
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
729
737
|
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
730
738
|
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
|
|
@@ -743,33 +751,33 @@ o"), S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u
|
|
|
743
751
|
c(d, "isValidElementType");
|
|
744
752
|
function E(T) {
|
|
745
753
|
if (typeof T == "object" && T !== null) {
|
|
746
|
-
var
|
|
747
|
-
switch (
|
|
754
|
+
var Zt = T.$$typeof;
|
|
755
|
+
switch (Zt) {
|
|
748
756
|
case t:
|
|
749
|
-
var
|
|
750
|
-
switch (
|
|
757
|
+
var Pt = T.type;
|
|
758
|
+
switch (Pt) {
|
|
751
759
|
case n:
|
|
752
760
|
case o:
|
|
753
761
|
case r:
|
|
754
762
|
case m:
|
|
755
763
|
case p:
|
|
756
|
-
return
|
|
764
|
+
return Pt;
|
|
757
765
|
default:
|
|
758
|
-
var
|
|
759
|
-
switch (
|
|
766
|
+
var Me = Pt && Pt.$$typeof;
|
|
767
|
+
switch (Me) {
|
|
760
768
|
case a:
|
|
761
769
|
case i:
|
|
762
770
|
case l:
|
|
763
771
|
case S:
|
|
764
772
|
case f:
|
|
765
773
|
case s:
|
|
766
|
-
return
|
|
774
|
+
return Me;
|
|
767
775
|
default:
|
|
768
|
-
return
|
|
776
|
+
return Zt;
|
|
769
777
|
}
|
|
770
778
|
}
|
|
771
779
|
case e:
|
|
772
|
-
return
|
|
780
|
+
return Zt;
|
|
773
781
|
}
|
|
774
782
|
}
|
|
775
783
|
}
|
|
@@ -819,33 +827,33 @@ o"), S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u
|
|
|
819
827
|
return E(T) === o;
|
|
820
828
|
}
|
|
821
829
|
c(Ct, "isProfiler");
|
|
822
|
-
function
|
|
830
|
+
function Rt(T) {
|
|
823
831
|
return E(T) === r;
|
|
824
832
|
}
|
|
825
|
-
c(
|
|
826
|
-
function
|
|
833
|
+
c(Rt, "isStrictMode");
|
|
834
|
+
function Nt(T) {
|
|
827
835
|
return E(T) === m;
|
|
828
836
|
}
|
|
829
|
-
c(
|
|
837
|
+
c(Nt, "isSuspense");
|
|
830
838
|
function pr(T) {
|
|
831
839
|
return E(T) === p;
|
|
832
840
|
}
|
|
833
841
|
c(pr, "isSuspenseList"), A.ContextConsumer = $, A.ContextProvider = C, A.Element = R, A.ForwardRef = J, A.Fragment = tt, A.Lazy = L, A.Memo =
|
|
834
842
|
z, A.Portal = X, A.Profiler = V, A.StrictMode = M, A.Suspense = F, A.SuspenseList = D, A.isAsyncMode = K, A.isConcurrentMode = st, A.isContextConsumer =
|
|
835
843
|
G, A.isContextProvider = H, A.isElement = ct, A.isForwardRef = Q, A.isFragment = q, A.isLazy = it, A.isMemo = dt, A.isPortal = at, A.isProfiler =
|
|
836
|
-
Ct, A.isStrictMode =
|
|
844
|
+
Ct, A.isStrictMode = Rt, A.isSuspense = Nt, A.isSuspenseList = pr, A.isValidElementType = d, A.typeOf = E;
|
|
837
845
|
}()), A;
|
|
838
846
|
}
|
|
839
|
-
c(
|
|
847
|
+
c(go, "requireReactIs_development");
|
|
840
848
|
var Ve;
|
|
841
|
-
function
|
|
842
|
-
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? Lt.exports =
|
|
849
|
+
function ho() {
|
|
850
|
+
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? Lt.exports = po() : Lt.exports = go()), Lt.exports;
|
|
843
851
|
}
|
|
844
|
-
c(
|
|
845
|
-
var cn =
|
|
852
|
+
c(ho, "requireReactIs");
|
|
853
|
+
var cn = ho(), yo = /* @__PURE__ */ on(cn), bo = /* @__PURE__ */ Ze({
|
|
846
854
|
__proto__: null,
|
|
847
|
-
default:
|
|
848
|
-
}, [cn]),
|
|
855
|
+
default: yo
|
|
856
|
+
}, [cn]), So = [
|
|
849
857
|
"isAsyncMode",
|
|
850
858
|
"isConcurrentMode",
|
|
851
859
|
"isContextConsumer",
|
|
@@ -862,7 +870,7 @@ var cn = po(), go = /* @__PURE__ */ on(cn), ho = /* @__PURE__ */ Ze({
|
|
|
862
870
|
"isSuspenseList",
|
|
863
871
|
"isValidElementType"
|
|
864
872
|
], mt = Object.fromEntries(
|
|
865
|
-
|
|
873
|
+
So.map((t) => [t, (e) => bo[t](e) || mo[t](e)])
|
|
866
874
|
);
|
|
867
875
|
function un(t, e = []) {
|
|
868
876
|
if (Array.isArray(t))
|
|
@@ -901,15 +909,15 @@ function qe(t) {
|
|
|
901
909
|
return "UNDEFINED";
|
|
902
910
|
}
|
|
903
911
|
c(qe, "getType");
|
|
904
|
-
function
|
|
912
|
+
function Eo(t) {
|
|
905
913
|
let { props: e } = t;
|
|
906
914
|
return Object.keys(e).filter((n) => n !== "children" && e[n] !== void 0).sort();
|
|
907
915
|
}
|
|
908
|
-
c(
|
|
909
|
-
var
|
|
916
|
+
c(Eo, "getPropKeys$1");
|
|
917
|
+
var _o = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ie(qe(t), e) : se(
|
|
910
918
|
qe(t),
|
|
911
|
-
|
|
912
|
-
|
|
919
|
+
re(
|
|
920
|
+
Eo(t),
|
|
913
921
|
t.props,
|
|
914
922
|
e,
|
|
915
923
|
n + e.indent,
|
|
@@ -917,7 +925,7 @@ var So = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(qe(t), e)
|
|
|
917
925
|
o,
|
|
918
926
|
s
|
|
919
927
|
),
|
|
920
|
-
|
|
928
|
+
oe(
|
|
921
929
|
un(t.props.children),
|
|
922
930
|
e,
|
|
923
931
|
n + e.indent,
|
|
@@ -927,17 +935,17 @@ var So = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(qe(t), e)
|
|
|
927
935
|
),
|
|
928
936
|
e,
|
|
929
937
|
n
|
|
930
|
-
), "serialize$1"),
|
|
938
|
+
), "serialize$1"), Co = /* @__PURE__ */ c((t) => t != null && mt.isElement(t), "test$1"), To = { serialize: _o, test: Co }, Oo = typeof Symbol ==
|
|
931
939
|
"function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
932
|
-
function
|
|
940
|
+
function $o(t) {
|
|
933
941
|
let { props: e } = t;
|
|
934
942
|
return e ? Object.keys(e).filter((n) => e[n] !== void 0).sort() : [];
|
|
935
943
|
}
|
|
936
|
-
c(
|
|
937
|
-
var
|
|
944
|
+
c($o, "getPropKeys");
|
|
945
|
+
var wo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ie(t.type, e) : se(
|
|
938
946
|
t.type,
|
|
939
|
-
t.props ?
|
|
940
|
-
|
|
947
|
+
t.props ? re(
|
|
948
|
+
$o(t),
|
|
941
949
|
t.props,
|
|
942
950
|
e,
|
|
943
951
|
n + e.indent,
|
|
@@ -945,7 +953,7 @@ var Oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(t.type, e
|
|
|
945
953
|
o,
|
|
946
954
|
s
|
|
947
955
|
) : "",
|
|
948
|
-
t.children ?
|
|
956
|
+
t.children ? oe(
|
|
949
957
|
t.children,
|
|
950
958
|
e,
|
|
951
959
|
n + e.indent,
|
|
@@ -955,17 +963,17 @@ var Oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(t.type, e
|
|
|
955
963
|
) : "",
|
|
956
964
|
e,
|
|
957
965
|
n
|
|
958
|
-
), "serialize"),
|
|
959
|
-
|
|
966
|
+
), "serialize"), Ao = /* @__PURE__ */ c((t) => t && t.$$typeof === Oo, "test"), Ro = { serialize: wo, test: Ao }, ln = Object.prototype.toString,
|
|
967
|
+
No = Date.prototype.toISOString, Po = Error.prototype.toString, Ke = RegExp.prototype.toString;
|
|
960
968
|
function xt(t) {
|
|
961
969
|
return typeof t.constructor == "function" && t.constructor.name || "Object";
|
|
962
970
|
}
|
|
963
971
|
c(xt, "getConstructorName");
|
|
964
|
-
function
|
|
972
|
+
function Io(t) {
|
|
965
973
|
return typeof window < "u" && t === window;
|
|
966
974
|
}
|
|
967
|
-
c(
|
|
968
|
-
var
|
|
975
|
+
c(Io, "isWindow");
|
|
976
|
+
var Mo = /^Symbol\((.*)\)(.*)$/, Lo = /\n/g, Dt = class extends Error {
|
|
969
977
|
static {
|
|
970
978
|
c(this, "PrettyFormatPluginError");
|
|
971
979
|
}
|
|
@@ -973,30 +981,30 @@ var Po = /^Symbol\((.*)\)(.*)$/, Io = /\n/g, Dt = class extends Error {
|
|
|
973
981
|
super(e), this.stack = n, this.name = this.constructor.name;
|
|
974
982
|
}
|
|
975
983
|
};
|
|
976
|
-
function
|
|
984
|
+
function xo(t) {
|
|
977
985
|
return t === "[object Array]" || t === "[object ArrayBuffer]" || t === "[object DataView]" || t === "[object Float32Array]" || t === "[obj\
|
|
978
986
|
ect Float64Array]" || t === "[object Int8Array]" || t === "[object Int16Array]" || t === "[object Int32Array]" || t === "[object Uint8Array]" ||
|
|
979
987
|
t === "[object Uint8ClampedArray]" || t === "[object Uint16Array]" || t === "[object Uint32Array]";
|
|
980
988
|
}
|
|
981
|
-
c(
|
|
982
|
-
function
|
|
989
|
+
c(xo, "isToStringedArrayType");
|
|
990
|
+
function Fo(t) {
|
|
983
991
|
return Object.is(t, -0) ? "-0" : String(t);
|
|
984
992
|
}
|
|
985
|
-
c(
|
|
986
|
-
function
|
|
993
|
+
c(Fo, "printNumber");
|
|
994
|
+
function Do(t) {
|
|
987
995
|
return `${t}n`;
|
|
988
996
|
}
|
|
989
|
-
c(
|
|
997
|
+
c(Do, "printBigInt");
|
|
990
998
|
function Ge(t, e) {
|
|
991
999
|
return e ? `[Function ${t.name || "anonymous"}]` : "[Function]";
|
|
992
1000
|
}
|
|
993
1001
|
c(Ge, "printFunction");
|
|
994
1002
|
function He(t) {
|
|
995
|
-
return String(t).replace(
|
|
1003
|
+
return String(t).replace(Mo, "Symbol($1)");
|
|
996
1004
|
}
|
|
997
1005
|
c(He, "printSymbol");
|
|
998
1006
|
function Je(t) {
|
|
999
|
-
return `[${
|
|
1007
|
+
return `[${Po.call(t)}]`;
|
|
1000
1008
|
}
|
|
1001
1009
|
c(Je, "printError");
|
|
1002
1010
|
function an(t, e, n, r) {
|
|
@@ -1008,9 +1016,9 @@ function an(t, e, n, r) {
|
|
|
1008
1016
|
return "null";
|
|
1009
1017
|
let o = typeof t;
|
|
1010
1018
|
if (o === "number")
|
|
1011
|
-
return
|
|
1019
|
+
return Fo(t);
|
|
1012
1020
|
if (o === "bigint")
|
|
1013
|
-
return
|
|
1021
|
+
return Do(t);
|
|
1014
1022
|
if (o === "string")
|
|
1015
1023
|
return r ? `"${t.replaceAll(/"|\\/g, "\\$&")}"` : `"${t}"`;
|
|
1016
1024
|
if (o === "function")
|
|
@@ -1019,7 +1027,7 @@ function an(t, e, n, r) {
|
|
|
1019
1027
|
return He(t);
|
|
1020
1028
|
let s = ln.call(t);
|
|
1021
1029
|
return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
|
|
1022
|
-
eratorFunction]" ? Ge(t, e) : s === "[object Symbol]" ? He(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" :
|
|
1030
|
+
eratorFunction]" ? Ge(t, e) : s === "[object Symbol]" ? He(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" : No.call(t) : s ===
|
|
1023
1031
|
"[object Error]" ? Je(t) : s === "[object RegExp]" ? n ? Ke.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Ke.call(t) : t instanceof Error ?
|
|
1024
1032
|
Je(t) : null;
|
|
1025
1033
|
}
|
|
@@ -1039,8 +1047,8 @@ function fn(t, e, n, r, o, s) {
|
|
|
1039
1047
|
r,
|
|
1040
1048
|
o,
|
|
1041
1049
|
ft
|
|
1042
|
-
)}]` :
|
|
1043
|
-
`}[${Ft(t, e, n, r, o, ft)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${
|
|
1050
|
+
)}]` : xo(l) ? i ? `[${t.constructor.name}]` : `${a || !e.printBasicPrototype && t.constructor.name === "Array" ? "" : `${t.constructor.name}\
|
|
1051
|
+
`}[${Ft(t, e, n, r, o, ft)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${$t(
|
|
1044
1052
|
t.entries(),
|
|
1045
1053
|
e,
|
|
1046
1054
|
n,
|
|
@@ -1048,14 +1056,14 @@ function fn(t, e, n, r, o, s) {
|
|
|
1048
1056
|
o,
|
|
1049
1057
|
ft,
|
|
1050
1058
|
" => "
|
|
1051
|
-
)}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${
|
|
1059
|
+
)}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${ee(
|
|
1052
1060
|
t.values(),
|
|
1053
1061
|
e,
|
|
1054
1062
|
n,
|
|
1055
1063
|
r,
|
|
1056
1064
|
o,
|
|
1057
1065
|
ft
|
|
1058
|
-
)}}` : i ||
|
|
1066
|
+
)}}` : i || Io(t) ? `[${xt(t)}]` : `${a || !e.printBasicPrototype && xt(t) === "Object" ? "" : `${xt(t)} `}{${ne(
|
|
1059
1067
|
t,
|
|
1060
1068
|
e,
|
|
1061
1069
|
n,
|
|
@@ -1065,7 +1073,7 @@ function fn(t, e, n, r, o, s) {
|
|
|
1065
1073
|
)}}`;
|
|
1066
1074
|
}
|
|
1067
1075
|
c(fn, "printComplexValue");
|
|
1068
|
-
var
|
|
1076
|
+
var jo = {
|
|
1069
1077
|
test: /* @__PURE__ */ c((t) => t && t instanceof Error, "test"),
|
|
1070
1078
|
serialize(t, e, n, r, o, s) {
|
|
1071
1079
|
if (o.includes(t))
|
|
@@ -1077,7 +1085,7 @@ var Fo = {
|
|
|
1077
1085
|
...t instanceof AggregateError ? { errors: t.errors } : {},
|
|
1078
1086
|
...m
|
|
1079
1087
|
}, f = t.name !== "Error" ? t.name : xt(t);
|
|
1080
|
-
return i ? `[${f}]` : `${f} {${
|
|
1088
|
+
return i ? `[${f}]` : `${f} {${$t(
|
|
1081
1089
|
Object.entries(p).values(),
|
|
1082
1090
|
e,
|
|
1083
1091
|
n,
|
|
@@ -1087,19 +1095,19 @@ var Fo = {
|
|
|
1087
1095
|
)}}`;
|
|
1088
1096
|
}
|
|
1089
1097
|
};
|
|
1090
|
-
function
|
|
1098
|
+
function Bo(t) {
|
|
1091
1099
|
return t.serialize != null;
|
|
1092
1100
|
}
|
|
1093
|
-
c(
|
|
1101
|
+
c(Bo, "isNewPlugin");
|
|
1094
1102
|
function mn(t, e, n, r, o, s) {
|
|
1095
1103
|
let i;
|
|
1096
1104
|
try {
|
|
1097
|
-
i =
|
|
1105
|
+
i = Bo(t) ? t.serialize(e, n, r, o, s, ft) : t.print(
|
|
1098
1106
|
e,
|
|
1099
1107
|
(a) => ft(a, n, r, o, s),
|
|
1100
1108
|
(a) => {
|
|
1101
1109
|
let l = r + n.indent;
|
|
1102
|
-
return l + a.replaceAll(
|
|
1110
|
+
return l + a.replaceAll(Lo, `
|
|
1103
1111
|
${l}`);
|
|
1104
1112
|
},
|
|
1105
1113
|
{
|
|
@@ -1150,13 +1158,13 @@ function ft(t, e, n, r, o, s) {
|
|
|
1150
1158
|
);
|
|
1151
1159
|
}
|
|
1152
1160
|
c(ft, "printer");
|
|
1153
|
-
var
|
|
1161
|
+
var ce = {
|
|
1154
1162
|
comment: "gray",
|
|
1155
1163
|
content: "reset",
|
|
1156
1164
|
prop: "yellow",
|
|
1157
1165
|
tag: "cyan",
|
|
1158
1166
|
value: "green"
|
|
1159
|
-
}, gn = Object.keys(
|
|
1167
|
+
}, gn = Object.keys(ce), nt = {
|
|
1160
1168
|
callToJSON: !0,
|
|
1161
1169
|
compareKeys: void 0,
|
|
1162
1170
|
escapeRegex: !1,
|
|
@@ -1169,9 +1177,9 @@ var ue = {
|
|
|
1169
1177
|
plugins: [],
|
|
1170
1178
|
printBasicPrototype: !0,
|
|
1171
1179
|
printFunctionName: !0,
|
|
1172
|
-
theme:
|
|
1180
|
+
theme: ce
|
|
1173
1181
|
};
|
|
1174
|
-
function
|
|
1182
|
+
function ko(t) {
|
|
1175
1183
|
for (let e of Object.keys(t))
|
|
1176
1184
|
if (!Object.prototype.hasOwnProperty.call(nt, e))
|
|
1177
1185
|
throw new Error(`pretty-format: Unknown option "${e}".`);
|
|
@@ -1180,10 +1188,10 @@ function jo(t) {
|
|
|
1180
1188
|
'pretty-format: Options "min" and "indent" cannot be used together.'
|
|
1181
1189
|
);
|
|
1182
1190
|
}
|
|
1183
|
-
c(
|
|
1184
|
-
function
|
|
1191
|
+
c(ko, "validateOptions");
|
|
1192
|
+
function zo() {
|
|
1185
1193
|
return gn.reduce((t, e) => {
|
|
1186
|
-
let n =
|
|
1194
|
+
let n = ce[e], r = n && et[n];
|
|
1187
1195
|
if (r && typeof r.close == "string" && typeof r.open == "string")
|
|
1188
1196
|
t[e] = r;
|
|
1189
1197
|
else
|
|
@@ -1193,11 +1201,11 @@ function Bo() {
|
|
|
1193
1201
|
return t;
|
|
1194
1202
|
}, /* @__PURE__ */ Object.create(null));
|
|
1195
1203
|
}
|
|
1196
|
-
c(
|
|
1197
|
-
function
|
|
1204
|
+
c(zo, "getColorsHighlight");
|
|
1205
|
+
function Yo() {
|
|
1198
1206
|
return gn.reduce((t, e) => (t[e] = { close: "", open: "" }, t), /* @__PURE__ */ Object.create(null));
|
|
1199
1207
|
}
|
|
1200
|
-
c(
|
|
1208
|
+
c(Yo, "getColorsEmpty");
|
|
1201
1209
|
function hn(t) {
|
|
1202
1210
|
return t?.printFunctionName ?? nt.printFunctionName;
|
|
1203
1211
|
}
|
|
@@ -1213,11 +1221,11 @@ c(dn, "getEscapeString");
|
|
|
1213
1221
|
function Xe(t) {
|
|
1214
1222
|
return {
|
|
1215
1223
|
callToJSON: t?.callToJSON ?? nt.callToJSON,
|
|
1216
|
-
colors: t?.highlight ?
|
|
1224
|
+
colors: t?.highlight ? zo() : Yo(),
|
|
1217
1225
|
compareKeys: typeof t?.compareKeys == "function" || t?.compareKeys === null ? t.compareKeys : nt.compareKeys,
|
|
1218
1226
|
escapeRegex: yn(t),
|
|
1219
1227
|
escapeString: dn(t),
|
|
1220
|
-
indent: t?.min ? "" :
|
|
1228
|
+
indent: t?.min ? "" : Uo(t?.indent ?? nt.indent),
|
|
1221
1229
|
maxDepth: t?.maxDepth ?? nt.maxDepth,
|
|
1222
1230
|
maxWidth: t?.maxWidth ?? nt.maxWidth,
|
|
1223
1231
|
min: t?.min ?? nt.min,
|
|
@@ -1231,12 +1239,12 @@ function Xe(t) {
|
|
|
1231
1239
|
};
|
|
1232
1240
|
}
|
|
1233
1241
|
c(Xe, "getConfig");
|
|
1234
|
-
function
|
|
1242
|
+
function Uo(t) {
|
|
1235
1243
|
return Array.from({ length: t + 1 }).join(" ");
|
|
1236
1244
|
}
|
|
1237
|
-
c(
|
|
1245
|
+
c(Uo, "createIndent");
|
|
1238
1246
|
function v(t, e) {
|
|
1239
|
-
if (e && (
|
|
1247
|
+
if (e && (ko(e), e.plugins)) {
|
|
1240
1248
|
let r = pn(e.plugins, t);
|
|
1241
1249
|
if (r !== null)
|
|
1242
1250
|
return mn(r, t, Xe(e), "", 0, []);
|
|
@@ -1250,14 +1258,14 @@ function v(t, e) {
|
|
|
1250
1258
|
return n !== null ? n : fn(t, Xe(e), "", 0, []);
|
|
1251
1259
|
}
|
|
1252
1260
|
c(v, "format");
|
|
1253
|
-
var
|
|
1254
|
-
AsymmetricMatcher:
|
|
1255
|
-
DOMCollection:
|
|
1256
|
-
DOMElement:
|
|
1257
|
-
Immutable:
|
|
1258
|
-
ReactElement:
|
|
1259
|
-
ReactTestComponent:
|
|
1260
|
-
Error:
|
|
1261
|
+
var wt = {
|
|
1262
|
+
AsymmetricMatcher: Nr,
|
|
1263
|
+
DOMCollection: Dr,
|
|
1264
|
+
DOMElement: Kr,
|
|
1265
|
+
Immutable: co,
|
|
1266
|
+
ReactElement: To,
|
|
1267
|
+
ReactTestComponent: Ro,
|
|
1268
|
+
Error: jo
|
|
1261
1269
|
};
|
|
1262
1270
|
|
|
1263
1271
|
// ../node_modules/loupe/lib/helpers.js
|
|
@@ -1289,7 +1297,7 @@ var bn = {
|
|
|
1289
1297
|
brightcyan: ["36;1", "39"],
|
|
1290
1298
|
brightwhite: ["37;1", "39"],
|
|
1291
1299
|
grey: ["90", "39"]
|
|
1292
|
-
},
|
|
1300
|
+
}, Wo = {
|
|
1293
1301
|
special: "cyan",
|
|
1294
1302
|
number: "yellow",
|
|
1295
1303
|
bigint: "yellow",
|
|
@@ -1301,11 +1309,11 @@ var bn = {
|
|
|
1301
1309
|
date: "magenta",
|
|
1302
1310
|
regexp: "red"
|
|
1303
1311
|
}, ut = "\u2026";
|
|
1304
|
-
function
|
|
1305
|
-
let n = bn[
|
|
1312
|
+
function Vo(t, e) {
|
|
1313
|
+
let n = bn[Wo[e]] || bn[e] || "";
|
|
1306
1314
|
return n ? `\x1B[${n[0]}m${String(t)}\x1B[${n[1]}m` : String(t);
|
|
1307
1315
|
}
|
|
1308
|
-
c(
|
|
1316
|
+
c(Vo, "colorise");
|
|
1309
1317
|
function Sn({
|
|
1310
1318
|
showHidden: t = !1,
|
|
1311
1319
|
depth: e = 2,
|
|
@@ -1332,13 +1340,13 @@ function Sn({
|
|
|
1332
1340
|
inspect: p,
|
|
1333
1341
|
stylize: m
|
|
1334
1342
|
};
|
|
1335
|
-
return f.colors && (f.stylize =
|
|
1343
|
+
return f.colors && (f.stylize = Vo), f;
|
|
1336
1344
|
}
|
|
1337
1345
|
c(Sn, "normaliseOptions");
|
|
1338
|
-
function
|
|
1346
|
+
function qo(t) {
|
|
1339
1347
|
return t >= "\uD800" && t <= "\uDBFF";
|
|
1340
1348
|
}
|
|
1341
|
-
c(
|
|
1349
|
+
c(qo, "isHighSurrogate");
|
|
1342
1350
|
function Y(t, e, n = ut) {
|
|
1343
1351
|
t = String(t);
|
|
1344
1352
|
let r = n.length, o = t.length;
|
|
@@ -1346,7 +1354,7 @@ function Y(t, e, n = ut) {
|
|
|
1346
1354
|
return n;
|
|
1347
1355
|
if (o > e && o > r) {
|
|
1348
1356
|
let s = e - r;
|
|
1349
|
-
return s > 0 &&
|
|
1357
|
+
return s > 0 && qo(t[s - 1]) && (s = s - 1), `${t.slice(0, s)}${n}`;
|
|
1350
1358
|
}
|
|
1351
1359
|
return t;
|
|
1352
1360
|
}
|
|
@@ -1375,18 +1383,18 @@ function j(t, e, n, r = ", ") {
|
|
|
1375
1383
|
return `${i}${l}`;
|
|
1376
1384
|
}
|
|
1377
1385
|
c(j, "inspectList");
|
|
1378
|
-
function
|
|
1386
|
+
function Ko(t) {
|
|
1379
1387
|
return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? t : JSON.stringify(t).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
1380
1388
|
}
|
|
1381
|
-
c(
|
|
1389
|
+
c(Ko, "quoteComplexKey");
|
|
1382
1390
|
function lt([t, e], n) {
|
|
1383
|
-
return n.truncate -= 2, typeof t == "string" ? t =
|
|
1391
|
+
return n.truncate -= 2, typeof t == "string" ? t = Ko(t) : typeof t != "number" && (t = `[${n.inspect(t, n)}]`), n.truncate -= t.length, e =
|
|
1384
1392
|
n.inspect(e, n), `${t}: ${e}`;
|
|
1385
1393
|
}
|
|
1386
1394
|
c(lt, "inspectProperty");
|
|
1387
1395
|
|
|
1388
1396
|
// ../node_modules/loupe/lib/array.js
|
|
1389
|
-
function
|
|
1397
|
+
function ue(t, e) {
|
|
1390
1398
|
let n = Object.keys(t).slice(t.length);
|
|
1391
1399
|
if (!t.length && !n.length)
|
|
1392
1400
|
return "[]";
|
|
@@ -1396,13 +1404,13 @@ function le(t, e) {
|
|
|
1396
1404
|
let o = "";
|
|
1397
1405
|
return n.length && (o = j(n.map((s) => [s, t[s]]), e, lt)), `[ ${r}${o ? `, ${o}` : ""} ]`;
|
|
1398
1406
|
}
|
|
1399
|
-
c(
|
|
1407
|
+
c(ue, "inspectArray");
|
|
1400
1408
|
|
|
1401
1409
|
// ../node_modules/loupe/lib/typedarray.js
|
|
1402
|
-
var
|
|
1410
|
+
var Go = /* @__PURE__ */ c((t) => typeof Buffer == "function" && t instanceof Buffer ? "Buffer" : t[Symbol.toStringTag] ? t[Symbol.toStringTag] :
|
|
1403
1411
|
t.constructor.name, "getArrayName");
|
|
1404
1412
|
function rt(t, e) {
|
|
1405
|
-
let n =
|
|
1413
|
+
let n = Go(t);
|
|
1406
1414
|
e.truncate -= n.length + 4;
|
|
1407
1415
|
let r = Object.keys(t).slice(t.length);
|
|
1408
1416
|
if (!t.length && !r.length)
|
|
@@ -1422,14 +1430,14 @@ function rt(t, e) {
|
|
|
1422
1430
|
c(rt, "inspectTypedArray");
|
|
1423
1431
|
|
|
1424
1432
|
// ../node_modules/loupe/lib/date.js
|
|
1425
|
-
function
|
|
1433
|
+
function le(t, e) {
|
|
1426
1434
|
let n = t.toJSON();
|
|
1427
1435
|
if (n === null)
|
|
1428
1436
|
return "Invalid Date";
|
|
1429
1437
|
let r = n.split("T"), o = r[0];
|
|
1430
1438
|
return e.stylize(`${o}T${Y(r[1], e.truncate - o.length - 1)}`, "date");
|
|
1431
1439
|
}
|
|
1432
|
-
c(
|
|
1440
|
+
c(le, "inspectDate");
|
|
1433
1441
|
|
|
1434
1442
|
// ../node_modules/loupe/lib/function.js
|
|
1435
1443
|
function Bt(t, e) {
|
|
@@ -1439,26 +1447,26 @@ function Bt(t, e) {
|
|
|
1439
1447
|
c(Bt, "inspectFunction");
|
|
1440
1448
|
|
|
1441
1449
|
// ../node_modules/loupe/lib/map.js
|
|
1442
|
-
function
|
|
1450
|
+
function Ho([t, e], n) {
|
|
1443
1451
|
return n.truncate -= 4, t = n.inspect(t, n), n.truncate -= t.length, e = n.inspect(e, n), `${t} => ${e}`;
|
|
1444
1452
|
}
|
|
1445
|
-
c(
|
|
1446
|
-
function
|
|
1453
|
+
c(Ho, "inspectMapEntry");
|
|
1454
|
+
function Jo(t) {
|
|
1447
1455
|
let e = [];
|
|
1448
1456
|
return t.forEach((n, r) => {
|
|
1449
1457
|
e.push([r, n]);
|
|
1450
1458
|
}), e;
|
|
1451
1459
|
}
|
|
1452
|
-
c(
|
|
1453
|
-
function
|
|
1454
|
-
return t.size === 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(
|
|
1460
|
+
c(Jo, "mapToEntries");
|
|
1461
|
+
function ae(t, e) {
|
|
1462
|
+
return t.size === 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(Jo(t), e, Ho)} }`);
|
|
1455
1463
|
}
|
|
1456
|
-
c(
|
|
1464
|
+
c(ae, "inspectMap");
|
|
1457
1465
|
|
|
1458
1466
|
// ../node_modules/loupe/lib/number.js
|
|
1459
|
-
var
|
|
1467
|
+
var Xo = Number.isNaN || ((t) => t !== t);
|
|
1460
1468
|
function kt(t, e) {
|
|
1461
|
-
return
|
|
1469
|
+
return Xo(t) ? e.stylize("NaN", "number") : t === 1 / 0 ? e.stylize("Infinity", "number") : t === -1 / 0 ? e.stylize("-Infinity", "number") :
|
|
1462
1470
|
t === 0 ? e.stylize(1 / t === 1 / 0 ? "+0" : "-0", "number") : e.stylize(Y(String(t), e.truncate), "number");
|
|
1463
1471
|
}
|
|
1464
1472
|
c(kt, "inspectNumber");
|
|
@@ -1471,28 +1479,28 @@ function zt(t, e) {
|
|
|
1471
1479
|
c(zt, "inspectBigInt");
|
|
1472
1480
|
|
|
1473
1481
|
// ../node_modules/loupe/lib/regexp.js
|
|
1474
|
-
function
|
|
1482
|
+
function fe(t, e) {
|
|
1475
1483
|
let n = t.toString().split("/")[2], r = e.truncate - (2 + n.length), o = t.source;
|
|
1476
1484
|
return e.stylize(`/${Y(o, r)}/${n}`, "regexp");
|
|
1477
1485
|
}
|
|
1478
|
-
c(
|
|
1486
|
+
c(fe, "inspectRegExp");
|
|
1479
1487
|
|
|
1480
1488
|
// ../node_modules/loupe/lib/set.js
|
|
1481
|
-
function
|
|
1489
|
+
function Zo(t) {
|
|
1482
1490
|
let e = [];
|
|
1483
1491
|
return t.forEach((n) => {
|
|
1484
1492
|
e.push(n);
|
|
1485
1493
|
}), e;
|
|
1486
1494
|
}
|
|
1487
|
-
c(
|
|
1488
|
-
function
|
|
1489
|
-
return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(
|
|
1495
|
+
c(Zo, "arrayFromSet");
|
|
1496
|
+
function me(t, e) {
|
|
1497
|
+
return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(Zo(t), e)} }`);
|
|
1490
1498
|
}
|
|
1491
|
-
c(
|
|
1499
|
+
c(me, "inspectSet");
|
|
1492
1500
|
|
|
1493
1501
|
// ../node_modules/loupe/lib/string.js
|
|
1494
1502
|
var En = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
|
|
1495
|
-
ffff]", "g"),
|
|
1503
|
+
ffff]", "g"), Qo = {
|
|
1496
1504
|
"\b": "\\b",
|
|
1497
1505
|
" ": "\\t",
|
|
1498
1506
|
"\n": "\\n",
|
|
@@ -1500,13 +1508,13 @@ ffff]", "g"), Xo = {
|
|
|
1500
1508
|
"\r": "\\r",
|
|
1501
1509
|
"'": "\\'",
|
|
1502
1510
|
"\\": "\\\\"
|
|
1503
|
-
},
|
|
1504
|
-
function
|
|
1505
|
-
return
|
|
1511
|
+
}, vo = 16, ts = 4;
|
|
1512
|
+
function es(t) {
|
|
1513
|
+
return Qo[t] || `\\u${`0000${t.charCodeAt(0).toString(vo)}`.slice(-ts)}`;
|
|
1506
1514
|
}
|
|
1507
|
-
c(
|
|
1515
|
+
c(es, "escape");
|
|
1508
1516
|
function Yt(t, e) {
|
|
1509
|
-
return En.test(t) && (t = t.replace(En,
|
|
1517
|
+
return En.test(t) && (t = t.replace(En, es)), e.stylize(`'${Y(t, e.truncate - 2)}'`, "string");
|
|
1510
1518
|
}
|
|
1511
1519
|
c(Yt, "inspectString");
|
|
1512
1520
|
|
|
@@ -1544,22 +1552,22 @@ function pt(t, e) {
|
|
|
1544
1552
|
c(pt, "inspectObject");
|
|
1545
1553
|
|
|
1546
1554
|
// ../node_modules/loupe/lib/class.js
|
|
1547
|
-
var
|
|
1548
|
-
function
|
|
1555
|
+
var pe = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
|
|
1556
|
+
function ge(t, e) {
|
|
1549
1557
|
let n = "";
|
|
1550
|
-
return
|
|
1558
|
+
return pe && pe in t && (n = t[pe]), n = n || t.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), e.truncate -= n.length,
|
|
1551
1559
|
`${n}${pt(t, e)}`;
|
|
1552
1560
|
}
|
|
1553
|
-
c(
|
|
1561
|
+
c(ge, "inspectClass");
|
|
1554
1562
|
|
|
1555
1563
|
// ../node_modules/loupe/lib/arguments.js
|
|
1556
|
-
function
|
|
1564
|
+
function he(t, e) {
|
|
1557
1565
|
return t.length === 0 ? "Arguments[]" : (e.truncate -= 13, `Arguments[ ${j(t, e)} ]`);
|
|
1558
1566
|
}
|
|
1559
|
-
c(
|
|
1567
|
+
c(he, "inspectArguments");
|
|
1560
1568
|
|
|
1561
1569
|
// ../node_modules/loupe/lib/error.js
|
|
1562
|
-
var
|
|
1570
|
+
var ns = [
|
|
1563
1571
|
"stack",
|
|
1564
1572
|
"line",
|
|
1565
1573
|
"column",
|
|
@@ -1572,8 +1580,8 @@ var ts = [
|
|
|
1572
1580
|
"description",
|
|
1573
1581
|
"cause"
|
|
1574
1582
|
];
|
|
1575
|
-
function
|
|
1576
|
-
let n = Object.getOwnPropertyNames(t).filter((i) =>
|
|
1583
|
+
function ye(t, e) {
|
|
1584
|
+
let n = Object.getOwnPropertyNames(t).filter((i) => ns.indexOf(i) === -1), r = t.name;
|
|
1577
1585
|
e.truncate -= r.length;
|
|
1578
1586
|
let o = "";
|
|
1579
1587
|
if (typeof t.message == "string" ? o = Y(t.message, e.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", e.truncate -= o.length + 5,
|
|
@@ -1583,13 +1591,13 @@ function de(t, e) {
|
|
|
1583
1591
|
let s = j(n.map((i) => [i, t[i]]), e, lt);
|
|
1584
1592
|
return `${r}${o}${s ? ` { ${s} }` : ""}`;
|
|
1585
1593
|
}
|
|
1586
|
-
c(
|
|
1594
|
+
c(ye, "inspectObject");
|
|
1587
1595
|
|
|
1588
1596
|
// ../node_modules/loupe/lib/html.js
|
|
1589
|
-
function
|
|
1597
|
+
function rs([t, e], n) {
|
|
1590
1598
|
return n.truncate -= 3, e ? `${n.stylize(String(t), "yellow")}=${n.stylize(`"${e}"`, "string")}` : `${n.stylize(String(t), "yellow")}`;
|
|
1591
1599
|
}
|
|
1592
|
-
c(
|
|
1600
|
+
c(rs, "inspectAttribute");
|
|
1593
1601
|
function Wt(t, e) {
|
|
1594
1602
|
return j(t, e, Vt, `
|
|
1595
1603
|
`);
|
|
@@ -1600,14 +1608,14 @@ function Vt(t, e) {
|
|
|
1600
1608
|
`</${r}>`, "special");
|
|
1601
1609
|
e.truncate -= r.length * 2 + 5;
|
|
1602
1610
|
let a = "";
|
|
1603
|
-
n.length > 0 && (a += " ", a += j(n.map((p) => [p, t.getAttribute(p)]), e,
|
|
1611
|
+
n.length > 0 && (a += " ", a += j(n.map((p) => [p, t.getAttribute(p)]), e, rs, " ")), e.truncate -= a.length;
|
|
1604
1612
|
let l = e.truncate, m = Wt(t.children, e);
|
|
1605
1613
|
return m && m.length > l && (m = `${ut}(${t.children.length})`), `${o}${a}${s}${m}${i}`;
|
|
1606
1614
|
}
|
|
1607
1615
|
c(Vt, "inspectHTML");
|
|
1608
1616
|
|
|
1609
1617
|
// ../node_modules/loupe/lib/index.js
|
|
1610
|
-
var
|
|
1618
|
+
var os = typeof Symbol == "function" && typeof Symbol.for == "function", de = os ? Symbol.for("chai/inspect") : "@@chai/inspect", St = !1;
|
|
1611
1619
|
try {
|
|
1612
1620
|
let t = require("util");
|
|
1613
1621
|
St = t.inspect ? t.inspect.custom : !1;
|
|
@@ -1630,16 +1638,16 @@ var Tn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
|
1630
1638
|
symbol: Ut,
|
|
1631
1639
|
// A Symbol polyfill will return `Symbol` not `symbol` from typedetect
|
|
1632
1640
|
Symbol: Ut,
|
|
1633
|
-
Array:
|
|
1634
|
-
Date:
|
|
1635
|
-
Map:
|
|
1636
|
-
Set:
|
|
1637
|
-
RegExp:
|
|
1641
|
+
Array: ue,
|
|
1642
|
+
Date: le,
|
|
1643
|
+
Map: ae,
|
|
1644
|
+
Set: me,
|
|
1645
|
+
RegExp: fe,
|
|
1638
1646
|
Promise: Cn,
|
|
1639
1647
|
// WeakSet, WeakMap are totally opaque to us
|
|
1640
1648
|
WeakSet: /* @__PURE__ */ c((t, e) => e.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
|
|
1641
1649
|
WeakMap: /* @__PURE__ */ c((t, e) => e.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
|
|
1642
|
-
Arguments:
|
|
1650
|
+
Arguments: he,
|
|
1643
1651
|
Int8Array: rt,
|
|
1644
1652
|
Uint8Array: rt,
|
|
1645
1653
|
Uint8ClampedArray: rt,
|
|
@@ -1652,42 +1660,42 @@ var Tn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
|
1652
1660
|
Generator: /* @__PURE__ */ c(() => "", "Generator"),
|
|
1653
1661
|
DataView: /* @__PURE__ */ c(() => "", "DataView"),
|
|
1654
1662
|
ArrayBuffer: /* @__PURE__ */ c(() => "", "ArrayBuffer"),
|
|
1655
|
-
Error:
|
|
1663
|
+
Error: ye,
|
|
1656
1664
|
HTMLCollection: Wt,
|
|
1657
1665
|
NodeList: Wt
|
|
1658
|
-
},
|
|
1666
|
+
}, ss = /* @__PURE__ */ c((t, e, n) => de in t && typeof t[de] == "function" ? t[de](e) : St && St in t && typeof t[St] == "function" ? t[St](
|
|
1659
1667
|
e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t && Tn.has(t.constructor) ? Tn.get(
|
|
1660
|
-
t.constructor)(t, e) : On[n] ? On[n](t, e) : "", "inspectCustom"),
|
|
1668
|
+
t.constructor)(t, e) : On[n] ? On[n](t, e) : "", "inspectCustom"), is = Object.prototype.toString;
|
|
1661
1669
|
function qt(t, e = {}) {
|
|
1662
1670
|
let n = Sn(e, qt), { customInspect: r } = n, o = t === null ? "null" : typeof t;
|
|
1663
|
-
if (o === "object" && (o =
|
|
1671
|
+
if (o === "object" && (o = is.call(t).slice(8, -1)), o in $n)
|
|
1664
1672
|
return $n[o](t, n);
|
|
1665
1673
|
if (r && t) {
|
|
1666
|
-
let i =
|
|
1674
|
+
let i = ss(t, n, o);
|
|
1667
1675
|
if (i)
|
|
1668
1676
|
return typeof i == "string" ? i : qt(i, n);
|
|
1669
1677
|
}
|
|
1670
1678
|
let s = t ? Object.getPrototypeOf(t) : !1;
|
|
1671
1679
|
return s === Object.prototype || s === null ? pt(t, n) : t && typeof HTMLElement == "function" && t instanceof HTMLElement ? Vt(t, n) : "c\
|
|
1672
|
-
onstructor" in t ? t.constructor !== Object ?
|
|
1680
|
+
onstructor" in t ? t.constructor !== Object ? ge(t, n) : pt(t, n) : t === Object(t) ? pt(t, n) : n.stylize(String(t), o);
|
|
1673
1681
|
}
|
|
1674
1682
|
c(qt, "inspect");
|
|
1675
1683
|
|
|
1676
1684
|
// ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
1677
1685
|
var {
|
|
1678
|
-
AsymmetricMatcher:
|
|
1679
|
-
DOMCollection:
|
|
1680
|
-
DOMElement:
|
|
1681
|
-
Immutable:
|
|
1682
|
-
ReactElement:
|
|
1683
|
-
ReactTestComponent:
|
|
1684
|
-
} =
|
|
1685
|
-
|
|
1686
|
+
AsymmetricMatcher: us,
|
|
1687
|
+
DOMCollection: ls,
|
|
1688
|
+
DOMElement: as,
|
|
1689
|
+
Immutable: fs,
|
|
1690
|
+
ReactElement: ms,
|
|
1691
|
+
ReactTestComponent: ps
|
|
1692
|
+
} = wt, wn = [
|
|
1693
|
+
ps,
|
|
1694
|
+
ms,
|
|
1686
1695
|
as,
|
|
1687
|
-
us,
|
|
1688
|
-
cs,
|
|
1689
1696
|
ls,
|
|
1690
|
-
|
|
1697
|
+
fs,
|
|
1698
|
+
us
|
|
1691
1699
|
];
|
|
1692
1700
|
function gt(t, e = 10, { maxLength: n, ...r } = {}) {
|
|
1693
1701
|
let o = n ?? 1e4, s;
|
|
@@ -1712,15 +1720,15 @@ function gt(t, e = 10, { maxLength: n, ...r } = {}) {
|
|
|
1712
1720
|
return s.length >= o && e > 1 ? gt(t, Math.floor(Math.min(e, Number.MAX_SAFE_INTEGER) / 2), { maxLength: n, ...r }) : s;
|
|
1713
1721
|
}
|
|
1714
1722
|
c(gt, "stringify");
|
|
1715
|
-
var
|
|
1723
|
+
var gs = /%[sdjifoOc%]/g;
|
|
1716
1724
|
function An(...t) {
|
|
1717
1725
|
if (typeof t[0] != "string") {
|
|
1718
1726
|
let s = [];
|
|
1719
1727
|
for (let i = 0; i < t.length; i++)
|
|
1720
|
-
s.push(
|
|
1728
|
+
s.push(At(t[i], { depth: 0, colors: !1 }));
|
|
1721
1729
|
return s.join(" ");
|
|
1722
1730
|
}
|
|
1723
|
-
let e = t.length, n = 1, r = t[0], o = String(r).replace(
|
|
1731
|
+
let e = t.length, n = 1, r = t[0], o = String(r).replace(gs, (s) => {
|
|
1724
1732
|
if (s === "%%")
|
|
1725
1733
|
return "%";
|
|
1726
1734
|
if (n >= e)
|
|
@@ -1729,7 +1737,7 @@ function An(...t) {
|
|
|
1729
1737
|
case "%s": {
|
|
1730
1738
|
let i = t[n++];
|
|
1731
1739
|
return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !==
|
|
1732
|
-
null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() :
|
|
1740
|
+
null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : At(i, { depth: 0, colors: !1 }) :
|
|
1733
1741
|
String(i);
|
|
1734
1742
|
}
|
|
1735
1743
|
case "%d": {
|
|
@@ -1743,9 +1751,9 @@ function An(...t) {
|
|
|
1743
1751
|
case "%f":
|
|
1744
1752
|
return Number.parseFloat(String(t[n++])).toString();
|
|
1745
1753
|
case "%o":
|
|
1746
|
-
return
|
|
1754
|
+
return At(t[n++], { showHidden: !0, showProxy: !0 });
|
|
1747
1755
|
case "%O":
|
|
1748
|
-
return
|
|
1756
|
+
return At(t[n++]);
|
|
1749
1757
|
case "%c":
|
|
1750
1758
|
return n++, "";
|
|
1751
1759
|
case "%j":
|
|
@@ -1765,60 +1773,60 @@ function An(...t) {
|
|
|
1765
1773
|
}
|
|
1766
1774
|
});
|
|
1767
1775
|
for (let s = t[n]; n < e; s = t[++n])
|
|
1768
|
-
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${
|
|
1776
|
+
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${At(s)}`;
|
|
1769
1777
|
return o;
|
|
1770
1778
|
}
|
|
1771
1779
|
c(An, "format");
|
|
1772
|
-
function
|
|
1780
|
+
function At(t, e = {}) {
|
|
1773
1781
|
return e.truncate === 0 && (e.truncate = Number.POSITIVE_INFINITY), qt(t, e);
|
|
1774
1782
|
}
|
|
1775
|
-
c(
|
|
1783
|
+
c(At, "inspect");
|
|
1776
1784
|
function Rn(t) {
|
|
1777
1785
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1778
1786
|
}
|
|
1779
1787
|
c(Rn, "getDefaultExportFromCjs");
|
|
1780
1788
|
|
|
1781
1789
|
// ../node_modules/@vitest/utils/dist/helpers.js
|
|
1782
|
-
function
|
|
1790
|
+
function hs(t) {
|
|
1783
1791
|
return t === Object.prototype || t === Function.prototype || t === RegExp.prototype;
|
|
1784
1792
|
}
|
|
1785
|
-
c(
|
|
1793
|
+
c(hs, "isFinalObj");
|
|
1786
1794
|
function Kt(t) {
|
|
1787
1795
|
return Object.prototype.toString.apply(t).slice(8, -1);
|
|
1788
1796
|
}
|
|
1789
1797
|
c(Kt, "getType");
|
|
1790
|
-
function
|
|
1798
|
+
function ys(t, e) {
|
|
1791
1799
|
let n = typeof e == "function" ? e : (r) => e.add(r);
|
|
1792
1800
|
Object.getOwnPropertyNames(t).forEach(n), Object.getOwnPropertySymbols(t).forEach(n);
|
|
1793
1801
|
}
|
|
1794
|
-
c(
|
|
1795
|
-
function
|
|
1802
|
+
c(ys, "collectOwnProperties");
|
|
1803
|
+
function Se(t) {
|
|
1796
1804
|
let e = /* @__PURE__ */ new Set();
|
|
1797
|
-
return
|
|
1805
|
+
return hs(t) ? [] : (ys(t, e), Array.from(e));
|
|
1798
1806
|
}
|
|
1799
|
-
c(
|
|
1807
|
+
c(Se, "getOwnProperties");
|
|
1800
1808
|
var Nn = { forceWritable: !1 };
|
|
1801
|
-
function
|
|
1802
|
-
return
|
|
1809
|
+
function Ee(t, e = Nn) {
|
|
1810
|
+
return be(t, /* @__PURE__ */ new WeakMap(), e);
|
|
1803
1811
|
}
|
|
1804
|
-
c(
|
|
1805
|
-
function
|
|
1812
|
+
c(Ee, "deepClone");
|
|
1813
|
+
function be(t, e, n = Nn) {
|
|
1806
1814
|
let r, o;
|
|
1807
1815
|
if (e.has(t))
|
|
1808
1816
|
return e.get(t);
|
|
1809
1817
|
if (Array.isArray(t)) {
|
|
1810
1818
|
for (o = Array.from({ length: r = t.length }), e.set(t, o); r--; )
|
|
1811
|
-
o[r] =
|
|
1819
|
+
o[r] = be(t[r], e, n);
|
|
1812
1820
|
return o;
|
|
1813
1821
|
}
|
|
1814
1822
|
if (Object.prototype.toString.call(t) === "[object Object]") {
|
|
1815
1823
|
o = Object.create(Object.getPrototypeOf(t)), e.set(t, o);
|
|
1816
|
-
let s =
|
|
1824
|
+
let s = Se(t);
|
|
1817
1825
|
for (let i of s) {
|
|
1818
1826
|
let a = Object.getOwnPropertyDescriptor(t, i);
|
|
1819
1827
|
if (!a)
|
|
1820
1828
|
continue;
|
|
1821
|
-
let l =
|
|
1829
|
+
let l = be(t[i], e, n);
|
|
1822
1830
|
n.forceWritable ? Object.defineProperty(o, i, {
|
|
1823
1831
|
enumerable: a.enumerable,
|
|
1824
1832
|
configurable: !0,
|
|
@@ -1838,7 +1846,7 @@ function Se(t, e, n = Nn) {
|
|
|
1838
1846
|
}
|
|
1839
1847
|
return t;
|
|
1840
1848
|
}
|
|
1841
|
-
c(
|
|
1849
|
+
c(be, "clone");
|
|
1842
1850
|
|
|
1843
1851
|
// ../node_modules/@vitest/utils/dist/diff.js
|
|
1844
1852
|
var U = -1, k = 1, x = 0, I = class {
|
|
@@ -1851,7 +1859,7 @@ var U = -1, k = 1, x = 0, I = class {
|
|
|
1851
1859
|
this[0] = e, this[1] = n;
|
|
1852
1860
|
}
|
|
1853
1861
|
};
|
|
1854
|
-
function
|
|
1862
|
+
function ds(t, e) {
|
|
1855
1863
|
if (!t || !e || t.charAt(0) !== e.charAt(0))
|
|
1856
1864
|
return 0;
|
|
1857
1865
|
let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
|
|
@@ -1859,7 +1867,7 @@ function hs(t, e) {
|
|
|
1859
1867
|
t.substring(s, o) === e.substring(s, o) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 + n);
|
|
1860
1868
|
return o;
|
|
1861
1869
|
}
|
|
1862
|
-
c(
|
|
1870
|
+
c(ds, "diff_commonPrefix");
|
|
1863
1871
|
function qn(t, e) {
|
|
1864
1872
|
if (!t || !e || t.charAt(t.length - 1) !== e.charAt(e.length - 1))
|
|
1865
1873
|
return 0;
|
|
@@ -1887,7 +1895,7 @@ function Pn(t, e) {
|
|
|
1887
1895
|
}
|
|
1888
1896
|
}
|
|
1889
1897
|
c(Pn, "diff_commonOverlap_");
|
|
1890
|
-
function
|
|
1898
|
+
function bs(t) {
|
|
1891
1899
|
let e = !1, n = [], r = 0, o = null, s = 0, i = 0, a = 0, l = 0, m = 0;
|
|
1892
1900
|
for (; s < t.length; )
|
|
1893
1901
|
t[s][0] === x ? (n[r++] = s, i = l, a = m, l = 0, m = 0, o = t[s][1]) : (t[s][0] === k ? l += t[s][1].length : m += t[s][1].length, o &&
|
|
@@ -1896,7 +1904,7 @@ function ys(t) {
|
|
|
1896
1904
|
0,
|
|
1897
1905
|
new I(U, o)
|
|
1898
1906
|
), t[n[r - 1] + 1][0] = k, r--, r--, s = r > 0 ? n[r - 1] : -1, i = 0, a = 0, l = 0, m = 0, o = null, e = !0)), s++;
|
|
1899
|
-
for (e && Kn(t),
|
|
1907
|
+
for (e && Kn(t), _s(t), s = 1; s < t.length; ) {
|
|
1900
1908
|
if (t[s - 1][0] === U && t[s][0] === k) {
|
|
1901
1909
|
let p = t[s - 1][1], f = t[s][1], S = Pn(p, f), y = Pn(f, p);
|
|
1902
1910
|
S >= y ? (S >= p.length / 2 || S >= f.length / 2) && (t.splice(
|
|
@@ -1918,9 +1926,9 @@ function ys(t) {
|
|
|
1918
1926
|
s++;
|
|
1919
1927
|
}
|
|
1920
1928
|
}
|
|
1921
|
-
c(
|
|
1922
|
-
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/,
|
|
1923
|
-
function
|
|
1929
|
+
c(bs, "diff_cleanupSemantic");
|
|
1930
|
+
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/, Ss = /\n\r?\n$/, Es = /^\r?\n\r?\n/;
|
|
1931
|
+
function _s(t) {
|
|
1924
1932
|
let e = 1;
|
|
1925
1933
|
for (; e < t.length - 1; ) {
|
|
1926
1934
|
if (t[e - 1][0] === x && t[e + 1][0] === x) {
|
|
@@ -1940,7 +1948,7 @@ function Ss(t) {
|
|
|
1940
1948
|
e++;
|
|
1941
1949
|
}
|
|
1942
1950
|
}
|
|
1943
|
-
c(
|
|
1951
|
+
c(_s, "diff_cleanupSemanticLossless");
|
|
1944
1952
|
function Kn(t) {
|
|
1945
1953
|
t.push(new I(x, ""));
|
|
1946
1954
|
let e = 0, n = 0, r = 0, o = "", s = "", i;
|
|
@@ -1953,7 +1961,7 @@ function Kn(t) {
|
|
|
1953
1961
|
n++, o += t[e][1], e++;
|
|
1954
1962
|
break;
|
|
1955
1963
|
case x:
|
|
1956
|
-
n + r > 1 ? (n !== 0 && r !== 0 && (i =
|
|
1964
|
+
n + r > 1 ? (n !== 0 && r !== 0 && (i = ds(s, o), i !== 0 && (e - n - r > 0 && t[e - n - r - 1][0] === x ? t[e - n - r - 1][1] += s.
|
|
1957
1965
|
substring(0, i) : (t.splice(
|
|
1958
1966
|
0,
|
|
1959
1967
|
0,
|
|
@@ -1985,13 +1993,13 @@ function Gt(t, e) {
|
|
|
1985
1993
|
if (!t || !e)
|
|
1986
1994
|
return 6;
|
|
1987
1995
|
let n = t.charAt(t.length - 1), r = e.charAt(0), o = n.match(In), s = r.match(In), i = o && n.match(Mn), a = s && r.match(Mn), l = i && n.
|
|
1988
|
-
match(Ln), m = a && r.match(Ln), p = l && t.match(
|
|
1996
|
+
match(Ln), m = a && r.match(Ln), p = l && t.match(Ss), f = m && e.match(Es);
|
|
1989
1997
|
return p || f ? 5 : l || m ? 4 : o && !i && a ? 3 : i || a ? 2 : o || s ? 1 : 0;
|
|
1990
1998
|
}
|
|
1991
1999
|
c(Gt, "diff_cleanupSemanticScore_");
|
|
1992
|
-
var Gn = "Compared values have no visual difference.",
|
|
2000
|
+
var Gn = "Compared values have no visual difference.", Cs = "Compared values serialize to the same structure.\nPrinting internal object struc\
|
|
1993
2001
|
ture without calling `toJSON` instead.", Ht = {}, xn;
|
|
1994
|
-
function
|
|
2002
|
+
function Ts() {
|
|
1995
2003
|
if (xn) return Ht;
|
|
1996
2004
|
xn = 1, Object.defineProperty(Ht, "__esModule", {
|
|
1997
2005
|
value: !0
|
|
@@ -2071,9 +2079,9 @@ function _s() {
|
|
|
2071
2079
|
C.nChangePreceding = y - 1, y - 1 === at + Ct - g - h ? (C.aEndPreceding = g, C.bEndPreceding = h) : (C.aEndPreceding = at, C.bEndPreceding =
|
|
2072
2080
|
Ct), C.nCommonPreceding = q, q !== 0 && (C.aCommonPreceding = at, C.bCommonPreceding = Ct), C.nCommonFollowing = G, G !== 0 && (C.
|
|
2073
2081
|
aCommonFollowing = K + 1, C.bCommonFollowing = st + 1);
|
|
2074
|
-
let
|
|
2075
|
-
return C.nChangeFollowing = y - 1, y - 1 === u + b -
|
|
2076
|
-
|
|
2082
|
+
let Rt = H + 1, Nt = st + G + 1;
|
|
2083
|
+
return C.nChangeFollowing = y - 1, y - 1 === u + b - Rt - Nt ? (C.aStartFollowing = u, C.bStartFollowing = b) : (C.aStartFollowing =
|
|
2084
|
+
Rt, C.bStartFollowing = Nt), !0;
|
|
2077
2085
|
}
|
|
2078
2086
|
}
|
|
2079
2087
|
}
|
|
@@ -2292,25 +2300,25 @@ function _s() {
|
|
|
2292
2300
|
}
|
|
2293
2301
|
return c(S, "diffSequence"), Ht;
|
|
2294
2302
|
}
|
|
2295
|
-
c(
|
|
2296
|
-
var
|
|
2297
|
-
function
|
|
2303
|
+
c(Ts, "requireBuild");
|
|
2304
|
+
var Os = Ts(), Hn = /* @__PURE__ */ Rn(Os);
|
|
2305
|
+
function $s(t, e) {
|
|
2298
2306
|
return t.replace(/\s+$/, (n) => e(n));
|
|
2299
2307
|
}
|
|
2300
|
-
c(
|
|
2301
|
-
function
|
|
2308
|
+
c($s, "formatTrailingSpaces");
|
|
2309
|
+
function Ae(t, e, n, r, o, s) {
|
|
2302
2310
|
return t.length !== 0 ? n(
|
|
2303
|
-
`${r} ${
|
|
2311
|
+
`${r} ${$s(t, o)}`
|
|
2304
2312
|
) : r !== " " ? n(r) : e && s.length !== 0 ? n(`${r} ${s}`) : "";
|
|
2305
2313
|
}
|
|
2306
|
-
c(
|
|
2314
|
+
c(Ae, "printDiffLine");
|
|
2307
2315
|
function Jn(t, e, {
|
|
2308
2316
|
aColor: n,
|
|
2309
2317
|
aIndicator: r,
|
|
2310
2318
|
changeLineTrailingSpaceColor: o,
|
|
2311
2319
|
emptyFirstOrLastLinePlaceholder: s
|
|
2312
2320
|
}) {
|
|
2313
|
-
return
|
|
2321
|
+
return Ae(
|
|
2314
2322
|
t,
|
|
2315
2323
|
e,
|
|
2316
2324
|
n,
|
|
@@ -2326,7 +2334,7 @@ function Xn(t, e, {
|
|
|
2326
2334
|
changeLineTrailingSpaceColor: o,
|
|
2327
2335
|
emptyFirstOrLastLinePlaceholder: s
|
|
2328
2336
|
}) {
|
|
2329
|
-
return
|
|
2337
|
+
return Ae(
|
|
2330
2338
|
t,
|
|
2331
2339
|
e,
|
|
2332
2340
|
n,
|
|
@@ -2342,7 +2350,7 @@ function Zn(t, e, {
|
|
|
2342
2350
|
commonLineTrailingSpaceColor: o,
|
|
2343
2351
|
emptyFirstOrLastLinePlaceholder: s
|
|
2344
2352
|
}) {
|
|
2345
|
-
return
|
|
2353
|
+
return Ae(
|
|
2346
2354
|
t,
|
|
2347
2355
|
e,
|
|
2348
2356
|
n,
|
|
@@ -2358,7 +2366,7 @@ function Fn(t, e, n, r, { patchColor: o }) {
|
|
|
2358
2366
|
);
|
|
2359
2367
|
}
|
|
2360
2368
|
c(Fn, "createPatchMark");
|
|
2361
|
-
function
|
|
2369
|
+
function ws(t, e) {
|
|
2362
2370
|
let n = t.length, r = e.contextLines, o = r + r, s = n, i = !1, a = 0, l = 0;
|
|
2363
2371
|
for (; l !== n; ) {
|
|
2364
2372
|
let d = l;
|
|
@@ -2433,8 +2441,8 @@ function Os(t, e) {
|
|
|
2433
2441
|
return m && (f[S] = Fn(y, u, g, h, e)), f.join(`
|
|
2434
2442
|
`);
|
|
2435
2443
|
}
|
|
2436
|
-
c(
|
|
2437
|
-
function
|
|
2444
|
+
c(ws, "joinAlignedDiffsNoExpand");
|
|
2445
|
+
function As(t, e) {
|
|
2438
2446
|
return t.map((n, r, o) => {
|
|
2439
2447
|
let s = n[1], i = r === 0 || r === o.length - 1;
|
|
2440
2448
|
switch (n[0]) {
|
|
@@ -2448,9 +2456,9 @@ function $s(t, e) {
|
|
|
2448
2456
|
}).join(`
|
|
2449
2457
|
`);
|
|
2450
2458
|
}
|
|
2451
|
-
c(
|
|
2452
|
-
var
|
|
2453
|
-
function
|
|
2459
|
+
c(As, "joinAlignedDiffsExpand");
|
|
2460
|
+
var _e = /* @__PURE__ */ c((t) => t, "noColor"), Qn = 5, Rs = 0;
|
|
2461
|
+
function Ns() {
|
|
2454
2462
|
return {
|
|
2455
2463
|
aAnnotation: "Expected",
|
|
2456
2464
|
aColor: et.green,
|
|
@@ -2459,10 +2467,10 @@ function As() {
|
|
|
2459
2467
|
bColor: et.red,
|
|
2460
2468
|
bIndicator: "+",
|
|
2461
2469
|
changeColor: et.inverse,
|
|
2462
|
-
changeLineTrailingSpaceColor:
|
|
2470
|
+
changeLineTrailingSpaceColor: _e,
|
|
2463
2471
|
commonColor: et.dim,
|
|
2464
2472
|
commonIndicator: " ",
|
|
2465
|
-
commonLineTrailingSpaceColor:
|
|
2473
|
+
commonLineTrailingSpaceColor: _e,
|
|
2466
2474
|
compareKeys: void 0,
|
|
2467
2475
|
contextLines: Qn,
|
|
2468
2476
|
emptyFirstOrLastLinePlaceholder: "",
|
|
@@ -2471,26 +2479,26 @@ function As() {
|
|
|
2471
2479
|
omitAnnotationLines: !1,
|
|
2472
2480
|
patchColor: et.yellow,
|
|
2473
2481
|
printBasicPrototype: !1,
|
|
2474
|
-
truncateThreshold:
|
|
2482
|
+
truncateThreshold: Rs,
|
|
2475
2483
|
truncateAnnotation: "... Diff result is truncated",
|
|
2476
|
-
truncateAnnotationColor:
|
|
2484
|
+
truncateAnnotationColor: _e
|
|
2477
2485
|
};
|
|
2478
2486
|
}
|
|
2479
|
-
c(
|
|
2480
|
-
function
|
|
2487
|
+
c(Ns, "getDefaultOptions");
|
|
2488
|
+
function Ps(t) {
|
|
2481
2489
|
return t && typeof t == "function" ? t : void 0;
|
|
2482
2490
|
}
|
|
2483
|
-
c(
|
|
2484
|
-
function
|
|
2491
|
+
c(Ps, "getCompareKeys");
|
|
2492
|
+
function Is(t) {
|
|
2485
2493
|
return typeof t == "number" && Number.isSafeInteger(t) && t >= 0 ? t : Qn;
|
|
2486
2494
|
}
|
|
2487
|
-
c(
|
|
2495
|
+
c(Is, "getContextLines");
|
|
2488
2496
|
function ht(t = {}) {
|
|
2489
2497
|
return {
|
|
2490
|
-
...
|
|
2498
|
+
...Ns(),
|
|
2491
2499
|
...t,
|
|
2492
|
-
compareKeys:
|
|
2493
|
-
contextLines:
|
|
2500
|
+
compareKeys: Ps(t.compareKeys),
|
|
2501
|
+
contextLines: Is(t.contextLines)
|
|
2494
2502
|
};
|
|
2495
2503
|
}
|
|
2496
2504
|
c(ht, "normalizeDiffOptions");
|
|
@@ -2498,7 +2506,7 @@ function Et(t) {
|
|
|
2498
2506
|
return t.length === 1 && t[0].length === 0;
|
|
2499
2507
|
}
|
|
2500
2508
|
c(Et, "isEmptyString");
|
|
2501
|
-
function
|
|
2509
|
+
function Ms(t) {
|
|
2502
2510
|
let e = 0, n = 0;
|
|
2503
2511
|
return t.forEach((r) => {
|
|
2504
2512
|
switch (r[0]) {
|
|
@@ -2511,8 +2519,8 @@ function Ps(t) {
|
|
|
2511
2519
|
}
|
|
2512
2520
|
}), { a: e, b: n };
|
|
2513
2521
|
}
|
|
2514
|
-
c(
|
|
2515
|
-
function
|
|
2522
|
+
c(Ms, "countChanges");
|
|
2523
|
+
function Ls({
|
|
2516
2524
|
aAnnotation: t,
|
|
2517
2525
|
aColor: e,
|
|
2518
2526
|
aIndicator: n,
|
|
@@ -2536,22 +2544,22 @@ ${o(S)}
|
|
|
2536
2544
|
|
|
2537
2545
|
`;
|
|
2538
2546
|
}
|
|
2539
|
-
c(
|
|
2540
|
-
function
|
|
2541
|
-
return
|
|
2547
|
+
c(Ls, "printAnnotation");
|
|
2548
|
+
function Re(t, e, n) {
|
|
2549
|
+
return Ls(n, Ms(t)) + (n.expand ? As(t, n) : ws(t, n)) + (e ? n.truncateAnnotationColor(`
|
|
2542
2550
|
${n.truncateAnnotation}`) : "");
|
|
2543
2551
|
}
|
|
2544
|
-
c(
|
|
2552
|
+
c(Re, "printDiffLines");
|
|
2545
2553
|
function Xt(t, e, n) {
|
|
2546
2554
|
let r = ht(n), [o, s] = vn(
|
|
2547
2555
|
Et(t) ? [] : t,
|
|
2548
2556
|
Et(e) ? [] : e,
|
|
2549
2557
|
r
|
|
2550
2558
|
);
|
|
2551
|
-
return
|
|
2559
|
+
return Re(o, s, r);
|
|
2552
2560
|
}
|
|
2553
2561
|
c(Xt, "diffLinesUnified");
|
|
2554
|
-
function
|
|
2562
|
+
function xs(t, e, n, r, o) {
|
|
2555
2563
|
if (Et(t) && Et(n) && (t = [], n = []), Et(e) && Et(r) && (e = [], r = []), t.length !== n.length || e.length !== r.length)
|
|
2556
2564
|
return Xt(t, e, o);
|
|
2557
2565
|
let [s, i] = vn(
|
|
@@ -2570,9 +2578,9 @@ function Ms(t, e, n, r, o) {
|
|
|
2570
2578
|
default:
|
|
2571
2579
|
m[1] = e[l], a += 1, l += 1;
|
|
2572
2580
|
}
|
|
2573
|
-
}),
|
|
2581
|
+
}), Re(s, i, ht(o));
|
|
2574
2582
|
}
|
|
2575
|
-
c(
|
|
2583
|
+
c(xs, "diffLinesUnified2");
|
|
2576
2584
|
function vn(t, e, n) {
|
|
2577
2585
|
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2578
2586
|
Math.floor(n?.truncateThreshold ?? 0),
|
|
@@ -2634,7 +2642,7 @@ function jn(t) {
|
|
|
2634
2642
|
`;
|
|
2635
2643
|
}
|
|
2636
2644
|
c(jn, "getNewLineSymbol");
|
|
2637
|
-
function
|
|
2645
|
+
function Fs(t, e, n) {
|
|
2638
2646
|
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2639
2647
|
Math.floor(n?.truncateThreshold ?? 0),
|
|
2640
2648
|
0
|
|
@@ -2653,14 +2661,14 @@ function Ls(t, e, n) {
|
|
|
2653
2661
|
p)));
|
|
2654
2662
|
}, "foundSubsequence")), m !== s && f.push(new I(U, t.slice(m))), p !== i && f.push(new I(k, e.slice(p))), [f, a];
|
|
2655
2663
|
}
|
|
2656
|
-
c(
|
|
2657
|
-
function
|
|
2664
|
+
c(Fs, "diffStrings");
|
|
2665
|
+
function Ds(t, e, n) {
|
|
2658
2666
|
return e.reduce(
|
|
2659
2667
|
(r, o) => r + (o[0] === x ? o[1] : o[0] === t && o[1].length !== 0 ? n(o[1]) : ""),
|
|
2660
2668
|
""
|
|
2661
2669
|
);
|
|
2662
2670
|
}
|
|
2663
|
-
c(
|
|
2671
|
+
c(Ds, "concatenateRelevantDiffs");
|
|
2664
2672
|
var Jt = class {
|
|
2665
2673
|
static {
|
|
2666
2674
|
c(this, "ChangeBuffer");
|
|
@@ -2681,7 +2689,7 @@ var Jt = class {
|
|
|
2681
2689
|
this.lines.push(
|
|
2682
2690
|
this.line.length !== 1 ? new I(
|
|
2683
2691
|
this.op,
|
|
2684
|
-
|
|
2692
|
+
Ds(this.op, this.line, this.changeColor)
|
|
2685
2693
|
) : this.line[0][0] === this.op ? this.line[0] : new I(this.op, this.line[0][1])
|
|
2686
2694
|
// was common diff
|
|
2687
2695
|
), this.line.length = 0;
|
|
@@ -2710,7 +2718,7 @@ var Jt = class {
|
|
|
2710
2718
|
moveLinesTo(e) {
|
|
2711
2719
|
this.isLineEmpty() || this.pushLine(), e.push(...this.lines), this.lines.length = 0;
|
|
2712
2720
|
}
|
|
2713
|
-
},
|
|
2721
|
+
}, Te = class {
|
|
2714
2722
|
static {
|
|
2715
2723
|
c(this, "CommonBuffer");
|
|
2716
2724
|
}
|
|
@@ -2753,8 +2761,8 @@ var Jt = class {
|
|
|
2753
2761
|
return this.flushChangeLines(), this.lines;
|
|
2754
2762
|
}
|
|
2755
2763
|
};
|
|
2756
|
-
function
|
|
2757
|
-
let n = new Jt(U, e), r = new Jt(k, e), o = new
|
|
2764
|
+
function js(t, e) {
|
|
2765
|
+
let n = new Jt(U, e), r = new Jt(k, e), o = new Te(n, r);
|
|
2758
2766
|
return t.forEach((s) => {
|
|
2759
2767
|
switch (s[0]) {
|
|
2760
2768
|
case U:
|
|
@@ -2768,8 +2776,8 @@ function Fs(t, e) {
|
|
|
2768
2776
|
}
|
|
2769
2777
|
}), o.getLines();
|
|
2770
2778
|
}
|
|
2771
|
-
c(
|
|
2772
|
-
function
|
|
2779
|
+
c(js, "getAlignedDiffs");
|
|
2780
|
+
function Bs(t, e) {
|
|
2773
2781
|
if (e) {
|
|
2774
2782
|
let n = t.length - 1;
|
|
2775
2783
|
return t.some(
|
|
@@ -2779,8 +2787,8 @@ function Ds(t, e) {
|
|
|
2779
2787
|
}
|
|
2780
2788
|
return t.some((n) => n[0] === x);
|
|
2781
2789
|
}
|
|
2782
|
-
c(
|
|
2783
|
-
function
|
|
2790
|
+
c(Bs, "hasCommonDiff");
|
|
2791
|
+
function ks(t, e, n) {
|
|
2784
2792
|
if (t !== e && t.length !== 0 && e.length !== 0) {
|
|
2785
2793
|
let r = t.includes(`
|
|
2786
2794
|
`) || e.includes(`
|
|
@@ -2793,49 +2801,49 @@ function js(t, e, n) {
|
|
|
2793
2801
|
// cleanupSemantic
|
|
2794
2802
|
n
|
|
2795
2803
|
);
|
|
2796
|
-
if (
|
|
2797
|
-
let i = ht(n), a =
|
|
2798
|
-
return
|
|
2804
|
+
if (Bs(o, r)) {
|
|
2805
|
+
let i = ht(n), a = js(o, i.changeColor);
|
|
2806
|
+
return Re(a, s, i);
|
|
2799
2807
|
}
|
|
2800
2808
|
}
|
|
2801
2809
|
return Xt(t.split(`
|
|
2802
2810
|
`), e.split(`
|
|
2803
2811
|
`), n);
|
|
2804
2812
|
}
|
|
2805
|
-
c(
|
|
2813
|
+
c(ks, "diffStringsUnified");
|
|
2806
2814
|
function tr(t, e, n, r) {
|
|
2807
|
-
let [o, s] =
|
|
2808
|
-
return n &&
|
|
2815
|
+
let [o, s] = Fs(t, e, r);
|
|
2816
|
+
return n && bs(o), [o, s];
|
|
2809
2817
|
}
|
|
2810
2818
|
c(tr, "diffStringsRaw");
|
|
2811
|
-
function
|
|
2819
|
+
function Oe(t, e) {
|
|
2812
2820
|
let { commonColor: n } = ht(e);
|
|
2813
2821
|
return n(t);
|
|
2814
2822
|
}
|
|
2815
|
-
c(
|
|
2823
|
+
c(Oe, "getCommonMessage");
|
|
2816
2824
|
var {
|
|
2817
|
-
AsymmetricMatcher:
|
|
2818
|
-
DOMCollection:
|
|
2819
|
-
DOMElement:
|
|
2820
|
-
Immutable:
|
|
2821
|
-
ReactElement:
|
|
2822
|
-
ReactTestComponent:
|
|
2823
|
-
} =
|
|
2824
|
-
|
|
2825
|
+
AsymmetricMatcher: zs,
|
|
2826
|
+
DOMCollection: Ys,
|
|
2827
|
+
DOMElement: Us,
|
|
2828
|
+
Immutable: Ws,
|
|
2829
|
+
ReactElement: Vs,
|
|
2830
|
+
ReactTestComponent: qs
|
|
2831
|
+
} = wt, er = [
|
|
2832
|
+
qs,
|
|
2833
|
+
Vs,
|
|
2825
2834
|
Us,
|
|
2826
|
-
zs,
|
|
2827
|
-
ks,
|
|
2828
2835
|
Ys,
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2836
|
+
Ws,
|
|
2837
|
+
zs,
|
|
2838
|
+
wt.Error
|
|
2839
|
+
], $e = {
|
|
2832
2840
|
plugins: er
|
|
2833
2841
|
}, nr = {
|
|
2834
2842
|
callToJSON: !1,
|
|
2835
2843
|
maxDepth: 8,
|
|
2836
2844
|
plugins: er
|
|
2837
2845
|
};
|
|
2838
|
-
function
|
|
2846
|
+
function Ks(t, e, n) {
|
|
2839
2847
|
if (Object.is(t, e))
|
|
2840
2848
|
return "";
|
|
2841
2849
|
let r = Dn(t), o = r, s = !1;
|
|
@@ -2847,7 +2855,7 @@ function Vs(t, e, n) {
|
|
|
2847
2855
|
if (o !== Dn(e)) {
|
|
2848
2856
|
let i = /* @__PURE__ */ c(function(O) {
|
|
2849
2857
|
return O.length <= h ? O : `${O.slice(0, h)}...`;
|
|
2850
|
-
}, "truncate2"), { aAnnotation: a, aColor: l, aIndicator: m, bAnnotation: p, bColor: f, bIndicator: S } = ht(n), y =
|
|
2858
|
+
}, "truncate2"), { aAnnotation: a, aColor: l, aIndicator: m, bAnnotation: p, bColor: f, bIndicator: S } = ht(n), y = we(nr, n), g = v(t,
|
|
2851
2859
|
y), u = v(e, y), h = 1e5;
|
|
2852
2860
|
g = i(g), u = i(u);
|
|
2853
2861
|
let b = `${l(`${m} ${a}:`)}
|
|
@@ -2865,23 +2873,23 @@ ${_}`;
|
|
|
2865
2873
|
`), n);
|
|
2866
2874
|
case "boolean":
|
|
2867
2875
|
case "number":
|
|
2868
|
-
return
|
|
2876
|
+
return Gs(t, e, n);
|
|
2869
2877
|
case "map":
|
|
2870
|
-
return
|
|
2878
|
+
return Ce(Bn(t), Bn(e), n);
|
|
2871
2879
|
case "set":
|
|
2872
|
-
return
|
|
2880
|
+
return Ce(kn(t), kn(e), n);
|
|
2873
2881
|
default:
|
|
2874
|
-
return
|
|
2882
|
+
return Ce(t, e, n);
|
|
2875
2883
|
}
|
|
2876
2884
|
}
|
|
2877
|
-
c(
|
|
2878
|
-
function
|
|
2879
|
-
let r = v(t,
|
|
2885
|
+
c(Ks, "diff");
|
|
2886
|
+
function Gs(t, e, n) {
|
|
2887
|
+
let r = v(t, $e), o = v(e, $e);
|
|
2880
2888
|
return r === o ? "" : Xt(r.split(`
|
|
2881
2889
|
`), o.split(`
|
|
2882
2890
|
`), n);
|
|
2883
2891
|
}
|
|
2884
|
-
c(
|
|
2892
|
+
c(Gs, "comparePrimitive");
|
|
2885
2893
|
function Bn(t) {
|
|
2886
2894
|
return new Map(Array.from(t.entries()).sort());
|
|
2887
2895
|
}
|
|
@@ -2890,19 +2898,19 @@ function kn(t) {
|
|
|
2890
2898
|
return new Set(Array.from(t.values()).sort());
|
|
2891
2899
|
}
|
|
2892
2900
|
c(kn, "sortSet");
|
|
2893
|
-
function
|
|
2901
|
+
function Ce(t, e, n) {
|
|
2894
2902
|
let r, o = !1;
|
|
2895
2903
|
try {
|
|
2896
|
-
let i =
|
|
2904
|
+
let i = we($e, n);
|
|
2897
2905
|
r = zn(t, e, i, n);
|
|
2898
2906
|
} catch {
|
|
2899
2907
|
o = !0;
|
|
2900
2908
|
}
|
|
2901
|
-
let s =
|
|
2909
|
+
let s = Oe(Gn, n);
|
|
2902
2910
|
if (r === void 0 || r === s) {
|
|
2903
|
-
let i =
|
|
2904
|
-
r = zn(t, e, i, n), r !== s && !o && (r = `${
|
|
2905
|
-
|
|
2911
|
+
let i = we(nr, n);
|
|
2912
|
+
r = zn(t, e, i, n), r !== s && !o && (r = `${Oe(
|
|
2913
|
+
Cs,
|
|
2906
2914
|
n
|
|
2907
2915
|
)}
|
|
2908
2916
|
|
|
@@ -2910,8 +2918,8 @@ ${r}`);
|
|
|
2910
2918
|
}
|
|
2911
2919
|
return r;
|
|
2912
2920
|
}
|
|
2913
|
-
c(
|
|
2914
|
-
function
|
|
2921
|
+
c(Ce, "compareObjects");
|
|
2922
|
+
function we(t, e) {
|
|
2915
2923
|
let { compareKeys: n, printBasicPrototype: r } = ht(e);
|
|
2916
2924
|
return {
|
|
2917
2925
|
...t,
|
|
@@ -2919,14 +2927,14 @@ function Ae(t, e) {
|
|
|
2919
2927
|
printBasicPrototype: r
|
|
2920
2928
|
};
|
|
2921
2929
|
}
|
|
2922
|
-
c(
|
|
2930
|
+
c(we, "getFormatOptions");
|
|
2923
2931
|
function zn(t, e, n, r) {
|
|
2924
2932
|
let o = { ...n, indent: 0 }, s = v(t, o), i = v(e, o);
|
|
2925
2933
|
if (s === i)
|
|
2926
|
-
return
|
|
2934
|
+
return Oe(Gn, r);
|
|
2927
2935
|
{
|
|
2928
2936
|
let a = v(t, n), l = v(e, n);
|
|
2929
|
-
return
|
|
2937
|
+
return xs(
|
|
2930
2938
|
a.split(`
|
|
2931
2939
|
`),
|
|
2932
2940
|
l.split(`
|
|
@@ -2956,24 +2964,24 @@ function rr(t, e, n) {
|
|
|
2956
2964
|
if (e.includes(`
|
|
2957
2965
|
`) || t.includes(`
|
|
2958
2966
|
`))
|
|
2959
|
-
return
|
|
2960
|
-
let [p] = tr(e, t, !0), f = p.some((u) => u[0] === x), S =
|
|
2967
|
+
return ks(e, t, n);
|
|
2968
|
+
let [p] = tr(e, t, !0), f = p.some((u) => u[0] === x), S = Hs(r, o), y = S(r) + Zs(
|
|
2961
2969
|
Vn(p, U, f)
|
|
2962
|
-
), g = S(o) +
|
|
2970
|
+
), g = S(o) + Xs(
|
|
2963
2971
|
Vn(p, k, f)
|
|
2964
2972
|
);
|
|
2965
2973
|
return `${y}
|
|
2966
2974
|
${g}`;
|
|
2967
2975
|
}
|
|
2968
|
-
let s =
|
|
2969
|
-
return
|
|
2976
|
+
let s = Ee(e, { forceWritable: !0 }), i = Ee(t, { forceWritable: !0 }), { replacedExpected: a, replacedActual: l } = or(i, s);
|
|
2977
|
+
return Ks(a, l, n);
|
|
2970
2978
|
}
|
|
2971
2979
|
c(rr, "printDiffOrStringify");
|
|
2972
2980
|
function or(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
|
|
2973
2981
|
return t instanceof Error && e instanceof Error && typeof t.cause < "u" && typeof e.cause > "u" ? (delete t.cause, {
|
|
2974
2982
|
replacedActual: t,
|
|
2975
2983
|
replacedExpected: e
|
|
2976
|
-
}) : Wn(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e),
|
|
2984
|
+
}) : Wn(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e), Se(e).forEach((o) => {
|
|
2977
2985
|
let s = e[o], i = t[o];
|
|
2978
2986
|
if (Un(s))
|
|
2979
2987
|
s.asymmetricMatch(i) && (t[o] = s);
|
|
@@ -2994,27 +3002,27 @@ function or(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new Wea
|
|
|
2994
3002
|
}) : { replacedActual: t, replacedExpected: e };
|
|
2995
3003
|
}
|
|
2996
3004
|
c(or, "replaceAsymmetricMatcher");
|
|
2997
|
-
function
|
|
3005
|
+
function Hs(...t) {
|
|
2998
3006
|
let e = t.reduce(
|
|
2999
3007
|
(n, r) => r.length > n ? r.length : n,
|
|
3000
3008
|
0
|
|
3001
3009
|
);
|
|
3002
3010
|
return (n) => `${n}: ${" ".repeat(e - n.length)}`;
|
|
3003
3011
|
}
|
|
3004
|
-
c(
|
|
3005
|
-
var
|
|
3012
|
+
c(Hs, "getLabelPrinter");
|
|
3013
|
+
var Js = "\xB7";
|
|
3006
3014
|
function sr(t) {
|
|
3007
|
-
return t.replace(/\s+$/gm, (e) =>
|
|
3015
|
+
return t.replace(/\s+$/gm, (e) => Js.repeat(e.length));
|
|
3008
3016
|
}
|
|
3009
3017
|
c(sr, "replaceTrailingSpaces");
|
|
3010
|
-
function
|
|
3018
|
+
function Xs(t) {
|
|
3011
3019
|
return et.red(sr(gt(t)));
|
|
3012
3020
|
}
|
|
3013
|
-
c(
|
|
3014
|
-
function
|
|
3021
|
+
c(Xs, "printReceived");
|
|
3022
|
+
function Zs(t) {
|
|
3015
3023
|
return et.green(sr(gt(t)));
|
|
3016
3024
|
}
|
|
3017
|
-
c(
|
|
3025
|
+
c(Zs, "printExpected");
|
|
3018
3026
|
function Vn(t, e, n) {
|
|
3019
3027
|
return t.reduce(
|
|
3020
3028
|
(r, o) => r + (o[0] === x ? o[1] : o[0] === e ? n ? et.inverse(o[1]) : o[1] : ""),
|
|
@@ -3024,12 +3032,12 @@ function Vn(t, e, n) {
|
|
|
3024
3032
|
c(Vn, "getCommonAndChangedSubstrings");
|
|
3025
3033
|
|
|
3026
3034
|
// ../node_modules/@vitest/utils/dist/error.js
|
|
3027
|
-
var
|
|
3028
|
-
function
|
|
3029
|
-
return t && (t[
|
|
3035
|
+
var Qs = "@@__IMMUTABLE_RECORD__@@", vs = "@@__IMMUTABLE_ITERABLE__@@";
|
|
3036
|
+
function ti(t) {
|
|
3037
|
+
return t && (t[vs] || t[Qs]);
|
|
3030
3038
|
}
|
|
3031
|
-
c(
|
|
3032
|
-
var
|
|
3039
|
+
c(ti, "isImmutable");
|
|
3040
|
+
var ei = Object.getPrototypeOf({});
|
|
3033
3041
|
function ir(t) {
|
|
3034
3042
|
return t instanceof Error ? `<unserializable>: ${t.message}` : typeof t == "string" ? `<unserializable>: ${t}` : "<unserializable>";
|
|
3035
3043
|
}
|
|
@@ -3043,7 +3051,7 @@ function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
|
3043
3051
|
return t.toString();
|
|
3044
3052
|
if (typeof t != "object")
|
|
3045
3053
|
return t;
|
|
3046
|
-
if (
|
|
3054
|
+
if (ti(t))
|
|
3047
3055
|
return _t(t.toJSON(), e);
|
|
3048
3056
|
if (t instanceof Promise || t.constructor && t.constructor.prototype === "AsyncFunction")
|
|
3049
3057
|
return "Promise";
|
|
@@ -3068,7 +3076,7 @@ function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
|
3068
3076
|
let n = /* @__PURE__ */ Object.create(null);
|
|
3069
3077
|
e.set(t, n);
|
|
3070
3078
|
let r = t;
|
|
3071
|
-
for (; r && r !==
|
|
3079
|
+
for (; r && r !== ei; )
|
|
3072
3080
|
Object.getOwnPropertyNames(r).forEach((o) => {
|
|
3073
3081
|
if (!(o in n))
|
|
3074
3082
|
try {
|
|
@@ -3081,11 +3089,11 @@ function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
|
3081
3089
|
}
|
|
3082
3090
|
}
|
|
3083
3091
|
c(_t, "serializeValue");
|
|
3084
|
-
function
|
|
3092
|
+
function ni(t) {
|
|
3085
3093
|
return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
|
|
3086
3094
|
}
|
|
3087
|
-
c(
|
|
3088
|
-
function
|
|
3095
|
+
c(ni, "normalizeErrorMessage");
|
|
3096
|
+
function Ne(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
3089
3097
|
if (!t || typeof t != "object")
|
|
3090
3098
|
return { message: String(t) };
|
|
3091
3099
|
let r = t;
|
|
@@ -3095,11 +3103,11 @@ function Pe(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
3095
3103
|
...r.diffOptions
|
|
3096
3104
|
})), typeof r.expected != "string" && (r.expected = gt(r.expected, 10)), typeof r.actual != "string" && (r.actual = gt(r.actual, 10));
|
|
3097
3105
|
try {
|
|
3098
|
-
typeof r.message == "string" && (r.message =
|
|
3106
|
+
typeof r.message == "string" && (r.message = ni(r.message));
|
|
3099
3107
|
} catch {
|
|
3100
3108
|
}
|
|
3101
3109
|
try {
|
|
3102
|
-
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause =
|
|
3110
|
+
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Ne(r.cause, e, n));
|
|
3103
3111
|
} catch {
|
|
3104
3112
|
}
|
|
3105
3113
|
try {
|
|
@@ -3113,10 +3121,7 @@ Inner error message: ${r?.message}`
|
|
|
3113
3121
|
);
|
|
3114
3122
|
}
|
|
3115
3123
|
}
|
|
3116
|
-
c(
|
|
3117
|
-
|
|
3118
|
-
// src/instrumenter/instrumenter.ts
|
|
3119
|
-
var Zt = require("storybook/preview-api");
|
|
3124
|
+
c(Ne, "processError");
|
|
3120
3125
|
|
|
3121
3126
|
// src/instrumenter/types.ts
|
|
3122
3127
|
var cr = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(cr || {});
|
|
@@ -3136,23 +3141,23 @@ var ot = {
|
|
|
3136
3141
|
goto: !1,
|
|
3137
3142
|
next: !1,
|
|
3138
3143
|
end: !1
|
|
3139
|
-
},
|
|
3144
|
+
}, ri = new Error(
|
|
3140
3145
|
"This function ran after the play function completed. Did you forget to `await` it?"
|
|
3141
|
-
), lr = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"),
|
|
3142
|
-
prototype.toString.call(t) === "[object Module]", "isModule"),
|
|
3143
|
-
if (!lr(t) && !
|
|
3146
|
+
), lr = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"), oi = /* @__PURE__ */ c((t) => Object.
|
|
3147
|
+
prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__ */ c((t) => {
|
|
3148
|
+
if (!lr(t) && !oi(t))
|
|
3144
3149
|
return !1;
|
|
3145
3150
|
if (t.constructor === void 0)
|
|
3146
3151
|
return !0;
|
|
3147
3152
|
let e = t.constructor.prototype;
|
|
3148
3153
|
return !!lr(e);
|
|
3149
|
-
}, "isInstrumentable"),
|
|
3154
|
+
}, "isInstrumentable"), ii = /* @__PURE__ */ c((t) => {
|
|
3150
3155
|
try {
|
|
3151
3156
|
return new t.constructor();
|
|
3152
3157
|
} catch {
|
|
3153
3158
|
return {};
|
|
3154
3159
|
}
|
|
3155
|
-
}, "construct"),
|
|
3160
|
+
}, "construct"), Pe = /* @__PURE__ */ c(() => ({
|
|
3156
3161
|
renderPhase: void 0,
|
|
3157
3162
|
isDebugging: !1,
|
|
3158
3163
|
isPlaying: !1,
|
|
@@ -3174,7 +3179,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3174
3179
|
Array.from(t.callRefsByResult.entries()).filter(([, o]) => o.retain)
|
|
3175
3180
|
);
|
|
3176
3181
|
return { cursor: n.length, calls: n, callRefsByResult: r };
|
|
3177
|
-
}, "getRetainedState"),
|
|
3182
|
+
}, "getRetainedState"), Ie = class {
|
|
3178
3183
|
constructor() {
|
|
3179
3184
|
this.initialized = !1;
|
|
3180
3185
|
this.state = W.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
|
|
@@ -3185,7 +3190,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3185
3190
|
}) => {
|
|
3186
3191
|
let f = this.getState(l);
|
|
3187
3192
|
this.setState(l, {
|
|
3188
|
-
...
|
|
3193
|
+
...Pe(),
|
|
3189
3194
|
...ar(f, p),
|
|
3190
3195
|
shadowCalls: p ? f.shadowCalls : [],
|
|
3191
3196
|
chainedCallIds: p ? f.chainedCallIds : /* @__PURE__ */ new Set(),
|
|
@@ -3241,19 +3246,21 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3241
3246
|
isPlaying: !1
|
|
3242
3247
|
});
|
|
3243
3248
|
}, "renderPhaseChanged");
|
|
3244
|
-
(
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3249
|
+
import("storybook/preview-api").then(({ addons: l }) => {
|
|
3250
|
+
(l ? l.ready() : Promise.resolve()).then(() => {
|
|
3251
|
+
this.channel = l.getChannel(), this.channel.on(yt.FORCE_REMOUNT, e), this.channel.on(yt.STORY_RENDER_PHASE_CHANGED, a), this.channel.
|
|
3252
|
+
on(yt.SET_CURRENT_STORY, () => {
|
|
3253
|
+
this.initialized ? this.cleanup() : this.initialized = !0;
|
|
3254
|
+
}), this.channel.on(ot.START, n(this.channel)), this.channel.on(ot.BACK, r(this.channel)), this.channel.on(ot.GOTO, o(this.channel)),
|
|
3255
|
+
this.channel.on(ot.NEXT, s(this.channel)), this.channel.on(ot.END, i);
|
|
3256
|
+
});
|
|
3250
3257
|
});
|
|
3251
3258
|
}
|
|
3252
3259
|
static {
|
|
3253
3260
|
c(this, "Instrumenter");
|
|
3254
3261
|
}
|
|
3255
3262
|
getState(e) {
|
|
3256
|
-
return this.state[e] ||
|
|
3263
|
+
return this.state[e] || Pe();
|
|
3257
3264
|
}
|
|
3258
3265
|
setState(e, n) {
|
|
3259
3266
|
let r = this.getState(e), o = typeof n == "function" ? n(r) : n;
|
|
@@ -3264,7 +3271,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3264
3271
|
this.state = Object.entries(this.state).reduce(
|
|
3265
3272
|
(n, [r, o]) => {
|
|
3266
3273
|
let s = ar(o);
|
|
3267
|
-
return s && (n[r] = Object.assign(
|
|
3274
|
+
return s && (n[r] = Object.assign(Pe(), s)), n;
|
|
3268
3275
|
},
|
|
3269
3276
|
{}
|
|
3270
3277
|
);
|
|
@@ -3289,12 +3296,12 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3289
3296
|
// Returns the original object, or a new object with the same constructor,
|
|
3290
3297
|
// depending on whether it should mutate.
|
|
3291
3298
|
instrument(e, n, r = 0) {
|
|
3292
|
-
if (!
|
|
3299
|
+
if (!si(e))
|
|
3293
3300
|
return e;
|
|
3294
3301
|
let { mutate: o = !1, path: s = [] } = n, i = n.getKeys ? n.getKeys(e, r) : Object.keys(e);
|
|
3295
3302
|
return r += 1, i.reduce(
|
|
3296
3303
|
(a, l) => {
|
|
3297
|
-
let m =
|
|
3304
|
+
let m = ci(e, l);
|
|
3298
3305
|
if (typeof m?.get == "function") {
|
|
3299
3306
|
if (m.configurable) {
|
|
3300
3307
|
let f = /* @__PURE__ */ c(() => m?.get?.bind(e)?.(), "getter");
|
|
@@ -3312,7 +3319,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3312
3319
|
this.instrument({ ...p }, { ...n, path: s.concat(l) }, r)
|
|
3313
3320
|
), a);
|
|
3314
3321
|
},
|
|
3315
|
-
o ? e :
|
|
3322
|
+
o ? e : ii(e)
|
|
3316
3323
|
);
|
|
3317
3324
|
}
|
|
3318
3325
|
// Monkey patch an object method to record calls.
|
|
@@ -3385,7 +3392,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3385
3392
|
diff: b = void 0,
|
|
3386
3393
|
actual: _ = void 0,
|
|
3387
3394
|
expected: O = void 0
|
|
3388
|
-
} = f.name === "AssertionError" ?
|
|
3395
|
+
} = f.name === "AssertionError" ? Ne(f) : f, d = { name: S, message: y, stack: g, callId: u, showDiff: h, diff: b, actual: _, expected: O };
|
|
3389
3396
|
if (this.update({ ...m, status: "error", exception: d }), this.setState(r.storyId, (E) => ({
|
|
3390
3397
|
callRefsByResult: new Map([
|
|
3391
3398
|
...Array.from(E.callRefsByResult.entries()),
|
|
@@ -3398,7 +3405,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__
|
|
|
3398
3405
|
}, "handleException");
|
|
3399
3406
|
try {
|
|
3400
3407
|
if (i === "played" && !r.retain)
|
|
3401
|
-
throw
|
|
3408
|
+
throw ri;
|
|
3402
3409
|
let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" || Object.keys(g).length ? g :
|
|
3403
3410
|
(...u) => {
|
|
3404
3411
|
let { cursor: h, ancestors: b } = this.getState(r.storyId);
|
|
@@ -3466,14 +3473,14 @@ function mr(t, e = {}) {
|
|
|
3466
3473
|
let n = !1, r = !1;
|
|
3467
3474
|
return W.global.window?.location?.search?.includes("instrument=true") ? n = !0 : W.global.window?.location?.search?.includes("instrument\
|
|
3468
3475
|
=false") && (r = !0), W.global.window?.parent === W.global.window && !n || r ? t : (W.global.window && !W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ &&
|
|
3469
|
-
(W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new
|
|
3476
|
+
(W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Ie()), (W.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).
|
|
3470
3477
|
instrument(t, e));
|
|
3471
3478
|
} catch (n) {
|
|
3472
3479
|
return fr.once.warn(n), t;
|
|
3473
3480
|
}
|
|
3474
3481
|
}
|
|
3475
3482
|
c(mr, "instrument");
|
|
3476
|
-
function
|
|
3483
|
+
function ci(t, e) {
|
|
3477
3484
|
let n = t;
|
|
3478
3485
|
for (; n != null; ) {
|
|
3479
3486
|
let r = Object.getOwnPropertyDescriptor(n, e);
|
|
@@ -3482,4 +3489,4 @@ function si(t, e) {
|
|
|
3482
3489
|
n = Object.getPrototypeOf(n);
|
|
3483
3490
|
}
|
|
3484
3491
|
}
|
|
3485
|
-
c(
|
|
3492
|
+
c(ci, "getPropertyDescriptor");
|