@kasperpeulen/vitest-plugin-nextjs 0.0.0-alpha.0 → 0.1.0-alpha.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/README.md +249 -2
- package/dist/_virtual/_rolldown/runtime.js +14 -0
- package/dist/action-ids.d.ts +18 -0
- package/dist/action-ids.js +44 -0
- package/dist/adapter.d.ts +8 -0
- package/dist/adapter.js +12 -0
- package/dist/app-requests.d.ts +63 -0
- package/dist/app-requests.js +253 -0
- package/dist/browser-context.d.ts +24 -0
- package/dist/browser-context.js +157 -0
- package/dist/build-output.d.ts +68 -0
- package/dist/build-output.js +216 -0
- package/dist/build.d.ts +26 -0
- package/dist/build.js +39 -0
- package/dist/built-files.d.ts +9 -0
- package/dist/built-files.js +22 -0
- package/dist/cache.d.ts +44 -0
- package/dist/cache.js +99 -0
- package/dist/client-components.d.ts +3 -0
- package/dist/client-components.js +4 -0
- package/dist/client-file-key.d.ts +5 -0
- package/dist/client-file-key.js +5 -0
- package/dist/client-files.d.ts +83 -0
- package/dist/client-files.js +186 -0
- package/dist/client-graph.d.ts +94 -0
- package/dist/client-graph.js +266 -0
- package/dist/client-modules.d.ts +10 -0
- package/dist/client-modules.js +43 -0
- package/dist/client.d.ts +42 -0
- package/dist/client.js +263 -0
- package/dist/commonjs.d.ts +44 -0
- package/dist/commonjs.js +111 -0
- package/dist/compat/browser/client.d.ts +19 -0
- package/dist/compat/browser/client.js +13 -0
- package/dist/compat/build.d.ts +145 -0
- package/dist/compat/build.js +149 -0
- package/dist/compat/checks.d.ts +16 -0
- package/dist/compat/checks.js +148 -0
- package/dist/compat/patches.d.ts +13 -0
- package/dist/compat/patches.js +30 -0
- package/dist/compat/paths.d.ts +74 -0
- package/dist/compat/paths.js +160 -0
- package/dist/compat/rsc/handlers.d.ts +2 -0
- package/dist/compat/rsc/handlers.js +2 -0
- package/dist/compat/rsc/prerender.d.ts +10 -0
- package/dist/compat/rsc/prerender.js +9 -0
- package/dist/compat/server/headers.d.ts +3 -0
- package/dist/compat/server/headers.js +3 -0
- package/dist/compat/ssr/build-output.d.ts +4 -0
- package/dist/compat/ssr/build-output.js +3 -0
- package/dist/compat/ssr/cache.d.ts +6 -0
- package/dist/compat/ssr/cache.js +6 -0
- package/dist/compat/ssr/handler.d.ts +8 -0
- package/dist/compat/ssr/handler.js +8 -0
- package/dist/compat/ssr/node-server.d.ts +5 -0
- package/dist/compat/ssr/node-server.js +4 -0
- package/dist/compat/ssr/render-errors.d.ts +4 -0
- package/dist/compat/ssr/render-errors.js +4 -0
- package/dist/compat/ssr/senders.d.ts +6 -0
- package/dist/compat/ssr/senders.js +6 -0
- package/dist/compat/types.d.ts +8 -0
- package/dist/compat/types.js +1 -0
- package/dist/compile.d.ts +31 -0
- package/dist/compile.js +140 -0
- package/dist/disk.d.ts +16 -0
- package/dist/disk.js +13 -0
- package/dist/document-loads.d.ts +15 -0
- package/dist/document-loads.js +53 -0
- package/dist/document.d.ts +79 -0
- package/dist/document.js +328 -0
- package/dist/downloads.d.ts +15 -0
- package/dist/downloads.js +71 -0
- package/dist/esm-require.d.ts +11 -0
- package/dist/esm-require.js +32 -0
- package/dist/fast-crypto/index.js +1093 -0
- package/dist/fast-crypto.d.ts +20 -0
- package/dist/fast-crypto.js +151 -0
- package/dist/flight.d.ts +19 -0
- package/dist/flight.js +42 -0
- package/dist/form-submission.d.ts +15 -0
- package/dist/form-submission.js +27 -0
- package/dist/from-page.d.ts +5 -0
- package/dist/from-page.js +44 -0
- package/dist/globals.d.ts +1 -0
- package/dist/globals.js +197 -0
- package/dist/host-document.d.ts +26 -0
- package/dist/host-document.js +34 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.js +281 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +3 -0
- package/dist/leftovers.d.ts +11 -0
- package/dist/leftovers.js +55 -0
- package/dist/mode.d.ts +169 -0
- package/dist/mode.js +31 -0
- package/dist/node/LICENSES.md +3540 -0
- package/dist/node/assert/strict.js +29 -0
- package/dist/node/assert.js +3044 -0
- package/dist/node/buffer.js +1499 -0
- package/dist/node/child_process.js +45 -0
- package/dist/node/cluster.js +85 -0
- package/dist/node/console.js +96 -0
- package/dist/node/constants.js +495 -0
- package/dist/node/crypto.js +1388 -0
- package/dist/node/dgram.js +78 -0
- package/dist/node/diagnostics_channel.js +122 -0
- package/dist/node/dns/promises.js +129 -0
- package/dist/node/dns.js +137 -0
- package/dist/node/domain.js +43 -0
- package/dist/node/events.js +1155 -0
- package/dist/node/fs/promises.js +40 -0
- package/dist/node/fs.js +10375 -0
- package/dist/node/http.js +326 -0
- package/dist/node/http2.js +305 -0
- package/dist/node/https.js +57 -0
- package/dist/node/inspector/promises.js +66 -0
- package/dist/node/inspector.js +76 -0
- package/dist/node/module.js +205 -0
- package/dist/node/net.js +392 -0
- package/dist/node/os.js +259 -0
- package/dist/node/path/posix.js +25 -0
- package/dist/node/path/win32.js +25 -0
- package/dist/node/path.js +384 -0
- package/dist/node/perf_hooks.js +313 -0
- package/dist/node/process.js +452 -0
- package/dist/node/punycode.js +178 -0
- package/dist/node/querystring.js +934 -0
- package/dist/node/readline/promises.js +71 -0
- package/dist/node/readline.js +56 -0
- package/dist/node/repl.js +44 -0
- package/dist/node/sqlite.js +22 -0
- package/dist/node/stream/consumers.js +47 -0
- package/dist/node/stream/promises.js +6 -0
- package/dist/node/stream/web.js +52 -0
- package/dist/node/stream.js +4323 -0
- package/dist/node/string_decoder.js +276 -0
- package/dist/node/sys.js +6 -0
- package/dist/node/timers/promises.js +71 -0
- package/dist/node/timers.js +133 -0
- package/dist/node/tls.js +122 -0
- package/dist/node/trace_events.js +23 -0
- package/dist/node/tty.js +69 -0
- package/dist/node/url.js +1426 -0
- package/dist/node/util/types.js +1456 -0
- package/dist/node/util.js +4807 -0
- package/dist/node/v8.js +160 -0
- package/dist/node/vm.js +88 -0
- package/dist/node/wasi.js +16 -0
- package/dist/node/worker_threads.js +123 -0
- package/dist/node/zlib.js +1396 -0
- package/dist/node-builtins.d.ts +40 -0
- package/dist/node-builtins.js +74 -0
- package/dist/node-on-page.d.ts +46 -0
- package/dist/node-on-page.js +101 -0
- package/dist/node-platform.d.ts +36 -0
- package/dist/node-platform.js +152 -0
- package/dist/node-rendered.d.ts +21 -0
- package/dist/node-rendered.js +26 -0
- package/dist/node-server.d.ts +46 -0
- package/dist/node-server.js +193 -0
- package/dist/optimizer-cache-key.d.ts +26 -0
- package/dist/optimizer-cache-key.js +73 -0
- package/dist/own-package.d.ts +1 -0
- package/dist/own-package.js +6 -0
- package/dist/page-store.d.ts +33 -0
- package/dist/page-store.js +80 -0
- package/dist/page-timers.d.ts +22 -0
- package/dist/page-timers.js +47 -0
- package/dist/page.d.ts +112 -0
- package/dist/page.js +549 -0
- package/dist/paths.d.ts +13 -0
- package/dist/paths.js +47 -0
- package/dist/plugin.d.ts +22 -0
- package/dist/plugin.js +995 -0
- package/dist/prerender-verdict.d.ts +8 -0
- package/dist/prerender-verdict.js +67 -0
- package/dist/project/context.d.ts +546 -0
- package/dist/project/context.js +111 -0
- package/dist/project/entries.d.ts +42 -0
- package/dist/project/entries.js +189 -0
- package/dist/project/env-worker.d.ts +1 -0
- package/dist/project/env-worker.js +9 -0
- package/dist/project/env.d.ts +36 -0
- package/dist/project/env.js +82 -0
- package/dist/project/layers.d.ts +31 -0
- package/dist/project/layers.js +150 -0
- package/dist/project/loaders.d.ts +71 -0
- package/dist/project/loaders.js +300 -0
- package/dist/project/metadata.d.ts +8 -0
- package/dist/project/metadata.js +34 -0
- package/dist/project/module-exports.d.ts +29 -0
- package/dist/project/module-exports.js +77 -0
- package/dist/project/routes.d.ts +19 -0
- package/dist/project/routes.js +92 -0
- package/dist/project/routing.d.ts +46 -0
- package/dist/project/routing.js +280 -0
- package/dist/project/transform.d.ts +8 -0
- package/dist/project/transform.js +110 -0
- package/dist/project/webpack.d.ts +46 -0
- package/dist/project/webpack.js +160 -0
- package/dist/project.d.ts +264 -0
- package/dist/project.js +58 -0
- package/dist/registry-global.d.ts +5 -0
- package/dist/registry-global.js +5 -0
- package/dist/registry.d.ts +241 -0
- package/dist/registry.js +30 -0
- package/dist/route-chunks.d.ts +13 -0
- package/dist/route-chunks.js +32 -0
- package/dist/route-lookup.d.ts +34 -0
- package/dist/route-lookup.js +207 -0
- package/dist/routes-ahead-shared.d.ts +17 -0
- package/dist/routes-ahead-shared.js +9 -0
- package/dist/routes-ahead.d.ts +10 -0
- package/dist/routes-ahead.js +54 -0
- package/dist/rsc.d.ts +19 -0
- package/dist/rsc.js +171 -0
- package/dist/server-action.d.ts +9 -0
- package/dist/server-action.js +15 -0
- package/dist/server-code.d.ts +176 -0
- package/dist/server-code.js +357 -0
- package/dist/server-in-front.d.ts +37 -0
- package/dist/server-in-front.js +90 -0
- package/dist/server-layers.d.ts +22 -0
- package/dist/server-layers.js +33 -0
- package/dist/setup-browser.d.ts +1 -0
- package/dist/setup-browser.js +8 -0
- package/dist/setup-node.d.ts +1 -0
- package/dist/setup-node.js +6 -0
- package/dist/setup.d.ts +8 -0
- package/dist/setup.js +62 -0
- package/dist/speed-features.d.ts +13 -0
- package/dist/speed-features.js +95 -0
- package/dist/ssr.d.ts +70 -0
- package/dist/ssr.js +480 -0
- package/dist/static-build.d.ts +36 -0
- package/dist/static-build.js +92 -0
- package/dist/storage.d.ts +31 -0
- package/dist/storage.js +94 -0
- package/dist/styles-shared.d.ts +137 -0
- package/dist/styles-shared.js +124 -0
- package/dist/styles.d.ts +102 -0
- package/dist/styles.js +730 -0
- package/dist/stylesheet-versions.d.ts +17 -0
- package/dist/stylesheet-versions.js +43 -0
- package/dist/tester.html +10 -0
- package/dist/use-cache.d.ts +15 -0
- package/dist/use-cache.js +93 -0
- package/dist/vitest-version.d.ts +6 -0
- package/dist/vitest-version.js +12 -0
- package/package.json +125 -4
|
@@ -0,0 +1,4807 @@
|
|
|
1
|
+
import __process from "process";
|
|
2
|
+
const process = __process;
|
|
3
|
+
import types, { default as types$1 } from "node:util/types";
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
|
+
var __create = Object.create;
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
14
|
+
key = keys[i];
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: ((k) => from[k]).bind(null, key),
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js
|
|
28
|
+
var require_isArguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29
|
+
var toStr = Object.prototype.toString;
|
|
30
|
+
module.exports = function isArguments(value) {
|
|
31
|
+
var str = toStr.call(value);
|
|
32
|
+
var isArgs = str === "[object Arguments]";
|
|
33
|
+
if (!isArgs) isArgs = str !== "[object Array]" && value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && toStr.call(value.callee) === "[object Function]";
|
|
34
|
+
return isArgs;
|
|
35
|
+
};
|
|
36
|
+
}));
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js
|
|
39
|
+
var require_implementation$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40
|
+
var keysShim;
|
|
41
|
+
if (!Object.keys) {
|
|
42
|
+
var has = Object.prototype.hasOwnProperty;
|
|
43
|
+
var toStr = Object.prototype.toString;
|
|
44
|
+
var isArgs = require_isArguments();
|
|
45
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
46
|
+
var hasDontEnumBug = !isEnumerable.call({ toString: null }, "toString");
|
|
47
|
+
var hasProtoEnumBug = isEnumerable.call(function() {}, "prototype");
|
|
48
|
+
var dontEnums = [
|
|
49
|
+
"toString",
|
|
50
|
+
"toLocaleString",
|
|
51
|
+
"valueOf",
|
|
52
|
+
"hasOwnProperty",
|
|
53
|
+
"isPrototypeOf",
|
|
54
|
+
"propertyIsEnumerable",
|
|
55
|
+
"constructor"
|
|
56
|
+
];
|
|
57
|
+
var equalsConstructorPrototype = function(o) {
|
|
58
|
+
var ctor = o.constructor;
|
|
59
|
+
return ctor && ctor.prototype === o;
|
|
60
|
+
};
|
|
61
|
+
var excludedKeys = {
|
|
62
|
+
$applicationCache: true,
|
|
63
|
+
$console: true,
|
|
64
|
+
$external: true,
|
|
65
|
+
$frame: true,
|
|
66
|
+
$frameElement: true,
|
|
67
|
+
$frames: true,
|
|
68
|
+
$innerHeight: true,
|
|
69
|
+
$innerWidth: true,
|
|
70
|
+
$onmozfullscreenchange: true,
|
|
71
|
+
$onmozfullscreenerror: true,
|
|
72
|
+
$outerHeight: true,
|
|
73
|
+
$outerWidth: true,
|
|
74
|
+
$pageXOffset: true,
|
|
75
|
+
$pageYOffset: true,
|
|
76
|
+
$parent: true,
|
|
77
|
+
$scrollLeft: true,
|
|
78
|
+
$scrollTop: true,
|
|
79
|
+
$scrollX: true,
|
|
80
|
+
$scrollY: true,
|
|
81
|
+
$self: true,
|
|
82
|
+
$webkitIndexedDB: true,
|
|
83
|
+
$webkitStorageInfo: true,
|
|
84
|
+
$window: true
|
|
85
|
+
};
|
|
86
|
+
var hasAutomationEqualityBug = function() {
|
|
87
|
+
if (typeof window === "undefined") return false;
|
|
88
|
+
for (var k in window) try {
|
|
89
|
+
if (!excludedKeys["$" + k] && has.call(window, k) && window[k] !== null && typeof window[k] === "object") try {
|
|
90
|
+
equalsConstructorPrototype(window[k]);
|
|
91
|
+
} catch (e) {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
} catch (e) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
return false;
|
|
98
|
+
}();
|
|
99
|
+
var equalsConstructorPrototypeIfNotBuggy = function(o) {
|
|
100
|
+
if (typeof window === "undefined" || !hasAutomationEqualityBug) return equalsConstructorPrototype(o);
|
|
101
|
+
try {
|
|
102
|
+
return equalsConstructorPrototype(o);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
keysShim = function keys(object) {
|
|
108
|
+
var isObject = object !== null && typeof object === "object";
|
|
109
|
+
var isFunction = toStr.call(object) === "[object Function]";
|
|
110
|
+
var isArguments = isArgs(object);
|
|
111
|
+
var isString = isObject && toStr.call(object) === "[object String]";
|
|
112
|
+
var theKeys = [];
|
|
113
|
+
if (!isObject && !isFunction && !isArguments) throw new TypeError("Object.keys called on a non-object");
|
|
114
|
+
var skipProto = hasProtoEnumBug && isFunction;
|
|
115
|
+
if (isString && object.length > 0 && !has.call(object, 0)) for (var i = 0; i < object.length; ++i) theKeys.push(String(i));
|
|
116
|
+
if (isArguments && object.length > 0) for (var j = 0; j < object.length; ++j) theKeys.push(String(j));
|
|
117
|
+
else for (var name in object) if (!(skipProto && name === "prototype") && has.call(object, name)) theKeys.push(String(name));
|
|
118
|
+
if (hasDontEnumBug) {
|
|
119
|
+
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
|
|
120
|
+
for (var k = 0; k < dontEnums.length; ++k) if (!(skipConstructor && dontEnums[k] === "constructor") && has.call(object, dontEnums[k])) theKeys.push(dontEnums[k]);
|
|
121
|
+
}
|
|
122
|
+
return theKeys;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
module.exports = keysShim;
|
|
126
|
+
}));
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region ../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js
|
|
129
|
+
var require_object_keys = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
130
|
+
var slice = Array.prototype.slice;
|
|
131
|
+
var isArgs = require_isArguments();
|
|
132
|
+
var origKeys = Object.keys;
|
|
133
|
+
var keysShim = origKeys ? function keys(o) {
|
|
134
|
+
return origKeys(o);
|
|
135
|
+
} : require_implementation$3();
|
|
136
|
+
var originalKeys = Object.keys;
|
|
137
|
+
keysShim.shim = function shimObjectKeys() {
|
|
138
|
+
if (Object.keys) {
|
|
139
|
+
if (!function() {
|
|
140
|
+
var args = Object.keys(arguments);
|
|
141
|
+
return args && args.length === arguments.length;
|
|
142
|
+
}(1, 2)) Object.keys = function keys(object) {
|
|
143
|
+
if (isArgs(object)) return originalKeys(slice.call(object));
|
|
144
|
+
return originalKeys(object);
|
|
145
|
+
};
|
|
146
|
+
} else Object.keys = keysShim;
|
|
147
|
+
return Object.keys || keysShim;
|
|
148
|
+
};
|
|
149
|
+
module.exports = keysShim;
|
|
150
|
+
}));
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
|
|
153
|
+
var require_es_define_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
154
|
+
var $defineProperty = Object.defineProperty || false;
|
|
155
|
+
if ($defineProperty) try {
|
|
156
|
+
$defineProperty({}, "a", { value: 1 });
|
|
157
|
+
} catch (e) {
|
|
158
|
+
$defineProperty = false;
|
|
159
|
+
}
|
|
160
|
+
module.exports = $defineProperty;
|
|
161
|
+
}));
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
|
|
164
|
+
var require_syntax = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
165
|
+
module.exports = SyntaxError;
|
|
166
|
+
}));
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
169
|
+
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
170
|
+
module.exports = TypeError;
|
|
171
|
+
}));
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
|
|
174
|
+
var require_gOPD = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
175
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
176
|
+
}));
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
|
|
179
|
+
var require_gopd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
180
|
+
var $gOPD = require_gOPD();
|
|
181
|
+
if ($gOPD) try {
|
|
182
|
+
$gOPD([], "length");
|
|
183
|
+
} catch (e) {
|
|
184
|
+
$gOPD = null;
|
|
185
|
+
}
|
|
186
|
+
module.exports = $gOPD;
|
|
187
|
+
}));
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
|
|
190
|
+
var require_define_data_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
191
|
+
var $defineProperty = require_es_define_property();
|
|
192
|
+
var $SyntaxError = require_syntax();
|
|
193
|
+
var $TypeError = require_type();
|
|
194
|
+
var gopd = require_gopd();
|
|
195
|
+
module.exports = function defineDataProperty(obj, property, value) {
|
|
196
|
+
if (!obj || typeof obj !== "object" && typeof obj !== "function") throw new $TypeError("`obj` must be an object or a function`");
|
|
197
|
+
if (typeof property !== "string" && typeof property !== "symbol") throw new $TypeError("`property` must be a string or a symbol`");
|
|
198
|
+
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
199
|
+
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
200
|
+
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
201
|
+
if (arguments.length > 6 && typeof arguments[6] !== "boolean") throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
202
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
203
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
204
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
205
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
206
|
+
var desc = !!gopd && gopd(obj, property);
|
|
207
|
+
if ($defineProperty) $defineProperty(obj, property, {
|
|
208
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
209
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
210
|
+
value,
|
|
211
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
212
|
+
});
|
|
213
|
+
else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) obj[property] = value;
|
|
214
|
+
else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
215
|
+
};
|
|
216
|
+
}));
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
|
|
219
|
+
var require_has_property_descriptors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
220
|
+
var $defineProperty = require_es_define_property();
|
|
221
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
222
|
+
return !!$defineProperty;
|
|
223
|
+
};
|
|
224
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
225
|
+
if (!$defineProperty) return null;
|
|
226
|
+
try {
|
|
227
|
+
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
228
|
+
} catch (e) {
|
|
229
|
+
return true;
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
module.exports = hasPropertyDescriptors;
|
|
233
|
+
}));
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region ../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js
|
|
236
|
+
var require_define_properties = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
237
|
+
var keys = require_object_keys();
|
|
238
|
+
var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
|
|
239
|
+
var toStr = Object.prototype.toString;
|
|
240
|
+
var concat = Array.prototype.concat;
|
|
241
|
+
var defineDataProperty = require_define_data_property();
|
|
242
|
+
var isFunction = function(fn) {
|
|
243
|
+
return typeof fn === "function" && toStr.call(fn) === "[object Function]";
|
|
244
|
+
};
|
|
245
|
+
var supportsDescriptors = require_has_property_descriptors()();
|
|
246
|
+
var defineProperty = function(object, name, value, predicate) {
|
|
247
|
+
if (name in object) {
|
|
248
|
+
if (predicate === true) {
|
|
249
|
+
if (object[name] === value) return;
|
|
250
|
+
} else if (!isFunction(predicate) || !predicate()) return;
|
|
251
|
+
}
|
|
252
|
+
if (supportsDescriptors) defineDataProperty(object, name, value, true);
|
|
253
|
+
else defineDataProperty(object, name, value);
|
|
254
|
+
};
|
|
255
|
+
var defineProperties = function(object, map) {
|
|
256
|
+
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
257
|
+
var props = keys(map);
|
|
258
|
+
if (hasSymbols) props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
259
|
+
for (var i = 0; i < props.length; i += 1) defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
|
|
260
|
+
};
|
|
261
|
+
defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
262
|
+
module.exports = defineProperties;
|
|
263
|
+
}));
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
|
|
266
|
+
var require_es_object_atoms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
267
|
+
module.exports = Object;
|
|
268
|
+
}));
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
|
|
271
|
+
var require_es_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
272
|
+
module.exports = Error;
|
|
273
|
+
}));
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
|
|
276
|
+
var require_eval = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
277
|
+
module.exports = EvalError;
|
|
278
|
+
}));
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
|
|
281
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
282
|
+
module.exports = RangeError;
|
|
283
|
+
}));
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
|
|
286
|
+
var require_ref = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
287
|
+
module.exports = ReferenceError;
|
|
288
|
+
}));
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
|
|
291
|
+
var require_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
292
|
+
module.exports = URIError;
|
|
293
|
+
}));
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
|
|
296
|
+
var require_abs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
297
|
+
module.exports = Math.abs;
|
|
298
|
+
}));
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
|
|
301
|
+
var require_floor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
302
|
+
module.exports = Math.floor;
|
|
303
|
+
}));
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
|
|
306
|
+
var require_max = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
307
|
+
module.exports = Math.max;
|
|
308
|
+
}));
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
|
|
311
|
+
var require_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
312
|
+
module.exports = Math.min;
|
|
313
|
+
}));
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
|
|
316
|
+
var require_pow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
317
|
+
module.exports = Math.pow;
|
|
318
|
+
}));
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
|
|
321
|
+
var require_round = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
322
|
+
module.exports = Math.round;
|
|
323
|
+
}));
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
|
|
326
|
+
var require_isNaN = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
327
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
328
|
+
return a !== a;
|
|
329
|
+
};
|
|
330
|
+
}));
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
|
|
333
|
+
var require_sign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
334
|
+
var $isNaN = require_isNaN();
|
|
335
|
+
module.exports = function sign(number) {
|
|
336
|
+
if ($isNaN(number) || number === 0) return number;
|
|
337
|
+
return number < 0 ? -1 : 1;
|
|
338
|
+
};
|
|
339
|
+
}));
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
|
|
342
|
+
var require_shams$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
343
|
+
module.exports = function hasSymbols() {
|
|
344
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") return false;
|
|
345
|
+
if (typeof Symbol.iterator === "symbol") return true;
|
|
346
|
+
var obj = {};
|
|
347
|
+
var sym = Symbol("test");
|
|
348
|
+
var symObj = Object(sym);
|
|
349
|
+
if (typeof sym === "string") return false;
|
|
350
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") return false;
|
|
351
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") return false;
|
|
352
|
+
var symVal = 42;
|
|
353
|
+
obj[sym] = symVal;
|
|
354
|
+
for (var _ in obj) return false;
|
|
355
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) return false;
|
|
356
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) return false;
|
|
357
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
358
|
+
if (syms.length !== 1 || syms[0] !== sym) return false;
|
|
359
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return false;
|
|
360
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
361
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
362
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) return false;
|
|
363
|
+
}
|
|
364
|
+
return true;
|
|
365
|
+
};
|
|
366
|
+
}));
|
|
367
|
+
//#endregion
|
|
368
|
+
//#region ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
|
|
369
|
+
var require_has_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
370
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
371
|
+
var hasSymbolSham = require_shams$1();
|
|
372
|
+
module.exports = function hasNativeSymbols() {
|
|
373
|
+
if (typeof origSymbol !== "function") return false;
|
|
374
|
+
if (typeof Symbol !== "function") return false;
|
|
375
|
+
if (typeof origSymbol("foo") !== "symbol") return false;
|
|
376
|
+
if (typeof Symbol("bar") !== "symbol") return false;
|
|
377
|
+
return hasSymbolSham();
|
|
378
|
+
};
|
|
379
|
+
}));
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
382
|
+
var require_Reflect_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
383
|
+
module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
384
|
+
}));
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
|
|
387
|
+
var require_Object_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
388
|
+
module.exports = require_es_object_atoms().getPrototypeOf || null;
|
|
389
|
+
}));
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
|
|
392
|
+
var require_implementation$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
393
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
394
|
+
var toStr = Object.prototype.toString;
|
|
395
|
+
var max = Math.max;
|
|
396
|
+
var funcType = "[object Function]";
|
|
397
|
+
var concatty = function concatty(a, b) {
|
|
398
|
+
var arr = [];
|
|
399
|
+
for (var i = 0; i < a.length; i += 1) arr[i] = a[i];
|
|
400
|
+
for (var j = 0; j < b.length; j += 1) arr[j + a.length] = b[j];
|
|
401
|
+
return arr;
|
|
402
|
+
};
|
|
403
|
+
var slicy = function slicy(arrLike, offset) {
|
|
404
|
+
var arr = [];
|
|
405
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) arr[j] = arrLike[i];
|
|
406
|
+
return arr;
|
|
407
|
+
};
|
|
408
|
+
var joiny = function(arr, joiner) {
|
|
409
|
+
var str = "";
|
|
410
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
411
|
+
str += arr[i];
|
|
412
|
+
if (i + 1 < arr.length) str += joiner;
|
|
413
|
+
}
|
|
414
|
+
return str;
|
|
415
|
+
};
|
|
416
|
+
module.exports = function bind(that) {
|
|
417
|
+
var target = this;
|
|
418
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) throw new TypeError(ERROR_MESSAGE + target);
|
|
419
|
+
var args = slicy(arguments, 1);
|
|
420
|
+
var bound;
|
|
421
|
+
var binder = function() {
|
|
422
|
+
if (this instanceof bound) {
|
|
423
|
+
var result = target.apply(this, concatty(args, arguments));
|
|
424
|
+
if (Object(result) === result) return result;
|
|
425
|
+
return this;
|
|
426
|
+
}
|
|
427
|
+
return target.apply(that, concatty(args, arguments));
|
|
428
|
+
};
|
|
429
|
+
var boundLength = max(0, target.length - args.length);
|
|
430
|
+
var boundArgs = [];
|
|
431
|
+
for (var i = 0; i < boundLength; i++) boundArgs[i] = "$" + i;
|
|
432
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
433
|
+
if (target.prototype) {
|
|
434
|
+
var Empty = function Empty() {};
|
|
435
|
+
Empty.prototype = target.prototype;
|
|
436
|
+
bound.prototype = new Empty();
|
|
437
|
+
Empty.prototype = null;
|
|
438
|
+
}
|
|
439
|
+
return bound;
|
|
440
|
+
};
|
|
441
|
+
}));
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
|
|
444
|
+
var require_function_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
445
|
+
var implementation = require_implementation$2();
|
|
446
|
+
module.exports = Function.prototype.bind || implementation;
|
|
447
|
+
}));
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
|
|
450
|
+
var require_functionCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
451
|
+
module.exports = Function.prototype.call;
|
|
452
|
+
}));
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
|
|
455
|
+
var require_functionApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
456
|
+
module.exports = Function.prototype.apply;
|
|
457
|
+
}));
|
|
458
|
+
//#endregion
|
|
459
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
|
|
460
|
+
var require_reflectApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
461
|
+
module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
462
|
+
}));
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
|
|
465
|
+
var require_actualApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
466
|
+
var bind = require_function_bind();
|
|
467
|
+
var $apply = require_functionApply();
|
|
468
|
+
var $call = require_functionCall();
|
|
469
|
+
module.exports = require_reflectApply() || bind.call($call, $apply);
|
|
470
|
+
}));
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
|
|
473
|
+
var require_call_bind_apply_helpers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
474
|
+
var bind = require_function_bind();
|
|
475
|
+
var $TypeError = require_type();
|
|
476
|
+
var $call = require_functionCall();
|
|
477
|
+
var $actualApply = require_actualApply();
|
|
478
|
+
module.exports = function callBindBasic(args) {
|
|
479
|
+
if (args.length < 1 || typeof args[0] !== "function") throw new $TypeError("a function is required");
|
|
480
|
+
return $actualApply(bind, $call, args);
|
|
481
|
+
};
|
|
482
|
+
}));
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region ../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
|
|
485
|
+
var require_get = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
486
|
+
var callBind = require_call_bind_apply_helpers();
|
|
487
|
+
var gOPD = require_gopd();
|
|
488
|
+
var hasProtoAccessor;
|
|
489
|
+
try {
|
|
490
|
+
hasProtoAccessor = [].__proto__ === Array.prototype;
|
|
491
|
+
} catch (e) {
|
|
492
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
|
|
493
|
+
}
|
|
494
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__");
|
|
495
|
+
var $Object = Object;
|
|
496
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
497
|
+
module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) {
|
|
498
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
499
|
+
} : false;
|
|
500
|
+
}));
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
|
|
503
|
+
var require_get_proto = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
504
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
505
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
506
|
+
var getDunderProto = require_get();
|
|
507
|
+
module.exports = reflectGetProto ? function getProto(O) {
|
|
508
|
+
return reflectGetProto(O);
|
|
509
|
+
} : originalGetProto ? function getProto(O) {
|
|
510
|
+
if (!O || typeof O !== "object" && typeof O !== "function") throw new TypeError("getProto: not an object");
|
|
511
|
+
return originalGetProto(O);
|
|
512
|
+
} : getDunderProto ? function getProto(O) {
|
|
513
|
+
return getDunderProto(O);
|
|
514
|
+
} : null;
|
|
515
|
+
}));
|
|
516
|
+
//#endregion
|
|
517
|
+
//#region ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
|
|
518
|
+
var require_hasown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
519
|
+
var call = Function.prototype.call;
|
|
520
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
521
|
+
module.exports = require_function_bind().call(call, $hasOwn);
|
|
522
|
+
}));
|
|
523
|
+
//#endregion
|
|
524
|
+
//#region ../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
|
|
525
|
+
var require_get_intrinsic = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
526
|
+
var undefined;
|
|
527
|
+
var $Object = require_es_object_atoms();
|
|
528
|
+
var $Error = require_es_errors();
|
|
529
|
+
var $EvalError = require_eval();
|
|
530
|
+
var $RangeError = require_range();
|
|
531
|
+
var $ReferenceError = require_ref();
|
|
532
|
+
var $SyntaxError = require_syntax();
|
|
533
|
+
var $TypeError = require_type();
|
|
534
|
+
var $URIError = require_uri();
|
|
535
|
+
var abs = require_abs();
|
|
536
|
+
var floor = require_floor();
|
|
537
|
+
var max = require_max();
|
|
538
|
+
var min = require_min();
|
|
539
|
+
var pow = require_pow();
|
|
540
|
+
var round = require_round();
|
|
541
|
+
var sign = require_sign();
|
|
542
|
+
var $Function = Function;
|
|
543
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
544
|
+
try {
|
|
545
|
+
return $Function("\"use strict\"; return (" + expressionSyntax + ").constructor;")();
|
|
546
|
+
} catch (e) {}
|
|
547
|
+
};
|
|
548
|
+
var $gOPD = require_gopd();
|
|
549
|
+
var $defineProperty = require_es_define_property();
|
|
550
|
+
var throwTypeError = function() {
|
|
551
|
+
throw new $TypeError();
|
|
552
|
+
};
|
|
553
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
554
|
+
try {
|
|
555
|
+
arguments.callee;
|
|
556
|
+
return throwTypeError;
|
|
557
|
+
} catch (calleeThrows) {
|
|
558
|
+
try {
|
|
559
|
+
return $gOPD(arguments, "callee").get;
|
|
560
|
+
} catch (gOPDthrows) {
|
|
561
|
+
return throwTypeError;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}() : throwTypeError;
|
|
565
|
+
var hasSymbols = require_has_symbols()();
|
|
566
|
+
var getProto = require_get_proto();
|
|
567
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
568
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
569
|
+
var $apply = require_functionApply();
|
|
570
|
+
var $call = require_functionCall();
|
|
571
|
+
var needsEval = {};
|
|
572
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined : getProto(Uint8Array);
|
|
573
|
+
var INTRINSICS = {
|
|
574
|
+
__proto__: null,
|
|
575
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined : AggregateError,
|
|
576
|
+
"%Array%": Array,
|
|
577
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined : ArrayBuffer,
|
|
578
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
579
|
+
"%AsyncFromSyncIteratorPrototype%": undefined,
|
|
580
|
+
"%AsyncFunction%": needsEval,
|
|
581
|
+
"%AsyncGenerator%": needsEval,
|
|
582
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
583
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
584
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined : Atomics,
|
|
585
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined : BigInt,
|
|
586
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined : BigInt64Array,
|
|
587
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined : BigUint64Array,
|
|
588
|
+
"%Boolean%": Boolean,
|
|
589
|
+
"%DataView%": typeof DataView === "undefined" ? undefined : DataView,
|
|
590
|
+
"%Date%": Date,
|
|
591
|
+
"%decodeURI%": decodeURI,
|
|
592
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
593
|
+
"%encodeURI%": encodeURI,
|
|
594
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
595
|
+
"%Error%": $Error,
|
|
596
|
+
"%eval%": eval,
|
|
597
|
+
"%EvalError%": $EvalError,
|
|
598
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined : Float16Array,
|
|
599
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined : Float32Array,
|
|
600
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined : Float64Array,
|
|
601
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined : FinalizationRegistry,
|
|
602
|
+
"%Function%": $Function,
|
|
603
|
+
"%GeneratorFunction%": needsEval,
|
|
604
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined : Int8Array,
|
|
605
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined : Int16Array,
|
|
606
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined : Int32Array,
|
|
607
|
+
"%isFinite%": isFinite,
|
|
608
|
+
"%isNaN%": isNaN,
|
|
609
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
610
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined,
|
|
611
|
+
"%Map%": typeof Map === "undefined" ? undefined : Map,
|
|
612
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
613
|
+
"%Math%": Math,
|
|
614
|
+
"%Number%": Number,
|
|
615
|
+
"%Object%": $Object,
|
|
616
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
617
|
+
"%parseFloat%": parseFloat,
|
|
618
|
+
"%parseInt%": parseInt,
|
|
619
|
+
"%Promise%": typeof Promise === "undefined" ? undefined : Promise,
|
|
620
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined : Proxy,
|
|
621
|
+
"%RangeError%": $RangeError,
|
|
622
|
+
"%ReferenceError%": $ReferenceError,
|
|
623
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined : Reflect,
|
|
624
|
+
"%RegExp%": RegExp,
|
|
625
|
+
"%Set%": typeof Set === "undefined" ? undefined : Set,
|
|
626
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
627
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined : SharedArrayBuffer,
|
|
628
|
+
"%String%": String,
|
|
629
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined,
|
|
630
|
+
"%Symbol%": hasSymbols ? Symbol : undefined,
|
|
631
|
+
"%SyntaxError%": $SyntaxError,
|
|
632
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
633
|
+
"%TypedArray%": TypedArray,
|
|
634
|
+
"%TypeError%": $TypeError,
|
|
635
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined : Uint8Array,
|
|
636
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined : Uint8ClampedArray,
|
|
637
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined : Uint16Array,
|
|
638
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined : Uint32Array,
|
|
639
|
+
"%URIError%": $URIError,
|
|
640
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined : WeakMap,
|
|
641
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined : WeakRef,
|
|
642
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined : WeakSet,
|
|
643
|
+
"%Function.prototype.call%": $call,
|
|
644
|
+
"%Function.prototype.apply%": $apply,
|
|
645
|
+
"%Object.defineProperty%": $defineProperty,
|
|
646
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
647
|
+
"%Math.abs%": abs,
|
|
648
|
+
"%Math.floor%": floor,
|
|
649
|
+
"%Math.max%": max,
|
|
650
|
+
"%Math.min%": min,
|
|
651
|
+
"%Math.pow%": pow,
|
|
652
|
+
"%Math.round%": round,
|
|
653
|
+
"%Math.sign%": sign,
|
|
654
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
655
|
+
};
|
|
656
|
+
if (getProto) try {
|
|
657
|
+
null.error;
|
|
658
|
+
} catch (e) {
|
|
659
|
+
INTRINSICS["%Error.prototype%"] = getProto(getProto(e));
|
|
660
|
+
}
|
|
661
|
+
var doEval = function doEval(name) {
|
|
662
|
+
var value;
|
|
663
|
+
if (name === "%AsyncFunction%") value = getEvalledConstructor("async function () {}");
|
|
664
|
+
else if (name === "%GeneratorFunction%") value = getEvalledConstructor("function* () {}");
|
|
665
|
+
else if (name === "%AsyncGeneratorFunction%") value = getEvalledConstructor("async function* () {}");
|
|
666
|
+
else if (name === "%AsyncGenerator%") {
|
|
667
|
+
var fn = doEval("%AsyncGeneratorFunction%");
|
|
668
|
+
if (fn) value = fn.prototype;
|
|
669
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
670
|
+
var gen = doEval("%AsyncGenerator%");
|
|
671
|
+
if (gen && getProto) value = getProto(gen.prototype);
|
|
672
|
+
}
|
|
673
|
+
INTRINSICS[name] = value;
|
|
674
|
+
return value;
|
|
675
|
+
};
|
|
676
|
+
var LEGACY_ALIASES = {
|
|
677
|
+
__proto__: null,
|
|
678
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
679
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
680
|
+
"%ArrayProto_entries%": [
|
|
681
|
+
"Array",
|
|
682
|
+
"prototype",
|
|
683
|
+
"entries"
|
|
684
|
+
],
|
|
685
|
+
"%ArrayProto_forEach%": [
|
|
686
|
+
"Array",
|
|
687
|
+
"prototype",
|
|
688
|
+
"forEach"
|
|
689
|
+
],
|
|
690
|
+
"%ArrayProto_keys%": [
|
|
691
|
+
"Array",
|
|
692
|
+
"prototype",
|
|
693
|
+
"keys"
|
|
694
|
+
],
|
|
695
|
+
"%ArrayProto_values%": [
|
|
696
|
+
"Array",
|
|
697
|
+
"prototype",
|
|
698
|
+
"values"
|
|
699
|
+
],
|
|
700
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
701
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
702
|
+
"%AsyncGeneratorPrototype%": [
|
|
703
|
+
"AsyncGeneratorFunction",
|
|
704
|
+
"prototype",
|
|
705
|
+
"prototype"
|
|
706
|
+
],
|
|
707
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
708
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
709
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
710
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
711
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
712
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
713
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
714
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
715
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
716
|
+
"%GeneratorPrototype%": [
|
|
717
|
+
"GeneratorFunction",
|
|
718
|
+
"prototype",
|
|
719
|
+
"prototype"
|
|
720
|
+
],
|
|
721
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
722
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
723
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
724
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
725
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
726
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
727
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
728
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
729
|
+
"%ObjProto_toString%": [
|
|
730
|
+
"Object",
|
|
731
|
+
"prototype",
|
|
732
|
+
"toString"
|
|
733
|
+
],
|
|
734
|
+
"%ObjProto_valueOf%": [
|
|
735
|
+
"Object",
|
|
736
|
+
"prototype",
|
|
737
|
+
"valueOf"
|
|
738
|
+
],
|
|
739
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
740
|
+
"%PromiseProto_then%": [
|
|
741
|
+
"Promise",
|
|
742
|
+
"prototype",
|
|
743
|
+
"then"
|
|
744
|
+
],
|
|
745
|
+
"%Promise_all%": ["Promise", "all"],
|
|
746
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
747
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
748
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
749
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
750
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
751
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
752
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
753
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
754
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
755
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
756
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
757
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
758
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
759
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
760
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
761
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
762
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
763
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
764
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
765
|
+
};
|
|
766
|
+
var bind = require_function_bind();
|
|
767
|
+
var hasOwn = require_hasown();
|
|
768
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
769
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
770
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
771
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
772
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
773
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
774
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
775
|
+
var stringToPath = function stringToPath(string) {
|
|
776
|
+
var first = $strSlice(string, 0, 1);
|
|
777
|
+
var last = $strSlice(string, -1);
|
|
778
|
+
if (first === "%" && last !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
779
|
+
else if (last === "%" && first !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
780
|
+
var result = [];
|
|
781
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
782
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
783
|
+
});
|
|
784
|
+
return result;
|
|
785
|
+
};
|
|
786
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
787
|
+
var intrinsicName = name;
|
|
788
|
+
var alias;
|
|
789
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
790
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
791
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
792
|
+
}
|
|
793
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
794
|
+
var value = INTRINSICS[intrinsicName];
|
|
795
|
+
if (value === needsEval) value = doEval(intrinsicName);
|
|
796
|
+
if (typeof value === "undefined" && !allowMissing) throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
797
|
+
return {
|
|
798
|
+
alias,
|
|
799
|
+
name: intrinsicName,
|
|
800
|
+
value
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
804
|
+
};
|
|
805
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
806
|
+
if (typeof name !== "string" || name.length === 0) throw new $TypeError("intrinsic name must be a non-empty string");
|
|
807
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") throw new $TypeError("\"allowMissing\" argument must be a boolean");
|
|
808
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
809
|
+
var parts = stringToPath(name);
|
|
810
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
811
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
812
|
+
var intrinsicRealName = intrinsic.name;
|
|
813
|
+
var value = intrinsic.value;
|
|
814
|
+
var skipFurtherCaching = false;
|
|
815
|
+
var alias = intrinsic.alias;
|
|
816
|
+
if (alias) {
|
|
817
|
+
intrinsicBaseName = alias[0];
|
|
818
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
819
|
+
}
|
|
820
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
821
|
+
var part = parts[i];
|
|
822
|
+
var first = $strSlice(part, 0, 1);
|
|
823
|
+
var last = $strSlice(part, -1);
|
|
824
|
+
if ((first === "\"" || first === "'" || first === "`" || last === "\"" || last === "'" || last === "`") && first !== last) throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
825
|
+
if (part === "constructor" || !isOwn) skipFurtherCaching = true;
|
|
826
|
+
intrinsicBaseName += "." + part;
|
|
827
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
828
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) value = INTRINSICS[intrinsicRealName];
|
|
829
|
+
else if (value != null) {
|
|
830
|
+
if (!(part in value)) {
|
|
831
|
+
if (!allowMissing) throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
835
|
+
var desc = $gOPD(value, part);
|
|
836
|
+
isOwn = !!desc;
|
|
837
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) value = desc.get;
|
|
838
|
+
else value = value[part];
|
|
839
|
+
} else {
|
|
840
|
+
isOwn = hasOwn(value, part);
|
|
841
|
+
value = value[part];
|
|
842
|
+
}
|
|
843
|
+
if (isOwn && !skipFurtherCaching) INTRINSICS[intrinsicRealName] = value;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
return value;
|
|
847
|
+
};
|
|
848
|
+
}));
|
|
849
|
+
//#endregion
|
|
850
|
+
//#region ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
|
|
851
|
+
var require_set_function_length = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
852
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
853
|
+
var define = require_define_data_property();
|
|
854
|
+
var hasDescriptors = require_has_property_descriptors()();
|
|
855
|
+
var gOPD = require_gopd();
|
|
856
|
+
var $TypeError = require_type();
|
|
857
|
+
var $floor = GetIntrinsic("%Math.floor%");
|
|
858
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
859
|
+
if (typeof fn !== "function") throw new $TypeError("`fn` is not a function");
|
|
860
|
+
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
861
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
862
|
+
var functionLengthIsConfigurable = true;
|
|
863
|
+
var functionLengthIsWritable = true;
|
|
864
|
+
if ("length" in fn && gOPD) {
|
|
865
|
+
var desc = gOPD(fn, "length");
|
|
866
|
+
if (desc && !desc.configurable) functionLengthIsConfigurable = false;
|
|
867
|
+
if (desc && !desc.writable) functionLengthIsWritable = false;
|
|
868
|
+
}
|
|
869
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
870
|
+
if (hasDescriptors) define(fn, "length", length, true, true);
|
|
871
|
+
else define(fn, "length", length);
|
|
872
|
+
}
|
|
873
|
+
return fn;
|
|
874
|
+
};
|
|
875
|
+
}));
|
|
876
|
+
//#endregion
|
|
877
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
|
|
878
|
+
var require_applyBind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
879
|
+
var bind = require_function_bind();
|
|
880
|
+
var $apply = require_functionApply();
|
|
881
|
+
var actualApply = require_actualApply();
|
|
882
|
+
module.exports = function applyBind() {
|
|
883
|
+
return actualApply(bind, $apply, arguments);
|
|
884
|
+
};
|
|
885
|
+
}));
|
|
886
|
+
//#endregion
|
|
887
|
+
//#region ../../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/index.js
|
|
888
|
+
var require_call_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
889
|
+
var setFunctionLength = require_set_function_length();
|
|
890
|
+
var $defineProperty = require_es_define_property();
|
|
891
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
892
|
+
var applyBind = require_applyBind();
|
|
893
|
+
module.exports = function callBind(originalFunction) {
|
|
894
|
+
var func = callBindBasic(arguments);
|
|
895
|
+
var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
|
|
896
|
+
return setFunctionLength(func, adjustedLength > 0 ? adjustedLength : 0, true);
|
|
897
|
+
};
|
|
898
|
+
if ($defineProperty) $defineProperty(module.exports, "apply", { value: applyBind });
|
|
899
|
+
else module.exports.apply = applyBind;
|
|
900
|
+
}));
|
|
901
|
+
//#endregion
|
|
902
|
+
//#region ../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js
|
|
903
|
+
var require_implementation$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
904
|
+
var numberIsNaN = function(value) {
|
|
905
|
+
return value !== value;
|
|
906
|
+
};
|
|
907
|
+
module.exports = function is(a, b) {
|
|
908
|
+
if (a === 0 && b === 0) return 1 / a === 1 / b;
|
|
909
|
+
if (a === b) return true;
|
|
910
|
+
if (numberIsNaN(a) && numberIsNaN(b)) return true;
|
|
911
|
+
return false;
|
|
912
|
+
};
|
|
913
|
+
}));
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region ../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js
|
|
916
|
+
var require_polyfill$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
917
|
+
var implementation = require_implementation$1();
|
|
918
|
+
module.exports = function getPolyfill() {
|
|
919
|
+
return typeof Object.is === "function" ? Object.is : implementation;
|
|
920
|
+
};
|
|
921
|
+
}));
|
|
922
|
+
//#endregion
|
|
923
|
+
//#region ../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js
|
|
924
|
+
var require_shim$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
925
|
+
var getPolyfill = require_polyfill$1();
|
|
926
|
+
var define = require_define_properties();
|
|
927
|
+
module.exports = function shimObjectIs() {
|
|
928
|
+
var polyfill = getPolyfill();
|
|
929
|
+
define(Object, { is: polyfill }, { is: function testObjectIs() {
|
|
930
|
+
return Object.is !== polyfill;
|
|
931
|
+
} });
|
|
932
|
+
return polyfill;
|
|
933
|
+
};
|
|
934
|
+
}));
|
|
935
|
+
//#endregion
|
|
936
|
+
//#region ../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js
|
|
937
|
+
var require_object_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
938
|
+
var define = require_define_properties();
|
|
939
|
+
var callBind = require_call_bind();
|
|
940
|
+
var implementation = require_implementation$1();
|
|
941
|
+
var getPolyfill = require_polyfill$1();
|
|
942
|
+
var shim = require_shim$1();
|
|
943
|
+
var polyfill = callBind(getPolyfill(), Object);
|
|
944
|
+
define(polyfill, {
|
|
945
|
+
getPolyfill,
|
|
946
|
+
implementation,
|
|
947
|
+
shim
|
|
948
|
+
});
|
|
949
|
+
module.exports = polyfill;
|
|
950
|
+
}));
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region ../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js
|
|
953
|
+
var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
954
|
+
module.exports = function isNaN(value) {
|
|
955
|
+
return value !== value;
|
|
956
|
+
};
|
|
957
|
+
}));
|
|
958
|
+
//#endregion
|
|
959
|
+
//#region ../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/polyfill.js
|
|
960
|
+
var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
961
|
+
var implementation = require_implementation();
|
|
962
|
+
module.exports = function getPolyfill() {
|
|
963
|
+
if (Number.isNaN && !Number.isNaN("a")) return Number.isNaN;
|
|
964
|
+
return implementation;
|
|
965
|
+
};
|
|
966
|
+
}));
|
|
967
|
+
//#endregion
|
|
968
|
+
//#region ../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/shim.js
|
|
969
|
+
var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
970
|
+
var define = require_define_properties();
|
|
971
|
+
var getPolyfill = require_polyfill();
|
|
972
|
+
module.exports = function shimNumberIsNaN() {
|
|
973
|
+
var polyfill = getPolyfill();
|
|
974
|
+
define(Number, { isNaN: polyfill }, { isNaN: function testIsNaN() {
|
|
975
|
+
return Number.isNaN !== polyfill;
|
|
976
|
+
} });
|
|
977
|
+
return polyfill;
|
|
978
|
+
};
|
|
979
|
+
}));
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region ../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/index.js
|
|
982
|
+
var require_is_nan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
983
|
+
var callBind = require_call_bind();
|
|
984
|
+
var define = require_define_properties();
|
|
985
|
+
var implementation = require_implementation();
|
|
986
|
+
var getPolyfill = require_polyfill();
|
|
987
|
+
var shim = require_shim();
|
|
988
|
+
var polyfill = callBind(getPolyfill(), Number);
|
|
989
|
+
define(polyfill, {
|
|
990
|
+
getPolyfill,
|
|
991
|
+
implementation,
|
|
992
|
+
shim
|
|
993
|
+
});
|
|
994
|
+
module.exports = polyfill;
|
|
995
|
+
}));
|
|
996
|
+
//#endregion
|
|
997
|
+
//#region ../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
|
|
998
|
+
var require_shams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
999
|
+
var hasSymbols = require_shams$1();
|
|
1000
|
+
module.exports = function hasToStringTagShams() {
|
|
1001
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
1002
|
+
};
|
|
1003
|
+
}));
|
|
1004
|
+
//#endregion
|
|
1005
|
+
//#region ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
1006
|
+
var require_call_bound = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1007
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
1008
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
1009
|
+
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
1010
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
1011
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
1012
|
+
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) return callBindBasic([intrinsic]);
|
|
1013
|
+
return intrinsic;
|
|
1014
|
+
};
|
|
1015
|
+
}));
|
|
1016
|
+
//#endregion
|
|
1017
|
+
//#region ../../node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js
|
|
1018
|
+
var require_is_arguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1019
|
+
var hasToStringTag = require_shams()();
|
|
1020
|
+
var $toString = require_call_bound()("Object.prototype.toString");
|
|
1021
|
+
var isStandardArguments = function isArguments(value) {
|
|
1022
|
+
if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) return false;
|
|
1023
|
+
return $toString(value) === "[object Arguments]";
|
|
1024
|
+
};
|
|
1025
|
+
var isLegacyArguments = function isArguments(value) {
|
|
1026
|
+
if (isStandardArguments(value)) return true;
|
|
1027
|
+
return value !== null && typeof value === "object" && "length" in value && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && "callee" in value && $toString(value.callee) === "[object Function]";
|
|
1028
|
+
};
|
|
1029
|
+
var supportsStandardArguments = function() {
|
|
1030
|
+
return isStandardArguments(arguments);
|
|
1031
|
+
}();
|
|
1032
|
+
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
1033
|
+
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
1034
|
+
}));
|
|
1035
|
+
//#endregion
|
|
1036
|
+
//#region ../../node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js
|
|
1037
|
+
var require_is_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1038
|
+
var callBound = require_call_bound();
|
|
1039
|
+
var hasToStringTag = require_shams()();
|
|
1040
|
+
var hasOwn = require_hasown();
|
|
1041
|
+
var gOPD = require_gopd();
|
|
1042
|
+
var fn;
|
|
1043
|
+
if (hasToStringTag) {
|
|
1044
|
+
var $exec = callBound("RegExp.prototype.exec");
|
|
1045
|
+
var isRegexMarker = {};
|
|
1046
|
+
var throwRegexMarker = function() {
|
|
1047
|
+
throw isRegexMarker;
|
|
1048
|
+
};
|
|
1049
|
+
var badStringifier = {
|
|
1050
|
+
toString: throwRegexMarker,
|
|
1051
|
+
valueOf: throwRegexMarker
|
|
1052
|
+
};
|
|
1053
|
+
if (typeof Symbol.toPrimitive === "symbol") badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
1054
|
+
fn = function isRegex(value) {
|
|
1055
|
+
if (!value || typeof value !== "object") return false;
|
|
1056
|
+
var descriptor = gOPD(value, "lastIndex");
|
|
1057
|
+
if (!(descriptor && hasOwn(descriptor, "value"))) return false;
|
|
1058
|
+
try {
|
|
1059
|
+
$exec(value, badStringifier);
|
|
1060
|
+
} catch (e) {
|
|
1061
|
+
return e === isRegexMarker;
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
} else {
|
|
1065
|
+
var $toString = callBound("Object.prototype.toString");
|
|
1066
|
+
var regexClass = "[object RegExp]";
|
|
1067
|
+
fn = function isRegex(value) {
|
|
1068
|
+
if (!value || typeof value !== "object" && typeof value !== "function") return false;
|
|
1069
|
+
return $toString(value) === regexClass;
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
module.exports = fn;
|
|
1073
|
+
}));
|
|
1074
|
+
//#endregion
|
|
1075
|
+
//#region ../../node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js
|
|
1076
|
+
var require_safe_regex_test = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1077
|
+
var callBound = require_call_bound();
|
|
1078
|
+
var isRegex = require_is_regex();
|
|
1079
|
+
var $exec = callBound("RegExp.prototype.exec");
|
|
1080
|
+
var $TypeError = require_type();
|
|
1081
|
+
module.exports = function regexTester(regex) {
|
|
1082
|
+
if (!isRegex(regex)) throw new $TypeError("`regex` must be a RegExp");
|
|
1083
|
+
return function test(s) {
|
|
1084
|
+
return $exec(regex, s) !== null;
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
}));
|
|
1088
|
+
//#endregion
|
|
1089
|
+
//#region ../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js
|
|
1090
|
+
var require_generator_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1091
|
+
const cached = function* () {}.constructor;
|
|
1092
|
+
module.exports = () => cached;
|
|
1093
|
+
}));
|
|
1094
|
+
//#endregion
|
|
1095
|
+
//#region ../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js
|
|
1096
|
+
var require_is_generator_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1097
|
+
var callBound = require_call_bound();
|
|
1098
|
+
var isFnRegex = require_safe_regex_test()(/^\s*(?:function)?\*/);
|
|
1099
|
+
var hasToStringTag = require_shams()();
|
|
1100
|
+
var getProto = require_get_proto();
|
|
1101
|
+
var toStr = callBound("Object.prototype.toString");
|
|
1102
|
+
var fnToStr = callBound("Function.prototype.toString");
|
|
1103
|
+
var getGeneratorFunction = require_generator_function();
|
|
1104
|
+
module.exports = function isGeneratorFunction(fn) {
|
|
1105
|
+
if (typeof fn !== "function") return false;
|
|
1106
|
+
if (isFnRegex(fnToStr(fn))) return true;
|
|
1107
|
+
if (!hasToStringTag) return toStr(fn) === "[object GeneratorFunction]";
|
|
1108
|
+
if (!getProto) return false;
|
|
1109
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
1110
|
+
return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
|
|
1111
|
+
};
|
|
1112
|
+
}));
|
|
1113
|
+
//#endregion
|
|
1114
|
+
//#region ../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
|
|
1115
|
+
var require_is_callable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1116
|
+
var fnToStr = Function.prototype.toString;
|
|
1117
|
+
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
1118
|
+
var badArrayLike;
|
|
1119
|
+
var isCallableMarker;
|
|
1120
|
+
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") try {
|
|
1121
|
+
badArrayLike = Object.defineProperty({}, "length", { get: function() {
|
|
1122
|
+
throw isCallableMarker;
|
|
1123
|
+
} });
|
|
1124
|
+
isCallableMarker = {};
|
|
1125
|
+
reflectApply(function() {
|
|
1126
|
+
throw 42;
|
|
1127
|
+
}, null, badArrayLike);
|
|
1128
|
+
} catch (_) {
|
|
1129
|
+
if (_ !== isCallableMarker) reflectApply = null;
|
|
1130
|
+
}
|
|
1131
|
+
else reflectApply = null;
|
|
1132
|
+
var constructorRegex = /^\s*class\b/;
|
|
1133
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
1134
|
+
try {
|
|
1135
|
+
var fnStr = fnToStr.call(value);
|
|
1136
|
+
return constructorRegex.test(fnStr);
|
|
1137
|
+
} catch (e) {
|
|
1138
|
+
return false;
|
|
1139
|
+
}
|
|
1140
|
+
};
|
|
1141
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
1142
|
+
try {
|
|
1143
|
+
if (isES6ClassFn(value)) return false;
|
|
1144
|
+
fnToStr.call(value);
|
|
1145
|
+
return true;
|
|
1146
|
+
} catch (e) {
|
|
1147
|
+
return false;
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
var toStr = Object.prototype.toString;
|
|
1151
|
+
var objectClass = "[object Object]";
|
|
1152
|
+
var fnClass = "[object Function]";
|
|
1153
|
+
var genClass = "[object GeneratorFunction]";
|
|
1154
|
+
var ddaClass = "[object HTMLAllCollection]";
|
|
1155
|
+
var ddaClass2 = "[object HTML document.all class]";
|
|
1156
|
+
var ddaClass3 = "[object HTMLCollection]";
|
|
1157
|
+
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
1158
|
+
var isIE68 = !(0 in [,]);
|
|
1159
|
+
var isDDA = function isDocumentDotAll() {
|
|
1160
|
+
return false;
|
|
1161
|
+
};
|
|
1162
|
+
if (typeof document === "object") {
|
|
1163
|
+
var all = document.all;
|
|
1164
|
+
if (toStr.call(all) === toStr.call(document.all)) isDDA = function isDocumentDotAll(value) {
|
|
1165
|
+
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) try {
|
|
1166
|
+
var str = toStr.call(value);
|
|
1167
|
+
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
|
|
1168
|
+
} catch (e) {}
|
|
1169
|
+
return false;
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
module.exports = reflectApply ? function isCallable(value) {
|
|
1173
|
+
if (isDDA(value)) return true;
|
|
1174
|
+
if (!value) return false;
|
|
1175
|
+
if (typeof value !== "function" && typeof value !== "object") return false;
|
|
1176
|
+
try {
|
|
1177
|
+
reflectApply(value, null, badArrayLike);
|
|
1178
|
+
} catch (e) {
|
|
1179
|
+
if (e !== isCallableMarker) return false;
|
|
1180
|
+
}
|
|
1181
|
+
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
1182
|
+
} : function isCallable(value) {
|
|
1183
|
+
if (isDDA(value)) return true;
|
|
1184
|
+
if (!value) return false;
|
|
1185
|
+
if (typeof value !== "function" && typeof value !== "object") return false;
|
|
1186
|
+
if (hasToStringTag) return tryFunctionObject(value);
|
|
1187
|
+
if (isES6ClassFn(value)) return false;
|
|
1188
|
+
var strClass = toStr.call(value);
|
|
1189
|
+
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) return false;
|
|
1190
|
+
return tryFunctionObject(value);
|
|
1191
|
+
};
|
|
1192
|
+
}));
|
|
1193
|
+
//#endregion
|
|
1194
|
+
//#region ../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
|
|
1195
|
+
var require_for_each = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1196
|
+
var isCallable = require_is_callable();
|
|
1197
|
+
var toStr = Object.prototype.toString;
|
|
1198
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1199
|
+
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
1200
|
+
for (var i = 0, len = array.length; i < len; i++) if (hasOwnProperty.call(array, i)) {
|
|
1201
|
+
if (receiver == null) iterator(array[i], i, array);
|
|
1202
|
+
else iterator.call(receiver, array[i], i, array);
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
var forEachString = function forEachString(string, iterator, receiver) {
|
|
1206
|
+
for (var i = 0, len = string.length; i < len; i++) if (receiver == null) iterator(string.charAt(i), i, string);
|
|
1207
|
+
else iterator.call(receiver, string.charAt(i), i, string);
|
|
1208
|
+
};
|
|
1209
|
+
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
1210
|
+
for (var k in object) if (hasOwnProperty.call(object, k)) {
|
|
1211
|
+
if (receiver == null) iterator(object[k], k, object);
|
|
1212
|
+
else iterator.call(receiver, object[k], k, object);
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
function isArray(x) {
|
|
1216
|
+
return toStr.call(x) === "[object Array]";
|
|
1217
|
+
}
|
|
1218
|
+
module.exports = function forEach(list, iterator, thisArg) {
|
|
1219
|
+
if (!isCallable(iterator)) throw new TypeError("iterator must be a function");
|
|
1220
|
+
var receiver;
|
|
1221
|
+
if (arguments.length >= 3) receiver = thisArg;
|
|
1222
|
+
if (isArray(list)) forEachArray(list, iterator, receiver);
|
|
1223
|
+
else if (typeof list === "string") forEachString(list, iterator, receiver);
|
|
1224
|
+
else forEachObject(list, iterator, receiver);
|
|
1225
|
+
};
|
|
1226
|
+
}));
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region ../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js
|
|
1229
|
+
var require_possible_typed_array_names = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1230
|
+
module.exports = [
|
|
1231
|
+
"Float16Array",
|
|
1232
|
+
"Float32Array",
|
|
1233
|
+
"Float64Array",
|
|
1234
|
+
"Int8Array",
|
|
1235
|
+
"Int16Array",
|
|
1236
|
+
"Int32Array",
|
|
1237
|
+
"Uint8Array",
|
|
1238
|
+
"Uint8ClampedArray",
|
|
1239
|
+
"Uint16Array",
|
|
1240
|
+
"Uint32Array",
|
|
1241
|
+
"BigInt64Array",
|
|
1242
|
+
"BigUint64Array"
|
|
1243
|
+
];
|
|
1244
|
+
}));
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region ../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
|
|
1247
|
+
var require_available_typed_arrays = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1248
|
+
var possibleNames = require_possible_typed_array_names();
|
|
1249
|
+
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1250
|
+
module.exports = function availableTypedArrays() {
|
|
1251
|
+
var out = [];
|
|
1252
|
+
for (var i = 0; i < possibleNames.length; i++) if (typeof g[possibleNames[i]] === "function") out[out.length] = possibleNames[i];
|
|
1253
|
+
return out;
|
|
1254
|
+
};
|
|
1255
|
+
}));
|
|
1256
|
+
//#endregion
|
|
1257
|
+
//#region ../../node_modules/.pnpm/which-typed-array@1.1.24/node_modules/which-typed-array/index.js
|
|
1258
|
+
var require_which_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1259
|
+
var forEach = require_for_each();
|
|
1260
|
+
var availableTypedArrays = require_available_typed_arrays();
|
|
1261
|
+
var callBind = require_call_bind();
|
|
1262
|
+
var callBound = require_call_bound();
|
|
1263
|
+
var gOPD = require_gopd();
|
|
1264
|
+
var getProto = require_get_proto();
|
|
1265
|
+
var $toString = callBound("Object.prototype.toString");
|
|
1266
|
+
var hasToStringTag = require_shams()();
|
|
1267
|
+
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1268
|
+
var typedArrays = availableTypedArrays();
|
|
1269
|
+
var $slice = callBound("String.prototype.slice");
|
|
1270
|
+
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
1271
|
+
for (var i = 0; i < array.length; i += 1) if (array[i] === value) return i;
|
|
1272
|
+
return -1;
|
|
1273
|
+
};
|
|
1274
|
+
var cache = { __proto__: null };
|
|
1275
|
+
if (hasToStringTag && gOPD && getProto) forEach(typedArrays, function(typedArray) {
|
|
1276
|
+
var arr = new g[typedArray]();
|
|
1277
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
1278
|
+
var proto = getProto(arr);
|
|
1279
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1280
|
+
if (!descriptor && proto) descriptor = gOPD(getProto(proto), Symbol.toStringTag);
|
|
1281
|
+
if (descriptor && descriptor.get) {
|
|
1282
|
+
var bound = callBind(descriptor.get);
|
|
1283
|
+
cache["$" + typedArray] = bound;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
else forEach(typedArrays, function(typedArray) {
|
|
1288
|
+
var arr = new g[typedArray]();
|
|
1289
|
+
var fn = arr.slice || arr.set;
|
|
1290
|
+
if (fn) {
|
|
1291
|
+
var bound = callBind(fn);
|
|
1292
|
+
cache["$" + typedArray] = bound;
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
function tryTypedArrays(value) {
|
|
1296
|
+
var found = false;
|
|
1297
|
+
forEach(cache, function(getter, typedArray) {
|
|
1298
|
+
if (!found) try {
|
|
1299
|
+
if ("$" + getter(value) === typedArray) found = $slice(typedArray, 1);
|
|
1300
|
+
} catch (e) {}
|
|
1301
|
+
});
|
|
1302
|
+
return found;
|
|
1303
|
+
}
|
|
1304
|
+
function trySlices(value) {
|
|
1305
|
+
var found = false;
|
|
1306
|
+
forEach(cache, function(getter, name) {
|
|
1307
|
+
if (!found) try {
|
|
1308
|
+
getter(value);
|
|
1309
|
+
found = $slice(name, 1);
|
|
1310
|
+
} catch (e) {}
|
|
1311
|
+
});
|
|
1312
|
+
return found;
|
|
1313
|
+
}
|
|
1314
|
+
function isTATag(tag) {
|
|
1315
|
+
return $indexOf(typedArrays, tag) > -1;
|
|
1316
|
+
}
|
|
1317
|
+
function whichTypedArray(value) {
|
|
1318
|
+
if (!value || typeof value !== "object") return false;
|
|
1319
|
+
if (!hasToStringTag) {
|
|
1320
|
+
var tag = $slice($toString(value), 8, -1);
|
|
1321
|
+
if (isTATag(tag)) return tag;
|
|
1322
|
+
if (tag !== "Object") return false;
|
|
1323
|
+
return trySlices(value);
|
|
1324
|
+
}
|
|
1325
|
+
if (!gOPD) return null;
|
|
1326
|
+
return tryTypedArrays(value);
|
|
1327
|
+
}
|
|
1328
|
+
module.exports = whichTypedArray;
|
|
1329
|
+
}));
|
|
1330
|
+
//#endregion
|
|
1331
|
+
//#region ../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
|
|
1332
|
+
var require_is_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1333
|
+
var whichTypedArray = require_which_typed_array();
|
|
1334
|
+
module.exports = function isTypedArray(value) {
|
|
1335
|
+
return !!whichTypedArray(value);
|
|
1336
|
+
};
|
|
1337
|
+
}));
|
|
1338
|
+
//#endregion
|
|
1339
|
+
//#region ../../node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js
|
|
1340
|
+
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1341
|
+
var isArgumentsObject = require_is_arguments();
|
|
1342
|
+
var isGeneratorFunction = require_is_generator_function();
|
|
1343
|
+
var whichTypedArray = require_which_typed_array();
|
|
1344
|
+
var isTypedArray = require_is_typed_array();
|
|
1345
|
+
function uncurryThis(f) {
|
|
1346
|
+
return f.call.bind(f);
|
|
1347
|
+
}
|
|
1348
|
+
var BigIntSupported = typeof BigInt !== "undefined";
|
|
1349
|
+
var SymbolSupported = typeof Symbol !== "undefined";
|
|
1350
|
+
var ObjectToString = uncurryThis(Object.prototype.toString);
|
|
1351
|
+
var numberValue = uncurryThis(Number.prototype.valueOf);
|
|
1352
|
+
var stringValue = uncurryThis(String.prototype.valueOf);
|
|
1353
|
+
var booleanValue = uncurryThis(Boolean.prototype.valueOf);
|
|
1354
|
+
if (BigIntSupported) var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
|
|
1355
|
+
if (SymbolSupported) var symbolValue = uncurryThis(Symbol.prototype.valueOf);
|
|
1356
|
+
function checkBoxedPrimitive(value, prototypeValueOf) {
|
|
1357
|
+
if (typeof value !== "object") return false;
|
|
1358
|
+
try {
|
|
1359
|
+
prototypeValueOf(value);
|
|
1360
|
+
return true;
|
|
1361
|
+
} catch (e) {
|
|
1362
|
+
return false;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
exports.isArgumentsObject = isArgumentsObject;
|
|
1366
|
+
exports.isGeneratorFunction = isGeneratorFunction;
|
|
1367
|
+
exports.isTypedArray = isTypedArray;
|
|
1368
|
+
function isPromise(input) {
|
|
1369
|
+
return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
|
|
1370
|
+
}
|
|
1371
|
+
exports.isPromise = isPromise;
|
|
1372
|
+
function isArrayBufferView(value) {
|
|
1373
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) return ArrayBuffer.isView(value);
|
|
1374
|
+
return isTypedArray(value) || isDataView(value);
|
|
1375
|
+
}
|
|
1376
|
+
exports.isArrayBufferView = isArrayBufferView;
|
|
1377
|
+
function isUint8Array(value) {
|
|
1378
|
+
return whichTypedArray(value) === "Uint8Array";
|
|
1379
|
+
}
|
|
1380
|
+
exports.isUint8Array = isUint8Array;
|
|
1381
|
+
function isUint8ClampedArray(value) {
|
|
1382
|
+
return whichTypedArray(value) === "Uint8ClampedArray";
|
|
1383
|
+
}
|
|
1384
|
+
exports.isUint8ClampedArray = isUint8ClampedArray;
|
|
1385
|
+
function isUint16Array(value) {
|
|
1386
|
+
return whichTypedArray(value) === "Uint16Array";
|
|
1387
|
+
}
|
|
1388
|
+
exports.isUint16Array = isUint16Array;
|
|
1389
|
+
function isUint32Array(value) {
|
|
1390
|
+
return whichTypedArray(value) === "Uint32Array";
|
|
1391
|
+
}
|
|
1392
|
+
exports.isUint32Array = isUint32Array;
|
|
1393
|
+
function isInt8Array(value) {
|
|
1394
|
+
return whichTypedArray(value) === "Int8Array";
|
|
1395
|
+
}
|
|
1396
|
+
exports.isInt8Array = isInt8Array;
|
|
1397
|
+
function isInt16Array(value) {
|
|
1398
|
+
return whichTypedArray(value) === "Int16Array";
|
|
1399
|
+
}
|
|
1400
|
+
exports.isInt16Array = isInt16Array;
|
|
1401
|
+
function isInt32Array(value) {
|
|
1402
|
+
return whichTypedArray(value) === "Int32Array";
|
|
1403
|
+
}
|
|
1404
|
+
exports.isInt32Array = isInt32Array;
|
|
1405
|
+
function isFloat32Array(value) {
|
|
1406
|
+
return whichTypedArray(value) === "Float32Array";
|
|
1407
|
+
}
|
|
1408
|
+
exports.isFloat32Array = isFloat32Array;
|
|
1409
|
+
function isFloat64Array(value) {
|
|
1410
|
+
return whichTypedArray(value) === "Float64Array";
|
|
1411
|
+
}
|
|
1412
|
+
exports.isFloat64Array = isFloat64Array;
|
|
1413
|
+
function isBigInt64Array(value) {
|
|
1414
|
+
return whichTypedArray(value) === "BigInt64Array";
|
|
1415
|
+
}
|
|
1416
|
+
exports.isBigInt64Array = isBigInt64Array;
|
|
1417
|
+
function isBigUint64Array(value) {
|
|
1418
|
+
return whichTypedArray(value) === "BigUint64Array";
|
|
1419
|
+
}
|
|
1420
|
+
exports.isBigUint64Array = isBigUint64Array;
|
|
1421
|
+
function isMapToString(value) {
|
|
1422
|
+
return ObjectToString(value) === "[object Map]";
|
|
1423
|
+
}
|
|
1424
|
+
isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
|
|
1425
|
+
function isMap(value) {
|
|
1426
|
+
if (typeof Map === "undefined") return false;
|
|
1427
|
+
return isMapToString.working ? isMapToString(value) : value instanceof Map;
|
|
1428
|
+
}
|
|
1429
|
+
exports.isMap = isMap;
|
|
1430
|
+
function isSetToString(value) {
|
|
1431
|
+
return ObjectToString(value) === "[object Set]";
|
|
1432
|
+
}
|
|
1433
|
+
isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
|
|
1434
|
+
function isSet(value) {
|
|
1435
|
+
if (typeof Set === "undefined") return false;
|
|
1436
|
+
return isSetToString.working ? isSetToString(value) : value instanceof Set;
|
|
1437
|
+
}
|
|
1438
|
+
exports.isSet = isSet;
|
|
1439
|
+
function isWeakMapToString(value) {
|
|
1440
|
+
return ObjectToString(value) === "[object WeakMap]";
|
|
1441
|
+
}
|
|
1442
|
+
isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
|
|
1443
|
+
function isWeakMap(value) {
|
|
1444
|
+
if (typeof WeakMap === "undefined") return false;
|
|
1445
|
+
return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
|
|
1446
|
+
}
|
|
1447
|
+
exports.isWeakMap = isWeakMap;
|
|
1448
|
+
function isWeakSetToString(value) {
|
|
1449
|
+
return ObjectToString(value) === "[object WeakSet]";
|
|
1450
|
+
}
|
|
1451
|
+
isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
|
|
1452
|
+
function isWeakSet(value) {
|
|
1453
|
+
return isWeakSetToString(value);
|
|
1454
|
+
}
|
|
1455
|
+
exports.isWeakSet = isWeakSet;
|
|
1456
|
+
function isArrayBufferToString(value) {
|
|
1457
|
+
return ObjectToString(value) === "[object ArrayBuffer]";
|
|
1458
|
+
}
|
|
1459
|
+
isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(/* @__PURE__ */ new ArrayBuffer());
|
|
1460
|
+
function isArrayBuffer(value) {
|
|
1461
|
+
if (typeof ArrayBuffer === "undefined") return false;
|
|
1462
|
+
return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
|
|
1463
|
+
}
|
|
1464
|
+
exports.isArrayBuffer = isArrayBuffer;
|
|
1465
|
+
function isDataViewToString(value) {
|
|
1466
|
+
return ObjectToString(value) === "[object DataView]";
|
|
1467
|
+
}
|
|
1468
|
+
isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(/* @__PURE__ */ new ArrayBuffer(1), 0, 1));
|
|
1469
|
+
function isDataView(value) {
|
|
1470
|
+
if (typeof DataView === "undefined") return false;
|
|
1471
|
+
return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
|
|
1472
|
+
}
|
|
1473
|
+
exports.isDataView = isDataView;
|
|
1474
|
+
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
|
|
1475
|
+
function isSharedArrayBufferToString(value) {
|
|
1476
|
+
return ObjectToString(value) === "[object SharedArrayBuffer]";
|
|
1477
|
+
}
|
|
1478
|
+
function isSharedArrayBuffer(value) {
|
|
1479
|
+
if (typeof SharedArrayBufferCopy === "undefined") return false;
|
|
1480
|
+
if (typeof isSharedArrayBufferToString.working === "undefined") isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
|
|
1481
|
+
return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
|
|
1482
|
+
}
|
|
1483
|
+
exports.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
1484
|
+
function isAsyncFunction(value) {
|
|
1485
|
+
return ObjectToString(value) === "[object AsyncFunction]";
|
|
1486
|
+
}
|
|
1487
|
+
exports.isAsyncFunction = isAsyncFunction;
|
|
1488
|
+
function isMapIterator(value) {
|
|
1489
|
+
return ObjectToString(value) === "[object Map Iterator]";
|
|
1490
|
+
}
|
|
1491
|
+
exports.isMapIterator = isMapIterator;
|
|
1492
|
+
function isSetIterator(value) {
|
|
1493
|
+
return ObjectToString(value) === "[object Set Iterator]";
|
|
1494
|
+
}
|
|
1495
|
+
exports.isSetIterator = isSetIterator;
|
|
1496
|
+
function isGeneratorObject(value) {
|
|
1497
|
+
return ObjectToString(value) === "[object Generator]";
|
|
1498
|
+
}
|
|
1499
|
+
exports.isGeneratorObject = isGeneratorObject;
|
|
1500
|
+
function isWebAssemblyCompiledModule(value) {
|
|
1501
|
+
return ObjectToString(value) === "[object WebAssembly.Module]";
|
|
1502
|
+
}
|
|
1503
|
+
exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
1504
|
+
function isNumberObject(value) {
|
|
1505
|
+
return checkBoxedPrimitive(value, numberValue);
|
|
1506
|
+
}
|
|
1507
|
+
exports.isNumberObject = isNumberObject;
|
|
1508
|
+
function isStringObject(value) {
|
|
1509
|
+
return checkBoxedPrimitive(value, stringValue);
|
|
1510
|
+
}
|
|
1511
|
+
exports.isStringObject = isStringObject;
|
|
1512
|
+
function isBooleanObject(value) {
|
|
1513
|
+
return checkBoxedPrimitive(value, booleanValue);
|
|
1514
|
+
}
|
|
1515
|
+
exports.isBooleanObject = isBooleanObject;
|
|
1516
|
+
function isBigIntObject(value) {
|
|
1517
|
+
return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
|
|
1518
|
+
}
|
|
1519
|
+
exports.isBigIntObject = isBigIntObject;
|
|
1520
|
+
function isSymbolObject(value) {
|
|
1521
|
+
return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
|
|
1522
|
+
}
|
|
1523
|
+
exports.isSymbolObject = isSymbolObject;
|
|
1524
|
+
function isBoxedPrimitive(value) {
|
|
1525
|
+
return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
|
|
1526
|
+
}
|
|
1527
|
+
exports.isBoxedPrimitive = isBoxedPrimitive;
|
|
1528
|
+
function isAnyArrayBuffer(value) {
|
|
1529
|
+
return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
|
|
1530
|
+
}
|
|
1531
|
+
exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
1532
|
+
[
|
|
1533
|
+
"isProxy",
|
|
1534
|
+
"isExternal",
|
|
1535
|
+
"isModuleNamespaceObject"
|
|
1536
|
+
].forEach(function(method) {
|
|
1537
|
+
Object.defineProperty(exports, method, {
|
|
1538
|
+
enumerable: false,
|
|
1539
|
+
value: function() {
|
|
1540
|
+
throw new Error(method + " is not supported in userland");
|
|
1541
|
+
}
|
|
1542
|
+
});
|
|
1543
|
+
});
|
|
1544
|
+
}));
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region ../../node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBuffer.js
|
|
1547
|
+
var require_isBuffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1548
|
+
module.exports = function isBuffer(arg) {
|
|
1549
|
+
return arg instanceof Buffer;
|
|
1550
|
+
};
|
|
1551
|
+
}));
|
|
1552
|
+
//#endregion
|
|
1553
|
+
//#region ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
|
|
1554
|
+
var require_inherits_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1555
|
+
if (typeof Object.create === "function") module.exports = function inherits(ctor, superCtor) {
|
|
1556
|
+
if (superCtor) {
|
|
1557
|
+
ctor.super_ = superCtor;
|
|
1558
|
+
ctor.prototype = Object.create(superCtor.prototype, { constructor: {
|
|
1559
|
+
value: ctor,
|
|
1560
|
+
enumerable: false,
|
|
1561
|
+
writable: true,
|
|
1562
|
+
configurable: true
|
|
1563
|
+
} });
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
else module.exports = function inherits(ctor, superCtor) {
|
|
1567
|
+
if (superCtor) {
|
|
1568
|
+
ctor.super_ = superCtor;
|
|
1569
|
+
var TempCtor = function() {};
|
|
1570
|
+
TempCtor.prototype = superCtor.prototype;
|
|
1571
|
+
ctor.prototype = new TempCtor();
|
|
1572
|
+
ctor.prototype.constructor = ctor;
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
}));
|
|
1576
|
+
//#endregion
|
|
1577
|
+
//#region ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
|
|
1578
|
+
var require_inherits = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1579
|
+
try {
|
|
1580
|
+
var util = require__require_as_import_util();
|
|
1581
|
+
/* istanbul ignore next */
|
|
1582
|
+
if (typeof util.inherits !== "function") throw "";
|
|
1583
|
+
module.exports = util.inherits;
|
|
1584
|
+
} catch (e) {
|
|
1585
|
+
/* istanbul ignore next */
|
|
1586
|
+
module.exports = require_inherits_browser();
|
|
1587
|
+
}
|
|
1588
|
+
}));
|
|
1589
|
+
//#endregion
|
|
1590
|
+
//#region ../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js
|
|
1591
|
+
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1592
|
+
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(obj) {
|
|
1593
|
+
var keys = Object.keys(obj);
|
|
1594
|
+
var descriptors = {};
|
|
1595
|
+
for (var i = 0; i < keys.length; i++) descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);
|
|
1596
|
+
return descriptors;
|
|
1597
|
+
};
|
|
1598
|
+
var formatRegExp = /%[sdj%]/g;
|
|
1599
|
+
exports.format = function(f) {
|
|
1600
|
+
if (!isString(f)) {
|
|
1601
|
+
var objects = [];
|
|
1602
|
+
for (var i = 0; i < arguments.length; i++) objects.push(inspect(arguments[i]));
|
|
1603
|
+
return objects.join(" ");
|
|
1604
|
+
}
|
|
1605
|
+
var i = 1;
|
|
1606
|
+
var args = arguments;
|
|
1607
|
+
var len = args.length;
|
|
1608
|
+
var str = String(f).replace(formatRegExp, function(x) {
|
|
1609
|
+
if (x === "%%") return "%";
|
|
1610
|
+
if (i >= len) return x;
|
|
1611
|
+
switch (x) {
|
|
1612
|
+
case "%s": return String(args[i++]);
|
|
1613
|
+
case "%d": return Number(args[i++]);
|
|
1614
|
+
case "%j": try {
|
|
1615
|
+
return JSON.stringify(args[i++]);
|
|
1616
|
+
} catch (_) {
|
|
1617
|
+
return "[Circular]";
|
|
1618
|
+
}
|
|
1619
|
+
default: return x;
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
for (var x = args[i]; i < len; x = args[++i]) if (isNull(x) || !isObject(x)) str += " " + x;
|
|
1623
|
+
else str += " " + inspect(x);
|
|
1624
|
+
return str;
|
|
1625
|
+
};
|
|
1626
|
+
exports.deprecate = function(fn, msg) {
|
|
1627
|
+
if (typeof process !== "undefined" && process.noDeprecation === true) return fn;
|
|
1628
|
+
if (typeof process === "undefined") return function() {
|
|
1629
|
+
return exports.deprecate(fn, msg).apply(this, arguments);
|
|
1630
|
+
};
|
|
1631
|
+
var warned = false;
|
|
1632
|
+
function deprecated() {
|
|
1633
|
+
if (!warned) {
|
|
1634
|
+
if (process.throwDeprecation) throw new Error(msg);
|
|
1635
|
+
else if (process.traceDeprecation) console.trace(msg);
|
|
1636
|
+
else console.error(msg);
|
|
1637
|
+
warned = true;
|
|
1638
|
+
}
|
|
1639
|
+
return fn.apply(this, arguments);
|
|
1640
|
+
}
|
|
1641
|
+
return deprecated;
|
|
1642
|
+
};
|
|
1643
|
+
var debugs = {};
|
|
1644
|
+
var debugEnvRegex = /^$/;
|
|
1645
|
+
if (process.env.NODE_DEBUG) {
|
|
1646
|
+
var debugEnv = process.env.NODE_DEBUG;
|
|
1647
|
+
debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase();
|
|
1648
|
+
debugEnvRegex = new RegExp("^" + debugEnv + "$", "i");
|
|
1649
|
+
}
|
|
1650
|
+
exports.debuglog = function(set) {
|
|
1651
|
+
set = set.toUpperCase();
|
|
1652
|
+
if (!debugs[set]) {
|
|
1653
|
+
if (debugEnvRegex.test(set)) {
|
|
1654
|
+
var pid = process.pid;
|
|
1655
|
+
debugs[set] = function() {
|
|
1656
|
+
var msg = exports.format.apply(exports, arguments);
|
|
1657
|
+
console.error("%s %d: %s", set, pid, msg);
|
|
1658
|
+
};
|
|
1659
|
+
} else debugs[set] = function() {};
|
|
1660
|
+
}
|
|
1661
|
+
return debugs[set];
|
|
1662
|
+
};
|
|
1663
|
+
function inspect(obj, opts) {
|
|
1664
|
+
var ctx = {
|
|
1665
|
+
seen: [],
|
|
1666
|
+
stylize: stylizeNoColor
|
|
1667
|
+
};
|
|
1668
|
+
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1669
|
+
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1670
|
+
if (isBoolean(opts)) ctx.showHidden = opts;
|
|
1671
|
+
else if (opts) exports._extend(ctx, opts);
|
|
1672
|
+
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1673
|
+
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1674
|
+
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1675
|
+
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1676
|
+
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1677
|
+
return formatValue(ctx, obj, ctx.depth);
|
|
1678
|
+
}
|
|
1679
|
+
exports.inspect = inspect;
|
|
1680
|
+
inspect.colors = {
|
|
1681
|
+
"bold": [1, 22],
|
|
1682
|
+
"italic": [3, 23],
|
|
1683
|
+
"underline": [4, 24],
|
|
1684
|
+
"inverse": [7, 27],
|
|
1685
|
+
"white": [37, 39],
|
|
1686
|
+
"grey": [90, 39],
|
|
1687
|
+
"black": [30, 39],
|
|
1688
|
+
"blue": [34, 39],
|
|
1689
|
+
"cyan": [36, 39],
|
|
1690
|
+
"green": [32, 39],
|
|
1691
|
+
"magenta": [35, 39],
|
|
1692
|
+
"red": [31, 39],
|
|
1693
|
+
"yellow": [33, 39]
|
|
1694
|
+
};
|
|
1695
|
+
inspect.styles = {
|
|
1696
|
+
"special": "cyan",
|
|
1697
|
+
"number": "yellow",
|
|
1698
|
+
"boolean": "yellow",
|
|
1699
|
+
"undefined": "grey",
|
|
1700
|
+
"null": "bold",
|
|
1701
|
+
"string": "green",
|
|
1702
|
+
"date": "magenta",
|
|
1703
|
+
"regexp": "red"
|
|
1704
|
+
};
|
|
1705
|
+
function stylizeWithColor(str, styleType) {
|
|
1706
|
+
var style = inspect.styles[styleType];
|
|
1707
|
+
if (style) return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
|
|
1708
|
+
else return str;
|
|
1709
|
+
}
|
|
1710
|
+
function stylizeNoColor(str, styleType) {
|
|
1711
|
+
return str;
|
|
1712
|
+
}
|
|
1713
|
+
function arrayToHash(array) {
|
|
1714
|
+
var hash = {};
|
|
1715
|
+
array.forEach(function(val, idx) {
|
|
1716
|
+
hash[val] = true;
|
|
1717
|
+
});
|
|
1718
|
+
return hash;
|
|
1719
|
+
}
|
|
1720
|
+
function formatValue(ctx, value, recurseTimes) {
|
|
1721
|
+
if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== exports.inspect && !(value.constructor && value.constructor.prototype === value)) {
|
|
1722
|
+
var ret = value.inspect(recurseTimes, ctx);
|
|
1723
|
+
if (!isString(ret)) ret = formatValue(ctx, ret, recurseTimes);
|
|
1724
|
+
return ret;
|
|
1725
|
+
}
|
|
1726
|
+
var primitive = formatPrimitive(ctx, value);
|
|
1727
|
+
if (primitive) return primitive;
|
|
1728
|
+
var keys = Object.keys(value);
|
|
1729
|
+
var visibleKeys = arrayToHash(keys);
|
|
1730
|
+
if (ctx.showHidden) keys = Object.getOwnPropertyNames(value);
|
|
1731
|
+
if (isError(value) && (keys.indexOf("message") >= 0 || keys.indexOf("description") >= 0)) return formatError(value);
|
|
1732
|
+
if (keys.length === 0) {
|
|
1733
|
+
if (isFunction(value)) {
|
|
1734
|
+
var name = value.name ? ": " + value.name : "";
|
|
1735
|
+
return ctx.stylize("[Function" + name + "]", "special");
|
|
1736
|
+
}
|
|
1737
|
+
if (isRegExp(value)) return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
|
|
1738
|
+
if (isDate(value)) return ctx.stylize(Date.prototype.toString.call(value), "date");
|
|
1739
|
+
if (isError(value)) return formatError(value);
|
|
1740
|
+
}
|
|
1741
|
+
var base = "", array = false, braces = ["{", "}"];
|
|
1742
|
+
if (isArray(value)) {
|
|
1743
|
+
array = true;
|
|
1744
|
+
braces = ["[", "]"];
|
|
1745
|
+
}
|
|
1746
|
+
if (isFunction(value)) base = " [Function" + (value.name ? ": " + value.name : "") + "]";
|
|
1747
|
+
if (isRegExp(value)) base = " " + RegExp.prototype.toString.call(value);
|
|
1748
|
+
if (isDate(value)) base = " " + Date.prototype.toUTCString.call(value);
|
|
1749
|
+
if (isError(value)) base = " " + formatError(value);
|
|
1750
|
+
if (keys.length === 0 && (!array || value.length == 0)) return braces[0] + base + braces[1];
|
|
1751
|
+
if (recurseTimes < 0) {
|
|
1752
|
+
if (isRegExp(value)) return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
|
|
1753
|
+
else return ctx.stylize("[Object]", "special");
|
|
1754
|
+
}
|
|
1755
|
+
ctx.seen.push(value);
|
|
1756
|
+
var output;
|
|
1757
|
+
if (array) output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1758
|
+
else output = keys.map(function(key) {
|
|
1759
|
+
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1760
|
+
});
|
|
1761
|
+
ctx.seen.pop();
|
|
1762
|
+
return reduceToSingleString(output, base, braces);
|
|
1763
|
+
}
|
|
1764
|
+
function formatPrimitive(ctx, value) {
|
|
1765
|
+
if (isUndefined(value)) return ctx.stylize("undefined", "undefined");
|
|
1766
|
+
if (isString(value)) {
|
|
1767
|
+
var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, "\"") + "'";
|
|
1768
|
+
return ctx.stylize(simple, "string");
|
|
1769
|
+
}
|
|
1770
|
+
if (isNumber(value)) return ctx.stylize("" + value, "number");
|
|
1771
|
+
if (isBoolean(value)) return ctx.stylize("" + value, "boolean");
|
|
1772
|
+
if (isNull(value)) return ctx.stylize("null", "null");
|
|
1773
|
+
}
|
|
1774
|
+
function formatError(value) {
|
|
1775
|
+
return "[" + Error.prototype.toString.call(value) + "]";
|
|
1776
|
+
}
|
|
1777
|
+
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1778
|
+
var output = [];
|
|
1779
|
+
for (var i = 0, l = value.length; i < l; ++i) if (hasOwnProperty(value, String(i))) output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
|
|
1780
|
+
else output.push("");
|
|
1781
|
+
keys.forEach(function(key) {
|
|
1782
|
+
if (!key.match(/^\d+$/)) output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
|
|
1783
|
+
});
|
|
1784
|
+
return output;
|
|
1785
|
+
}
|
|
1786
|
+
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1787
|
+
var name, str, desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1788
|
+
if (desc.get) {
|
|
1789
|
+
if (desc.set) str = ctx.stylize("[Getter/Setter]", "special");
|
|
1790
|
+
else str = ctx.stylize("[Getter]", "special");
|
|
1791
|
+
} else if (desc.set) str = ctx.stylize("[Setter]", "special");
|
|
1792
|
+
if (!hasOwnProperty(visibleKeys, key)) name = "[" + key + "]";
|
|
1793
|
+
if (!str) {
|
|
1794
|
+
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1795
|
+
if (isNull(recurseTimes)) str = formatValue(ctx, desc.value, null);
|
|
1796
|
+
else str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1797
|
+
if (str.indexOf("\n") > -1) {
|
|
1798
|
+
if (array) str = str.split("\n").map(function(line) {
|
|
1799
|
+
return " " + line;
|
|
1800
|
+
}).join("\n").slice(2);
|
|
1801
|
+
else str = "\n" + str.split("\n").map(function(line) {
|
|
1802
|
+
return " " + line;
|
|
1803
|
+
}).join("\n");
|
|
1804
|
+
}
|
|
1805
|
+
} else str = ctx.stylize("[Circular]", "special");
|
|
1806
|
+
}
|
|
1807
|
+
if (isUndefined(name)) {
|
|
1808
|
+
if (array && key.match(/^\d+$/)) return str;
|
|
1809
|
+
name = JSON.stringify("" + key);
|
|
1810
|
+
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1811
|
+
name = name.slice(1, -1);
|
|
1812
|
+
name = ctx.stylize(name, "name");
|
|
1813
|
+
} else {
|
|
1814
|
+
name = name.replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
|
|
1815
|
+
name = ctx.stylize(name, "string");
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
return name + ": " + str;
|
|
1819
|
+
}
|
|
1820
|
+
function reduceToSingleString(output, base, braces) {
|
|
1821
|
+
var numLinesEst = 0;
|
|
1822
|
+
if (output.reduce(function(prev, cur) {
|
|
1823
|
+
numLinesEst++;
|
|
1824
|
+
if (cur.indexOf("\n") >= 0) numLinesEst++;
|
|
1825
|
+
return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
1826
|
+
}, 0) > 60) return braces[0] + (base === "" ? "" : base + "\n ") + " " + output.join(",\n ") + " " + braces[1];
|
|
1827
|
+
return braces[0] + base + " " + output.join(", ") + " " + braces[1];
|
|
1828
|
+
}
|
|
1829
|
+
exports.types = require_types();
|
|
1830
|
+
function isArray(ar) {
|
|
1831
|
+
return Array.isArray(ar);
|
|
1832
|
+
}
|
|
1833
|
+
exports.isArray = isArray;
|
|
1834
|
+
function isBoolean(arg) {
|
|
1835
|
+
return typeof arg === "boolean";
|
|
1836
|
+
}
|
|
1837
|
+
exports.isBoolean = isBoolean;
|
|
1838
|
+
function isNull(arg) {
|
|
1839
|
+
return arg === null;
|
|
1840
|
+
}
|
|
1841
|
+
exports.isNull = isNull;
|
|
1842
|
+
function isNullOrUndefined(arg) {
|
|
1843
|
+
return arg == null;
|
|
1844
|
+
}
|
|
1845
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
1846
|
+
function isNumber(arg) {
|
|
1847
|
+
return typeof arg === "number";
|
|
1848
|
+
}
|
|
1849
|
+
exports.isNumber = isNumber;
|
|
1850
|
+
function isString(arg) {
|
|
1851
|
+
return typeof arg === "string";
|
|
1852
|
+
}
|
|
1853
|
+
exports.isString = isString;
|
|
1854
|
+
function isSymbol(arg) {
|
|
1855
|
+
return typeof arg === "symbol";
|
|
1856
|
+
}
|
|
1857
|
+
exports.isSymbol = isSymbol;
|
|
1858
|
+
function isUndefined(arg) {
|
|
1859
|
+
return arg === void 0;
|
|
1860
|
+
}
|
|
1861
|
+
exports.isUndefined = isUndefined;
|
|
1862
|
+
function isRegExp(re) {
|
|
1863
|
+
return isObject(re) && objectToString(re) === "[object RegExp]";
|
|
1864
|
+
}
|
|
1865
|
+
exports.isRegExp = isRegExp;
|
|
1866
|
+
exports.types.isRegExp = isRegExp;
|
|
1867
|
+
function isObject(arg) {
|
|
1868
|
+
return typeof arg === "object" && arg !== null;
|
|
1869
|
+
}
|
|
1870
|
+
exports.isObject = isObject;
|
|
1871
|
+
function isDate(d) {
|
|
1872
|
+
return isObject(d) && objectToString(d) === "[object Date]";
|
|
1873
|
+
}
|
|
1874
|
+
exports.isDate = isDate;
|
|
1875
|
+
exports.types.isDate = isDate;
|
|
1876
|
+
function isError(e) {
|
|
1877
|
+
return isObject(e) && (objectToString(e) === "[object Error]" || e instanceof Error);
|
|
1878
|
+
}
|
|
1879
|
+
exports.isError = isError;
|
|
1880
|
+
exports.types.isNativeError = isError;
|
|
1881
|
+
function isFunction(arg) {
|
|
1882
|
+
return typeof arg === "function";
|
|
1883
|
+
}
|
|
1884
|
+
exports.isFunction = isFunction;
|
|
1885
|
+
function isPrimitive(arg) {
|
|
1886
|
+
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined";
|
|
1887
|
+
}
|
|
1888
|
+
exports.isPrimitive = isPrimitive;
|
|
1889
|
+
exports.isBuffer = require_isBuffer();
|
|
1890
|
+
function objectToString(o) {
|
|
1891
|
+
return Object.prototype.toString.call(o);
|
|
1892
|
+
}
|
|
1893
|
+
function pad(n) {
|
|
1894
|
+
return n < 10 ? "0" + n.toString(10) : n.toString(10);
|
|
1895
|
+
}
|
|
1896
|
+
var months = [
|
|
1897
|
+
"Jan",
|
|
1898
|
+
"Feb",
|
|
1899
|
+
"Mar",
|
|
1900
|
+
"Apr",
|
|
1901
|
+
"May",
|
|
1902
|
+
"Jun",
|
|
1903
|
+
"Jul",
|
|
1904
|
+
"Aug",
|
|
1905
|
+
"Sep",
|
|
1906
|
+
"Oct",
|
|
1907
|
+
"Nov",
|
|
1908
|
+
"Dec"
|
|
1909
|
+
];
|
|
1910
|
+
function timestamp() {
|
|
1911
|
+
var d = /* @__PURE__ */ new Date();
|
|
1912
|
+
var time = [
|
|
1913
|
+
pad(d.getHours()),
|
|
1914
|
+
pad(d.getMinutes()),
|
|
1915
|
+
pad(d.getSeconds())
|
|
1916
|
+
].join(":");
|
|
1917
|
+
return [
|
|
1918
|
+
d.getDate(),
|
|
1919
|
+
months[d.getMonth()],
|
|
1920
|
+
time
|
|
1921
|
+
].join(" ");
|
|
1922
|
+
}
|
|
1923
|
+
exports.log = function() {
|
|
1924
|
+
console.log("%s - %s", timestamp(), exports.format.apply(exports, arguments));
|
|
1925
|
+
};
|
|
1926
|
+
exports.inherits = require_inherits();
|
|
1927
|
+
exports._extend = function(origin, add) {
|
|
1928
|
+
if (!add || !isObject(add)) return origin;
|
|
1929
|
+
var keys = Object.keys(add);
|
|
1930
|
+
var i = keys.length;
|
|
1931
|
+
while (i--) origin[keys[i]] = add[keys[i]];
|
|
1932
|
+
return origin;
|
|
1933
|
+
};
|
|
1934
|
+
function hasOwnProperty(obj, prop) {
|
|
1935
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1936
|
+
}
|
|
1937
|
+
var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
|
|
1938
|
+
exports.promisify = function promisify(original) {
|
|
1939
|
+
if (typeof original !== "function") throw new TypeError("The \"original\" argument must be of type Function");
|
|
1940
|
+
if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
|
|
1941
|
+
var fn = original[kCustomPromisifiedSymbol];
|
|
1942
|
+
if (typeof fn !== "function") throw new TypeError("The \"util.promisify.custom\" argument must be of type Function");
|
|
1943
|
+
Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
1944
|
+
value: fn,
|
|
1945
|
+
enumerable: false,
|
|
1946
|
+
writable: false,
|
|
1947
|
+
configurable: true
|
|
1948
|
+
});
|
|
1949
|
+
return fn;
|
|
1950
|
+
}
|
|
1951
|
+
function fn() {
|
|
1952
|
+
var promiseResolve, promiseReject;
|
|
1953
|
+
var promise = new Promise(function(resolve, reject) {
|
|
1954
|
+
promiseResolve = resolve;
|
|
1955
|
+
promiseReject = reject;
|
|
1956
|
+
});
|
|
1957
|
+
var args = [];
|
|
1958
|
+
for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);
|
|
1959
|
+
args.push(function(err, value) {
|
|
1960
|
+
if (err) promiseReject(err);
|
|
1961
|
+
else promiseResolve(value);
|
|
1962
|
+
});
|
|
1963
|
+
try {
|
|
1964
|
+
original.apply(this, args);
|
|
1965
|
+
} catch (err) {
|
|
1966
|
+
promiseReject(err);
|
|
1967
|
+
}
|
|
1968
|
+
return promise;
|
|
1969
|
+
}
|
|
1970
|
+
Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
|
|
1971
|
+
if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
1972
|
+
value: fn,
|
|
1973
|
+
enumerable: false,
|
|
1974
|
+
writable: false,
|
|
1975
|
+
configurable: true
|
|
1976
|
+
});
|
|
1977
|
+
return Object.defineProperties(fn, getOwnPropertyDescriptors(original));
|
|
1978
|
+
};
|
|
1979
|
+
exports.promisify.custom = kCustomPromisifiedSymbol;
|
|
1980
|
+
function callbackifyOnRejected(reason, cb) {
|
|
1981
|
+
if (!reason) {
|
|
1982
|
+
var newReason = /* @__PURE__ */ new Error("Promise was rejected with a falsy value");
|
|
1983
|
+
newReason.reason = reason;
|
|
1984
|
+
reason = newReason;
|
|
1985
|
+
}
|
|
1986
|
+
return cb(reason);
|
|
1987
|
+
}
|
|
1988
|
+
function callbackify(original) {
|
|
1989
|
+
if (typeof original !== "function") throw new TypeError("The \"original\" argument must be of type Function");
|
|
1990
|
+
function callbackified() {
|
|
1991
|
+
var args = [];
|
|
1992
|
+
for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);
|
|
1993
|
+
var maybeCb = args.pop();
|
|
1994
|
+
if (typeof maybeCb !== "function") throw new TypeError("The last argument must be of type Function");
|
|
1995
|
+
var self = this;
|
|
1996
|
+
var cb = function() {
|
|
1997
|
+
return maybeCb.apply(self, arguments);
|
|
1998
|
+
};
|
|
1999
|
+
original.apply(this, args).then(function(ret) {
|
|
2000
|
+
process.nextTick(cb.bind(null, null, ret));
|
|
2001
|
+
}, function(rej) {
|
|
2002
|
+
process.nextTick(callbackifyOnRejected.bind(null, rej, cb));
|
|
2003
|
+
});
|
|
2004
|
+
}
|
|
2005
|
+
Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
|
|
2006
|
+
Object.defineProperties(callbackified, getOwnPropertyDescriptors(original));
|
|
2007
|
+
return callbackified;
|
|
2008
|
+
}
|
|
2009
|
+
exports.callbackify = callbackify;
|
|
2010
|
+
}));
|
|
2011
|
+
//#endregion
|
|
2012
|
+
//#region \0require-as-import:util
|
|
2013
|
+
var require__require_as_import_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2014
|
+
module.exports = (/* @__PURE__ */ __toESM(require_util())).default;
|
|
2015
|
+
}));
|
|
2016
|
+
//#endregion
|
|
2017
|
+
//#region ../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/util/comparisons.js
|
|
2018
|
+
var require_comparisons = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2019
|
+
function _slicedToArray(arr, i) {
|
|
2020
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
2021
|
+
}
|
|
2022
|
+
function _nonIterableRest() {
|
|
2023
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2024
|
+
}
|
|
2025
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
2026
|
+
if (!o) return;
|
|
2027
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
2028
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2029
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2030
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
2031
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
2032
|
+
}
|
|
2033
|
+
function _arrayLikeToArray(arr, len) {
|
|
2034
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
2035
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
2036
|
+
return arr2;
|
|
2037
|
+
}
|
|
2038
|
+
function _iterableToArrayLimit(r, l) {
|
|
2039
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
2040
|
+
if (null != t) {
|
|
2041
|
+
var e, n, i, u, a = [], f = !0, o = !1;
|
|
2042
|
+
try {
|
|
2043
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
2044
|
+
if (Object(t) !== t) return;
|
|
2045
|
+
f = !1;
|
|
2046
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
2047
|
+
} catch (r) {
|
|
2048
|
+
o = !0, n = r;
|
|
2049
|
+
} finally {
|
|
2050
|
+
try {
|
|
2051
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
2052
|
+
} finally {
|
|
2053
|
+
if (o) throw n;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
return a;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
function _arrayWithHoles(arr) {
|
|
2060
|
+
if (Array.isArray(arr)) return arr;
|
|
2061
|
+
}
|
|
2062
|
+
function _typeof(o) {
|
|
2063
|
+
"@babel/helpers - typeof";
|
|
2064
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
2065
|
+
return typeof o;
|
|
2066
|
+
} : function(o) {
|
|
2067
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
2068
|
+
}, _typeof(o);
|
|
2069
|
+
}
|
|
2070
|
+
var regexFlagsSupported = /a/g.flags !== void 0;
|
|
2071
|
+
var arrayFromSet = function arrayFromSet(set) {
|
|
2072
|
+
var array = [];
|
|
2073
|
+
set.forEach(function(value) {
|
|
2074
|
+
return array.push(value);
|
|
2075
|
+
});
|
|
2076
|
+
return array;
|
|
2077
|
+
};
|
|
2078
|
+
var arrayFromMap = function arrayFromMap(map) {
|
|
2079
|
+
var array = [];
|
|
2080
|
+
map.forEach(function(value, key) {
|
|
2081
|
+
return array.push([key, value]);
|
|
2082
|
+
});
|
|
2083
|
+
return array;
|
|
2084
|
+
};
|
|
2085
|
+
var objectIs = Object.is ? Object.is : require_object_is();
|
|
2086
|
+
var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() {
|
|
2087
|
+
return [];
|
|
2088
|
+
};
|
|
2089
|
+
var numberIsNaN = Number.isNaN ? Number.isNaN : require_is_nan();
|
|
2090
|
+
function uncurryThis(f) {
|
|
2091
|
+
return f.call.bind(f);
|
|
2092
|
+
}
|
|
2093
|
+
var hasOwnProperty = uncurryThis(Object.prototype.hasOwnProperty);
|
|
2094
|
+
var propertyIsEnumerable = uncurryThis(Object.prototype.propertyIsEnumerable);
|
|
2095
|
+
var objectToString = uncurryThis(Object.prototype.toString);
|
|
2096
|
+
var _require$types = require__require_as_import_util().types;
|
|
2097
|
+
var isAnyArrayBuffer = _require$types.isAnyArrayBuffer;
|
|
2098
|
+
var isArrayBufferView = _require$types.isArrayBufferView;
|
|
2099
|
+
var isDate = _require$types.isDate;
|
|
2100
|
+
var isMap = _require$types.isMap;
|
|
2101
|
+
var isRegExp = _require$types.isRegExp;
|
|
2102
|
+
var isSet = _require$types.isSet;
|
|
2103
|
+
var isNativeError = _require$types.isNativeError;
|
|
2104
|
+
var isBoxedPrimitive = _require$types.isBoxedPrimitive;
|
|
2105
|
+
var isNumberObject = _require$types.isNumberObject;
|
|
2106
|
+
var isStringObject = _require$types.isStringObject;
|
|
2107
|
+
var isBooleanObject = _require$types.isBooleanObject;
|
|
2108
|
+
var isBigIntObject = _require$types.isBigIntObject;
|
|
2109
|
+
var isSymbolObject = _require$types.isSymbolObject;
|
|
2110
|
+
var isFloat32Array = _require$types.isFloat32Array;
|
|
2111
|
+
var isFloat64Array = _require$types.isFloat64Array;
|
|
2112
|
+
function isNonIndex(key) {
|
|
2113
|
+
if (key.length === 0 || key.length > 10) return true;
|
|
2114
|
+
for (var i = 0; i < key.length; i++) {
|
|
2115
|
+
var code = key.charCodeAt(i);
|
|
2116
|
+
if (code < 48 || code > 57) return true;
|
|
2117
|
+
}
|
|
2118
|
+
return key.length === 10 && key >= Math.pow(2, 32);
|
|
2119
|
+
}
|
|
2120
|
+
function getOwnNonIndexProperties(value) {
|
|
2121
|
+
return Object.keys(value).filter(isNonIndex).concat(objectGetOwnPropertySymbols(value).filter(Object.prototype.propertyIsEnumerable.bind(value)));
|
|
2122
|
+
}
|
|
2123
|
+
function compare(a, b) {
|
|
2124
|
+
if (a === b) return 0;
|
|
2125
|
+
var x = a.length;
|
|
2126
|
+
var y = b.length;
|
|
2127
|
+
for (var i = 0, len = Math.min(x, y); i < len; ++i) if (a[i] !== b[i]) {
|
|
2128
|
+
x = a[i];
|
|
2129
|
+
y = b[i];
|
|
2130
|
+
break;
|
|
2131
|
+
}
|
|
2132
|
+
if (x < y) return -1;
|
|
2133
|
+
if (y < x) return 1;
|
|
2134
|
+
return 0;
|
|
2135
|
+
}
|
|
2136
|
+
var ONLY_ENUMERABLE = void 0;
|
|
2137
|
+
var kStrict = true;
|
|
2138
|
+
var kLoose = false;
|
|
2139
|
+
var kNoIterator = 0;
|
|
2140
|
+
var kIsArray = 1;
|
|
2141
|
+
var kIsSet = 2;
|
|
2142
|
+
var kIsMap = 3;
|
|
2143
|
+
function areSimilarRegExps(a, b) {
|
|
2144
|
+
return regexFlagsSupported ? a.source === b.source && a.flags === b.flags : RegExp.prototype.toString.call(a) === RegExp.prototype.toString.call(b);
|
|
2145
|
+
}
|
|
2146
|
+
function areSimilarFloatArrays(a, b) {
|
|
2147
|
+
if (a.byteLength !== b.byteLength) return false;
|
|
2148
|
+
for (var offset = 0; offset < a.byteLength; offset++) if (a[offset] !== b[offset]) return false;
|
|
2149
|
+
return true;
|
|
2150
|
+
}
|
|
2151
|
+
function areSimilarTypedArrays(a, b) {
|
|
2152
|
+
if (a.byteLength !== b.byteLength) return false;
|
|
2153
|
+
return compare(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)) === 0;
|
|
2154
|
+
}
|
|
2155
|
+
function areEqualArrayBuffers(buf1, buf2) {
|
|
2156
|
+
return buf1.byteLength === buf2.byteLength && compare(new Uint8Array(buf1), new Uint8Array(buf2)) === 0;
|
|
2157
|
+
}
|
|
2158
|
+
function isEqualBoxedPrimitive(val1, val2) {
|
|
2159
|
+
if (isNumberObject(val1)) return isNumberObject(val2) && objectIs(Number.prototype.valueOf.call(val1), Number.prototype.valueOf.call(val2));
|
|
2160
|
+
if (isStringObject(val1)) return isStringObject(val2) && String.prototype.valueOf.call(val1) === String.prototype.valueOf.call(val2);
|
|
2161
|
+
if (isBooleanObject(val1)) return isBooleanObject(val2) && Boolean.prototype.valueOf.call(val1) === Boolean.prototype.valueOf.call(val2);
|
|
2162
|
+
if (isBigIntObject(val1)) return isBigIntObject(val2) && BigInt.prototype.valueOf.call(val1) === BigInt.prototype.valueOf.call(val2);
|
|
2163
|
+
return isSymbolObject(val2) && Symbol.prototype.valueOf.call(val1) === Symbol.prototype.valueOf.call(val2);
|
|
2164
|
+
}
|
|
2165
|
+
function innerDeepEqual(val1, val2, strict, memos) {
|
|
2166
|
+
if (val1 === val2) {
|
|
2167
|
+
if (val1 !== 0) return true;
|
|
2168
|
+
return strict ? objectIs(val1, val2) : true;
|
|
2169
|
+
}
|
|
2170
|
+
if (strict) {
|
|
2171
|
+
if (_typeof(val1) !== "object") return typeof val1 === "number" && numberIsNaN(val1) && numberIsNaN(val2);
|
|
2172
|
+
if (_typeof(val2) !== "object" || val1 === null || val2 === null) return false;
|
|
2173
|
+
if (Object.getPrototypeOf(val1) !== Object.getPrototypeOf(val2)) return false;
|
|
2174
|
+
} else {
|
|
2175
|
+
if (val1 === null || _typeof(val1) !== "object") {
|
|
2176
|
+
if (val2 === null || _typeof(val2) !== "object") return val1 == val2;
|
|
2177
|
+
return false;
|
|
2178
|
+
}
|
|
2179
|
+
if (val2 === null || _typeof(val2) !== "object") return false;
|
|
2180
|
+
}
|
|
2181
|
+
var val1Tag = objectToString(val1);
|
|
2182
|
+
if (val1Tag !== objectToString(val2)) return false;
|
|
2183
|
+
if (Array.isArray(val1)) {
|
|
2184
|
+
if (val1.length !== val2.length) return false;
|
|
2185
|
+
var keys1 = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE);
|
|
2186
|
+
var keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE);
|
|
2187
|
+
if (keys1.length !== keys2.length) return false;
|
|
2188
|
+
return keyCheck(val1, val2, strict, memos, kIsArray, keys1);
|
|
2189
|
+
}
|
|
2190
|
+
if (val1Tag === "[object Object]") {
|
|
2191
|
+
if (!isMap(val1) && isMap(val2) || !isSet(val1) && isSet(val2)) return false;
|
|
2192
|
+
}
|
|
2193
|
+
if (isDate(val1)) {
|
|
2194
|
+
if (!isDate(val2) || Date.prototype.getTime.call(val1) !== Date.prototype.getTime.call(val2)) return false;
|
|
2195
|
+
} else if (isRegExp(val1)) {
|
|
2196
|
+
if (!isRegExp(val2) || !areSimilarRegExps(val1, val2)) return false;
|
|
2197
|
+
} else if (isNativeError(val1) || val1 instanceof Error) {
|
|
2198
|
+
if (val1.message !== val2.message || val1.name !== val2.name) return false;
|
|
2199
|
+
} else if (isArrayBufferView(val1)) {
|
|
2200
|
+
if (!strict && (isFloat32Array(val1) || isFloat64Array(val1))) {
|
|
2201
|
+
if (!areSimilarFloatArrays(val1, val2)) return false;
|
|
2202
|
+
} else if (!areSimilarTypedArrays(val1, val2)) return false;
|
|
2203
|
+
var _keys = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE);
|
|
2204
|
+
var _keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE);
|
|
2205
|
+
if (_keys.length !== _keys2.length) return false;
|
|
2206
|
+
return keyCheck(val1, val2, strict, memos, kNoIterator, _keys);
|
|
2207
|
+
} else if (isSet(val1)) {
|
|
2208
|
+
if (!isSet(val2) || val1.size !== val2.size) return false;
|
|
2209
|
+
return keyCheck(val1, val2, strict, memos, kIsSet);
|
|
2210
|
+
} else if (isMap(val1)) {
|
|
2211
|
+
if (!isMap(val2) || val1.size !== val2.size) return false;
|
|
2212
|
+
return keyCheck(val1, val2, strict, memos, kIsMap);
|
|
2213
|
+
} else if (isAnyArrayBuffer(val1)) {
|
|
2214
|
+
if (!areEqualArrayBuffers(val1, val2)) return false;
|
|
2215
|
+
} else if (isBoxedPrimitive(val1) && !isEqualBoxedPrimitive(val1, val2)) return false;
|
|
2216
|
+
return keyCheck(val1, val2, strict, memos, kNoIterator);
|
|
2217
|
+
}
|
|
2218
|
+
function getEnumerables(val, keys) {
|
|
2219
|
+
return keys.filter(function(k) {
|
|
2220
|
+
return propertyIsEnumerable(val, k);
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
2223
|
+
function keyCheck(val1, val2, strict, memos, iterationType, aKeys) {
|
|
2224
|
+
if (arguments.length === 5) {
|
|
2225
|
+
aKeys = Object.keys(val1);
|
|
2226
|
+
var bKeys = Object.keys(val2);
|
|
2227
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
2228
|
+
}
|
|
2229
|
+
var i = 0;
|
|
2230
|
+
for (; i < aKeys.length; i++) if (!hasOwnProperty(val2, aKeys[i])) return false;
|
|
2231
|
+
if (strict && arguments.length === 5) {
|
|
2232
|
+
var symbolKeysA = objectGetOwnPropertySymbols(val1);
|
|
2233
|
+
if (symbolKeysA.length !== 0) {
|
|
2234
|
+
var count = 0;
|
|
2235
|
+
for (i = 0; i < symbolKeysA.length; i++) {
|
|
2236
|
+
var key = symbolKeysA[i];
|
|
2237
|
+
if (propertyIsEnumerable(val1, key)) {
|
|
2238
|
+
if (!propertyIsEnumerable(val2, key)) return false;
|
|
2239
|
+
aKeys.push(key);
|
|
2240
|
+
count++;
|
|
2241
|
+
} else if (propertyIsEnumerable(val2, key)) return false;
|
|
2242
|
+
}
|
|
2243
|
+
var symbolKeysB = objectGetOwnPropertySymbols(val2);
|
|
2244
|
+
if (symbolKeysA.length !== symbolKeysB.length && getEnumerables(val2, symbolKeysB).length !== count) return false;
|
|
2245
|
+
} else {
|
|
2246
|
+
var _symbolKeysB = objectGetOwnPropertySymbols(val2);
|
|
2247
|
+
if (_symbolKeysB.length !== 0 && getEnumerables(val2, _symbolKeysB).length !== 0) return false;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
if (aKeys.length === 0 && (iterationType === kNoIterator || iterationType === kIsArray && val1.length === 0 || val1.size === 0)) return true;
|
|
2251
|
+
if (memos === void 0) memos = {
|
|
2252
|
+
val1: /* @__PURE__ */ new Map(),
|
|
2253
|
+
val2: /* @__PURE__ */ new Map(),
|
|
2254
|
+
position: 0
|
|
2255
|
+
};
|
|
2256
|
+
else {
|
|
2257
|
+
var val2MemoA = memos.val1.get(val1);
|
|
2258
|
+
if (val2MemoA !== void 0) {
|
|
2259
|
+
var val2MemoB = memos.val2.get(val2);
|
|
2260
|
+
if (val2MemoB !== void 0) return val2MemoA === val2MemoB;
|
|
2261
|
+
}
|
|
2262
|
+
memos.position++;
|
|
2263
|
+
}
|
|
2264
|
+
memos.val1.set(val1, memos.position);
|
|
2265
|
+
memos.val2.set(val2, memos.position);
|
|
2266
|
+
var areEq = objEquiv(val1, val2, strict, aKeys, memos, iterationType);
|
|
2267
|
+
memos.val1.delete(val1);
|
|
2268
|
+
memos.val2.delete(val2);
|
|
2269
|
+
return areEq;
|
|
2270
|
+
}
|
|
2271
|
+
function setHasEqualElement(set, val1, strict, memo) {
|
|
2272
|
+
var setValues = arrayFromSet(set);
|
|
2273
|
+
for (var i = 0; i < setValues.length; i++) {
|
|
2274
|
+
var val2 = setValues[i];
|
|
2275
|
+
if (innerDeepEqual(val1, val2, strict, memo)) {
|
|
2276
|
+
set.delete(val2);
|
|
2277
|
+
return true;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
return false;
|
|
2281
|
+
}
|
|
2282
|
+
function findLooseMatchingPrimitives(prim) {
|
|
2283
|
+
switch (_typeof(prim)) {
|
|
2284
|
+
case "undefined": return null;
|
|
2285
|
+
case "object": return;
|
|
2286
|
+
case "symbol": return false;
|
|
2287
|
+
case "string": prim = +prim;
|
|
2288
|
+
case "number": if (numberIsNaN(prim)) return false;
|
|
2289
|
+
}
|
|
2290
|
+
return true;
|
|
2291
|
+
}
|
|
2292
|
+
function setMightHaveLoosePrim(a, b, prim) {
|
|
2293
|
+
var altValue = findLooseMatchingPrimitives(prim);
|
|
2294
|
+
if (altValue != null) return altValue;
|
|
2295
|
+
return b.has(altValue) && !a.has(altValue);
|
|
2296
|
+
}
|
|
2297
|
+
function mapMightHaveLoosePrim(a, b, prim, item, memo) {
|
|
2298
|
+
var altValue = findLooseMatchingPrimitives(prim);
|
|
2299
|
+
if (altValue != null) return altValue;
|
|
2300
|
+
var curB = b.get(altValue);
|
|
2301
|
+
if (curB === void 0 && !b.has(altValue) || !innerDeepEqual(item, curB, false, memo)) return false;
|
|
2302
|
+
return !a.has(altValue) && innerDeepEqual(item, curB, false, memo);
|
|
2303
|
+
}
|
|
2304
|
+
function setEquiv(a, b, strict, memo) {
|
|
2305
|
+
var set = null;
|
|
2306
|
+
var aValues = arrayFromSet(a);
|
|
2307
|
+
for (var i = 0; i < aValues.length; i++) {
|
|
2308
|
+
var val = aValues[i];
|
|
2309
|
+
if (_typeof(val) === "object" && val !== null) {
|
|
2310
|
+
if (set === null) set = /* @__PURE__ */ new Set();
|
|
2311
|
+
set.add(val);
|
|
2312
|
+
} else if (!b.has(val)) {
|
|
2313
|
+
if (strict) return false;
|
|
2314
|
+
if (!setMightHaveLoosePrim(a, b, val)) return false;
|
|
2315
|
+
if (set === null) set = /* @__PURE__ */ new Set();
|
|
2316
|
+
set.add(val);
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
if (set !== null) {
|
|
2320
|
+
var bValues = arrayFromSet(b);
|
|
2321
|
+
for (var _i = 0; _i < bValues.length; _i++) {
|
|
2322
|
+
var _val = bValues[_i];
|
|
2323
|
+
if (_typeof(_val) === "object" && _val !== null) {
|
|
2324
|
+
if (!setHasEqualElement(set, _val, strict, memo)) return false;
|
|
2325
|
+
} else if (!strict && !a.has(_val) && !setHasEqualElement(set, _val, strict, memo)) return false;
|
|
2326
|
+
}
|
|
2327
|
+
return set.size === 0;
|
|
2328
|
+
}
|
|
2329
|
+
return true;
|
|
2330
|
+
}
|
|
2331
|
+
function mapHasEqualEntry(set, map, key1, item1, strict, memo) {
|
|
2332
|
+
var setValues = arrayFromSet(set);
|
|
2333
|
+
for (var i = 0; i < setValues.length; i++) {
|
|
2334
|
+
var key2 = setValues[i];
|
|
2335
|
+
if (innerDeepEqual(key1, key2, strict, memo) && innerDeepEqual(item1, map.get(key2), strict, memo)) {
|
|
2336
|
+
set.delete(key2);
|
|
2337
|
+
return true;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
return false;
|
|
2341
|
+
}
|
|
2342
|
+
function mapEquiv(a, b, strict, memo) {
|
|
2343
|
+
var set = null;
|
|
2344
|
+
var aEntries = arrayFromMap(a);
|
|
2345
|
+
for (var i = 0; i < aEntries.length; i++) {
|
|
2346
|
+
var _aEntries$i = _slicedToArray(aEntries[i], 2), key = _aEntries$i[0], item1 = _aEntries$i[1];
|
|
2347
|
+
if (_typeof(key) === "object" && key !== null) {
|
|
2348
|
+
if (set === null) set = /* @__PURE__ */ new Set();
|
|
2349
|
+
set.add(key);
|
|
2350
|
+
} else {
|
|
2351
|
+
var item2 = b.get(key);
|
|
2352
|
+
if (item2 === void 0 && !b.has(key) || !innerDeepEqual(item1, item2, strict, memo)) {
|
|
2353
|
+
if (strict) return false;
|
|
2354
|
+
if (!mapMightHaveLoosePrim(a, b, key, item1, memo)) return false;
|
|
2355
|
+
if (set === null) set = /* @__PURE__ */ new Set();
|
|
2356
|
+
set.add(key);
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
if (set !== null) {
|
|
2361
|
+
var bEntries = arrayFromMap(b);
|
|
2362
|
+
for (var _i2 = 0; _i2 < bEntries.length; _i2++) {
|
|
2363
|
+
var _bEntries$_i = _slicedToArray(bEntries[_i2], 2), _key = _bEntries$_i[0], item = _bEntries$_i[1];
|
|
2364
|
+
if (_typeof(_key) === "object" && _key !== null) {
|
|
2365
|
+
if (!mapHasEqualEntry(set, a, _key, item, strict, memo)) return false;
|
|
2366
|
+
} else if (!strict && (!a.has(_key) || !innerDeepEqual(a.get(_key), item, false, memo)) && !mapHasEqualEntry(set, a, _key, item, false, memo)) return false;
|
|
2367
|
+
}
|
|
2368
|
+
return set.size === 0;
|
|
2369
|
+
}
|
|
2370
|
+
return true;
|
|
2371
|
+
}
|
|
2372
|
+
function objEquiv(a, b, strict, keys, memos, iterationType) {
|
|
2373
|
+
var i = 0;
|
|
2374
|
+
if (iterationType === kIsSet) {
|
|
2375
|
+
if (!setEquiv(a, b, strict, memos)) return false;
|
|
2376
|
+
} else if (iterationType === kIsMap) {
|
|
2377
|
+
if (!mapEquiv(a, b, strict, memos)) return false;
|
|
2378
|
+
} else if (iterationType === kIsArray) for (; i < a.length; i++) if (hasOwnProperty(a, i)) {
|
|
2379
|
+
if (!hasOwnProperty(b, i) || !innerDeepEqual(a[i], b[i], strict, memos)) return false;
|
|
2380
|
+
} else if (hasOwnProperty(b, i)) return false;
|
|
2381
|
+
else {
|
|
2382
|
+
var keysA = Object.keys(a);
|
|
2383
|
+
for (; i < keysA.length; i++) {
|
|
2384
|
+
var key = keysA[i];
|
|
2385
|
+
if (!hasOwnProperty(b, key) || !innerDeepEqual(a[key], b[key], strict, memos)) return false;
|
|
2386
|
+
}
|
|
2387
|
+
if (keysA.length !== Object.keys(b).length) return false;
|
|
2388
|
+
return true;
|
|
2389
|
+
}
|
|
2390
|
+
for (i = 0; i < keys.length; i++) {
|
|
2391
|
+
var _key2 = keys[i];
|
|
2392
|
+
if (!innerDeepEqual(a[_key2], b[_key2], strict, memos)) return false;
|
|
2393
|
+
}
|
|
2394
|
+
return true;
|
|
2395
|
+
}
|
|
2396
|
+
function isDeepEqual(val1, val2) {
|
|
2397
|
+
return innerDeepEqual(val1, val2, kLoose);
|
|
2398
|
+
}
|
|
2399
|
+
function isDeepStrictEqual(val1, val2) {
|
|
2400
|
+
return innerDeepEqual(val1, val2, kStrict);
|
|
2401
|
+
}
|
|
2402
|
+
module.exports = {
|
|
2403
|
+
isDeepEqual,
|
|
2404
|
+
isDeepStrictEqual
|
|
2405
|
+
};
|
|
2406
|
+
}));
|
|
2407
|
+
//#endregion
|
|
2408
|
+
//#region ../../node_modules/.pnpm/node-inspect-extracted@3.3.4/node_modules/node-inspect-extracted/dist/inspect.js
|
|
2409
|
+
var require_inspect = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2410
|
+
(function(t, e) {
|
|
2411
|
+
"object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.util = e() : t.util = e();
|
|
2412
|
+
})(exports, () => (() => {
|
|
2413
|
+
"use strict";
|
|
2414
|
+
var t = {
|
|
2415
|
+
308(t, e, n) {
|
|
2416
|
+
const { ArrayPrototypeMap: o } = n(80);
|
|
2417
|
+
e.h = class {
|
|
2418
|
+
hexSlice(t = 0, e) {
|
|
2419
|
+
return o(this.slice(t, e), (t) => ("00" + t.toString(16)).slice(-2)).join("");
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
},
|
|
2423
|
+
160(t, e, n) {
|
|
2424
|
+
const r = n(80), { AggregateError: o, AggregateErrorPrototype: i, Array: l, ArrayBuffer: s, ArrayBufferPrototype: c, ArrayIsArray: a, ArrayPrototype: u, ArrayPrototypeFilter: f, ArrayPrototypeForEach: p, ArrayPrototypeIncludes: y, ArrayPrototypeIndexOf: g, ArrayPrototypeJoin: h, ArrayPrototypeMap: d, ArrayPrototypePop: m, ArrayPrototypePush: b, ArrayPrototypePushApply: $, ArrayPrototypeSlice: P, ArrayPrototypeSort: x, ArrayPrototypeSplice: S, ArrayPrototypeUnshift: A, BigIntPrototypeValueOf: v, Boolean: _, BooleanPrototype: w, BooleanPrototypeValueOf: O, DataView: E, DataViewPrototype: R, Date: L, DatePrototype: I, DatePrototypeGetTime: k, DatePrototypeToISOString: j, DatePrototypeToString: z, Error: B, ErrorPrototype: T, ErrorPrototypeToString: M, Function: N, FunctionPrototype: F, FunctionPrototypeBind: C, FunctionPrototypeCall: D, FunctionPrototypeSymbolHasInstance: W, FunctionPrototypeToString: H, JSONStringify: U, Map: G, MapPrototype: V, MapPrototypeEntries: Z, MapPrototypeGetSize: Y, MathFloor: q, MathMax: J, MathMin: K, MathRound: Q, MathSqrt: X, MathTrunc: tt, Number: et, NumberIsFinite: nt, NumberIsNaN: rt, NumberParseFloat: ot, NumberParseInt: it, NumberPrototype: lt, NumberPrototypeToString: st, NumberPrototypeValueOf: ct, Object: at, ObjectAssign: ut, ObjectDefineProperty: ft, ObjectGetOwnPropertyDescriptor: pt, ObjectGetOwnPropertyNames: yt, ObjectGetOwnPropertySymbols: gt, ObjectGetPrototypeOf: ht, ObjectIs: dt, ObjectKeys: mt, ObjectPrototype: bt, ObjectPrototypeHasOwnProperty: $t, ObjectPrototypePropertyIsEnumerable: Pt, ObjectPrototypeToString: xt, ObjectSeal: St, ObjectSetPrototypeOf: At, Promise: vt, PromisePrototype: _t, RangeError: wt, RangeErrorPrototype: Ot, ReflectApply: Et, ReflectOwnKeys: Rt, RegExp: Lt, RegExpPrototype: It, RegExpPrototypeExec: kt, RegExpPrototypeSymbolReplace: jt, RegExpPrototypeSymbolSplit: zt, RegExpPrototypeToString: Bt, SafeMap: Tt, SafeSet: Mt, SafeStringIterator: Nt, Set: Ft, SetPrototype: Ct, SetPrototypeGetSize: Dt, SetPrototypeValues: Wt, String: Ht, StringPrototype: Ut, StringPrototypeCharCodeAt: Gt, StringPrototypeCodePointAt: Vt, StringPrototypeEndsWith: Zt, StringPrototypeIncludes: Yt, StringPrototypeIndexOf: qt, StringPrototypeLastIndexOf: Jt, StringPrototypeNormalize: Kt, StringPrototypePadEnd: Qt, StringPrototypePadStart: Xt, StringPrototypeRepeat: te, StringPrototypeReplace: ee, StringPrototypeReplaceAll: ne, StringPrototypeSlice: re, StringPrototypeSplit: oe, StringPrototypeStartsWith: ie, StringPrototypeToLowerCase: le, StringPrototypeValueOf: se, SymbolIterator: ce, SymbolPrototypeToString: ae, SymbolPrototypeValueOf: ue, SymbolToPrimitive: fe, SymbolToStringTag: pe, TypeError: ye, TypeErrorPrototype: ge, TypedArray: he, TypedArrayPrototype: de, TypedArrayPrototypeGetLength: me, TypedArrayPrototypeGetSymbolToStringTag: be, Uint8Array: $e, WeakMap: Pe, WeakMapPrototype: xe, WeakSet: Se, WeakSetPrototype: Ae, globalThis: ve, internalBinding: _e, uncurryThis: we } = r, { constants: { ALL_PROPERTIES: Oe, ONLY_ENUMERABLE: Ee, kPending: Re, kRejected: Le }, getOwnNonIndexProperties: Ie, getPromiseDetails: ke, getProxyDetails: je, previewEntries: ze, getConstructorName: Be, getExternalValue: Te, Proxy: Me } = n(38), { customInspectSymbol: Ne, isError: Fe, join: Ce, removeColors: De } = n(22), { isStackOverflowError: We } = n(317), { isAsyncFunction: He, isGeneratorFunction: Ue, isAnyArrayBuffer: Ge, isArrayBuffer: Ve, isArgumentsObject: Ze, isBoxedPrimitive: Ye, isDataView: qe, isExternal: Je, isMap: Ke, isMapIterator: Qe, isModuleNamespaceObject: Xe, isNativeError: tn, isPromise: en, isSet: nn, isSetIterator: rn, isWeakMap: on, isWeakSet: ln, isRegExp: sn, isDate: cn, isTypedArray: an, isStringObject: un, isNumberObject: fn, isBooleanObject: pn, isBigIntObject: yn } = n(124), gn = n(788), { BuiltinModule: hn } = n(986), { validateObject: dn, validateString: mn, kValidateObjectAllowArray: bn } = n(293);
|
|
2425
|
+
let $n, Pn, xn;
|
|
2426
|
+
function Sn(t) {
|
|
2427
|
+
return Pn = Pn || n(613), Pn.pathToFileURL(t).href;
|
|
2428
|
+
}
|
|
2429
|
+
const An = new Mt(f(yt(ve), (t) => null !== kt(/^[A-Z][a-zA-Z0-9]+$/, t))), vn = (t) => void 0 === t && void 0 !== t, _n = St({
|
|
2430
|
+
showHidden: !1,
|
|
2431
|
+
depth: 2,
|
|
2432
|
+
colors: !1,
|
|
2433
|
+
customInspect: !0,
|
|
2434
|
+
showProxy: !1,
|
|
2435
|
+
maxArrayLength: 100,
|
|
2436
|
+
maxStringLength: 1e4,
|
|
2437
|
+
breakLength: 80,
|
|
2438
|
+
compact: 3,
|
|
2439
|
+
sorted: !1,
|
|
2440
|
+
getters: !1,
|
|
2441
|
+
numericSeparator: !1
|
|
2442
|
+
}), wn = /[\x00-\x1f\x27\x5c\x7f-\x9f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/, On = /[\x00-\x1f\x27\x5c\x7f-\x9f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/g, En = /[\x00-\x1f\x5c\x7f-\x9f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/, Rn = /[\x00-\x1f\x5c\x7f-\x9f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/g, Ln = /^[a-zA-Z_][a-zA-Z_0-9]*$/, In = /^(0|[1-9][0-9]*)$/, kn = /^ {4}at (?:[^/\\(]+ \(|)node:(.+):\d+:\d+\)?$/, jn = /^(\s+[^(]*?)\s*{/, zn = /(\/\/.*?\n)|(\/\*(.|\n)*?\*\/)/g, Bn = [
|
|
2443
|
+
"\\x00",
|
|
2444
|
+
"\\x01",
|
|
2445
|
+
"\\x02",
|
|
2446
|
+
"\\x03",
|
|
2447
|
+
"\\x04",
|
|
2448
|
+
"\\x05",
|
|
2449
|
+
"\\x06",
|
|
2450
|
+
"\\x07",
|
|
2451
|
+
"\\b",
|
|
2452
|
+
"\\t",
|
|
2453
|
+
"\\n",
|
|
2454
|
+
"\\x0B",
|
|
2455
|
+
"\\f",
|
|
2456
|
+
"\\r",
|
|
2457
|
+
"\\x0E",
|
|
2458
|
+
"\\x0F",
|
|
2459
|
+
"\\x10",
|
|
2460
|
+
"\\x11",
|
|
2461
|
+
"\\x12",
|
|
2462
|
+
"\\x13",
|
|
2463
|
+
"\\x14",
|
|
2464
|
+
"\\x15",
|
|
2465
|
+
"\\x16",
|
|
2466
|
+
"\\x17",
|
|
2467
|
+
"\\x18",
|
|
2468
|
+
"\\x19",
|
|
2469
|
+
"\\x1A",
|
|
2470
|
+
"\\x1B",
|
|
2471
|
+
"\\x1C",
|
|
2472
|
+
"\\x1D",
|
|
2473
|
+
"\\x1E",
|
|
2474
|
+
"\\x1F",
|
|
2475
|
+
"",
|
|
2476
|
+
"",
|
|
2477
|
+
"",
|
|
2478
|
+
"",
|
|
2479
|
+
"",
|
|
2480
|
+
"",
|
|
2481
|
+
"",
|
|
2482
|
+
"\\'",
|
|
2483
|
+
"",
|
|
2484
|
+
"",
|
|
2485
|
+
"",
|
|
2486
|
+
"",
|
|
2487
|
+
"",
|
|
2488
|
+
"",
|
|
2489
|
+
"",
|
|
2490
|
+
"",
|
|
2491
|
+
"",
|
|
2492
|
+
"",
|
|
2493
|
+
"",
|
|
2494
|
+
"",
|
|
2495
|
+
"",
|
|
2496
|
+
"",
|
|
2497
|
+
"",
|
|
2498
|
+
"",
|
|
2499
|
+
"",
|
|
2500
|
+
"",
|
|
2501
|
+
"",
|
|
2502
|
+
"",
|
|
2503
|
+
"",
|
|
2504
|
+
"",
|
|
2505
|
+
"",
|
|
2506
|
+
"",
|
|
2507
|
+
"",
|
|
2508
|
+
"",
|
|
2509
|
+
"",
|
|
2510
|
+
"",
|
|
2511
|
+
"",
|
|
2512
|
+
"",
|
|
2513
|
+
"",
|
|
2514
|
+
"",
|
|
2515
|
+
"",
|
|
2516
|
+
"",
|
|
2517
|
+
"",
|
|
2518
|
+
"",
|
|
2519
|
+
"",
|
|
2520
|
+
"",
|
|
2521
|
+
"",
|
|
2522
|
+
"",
|
|
2523
|
+
"",
|
|
2524
|
+
"",
|
|
2525
|
+
"",
|
|
2526
|
+
"",
|
|
2527
|
+
"",
|
|
2528
|
+
"",
|
|
2529
|
+
"",
|
|
2530
|
+
"",
|
|
2531
|
+
"",
|
|
2532
|
+
"",
|
|
2533
|
+
"",
|
|
2534
|
+
"",
|
|
2535
|
+
"\\\\",
|
|
2536
|
+
"",
|
|
2537
|
+
"",
|
|
2538
|
+
"",
|
|
2539
|
+
"",
|
|
2540
|
+
"",
|
|
2541
|
+
"",
|
|
2542
|
+
"",
|
|
2543
|
+
"",
|
|
2544
|
+
"",
|
|
2545
|
+
"",
|
|
2546
|
+
"",
|
|
2547
|
+
"",
|
|
2548
|
+
"",
|
|
2549
|
+
"",
|
|
2550
|
+
"",
|
|
2551
|
+
"",
|
|
2552
|
+
"",
|
|
2553
|
+
"",
|
|
2554
|
+
"",
|
|
2555
|
+
"",
|
|
2556
|
+
"",
|
|
2557
|
+
"",
|
|
2558
|
+
"",
|
|
2559
|
+
"",
|
|
2560
|
+
"",
|
|
2561
|
+
"",
|
|
2562
|
+
"",
|
|
2563
|
+
"",
|
|
2564
|
+
"",
|
|
2565
|
+
"",
|
|
2566
|
+
"",
|
|
2567
|
+
"",
|
|
2568
|
+
"",
|
|
2569
|
+
"",
|
|
2570
|
+
"\\x7F",
|
|
2571
|
+
"\\x80",
|
|
2572
|
+
"\\x81",
|
|
2573
|
+
"\\x82",
|
|
2574
|
+
"\\x83",
|
|
2575
|
+
"\\x84",
|
|
2576
|
+
"\\x85",
|
|
2577
|
+
"\\x86",
|
|
2578
|
+
"\\x87",
|
|
2579
|
+
"\\x88",
|
|
2580
|
+
"\\x89",
|
|
2581
|
+
"\\x8A",
|
|
2582
|
+
"\\x8B",
|
|
2583
|
+
"\\x8C",
|
|
2584
|
+
"\\x8D",
|
|
2585
|
+
"\\x8E",
|
|
2586
|
+
"\\x8F",
|
|
2587
|
+
"\\x90",
|
|
2588
|
+
"\\x91",
|
|
2589
|
+
"\\x92",
|
|
2590
|
+
"\\x93",
|
|
2591
|
+
"\\x94",
|
|
2592
|
+
"\\x95",
|
|
2593
|
+
"\\x96",
|
|
2594
|
+
"\\x97",
|
|
2595
|
+
"\\x98",
|
|
2596
|
+
"\\x99",
|
|
2597
|
+
"\\x9A",
|
|
2598
|
+
"\\x9B",
|
|
2599
|
+
"\\x9C",
|
|
2600
|
+
"\\x9D",
|
|
2601
|
+
"\\x9E",
|
|
2602
|
+
"\\x9F"
|
|
2603
|
+
], Tn = new Lt("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]", "g");
|
|
2604
|
+
let Mn;
|
|
2605
|
+
function Nn(t, e) {
|
|
2606
|
+
const n = {
|
|
2607
|
+
budget: {},
|
|
2608
|
+
indentationLvl: 0,
|
|
2609
|
+
seen: [],
|
|
2610
|
+
currentDepth: 0,
|
|
2611
|
+
stylize: Zn,
|
|
2612
|
+
showHidden: _n.showHidden,
|
|
2613
|
+
depth: _n.depth,
|
|
2614
|
+
colors: _n.colors,
|
|
2615
|
+
customInspect: _n.customInspect,
|
|
2616
|
+
showProxy: _n.showProxy,
|
|
2617
|
+
maxArrayLength: _n.maxArrayLength,
|
|
2618
|
+
maxStringLength: _n.maxStringLength,
|
|
2619
|
+
breakLength: _n.breakLength,
|
|
2620
|
+
compact: _n.compact,
|
|
2621
|
+
sorted: _n.sorted,
|
|
2622
|
+
getters: _n.getters,
|
|
2623
|
+
numericSeparator: _n.numericSeparator
|
|
2624
|
+
};
|
|
2625
|
+
if (arguments.length > 1) {
|
|
2626
|
+
if (arguments.length > 2 && (void 0 !== arguments[2] && (n.depth = arguments[2]), arguments.length > 3 && void 0 !== arguments[3] && (n.colors = arguments[3])), "boolean" == typeof e) n.showHidden = e;
|
|
2627
|
+
else if (e) {
|
|
2628
|
+
const t = mt(e);
|
|
2629
|
+
for (let r = 0; r < t.length; ++r) {
|
|
2630
|
+
const o = t[r];
|
|
2631
|
+
$t(_n, o) || "stylize" === o ? n[o] = e[o] : void 0 === n.userOptions && (n.userOptions = e);
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
return n.colors && (n.stylize = Vn), null === n.maxArrayLength && (n.maxArrayLength = 1 / 0), null === n.maxStringLength && (n.maxStringLength = 1 / 0), nr(n, t, 0);
|
|
2636
|
+
}
|
|
2637
|
+
Nn.custom = Ne, ft(Nn, "defaultOptions", {
|
|
2638
|
+
__proto__: null,
|
|
2639
|
+
get: () => _n,
|
|
2640
|
+
set: (t) => (dn(t, "options"), ut(_n, t))
|
|
2641
|
+
});
|
|
2642
|
+
const Fn = 39, Cn = 49;
|
|
2643
|
+
function Dn(t, e) {
|
|
2644
|
+
ft(Nn.colors, e, {
|
|
2645
|
+
__proto__: null,
|
|
2646
|
+
get() {
|
|
2647
|
+
return this[t];
|
|
2648
|
+
},
|
|
2649
|
+
set(e) {
|
|
2650
|
+
this[t] = e;
|
|
2651
|
+
},
|
|
2652
|
+
configurable: !0,
|
|
2653
|
+
enumerable: !1
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2656
|
+
Nn.colors = {
|
|
2657
|
+
__proto__: null,
|
|
2658
|
+
reset: [0, 0],
|
|
2659
|
+
bold: [1, 22],
|
|
2660
|
+
dim: [2, 22],
|
|
2661
|
+
italic: [3, 23],
|
|
2662
|
+
underline: [4, 24],
|
|
2663
|
+
blink: [5, 25],
|
|
2664
|
+
inverse: [7, 27],
|
|
2665
|
+
hidden: [8, 28],
|
|
2666
|
+
strikethrough: [9, 29],
|
|
2667
|
+
doubleunderline: [21, 24],
|
|
2668
|
+
black: [30, Fn],
|
|
2669
|
+
red: [31, Fn],
|
|
2670
|
+
green: [32, Fn],
|
|
2671
|
+
yellow: [33, Fn],
|
|
2672
|
+
blue: [34, Fn],
|
|
2673
|
+
magenta: [35, Fn],
|
|
2674
|
+
cyan: [36, Fn],
|
|
2675
|
+
white: [37, Fn],
|
|
2676
|
+
bgBlack: [40, Cn],
|
|
2677
|
+
bgRed: [41, Cn],
|
|
2678
|
+
bgGreen: [42, Cn],
|
|
2679
|
+
bgYellow: [43, Cn],
|
|
2680
|
+
bgBlue: [44, Cn],
|
|
2681
|
+
bgMagenta: [45, Cn],
|
|
2682
|
+
bgCyan: [46, Cn],
|
|
2683
|
+
bgWhite: [47, Cn],
|
|
2684
|
+
framed: [51, 54],
|
|
2685
|
+
overlined: [53, 55],
|
|
2686
|
+
gray: [90, Fn],
|
|
2687
|
+
redBright: [91, Fn],
|
|
2688
|
+
greenBright: [92, Fn],
|
|
2689
|
+
yellowBright: [93, Fn],
|
|
2690
|
+
blueBright: [94, Fn],
|
|
2691
|
+
magentaBright: [95, Fn],
|
|
2692
|
+
cyanBright: [96, Fn],
|
|
2693
|
+
whiteBright: [97, Fn],
|
|
2694
|
+
bgGray: [100, Cn],
|
|
2695
|
+
bgRedBright: [101, Cn],
|
|
2696
|
+
bgGreenBright: [102, Cn],
|
|
2697
|
+
bgYellowBright: [103, Cn],
|
|
2698
|
+
bgBlueBright: [104, Cn],
|
|
2699
|
+
bgMagentaBright: [105, Cn],
|
|
2700
|
+
bgCyanBright: [106, Cn],
|
|
2701
|
+
bgWhiteBright: [107, Cn]
|
|
2702
|
+
}, Dn("gray", "grey"), Dn("gray", "blackBright"), Dn("bgGray", "bgGrey"), Dn("bgGray", "bgBlackBright"), Dn("dim", "faint"), Dn("strikethrough", "crossedout"), Dn("strikethrough", "strikeThrough"), Dn("strikethrough", "crossedOut"), Dn("hidden", "conceal"), Dn("inverse", "swapColors"), Dn("inverse", "swapcolors"), Dn("doubleunderline", "doubleUnderline"), Nn.styles = ut({ __proto__: null }, {
|
|
2703
|
+
special: "cyan",
|
|
2704
|
+
number: "yellow",
|
|
2705
|
+
bigint: "yellow",
|
|
2706
|
+
boolean: "yellow",
|
|
2707
|
+
undefined: "grey",
|
|
2708
|
+
null: "bold",
|
|
2709
|
+
string: "green",
|
|
2710
|
+
symbol: "green",
|
|
2711
|
+
date: "magenta",
|
|
2712
|
+
regexp: function t(e) {
|
|
2713
|
+
let n = "", r = 0, o = 0, i = !1;
|
|
2714
|
+
const l = (t.colors?.length > 0 ? t.colors : Wn).reduce((t, e) => {
|
|
2715
|
+
const n = Nn.colors[e];
|
|
2716
|
+
return n && t.push([`[${n[0]}m`, `[${n[1]}m`]), t;
|
|
2717
|
+
}, []);
|
|
2718
|
+
function s(t, n, i = 1) {
|
|
2719
|
+
let l = "";
|
|
2720
|
+
for (r++; r < e.length && e[r] !== n;) l += e[r++];
|
|
2721
|
+
r < e.length ? (o -= i, c(t), a(l, 1, 1), c(n), o += i) : a(t, 1, -l.length);
|
|
2722
|
+
}
|
|
2723
|
+
const c = (t) => {
|
|
2724
|
+
const e = o % l.length, r = l[e] ?? l[0];
|
|
2725
|
+
return n += r[0] + t + r[1], e;
|
|
2726
|
+
};
|
|
2727
|
+
function a(t, e, n) {
|
|
2728
|
+
o += e, c(t), o -= e, r += n;
|
|
2729
|
+
}
|
|
2730
|
+
for (c("/"), o++, r = 1; r < e.length;) {
|
|
2731
|
+
const t = e[r];
|
|
2732
|
+
if (i) if ("\\" === t) {
|
|
2733
|
+
let t = "\\";
|
|
2734
|
+
if (r++, r < e.length) {
|
|
2735
|
+
t += e[r++];
|
|
2736
|
+
const n = t[1];
|
|
2737
|
+
if ("u" === n && "{" === e[r]) {
|
|
2738
|
+
s(`${t}{`, "}", 0);
|
|
2739
|
+
continue;
|
|
2740
|
+
}
|
|
2741
|
+
if (("p" === n || "P" === n) && "{" === e[r]) {
|
|
2742
|
+
s(`${t}{`, "}", 0);
|
|
2743
|
+
continue;
|
|
2744
|
+
}
|
|
2745
|
+
"x" === t[1] && (t += e.slice(r, r + 2), r += 2);
|
|
2746
|
+
}
|
|
2747
|
+
c(t);
|
|
2748
|
+
} else "]" === t ? (o--, c("]"), r++, i = !1) : "-" === t && "[" !== e[r - 1] && r + 1 < e.length && "]" !== e[r + 1] ? a("-", 1, 1) : (c(t), r++);
|
|
2749
|
+
else if ("[" === t) c("["), o++, r++, i = !0;
|
|
2750
|
+
else if ("(" === t) {
|
|
2751
|
+
if (c("("), o++, r++, r < e.length && "?" === e[r]) {
|
|
2752
|
+
r++;
|
|
2753
|
+
const t = r < e.length ? e[r] : "";
|
|
2754
|
+
if (":" === t || "=" === t || "!" === t) a(`?${t}`, -1, 1);
|
|
2755
|
+
else {
|
|
2756
|
+
const n = r + 1 < e.length ? e[r + 1] : "";
|
|
2757
|
+
if ("<" !== t || "=" !== n && "!" !== n) if ("<" === t) {
|
|
2758
|
+
r++;
|
|
2759
|
+
const t = r;
|
|
2760
|
+
for (; r < e.length && ">" !== e[r];) r++;
|
|
2761
|
+
const n = e.slice(t, r);
|
|
2762
|
+
r < e.length && ">" === e[r] ? (o--, c("?<"), a(n, 1, 0), c(">"), o++, r++) : (a("?<", -1, 0), c(n));
|
|
2763
|
+
} else c("?");
|
|
2764
|
+
else a(`?<${n}`, -1, 2);
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
} else if (")" === t) o--, c(")"), r++;
|
|
2768
|
+
else if ("\\" === t) {
|
|
2769
|
+
let t = "\\";
|
|
2770
|
+
if (r++, r < e.length) {
|
|
2771
|
+
t += e[r++];
|
|
2772
|
+
const n = t[1];
|
|
2773
|
+
if (r < e.length) {
|
|
2774
|
+
if ("u" === n && "{" === e[r]) {
|
|
2775
|
+
s(`${t}{`, "}", 0);
|
|
2776
|
+
continue;
|
|
2777
|
+
}
|
|
2778
|
+
if ("x" === n) t += e.slice(r, r + 2), r += 2;
|
|
2779
|
+
else if (n >= "0" && n <= "9") for (; r < e.length && e[r] >= "0" && e[r] <= "9";) t += e[r++];
|
|
2780
|
+
else {
|
|
2781
|
+
if ("k" === n && "<" === e[r]) {
|
|
2782
|
+
s(`${t}<`, ">");
|
|
2783
|
+
continue;
|
|
2784
|
+
}
|
|
2785
|
+
if (("p" === n || "P" === n) && "{" === e[r]) {
|
|
2786
|
+
s(`${t}{`, "}", 0);
|
|
2787
|
+
continue;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
a(t, 1, 0);
|
|
2793
|
+
} else if ("|" === t || "+" === t || "*" === t || "?" === t || "," === t || "^" === t || "$" === t) a(t, 3, 1);
|
|
2794
|
+
else if ("{" === t) {
|
|
2795
|
+
r++;
|
|
2796
|
+
let t = "";
|
|
2797
|
+
for (; r < e.length && e[r] >= "0" && e[r] <= "9";) t += e[r++];
|
|
2798
|
+
if (t && (c("{"), o++, a(t, 1, 0)), r < e.length) {
|
|
2799
|
+
if ("," === e[r]) t || (c("{"), o++), c(","), r++;
|
|
2800
|
+
else if (!t) {
|
|
2801
|
+
o += 1, c("{"), o -= 1;
|
|
2802
|
+
continue;
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
let n = "";
|
|
2806
|
+
for (; r < e.length && e[r] >= "0" && e[r] <= "9";) n += e[r++];
|
|
2807
|
+
n && a(n, 1, 0), r < e.length && "}" === e[r] && (o--, c("}"), r++), r < e.length && "?" === e[r] && a("?", 3, 1);
|
|
2808
|
+
} else if ("." === t) a(t, 2, 1);
|
|
2809
|
+
else {
|
|
2810
|
+
if ("/" === t) break;
|
|
2811
|
+
a(t, 1, 1);
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
return a("/", -1, 1), r < e.length && c(e.slice(r)), n;
|
|
2815
|
+
},
|
|
2816
|
+
module: "underline"
|
|
2817
|
+
}), Nn.styles.regexp.colors = [
|
|
2818
|
+
"green",
|
|
2819
|
+
"red",
|
|
2820
|
+
"yellow",
|
|
2821
|
+
"cyan",
|
|
2822
|
+
"magenta"
|
|
2823
|
+
];
|
|
2824
|
+
const Wn = Nn.styles.regexp.colors.slice();
|
|
2825
|
+
function Hn(t, e) {
|
|
2826
|
+
return -1 === e ? `"${t}"` : -2 === e ? `\`${t}\`` : `'${t}'`;
|
|
2827
|
+
}
|
|
2828
|
+
function Un(t) {
|
|
2829
|
+
const e = Gt(t);
|
|
2830
|
+
return Bn.length > e ? Bn[e] : `\\u${st(e, 16)}`;
|
|
2831
|
+
}
|
|
2832
|
+
function Gn(t) {
|
|
2833
|
+
let e = wn, n = On, r = 39;
|
|
2834
|
+
if (Yt(t, "'") && (Yt(t, "\"") ? Yt(t, "`") || Yt(t, "${") || (r = -2) : r = -1, 39 !== r && (e = En, n = Rn)), t.length < 5e3 && null === kt(e, t)) return Hn(t, r);
|
|
2835
|
+
if (t.length > 100) return Hn(t = jt(n, t, Un), r);
|
|
2836
|
+
let o = "", i = 0;
|
|
2837
|
+
for (let e = 0; e < t.length; e++) {
|
|
2838
|
+
const n = Gt(t, e);
|
|
2839
|
+
if (n === r || 92 === n || n < 32 || n > 126 && n < 160) o += i === e ? Bn[n] : `${re(t, i, e)}${Bn[n]}`, i = e + 1;
|
|
2840
|
+
else if (n >= 55296 && n <= 57343) {
|
|
2841
|
+
if (n <= 56319 && e + 1 < t.length) {
|
|
2842
|
+
const n = Gt(t, e + 1);
|
|
2843
|
+
if (n >= 56320 && n <= 57343) {
|
|
2844
|
+
e++;
|
|
2845
|
+
continue;
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
o += `${re(t, i, e)}\\u${st(n, 16)}`, i = e + 1;
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
return i !== t.length && (o += re(t, i)), Hn(o, r);
|
|
2852
|
+
}
|
|
2853
|
+
function Vn(t, e) {
|
|
2854
|
+
const n = Nn.styles[e];
|
|
2855
|
+
if (void 0 !== n) {
|
|
2856
|
+
const e = Nn.colors[n];
|
|
2857
|
+
if (void 0 !== e) return `[${e[0]}m${t}[${e[1]}m`;
|
|
2858
|
+
if ("function" == typeof n) return n(t);
|
|
2859
|
+
}
|
|
2860
|
+
return t;
|
|
2861
|
+
}
|
|
2862
|
+
function Zn(t) {
|
|
2863
|
+
return t;
|
|
2864
|
+
}
|
|
2865
|
+
function Yn() {
|
|
2866
|
+
return [];
|
|
2867
|
+
}
|
|
2868
|
+
function qn(t, e) {
|
|
2869
|
+
try {
|
|
2870
|
+
return t instanceof e;
|
|
2871
|
+
} catch {
|
|
2872
|
+
return !1;
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
const Jn = new Tt().set(u, {
|
|
2876
|
+
name: "Array",
|
|
2877
|
+
constructor: l
|
|
2878
|
+
}).set(c, {
|
|
2879
|
+
name: "ArrayBuffer",
|
|
2880
|
+
constructor: s
|
|
2881
|
+
}).set(F, {
|
|
2882
|
+
name: "Function",
|
|
2883
|
+
constructor: N
|
|
2884
|
+
}).set(V, {
|
|
2885
|
+
name: "Map",
|
|
2886
|
+
constructor: G
|
|
2887
|
+
}).set(Ct, {
|
|
2888
|
+
name: "Set",
|
|
2889
|
+
constructor: Ft
|
|
2890
|
+
}).set(bt, {
|
|
2891
|
+
name: "Object",
|
|
2892
|
+
constructor: at
|
|
2893
|
+
}).set(de, {
|
|
2894
|
+
name: "TypedArray",
|
|
2895
|
+
constructor: he
|
|
2896
|
+
}).set(It, {
|
|
2897
|
+
name: "RegExp",
|
|
2898
|
+
constructor: Lt
|
|
2899
|
+
}).set(I, {
|
|
2900
|
+
name: "Date",
|
|
2901
|
+
constructor: L
|
|
2902
|
+
}).set(R, {
|
|
2903
|
+
name: "DataView",
|
|
2904
|
+
constructor: E
|
|
2905
|
+
}).set(T, {
|
|
2906
|
+
name: "Error",
|
|
2907
|
+
constructor: B
|
|
2908
|
+
}).set(i, {
|
|
2909
|
+
name: "AggregateError",
|
|
2910
|
+
constructor: o
|
|
2911
|
+
}).set(Ot, {
|
|
2912
|
+
name: "RangeError",
|
|
2913
|
+
constructor: wt
|
|
2914
|
+
}).set(ge, {
|
|
2915
|
+
name: "TypeError",
|
|
2916
|
+
constructor: ye
|
|
2917
|
+
}).set(w, {
|
|
2918
|
+
name: "Boolean",
|
|
2919
|
+
constructor: _
|
|
2920
|
+
}).set(lt, {
|
|
2921
|
+
name: "Number",
|
|
2922
|
+
constructor: et
|
|
2923
|
+
}).set(Ut, {
|
|
2924
|
+
name: "String",
|
|
2925
|
+
constructor: Ht
|
|
2926
|
+
}).set(_t, {
|
|
2927
|
+
name: "Promise",
|
|
2928
|
+
constructor: vt
|
|
2929
|
+
}).set(xe, {
|
|
2930
|
+
name: "WeakMap",
|
|
2931
|
+
constructor: Pe
|
|
2932
|
+
}).set(Ae, {
|
|
2933
|
+
name: "WeakSet",
|
|
2934
|
+
constructor: Se
|
|
2935
|
+
});
|
|
2936
|
+
function Kn(t, e, n, r) {
|
|
2937
|
+
let o;
|
|
2938
|
+
const i = t;
|
|
2939
|
+
for (; t || vn(t);) {
|
|
2940
|
+
const l = Jn.get(t);
|
|
2941
|
+
if (void 0 !== l) {
|
|
2942
|
+
const { name: s, constructor: c } = l;
|
|
2943
|
+
if (W(c, i)) return void 0 !== r && o !== t && Qn(e, i, o || i, n, r), s;
|
|
2944
|
+
}
|
|
2945
|
+
const s = pt(t, "constructor");
|
|
2946
|
+
if (void 0 !== s && "function" == typeof s.value && "" !== s.value.name && qn(i, s.value)) return void 0 === r || o === t && An.has(s.value.name) || Qn(e, i, o || i, n, r), Ht(s.value.name);
|
|
2947
|
+
t = ht(t), void 0 === o && (o = t);
|
|
2948
|
+
}
|
|
2949
|
+
if (null === o) return null;
|
|
2950
|
+
const l = Be(i);
|
|
2951
|
+
if (n > e.depth && null !== e.depth) return `${l} <Complex prototype>`;
|
|
2952
|
+
const s = Kn(o, e, n + 1, r);
|
|
2953
|
+
return null === s ? `${l} <${Nn(o, {
|
|
2954
|
+
...e,
|
|
2955
|
+
customInspect: !1,
|
|
2956
|
+
depth: -1
|
|
2957
|
+
})}>` : `${l} <${s}>`;
|
|
2958
|
+
}
|
|
2959
|
+
function Qn(t, e, n, r, o) {
|
|
2960
|
+
let i, l, s = 0;
|
|
2961
|
+
do {
|
|
2962
|
+
if (0 !== s || e === n) {
|
|
2963
|
+
if (null === (n = ht(n))) return;
|
|
2964
|
+
const t = pt(n, "constructor");
|
|
2965
|
+
if (void 0 !== t && "function" == typeof t.value && An.has(t.value.name)) return;
|
|
2966
|
+
}
|
|
2967
|
+
0 === s ? l = new Mt() : p(i, (t) => l.add(t)), i = Rt(n), b(t.seen, e);
|
|
2968
|
+
for (const c of i) {
|
|
2969
|
+
if ("constructor" === c || $t(e, c) || 0 !== s && l.has(c)) continue;
|
|
2970
|
+
const i = pt(n, c);
|
|
2971
|
+
if ("function" == typeof i.value) continue;
|
|
2972
|
+
const a = Er(t, n, r, c, 0, i, e);
|
|
2973
|
+
t.colors ? b(o, `[2m${a}[22m`) : b(o, a);
|
|
2974
|
+
}
|
|
2975
|
+
m(t.seen);
|
|
2976
|
+
} while (3 !== ++s);
|
|
2977
|
+
}
|
|
2978
|
+
function Xn(t, e, n, r = "") {
|
|
2979
|
+
if (null === t) return "" !== e && n !== e ? `[${n}${r}: null prototype] [${e}] ` : `[${n}${r}: null prototype] `;
|
|
2980
|
+
if ("" !== e) {
|
|
2981
|
+
const n = Jt(e, ".");
|
|
2982
|
+
return t === (n >= 1 ? re(e, n + 1) : e) ? `${e}${r} ` : `${t}${r} [${e}] `;
|
|
2983
|
+
}
|
|
2984
|
+
return `${t}${r} `;
|
|
2985
|
+
}
|
|
2986
|
+
function tr(t, e) {
|
|
2987
|
+
let n;
|
|
2988
|
+
const r = gt(t);
|
|
2989
|
+
if (e) n = yt(t), 0 !== r.length && $(n, r);
|
|
2990
|
+
else {
|
|
2991
|
+
try {
|
|
2992
|
+
n = mt(t);
|
|
2993
|
+
} catch (e) {
|
|
2994
|
+
gn(tn(e) && "ReferenceError" === e.name && Xe(t)), n = yt(t);
|
|
2995
|
+
}
|
|
2996
|
+
0 !== r.length && $(n, f(r, (e) => Pt(t, e)));
|
|
2997
|
+
}
|
|
2998
|
+
return n;
|
|
2999
|
+
}
|
|
3000
|
+
function er(t, e, n) {
|
|
3001
|
+
let r = "";
|
|
3002
|
+
return null === e && (r = Be(t), r === n && (r = "Object")), Xn(e, n, r);
|
|
3003
|
+
}
|
|
3004
|
+
function nr(t, e, o, i) {
|
|
3005
|
+
if ("object" != typeof e && "function" != typeof e && !vn(e)) return pr(t.stylize, e, t);
|
|
3006
|
+
if (null === e) return t.stylize("null", "null");
|
|
3007
|
+
const l = e;
|
|
3008
|
+
let s = 0, c = je(e, !!t.showProxy);
|
|
3009
|
+
if (void 0 !== c) {
|
|
3010
|
+
if (t.showProxy) return null === c[0] ? t.stylize("<Revoked Proxy>", "special") : function(t, e, n) {
|
|
3011
|
+
if (n > t.depth && null !== t.depth) return t.stylize("Proxy [Array]", "special");
|
|
3012
|
+
n += 1, t.indentationLvl += 2;
|
|
3013
|
+
const r = [nr(t, e[0], n), nr(t, e[1], n)];
|
|
3014
|
+
return t.indentationLvl -= 2, Lr(t, r, "", ["Proxy [", "]"], 2, n);
|
|
3015
|
+
}(t, c, o);
|
|
3016
|
+
do {
|
|
3017
|
+
if (null === c) {
|
|
3018
|
+
let e = t.stylize("<Revoked Proxy>", "special");
|
|
3019
|
+
for (let n = 0; n < s; n++) e = `${t.stylize("Proxy(", "special")}${e}${t.stylize(")", "special")}`;
|
|
3020
|
+
return e;
|
|
3021
|
+
}
|
|
3022
|
+
c = je(e = c, !1), s += 1;
|
|
3023
|
+
} while (void 0 !== c);
|
|
3024
|
+
}
|
|
3025
|
+
if (t.customInspect) {
|
|
3026
|
+
const n = e[Ne];
|
|
3027
|
+
if ("function" == typeof n && n !== Nn && pt(e, "constructor")?.value?.prototype !== e) {
|
|
3028
|
+
const e = null === t.depth ? null : t.depth - o, r = 0 !== s || !W(at, l), i = D(n, l, e, function(t, e) {
|
|
3029
|
+
const n = {
|
|
3030
|
+
stylize: t.stylize,
|
|
3031
|
+
showHidden: t.showHidden,
|
|
3032
|
+
depth: t.depth,
|
|
3033
|
+
colors: t.colors,
|
|
3034
|
+
customInspect: t.customInspect,
|
|
3035
|
+
showProxy: t.showProxy,
|
|
3036
|
+
maxArrayLength: t.maxArrayLength,
|
|
3037
|
+
maxStringLength: t.maxStringLength,
|
|
3038
|
+
breakLength: t.breakLength,
|
|
3039
|
+
compact: t.compact,
|
|
3040
|
+
sorted: t.sorted,
|
|
3041
|
+
getters: t.getters,
|
|
3042
|
+
numericSeparator: t.numericSeparator,
|
|
3043
|
+
...t.userOptions
|
|
3044
|
+
};
|
|
3045
|
+
if (e) {
|
|
3046
|
+
At(n, null);
|
|
3047
|
+
for (const t of mt(n)) "object" != typeof n[t] && "function" != typeof n[t] || null === n[t] || delete n[t];
|
|
3048
|
+
n.stylize = At((e, n) => {
|
|
3049
|
+
let r;
|
|
3050
|
+
try {
|
|
3051
|
+
r = `${t.stylize(e, n)}`;
|
|
3052
|
+
} catch {}
|
|
3053
|
+
return "string" != typeof r ? e : r;
|
|
3054
|
+
}, null);
|
|
3055
|
+
}
|
|
3056
|
+
return n;
|
|
3057
|
+
}(t, r), Nn);
|
|
3058
|
+
if (i !== l) return "string" != typeof i ? nr(t, i, o) : ne(i, "\n", `\n${te(" ", t.indentationLvl)}`);
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
if (t.seen.includes(e)) {
|
|
3062
|
+
let n = 1;
|
|
3063
|
+
return void 0 === t.circular ? (t.circular = new Tt(), t.circular.set(e, n)) : (n = t.circular.get(e), void 0 === n && (n = t.circular.size + 1, t.circular.set(e, n))), t.stylize(`[Circular *${n}]`, "special");
|
|
3064
|
+
}
|
|
3065
|
+
let u = function(t, e, o, i) {
|
|
3066
|
+
let l, s;
|
|
3067
|
+
t.showHidden && (o <= t.depth || null === t.depth) && (s = []);
|
|
3068
|
+
const c = Kn(e, t, o, s);
|
|
3069
|
+
void 0 !== s && 0 === s.length && (s = void 0);
|
|
3070
|
+
let u = "";
|
|
3071
|
+
try {
|
|
3072
|
+
u = e[pe];
|
|
3073
|
+
} catch {}
|
|
3074
|
+
("string" != typeof u || "" !== u && (t.showHidden ? $t : Pt)(e, pe)) && (u = "");
|
|
3075
|
+
let f, p, d = "", m = Yn, _ = !0;
|
|
3076
|
+
const w = t.showHidden ? Oe : Ee;
|
|
3077
|
+
let E, R, L = 0;
|
|
3078
|
+
if (ce in e || null === c) if (_ = !1, a(e)) {
|
|
3079
|
+
const t = "Array" !== c || "" !== u ? Xn(c, u, "Array", `(${e.length})`) : "";
|
|
3080
|
+
if (l = Ie(e, w), f = [`${t}[`, "]"], 0 === e.length && 0 === l.length && void 0 === s) return `${f[0]}]`;
|
|
3081
|
+
L = 2, m = dr;
|
|
3082
|
+
} else if (nn(e)) {
|
|
3083
|
+
const n = Dt(e), r = Xn(c, u, "Set", `(${n})`);
|
|
3084
|
+
if (l = tr(e, t.showHidden), m = C(br, null, null !== c ? e : Wt(e)), 0 === n && 0 === l.length && void 0 === s) return `${r}{}`;
|
|
3085
|
+
f = [`${r}{`, "}"];
|
|
3086
|
+
} else if (Ke(e)) {
|
|
3087
|
+
const n = Y(e), r = Xn(c, u, "Map", `(${n})`);
|
|
3088
|
+
if (l = tr(e, t.showHidden), m = C($r, null, null !== c ? e : Z(e)), 0 === n && 0 === l.length && void 0 === s) return `${r}{}`;
|
|
3089
|
+
f = [`${r}{`, "}"];
|
|
3090
|
+
} else if (an(e)) {
|
|
3091
|
+
l = Ie(e, w);
|
|
3092
|
+
let n = e, o = "";
|
|
3093
|
+
null === c && (o = be(e), n = new r[o](e));
|
|
3094
|
+
const s = me(e);
|
|
3095
|
+
if (f = [`${Xn(c, u, o, `(${s})`)}[`, "]"], 0 === e.length && 0 === l.length && !t.showHidden) return `${f[0]}]`;
|
|
3096
|
+
m = C(mr, null, n, s), L = 2, t.showHidden && (E = [
|
|
3097
|
+
"BYTES_PER_ELEMENT",
|
|
3098
|
+
"length",
|
|
3099
|
+
"byteLength",
|
|
3100
|
+
"byteOffset",
|
|
3101
|
+
"buffer"
|
|
3102
|
+
], i = !0);
|
|
3103
|
+
} else Qe(e) ? (l = tr(e, t.showHidden), f = rr("Map", u), m = C(_r, null, f)) : rn(e) ? (l = tr(e, t.showHidden), f = rr("Set", u), m = C(_r, null, f)) : _ = !0;
|
|
3104
|
+
if (_) {
|
|
3105
|
+
if (l = tr(e, t.showHidden), f = ["{", "}"], "function" == typeof e) {
|
|
3106
|
+
if (d = function(t, e, n, r) {
|
|
3107
|
+
const o = H(e);
|
|
3108
|
+
if (ie(o, "class") && "}" === o[o.length - 1]) {
|
|
3109
|
+
const t = re(o, 5, -1), i = qt(t, "{");
|
|
3110
|
+
if (-1 !== i && (!Yt(re(t, 0, i), "(") || null !== kt(jn, jt(zn, t)))) return function(t, e, n) {
|
|
3111
|
+
let r = `class ${$t(t, "name") && t.name || "(anonymous)"}`;
|
|
3112
|
+
if ("Function" !== e && null !== e && (r += ` [${e}]`), "" !== n && e !== n && (r += ` [${n}]`), null !== e) {
|
|
3113
|
+
const e = ht(t).name;
|
|
3114
|
+
e && (r += ` extends ${e}`);
|
|
3115
|
+
} else r += " extends [null prototype]";
|
|
3116
|
+
return `[${r}]`;
|
|
3117
|
+
}(e, n, r);
|
|
3118
|
+
}
|
|
3119
|
+
let i = "Function";
|
|
3120
|
+
Ue(e) && (i = `Generator${i}`), He(e) && (i = `Async${i}`);
|
|
3121
|
+
let l = `[${i}`;
|
|
3122
|
+
return null === n && (l += " (null prototype)"), "" === e.name ? l += " (anonymous)" : l += `: ${"string" == typeof e.name ? e.name : nr(t, e.name)}`, l += "]", n !== i && null !== n && (l += ` ${n}`), "" !== r && n !== r && (l += ` [${r}]`), l;
|
|
3123
|
+
}(t, e, c, u), 0 === l.length && void 0 === s) return t.stylize(d, "special");
|
|
3124
|
+
} else if ("Object" === c) {
|
|
3125
|
+
if (Ze(e) ? f[0] = "[Arguments] {" : "" !== u && (f[0] = `${Xn(c, u, "Object")}{`), 0 === l.length && void 0 === s) return `${f[0]}}`;
|
|
3126
|
+
} else if (sn(e)) {
|
|
3127
|
+
d = Bt(null !== c ? e : new Lt(e));
|
|
3128
|
+
const n = Xn(c, u, "RegExp");
|
|
3129
|
+
if ("RegExp " !== n && (d = `${n}${d}`), d = t.stylize(d, "regexp"), 0 === l.length && void 0 === s || o > t.depth && null !== t.depth) return d;
|
|
3130
|
+
} else if (cn(e)) {
|
|
3131
|
+
d = rt(k(e)) ? z(e) : j(e);
|
|
3132
|
+
const n = Xn(c, u, "Date");
|
|
3133
|
+
if ("Date " !== n && (d = `${n}${d}`), 0 === l.length && void 0 === s) return t.stylize(d, "date");
|
|
3134
|
+
} else if (Fe(e)) {
|
|
3135
|
+
if (d = function(t, e, n, r, o) {
|
|
3136
|
+
let i, l, s;
|
|
3137
|
+
try {
|
|
3138
|
+
s = ir(r, t);
|
|
3139
|
+
} catch {
|
|
3140
|
+
return xt(t);
|
|
3141
|
+
}
|
|
3142
|
+
let c = !1;
|
|
3143
|
+
try {
|
|
3144
|
+
i = t.message;
|
|
3145
|
+
} catch {
|
|
3146
|
+
c = !0;
|
|
3147
|
+
}
|
|
3148
|
+
let u = !1;
|
|
3149
|
+
try {
|
|
3150
|
+
l = t.name;
|
|
3151
|
+
} catch {
|
|
3152
|
+
u = !0;
|
|
3153
|
+
}
|
|
3154
|
+
if (!r.showHidden && 0 !== o.length) {
|
|
3155
|
+
const t = g(o, "stack");
|
|
3156
|
+
if (-1 !== t && S(o, t, 1), !c) {
|
|
3157
|
+
const t = g(o, "message");
|
|
3158
|
+
-1 === t || "string" == typeof i && !Yt(s, i) || S(o, t, 1);
|
|
3159
|
+
}
|
|
3160
|
+
if (!u) {
|
|
3161
|
+
const t = g(o, "name");
|
|
3162
|
+
-1 === t || "string" == typeof l && !Yt(s, l) || S(o, t, 1);
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
l = l ?? "Error", !$t(t, "cause") || 0 !== o.length && y(o, "cause") || b(o, "cause");
|
|
3166
|
+
try {
|
|
3167
|
+
const e = t.errors;
|
|
3168
|
+
!a(e) || !$t(t, "errors") || 0 !== o.length && y(o, "errors") || b(o, "errors");
|
|
3169
|
+
} catch {}
|
|
3170
|
+
!$t(t, "error") || 0 !== o.length && y(o, "error") || b(o, "error"), !$t(t, "suppressed") || 0 !== o.length && y(o, "suppressed") || b(o, "suppressed"), s = function(t, e, n, r) {
|
|
3171
|
+
let o = n.length;
|
|
3172
|
+
if ("string" != typeof n && (t = ee(t, `${n}`, `${n} [${re(Xn(e, r, "Error"), 0, -1)}]`)), null === e || Zt(n, "Error") && ie(t, n) && (t.length === o || ":" === t[o] || "\n" === t[o])) {
|
|
3173
|
+
let i = "Error";
|
|
3174
|
+
if (null === e) i = (kt(/^([A-Z][a-z_ A-Z0-9[\]()-]+)(?::|\n {4}at)/, t) || kt(/^([a-z_A-Z0-9-]*Error)$/, t))?.[1] || "", o = i.length, i = i || "Error";
|
|
3175
|
+
const l = re(Xn(e, r, i), 0, -1);
|
|
3176
|
+
n !== l && (t = Yt(l, n) ? 0 === o ? `${l}: ${t}` : `${l}${re(t, o)}` : `${l} [${n}]${re(t, o)}`);
|
|
3177
|
+
}
|
|
3178
|
+
return t;
|
|
3179
|
+
}(s, e, l, n);
|
|
3180
|
+
let f = i && qt(s, i) || -1;
|
|
3181
|
+
-1 !== f && (f += i.length);
|
|
3182
|
+
const p = qt(s, "\n at", f);
|
|
3183
|
+
if (-1 === p) s = `[${s}]`;
|
|
3184
|
+
else {
|
|
3185
|
+
let e = re(s, 0, p);
|
|
3186
|
+
const n = function(t, e, n) {
|
|
3187
|
+
const r = oe(n, "\n");
|
|
3188
|
+
let o;
|
|
3189
|
+
try {
|
|
3190
|
+
({cause: o} = e);
|
|
3191
|
+
} catch {}
|
|
3192
|
+
if (null != o && Fe(o)) {
|
|
3193
|
+
const e = ir(t, o), n = qt(e, "\n at");
|
|
3194
|
+
if (-1 !== n) {
|
|
3195
|
+
const { 0: i, 1: l } = or(r, oe(re(e, n + 1), "\n"));
|
|
3196
|
+
if (i > 0) {
|
|
3197
|
+
const e = i - 2, n = ` ... ${e} lines matching cause stack trace ...`;
|
|
3198
|
+
r.splice(l + 1, e, t.stylize(n, "undefined"));
|
|
3199
|
+
}
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
if (r.length > 10) {
|
|
3203
|
+
const e = function(t) {
|
|
3204
|
+
const e = [], n = new Tt();
|
|
3205
|
+
for (let e = 0; e < t.length; e++) {
|
|
3206
|
+
const r = n.get(t[e]);
|
|
3207
|
+
void 0 === r ? n.set(t[e], [e]) : r[r.length] = e;
|
|
3208
|
+
}
|
|
3209
|
+
if (t.length - n.size <= 3) return e;
|
|
3210
|
+
for (let r = 0; r < t.length - 3; r++) {
|
|
3211
|
+
const o = n.get(t[r]);
|
|
3212
|
+
if (1 === o.length || o[o.length - 1] === r) continue;
|
|
3213
|
+
const i = o.indexOf(r) + 1;
|
|
3214
|
+
if (i === o.length) continue;
|
|
3215
|
+
let l, s = o[o.length - 1] - r;
|
|
3216
|
+
if (s < 3) continue;
|
|
3217
|
+
if (i + 1 < o.length) {
|
|
3218
|
+
let t = 0;
|
|
3219
|
+
for (let e = i; e < o.length; e++) {
|
|
3220
|
+
let n = o[e] - r;
|
|
3221
|
+
for (; 0 !== n;) {
|
|
3222
|
+
const e = t % n;
|
|
3223
|
+
0 !== t && (l = l || new Mt(), l.add(t)), t = n, n = e;
|
|
3224
|
+
}
|
|
3225
|
+
if (1 === t) break;
|
|
3226
|
+
}
|
|
3227
|
+
s = t, l && (l.delete(s), l = [...l]);
|
|
3228
|
+
}
|
|
3229
|
+
let c = s, a = 0, u = 0;
|
|
3230
|
+
for (let e = r + s;; e += s) {
|
|
3231
|
+
let n = 0;
|
|
3232
|
+
for (let o = 0; o < s && t[r + o] === t[e + o]; o++) n++;
|
|
3233
|
+
if (n === s) u++;
|
|
3234
|
+
else {
|
|
3235
|
+
if (!l?.length) break;
|
|
3236
|
+
0 !== u && c * a < s * u && (c = s, a = u), s = l.pop(), e = r, u = 0;
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
0 !== a && c * a >= s * u && (s = c, u = a), u * s >= 3 && (e.push(r + s, s, u), r += s * (u + 1) - 1);
|
|
3240
|
+
}
|
|
3241
|
+
return e;
|
|
3242
|
+
}(r);
|
|
3243
|
+
for (let n = e.length - 3; n >= 0; n -= 3) {
|
|
3244
|
+
const o = e[n], i = e[n + 1], l = e[n + 2], s = ` ... collapsed ${i * l} duplicate lines matching above ` + (l > 1 ? `${i} lines ${l} times...` : "lines ...");
|
|
3245
|
+
r.splice(o, i * l, t.stylize(s, "undefined"));
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
return r;
|
|
3249
|
+
}(r, t, re(s, p + 1));
|
|
3250
|
+
if (r.colors) {
|
|
3251
|
+
const t = function() {
|
|
3252
|
+
let t;
|
|
3253
|
+
try {
|
|
3254
|
+
t = process.cwd();
|
|
3255
|
+
} catch {
|
|
3256
|
+
return;
|
|
3257
|
+
}
|
|
3258
|
+
return t;
|
|
3259
|
+
}();
|
|
3260
|
+
let o;
|
|
3261
|
+
for (let i of n) {
|
|
3262
|
+
const n = kt(kn, i);
|
|
3263
|
+
if (null !== n && hn.exists(n[1])) e += `\n${r.stylize(i, "undefined")}`;
|
|
3264
|
+
else {
|
|
3265
|
+
if (e += "\n", i = lr(r, i), void 0 !== t) {
|
|
3266
|
+
let e = sr(r, i, t);
|
|
3267
|
+
e === i && (o = o || Sn(t), e = sr(r, i, o)), i = e;
|
|
3268
|
+
}
|
|
3269
|
+
e += i;
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
} else e += `\n${h(n, "\n")}`;
|
|
3273
|
+
s = e;
|
|
3274
|
+
}
|
|
3275
|
+
if (0 !== r.indentationLvl) {
|
|
3276
|
+
const t = te(" ", r.indentationLvl);
|
|
3277
|
+
s = ne(s, "\n", `\n${t}`);
|
|
3278
|
+
}
|
|
3279
|
+
return s;
|
|
3280
|
+
}(e, c, u, t, l), 0 === l.length && void 0 === s) return d;
|
|
3281
|
+
} else if (Ge(e)) {
|
|
3282
|
+
const n = Xn(c, u, Ve(e) ? "ArrayBuffer" : "SharedArrayBuffer");
|
|
3283
|
+
if (void 0 === i) m = hr;
|
|
3284
|
+
else if (0 === l.length && void 0 === s) return n + `{ [byteLength]: ${ur(t.stylize, e.byteLength, !1)} }`;
|
|
3285
|
+
f[0] = `${n}{`, E = ["byteLength"];
|
|
3286
|
+
} else if (qe(e)) f[0] = `${Xn(c, u, "DataView")}{`, E = [
|
|
3287
|
+
"byteLength",
|
|
3288
|
+
"byteOffset",
|
|
3289
|
+
"buffer"
|
|
3290
|
+
];
|
|
3291
|
+
else if (en(e)) f[0] = `${Xn(c, u, "Promise")}{`, m = wr;
|
|
3292
|
+
else if (ln(e)) f[0] = `${Xn(c, u, "WeakSet")}{`, m = t.showHidden ? Ar : Sr;
|
|
3293
|
+
else if (on(e)) f[0] = `${Xn(c, u, "WeakMap")}{`, m = t.showHidden ? vr : Sr;
|
|
3294
|
+
else if (Xe(e)) f[0] = `${Xn(c, u, "Module")}{`, m = yr.bind(null, l);
|
|
3295
|
+
else if (Ye(e)) {
|
|
3296
|
+
if (d = function(t, e, n, r, o) {
|
|
3297
|
+
let i, l;
|
|
3298
|
+
fn(t) ? (i = ct, l = "Number") : un(t) ? (i = se, l = "String", n.splice(0, t.length)) : pn(t) ? (i = O, l = "Boolean") : yn(t) ? (i = v, l = "BigInt") : (i = ue, l = "Symbol");
|
|
3299
|
+
let s = `[${l}`;
|
|
3300
|
+
return l !== r && (s += null === r ? " (null prototype)" : ` (${r})`), s += `: ${pr(Zn, i(t), e)}]`, "" !== o && o !== r && (s += ` [${o}]`), 0 !== n.length || e.stylize === Zn ? s : e.stylize(s, le(l));
|
|
3301
|
+
}(e, t, l, c, u), 0 === l.length && void 0 === s) return d;
|
|
3302
|
+
} else if (!function(t) {
|
|
3303
|
+
return Pn = Pn || n(613), "string" == typeof t.href && t instanceof Pn.URL;
|
|
3304
|
+
}(e) || o > t.depth && null !== t.depth) {
|
|
3305
|
+
if (0 === l.length && void 0 === s) {
|
|
3306
|
+
if (Je(e)) {
|
|
3307
|
+
const n = Te(e).toString(16);
|
|
3308
|
+
return t.stylize(`[External: ${n}]`, "special");
|
|
3309
|
+
}
|
|
3310
|
+
return `${er(e, c, u)}{}`;
|
|
3311
|
+
}
|
|
3312
|
+
f[0] = `${er(e, c, u)}{`;
|
|
3313
|
+
} else if (l = function(t) {
|
|
3314
|
+
return xn = xn || gt(new Pn.URL("http://user:pass@localhost:8080/?foo=bar#baz")), t.filter((t) => -1 === xn[t]);
|
|
3315
|
+
}(l), d = e.href, 0 === l.length && void 0 === s) return d;
|
|
3316
|
+
}
|
|
3317
|
+
if (o > t.depth && null !== t.depth) {
|
|
3318
|
+
let n = re(er(e, c, u), 0, -1);
|
|
3319
|
+
return null !== c && (n = `[${n}]`), t.stylize(n, "special");
|
|
3320
|
+
}
|
|
3321
|
+
o += 1, t.seen.push(e), t.currentDepth = o;
|
|
3322
|
+
const I = t.indentationLvl;
|
|
3323
|
+
try {
|
|
3324
|
+
if (R = m(t, e, o), void 0 !== E) for (p = 0; p < E.length; p++) {
|
|
3325
|
+
let n;
|
|
3326
|
+
try {
|
|
3327
|
+
n = Or(t, e, o, E[p], i);
|
|
3328
|
+
} catch {
|
|
3329
|
+
n = Or(t, { [E[p]]: e.buffer[E[p]] }, o, E[p], i);
|
|
3330
|
+
}
|
|
3331
|
+
b(R, n);
|
|
3332
|
+
}
|
|
3333
|
+
for (p = 0; p < l.length; p++) b(R, Er(t, e, o, l[p], L));
|
|
3334
|
+
void 0 !== s && $(R, s);
|
|
3335
|
+
} catch (n) {
|
|
3336
|
+
if (!We(n)) throw n;
|
|
3337
|
+
return function(t, e, n, r) {
|
|
3338
|
+
return t.seen.pop(), t.indentationLvl = r, t.stylize(`[${n}: Inspection interrupted prematurely. Maximum call stack size exceeded.]`, "special");
|
|
3339
|
+
}(t, 0, re(er(e, c, u), 0, -1), I);
|
|
3340
|
+
}
|
|
3341
|
+
if (void 0 !== t.circular) {
|
|
3342
|
+
const n = t.circular.get(e);
|
|
3343
|
+
if (void 0 !== n) {
|
|
3344
|
+
const e = t.stylize(`<ref *${n}>`, "special");
|
|
3345
|
+
!0 !== t.compact ? d = "" === d ? e : `${e} ${d}` : f[0] = `${e} ${f[0]}`;
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
if (t.seen.pop(), t.sorted) {
|
|
3349
|
+
const e = !0 === t.sorted ? void 0 : t.sorted;
|
|
3350
|
+
if (0 === L) x(R, e);
|
|
3351
|
+
else if (l.length > 1) {
|
|
3352
|
+
const t = x(P(R, R.length - l.length), e);
|
|
3353
|
+
A(t, R, R.length - l.length, l.length), Et(S, null, t);
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
const B = Lr(t, R, d, f, L, o, e), T = (t.budget[t.indentationLvl] || 0) + B.length;
|
|
3357
|
+
return t.budget[t.indentationLvl] = T, T > 2 ** 27 && (t.depth = -1), B;
|
|
3358
|
+
}(t, e, o, i);
|
|
3359
|
+
if (0 !== s) for (let e = 0; e < s; e++) u = `${t.stylize("Proxy(", "special")}${u}${t.stylize(")", "special")}`;
|
|
3360
|
+
return u;
|
|
3361
|
+
}
|
|
3362
|
+
function rr(t, e) {
|
|
3363
|
+
return e !== `${t} Iterator` && ("" !== e && (e += "] ["), e += `${t} Iterator`), [`[${e}] {`, "}"];
|
|
3364
|
+
}
|
|
3365
|
+
function or(t, e) {
|
|
3366
|
+
for (let n = 0; n < t.length - 3; n++) {
|
|
3367
|
+
const r = g(e, t[n]);
|
|
3368
|
+
if (-1 !== r) {
|
|
3369
|
+
const o = e.length - r;
|
|
3370
|
+
if (o > 3) {
|
|
3371
|
+
let i = 1;
|
|
3372
|
+
const l = K(t.length - n, o);
|
|
3373
|
+
for (; l > i && t[n + i] === e[r + i];) i++;
|
|
3374
|
+
if (i > 3) return [i, n];
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
return [0, 0];
|
|
3379
|
+
}
|
|
3380
|
+
function ir(t, e) {
|
|
3381
|
+
let n;
|
|
3382
|
+
try {
|
|
3383
|
+
n = e.stack;
|
|
3384
|
+
} catch {}
|
|
3385
|
+
if (n) {
|
|
3386
|
+
if ("string" == typeof n) return n;
|
|
3387
|
+
t.seen.push(e), t.indentationLvl += 4;
|
|
3388
|
+
const r = nr(t, n);
|
|
3389
|
+
return t.indentationLvl -= 4, t.seen.pop(), `${M(e)}\n ${r}`;
|
|
3390
|
+
}
|
|
3391
|
+
return M(e);
|
|
3392
|
+
}
|
|
3393
|
+
function lr(t, e) {
|
|
3394
|
+
let n = "", r = 0, o = 0;
|
|
3395
|
+
for (;;) {
|
|
3396
|
+
const i = qt(e, "node_modules", o);
|
|
3397
|
+
if (-1 === i) break;
|
|
3398
|
+
const l = e[i - 1], s = e[i + 12];
|
|
3399
|
+
if ("/" !== s && "\\" !== s || "/" !== l && "\\" !== l) {
|
|
3400
|
+
o = i + 1;
|
|
3401
|
+
continue;
|
|
3402
|
+
}
|
|
3403
|
+
const c = i + 13;
|
|
3404
|
+
n += re(e, r, c);
|
|
3405
|
+
let a = qt(e, l, c);
|
|
3406
|
+
-1 === a ? a = e.length : "@" === e[c] && (a = qt(e, l, a + 1), -1 === a && (a = e.length));
|
|
3407
|
+
const u = re(e, c, a);
|
|
3408
|
+
n += t.stylize(u, "module"), r = a, o = a;
|
|
3409
|
+
}
|
|
3410
|
+
return 0 !== r && (e = n + re(e, r)), e;
|
|
3411
|
+
}
|
|
3412
|
+
function sr(t, e, n) {
|
|
3413
|
+
let r = qt(e, n), o = "", i = n.length;
|
|
3414
|
+
if (-1 !== r) {
|
|
3415
|
+
"file://" === re(e, r - 7, r) && (i += 7, r -= 7);
|
|
3416
|
+
const n = "(" === e[r - 1] ? r - 1 : r, l = n !== r && Zt(e, ")") ? -1 : e.length, s = r + i + 1, c = re(e, n, s);
|
|
3417
|
+
o += re(e, 0, n), o += t.stylize(c, "undefined"), o += re(e, s, l), -1 === l && (o += t.stylize(")", "undefined"));
|
|
3418
|
+
} else o += e;
|
|
3419
|
+
return o;
|
|
3420
|
+
}
|
|
3421
|
+
function cr(t) {
|
|
3422
|
+
let e = "", n = t.length;
|
|
3423
|
+
gn(0 !== n);
|
|
3424
|
+
const r = "-" === t[0] ? 1 : 0;
|
|
3425
|
+
for (; n >= r + 4; n -= 3) e = `_${re(t, n - 3, n)}${e}`;
|
|
3426
|
+
return n === t.length ? t : `${re(t, 0, n)}${e}`;
|
|
3427
|
+
}
|
|
3428
|
+
const ar = (t) => `... ${t} more item${t > 1 ? "s" : ""}`;
|
|
3429
|
+
function ur(t, e, n) {
|
|
3430
|
+
if (dt(e, -0)) return t("-0", "number");
|
|
3431
|
+
if (!n) return t(`${e}`, "number");
|
|
3432
|
+
const r = Ht(e);
|
|
3433
|
+
if (tt(e) === e) return !nt(e) || Yt(r, "e") ? t(r, "number") : t(cr(r), "number");
|
|
3434
|
+
if (rt(e) || Yt(r, "e")) return t(r, "number");
|
|
3435
|
+
const o = qt(r, "."), i = re(r, 0, o), l = re(r, o + 1);
|
|
3436
|
+
return t(`${cr(i)}.${function(t) {
|
|
3437
|
+
let e = "", n = 0;
|
|
3438
|
+
for (; n < t.length - 3; n += 3) e += `${re(t, n, n + 3)}_`;
|
|
3439
|
+
return 0 === n ? t : `${e}${re(t, n)}`;
|
|
3440
|
+
}(l)}`, "number");
|
|
3441
|
+
}
|
|
3442
|
+
function fr(t, e, n) {
|
|
3443
|
+
const r = Ht(e);
|
|
3444
|
+
return t(n ? `${cr(r)}n` : `${r}n`, "bigint");
|
|
3445
|
+
}
|
|
3446
|
+
function pr(t, e, n) {
|
|
3447
|
+
if ("string" == typeof e) {
|
|
3448
|
+
let r = "";
|
|
3449
|
+
if (e.length > n.maxStringLength) {
|
|
3450
|
+
const t = e.length - n.maxStringLength;
|
|
3451
|
+
e = re(e, 0, n.maxStringLength), r = `... ${t} more character${t > 1 ? "s" : ""}`;
|
|
3452
|
+
}
|
|
3453
|
+
return !0 !== n.compact && e.length > 16 && e.length > n.breakLength - n.indentationLvl - 4 ? h(d(zt(/(?<=\n)/, e), (e) => t(Gn(e), "string")), ` +\n${te(" ", n.indentationLvl + 2)}`) + r : t(Gn(e), "string") + r;
|
|
3454
|
+
}
|
|
3455
|
+
return "number" == typeof e ? ur(t, e, n.numericSeparator) : "bigint" == typeof e ? fr(t, e, n.numericSeparator) : "boolean" == typeof e ? t(`${e}`, "boolean") : void 0 === e ? t("undefined", "undefined") : t(ae(e), "symbol");
|
|
3456
|
+
}
|
|
3457
|
+
function yr(t, e, n, r) {
|
|
3458
|
+
const o = new l(t.length);
|
|
3459
|
+
for (let i = 0; i < t.length; i++) try {
|
|
3460
|
+
o[i] = Er(e, n, r, t[i], 0);
|
|
3461
|
+
} catch (n) {
|
|
3462
|
+
gn(tn(n) && "ReferenceError" === n.name);
|
|
3463
|
+
const l = { [t[i]]: "" };
|
|
3464
|
+
o[i] = Er(e, l, r, t[i], 0);
|
|
3465
|
+
const s = Jt(o[i], " ");
|
|
3466
|
+
o[i] = re(o[i], 0, s + 1) + e.stylize("<uninitialized>", "special");
|
|
3467
|
+
}
|
|
3468
|
+
return t.length = 0, o;
|
|
3469
|
+
}
|
|
3470
|
+
function gr(t, e, n, r, o, i) {
|
|
3471
|
+
const l = mt(e);
|
|
3472
|
+
let s = i;
|
|
3473
|
+
for (; i < l.length && o.length < r; i++) {
|
|
3474
|
+
const c = l[i], a = +c;
|
|
3475
|
+
if (a > 2 ** 32 - 2) break;
|
|
3476
|
+
if (`${s}` !== c) {
|
|
3477
|
+
if (null === kt(In, c)) break;
|
|
3478
|
+
const e = a - s, n = `<${e} empty item${e > 1 ? "s" : ""}>`;
|
|
3479
|
+
if (b(o, t.stylize(n, "undefined")), s = a, o.length === r) break;
|
|
3480
|
+
}
|
|
3481
|
+
b(o, Er(t, e, n, c, 1)), s++;
|
|
3482
|
+
}
|
|
3483
|
+
const c = e.length - s;
|
|
3484
|
+
if (o.length !== r) {
|
|
3485
|
+
if (c > 0) {
|
|
3486
|
+
const e = `<${c} empty item${c > 1 ? "s" : ""}>`;
|
|
3487
|
+
b(o, t.stylize(e, "undefined"));
|
|
3488
|
+
}
|
|
3489
|
+
} else c > 0 && b(o, ar(c));
|
|
3490
|
+
return o;
|
|
3491
|
+
}
|
|
3492
|
+
function hr(t, e) {
|
|
3493
|
+
let r;
|
|
3494
|
+
try {
|
|
3495
|
+
r = new $e(e);
|
|
3496
|
+
} catch {
|
|
3497
|
+
return [t.stylize("(detached)", "special")];
|
|
3498
|
+
}
|
|
3499
|
+
void 0 === $n && ($n = we(n(308).h.prototype.hexSlice));
|
|
3500
|
+
const o = $n(r, 0, K(t.maxArrayLength, r.length));
|
|
3501
|
+
let i = "", l = 0;
|
|
3502
|
+
for (; l < o.length - 2; l += 2) i += `${o[l]}${o[l + 1]} `;
|
|
3503
|
+
o.length > 0 && (i += `${o[l]}${o[l + 1]}`);
|
|
3504
|
+
const s = r.length - t.maxArrayLength;
|
|
3505
|
+
return s > 0 && (i += ` ... ${s} more byte${s > 1 ? "s" : ""}`), [`${t.stylize("[Uint8Contents]", "special")}: <${i}>`];
|
|
3506
|
+
}
|
|
3507
|
+
function dr(t, e, n) {
|
|
3508
|
+
const r = e.length, o = K(J(0, t.maxArrayLength), r), i = r - o, l = [];
|
|
3509
|
+
for (let r = 0; r < o; r++) {
|
|
3510
|
+
const i = pt(e, r);
|
|
3511
|
+
if (void 0 === i) return gr(t, e, n, o, l, r);
|
|
3512
|
+
b(l, Er(t, e, n, r, 1, i));
|
|
3513
|
+
}
|
|
3514
|
+
return i > 0 && b(l, ar(i)), l;
|
|
3515
|
+
}
|
|
3516
|
+
function mr(t, e, n) {
|
|
3517
|
+
const r = K(J(0, n.maxArrayLength), e), o = t.length - r, i = new l(r), s = t.length > 0 && "number" == typeof t[0] ? ur : fr;
|
|
3518
|
+
for (let e = 0; e < r; ++e) i[e] = s(n.stylize, t[e], n.numericSeparator);
|
|
3519
|
+
return o > 0 && (i[r] = ar(o)), i;
|
|
3520
|
+
}
|
|
3521
|
+
function br(t, e, n, r) {
|
|
3522
|
+
const o = t.size, i = K(J(0, e.maxArrayLength), o), l = o - i, s = [];
|
|
3523
|
+
e.indentationLvl += 2;
|
|
3524
|
+
let c = 0;
|
|
3525
|
+
for (const n of t) {
|
|
3526
|
+
if (c >= i) break;
|
|
3527
|
+
b(s, nr(e, n, r)), c++;
|
|
3528
|
+
}
|
|
3529
|
+
return l > 0 && b(s, ar(l)), e.indentationLvl -= 2, s;
|
|
3530
|
+
}
|
|
3531
|
+
function $r(t, e, n, r) {
|
|
3532
|
+
const o = t.size, i = K(J(0, e.maxArrayLength), o), l = o - i, s = [];
|
|
3533
|
+
e.indentationLvl += 2;
|
|
3534
|
+
let c = 0;
|
|
3535
|
+
for (const { 0: n, 1: o } of t) {
|
|
3536
|
+
if (c >= i) break;
|
|
3537
|
+
b(s, `${nr(e, n, r)} => ${nr(e, o, r)}`), c++;
|
|
3538
|
+
}
|
|
3539
|
+
return l > 0 && b(s, ar(l)), e.indentationLvl -= 2, s;
|
|
3540
|
+
}
|
|
3541
|
+
function Pr(t, e, n, r) {
|
|
3542
|
+
const o = J(t.maxArrayLength, 0), i = K(o, n.length), s = new l(i);
|
|
3543
|
+
t.indentationLvl += 2;
|
|
3544
|
+
for (let r = 0; r < i; r++) s[r] = nr(t, n[r], e);
|
|
3545
|
+
t.indentationLvl -= 2, 0 !== r || t.sorted || x(s);
|
|
3546
|
+
const c = n.length - i;
|
|
3547
|
+
return c > 0 && b(s, ar(c)), s;
|
|
3548
|
+
}
|
|
3549
|
+
function xr(t, e, n, r) {
|
|
3550
|
+
const o = J(t.maxArrayLength, 0), i = n.length / 2, s = i - o, c = K(o, i), a = new l(c);
|
|
3551
|
+
let u = 0;
|
|
3552
|
+
if (t.indentationLvl += 2, 0 === r) {
|
|
3553
|
+
for (; u < c; u++) {
|
|
3554
|
+
const r = 2 * u;
|
|
3555
|
+
a[u] = `${nr(t, n[r], e)} => ${nr(t, n[r + 1], e)}`;
|
|
3556
|
+
}
|
|
3557
|
+
t.sorted || x(a);
|
|
3558
|
+
} else for (; u < c; u++) {
|
|
3559
|
+
const r = 2 * u, o = [nr(t, n[r], e), nr(t, n[r + 1], e)];
|
|
3560
|
+
a[u] = Lr(t, o, "", ["[", "]"], 2, e);
|
|
3561
|
+
}
|
|
3562
|
+
return t.indentationLvl -= 2, s > 0 && b(a, ar(s)), a;
|
|
3563
|
+
}
|
|
3564
|
+
function Sr(t) {
|
|
3565
|
+
return [t.stylize("<items unknown>", "special")];
|
|
3566
|
+
}
|
|
3567
|
+
function Ar(t, e, n) {
|
|
3568
|
+
return Pr(t, n, ze(e), 0);
|
|
3569
|
+
}
|
|
3570
|
+
function vr(t, e, n) {
|
|
3571
|
+
return xr(t, n, ze(e), 0);
|
|
3572
|
+
}
|
|
3573
|
+
function _r(t, e, n, r) {
|
|
3574
|
+
const { 0: o, 1: i } = ze(n, !0);
|
|
3575
|
+
return i ? (t[0] = jt(/ Iterator] {$/, t[0], " Entries] {"), xr(e, r, o, 2)) : Pr(e, r, o, 1);
|
|
3576
|
+
}
|
|
3577
|
+
function wr(t, e, n) {
|
|
3578
|
+
let r;
|
|
3579
|
+
const { 0: o, 1: i } = ke(e);
|
|
3580
|
+
if (o === Re) r = [t.stylize("<pending>", "special")];
|
|
3581
|
+
else {
|
|
3582
|
+
t.indentationLvl += 2;
|
|
3583
|
+
const e = nr(t, i, n);
|
|
3584
|
+
t.indentationLvl -= 2, r = [o === Le ? `${t.stylize("<rejected>", "special")} ${e}` : e];
|
|
3585
|
+
}
|
|
3586
|
+
return r;
|
|
3587
|
+
}
|
|
3588
|
+
function Or(t, e, n, r, o) {
|
|
3589
|
+
const i = e[r];
|
|
3590
|
+
t.indentationLvl += 2;
|
|
3591
|
+
const l = nr(t, i, n, o);
|
|
3592
|
+
return t.indentationLvl -= 2, `${t.stylize(`[${r}]`, "string")}: ${l}`;
|
|
3593
|
+
}
|
|
3594
|
+
function Er(t, e, n, r, o, i, l = e) {
|
|
3595
|
+
let s, c, a = " ";
|
|
3596
|
+
if (void 0 !== (i = i || pt(e, r)).value) {
|
|
3597
|
+
const e = !0 !== t.compact || 0 !== o ? 2 : 3;
|
|
3598
|
+
t.indentationLvl += e, c = nr(t, i.value, n), 3 === e && t.breakLength < Mn(c, t.colors) && (a = `\n${te(" ", t.indentationLvl)}`), t.indentationLvl -= e;
|
|
3599
|
+
} else if (void 0 !== i.get) {
|
|
3600
|
+
const e = void 0 !== i.set ? "Getter/Setter" : "Getter", r = t.stylize, o = "special";
|
|
3601
|
+
if (t.getters && (!0 === t.getters || "get" === t.getters && void 0 === i.set || "set" === t.getters && void 0 !== i.set)) {
|
|
3602
|
+
t.indentationLvl += 2;
|
|
3603
|
+
try {
|
|
3604
|
+
const s = D(i.get, l);
|
|
3605
|
+
if (null === s) c = `${r(`[${e}:`, o)} ${r("null", "null")}${r("]", o)}`;
|
|
3606
|
+
else if ("object" == typeof s || "function" == typeof s) c = `${r(`[${e}]`, o)} ${nr(t, s, n)}`;
|
|
3607
|
+
else {
|
|
3608
|
+
const n = pr(r, s, t);
|
|
3609
|
+
c = `${r(`[${e}:`, o)} ${n}${r("]", o)}`;
|
|
3610
|
+
}
|
|
3611
|
+
} catch (i) {
|
|
3612
|
+
const l = `<Inspection threw (${nr(t, i, n)})>`;
|
|
3613
|
+
c = `${r(`[${e}:`, o)} ${l}${r("]", o)}`;
|
|
3614
|
+
}
|
|
3615
|
+
t.indentationLvl -= 2;
|
|
3616
|
+
} else c = t.stylize(`[${e}]`, o);
|
|
3617
|
+
} else c = void 0 !== i.set ? t.stylize("[Setter]", "special") : t.stylize("undefined", "undefined");
|
|
3618
|
+
if (1 === o) return c;
|
|
3619
|
+
if ("symbol" == typeof r) {
|
|
3620
|
+
const e = jt(On, ae(r), Un);
|
|
3621
|
+
s = t.stylize(e, "symbol");
|
|
3622
|
+
} else s = null !== kt(Ln, r) ? "__proto__" === r ? "['__proto__']" : t.stylize(r, "name") : t.stylize(Gn(r), "string");
|
|
3623
|
+
return !1 === i.enumerable && (s = `[${s}]`), `${s}:${a}${c}`;
|
|
3624
|
+
}
|
|
3625
|
+
function Rr(t, e, n, r) {
|
|
3626
|
+
if (t.breakLength === 1 / 0) {
|
|
3627
|
+
if ("" !== r && Yt(r, "\n")) return !1;
|
|
3628
|
+
for (let t = 0; t < e.length; t++) if ("string" == typeof e[t] && Yt(e[t], "\n")) return !1;
|
|
3629
|
+
return !0;
|
|
3630
|
+
}
|
|
3631
|
+
let o = e.length + n;
|
|
3632
|
+
if (o + e.length > t.breakLength) return !1;
|
|
3633
|
+
for (let n = 0; n < e.length; n++) if (t.colors ? o += De(e[n]).length : o += e[n].length, o > t.breakLength) return !1;
|
|
3634
|
+
return "" === r || !Yt(r, "\n");
|
|
3635
|
+
}
|
|
3636
|
+
function Lr(t, e, n, r, o, i, s) {
|
|
3637
|
+
if (!0 !== t.compact) {
|
|
3638
|
+
if ("number" == typeof t.compact && t.compact >= 1) {
|
|
3639
|
+
const c = e.length;
|
|
3640
|
+
if (2 === o && c > 6 && (e = function(t, e, n) {
|
|
3641
|
+
let r = 0, o = 0, i = 0, s = e.length;
|
|
3642
|
+
t.maxArrayLength < e.length && s--;
|
|
3643
|
+
const c = new l(s);
|
|
3644
|
+
for (; i < s; i++) {
|
|
3645
|
+
const n = Mn(e[i], t.colors);
|
|
3646
|
+
c[i] = n, r += n + 2, o < n && (o = n);
|
|
3647
|
+
}
|
|
3648
|
+
const a = o + 2;
|
|
3649
|
+
if (3 * a + t.indentationLvl < t.breakLength && (r / a > 5 || o <= 6)) {
|
|
3650
|
+
const o = 2.5, i = X(a - r / e.length), l = J(a - 3 - i, 1), u = K(Q(X(o * l * s) / l), q((t.breakLength - t.indentationLvl) / a), 4 * t.compact, 15);
|
|
3651
|
+
if (u <= 1) return e;
|
|
3652
|
+
const f = [], p = [];
|
|
3653
|
+
for (let t = 0; t < u; t++) {
|
|
3654
|
+
let n = 0;
|
|
3655
|
+
for (let r = t; r < e.length; r += u) c[r] > n && (n = c[r]);
|
|
3656
|
+
n += 2, p[t] = n;
|
|
3657
|
+
}
|
|
3658
|
+
let y = Xt;
|
|
3659
|
+
if (void 0 !== n) {
|
|
3660
|
+
for (let t = 0; t < e.length; t++) if ("number" != typeof n[t] && "bigint" != typeof n[t]) {
|
|
3661
|
+
y = Qt;
|
|
3662
|
+
break;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
for (let t = 0; t < s; t += u) {
|
|
3666
|
+
const n = K(t + u, s);
|
|
3667
|
+
let r = "", o = t;
|
|
3668
|
+
for (; o < n - 1; o++) {
|
|
3669
|
+
const n = p[o - t] + e[o].length - c[o];
|
|
3670
|
+
r += y(`${e[o]}, `, n, " ");
|
|
3671
|
+
}
|
|
3672
|
+
if (y === Xt) {
|
|
3673
|
+
const n = p[o - t] + e[o].length - c[o] - 2;
|
|
3674
|
+
r += Xt(e[o], n, " ");
|
|
3675
|
+
} else r += e[o];
|
|
3676
|
+
b(f, r);
|
|
3677
|
+
}
|
|
3678
|
+
t.maxArrayLength < e.length && b(f, e[s]), e = f;
|
|
3679
|
+
}
|
|
3680
|
+
return e;
|
|
3681
|
+
}(t, e, s)), t.currentDepth - i < t.compact && c === e.length && Rr(t, e, e.length + t.indentationLvl + r[0].length + n.length + 10, n)) {
|
|
3682
|
+
const t = Ce(e, ", ");
|
|
3683
|
+
if (!Yt(t, "\n")) return `${n ? `${n} ` : ""}${r[0]} ${t} ${r[1]}`;
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
const c = `\n${te(" ", t.indentationLvl)}`;
|
|
3687
|
+
return `${n ? `${n} ` : ""}${r[0]}${c} ${Ce(e, `,${c} `)}${c}${r[1]}`;
|
|
3688
|
+
}
|
|
3689
|
+
if (Rr(t, e, 0, n)) return `${r[0]}${n ? ` ${n}` : ""} ${Ce(e, ", ")} ` + r[1];
|
|
3690
|
+
const c = te(" ", t.indentationLvl), a = "" === n && 1 === r[0].length ? " " : `${n ? ` ${n}` : ""}\n${c} `;
|
|
3691
|
+
return `${r[0]}${a}${Ce(e, `,\n${c} `)} ${r[1]}`;
|
|
3692
|
+
}
|
|
3693
|
+
function Ir(t) {
|
|
3694
|
+
const e = je(t, !1);
|
|
3695
|
+
if (void 0 !== e) return null === e || Ir(e);
|
|
3696
|
+
let n = $t, r = $t;
|
|
3697
|
+
if ("function" != typeof t.toString) {
|
|
3698
|
+
if ("function" != typeof t[fe]) return !0;
|
|
3699
|
+
if ($t(t, fe)) return !1;
|
|
3700
|
+
n = kr;
|
|
3701
|
+
} else {
|
|
3702
|
+
if ($t(t, "toString")) return !1;
|
|
3703
|
+
if ("function" != typeof t[fe]) r = kr;
|
|
3704
|
+
else if ($t(t, fe)) return !1;
|
|
3705
|
+
}
|
|
3706
|
+
let o = t;
|
|
3707
|
+
do
|
|
3708
|
+
o = ht(o);
|
|
3709
|
+
while (!n(o, "toString") && !r(o, fe));
|
|
3710
|
+
const i = pt(o, "constructor");
|
|
3711
|
+
return void 0 !== i && "function" == typeof i.value && An.has(i.value.name);
|
|
3712
|
+
}
|
|
3713
|
+
function kr() {
|
|
3714
|
+
return !1;
|
|
3715
|
+
}
|
|
3716
|
+
const jr = (t) => oe(t.message, "\n", 1)[0];
|
|
3717
|
+
let zr;
|
|
3718
|
+
function Br(t) {
|
|
3719
|
+
try {
|
|
3720
|
+
return U(t);
|
|
3721
|
+
} catch (t) {
|
|
3722
|
+
if (!zr) try {
|
|
3723
|
+
const t = {};
|
|
3724
|
+
t.a = t, U(t);
|
|
3725
|
+
} catch (t) {
|
|
3726
|
+
zr = jr(t);
|
|
3727
|
+
}
|
|
3728
|
+
if ("TypeError" === t.name && jr(t) === zr) return "[Circular]";
|
|
3729
|
+
throw t;
|
|
3730
|
+
}
|
|
3731
|
+
}
|
|
3732
|
+
function Tr(t, e) {
|
|
3733
|
+
return ur(Zn, t, e?.numericSeparator ?? _n.numericSeparator);
|
|
3734
|
+
}
|
|
3735
|
+
function Mr(t, e) {
|
|
3736
|
+
return fr(Zn, t, e?.numericSeparator ?? _n.numericSeparator);
|
|
3737
|
+
}
|
|
3738
|
+
function Nr(t, e) {
|
|
3739
|
+
const n = e[0];
|
|
3740
|
+
let r = 0, o = "", i = "";
|
|
3741
|
+
if ("string" == typeof n) {
|
|
3742
|
+
if (1 === e.length) return n;
|
|
3743
|
+
let l, s = 0;
|
|
3744
|
+
for (let i = 0; i < n.length - 1; i++) if (37 === Gt(n, i)) {
|
|
3745
|
+
const c = Gt(n, ++i);
|
|
3746
|
+
if (r + 1 !== e.length) {
|
|
3747
|
+
switch (c) {
|
|
3748
|
+
case 115: {
|
|
3749
|
+
const n = e[++r];
|
|
3750
|
+
l = "number" == typeof n ? Tr(n, t) : "bigint" == typeof n ? Mr(n, t) : "object" == typeof n && null !== n && Ir(n) ? Nn(n, {
|
|
3751
|
+
...t,
|
|
3752
|
+
compact: 3,
|
|
3753
|
+
colors: !1,
|
|
3754
|
+
depth: 0
|
|
3755
|
+
}) : Ht(n);
|
|
3756
|
+
break;
|
|
3757
|
+
}
|
|
3758
|
+
case 106:
|
|
3759
|
+
l = Br(e[++r]);
|
|
3760
|
+
break;
|
|
3761
|
+
case 100: {
|
|
3762
|
+
const n = e[++r];
|
|
3763
|
+
l = "bigint" == typeof n ? Mr(n, t) : "symbol" == typeof n ? "NaN" : Tr(et(n), t);
|
|
3764
|
+
break;
|
|
3765
|
+
}
|
|
3766
|
+
case 79:
|
|
3767
|
+
l = Nn(e[++r], t);
|
|
3768
|
+
break;
|
|
3769
|
+
case 111:
|
|
3770
|
+
l = Nn(e[++r], {
|
|
3771
|
+
...t,
|
|
3772
|
+
showHidden: !0,
|
|
3773
|
+
showProxy: !0,
|
|
3774
|
+
depth: 4
|
|
3775
|
+
});
|
|
3776
|
+
break;
|
|
3777
|
+
case 105: {
|
|
3778
|
+
const n = e[++r];
|
|
3779
|
+
l = "bigint" == typeof n ? Mr(n, t) : "symbol" == typeof n ? "NaN" : Tr(it(n), t);
|
|
3780
|
+
break;
|
|
3781
|
+
}
|
|
3782
|
+
case 102: {
|
|
3783
|
+
const n = e[++r];
|
|
3784
|
+
l = "symbol" == typeof n ? "NaN" : Tr(ot(n), t);
|
|
3785
|
+
break;
|
|
3786
|
+
}
|
|
3787
|
+
case 99:
|
|
3788
|
+
r += 1, l = "";
|
|
3789
|
+
break;
|
|
3790
|
+
case 37:
|
|
3791
|
+
o += re(n, s, i), s = i + 1;
|
|
3792
|
+
continue;
|
|
3793
|
+
default: continue;
|
|
3794
|
+
}
|
|
3795
|
+
s !== i - 1 && (o += re(n, s, i - 1)), o += l, s = i + 1;
|
|
3796
|
+
} else 37 === c && (o += re(n, s, i), s = i + 1);
|
|
3797
|
+
}
|
|
3798
|
+
0 !== s && (r++, i = " ", s < n.length && (o += re(n, s)));
|
|
3799
|
+
}
|
|
3800
|
+
for (; r < e.length;) {
|
|
3801
|
+
const n = e[r];
|
|
3802
|
+
o += i, o += "string" != typeof n ? Nn(n, t) : n, i = " ", r++;
|
|
3803
|
+
}
|
|
3804
|
+
return o;
|
|
3805
|
+
}
|
|
3806
|
+
function Fr(t) {
|
|
3807
|
+
return t <= 31 || t >= 127 && t <= 159 || t >= 768 && t <= 879 || t >= 8203 && t <= 8207 || t >= 8400 && t <= 8447 || t >= 65024 && t <= 65039 || t >= 65056 && t <= 65071 || t >= 917760 && t <= 917999;
|
|
3808
|
+
}
|
|
3809
|
+
if (_e("config").hasIntl) gn(!1);
|
|
3810
|
+
else {
|
|
3811
|
+
Mn = function(e, n = !0) {
|
|
3812
|
+
let r = 0;
|
|
3813
|
+
n && (e = Cr(e)), e = Kt(e, "NFC");
|
|
3814
|
+
for (const n of new Nt(e)) {
|
|
3815
|
+
const e = Vt(n, 0);
|
|
3816
|
+
t(e) ? r += 2 : Fr(e) || r++;
|
|
3817
|
+
}
|
|
3818
|
+
return r;
|
|
3819
|
+
};
|
|
3820
|
+
const t = (t) => t >= 4352 && (t <= 4447 || 9001 === t || 9002 === t || t >= 11904 && t <= 12871 && 12351 !== t || t >= 12880 && t <= 19903 || t >= 19968 && t <= 42182 || t >= 43360 && t <= 43388 || t >= 44032 && t <= 55203 || t >= 63744 && t <= 64255 || t >= 65040 && t <= 65049 || t >= 65072 && t <= 65131 || t >= 65281 && t <= 65376 || t >= 65504 && t <= 65510 || t >= 110592 && t <= 110593 || t >= 127488 && t <= 127569 || t >= 127744 && t <= 128591 || t >= 131072 && t <= 262141);
|
|
3821
|
+
}
|
|
3822
|
+
function Cr(t) {
|
|
3823
|
+
return mn(t, "str"), -1 === qt(t, "\x1B") && -1 === qt(t, "") ? t : jt(Tn, t, "");
|
|
3824
|
+
}
|
|
3825
|
+
const Dr = {
|
|
3826
|
+
34: """,
|
|
3827
|
+
38: "&",
|
|
3828
|
+
39: "'",
|
|
3829
|
+
60: "<",
|
|
3830
|
+
62: ">",
|
|
3831
|
+
160: " "
|
|
3832
|
+
};
|
|
3833
|
+
function Wr(t) {
|
|
3834
|
+
return t.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g, (t) => {
|
|
3835
|
+
const e = Ht(t.charCodeAt(0));
|
|
3836
|
+
return Dr[e] || "&#" + e + ";";
|
|
3837
|
+
});
|
|
3838
|
+
}
|
|
3839
|
+
t.exports = {
|
|
3840
|
+
identicalSequenceRange: or,
|
|
3841
|
+
inspect: Nn,
|
|
3842
|
+
inspectDefaultOptions: _n,
|
|
3843
|
+
format: function(...t) {
|
|
3844
|
+
return Nr(void 0, t);
|
|
3845
|
+
},
|
|
3846
|
+
formatWithOptions: function(t, ...e) {
|
|
3847
|
+
return dn(t, "inspectOptions", bn), Nr(t, e);
|
|
3848
|
+
},
|
|
3849
|
+
getStringWidth: Mn,
|
|
3850
|
+
stripVTControlCharacters: Cr,
|
|
3851
|
+
isZeroWidthCodePoint: Fr,
|
|
3852
|
+
stylizeWithColor: Vn,
|
|
3853
|
+
stylizeWithHTML(t, e) {
|
|
3854
|
+
const n = Nn.styles[e];
|
|
3855
|
+
return void 0 !== n ? `<span style="color:${n};">${Wr(t)}</span>` : Wr(t);
|
|
3856
|
+
},
|
|
3857
|
+
Proxy: Me
|
|
3858
|
+
};
|
|
3859
|
+
},
|
|
3860
|
+
788(t, e, n) {
|
|
3861
|
+
let r;
|
|
3862
|
+
function o() {
|
|
3863
|
+
return r = null != r ? r : n(317).codes.ERR_INTERNAL_ASSERTION;
|
|
3864
|
+
}
|
|
3865
|
+
function i(t, e) {
|
|
3866
|
+
if (!t) throw new (o())(e);
|
|
3867
|
+
}
|
|
3868
|
+
i.fail = function(t) {
|
|
3869
|
+
throw new (o())(t);
|
|
3870
|
+
}, t.exports = i;
|
|
3871
|
+
},
|
|
3872
|
+
986(t) {
|
|
3873
|
+
const e = [
|
|
3874
|
+
"_http_agent",
|
|
3875
|
+
"_http_client",
|
|
3876
|
+
"_http_common",
|
|
3877
|
+
"_http_incoming",
|
|
3878
|
+
"_http_outgoing",
|
|
3879
|
+
"_http_server",
|
|
3880
|
+
"_stream_duplex",
|
|
3881
|
+
"_stream_passthrough",
|
|
3882
|
+
"_stream_readable",
|
|
3883
|
+
"_stream_transform",
|
|
3884
|
+
"_stream_wrap",
|
|
3885
|
+
"_stream_writable",
|
|
3886
|
+
"_tls_common",
|
|
3887
|
+
"_tls_wrap",
|
|
3888
|
+
"assert",
|
|
3889
|
+
"assert/strict",
|
|
3890
|
+
"async_hooks",
|
|
3891
|
+
"buffer",
|
|
3892
|
+
"child_process",
|
|
3893
|
+
"cluster",
|
|
3894
|
+
"console",
|
|
3895
|
+
"constants",
|
|
3896
|
+
"crypto",
|
|
3897
|
+
"dgram",
|
|
3898
|
+
"diagnostics_channel",
|
|
3899
|
+
"dns",
|
|
3900
|
+
"dns/promises",
|
|
3901
|
+
"domain",
|
|
3902
|
+
"events",
|
|
3903
|
+
"fs",
|
|
3904
|
+
"fs/promises",
|
|
3905
|
+
"http",
|
|
3906
|
+
"http2",
|
|
3907
|
+
"https",
|
|
3908
|
+
"inspector",
|
|
3909
|
+
"module",
|
|
3910
|
+
"Module",
|
|
3911
|
+
"net",
|
|
3912
|
+
"os",
|
|
3913
|
+
"path",
|
|
3914
|
+
"path/posix",
|
|
3915
|
+
"path/win32",
|
|
3916
|
+
"perf_hooks",
|
|
3917
|
+
"process",
|
|
3918
|
+
"punycode",
|
|
3919
|
+
"querystring",
|
|
3920
|
+
"readline",
|
|
3921
|
+
"readline/promises",
|
|
3922
|
+
"repl",
|
|
3923
|
+
"stream",
|
|
3924
|
+
"stream/consumers",
|
|
3925
|
+
"stream/promises",
|
|
3926
|
+
"stream/web",
|
|
3927
|
+
"string_decoder",
|
|
3928
|
+
"sys",
|
|
3929
|
+
"timers",
|
|
3930
|
+
"timers/promises",
|
|
3931
|
+
"tls",
|
|
3932
|
+
"trace_events",
|
|
3933
|
+
"tty",
|
|
3934
|
+
"url",
|
|
3935
|
+
"util",
|
|
3936
|
+
"util/types",
|
|
3937
|
+
"v8",
|
|
3938
|
+
"vm",
|
|
3939
|
+
"wasi",
|
|
3940
|
+
"worker_threads",
|
|
3941
|
+
"zlib"
|
|
3942
|
+
];
|
|
3943
|
+
t.exports.BuiltinModule = { exists: (t) => "internal/modules/cjs/foo" !== t && (t.startsWith("internal/") || -1 !== e.indexOf(t)) };
|
|
3944
|
+
},
|
|
3945
|
+
737(t) {
|
|
3946
|
+
t.exports = {
|
|
3947
|
+
CHAR_DOT: 46,
|
|
3948
|
+
CHAR_FORWARD_SLASH: 47
|
|
3949
|
+
};
|
|
3950
|
+
},
|
|
3951
|
+
317(t, e, n) {
|
|
3952
|
+
const { ArrayIsArray: o, ArrayPrototypeIncludes: i, ArrayPrototypeIndexOf: l, ArrayPrototypeJoin: s, ArrayPrototypePush: c, ArrayPrototypeSlice: a, ArrayPrototypeSplice: u, Error: f, ErrorCaptureStackTrace: p, JSONStringify: y, ObjectDefineProperty: g, ReflectApply: h, RegExpPrototypeExec: d, SafeMap: m, SafeWeakMap: b, String: $, StringPrototypeEndsWith: P, StringPrototypeIncludes: x, StringPrototypeIndexOf: S, StringPrototypeSlice: A, StringPrototypeToLowerCase: v, Symbol: _, TypeError: w } = n(80), O = (_("kIsNodeError"), new m()), E = {}, R = /^[A-Z][a-zA-Z0-9]*$/, L = [
|
|
3953
|
+
"string",
|
|
3954
|
+
"function",
|
|
3955
|
+
"number",
|
|
3956
|
+
"object",
|
|
3957
|
+
"Function",
|
|
3958
|
+
"Object",
|
|
3959
|
+
"boolean",
|
|
3960
|
+
"bigint",
|
|
3961
|
+
"symbol"
|
|
3962
|
+
], I = (new b(), n(788));
|
|
3963
|
+
let k, j, z = null;
|
|
3964
|
+
function B(t, e, n) {
|
|
3965
|
+
O.set(t, e);
|
|
3966
|
+
const r = (o = n, i = t, class extends o {
|
|
3967
|
+
code = i;
|
|
3968
|
+
constructor(...t) {
|
|
3969
|
+
super(), g(this, "message", {
|
|
3970
|
+
__proto__: null,
|
|
3971
|
+
value: T(i, t, this),
|
|
3972
|
+
enumerable: !1,
|
|
3973
|
+
writable: !0,
|
|
3974
|
+
configurable: !0
|
|
3975
|
+
});
|
|
3976
|
+
}
|
|
3977
|
+
toString() {
|
|
3978
|
+
return `${this.name} [${i}]: ${this.message}`;
|
|
3979
|
+
}
|
|
3980
|
+
});
|
|
3981
|
+
var o, i;
|
|
3982
|
+
E[t] = r;
|
|
3983
|
+
}
|
|
3984
|
+
function T(t, e, n) {
|
|
3985
|
+
const r = O.get(t);
|
|
3986
|
+
if ("function" == typeof r) return I(r.length <= e.length, `Code: ${t}; The provided arguments length (${e.length}) does not match the required ones (${r.length}).`), h(r, n, e);
|
|
3987
|
+
}
|
|
3988
|
+
function M(t, e = "and") {
|
|
3989
|
+
switch (t.length) {
|
|
3990
|
+
case 0: return "";
|
|
3991
|
+
case 1: return `${t[0]}`;
|
|
3992
|
+
case 2: return `${t[0]} ${e} ${t[1]}`;
|
|
3993
|
+
case 3: return `${t[0]}, ${t[1]}, ${e} ${t[2]}`;
|
|
3994
|
+
default: return `${s(a(t, 0, -1), ", ")}, ${e} ${t[t.length - 1]}`;
|
|
3995
|
+
}
|
|
3996
|
+
}
|
|
3997
|
+
_("kEnhanceStackBeforeInspector"), t.exports = {
|
|
3998
|
+
codes: E,
|
|
3999
|
+
hideStackFrames: function(t) {
|
|
4000
|
+
function e(...n) {
|
|
4001
|
+
try {
|
|
4002
|
+
return h(t, this, n);
|
|
4003
|
+
} catch (t) {
|
|
4004
|
+
throw f.stackTraceLimit && p(t, e), t;
|
|
4005
|
+
}
|
|
4006
|
+
}
|
|
4007
|
+
return e.withoutStackTrace = t, e;
|
|
4008
|
+
},
|
|
4009
|
+
isStackOverflowError: function(t) {
|
|
4010
|
+
if (void 0 === j) try {
|
|
4011
|
+
function e() {
|
|
4012
|
+
e();
|
|
4013
|
+
}
|
|
4014
|
+
e();
|
|
4015
|
+
} catch (t) {
|
|
4016
|
+
j = t.message, k = t.name;
|
|
4017
|
+
}
|
|
4018
|
+
return t && t.name === k && t.message === j;
|
|
4019
|
+
}
|
|
4020
|
+
}, B("ERR_INTERNAL_ASSERTION", (t) => {
|
|
4021
|
+
const e = "This is caused by either a bug in Node.js or incorrect usage of Node.js internals.\nPlease open an issue with this stack trace at https://github.com/nodejs/node/issues\n";
|
|
4022
|
+
return void 0 === t ? e : `${t}\n${e}`;
|
|
4023
|
+
}, f), B("ERR_INVALID_ARG_TYPE", (t, e, r) => {
|
|
4024
|
+
I("string" == typeof t, "'name' must be a string"), o(e) || (e = [e]);
|
|
4025
|
+
let s = "The ";
|
|
4026
|
+
P(t, " argument") ? s += `${t} ` : s += `"${t}" ${x(t, ".") ? "property" : "argument"} `, s += "must be ";
|
|
4027
|
+
const a = [], f = [], p = [];
|
|
4028
|
+
for (const t of e) I("string" == typeof t, "All expected entries have to be of type string"), i(L, t) ? c(a, v(t)) : null !== d(R, t) ? c(f, t) : (I("object" !== t, "The value \"object\" should be written as \"Object\""), c(p, t));
|
|
4029
|
+
if (f.length > 0) {
|
|
4030
|
+
const t = l(a, "object");
|
|
4031
|
+
-1 !== t && (u(a, t, 1), c(f, "Object"));
|
|
4032
|
+
}
|
|
4033
|
+
return a.length > 0 && (s += `${a.length > 1 ? "one of type" : "of type"} ${M(a, "or")}`, (f.length > 0 || p.length > 0) && (s += " or ")), f.length > 0 && (s += `an instance of ${M(f, "or")}`, p.length > 0 && (s += " or ")), p.length > 0 && (p.length > 1 ? s += `one of ${M(p, "or")}` : (v(p[0]) !== p[0] && (s += "an "), s += `${p[0]}`)), s += `. Received ${function(t) {
|
|
4034
|
+
if (null === t) return "null";
|
|
4035
|
+
if (void 0 === t) return "undefined";
|
|
4036
|
+
switch (typeof t) {
|
|
4037
|
+
case "bigint": return `type bigint (${t}n)`;
|
|
4038
|
+
case "number": return 0 === t ? 1 / t == -1 / 0 ? "type number (-0)" : "type number (0)" : t != t ? "type number (NaN)" : t === 1 / 0 ? "type number (Infinity)" : t === -1 / 0 ? "type number (-Infinity)" : `type number (${t})`;
|
|
4039
|
+
case "boolean": return t ? "type boolean (true)" : "type boolean (false)";
|
|
4040
|
+
case "symbol": return `type symbol (${$(t)})`;
|
|
4041
|
+
case "function": return `function ${t.name}`;
|
|
4042
|
+
case "object": return t.constructor && "name" in t.constructor ? `an instance of ${t.constructor.name}` : `${(z = z || n(160), z).inspect(t, { depth: -1 })}`;
|
|
4043
|
+
case "string": return t.length > 28 && (t = `${A(t, 0, 25)}...`), -1 === S(t, "'") ? `type string ('${t}')` : `type string (${y(t)})`;
|
|
4044
|
+
}
|
|
4045
|
+
}(r)}`, s;
|
|
4046
|
+
}, w);
|
|
4047
|
+
},
|
|
4048
|
+
613(t, e, n) {
|
|
4049
|
+
const { StringPrototypeCharCodeAt: r, StringPrototypeIncludes: o, StringPrototypeReplace: i } = n(80), l = n(533), { CHAR_FORWARD_SLASH: s } = n(737), c = n(589), a = /%/g, u = /\\/g, f = /\n/g, p = /\r/g, y = /\t/g;
|
|
4050
|
+
t.exports = {
|
|
4051
|
+
pathToFileURL: function(t) {
|
|
4052
|
+
const e = new l("file://");
|
|
4053
|
+
let n = c.resolve(t);
|
|
4054
|
+
return r(t, t.length - 1) === s && n[n.length - 1] !== c.sep && (n += "/"), e.pathname = function(t) {
|
|
4055
|
+
return o(t, "%") && (t = i(t, a, "%25")), o(t, "\\") && (t = i(t, u, "%5C")), o(t, "\n") && (t = i(t, f, "%0A")), o(t, "\r") && (t = i(t, p, "%0D")), o(t, " ") && (t = i(t, y, "%09")), t;
|
|
4056
|
+
}(n), e;
|
|
4057
|
+
},
|
|
4058
|
+
URL: l
|
|
4059
|
+
};
|
|
4060
|
+
},
|
|
4061
|
+
22(t, e, n) {
|
|
4062
|
+
const { ArrayPrototypeJoin: o, Error: i, ErrorIsError: l, FunctionPrototypeSymbolHasInstance: s, StringPrototypeReplace: c, SymbolFor: a } = n(80), u = /\u001b\[\d\d?m/g;
|
|
4063
|
+
t.exports = {
|
|
4064
|
+
customInspectSymbol: a("nodejs.util.inspect.custom"),
|
|
4065
|
+
isError: (t) => l?.(t) || s(i, t),
|
|
4066
|
+
join: o,
|
|
4067
|
+
removeColors: (t) => c(t, u, "")
|
|
4068
|
+
};
|
|
4069
|
+
},
|
|
4070
|
+
124(t, e, n) {
|
|
4071
|
+
const { ArrayIsArray: o, BigInt: i, Boolean: l, DatePrototype: s, Error: c, FunctionPrototype: a, MapPrototypeHas: u, Number: f, ObjectDefineProperty: p, ObjectGetOwnPropertyDescriptor: y, ObjectGetPrototypeOf: g, ObjectIsFrozen: h, ObjectPrototype: d, SetPrototypeHas: m, String: b, Symbol: $, SymbolToStringTag: P, globalThis: x } = n(80), { getConstructorName: S } = n(38);
|
|
4072
|
+
function A(t, ...e) {
|
|
4073
|
+
for (const n of e) {
|
|
4074
|
+
const e = x[n];
|
|
4075
|
+
if (e && t instanceof e) return !0;
|
|
4076
|
+
}
|
|
4077
|
+
for (; t;) {
|
|
4078
|
+
if ("object" != typeof t) return !1;
|
|
4079
|
+
if (e.indexOf(S(t)) >= 0) return !0;
|
|
4080
|
+
t = g(t);
|
|
4081
|
+
}
|
|
4082
|
+
return !1;
|
|
4083
|
+
}
|
|
4084
|
+
function v(t) {
|
|
4085
|
+
return (e) => {
|
|
4086
|
+
if (!A(e, t.name)) return !1;
|
|
4087
|
+
try {
|
|
4088
|
+
t.prototype.valueOf.call(e);
|
|
4089
|
+
} catch {
|
|
4090
|
+
return !1;
|
|
4091
|
+
}
|
|
4092
|
+
return !0;
|
|
4093
|
+
};
|
|
4094
|
+
}
|
|
4095
|
+
"object" != typeof x && (p(d, "__magic__", {
|
|
4096
|
+
get: function() {
|
|
4097
|
+
return this;
|
|
4098
|
+
},
|
|
4099
|
+
configurable: !0
|
|
4100
|
+
}), __magic__.globalThis = __magic__, delete d.__magic__);
|
|
4101
|
+
const _ = v(b), w = v(f), O = v(l), E = v(i), R = v($);
|
|
4102
|
+
t.exports = {
|
|
4103
|
+
isAsyncFunction: (t) => "function" == typeof t && a.toString.call(t).startsWith("async"),
|
|
4104
|
+
isGeneratorFunction: (t) => "function" == typeof t && a.toString.call(t).match(/^(async\s+)?function *\*/),
|
|
4105
|
+
isAnyArrayBuffer: (t) => A(t, "ArrayBuffer", "SharedArrayBuffer"),
|
|
4106
|
+
isArrayBuffer: (t) => A(t, "ArrayBuffer"),
|
|
4107
|
+
isArgumentsObject(t) {
|
|
4108
|
+
if (null !== t && "object" == typeof t && !o(t) && "number" == typeof t.length && t.length === (0 | t.length) && t.length >= 0) {
|
|
4109
|
+
const e = y(t, "callee");
|
|
4110
|
+
return e && !e.enumerable;
|
|
4111
|
+
}
|
|
4112
|
+
return !1;
|
|
4113
|
+
},
|
|
4114
|
+
isBoxedPrimitive: (t) => w(t) || _(t) || O(t) || E(t) || R(t),
|
|
4115
|
+
isDataView: (t) => A(t, "DataView"),
|
|
4116
|
+
isExternal: (t) => "object" == typeof t && h(t) && null == g(t),
|
|
4117
|
+
isMap(t) {
|
|
4118
|
+
if (!A(t, "Map")) return !1;
|
|
4119
|
+
try {
|
|
4120
|
+
u(t);
|
|
4121
|
+
} catch {
|
|
4122
|
+
return !1;
|
|
4123
|
+
}
|
|
4124
|
+
return !0;
|
|
4125
|
+
},
|
|
4126
|
+
isMapIterator: (t) => "[object Map Iterator]" === d.toString.call(g(t)),
|
|
4127
|
+
isModuleNamespaceObject(t) {
|
|
4128
|
+
try {
|
|
4129
|
+
return t && "object" == typeof t && "Module" === t[P];
|
|
4130
|
+
} catch {
|
|
4131
|
+
return !1;
|
|
4132
|
+
}
|
|
4133
|
+
},
|
|
4134
|
+
isNativeError: (t) => t instanceof c && A(t, "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "AggregateError"),
|
|
4135
|
+
isPromise: (t) => A(t, "Promise"),
|
|
4136
|
+
isSet(t) {
|
|
4137
|
+
if (!A(t, "Set")) return !1;
|
|
4138
|
+
try {
|
|
4139
|
+
m(t);
|
|
4140
|
+
} catch {
|
|
4141
|
+
return !1;
|
|
4142
|
+
}
|
|
4143
|
+
return !0;
|
|
4144
|
+
},
|
|
4145
|
+
isSetIterator: (t) => "[object Set Iterator]" === d.toString.call(g(t)),
|
|
4146
|
+
isWeakMap: (t) => A(t, "WeakMap"),
|
|
4147
|
+
isWeakSet: (t) => A(t, "WeakSet"),
|
|
4148
|
+
isRegExp: (t) => A(t, "RegExp"),
|
|
4149
|
+
isDate(t) {
|
|
4150
|
+
if (A(t, "Date")) try {
|
|
4151
|
+
return s.getTime.call(t), !0;
|
|
4152
|
+
} catch {}
|
|
4153
|
+
return !1;
|
|
4154
|
+
},
|
|
4155
|
+
isTypedArray: (t) => A(t, "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array"),
|
|
4156
|
+
isStringObject: _,
|
|
4157
|
+
isNumberObject: w,
|
|
4158
|
+
isBooleanObject: O,
|
|
4159
|
+
isBigIntObject: E
|
|
4160
|
+
};
|
|
4161
|
+
},
|
|
4162
|
+
293(t, e, n) {
|
|
4163
|
+
const { ArrayIsArray: r } = n(80), { hideStackFrames: o, codes: { ERR_INVALID_ARG_TYPE: i } } = n(317);
|
|
4164
|
+
t.exports = {
|
|
4165
|
+
kValidateObjectAllowArray: 2,
|
|
4166
|
+
validateObject: o((t, e, n = 0) => {
|
|
4167
|
+
if (0 === n) {
|
|
4168
|
+
if (null === t || r(t)) throw new i(e, "Object", t);
|
|
4169
|
+
if ("object" != typeof t) throw new i(e, "Object", t);
|
|
4170
|
+
} else {
|
|
4171
|
+
if (!(1 & n) && null === t) throw new i(e, "Object", t);
|
|
4172
|
+
if (!(2 & n) && r(t)) throw new i(e, "Object", t);
|
|
4173
|
+
const o = typeof t;
|
|
4174
|
+
if (!("object" === o || 4 & n && "function" === o)) throw new i(e, "Object", t);
|
|
4175
|
+
}
|
|
4176
|
+
}),
|
|
4177
|
+
validateString: function(t, e) {
|
|
4178
|
+
if ("string" != typeof t) throw new i(e, "string", t);
|
|
4179
|
+
}
|
|
4180
|
+
};
|
|
4181
|
+
},
|
|
4182
|
+
589(t, e, n) {
|
|
4183
|
+
const { StringPrototypeCharCodeAt: r, StringPrototypeLastIndexOf: o, StringPrototypeSlice: i } = n(80), { CHAR_DOT: l, CHAR_FORWARD_SLASH: s } = n(737), { validateString: c } = n(293);
|
|
4184
|
+
function a(t) {
|
|
4185
|
+
return t === s;
|
|
4186
|
+
}
|
|
4187
|
+
function u(t, e, n, c) {
|
|
4188
|
+
let a = "", u = 0, f = -1, p = 0, y = 0;
|
|
4189
|
+
for (let g = 0; g <= t.length; ++g) {
|
|
4190
|
+
if (g < t.length) y = r(t, g);
|
|
4191
|
+
else {
|
|
4192
|
+
if (c(y)) break;
|
|
4193
|
+
y = s;
|
|
4194
|
+
}
|
|
4195
|
+
if (c(y)) {
|
|
4196
|
+
if (f === g - 1 || 1 === p);
|
|
4197
|
+
else if (2 === p) {
|
|
4198
|
+
if (a.length < 2 || 2 !== u || r(a, a.length - 1) !== l || r(a, a.length - 2) !== l) {
|
|
4199
|
+
if (a.length > 2) {
|
|
4200
|
+
const t = o(a, n);
|
|
4201
|
+
-1 === t ? (a = "", u = 0) : (a = i(a, 0, t), u = a.length - 1 - o(a, n)), f = g, p = 0;
|
|
4202
|
+
continue;
|
|
4203
|
+
}
|
|
4204
|
+
if (0 !== a.length) {
|
|
4205
|
+
a = "", u = 0, f = g, p = 0;
|
|
4206
|
+
continue;
|
|
4207
|
+
}
|
|
4208
|
+
}
|
|
4209
|
+
e && (a += a.length > 0 ? `${n}..` : "..", u = 2);
|
|
4210
|
+
} else a.length > 0 ? a += `${n}${i(t, f + 1, g)}` : a = i(t, f + 1, g), u = g - f - 1;
|
|
4211
|
+
f = g, p = 0;
|
|
4212
|
+
} else y === l && -1 !== p ? ++p : p = -1;
|
|
4213
|
+
}
|
|
4214
|
+
return a;
|
|
4215
|
+
}
|
|
4216
|
+
t.exports = {
|
|
4217
|
+
isPosixPathSeparator: a,
|
|
4218
|
+
normalizeString: u,
|
|
4219
|
+
resolve: function(...t) {
|
|
4220
|
+
if (0 === t.length || 1 === t.length && ("" === t[0] || "." === t[0])) {
|
|
4221
|
+
const t = "/";
|
|
4222
|
+
if (r(t, 0) === s) return t;
|
|
4223
|
+
}
|
|
4224
|
+
let e = "", n = !1;
|
|
4225
|
+
for (let o = t.length - 1; o >= 0 && !n; o--) {
|
|
4226
|
+
const i = t[o];
|
|
4227
|
+
c(i, `paths[${o}]`), 0 !== i.length && (e = `${i}/${e}`, n = r(i, 0) === s);
|
|
4228
|
+
}
|
|
4229
|
+
if (!n) {
|
|
4230
|
+
const t = "/";
|
|
4231
|
+
e = `${t}/${e}`, n = r(t, 0) === s;
|
|
4232
|
+
}
|
|
4233
|
+
return e = u(e, !n, "/", a), n ? `/${e}` : e.length > 0 ? e : ".";
|
|
4234
|
+
}
|
|
4235
|
+
};
|
|
4236
|
+
},
|
|
4237
|
+
80(t) {
|
|
4238
|
+
const e = { __proto__: null }, { defineProperty: n, getOwnPropertyDescriptor: r, ownKeys: o } = Reflect, { apply: i, bind: l, call: s } = Function.prototype, c = l.bind(s);
|
|
4239
|
+
e.uncurryThis = c;
|
|
4240
|
+
const a = l.bind(i);
|
|
4241
|
+
e.applyBind = a;
|
|
4242
|
+
const u = [
|
|
4243
|
+
"ArrayOf",
|
|
4244
|
+
"ArrayPrototypePush",
|
|
4245
|
+
"ArrayPrototypeUnshift",
|
|
4246
|
+
"MathHypot",
|
|
4247
|
+
"MathMax",
|
|
4248
|
+
"MathMin",
|
|
4249
|
+
"StringFromCharCode",
|
|
4250
|
+
"StringFromCodePoint",
|
|
4251
|
+
"StringPrototypeConcat",
|
|
4252
|
+
"TypedArrayOf"
|
|
4253
|
+
];
|
|
4254
|
+
function f(t) {
|
|
4255
|
+
return "symbol" == typeof t ? `Symbol${t.description[7].toUpperCase()}${t.description.slice(8)}` : `${t[0].toUpperCase()}${t.slice(1)}`;
|
|
4256
|
+
}
|
|
4257
|
+
function p(t, e, r, { enumerable: o, get: i, set: l }) {
|
|
4258
|
+
n(t, `${e}Get${r}`, {
|
|
4259
|
+
__proto__: null,
|
|
4260
|
+
value: c(i),
|
|
4261
|
+
enumerable: o
|
|
4262
|
+
}), void 0 !== l && n(t, `${e}Set${r}`, {
|
|
4263
|
+
__proto__: null,
|
|
4264
|
+
value: c(l),
|
|
4265
|
+
enumerable: o
|
|
4266
|
+
});
|
|
4267
|
+
}
|
|
4268
|
+
function y(t, e, i) {
|
|
4269
|
+
for (const l of o(t)) {
|
|
4270
|
+
const o = f(l), s = r(t, l);
|
|
4271
|
+
if ("get" in s) p(e, i, o, s);
|
|
4272
|
+
else {
|
|
4273
|
+
const r = `${i}${o}`;
|
|
4274
|
+
n(e, r, {
|
|
4275
|
+
__proto__: null,
|
|
4276
|
+
...s
|
|
4277
|
+
}), u.includes(r) && n(e, `${r}Apply`, {
|
|
4278
|
+
__proto__: null,
|
|
4279
|
+
value: a(s.value, t)
|
|
4280
|
+
});
|
|
4281
|
+
}
|
|
4282
|
+
}
|
|
4283
|
+
}
|
|
4284
|
+
function g(t, e, i) {
|
|
4285
|
+
for (const l of o(t)) {
|
|
4286
|
+
const o = f(l), s = r(t, l);
|
|
4287
|
+
if ("get" in s) p(e, i, o, s);
|
|
4288
|
+
else {
|
|
4289
|
+
const { value: t } = s;
|
|
4290
|
+
"function" == typeof t && (s.value = c(t));
|
|
4291
|
+
const r = `${i}${o}`;
|
|
4292
|
+
n(e, r, {
|
|
4293
|
+
__proto__: null,
|
|
4294
|
+
...s
|
|
4295
|
+
}), u.includes(r) && n(e, `${r}Apply`, {
|
|
4296
|
+
__proto__: null,
|
|
4297
|
+
value: a(t)
|
|
4298
|
+
});
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
["Proxy", "globalThis"].forEach((t) => {
|
|
4303
|
+
e[t] = globalThis[t];
|
|
4304
|
+
}), [
|
|
4305
|
+
decodeURI,
|
|
4306
|
+
decodeURIComponent,
|
|
4307
|
+
encodeURI,
|
|
4308
|
+
encodeURIComponent
|
|
4309
|
+
].forEach((t) => {
|
|
4310
|
+
e[t.name] = t;
|
|
4311
|
+
}), [
|
|
4312
|
+
escape,
|
|
4313
|
+
eval,
|
|
4314
|
+
unescape
|
|
4315
|
+
].forEach((t) => {
|
|
4316
|
+
e[t.name] = t;
|
|
4317
|
+
}), [
|
|
4318
|
+
"Atomics",
|
|
4319
|
+
"JSON",
|
|
4320
|
+
"Math",
|
|
4321
|
+
"Proxy",
|
|
4322
|
+
"Reflect"
|
|
4323
|
+
].forEach((t) => {
|
|
4324
|
+
y(globalThis[t], e, t);
|
|
4325
|
+
}), [
|
|
4326
|
+
"AggregateError",
|
|
4327
|
+
"Array",
|
|
4328
|
+
"ArrayBuffer",
|
|
4329
|
+
"BigInt",
|
|
4330
|
+
"BigInt64Array",
|
|
4331
|
+
"BigUint64Array",
|
|
4332
|
+
"Boolean",
|
|
4333
|
+
"DataView",
|
|
4334
|
+
"Date",
|
|
4335
|
+
"Error",
|
|
4336
|
+
"EvalError",
|
|
4337
|
+
"FinalizationRegistry",
|
|
4338
|
+
"Float16Array",
|
|
4339
|
+
"Float32Array",
|
|
4340
|
+
"Float64Array",
|
|
4341
|
+
"Function",
|
|
4342
|
+
"Int16Array",
|
|
4343
|
+
"Int32Array",
|
|
4344
|
+
"Int8Array",
|
|
4345
|
+
"Map",
|
|
4346
|
+
"Number",
|
|
4347
|
+
"Object",
|
|
4348
|
+
"RangeError",
|
|
4349
|
+
"ReferenceError",
|
|
4350
|
+
"RegExp",
|
|
4351
|
+
"Set",
|
|
4352
|
+
"String",
|
|
4353
|
+
"Symbol",
|
|
4354
|
+
"SyntaxError",
|
|
4355
|
+
"TypeError",
|
|
4356
|
+
"URIError",
|
|
4357
|
+
"Uint16Array",
|
|
4358
|
+
"Uint32Array",
|
|
4359
|
+
"Uint8Array",
|
|
4360
|
+
"Uint8ClampedArray",
|
|
4361
|
+
"WeakMap",
|
|
4362
|
+
"WeakRef",
|
|
4363
|
+
"WeakSet"
|
|
4364
|
+
].forEach((t) => {
|
|
4365
|
+
const n = globalThis[t];
|
|
4366
|
+
n && (e[t] = n, y(n, e, t), g(n.prototype, e, `${t}Prototype`));
|
|
4367
|
+
}), ["Promise"].forEach((t) => {
|
|
4368
|
+
const i = globalThis[t];
|
|
4369
|
+
e[t] = i, function(t, e, i) {
|
|
4370
|
+
for (const l of o(t)) {
|
|
4371
|
+
const o = f(l), s = r(t, l);
|
|
4372
|
+
if ("get" in s) p(e, i, o, s);
|
|
4373
|
+
else {
|
|
4374
|
+
const { value: r } = s;
|
|
4375
|
+
"function" == typeof r && (s.value = r.bind(t)), n(e, `${i}${o}`, {
|
|
4376
|
+
__proto__: null,
|
|
4377
|
+
...s
|
|
4378
|
+
});
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4381
|
+
}(i, e, t), g(i.prototype, e, `${t}Prototype`);
|
|
4382
|
+
}), [{
|
|
4383
|
+
name: "TypedArray",
|
|
4384
|
+
original: Reflect.getPrototypeOf(Uint8Array)
|
|
4385
|
+
}].forEach(({ name: t, original: n }) => {
|
|
4386
|
+
e[t] = n, g(n, e, t), g(n.prototype, e, `${t}Prototype`);
|
|
4387
|
+
}), [
|
|
4388
|
+
{
|
|
4389
|
+
name: "ArrayIteratorPrototype",
|
|
4390
|
+
original: Reflect.getPrototypeOf(Array.prototype[Symbol.iterator]())
|
|
4391
|
+
},
|
|
4392
|
+
{
|
|
4393
|
+
name: "AsyncFunctionPrototype",
|
|
4394
|
+
original: Reflect.getPrototypeOf(async function() {})
|
|
4395
|
+
},
|
|
4396
|
+
{
|
|
4397
|
+
name: "AsyncGeneratorFunctionPrototype",
|
|
4398
|
+
original: Reflect.getPrototypeOf(async function* () {})
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
name: "AsyncIteratorPrototype",
|
|
4402
|
+
original: Reflect.getPrototypeOf(Reflect.getPrototypeOf(async function* () {}).prototype)
|
|
4403
|
+
},
|
|
4404
|
+
{
|
|
4405
|
+
name: "GeneratorFunctionPrototype",
|
|
4406
|
+
original: Reflect.getPrototypeOf(function* () {})
|
|
4407
|
+
},
|
|
4408
|
+
{
|
|
4409
|
+
name: "MapIteratorPrototype",
|
|
4410
|
+
original: Reflect.getPrototypeOf(new e.Map()[Symbol.iterator]())
|
|
4411
|
+
},
|
|
4412
|
+
{
|
|
4413
|
+
name: "RegExpStringIteratorPrototype",
|
|
4414
|
+
original: Reflect.getPrototypeOf(e.RegExp.prototype[Symbol.matchAll]())
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
name: "SetIteratorPrototype",
|
|
4418
|
+
original: Reflect.getPrototypeOf(new e.Set()[Symbol.iterator]())
|
|
4419
|
+
},
|
|
4420
|
+
{
|
|
4421
|
+
name: "StringIteratorPrototype",
|
|
4422
|
+
original: Reflect.getPrototypeOf(String.prototype[Symbol.iterator]())
|
|
4423
|
+
}
|
|
4424
|
+
].forEach(({ name: t, original: n }) => {
|
|
4425
|
+
e[t] = n, g(n, e, t);
|
|
4426
|
+
});
|
|
4427
|
+
const { ArrayPrototypeForEach: h, ArrayPrototypePushApply: d, ArrayPrototypeSlice: m, FinalizationRegistry: b, FunctionPrototypeCall: $, Map: P, ObjectFreeze: x, ObjectSetPrototypeOf: S, RegExp: A, Set: v, SymbolIterator: _, WeakMap: w, WeakRef: O, WeakSet: E } = e, R = (t, e) => {
|
|
4428
|
+
class n {
|
|
4429
|
+
constructor(e) {
|
|
4430
|
+
this._iterator = t(e);
|
|
4431
|
+
}
|
|
4432
|
+
next() {
|
|
4433
|
+
return e(this._iterator);
|
|
4434
|
+
}
|
|
4435
|
+
[_]() {
|
|
4436
|
+
return this;
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
return S(n.prototype, null), x(n.prototype), x(n), n;
|
|
4440
|
+
};
|
|
4441
|
+
e.SafeArrayIterator = R(e.ArrayPrototypeSymbolIterator, e.ArrayIteratorPrototypeNext), e.SafeStringIterator = R(e.StringPrototypeSymbolIterator, e.StringIteratorPrototypeNext);
|
|
4442
|
+
const L = (t, e) => {
|
|
4443
|
+
h(o(t), (o) => {
|
|
4444
|
+
r(e, o) || n(e, o, {
|
|
4445
|
+
__proto__: null,
|
|
4446
|
+
...r(t, o)
|
|
4447
|
+
});
|
|
4448
|
+
});
|
|
4449
|
+
}, I = (t, e, i) => {
|
|
4450
|
+
if (i) {
|
|
4451
|
+
const l = new t();
|
|
4452
|
+
h(o(t.prototype), (o) => {
|
|
4453
|
+
if (!r(e.prototype, o)) {
|
|
4454
|
+
const s = r(t.prototype, o);
|
|
4455
|
+
if ("function" == typeof s.value && 0 === s.value.length && $(s.value, l)?.next === i) {
|
|
4456
|
+
const t = c(s.value), e = R(t, i);
|
|
4457
|
+
s.value = function() {
|
|
4458
|
+
return new e(this);
|
|
4459
|
+
};
|
|
4460
|
+
}
|
|
4461
|
+
n(e.prototype, o, {
|
|
4462
|
+
__proto__: null,
|
|
4463
|
+
...s
|
|
4464
|
+
});
|
|
4465
|
+
}
|
|
4466
|
+
});
|
|
4467
|
+
} else L(t.prototype, e.prototype);
|
|
4468
|
+
return L(t, e), S(e.prototype, null), x(e.prototype), x(e), e;
|
|
4469
|
+
};
|
|
4470
|
+
e.makeSafe = I, e.SafeMap = I(P, class extends P {}, e.MapIteratorPrototypeNext), e.SafeWeakMap = I(w, class extends w {}), e.SafeSet = I(v, class extends v {}, e.SetIteratorPrototypeNext), e.SafeWeakSet = I(E, class extends E {}), e.SafeFinalizationRegistry = I(b, class extends b {}), e.SafeWeakRef = I(O, class extends O {}), e.internalBinding = (t) => {
|
|
4471
|
+
if ("config" === t) return { hasIntl: !1 };
|
|
4472
|
+
throw new Error(`unknown module: "${t}"`);
|
|
4473
|
+
}, e._stringPrototypeReplaceAll = (t, e, n) => "[object regexp]" === Object.prototype.toString.call(e).toLowerCase() ? t.replace(e, n) : t.replace(new A(e, "g"), n), e.SafeArrayPrototypePushApply = (t, e) => {
|
|
4474
|
+
let n = 65536;
|
|
4475
|
+
if (n < e.length) {
|
|
4476
|
+
let r = 0;
|
|
4477
|
+
do
|
|
4478
|
+
d(t, m(e, r, r = n)), n += 65536;
|
|
4479
|
+
while (n < e.length);
|
|
4480
|
+
e = m(e, r);
|
|
4481
|
+
}
|
|
4482
|
+
return d(t, e);
|
|
4483
|
+
}, e.StringPrototypeReplaceAll = e.StringPrototypeReplaceAll || e._stringPrototypeReplaceAll, S(e, null), x(e), t.exports = e;
|
|
4484
|
+
},
|
|
4485
|
+
940(t, e, n) {
|
|
4486
|
+
const { Proxy: o, ProxyRevocable: i, SafeWeakMap: l } = n(80), s = new l();
|
|
4487
|
+
class c {
|
|
4488
|
+
constructor(t, e) {
|
|
4489
|
+
const n = new o(t, e);
|
|
4490
|
+
return s.set(n, [t, e]), n;
|
|
4491
|
+
}
|
|
4492
|
+
static getProxyDetails(t, e = !0) {
|
|
4493
|
+
const n = s.get(t);
|
|
4494
|
+
if (n) return e ? n : n[0];
|
|
4495
|
+
}
|
|
4496
|
+
static revocable(t, e) {
|
|
4497
|
+
const n = i(t, e);
|
|
4498
|
+
s.set(n.proxy, [t, e]);
|
|
4499
|
+
const r = n.revoke;
|
|
4500
|
+
return n.revoke = () => {
|
|
4501
|
+
s.set(n.proxy, [null, null]), r();
|
|
4502
|
+
}, n;
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4505
|
+
t.exports = {
|
|
4506
|
+
getProxyDetails: c.getProxyDetails.bind(c),
|
|
4507
|
+
Proxy: c
|
|
4508
|
+
};
|
|
4509
|
+
},
|
|
4510
|
+
533(t) {
|
|
4511
|
+
t.exports = URL;
|
|
4512
|
+
},
|
|
4513
|
+
38(t, e, n) {
|
|
4514
|
+
const { BigInt: o, Error: i, NumberParseInt: l, ObjectEntries: s, ObjectGetOwnPropertyDescriptor: c, ObjectGetOwnPropertyDescriptors: a, ObjectGetOwnPropertySymbols: u, ObjectPrototypeToString: f, Symbol: p } = n(80), y = n(940), g = p("kPending");
|
|
4515
|
+
t.exports = {
|
|
4516
|
+
constants: {
|
|
4517
|
+
kPending: g,
|
|
4518
|
+
kRejected: p("kRejected"),
|
|
4519
|
+
ALL_PROPERTIES: 0,
|
|
4520
|
+
ONLY_ENUMERABLE: 2
|
|
4521
|
+
},
|
|
4522
|
+
getOwnNonIndexProperties: function(t, e = 2) {
|
|
4523
|
+
const n = a(t), r = [];
|
|
4524
|
+
for (const [t, o] of s(n)) if (!/^(0|[1-9][0-9]*)$/.test(t) || l(t, 10) >= 2 ** 32 - 1) {
|
|
4525
|
+
if (2 === e && !o.enumerable) continue;
|
|
4526
|
+
r.push(t);
|
|
4527
|
+
}
|
|
4528
|
+
for (const n of u(t)) {
|
|
4529
|
+
const o = c(t, n);
|
|
4530
|
+
(2 !== e || o.enumerable) && r.push(n);
|
|
4531
|
+
}
|
|
4532
|
+
return r;
|
|
4533
|
+
},
|
|
4534
|
+
getPromiseDetails: () => [g, void 0],
|
|
4535
|
+
getProxyDetails: y.getProxyDetails,
|
|
4536
|
+
Proxy: y.Proxy,
|
|
4537
|
+
previewEntries: (t) => [[], !1],
|
|
4538
|
+
getConstructorName(t) {
|
|
4539
|
+
if (!t || "object" != typeof t) throw new i("Invalid object");
|
|
4540
|
+
if (t.constructor?.name) return t.constructor.name;
|
|
4541
|
+
const e = f(t).match(/^\[object ([^\]]+)\]/);
|
|
4542
|
+
return e ? e[1] : "Object";
|
|
4543
|
+
},
|
|
4544
|
+
getExternalValue: () => o(0)
|
|
4545
|
+
};
|
|
4546
|
+
}
|
|
4547
|
+
};
|
|
4548
|
+
const e = {};
|
|
4549
|
+
return function n(r) {
|
|
4550
|
+
const o = e[r];
|
|
4551
|
+
if (void 0 !== o) return o.exports;
|
|
4552
|
+
const i = e[r] = { exports: {} };
|
|
4553
|
+
return t[r](i, i.exports, n), i.exports;
|
|
4554
|
+
}(160);
|
|
4555
|
+
})());
|
|
4556
|
+
}));
|
|
4557
|
+
//#endregion
|
|
4558
|
+
//#region ../../node_modules/.pnpm/node-inspect-extracted@3.3.4/node_modules/node-inspect-extracted/index.mjs
|
|
4559
|
+
var import_comparisons = require_comparisons();
|
|
4560
|
+
const { inspect, format, formatWithOptions, stripVTControlCharacters: stripVTControlCharacters$1, stylizeWithColor, stylizeWithHTML, Proxy: Proxy$1 } = (/* @__PURE__ */ __toESM(require_inspect(), 1)).default;
|
|
4561
|
+
//#endregion
|
|
4562
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
|
|
4563
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
4564
|
+
function createNotImplementedError(name) {
|
|
4565
|
+
return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
|
|
4566
|
+
}
|
|
4567
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
4568
|
+
function notImplemented(name) {
|
|
4569
|
+
const fn = () => {
|
|
4570
|
+
throw /* @__PURE__ */ createNotImplementedError(name);
|
|
4571
|
+
};
|
|
4572
|
+
return Object.assign(fn, { __unenv__: true });
|
|
4573
|
+
}
|
|
4574
|
+
//#endregion
|
|
4575
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/util/inherits.mjs
|
|
4576
|
+
function inherits$1(ctor, superCtor) {
|
|
4577
|
+
if (!superCtor) return;
|
|
4578
|
+
ctor.super_ = superCtor;
|
|
4579
|
+
ctor.prototype = Object.create(superCtor.prototype, { constructor: {
|
|
4580
|
+
value: ctor,
|
|
4581
|
+
enumerable: false,
|
|
4582
|
+
writable: true,
|
|
4583
|
+
configurable: true
|
|
4584
|
+
} });
|
|
4585
|
+
}
|
|
4586
|
+
//#endregion
|
|
4587
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/util/promisify.mjs
|
|
4588
|
+
const customSymbol = /* @__PURE__ */ Symbol("customPromisify");
|
|
4589
|
+
function _promisify(fn) {
|
|
4590
|
+
if (fn[customSymbol]) return fn[customSymbol];
|
|
4591
|
+
return function(...args) {
|
|
4592
|
+
return new Promise((resolve, reject) => {
|
|
4593
|
+
try {
|
|
4594
|
+
fn.call(this, ...args, (err, val) => {
|
|
4595
|
+
if (err) return reject(err);
|
|
4596
|
+
resolve(val);
|
|
4597
|
+
});
|
|
4598
|
+
} catch (error) {
|
|
4599
|
+
reject(error);
|
|
4600
|
+
}
|
|
4601
|
+
});
|
|
4602
|
+
};
|
|
4603
|
+
}
|
|
4604
|
+
const promisify$1 = /* @__PURE__ */ Object.assign(_promisify, { custom: customSymbol });
|
|
4605
|
+
//#endregion
|
|
4606
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/util/mime.mjs
|
|
4607
|
+
var MIMEType = class {
|
|
4608
|
+
__unenv__ = true;
|
|
4609
|
+
params = new MIMEParams();
|
|
4610
|
+
type;
|
|
4611
|
+
subtype;
|
|
4612
|
+
constructor(input) {
|
|
4613
|
+
const [essence = "", ...params] = String(input).split(";");
|
|
4614
|
+
const [type = "", subtype = ""] = essence.split("/");
|
|
4615
|
+
this.type = type;
|
|
4616
|
+
this.subtype = subtype;
|
|
4617
|
+
this.params = new MIMEParams();
|
|
4618
|
+
for (const param of params) {
|
|
4619
|
+
const [name, value] = param.split("=");
|
|
4620
|
+
this.params.set(name, value);
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
4623
|
+
get essence() {
|
|
4624
|
+
return this.type + "/" + this.subtype;
|
|
4625
|
+
}
|
|
4626
|
+
toString() {
|
|
4627
|
+
const paramsStr = this.params.toString();
|
|
4628
|
+
return this.essence + (paramsStr ? `;${paramsStr}` : "");
|
|
4629
|
+
}
|
|
4630
|
+
};
|
|
4631
|
+
var MIMEParams = class extends Map {
|
|
4632
|
+
__unenv__ = true;
|
|
4633
|
+
get(name) {
|
|
4634
|
+
return super.get(name) || null;
|
|
4635
|
+
}
|
|
4636
|
+
toString() {
|
|
4637
|
+
return [...this.entries()].map(([name, value]) => `${name}=${value}`).join("&");
|
|
4638
|
+
}
|
|
4639
|
+
};
|
|
4640
|
+
//#endregion
|
|
4641
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/util/legacy-types.mjs
|
|
4642
|
+
const isRegExp$1 = (val) => val instanceof RegExp;
|
|
4643
|
+
const isDate$1 = (val) => val instanceof Date;
|
|
4644
|
+
const isArray$1 = (val) => Array.isArray(val);
|
|
4645
|
+
const isBoolean$1 = (val) => typeof val === "boolean";
|
|
4646
|
+
const isNull$1 = (val) => val === null;
|
|
4647
|
+
const isNullOrUndefined$1 = (val) => val === null || val === void 0;
|
|
4648
|
+
const isNumber$1 = (val) => typeof val === "number";
|
|
4649
|
+
const isString$1 = (val) => typeof val === "string";
|
|
4650
|
+
const isSymbol$1 = (val) => typeof val === "symbol";
|
|
4651
|
+
const isUndefined$1 = (val) => val === void 0;
|
|
4652
|
+
const isFunction$1 = (val) => typeof val === "function";
|
|
4653
|
+
const isBuffer$1 = (val) => {
|
|
4654
|
+
return val && typeof val === "object" && typeof val.copy === "function" && typeof val.fill === "function" && typeof val.readUInt8 === "function";
|
|
4655
|
+
};
|
|
4656
|
+
const isDeepStrictEqual$1 = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
4657
|
+
const isObject$1 = (val) => val !== null && typeof val === "object" && Object.getPrototypeOf(val).isPrototypeOf(Object);
|
|
4658
|
+
const isError$1 = (val) => val instanceof Error;
|
|
4659
|
+
const isPrimitive$1 = (val) => {
|
|
4660
|
+
if (typeof val === "object") return val === null;
|
|
4661
|
+
return typeof val !== "function";
|
|
4662
|
+
};
|
|
4663
|
+
//#endregion
|
|
4664
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/util/log.mjs
|
|
4665
|
+
const log$1 = (...args) => {
|
|
4666
|
+
console.log(...args);
|
|
4667
|
+
};
|
|
4668
|
+
const debuglog$1 = (section, _cb) => {
|
|
4669
|
+
const fn = (msg, ...params) => {
|
|
4670
|
+
if (fn.enabled) console.debug(`[${section}] ${msg}`, ...params);
|
|
4671
|
+
};
|
|
4672
|
+
fn.enabled = true;
|
|
4673
|
+
return fn;
|
|
4674
|
+
};
|
|
4675
|
+
const debug = debuglog$1;
|
|
4676
|
+
const inspect$1 = (object) => JSON.stringify(object, null, 2);
|
|
4677
|
+
const format$1 = (...args) => _format(...args);
|
|
4678
|
+
const formatWithOptions$1 = (_options, ...args) => _format(...args);
|
|
4679
|
+
function _format(fmt, ...args) {
|
|
4680
|
+
const re = /(%?)(%([djos]))/g;
|
|
4681
|
+
if (args.length > 0) fmt = fmt.replace(re, (match, escaped, ptn, flag) => {
|
|
4682
|
+
let arg = args.shift();
|
|
4683
|
+
switch (flag) {
|
|
4684
|
+
case "o":
|
|
4685
|
+
if (Array.isArray(arg)) {
|
|
4686
|
+
arg = JSON.stringify(arg);
|
|
4687
|
+
break;
|
|
4688
|
+
}
|
|
4689
|
+
break;
|
|
4690
|
+
case "s":
|
|
4691
|
+
arg = "" + arg;
|
|
4692
|
+
break;
|
|
4693
|
+
case "d":
|
|
4694
|
+
arg = Number(arg);
|
|
4695
|
+
break;
|
|
4696
|
+
case "j": arg = JSON.stringify(arg);
|
|
4697
|
+
}
|
|
4698
|
+
if (!escaped) return arg;
|
|
4699
|
+
args.unshift(arg);
|
|
4700
|
+
return match;
|
|
4701
|
+
});
|
|
4702
|
+
if (args.length > 0) fmt += " " + args.join(" ");
|
|
4703
|
+
fmt = fmt.replace(/%{2}/g, "%");
|
|
4704
|
+
return "" + fmt;
|
|
4705
|
+
}
|
|
4706
|
+
//#endregion
|
|
4707
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/util.mjs
|
|
4708
|
+
const TextDecoder = globalThis.TextDecoder;
|
|
4709
|
+
const TextEncoder = globalThis.TextEncoder;
|
|
4710
|
+
const deprecate$1 = (fn) => fn;
|
|
4711
|
+
const _errnoException = /* @__PURE__ */ notImplemented("util._errnoException");
|
|
4712
|
+
const _exceptionWithHostPort = /* @__PURE__ */ notImplemented("util._exceptionWithHostPort");
|
|
4713
|
+
const _extend$1 = /* @__PURE__ */ notImplemented("util._extend");
|
|
4714
|
+
const aborted = /* @__PURE__ */ notImplemented("util.aborted");
|
|
4715
|
+
const callbackify$1 = /* @__PURE__ */ notImplemented("util.callbackify");
|
|
4716
|
+
const getSystemErrorMap = /* @__PURE__ */ notImplemented("util.getSystemErrorMap");
|
|
4717
|
+
const getSystemErrorName = /* @__PURE__ */ notImplemented("util.getSystemErrorName");
|
|
4718
|
+
const toUSVString = /* @__PURE__ */ notImplemented("util.toUSVString");
|
|
4719
|
+
const stripVTControlCharacters = /* @__PURE__ */ notImplemented("util.stripVTControlCharacters");
|
|
4720
|
+
const transferableAbortController = /* @__PURE__ */ notImplemented("util.transferableAbortController");
|
|
4721
|
+
const transferableAbortSignal = /* @__PURE__ */ notImplemented("util.transferableAbortSignal");
|
|
4722
|
+
const parseArgs = /* @__PURE__ */ notImplemented("util.parseArgs");
|
|
4723
|
+
const parseEnv = /* @__PURE__ */ notImplemented("util.parseEnv");
|
|
4724
|
+
const styleText = /* @__PURE__ */ notImplemented("util.styleText");
|
|
4725
|
+
const getCallSite = /* @__PURE__ */ notImplemented("util.getCallSite");
|
|
4726
|
+
const getCallSites = /* @__PURE__ */ notImplemented("util.getCallSites");
|
|
4727
|
+
const getSystemErrorMessage = /* @__PURE__ */ notImplemented("util.getSystemErrorMessage");
|
|
4728
|
+
var util_default$1 = {
|
|
4729
|
+
_errnoException,
|
|
4730
|
+
_exceptionWithHostPort,
|
|
4731
|
+
_extend: _extend$1,
|
|
4732
|
+
aborted,
|
|
4733
|
+
callbackify: callbackify$1,
|
|
4734
|
+
deprecate: deprecate$1,
|
|
4735
|
+
getCallSite,
|
|
4736
|
+
getCallSites,
|
|
4737
|
+
getSystemErrorMessage,
|
|
4738
|
+
getSystemErrorMap,
|
|
4739
|
+
getSystemErrorName,
|
|
4740
|
+
inherits: inherits$1,
|
|
4741
|
+
promisify: promisify$1,
|
|
4742
|
+
stripVTControlCharacters,
|
|
4743
|
+
toUSVString,
|
|
4744
|
+
TextDecoder,
|
|
4745
|
+
TextEncoder,
|
|
4746
|
+
types: types$1,
|
|
4747
|
+
transferableAbortController,
|
|
4748
|
+
transferableAbortSignal,
|
|
4749
|
+
parseArgs,
|
|
4750
|
+
parseEnv,
|
|
4751
|
+
styleText,
|
|
4752
|
+
MIMEParams,
|
|
4753
|
+
MIMEType,
|
|
4754
|
+
isArray: isArray$1,
|
|
4755
|
+
isBoolean: isBoolean$1,
|
|
4756
|
+
isBuffer: isBuffer$1,
|
|
4757
|
+
isDate: isDate$1,
|
|
4758
|
+
isDeepStrictEqual: isDeepStrictEqual$1,
|
|
4759
|
+
isError: isError$1,
|
|
4760
|
+
isFunction: isFunction$1,
|
|
4761
|
+
isNull: isNull$1,
|
|
4762
|
+
isNullOrUndefined: isNullOrUndefined$1,
|
|
4763
|
+
isNumber: isNumber$1,
|
|
4764
|
+
isObject: isObject$1,
|
|
4765
|
+
isPrimitive: isPrimitive$1,
|
|
4766
|
+
isRegExp: isRegExp$1,
|
|
4767
|
+
isString: isString$1,
|
|
4768
|
+
isSymbol: isSymbol$1,
|
|
4769
|
+
isUndefined: isUndefined$1,
|
|
4770
|
+
debug,
|
|
4771
|
+
debuglog: debuglog$1,
|
|
4772
|
+
format: format$1,
|
|
4773
|
+
formatWithOptions: formatWithOptions$1,
|
|
4774
|
+
inspect: inspect$1,
|
|
4775
|
+
log: log$1
|
|
4776
|
+
};
|
|
4777
|
+
//#endregion
|
|
4778
|
+
//#region src/node/util.ts
|
|
4779
|
+
var import_util = /* @__PURE__ */ __toESM(require_util(), 1);
|
|
4780
|
+
const custom = Symbol.for("nodejs.util.promisify.custom");
|
|
4781
|
+
const selfPromisifying = (fn) => Object.defineProperty(fn, custom, {
|
|
4782
|
+
value: fn,
|
|
4783
|
+
configurable: true
|
|
4784
|
+
});
|
|
4785
|
+
const promisify = Object.assign((fn) => {
|
|
4786
|
+
if (typeof fn !== "function") throw new TypeError("The \"original\" argument must be of type function");
|
|
4787
|
+
const own = fn[custom];
|
|
4788
|
+
if (own !== void 0) {
|
|
4789
|
+
if (typeof own !== "function") throw new TypeError("The \"util.promisify.custom\" argument must be of type function");
|
|
4790
|
+
return selfPromisifying(own);
|
|
4791
|
+
}
|
|
4792
|
+
return selfPromisifying(import_util.promisify(fn));
|
|
4793
|
+
}, { custom });
|
|
4794
|
+
const { _extend, callbackify, debuglog, deprecate, inherits, isArray, isBoolean, isBuffer, isDate, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, log } = import_util.default;
|
|
4795
|
+
var util_default = {
|
|
4796
|
+
...util_default$1,
|
|
4797
|
+
...import_util.default,
|
|
4798
|
+
format,
|
|
4799
|
+
formatWithOptions,
|
|
4800
|
+
inspect,
|
|
4801
|
+
isDeepStrictEqual: import_comparisons.isDeepStrictEqual,
|
|
4802
|
+
promisify,
|
|
4803
|
+
types
|
|
4804
|
+
};
|
|
4805
|
+
//#endregion
|
|
4806
|
+
var isDeepStrictEqual = import_comparisons.isDeepStrictEqual;
|
|
4807
|
+
export { MIMEParams, MIMEType, TextDecoder, TextEncoder, _errnoException, _exceptionWithHostPort, _extend, aborted, callbackify, debug, debuglog, util_default as default, deprecate, format, formatWithOptions, getCallSite, getCallSites, getSystemErrorMap, getSystemErrorMessage, getSystemErrorName, inherits, inspect, isArray, isBoolean, isBuffer, isDate, isDeepStrictEqual, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, log, parseArgs, parseEnv, promisify, stripVTControlCharacters, styleText, toUSVString, transferableAbortController, transferableAbortSignal, types };
|