@manifest-network/manifest-mcp-core 0.1.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.
- package/dist/__test-utils__/callTool.d.ts +29 -0
- package/dist/__test-utils__/callTool.d.ts.map +1 -0
- package/dist/__test-utils__/callTool.js +45 -0
- package/dist/__test-utils__/callTool.js.map +1 -0
- package/dist/__test-utils__/mocks.d.ts +125 -0
- package/dist/__test-utils__/mocks.d.ts.map +1 -0
- package/dist/__test-utils__/mocks.js +146 -0
- package/dist/__test-utils__/mocks.js.map +1 -0
- package/dist/client.d.ts +67 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +209 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +30 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +127 -0
- package/dist/config.js.map +1 -0
- package/dist/cosmos.d.ts +24 -0
- package/dist/cosmos.d.ts.map +1 -0
- package/dist/cosmos.js +85 -0
- package/dist/cosmos.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +20 -0
- package/dist/lcd-adapter.d.ts +15 -0
- package/dist/lcd-adapter.d.ts.map +1 -0
- package/dist/lcd-adapter.js +98 -0
- package/dist/lcd-adapter.js.map +1 -0
- package/dist/logger.d.ts +20 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +43 -0
- package/dist/logger.js.map +1 -0
- package/dist/modules.d.ts +63 -0
- package/dist/modules.d.ts.map +1 -0
- package/dist/modules.js +759 -0
- package/dist/modules.js.map +1 -0
- package/dist/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +78 -0
- package/dist/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js.map +1 -0
- package/dist/node_modules/@vitest/expect/dist/index.d.ts +802 -0
- package/dist/node_modules/@vitest/expect/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@vitest/expect/dist/index.js +1457 -0
- package/dist/node_modules/@vitest/expect/dist/index.js.map +1 -0
- package/dist/node_modules/@vitest/pretty-format/dist/index.d.ts +95 -0
- package/dist/node_modules/@vitest/pretty-format/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@vitest/pretty-format/dist/index.js +877 -0
- package/dist/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
- package/dist/node_modules/@vitest/runner/dist/chunk-tasks.js +91 -0
- package/dist/node_modules/@vitest/runner/dist/chunk-tasks.js.map +1 -0
- package/dist/node_modules/@vitest/runner/dist/index.js +1381 -0
- package/dist/node_modules/@vitest/runner/dist/index.js.map +1 -0
- package/dist/node_modules/@vitest/runner/dist/tasks.d-D2GKpdwQ.d.ts +540 -0
- package/dist/node_modules/@vitest/runner/dist/tasks.d-D2GKpdwQ.d.ts.map +1 -0
- package/dist/node_modules/@vitest/runner/dist/utils.js +1 -0
- package/dist/node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts +16 -0
- package/dist/node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts.map +1 -0
- package/dist/node_modules/@vitest/snapshot/dist/index.d.ts +89 -0
- package/dist/node_modules/@vitest/snapshot/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@vitest/snapshot/dist/index.js +649 -0
- package/dist/node_modules/@vitest/snapshot/dist/index.js.map +1 -0
- package/dist/node_modules/@vitest/snapshot/dist/rawSnapshot.d-U2kJUxDr.d.ts +40 -0
- package/dist/node_modules/@vitest/snapshot/dist/rawSnapshot.d-U2kJUxDr.d.ts.map +1 -0
- package/dist/node_modules/@vitest/spy/dist/index.d.ts +343 -0
- package/dist/node_modules/@vitest/spy/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@vitest/spy/dist/index.js +386 -0
- package/dist/node_modules/@vitest/spy/dist/index.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +82 -0
- package/dist/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/diff.d.ts +14 -0
- package/dist/node_modules/@vitest/utils/dist/diff.d.ts.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/diff.js +1297 -0
- package/dist/node_modules/@vitest/utils/dist/diff.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/display.d.ts +15 -0
- package/dist/node_modules/@vitest/utils/dist/display.d.ts.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/display.js +558 -0
- package/dist/node_modules/@vitest/utils/dist/display.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/error.js +30 -0
- package/dist/node_modules/@vitest/utils/dist/error.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/helpers.js +181 -0
- package/dist/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/offset.js +27 -0
- package/dist/node_modules/@vitest/utils/dist/offset.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/serialize.js +77 -0
- package/dist/node_modules/@vitest/utils/dist/serialize.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/source-map.js +367 -0
- package/dist/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/timers.js +37 -0
- package/dist/node_modules/@vitest/utils/dist/timers.js.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts +38 -0
- package/dist/node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts.map +1 -0
- package/dist/node_modules/@vitest/utils/dist/types.d.ts +25 -0
- package/dist/node_modules/@vitest/utils/dist/types.d.ts.map +1 -0
- package/dist/node_modules/chai/index.js +2875 -0
- package/dist/node_modules/chai/index.js.map +1 -0
- package/dist/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/dist/node_modules/magic-string/dist/magic-string.es.js.map +1 -0
- package/dist/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +85 -0
- package/dist/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js.map +1 -0
- package/dist/node_modules/tinybench/dist/index.d.ts +91 -0
- package/dist/node_modules/tinybench/dist/index.d.ts.map +1 -0
- package/dist/node_modules/tinyrainbow/dist/index.d.ts +9 -0
- package/dist/node_modules/tinyrainbow/dist/index.d.ts.map +1 -0
- package/dist/node_modules/tinyrainbow/dist/index.js +86 -0
- package/dist/node_modules/tinyrainbow/dist/index.js.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +6 -0
- package/dist/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/benchmark.D0SlKNbZ.js +41 -0
- package/dist/node_modules/vitest/dist/chunks/benchmark.D0SlKNbZ.js.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts +12 -0
- package/dist/node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/global.d.x-ILCfAE.d.ts +100 -0
- package/dist/node_modules/vitest/dist/chunks/global.d.x-ILCfAE.d.ts.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js +57 -0
- package/dist/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/rpc.d.BFMWpdph.d.ts +13 -0
- package/dist/node_modules/vitest/dist/chunks/rpc.d.BFMWpdph.d.ts.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/test.CTcmp4Su.js +2791 -0
- package/dist/node_modules/vitest/dist/chunks/test.CTcmp4Su.js.map +1 -0
- package/dist/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +44 -0
- package/dist/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js.map +1 -0
- package/dist/node_modules/vitest/dist/index.d.ts +9 -0
- package/dist/queries/auth.d.ts +15 -0
- package/dist/queries/auth.d.ts.map +1 -0
- package/dist/queries/auth.js +58 -0
- package/dist/queries/auth.js.map +1 -0
- package/dist/queries/bank.d.ts +15 -0
- package/dist/queries/bank.d.ts.map +1 -0
- package/dist/queries/bank.js +93 -0
- package/dist/queries/bank.js.map +1 -0
- package/dist/queries/billing.d.ts +15 -0
- package/dist/queries/billing.d.ts.map +1 -0
- package/dist/queries/billing.js +114 -0
- package/dist/queries/billing.js.map +1 -0
- package/dist/queries/distribution.d.ts +15 -0
- package/dist/queries/distribution.d.ts.map +1 -0
- package/dist/queries/distribution.js +73 -0
- package/dist/queries/distribution.js.map +1 -0
- package/dist/queries/gov.d.ts +15 -0
- package/dist/queries/gov.d.ts.map +1 -0
- package/dist/queries/gov.js +98 -0
- package/dist/queries/gov.js.map +1 -0
- package/dist/queries/group.d.ts +15 -0
- package/dist/queries/group.d.ts.map +1 -0
- package/dist/queries/group.js +159 -0
- package/dist/queries/group.js.map +1 -0
- package/dist/queries/index.d.ts +10 -0
- package/dist/queries/index.js +10 -0
- package/dist/queries/sku.d.ts +16 -0
- package/dist/queries/sku.d.ts.map +1 -0
- package/dist/queries/sku.js +85 -0
- package/dist/queries/sku.js.map +1 -0
- package/dist/queries/staking.d.ts +15 -0
- package/dist/queries/staking.d.ts.map +1 -0
- package/dist/queries/staking.js +127 -0
- package/dist/queries/staking.js.map +1 -0
- package/dist/queries/utils.d.ts +54 -0
- package/dist/queries/utils.d.ts.map +1 -0
- package/dist/queries/utils.js +74 -0
- package/dist/queries/utils.js.map +1 -0
- package/dist/retry.d.ts +48 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +106 -0
- package/dist/retry.js.map +1 -0
- package/dist/server-utils.d.ts +61 -0
- package/dist/server-utils.d.ts.map +1 -0
- package/dist/server-utils.js +156 -0
- package/dist/server-utils.js.map +1 -0
- package/dist/tools/fundCredits.d.ts +8 -0
- package/dist/tools/fundCredits.d.ts.map +1 -0
- package/dist/tools/fundCredits.js +9 -0
- package/dist/tools/fundCredits.js.map +1 -0
- package/dist/tools/getBalance.d.ts +26 -0
- package/dist/tools/getBalance.d.ts.map +1 -0
- package/dist/tools/getBalance.js +59 -0
- package/dist/tools/getBalance.js.map +1 -0
- package/dist/tools/stopApp.d.ts +13 -0
- package/dist/tools/stopApp.d.ts.map +1 -0
- package/dist/tools/stopApp.js +15 -0
- package/dist/tools/stopApp.js.map +1 -0
- package/dist/transactions/bank.d.ts +11 -0
- package/dist/transactions/bank.d.ts.map +1 -0
- package/dist/transactions/bank.js +75 -0
- package/dist/transactions/bank.js.map +1 -0
- package/dist/transactions/billing.d.ts +11 -0
- package/dist/transactions/billing.d.ts.map +1 -0
- package/dist/transactions/billing.js +189 -0
- package/dist/transactions/billing.js.map +1 -0
- package/dist/transactions/distribution.d.ts +11 -0
- package/dist/transactions/distribution.d.ts.map +1 -0
- package/dist/transactions/distribution.js +60 -0
- package/dist/transactions/distribution.js.map +1 -0
- package/dist/transactions/gov.d.ts +11 -0
- package/dist/transactions/gov.d.ts.map +1 -0
- package/dist/transactions/gov.js +108 -0
- package/dist/transactions/gov.js.map +1 -0
- package/dist/transactions/group.d.ts +11 -0
- package/dist/transactions/group.d.ts.map +1 -0
- package/dist/transactions/group.js +347 -0
- package/dist/transactions/group.js.map +1 -0
- package/dist/transactions/index.d.ts +10 -0
- package/dist/transactions/index.js +10 -0
- package/dist/transactions/manifest.d.ts +11 -0
- package/dist/transactions/manifest.d.ts.map +1 -0
- package/dist/transactions/manifest.js +59 -0
- package/dist/transactions/manifest.js.map +1 -0
- package/dist/transactions/sku.d.ts +11 -0
- package/dist/transactions/sku.d.ts.map +1 -0
- package/dist/transactions/sku.js +191 -0
- package/dist/transactions/sku.js.map +1 -0
- package/dist/transactions/staking.d.ts +11 -0
- package/dist/transactions/staking.d.ts.map +1 -0
- package/dist/transactions/staking.js +79 -0
- package/dist/transactions/staking.js.map +1 -0
- package/dist/transactions/utils.d.ts +161 -0
- package/dist/transactions/utils.d.ts.map +1 -0
- package/dist/transactions/utils.js +272 -0
- package/dist/transactions/utils.js.map +1 -0
- package/dist/types.d.ts +390 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +45 -0
- package/dist/types.js.map +1 -0
- package/dist/validation.d.ts +30 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +53 -0
- package/dist/validation.js.map +1 -0
- package/dist/version.d.ts +5 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/dist/wallet/index.d.ts +4 -0
- package/dist/wallet/index.js +3 -0
- package/dist/wallet/mnemonic.d.ts +47 -0
- package/dist/wallet/mnemonic.d.ts.map +1 -0
- package/dist/wallet/mnemonic.js +97 -0
- package/dist/wallet/mnemonic.js.map +1 -0
- package/dist/wallet/sign-arbitrary.d.ts +12 -0
- package/dist/wallet/sign-arbitrary.d.ts.map +1 -0
- package/dist/wallet/sign-arbitrary.js +36 -0
- package/dist/wallet/sign-arbitrary.js.map +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import { createDOMElementFilter, format as format$1, plugins } from "../../pretty-format/dist/index.js";
|
|
2
|
+
//#region ../../node_modules/@vitest/utils/dist/display.js
|
|
3
|
+
const ansiColors = {
|
|
4
|
+
bold: ["1", "22"],
|
|
5
|
+
dim: ["2", "22"],
|
|
6
|
+
italic: ["3", "23"],
|
|
7
|
+
underline: ["4", "24"],
|
|
8
|
+
inverse: ["7", "27"],
|
|
9
|
+
hidden: ["8", "28"],
|
|
10
|
+
strike: ["9", "29"],
|
|
11
|
+
black: ["30", "39"],
|
|
12
|
+
red: ["31", "39"],
|
|
13
|
+
green: ["32", "39"],
|
|
14
|
+
yellow: ["33", "39"],
|
|
15
|
+
blue: ["34", "39"],
|
|
16
|
+
magenta: ["35", "39"],
|
|
17
|
+
cyan: ["36", "39"],
|
|
18
|
+
white: ["37", "39"],
|
|
19
|
+
brightblack: ["30;1", "39"],
|
|
20
|
+
brightred: ["31;1", "39"],
|
|
21
|
+
brightgreen: ["32;1", "39"],
|
|
22
|
+
brightyellow: ["33;1", "39"],
|
|
23
|
+
brightblue: ["34;1", "39"],
|
|
24
|
+
brightmagenta: ["35;1", "39"],
|
|
25
|
+
brightcyan: ["36;1", "39"],
|
|
26
|
+
brightwhite: ["37;1", "39"],
|
|
27
|
+
grey: ["90", "39"]
|
|
28
|
+
};
|
|
29
|
+
const styles = {
|
|
30
|
+
special: "cyan",
|
|
31
|
+
number: "yellow",
|
|
32
|
+
bigint: "yellow",
|
|
33
|
+
boolean: "yellow",
|
|
34
|
+
undefined: "grey",
|
|
35
|
+
null: "bold",
|
|
36
|
+
string: "green",
|
|
37
|
+
symbol: "green",
|
|
38
|
+
date: "magenta",
|
|
39
|
+
regexp: "red"
|
|
40
|
+
};
|
|
41
|
+
const truncator = "…";
|
|
42
|
+
function colorise(value, styleType) {
|
|
43
|
+
const color = ansiColors[styles[styleType]] || ansiColors[styleType] || "";
|
|
44
|
+
if (!color) return String(value);
|
|
45
|
+
return `\u001b[${color[0]}m${String(value)}\u001b[${color[1]}m`;
|
|
46
|
+
}
|
|
47
|
+
function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], truncate = Infinity, stylize = String } = {}, inspect) {
|
|
48
|
+
const options = {
|
|
49
|
+
showHidden: Boolean(showHidden),
|
|
50
|
+
depth: Number(depth),
|
|
51
|
+
colors: Boolean(colors),
|
|
52
|
+
customInspect: Boolean(customInspect),
|
|
53
|
+
showProxy: Boolean(showProxy),
|
|
54
|
+
maxArrayLength: Number(maxArrayLength),
|
|
55
|
+
breakLength: Number(breakLength),
|
|
56
|
+
truncate: Number(truncate),
|
|
57
|
+
seen,
|
|
58
|
+
inspect,
|
|
59
|
+
stylize
|
|
60
|
+
};
|
|
61
|
+
if (options.colors) options.stylize = colorise;
|
|
62
|
+
return options;
|
|
63
|
+
}
|
|
64
|
+
function isHighSurrogate(char) {
|
|
65
|
+
return char >= "\ud800" && char <= "\udbff";
|
|
66
|
+
}
|
|
67
|
+
function truncate(string, length, tail = truncator) {
|
|
68
|
+
string = String(string);
|
|
69
|
+
const tailLength = tail.length;
|
|
70
|
+
const stringLength = string.length;
|
|
71
|
+
if (tailLength > length && stringLength > tailLength) return tail;
|
|
72
|
+
if (stringLength > length && stringLength > tailLength) {
|
|
73
|
+
let end = length - tailLength;
|
|
74
|
+
if (end > 0 && isHighSurrogate(string[end - 1])) end = end - 1;
|
|
75
|
+
return `${string.slice(0, end)}${tail}`;
|
|
76
|
+
}
|
|
77
|
+
return string;
|
|
78
|
+
}
|
|
79
|
+
function inspectList(list, options, inspectItem, separator = ", ") {
|
|
80
|
+
inspectItem = inspectItem || options.inspect;
|
|
81
|
+
const size = list.length;
|
|
82
|
+
if (size === 0) return "";
|
|
83
|
+
const originalLength = options.truncate;
|
|
84
|
+
let output = "";
|
|
85
|
+
let peek = "";
|
|
86
|
+
let truncated = "";
|
|
87
|
+
for (let i = 0; i < size; i += 1) {
|
|
88
|
+
const last = i + 1 === list.length;
|
|
89
|
+
const secondToLast = i + 2 === list.length;
|
|
90
|
+
truncated = `${truncator}(${list.length - i})`;
|
|
91
|
+
const value = list[i];
|
|
92
|
+
options.truncate = originalLength - output.length - (last ? 0 : separator.length);
|
|
93
|
+
const string = peek || inspectItem(value, options) + (last ? "" : separator);
|
|
94
|
+
const nextLength = output.length + string.length;
|
|
95
|
+
const truncatedLength = nextLength + truncated.length;
|
|
96
|
+
if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) break;
|
|
97
|
+
if (!last && !secondToLast && truncatedLength > originalLength) break;
|
|
98
|
+
peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);
|
|
99
|
+
if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) break;
|
|
100
|
+
output += string;
|
|
101
|
+
if (!last && !secondToLast && nextLength + peek.length >= originalLength) {
|
|
102
|
+
truncated = `${truncator}(${list.length - i - 1})`;
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
truncated = "";
|
|
106
|
+
}
|
|
107
|
+
return `${output}${truncated}`;
|
|
108
|
+
}
|
|
109
|
+
function quoteComplexKey(key) {
|
|
110
|
+
if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) return key;
|
|
111
|
+
return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
|
|
112
|
+
}
|
|
113
|
+
function inspectProperty([key, value], options) {
|
|
114
|
+
options.truncate -= 2;
|
|
115
|
+
if (typeof key === "string") key = quoteComplexKey(key);
|
|
116
|
+
else if (typeof key !== "number") key = `[${options.inspect(key, options)}]`;
|
|
117
|
+
options.truncate -= key.length;
|
|
118
|
+
value = options.inspect(value, options);
|
|
119
|
+
return `${key}: ${value}`;
|
|
120
|
+
}
|
|
121
|
+
function inspectArray(array, options) {
|
|
122
|
+
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
123
|
+
if (!array.length && !nonIndexProperties.length) return "[]";
|
|
124
|
+
options.truncate -= 4;
|
|
125
|
+
const listContents = inspectList(array, options);
|
|
126
|
+
options.truncate -= listContents.length;
|
|
127
|
+
let propertyContents = "";
|
|
128
|
+
if (nonIndexProperties.length) propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);
|
|
129
|
+
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
130
|
+
}
|
|
131
|
+
const getArrayName = (array) => {
|
|
132
|
+
if (typeof Buffer === "function" && array instanceof Buffer) return "Buffer";
|
|
133
|
+
if (array[Symbol.toStringTag]) return array[Symbol.toStringTag];
|
|
134
|
+
return array.constructor.name;
|
|
135
|
+
};
|
|
136
|
+
function inspectTypedArray(array, options) {
|
|
137
|
+
const name = getArrayName(array);
|
|
138
|
+
options.truncate -= name.length + 4;
|
|
139
|
+
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
140
|
+
if (!array.length && !nonIndexProperties.length) return `${name}[]`;
|
|
141
|
+
let output = "";
|
|
142
|
+
for (let i = 0; i < array.length; i++) {
|
|
143
|
+
const string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
|
|
144
|
+
options.truncate -= string.length;
|
|
145
|
+
if (array[i] !== array.length && options.truncate <= 3) {
|
|
146
|
+
output += `${truncator}(${array.length - array[i] + 1})`;
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
output += string;
|
|
150
|
+
}
|
|
151
|
+
let propertyContents = "";
|
|
152
|
+
if (nonIndexProperties.length) propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);
|
|
153
|
+
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
154
|
+
}
|
|
155
|
+
function inspectDate(dateObject, options) {
|
|
156
|
+
const stringRepresentation = dateObject.toJSON();
|
|
157
|
+
if (stringRepresentation === null) return "Invalid Date";
|
|
158
|
+
const split = stringRepresentation.split("T");
|
|
159
|
+
const date = split[0];
|
|
160
|
+
return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
|
|
161
|
+
}
|
|
162
|
+
function inspectFunction(func, options) {
|
|
163
|
+
const functionType = func[Symbol.toStringTag] || "Function";
|
|
164
|
+
const name = func.name;
|
|
165
|
+
if (!name) return options.stylize(`[${functionType}]`, "special");
|
|
166
|
+
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
|
|
167
|
+
}
|
|
168
|
+
function inspectMapEntry([key, value], options) {
|
|
169
|
+
options.truncate -= 4;
|
|
170
|
+
key = options.inspect(key, options);
|
|
171
|
+
options.truncate -= key.length;
|
|
172
|
+
value = options.inspect(value, options);
|
|
173
|
+
return `${key} => ${value}`;
|
|
174
|
+
}
|
|
175
|
+
function mapToEntries(map) {
|
|
176
|
+
const entries = [];
|
|
177
|
+
map.forEach((value, key) => {
|
|
178
|
+
entries.push([key, value]);
|
|
179
|
+
});
|
|
180
|
+
return entries;
|
|
181
|
+
}
|
|
182
|
+
function inspectMap(map, options) {
|
|
183
|
+
if (map.size === 0) return "Map{}";
|
|
184
|
+
options.truncate -= 7;
|
|
185
|
+
return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
|
|
186
|
+
}
|
|
187
|
+
const isNaN = Number.isNaN || ((i) => i !== i);
|
|
188
|
+
function inspectNumber(number, options) {
|
|
189
|
+
if (isNaN(number)) return options.stylize("NaN", "number");
|
|
190
|
+
if (number === Infinity) return options.stylize("Infinity", "number");
|
|
191
|
+
if (number === -Infinity) return options.stylize("-Infinity", "number");
|
|
192
|
+
if (number === 0) return options.stylize(1 / number === Infinity ? "+0" : "-0", "number");
|
|
193
|
+
return options.stylize(truncate(String(number), options.truncate), "number");
|
|
194
|
+
}
|
|
195
|
+
function inspectBigInt(number, options) {
|
|
196
|
+
let nums = truncate(number.toString(), options.truncate - 1);
|
|
197
|
+
if (nums !== truncator) nums += "n";
|
|
198
|
+
return options.stylize(nums, "bigint");
|
|
199
|
+
}
|
|
200
|
+
function inspectRegExp(value, options) {
|
|
201
|
+
const flags = value.toString().split("/")[2];
|
|
202
|
+
const sourceLength = options.truncate - (2 + flags.length);
|
|
203
|
+
const source = value.source;
|
|
204
|
+
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
205
|
+
}
|
|
206
|
+
function arrayFromSet(set) {
|
|
207
|
+
const values = [];
|
|
208
|
+
set.forEach((value) => {
|
|
209
|
+
values.push(value);
|
|
210
|
+
});
|
|
211
|
+
return values;
|
|
212
|
+
}
|
|
213
|
+
function inspectSet(set, options) {
|
|
214
|
+
if (set.size === 0) return "Set{}";
|
|
215
|
+
options.truncate -= 7;
|
|
216
|
+
return `Set{ ${inspectList(arrayFromSet(set), options)} }`;
|
|
217
|
+
}
|
|
218
|
+
const stringEscapeChars = /* @__PURE__ */ new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
219
|
+
const escapeCharacters = {
|
|
220
|
+
"\b": "\\b",
|
|
221
|
+
" ": "\\t",
|
|
222
|
+
"\n": "\\n",
|
|
223
|
+
"\f": "\\f",
|
|
224
|
+
"\r": "\\r",
|
|
225
|
+
"'": "\\'",
|
|
226
|
+
"\\": "\\\\"
|
|
227
|
+
};
|
|
228
|
+
const hex = 16;
|
|
229
|
+
function escape(char) {
|
|
230
|
+
return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-4)}`;
|
|
231
|
+
}
|
|
232
|
+
function inspectString(string, options) {
|
|
233
|
+
if (stringEscapeChars.test(string)) string = string.replace(stringEscapeChars, escape);
|
|
234
|
+
return options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
|
|
235
|
+
}
|
|
236
|
+
function inspectSymbol(value) {
|
|
237
|
+
if ("description" in Symbol.prototype) return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
238
|
+
return value.toString();
|
|
239
|
+
}
|
|
240
|
+
const getPromiseValue = () => "Promise{…}";
|
|
241
|
+
function inspectObject$1(object, options) {
|
|
242
|
+
const properties = Object.getOwnPropertyNames(object);
|
|
243
|
+
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
|
|
244
|
+
if (properties.length === 0 && symbols.length === 0) return "{}";
|
|
245
|
+
options.truncate -= 4;
|
|
246
|
+
options.seen = options.seen || [];
|
|
247
|
+
if (options.seen.includes(object)) return "[Circular]";
|
|
248
|
+
options.seen.push(object);
|
|
249
|
+
const propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty);
|
|
250
|
+
const symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty);
|
|
251
|
+
options.seen.pop();
|
|
252
|
+
let sep = "";
|
|
253
|
+
if (propertyContents && symbolContents) sep = ", ";
|
|
254
|
+
return `{ ${propertyContents}${sep}${symbolContents} }`;
|
|
255
|
+
}
|
|
256
|
+
const toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
257
|
+
function inspectClass(value, options) {
|
|
258
|
+
let name = "";
|
|
259
|
+
if (toStringTag && toStringTag in value) name = value[toStringTag];
|
|
260
|
+
name = name || value.constructor.name;
|
|
261
|
+
if (!name || name === "_class") name = "<Anonymous Class>";
|
|
262
|
+
options.truncate -= name.length;
|
|
263
|
+
return `${name}${inspectObject$1(value, options)}`;
|
|
264
|
+
}
|
|
265
|
+
function inspectArguments(args, options) {
|
|
266
|
+
if (args.length === 0) return "Arguments[]";
|
|
267
|
+
options.truncate -= 13;
|
|
268
|
+
return `Arguments[ ${inspectList(args, options)} ]`;
|
|
269
|
+
}
|
|
270
|
+
const errorKeys = [
|
|
271
|
+
"stack",
|
|
272
|
+
"line",
|
|
273
|
+
"column",
|
|
274
|
+
"name",
|
|
275
|
+
"message",
|
|
276
|
+
"fileName",
|
|
277
|
+
"lineNumber",
|
|
278
|
+
"columnNumber",
|
|
279
|
+
"number",
|
|
280
|
+
"description",
|
|
281
|
+
"cause"
|
|
282
|
+
];
|
|
283
|
+
function inspectObject(error, options) {
|
|
284
|
+
const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);
|
|
285
|
+
const name = error.name;
|
|
286
|
+
options.truncate -= name.length;
|
|
287
|
+
let message = "";
|
|
288
|
+
if (typeof error.message === "string") message = truncate(error.message, options.truncate);
|
|
289
|
+
else properties.unshift("message");
|
|
290
|
+
message = message ? `: ${message}` : "";
|
|
291
|
+
options.truncate -= message.length + 5;
|
|
292
|
+
options.seen = options.seen || [];
|
|
293
|
+
if (options.seen.includes(error)) return "[Circular]";
|
|
294
|
+
options.seen.push(error);
|
|
295
|
+
const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);
|
|
296
|
+
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
297
|
+
}
|
|
298
|
+
function inspectAttribute([key, value], options) {
|
|
299
|
+
options.truncate -= 3;
|
|
300
|
+
if (!value) return `${options.stylize(String(key), "yellow")}`;
|
|
301
|
+
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
302
|
+
}
|
|
303
|
+
function inspectNodeCollection(collection, options) {
|
|
304
|
+
return inspectList(collection, options, inspectNode, "\n");
|
|
305
|
+
}
|
|
306
|
+
function inspectNode(node, options) {
|
|
307
|
+
switch (node.nodeType) {
|
|
308
|
+
case 1: return inspectHTML(node, options);
|
|
309
|
+
case 3: return options.inspect(node.data, options);
|
|
310
|
+
default: return options.inspect(node, options);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function inspectHTML(element, options) {
|
|
314
|
+
const properties = element.getAttributeNames();
|
|
315
|
+
const name = element.tagName.toLowerCase();
|
|
316
|
+
const head = options.stylize(`<${name}`, "special");
|
|
317
|
+
const headClose = options.stylize(`>`, "special");
|
|
318
|
+
const tail = options.stylize(`</${name}>`, "special");
|
|
319
|
+
options.truncate -= name.length * 2 + 5;
|
|
320
|
+
let propertyContents = "";
|
|
321
|
+
if (properties.length > 0) {
|
|
322
|
+
propertyContents += " ";
|
|
323
|
+
propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ");
|
|
324
|
+
}
|
|
325
|
+
options.truncate -= propertyContents.length;
|
|
326
|
+
const truncate = options.truncate;
|
|
327
|
+
let children = inspectNodeCollection(element.children, options);
|
|
328
|
+
if (children && children.length > truncate) children = `${truncator}(${element.children.length})`;
|
|
329
|
+
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
330
|
+
}
|
|
331
|
+
const chaiInspect = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
332
|
+
const nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
333
|
+
const constructorMap = /* @__PURE__ */ new WeakMap();
|
|
334
|
+
const stringTagMap = {};
|
|
335
|
+
const baseTypesMap = {
|
|
336
|
+
undefined: (value, options) => options.stylize("undefined", "undefined"),
|
|
337
|
+
null: (value, options) => options.stylize("null", "null"),
|
|
338
|
+
boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
339
|
+
Boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
340
|
+
number: inspectNumber,
|
|
341
|
+
Number: inspectNumber,
|
|
342
|
+
bigint: inspectBigInt,
|
|
343
|
+
BigInt: inspectBigInt,
|
|
344
|
+
string: inspectString,
|
|
345
|
+
String: inspectString,
|
|
346
|
+
function: inspectFunction,
|
|
347
|
+
Function: inspectFunction,
|
|
348
|
+
symbol: inspectSymbol,
|
|
349
|
+
Symbol: inspectSymbol,
|
|
350
|
+
Array: inspectArray,
|
|
351
|
+
Date: inspectDate,
|
|
352
|
+
Map: inspectMap,
|
|
353
|
+
Set: inspectSet,
|
|
354
|
+
RegExp: inspectRegExp,
|
|
355
|
+
Promise: getPromiseValue,
|
|
356
|
+
WeakSet: (value, options) => options.stylize("WeakSet{…}", "special"),
|
|
357
|
+
WeakMap: (value, options) => options.stylize("WeakMap{…}", "special"),
|
|
358
|
+
Arguments: inspectArguments,
|
|
359
|
+
Int8Array: inspectTypedArray,
|
|
360
|
+
Uint8Array: inspectTypedArray,
|
|
361
|
+
Uint8ClampedArray: inspectTypedArray,
|
|
362
|
+
Int16Array: inspectTypedArray,
|
|
363
|
+
Uint16Array: inspectTypedArray,
|
|
364
|
+
Int32Array: inspectTypedArray,
|
|
365
|
+
Uint32Array: inspectTypedArray,
|
|
366
|
+
Float32Array: inspectTypedArray,
|
|
367
|
+
Float64Array: inspectTypedArray,
|
|
368
|
+
Generator: () => "",
|
|
369
|
+
DataView: () => "",
|
|
370
|
+
ArrayBuffer: () => "",
|
|
371
|
+
Error: inspectObject,
|
|
372
|
+
HTMLCollection: inspectNodeCollection,
|
|
373
|
+
NodeList: inspectNodeCollection
|
|
374
|
+
};
|
|
375
|
+
const inspectCustom = (value, options, type, inspectFn) => {
|
|
376
|
+
if (chaiInspect in value && typeof value[chaiInspect] === "function") return value[chaiInspect](options);
|
|
377
|
+
if (nodeInspect in value && typeof value[nodeInspect] === "function") return value[nodeInspect](options.depth, options, inspectFn);
|
|
378
|
+
if ("inspect" in value && typeof value.inspect === "function") return value.inspect(options.depth, options);
|
|
379
|
+
if ("constructor" in value && constructorMap.has(value.constructor)) return constructorMap.get(value.constructor)(value, options);
|
|
380
|
+
if (stringTagMap[type]) return stringTagMap[type](value, options);
|
|
381
|
+
return "";
|
|
382
|
+
};
|
|
383
|
+
const toString = Object.prototype.toString;
|
|
384
|
+
function inspect$1(value, opts = {}) {
|
|
385
|
+
const options = normaliseOptions(opts, inspect$1);
|
|
386
|
+
const { customInspect } = options;
|
|
387
|
+
let type = value === null ? "null" : typeof value;
|
|
388
|
+
if (type === "object") type = toString.call(value).slice(8, -1);
|
|
389
|
+
if (type in baseTypesMap) return baseTypesMap[type](value, options);
|
|
390
|
+
if (customInspect && value) {
|
|
391
|
+
const output = inspectCustom(value, options, type, inspect$1);
|
|
392
|
+
if (output) {
|
|
393
|
+
if (typeof output === "string") return output;
|
|
394
|
+
return inspect$1(output, options);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
const proto = value ? Object.getPrototypeOf(value) : false;
|
|
398
|
+
if (proto === Object.prototype || proto === null) return inspectObject$1(value, options);
|
|
399
|
+
if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) return inspectHTML(value, options);
|
|
400
|
+
if ("constructor" in value) {
|
|
401
|
+
if (value.constructor !== Object) return inspectClass(value, options);
|
|
402
|
+
return inspectObject$1(value, options);
|
|
403
|
+
}
|
|
404
|
+
if (value === Object(value)) return inspectObject$1(value, options);
|
|
405
|
+
return options.stylize(String(value), type);
|
|
406
|
+
}
|
|
407
|
+
const { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
|
|
408
|
+
const PLUGINS = [
|
|
409
|
+
ReactTestComponent,
|
|
410
|
+
ReactElement,
|
|
411
|
+
DOMElement,
|
|
412
|
+
DOMCollection,
|
|
413
|
+
Immutable,
|
|
414
|
+
AsymmetricMatcher
|
|
415
|
+
];
|
|
416
|
+
function stringify(object, maxDepth = 10, { maxLength, filterNode, ...options } = {}) {
|
|
417
|
+
const MAX_LENGTH = maxLength ?? 1e4;
|
|
418
|
+
let result;
|
|
419
|
+
const filterFn = typeof filterNode === "string" ? createNodeFilterFromSelector(filterNode) : filterNode;
|
|
420
|
+
const plugins = filterFn ? [
|
|
421
|
+
ReactTestComponent,
|
|
422
|
+
ReactElement,
|
|
423
|
+
createDOMElementFilter(filterFn),
|
|
424
|
+
DOMCollection,
|
|
425
|
+
Immutable,
|
|
426
|
+
AsymmetricMatcher
|
|
427
|
+
] : PLUGINS;
|
|
428
|
+
try {
|
|
429
|
+
result = format$1(object, {
|
|
430
|
+
maxDepth,
|
|
431
|
+
escapeString: false,
|
|
432
|
+
plugins,
|
|
433
|
+
...options
|
|
434
|
+
});
|
|
435
|
+
} catch {
|
|
436
|
+
result = format$1(object, {
|
|
437
|
+
callToJSON: false,
|
|
438
|
+
maxDepth,
|
|
439
|
+
escapeString: false,
|
|
440
|
+
plugins,
|
|
441
|
+
...options
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), {
|
|
445
|
+
maxLength,
|
|
446
|
+
filterNode,
|
|
447
|
+
...options
|
|
448
|
+
}) : result;
|
|
449
|
+
}
|
|
450
|
+
function createNodeFilterFromSelector(selector) {
|
|
451
|
+
const ELEMENT_NODE = 1;
|
|
452
|
+
const COMMENT_NODE = 8;
|
|
453
|
+
return (node) => {
|
|
454
|
+
if (node.nodeType === COMMENT_NODE) return false;
|
|
455
|
+
if (node.nodeType === ELEMENT_NODE && node.matches) try {
|
|
456
|
+
return !node.matches(selector);
|
|
457
|
+
} catch {
|
|
458
|
+
return true;
|
|
459
|
+
}
|
|
460
|
+
return true;
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
const formatRegExp = /%[sdjifoOc%]/g;
|
|
464
|
+
function baseFormat(args, options = {}) {
|
|
465
|
+
const formatArg = (item, inspecOptions) => {
|
|
466
|
+
if (options.prettifyObject) return stringify(item, void 0, {
|
|
467
|
+
printBasicPrototype: false,
|
|
468
|
+
escapeString: false
|
|
469
|
+
});
|
|
470
|
+
return inspect(item, inspecOptions);
|
|
471
|
+
};
|
|
472
|
+
if (typeof args[0] !== "string") {
|
|
473
|
+
const objects = [];
|
|
474
|
+
for (let i = 0; i < args.length; i++) objects.push(formatArg(args[i], {
|
|
475
|
+
depth: 0,
|
|
476
|
+
colors: false
|
|
477
|
+
}));
|
|
478
|
+
return objects.join(" ");
|
|
479
|
+
}
|
|
480
|
+
const len = args.length;
|
|
481
|
+
let i = 1;
|
|
482
|
+
const template = args[0];
|
|
483
|
+
let str = String(template).replace(formatRegExp, (x) => {
|
|
484
|
+
if (x === "%%") return "%";
|
|
485
|
+
if (i >= len) return x;
|
|
486
|
+
switch (x) {
|
|
487
|
+
case "%s": {
|
|
488
|
+
const value = args[i++];
|
|
489
|
+
if (typeof value === "bigint") return `${value.toString()}n`;
|
|
490
|
+
if (typeof value === "number" && value === 0 && 1 / value < 0) return "-0";
|
|
491
|
+
if (typeof value === "object" && value !== null) {
|
|
492
|
+
if (typeof value.toString === "function" && value.toString !== Object.prototype.toString) return value.toString();
|
|
493
|
+
return formatArg(value, {
|
|
494
|
+
depth: 0,
|
|
495
|
+
colors: false
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
return String(value);
|
|
499
|
+
}
|
|
500
|
+
case "%d": {
|
|
501
|
+
const value = args[i++];
|
|
502
|
+
if (typeof value === "bigint") return `${value.toString()}n`;
|
|
503
|
+
if (typeof value === "symbol") return "NaN";
|
|
504
|
+
return Number(value).toString();
|
|
505
|
+
}
|
|
506
|
+
case "%i": {
|
|
507
|
+
const value = args[i++];
|
|
508
|
+
if (typeof value === "bigint") return `${value.toString()}n`;
|
|
509
|
+
return Number.parseInt(String(value)).toString();
|
|
510
|
+
}
|
|
511
|
+
case "%f": return Number.parseFloat(String(args[i++])).toString();
|
|
512
|
+
case "%o": return formatArg(args[i++], {
|
|
513
|
+
showHidden: true,
|
|
514
|
+
showProxy: true
|
|
515
|
+
});
|
|
516
|
+
case "%O": return formatArg(args[i++]);
|
|
517
|
+
case "%c":
|
|
518
|
+
i++;
|
|
519
|
+
return "";
|
|
520
|
+
case "%j": try {
|
|
521
|
+
return JSON.stringify(args[i++]);
|
|
522
|
+
} catch (err) {
|
|
523
|
+
const m = err.message;
|
|
524
|
+
if (m.includes("circular structure") || m.includes("cyclic structures") || m.includes("cyclic object")) return "[Circular]";
|
|
525
|
+
throw err;
|
|
526
|
+
}
|
|
527
|
+
default: return x;
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
for (let x = args[i]; i < len; x = args[++i]) if (x === null || typeof x !== "object") str += ` ${typeof x === "symbol" ? x.toString() : x}`;
|
|
531
|
+
else str += ` ${formatArg(x)}`;
|
|
532
|
+
return str;
|
|
533
|
+
}
|
|
534
|
+
function format(...args) {
|
|
535
|
+
return baseFormat(args);
|
|
536
|
+
}
|
|
537
|
+
function inspect(obj, options = {}) {
|
|
538
|
+
if (options.truncate === 0) options.truncate = Number.POSITIVE_INFINITY;
|
|
539
|
+
return inspect$1(obj, options);
|
|
540
|
+
}
|
|
541
|
+
function objDisplay(obj, options = {}) {
|
|
542
|
+
if (typeof options.truncate === "undefined") options.truncate = 40;
|
|
543
|
+
const str = inspect(obj, options);
|
|
544
|
+
const type = Object.prototype.toString.call(obj);
|
|
545
|
+
if (options.truncate && str.length >= options.truncate) if (type === "[object Function]") {
|
|
546
|
+
const fn = obj;
|
|
547
|
+
return !fn.name ? "[Function]" : `[Function: ${fn.name}]`;
|
|
548
|
+
} else if (type === "[object Array]") return `[ Array(${obj.length}) ]`;
|
|
549
|
+
else if (type === "[object Object]") {
|
|
550
|
+
const keys = Object.keys(obj);
|
|
551
|
+
return `{ Object (${keys.length > 2 ? `${keys.splice(0, 2).join(", ")}, ...` : keys.join(", ")}) }`;
|
|
552
|
+
} else return str;
|
|
553
|
+
return str;
|
|
554
|
+
}
|
|
555
|
+
//#endregion
|
|
556
|
+
export { format, formatRegExp, objDisplay, stringify };
|
|
557
|
+
|
|
558
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.js","names":[],"sources":["../../../../../../../node_modules/@vitest/utils/dist/display.js"],"sourcesContent":["import { plugins, createDOMElementFilter, format as format$1 } from '@vitest/pretty-format';\n\nconst ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39'],\n};\nconst styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red',\n};\nconst truncator = '…';\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || '';\n if (!color) {\n return String(value);\n }\n return `\\u001b[${color[0]}m${String(value)}\\u001b[${color[1]}m`;\n}\nfunction normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], \n// eslint-disable-next-line no-shadow\ntruncate = Infinity, stylize = String, } = {}, inspect) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen,\n inspect,\n stylize,\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\nfunction isHighSurrogate(char) {\n return char >= '\\ud800' && char <= '\\udbff';\n}\nfunction truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n// eslint-disable-next-line complexity\nfunction inspectList(list, options, inspectItem, separator = ', ') {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return '';\n const originalLength = options.truncate;\n let output = '';\n let peek = '';\n let truncated = '';\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n // If there is more than one remaining we need to account for a separator of `, `\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? '' : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n // Peek at the next string to determine if we should\n // break early before adding this item to the output\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator);\n // If we have one element left, but this element and\n // the next takes over length, the break early\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = '';\n }\n return `${output}${truncated}`;\n}\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key)\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n}\nfunction inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n }\n else if (typeof key !== 'number') {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n\nfunction inspectArray(array, options) {\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return '[]';\n options.truncate -= 4;\n const listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n\nconst getArrayName = (array) => {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n // @ts-ignore\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n};\nfunction inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n let output = '';\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), 'number')}${i === array.length - 1 ? '' : ', '}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n\nfunction inspectDate(dateObject, options) {\n const stringRepresentation = dateObject.toJSON();\n if (stringRepresentation === null) {\n return 'Invalid Date';\n }\n const split = stringRepresentation.split('T');\n const date = split[0];\n // If we need to - truncate the time portion, but never the date\n return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, 'date');\n}\n\nfunction inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || 'Function';\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, 'special');\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');\n}\n\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n// IE11 doesn't support `map.entries()`\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\nfunction inspectMap(map, options) {\n if (map.size === 0)\n return 'Map{}';\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n\nconst isNaN = Number.isNaN || (i => i !== i); // eslint-disable-line no-self-compare\nfunction inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n return options.stylize(truncate(String(number), options.truncate), 'number');\n}\n\nfunction inspectBigInt(number, options) {\n let nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator)\n nums += 'n';\n return options.stylize(nums, 'bigint');\n}\n\nfunction inspectRegExp(value, options) {\n const flags = value.toString().split('/')[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp');\n}\n\n// IE11 doesn't support `Array.from(set)`\nfunction arrayFromSet(set) {\n const values = [];\n set.forEach(value => {\n values.push(value);\n });\n return values;\n}\nfunction inspectSet(set, options) {\n if (set.size === 0)\n return 'Set{}';\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set), options)} }`;\n}\n\nconst stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" +\n '\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]', 'g');\nconst escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\',\n};\nconst hex = 16;\nfunction escape(char) {\n return (escapeCharacters[char] ||\n `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-4)}`);\n}\nfunction inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, 'string');\n}\n\nfunction inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : 'Symbol()';\n }\n return value.toString();\n}\n\nconst getPromiseValue = () => 'Promise{…}';\n\nfunction inspectObject$1(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return '[Circular]';\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map(key => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map(key => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = '';\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false;\nfunction inspectClass(value, options) {\n let name = '';\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n name = name || value.constructor.name;\n // Babel transforms anonymous classes to the name `_class`\n if (!name || name === '_class') {\n name = '<Anonymous Class>';\n }\n options.truncate -= name.length;\n return `${name}${inspectObject$1(value, options)}`;\n}\n\nfunction inspectArguments(args, options) {\n if (args.length === 0)\n return 'Arguments[]';\n options.truncate -= 13;\n return `Arguments[ ${inspectList(args, options)} ]`;\n}\n\nconst errorKeys = [\n 'stack',\n 'line',\n 'column',\n 'name',\n 'message',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'number',\n 'description',\n 'cause',\n];\nfunction inspectObject(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter(key => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = '';\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n }\n else {\n properties.unshift('message');\n }\n message = message ? `: ${message}` : '';\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return '[Circular]';\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map(key => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ''}`;\n}\n\nfunction inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), 'yellow')}`;\n }\n return `${options.stylize(String(key), 'yellow')}=${options.stylize(`\"${value}\"`, 'string')}`;\n}\nfunction inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, '\\n');\n}\nfunction inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n// @ts-ignore (Deno doesn't have Element)\nfunction inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, 'special');\n const headClose = options.stylize(`>`, 'special');\n const tail = options.stylize(`</${name}>`, 'special');\n options.truncate -= name.length * 2 + 5;\n let propertyContents = '';\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');\n }\n options.truncate -= propertyContents.length;\n const truncate = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n\n/* !\n * loupe\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nconst symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\nconst chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\nconst nodeInspect = Symbol.for('nodejs.util.inspect.custom');\nconst constructorMap = new WeakMap();\nconst stringTagMap = {};\nconst baseTypesMap = {\n undefined: (value, options) => options.stylize('undefined', 'undefined'),\n null: (value, options) => options.stylize('null', 'null'),\n boolean: (value, options) => options.stylize(String(value), 'boolean'),\n Boolean: (value, options) => options.stylize(String(value), 'boolean'),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: getPromiseValue,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: (value, options) => options.stylize('WeakSet{…}', 'special'),\n WeakMap: (value, options) => options.stylize('WeakMap{…}', 'special'),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: () => '',\n DataView: () => '',\n ArrayBuffer: () => '',\n Error: inspectObject,\n HTMLCollection: inspectNodeCollection,\n NodeList: inspectNodeCollection,\n};\n// eslint-disable-next-line complexity\nconst inspectCustom = (value, options, type, inspectFn) => {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n if (nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options, inspectFn);\n }\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n return '';\n};\nconst toString = Object.prototype.toString;\n// eslint-disable-next-line complexity\nfunction inspect$1(value, opts = {}) {\n const options = normaliseOptions(opts, inspect$1);\n const { customInspect } = options;\n let type = value === null ? 'null' : typeof value;\n if (type === 'object') {\n type = toString.call(value).slice(8, -1);\n }\n // If it is a base value that we already support, then use Loupe's inspector\n if (type in baseTypesMap) {\n return baseTypesMap[type](value, options);\n }\n // If `options.customInspect` is set to true then try to use the custom inspector\n if (customInspect && value) {\n const output = inspectCustom(value, options, type, inspect$1);\n if (output) {\n if (typeof output === 'string')\n return output;\n return inspect$1(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n // If it's a plain Object then use Loupe's inspector\n if (proto === Object.prototype || proto === null) {\n return inspectObject$1(value, options);\n }\n // Specifically account for HTMLElements\n // @ts-ignore\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTML(value, options);\n }\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n // If it is an object with an anonymous prototype, display it as an object.\n return inspectObject$1(value, options);\n }\n // last chance to check if it's an object\n if (value === Object(value)) {\n return inspectObject$1(value, options);\n }\n // We have run out of options! Just stringify the value\n return options.stylize(String(value), type);\n}\n\nconst { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;\nconst PLUGINS = [\n\tReactTestComponent,\n\tReactElement,\n\tDOMElement,\n\tDOMCollection,\n\tImmutable,\n\tAsymmetricMatcher\n];\nfunction stringify(object, maxDepth = 10, { maxLength, filterNode, ...options } = {}) {\n\tconst MAX_LENGTH = maxLength ?? 1e4;\n\tlet result;\n\t// Convert string selector to filter function\n\tconst filterFn = typeof filterNode === \"string\" ? createNodeFilterFromSelector(filterNode) : filterNode;\n\tconst plugins = filterFn ? [\n\t\tReactTestComponent,\n\t\tReactElement,\n\t\tcreateDOMElementFilter(filterFn),\n\t\tDOMCollection,\n\t\tImmutable,\n\t\tAsymmetricMatcher\n\t] : PLUGINS;\n\ttry {\n\t\tresult = format$1(object, {\n\t\t\tmaxDepth,\n\t\t\tescapeString: false,\n\t\t\tplugins,\n\t\t\t...options\n\t\t});\n\t} catch {\n\t\tresult = format$1(object, {\n\t\t\tcallToJSON: false,\n\t\t\tmaxDepth,\n\t\t\tescapeString: false,\n\t\t\tplugins,\n\t\t\t...options\n\t\t});\n\t}\n\t// Prevents infinite loop https://github.com/vitest-dev/vitest/issues/7249\n\treturn result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), {\n\t\tmaxLength,\n\t\tfilterNode,\n\t\t...options\n\t}) : result;\n}\nfunction createNodeFilterFromSelector(selector) {\n\tconst ELEMENT_NODE = 1;\n\tconst COMMENT_NODE = 8;\n\treturn (node) => {\n\t\t// Filter out comments\n\t\tif (node.nodeType === COMMENT_NODE) {\n\t\t\treturn false;\n\t\t}\n\t\t// Filter out elements matching the selector\n\t\tif (node.nodeType === ELEMENT_NODE && node.matches) {\n\t\t\ttry {\n\t\t\t\treturn !node.matches(selector);\n\t\t\t} catch {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t};\n}\nconst formatRegExp = /%[sdjifoOc%]/g;\nfunction baseFormat(args, options = {}) {\n\tconst formatArg = (item, inspecOptions) => {\n\t\tif (options.prettifyObject) {\n\t\t\treturn stringify(item, undefined, {\n\t\t\t\tprintBasicPrototype: false,\n\t\t\t\tescapeString: false\n\t\t\t});\n\t\t}\n\t\treturn inspect(item, inspecOptions);\n\t};\n\tif (typeof args[0] !== \"string\") {\n\t\tconst objects = [];\n\t\tfor (let i = 0; i < args.length; i++) {\n\t\t\tobjects.push(formatArg(args[i], {\n\t\t\t\tdepth: 0,\n\t\t\t\tcolors: false\n\t\t\t}));\n\t\t}\n\t\treturn objects.join(\" \");\n\t}\n\tconst len = args.length;\n\tlet i = 1;\n\tconst template = args[0];\n\tlet str = String(template).replace(formatRegExp, (x) => {\n\t\tif (x === \"%%\") {\n\t\t\treturn \"%\";\n\t\t}\n\t\tif (i >= len) {\n\t\t\treturn x;\n\t\t}\n\t\tswitch (x) {\n\t\t\tcase \"%s\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"number\" && value === 0 && 1 / value < 0) {\n\t\t\t\t\treturn \"-0\";\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"object\" && value !== null) {\n\t\t\t\t\tif (typeof value.toString === \"function\" && value.toString !== Object.prototype.toString) {\n\t\t\t\t\t\treturn value.toString();\n\t\t\t\t\t}\n\t\t\t\t\treturn formatArg(value, {\n\t\t\t\t\t\tdepth: 0,\n\t\t\t\t\t\tcolors: false\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn String(value);\n\t\t\t}\n\t\t\tcase \"%d\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"symbol\") {\n\t\t\t\t\treturn \"NaN\";\n\t\t\t\t}\n\t\t\t\treturn Number(value).toString();\n\t\t\t}\n\t\t\tcase \"%i\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\treturn Number.parseInt(String(value)).toString();\n\t\t\t}\n\t\t\tcase \"%f\": return Number.parseFloat(String(args[i++])).toString();\n\t\t\tcase \"%o\": return formatArg(args[i++], {\n\t\t\t\tshowHidden: true,\n\t\t\t\tshowProxy: true\n\t\t\t});\n\t\t\tcase \"%O\": return formatArg(args[i++]);\n\t\t\tcase \"%c\": {\n\t\t\t\ti++;\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tcase \"%j\": try {\n\t\t\t\treturn JSON.stringify(args[i++]);\n\t\t\t} catch (err) {\n\t\t\t\tconst m = err.message;\n\t\t\t\tif (m.includes(\"circular structure\") || m.includes(\"cyclic structures\") || m.includes(\"cyclic object\")) {\n\t\t\t\t\treturn \"[Circular]\";\n\t\t\t\t}\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t\tdefault: return x;\n\t\t}\n\t});\n\tfor (let x = args[i]; i < len; x = args[++i]) {\n\t\tif (x === null || typeof x !== \"object\") {\n\t\t\tstr += ` ${typeof x === \"symbol\" ? x.toString() : x}`;\n\t\t} else {\n\t\t\tstr += ` ${formatArg(x)}`;\n\t\t}\n\t}\n\treturn str;\n}\nfunction format(...args) {\n\treturn baseFormat(args);\n}\nfunction browserFormat(...args) {\n\treturn baseFormat(args, { prettifyObject: true });\n}\nfunction inspect(obj, options = {}) {\n\tif (options.truncate === 0) {\n\t\toptions.truncate = Number.POSITIVE_INFINITY;\n\t}\n\treturn inspect$1(obj, options);\n}\nfunction objDisplay(obj, options = {}) {\n\tif (typeof options.truncate === \"undefined\") {\n\t\toptions.truncate = 40;\n\t}\n\tconst str = inspect(obj, options);\n\tconst type = Object.prototype.toString.call(obj);\n\tif (options.truncate && str.length >= options.truncate) {\n\t\tif (type === \"[object Function]\") {\n\t\t\tconst fn = obj;\n\t\t\treturn !fn.name ? \"[Function]\" : `[Function: ${fn.name}]`;\n\t\t} else if (type === \"[object Array]\") {\n\t\t\treturn `[ Array(${obj.length}) ]`;\n\t\t} else if (type === \"[object Object]\") {\n\t\t\tconst keys = Object.keys(obj);\n\t\t\tconst kstr = keys.length > 2 ? `${keys.splice(0, 2).join(\", \")}, ...` : keys.join(\", \");\n\t\t\treturn `{ Object (${kstr}) }`;\n\t\t} else {\n\t\t\treturn str;\n\t\t}\n\t}\n\treturn str;\n}\n\nexport { browserFormat, format, formatRegExp, inspect, objDisplay, stringify };\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,MAAM,aAAa;CACf,MAAM,CAAC,KAAK,KAAK;CACjB,KAAK,CAAC,KAAK,KAAK;CAChB,QAAQ,CAAC,KAAK,KAAK;CACnB,WAAW,CAAC,KAAK,KAAK;CAEtB,SAAS,CAAC,KAAK,KAAK;CACpB,QAAQ,CAAC,KAAK,KAAK;C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