@storybook/addon-a11y 9.2.0-alpha.2 → 10.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1987 @@
1
+ import {
2
+ __name
3
+ } from "./chunk-JFJ5UJ7Q.js";
4
+
5
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/vendor/ansi-styles/index.js
6
+ var ANSI_BACKGROUND_OFFSET = 10;
7
+ var wrapAnsi16 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${code + offset}m`, "wrapAnsi16");
8
+ var wrapAnsi256 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, "wrapAnsi256");
9
+ var wrapAnsi16m = /* @__PURE__ */ __name((offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, "wrapAnsi16m");
10
+ var styles = {
11
+ modifier: {
12
+ reset: [0, 0],
13
+ // 21 isn't widely supported and 22 does the same thing
14
+ bold: [1, 22],
15
+ dim: [2, 22],
16
+ italic: [3, 23],
17
+ underline: [4, 24],
18
+ overline: [53, 55],
19
+ inverse: [7, 27],
20
+ hidden: [8, 28],
21
+ strikethrough: [9, 29]
22
+ },
23
+ color: {
24
+ black: [30, 39],
25
+ red: [31, 39],
26
+ green: [32, 39],
27
+ yellow: [33, 39],
28
+ blue: [34, 39],
29
+ magenta: [35, 39],
30
+ cyan: [36, 39],
31
+ white: [37, 39],
32
+ // Bright color
33
+ blackBright: [90, 39],
34
+ gray: [90, 39],
35
+ // Alias of `blackBright`
36
+ grey: [90, 39],
37
+ // Alias of `blackBright`
38
+ redBright: [91, 39],
39
+ greenBright: [92, 39],
40
+ yellowBright: [93, 39],
41
+ blueBright: [94, 39],
42
+ magentaBright: [95, 39],
43
+ cyanBright: [96, 39],
44
+ whiteBright: [97, 39]
45
+ },
46
+ bgColor: {
47
+ bgBlack: [40, 49],
48
+ bgRed: [41, 49],
49
+ bgGreen: [42, 49],
50
+ bgYellow: [43, 49],
51
+ bgBlue: [44, 49],
52
+ bgMagenta: [45, 49],
53
+ bgCyan: [46, 49],
54
+ bgWhite: [47, 49],
55
+ // Bright color
56
+ bgBlackBright: [100, 49],
57
+ bgGray: [100, 49],
58
+ // Alias of `bgBlackBright`
59
+ bgGrey: [100, 49],
60
+ // Alias of `bgBlackBright`
61
+ bgRedBright: [101, 49],
62
+ bgGreenBright: [102, 49],
63
+ bgYellowBright: [103, 49],
64
+ bgBlueBright: [104, 49],
65
+ bgMagentaBright: [105, 49],
66
+ bgCyanBright: [106, 49],
67
+ bgWhiteBright: [107, 49]
68
+ }
69
+ };
70
+ var modifierNames = Object.keys(styles.modifier);
71
+ var foregroundColorNames = Object.keys(styles.color);
72
+ var backgroundColorNames = Object.keys(styles.bgColor);
73
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
74
+ function assembleStyles() {
75
+ const codes = /* @__PURE__ */ new Map();
76
+ for (const [groupName, group] of Object.entries(styles)) {
77
+ for (const [styleName, style] of Object.entries(group)) {
78
+ styles[styleName] = {
79
+ open: `\x1B[${style[0]}m`,
80
+ close: `\x1B[${style[1]}m`
81
+ };
82
+ group[styleName] = styles[styleName];
83
+ codes.set(style[0], style[1]);
84
+ }
85
+ Object.defineProperty(styles, groupName, {
86
+ value: group,
87
+ enumerable: false
88
+ });
89
+ }
90
+ Object.defineProperty(styles, "codes", {
91
+ value: codes,
92
+ enumerable: false
93
+ });
94
+ styles.color.close = "\x1B[39m";
95
+ styles.bgColor.close = "\x1B[49m";
96
+ styles.color.ansi = wrapAnsi16();
97
+ styles.color.ansi256 = wrapAnsi256();
98
+ styles.color.ansi16m = wrapAnsi16m();
99
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
100
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
101
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
102
+ Object.defineProperties(styles, {
103
+ rgbToAnsi256: {
104
+ value(red, green, blue) {
105
+ if (red === green && green === blue) {
106
+ if (red < 8) {
107
+ return 16;
108
+ }
109
+ if (red > 248) {
110
+ return 231;
111
+ }
112
+ return Math.round((red - 8) / 247 * 24) + 232;
113
+ }
114
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
115
+ },
116
+ enumerable: false
117
+ },
118
+ hexToRgb: {
119
+ value(hex) {
120
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
121
+ if (!matches) {
122
+ return [0, 0, 0];
123
+ }
124
+ let [colorString] = matches;
125
+ if (colorString.length === 3) {
126
+ colorString = [...colorString].map((character) => character + character).join("");
127
+ }
128
+ const integer = Number.parseInt(colorString, 16);
129
+ return [
130
+ /* eslint-disable no-bitwise */
131
+ integer >> 16 & 255,
132
+ integer >> 8 & 255,
133
+ integer & 255
134
+ /* eslint-enable no-bitwise */
135
+ ];
136
+ },
137
+ enumerable: false
138
+ },
139
+ hexToAnsi256: {
140
+ value: /* @__PURE__ */ __name((hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), "value"),
141
+ enumerable: false
142
+ },
143
+ ansi256ToAnsi: {
144
+ value(code) {
145
+ if (code < 8) {
146
+ return 30 + code;
147
+ }
148
+ if (code < 16) {
149
+ return 90 + (code - 8);
150
+ }
151
+ let red;
152
+ let green;
153
+ let blue;
154
+ if (code >= 232) {
155
+ red = ((code - 232) * 10 + 8) / 255;
156
+ green = red;
157
+ blue = red;
158
+ } else {
159
+ code -= 16;
160
+ const remainder = code % 36;
161
+ red = Math.floor(code / 36) / 5;
162
+ green = Math.floor(remainder / 6) / 5;
163
+ blue = remainder % 6 / 5;
164
+ }
165
+ const value = Math.max(red, green, blue) * 2;
166
+ if (value === 0) {
167
+ return 30;
168
+ }
169
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
170
+ if (value === 2) {
171
+ result += 60;
172
+ }
173
+ return result;
174
+ },
175
+ enumerable: false
176
+ },
177
+ rgbToAnsi: {
178
+ value: /* @__PURE__ */ __name((red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), "value"),
179
+ enumerable: false
180
+ },
181
+ hexToAnsi: {
182
+ value: /* @__PURE__ */ __name((hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), "value"),
183
+ enumerable: false
184
+ }
185
+ });
186
+ return styles;
187
+ }
188
+ __name(assembleStyles, "assembleStyles");
189
+ var ansiStyles = assembleStyles();
190
+ var ansi_styles_default = ansiStyles;
191
+
192
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/vendor/supports-color/browser.js
193
+ var level = (() => {
194
+ if (!("navigator" in globalThis)) {
195
+ return 0;
196
+ }
197
+ if (globalThis.navigator.userAgentData) {
198
+ const brand = navigator.userAgentData.brands.find(({ brand: brand2 }) => brand2 === "Chromium");
199
+ if (brand && brand.version > 93) {
200
+ return 3;
201
+ }
202
+ }
203
+ if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
204
+ return 1;
205
+ }
206
+ return 0;
207
+ })();
208
+ var colorSupport = level !== 0 && {
209
+ level,
210
+ hasBasic: true,
211
+ has256: level >= 2,
212
+ has16m: level >= 3
213
+ };
214
+ var supportsColor = {
215
+ stdout: colorSupport,
216
+ stderr: colorSupport
217
+ };
218
+ var browser_default = supportsColor;
219
+
220
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/utilities.js
221
+ function stringReplaceAll(string, substring, replacer) {
222
+ let index = string.indexOf(substring);
223
+ if (index === -1) {
224
+ return string;
225
+ }
226
+ const substringLength = substring.length;
227
+ let endIndex = 0;
228
+ let returnValue = "";
229
+ do {
230
+ returnValue += string.slice(endIndex, index) + substring + replacer;
231
+ endIndex = index + substringLength;
232
+ index = string.indexOf(substring, endIndex);
233
+ } while (index !== -1);
234
+ returnValue += string.slice(endIndex);
235
+ return returnValue;
236
+ }
237
+ __name(stringReplaceAll, "stringReplaceAll");
238
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
239
+ let endIndex = 0;
240
+ let returnValue = "";
241
+ do {
242
+ const gotCR = string[index - 1] === "\r";
243
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
244
+ endIndex = index + 1;
245
+ index = string.indexOf("\n", endIndex);
246
+ } while (index !== -1);
247
+ returnValue += string.slice(endIndex);
248
+ return returnValue;
249
+ }
250
+ __name(stringEncaseCRLFWithFirstIndex, "stringEncaseCRLFWithFirstIndex");
251
+
252
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/index.js
253
+ var { stdout: stdoutColor, stderr: stderrColor } = browser_default;
254
+ var GENERATOR = Symbol("GENERATOR");
255
+ var STYLER = Symbol("STYLER");
256
+ var IS_EMPTY = Symbol("IS_EMPTY");
257
+ var levelMapping = [
258
+ "ansi",
259
+ "ansi",
260
+ "ansi256",
261
+ "ansi16m"
262
+ ];
263
+ var styles2 = /* @__PURE__ */ Object.create(null);
264
+ var applyOptions = /* @__PURE__ */ __name((object, options = {}) => {
265
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
266
+ throw new Error("The `level` option should be an integer from 0 to 3");
267
+ }
268
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
269
+ object.level = options.level === void 0 ? colorLevel : options.level;
270
+ }, "applyOptions");
271
+ var chalkFactory = /* @__PURE__ */ __name((options) => {
272
+ const chalk2 = /* @__PURE__ */ __name((...strings) => strings.join(" "), "chalk");
273
+ applyOptions(chalk2, options);
274
+ Object.setPrototypeOf(chalk2, createChalk.prototype);
275
+ return chalk2;
276
+ }, "chalkFactory");
277
+ function createChalk(options) {
278
+ return chalkFactory(options);
279
+ }
280
+ __name(createChalk, "createChalk");
281
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
282
+ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
283
+ styles2[styleName] = {
284
+ get() {
285
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
286
+ Object.defineProperty(this, styleName, { value: builder });
287
+ return builder;
288
+ }
289
+ };
290
+ }
291
+ styles2.visible = {
292
+ get() {
293
+ const builder = createBuilder(this, this[STYLER], true);
294
+ Object.defineProperty(this, "visible", { value: builder });
295
+ return builder;
296
+ }
297
+ };
298
+ var getModelAnsi = /* @__PURE__ */ __name((model, level2, type, ...arguments_) => {
299
+ if (model === "rgb") {
300
+ if (level2 === "ansi16m") {
301
+ return ansi_styles_default[type].ansi16m(...arguments_);
302
+ }
303
+ if (level2 === "ansi256") {
304
+ return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
305
+ }
306
+ return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
307
+ }
308
+ if (model === "hex") {
309
+ return getModelAnsi("rgb", level2, type, ...ansi_styles_default.hexToRgb(...arguments_));
310
+ }
311
+ return ansi_styles_default[type][model](...arguments_);
312
+ }, "getModelAnsi");
313
+ var usedModels = ["rgb", "hex", "ansi256"];
314
+ for (const model of usedModels) {
315
+ styles2[model] = {
316
+ get() {
317
+ const { level: level2 } = this;
318
+ return function(...arguments_) {
319
+ const styler = createStyler(getModelAnsi(model, levelMapping[level2], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
320
+ return createBuilder(this, styler, this[IS_EMPTY]);
321
+ };
322
+ }
323
+ };
324
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
325
+ styles2[bgModel] = {
326
+ get() {
327
+ const { level: level2 } = this;
328
+ return function(...arguments_) {
329
+ const styler = createStyler(getModelAnsi(model, levelMapping[level2], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
330
+ return createBuilder(this, styler, this[IS_EMPTY]);
331
+ };
332
+ }
333
+ };
334
+ }
335
+ var proto = Object.defineProperties(() => {
336
+ }, {
337
+ ...styles2,
338
+ level: {
339
+ enumerable: true,
340
+ get() {
341
+ return this[GENERATOR].level;
342
+ },
343
+ set(level2) {
344
+ this[GENERATOR].level = level2;
345
+ }
346
+ }
347
+ });
348
+ var createStyler = /* @__PURE__ */ __name((open, close, parent) => {
349
+ let openAll;
350
+ let closeAll;
351
+ if (parent === void 0) {
352
+ openAll = open;
353
+ closeAll = close;
354
+ } else {
355
+ openAll = parent.openAll + open;
356
+ closeAll = close + parent.closeAll;
357
+ }
358
+ return {
359
+ open,
360
+ close,
361
+ openAll,
362
+ closeAll,
363
+ parent
364
+ };
365
+ }, "createStyler");
366
+ var createBuilder = /* @__PURE__ */ __name((self, _styler, _isEmpty) => {
367
+ const builder = /* @__PURE__ */ __name((...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" ")), "builder");
368
+ Object.setPrototypeOf(builder, proto);
369
+ builder[GENERATOR] = self;
370
+ builder[STYLER] = _styler;
371
+ builder[IS_EMPTY] = _isEmpty;
372
+ return builder;
373
+ }, "createBuilder");
374
+ var applyStyle = /* @__PURE__ */ __name((self, string) => {
375
+ if (self.level <= 0 || !string) {
376
+ return self[IS_EMPTY] ? "" : string;
377
+ }
378
+ let styler = self[STYLER];
379
+ if (styler === void 0) {
380
+ return string;
381
+ }
382
+ const { openAll, closeAll } = styler;
383
+ if (string.includes("\x1B")) {
384
+ while (styler !== void 0) {
385
+ string = stringReplaceAll(string, styler.close, styler.open);
386
+ styler = styler.parent;
387
+ }
388
+ }
389
+ const lfIndex = string.indexOf("\n");
390
+ if (lfIndex !== -1) {
391
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
392
+ }
393
+ return openAll + string + closeAll;
394
+ }, "applyStyle");
395
+ Object.defineProperties(createChalk.prototype, styles2);
396
+ var chalk = createChalk();
397
+ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
398
+ var source_default = chalk;
399
+
400
+ // ../../node_modules/vitest-axe/dist/chunk-X4FZIUYL.js
401
+ var __create = Object.create;
402
+ var __defProp = Object.defineProperty;
403
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
404
+ var __getOwnPropNames = Object.getOwnPropertyNames;
405
+ var __getProtoOf = Object.getPrototypeOf;
406
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
407
+ var __commonJS = /* @__PURE__ */ __name((cb, mod) => /* @__PURE__ */ __name(function __require() {
408
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
409
+ }, "__require"), "__commonJS");
410
+ var __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
411
+ if (from && typeof from === "object" || typeof from === "function") {
412
+ for (let key of __getOwnPropNames(from))
413
+ if (!__hasOwnProp.call(to, key) && key !== except)
414
+ __defProp(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
415
+ }
416
+ return to;
417
+ }, "__copyProps");
418
+ var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)), "__toESM");
419
+ var require_ansi_styles = __commonJS({
420
+ "node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports, module) {
421
+ "use strict";
422
+ var ANSI_BACKGROUND_OFFSET2 = 10;
423
+ var wrapAnsi2562 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, "wrapAnsi256");
424
+ var wrapAnsi16m2 = /* @__PURE__ */ __name((offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, "wrapAnsi16m");
425
+ function assembleStyles2() {
426
+ const codes = /* @__PURE__ */ new Map();
427
+ const styles3 = {
428
+ modifier: {
429
+ reset: [0, 0],
430
+ bold: [1, 22],
431
+ dim: [2, 22],
432
+ italic: [3, 23],
433
+ underline: [4, 24],
434
+ overline: [53, 55],
435
+ inverse: [7, 27],
436
+ hidden: [8, 28],
437
+ strikethrough: [9, 29]
438
+ },
439
+ color: {
440
+ black: [30, 39],
441
+ red: [31, 39],
442
+ green: [32, 39],
443
+ yellow: [33, 39],
444
+ blue: [34, 39],
445
+ magenta: [35, 39],
446
+ cyan: [36, 39],
447
+ white: [37, 39],
448
+ blackBright: [90, 39],
449
+ redBright: [91, 39],
450
+ greenBright: [92, 39],
451
+ yellowBright: [93, 39],
452
+ blueBright: [94, 39],
453
+ magentaBright: [95, 39],
454
+ cyanBright: [96, 39],
455
+ whiteBright: [97, 39]
456
+ },
457
+ bgColor: {
458
+ bgBlack: [40, 49],
459
+ bgRed: [41, 49],
460
+ bgGreen: [42, 49],
461
+ bgYellow: [43, 49],
462
+ bgBlue: [44, 49],
463
+ bgMagenta: [45, 49],
464
+ bgCyan: [46, 49],
465
+ bgWhite: [47, 49],
466
+ bgBlackBright: [100, 49],
467
+ bgRedBright: [101, 49],
468
+ bgGreenBright: [102, 49],
469
+ bgYellowBright: [103, 49],
470
+ bgBlueBright: [104, 49],
471
+ bgMagentaBright: [105, 49],
472
+ bgCyanBright: [106, 49],
473
+ bgWhiteBright: [107, 49]
474
+ }
475
+ };
476
+ styles3.color.gray = styles3.color.blackBright;
477
+ styles3.bgColor.bgGray = styles3.bgColor.bgBlackBright;
478
+ styles3.color.grey = styles3.color.blackBright;
479
+ styles3.bgColor.bgGrey = styles3.bgColor.bgBlackBright;
480
+ for (const [groupName, group] of Object.entries(styles3)) {
481
+ for (const [styleName, style] of Object.entries(group)) {
482
+ styles3[styleName] = {
483
+ open: `\x1B[${style[0]}m`,
484
+ close: `\x1B[${style[1]}m`
485
+ };
486
+ group[styleName] = styles3[styleName];
487
+ codes.set(style[0], style[1]);
488
+ }
489
+ Object.defineProperty(styles3, groupName, {
490
+ value: group,
491
+ enumerable: false
492
+ });
493
+ }
494
+ Object.defineProperty(styles3, "codes", {
495
+ value: codes,
496
+ enumerable: false
497
+ });
498
+ styles3.color.close = "\x1B[39m";
499
+ styles3.bgColor.close = "\x1B[49m";
500
+ styles3.color.ansi256 = wrapAnsi2562();
501
+ styles3.color.ansi16m = wrapAnsi16m2();
502
+ styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
503
+ styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
504
+ Object.defineProperties(styles3, {
505
+ rgbToAnsi256: {
506
+ value: /* @__PURE__ */ __name((red, green, blue) => {
507
+ if (red === green && green === blue) {
508
+ if (red < 8) {
509
+ return 16;
510
+ }
511
+ if (red > 248) {
512
+ return 231;
513
+ }
514
+ return Math.round((red - 8) / 247 * 24) + 232;
515
+ }
516
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
517
+ }, "value"),
518
+ enumerable: false
519
+ },
520
+ hexToRgb: {
521
+ value: /* @__PURE__ */ __name((hex) => {
522
+ const matches = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex.toString(16));
523
+ if (!matches) {
524
+ return [0, 0, 0];
525
+ }
526
+ let { colorString } = matches.groups;
527
+ if (colorString.length === 3) {
528
+ colorString = colorString.split("").map((character) => character + character).join("");
529
+ }
530
+ const integer = Number.parseInt(colorString, 16);
531
+ return [
532
+ integer >> 16 & 255,
533
+ integer >> 8 & 255,
534
+ integer & 255
535
+ ];
536
+ }, "value"),
537
+ enumerable: false
538
+ },
539
+ hexToAnsi256: {
540
+ value: /* @__PURE__ */ __name((hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)), "value"),
541
+ enumerable: false
542
+ }
543
+ });
544
+ return styles3;
545
+ }
546
+ __name(assembleStyles2, "assembleStyles");
547
+ Object.defineProperty(module, "exports", {
548
+ enumerable: true,
549
+ get: assembleStyles2
550
+ });
551
+ }
552
+ });
553
+ var require_collections = __commonJS({
554
+ "node_modules/pretty-format/build/collections.js"(exports) {
555
+ "use strict";
556
+ Object.defineProperty(exports, "__esModule", {
557
+ value: true
558
+ });
559
+ exports.printIteratorEntries = printIteratorEntries;
560
+ exports.printIteratorValues = printIteratorValues;
561
+ exports.printListItems = printListItems;
562
+ exports.printObjectProperties = printObjectProperties;
563
+ var getKeysOfEnumerableProperties = /* @__PURE__ */ __name((object, compareKeys) => {
564
+ const keys = Object.keys(object).sort(compareKeys);
565
+ if (Object.getOwnPropertySymbols) {
566
+ Object.getOwnPropertySymbols(object).forEach((symbol) => {
567
+ if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) {
568
+ keys.push(symbol);
569
+ }
570
+ });
571
+ }
572
+ return keys;
573
+ }, "getKeysOfEnumerableProperties");
574
+ function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
575
+ let result = "";
576
+ let width = 0;
577
+ let current = iterator.next();
578
+ if (!current.done) {
579
+ result += config.spacingOuter;
580
+ const indentationNext = indentation + config.indent;
581
+ while (!current.done) {
582
+ result += indentationNext;
583
+ if (width++ === config.maxWidth) {
584
+ result += "\u2026";
585
+ break;
586
+ }
587
+ const name = printer(current.value[0], config, indentationNext, depth, refs);
588
+ const value = printer(current.value[1], config, indentationNext, depth, refs);
589
+ result += name + separator + value;
590
+ current = iterator.next();
591
+ if (!current.done) {
592
+ result += `,${config.spacingInner}`;
593
+ } else if (!config.min) {
594
+ result += ",";
595
+ }
596
+ }
597
+ result += config.spacingOuter + indentation;
598
+ }
599
+ return result;
600
+ }
601
+ __name(printIteratorEntries, "printIteratorEntries");
602
+ function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
603
+ let result = "";
604
+ let width = 0;
605
+ let current = iterator.next();
606
+ if (!current.done) {
607
+ result += config.spacingOuter;
608
+ const indentationNext = indentation + config.indent;
609
+ while (!current.done) {
610
+ result += indentationNext;
611
+ if (width++ === config.maxWidth) {
612
+ result += "\u2026";
613
+ break;
614
+ }
615
+ result += printer(current.value, config, indentationNext, depth, refs);
616
+ current = iterator.next();
617
+ if (!current.done) {
618
+ result += `,${config.spacingInner}`;
619
+ } else if (!config.min) {
620
+ result += ",";
621
+ }
622
+ }
623
+ result += config.spacingOuter + indentation;
624
+ }
625
+ return result;
626
+ }
627
+ __name(printIteratorValues, "printIteratorValues");
628
+ function printListItems(list, config, indentation, depth, refs, printer) {
629
+ let result = "";
630
+ if (list.length) {
631
+ result += config.spacingOuter;
632
+ const indentationNext = indentation + config.indent;
633
+ for (let i = 0; i < list.length; i++) {
634
+ result += indentationNext;
635
+ if (i === config.maxWidth) {
636
+ result += "\u2026";
637
+ break;
638
+ }
639
+ if (i in list) {
640
+ result += printer(list[i], config, indentationNext, depth, refs);
641
+ }
642
+ if (i < list.length - 1) {
643
+ result += `,${config.spacingInner}`;
644
+ } else if (!config.min) {
645
+ result += ",";
646
+ }
647
+ }
648
+ result += config.spacingOuter + indentation;
649
+ }
650
+ return result;
651
+ }
652
+ __name(printListItems, "printListItems");
653
+ function printObjectProperties(val, config, indentation, depth, refs, printer) {
654
+ let result = "";
655
+ const keys = getKeysOfEnumerableProperties(val, config.compareKeys);
656
+ if (keys.length) {
657
+ result += config.spacingOuter;
658
+ const indentationNext = indentation + config.indent;
659
+ for (let i = 0; i < keys.length; i++) {
660
+ const key = keys[i];
661
+ const name = printer(key, config, indentationNext, depth, refs);
662
+ const value = printer(val[key], config, indentationNext, depth, refs);
663
+ result += `${indentationNext + name}: ${value}`;
664
+ if (i < keys.length - 1) {
665
+ result += `,${config.spacingInner}`;
666
+ } else if (!config.min) {
667
+ result += ",";
668
+ }
669
+ }
670
+ result += config.spacingOuter + indentation;
671
+ }
672
+ return result;
673
+ }
674
+ __name(printObjectProperties, "printObjectProperties");
675
+ }
676
+ });
677
+ var require_AsymmetricMatcher = __commonJS({
678
+ "node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
679
+ "use strict";
680
+ Object.defineProperty(exports, "__esModule", {
681
+ value: true
682
+ });
683
+ exports.test = exports.serialize = exports.default = void 0;
684
+ var _collections = require_collections();
685
+ var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
686
+ var asymmetricMatcher = typeof Symbol2 === "function" && Symbol2.for ? Symbol2.for("jest.asymmetricMatcher") : 1267621;
687
+ var SPACE = " ";
688
+ var serialize = /* @__PURE__ */ __name((val, config, indentation, depth, refs, printer) => {
689
+ const stringedValue = val.toString();
690
+ if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") {
691
+ if (++depth > config.maxDepth) {
692
+ return `[${stringedValue}]`;
693
+ }
694
+ return `${stringedValue + SPACE}[${(0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer)}]`;
695
+ }
696
+ if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") {
697
+ if (++depth > config.maxDepth) {
698
+ return `[${stringedValue}]`;
699
+ }
700
+ return `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer)}}`;
701
+ }
702
+ if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") {
703
+ return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
704
+ }
705
+ if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") {
706
+ return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
707
+ }
708
+ if (typeof val.toAsymmetricMatcher !== "function") {
709
+ throw new Error(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
710
+ }
711
+ return val.toAsymmetricMatcher();
712
+ }, "serialize");
713
+ exports.serialize = serialize;
714
+ var test = /* @__PURE__ */ __name((val) => val && val.$$typeof === asymmetricMatcher, "test");
715
+ exports.test = test;
716
+ var plugin = {
717
+ serialize,
718
+ test
719
+ };
720
+ var _default = plugin;
721
+ exports.default = _default;
722
+ }
723
+ });
724
+ var require_ansi_regex = __commonJS({
725
+ "node_modules/ansi-regex/index.js"(exports, module) {
726
+ "use strict";
727
+ module.exports = ({ onlyFirst = false } = {}) => {
728
+ const pattern = [
729
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
730
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
731
+ ].join("|");
732
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
733
+ };
734
+ }
735
+ });
736
+ var require_ConvertAnsi = __commonJS({
737
+ "node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
738
+ "use strict";
739
+ Object.defineProperty(exports, "__esModule", {
740
+ value: true
741
+ });
742
+ exports.test = exports.serialize = exports.default = void 0;
743
+ var _ansiRegex = _interopRequireDefault(require_ansi_regex());
744
+ var _ansiStyles = _interopRequireDefault(require_ansi_styles());
745
+ function _interopRequireDefault(obj) {
746
+ return obj && obj.__esModule ? obj : { default: obj };
747
+ }
748
+ __name(_interopRequireDefault, "_interopRequireDefault");
749
+ var toHumanReadableAnsi = /* @__PURE__ */ __name((text) => text.replace((0, _ansiRegex.default)(), (match) => {
750
+ switch (match) {
751
+ case _ansiStyles.default.red.close:
752
+ case _ansiStyles.default.green.close:
753
+ case _ansiStyles.default.cyan.close:
754
+ case _ansiStyles.default.gray.close:
755
+ case _ansiStyles.default.white.close:
756
+ case _ansiStyles.default.yellow.close:
757
+ case _ansiStyles.default.bgRed.close:
758
+ case _ansiStyles.default.bgGreen.close:
759
+ case _ansiStyles.default.bgYellow.close:
760
+ case _ansiStyles.default.inverse.close:
761
+ case _ansiStyles.default.dim.close:
762
+ case _ansiStyles.default.bold.close:
763
+ case _ansiStyles.default.reset.open:
764
+ case _ansiStyles.default.reset.close:
765
+ return "</>";
766
+ case _ansiStyles.default.red.open:
767
+ return "<red>";
768
+ case _ansiStyles.default.green.open:
769
+ return "<green>";
770
+ case _ansiStyles.default.cyan.open:
771
+ return "<cyan>";
772
+ case _ansiStyles.default.gray.open:
773
+ return "<gray>";
774
+ case _ansiStyles.default.white.open:
775
+ return "<white>";
776
+ case _ansiStyles.default.yellow.open:
777
+ return "<yellow>";
778
+ case _ansiStyles.default.bgRed.open:
779
+ return "<bgRed>";
780
+ case _ansiStyles.default.bgGreen.open:
781
+ return "<bgGreen>";
782
+ case _ansiStyles.default.bgYellow.open:
783
+ return "<bgYellow>";
784
+ case _ansiStyles.default.inverse.open:
785
+ return "<inverse>";
786
+ case _ansiStyles.default.dim.open:
787
+ return "<dim>";
788
+ case _ansiStyles.default.bold.open:
789
+ return "<bold>";
790
+ default:
791
+ return "";
792
+ }
793
+ }), "toHumanReadableAnsi");
794
+ var test = /* @__PURE__ */ __name((val) => typeof val === "string" && !!val.match((0, _ansiRegex.default)()), "test");
795
+ exports.test = test;
796
+ var serialize = /* @__PURE__ */ __name((val, config, indentation, depth, refs, printer) => printer(toHumanReadableAnsi(val), config, indentation, depth, refs), "serialize");
797
+ exports.serialize = serialize;
798
+ var plugin = {
799
+ serialize,
800
+ test
801
+ };
802
+ var _default = plugin;
803
+ exports.default = _default;
804
+ }
805
+ });
806
+ var require_DOMCollection = __commonJS({
807
+ "node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
808
+ "use strict";
809
+ Object.defineProperty(exports, "__esModule", {
810
+ value: true
811
+ });
812
+ exports.test = exports.serialize = exports.default = void 0;
813
+ var _collections = require_collections();
814
+ var SPACE = " ";
815
+ var OBJECT_NAMES = ["DOMStringMap", "NamedNodeMap"];
816
+ var ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/;
817
+ var testName = /* @__PURE__ */ __name((name) => OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name), "testName");
818
+ var test = /* @__PURE__ */ __name((val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name), "test");
819
+ exports.test = test;
820
+ var isNamedNodeMap = /* @__PURE__ */ __name((collection) => collection.constructor.name === "NamedNodeMap", "isNamedNodeMap");
821
+ var serialize = /* @__PURE__ */ __name((collection, config, indentation, depth, refs, printer) => {
822
+ const name = collection.constructor.name;
823
+ if (++depth > config.maxDepth) {
824
+ return `[${name}]`;
825
+ }
826
+ return (config.min ? "" : name + SPACE) + (OBJECT_NAMES.indexOf(name) !== -1 ? `{${(0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => {
827
+ props[attribute.name] = attribute.value;
828
+ return props;
829
+ }, {}) : { ...collection }, config, indentation, depth, refs, printer)}}` : `[${(0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer)}]`);
830
+ }, "serialize");
831
+ exports.serialize = serialize;
832
+ var plugin = {
833
+ serialize,
834
+ test
835
+ };
836
+ var _default = plugin;
837
+ exports.default = _default;
838
+ }
839
+ });
840
+ var require_escapeHTML = __commonJS({
841
+ "node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
842
+ "use strict";
843
+ Object.defineProperty(exports, "__esModule", {
844
+ value: true
845
+ });
846
+ exports.default = escapeHTML;
847
+ function escapeHTML(str) {
848
+ return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
849
+ }
850
+ __name(escapeHTML, "escapeHTML");
851
+ }
852
+ });
853
+ var require_markup = __commonJS({
854
+ "node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
855
+ "use strict";
856
+ Object.defineProperty(exports, "__esModule", {
857
+ value: true
858
+ });
859
+ exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
860
+ var _escapeHTML = _interopRequireDefault(require_escapeHTML());
861
+ function _interopRequireDefault(obj) {
862
+ return obj && obj.__esModule ? obj : { default: obj };
863
+ }
864
+ __name(_interopRequireDefault, "_interopRequireDefault");
865
+ var printProps = /* @__PURE__ */ __name((keys, props, config, indentation, depth, refs, printer) => {
866
+ const indentationNext = indentation + config.indent;
867
+ const colors = config.colors;
868
+ return keys.map((key) => {
869
+ const value = props[key];
870
+ let printed = printer(value, config, indentationNext, depth, refs);
871
+ if (typeof value !== "string") {
872
+ if (printed.indexOf("\n") !== -1) {
873
+ printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
874
+ }
875
+ printed = `{${printed}}`;
876
+ }
877
+ return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
878
+ }).join("");
879
+ }, "printProps");
880
+ exports.printProps = printProps;
881
+ var printChildren = /* @__PURE__ */ __name((children, config, indentation, depth, refs, printer) => children.map((child) => config.spacingOuter + indentation + (typeof child === "string" ? printText(child, config) : printer(child, config, indentation, depth, refs))).join(""), "printChildren");
882
+ exports.printChildren = printChildren;
883
+ var printText = /* @__PURE__ */ __name((text, config) => {
884
+ const contentColor = config.colors.content;
885
+ return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close;
886
+ }, "printText");
887
+ exports.printText = printText;
888
+ var printComment = /* @__PURE__ */ __name((comment, config) => {
889
+ const commentColor = config.colors.comment;
890
+ return `${commentColor.open}<!--${(0, _escapeHTML.default)(comment)}-->${commentColor.close}`;
891
+ }, "printComment");
892
+ exports.printComment = printComment;
893
+ var printElement = /* @__PURE__ */ __name((type, printedProps, printedChildren, config, indentation) => {
894
+ const tagColor = config.colors.tag;
895
+ return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? "" : " "}/`}>${tagColor.close}`;
896
+ }, "printElement");
897
+ exports.printElement = printElement;
898
+ var printElementAsLeaf = /* @__PURE__ */ __name((type, config) => {
899
+ const tagColor = config.colors.tag;
900
+ return `${tagColor.open}<${type}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
901
+ }, "printElementAsLeaf");
902
+ exports.printElementAsLeaf = printElementAsLeaf;
903
+ }
904
+ });
905
+ var require_DOMElement = __commonJS({
906
+ "node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
907
+ "use strict";
908
+ Object.defineProperty(exports, "__esModule", {
909
+ value: true
910
+ });
911
+ exports.test = exports.serialize = exports.default = void 0;
912
+ var _markup = require_markup();
913
+ var ELEMENT_NODE = 1;
914
+ var TEXT_NODE = 3;
915
+ var COMMENT_NODE = 8;
916
+ var FRAGMENT_NODE = 11;
917
+ var ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/;
918
+ var testHasAttribute = /* @__PURE__ */ __name((val) => {
919
+ try {
920
+ return typeof val.hasAttribute === "function" && val.hasAttribute("is");
921
+ } catch {
922
+ return false;
923
+ }
924
+ }, "testHasAttribute");
925
+ var testNode = /* @__PURE__ */ __name((val) => {
926
+ const constructorName = val.constructor.name;
927
+ const { nodeType, tagName } = val;
928
+ const isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val);
929
+ return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
930
+ }, "testNode");
931
+ var test = /* @__PURE__ */ __name((val) => {
932
+ var _val$constructor;
933
+ return (val === null || val === void 0 ? void 0 : (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
934
+ }, "test");
935
+ exports.test = test;
936
+ function nodeIsText(node) {
937
+ return node.nodeType === TEXT_NODE;
938
+ }
939
+ __name(nodeIsText, "nodeIsText");
940
+ function nodeIsComment(node) {
941
+ return node.nodeType === COMMENT_NODE;
942
+ }
943
+ __name(nodeIsComment, "nodeIsComment");
944
+ function nodeIsFragment(node) {
945
+ return node.nodeType === FRAGMENT_NODE;
946
+ }
947
+ __name(nodeIsFragment, "nodeIsFragment");
948
+ var serialize = /* @__PURE__ */ __name((node, config, indentation, depth, refs, printer) => {
949
+ if (nodeIsText(node)) {
950
+ return (0, _markup.printText)(node.data, config);
951
+ }
952
+ if (nodeIsComment(node)) {
953
+ return (0, _markup.printComment)(node.data, config);
954
+ }
955
+ const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
956
+ if (++depth > config.maxDepth) {
957
+ return (0, _markup.printElementAsLeaf)(type, config);
958
+ }
959
+ return (0, _markup.printElement)(type, (0, _markup.printProps)(nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
960
+ props[attribute.name] = attribute.value;
961
+ return props;
962
+ }, {}), config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
963
+ }, "serialize");
964
+ exports.serialize = serialize;
965
+ var plugin = {
966
+ serialize,
967
+ test
968
+ };
969
+ var _default = plugin;
970
+ exports.default = _default;
971
+ }
972
+ });
973
+ var require_Immutable = __commonJS({
974
+ "node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
975
+ "use strict";
976
+ Object.defineProperty(exports, "__esModule", {
977
+ value: true
978
+ });
979
+ exports.test = exports.serialize = exports.default = void 0;
980
+ var _collections = require_collections();
981
+ var IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@";
982
+ var IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@";
983
+ var IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@";
984
+ var IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@";
985
+ var IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@";
986
+ var IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@";
987
+ var IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
988
+ var IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
989
+ var IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
990
+ var getImmutableName = /* @__PURE__ */ __name((name) => `Immutable.${name}`, "getImmutableName");
991
+ var printAsLeaf = /* @__PURE__ */ __name((name) => `[${name}]`, "printAsLeaf");
992
+ var SPACE = " ";
993
+ var LAZY = "\u2026";
994
+ var printImmutableEntries = /* @__PURE__ */ __name((val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer)}}`, "printImmutableEntries");
995
+ function getRecordEntries(val) {
996
+ let i = 0;
997
+ return {
998
+ next() {
999
+ if (i < val._keys.length) {
1000
+ const key = val._keys[i++];
1001
+ return {
1002
+ done: false,
1003
+ value: [key, val.get(key)]
1004
+ };
1005
+ }
1006
+ return {
1007
+ done: true,
1008
+ value: void 0
1009
+ };
1010
+ }
1011
+ };
1012
+ }
1013
+ __name(getRecordEntries, "getRecordEntries");
1014
+ var printImmutableRecord = /* @__PURE__ */ __name((val, config, indentation, depth, refs, printer) => {
1015
+ const name = getImmutableName(val._name || "Record");
1016
+ return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${(0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
1017
+ }, "printImmutableRecord");
1018
+ var printImmutableSeq = /* @__PURE__ */ __name((val, config, indentation, depth, refs, printer) => {
1019
+ const name = getImmutableName("Seq");
1020
+ if (++depth > config.maxDepth) {
1021
+ return printAsLeaf(name);
1022
+ }
1023
+ if (val[IS_KEYED_SENTINEL]) {
1024
+ return `${name + SPACE}{${val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY}}`;
1025
+ }
1026
+ return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
1027
+ }, "printImmutableSeq");
1028
+ var printImmutableValues = /* @__PURE__ */ __name((val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}]`, "printImmutableValues");
1029
+ var serialize = /* @__PURE__ */ __name((val, config, indentation, depth, refs, printer) => {
1030
+ if (val[IS_MAP_SENTINEL]) {
1031
+ return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
1032
+ }
1033
+ if (val[IS_LIST_SENTINEL]) {
1034
+ return printImmutableValues(val, config, indentation, depth, refs, printer, "List");
1035
+ }
1036
+ if (val[IS_SET_SENTINEL]) {
1037
+ return printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set");
1038
+ }
1039
+ if (val[IS_STACK_SENTINEL]) {
1040
+ return printImmutableValues(val, config, indentation, depth, refs, printer, "Stack");
1041
+ }
1042
+ if (val[IS_SEQ_SENTINEL]) {
1043
+ return printImmutableSeq(val, config, indentation, depth, refs, printer);
1044
+ }
1045
+ return printImmutableRecord(val, config, indentation, depth, refs, printer);
1046
+ }, "serialize");
1047
+ exports.serialize = serialize;
1048
+ var test = /* @__PURE__ */ __name((val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true), "test");
1049
+ exports.test = test;
1050
+ var plugin = {
1051
+ serialize,
1052
+ test
1053
+ };
1054
+ var _default = plugin;
1055
+ exports.default = _default;
1056
+ }
1057
+ });
1058
+ var require_react_is_production_min = __commonJS({
1059
+ "node_modules/react-is/cjs/react-is.production.min.js"(exports) {
1060
+ "use strict";
1061
+ var b = Symbol.for("react.element");
1062
+ var c = Symbol.for("react.portal");
1063
+ var d = Symbol.for("react.fragment");
1064
+ var e = Symbol.for("react.strict_mode");
1065
+ var f = Symbol.for("react.profiler");
1066
+ var g = Symbol.for("react.provider");
1067
+ var h = Symbol.for("react.context");
1068
+ var k = Symbol.for("react.server_context");
1069
+ var l = Symbol.for("react.forward_ref");
1070
+ var m = Symbol.for("react.suspense");
1071
+ var n = Symbol.for("react.suspense_list");
1072
+ var p = Symbol.for("react.memo");
1073
+ var q = Symbol.for("react.lazy");
1074
+ var t = Symbol.for("react.offscreen");
1075
+ var u;
1076
+ u = Symbol.for("react.module.reference");
1077
+ function v(a) {
1078
+ if (typeof a === "object" && a !== null) {
1079
+ var r = a.$$typeof;
1080
+ switch (r) {
1081
+ case b:
1082
+ switch (a = a.type, a) {
1083
+ case d:
1084
+ case f:
1085
+ case e:
1086
+ case m:
1087
+ case n:
1088
+ return a;
1089
+ default:
1090
+ switch (a = a && a.$$typeof, a) {
1091
+ case k:
1092
+ case h:
1093
+ case l:
1094
+ case q:
1095
+ case p:
1096
+ case g:
1097
+ return a;
1098
+ default:
1099
+ return r;
1100
+ }
1101
+ }
1102
+ case c:
1103
+ return r;
1104
+ }
1105
+ }
1106
+ }
1107
+ __name(v, "v");
1108
+ exports.ContextConsumer = h;
1109
+ exports.ContextProvider = g;
1110
+ exports.Element = b;
1111
+ exports.ForwardRef = l;
1112
+ exports.Fragment = d;
1113
+ exports.Lazy = q;
1114
+ exports.Memo = p;
1115
+ exports.Portal = c;
1116
+ exports.Profiler = f;
1117
+ exports.StrictMode = e;
1118
+ exports.Suspense = m;
1119
+ exports.SuspenseList = n;
1120
+ exports.isAsyncMode = function() {
1121
+ return false;
1122
+ };
1123
+ exports.isConcurrentMode = function() {
1124
+ return false;
1125
+ };
1126
+ exports.isContextConsumer = function(a) {
1127
+ return v(a) === h;
1128
+ };
1129
+ exports.isContextProvider = function(a) {
1130
+ return v(a) === g;
1131
+ };
1132
+ exports.isElement = function(a) {
1133
+ return typeof a === "object" && a !== null && a.$$typeof === b;
1134
+ };
1135
+ exports.isForwardRef = function(a) {
1136
+ return v(a) === l;
1137
+ };
1138
+ exports.isFragment = function(a) {
1139
+ return v(a) === d;
1140
+ };
1141
+ exports.isLazy = function(a) {
1142
+ return v(a) === q;
1143
+ };
1144
+ exports.isMemo = function(a) {
1145
+ return v(a) === p;
1146
+ };
1147
+ exports.isPortal = function(a) {
1148
+ return v(a) === c;
1149
+ };
1150
+ exports.isProfiler = function(a) {
1151
+ return v(a) === f;
1152
+ };
1153
+ exports.isStrictMode = function(a) {
1154
+ return v(a) === e;
1155
+ };
1156
+ exports.isSuspense = function(a) {
1157
+ return v(a) === m;
1158
+ };
1159
+ exports.isSuspenseList = function(a) {
1160
+ return v(a) === n;
1161
+ };
1162
+ exports.isValidElementType = function(a) {
1163
+ return typeof a === "string" || typeof a === "function" || a === d || a === f || a === e || a === m || a === n || a === t || typeof a === "object" && a !== null && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || a.getModuleId !== void 0) ? true : false;
1164
+ };
1165
+ exports.typeOf = v;
1166
+ }
1167
+ });
1168
+ var require_react_is_development = __commonJS({
1169
+ "node_modules/react-is/cjs/react-is.development.js"(exports) {
1170
+ "use strict";
1171
+ if (process.env.NODE_ENV !== "production") {
1172
+ (function() {
1173
+ "use strict";
1174
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
1175
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
1176
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
1177
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
1178
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1179
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
1180
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
1181
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
1182
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
1183
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
1184
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
1185
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
1186
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
1187
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
1188
+ var enableScopeAPI = false;
1189
+ var enableCacheElement = false;
1190
+ var enableTransitionTracing = false;
1191
+ var enableLegacyHidden = false;
1192
+ var enableDebugTracing = false;
1193
+ var REACT_MODULE_REFERENCE;
1194
+ {
1195
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1196
+ }
1197
+ function isValidElementType(type) {
1198
+ if (typeof type === "string" || typeof type === "function") {
1199
+ return true;
1200
+ }
1201
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1202
+ return true;
1203
+ }
1204
+ if (typeof type === "object" && type !== null) {
1205
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1206
+ return true;
1207
+ }
1208
+ }
1209
+ return false;
1210
+ }
1211
+ __name(isValidElementType, "isValidElementType");
1212
+ function typeOf(object) {
1213
+ if (typeof object === "object" && object !== null) {
1214
+ var $$typeof = object.$$typeof;
1215
+ switch ($$typeof) {
1216
+ case REACT_ELEMENT_TYPE:
1217
+ var type = object.type;
1218
+ switch (type) {
1219
+ case REACT_FRAGMENT_TYPE:
1220
+ case REACT_PROFILER_TYPE:
1221
+ case REACT_STRICT_MODE_TYPE:
1222
+ case REACT_SUSPENSE_TYPE:
1223
+ case REACT_SUSPENSE_LIST_TYPE:
1224
+ return type;
1225
+ default:
1226
+ var $$typeofType = type && type.$$typeof;
1227
+ switch ($$typeofType) {
1228
+ case REACT_SERVER_CONTEXT_TYPE:
1229
+ case REACT_CONTEXT_TYPE:
1230
+ case REACT_FORWARD_REF_TYPE:
1231
+ case REACT_LAZY_TYPE:
1232
+ case REACT_MEMO_TYPE:
1233
+ case REACT_PROVIDER_TYPE:
1234
+ return $$typeofType;
1235
+ default:
1236
+ return $$typeof;
1237
+ }
1238
+ }
1239
+ case REACT_PORTAL_TYPE:
1240
+ return $$typeof;
1241
+ }
1242
+ }
1243
+ return void 0;
1244
+ }
1245
+ __name(typeOf, "typeOf");
1246
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1247
+ var ContextProvider = REACT_PROVIDER_TYPE;
1248
+ var Element = REACT_ELEMENT_TYPE;
1249
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
1250
+ var Fragment = REACT_FRAGMENT_TYPE;
1251
+ var Lazy = REACT_LAZY_TYPE;
1252
+ var Memo = REACT_MEMO_TYPE;
1253
+ var Portal = REACT_PORTAL_TYPE;
1254
+ var Profiler = REACT_PROFILER_TYPE;
1255
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1256
+ var Suspense = REACT_SUSPENSE_TYPE;
1257
+ var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
1258
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
1259
+ var hasWarnedAboutDeprecatedIsConcurrentMode = false;
1260
+ function isAsyncMode(object) {
1261
+ {
1262
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1263
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
1264
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
1265
+ }
1266
+ }
1267
+ return false;
1268
+ }
1269
+ __name(isAsyncMode, "isAsyncMode");
1270
+ function isConcurrentMode(object) {
1271
+ {
1272
+ if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1273
+ hasWarnedAboutDeprecatedIsConcurrentMode = true;
1274
+ console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
1275
+ }
1276
+ }
1277
+ return false;
1278
+ }
1279
+ __name(isConcurrentMode, "isConcurrentMode");
1280
+ function isContextConsumer(object) {
1281
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1282
+ }
1283
+ __name(isContextConsumer, "isContextConsumer");
1284
+ function isContextProvider(object) {
1285
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1286
+ }
1287
+ __name(isContextProvider, "isContextProvider");
1288
+ function isElement(object) {
1289
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1290
+ }
1291
+ __name(isElement, "isElement");
1292
+ function isForwardRef(object) {
1293
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1294
+ }
1295
+ __name(isForwardRef, "isForwardRef");
1296
+ function isFragment(object) {
1297
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1298
+ }
1299
+ __name(isFragment, "isFragment");
1300
+ function isLazy(object) {
1301
+ return typeOf(object) === REACT_LAZY_TYPE;
1302
+ }
1303
+ __name(isLazy, "isLazy");
1304
+ function isMemo(object) {
1305
+ return typeOf(object) === REACT_MEMO_TYPE;
1306
+ }
1307
+ __name(isMemo, "isMemo");
1308
+ function isPortal(object) {
1309
+ return typeOf(object) === REACT_PORTAL_TYPE;
1310
+ }
1311
+ __name(isPortal, "isPortal");
1312
+ function isProfiler(object) {
1313
+ return typeOf(object) === REACT_PROFILER_TYPE;
1314
+ }
1315
+ __name(isProfiler, "isProfiler");
1316
+ function isStrictMode(object) {
1317
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1318
+ }
1319
+ __name(isStrictMode, "isStrictMode");
1320
+ function isSuspense(object) {
1321
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1322
+ }
1323
+ __name(isSuspense, "isSuspense");
1324
+ function isSuspenseList(object) {
1325
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
1326
+ }
1327
+ __name(isSuspenseList, "isSuspenseList");
1328
+ exports.ContextConsumer = ContextConsumer;
1329
+ exports.ContextProvider = ContextProvider;
1330
+ exports.Element = Element;
1331
+ exports.ForwardRef = ForwardRef;
1332
+ exports.Fragment = Fragment;
1333
+ exports.Lazy = Lazy;
1334
+ exports.Memo = Memo;
1335
+ exports.Portal = Portal;
1336
+ exports.Profiler = Profiler;
1337
+ exports.StrictMode = StrictMode;
1338
+ exports.Suspense = Suspense;
1339
+ exports.SuspenseList = SuspenseList;
1340
+ exports.isAsyncMode = isAsyncMode;
1341
+ exports.isConcurrentMode = isConcurrentMode;
1342
+ exports.isContextConsumer = isContextConsumer;
1343
+ exports.isContextProvider = isContextProvider;
1344
+ exports.isElement = isElement;
1345
+ exports.isForwardRef = isForwardRef;
1346
+ exports.isFragment = isFragment;
1347
+ exports.isLazy = isLazy;
1348
+ exports.isMemo = isMemo;
1349
+ exports.isPortal = isPortal;
1350
+ exports.isProfiler = isProfiler;
1351
+ exports.isStrictMode = isStrictMode;
1352
+ exports.isSuspense = isSuspense;
1353
+ exports.isSuspenseList = isSuspenseList;
1354
+ exports.isValidElementType = isValidElementType;
1355
+ exports.typeOf = typeOf;
1356
+ })();
1357
+ }
1358
+ }
1359
+ });
1360
+ var require_react_is = __commonJS({
1361
+ "node_modules/react-is/index.js"(exports, module) {
1362
+ "use strict";
1363
+ if (process.env.NODE_ENV === "production") {
1364
+ module.exports = require_react_is_production_min();
1365
+ } else {
1366
+ module.exports = require_react_is_development();
1367
+ }
1368
+ }
1369
+ });
1370
+ var require_ReactElement = __commonJS({
1371
+ "node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
1372
+ "use strict";
1373
+ Object.defineProperty(exports, "__esModule", {
1374
+ value: true
1375
+ });
1376
+ exports.test = exports.serialize = exports.default = void 0;
1377
+ var ReactIs = _interopRequireWildcard(require_react_is());
1378
+ var _markup = require_markup();
1379
+ function _getRequireWildcardCache(nodeInterop) {
1380
+ if (typeof WeakMap !== "function")
1381
+ return null;
1382
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
1383
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
1384
+ return (_getRequireWildcardCache = /* @__PURE__ */ __name(function(nodeInterop2) {
1385
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
1386
+ }, "_getRequireWildcardCache"))(nodeInterop);
1387
+ }
1388
+ __name(_getRequireWildcardCache, "_getRequireWildcardCache");
1389
+ function _interopRequireWildcard(obj, nodeInterop) {
1390
+ if (!nodeInterop && obj && obj.__esModule) {
1391
+ return obj;
1392
+ }
1393
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
1394
+ return { default: obj };
1395
+ }
1396
+ var cache = _getRequireWildcardCache(nodeInterop);
1397
+ if (cache && cache.has(obj)) {
1398
+ return cache.get(obj);
1399
+ }
1400
+ var newObj = {};
1401
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
1402
+ for (var key in obj) {
1403
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
1404
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
1405
+ if (desc && (desc.get || desc.set)) {
1406
+ Object.defineProperty(newObj, key, desc);
1407
+ } else {
1408
+ newObj[key] = obj[key];
1409
+ }
1410
+ }
1411
+ }
1412
+ newObj.default = obj;
1413
+ if (cache) {
1414
+ cache.set(obj, newObj);
1415
+ }
1416
+ return newObj;
1417
+ }
1418
+ __name(_interopRequireWildcard, "_interopRequireWildcard");
1419
+ var getChildren = /* @__PURE__ */ __name((arg, children = []) => {
1420
+ if (Array.isArray(arg)) {
1421
+ arg.forEach((item) => {
1422
+ getChildren(item, children);
1423
+ });
1424
+ } else if (arg != null && arg !== false) {
1425
+ children.push(arg);
1426
+ }
1427
+ return children;
1428
+ }, "getChildren");
1429
+ var getType = /* @__PURE__ */ __name((element) => {
1430
+ const type = element.type;
1431
+ if (typeof type === "string") {
1432
+ return type;
1433
+ }
1434
+ if (typeof type === "function") {
1435
+ return type.displayName || type.name || "Unknown";
1436
+ }
1437
+ if (ReactIs.isFragment(element)) {
1438
+ return "React.Fragment";
1439
+ }
1440
+ if (ReactIs.isSuspense(element)) {
1441
+ return "React.Suspense";
1442
+ }
1443
+ if (typeof type === "object" && type !== null) {
1444
+ if (ReactIs.isContextProvider(element)) {
1445
+ return "Context.Provider";
1446
+ }
1447
+ if (ReactIs.isContextConsumer(element)) {
1448
+ return "Context.Consumer";
1449
+ }
1450
+ if (ReactIs.isForwardRef(element)) {
1451
+ if (type.displayName) {
1452
+ return type.displayName;
1453
+ }
1454
+ const functionName = type.render.displayName || type.render.name || "";
1455
+ return functionName !== "" ? `ForwardRef(${functionName})` : "ForwardRef";
1456
+ }
1457
+ if (ReactIs.isMemo(element)) {
1458
+ const functionName = type.displayName || type.type.displayName || type.type.name || "";
1459
+ return functionName !== "" ? `Memo(${functionName})` : "Memo";
1460
+ }
1461
+ }
1462
+ return "UNDEFINED";
1463
+ }, "getType");
1464
+ var getPropKeys = /* @__PURE__ */ __name((element) => {
1465
+ const { props } = element;
1466
+ return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
1467
+ }, "getPropKeys");
1468
+ var serialize = /* @__PURE__ */ __name((element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(getType(element), config) : (0, _markup.printElement)(getType(element), (0, _markup.printProps)(getPropKeys(element), element.props, config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation), "serialize");
1469
+ exports.serialize = serialize;
1470
+ var test = /* @__PURE__ */ __name((val) => val != null && ReactIs.isElement(val), "test");
1471
+ exports.test = test;
1472
+ var plugin = {
1473
+ serialize,
1474
+ test
1475
+ };
1476
+ var _default = plugin;
1477
+ exports.default = _default;
1478
+ }
1479
+ });
1480
+ var require_ReactTestComponent = __commonJS({
1481
+ "node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
1482
+ "use strict";
1483
+ Object.defineProperty(exports, "__esModule", {
1484
+ value: true
1485
+ });
1486
+ exports.test = exports.serialize = exports.default = void 0;
1487
+ var _markup = require_markup();
1488
+ var Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol;
1489
+ var testSymbol = typeof Symbol2 === "function" && Symbol2.for ? Symbol2.for("react.test.json") : 245830487;
1490
+ var getPropKeys = /* @__PURE__ */ __name((object) => {
1491
+ const { props } = object;
1492
+ return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
1493
+ }, "getPropKeys");
1494
+ var serialize = /* @__PURE__ */ __name((object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config) : (0, _markup.printElement)(object.type, object.props ? (0, _markup.printProps)(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : "", object.children ? (0, _markup.printChildren)(object.children, config, indentation + config.indent, depth, refs, printer) : "", config, indentation), "serialize");
1495
+ exports.serialize = serialize;
1496
+ var test = /* @__PURE__ */ __name((val) => val && val.$$typeof === testSymbol, "test");
1497
+ exports.test = test;
1498
+ var plugin = {
1499
+ serialize,
1500
+ test
1501
+ };
1502
+ var _default = plugin;
1503
+ exports.default = _default;
1504
+ }
1505
+ });
1506
+ var require_build = __commonJS({
1507
+ "node_modules/pretty-format/build/index.js"(exports) {
1508
+ "use strict";
1509
+ var _a;
1510
+ Object.defineProperty(exports, "__esModule", {
1511
+ value: true
1512
+ });
1513
+ exports.default = exports.DEFAULT_OPTIONS = void 0;
1514
+ exports.format = format;
1515
+ exports.plugins = void 0;
1516
+ var _ansiStyles = _interopRequireDefault(require_ansi_styles());
1517
+ var _collections = require_collections();
1518
+ var _AsymmetricMatcher = _interopRequireDefault(require_AsymmetricMatcher());
1519
+ var _ConvertAnsi = _interopRequireDefault(require_ConvertAnsi());
1520
+ var _DOMCollection = _interopRequireDefault(require_DOMCollection());
1521
+ var _DOMElement = _interopRequireDefault(require_DOMElement());
1522
+ var _Immutable = _interopRequireDefault(require_Immutable());
1523
+ var _ReactElement = _interopRequireDefault(require_ReactElement());
1524
+ var _ReactTestComponent = _interopRequireDefault(require_ReactTestComponent());
1525
+ function _interopRequireDefault(obj) {
1526
+ return obj && obj.__esModule ? obj : { default: obj };
1527
+ }
1528
+ __name(_interopRequireDefault, "_interopRequireDefault");
1529
+ var toString = Object.prototype.toString;
1530
+ var toISOString = Date.prototype.toISOString;
1531
+ var errorToString = Error.prototype.toString;
1532
+ var regExpToString = RegExp.prototype.toString;
1533
+ var getConstructorName = /* @__PURE__ */ __name((val) => typeof val.constructor === "function" && val.constructor.name || "Object", "getConstructorName");
1534
+ var isWindow = /* @__PURE__ */ __name((val) => typeof window !== "undefined" && val === window, "isWindow");
1535
+ var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
1536
+ var NEWLINE_REGEXP = /\n/gi;
1537
+ var PrettyFormatPluginError = (_a = class extends Error {
1538
+ constructor(message, stack) {
1539
+ super(message);
1540
+ this.stack = stack;
1541
+ this.name = this.constructor.name;
1542
+ }
1543
+ }, __name(_a, "PrettyFormatPluginError"), _a);
1544
+ function isToStringedArrayType(toStringed) {
1545
+ return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
1546
+ }
1547
+ __name(isToStringedArrayType, "isToStringedArrayType");
1548
+ function printNumber(val) {
1549
+ return Object.is(val, -0) ? "-0" : String(val);
1550
+ }
1551
+ __name(printNumber, "printNumber");
1552
+ function printBigInt(val) {
1553
+ return String(`${val}n`);
1554
+ }
1555
+ __name(printBigInt, "printBigInt");
1556
+ function printFunction(val, printFunctionName) {
1557
+ if (!printFunctionName) {
1558
+ return "[Function]";
1559
+ }
1560
+ return `[Function ${val.name || "anonymous"}]`;
1561
+ }
1562
+ __name(printFunction, "printFunction");
1563
+ function printSymbol(val) {
1564
+ return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
1565
+ }
1566
+ __name(printSymbol, "printSymbol");
1567
+ function printError(val) {
1568
+ return `[${errorToString.call(val)}]`;
1569
+ }
1570
+ __name(printError, "printError");
1571
+ function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
1572
+ if (val === true || val === false) {
1573
+ return `${val}`;
1574
+ }
1575
+ if (val === void 0) {
1576
+ return "undefined";
1577
+ }
1578
+ if (val === null) {
1579
+ return "null";
1580
+ }
1581
+ const typeOf = typeof val;
1582
+ if (typeOf === "number") {
1583
+ return printNumber(val);
1584
+ }
1585
+ if (typeOf === "bigint") {
1586
+ return printBigInt(val);
1587
+ }
1588
+ if (typeOf === "string") {
1589
+ if (escapeString) {
1590
+ return `"${val.replace(/"|\\/g, "\\$&")}"`;
1591
+ }
1592
+ return `"${val}"`;
1593
+ }
1594
+ if (typeOf === "function") {
1595
+ return printFunction(val, printFunctionName);
1596
+ }
1597
+ if (typeOf === "symbol") {
1598
+ return printSymbol(val);
1599
+ }
1600
+ const toStringed = toString.call(val);
1601
+ if (toStringed === "[object WeakMap]") {
1602
+ return "WeakMap {}";
1603
+ }
1604
+ if (toStringed === "[object WeakSet]") {
1605
+ return "WeakSet {}";
1606
+ }
1607
+ if (toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]") {
1608
+ return printFunction(val, printFunctionName);
1609
+ }
1610
+ if (toStringed === "[object Symbol]") {
1611
+ return printSymbol(val);
1612
+ }
1613
+ if (toStringed === "[object Date]") {
1614
+ return isNaN(+val) ? "Date { NaN }" : toISOString.call(val);
1615
+ }
1616
+ if (toStringed === "[object Error]") {
1617
+ return printError(val);
1618
+ }
1619
+ if (toStringed === "[object RegExp]") {
1620
+ if (escapeRegex) {
1621
+ return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&");
1622
+ }
1623
+ return regExpToString.call(val);
1624
+ }
1625
+ if (val instanceof Error) {
1626
+ return printError(val);
1627
+ }
1628
+ return null;
1629
+ }
1630
+ __name(printBasicValue, "printBasicValue");
1631
+ function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {
1632
+ if (refs.indexOf(val) !== -1) {
1633
+ return "[Circular]";
1634
+ }
1635
+ refs = refs.slice();
1636
+ refs.push(val);
1637
+ const hitMaxDepth = ++depth > config.maxDepth;
1638
+ const min = config.min;
1639
+ if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === "function" && !hasCalledToJSON) {
1640
+ return printer(val.toJSON(), config, indentation, depth, refs, true);
1641
+ }
1642
+ const toStringed = toString.call(val);
1643
+ if (toStringed === "[object Arguments]") {
1644
+ return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
1645
+ }
1646
+ if (isToStringedArrayType(toStringed)) {
1647
+ return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]`;
1648
+ }
1649
+ if (toStringed === "[object Map]") {
1650
+ return hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ")}}`;
1651
+ }
1652
+ if (toStringed === "[object Set]") {
1653
+ return hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}}`;
1654
+ }
1655
+ return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer)}}`;
1656
+ }
1657
+ __name(printComplexValue, "printComplexValue");
1658
+ function isNewPlugin(plugin) {
1659
+ return plugin.serialize != null;
1660
+ }
1661
+ __name(isNewPlugin, "isNewPlugin");
1662
+ function printPlugin(plugin, val, config, indentation, depth, refs) {
1663
+ let printed;
1664
+ try {
1665
+ printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
1666
+ const indentationNext = indentation + config.indent;
1667
+ return indentationNext + str.replace(NEWLINE_REGEXP, `
1668
+ ${indentationNext}`);
1669
+ }, {
1670
+ edgeSpacing: config.spacingOuter,
1671
+ min: config.min,
1672
+ spacing: config.spacingInner
1673
+ }, config.colors);
1674
+ } catch (error) {
1675
+ throw new PrettyFormatPluginError(error.message, error.stack);
1676
+ }
1677
+ if (typeof printed !== "string") {
1678
+ throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
1679
+ }
1680
+ return printed;
1681
+ }
1682
+ __name(printPlugin, "printPlugin");
1683
+ function findPlugin(plugins2, val) {
1684
+ for (let p = 0; p < plugins2.length; p++) {
1685
+ try {
1686
+ if (plugins2[p].test(val)) {
1687
+ return plugins2[p];
1688
+ }
1689
+ } catch (error) {
1690
+ throw new PrettyFormatPluginError(error.message, error.stack);
1691
+ }
1692
+ }
1693
+ return null;
1694
+ }
1695
+ __name(findPlugin, "findPlugin");
1696
+ function printer(val, config, indentation, depth, refs, hasCalledToJSON) {
1697
+ const plugin = findPlugin(config.plugins, val);
1698
+ if (plugin !== null) {
1699
+ return printPlugin(plugin, val, config, indentation, depth, refs);
1700
+ }
1701
+ const basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
1702
+ if (basicResult !== null) {
1703
+ return basicResult;
1704
+ }
1705
+ return printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
1706
+ }
1707
+ __name(printer, "printer");
1708
+ var DEFAULT_THEME = {
1709
+ comment: "gray",
1710
+ content: "reset",
1711
+ prop: "yellow",
1712
+ tag: "cyan",
1713
+ value: "green"
1714
+ };
1715
+ var DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);
1716
+ var DEFAULT_OPTIONS = {
1717
+ callToJSON: true,
1718
+ compareKeys: void 0,
1719
+ escapeRegex: false,
1720
+ escapeString: true,
1721
+ highlight: false,
1722
+ indent: 2,
1723
+ maxDepth: Infinity,
1724
+ maxWidth: Infinity,
1725
+ min: false,
1726
+ plugins: [],
1727
+ printBasicPrototype: true,
1728
+ printFunctionName: true,
1729
+ theme: DEFAULT_THEME
1730
+ };
1731
+ exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
1732
+ function validateOptions(options) {
1733
+ Object.keys(options).forEach((key) => {
1734
+ if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) {
1735
+ throw new Error(`pretty-format: Unknown option "${key}".`);
1736
+ }
1737
+ });
1738
+ if (options.min && options.indent !== void 0 && options.indent !== 0) {
1739
+ throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
1740
+ }
1741
+ if (options.theme !== void 0) {
1742
+ if (options.theme === null) {
1743
+ throw new Error('pretty-format: Option "theme" must not be null.');
1744
+ }
1745
+ if (typeof options.theme !== "object") {
1746
+ throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`);
1747
+ }
1748
+ }
1749
+ }
1750
+ __name(validateOptions, "validateOptions");
1751
+ var getColorsHighlight = /* @__PURE__ */ __name((options) => DEFAULT_THEME_KEYS.reduce((colors, key) => {
1752
+ const value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME[key];
1753
+ const color = value && _ansiStyles.default[value];
1754
+ if (color && typeof color.close === "string" && typeof color.open === "string") {
1755
+ colors[key] = color;
1756
+ } else {
1757
+ throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
1758
+ }
1759
+ return colors;
1760
+ }, /* @__PURE__ */ Object.create(null)), "getColorsHighlight");
1761
+ var getColorsEmpty = /* @__PURE__ */ __name(() => DEFAULT_THEME_KEYS.reduce((colors, key) => {
1762
+ colors[key] = {
1763
+ close: "",
1764
+ open: ""
1765
+ };
1766
+ return colors;
1767
+ }, /* @__PURE__ */ Object.create(null)), "getColorsEmpty");
1768
+ var getPrintFunctionName = /* @__PURE__ */ __name((options) => {
1769
+ var _options$printFunctio;
1770
+ return (_options$printFunctio = options === null || options === void 0 ? void 0 : options.printFunctionName) !== null && _options$printFunctio !== void 0 ? _options$printFunctio : DEFAULT_OPTIONS.printFunctionName;
1771
+ }, "getPrintFunctionName");
1772
+ var getEscapeRegex = /* @__PURE__ */ __name((options) => {
1773
+ var _options$escapeRegex;
1774
+ return (_options$escapeRegex = options === null || options === void 0 ? void 0 : options.escapeRegex) !== null && _options$escapeRegex !== void 0 ? _options$escapeRegex : DEFAULT_OPTIONS.escapeRegex;
1775
+ }, "getEscapeRegex");
1776
+ var getEscapeString = /* @__PURE__ */ __name((options) => {
1777
+ var _options$escapeString;
1778
+ return (_options$escapeString = options === null || options === void 0 ? void 0 : options.escapeString) !== null && _options$escapeString !== void 0 ? _options$escapeString : DEFAULT_OPTIONS.escapeString;
1779
+ }, "getEscapeString");
1780
+ var getConfig = /* @__PURE__ */ __name((options) => {
1781
+ var _options$callToJSON, _options$indent, _options$maxDepth, _options$maxWidth, _options$min, _options$plugins, _options$printBasicPr;
1782
+ return {
1783
+ callToJSON: (_options$callToJSON = options === null || options === void 0 ? void 0 : options.callToJSON) !== null && _options$callToJSON !== void 0 ? _options$callToJSON : DEFAULT_OPTIONS.callToJSON,
1784
+ colors: options !== null && options !== void 0 && options.highlight ? getColorsHighlight(options) : getColorsEmpty(),
1785
+ compareKeys: typeof (options === null || options === void 0 ? void 0 : options.compareKeys) === "function" ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
1786
+ escapeRegex: getEscapeRegex(options),
1787
+ escapeString: getEscapeString(options),
1788
+ indent: options !== null && options !== void 0 && options.min ? "" : createIndent((_options$indent = options === null || options === void 0 ? void 0 : options.indent) !== null && _options$indent !== void 0 ? _options$indent : DEFAULT_OPTIONS.indent),
1789
+ maxDepth: (_options$maxDepth = options === null || options === void 0 ? void 0 : options.maxDepth) !== null && _options$maxDepth !== void 0 ? _options$maxDepth : DEFAULT_OPTIONS.maxDepth,
1790
+ maxWidth: (_options$maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_OPTIONS.maxWidth,
1791
+ min: (_options$min = options === null || options === void 0 ? void 0 : options.min) !== null && _options$min !== void 0 ? _options$min : DEFAULT_OPTIONS.min,
1792
+ plugins: (_options$plugins = options === null || options === void 0 ? void 0 : options.plugins) !== null && _options$plugins !== void 0 ? _options$plugins : DEFAULT_OPTIONS.plugins,
1793
+ printBasicPrototype: (_options$printBasicPr = options === null || options === void 0 ? void 0 : options.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : true,
1794
+ printFunctionName: getPrintFunctionName(options),
1795
+ spacingInner: options !== null && options !== void 0 && options.min ? " " : "\n",
1796
+ spacingOuter: options !== null && options !== void 0 && options.min ? "" : "\n"
1797
+ };
1798
+ }, "getConfig");
1799
+ function createIndent(indent) {
1800
+ return new Array(indent + 1).join(" ");
1801
+ }
1802
+ __name(createIndent, "createIndent");
1803
+ function format(val, options) {
1804
+ if (options) {
1805
+ validateOptions(options);
1806
+ if (options.plugins) {
1807
+ const plugin = findPlugin(options.plugins, val);
1808
+ if (plugin !== null) {
1809
+ return printPlugin(plugin, val, getConfig(options), "", 0, []);
1810
+ }
1811
+ }
1812
+ }
1813
+ const basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
1814
+ if (basicResult !== null) {
1815
+ return basicResult;
1816
+ }
1817
+ return printComplexValue(val, getConfig(options), "", 0, []);
1818
+ }
1819
+ __name(format, "format");
1820
+ var plugins = {
1821
+ AsymmetricMatcher: _AsymmetricMatcher.default,
1822
+ ConvertAnsi: _ConvertAnsi.default,
1823
+ DOMCollection: _DOMCollection.default,
1824
+ DOMElement: _DOMElement.default,
1825
+ Immutable: _Immutable.default,
1826
+ ReactElement: _ReactElement.default,
1827
+ ReactTestComponent: _ReactTestComponent.default
1828
+ };
1829
+ exports.plugins = plugins;
1830
+ var _default = format;
1831
+ exports.default = _default;
1832
+ }
1833
+ });
1834
+ var import_pretty_format = __toESM(require_build(), 1);
1835
+ var {
1836
+ AsymmetricMatcher,
1837
+ DOMCollection,
1838
+ DOMElement,
1839
+ Immutable,
1840
+ ReactElement,
1841
+ ReactTestComponent
1842
+ } = import_pretty_format.plugins;
1843
+ var PLUGINS = [
1844
+ ReactTestComponent,
1845
+ ReactElement,
1846
+ DOMElement,
1847
+ DOMCollection,
1848
+ Immutable,
1849
+ AsymmetricMatcher
1850
+ ];
1851
+ var DIM_COLOR = source_default.dim;
1852
+ var EXPECTED_COLOR = source_default.green;
1853
+ var RECEIVED_COLOR = source_default.red;
1854
+ var SPACE_SYMBOL = "\xB7";
1855
+ function stringify(object, maxDepth = 10, maxWidth = 10) {
1856
+ let MAX_LENGTH = 1e4;
1857
+ let result;
1858
+ try {
1859
+ result = (0, import_pretty_format.format)(object, {
1860
+ maxDepth,
1861
+ maxWidth,
1862
+ min: true,
1863
+ plugins: PLUGINS
1864
+ });
1865
+ } catch {
1866
+ result = (0, import_pretty_format.format)(object, {
1867
+ callToJSON: false,
1868
+ maxDepth,
1869
+ maxWidth,
1870
+ min: true,
1871
+ plugins: PLUGINS
1872
+ });
1873
+ }
1874
+ if (result.length >= MAX_LENGTH && maxDepth > 1) {
1875
+ return stringify(object, Math.floor(maxDepth / 2), maxWidth);
1876
+ }
1877
+ if (result.length >= MAX_LENGTH && maxWidth > 1) {
1878
+ return stringify(object, maxDepth, Math.floor(maxWidth / 2));
1879
+ }
1880
+ return result;
1881
+ }
1882
+ __name(stringify, "stringify");
1883
+ function replaceTrailingSpaces(text) {
1884
+ return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));
1885
+ }
1886
+ __name(replaceTrailingSpaces, "replaceTrailingSpaces");
1887
+ function printReceived(object) {
1888
+ return RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));
1889
+ }
1890
+ __name(printReceived, "printReceived");
1891
+ function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
1892
+ const {
1893
+ comment = "",
1894
+ expectedColor = EXPECTED_COLOR,
1895
+ isDirectExpectCall = false,
1896
+ isNot = false,
1897
+ promise = "",
1898
+ receivedColor = RECEIVED_COLOR,
1899
+ secondArgument = "",
1900
+ secondArgumentColor = EXPECTED_COLOR
1901
+ } = options;
1902
+ let hint = "";
1903
+ let dimString = "expect";
1904
+ if (!isDirectExpectCall && received !== "") {
1905
+ hint += DIM_COLOR(`${dimString}(`) + receivedColor(received);
1906
+ dimString = ")";
1907
+ }
1908
+ if (promise !== "") {
1909
+ hint += DIM_COLOR(`${dimString}.`) + promise;
1910
+ dimString = "";
1911
+ }
1912
+ if (isNot) {
1913
+ hint += `${DIM_COLOR(`${dimString}.`)}not`;
1914
+ dimString = "";
1915
+ }
1916
+ if (matcherName.includes(".")) {
1917
+ dimString += matcherName;
1918
+ } else {
1919
+ hint += DIM_COLOR(`${dimString}.`) + matcherName;
1920
+ dimString = "";
1921
+ }
1922
+ if (expected === "") {
1923
+ dimString += "()";
1924
+ } else {
1925
+ hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected);
1926
+ if (secondArgument) {
1927
+ hint += DIM_COLOR(", ") + secondArgumentColor(secondArgument);
1928
+ }
1929
+ dimString = ")";
1930
+ }
1931
+ if (comment !== "") {
1932
+ dimString += ` // ${comment}`;
1933
+ }
1934
+ if (dimString !== "") {
1935
+ hint += DIM_COLOR(dimString);
1936
+ }
1937
+ return hint;
1938
+ }
1939
+ __name(matcherHint, "matcherHint");
1940
+
1941
+ // ../../node_modules/vitest-axe/dist/matchers.js
1942
+ function toHaveNoViolations(results) {
1943
+ if (typeof results.violations === "undefined") {
1944
+ throw new Error("No violations found in aXe results object");
1945
+ }
1946
+ let violations = filterViolations(results.violations, results.toolOptions ? results.toolOptions.impactLevels : []);
1947
+ function reporter(violations2) {
1948
+ if (violations2.length === 0) {
1949
+ return [];
1950
+ }
1951
+ let lineBreak = "\n\n";
1952
+ let horizontalLine = "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500";
1953
+ return violations2.map((violation) => {
1954
+ let errorBody = violation.nodes.map((node) => {
1955
+ let selector = node.target.join(", ");
1956
+ let expectedText = `Expected the HTML found at $('${selector}') to have no violations:` + lineBreak;
1957
+ return expectedText + source_default.grey(node.html) + lineBreak + `Received:` + lineBreak + printReceived(`${violation.help} (${violation.id})`) + lineBreak + source_default.yellow(node.failureSummary) + lineBreak + (violation.helpUrl ? `You can find more information on this issue here:
1958
+ ${source_default.blue(violation.helpUrl)}` : "");
1959
+ }).join(lineBreak);
1960
+ return errorBody;
1961
+ }).join(lineBreak + horizontalLine + lineBreak);
1962
+ }
1963
+ __name(reporter, "reporter");
1964
+ let formatedViolations = reporter(violations);
1965
+ let pass = formatedViolations.length === 0;
1966
+ function message() {
1967
+ if (pass) {
1968
+ return;
1969
+ }
1970
+ return matcherHint(".toHaveNoViolations") + `
1971
+
1972
+ ${formatedViolations}`;
1973
+ }
1974
+ __name(message, "message");
1975
+ return { actual: violations, message, pass };
1976
+ }
1977
+ __name(toHaveNoViolations, "toHaveNoViolations");
1978
+ function filterViolations(violations, impactLevels) {
1979
+ if (impactLevels && impactLevels.length > 0) {
1980
+ return violations.filter((v) => impactLevels.includes(v.impact));
1981
+ }
1982
+ return violations;
1983
+ }
1984
+ __name(filterViolations, "filterViolations");
1985
+ export {
1986
+ toHaveNoViolations
1987
+ };