@ohos-ports/prisma-internals 7.10.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/Generator.d.ts +42 -0
- package/dist/Generator.js +29 -0
- package/dist/WasmPanicRegistry.d.ts +5 -0
- package/dist/WasmPanicRegistry.js +25 -0
- package/dist/WasmSchemaEngineLoader.d.ts +5 -0
- package/dist/WasmSchemaEngineLoader.js +25 -0
- package/dist/built-in-provider.d.ts +5 -0
- package/dist/built-in-provider.js +25 -0
- package/dist/chunk-2B26F5N3.js +72 -0
- package/dist/chunk-2IOZUH3U.js +26 -0
- package/dist/chunk-2SDPW6AX.js +39 -0
- package/dist/chunk-3IMRWXIL.js +176 -0
- package/dist/chunk-3TYD3ZGQ.js +115 -0
- package/dist/chunk-3U4QB2G3.js +166 -0
- package/dist/chunk-3VD46SL7.js +151 -0
- package/dist/chunk-3YOF262C.js +176 -0
- package/dist/chunk-3ZHE2IX4.js +55 -0
- package/dist/chunk-4VNS5WPM.js +61 -0
- package/dist/chunk-5AI4FIZ3.js +1342 -0
- package/dist/chunk-5BDP445D.js +51 -0
- package/dist/chunk-5DBOS77Y.js +609 -0
- package/dist/chunk-5FJ3MENK.js +30 -0
- package/dist/chunk-5I4ERIIY.js +30 -0
- package/dist/chunk-5PJQQKQI.js +106 -0
- package/dist/chunk-5VQNKCKW.js +38 -0
- package/dist/chunk-5WRIOIZY.js +31 -0
- package/dist/chunk-6JE6QGSJ.js +37 -0
- package/dist/chunk-6PWHYRKR.js +74 -0
- package/dist/chunk-6QMQ2JYG.js +122 -0
- package/dist/chunk-6Z766KGR.js +95 -0
- package/dist/chunk-74RGCSUJ.js +44 -0
- package/dist/chunk-7B5PXS6N.js +29 -0
- package/dist/chunk-ANU3HEGF.js +29 -0
- package/dist/chunk-BERN76ZI.js +347 -0
- package/dist/chunk-BGMZPA2F.js +39 -0
- package/dist/chunk-BPDMLM32.js +105 -0
- package/dist/chunk-C47SCASR.js +37 -0
- package/dist/chunk-CGFNDGGI.js +40 -0
- package/dist/chunk-CTQD6OLG.js +438 -0
- package/dist/chunk-CUD726EK.js +36 -0
- package/dist/chunk-CXEXLFVL.js +166 -0
- package/dist/chunk-CYAS6B5N.js +48 -0
- package/dist/chunk-D4VZUY3O.js +71 -0
- package/dist/chunk-DODIJPCS.js +34 -0
- package/dist/chunk-DTPFRZWV.js +31 -0
- package/dist/chunk-DUDEWDFC.js +101 -0
- package/dist/chunk-DZ4QWHTB.js +127 -0
- package/dist/chunk-E23HYCQJ.js +37 -0
- package/dist/chunk-E476ARWS.js +2091 -0
- package/dist/chunk-EKGEKB22.js +28 -0
- package/dist/chunk-EU6UOKRD.js +26 -0
- package/dist/chunk-EWPXLBGE.js +115 -0
- package/dist/chunk-FCYHZHVW.js +43 -0
- package/dist/chunk-FRVJZOHP.js +1823 -0
- package/dist/chunk-GJSFP4V4.js +30 -0
- package/dist/chunk-GXW4NTU2.js +34 -0
- package/dist/chunk-H4NI2RIK.js +35 -0
- package/dist/chunk-HHG4DGHC.js +496 -0
- package/dist/chunk-HPVMQFIY.js +407 -0
- package/dist/chunk-I2CBQZJY.js +122 -0
- package/dist/chunk-I4K46RGG.js +31 -0
- package/dist/chunk-I6WLABB2.js +429 -0
- package/dist/chunk-ICFLO5JW.js +26 -0
- package/dist/chunk-IL7PSY44.js +26 -0
- package/dist/chunk-IOIAK7V7.js +53 -0
- package/dist/chunk-IYN5VKMD.js +110 -0
- package/dist/chunk-J77ZIDXB.js +69 -0
- package/dist/chunk-J7ZPY2XA.js +47 -0
- package/dist/chunk-JFXHOFJA.js +46 -0
- package/dist/chunk-JOIHHXR6.js +2067 -0
- package/dist/chunk-JPZYSRK3.js +6412 -0
- package/dist/chunk-JTKAT4KZ.js +26 -0
- package/dist/chunk-K2EOOA2X.js +91 -0
- package/dist/chunk-KDP6C3CB.js +56 -0
- package/dist/chunk-L3LDE52J.js +51 -0
- package/dist/chunk-L6V54WGO.js +39 -0
- package/dist/chunk-LMVSIVKQ.js +62 -0
- package/dist/chunk-LPNBWFQ3.js +38 -0
- package/dist/chunk-LRBXMV4B.js +26 -0
- package/dist/chunk-LRU47BGE.js +78 -0
- package/dist/chunk-M3GBKLGE.js +24 -0
- package/dist/chunk-MCS5ZY6Y.js +27 -0
- package/dist/chunk-NBWRGVYR.js +47 -0
- package/dist/chunk-NIWBAJZV.js +36 -0
- package/dist/chunk-NTDBN2N2.js +104 -0
- package/dist/chunk-NVNI2SRU.js +4230 -0
- package/dist/chunk-OIVPX3BR.js +32 -0
- package/dist/chunk-PFYALFCY.js +26 -0
- package/dist/chunk-PG5FDKSF.js +79 -0
- package/dist/chunk-PKF53VLJ.js +26 -0
- package/dist/chunk-PTPRBA7K.js +6675 -0
- package/dist/chunk-QBNYSYZK.js +74 -0
- package/dist/chunk-QMNPESAP.js +124 -0
- package/dist/chunk-QN6PSQY7.js +37 -0
- package/dist/chunk-QVJ2BXKF.js +3997 -0
- package/dist/chunk-R47SFJ5Z.js +104 -0
- package/dist/chunk-R6QH57HZ.js +311 -0
- package/dist/chunk-RBDYOTWB.js +193 -0
- package/dist/chunk-SBUSVJCV.js +62 -0
- package/dist/chunk-SP2ETLT2.js +41 -0
- package/dist/chunk-TPCPXGC5.js +218 -0
- package/dist/chunk-TWSLDIFL.js +48 -0
- package/dist/chunk-UGR6KLZN.js +30 -0
- package/dist/chunk-UMM35VP5.js +1193 -0
- package/dist/chunk-VFNP7Q3Y.js +15529 -0
- package/dist/chunk-VNIE2AZB.js +41 -0
- package/dist/chunk-VUGB2H7M.js +438 -0
- package/dist/chunk-WFMA7DI5.js +92 -0
- package/dist/chunk-WV4QHCSM.js +26 -0
- package/dist/chunk-WXRVYSYN.js +33 -0
- package/dist/chunk-X3P4J7WW.js +28 -0
- package/dist/chunk-X77CS5RK.js +33 -0
- package/dist/chunk-XAAVALN7.js +110 -0
- package/dist/chunk-XXTPN4LB.js +41 -0
- package/dist/chunk-XYCIH36R.js +29 -0
- package/dist/chunk-Y4TOGY6I.js +30 -0
- package/dist/chunk-YNDZCLVL.js +307 -0
- package/dist/chunk-YXB6APHS.js +447 -0
- package/dist/chunk-ZJWZK45Z.js +68 -0
- package/dist/chunk-ZKWDIAVF.js +29 -0
- package/dist/cli/Help.d.ts +11 -0
- package/dist/cli/Help.js +27 -0
- package/dist/cli/checkUnsupportedDataProxy.d.ts +16 -0
- package/dist/cli/checkUnsupportedDataProxy.js +125 -0
- package/dist/cli/completion-values.d.ts +24 -0
- package/dist/cli/completion-values.js +47 -0
- package/dist/cli/directoryConfig.d.ts +11 -0
- package/dist/cli/directoryConfig.js +25 -0
- package/dist/cli/getGeneratorSuccessMessage.d.ts +7 -0
- package/dist/cli/getGeneratorSuccessMessage.js +29 -0
- package/dist/cli/getSchema.d.ts +46 -0
- package/dist/cli/getSchema.js +31 -0
- package/dist/cli/getTypescriptVersion.d.ts +1 -0
- package/dist/cli/getTypescriptVersion.js +25 -0
- package/dist/cli/hashes.d.ts +11 -0
- package/dist/cli/hashes.js +28 -0
- package/dist/cli/schemaContext.d.ts +56 -0
- package/dist/cli/schemaContext.js +126 -0
- package/dist/cli/types.d.ts +63 -0
- package/dist/cli/types.js +1 -0
- package/dist/cli/utils.d.ts +13 -0
- package/dist/cli/utils.js +27 -0
- package/dist/convertCredentials.d.ts +10 -0
- package/dist/convertCredentials.js +28 -0
- package/dist/engine-commands/errorHelpers.d.ts +4 -0
- package/dist/engine-commands/errorHelpers.js +28 -0
- package/dist/engine-commands/formatSchema.d.ts +22 -0
- package/dist/engine-commands/formatSchema.js +124 -0
- package/dist/engine-commands/getConfig.d.ts +27 -0
- package/dist/engine-commands/getConfig.js +39 -0
- package/dist/engine-commands/getDmmf.d.ts +21 -0
- package/dist/engine-commands/getDmmf.js +40 -0
- package/dist/engine-commands/getEngineVersion.d.ts +4 -0
- package/dist/engine-commands/getEngineVersion.js +33 -0
- package/dist/engine-commands/getEnginesInfo.d.ts +20 -0
- package/dist/engine-commands/getEnginesInfo.js +36 -0
- package/dist/engine-commands/index.d.ts +10 -0
- package/dist/engine-commands/index.js +136 -0
- package/dist/engine-commands/lintSchema.d.ts +26 -0
- package/dist/engine-commands/lintSchema.js +34 -0
- package/dist/engine-commands/mergeSchemas.d.ts +12 -0
- package/dist/engine-commands/mergeSchemas.js +39 -0
- package/dist/engine-commands/queryEngineCommons.d.ts +31 -0
- package/dist/engine-commands/queryEngineCommons.js +33 -0
- package/dist/engine-commands/relativizePathInPSLError.d.ts +1 -0
- package/dist/engine-commands/relativizePathInPSLError.js +25 -0
- package/dist/engine-commands/validate.d.ts +12 -0
- package/dist/engine-commands/validate.js +39 -0
- package/dist/errorReporting.d.ts +25 -0
- package/dist/errorReporting.js +29 -0
- package/dist/get-generators/getGenerators.d.ts +71 -0
- package/dist/get-generators/getGenerators.js +127 -0
- package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +3 -0
- package/dist/get-generators/utils/binaryTypeToEngineType.js +25 -0
- package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +3 -0
- package/dist/get-generators/utils/engineTypeToBinaryType.js +25 -0
- package/dist/get-generators/utils/fixBinaryTargets.d.ts +3 -0
- package/dist/get-generators/utils/fixBinaryTargets.js +25 -0
- package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +7 -0
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +30 -0
- package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +2 -0
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +25 -0
- package/dist/get-generators/utils/printGeneratorConfig.d.ts +9 -0
- package/dist/get-generators/utils/printGeneratorConfig.js +29 -0
- package/dist/getPackedPackage.d.ts +1 -0
- package/dist/getPackedPackage.js +29 -0
- package/dist/highlight/highlight.d.ts +3 -0
- package/dist/highlight/highlight.js +32 -0
- package/dist/highlight/languages/dml.d.ts +2 -0
- package/dist/highlight/languages/dml.js +25 -0
- package/dist/highlight/languages/sql.d.ts +2 -0
- package/dist/highlight/languages/sql.js +25 -0
- package/dist/highlight/prism.d.ts +6 -0
- package/dist/highlight/prism.js +28 -0
- package/dist/highlight/theme.d.ts +2 -0
- package/dist/highlight/theme.js +26 -0
- package/dist/highlight/types.d.ts +35 -0
- package/dist/highlight/types.js +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.js +257 -0
- package/dist/logger.d.ts +14 -0
- package/dist/logger.js +32 -0
- package/dist/magic-string.es-B2CP4FDB.js +1324 -0
- package/dist/migrateTypes.d.ts +99 -0
- package/dist/migrateTypes.js +1 -0
- package/dist/multipart-parser-3AFJFP6K.js +374 -0
- package/dist/panic.d.ts +31 -0
- package/dist/panic.js +29 -0
- package/dist/resolveBinary.d.ts +6 -0
- package/dist/resolveBinary.js +34 -0
- package/dist/resolveOutput.d.ts +5 -0
- package/dist/resolveOutput.js +25 -0
- package/dist/resolvePkg.d.ts +7 -0
- package/dist/resolvePkg.js +25 -0
- package/dist/schemaEngineCommands.d.ts +36 -0
- package/dist/schemaEngineCommands.js +36 -0
- package/dist/sendPanic.d.ts +10 -0
- package/dist/sendPanic.js +29 -0
- package/dist/types.d.ts +34 -0
- package/dist/types.js +1 -0
- package/dist/utils/__tests__/isCi.test.js +58 -0
- package/dist/utils/__tests__/isInteractive.test.js +47 -0
- package/dist/utils/assertAlways.d.ts +14 -0
- package/dist/utils/assertAlways.js +25 -0
- package/dist/utils/assertNever.d.ts +27 -0
- package/dist/utils/assertNever.js +25 -0
- package/dist/utils/binaryTargetRegex.d.ts +8 -0
- package/dist/utils/binaryTargetRegex.js +25 -0
- package/dist/utils/callOnce.d.ts +13 -0
- package/dist/utils/callOnce.js +25 -0
- package/dist/utils/callOnce.test.d.ts +1 -0
- package/dist/utils/callOnce.test.js +36 -0
- package/dist/utils/canPrompt.d.ts +1 -0
- package/dist/utils/canPrompt.js +27 -0
- package/dist/utils/chmodPlusX.d.ts +1 -0
- package/dist/utils/chmodPlusX.js +25 -0
- package/dist/utils/drawBox.d.ts +9 -0
- package/dist/utils/drawBox.js +26 -0
- package/dist/utils/extractPreviewFeatures.d.ts +2 -0
- package/dist/utils/extractPreviewFeatures.js +28 -0
- package/dist/utils/formatTable.d.ts +5 -0
- package/dist/utils/formatTable.js +25 -0
- package/dist/utils/formatms.d.ts +5 -0
- package/dist/utils/formatms.js +25 -0
- package/dist/utils/fs-functional.d.ts +53 -0
- package/dist/utils/fs-functional.js +35 -0
- package/dist/utils/fs-utils.d.ts +30 -0
- package/dist/utils/fs-utils.js +32 -0
- package/dist/utils/getCommandWithExecutor.d.ts +1 -0
- package/dist/utils/getCommandWithExecutor.js +26 -0
- package/dist/utils/getGitHubIssueUrl.d.ts +18 -0
- package/dist/utils/getGitHubIssueUrl.js +27 -0
- package/dist/utils/getVersionFromPackageJson.d.ts +1 -0
- package/dist/utils/getVersionFromPackageJson.js +26 -0
- package/dist/utils/handlePanic.d.ts +11 -0
- package/dist/utils/handlePanic.js +36 -0
- package/dist/utils/hasOwnProperty.d.ts +1 -0
- package/dist/utils/hasOwnProperty.js +25 -0
- package/dist/utils/isCi.d.ts +1 -0
- package/dist/utils/isCi.js +25 -0
- package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -0
- package/dist/utils/isCurrentBinInstalledGlobally.js +25 -0
- package/dist/utils/isInContainer.d.ts +5 -0
- package/dist/utils/isInContainer.js +25 -0
- package/dist/utils/isInNpmLifecycleHook.d.ts +4 -0
- package/dist/utils/isInNpmLifecycleHook.js +25 -0
- package/dist/utils/isInteractive.d.ts +6 -0
- package/dist/utils/isInteractive.js +25 -0
- package/dist/utils/isPromiseLike.d.ts +1 -0
- package/dist/utils/isPromiseLike.js +25 -0
- package/dist/utils/isValidJsIdentifier.d.ts +1 -0
- package/dist/utils/isValidJsIdentifier.js +25 -0
- package/dist/utils/keyBy.d.ts +9 -0
- package/dist/utils/keyBy.js +25 -0
- package/dist/utils/link.d.ts +1 -0
- package/dist/utils/link.js +26 -0
- package/dist/utils/mapKeys.d.ts +1 -0
- package/dist/utils/mapKeys.js +25 -0
- package/dist/utils/mapObjectValues.d.ts +1 -0
- package/dist/utils/mapObjectValues.js +25 -0
- package/dist/utils/max.d.ts +11 -0
- package/dist/utils/max.js +26 -0
- package/dist/utils/max.test.d.ts +1 -0
- package/dist/utils/max.test.js +22 -0
- package/dist/utils/maybeInGitHook.d.ts +9 -0
- package/dist/utils/maybeInGitHook.js +25 -0
- package/dist/utils/missingDatasource.d.ts +1 -0
- package/dist/utils/missingDatasource.js +32 -0
- package/dist/utils/missingGeneratorMessage.d.ts +3 -0
- package/dist/utils/missingGeneratorMessage.js +34 -0
- package/dist/utils/now.d.ts +3 -0
- package/dist/utils/now.js +51 -0
- package/dist/utils/omit.d.ts +6 -0
- package/dist/utils/omit.js +30 -0
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.d.ts +1 -0
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +25 -0
- package/dist/utils/parseEnvValue.d.ts +17 -0
- package/dist/utils/parseEnvValue.js +27 -0
- package/dist/utils/path.d.ts +14 -0
- package/dist/utils/path.js +26 -0
- package/dist/utils/path.test.d.ts +1 -0
- package/dist/utils/path.test.js +54 -0
- package/dist/utils/pick.d.ts +1 -0
- package/dist/utils/pick.js +25 -0
- package/dist/utils/printConfigWarnings.d.ts +1 -0
- package/dist/utils/printConfigWarnings.js +26 -0
- package/dist/utils/prismaPostgres.d.ts +13 -0
- package/dist/utils/prismaPostgres.js +28 -0
- package/dist/utils/prismaPostgres.test.d.ts +1 -0
- package/dist/utils/prismaPostgres.test.js +33 -0
- package/dist/utils/schemaFileInput.d.ts +2 -0
- package/dist/utils/schemaFileInput.js +25 -0
- package/dist/utils/setClassName.d.ts +9 -0
- package/dist/utils/setClassName.js +25 -0
- package/dist/utils/toSchemasContainer.d.ts +5 -0
- package/dist/utils/toSchemasContainer.js +26 -0
- package/dist/utils/unique.d.ts +5 -0
- package/dist/utils/unique.js +38 -0
- package/dist/utils/validatePrismaConfigWithDatasource.d.ts +17 -0
- package/dist/utils/validatePrismaConfigWithDatasource.js +28 -0
- package/dist/utils/vercelPkgPathRegex.d.ts +1 -0
- package/dist/utils/vercelPkgPathRegex.js +25 -0
- package/dist/warnOnce.d.ts +1 -0
- package/dist/warnOnce.js +27 -0
- package/dist/wasm.d.ts +5 -0
- package/dist/wasm.js +29 -0
- package/package.json +93 -0
|
@@ -0,0 +1,1193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var chunk_UMM35VP5_exports = {};
|
|
30
|
+
__export(chunk_UMM35VP5_exports, {
|
|
31
|
+
resolvePkg: () => resolvePkg
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_UMM35VP5_exports);
|
|
34
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
35
|
+
var import_path = __toESM(require("path"));
|
|
36
|
+
var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
37
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/homedir.js"(exports, module2) {
|
|
38
|
+
"use strict";
|
|
39
|
+
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
|
40
|
+
module2.exports = os.homedir || function homedir() {
|
|
41
|
+
var home = process.env.HOME;
|
|
42
|
+
var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
|
|
43
|
+
if (process.platform === "win32") {
|
|
44
|
+
return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
|
|
45
|
+
}
|
|
46
|
+
if (process.platform === "darwin") {
|
|
47
|
+
return home || (user ? "/Users/" + user : null);
|
|
48
|
+
}
|
|
49
|
+
if (process.platform === "linux") {
|
|
50
|
+
return home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null);
|
|
51
|
+
}
|
|
52
|
+
return home || null;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
var require_caller = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
57
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/caller.js"(exports, module2) {
|
|
58
|
+
"use strict";
|
|
59
|
+
module2.exports = function() {
|
|
60
|
+
var origPrepareStackTrace = Error.prepareStackTrace;
|
|
61
|
+
Error.prepareStackTrace = function(_, stack2) {
|
|
62
|
+
return stack2;
|
|
63
|
+
};
|
|
64
|
+
var stack = new Error().stack;
|
|
65
|
+
Error.prepareStackTrace = origPrepareStackTrace;
|
|
66
|
+
return stack[2].getFileName();
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
var require_path_parse = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
71
|
+
"../../node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js"(exports, module2) {
|
|
72
|
+
"use strict";
|
|
73
|
+
var isWindows = process.platform === "win32";
|
|
74
|
+
var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
|
|
75
|
+
var win32 = {};
|
|
76
|
+
function win32SplitPath(filename) {
|
|
77
|
+
return splitWindowsRe.exec(filename).slice(1);
|
|
78
|
+
}
|
|
79
|
+
win32.parse = function(pathString) {
|
|
80
|
+
if (typeof pathString !== "string") {
|
|
81
|
+
throw new TypeError(
|
|
82
|
+
"Parameter 'pathString' must be a string, not " + typeof pathString
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
var allParts = win32SplitPath(pathString);
|
|
86
|
+
if (!allParts || allParts.length !== 5) {
|
|
87
|
+
throw new TypeError("Invalid path '" + pathString + "'");
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
root: allParts[1],
|
|
91
|
+
dir: allParts[0] === allParts[1] ? allParts[0] : allParts[0].slice(0, -1),
|
|
92
|
+
base: allParts[2],
|
|
93
|
+
ext: allParts[4],
|
|
94
|
+
name: allParts[3]
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
var splitPathRe = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/;
|
|
98
|
+
var posix = {};
|
|
99
|
+
function posixSplitPath(filename) {
|
|
100
|
+
return splitPathRe.exec(filename).slice(1);
|
|
101
|
+
}
|
|
102
|
+
posix.parse = function(pathString) {
|
|
103
|
+
if (typeof pathString !== "string") {
|
|
104
|
+
throw new TypeError(
|
|
105
|
+
"Parameter 'pathString' must be a string, not " + typeof pathString
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
var allParts = posixSplitPath(pathString);
|
|
109
|
+
if (!allParts || allParts.length !== 5) {
|
|
110
|
+
throw new TypeError("Invalid path '" + pathString + "'");
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
root: allParts[1],
|
|
114
|
+
dir: allParts[0].slice(0, -1),
|
|
115
|
+
base: allParts[2],
|
|
116
|
+
ext: allParts[4],
|
|
117
|
+
name: allParts[3]
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
if (isWindows)
|
|
121
|
+
module2.exports = win32.parse;
|
|
122
|
+
else
|
|
123
|
+
module2.exports = posix.parse;
|
|
124
|
+
module2.exports.posix = posix.parse;
|
|
125
|
+
module2.exports.win32 = win32.parse;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
var require_node_modules_paths = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
129
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/node-modules-paths.js"(exports, module2) {
|
|
130
|
+
"use strict";
|
|
131
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
132
|
+
var parse = path2.parse || require_path_parse();
|
|
133
|
+
var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
|
|
134
|
+
var prefix = "/";
|
|
135
|
+
if (/^([A-Za-z]:)/.test(absoluteStart)) {
|
|
136
|
+
prefix = "";
|
|
137
|
+
} else if (/^\\\\/.test(absoluteStart)) {
|
|
138
|
+
prefix = "\\\\";
|
|
139
|
+
}
|
|
140
|
+
var paths = [absoluteStart];
|
|
141
|
+
var parsed = parse(absoluteStart);
|
|
142
|
+
while (parsed.dir !== paths[paths.length - 1]) {
|
|
143
|
+
paths.push(parsed.dir);
|
|
144
|
+
parsed = parse(parsed.dir);
|
|
145
|
+
}
|
|
146
|
+
return paths.reduce(function(dirs, aPath) {
|
|
147
|
+
return dirs.concat(modules.map(function(moduleDir) {
|
|
148
|
+
return path2.resolve(prefix, aPath, moduleDir);
|
|
149
|
+
}));
|
|
150
|
+
}, []);
|
|
151
|
+
};
|
|
152
|
+
module2.exports = function nodeModulesPaths(start, opts, request) {
|
|
153
|
+
var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"];
|
|
154
|
+
if (opts && typeof opts.paths === "function") {
|
|
155
|
+
return opts.paths(
|
|
156
|
+
request,
|
|
157
|
+
start,
|
|
158
|
+
function() {
|
|
159
|
+
return getNodeModulesDirs(start, modules);
|
|
160
|
+
},
|
|
161
|
+
opts
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
var dirs = getNodeModulesDirs(start, modules);
|
|
165
|
+
return opts && opts.paths ? dirs.concat(opts.paths) : dirs;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
var require_normalize_options = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
170
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/normalize-options.js"(exports, module2) {
|
|
171
|
+
"use strict";
|
|
172
|
+
module2.exports = function(x, opts) {
|
|
173
|
+
return opts || {};
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
var require_implementation = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
178
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
|
|
179
|
+
"use strict";
|
|
180
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
181
|
+
var toStr = Object.prototype.toString;
|
|
182
|
+
var max = Math.max;
|
|
183
|
+
var funcType = "[object Function]";
|
|
184
|
+
var concatty = function concatty2(a, b) {
|
|
185
|
+
var arr = [];
|
|
186
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
187
|
+
arr[i] = a[i];
|
|
188
|
+
}
|
|
189
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
190
|
+
arr[j + a.length] = b[j];
|
|
191
|
+
}
|
|
192
|
+
return arr;
|
|
193
|
+
};
|
|
194
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
195
|
+
var arr = [];
|
|
196
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
197
|
+
arr[j] = arrLike[i];
|
|
198
|
+
}
|
|
199
|
+
return arr;
|
|
200
|
+
};
|
|
201
|
+
var joiny = function(arr, joiner) {
|
|
202
|
+
var str = "";
|
|
203
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
204
|
+
str += arr[i];
|
|
205
|
+
if (i + 1 < arr.length) {
|
|
206
|
+
str += joiner;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return str;
|
|
210
|
+
};
|
|
211
|
+
module2.exports = function bind(that) {
|
|
212
|
+
var target = this;
|
|
213
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
214
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
215
|
+
}
|
|
216
|
+
var args = slicy(arguments, 1);
|
|
217
|
+
var bound;
|
|
218
|
+
var binder = function() {
|
|
219
|
+
if (this instanceof bound) {
|
|
220
|
+
var result = target.apply(
|
|
221
|
+
this,
|
|
222
|
+
concatty(args, arguments)
|
|
223
|
+
);
|
|
224
|
+
if (Object(result) === result) {
|
|
225
|
+
return result;
|
|
226
|
+
}
|
|
227
|
+
return this;
|
|
228
|
+
}
|
|
229
|
+
return target.apply(
|
|
230
|
+
that,
|
|
231
|
+
concatty(args, arguments)
|
|
232
|
+
);
|
|
233
|
+
};
|
|
234
|
+
var boundLength = max(0, target.length - args.length);
|
|
235
|
+
var boundArgs = [];
|
|
236
|
+
for (var i = 0; i < boundLength; i++) {
|
|
237
|
+
boundArgs[i] = "$" + i;
|
|
238
|
+
}
|
|
239
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
240
|
+
if (target.prototype) {
|
|
241
|
+
var Empty = function Empty2() {
|
|
242
|
+
};
|
|
243
|
+
Empty.prototype = target.prototype;
|
|
244
|
+
bound.prototype = new Empty();
|
|
245
|
+
Empty.prototype = null;
|
|
246
|
+
}
|
|
247
|
+
return bound;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
var require_function_bind = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
252
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
|
|
253
|
+
"use strict";
|
|
254
|
+
var implementation = require_implementation();
|
|
255
|
+
module2.exports = Function.prototype.bind || implementation;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
var require_hasown = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
259
|
+
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
|
|
260
|
+
"use strict";
|
|
261
|
+
var call = Function.prototype.call;
|
|
262
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
263
|
+
var bind = require_function_bind();
|
|
264
|
+
module2.exports = bind.call(call, $hasOwn);
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
268
|
+
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(exports, module2) {
|
|
269
|
+
module2.exports = {
|
|
270
|
+
assert: true,
|
|
271
|
+
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
|
272
|
+
"assert/strict": ">= 15",
|
|
273
|
+
"node:assert/strict": ">= 16",
|
|
274
|
+
async_hooks: ">= 8",
|
|
275
|
+
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
276
|
+
buffer_ieee754: ">= 0.5 && < 0.9.7",
|
|
277
|
+
buffer: true,
|
|
278
|
+
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
|
279
|
+
child_process: true,
|
|
280
|
+
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
|
281
|
+
cluster: ">= 0.5",
|
|
282
|
+
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
|
283
|
+
console: true,
|
|
284
|
+
"node:console": [">= 14.18 && < 15", ">= 16"],
|
|
285
|
+
constants: true,
|
|
286
|
+
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
|
287
|
+
crypto: true,
|
|
288
|
+
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
|
289
|
+
_debug_agent: ">= 1 && < 8",
|
|
290
|
+
_debugger: "< 8",
|
|
291
|
+
dgram: true,
|
|
292
|
+
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
|
293
|
+
diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
|
|
294
|
+
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
|
295
|
+
dns: true,
|
|
296
|
+
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
|
297
|
+
"dns/promises": ">= 15",
|
|
298
|
+
"node:dns/promises": ">= 16",
|
|
299
|
+
domain: ">= 0.7.12",
|
|
300
|
+
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
|
301
|
+
events: true,
|
|
302
|
+
"node:events": [">= 14.18 && < 15", ">= 16"],
|
|
303
|
+
freelist: "< 6",
|
|
304
|
+
fs: true,
|
|
305
|
+
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
|
306
|
+
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
|
307
|
+
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
|
308
|
+
_http_agent: ">= 0.11.1",
|
|
309
|
+
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
|
310
|
+
_http_client: ">= 0.11.1",
|
|
311
|
+
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
|
312
|
+
_http_common: ">= 0.11.1",
|
|
313
|
+
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
|
314
|
+
_http_incoming: ">= 0.11.1",
|
|
315
|
+
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
|
316
|
+
_http_outgoing: ">= 0.11.1",
|
|
317
|
+
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
|
318
|
+
_http_server: ">= 0.11.1",
|
|
319
|
+
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
|
320
|
+
http: true,
|
|
321
|
+
"node:http": [">= 14.18 && < 15", ">= 16"],
|
|
322
|
+
http2: ">= 8.8",
|
|
323
|
+
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
|
324
|
+
https: true,
|
|
325
|
+
"node:https": [">= 14.18 && < 15", ">= 16"],
|
|
326
|
+
inspector: ">= 8",
|
|
327
|
+
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
|
328
|
+
"inspector/promises": [">= 19"],
|
|
329
|
+
"node:inspector/promises": [">= 19"],
|
|
330
|
+
_linklist: "< 8",
|
|
331
|
+
module: true,
|
|
332
|
+
"node:module": [">= 14.18 && < 15", ">= 16"],
|
|
333
|
+
net: true,
|
|
334
|
+
"node:net": [">= 14.18 && < 15", ">= 16"],
|
|
335
|
+
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
|
336
|
+
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
|
337
|
+
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
|
338
|
+
os: true,
|
|
339
|
+
"node:os": [">= 14.18 && < 15", ">= 16"],
|
|
340
|
+
path: true,
|
|
341
|
+
"node:path": [">= 14.18 && < 15", ">= 16"],
|
|
342
|
+
"path/posix": ">= 15.3",
|
|
343
|
+
"node:path/posix": ">= 16",
|
|
344
|
+
"path/win32": ">= 15.3",
|
|
345
|
+
"node:path/win32": ">= 16",
|
|
346
|
+
perf_hooks: ">= 8.5",
|
|
347
|
+
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
348
|
+
process: ">= 1",
|
|
349
|
+
"node:process": [">= 14.18 && < 15", ">= 16"],
|
|
350
|
+
punycode: ">= 0.5",
|
|
351
|
+
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
|
352
|
+
querystring: true,
|
|
353
|
+
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
|
354
|
+
readline: true,
|
|
355
|
+
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
|
356
|
+
"readline/promises": ">= 17",
|
|
357
|
+
"node:readline/promises": ">= 17",
|
|
358
|
+
repl: true,
|
|
359
|
+
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
360
|
+
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
|
361
|
+
smalloc: ">= 0.11.5 && < 3",
|
|
362
|
+
"node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
|
|
363
|
+
_stream_duplex: ">= 0.9.4",
|
|
364
|
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
365
|
+
_stream_transform: ">= 0.9.4",
|
|
366
|
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
|
367
|
+
_stream_wrap: ">= 1.4.1",
|
|
368
|
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
369
|
+
_stream_passthrough: ">= 0.9.4",
|
|
370
|
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
|
371
|
+
_stream_readable: ">= 0.9.4",
|
|
372
|
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
|
373
|
+
_stream_writable: ">= 0.9.4",
|
|
374
|
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
|
375
|
+
stream: true,
|
|
376
|
+
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
|
377
|
+
"stream/consumers": ">= 16.7",
|
|
378
|
+
"node:stream/consumers": ">= 16.7",
|
|
379
|
+
"stream/promises": ">= 15",
|
|
380
|
+
"node:stream/promises": ">= 16",
|
|
381
|
+
"stream/web": ">= 16.5",
|
|
382
|
+
"node:stream/web": ">= 16.5",
|
|
383
|
+
string_decoder: true,
|
|
384
|
+
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
385
|
+
sys: [">= 0.4 && < 0.7", ">= 0.8"],
|
|
386
|
+
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
387
|
+
"test/reporters": ">= 19.9 && < 20.2",
|
|
388
|
+
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
|
389
|
+
"test/mock_loader": ">= 22.3 && < 22.7",
|
|
390
|
+
"node:test/mock_loader": ">= 22.3 && < 22.7",
|
|
391
|
+
"node:test": [">= 16.17 && < 17", ">= 18"],
|
|
392
|
+
timers: true,
|
|
393
|
+
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
394
|
+
"timers/promises": ">= 15",
|
|
395
|
+
"node:timers/promises": ">= 16",
|
|
396
|
+
_tls_common: ">= 0.11.13",
|
|
397
|
+
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
|
398
|
+
_tls_legacy: ">= 0.11.3 && < 10",
|
|
399
|
+
_tls_wrap: ">= 0.11.3",
|
|
400
|
+
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
401
|
+
tls: true,
|
|
402
|
+
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
|
403
|
+
trace_events: ">= 10",
|
|
404
|
+
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
|
405
|
+
tty: true,
|
|
406
|
+
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
|
407
|
+
url: true,
|
|
408
|
+
"node:url": [">= 14.18 && < 15", ">= 16"],
|
|
409
|
+
util: true,
|
|
410
|
+
"node:util": [">= 14.18 && < 15", ">= 16"],
|
|
411
|
+
"util/types": ">= 15.3",
|
|
412
|
+
"node:util/types": ">= 16",
|
|
413
|
+
"v8/tools/arguments": ">= 10 && < 12",
|
|
414
|
+
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
415
|
+
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
416
|
+
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
417
|
+
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
418
|
+
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
419
|
+
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
420
|
+
v8: ">= 1",
|
|
421
|
+
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
|
422
|
+
vm: true,
|
|
423
|
+
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
|
424
|
+
wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
|
|
425
|
+
"node:wasi": [">= 18.17 && < 19", ">= 20"],
|
|
426
|
+
worker_threads: ">= 11.7",
|
|
427
|
+
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
|
428
|
+
zlib: ">= 0.5",
|
|
429
|
+
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
var require_is_core_module = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
434
|
+
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js"(exports, module2) {
|
|
435
|
+
"use strict";
|
|
436
|
+
var hasOwn = require_hasown();
|
|
437
|
+
function specifierIncluded(current, specifier) {
|
|
438
|
+
var nodeParts = current.split(".");
|
|
439
|
+
var parts = specifier.split(" ");
|
|
440
|
+
var op = parts.length > 1 ? parts[0] : "=";
|
|
441
|
+
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
|
|
442
|
+
for (var i = 0; i < 3; ++i) {
|
|
443
|
+
var cur = parseInt(nodeParts[i] || 0, 10);
|
|
444
|
+
var ver = parseInt(versionParts[i] || 0, 10);
|
|
445
|
+
if (cur === ver) {
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
if (op === "<") {
|
|
449
|
+
return cur < ver;
|
|
450
|
+
}
|
|
451
|
+
if (op === ">=") {
|
|
452
|
+
return cur >= ver;
|
|
453
|
+
}
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
return op === ">=";
|
|
457
|
+
}
|
|
458
|
+
function matchesRange(current, range) {
|
|
459
|
+
var specifiers = range.split(/ ?&& ?/);
|
|
460
|
+
if (specifiers.length === 0) {
|
|
461
|
+
return false;
|
|
462
|
+
}
|
|
463
|
+
for (var i = 0; i < specifiers.length; ++i) {
|
|
464
|
+
if (!specifierIncluded(current, specifiers[i])) {
|
|
465
|
+
return false;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
return true;
|
|
469
|
+
}
|
|
470
|
+
function versionIncluded(nodeVersion, specifierValue) {
|
|
471
|
+
if (typeof specifierValue === "boolean") {
|
|
472
|
+
return specifierValue;
|
|
473
|
+
}
|
|
474
|
+
var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion;
|
|
475
|
+
if (typeof current !== "string") {
|
|
476
|
+
throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required");
|
|
477
|
+
}
|
|
478
|
+
if (specifierValue && typeof specifierValue === "object") {
|
|
479
|
+
for (var i = 0; i < specifierValue.length; ++i) {
|
|
480
|
+
if (matchesRange(current, specifierValue[i])) {
|
|
481
|
+
return true;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return false;
|
|
485
|
+
}
|
|
486
|
+
return matchesRange(current, specifierValue);
|
|
487
|
+
}
|
|
488
|
+
var data = require_core();
|
|
489
|
+
module2.exports = function isCore(x, nodeVersion) {
|
|
490
|
+
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
495
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/async.js"(exports, module2) {
|
|
496
|
+
"use strict";
|
|
497
|
+
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
|
498
|
+
var getHomedir = require_homedir();
|
|
499
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
500
|
+
var caller = require_caller();
|
|
501
|
+
var nodeModulesPaths = require_node_modules_paths();
|
|
502
|
+
var normalizeOptions = require_normalize_options();
|
|
503
|
+
var isCore = require_is_core_module();
|
|
504
|
+
var realpathFS = process.platform !== "win32" && fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath;
|
|
505
|
+
var homedir = getHomedir();
|
|
506
|
+
var defaultPaths = function() {
|
|
507
|
+
return [
|
|
508
|
+
path2.join(homedir, ".node_modules"),
|
|
509
|
+
path2.join(homedir, ".node_libraries")
|
|
510
|
+
];
|
|
511
|
+
};
|
|
512
|
+
var defaultIsFile = function isFile(file, cb) {
|
|
513
|
+
fs.stat(file, function(err, stat) {
|
|
514
|
+
if (!err) {
|
|
515
|
+
return cb(null, stat.isFile() || stat.isFIFO());
|
|
516
|
+
}
|
|
517
|
+
if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
|
|
518
|
+
return cb(err);
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
var defaultIsDir = function isDirectory(dir, cb) {
|
|
522
|
+
fs.stat(dir, function(err, stat) {
|
|
523
|
+
if (!err) {
|
|
524
|
+
return cb(null, stat.isDirectory());
|
|
525
|
+
}
|
|
526
|
+
if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
|
|
527
|
+
return cb(err);
|
|
528
|
+
});
|
|
529
|
+
};
|
|
530
|
+
var defaultRealpath = function realpath(x, cb) {
|
|
531
|
+
realpathFS(x, function(realpathErr, realPath) {
|
|
532
|
+
if (realpathErr && realpathErr.code !== "ENOENT") cb(realpathErr);
|
|
533
|
+
else cb(null, realpathErr ? x : realPath);
|
|
534
|
+
});
|
|
535
|
+
};
|
|
536
|
+
var maybeRealpath = function maybeRealpath2(realpath, x, opts, cb) {
|
|
537
|
+
if (opts && opts.preserveSymlinks === false) {
|
|
538
|
+
realpath(x, cb);
|
|
539
|
+
} else {
|
|
540
|
+
cb(null, x);
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
var defaultReadPackage = function defaultReadPackage2(readFile, pkgfile, cb) {
|
|
544
|
+
readFile(pkgfile, function(readFileErr, body) {
|
|
545
|
+
if (readFileErr) cb(readFileErr);
|
|
546
|
+
else {
|
|
547
|
+
try {
|
|
548
|
+
var pkg = JSON.parse(body);
|
|
549
|
+
cb(null, pkg);
|
|
550
|
+
} catch (jsonErr) {
|
|
551
|
+
cb(null);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
};
|
|
556
|
+
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
557
|
+
var dirs = nodeModulesPaths(start, opts, x);
|
|
558
|
+
for (var i = 0; i < dirs.length; i++) {
|
|
559
|
+
dirs[i] = path2.join(dirs[i], x);
|
|
560
|
+
}
|
|
561
|
+
return dirs;
|
|
562
|
+
};
|
|
563
|
+
module2.exports = function resolve2(x, options, callback) {
|
|
564
|
+
var cb = callback;
|
|
565
|
+
var opts = options;
|
|
566
|
+
if (typeof options === "function") {
|
|
567
|
+
cb = opts;
|
|
568
|
+
opts = {};
|
|
569
|
+
}
|
|
570
|
+
if (typeof x !== "string") {
|
|
571
|
+
var err = new TypeError("Path must be a string.");
|
|
572
|
+
return process.nextTick(function() {
|
|
573
|
+
cb(err);
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
opts = normalizeOptions(x, opts);
|
|
577
|
+
var isFile = opts.isFile || defaultIsFile;
|
|
578
|
+
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
579
|
+
var readFile = opts.readFile || fs.readFile;
|
|
580
|
+
var realpath = opts.realpath || defaultRealpath;
|
|
581
|
+
var readPackage = opts.readPackage || defaultReadPackage;
|
|
582
|
+
if (opts.readFile && opts.readPackage) {
|
|
583
|
+
var conflictErr = new TypeError("`readFile` and `readPackage` are mutually exclusive.");
|
|
584
|
+
return process.nextTick(function() {
|
|
585
|
+
cb(conflictErr);
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
var packageIterator = opts.packageIterator;
|
|
589
|
+
var extensions = opts.extensions || [".js"];
|
|
590
|
+
var includeCoreModules = opts.includeCoreModules !== false;
|
|
591
|
+
var basedir = opts.basedir || path2.dirname(caller());
|
|
592
|
+
var parent = opts.filename || basedir;
|
|
593
|
+
opts.paths = opts.paths || defaultPaths();
|
|
594
|
+
var absoluteStart = path2.resolve(basedir);
|
|
595
|
+
maybeRealpath(
|
|
596
|
+
realpath,
|
|
597
|
+
absoluteStart,
|
|
598
|
+
opts,
|
|
599
|
+
function(err2, realStart) {
|
|
600
|
+
if (err2) cb(err2);
|
|
601
|
+
else init(realStart);
|
|
602
|
+
}
|
|
603
|
+
);
|
|
604
|
+
var res;
|
|
605
|
+
function init(basedir2) {
|
|
606
|
+
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
607
|
+
res = path2.resolve(basedir2, x);
|
|
608
|
+
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
609
|
+
if (/\/$/.test(x) && res === basedir2) {
|
|
610
|
+
loadAsDirectory(res, opts.package, onfile);
|
|
611
|
+
} else loadAsFile(res, opts.package, onfile);
|
|
612
|
+
} else if (includeCoreModules && isCore(x)) {
|
|
613
|
+
return cb(null, x);
|
|
614
|
+
} else loadNodeModules(x, basedir2, function(err2, n, pkg) {
|
|
615
|
+
if (err2) cb(err2);
|
|
616
|
+
else if (n) {
|
|
617
|
+
return maybeRealpath(realpath, n, opts, function(err3, realN) {
|
|
618
|
+
if (err3) {
|
|
619
|
+
cb(err3);
|
|
620
|
+
} else {
|
|
621
|
+
cb(null, realN, pkg);
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
} else {
|
|
625
|
+
var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
|
|
626
|
+
moduleError.code = "MODULE_NOT_FOUND";
|
|
627
|
+
cb(moduleError);
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
function onfile(err2, m, pkg) {
|
|
632
|
+
if (err2) cb(err2);
|
|
633
|
+
else if (m) cb(null, m, pkg);
|
|
634
|
+
else loadAsDirectory(res, function(err3, d, pkg2) {
|
|
635
|
+
if (err3) cb(err3);
|
|
636
|
+
else if (d) {
|
|
637
|
+
maybeRealpath(realpath, d, opts, function(err4, realD) {
|
|
638
|
+
if (err4) {
|
|
639
|
+
cb(err4);
|
|
640
|
+
} else {
|
|
641
|
+
cb(null, realD, pkg2);
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
} else {
|
|
645
|
+
var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
|
|
646
|
+
moduleError.code = "MODULE_NOT_FOUND";
|
|
647
|
+
cb(moduleError);
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
function loadAsFile(x2, thePackage, callback2) {
|
|
652
|
+
var loadAsFilePackage = thePackage;
|
|
653
|
+
var cb2 = callback2;
|
|
654
|
+
if (typeof loadAsFilePackage === "function") {
|
|
655
|
+
cb2 = loadAsFilePackage;
|
|
656
|
+
loadAsFilePackage = void 0;
|
|
657
|
+
}
|
|
658
|
+
var exts = [""].concat(extensions);
|
|
659
|
+
load(exts, x2, loadAsFilePackage);
|
|
660
|
+
function load(exts2, x3, loadPackage) {
|
|
661
|
+
if (exts2.length === 0) return cb2(null, void 0, loadPackage);
|
|
662
|
+
var file = x3 + exts2[0];
|
|
663
|
+
var pkg = loadPackage;
|
|
664
|
+
if (pkg) onpkg(null, pkg);
|
|
665
|
+
else loadpkg(path2.dirname(file), onpkg);
|
|
666
|
+
function onpkg(err2, pkg_, dir) {
|
|
667
|
+
pkg = pkg_;
|
|
668
|
+
if (err2) return cb2(err2);
|
|
669
|
+
if (dir && pkg && opts.pathFilter) {
|
|
670
|
+
var rfile = path2.relative(dir, file);
|
|
671
|
+
var rel = rfile.slice(0, rfile.length - exts2[0].length);
|
|
672
|
+
var r = opts.pathFilter(pkg, x3, rel);
|
|
673
|
+
if (r) return load(
|
|
674
|
+
[""].concat(extensions.slice()),
|
|
675
|
+
path2.resolve(dir, r),
|
|
676
|
+
pkg
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
isFile(file, onex);
|
|
680
|
+
}
|
|
681
|
+
function onex(err2, ex) {
|
|
682
|
+
if (err2) return cb2(err2);
|
|
683
|
+
if (ex) return cb2(null, file, pkg);
|
|
684
|
+
load(exts2.slice(1), x3, pkg);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
function loadpkg(dir, cb2) {
|
|
689
|
+
if (dir === "" || dir === "/") return cb2(null);
|
|
690
|
+
if (process.platform === "win32" && /^\w:[/\\]*$/.test(dir)) {
|
|
691
|
+
return cb2(null);
|
|
692
|
+
}
|
|
693
|
+
if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb2(null);
|
|
694
|
+
maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
|
|
695
|
+
if (unwrapErr) return loadpkg(path2.dirname(dir), cb2);
|
|
696
|
+
var pkgfile = path2.join(pkgdir, "package.json");
|
|
697
|
+
isFile(pkgfile, function(err2, ex) {
|
|
698
|
+
if (!ex) return loadpkg(path2.dirname(dir), cb2);
|
|
699
|
+
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
700
|
+
if (err3) cb2(err3);
|
|
701
|
+
var pkg = pkgParam;
|
|
702
|
+
if (pkg && opts.packageFilter) {
|
|
703
|
+
pkg = opts.packageFilter(pkg, pkgfile);
|
|
704
|
+
}
|
|
705
|
+
cb2(null, pkg, dir);
|
|
706
|
+
});
|
|
707
|
+
});
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
function loadAsDirectory(x2, loadAsDirectoryPackage, callback2) {
|
|
711
|
+
var cb2 = callback2;
|
|
712
|
+
var fpkg = loadAsDirectoryPackage;
|
|
713
|
+
if (typeof fpkg === "function") {
|
|
714
|
+
cb2 = fpkg;
|
|
715
|
+
fpkg = opts.package;
|
|
716
|
+
}
|
|
717
|
+
maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
|
|
718
|
+
if (unwrapErr) return cb2(unwrapErr);
|
|
719
|
+
var pkgfile = path2.join(pkgdir, "package.json");
|
|
720
|
+
isFile(pkgfile, function(err2, ex) {
|
|
721
|
+
if (err2) return cb2(err2);
|
|
722
|
+
if (!ex) return loadAsFile(path2.join(x2, "index"), fpkg, cb2);
|
|
723
|
+
readPackage(readFile, pkgfile, function(err3, pkgParam) {
|
|
724
|
+
if (err3) return cb2(err3);
|
|
725
|
+
var pkg = pkgParam;
|
|
726
|
+
if (pkg && opts.packageFilter) {
|
|
727
|
+
pkg = opts.packageFilter(pkg, pkgfile);
|
|
728
|
+
}
|
|
729
|
+
if (pkg && pkg.main) {
|
|
730
|
+
if (typeof pkg.main !== "string") {
|
|
731
|
+
var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
|
|
732
|
+
mainError.code = "INVALID_PACKAGE_MAIN";
|
|
733
|
+
return cb2(mainError);
|
|
734
|
+
}
|
|
735
|
+
if (pkg.main === "." || pkg.main === "./") {
|
|
736
|
+
pkg.main = "index";
|
|
737
|
+
}
|
|
738
|
+
loadAsFile(path2.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
|
|
739
|
+
if (err4) return cb2(err4);
|
|
740
|
+
if (m) return cb2(null, m, pkg2);
|
|
741
|
+
if (!pkg2) return loadAsFile(path2.join(x2, "index"), pkg2, cb2);
|
|
742
|
+
var dir = path2.resolve(x2, pkg2.main);
|
|
743
|
+
loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
|
|
744
|
+
if (err5) return cb2(err5);
|
|
745
|
+
if (n) return cb2(null, n, pkg3);
|
|
746
|
+
loadAsFile(path2.join(x2, "index"), pkg3, cb2);
|
|
747
|
+
});
|
|
748
|
+
});
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
loadAsFile(path2.join(x2, "/index"), pkg, cb2);
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
function processDirs(cb2, dirs) {
|
|
757
|
+
if (dirs.length === 0) return cb2(null, void 0);
|
|
758
|
+
var dir = dirs[0];
|
|
759
|
+
isDirectory(path2.dirname(dir), isdir);
|
|
760
|
+
function isdir(err2, isdir2) {
|
|
761
|
+
if (err2) return cb2(err2);
|
|
762
|
+
if (!isdir2) return processDirs(cb2, dirs.slice(1));
|
|
763
|
+
loadAsFile(dir, opts.package, onfile2);
|
|
764
|
+
}
|
|
765
|
+
function onfile2(err2, m, pkg) {
|
|
766
|
+
if (err2) return cb2(err2);
|
|
767
|
+
if (m) return cb2(null, m, pkg);
|
|
768
|
+
loadAsDirectory(dir, opts.package, ondir);
|
|
769
|
+
}
|
|
770
|
+
function ondir(err2, n, pkg) {
|
|
771
|
+
if (err2) return cb2(err2);
|
|
772
|
+
if (n) return cb2(null, n, pkg);
|
|
773
|
+
processDirs(cb2, dirs.slice(1));
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
function loadNodeModules(x2, start, cb2) {
|
|
777
|
+
var thunk = function() {
|
|
778
|
+
return getPackageCandidates(x2, start, opts);
|
|
779
|
+
};
|
|
780
|
+
processDirs(
|
|
781
|
+
cb2,
|
|
782
|
+
packageIterator ? packageIterator(x2, start, thunk, opts) : thunk()
|
|
783
|
+
);
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
789
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json"(exports, module2) {
|
|
790
|
+
module2.exports = {
|
|
791
|
+
assert: true,
|
|
792
|
+
"node:assert": [">= 14.18 && < 15", ">= 16"],
|
|
793
|
+
"assert/strict": ">= 15",
|
|
794
|
+
"node:assert/strict": ">= 16",
|
|
795
|
+
async_hooks: ">= 8",
|
|
796
|
+
"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
797
|
+
buffer_ieee754: ">= 0.5 && < 0.9.7",
|
|
798
|
+
buffer: true,
|
|
799
|
+
"node:buffer": [">= 14.18 && < 15", ">= 16"],
|
|
800
|
+
child_process: true,
|
|
801
|
+
"node:child_process": [">= 14.18 && < 15", ">= 16"],
|
|
802
|
+
cluster: ">= 0.5",
|
|
803
|
+
"node:cluster": [">= 14.18 && < 15", ">= 16"],
|
|
804
|
+
console: true,
|
|
805
|
+
"node:console": [">= 14.18 && < 15", ">= 16"],
|
|
806
|
+
constants: true,
|
|
807
|
+
"node:constants": [">= 14.18 && < 15", ">= 16"],
|
|
808
|
+
crypto: true,
|
|
809
|
+
"node:crypto": [">= 14.18 && < 15", ">= 16"],
|
|
810
|
+
_debug_agent: ">= 1 && < 8",
|
|
811
|
+
_debugger: "< 8",
|
|
812
|
+
dgram: true,
|
|
813
|
+
"node:dgram": [">= 14.18 && < 15", ">= 16"],
|
|
814
|
+
diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
|
|
815
|
+
"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
|
|
816
|
+
dns: true,
|
|
817
|
+
"node:dns": [">= 14.18 && < 15", ">= 16"],
|
|
818
|
+
"dns/promises": ">= 15",
|
|
819
|
+
"node:dns/promises": ">= 16",
|
|
820
|
+
domain: ">= 0.7.12",
|
|
821
|
+
"node:domain": [">= 14.18 && < 15", ">= 16"],
|
|
822
|
+
events: true,
|
|
823
|
+
"node:events": [">= 14.18 && < 15", ">= 16"],
|
|
824
|
+
freelist: "< 6",
|
|
825
|
+
fs: true,
|
|
826
|
+
"node:fs": [">= 14.18 && < 15", ">= 16"],
|
|
827
|
+
"fs/promises": [">= 10 && < 10.1", ">= 14"],
|
|
828
|
+
"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
|
|
829
|
+
_http_agent: ">= 0.11.1",
|
|
830
|
+
"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
|
|
831
|
+
_http_client: ">= 0.11.1",
|
|
832
|
+
"node:_http_client": [">= 14.18 && < 15", ">= 16"],
|
|
833
|
+
_http_common: ">= 0.11.1",
|
|
834
|
+
"node:_http_common": [">= 14.18 && < 15", ">= 16"],
|
|
835
|
+
_http_incoming: ">= 0.11.1",
|
|
836
|
+
"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
|
|
837
|
+
_http_outgoing: ">= 0.11.1",
|
|
838
|
+
"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
|
|
839
|
+
_http_server: ">= 0.11.1",
|
|
840
|
+
"node:_http_server": [">= 14.18 && < 15", ">= 16"],
|
|
841
|
+
http: true,
|
|
842
|
+
"node:http": [">= 14.18 && < 15", ">= 16"],
|
|
843
|
+
http2: ">= 8.8",
|
|
844
|
+
"node:http2": [">= 14.18 && < 15", ">= 16"],
|
|
845
|
+
https: true,
|
|
846
|
+
"node:https": [">= 14.18 && < 15", ">= 16"],
|
|
847
|
+
inspector: ">= 8",
|
|
848
|
+
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
|
849
|
+
"inspector/promises": [">= 19"],
|
|
850
|
+
"node:inspector/promises": [">= 19"],
|
|
851
|
+
_linklist: "< 8",
|
|
852
|
+
module: true,
|
|
853
|
+
"node:module": [">= 14.18 && < 15", ">= 16"],
|
|
854
|
+
net: true,
|
|
855
|
+
"node:net": [">= 14.18 && < 15", ">= 16"],
|
|
856
|
+
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
|
|
857
|
+
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
|
|
858
|
+
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
|
|
859
|
+
os: true,
|
|
860
|
+
"node:os": [">= 14.18 && < 15", ">= 16"],
|
|
861
|
+
path: true,
|
|
862
|
+
"node:path": [">= 14.18 && < 15", ">= 16"],
|
|
863
|
+
"path/posix": ">= 15.3",
|
|
864
|
+
"node:path/posix": ">= 16",
|
|
865
|
+
"path/win32": ">= 15.3",
|
|
866
|
+
"node:path/win32": ">= 16",
|
|
867
|
+
perf_hooks: ">= 8.5",
|
|
868
|
+
"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
|
|
869
|
+
process: ">= 1",
|
|
870
|
+
"node:process": [">= 14.18 && < 15", ">= 16"],
|
|
871
|
+
punycode: ">= 0.5",
|
|
872
|
+
"node:punycode": [">= 14.18 && < 15", ">= 16"],
|
|
873
|
+
querystring: true,
|
|
874
|
+
"node:querystring": [">= 14.18 && < 15", ">= 16"],
|
|
875
|
+
readline: true,
|
|
876
|
+
"node:readline": [">= 14.18 && < 15", ">= 16"],
|
|
877
|
+
"readline/promises": ">= 17",
|
|
878
|
+
"node:readline/promises": ">= 17",
|
|
879
|
+
repl: true,
|
|
880
|
+
"node:repl": [">= 14.18 && < 15", ">= 16"],
|
|
881
|
+
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
|
882
|
+
smalloc: ">= 0.11.5 && < 3",
|
|
883
|
+
"node:sqlite": ">= 23.4",
|
|
884
|
+
_stream_duplex: ">= 0.9.4",
|
|
885
|
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
886
|
+
_stream_transform: ">= 0.9.4",
|
|
887
|
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
|
888
|
+
_stream_wrap: ">= 1.4.1",
|
|
889
|
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
890
|
+
_stream_passthrough: ">= 0.9.4",
|
|
891
|
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
|
892
|
+
_stream_readable: ">= 0.9.4",
|
|
893
|
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
|
894
|
+
_stream_writable: ">= 0.9.4",
|
|
895
|
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
|
896
|
+
stream: true,
|
|
897
|
+
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
|
898
|
+
"stream/consumers": ">= 16.7",
|
|
899
|
+
"node:stream/consumers": ">= 16.7",
|
|
900
|
+
"stream/promises": ">= 15",
|
|
901
|
+
"node:stream/promises": ">= 16",
|
|
902
|
+
"stream/web": ">= 16.5",
|
|
903
|
+
"node:stream/web": ">= 16.5",
|
|
904
|
+
string_decoder: true,
|
|
905
|
+
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
906
|
+
sys: [">= 0.4 && < 0.7", ">= 0.8"],
|
|
907
|
+
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
908
|
+
"test/reporters": ">= 19.9 && < 20.2",
|
|
909
|
+
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
|
910
|
+
"test/mock_loader": ">= 22.3 && < 22.7",
|
|
911
|
+
"node:test/mock_loader": ">= 22.3 && < 22.7",
|
|
912
|
+
"node:test": [">= 16.17 && < 17", ">= 18"],
|
|
913
|
+
timers: true,
|
|
914
|
+
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
915
|
+
"timers/promises": ">= 15",
|
|
916
|
+
"node:timers/promises": ">= 16",
|
|
917
|
+
_tls_common: ">= 0.11.13",
|
|
918
|
+
"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
|
|
919
|
+
_tls_legacy: ">= 0.11.3 && < 10",
|
|
920
|
+
_tls_wrap: ">= 0.11.3",
|
|
921
|
+
"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
922
|
+
tls: true,
|
|
923
|
+
"node:tls": [">= 14.18 && < 15", ">= 16"],
|
|
924
|
+
trace_events: ">= 10",
|
|
925
|
+
"node:trace_events": [">= 14.18 && < 15", ">= 16"],
|
|
926
|
+
tty: true,
|
|
927
|
+
"node:tty": [">= 14.18 && < 15", ">= 16"],
|
|
928
|
+
url: true,
|
|
929
|
+
"node:url": [">= 14.18 && < 15", ">= 16"],
|
|
930
|
+
util: true,
|
|
931
|
+
"node:util": [">= 14.18 && < 15", ">= 16"],
|
|
932
|
+
"util/types": ">= 15.3",
|
|
933
|
+
"node:util/types": ">= 16",
|
|
934
|
+
"v8/tools/arguments": ">= 10 && < 12",
|
|
935
|
+
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
936
|
+
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
937
|
+
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
938
|
+
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
939
|
+
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
940
|
+
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
|
|
941
|
+
v8: ">= 1",
|
|
942
|
+
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
|
943
|
+
vm: true,
|
|
944
|
+
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
|
945
|
+
wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
|
|
946
|
+
"node:wasi": [">= 18.17 && < 19", ">= 20"],
|
|
947
|
+
worker_threads: ">= 11.7",
|
|
948
|
+
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
|
949
|
+
zlib: ">= 0.5",
|
|
950
|
+
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
var require_core3 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
955
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js"(exports, module2) {
|
|
956
|
+
"use strict";
|
|
957
|
+
var isCoreModule = require_is_core_module();
|
|
958
|
+
var data = require_core2();
|
|
959
|
+
var core = {};
|
|
960
|
+
for (mod in data) {
|
|
961
|
+
if (Object.prototype.hasOwnProperty.call(data, mod)) {
|
|
962
|
+
core[mod] = isCoreModule(mod);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
var mod;
|
|
966
|
+
module2.exports = core;
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
var require_is_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
970
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/is-core.js"(exports, module2) {
|
|
971
|
+
"use strict";
|
|
972
|
+
var isCoreModule = require_is_core_module();
|
|
973
|
+
module2.exports = function isCore(x) {
|
|
974
|
+
return isCoreModule(x);
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
var require_sync = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
979
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/sync.js"(exports, module2) {
|
|
980
|
+
"use strict";
|
|
981
|
+
var isCore = require_is_core_module();
|
|
982
|
+
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
|
983
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
984
|
+
var getHomedir = require_homedir();
|
|
985
|
+
var caller = require_caller();
|
|
986
|
+
var nodeModulesPaths = require_node_modules_paths();
|
|
987
|
+
var normalizeOptions = require_normalize_options();
|
|
988
|
+
var realpathFS = process.platform !== "win32" && fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync;
|
|
989
|
+
var homedir = getHomedir();
|
|
990
|
+
var defaultPaths = function() {
|
|
991
|
+
return [
|
|
992
|
+
path2.join(homedir, ".node_modules"),
|
|
993
|
+
path2.join(homedir, ".node_libraries")
|
|
994
|
+
];
|
|
995
|
+
};
|
|
996
|
+
var defaultIsFile = function isFile(file) {
|
|
997
|
+
try {
|
|
998
|
+
var stat = fs.statSync(file, { throwIfNoEntry: false });
|
|
999
|
+
} catch (e) {
|
|
1000
|
+
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
1001
|
+
throw e;
|
|
1002
|
+
}
|
|
1003
|
+
return !!stat && (stat.isFile() || stat.isFIFO());
|
|
1004
|
+
};
|
|
1005
|
+
var defaultIsDir = function isDirectory(dir) {
|
|
1006
|
+
try {
|
|
1007
|
+
var stat = fs.statSync(dir, { throwIfNoEntry: false });
|
|
1008
|
+
} catch (e) {
|
|
1009
|
+
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
1010
|
+
throw e;
|
|
1011
|
+
}
|
|
1012
|
+
return !!stat && stat.isDirectory();
|
|
1013
|
+
};
|
|
1014
|
+
var defaultRealpathSync = function realpathSync(x) {
|
|
1015
|
+
try {
|
|
1016
|
+
return realpathFS(x);
|
|
1017
|
+
} catch (realpathErr) {
|
|
1018
|
+
if (realpathErr.code !== "ENOENT") {
|
|
1019
|
+
throw realpathErr;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
return x;
|
|
1023
|
+
};
|
|
1024
|
+
var maybeRealpathSync = function maybeRealpathSync2(realpathSync, x, opts) {
|
|
1025
|
+
if (opts && opts.preserveSymlinks === false) {
|
|
1026
|
+
return realpathSync(x);
|
|
1027
|
+
}
|
|
1028
|
+
return x;
|
|
1029
|
+
};
|
|
1030
|
+
var defaultReadPackageSync = function defaultReadPackageSync2(readFileSync, pkgfile) {
|
|
1031
|
+
var body = readFileSync(pkgfile);
|
|
1032
|
+
try {
|
|
1033
|
+
var pkg = JSON.parse(body);
|
|
1034
|
+
return pkg;
|
|
1035
|
+
} catch (jsonErr) {
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
|
|
1039
|
+
var dirs = nodeModulesPaths(start, opts, x);
|
|
1040
|
+
for (var i = 0; i < dirs.length; i++) {
|
|
1041
|
+
dirs[i] = path2.join(dirs[i], x);
|
|
1042
|
+
}
|
|
1043
|
+
return dirs;
|
|
1044
|
+
};
|
|
1045
|
+
module2.exports = function resolveSync(x, options) {
|
|
1046
|
+
if (typeof x !== "string") {
|
|
1047
|
+
throw new TypeError("Path must be a string.");
|
|
1048
|
+
}
|
|
1049
|
+
var opts = normalizeOptions(x, options);
|
|
1050
|
+
var isFile = opts.isFile || defaultIsFile;
|
|
1051
|
+
var readFileSync = opts.readFileSync || fs.readFileSync;
|
|
1052
|
+
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
1053
|
+
var realpathSync = opts.realpathSync || defaultRealpathSync;
|
|
1054
|
+
var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
|
|
1055
|
+
if (opts.readFileSync && opts.readPackageSync) {
|
|
1056
|
+
throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
|
|
1057
|
+
}
|
|
1058
|
+
var packageIterator = opts.packageIterator;
|
|
1059
|
+
var extensions = opts.extensions || [".js"];
|
|
1060
|
+
var includeCoreModules = opts.includeCoreModules !== false;
|
|
1061
|
+
var basedir = opts.basedir || path2.dirname(caller());
|
|
1062
|
+
var parent = opts.filename || basedir;
|
|
1063
|
+
opts.paths = opts.paths || defaultPaths();
|
|
1064
|
+
var absoluteStart = maybeRealpathSync(realpathSync, path2.resolve(basedir), opts);
|
|
1065
|
+
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
|
|
1066
|
+
var res = path2.resolve(absoluteStart, x);
|
|
1067
|
+
if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
|
|
1068
|
+
var m = loadAsFileSync(res) || loadAsDirectorySync(res);
|
|
1069
|
+
if (m) return maybeRealpathSync(realpathSync, m, opts);
|
|
1070
|
+
} else if (includeCoreModules && isCore(x)) {
|
|
1071
|
+
return x;
|
|
1072
|
+
} else {
|
|
1073
|
+
var n = loadNodeModulesSync(x, absoluteStart);
|
|
1074
|
+
if (n) return maybeRealpathSync(realpathSync, n, opts);
|
|
1075
|
+
}
|
|
1076
|
+
var err = new Error("Cannot find module '" + x + "' from '" + parent + "'");
|
|
1077
|
+
err.code = "MODULE_NOT_FOUND";
|
|
1078
|
+
throw err;
|
|
1079
|
+
function loadAsFileSync(x2) {
|
|
1080
|
+
var pkg = loadpkg(path2.dirname(x2));
|
|
1081
|
+
if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
|
|
1082
|
+
var rfile = path2.relative(pkg.dir, x2);
|
|
1083
|
+
var r = opts.pathFilter(pkg.pkg, x2, rfile);
|
|
1084
|
+
if (r) {
|
|
1085
|
+
x2 = path2.resolve(pkg.dir, r);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
if (isFile(x2)) {
|
|
1089
|
+
return x2;
|
|
1090
|
+
}
|
|
1091
|
+
for (var i = 0; i < extensions.length; i++) {
|
|
1092
|
+
var file = x2 + extensions[i];
|
|
1093
|
+
if (isFile(file)) {
|
|
1094
|
+
return file;
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
function loadpkg(dir) {
|
|
1099
|
+
if (dir === "" || dir === "/") return;
|
|
1100
|
+
if (process.platform === "win32" && /^\w:[/\\]*$/.test(dir)) {
|
|
1101
|
+
return;
|
|
1102
|
+
}
|
|
1103
|
+
if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
|
|
1104
|
+
var pkgfile = path2.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
|
|
1105
|
+
if (!isFile(pkgfile)) {
|
|
1106
|
+
return loadpkg(path2.dirname(dir));
|
|
1107
|
+
}
|
|
1108
|
+
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
1109
|
+
if (pkg && opts.packageFilter) {
|
|
1110
|
+
pkg = opts.packageFilter(
|
|
1111
|
+
pkg,
|
|
1112
|
+
/*pkgfile,*/
|
|
1113
|
+
dir
|
|
1114
|
+
);
|
|
1115
|
+
}
|
|
1116
|
+
return { pkg, dir };
|
|
1117
|
+
}
|
|
1118
|
+
function loadAsDirectorySync(x2) {
|
|
1119
|
+
var pkgfile = path2.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
|
|
1120
|
+
if (isFile(pkgfile)) {
|
|
1121
|
+
try {
|
|
1122
|
+
var pkg = readPackageSync(readFileSync, pkgfile);
|
|
1123
|
+
} catch (e) {
|
|
1124
|
+
}
|
|
1125
|
+
if (pkg && opts.packageFilter) {
|
|
1126
|
+
pkg = opts.packageFilter(
|
|
1127
|
+
pkg,
|
|
1128
|
+
/*pkgfile,*/
|
|
1129
|
+
x2
|
|
1130
|
+
);
|
|
1131
|
+
}
|
|
1132
|
+
if (pkg && pkg.main) {
|
|
1133
|
+
if (typeof pkg.main !== "string") {
|
|
1134
|
+
var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
|
|
1135
|
+
mainError.code = "INVALID_PACKAGE_MAIN";
|
|
1136
|
+
throw mainError;
|
|
1137
|
+
}
|
|
1138
|
+
if (pkg.main === "." || pkg.main === "./") {
|
|
1139
|
+
pkg.main = "index";
|
|
1140
|
+
}
|
|
1141
|
+
try {
|
|
1142
|
+
var m2 = loadAsFileSync(path2.resolve(x2, pkg.main));
|
|
1143
|
+
if (m2) return m2;
|
|
1144
|
+
var n2 = loadAsDirectorySync(path2.resolve(x2, pkg.main));
|
|
1145
|
+
if (n2) return n2;
|
|
1146
|
+
} catch (e) {
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
return loadAsFileSync(path2.join(x2, "/index"));
|
|
1151
|
+
}
|
|
1152
|
+
function loadNodeModulesSync(x2, start) {
|
|
1153
|
+
var thunk = function() {
|
|
1154
|
+
return getPackageCandidates(x2, start, opts);
|
|
1155
|
+
};
|
|
1156
|
+
var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
|
|
1157
|
+
for (var i = 0; i < dirs.length; i++) {
|
|
1158
|
+
var dir = dirs[i];
|
|
1159
|
+
if (isDirectory(path2.dirname(dir))) {
|
|
1160
|
+
var m2 = loadAsFileSync(dir);
|
|
1161
|
+
if (m2) return m2;
|
|
1162
|
+
var n2 = loadAsDirectorySync(dir);
|
|
1163
|
+
if (n2) return n2;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1170
|
+
var require_resolve = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1171
|
+
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/index.js"(exports, module2) {
|
|
1172
|
+
"use strict";
|
|
1173
|
+
var async = require_async();
|
|
1174
|
+
async.core = require_core3();
|
|
1175
|
+
async.isCore = require_is_core();
|
|
1176
|
+
async.sync = require_sync();
|
|
1177
|
+
module2.exports = async;
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
var import_resolve = (0, import_chunk_4VNS5WPM.__toESM)(require_resolve());
|
|
1181
|
+
async function resolveOrUndefined(id, options) {
|
|
1182
|
+
const _options = { preserveSymlinks: false, ...options };
|
|
1183
|
+
return new Promise((res) => {
|
|
1184
|
+
(0, import_resolve.default)(id, _options, (e, v) => {
|
|
1185
|
+
if (e) res(void 0);
|
|
1186
|
+
res(v);
|
|
1187
|
+
});
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
async function resolvePkg(id, options) {
|
|
1191
|
+
const resolvedPath = await resolveOrUndefined(`${id}/package.json`, options);
|
|
1192
|
+
return resolvedPath && import_path.default.dirname(resolvedPath);
|
|
1193
|
+
}
|