@farming-labs/theme 0.0.27 → 0.0.28

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.
Files changed (60) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +1 -26
  2. package/dist/ai-search-dialog.mjs +1 -1
  3. package/dist/code-block-copy-wrapper.d.mts +1 -1
  4. package/dist/docs-layout.d.mts +1 -1
  5. package/dist/docs-layout.mjs +4 -4
  6. package/dist/docs-page-client.mjs +2 -2
  7. package/dist/index.mjs +1 -1
  8. package/dist/mdx.d.mts +1 -1
  9. package/dist/mdx.mjs +1 -1
  10. package/dist/page-actions.mjs +1 -1
  11. package/package.json +2 -2
  12. package/dist/get-app-dir.d.mts +0 -9
  13. package/dist/get-app-dir.test.d.mts +0 -1
  14. package/dist/get-app-dir.test.mjs +0 -41
  15. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -77
  16. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.mjs +0 -1356
  17. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.mjs +0 -1119
  18. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.mjs +0 -1091
  19. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.mjs +0 -4
  20. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.mjs +0 -3
  21. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.mjs +0 -1821
  22. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.mjs +0 -171
  23. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs +0 -124
  24. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.mjs +0 -1334
  25. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.mjs +0 -105
  26. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.mjs +0 -118
  27. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.mjs +0 -455
  28. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.mjs +0 -168
  29. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.mjs +0 -3087
  30. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.mjs +0 -384
  31. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.mjs +0 -11
  32. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.mjs +0 -16
  33. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.mjs +0 -11
  34. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.mjs +0 -15
  35. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.mjs +0 -13
  36. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.mjs +0 -34
  37. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.mjs +0 -12
  38. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.mjs +0 -122
  39. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.mjs +0 -39
  40. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.mjs +0 -99
  41. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.mjs +0 -25
  42. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.mjs +0 -14
  43. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.mjs +0 -21
  44. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.mjs +0 -5
  45. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.mjs +0 -12
  46. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.mjs +0 -18
  47. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.mjs +0 -25
  48. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.mjs +0 -8
  49. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.mjs +0 -30
  50. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +0 -939
  51. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -81
  52. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs +0 -51
  53. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.mjs +0 -81
  54. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.mjs +0 -9
  55. package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.mjs +0 -125
  56. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs +0 -8
  57. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.mjs +0 -50
  58. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/utils.XdZDrNZV.mjs +0 -48
  59. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@22.19.11_jiti@2.6.1_lightningcss@1.30.2_terser@5.46.0_yaml@2.8.2/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.mjs +0 -2613
  60. package/dist/serialize-icon.d.mts +0 -4
@@ -1,1119 +0,0 @@
1
- import { u } from "../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
4
- function _mergeNamespaces(n, m) {
5
- m.forEach(function(e) {
6
- e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
7
- if (k !== "default" && !(k in n)) {
8
- var d = Object.getOwnPropertyDescriptor(e, k);
9
- Object.defineProperty(n, k, d.get ? d : {
10
- enumerable: true,
11
- get: function() {
12
- return e[k];
13
- }
14
- });
15
- }
16
- });
17
- });
18
- return Object.freeze(n);
19
- }
20
- function getKeysOfEnumerableProperties(object, compareKeys) {
21
- const rawKeys = Object.keys(object);
22
- const keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
23
- if (Object.getOwnPropertySymbols) {
24
- for (const symbol of Object.getOwnPropertySymbols(object)) if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) keys.push(symbol);
25
- }
26
- return keys;
27
- }
28
- /**
29
- * Return entries (for example, of a map)
30
- * with spacing, indentation, and comma
31
- * without surrounding punctuation (for example, braces)
32
- */
33
- function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
34
- let result = "";
35
- let width = 0;
36
- let current = iterator.next();
37
- if (!current.done) {
38
- result += config.spacingOuter;
39
- const indentationNext = indentation + config.indent;
40
- while (!current.done) {
41
- result += indentationNext;
42
- if (width++ === config.maxWidth) {
43
- result += "…";
44
- break;
45
- }
46
- const name = printer(current.value[0], config, indentationNext, depth, refs);
47
- const value = printer(current.value[1], config, indentationNext, depth, refs);
48
- result += name + separator + value;
49
- current = iterator.next();
50
- if (!current.done) result += `,${config.spacingInner}`;
51
- else if (!config.min) result += ",";
52
- }
53
- result += config.spacingOuter + indentation;
54
- }
55
- return result;
56
- }
57
- /**
58
- * Return values (for example, of a set)
59
- * with spacing, indentation, and comma
60
- * without surrounding punctuation (braces or brackets)
61
- */
62
- function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
63
- let result = "";
64
- let width = 0;
65
- let current = iterator.next();
66
- if (!current.done) {
67
- result += config.spacingOuter;
68
- const indentationNext = indentation + config.indent;
69
- while (!current.done) {
70
- result += indentationNext;
71
- if (width++ === config.maxWidth) {
72
- result += "…";
73
- break;
74
- }
75
- result += printer(current.value, config, indentationNext, depth, refs);
76
- current = iterator.next();
77
- if (!current.done) result += `,${config.spacingInner}`;
78
- else if (!config.min) result += ",";
79
- }
80
- result += config.spacingOuter + indentation;
81
- }
82
- return result;
83
- }
84
- /**
85
- * Return items (for example, of an array)
86
- * with spacing, indentation, and comma
87
- * without surrounding punctuation (for example, brackets)
88
- */
89
- function printListItems(list, config, indentation, depth, refs, printer) {
90
- let result = "";
91
- list = list instanceof ArrayBuffer ? new DataView(list) : list;
92
- const isDataView = (l) => l instanceof DataView;
93
- const length = isDataView(list) ? list.byteLength : list.length;
94
- if (length > 0) {
95
- result += config.spacingOuter;
96
- const indentationNext = indentation + config.indent;
97
- for (let i = 0; i < length; i++) {
98
- result += indentationNext;
99
- if (i === config.maxWidth) {
100
- result += "…";
101
- break;
102
- }
103
- if (isDataView(list) || i in list) result += printer(isDataView(list) ? list.getInt8(i) : list[i], config, indentationNext, depth, refs);
104
- if (i < length - 1) result += `,${config.spacingInner}`;
105
- else if (!config.min) result += ",";
106
- }
107
- result += config.spacingOuter + indentation;
108
- }
109
- return result;
110
- }
111
- /**
112
- * Return properties of an object
113
- * with spacing, indentation, and comma
114
- * without surrounding punctuation (for example, braces)
115
- */
116
- function printObjectProperties(val, config, indentation, depth, refs, printer) {
117
- let result = "";
118
- const keys = getKeysOfEnumerableProperties(val, config.compareKeys);
119
- if (keys.length > 0) {
120
- result += config.spacingOuter;
121
- const indentationNext = indentation + config.indent;
122
- for (let i = 0; i < keys.length; i++) {
123
- const key = keys[i];
124
- const name = printer(key, config, indentationNext, depth, refs);
125
- const value = printer(val[key], config, indentationNext, depth, refs);
126
- result += `${indentationNext + name}: ${value}`;
127
- if (i < keys.length - 1) result += `,${config.spacingInner}`;
128
- else if (!config.min) result += ",";
129
- }
130
- result += config.spacingOuter + indentation;
131
- }
132
- return result;
133
- }
134
- const asymmetricMatcher = typeof Symbol === "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621;
135
- const SPACE$2 = " ";
136
- const serialize$5 = (val, config, indentation, depth, refs, printer) => {
137
- const stringedValue = val.toString();
138
- if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") {
139
- if (++depth > config.maxDepth) return `[${stringedValue}]`;
140
- return `${stringedValue + SPACE$2}[${printListItems(val.sample, config, indentation, depth, refs, printer)}]`;
141
- }
142
- if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") {
143
- if (++depth > config.maxDepth) return `[${stringedValue}]`;
144
- return `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config, indentation, depth, refs, printer)}}`;
145
- }
146
- if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);
147
- if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);
148
- if (typeof val.toAsymmetricMatcher !== "function") throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
149
- return val.toAsymmetricMatcher();
150
- };
151
- const test$5 = (val) => val && val.$$typeof === asymmetricMatcher;
152
- const plugin$5 = {
153
- serialize: serialize$5,
154
- test: test$5
155
- };
156
- const SPACE$1 = " ";
157
- const OBJECT_NAMES = new Set(["DOMStringMap", "NamedNodeMap"]);
158
- const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
159
- function testName(name) {
160
- return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
161
- }
162
- const test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
163
- function isNamedNodeMap(collection) {
164
- return collection.constructor.name === "NamedNodeMap";
165
- }
166
- const serialize$4 = (collection, config, indentation, depth, refs, printer) => {
167
- const name = collection.constructor.name;
168
- if (++depth > config.maxDepth) return `[${name}]`;
169
- return (config.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [...collection].reduce((props, attribute) => {
170
- props[attribute.name] = attribute.value;
171
- return props;
172
- }, {}) : { ...collection }, config, indentation, depth, refs, printer)}}` : `[${printListItems([...collection], config, indentation, depth, refs, printer)}]`);
173
- };
174
- const plugin$4 = {
175
- serialize: serialize$4,
176
- test: test$4
177
- };
178
- /**
179
- * Copyright (c) Meta Platforms, Inc. and affiliates.
180
- *
181
- * This source code is licensed under the MIT license found in the
182
- * LICENSE file in the root directory of this source tree.
183
- */
184
- function escapeHTML(str) {
185
- return str.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
186
- }
187
- function printProps(keys, props, config, indentation, depth, refs, printer) {
188
- const indentationNext = indentation + config.indent;
189
- const colors = config.colors;
190
- return keys.map((key) => {
191
- const value = props[key];
192
- let printed = printer(value, config, indentationNext, depth, refs);
193
- if (typeof value !== "string") {
194
- if (printed.includes("\n")) printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
195
- printed = `{${printed}}`;
196
- }
197
- return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
198
- }).join("");
199
- }
200
- function printChildren(children, config, indentation, depth, refs, printer) {
201
- return children.map((child) => config.spacingOuter + indentation + (typeof child === "string" ? printText(child, config) : printer(child, config, indentation, depth, refs))).join("");
202
- }
203
- function printText(text, config) {
204
- const contentColor = config.colors.content;
205
- return contentColor.open + escapeHTML(text) + contentColor.close;
206
- }
207
- function printComment(comment, config) {
208
- const commentColor = config.colors.comment;
209
- return `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`;
210
- }
211
- function printElement(type, printedProps, printedChildren, config, indentation) {
212
- const tagColor = config.colors.tag;
213
- 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}`;
214
- }
215
- function printElementAsLeaf(type, config) {
216
- const tagColor = config.colors.tag;
217
- return `${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`;
218
- }
219
- const ELEMENT_NODE = 1;
220
- const TEXT_NODE = 3;
221
- const COMMENT_NODE = 8;
222
- const FRAGMENT_NODE = 11;
223
- const ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/;
224
- function testHasAttribute(val) {
225
- try {
226
- return typeof val.hasAttribute === "function" && val.hasAttribute("is");
227
- } catch {
228
- return false;
229
- }
230
- }
231
- function testNode(val) {
232
- const constructorName = val.constructor.name;
233
- const { nodeType, tagName } = val;
234
- const isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val);
235
- return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
236
- }
237
- const test$3 = (val) => {
238
- var _val$constructor;
239
- return (val === null || val === void 0 || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
240
- };
241
- function nodeIsText(node) {
242
- return node.nodeType === TEXT_NODE;
243
- }
244
- function nodeIsComment(node) {
245
- return node.nodeType === COMMENT_NODE;
246
- }
247
- function nodeIsFragment(node) {
248
- return node.nodeType === FRAGMENT_NODE;
249
- }
250
- const serialize$3 = (node, config, indentation, depth, refs, printer) => {
251
- if (nodeIsText(node)) return printText(node.data, config);
252
- if (nodeIsComment(node)) return printComment(node.data, config);
253
- const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
254
- if (++depth > config.maxDepth) return printElementAsLeaf(type, config);
255
- return printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(), nodeIsFragment(node) ? {} : [...node.attributes].reduce((props, attribute) => {
256
- props[attribute.name] = attribute.value;
257
- return props;
258
- }, {}), config, indentation + config.indent, depth, refs, printer), printChildren(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
259
- };
260
- const plugin$3 = {
261
- serialize: serialize$3,
262
- test: test$3
263
- };
264
- const IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@";
265
- const IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@";
266
- const IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@";
267
- const IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@";
268
- const IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@";
269
- const IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@";
270
- const IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
271
- const IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
272
- const IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
273
- const getImmutableName = (name) => `Immutable.${name}`;
274
- const printAsLeaf = (name) => `[${name}]`;
275
- const SPACE = " ";
276
- const LAZY = "…";
277
- function printImmutableEntries(val, config, indentation, depth, refs, printer, type) {
278
- return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${printIteratorEntries(val.entries(), config, indentation, depth, refs, printer)}}`;
279
- }
280
- function getRecordEntries(val) {
281
- let i = 0;
282
- return { next() {
283
- if (i < val._keys.length) {
284
- const key = val._keys[i++];
285
- return {
286
- done: false,
287
- value: [key, val.get(key)]
288
- };
289
- }
290
- return {
291
- done: true,
292
- value: void 0
293
- };
294
- } };
295
- }
296
- function printImmutableRecord(val, config, indentation, depth, refs, printer) {
297
- const name = getImmutableName(val._name || "Record");
298
- return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
299
- }
300
- function printImmutableSeq(val, config, indentation, depth, refs, printer) {
301
- const name = getImmutableName("Seq");
302
- if (++depth > config.maxDepth) return printAsLeaf(name);
303
- if (val[IS_KEYED_SENTINEL]) return `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config, indentation, depth, refs, printer) : LAZY}}`;
304
- return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
305
- }
306
- function printImmutableValues(val, config, indentation, depth, refs, printer, type) {
307
- return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${printIteratorValues(val.values(), config, indentation, depth, refs, printer)}]`;
308
- }
309
- const serialize$2 = (val, config, indentation, depth, refs, printer) => {
310
- if (val[IS_MAP_SENTINEL]) return printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
311
- if (val[IS_LIST_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, "List");
312
- if (val[IS_SET_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set");
313
- if (val[IS_STACK_SENTINEL]) return printImmutableValues(val, config, indentation, depth, refs, printer, "Stack");
314
- if (val[IS_SEQ_SENTINEL]) return printImmutableSeq(val, config, indentation, depth, refs, printer);
315
- return printImmutableRecord(val, config, indentation, depth, refs, printer);
316
- };
317
- const test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);
318
- const plugin$2 = {
319
- serialize: serialize$2,
320
- test: test$2
321
- };
322
- function getDefaultExportFromCjs(x) {
323
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
324
- }
325
- var reactIs$1 = { exports: {} };
326
- var reactIs_production = {};
327
- /**
328
- * @license React
329
- * react-is.production.js
330
- *
331
- * Copyright (c) Meta Platforms, Inc. and affiliates.
332
- *
333
- * This source code is licensed under the MIT license found in the
334
- * LICENSE file in the root directory of this source tree.
335
- */
336
- var hasRequiredReactIs_production;
337
- function requireReactIs_production() {
338
- if (hasRequiredReactIs_production) return reactIs_production;
339
- hasRequiredReactIs_production = 1;
340
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
341
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
342
- function typeOf(object) {
343
- if ("object" === typeof object && null !== object) {
344
- var $$typeof = object.$$typeof;
345
- switch ($$typeof) {
346
- case REACT_ELEMENT_TYPE: switch (object = object.type, object) {
347
- case REACT_FRAGMENT_TYPE:
348
- case REACT_PROFILER_TYPE:
349
- case REACT_STRICT_MODE_TYPE:
350
- case REACT_SUSPENSE_TYPE:
351
- case REACT_SUSPENSE_LIST_TYPE:
352
- case REACT_VIEW_TRANSITION_TYPE: return object;
353
- default: switch (object = object && object.$$typeof, object) {
354
- case REACT_CONTEXT_TYPE:
355
- case REACT_FORWARD_REF_TYPE:
356
- case REACT_LAZY_TYPE:
357
- case REACT_MEMO_TYPE: return object;
358
- case REACT_CONSUMER_TYPE: return object;
359
- default: return $$typeof;
360
- }
361
- }
362
- case REACT_PORTAL_TYPE: return $$typeof;
363
- }
364
- }
365
- }
366
- reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
367
- reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
368
- reactIs_production.Element = REACT_ELEMENT_TYPE;
369
- reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
370
- reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
371
- reactIs_production.Lazy = REACT_LAZY_TYPE;
372
- reactIs_production.Memo = REACT_MEMO_TYPE;
373
- reactIs_production.Portal = REACT_PORTAL_TYPE;
374
- reactIs_production.Profiler = REACT_PROFILER_TYPE;
375
- reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
376
- reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
377
- reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
378
- reactIs_production.isContextConsumer = function(object) {
379
- return typeOf(object) === REACT_CONSUMER_TYPE;
380
- };
381
- reactIs_production.isContextProvider = function(object) {
382
- return typeOf(object) === REACT_CONTEXT_TYPE;
383
- };
384
- reactIs_production.isElement = function(object) {
385
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
386
- };
387
- reactIs_production.isForwardRef = function(object) {
388
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
389
- };
390
- reactIs_production.isFragment = function(object) {
391
- return typeOf(object) === REACT_FRAGMENT_TYPE;
392
- };
393
- reactIs_production.isLazy = function(object) {
394
- return typeOf(object) === REACT_LAZY_TYPE;
395
- };
396
- reactIs_production.isMemo = function(object) {
397
- return typeOf(object) === REACT_MEMO_TYPE;
398
- };
399
- reactIs_production.isPortal = function(object) {
400
- return typeOf(object) === REACT_PORTAL_TYPE;
401
- };
402
- reactIs_production.isProfiler = function(object) {
403
- return typeOf(object) === REACT_PROFILER_TYPE;
404
- };
405
- reactIs_production.isStrictMode = function(object) {
406
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
407
- };
408
- reactIs_production.isSuspense = function(object) {
409
- return typeOf(object) === REACT_SUSPENSE_TYPE;
410
- };
411
- reactIs_production.isSuspenseList = function(object) {
412
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
413
- };
414
- reactIs_production.isValidElementType = function(type) {
415
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
416
- };
417
- reactIs_production.typeOf = typeOf;
418
- return reactIs_production;
419
- }
420
- var reactIs_development$1 = {};
421
- /**
422
- * @license React
423
- * react-is.development.js
424
- *
425
- * Copyright (c) Meta Platforms, Inc. and affiliates.
426
- *
427
- * This source code is licensed under the MIT license found in the
428
- * LICENSE file in the root directory of this source tree.
429
- */
430
- var hasRequiredReactIs_development$1;
431
- function requireReactIs_development$1() {
432
- if (hasRequiredReactIs_development$1) return reactIs_development$1;
433
- hasRequiredReactIs_development$1 = 1;
434
- "production" !== process.env.NODE_ENV && (function() {
435
- function typeOf(object) {
436
- if ("object" === typeof object && null !== object) {
437
- var $$typeof = object.$$typeof;
438
- switch ($$typeof) {
439
- case REACT_ELEMENT_TYPE: switch (object = object.type, object) {
440
- case REACT_FRAGMENT_TYPE:
441
- case REACT_PROFILER_TYPE:
442
- case REACT_STRICT_MODE_TYPE:
443
- case REACT_SUSPENSE_TYPE:
444
- case REACT_SUSPENSE_LIST_TYPE:
445
- case REACT_VIEW_TRANSITION_TYPE: return object;
446
- default: switch (object = object && object.$$typeof, object) {
447
- case REACT_CONTEXT_TYPE:
448
- case REACT_FORWARD_REF_TYPE:
449
- case REACT_LAZY_TYPE:
450
- case REACT_MEMO_TYPE: return object;
451
- case REACT_CONSUMER_TYPE: return object;
452
- default: return $$typeof;
453
- }
454
- }
455
- case REACT_PORTAL_TYPE: return $$typeof;
456
- }
457
- }
458
- }
459
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
460
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
461
- reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
462
- reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;
463
- reactIs_development$1.Element = REACT_ELEMENT_TYPE;
464
- reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;
465
- reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;
466
- reactIs_development$1.Lazy = REACT_LAZY_TYPE;
467
- reactIs_development$1.Memo = REACT_MEMO_TYPE;
468
- reactIs_development$1.Portal = REACT_PORTAL_TYPE;
469
- reactIs_development$1.Profiler = REACT_PROFILER_TYPE;
470
- reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;
471
- reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;
472
- reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
473
- reactIs_development$1.isContextConsumer = function(object) {
474
- return typeOf(object) === REACT_CONSUMER_TYPE;
475
- };
476
- reactIs_development$1.isContextProvider = function(object) {
477
- return typeOf(object) === REACT_CONTEXT_TYPE;
478
- };
479
- reactIs_development$1.isElement = function(object) {
480
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
481
- };
482
- reactIs_development$1.isForwardRef = function(object) {
483
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
484
- };
485
- reactIs_development$1.isFragment = function(object) {
486
- return typeOf(object) === REACT_FRAGMENT_TYPE;
487
- };
488
- reactIs_development$1.isLazy = function(object) {
489
- return typeOf(object) === REACT_LAZY_TYPE;
490
- };
491
- reactIs_development$1.isMemo = function(object) {
492
- return typeOf(object) === REACT_MEMO_TYPE;
493
- };
494
- reactIs_development$1.isPortal = function(object) {
495
- return typeOf(object) === REACT_PORTAL_TYPE;
496
- };
497
- reactIs_development$1.isProfiler = function(object) {
498
- return typeOf(object) === REACT_PROFILER_TYPE;
499
- };
500
- reactIs_development$1.isStrictMode = function(object) {
501
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
502
- };
503
- reactIs_development$1.isSuspense = function(object) {
504
- return typeOf(object) === REACT_SUSPENSE_TYPE;
505
- };
506
- reactIs_development$1.isSuspenseList = function(object) {
507
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
508
- };
509
- reactIs_development$1.isValidElementType = function(type) {
510
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
511
- };
512
- reactIs_development$1.typeOf = typeOf;
513
- })();
514
- return reactIs_development$1;
515
- }
516
- var hasRequiredReactIs$1;
517
- function requireReactIs$1() {
518
- if (hasRequiredReactIs$1) return reactIs$1.exports;
519
- hasRequiredReactIs$1 = 1;
520
- if (process.env.NODE_ENV === "production") reactIs$1.exports = requireReactIs_production();
521
- else reactIs$1.exports = requireReactIs_development$1();
522
- return reactIs$1.exports;
523
- }
524
- var reactIsExports$1 = requireReactIs$1();
525
- var ReactIs19 = /* @__PURE__ */ _mergeNamespaces({
526
- __proto__: null,
527
- default: /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports$1)
528
- }, [reactIsExports$1]);
529
- var reactIs = { exports: {} };
530
- var reactIs_production_min = {};
531
- /**
532
- * @license React
533
- * react-is.production.min.js
534
- *
535
- * Copyright (c) Facebook, Inc. and its affiliates.
536
- *
537
- * This source code is licensed under the MIT license found in the
538
- * LICENSE file in the root directory of this source tree.
539
- */
540
- var hasRequiredReactIs_production_min;
541
- function requireReactIs_production_min() {
542
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
543
- hasRequiredReactIs_production_min = 1;
544
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u = Symbol.for("react.module.reference");
545
- function v(a) {
546
- if ("object" === typeof a && null !== a) {
547
- var r = a.$$typeof;
548
- switch (r) {
549
- case b: switch (a = a.type, a) {
550
- case d:
551
- case f:
552
- case e:
553
- case m:
554
- case n: return a;
555
- default: switch (a = a && a.$$typeof, a) {
556
- case k:
557
- case h:
558
- case l:
559
- case q:
560
- case p:
561
- case g: return a;
562
- default: return r;
563
- }
564
- }
565
- case c: return r;
566
- }
567
- }
568
- }
569
- reactIs_production_min.ContextConsumer = h;
570
- reactIs_production_min.ContextProvider = g;
571
- reactIs_production_min.Element = b;
572
- reactIs_production_min.ForwardRef = l;
573
- reactIs_production_min.Fragment = d;
574
- reactIs_production_min.Lazy = q;
575
- reactIs_production_min.Memo = p;
576
- reactIs_production_min.Portal = c;
577
- reactIs_production_min.Profiler = f;
578
- reactIs_production_min.StrictMode = e;
579
- reactIs_production_min.Suspense = m;
580
- reactIs_production_min.SuspenseList = n;
581
- reactIs_production_min.isAsyncMode = function() {
582
- return false;
583
- };
584
- reactIs_production_min.isConcurrentMode = function() {
585
- return false;
586
- };
587
- reactIs_production_min.isContextConsumer = function(a) {
588
- return v(a) === h;
589
- };
590
- reactIs_production_min.isContextProvider = function(a) {
591
- return v(a) === g;
592
- };
593
- reactIs_production_min.isElement = function(a) {
594
- return "object" === typeof a && null !== a && a.$$typeof === b;
595
- };
596
- reactIs_production_min.isForwardRef = function(a) {
597
- return v(a) === l;
598
- };
599
- reactIs_production_min.isFragment = function(a) {
600
- return v(a) === d;
601
- };
602
- reactIs_production_min.isLazy = function(a) {
603
- return v(a) === q;
604
- };
605
- reactIs_production_min.isMemo = function(a) {
606
- return v(a) === p;
607
- };
608
- reactIs_production_min.isPortal = function(a) {
609
- return v(a) === c;
610
- };
611
- reactIs_production_min.isProfiler = function(a) {
612
- return v(a) === f;
613
- };
614
- reactIs_production_min.isStrictMode = function(a) {
615
- return v(a) === e;
616
- };
617
- reactIs_production_min.isSuspense = function(a) {
618
- return v(a) === m;
619
- };
620
- reactIs_production_min.isSuspenseList = function(a) {
621
- return v(a) === n;
622
- };
623
- reactIs_production_min.isValidElementType = function(a) {
624
- return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
625
- };
626
- reactIs_production_min.typeOf = v;
627
- return reactIs_production_min;
628
- }
629
- var reactIs_development = {};
630
- /**
631
- * @license React
632
- * react-is.development.js
633
- *
634
- * Copyright (c) Facebook, Inc. and its affiliates.
635
- *
636
- * This source code is licensed under the MIT license found in the
637
- * LICENSE file in the root directory of this source tree.
638
- */
639
- var hasRequiredReactIs_development;
640
- function requireReactIs_development() {
641
- if (hasRequiredReactIs_development) return reactIs_development;
642
- hasRequiredReactIs_development = 1;
643
- if (process.env.NODE_ENV !== "production") (function() {
644
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
645
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
646
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
647
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
648
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
649
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
650
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
651
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
652
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
653
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
654
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
655
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
656
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
657
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
658
- var enableScopeAPI = false;
659
- var enableCacheElement = false;
660
- var enableTransitionTracing = false;
661
- var enableLegacyHidden = false;
662
- var enableDebugTracing = false;
663
- var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
664
- function isValidElementType(type) {
665
- if (typeof type === "string" || typeof type === "function") return true;
666
- 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) return true;
667
- if (typeof type === "object" && type !== null) {
668
- 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) return true;
669
- }
670
- return false;
671
- }
672
- function typeOf(object) {
673
- if (typeof object === "object" && object !== null) {
674
- var $$typeof = object.$$typeof;
675
- switch ($$typeof) {
676
- case REACT_ELEMENT_TYPE:
677
- var type = object.type;
678
- switch (type) {
679
- case REACT_FRAGMENT_TYPE:
680
- case REACT_PROFILER_TYPE:
681
- case REACT_STRICT_MODE_TYPE:
682
- case REACT_SUSPENSE_TYPE:
683
- case REACT_SUSPENSE_LIST_TYPE: return type;
684
- default:
685
- var $$typeofType = type && type.$$typeof;
686
- switch ($$typeofType) {
687
- case REACT_SERVER_CONTEXT_TYPE:
688
- case REACT_CONTEXT_TYPE:
689
- case REACT_FORWARD_REF_TYPE:
690
- case REACT_LAZY_TYPE:
691
- case REACT_MEMO_TYPE:
692
- case REACT_PROVIDER_TYPE: return $$typeofType;
693
- default: return $$typeof;
694
- }
695
- }
696
- case REACT_PORTAL_TYPE: return $$typeof;
697
- }
698
- }
699
- }
700
- var ContextConsumer = REACT_CONTEXT_TYPE;
701
- var ContextProvider = REACT_PROVIDER_TYPE;
702
- var Element = REACT_ELEMENT_TYPE;
703
- var ForwardRef = REACT_FORWARD_REF_TYPE;
704
- var Fragment = REACT_FRAGMENT_TYPE;
705
- var Lazy = REACT_LAZY_TYPE;
706
- var Memo = REACT_MEMO_TYPE;
707
- var Portal = REACT_PORTAL_TYPE;
708
- var Profiler = REACT_PROFILER_TYPE;
709
- var StrictMode = REACT_STRICT_MODE_TYPE;
710
- var Suspense = REACT_SUSPENSE_TYPE;
711
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
712
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
713
- var hasWarnedAboutDeprecatedIsConcurrentMode = false;
714
- function isAsyncMode(object) {
715
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
716
- hasWarnedAboutDeprecatedIsAsyncMode = true;
717
- console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
718
- }
719
- return false;
720
- }
721
- function isConcurrentMode(object) {
722
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
723
- hasWarnedAboutDeprecatedIsConcurrentMode = true;
724
- console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
725
- }
726
- return false;
727
- }
728
- function isContextConsumer(object) {
729
- return typeOf(object) === REACT_CONTEXT_TYPE;
730
- }
731
- function isContextProvider(object) {
732
- return typeOf(object) === REACT_PROVIDER_TYPE;
733
- }
734
- function isElement(object) {
735
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
736
- }
737
- function isForwardRef(object) {
738
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
739
- }
740
- function isFragment(object) {
741
- return typeOf(object) === REACT_FRAGMENT_TYPE;
742
- }
743
- function isLazy(object) {
744
- return typeOf(object) === REACT_LAZY_TYPE;
745
- }
746
- function isMemo(object) {
747
- return typeOf(object) === REACT_MEMO_TYPE;
748
- }
749
- function isPortal(object) {
750
- return typeOf(object) === REACT_PORTAL_TYPE;
751
- }
752
- function isProfiler(object) {
753
- return typeOf(object) === REACT_PROFILER_TYPE;
754
- }
755
- function isStrictMode(object) {
756
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
757
- }
758
- function isSuspense(object) {
759
- return typeOf(object) === REACT_SUSPENSE_TYPE;
760
- }
761
- function isSuspenseList(object) {
762
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
763
- }
764
- reactIs_development.ContextConsumer = ContextConsumer;
765
- reactIs_development.ContextProvider = ContextProvider;
766
- reactIs_development.Element = Element;
767
- reactIs_development.ForwardRef = ForwardRef;
768
- reactIs_development.Fragment = Fragment;
769
- reactIs_development.Lazy = Lazy;
770
- reactIs_development.Memo = Memo;
771
- reactIs_development.Portal = Portal;
772
- reactIs_development.Profiler = Profiler;
773
- reactIs_development.StrictMode = StrictMode;
774
- reactIs_development.Suspense = Suspense;
775
- reactIs_development.SuspenseList = SuspenseList;
776
- reactIs_development.isAsyncMode = isAsyncMode;
777
- reactIs_development.isConcurrentMode = isConcurrentMode;
778
- reactIs_development.isContextConsumer = isContextConsumer;
779
- reactIs_development.isContextProvider = isContextProvider;
780
- reactIs_development.isElement = isElement;
781
- reactIs_development.isForwardRef = isForwardRef;
782
- reactIs_development.isFragment = isFragment;
783
- reactIs_development.isLazy = isLazy;
784
- reactIs_development.isMemo = isMemo;
785
- reactIs_development.isPortal = isPortal;
786
- reactIs_development.isProfiler = isProfiler;
787
- reactIs_development.isStrictMode = isStrictMode;
788
- reactIs_development.isSuspense = isSuspense;
789
- reactIs_development.isSuspenseList = isSuspenseList;
790
- reactIs_development.isValidElementType = isValidElementType;
791
- reactIs_development.typeOf = typeOf;
792
- })();
793
- return reactIs_development;
794
- }
795
- var hasRequiredReactIs;
796
- function requireReactIs() {
797
- if (hasRequiredReactIs) return reactIs.exports;
798
- hasRequiredReactIs = 1;
799
- if (process.env.NODE_ENV === "production") reactIs.exports = requireReactIs_production_min();
800
- else reactIs.exports = requireReactIs_development();
801
- return reactIs.exports;
802
- }
803
- var reactIsExports = requireReactIs();
804
- var ReactIs18 = /* @__PURE__ */ _mergeNamespaces({
805
- __proto__: null,
806
- default: /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports)
807
- }, [reactIsExports]);
808
- const ReactIs = Object.fromEntries([
809
- "isAsyncMode",
810
- "isConcurrentMode",
811
- "isContextConsumer",
812
- "isContextProvider",
813
- "isElement",
814
- "isForwardRef",
815
- "isFragment",
816
- "isLazy",
817
- "isMemo",
818
- "isPortal",
819
- "isProfiler",
820
- "isStrictMode",
821
- "isSuspense",
822
- "isSuspenseList",
823
- "isValidElementType"
824
- ].map((m) => [m, (v) => ReactIs18[m](v) || ReactIs19[m](v)]));
825
- function getChildren(arg, children = []) {
826
- if (Array.isArray(arg)) for (const item of arg) getChildren(item, children);
827
- else if (arg != null && arg !== false && arg !== "") children.push(arg);
828
- return children;
829
- }
830
- function getType(element) {
831
- const type = element.type;
832
- if (typeof type === "string") return type;
833
- if (typeof type === "function") return type.displayName || type.name || "Unknown";
834
- if (ReactIs.isFragment(element)) return "React.Fragment";
835
- if (ReactIs.isSuspense(element)) return "React.Suspense";
836
- if (typeof type === "object" && type !== null) {
837
- if (ReactIs.isContextProvider(element)) return "Context.Provider";
838
- if (ReactIs.isContextConsumer(element)) return "Context.Consumer";
839
- if (ReactIs.isForwardRef(element)) {
840
- if (type.displayName) return type.displayName;
841
- const functionName = type.render.displayName || type.render.name || "";
842
- return functionName === "" ? "ForwardRef" : `ForwardRef(${functionName})`;
843
- }
844
- if (ReactIs.isMemo(element)) {
845
- const functionName = type.displayName || type.type.displayName || type.type.name || "";
846
- return functionName === "" ? "Memo" : `Memo(${functionName})`;
847
- }
848
- }
849
- return "UNDEFINED";
850
- }
851
- function getPropKeys$1(element) {
852
- const { props } = element;
853
- return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
854
- }
855
- const serialize$1 = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(getType(element), config) : printElement(getType(element), printProps(getPropKeys$1(element), element.props, config, indentation + config.indent, depth, refs, printer), printChildren(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
856
- const test$1 = (val) => val != null && ReactIs.isElement(val);
857
- const plugin$1 = {
858
- serialize: serialize$1,
859
- test: test$1
860
- };
861
- const testSymbol = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
862
- function getPropKeys(object) {
863
- const { props } = object;
864
- return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
865
- }
866
- const serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(object.type, config) : printElement(object.type, object.props ? printProps(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : "", object.children ? printChildren(object.children, config, indentation + config.indent, depth, refs, printer) : "", config, indentation);
867
- const test = (val) => val && val.$$typeof === testSymbol;
868
- const plugin = {
869
- serialize,
870
- test
871
- };
872
- const toString = Object.prototype.toString;
873
- const toISOString = Date.prototype.toISOString;
874
- const errorToString = Error.prototype.toString;
875
- const regExpToString = RegExp.prototype.toString;
876
- /**
877
- * Explicitly comparing typeof constructor to function avoids undefined as name
878
- * when mock identity-obj-proxy returns the key as the value for any key.
879
- */
880
- function getConstructorName(val) {
881
- return typeof val.constructor === "function" && val.constructor.name || "Object";
882
- }
883
- /** Is val is equal to global window object? Works even if it does not exist :) */
884
- function isWindow(val) {
885
- return typeof window !== "undefined" && val === window;
886
- }
887
- const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
888
- const NEWLINE_REGEXP = /\n/g;
889
- var PrettyFormatPluginError = class extends Error {
890
- constructor(message, stack) {
891
- super(message);
892
- this.stack = stack;
893
- this.name = this.constructor.name;
894
- }
895
- };
896
- function isToStringedArrayType(toStringed) {
897
- 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]";
898
- }
899
- function printNumber(val) {
900
- return Object.is(val, -0) ? "-0" : String(val);
901
- }
902
- function printBigInt(val) {
903
- return String(`${val}n`);
904
- }
905
- function printFunction(val, printFunctionName) {
906
- if (!printFunctionName) return "[Function]";
907
- return `[Function ${val.name || "anonymous"}]`;
908
- }
909
- function printSymbol(val) {
910
- return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
911
- }
912
- function printError(val) {
913
- return `[${errorToString.call(val)}]`;
914
- }
915
- /**
916
- * The first port of call for printing an object, handles most of the
917
- * data-types in JS.
918
- */
919
- function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
920
- if (val === true || val === false) return `${val}`;
921
- if (val === void 0) return "undefined";
922
- if (val === null) return "null";
923
- const typeOf = typeof val;
924
- if (typeOf === "number") return printNumber(val);
925
- if (typeOf === "bigint") return printBigInt(val);
926
- if (typeOf === "string") {
927
- if (escapeString) return `"${val.replaceAll(/"|\\/g, "\\$&")}"`;
928
- return `"${val}"`;
929
- }
930
- if (typeOf === "function") return printFunction(val, printFunctionName);
931
- if (typeOf === "symbol") return printSymbol(val);
932
- const toStringed = toString.call(val);
933
- if (toStringed === "[object WeakMap]") return "WeakMap {}";
934
- if (toStringed === "[object WeakSet]") return "WeakSet {}";
935
- if (toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]") return printFunction(val, printFunctionName);
936
- if (toStringed === "[object Symbol]") return printSymbol(val);
937
- if (toStringed === "[object Date]") return Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val);
938
- if (toStringed === "[object Error]") return printError(val);
939
- if (toStringed === "[object RegExp]") {
940
- if (escapeRegex) return regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&");
941
- return regExpToString.call(val);
942
- }
943
- if (val instanceof Error) return printError(val);
944
- return null;
945
- }
946
- /**
947
- * Handles more complex objects ( such as objects with circular references.
948
- * maps and sets etc )
949
- */
950
- function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {
951
- if (refs.includes(val)) return "[Circular]";
952
- refs = [...refs];
953
- refs.push(val);
954
- const hitMaxDepth = ++depth > config.maxDepth;
955
- const min = config.min;
956
- if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === "function" && !hasCalledToJSON) return printer(val.toJSON(), config, indentation, depth, refs, true);
957
- const toStringed = toString.call(val);
958
- if (toStringed === "[object Arguments]") return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${printListItems(val, config, indentation, depth, refs, printer)}]`;
959
- if (isToStringedArrayType(toStringed)) return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${printListItems(val, config, indentation, depth, refs, printer)}]`;
960
- if (toStringed === "[object Map]") return hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries(val.entries(), config, indentation, depth, refs, printer, " => ")}}`;
961
- if (toStringed === "[object Set]") return hitMaxDepth ? "[Set]" : `Set {${printIteratorValues(val.values(), config, indentation, depth, refs, printer)}}`;
962
- return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${printObjectProperties(val, config, indentation, depth, refs, printer)}}`;
963
- }
964
- const ErrorPlugin = {
965
- test: (val) => val && val instanceof Error,
966
- serialize(val, config, indentation, depth, refs, printer) {
967
- if (refs.includes(val)) return "[Circular]";
968
- refs = [...refs, val];
969
- const hitMaxDepth = ++depth > config.maxDepth;
970
- const { message, cause, ...rest } = val;
971
- const entries = {
972
- message,
973
- ...typeof cause !== "undefined" ? { cause } : {},
974
- ...val instanceof AggregateError ? { errors: val.errors } : {},
975
- ...rest
976
- };
977
- const name = val.name !== "Error" ? val.name : getConstructorName(val);
978
- return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config, indentation, depth, refs, printer)}}`;
979
- }
980
- };
981
- function isNewPlugin(plugin) {
982
- return plugin.serialize != null;
983
- }
984
- function printPlugin(plugin, val, config, indentation, depth, refs) {
985
- let printed;
986
- try {
987
- printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
988
- const indentationNext = indentation + config.indent;
989
- return indentationNext + str.replaceAll(NEWLINE_REGEXP, `\n${indentationNext}`);
990
- }, {
991
- edgeSpacing: config.spacingOuter,
992
- min: config.min,
993
- spacing: config.spacingInner
994
- }, config.colors);
995
- } catch (error) {
996
- throw new PrettyFormatPluginError(error.message, error.stack);
997
- }
998
- if (typeof printed !== "string") throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
999
- return printed;
1000
- }
1001
- function findPlugin(plugins, val) {
1002
- for (const plugin of plugins) try {
1003
- if (plugin.test(val)) return plugin;
1004
- } catch (error) {
1005
- throw new PrettyFormatPluginError(error.message, error.stack);
1006
- }
1007
- return null;
1008
- }
1009
- function printer(val, config, indentation, depth, refs, hasCalledToJSON) {
1010
- const plugin = findPlugin(config.plugins, val);
1011
- if (plugin !== null) return printPlugin(plugin, val, config, indentation, depth, refs);
1012
- const basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
1013
- if (basicResult !== null) return basicResult;
1014
- return printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
1015
- }
1016
- const DEFAULT_THEME = {
1017
- comment: "gray",
1018
- content: "reset",
1019
- prop: "yellow",
1020
- tag: "cyan",
1021
- value: "green"
1022
- };
1023
- const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);
1024
- const DEFAULT_OPTIONS = {
1025
- callToJSON: true,
1026
- compareKeys: void 0,
1027
- escapeRegex: false,
1028
- escapeString: true,
1029
- highlight: false,
1030
- indent: 2,
1031
- maxDepth: Number.POSITIVE_INFINITY,
1032
- maxWidth: Number.POSITIVE_INFINITY,
1033
- min: false,
1034
- plugins: [],
1035
- printBasicPrototype: true,
1036
- printFunctionName: true,
1037
- theme: DEFAULT_THEME
1038
- };
1039
- function validateOptions(options) {
1040
- for (const key of Object.keys(options)) if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) throw new Error(`pretty-format: Unknown option "${key}".`);
1041
- if (options.min && options.indent !== void 0 && options.indent !== 0) throw new Error("pretty-format: Options \"min\" and \"indent\" cannot be used together.");
1042
- }
1043
- function getColorsHighlight() {
1044
- return DEFAULT_THEME_KEYS.reduce((colors, key) => {
1045
- const value = DEFAULT_THEME[key];
1046
- const color = value && u[value];
1047
- if (color && typeof color.close === "string" && typeof color.open === "string") colors[key] = color;
1048
- else throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
1049
- return colors;
1050
- }, Object.create(null));
1051
- }
1052
- function getColorsEmpty() {
1053
- return DEFAULT_THEME_KEYS.reduce((colors, key) => {
1054
- colors[key] = {
1055
- close: "",
1056
- open: ""
1057
- };
1058
- return colors;
1059
- }, Object.create(null));
1060
- }
1061
- function getPrintFunctionName(options) {
1062
- return (options === null || options === void 0 ? void 0 : options.printFunctionName) ?? DEFAULT_OPTIONS.printFunctionName;
1063
- }
1064
- function getEscapeRegex(options) {
1065
- return (options === null || options === void 0 ? void 0 : options.escapeRegex) ?? DEFAULT_OPTIONS.escapeRegex;
1066
- }
1067
- function getEscapeString(options) {
1068
- return (options === null || options === void 0 ? void 0 : options.escapeString) ?? DEFAULT_OPTIONS.escapeString;
1069
- }
1070
- function getConfig(options) {
1071
- return {
1072
- callToJSON: (options === null || options === void 0 ? void 0 : options.callToJSON) ?? DEFAULT_OPTIONS.callToJSON,
1073
- colors: (options === null || options === void 0 ? void 0 : options.highlight) ? getColorsHighlight() : getColorsEmpty(),
1074
- compareKeys: typeof (options === null || options === void 0 ? void 0 : options.compareKeys) === "function" || (options === null || options === void 0 ? void 0 : options.compareKeys) === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
1075
- escapeRegex: getEscapeRegex(options),
1076
- escapeString: getEscapeString(options),
1077
- indent: (options === null || options === void 0 ? void 0 : options.min) ? "" : createIndent((options === null || options === void 0 ? void 0 : options.indent) ?? DEFAULT_OPTIONS.indent),
1078
- maxDepth: (options === null || options === void 0 ? void 0 : options.maxDepth) ?? DEFAULT_OPTIONS.maxDepth,
1079
- maxWidth: (options === null || options === void 0 ? void 0 : options.maxWidth) ?? DEFAULT_OPTIONS.maxWidth,
1080
- min: (options === null || options === void 0 ? void 0 : options.min) ?? DEFAULT_OPTIONS.min,
1081
- plugins: (options === null || options === void 0 ? void 0 : options.plugins) ?? DEFAULT_OPTIONS.plugins,
1082
- printBasicPrototype: (options === null || options === void 0 ? void 0 : options.printBasicPrototype) ?? true,
1083
- printFunctionName: getPrintFunctionName(options),
1084
- spacingInner: (options === null || options === void 0 ? void 0 : options.min) ? " " : "\n",
1085
- spacingOuter: (options === null || options === void 0 ? void 0 : options.min) ? "" : "\n"
1086
- };
1087
- }
1088
- function createIndent(indent) {
1089
- return Array.from({ length: indent + 1 }).join(" ");
1090
- }
1091
- /**
1092
- * Returns a presentation string of your `val` object
1093
- * @param val any potential JavaScript object
1094
- * @param options Custom settings
1095
- */
1096
- function format(val, options) {
1097
- if (options) {
1098
- validateOptions(options);
1099
- if (options.plugins) {
1100
- const plugin = findPlugin(options.plugins, val);
1101
- if (plugin !== null) return printPlugin(plugin, val, getConfig(options), "", 0, []);
1102
- }
1103
- }
1104
- const basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
1105
- if (basicResult !== null) return basicResult;
1106
- return printComplexValue(val, getConfig(options), "", 0, []);
1107
- }
1108
- const plugins = {
1109
- AsymmetricMatcher: plugin$5,
1110
- DOMCollection: plugin$4,
1111
- DOMElement: plugin$3,
1112
- Immutable: plugin$2,
1113
- ReactElement: plugin$1,
1114
- ReactTestComponent: plugin,
1115
- Error: ErrorPlugin
1116
- };
1117
-
1118
- //#endregion
1119
- export { format, plugins };