@storybook/addon-vitest 0.0.0-pr-31819-sha-dcd0f624 → 0.0.0-pr-31819-sha-f8d78539

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.
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_4je4paukt08 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4je4paukt08 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4je4paukt08 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kc8ce2rbdf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kc8ce2rbdf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kc8ce2rbdf from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_4je4paukt08.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4je4paukt08.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4je4paukt08.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kc8ce2rbdf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kc8ce2rbdf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kc8ce2rbdf.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_gte
14
- } from "../_node-chunks/chunk-FRTCGTB4.js";
14
+ } from "../_node-chunks/chunk-PP3E4AG4.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __name,
18
18
  __require,
19
19
  __toESM
20
- } from "../_node-chunks/chunk-FEPVID5T.js";
20
+ } from "../_node-chunks/chunk-IEKVULOS.js";
21
21
 
22
22
  // ../../node_modules/istanbul-lib-report/node_modules/make-dir/index.js
23
23
  var require_make_dir = __commonJS({
@@ -1,39 +1,38 @@
1
- import CJS_COMPAT_NODE_URL_4je4paukt08 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4je4paukt08 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4je4paukt08 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kc8ce2rbdf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kc8ce2rbdf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kc8ce2rbdf from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_4je4paukt08.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4je4paukt08.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4je4paukt08.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kc8ce2rbdf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kc8ce2rbdf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kc8ce2rbdf.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
- log,
14
- throttle
15
- } from "../_node-chunks/chunk-VFCIPXDZ.js";
13
+ log
14
+ } from "../_node-chunks/chunk-HRVND7F4.js";
16
15
  import {
17
16
  errorToErrorLike,
18
17
  findUp
19
- } from "../_node-chunks/chunk-NOHSI5TE.js";
18
+ } from "../_node-chunks/chunk-Z3HDRPLZ.js";
20
19
  import {
21
20
  ADDON_ID,
22
21
  COVERAGE_DIRECTORY,
23
22
  STATUS_TYPE_ID_A11Y,
24
23
  STATUS_TYPE_ID_COMPONENT_TEST,
25
24
  storeOptions
26
- } from "../_node-chunks/chunk-LPHK5PS5.js";
27
- import "../_node-chunks/chunk-KZGNRRFH.js";
25
+ } from "../_node-chunks/chunk-S3N2Q3Z5.js";
26
+ import "../_node-chunks/chunk-O45Z3VYE.js";
28
27
  import {
29
28
  dirname,
30
29
  join,
31
30
  normalize,
32
31
  path
33
- } from "../_node-chunks/chunk-YS6WJ4IT.js";
32
+ } from "../_node-chunks/chunk-7JAOQG6G.js";
34
33
  import {
35
34
  __name
36
- } from "../_node-chunks/chunk-FEPVID5T.js";
35
+ } from "../_node-chunks/chunk-IEKVULOS.js";
37
36
 
38
37
  // src/node/vitest.ts
39
38
  import process2 from "node:process";
@@ -44,6 +43,138 @@ import {
44
43
  experimental_getTestProviderStore
45
44
  } from "storybook/internal/core-server";
46
45
 
46
+ // ../../node_modules/es-toolkit/dist/function/debounce.mjs
47
+ function debounce(func, debounceMs, { signal, edges } = {}) {
48
+ let pendingThis = void 0;
49
+ let pendingArgs = null;
50
+ const leading = edges != null && edges.includes("leading");
51
+ const trailing = edges == null || edges.includes("trailing");
52
+ const invoke = /* @__PURE__ */ __name(() => {
53
+ if (pendingArgs !== null) {
54
+ func.apply(pendingThis, pendingArgs);
55
+ pendingThis = void 0;
56
+ pendingArgs = null;
57
+ }
58
+ }, "invoke");
59
+ const onTimerEnd = /* @__PURE__ */ __name(() => {
60
+ if (trailing) {
61
+ invoke();
62
+ }
63
+ cancel();
64
+ }, "onTimerEnd");
65
+ let timeoutId = null;
66
+ const schedule = /* @__PURE__ */ __name(() => {
67
+ if (timeoutId != null) {
68
+ clearTimeout(timeoutId);
69
+ }
70
+ timeoutId = setTimeout(() => {
71
+ timeoutId = null;
72
+ onTimerEnd();
73
+ }, debounceMs);
74
+ }, "schedule");
75
+ const cancelTimer = /* @__PURE__ */ __name(() => {
76
+ if (timeoutId !== null) {
77
+ clearTimeout(timeoutId);
78
+ timeoutId = null;
79
+ }
80
+ }, "cancelTimer");
81
+ const cancel = /* @__PURE__ */ __name(() => {
82
+ cancelTimer();
83
+ pendingThis = void 0;
84
+ pendingArgs = null;
85
+ }, "cancel");
86
+ const flush = /* @__PURE__ */ __name(() => {
87
+ cancelTimer();
88
+ invoke();
89
+ }, "flush");
90
+ const debounced = /* @__PURE__ */ __name(function(...args) {
91
+ if (signal?.aborted) {
92
+ return;
93
+ }
94
+ pendingThis = this;
95
+ pendingArgs = args;
96
+ const isFirstCall = timeoutId == null;
97
+ schedule();
98
+ if (leading && isFirstCall) {
99
+ invoke();
100
+ }
101
+ }, "debounced");
102
+ debounced.schedule = schedule;
103
+ debounced.cancel = cancel;
104
+ debounced.flush = flush;
105
+ signal?.addEventListener("abort", cancel, { once: true });
106
+ return debounced;
107
+ }
108
+ __name(debounce, "debounce");
109
+
110
+ // ../../node_modules/es-toolkit/dist/function/partial.mjs
111
+ function partial(func, ...partialArgs) {
112
+ return partialImpl(func, placeholderSymbol, ...partialArgs);
113
+ }
114
+ __name(partial, "partial");
115
+ function partialImpl(func, placeholder, ...partialArgs) {
116
+ const partialed = /* @__PURE__ */ __name(function(...providedArgs) {
117
+ let providedArgsIndex = 0;
118
+ const substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
119
+ const remainingArgs = providedArgs.slice(providedArgsIndex);
120
+ return func.apply(this, substitutedArgs.concat(remainingArgs));
121
+ }, "partialed");
122
+ if (func.prototype) {
123
+ partialed.prototype = Object.create(func.prototype);
124
+ }
125
+ return partialed;
126
+ }
127
+ __name(partialImpl, "partialImpl");
128
+ var placeholderSymbol = Symbol("partial.placeholder");
129
+ partial.placeholder = placeholderSymbol;
130
+
131
+ // ../../node_modules/es-toolkit/dist/function/partialRight.mjs
132
+ function partialRight(func, ...partialArgs) {
133
+ return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
134
+ }
135
+ __name(partialRight, "partialRight");
136
+ function partialRightImpl(func, placeholder, ...partialArgs) {
137
+ const partialedRight = /* @__PURE__ */ __name(function(...providedArgs) {
138
+ const placeholderLength = partialArgs.filter((arg) => arg === placeholder).length;
139
+ const rangeLength = Math.max(providedArgs.length - placeholderLength, 0);
140
+ const remainingArgs = providedArgs.slice(0, rangeLength);
141
+ let providedArgsIndex = rangeLength;
142
+ const substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
143
+ return func.apply(this, remainingArgs.concat(substitutedArgs));
144
+ }, "partialedRight");
145
+ if (func.prototype) {
146
+ partialedRight.prototype = Object.create(func.prototype);
147
+ }
148
+ return partialedRight;
149
+ }
150
+ __name(partialRightImpl, "partialRightImpl");
151
+ var placeholderSymbol2 = Symbol("partialRight.placeholder");
152
+ partialRight.placeholder = placeholderSymbol2;
153
+
154
+ // ../../node_modules/es-toolkit/dist/function/retry.mjs
155
+ var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
156
+
157
+ // ../../node_modules/es-toolkit/dist/function/throttle.mjs
158
+ function throttle(func, throttleMs, { signal, edges = ["leading", "trailing"] } = {}) {
159
+ let pendingAt = null;
160
+ const debounced = debounce(func, throttleMs, { signal, edges });
161
+ const throttled = /* @__PURE__ */ __name(function(...args) {
162
+ if (pendingAt == null) {
163
+ pendingAt = Date.now();
164
+ } else {
165
+ if (Date.now() - pendingAt >= throttleMs) {
166
+ pendingAt = Date.now();
167
+ debounced.cancel();
168
+ }
169
+ }
170
+ debounced(...args);
171
+ }, "throttled");
172
+ throttled.cancel = debounced.cancel;
173
+ throttled.flush = debounced.flush;
174
+ return throttled;
175
+ }
176
+ __name(throttle, "throttle");
177
+
47
178
  // src/node/vitest-manager.ts
48
179
  import { existsSync } from "node:fs";
49
180
  import { getProjectRoot, resolvePathInStorybookCache } from "storybook/internal/common";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_4je4paukt08 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4je4paukt08 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4je4paukt08 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kc8ce2rbdf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kc8ce2rbdf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kc8ce2rbdf from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_4je4paukt08.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4je4paukt08.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4je4paukt08.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kc8ce2rbdf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kc8ce2rbdf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kc8ce2rbdf.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,21 +12,21 @@ var require = CJS_COMPAT_NODE_MODULE_4je4paukt08.createRequire(import.meta.url);
12
12
  import {
13
13
  execa,
14
14
  resolvePackageDir
15
- } from "./_node-chunks/chunk-2CNFZ2UR.js";
15
+ } from "./_node-chunks/chunk-6M5GJ5IT.js";
16
16
  import {
17
17
  findUp,
18
18
  getAddonNames
19
- } from "./_node-chunks/chunk-NOHSI5TE.js";
19
+ } from "./_node-chunks/chunk-Z3HDRPLZ.js";
20
20
  import {
21
21
  DOCUMENTATION_LINK,
22
22
  SUPPORTED_FRAMEWORKS
23
- } from "./_node-chunks/chunk-LPHK5PS5.js";
23
+ } from "./_node-chunks/chunk-S3N2Q3Z5.js";
24
24
  import {
25
25
  dirname,
26
26
  join,
27
27
  relative,
28
28
  resolve
29
- } from "./_node-chunks/chunk-YS6WJ4IT.js";
29
+ } from "./_node-chunks/chunk-7JAOQG6G.js";
30
30
  import {
31
31
  require_compare,
32
32
  require_constants,
@@ -36,12 +36,12 @@ import {
36
36
  require_parse_options,
37
37
  require_re,
38
38
  require_semver
39
- } from "./_node-chunks/chunk-FRTCGTB4.js";
39
+ } from "./_node-chunks/chunk-PP3E4AG4.js";
40
40
  import {
41
41
  __commonJS,
42
42
  __name,
43
43
  __toESM
44
- } from "./_node-chunks/chunk-FEPVID5T.js";
44
+ } from "./_node-chunks/chunk-IEKVULOS.js";
45
45
 
46
46
  // ../../node_modules/semver/functions/parse.js
47
47
  var require_parse = __commonJS({
package/dist/preset.js CHANGED
@@ -1,22 +1,22 @@
1
- import CJS_COMPAT_NODE_URL_4je4paukt08 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4je4paukt08 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4je4paukt08 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kc8ce2rbdf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kc8ce2rbdf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kc8ce2rbdf from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_4je4paukt08.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4je4paukt08.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4je4paukt08.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kc8ce2rbdf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kc8ce2rbdf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kc8ce2rbdf.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
- isEqual,
14
- log
15
- } from "./_node-chunks/chunk-VFCIPXDZ.js";
13
+ log,
14
+ noop
15
+ } from "./_node-chunks/chunk-HRVND7F4.js";
16
16
  import {
17
17
  execaNode,
18
18
  importMetaResolve
19
- } from "./_node-chunks/chunk-2CNFZ2UR.js";
19
+ } from "./_node-chunks/chunk-6M5GJ5IT.js";
20
20
  import {
21
21
  ADDON_ID,
22
22
  COVERAGE_DIRECTORY,
@@ -25,17 +25,17 @@ import {
25
25
  STORYBOOK_ADDON_TEST_CHANNEL,
26
26
  TEST_PROVIDER_STORE_CHANNEL_EVENT_NAME,
27
27
  storeOptions
28
- } from "./_node-chunks/chunk-LPHK5PS5.js";
28
+ } from "./_node-chunks/chunk-S3N2Q3Z5.js";
29
29
  import {
30
30
  require_picocolors
31
- } from "./_node-chunks/chunk-KZGNRRFH.js";
31
+ } from "./_node-chunks/chunk-O45Z3VYE.js";
32
32
  import {
33
33
  normalize
34
- } from "./_node-chunks/chunk-YS6WJ4IT.js";
34
+ } from "./_node-chunks/chunk-7JAOQG6G.js";
35
35
  import {
36
36
  __name,
37
37
  __toESM
38
- } from "./_node-chunks/chunk-FEPVID5T.js";
38
+ } from "./_node-chunks/chunk-IEKVULOS.js";
39
39
 
40
40
  // src/preset.ts
41
41
  import { mkdir } from "node:fs/promises";
@@ -50,6 +50,257 @@ import {
50
50
  experimental_getTestProviderStore
51
51
  } from "storybook/internal/core-server";
52
52
  import { cleanPaths, oneWayHash, sanitizeError, telemetry } from "storybook/internal/telemetry";
53
+
54
+ // ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
55
+ function isPlainObject(value) {
56
+ if (!value || typeof value !== "object") {
57
+ return false;
58
+ }
59
+ const proto = Object.getPrototypeOf(value);
60
+ const hasObjectPrototype = proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null;
61
+ if (!hasObjectPrototype) {
62
+ return false;
63
+ }
64
+ return Object.prototype.toString.call(value) === "[object Object]";
65
+ }
66
+ __name(isPlainObject, "isPlainObject");
67
+
68
+ // ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
69
+ function getSymbols(object) {
70
+ return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
71
+ }
72
+ __name(getSymbols, "getSymbols");
73
+
74
+ // ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
75
+ function getTag(value) {
76
+ if (value == null) {
77
+ return value === void 0 ? "[object Undefined]" : "[object Null]";
78
+ }
79
+ return Object.prototype.toString.call(value);
80
+ }
81
+ __name(getTag, "getTag");
82
+
83
+ // ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
84
+ var regexpTag = "[object RegExp]";
85
+ var stringTag = "[object String]";
86
+ var numberTag = "[object Number]";
87
+ var booleanTag = "[object Boolean]";
88
+ var argumentsTag = "[object Arguments]";
89
+ var symbolTag = "[object Symbol]";
90
+ var dateTag = "[object Date]";
91
+ var mapTag = "[object Map]";
92
+ var setTag = "[object Set]";
93
+ var arrayTag = "[object Array]";
94
+ var functionTag = "[object Function]";
95
+ var arrayBufferTag = "[object ArrayBuffer]";
96
+ var objectTag = "[object Object]";
97
+ var errorTag = "[object Error]";
98
+ var dataViewTag = "[object DataView]";
99
+ var uint8ArrayTag = "[object Uint8Array]";
100
+ var uint8ClampedArrayTag = "[object Uint8ClampedArray]";
101
+ var uint16ArrayTag = "[object Uint16Array]";
102
+ var uint32ArrayTag = "[object Uint32Array]";
103
+ var bigUint64ArrayTag = "[object BigUint64Array]";
104
+ var int8ArrayTag = "[object Int8Array]";
105
+ var int16ArrayTag = "[object Int16Array]";
106
+ var int32ArrayTag = "[object Int32Array]";
107
+ var bigInt64ArrayTag = "[object BigInt64Array]";
108
+ var float32ArrayTag = "[object Float32Array]";
109
+ var float64ArrayTag = "[object Float64Array]";
110
+
111
+ // ../../node_modules/es-toolkit/dist/compat/util/eq.mjs
112
+ function eq(value, other) {
113
+ return value === other || Number.isNaN(value) && Number.isNaN(other);
114
+ }
115
+ __name(eq, "eq");
116
+
117
+ // ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
118
+ function isEqualWith(a, b, areValuesEqual) {
119
+ return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
120
+ }
121
+ __name(isEqualWith, "isEqualWith");
122
+ function isEqualWithImpl(a, b, property, aParent, bParent, stack, areValuesEqual) {
123
+ const result = areValuesEqual(a, b, property, aParent, bParent, stack);
124
+ if (result !== void 0) {
125
+ return result;
126
+ }
127
+ if (typeof a === typeof b) {
128
+ switch (typeof a) {
129
+ case "bigint":
130
+ case "string":
131
+ case "boolean":
132
+ case "symbol":
133
+ case "undefined": {
134
+ return a === b;
135
+ }
136
+ case "number": {
137
+ return a === b || Object.is(a, b);
138
+ }
139
+ case "function": {
140
+ return a === b;
141
+ }
142
+ case "object": {
143
+ return areObjectsEqual(a, b, stack, areValuesEqual);
144
+ }
145
+ }
146
+ }
147
+ return areObjectsEqual(a, b, stack, areValuesEqual);
148
+ }
149
+ __name(isEqualWithImpl, "isEqualWithImpl");
150
+ function areObjectsEqual(a, b, stack, areValuesEqual) {
151
+ if (Object.is(a, b)) {
152
+ return true;
153
+ }
154
+ let aTag = getTag(a);
155
+ let bTag = getTag(b);
156
+ if (aTag === argumentsTag) {
157
+ aTag = objectTag;
158
+ }
159
+ if (bTag === argumentsTag) {
160
+ bTag = objectTag;
161
+ }
162
+ if (aTag !== bTag) {
163
+ return false;
164
+ }
165
+ switch (aTag) {
166
+ case stringTag:
167
+ return a.toString() === b.toString();
168
+ case numberTag: {
169
+ const x = a.valueOf();
170
+ const y = b.valueOf();
171
+ return eq(x, y);
172
+ }
173
+ case booleanTag:
174
+ case dateTag:
175
+ case symbolTag:
176
+ return Object.is(a.valueOf(), b.valueOf());
177
+ case regexpTag: {
178
+ return a.source === b.source && a.flags === b.flags;
179
+ }
180
+ case functionTag: {
181
+ return a === b;
182
+ }
183
+ }
184
+ stack = stack ?? /* @__PURE__ */ new Map();
185
+ const aStack = stack.get(a);
186
+ const bStack = stack.get(b);
187
+ if (aStack != null && bStack != null) {
188
+ return aStack === b;
189
+ }
190
+ stack.set(a, b);
191
+ stack.set(b, a);
192
+ try {
193
+ switch (aTag) {
194
+ case mapTag: {
195
+ if (a.size !== b.size) {
196
+ return false;
197
+ }
198
+ for (const [key, value] of a.entries()) {
199
+ if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a, b, stack, areValuesEqual)) {
200
+ return false;
201
+ }
202
+ }
203
+ return true;
204
+ }
205
+ case setTag: {
206
+ if (a.size !== b.size) {
207
+ return false;
208
+ }
209
+ const aValues = Array.from(a.values());
210
+ const bValues = Array.from(b.values());
211
+ for (let i = 0; i < aValues.length; i++) {
212
+ const aValue = aValues[i];
213
+ const index = bValues.findIndex((bValue) => {
214
+ return isEqualWithImpl(aValue, bValue, void 0, a, b, stack, areValuesEqual);
215
+ });
216
+ if (index === -1) {
217
+ return false;
218
+ }
219
+ bValues.splice(index, 1);
220
+ }
221
+ return true;
222
+ }
223
+ case arrayTag:
224
+ case uint8ArrayTag:
225
+ case uint8ClampedArrayTag:
226
+ case uint16ArrayTag:
227
+ case uint32ArrayTag:
228
+ case bigUint64ArrayTag:
229
+ case int8ArrayTag:
230
+ case int16ArrayTag:
231
+ case int32ArrayTag:
232
+ case bigInt64ArrayTag:
233
+ case float32ArrayTag:
234
+ case float64ArrayTag: {
235
+ if (typeof Buffer !== "undefined" && Buffer.isBuffer(a) !== Buffer.isBuffer(b)) {
236
+ return false;
237
+ }
238
+ if (a.length !== b.length) {
239
+ return false;
240
+ }
241
+ for (let i = 0; i < a.length; i++) {
242
+ if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual)) {
243
+ return false;
244
+ }
245
+ }
246
+ return true;
247
+ }
248
+ case arrayBufferTag: {
249
+ if (a.byteLength !== b.byteLength) {
250
+ return false;
251
+ }
252
+ return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
253
+ }
254
+ case dataViewTag: {
255
+ if (a.byteLength !== b.byteLength || a.byteOffset !== b.byteOffset) {
256
+ return false;
257
+ }
258
+ return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
259
+ }
260
+ case errorTag: {
261
+ return a.name === b.name && a.message === b.message;
262
+ }
263
+ case objectTag: {
264
+ const areEqualInstances = areObjectsEqual(a.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a) && isPlainObject(b);
265
+ if (!areEqualInstances) {
266
+ return false;
267
+ }
268
+ const aKeys = [...Object.keys(a), ...getSymbols(a)];
269
+ const bKeys = [...Object.keys(b), ...getSymbols(b)];
270
+ if (aKeys.length !== bKeys.length) {
271
+ return false;
272
+ }
273
+ for (let i = 0; i < aKeys.length; i++) {
274
+ const propKey = aKeys[i];
275
+ const aProp = a[propKey];
276
+ if (!Object.hasOwn(b, propKey)) {
277
+ return false;
278
+ }
279
+ const bProp = b[propKey];
280
+ if (!isEqualWithImpl(aProp, bProp, propKey, a, b, stack, areValuesEqual)) {
281
+ return false;
282
+ }
283
+ }
284
+ return true;
285
+ }
286
+ default: {
287
+ return false;
288
+ }
289
+ }
290
+ } finally {
291
+ stack.delete(a);
292
+ stack.delete(b);
293
+ }
294
+ }
295
+ __name(areObjectsEqual, "areObjectsEqual");
296
+
297
+ // ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
298
+ function isEqual(a, b) {
299
+ return isEqualWith(a, b, noop);
300
+ }
301
+ __name(isEqual, "isEqual");
302
+
303
+ // src/preset.ts
53
304
  var import_picocolors = __toESM(require_picocolors(), 1);
54
305
  import { dedent } from "ts-dedent";
55
306
 
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_4je4paukt08 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4je4paukt08 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4je4paukt08 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kc8ce2rbdf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kc8ce2rbdf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kc8ce2rbdf from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_4je4paukt08.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4je4paukt08.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4je4paukt08.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kc8ce2rbdf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kc8ce2rbdf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kc8ce2rbdf.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,7 +14,7 @@ import {
14
14
  __name,
15
15
  __require,
16
16
  __toESM
17
- } from "../_node-chunks/chunk-FEPVID5T.js";
17
+ } from "../_node-chunks/chunk-IEKVULOS.js";
18
18
 
19
19
  // ../../node_modules/tree-kill/index.js
20
20
  var require_tree_kill = __commonJS({
@@ -1,30 +1,30 @@
1
- import CJS_COMPAT_NODE_URL_4je4paukt08 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4je4paukt08 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4je4paukt08 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kc8ce2rbdf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kc8ce2rbdf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kc8ce2rbdf from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_4je4paukt08.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4je4paukt08.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4je4paukt08.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kc8ce2rbdf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kc8ce2rbdf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kc8ce2rbdf.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_picocolors
14
- } from "../_node-chunks/chunk-KZGNRRFH.js";
14
+ } from "../_node-chunks/chunk-O45Z3VYE.js";
15
15
  import {
16
16
  join,
17
17
  normalize,
18
18
  relative,
19
19
  resolve,
20
20
  sep
21
- } from "../_node-chunks/chunk-YS6WJ4IT.js";
21
+ } from "../_node-chunks/chunk-7JAOQG6G.js";
22
22
  import {
23
23
  __commonJS,
24
24
  __name,
25
25
  __require,
26
26
  __toESM
27
- } from "../_node-chunks/chunk-FEPVID5T.js";
27
+ } from "../_node-chunks/chunk-IEKVULOS.js";
28
28
 
29
29
  // ../../node_modules/braces/lib/utils.js
30
30
  var require_utils = __commonJS({
@@ -3,7 +3,7 @@ import {
3
3
  } from "../_browser-chunks/chunk-PMYV6BH2.js";
4
4
  import {
5
5
  __name
6
- } from "../_browser-chunks/chunk-JFJ5UJ7Q.js";
6
+ } from "../_browser-chunks/chunk-JK72E6FR.js";
7
7
 
8
8
  // src/vitest-plugin/setup-file.ts
9
9
  import { afterEach, beforeAll, vi } from "vitest";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "../_browser-chunks/chunk-JFJ5UJ7Q.js";
3
+ } from "../_browser-chunks/chunk-JK72E6FR.js";
4
4
 
5
5
  // src/vitest-plugin/test-utils.ts
6
6
  import { server } from "@vitest/browser/context";