@shad0wz7/nestjs-pdf 2.5.5 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -2570
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2574
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -36
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import { relative, resolve } from "node:path";
|
|
3
2
|
import { Inject, Injectable, Logger, Module, Optional } from "@nestjs/common";
|
|
4
3
|
import { PDFArray, PDFDict, PDFDocument, PDFName, PDFNumber, PDFString } from "pdf-lib";
|
|
@@ -14,10 +13,6 @@ import mjml from "mjml";
|
|
|
14
13
|
import mustache from "mustache";
|
|
15
14
|
import nunjucks from "nunjucks";
|
|
16
15
|
import { compile } from "pug";
|
|
17
|
-
//#region \0rolldown/runtime.js
|
|
18
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
19
|
-
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
20
|
-
//#endregion
|
|
21
16
|
//#region src/helpers/getRelativePath.helper.ts
|
|
22
17
|
/**
|
|
23
18
|
* Get the relative path to a value from the module directory.
|
|
@@ -1065,2574 +1060,7 @@ let NestjsPdfService = class NestjsPdfService {
|
|
|
1065
1060
|
};
|
|
1066
1061
|
NestjsPdfService = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof PuppeteerService === "undefined" ? Object : PuppeteerService])], NestjsPdfService);
|
|
1067
1062
|
//#endregion
|
|
1068
|
-
//#region node_modules/.pnpm/dotenv@17.4.1/node_modules/dotenv/lib/main.js
|
|
1069
|
-
var require_main$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1070
|
-
const fs$1 = __require("fs");
|
|
1071
|
-
const path = __require("path");
|
|
1072
|
-
const os = __require("os");
|
|
1073
|
-
const crypto = __require("crypto");
|
|
1074
|
-
const TIPS = [
|
|
1075
|
-
"◈ encrypted .env [www.dotenvx.com]",
|
|
1076
|
-
"◈ secrets for agents [www.dotenvx.com]",
|
|
1077
|
-
"⌁ auth for agents [www.vestauth.com]",
|
|
1078
|
-
"⌘ custom filepath { path: '/custom/path/.env' }",
|
|
1079
|
-
"⌘ enable debugging { debug: true }",
|
|
1080
|
-
"⌘ override existing { override: true }",
|
|
1081
|
-
"⌘ suppress logs { quiet: true }",
|
|
1082
|
-
"⌘ multiple files { path: ['.env.local', '.env'] }"
|
|
1083
|
-
];
|
|
1084
|
-
function _getRandomTip() {
|
|
1085
|
-
return TIPS[Math.floor(Math.random() * TIPS.length)];
|
|
1086
|
-
}
|
|
1087
|
-
function parseBoolean(value) {
|
|
1088
|
-
if (typeof value === "string") return ![
|
|
1089
|
-
"false",
|
|
1090
|
-
"0",
|
|
1091
|
-
"no",
|
|
1092
|
-
"off",
|
|
1093
|
-
""
|
|
1094
|
-
].includes(value.toLowerCase());
|
|
1095
|
-
return Boolean(value);
|
|
1096
|
-
}
|
|
1097
|
-
function supportsAnsi() {
|
|
1098
|
-
return process.stdout.isTTY;
|
|
1099
|
-
}
|
|
1100
|
-
function dim(text) {
|
|
1101
|
-
return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text;
|
|
1102
|
-
}
|
|
1103
|
-
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
1104
|
-
function parse(src) {
|
|
1105
|
-
const obj = {};
|
|
1106
|
-
let lines = src.toString();
|
|
1107
|
-
lines = lines.replace(/\r\n?/gm, "\n");
|
|
1108
|
-
let match;
|
|
1109
|
-
while ((match = LINE.exec(lines)) != null) {
|
|
1110
|
-
const key = match[1];
|
|
1111
|
-
let value = match[2] || "";
|
|
1112
|
-
value = value.trim();
|
|
1113
|
-
const maybeQuote = value[0];
|
|
1114
|
-
value = value.replace(/^(['"`])([\s\S]*)\1$/gm, "$2");
|
|
1115
|
-
if (maybeQuote === "\"") {
|
|
1116
|
-
value = value.replace(/\\n/g, "\n");
|
|
1117
|
-
value = value.replace(/\\r/g, "\r");
|
|
1118
|
-
}
|
|
1119
|
-
obj[key] = value;
|
|
1120
|
-
}
|
|
1121
|
-
return obj;
|
|
1122
|
-
}
|
|
1123
|
-
function _parseVault(options) {
|
|
1124
|
-
options = options || {};
|
|
1125
|
-
const vaultPath = _vaultPath(options);
|
|
1126
|
-
options.path = vaultPath;
|
|
1127
|
-
const result = DotenvModule.configDotenv(options);
|
|
1128
|
-
if (!result.parsed) {
|
|
1129
|
-
const err = /* @__PURE__ */ new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
1130
|
-
err.code = "MISSING_DATA";
|
|
1131
|
-
throw err;
|
|
1132
|
-
}
|
|
1133
|
-
const keys = _dotenvKey(options).split(",");
|
|
1134
|
-
const length = keys.length;
|
|
1135
|
-
let decrypted;
|
|
1136
|
-
for (let i = 0; i < length; i++) try {
|
|
1137
|
-
const attrs = _instructions(result, keys[i].trim());
|
|
1138
|
-
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
1139
|
-
break;
|
|
1140
|
-
} catch (error) {
|
|
1141
|
-
if (i + 1 >= length) throw error;
|
|
1142
|
-
}
|
|
1143
|
-
return DotenvModule.parse(decrypted);
|
|
1144
|
-
}
|
|
1145
|
-
function _warn(message) {
|
|
1146
|
-
console.error(`⚠ ${message}`);
|
|
1147
|
-
}
|
|
1148
|
-
function _debug(message) {
|
|
1149
|
-
console.log(`┆ ${message}`);
|
|
1150
|
-
}
|
|
1151
|
-
function _log(message) {
|
|
1152
|
-
console.log(`◇ ${message}`);
|
|
1153
|
-
}
|
|
1154
|
-
function _dotenvKey(options) {
|
|
1155
|
-
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) return options.DOTENV_KEY;
|
|
1156
|
-
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) return process.env.DOTENV_KEY;
|
|
1157
|
-
return "";
|
|
1158
|
-
}
|
|
1159
|
-
function _instructions(result, dotenvKey) {
|
|
1160
|
-
let uri;
|
|
1161
|
-
try {
|
|
1162
|
-
uri = new URL(dotenvKey);
|
|
1163
|
-
} catch (error) {
|
|
1164
|
-
if (error.code === "ERR_INVALID_URL") {
|
|
1165
|
-
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
1166
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
1167
|
-
throw err;
|
|
1168
|
-
}
|
|
1169
|
-
throw error;
|
|
1170
|
-
}
|
|
1171
|
-
const key = uri.password;
|
|
1172
|
-
if (!key) {
|
|
1173
|
-
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
1174
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
1175
|
-
throw err;
|
|
1176
|
-
}
|
|
1177
|
-
const environment = uri.searchParams.get("environment");
|
|
1178
|
-
if (!environment) {
|
|
1179
|
-
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
1180
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
1181
|
-
throw err;
|
|
1182
|
-
}
|
|
1183
|
-
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
1184
|
-
const ciphertext = result.parsed[environmentKey];
|
|
1185
|
-
if (!ciphertext) {
|
|
1186
|
-
const err = /* @__PURE__ */ new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
1187
|
-
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
1188
|
-
throw err;
|
|
1189
|
-
}
|
|
1190
|
-
return {
|
|
1191
|
-
ciphertext,
|
|
1192
|
-
key
|
|
1193
|
-
};
|
|
1194
|
-
}
|
|
1195
|
-
function _vaultPath(options) {
|
|
1196
|
-
let possibleVaultPath = null;
|
|
1197
|
-
if (options && options.path && options.path.length > 0) {
|
|
1198
|
-
if (Array.isArray(options.path)) {
|
|
1199
|
-
for (const filepath of options.path) if (fs$1.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
1200
|
-
} else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
1201
|
-
} else possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
|
|
1202
|
-
if (fs$1.existsSync(possibleVaultPath)) return possibleVaultPath;
|
|
1203
|
-
return null;
|
|
1204
|
-
}
|
|
1205
|
-
function _resolveHome(envPath) {
|
|
1206
|
-
return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
1207
|
-
}
|
|
1208
|
-
function _configVault(options) {
|
|
1209
|
-
const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
1210
|
-
const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || options && options.quiet);
|
|
1211
|
-
if (debug || !quiet) _log("loading env from encrypted .env.vault");
|
|
1212
|
-
const parsed = DotenvModule._parseVault(options);
|
|
1213
|
-
let processEnv = process.env;
|
|
1214
|
-
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
1215
|
-
DotenvModule.populate(processEnv, parsed, options);
|
|
1216
|
-
return { parsed };
|
|
1217
|
-
}
|
|
1218
|
-
function configDotenv(options) {
|
|
1219
|
-
const dotenvPath = path.resolve(process.cwd(), ".env");
|
|
1220
|
-
let encoding = "utf8";
|
|
1221
|
-
let processEnv = process.env;
|
|
1222
|
-
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
1223
|
-
let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
1224
|
-
let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || options && options.quiet);
|
|
1225
|
-
if (options && options.encoding) encoding = options.encoding;
|
|
1226
|
-
else if (debug) _debug("no encoding is specified (UTF-8 is used by default)");
|
|
1227
|
-
let optionPaths = [dotenvPath];
|
|
1228
|
-
if (options && options.path) {
|
|
1229
|
-
if (!Array.isArray(options.path)) optionPaths = [_resolveHome(options.path)];
|
|
1230
|
-
else {
|
|
1231
|
-
optionPaths = [];
|
|
1232
|
-
for (const filepath of options.path) optionPaths.push(_resolveHome(filepath));
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
let lastError;
|
|
1236
|
-
const parsedAll = {};
|
|
1237
|
-
for (const path of optionPaths) try {
|
|
1238
|
-
const parsed = DotenvModule.parse(fs$1.readFileSync(path, { encoding }));
|
|
1239
|
-
DotenvModule.populate(parsedAll, parsed, options);
|
|
1240
|
-
} catch (e) {
|
|
1241
|
-
if (debug) _debug(`failed to load ${path} ${e.message}`);
|
|
1242
|
-
lastError = e;
|
|
1243
|
-
}
|
|
1244
|
-
const populated = DotenvModule.populate(processEnv, parsedAll, options);
|
|
1245
|
-
debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug);
|
|
1246
|
-
quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet);
|
|
1247
|
-
if (debug || !quiet) {
|
|
1248
|
-
const keysCount = Object.keys(populated).length;
|
|
1249
|
-
const shortPaths = [];
|
|
1250
|
-
for (const filePath of optionPaths) try {
|
|
1251
|
-
const relative = path.relative(process.cwd(), filePath);
|
|
1252
|
-
shortPaths.push(relative);
|
|
1253
|
-
} catch (e) {
|
|
1254
|
-
if (debug) _debug(`failed to load ${filePath} ${e.message}`);
|
|
1255
|
-
lastError = e;
|
|
1256
|
-
}
|
|
1257
|
-
_log(`injected env (${keysCount}) from ${shortPaths.join(",")} ${dim(`// tip: ${_getRandomTip()}`)}`);
|
|
1258
|
-
}
|
|
1259
|
-
if (lastError) return {
|
|
1260
|
-
parsed: parsedAll,
|
|
1261
|
-
error: lastError
|
|
1262
|
-
};
|
|
1263
|
-
else return { parsed: parsedAll };
|
|
1264
|
-
}
|
|
1265
|
-
function config(options) {
|
|
1266
|
-
if (_dotenvKey(options).length === 0) return DotenvModule.configDotenv(options);
|
|
1267
|
-
const vaultPath = _vaultPath(options);
|
|
1268
|
-
if (!vaultPath) {
|
|
1269
|
-
_warn(`you set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}`);
|
|
1270
|
-
return DotenvModule.configDotenv(options);
|
|
1271
|
-
}
|
|
1272
|
-
return DotenvModule._configVault(options);
|
|
1273
|
-
}
|
|
1274
|
-
function decrypt(encrypted, keyStr) {
|
|
1275
|
-
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
1276
|
-
let ciphertext = Buffer.from(encrypted, "base64");
|
|
1277
|
-
const nonce = ciphertext.subarray(0, 12);
|
|
1278
|
-
const authTag = ciphertext.subarray(-16);
|
|
1279
|
-
ciphertext = ciphertext.subarray(12, -16);
|
|
1280
|
-
try {
|
|
1281
|
-
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
1282
|
-
aesgcm.setAuthTag(authTag);
|
|
1283
|
-
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
1284
|
-
} catch (error) {
|
|
1285
|
-
const isRange = error instanceof RangeError;
|
|
1286
|
-
const invalidKeyLength = error.message === "Invalid key length";
|
|
1287
|
-
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
1288
|
-
if (isRange || invalidKeyLength) {
|
|
1289
|
-
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
1290
|
-
err.code = "INVALID_DOTENV_KEY";
|
|
1291
|
-
throw err;
|
|
1292
|
-
} else if (decryptionFailed) {
|
|
1293
|
-
const err = /* @__PURE__ */ new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
1294
|
-
err.code = "DECRYPTION_FAILED";
|
|
1295
|
-
throw err;
|
|
1296
|
-
} else throw error;
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
function populate(processEnv, parsed, options = {}) {
|
|
1300
|
-
const debug = Boolean(options && options.debug);
|
|
1301
|
-
const override = Boolean(options && options.override);
|
|
1302
|
-
const populated = {};
|
|
1303
|
-
if (typeof parsed !== "object") {
|
|
1304
|
-
const err = /* @__PURE__ */ new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
1305
|
-
err.code = "OBJECT_REQUIRED";
|
|
1306
|
-
throw err;
|
|
1307
|
-
}
|
|
1308
|
-
for (const key of Object.keys(parsed)) if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
1309
|
-
if (override === true) {
|
|
1310
|
-
processEnv[key] = parsed[key];
|
|
1311
|
-
populated[key] = parsed[key];
|
|
1312
|
-
}
|
|
1313
|
-
if (debug) {
|
|
1314
|
-
if (override === true) _debug(`"${key}" is already defined and WAS overwritten`);
|
|
1315
|
-
else _debug(`"${key}" is already defined and was NOT overwritten`);
|
|
1316
|
-
}
|
|
1317
|
-
} else {
|
|
1318
|
-
processEnv[key] = parsed[key];
|
|
1319
|
-
populated[key] = parsed[key];
|
|
1320
|
-
}
|
|
1321
|
-
return populated;
|
|
1322
|
-
}
|
|
1323
|
-
const DotenvModule = {
|
|
1324
|
-
configDotenv,
|
|
1325
|
-
_configVault,
|
|
1326
|
-
_parseVault,
|
|
1327
|
-
config,
|
|
1328
|
-
decrypt,
|
|
1329
|
-
parse,
|
|
1330
|
-
populate
|
|
1331
|
-
};
|
|
1332
|
-
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
1333
|
-
module.exports._configVault = DotenvModule._configVault;
|
|
1334
|
-
module.exports._parseVault = DotenvModule._parseVault;
|
|
1335
|
-
module.exports.config = DotenvModule.config;
|
|
1336
|
-
module.exports.decrypt = DotenvModule.decrypt;
|
|
1337
|
-
module.exports.parse = DotenvModule.parse;
|
|
1338
|
-
module.exports.populate = DotenvModule.populate;
|
|
1339
|
-
module.exports = DotenvModule;
|
|
1340
|
-
}));
|
|
1341
|
-
//#endregion
|
|
1342
|
-
//#region node_modules/.pnpm/dotenv-expand@12.0.3/node_modules/dotenv-expand/lib/main.js
|
|
1343
|
-
var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1344
|
-
function _resolveEscapeSequences(value) {
|
|
1345
|
-
return value.replace(/\\\$/g, "$");
|
|
1346
|
-
}
|
|
1347
|
-
function expandValue(value, processEnv, runningParsed) {
|
|
1348
|
-
const env = {
|
|
1349
|
-
...runningParsed,
|
|
1350
|
-
...processEnv
|
|
1351
|
-
};
|
|
1352
|
-
const regex = /(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
1353
|
-
let result = value;
|
|
1354
|
-
let match;
|
|
1355
|
-
const seen = /* @__PURE__ */ new Set();
|
|
1356
|
-
while ((match = regex.exec(result)) !== null) {
|
|
1357
|
-
seen.add(result);
|
|
1358
|
-
const [template, bracedExpression, unbracedExpression] = match;
|
|
1359
|
-
const expression = bracedExpression || unbracedExpression;
|
|
1360
|
-
const opMatch = expression.match(/(:\+|\+|:-|-)/);
|
|
1361
|
-
const splitter = opMatch ? opMatch[0] : null;
|
|
1362
|
-
const r = expression.split(splitter);
|
|
1363
|
-
let defaultValue;
|
|
1364
|
-
let value;
|
|
1365
|
-
const key = r.shift();
|
|
1366
|
-
if ([":+", "+"].includes(splitter)) {
|
|
1367
|
-
defaultValue = env[key] ? r.join(splitter) : "";
|
|
1368
|
-
value = null;
|
|
1369
|
-
} else {
|
|
1370
|
-
defaultValue = r.join(splitter);
|
|
1371
|
-
value = env[key];
|
|
1372
|
-
}
|
|
1373
|
-
if (value) {
|
|
1374
|
-
if (seen.has(value)) result = result.replace(template, defaultValue);
|
|
1375
|
-
else result = result.replace(template, value);
|
|
1376
|
-
} else result = result.replace(template, defaultValue);
|
|
1377
|
-
if (result === runningParsed[key]) break;
|
|
1378
|
-
regex.lastIndex = 0;
|
|
1379
|
-
}
|
|
1380
|
-
return result;
|
|
1381
|
-
}
|
|
1382
|
-
function expand(options) {
|
|
1383
|
-
const runningParsed = {};
|
|
1384
|
-
let processEnv = process.env;
|
|
1385
|
-
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
1386
|
-
for (const key in options.parsed) {
|
|
1387
|
-
let value = options.parsed[key];
|
|
1388
|
-
if (processEnv[key] && processEnv[key] !== value) value = processEnv[key];
|
|
1389
|
-
else value = expandValue(value, processEnv, runningParsed);
|
|
1390
|
-
options.parsed[key] = _resolveEscapeSequences(value);
|
|
1391
|
-
runningParsed[key] = _resolveEscapeSequences(value);
|
|
1392
|
-
}
|
|
1393
|
-
for (const processKey in options.parsed) processEnv[processKey] = options.parsed[processKey];
|
|
1394
|
-
return options;
|
|
1395
|
-
}
|
|
1396
|
-
module.exports.expand = expand;
|
|
1397
|
-
}));
|
|
1398
|
-
//#endregion
|
|
1399
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/config.constants.js
|
|
1400
|
-
var require_config_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1401
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1402
|
-
exports.AS_PROVIDER_METHOD_KEY = exports.VALIDATED_ENV_PROPNAME = exports.PARTIAL_CONFIGURATION_PROPNAME = exports.PARTIAL_CONFIGURATION_KEY = exports.VALIDATED_ENV_LOADER = exports.CONFIGURATION_LOADER = exports.CONFIGURATION_TOKEN = exports.CONFIGURATION_SERVICE_TOKEN = void 0;
|
|
1403
|
-
/**
|
|
1404
|
-
* Injection tokens
|
|
1405
|
-
*/
|
|
1406
|
-
exports.CONFIGURATION_SERVICE_TOKEN = Symbol("CONFIG_SERVICE");
|
|
1407
|
-
exports.CONFIGURATION_TOKEN = "CONFIGURATION_TOKEN";
|
|
1408
|
-
exports.CONFIGURATION_LOADER = "CONFIGURATION_LOADER";
|
|
1409
|
-
exports.VALIDATED_ENV_LOADER = "VALIDATED_ENV_LOADER";
|
|
1410
|
-
exports.PARTIAL_CONFIGURATION_KEY = "PARTIAL_CONFIGURATION_KEY";
|
|
1411
|
-
exports.PARTIAL_CONFIGURATION_PROPNAME = "KEY";
|
|
1412
|
-
exports.VALIDATED_ENV_PROPNAME = "_PROCESS_ENV_VALIDATED";
|
|
1413
|
-
exports.AS_PROVIDER_METHOD_KEY = "asProvider";
|
|
1414
|
-
}));
|
|
1415
|
-
//#endregion
|
|
1416
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArray.js
|
|
1417
|
-
var require_isArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1418
|
-
module.exports = Array.isArray;
|
|
1419
|
-
}));
|
|
1420
|
-
//#endregion
|
|
1421
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js
|
|
1422
|
-
var require__freeGlobal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1423
|
-
module.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
1424
|
-
}));
|
|
1425
|
-
//#endregion
|
|
1426
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js
|
|
1427
|
-
var require__root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1428
|
-
var freeGlobal = require__freeGlobal();
|
|
1429
|
-
/** Detect free variable `self`. */
|
|
1430
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
1431
|
-
module.exports = freeGlobal || freeSelf || Function("return this")();
|
|
1432
|
-
}));
|
|
1433
|
-
//#endregion
|
|
1434
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js
|
|
1435
|
-
var require__Symbol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1436
|
-
module.exports = require__root().Symbol;
|
|
1437
|
-
}));
|
|
1438
|
-
//#endregion
|
|
1439
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js
|
|
1440
|
-
var require__getRawTag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1441
|
-
var Symbol = require__Symbol();
|
|
1442
|
-
/** Used for built-in method references. */
|
|
1443
|
-
var objectProto = Object.prototype;
|
|
1444
|
-
/** Used to check objects for own properties. */
|
|
1445
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1446
|
-
/**
|
|
1447
|
-
* Used to resolve the
|
|
1448
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1449
|
-
* of values.
|
|
1450
|
-
*/
|
|
1451
|
-
var nativeObjectToString = objectProto.toString;
|
|
1452
|
-
/** Built-in value references. */
|
|
1453
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
1454
|
-
/**
|
|
1455
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
1456
|
-
*
|
|
1457
|
-
* @private
|
|
1458
|
-
* @param {*} value The value to query.
|
|
1459
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
1460
|
-
*/
|
|
1461
|
-
function getRawTag(value) {
|
|
1462
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
1463
|
-
try {
|
|
1464
|
-
value[symToStringTag] = void 0;
|
|
1465
|
-
var unmasked = true;
|
|
1466
|
-
} catch (e) {}
|
|
1467
|
-
var result = nativeObjectToString.call(value);
|
|
1468
|
-
if (unmasked) {
|
|
1469
|
-
if (isOwn) value[symToStringTag] = tag;
|
|
1470
|
-
else delete value[symToStringTag];
|
|
1471
|
-
}
|
|
1472
|
-
return result;
|
|
1473
|
-
}
|
|
1474
|
-
module.exports = getRawTag;
|
|
1475
|
-
}));
|
|
1476
|
-
//#endregion
|
|
1477
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js
|
|
1478
|
-
var require__objectToString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1479
|
-
/**
|
|
1480
|
-
* Used to resolve the
|
|
1481
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1482
|
-
* of values.
|
|
1483
|
-
*/
|
|
1484
|
-
var nativeObjectToString = Object.prototype.toString;
|
|
1485
|
-
/**
|
|
1486
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
1487
|
-
*
|
|
1488
|
-
* @private
|
|
1489
|
-
* @param {*} value The value to convert.
|
|
1490
|
-
* @returns {string} Returns the converted string.
|
|
1491
|
-
*/
|
|
1492
|
-
function objectToString(value) {
|
|
1493
|
-
return nativeObjectToString.call(value);
|
|
1494
|
-
}
|
|
1495
|
-
module.exports = objectToString;
|
|
1496
|
-
}));
|
|
1497
|
-
//#endregion
|
|
1498
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js
|
|
1499
|
-
var require__baseGetTag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1500
|
-
var Symbol = require__Symbol();
|
|
1501
|
-
var getRawTag = require__getRawTag();
|
|
1502
|
-
var objectToString = require__objectToString();
|
|
1503
|
-
/** `Object#toString` result references. */
|
|
1504
|
-
var nullTag = "[object Null]";
|
|
1505
|
-
var undefinedTag = "[object Undefined]";
|
|
1506
|
-
/** Built-in value references. */
|
|
1507
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
1508
|
-
/**
|
|
1509
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
1510
|
-
*
|
|
1511
|
-
* @private
|
|
1512
|
-
* @param {*} value The value to query.
|
|
1513
|
-
* @returns {string} Returns the `toStringTag`.
|
|
1514
|
-
*/
|
|
1515
|
-
function baseGetTag(value) {
|
|
1516
|
-
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
1517
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
1518
|
-
}
|
|
1519
|
-
module.exports = baseGetTag;
|
|
1520
|
-
}));
|
|
1521
|
-
//#endregion
|
|
1522
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js
|
|
1523
|
-
var require_isObjectLike = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1524
|
-
/**
|
|
1525
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1526
|
-
* and has a `typeof` result of "object".
|
|
1527
|
-
*
|
|
1528
|
-
* @static
|
|
1529
|
-
* @memberOf _
|
|
1530
|
-
* @since 4.0.0
|
|
1531
|
-
* @category Lang
|
|
1532
|
-
* @param {*} value The value to check.
|
|
1533
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1534
|
-
* @example
|
|
1535
|
-
*
|
|
1536
|
-
* _.isObjectLike({});
|
|
1537
|
-
* // => true
|
|
1538
|
-
*
|
|
1539
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1540
|
-
* // => true
|
|
1541
|
-
*
|
|
1542
|
-
* _.isObjectLike(_.noop);
|
|
1543
|
-
* // => false
|
|
1544
|
-
*
|
|
1545
|
-
* _.isObjectLike(null);
|
|
1546
|
-
* // => false
|
|
1547
|
-
*/
|
|
1548
|
-
function isObjectLike(value) {
|
|
1549
|
-
return value != null && typeof value == "object";
|
|
1550
|
-
}
|
|
1551
|
-
module.exports = isObjectLike;
|
|
1552
|
-
}));
|
|
1553
|
-
//#endregion
|
|
1554
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js
|
|
1555
|
-
var require_isSymbol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1556
|
-
var baseGetTag = require__baseGetTag();
|
|
1557
|
-
var isObjectLike = require_isObjectLike();
|
|
1558
|
-
/** `Object#toString` result references. */
|
|
1559
|
-
var symbolTag = "[object Symbol]";
|
|
1560
|
-
/**
|
|
1561
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1562
|
-
*
|
|
1563
|
-
* @static
|
|
1564
|
-
* @memberOf _
|
|
1565
|
-
* @since 4.0.0
|
|
1566
|
-
* @category Lang
|
|
1567
|
-
* @param {*} value The value to check.
|
|
1568
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1569
|
-
* @example
|
|
1570
|
-
*
|
|
1571
|
-
* _.isSymbol(Symbol.iterator);
|
|
1572
|
-
* // => true
|
|
1573
|
-
*
|
|
1574
|
-
* _.isSymbol('abc');
|
|
1575
|
-
* // => false
|
|
1576
|
-
*/
|
|
1577
|
-
function isSymbol(value) {
|
|
1578
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
1579
|
-
}
|
|
1580
|
-
module.exports = isSymbol;
|
|
1581
|
-
}));
|
|
1582
|
-
//#endregion
|
|
1583
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isKey.js
|
|
1584
|
-
var require__isKey = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1585
|
-
var isArray = require_isArray();
|
|
1586
|
-
var isSymbol = require_isSymbol();
|
|
1587
|
-
/** Used to match property names within property paths. */
|
|
1588
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
1589
|
-
var reIsPlainProp = /^\w*$/;
|
|
1590
|
-
/**
|
|
1591
|
-
* Checks if `value` is a property name and not a property path.
|
|
1592
|
-
*
|
|
1593
|
-
* @private
|
|
1594
|
-
* @param {*} value The value to check.
|
|
1595
|
-
* @param {Object} [object] The object to query keys on.
|
|
1596
|
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
1597
|
-
*/
|
|
1598
|
-
function isKey(value, object) {
|
|
1599
|
-
if (isArray(value)) return false;
|
|
1600
|
-
var type = typeof value;
|
|
1601
|
-
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
1602
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
1603
|
-
}
|
|
1604
|
-
module.exports = isKey;
|
|
1605
|
-
}));
|
|
1606
|
-
//#endregion
|
|
1607
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js
|
|
1608
|
-
var require_isObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1609
|
-
/**
|
|
1610
|
-
* Checks if `value` is the
|
|
1611
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1612
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1613
|
-
*
|
|
1614
|
-
* @static
|
|
1615
|
-
* @memberOf _
|
|
1616
|
-
* @since 0.1.0
|
|
1617
|
-
* @category Lang
|
|
1618
|
-
* @param {*} value The value to check.
|
|
1619
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1620
|
-
* @example
|
|
1621
|
-
*
|
|
1622
|
-
* _.isObject({});
|
|
1623
|
-
* // => true
|
|
1624
|
-
*
|
|
1625
|
-
* _.isObject([1, 2, 3]);
|
|
1626
|
-
* // => true
|
|
1627
|
-
*
|
|
1628
|
-
* _.isObject(_.noop);
|
|
1629
|
-
* // => true
|
|
1630
|
-
*
|
|
1631
|
-
* _.isObject(null);
|
|
1632
|
-
* // => false
|
|
1633
|
-
*/
|
|
1634
|
-
function isObject(value) {
|
|
1635
|
-
var type = typeof value;
|
|
1636
|
-
return value != null && (type == "object" || type == "function");
|
|
1637
|
-
}
|
|
1638
|
-
module.exports = isObject;
|
|
1639
|
-
}));
|
|
1640
|
-
//#endregion
|
|
1641
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isFunction.js
|
|
1642
|
-
var require_isFunction = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1643
|
-
var baseGetTag = require__baseGetTag();
|
|
1644
|
-
var isObject = require_isObject();
|
|
1645
|
-
/** `Object#toString` result references. */
|
|
1646
|
-
var asyncTag = "[object AsyncFunction]";
|
|
1647
|
-
var funcTag = "[object Function]";
|
|
1648
|
-
var genTag = "[object GeneratorFunction]";
|
|
1649
|
-
var proxyTag = "[object Proxy]";
|
|
1650
|
-
/**
|
|
1651
|
-
* Checks if `value` is classified as a `Function` object.
|
|
1652
|
-
*
|
|
1653
|
-
* @static
|
|
1654
|
-
* @memberOf _
|
|
1655
|
-
* @since 0.1.0
|
|
1656
|
-
* @category Lang
|
|
1657
|
-
* @param {*} value The value to check.
|
|
1658
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
1659
|
-
* @example
|
|
1660
|
-
*
|
|
1661
|
-
* _.isFunction(_);
|
|
1662
|
-
* // => true
|
|
1663
|
-
*
|
|
1664
|
-
* _.isFunction(/abc/);
|
|
1665
|
-
* // => false
|
|
1666
|
-
*/
|
|
1667
|
-
function isFunction(value) {
|
|
1668
|
-
if (!isObject(value)) return false;
|
|
1669
|
-
var tag = baseGetTag(value);
|
|
1670
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
1671
|
-
}
|
|
1672
|
-
module.exports = isFunction;
|
|
1673
|
-
}));
|
|
1674
|
-
//#endregion
|
|
1675
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_coreJsData.js
|
|
1676
|
-
var require__coreJsData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1677
|
-
module.exports = require__root()["__core-js_shared__"];
|
|
1678
|
-
}));
|
|
1679
|
-
//#endregion
|
|
1680
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isMasked.js
|
|
1681
|
-
var require__isMasked = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1682
|
-
var coreJsData = require__coreJsData();
|
|
1683
|
-
/** Used to detect methods masquerading as native. */
|
|
1684
|
-
var maskSrcKey = function() {
|
|
1685
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
1686
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
1687
|
-
}();
|
|
1688
|
-
/**
|
|
1689
|
-
* Checks if `func` has its source masked.
|
|
1690
|
-
*
|
|
1691
|
-
* @private
|
|
1692
|
-
* @param {Function} func The function to check.
|
|
1693
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
1694
|
-
*/
|
|
1695
|
-
function isMasked(func) {
|
|
1696
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
1697
|
-
}
|
|
1698
|
-
module.exports = isMasked;
|
|
1699
|
-
}));
|
|
1700
|
-
//#endregion
|
|
1701
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_toSource.js
|
|
1702
|
-
var require__toSource = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1703
|
-
/** Used to resolve the decompiled source of functions. */
|
|
1704
|
-
var funcToString = Function.prototype.toString;
|
|
1705
|
-
/**
|
|
1706
|
-
* Converts `func` to its source code.
|
|
1707
|
-
*
|
|
1708
|
-
* @private
|
|
1709
|
-
* @param {Function} func The function to convert.
|
|
1710
|
-
* @returns {string} Returns the source code.
|
|
1711
|
-
*/
|
|
1712
|
-
function toSource(func) {
|
|
1713
|
-
if (func != null) {
|
|
1714
|
-
try {
|
|
1715
|
-
return funcToString.call(func);
|
|
1716
|
-
} catch (e) {}
|
|
1717
|
-
try {
|
|
1718
|
-
return func + "";
|
|
1719
|
-
} catch (e) {}
|
|
1720
|
-
}
|
|
1721
|
-
return "";
|
|
1722
|
-
}
|
|
1723
|
-
module.exports = toSource;
|
|
1724
|
-
}));
|
|
1725
|
-
//#endregion
|
|
1726
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsNative.js
|
|
1727
|
-
var require__baseIsNative = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1728
|
-
var isFunction = require_isFunction();
|
|
1729
|
-
var isMasked = require__isMasked();
|
|
1730
|
-
var isObject = require_isObject();
|
|
1731
|
-
var toSource = require__toSource();
|
|
1732
|
-
/**
|
|
1733
|
-
* Used to match `RegExp`
|
|
1734
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
1735
|
-
*/
|
|
1736
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
1737
|
-
/** Used to detect host constructors (Safari). */
|
|
1738
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
1739
|
-
/** Used for built-in method references. */
|
|
1740
|
-
var funcProto = Function.prototype;
|
|
1741
|
-
var objectProto = Object.prototype;
|
|
1742
|
-
/** Used to resolve the decompiled source of functions. */
|
|
1743
|
-
var funcToString = funcProto.toString;
|
|
1744
|
-
/** Used to check objects for own properties. */
|
|
1745
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1746
|
-
/** Used to detect if a method is native. */
|
|
1747
|
-
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1748
|
-
/**
|
|
1749
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
1750
|
-
*
|
|
1751
|
-
* @private
|
|
1752
|
-
* @param {*} value The value to check.
|
|
1753
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
1754
|
-
* else `false`.
|
|
1755
|
-
*/
|
|
1756
|
-
function baseIsNative(value) {
|
|
1757
|
-
if (!isObject(value) || isMasked(value)) return false;
|
|
1758
|
-
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
1759
|
-
}
|
|
1760
|
-
module.exports = baseIsNative;
|
|
1761
|
-
}));
|
|
1762
|
-
//#endregion
|
|
1763
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getValue.js
|
|
1764
|
-
var require__getValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1765
|
-
/**
|
|
1766
|
-
* Gets the value at `key` of `object`.
|
|
1767
|
-
*
|
|
1768
|
-
* @private
|
|
1769
|
-
* @param {Object} [object] The object to query.
|
|
1770
|
-
* @param {string} key The key of the property to get.
|
|
1771
|
-
* @returns {*} Returns the property value.
|
|
1772
|
-
*/
|
|
1773
|
-
function getValue(object, key) {
|
|
1774
|
-
return object == null ? void 0 : object[key];
|
|
1775
|
-
}
|
|
1776
|
-
module.exports = getValue;
|
|
1777
|
-
}));
|
|
1778
|
-
//#endregion
|
|
1779
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getNative.js
|
|
1780
|
-
var require__getNative = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1781
|
-
var baseIsNative = require__baseIsNative();
|
|
1782
|
-
var getValue = require__getValue();
|
|
1783
|
-
/**
|
|
1784
|
-
* Gets the native function at `key` of `object`.
|
|
1785
|
-
*
|
|
1786
|
-
* @private
|
|
1787
|
-
* @param {Object} object The object to query.
|
|
1788
|
-
* @param {string} key The key of the method to get.
|
|
1789
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
1790
|
-
*/
|
|
1791
|
-
function getNative(object, key) {
|
|
1792
|
-
var value = getValue(object, key);
|
|
1793
|
-
return baseIsNative(value) ? value : void 0;
|
|
1794
|
-
}
|
|
1795
|
-
module.exports = getNative;
|
|
1796
|
-
}));
|
|
1797
|
-
//#endregion
|
|
1798
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_nativeCreate.js
|
|
1799
|
-
var require__nativeCreate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1800
|
-
module.exports = require__getNative()(Object, "create");
|
|
1801
|
-
}));
|
|
1802
|
-
//#endregion
|
|
1803
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashClear.js
|
|
1804
|
-
var require__hashClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1805
|
-
var nativeCreate = require__nativeCreate();
|
|
1806
|
-
/**
|
|
1807
|
-
* Removes all key-value entries from the hash.
|
|
1808
|
-
*
|
|
1809
|
-
* @private
|
|
1810
|
-
* @name clear
|
|
1811
|
-
* @memberOf Hash
|
|
1812
|
-
*/
|
|
1813
|
-
function hashClear() {
|
|
1814
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1815
|
-
this.size = 0;
|
|
1816
|
-
}
|
|
1817
|
-
module.exports = hashClear;
|
|
1818
|
-
}));
|
|
1819
|
-
//#endregion
|
|
1820
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashDelete.js
|
|
1821
|
-
var require__hashDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1822
|
-
/**
|
|
1823
|
-
* Removes `key` and its value from the hash.
|
|
1824
|
-
*
|
|
1825
|
-
* @private
|
|
1826
|
-
* @name delete
|
|
1827
|
-
* @memberOf Hash
|
|
1828
|
-
* @param {Object} hash The hash to modify.
|
|
1829
|
-
* @param {string} key The key of the value to remove.
|
|
1830
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1831
|
-
*/
|
|
1832
|
-
function hashDelete(key) {
|
|
1833
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
1834
|
-
this.size -= result ? 1 : 0;
|
|
1835
|
-
return result;
|
|
1836
|
-
}
|
|
1837
|
-
module.exports = hashDelete;
|
|
1838
|
-
}));
|
|
1839
|
-
//#endregion
|
|
1840
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashGet.js
|
|
1841
|
-
var require__hashGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1842
|
-
var nativeCreate = require__nativeCreate();
|
|
1843
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1844
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1845
|
-
/** Used to check objects for own properties. */
|
|
1846
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1847
|
-
/**
|
|
1848
|
-
* Gets the hash value for `key`.
|
|
1849
|
-
*
|
|
1850
|
-
* @private
|
|
1851
|
-
* @name get
|
|
1852
|
-
* @memberOf Hash
|
|
1853
|
-
* @param {string} key The key of the value to get.
|
|
1854
|
-
* @returns {*} Returns the entry value.
|
|
1855
|
-
*/
|
|
1856
|
-
function hashGet(key) {
|
|
1857
|
-
var data = this.__data__;
|
|
1858
|
-
if (nativeCreate) {
|
|
1859
|
-
var result = data[key];
|
|
1860
|
-
return result === HASH_UNDEFINED ? void 0 : result;
|
|
1861
|
-
}
|
|
1862
|
-
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
1863
|
-
}
|
|
1864
|
-
module.exports = hashGet;
|
|
1865
|
-
}));
|
|
1866
|
-
//#endregion
|
|
1867
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashHas.js
|
|
1868
|
-
var require__hashHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1869
|
-
var nativeCreate = require__nativeCreate();
|
|
1870
|
-
/** Used to check objects for own properties. */
|
|
1871
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1872
|
-
/**
|
|
1873
|
-
* Checks if a hash value for `key` exists.
|
|
1874
|
-
*
|
|
1875
|
-
* @private
|
|
1876
|
-
* @name has
|
|
1877
|
-
* @memberOf Hash
|
|
1878
|
-
* @param {string} key The key of the entry to check.
|
|
1879
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1880
|
-
*/
|
|
1881
|
-
function hashHas(key) {
|
|
1882
|
-
var data = this.__data__;
|
|
1883
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
1884
|
-
}
|
|
1885
|
-
module.exports = hashHas;
|
|
1886
|
-
}));
|
|
1887
|
-
//#endregion
|
|
1888
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashSet.js
|
|
1889
|
-
var require__hashSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1890
|
-
var nativeCreate = require__nativeCreate();
|
|
1891
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1892
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1893
|
-
/**
|
|
1894
|
-
* Sets the hash `key` to `value`.
|
|
1895
|
-
*
|
|
1896
|
-
* @private
|
|
1897
|
-
* @name set
|
|
1898
|
-
* @memberOf Hash
|
|
1899
|
-
* @param {string} key The key of the value to set.
|
|
1900
|
-
* @param {*} value The value to set.
|
|
1901
|
-
* @returns {Object} Returns the hash instance.
|
|
1902
|
-
*/
|
|
1903
|
-
function hashSet(key, value) {
|
|
1904
|
-
var data = this.__data__;
|
|
1905
|
-
this.size += this.has(key) ? 0 : 1;
|
|
1906
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
1907
|
-
return this;
|
|
1908
|
-
}
|
|
1909
|
-
module.exports = hashSet;
|
|
1910
|
-
}));
|
|
1911
|
-
//#endregion
|
|
1912
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Hash.js
|
|
1913
|
-
var require__Hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1914
|
-
var hashClear = require__hashClear();
|
|
1915
|
-
var hashDelete = require__hashDelete();
|
|
1916
|
-
var hashGet = require__hashGet();
|
|
1917
|
-
var hashHas = require__hashHas();
|
|
1918
|
-
var hashSet = require__hashSet();
|
|
1919
|
-
/**
|
|
1920
|
-
* Creates a hash object.
|
|
1921
|
-
*
|
|
1922
|
-
* @private
|
|
1923
|
-
* @constructor
|
|
1924
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1925
|
-
*/
|
|
1926
|
-
function Hash(entries) {
|
|
1927
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1928
|
-
this.clear();
|
|
1929
|
-
while (++index < length) {
|
|
1930
|
-
var entry = entries[index];
|
|
1931
|
-
this.set(entry[0], entry[1]);
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
1934
|
-
Hash.prototype.clear = hashClear;
|
|
1935
|
-
Hash.prototype["delete"] = hashDelete;
|
|
1936
|
-
Hash.prototype.get = hashGet;
|
|
1937
|
-
Hash.prototype.has = hashHas;
|
|
1938
|
-
Hash.prototype.set = hashSet;
|
|
1939
|
-
module.exports = Hash;
|
|
1940
|
-
}));
|
|
1941
|
-
//#endregion
|
|
1942
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheClear.js
|
|
1943
|
-
var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1944
|
-
/**
|
|
1945
|
-
* Removes all key-value entries from the list cache.
|
|
1946
|
-
*
|
|
1947
|
-
* @private
|
|
1948
|
-
* @name clear
|
|
1949
|
-
* @memberOf ListCache
|
|
1950
|
-
*/
|
|
1951
|
-
function listCacheClear() {
|
|
1952
|
-
this.__data__ = [];
|
|
1953
|
-
this.size = 0;
|
|
1954
|
-
}
|
|
1955
|
-
module.exports = listCacheClear;
|
|
1956
|
-
}));
|
|
1957
|
-
//#endregion
|
|
1958
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/eq.js
|
|
1959
|
-
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1960
|
-
/**
|
|
1961
|
-
* Performs a
|
|
1962
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1963
|
-
* comparison between two values to determine if they are equivalent.
|
|
1964
|
-
*
|
|
1965
|
-
* @static
|
|
1966
|
-
* @memberOf _
|
|
1967
|
-
* @since 4.0.0
|
|
1968
|
-
* @category Lang
|
|
1969
|
-
* @param {*} value The value to compare.
|
|
1970
|
-
* @param {*} other The other value to compare.
|
|
1971
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1972
|
-
* @example
|
|
1973
|
-
*
|
|
1974
|
-
* var object = { 'a': 1 };
|
|
1975
|
-
* var other = { 'a': 1 };
|
|
1976
|
-
*
|
|
1977
|
-
* _.eq(object, object);
|
|
1978
|
-
* // => true
|
|
1979
|
-
*
|
|
1980
|
-
* _.eq(object, other);
|
|
1981
|
-
* // => false
|
|
1982
|
-
*
|
|
1983
|
-
* _.eq('a', 'a');
|
|
1984
|
-
* // => true
|
|
1985
|
-
*
|
|
1986
|
-
* _.eq('a', Object('a'));
|
|
1987
|
-
* // => false
|
|
1988
|
-
*
|
|
1989
|
-
* _.eq(NaN, NaN);
|
|
1990
|
-
* // => true
|
|
1991
|
-
*/
|
|
1992
|
-
function eq(value, other) {
|
|
1993
|
-
return value === other || value !== value && other !== other;
|
|
1994
|
-
}
|
|
1995
|
-
module.exports = eq;
|
|
1996
|
-
}));
|
|
1997
|
-
//#endregion
|
|
1998
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js
|
|
1999
|
-
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2000
|
-
var eq = require_eq();
|
|
2001
|
-
/**
|
|
2002
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
2003
|
-
*
|
|
2004
|
-
* @private
|
|
2005
|
-
* @param {Array} array The array to inspect.
|
|
2006
|
-
* @param {*} key The key to search for.
|
|
2007
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
2008
|
-
*/
|
|
2009
|
-
function assocIndexOf(array, key) {
|
|
2010
|
-
var length = array.length;
|
|
2011
|
-
while (length--) if (eq(array[length][0], key)) return length;
|
|
2012
|
-
return -1;
|
|
2013
|
-
}
|
|
2014
|
-
module.exports = assocIndexOf;
|
|
2015
|
-
}));
|
|
2016
|
-
//#endregion
|
|
2017
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js
|
|
2018
|
-
var require__listCacheDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2019
|
-
var assocIndexOf = require__assocIndexOf();
|
|
2020
|
-
/** Built-in value references. */
|
|
2021
|
-
var splice = Array.prototype.splice;
|
|
2022
|
-
/**
|
|
2023
|
-
* Removes `key` and its value from the list cache.
|
|
2024
|
-
*
|
|
2025
|
-
* @private
|
|
2026
|
-
* @name delete
|
|
2027
|
-
* @memberOf ListCache
|
|
2028
|
-
* @param {string} key The key of the value to remove.
|
|
2029
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
2030
|
-
*/
|
|
2031
|
-
function listCacheDelete(key) {
|
|
2032
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
2033
|
-
if (index < 0) return false;
|
|
2034
|
-
if (index == data.length - 1) data.pop();
|
|
2035
|
-
else splice.call(data, index, 1);
|
|
2036
|
-
--this.size;
|
|
2037
|
-
return true;
|
|
2038
|
-
}
|
|
2039
|
-
module.exports = listCacheDelete;
|
|
2040
|
-
}));
|
|
2041
|
-
//#endregion
|
|
2042
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheGet.js
|
|
2043
|
-
var require__listCacheGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2044
|
-
var assocIndexOf = require__assocIndexOf();
|
|
2045
|
-
/**
|
|
2046
|
-
* Gets the list cache value for `key`.
|
|
2047
|
-
*
|
|
2048
|
-
* @private
|
|
2049
|
-
* @name get
|
|
2050
|
-
* @memberOf ListCache
|
|
2051
|
-
* @param {string} key The key of the value to get.
|
|
2052
|
-
* @returns {*} Returns the entry value.
|
|
2053
|
-
*/
|
|
2054
|
-
function listCacheGet(key) {
|
|
2055
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
2056
|
-
return index < 0 ? void 0 : data[index][1];
|
|
2057
|
-
}
|
|
2058
|
-
module.exports = listCacheGet;
|
|
2059
|
-
}));
|
|
2060
|
-
//#endregion
|
|
2061
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheHas.js
|
|
2062
|
-
var require__listCacheHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2063
|
-
var assocIndexOf = require__assocIndexOf();
|
|
2064
|
-
/**
|
|
2065
|
-
* Checks if a list cache value for `key` exists.
|
|
2066
|
-
*
|
|
2067
|
-
* @private
|
|
2068
|
-
* @name has
|
|
2069
|
-
* @memberOf ListCache
|
|
2070
|
-
* @param {string} key The key of the entry to check.
|
|
2071
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
2072
|
-
*/
|
|
2073
|
-
function listCacheHas(key) {
|
|
2074
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
2075
|
-
}
|
|
2076
|
-
module.exports = listCacheHas;
|
|
2077
|
-
}));
|
|
2078
|
-
//#endregion
|
|
2079
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheSet.js
|
|
2080
|
-
var require__listCacheSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2081
|
-
var assocIndexOf = require__assocIndexOf();
|
|
2082
|
-
/**
|
|
2083
|
-
* Sets the list cache `key` to `value`.
|
|
2084
|
-
*
|
|
2085
|
-
* @private
|
|
2086
|
-
* @name set
|
|
2087
|
-
* @memberOf ListCache
|
|
2088
|
-
* @param {string} key The key of the value to set.
|
|
2089
|
-
* @param {*} value The value to set.
|
|
2090
|
-
* @returns {Object} Returns the list cache instance.
|
|
2091
|
-
*/
|
|
2092
|
-
function listCacheSet(key, value) {
|
|
2093
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
2094
|
-
if (index < 0) {
|
|
2095
|
-
++this.size;
|
|
2096
|
-
data.push([key, value]);
|
|
2097
|
-
} else data[index][1] = value;
|
|
2098
|
-
return this;
|
|
2099
|
-
}
|
|
2100
|
-
module.exports = listCacheSet;
|
|
2101
|
-
}));
|
|
2102
|
-
//#endregion
|
|
2103
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_ListCache.js
|
|
2104
|
-
var require__ListCache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2105
|
-
var listCacheClear = require__listCacheClear();
|
|
2106
|
-
var listCacheDelete = require__listCacheDelete();
|
|
2107
|
-
var listCacheGet = require__listCacheGet();
|
|
2108
|
-
var listCacheHas = require__listCacheHas();
|
|
2109
|
-
var listCacheSet = require__listCacheSet();
|
|
2110
|
-
/**
|
|
2111
|
-
* Creates an list cache object.
|
|
2112
|
-
*
|
|
2113
|
-
* @private
|
|
2114
|
-
* @constructor
|
|
2115
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
2116
|
-
*/
|
|
2117
|
-
function ListCache(entries) {
|
|
2118
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2119
|
-
this.clear();
|
|
2120
|
-
while (++index < length) {
|
|
2121
|
-
var entry = entries[index];
|
|
2122
|
-
this.set(entry[0], entry[1]);
|
|
2123
|
-
}
|
|
2124
|
-
}
|
|
2125
|
-
ListCache.prototype.clear = listCacheClear;
|
|
2126
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
2127
|
-
ListCache.prototype.get = listCacheGet;
|
|
2128
|
-
ListCache.prototype.has = listCacheHas;
|
|
2129
|
-
ListCache.prototype.set = listCacheSet;
|
|
2130
|
-
module.exports = ListCache;
|
|
2131
|
-
}));
|
|
2132
|
-
//#endregion
|
|
2133
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Map.js
|
|
2134
|
-
var require__Map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2135
|
-
module.exports = require__getNative()(require__root(), "Map");
|
|
2136
|
-
}));
|
|
2137
|
-
//#endregion
|
|
2138
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js
|
|
2139
|
-
var require__mapCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2140
|
-
var Hash = require__Hash();
|
|
2141
|
-
var ListCache = require__ListCache();
|
|
2142
|
-
var Map = require__Map();
|
|
2143
|
-
/**
|
|
2144
|
-
* Removes all key-value entries from the map.
|
|
2145
|
-
*
|
|
2146
|
-
* @private
|
|
2147
|
-
* @name clear
|
|
2148
|
-
* @memberOf MapCache
|
|
2149
|
-
*/
|
|
2150
|
-
function mapCacheClear() {
|
|
2151
|
-
this.size = 0;
|
|
2152
|
-
this.__data__ = {
|
|
2153
|
-
"hash": new Hash(),
|
|
2154
|
-
"map": new (Map || ListCache)(),
|
|
2155
|
-
"string": new Hash()
|
|
2156
|
-
};
|
|
2157
|
-
}
|
|
2158
|
-
module.exports = mapCacheClear;
|
|
2159
|
-
}));
|
|
2160
|
-
//#endregion
|
|
2161
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isKeyable.js
|
|
2162
|
-
var require__isKeyable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2163
|
-
/**
|
|
2164
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
2165
|
-
*
|
|
2166
|
-
* @private
|
|
2167
|
-
* @param {*} value The value to check.
|
|
2168
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
2169
|
-
*/
|
|
2170
|
-
function isKeyable(value) {
|
|
2171
|
-
var type = typeof value;
|
|
2172
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
2173
|
-
}
|
|
2174
|
-
module.exports = isKeyable;
|
|
2175
|
-
}));
|
|
2176
|
-
//#endregion
|
|
2177
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getMapData.js
|
|
2178
|
-
var require__getMapData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2179
|
-
var isKeyable = require__isKeyable();
|
|
2180
|
-
/**
|
|
2181
|
-
* Gets the data for `map`.
|
|
2182
|
-
*
|
|
2183
|
-
* @private
|
|
2184
|
-
* @param {Object} map The map to query.
|
|
2185
|
-
* @param {string} key The reference key.
|
|
2186
|
-
* @returns {*} Returns the map data.
|
|
2187
|
-
*/
|
|
2188
|
-
function getMapData(map, key) {
|
|
2189
|
-
var data = map.__data__;
|
|
2190
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
2191
|
-
}
|
|
2192
|
-
module.exports = getMapData;
|
|
2193
|
-
}));
|
|
2194
|
-
//#endregion
|
|
2195
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js
|
|
2196
|
-
var require__mapCacheDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2197
|
-
var getMapData = require__getMapData();
|
|
2198
|
-
/**
|
|
2199
|
-
* Removes `key` and its value from the map.
|
|
2200
|
-
*
|
|
2201
|
-
* @private
|
|
2202
|
-
* @name delete
|
|
2203
|
-
* @memberOf MapCache
|
|
2204
|
-
* @param {string} key The key of the value to remove.
|
|
2205
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
2206
|
-
*/
|
|
2207
|
-
function mapCacheDelete(key) {
|
|
2208
|
-
var result = getMapData(this, key)["delete"](key);
|
|
2209
|
-
this.size -= result ? 1 : 0;
|
|
2210
|
-
return result;
|
|
2211
|
-
}
|
|
2212
|
-
module.exports = mapCacheDelete;
|
|
2213
|
-
}));
|
|
2214
|
-
//#endregion
|
|
2215
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js
|
|
2216
|
-
var require__mapCacheGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2217
|
-
var getMapData = require__getMapData();
|
|
2218
|
-
/**
|
|
2219
|
-
* Gets the map value for `key`.
|
|
2220
|
-
*
|
|
2221
|
-
* @private
|
|
2222
|
-
* @name get
|
|
2223
|
-
* @memberOf MapCache
|
|
2224
|
-
* @param {string} key The key of the value to get.
|
|
2225
|
-
* @returns {*} Returns the entry value.
|
|
2226
|
-
*/
|
|
2227
|
-
function mapCacheGet(key) {
|
|
2228
|
-
return getMapData(this, key).get(key);
|
|
2229
|
-
}
|
|
2230
|
-
module.exports = mapCacheGet;
|
|
2231
|
-
}));
|
|
2232
|
-
//#endregion
|
|
2233
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js
|
|
2234
|
-
var require__mapCacheHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2235
|
-
var getMapData = require__getMapData();
|
|
2236
|
-
/**
|
|
2237
|
-
* Checks if a map value for `key` exists.
|
|
2238
|
-
*
|
|
2239
|
-
* @private
|
|
2240
|
-
* @name has
|
|
2241
|
-
* @memberOf MapCache
|
|
2242
|
-
* @param {string} key The key of the entry to check.
|
|
2243
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
2244
|
-
*/
|
|
2245
|
-
function mapCacheHas(key) {
|
|
2246
|
-
return getMapData(this, key).has(key);
|
|
2247
|
-
}
|
|
2248
|
-
module.exports = mapCacheHas;
|
|
2249
|
-
}));
|
|
2250
|
-
//#endregion
|
|
2251
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js
|
|
2252
|
-
var require__mapCacheSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2253
|
-
var getMapData = require__getMapData();
|
|
2254
|
-
/**
|
|
2255
|
-
* Sets the map `key` to `value`.
|
|
2256
|
-
*
|
|
2257
|
-
* @private
|
|
2258
|
-
* @name set
|
|
2259
|
-
* @memberOf MapCache
|
|
2260
|
-
* @param {string} key The key of the value to set.
|
|
2261
|
-
* @param {*} value The value to set.
|
|
2262
|
-
* @returns {Object} Returns the map cache instance.
|
|
2263
|
-
*/
|
|
2264
|
-
function mapCacheSet(key, value) {
|
|
2265
|
-
var data = getMapData(this, key), size = data.size;
|
|
2266
|
-
data.set(key, value);
|
|
2267
|
-
this.size += data.size == size ? 0 : 1;
|
|
2268
|
-
return this;
|
|
2269
|
-
}
|
|
2270
|
-
module.exports = mapCacheSet;
|
|
2271
|
-
}));
|
|
2272
|
-
//#endregion
|
|
2273
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_MapCache.js
|
|
2274
|
-
var require__MapCache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2275
|
-
var mapCacheClear = require__mapCacheClear();
|
|
2276
|
-
var mapCacheDelete = require__mapCacheDelete();
|
|
2277
|
-
var mapCacheGet = require__mapCacheGet();
|
|
2278
|
-
var mapCacheHas = require__mapCacheHas();
|
|
2279
|
-
var mapCacheSet = require__mapCacheSet();
|
|
2280
|
-
/**
|
|
2281
|
-
* Creates a map cache object to store key-value pairs.
|
|
2282
|
-
*
|
|
2283
|
-
* @private
|
|
2284
|
-
* @constructor
|
|
2285
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
2286
|
-
*/
|
|
2287
|
-
function MapCache(entries) {
|
|
2288
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2289
|
-
this.clear();
|
|
2290
|
-
while (++index < length) {
|
|
2291
|
-
var entry = entries[index];
|
|
2292
|
-
this.set(entry[0], entry[1]);
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
2296
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
2297
|
-
MapCache.prototype.get = mapCacheGet;
|
|
2298
|
-
MapCache.prototype.has = mapCacheHas;
|
|
2299
|
-
MapCache.prototype.set = mapCacheSet;
|
|
2300
|
-
module.exports = MapCache;
|
|
2301
|
-
}));
|
|
2302
|
-
//#endregion
|
|
2303
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/memoize.js
|
|
2304
|
-
var require_memoize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2305
|
-
var MapCache = require__MapCache();
|
|
2306
|
-
/** Error message constants. */
|
|
2307
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
2308
|
-
/**
|
|
2309
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
2310
|
-
* provided, it determines the cache key for storing the result based on the
|
|
2311
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
2312
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
2313
|
-
* is invoked with the `this` binding of the memoized function.
|
|
2314
|
-
*
|
|
2315
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
2316
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
2317
|
-
* constructor with one whose instances implement the
|
|
2318
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
2319
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
2320
|
-
*
|
|
2321
|
-
* @static
|
|
2322
|
-
* @memberOf _
|
|
2323
|
-
* @since 0.1.0
|
|
2324
|
-
* @category Function
|
|
2325
|
-
* @param {Function} func The function to have its output memoized.
|
|
2326
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
2327
|
-
* @returns {Function} Returns the new memoized function.
|
|
2328
|
-
* @example
|
|
2329
|
-
*
|
|
2330
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
2331
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
2332
|
-
*
|
|
2333
|
-
* var values = _.memoize(_.values);
|
|
2334
|
-
* values(object);
|
|
2335
|
-
* // => [1, 2]
|
|
2336
|
-
*
|
|
2337
|
-
* values(other);
|
|
2338
|
-
* // => [3, 4]
|
|
2339
|
-
*
|
|
2340
|
-
* object.a = 2;
|
|
2341
|
-
* values(object);
|
|
2342
|
-
* // => [1, 2]
|
|
2343
|
-
*
|
|
2344
|
-
* // Modify the result cache.
|
|
2345
|
-
* values.cache.set(object, ['a', 'b']);
|
|
2346
|
-
* values(object);
|
|
2347
|
-
* // => ['a', 'b']
|
|
2348
|
-
*
|
|
2349
|
-
* // Replace `_.memoize.Cache`.
|
|
2350
|
-
* _.memoize.Cache = WeakMap;
|
|
2351
|
-
*/
|
|
2352
|
-
function memoize(func, resolver) {
|
|
2353
|
-
if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
2354
|
-
var memoized = function() {
|
|
2355
|
-
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
2356
|
-
if (cache.has(key)) return cache.get(key);
|
|
2357
|
-
var result = func.apply(this, args);
|
|
2358
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
2359
|
-
return result;
|
|
2360
|
-
};
|
|
2361
|
-
memoized.cache = new (memoize.Cache || MapCache)();
|
|
2362
|
-
return memoized;
|
|
2363
|
-
}
|
|
2364
|
-
memoize.Cache = MapCache;
|
|
2365
|
-
module.exports = memoize;
|
|
2366
|
-
}));
|
|
2367
|
-
//#endregion
|
|
2368
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_memoizeCapped.js
|
|
2369
|
-
var require__memoizeCapped = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2370
|
-
var memoize = require_memoize();
|
|
2371
|
-
/** Used as the maximum memoize cache size. */
|
|
2372
|
-
var MAX_MEMOIZE_SIZE = 500;
|
|
2373
|
-
/**
|
|
2374
|
-
* A specialized version of `_.memoize` which clears the memoized function's
|
|
2375
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
2376
|
-
*
|
|
2377
|
-
* @private
|
|
2378
|
-
* @param {Function} func The function to have its output memoized.
|
|
2379
|
-
* @returns {Function} Returns the new memoized function.
|
|
2380
|
-
*/
|
|
2381
|
-
function memoizeCapped(func) {
|
|
2382
|
-
var result = memoize(func, function(key) {
|
|
2383
|
-
if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
|
|
2384
|
-
return key;
|
|
2385
|
-
});
|
|
2386
|
-
var cache = result.cache;
|
|
2387
|
-
return result;
|
|
2388
|
-
}
|
|
2389
|
-
module.exports = memoizeCapped;
|
|
2390
|
-
}));
|
|
2391
|
-
//#endregion
|
|
2392
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_stringToPath.js
|
|
2393
|
-
var require__stringToPath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2394
|
-
var memoizeCapped = require__memoizeCapped();
|
|
2395
|
-
/** Used to match property names within property paths. */
|
|
2396
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2397
|
-
/** Used to match backslashes in property paths. */
|
|
2398
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
2399
|
-
module.exports = memoizeCapped(function(string) {
|
|
2400
|
-
var result = [];
|
|
2401
|
-
if (string.charCodeAt(0) === 46) result.push("");
|
|
2402
|
-
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2403
|
-
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
2404
|
-
});
|
|
2405
|
-
return result;
|
|
2406
|
-
});
|
|
2407
|
-
}));
|
|
2408
|
-
//#endregion
|
|
2409
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayMap.js
|
|
2410
|
-
var require__arrayMap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2411
|
-
/**
|
|
2412
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
2413
|
-
* shorthands.
|
|
2414
|
-
*
|
|
2415
|
-
* @private
|
|
2416
|
-
* @param {Array} [array] The array to iterate over.
|
|
2417
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
2418
|
-
* @returns {Array} Returns the new mapped array.
|
|
2419
|
-
*/
|
|
2420
|
-
function arrayMap(array, iteratee) {
|
|
2421
|
-
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
2422
|
-
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
2423
|
-
return result;
|
|
2424
|
-
}
|
|
2425
|
-
module.exports = arrayMap;
|
|
2426
|
-
}));
|
|
2427
|
-
//#endregion
|
|
2428
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseToString.js
|
|
2429
|
-
var require__baseToString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2430
|
-
var Symbol = require__Symbol();
|
|
2431
|
-
var arrayMap = require__arrayMap();
|
|
2432
|
-
var isArray = require_isArray();
|
|
2433
|
-
var isSymbol = require_isSymbol();
|
|
2434
|
-
/** Used as references for various `Number` constants. */
|
|
2435
|
-
var INFINITY = 1 / 0;
|
|
2436
|
-
/** Used to convert symbols to primitives and strings. */
|
|
2437
|
-
var symbolProto = Symbol ? Symbol.prototype : void 0;
|
|
2438
|
-
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
2439
|
-
/**
|
|
2440
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2441
|
-
* values to empty strings.
|
|
2442
|
-
*
|
|
2443
|
-
* @private
|
|
2444
|
-
* @param {*} value The value to process.
|
|
2445
|
-
* @returns {string} Returns the string.
|
|
2446
|
-
*/
|
|
2447
|
-
function baseToString(value) {
|
|
2448
|
-
if (typeof value == "string") return value;
|
|
2449
|
-
if (isArray(value)) return arrayMap(value, baseToString) + "";
|
|
2450
|
-
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
2451
|
-
var result = value + "";
|
|
2452
|
-
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
2453
|
-
}
|
|
2454
|
-
module.exports = baseToString;
|
|
2455
|
-
}));
|
|
2456
|
-
//#endregion
|
|
2457
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toString.js
|
|
2458
|
-
var require_toString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2459
|
-
var baseToString = require__baseToString();
|
|
2460
|
-
/**
|
|
2461
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
2462
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
2463
|
-
*
|
|
2464
|
-
* @static
|
|
2465
|
-
* @memberOf _
|
|
2466
|
-
* @since 4.0.0
|
|
2467
|
-
* @category Lang
|
|
2468
|
-
* @param {*} value The value to convert.
|
|
2469
|
-
* @returns {string} Returns the converted string.
|
|
2470
|
-
* @example
|
|
2471
|
-
*
|
|
2472
|
-
* _.toString(null);
|
|
2473
|
-
* // => ''
|
|
2474
|
-
*
|
|
2475
|
-
* _.toString(-0);
|
|
2476
|
-
* // => '-0'
|
|
2477
|
-
*
|
|
2478
|
-
* _.toString([1, 2, 3]);
|
|
2479
|
-
* // => '1,2,3'
|
|
2480
|
-
*/
|
|
2481
|
-
function toString(value) {
|
|
2482
|
-
return value == null ? "" : baseToString(value);
|
|
2483
|
-
}
|
|
2484
|
-
module.exports = toString;
|
|
2485
|
-
}));
|
|
2486
|
-
//#endregion
|
|
2487
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_castPath.js
|
|
2488
|
-
var require__castPath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2489
|
-
var isArray = require_isArray();
|
|
2490
|
-
var isKey = require__isKey();
|
|
2491
|
-
var stringToPath = require__stringToPath();
|
|
2492
|
-
var toString = require_toString();
|
|
2493
|
-
/**
|
|
2494
|
-
* Casts `value` to a path array if it's not one.
|
|
2495
|
-
*
|
|
2496
|
-
* @private
|
|
2497
|
-
* @param {*} value The value to inspect.
|
|
2498
|
-
* @param {Object} [object] The object to query keys on.
|
|
2499
|
-
* @returns {Array} Returns the cast property path array.
|
|
2500
|
-
*/
|
|
2501
|
-
function castPath(value, object) {
|
|
2502
|
-
if (isArray(value)) return value;
|
|
2503
|
-
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
2504
|
-
}
|
|
2505
|
-
module.exports = castPath;
|
|
2506
|
-
}));
|
|
2507
|
-
//#endregion
|
|
2508
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_toKey.js
|
|
2509
|
-
var require__toKey = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2510
|
-
var isSymbol = require_isSymbol();
|
|
2511
|
-
/** Used as references for various `Number` constants. */
|
|
2512
|
-
var INFINITY = 1 / 0;
|
|
2513
|
-
/**
|
|
2514
|
-
* Converts `value` to a string key if it's not a string or symbol.
|
|
2515
|
-
*
|
|
2516
|
-
* @private
|
|
2517
|
-
* @param {*} value The value to inspect.
|
|
2518
|
-
* @returns {string|symbol} Returns the key.
|
|
2519
|
-
*/
|
|
2520
|
-
function toKey(value) {
|
|
2521
|
-
if (typeof value == "string" || isSymbol(value)) return value;
|
|
2522
|
-
var result = value + "";
|
|
2523
|
-
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
2524
|
-
}
|
|
2525
|
-
module.exports = toKey;
|
|
2526
|
-
}));
|
|
2527
|
-
//#endregion
|
|
2528
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGet.js
|
|
2529
|
-
var require__baseGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2530
|
-
var castPath = require__castPath();
|
|
2531
|
-
var toKey = require__toKey();
|
|
2532
|
-
/**
|
|
2533
|
-
* The base implementation of `_.get` without support for default values.
|
|
2534
|
-
*
|
|
2535
|
-
* @private
|
|
2536
|
-
* @param {Object} object The object to query.
|
|
2537
|
-
* @param {Array|string} path The path of the property to get.
|
|
2538
|
-
* @returns {*} Returns the resolved value.
|
|
2539
|
-
*/
|
|
2540
|
-
function baseGet(object, path) {
|
|
2541
|
-
path = castPath(path, object);
|
|
2542
|
-
var index = 0, length = path.length;
|
|
2543
|
-
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
2544
|
-
return index && index == length ? object : void 0;
|
|
2545
|
-
}
|
|
2546
|
-
module.exports = baseGet;
|
|
2547
|
-
}));
|
|
2548
|
-
//#endregion
|
|
2549
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js
|
|
2550
|
-
var require_get = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2551
|
-
var baseGet = require__baseGet();
|
|
2552
|
-
/**
|
|
2553
|
-
* Gets the value at `path` of `object`. If the resolved value is
|
|
2554
|
-
* `undefined`, the `defaultValue` is returned in its place.
|
|
2555
|
-
*
|
|
2556
|
-
* @static
|
|
2557
|
-
* @memberOf _
|
|
2558
|
-
* @since 3.7.0
|
|
2559
|
-
* @category Object
|
|
2560
|
-
* @param {Object} object The object to query.
|
|
2561
|
-
* @param {Array|string} path The path of the property to get.
|
|
2562
|
-
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
2563
|
-
* @returns {*} Returns the resolved value.
|
|
2564
|
-
* @example
|
|
2565
|
-
*
|
|
2566
|
-
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
2567
|
-
*
|
|
2568
|
-
* _.get(object, 'a[0].b.c');
|
|
2569
|
-
* // => 3
|
|
2570
|
-
*
|
|
2571
|
-
* _.get(object, ['a', '0', 'b', 'c']);
|
|
2572
|
-
* // => 3
|
|
2573
|
-
*
|
|
2574
|
-
* _.get(object, 'a.b.c', 'default');
|
|
2575
|
-
* // => 'default'
|
|
2576
|
-
*/
|
|
2577
|
-
function get(object, path, defaultValue) {
|
|
2578
|
-
var result = object == null ? void 0 : baseGet(object, path);
|
|
2579
|
-
return result === void 0 ? defaultValue : result;
|
|
2580
|
-
}
|
|
2581
|
-
module.exports = get;
|
|
2582
|
-
}));
|
|
2583
|
-
//#endregion
|
|
2584
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseHas.js
|
|
2585
|
-
var require__baseHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2586
|
-
/** Used to check objects for own properties. */
|
|
2587
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2588
|
-
/**
|
|
2589
|
-
* The base implementation of `_.has` without support for deep paths.
|
|
2590
|
-
*
|
|
2591
|
-
* @private
|
|
2592
|
-
* @param {Object} [object] The object to query.
|
|
2593
|
-
* @param {Array|string} key The key to check.
|
|
2594
|
-
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
2595
|
-
*/
|
|
2596
|
-
function baseHas(object, key) {
|
|
2597
|
-
return object != null && hasOwnProperty.call(object, key);
|
|
2598
|
-
}
|
|
2599
|
-
module.exports = baseHas;
|
|
2600
|
-
}));
|
|
2601
|
-
//#endregion
|
|
2602
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsArguments.js
|
|
2603
|
-
var require__baseIsArguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2604
|
-
var baseGetTag = require__baseGetTag();
|
|
2605
|
-
var isObjectLike = require_isObjectLike();
|
|
2606
|
-
/** `Object#toString` result references. */
|
|
2607
|
-
var argsTag = "[object Arguments]";
|
|
2608
|
-
/**
|
|
2609
|
-
* The base implementation of `_.isArguments`.
|
|
2610
|
-
*
|
|
2611
|
-
* @private
|
|
2612
|
-
* @param {*} value The value to check.
|
|
2613
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
2614
|
-
*/
|
|
2615
|
-
function baseIsArguments(value) {
|
|
2616
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
2617
|
-
}
|
|
2618
|
-
module.exports = baseIsArguments;
|
|
2619
|
-
}));
|
|
2620
|
-
//#endregion
|
|
2621
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArguments.js
|
|
2622
|
-
var require_isArguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2623
|
-
var baseIsArguments = require__baseIsArguments();
|
|
2624
|
-
var isObjectLike = require_isObjectLike();
|
|
2625
|
-
/** Used for built-in method references. */
|
|
2626
|
-
var objectProto = Object.prototype;
|
|
2627
|
-
/** Used to check objects for own properties. */
|
|
2628
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2629
|
-
/** Built-in value references. */
|
|
2630
|
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
2631
|
-
module.exports = baseIsArguments(function() {
|
|
2632
|
-
return arguments;
|
|
2633
|
-
}()) ? baseIsArguments : function(value) {
|
|
2634
|
-
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
2635
|
-
};
|
|
2636
|
-
}));
|
|
2637
|
-
//#endregion
|
|
2638
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isIndex.js
|
|
2639
|
-
var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2640
|
-
/** Used as references for various `Number` constants. */
|
|
2641
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
2642
|
-
/** Used to detect unsigned integer values. */
|
|
2643
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
2644
|
-
/**
|
|
2645
|
-
* Checks if `value` is a valid array-like index.
|
|
2646
|
-
*
|
|
2647
|
-
* @private
|
|
2648
|
-
* @param {*} value The value to check.
|
|
2649
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
2650
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
2651
|
-
*/
|
|
2652
|
-
function isIndex(value, length) {
|
|
2653
|
-
var type = typeof value;
|
|
2654
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
2655
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
2656
|
-
}
|
|
2657
|
-
module.exports = isIndex;
|
|
2658
|
-
}));
|
|
2659
|
-
//#endregion
|
|
2660
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isLength.js
|
|
2661
|
-
var require_isLength = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2662
|
-
/** Used as references for various `Number` constants. */
|
|
2663
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
2664
|
-
/**
|
|
2665
|
-
* Checks if `value` is a valid array-like length.
|
|
2666
|
-
*
|
|
2667
|
-
* **Note:** This method is loosely based on
|
|
2668
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
2669
|
-
*
|
|
2670
|
-
* @static
|
|
2671
|
-
* @memberOf _
|
|
2672
|
-
* @since 4.0.0
|
|
2673
|
-
* @category Lang
|
|
2674
|
-
* @param {*} value The value to check.
|
|
2675
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
2676
|
-
* @example
|
|
2677
|
-
*
|
|
2678
|
-
* _.isLength(3);
|
|
2679
|
-
* // => true
|
|
2680
|
-
*
|
|
2681
|
-
* _.isLength(Number.MIN_VALUE);
|
|
2682
|
-
* // => false
|
|
2683
|
-
*
|
|
2684
|
-
* _.isLength(Infinity);
|
|
2685
|
-
* // => false
|
|
2686
|
-
*
|
|
2687
|
-
* _.isLength('3');
|
|
2688
|
-
* // => false
|
|
2689
|
-
*/
|
|
2690
|
-
function isLength(value) {
|
|
2691
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
2692
|
-
}
|
|
2693
|
-
module.exports = isLength;
|
|
2694
|
-
}));
|
|
2695
|
-
//#endregion
|
|
2696
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hasPath.js
|
|
2697
|
-
var require__hasPath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2698
|
-
var castPath = require__castPath();
|
|
2699
|
-
var isArguments = require_isArguments();
|
|
2700
|
-
var isArray = require_isArray();
|
|
2701
|
-
var isIndex = require__isIndex();
|
|
2702
|
-
var isLength = require_isLength();
|
|
2703
|
-
var toKey = require__toKey();
|
|
2704
|
-
/**
|
|
2705
|
-
* Checks if `path` exists on `object`.
|
|
2706
|
-
*
|
|
2707
|
-
* @private
|
|
2708
|
-
* @param {Object} object The object to query.
|
|
2709
|
-
* @param {Array|string} path The path to check.
|
|
2710
|
-
* @param {Function} hasFunc The function to check properties.
|
|
2711
|
-
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
2712
|
-
*/
|
|
2713
|
-
function hasPath(object, path, hasFunc) {
|
|
2714
|
-
path = castPath(path, object);
|
|
2715
|
-
var index = -1, length = path.length, result = false;
|
|
2716
|
-
while (++index < length) {
|
|
2717
|
-
var key = toKey(path[index]);
|
|
2718
|
-
if (!(result = object != null && hasFunc(object, key))) break;
|
|
2719
|
-
object = object[key];
|
|
2720
|
-
}
|
|
2721
|
-
if (result || ++index != length) return result;
|
|
2722
|
-
length = object == null ? 0 : object.length;
|
|
2723
|
-
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
2724
|
-
}
|
|
2725
|
-
module.exports = hasPath;
|
|
2726
|
-
}));
|
|
2727
|
-
//#endregion
|
|
2728
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js
|
|
2729
|
-
var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2730
|
-
var baseHas = require__baseHas();
|
|
2731
|
-
var hasPath = require__hasPath();
|
|
2732
|
-
/**
|
|
2733
|
-
* Checks if `path` is a direct property of `object`.
|
|
2734
|
-
*
|
|
2735
|
-
* @static
|
|
2736
|
-
* @since 0.1.0
|
|
2737
|
-
* @memberOf _
|
|
2738
|
-
* @category Object
|
|
2739
|
-
* @param {Object} object The object to query.
|
|
2740
|
-
* @param {Array|string} path The path to check.
|
|
2741
|
-
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
2742
|
-
* @example
|
|
2743
|
-
*
|
|
2744
|
-
* var object = { 'a': { 'b': 2 } };
|
|
2745
|
-
* var other = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
2746
|
-
*
|
|
2747
|
-
* _.has(object, 'a');
|
|
2748
|
-
* // => true
|
|
2749
|
-
*
|
|
2750
|
-
* _.has(object, 'a.b');
|
|
2751
|
-
* // => true
|
|
2752
|
-
*
|
|
2753
|
-
* _.has(object, ['a', 'b']);
|
|
2754
|
-
* // => true
|
|
2755
|
-
*
|
|
2756
|
-
* _.has(other, 'a');
|
|
2757
|
-
* // => false
|
|
2758
|
-
*/
|
|
2759
|
-
function has(object, path) {
|
|
2760
|
-
return object != null && hasPath(object, path, baseHas);
|
|
2761
|
-
}
|
|
2762
|
-
module.exports = has;
|
|
2763
|
-
}));
|
|
2764
|
-
//#endregion
|
|
2765
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_defineProperty.js
|
|
2766
|
-
var require__defineProperty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2767
|
-
var getNative = require__getNative();
|
|
2768
|
-
module.exports = function() {
|
|
2769
|
-
try {
|
|
2770
|
-
var func = getNative(Object, "defineProperty");
|
|
2771
|
-
func({}, "", {});
|
|
2772
|
-
return func;
|
|
2773
|
-
} catch (e) {}
|
|
2774
|
-
}();
|
|
2775
|
-
}));
|
|
2776
|
-
//#endregion
|
|
2777
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseAssignValue.js
|
|
2778
|
-
var require__baseAssignValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2779
|
-
var defineProperty = require__defineProperty();
|
|
2780
|
-
/**
|
|
2781
|
-
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
2782
|
-
* value checks.
|
|
2783
|
-
*
|
|
2784
|
-
* @private
|
|
2785
|
-
* @param {Object} object The object to modify.
|
|
2786
|
-
* @param {string} key The key of the property to assign.
|
|
2787
|
-
* @param {*} value The value to assign.
|
|
2788
|
-
*/
|
|
2789
|
-
function baseAssignValue(object, key, value) {
|
|
2790
|
-
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
2791
|
-
"configurable": true,
|
|
2792
|
-
"enumerable": true,
|
|
2793
|
-
"value": value,
|
|
2794
|
-
"writable": true
|
|
2795
|
-
});
|
|
2796
|
-
else object[key] = value;
|
|
2797
|
-
}
|
|
2798
|
-
module.exports = baseAssignValue;
|
|
2799
|
-
}));
|
|
2800
|
-
//#endregion
|
|
2801
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_assignValue.js
|
|
2802
|
-
var require__assignValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2803
|
-
var baseAssignValue = require__baseAssignValue();
|
|
2804
|
-
var eq = require_eq();
|
|
2805
|
-
/** Used to check objects for own properties. */
|
|
2806
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2807
|
-
/**
|
|
2808
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
2809
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
2810
|
-
* for equality comparisons.
|
|
2811
|
-
*
|
|
2812
|
-
* @private
|
|
2813
|
-
* @param {Object} object The object to modify.
|
|
2814
|
-
* @param {string} key The key of the property to assign.
|
|
2815
|
-
* @param {*} value The value to assign.
|
|
2816
|
-
*/
|
|
2817
|
-
function assignValue(object, key, value) {
|
|
2818
|
-
var objValue = object[key];
|
|
2819
|
-
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
2820
|
-
}
|
|
2821
|
-
module.exports = assignValue;
|
|
2822
|
-
}));
|
|
2823
|
-
//#endregion
|
|
2824
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseSet.js
|
|
2825
|
-
var require__baseSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2826
|
-
var assignValue = require__assignValue();
|
|
2827
|
-
var castPath = require__castPath();
|
|
2828
|
-
var isIndex = require__isIndex();
|
|
2829
|
-
var isObject = require_isObject();
|
|
2830
|
-
var toKey = require__toKey();
|
|
2831
|
-
/**
|
|
2832
|
-
* The base implementation of `_.set`.
|
|
2833
|
-
*
|
|
2834
|
-
* @private
|
|
2835
|
-
* @param {Object} object The object to modify.
|
|
2836
|
-
* @param {Array|string} path The path of the property to set.
|
|
2837
|
-
* @param {*} value The value to set.
|
|
2838
|
-
* @param {Function} [customizer] The function to customize path creation.
|
|
2839
|
-
* @returns {Object} Returns `object`.
|
|
2840
|
-
*/
|
|
2841
|
-
function baseSet(object, path, value, customizer) {
|
|
2842
|
-
if (!isObject(object)) return object;
|
|
2843
|
-
path = castPath(path, object);
|
|
2844
|
-
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
2845
|
-
while (nested != null && ++index < length) {
|
|
2846
|
-
var key = toKey(path[index]), newValue = value;
|
|
2847
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") return object;
|
|
2848
|
-
if (index != lastIndex) {
|
|
2849
|
-
var objValue = nested[key];
|
|
2850
|
-
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
2851
|
-
if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
2852
|
-
}
|
|
2853
|
-
assignValue(nested, key, newValue);
|
|
2854
|
-
nested = nested[key];
|
|
2855
|
-
}
|
|
2856
|
-
return object;
|
|
2857
|
-
}
|
|
2858
|
-
module.exports = baseSet;
|
|
2859
|
-
}));
|
|
2860
|
-
//#endregion
|
|
2861
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js
|
|
2862
|
-
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2863
|
-
var baseSet = require__baseSet();
|
|
2864
|
-
/**
|
|
2865
|
-
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
|
|
2866
|
-
* it's created. Arrays are created for missing index properties while objects
|
|
2867
|
-
* are created for all other missing properties. Use `_.setWith` to customize
|
|
2868
|
-
* `path` creation.
|
|
2869
|
-
*
|
|
2870
|
-
* **Note:** This method mutates `object`.
|
|
2871
|
-
*
|
|
2872
|
-
* @static
|
|
2873
|
-
* @memberOf _
|
|
2874
|
-
* @since 3.7.0
|
|
2875
|
-
* @category Object
|
|
2876
|
-
* @param {Object} object The object to modify.
|
|
2877
|
-
* @param {Array|string} path The path of the property to set.
|
|
2878
|
-
* @param {*} value The value to set.
|
|
2879
|
-
* @returns {Object} Returns `object`.
|
|
2880
|
-
* @example
|
|
2881
|
-
*
|
|
2882
|
-
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
2883
|
-
*
|
|
2884
|
-
* _.set(object, 'a[0].b.c', 4);
|
|
2885
|
-
* console.log(object.a[0].b.c);
|
|
2886
|
-
* // => 4
|
|
2887
|
-
*
|
|
2888
|
-
* _.set(object, ['x', '0', 'y', 'z'], 5);
|
|
2889
|
-
* console.log(object.x[0].y.z);
|
|
2890
|
-
* // => 5
|
|
2891
|
-
*/
|
|
2892
|
-
function set(object, path, value) {
|
|
2893
|
-
return object == null ? object : baseSet(object, path, value);
|
|
2894
|
-
}
|
|
2895
|
-
module.exports = set;
|
|
2896
|
-
}));
|
|
2897
|
-
//#endregion
|
|
2898
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/config.service.js
|
|
2899
|
-
var require_config_service = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2900
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
2901
|
-
if (k2 === void 0) k2 = k;
|
|
2902
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2903
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
2904
|
-
enumerable: true,
|
|
2905
|
-
get: function() {
|
|
2906
|
-
return m[k];
|
|
2907
|
-
}
|
|
2908
|
-
};
|
|
2909
|
-
Object.defineProperty(o, k2, desc);
|
|
2910
|
-
}) : (function(o, m, k, k2) {
|
|
2911
|
-
if (k2 === void 0) k2 = k;
|
|
2912
|
-
o[k2] = m[k];
|
|
2913
|
-
}));
|
|
2914
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
2915
|
-
Object.defineProperty(o, "default", {
|
|
2916
|
-
enumerable: true,
|
|
2917
|
-
value: v
|
|
2918
|
-
});
|
|
2919
|
-
}) : function(o, v) {
|
|
2920
|
-
o["default"] = v;
|
|
2921
|
-
});
|
|
2922
|
-
var __decorate = exports && exports.__decorate || function(decorators, target, key, desc) {
|
|
2923
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2924
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2925
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2926
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2927
|
-
};
|
|
2928
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
2929
|
-
var ownKeys = function(o) {
|
|
2930
|
-
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
2931
|
-
var ar = [];
|
|
2932
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
2933
|
-
return ar;
|
|
2934
|
-
};
|
|
2935
|
-
return ownKeys(o);
|
|
2936
|
-
};
|
|
2937
|
-
return function(mod) {
|
|
2938
|
-
if (mod && mod.__esModule) return mod;
|
|
2939
|
-
var result = {};
|
|
2940
|
-
if (mod != null) {
|
|
2941
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
2942
|
-
}
|
|
2943
|
-
__setModuleDefault(result, mod);
|
|
2944
|
-
return result;
|
|
2945
|
-
};
|
|
2946
|
-
})();
|
|
2947
|
-
var __metadata = exports && exports.__metadata || function(k, v) {
|
|
2948
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2949
|
-
};
|
|
2950
|
-
var __param = exports && exports.__param || function(paramIndex, decorator) {
|
|
2951
|
-
return function(target, key) {
|
|
2952
|
-
decorator(target, key, paramIndex);
|
|
2953
|
-
};
|
|
2954
|
-
};
|
|
2955
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
2956
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2957
|
-
};
|
|
2958
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2959
|
-
exports.ConfigService = void 0;
|
|
2960
|
-
const common_1$3 = __require("@nestjs/common");
|
|
2961
|
-
const shared_utils_1$1 = __require("@nestjs/common/utils/shared.utils");
|
|
2962
|
-
const dotenv = __importStar(require_main$1());
|
|
2963
|
-
const fs_1 = __importDefault(__require("fs"));
|
|
2964
|
-
const get_1 = __importDefault(require_get());
|
|
2965
|
-
const has_1 = __importDefault(require_has());
|
|
2966
|
-
const set_1 = __importDefault(require_set());
|
|
2967
|
-
const rxjs_1 = __require("rxjs");
|
|
2968
|
-
const config_constants_1 = require_config_constants();
|
|
2969
|
-
/**
|
|
2970
|
-
* @publicApi
|
|
2971
|
-
*/
|
|
2972
|
-
let ConfigService = class ConfigService {
|
|
2973
|
-
set isCacheEnabled(value) {
|
|
2974
|
-
this._isCacheEnabled = value;
|
|
2975
|
-
}
|
|
2976
|
-
get isCacheEnabled() {
|
|
2977
|
-
return this._isCacheEnabled;
|
|
2978
|
-
}
|
|
2979
|
-
set skipProcessEnv(value) {
|
|
2980
|
-
this._skipProcessEnv = value;
|
|
2981
|
-
}
|
|
2982
|
-
get skipProcessEnv() {
|
|
2983
|
-
return this._skipProcessEnv;
|
|
2984
|
-
}
|
|
2985
|
-
constructor(internalConfig = {}) {
|
|
2986
|
-
this.internalConfig = internalConfig;
|
|
2987
|
-
this.cache = {};
|
|
2988
|
-
this._changes$ = new rxjs_1.Subject();
|
|
2989
|
-
this._skipProcessEnv = false;
|
|
2990
|
-
this._isCacheEnabled = false;
|
|
2991
|
-
this.envFilePaths = [];
|
|
2992
|
-
}
|
|
2993
|
-
/**
|
|
2994
|
-
* Returns a stream of configuration changes.
|
|
2995
|
-
* Each event contains the attribute path, the old value and the new value.
|
|
2996
|
-
*/
|
|
2997
|
-
get changes$() {
|
|
2998
|
-
return this._changes$.asObservable();
|
|
2999
|
-
}
|
|
3000
|
-
/**
|
|
3001
|
-
* Get a configuration value (either custom configuration or process environment variable)
|
|
3002
|
-
* based on property path (you can use dot notation to traverse nested object, e.g. "database.host").
|
|
3003
|
-
* It returns a default value if the key does not exist.
|
|
3004
|
-
* @param propertyPath
|
|
3005
|
-
* @param defaultValueOrOptions
|
|
3006
|
-
*/
|
|
3007
|
-
get(propertyPath, defaultValueOrOptions, options) {
|
|
3008
|
-
const internalValue = this.getFromInternalConfig(propertyPath);
|
|
3009
|
-
if (!(0, shared_utils_1$1.isUndefined)(internalValue)) return internalValue;
|
|
3010
|
-
const validatedEnvValue = this.getFromValidatedEnv(propertyPath);
|
|
3011
|
-
if (!(0, shared_utils_1$1.isUndefined)(validatedEnvValue)) return validatedEnvValue;
|
|
3012
|
-
const defaultValue = this.isGetOptionsObject(defaultValueOrOptions) && !options ? void 0 : defaultValueOrOptions;
|
|
3013
|
-
if (!this._skipProcessEnv) {
|
|
3014
|
-
const processEnvValue = this.getFromProcessEnv(propertyPath, defaultValue);
|
|
3015
|
-
if (!(0, shared_utils_1$1.isUndefined)(processEnvValue)) return processEnvValue;
|
|
3016
|
-
}
|
|
3017
|
-
return defaultValue;
|
|
3018
|
-
}
|
|
3019
|
-
/**
|
|
3020
|
-
* Get a configuration value (either custom configuration or process environment variable)
|
|
3021
|
-
* based on property path (you can use dot notation to traverse nested object, e.g. "database.host").
|
|
3022
|
-
* It returns a default value if the key does not exist.
|
|
3023
|
-
* If the default value is undefined an exception will be thrown.
|
|
3024
|
-
* @param propertyPath
|
|
3025
|
-
* @param defaultValueOrOptions
|
|
3026
|
-
*/
|
|
3027
|
-
getOrThrow(propertyPath, defaultValueOrOptions, options) {
|
|
3028
|
-
const value = this.get(propertyPath, defaultValueOrOptions, options);
|
|
3029
|
-
if ((0, shared_utils_1$1.isUndefined)(value)) throw new TypeError(`Configuration key "${propertyPath.toString()}" does not exist`);
|
|
3030
|
-
return value;
|
|
3031
|
-
}
|
|
3032
|
-
/**
|
|
3033
|
-
* Sets a configuration value based on property path.
|
|
3034
|
-
* @param propertyPath
|
|
3035
|
-
* @param value
|
|
3036
|
-
*/
|
|
3037
|
-
set(propertyPath, value) {
|
|
3038
|
-
const oldValue = this.get(propertyPath);
|
|
3039
|
-
(0, set_1.default)(this.internalConfig, propertyPath, value);
|
|
3040
|
-
if (typeof propertyPath === "string") {
|
|
3041
|
-
process.env[propertyPath] = String(value);
|
|
3042
|
-
this.updateInterpolatedEnv(propertyPath, String(value));
|
|
3043
|
-
}
|
|
3044
|
-
if (this.isCacheEnabled) this.setInCacheIfDefined(propertyPath, value);
|
|
3045
|
-
this._changes$.next({
|
|
3046
|
-
path: propertyPath,
|
|
3047
|
-
oldValue,
|
|
3048
|
-
newValue: value
|
|
3049
|
-
});
|
|
3050
|
-
}
|
|
3051
|
-
/**
|
|
3052
|
-
* Sets env file paths from `config.module.ts` to parse.
|
|
3053
|
-
* @param paths
|
|
3054
|
-
*/
|
|
3055
|
-
setEnvFilePaths(paths) {
|
|
3056
|
-
this.envFilePaths = paths;
|
|
3057
|
-
}
|
|
3058
|
-
getFromCache(propertyPath, defaultValue) {
|
|
3059
|
-
const cachedValue = (0, get_1.default)(this.cache, propertyPath);
|
|
3060
|
-
return (0, shared_utils_1$1.isUndefined)(cachedValue) ? defaultValue : cachedValue;
|
|
3061
|
-
}
|
|
3062
|
-
getFromValidatedEnv(propertyPath) {
|
|
3063
|
-
return (0, get_1.default)(this.internalConfig[config_constants_1.VALIDATED_ENV_PROPNAME], propertyPath);
|
|
3064
|
-
}
|
|
3065
|
-
getFromProcessEnv(propertyPath, defaultValue) {
|
|
3066
|
-
if (this.isCacheEnabled && (0, has_1.default)(this.cache, propertyPath)) {
|
|
3067
|
-
const cachedValue = this.getFromCache(propertyPath, defaultValue);
|
|
3068
|
-
return !(0, shared_utils_1$1.isUndefined)(cachedValue) ? cachedValue : defaultValue;
|
|
3069
|
-
}
|
|
3070
|
-
const processValue = (0, get_1.default)(process.env, propertyPath);
|
|
3071
|
-
this.setInCacheIfDefined(propertyPath, processValue);
|
|
3072
|
-
return processValue;
|
|
3073
|
-
}
|
|
3074
|
-
getFromInternalConfig(propertyPath) {
|
|
3075
|
-
return (0, get_1.default)(this.internalConfig, propertyPath);
|
|
3076
|
-
}
|
|
3077
|
-
setInCacheIfDefined(propertyPath, value) {
|
|
3078
|
-
if (typeof value === "undefined") return;
|
|
3079
|
-
(0, set_1.default)(this.cache, propertyPath, value);
|
|
3080
|
-
}
|
|
3081
|
-
isGetOptionsObject(options) {
|
|
3082
|
-
return options && options?.infer && Object.keys(options).length === 1;
|
|
3083
|
-
}
|
|
3084
|
-
updateInterpolatedEnv(propertyPath, value) {
|
|
3085
|
-
let config = {};
|
|
3086
|
-
for (const envFilePath of this.envFilePaths) if (fs_1.default.existsSync(envFilePath)) config = Object.assign(dotenv.parse(fs_1.default.readFileSync(envFilePath)), config);
|
|
3087
|
-
const regex = new RegExp(`\\$\\{?${propertyPath}\\}?`, "g");
|
|
3088
|
-
for (const [k, v] of Object.entries(config)) if (regex.test(v)) process.env[k] = v.replace(regex, value);
|
|
3089
|
-
}
|
|
3090
|
-
};
|
|
3091
|
-
exports.ConfigService = ConfigService;
|
|
3092
|
-
exports.ConfigService = ConfigService = __decorate([
|
|
3093
|
-
(0, common_1$3.Injectable)(),
|
|
3094
|
-
__param(0, (0, common_1$3.Optional)()),
|
|
3095
|
-
__param(0, (0, common_1$3.Inject)(config_constants_1.CONFIGURATION_TOKEN)),
|
|
3096
|
-
__metadata("design:paramtypes", [Object])
|
|
3097
|
-
], ConfigService);
|
|
3098
|
-
}));
|
|
3099
|
-
//#endregion
|
|
3100
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/config-host.module.js
|
|
3101
|
-
var require_config_host_module = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3102
|
-
var __decorate = exports && exports.__decorate || function(decorators, target, key, desc) {
|
|
3103
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3104
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3105
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3106
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3107
|
-
};
|
|
3108
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3109
|
-
exports.ConfigHostModule = void 0;
|
|
3110
|
-
const common_1$2 = __require("@nestjs/common");
|
|
3111
|
-
const config_constants_1 = require_config_constants();
|
|
3112
|
-
const config_service_1 = require_config_service();
|
|
3113
|
-
/**
|
|
3114
|
-
* @publicApi
|
|
3115
|
-
*/
|
|
3116
|
-
let ConfigHostModule = class ConfigHostModule {};
|
|
3117
|
-
exports.ConfigHostModule = ConfigHostModule;
|
|
3118
|
-
exports.ConfigHostModule = ConfigHostModule = __decorate([(0, common_1$2.Global)(), (0, common_1$2.Module)({
|
|
3119
|
-
providers: [{
|
|
3120
|
-
provide: config_constants_1.CONFIGURATION_TOKEN,
|
|
3121
|
-
useFactory: () => ({})
|
|
3122
|
-
}, {
|
|
3123
|
-
provide: config_constants_1.CONFIGURATION_SERVICE_TOKEN,
|
|
3124
|
-
useClass: config_service_1.ConfigService
|
|
3125
|
-
}],
|
|
3126
|
-
exports: [config_constants_1.CONFIGURATION_TOKEN, config_constants_1.CONFIGURATION_SERVICE_TOKEN]
|
|
3127
|
-
})], ConfigHostModule);
|
|
3128
|
-
}));
|
|
3129
|
-
//#endregion
|
|
3130
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/utils/get-config-token.util.js
|
|
3131
|
-
var require_get_config_token_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3132
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3133
|
-
exports.getConfigToken = getConfigToken;
|
|
3134
|
-
/**
|
|
3135
|
-
* @publicApi
|
|
3136
|
-
*/
|
|
3137
|
-
function getConfigToken(token) {
|
|
3138
|
-
return `CONFIGURATION(${token.toString()})`;
|
|
3139
|
-
}
|
|
3140
|
-
}));
|
|
3141
|
-
//#endregion
|
|
3142
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/utils/create-config-factory.util.js
|
|
3143
|
-
var require_create_config_factory_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3144
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3145
|
-
exports.createConfigProvider = createConfigProvider;
|
|
3146
|
-
const get_config_token_util_1 = require_get_config_token_util();
|
|
3147
|
-
const crypto_1 = __require("crypto");
|
|
3148
|
-
/**
|
|
3149
|
-
* @publicApi
|
|
3150
|
-
*/
|
|
3151
|
-
function createConfigProvider(factory) {
|
|
3152
|
-
return {
|
|
3153
|
-
provide: factory.KEY || (0, get_config_token_util_1.getConfigToken)((0, crypto_1.randomUUID)()),
|
|
3154
|
-
useFactory: factory,
|
|
3155
|
-
inject: []
|
|
3156
|
-
};
|
|
3157
|
-
}
|
|
3158
|
-
}));
|
|
3159
|
-
//#endregion
|
|
3160
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/utils/get-registration-token.util.js
|
|
3161
|
-
var require_get_registration_token_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3162
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3163
|
-
exports.getRegistrationToken = getRegistrationToken;
|
|
3164
|
-
const config_constants_1 = require_config_constants();
|
|
3165
|
-
/**
|
|
3166
|
-
* @publicApi
|
|
3167
|
-
*/
|
|
3168
|
-
function getRegistrationToken(config) {
|
|
3169
|
-
return config[config_constants_1.PARTIAL_CONFIGURATION_KEY];
|
|
3170
|
-
}
|
|
3171
|
-
}));
|
|
3172
|
-
//#endregion
|
|
3173
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/utils/merge-configs.util.js
|
|
3174
|
-
var require_merge_configs_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3175
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
3176
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3177
|
-
};
|
|
3178
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3179
|
-
exports.mergeConfigObject = mergeConfigObject;
|
|
3180
|
-
const set_1 = __importDefault(require_set());
|
|
3181
|
-
/**
|
|
3182
|
-
* @publicApi
|
|
3183
|
-
*/
|
|
3184
|
-
function mergeConfigObject(host, partial, token) {
|
|
3185
|
-
if (token) {
|
|
3186
|
-
(0, set_1.default)(host, token, partial);
|
|
3187
|
-
return partial;
|
|
3188
|
-
}
|
|
3189
|
-
Object.assign(host, partial);
|
|
3190
|
-
}
|
|
3191
|
-
}));
|
|
3192
|
-
//#endregion
|
|
3193
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/config.module.js
|
|
3194
|
-
var require_config_module = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3195
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3196
|
-
if (k2 === void 0) k2 = k;
|
|
3197
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3198
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
3199
|
-
enumerable: true,
|
|
3200
|
-
get: function() {
|
|
3201
|
-
return m[k];
|
|
3202
|
-
}
|
|
3203
|
-
};
|
|
3204
|
-
Object.defineProperty(o, k2, desc);
|
|
3205
|
-
}) : (function(o, m, k, k2) {
|
|
3206
|
-
if (k2 === void 0) k2 = k;
|
|
3207
|
-
o[k2] = m[k];
|
|
3208
|
-
}));
|
|
3209
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
3210
|
-
Object.defineProperty(o, "default", {
|
|
3211
|
-
enumerable: true,
|
|
3212
|
-
value: v
|
|
3213
|
-
});
|
|
3214
|
-
}) : function(o, v) {
|
|
3215
|
-
o["default"] = v;
|
|
3216
|
-
});
|
|
3217
|
-
var __decorate = exports && exports.__decorate || function(decorators, target, key, desc) {
|
|
3218
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3219
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3220
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3221
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3222
|
-
};
|
|
3223
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
3224
|
-
var ownKeys = function(o) {
|
|
3225
|
-
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
3226
|
-
var ar = [];
|
|
3227
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
3228
|
-
return ar;
|
|
3229
|
-
};
|
|
3230
|
-
return ownKeys(o);
|
|
3231
|
-
};
|
|
3232
|
-
return function(mod) {
|
|
3233
|
-
if (mod && mod.__esModule) return mod;
|
|
3234
|
-
var result = {};
|
|
3235
|
-
if (mod != null) {
|
|
3236
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
3237
|
-
}
|
|
3238
|
-
__setModuleDefault(result, mod);
|
|
3239
|
-
return result;
|
|
3240
|
-
};
|
|
3241
|
-
})();
|
|
3242
|
-
var ConfigModule_1;
|
|
3243
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3244
|
-
exports.ConfigModule = void 0;
|
|
3245
|
-
const common_1$1 = __require("@nestjs/common");
|
|
3246
|
-
const shared_utils_1 = __require("@nestjs/common/utils/shared.utils");
|
|
3247
|
-
const dotenv = __importStar(require_main$1());
|
|
3248
|
-
const dotenv_expand_1 = require_main();
|
|
3249
|
-
const fs = __importStar(__require("fs"));
|
|
3250
|
-
const path_1 = __require("path");
|
|
3251
|
-
const config_host_module_1 = require_config_host_module();
|
|
3252
|
-
const config_constants_1 = require_config_constants();
|
|
3253
|
-
const config_service_1 = require_config_service();
|
|
3254
|
-
const create_config_factory_util_1 = require_create_config_factory_util();
|
|
3255
|
-
const get_registration_token_util_1 = require_get_registration_token_util();
|
|
3256
|
-
const merge_configs_util_1 = require_merge_configs_util();
|
|
3257
|
-
/**
|
|
3258
|
-
* @publicApi
|
|
3259
|
-
*/
|
|
3260
|
-
let ConfigModule = ConfigModule_1 = class ConfigModule {
|
|
3261
|
-
/**
|
|
3262
|
-
* This promise resolves when "dotenv" completes loading environment variables.
|
|
3263
|
-
* When "ignoreEnvFile" is set to true, then it will resolve immediately after the
|
|
3264
|
-
* "ConfigModule#forRoot" method is called.
|
|
3265
|
-
*/
|
|
3266
|
-
static get envVariablesLoaded() {
|
|
3267
|
-
return this._envVariablesLoaded;
|
|
3268
|
-
}
|
|
3269
|
-
/**
|
|
3270
|
-
* Loads environment variables based on the "ignoreEnvFile" flag and "envFilePath" value.
|
|
3271
|
-
* Additionally, registers custom configurations globally.
|
|
3272
|
-
* @param options
|
|
3273
|
-
*/
|
|
3274
|
-
static async forRoot(options = {}) {
|
|
3275
|
-
const envFilePaths = Array.isArray(options.envFilePath) ? options.envFilePath : [options.envFilePath || (0, path_1.resolve)(process.cwd(), ".env")];
|
|
3276
|
-
let validatedEnvConfig = void 0;
|
|
3277
|
-
let config = options.ignoreEnvFile ? {} : this.loadEnvFile(envFilePaths, options);
|
|
3278
|
-
if (!options.ignoreEnvVars && options.validatePredefined !== false) config = {
|
|
3279
|
-
...config,
|
|
3280
|
-
...process.env
|
|
3281
|
-
};
|
|
3282
|
-
if (options.validate) {
|
|
3283
|
-
const validatedConfig = options.validate(config);
|
|
3284
|
-
validatedEnvConfig = validatedConfig;
|
|
3285
|
-
this.assignVariablesToProcess(validatedConfig);
|
|
3286
|
-
} else if (options.validationSchema) {
|
|
3287
|
-
const validationOptions = this.getSchemaValidationOptions(options);
|
|
3288
|
-
const { error, value: validatedConfig } = options.validationSchema.validate(config, validationOptions);
|
|
3289
|
-
if (error) throw new Error(`Config validation error: ${error.message}`);
|
|
3290
|
-
validatedEnvConfig = validatedConfig;
|
|
3291
|
-
this.assignVariablesToProcess(validatedConfig);
|
|
3292
|
-
} else this.assignVariablesToProcess(config);
|
|
3293
|
-
const isConfigToLoad = options.load && options.load.length;
|
|
3294
|
-
const providers = (await Promise.all(options.load || [])).map((factory) => (0, create_config_factory_util_1.createConfigProvider)(factory)).filter((item) => item);
|
|
3295
|
-
const configProviderTokens = providers.map((item) => item.provide);
|
|
3296
|
-
const configServiceProvider = {
|
|
3297
|
-
provide: config_service_1.ConfigService,
|
|
3298
|
-
useFactory: (configService) => {
|
|
3299
|
-
const untypedConfigService = configService;
|
|
3300
|
-
if (options.cache) untypedConfigService.isCacheEnabled = true;
|
|
3301
|
-
if (options.skipProcessEnv) untypedConfigService.skipProcessEnv = true;
|
|
3302
|
-
configService.setEnvFilePaths(envFilePaths);
|
|
3303
|
-
return configService;
|
|
3304
|
-
},
|
|
3305
|
-
inject: [config_constants_1.CONFIGURATION_SERVICE_TOKEN, ...configProviderTokens]
|
|
3306
|
-
};
|
|
3307
|
-
providers.push(configServiceProvider);
|
|
3308
|
-
if (validatedEnvConfig) {
|
|
3309
|
-
const validatedEnvConfigLoader = {
|
|
3310
|
-
provide: config_constants_1.VALIDATED_ENV_LOADER,
|
|
3311
|
-
useFactory: (host) => {
|
|
3312
|
-
host[config_constants_1.VALIDATED_ENV_PROPNAME] = validatedEnvConfig;
|
|
3313
|
-
},
|
|
3314
|
-
inject: [config_constants_1.CONFIGURATION_TOKEN]
|
|
3315
|
-
};
|
|
3316
|
-
providers.push(validatedEnvConfigLoader);
|
|
3317
|
-
}
|
|
3318
|
-
this.environmentVariablesLoadedSignal();
|
|
3319
|
-
return {
|
|
3320
|
-
module: ConfigModule_1,
|
|
3321
|
-
global: options.isGlobal,
|
|
3322
|
-
providers: isConfigToLoad ? [...providers, {
|
|
3323
|
-
provide: config_constants_1.CONFIGURATION_LOADER,
|
|
3324
|
-
useFactory: (host, ...configurations) => {
|
|
3325
|
-
configurations.forEach((item, index) => this.mergePartial(host, item, providers[index]));
|
|
3326
|
-
},
|
|
3327
|
-
inject: [config_constants_1.CONFIGURATION_TOKEN, ...configProviderTokens]
|
|
3328
|
-
}] : providers,
|
|
3329
|
-
exports: [config_service_1.ConfigService, ...configProviderTokens]
|
|
3330
|
-
};
|
|
3331
|
-
}
|
|
3332
|
-
/**
|
|
3333
|
-
* Registers configuration object (partial registration).
|
|
3334
|
-
* @param config
|
|
3335
|
-
*/
|
|
3336
|
-
static forFeature(config) {
|
|
3337
|
-
const configProvider = (0, create_config_factory_util_1.createConfigProvider)(config);
|
|
3338
|
-
const serviceProvider = {
|
|
3339
|
-
provide: config_service_1.ConfigService,
|
|
3340
|
-
useFactory: (configService) => configService,
|
|
3341
|
-
inject: [config_constants_1.CONFIGURATION_SERVICE_TOKEN, configProvider.provide]
|
|
3342
|
-
};
|
|
3343
|
-
return {
|
|
3344
|
-
module: ConfigModule_1,
|
|
3345
|
-
providers: [
|
|
3346
|
-
configProvider,
|
|
3347
|
-
serviceProvider,
|
|
3348
|
-
{
|
|
3349
|
-
provide: config_constants_1.CONFIGURATION_LOADER,
|
|
3350
|
-
useFactory: (host, partialConfig) => {
|
|
3351
|
-
this.mergePartial(host, partialConfig, configProvider);
|
|
3352
|
-
},
|
|
3353
|
-
inject: [config_constants_1.CONFIGURATION_TOKEN, configProvider.provide]
|
|
3354
|
-
}
|
|
3355
|
-
],
|
|
3356
|
-
exports: [config_service_1.ConfigService, configProvider.provide]
|
|
3357
|
-
};
|
|
3358
|
-
}
|
|
3359
|
-
static loadEnvFile(envFilePaths, options) {
|
|
3360
|
-
let config = {};
|
|
3361
|
-
for (const envFilePath of envFilePaths) if (fs.existsSync(envFilePath)) {
|
|
3362
|
-
config = Object.assign(dotenv.parse(fs.readFileSync(envFilePath)), config);
|
|
3363
|
-
if (options.expandVariables) {
|
|
3364
|
-
const expandOptions = typeof options.expandVariables === "object" ? options.expandVariables : {};
|
|
3365
|
-
config = (0, dotenv_expand_1.expand)({
|
|
3366
|
-
...expandOptions,
|
|
3367
|
-
parsed: config
|
|
3368
|
-
}).parsed || config;
|
|
3369
|
-
}
|
|
3370
|
-
}
|
|
3371
|
-
return config;
|
|
3372
|
-
}
|
|
3373
|
-
static assignVariablesToProcess(config) {
|
|
3374
|
-
if (!(0, shared_utils_1.isObject)(config)) return;
|
|
3375
|
-
Object.keys(config).filter((key) => !(key in process.env)).forEach((key) => {
|
|
3376
|
-
const value = config[key];
|
|
3377
|
-
if (typeof value === "string") process.env[key] = value;
|
|
3378
|
-
else if (typeof value === "boolean" || typeof value === "number") process.env[key] = `${value}`;
|
|
3379
|
-
});
|
|
3380
|
-
}
|
|
3381
|
-
static mergePartial(host, item, provider) {
|
|
3382
|
-
const factoryRef = provider.useFactory;
|
|
3383
|
-
const token = (0, get_registration_token_util_1.getRegistrationToken)(factoryRef);
|
|
3384
|
-
(0, merge_configs_util_1.mergeConfigObject)(host, item, token);
|
|
3385
|
-
}
|
|
3386
|
-
static getSchemaValidationOptions(options) {
|
|
3387
|
-
if (options.validationOptions) {
|
|
3388
|
-
if (typeof options.validationOptions.allowUnknown === "undefined") options.validationOptions.allowUnknown = true;
|
|
3389
|
-
return options.validationOptions;
|
|
3390
|
-
}
|
|
3391
|
-
return {
|
|
3392
|
-
abortEarly: false,
|
|
3393
|
-
allowUnknown: true
|
|
3394
|
-
};
|
|
3395
|
-
}
|
|
3396
|
-
};
|
|
3397
|
-
exports.ConfigModule = ConfigModule;
|
|
3398
|
-
ConfigModule._envVariablesLoaded = new Promise((resolve) => ConfigModule_1.environmentVariablesLoadedSignal = resolve);
|
|
3399
|
-
exports.ConfigModule = ConfigModule = ConfigModule_1 = __decorate([(0, common_1$1.Module)({
|
|
3400
|
-
imports: [config_host_module_1.ConfigHostModule],
|
|
3401
|
-
providers: [{
|
|
3402
|
-
provide: config_service_1.ConfigService,
|
|
3403
|
-
useExisting: config_constants_1.CONFIGURATION_SERVICE_TOKEN
|
|
3404
|
-
}],
|
|
3405
|
-
exports: [config_host_module_1.ConfigHostModule, config_service_1.ConfigService]
|
|
3406
|
-
})], ConfigModule);
|
|
3407
|
-
}));
|
|
3408
|
-
//#endregion
|
|
3409
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/conditional.module.js
|
|
3410
|
-
var require_conditional_module = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3411
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3412
|
-
exports.ConditionalModule = void 0;
|
|
3413
|
-
const common_1 = __require("@nestjs/common");
|
|
3414
|
-
const config_module_1 = require_config_module();
|
|
3415
|
-
/**
|
|
3416
|
-
* Same logic as in `@nestjs/core` package.
|
|
3417
|
-
* @param instance The instance which should get the name from
|
|
3418
|
-
* @returns The name of an instance or `undefined`
|
|
3419
|
-
*/
|
|
3420
|
-
const getInstanceName = (instance) => {
|
|
3421
|
-
if (instance?.forwardRef) return instance.forwardRef()?.name;
|
|
3422
|
-
if (instance.module) return instance.module?.name;
|
|
3423
|
-
return instance.name;
|
|
3424
|
-
};
|
|
3425
|
-
exports.ConditionalModule = class ConditionalModule {
|
|
3426
|
-
/**
|
|
3427
|
-
* @publicApi
|
|
3428
|
-
*/
|
|
3429
|
-
static async registerWhen(module$1, condition, options) {
|
|
3430
|
-
const { timeout = 5e3, debug = true } = options ?? {};
|
|
3431
|
-
const moduleName = getInstanceName(module$1) || module$1.toString();
|
|
3432
|
-
const timer = setTimeout(() => {
|
|
3433
|
-
throw new Error(`Nest was not able to resolve the config variables within ${timeout} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${moduleName} should be registered or not`);
|
|
3434
|
-
}, timeout);
|
|
3435
|
-
timer.unref();
|
|
3436
|
-
const returnModule = {
|
|
3437
|
-
module: ConditionalModule,
|
|
3438
|
-
imports: [],
|
|
3439
|
-
exports: []
|
|
3440
|
-
};
|
|
3441
|
-
if (typeof condition === "string") {
|
|
3442
|
-
const key = condition;
|
|
3443
|
-
condition = (env) => {
|
|
3444
|
-
return env[key]?.toLowerCase() !== "false";
|
|
3445
|
-
};
|
|
3446
|
-
}
|
|
3447
|
-
await config_module_1.ConfigModule.envVariablesLoaded;
|
|
3448
|
-
clearTimeout(timer);
|
|
3449
|
-
if (condition(process.env)) {
|
|
3450
|
-
returnModule.imports.push(module$1);
|
|
3451
|
-
returnModule.exports.push(module$1);
|
|
3452
|
-
} else if (debug) common_1.Logger.debug(`${condition.toString()} evaluated to false. Skipping the registration of ${moduleName}`, ConditionalModule.name);
|
|
3453
|
-
return returnModule;
|
|
3454
|
-
}
|
|
3455
|
-
};
|
|
3456
|
-
}));
|
|
3457
|
-
//#endregion
|
|
3458
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/types/config-object.type.js
|
|
3459
|
-
var require_config_object_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3460
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3461
|
-
}));
|
|
3462
|
-
//#endregion
|
|
3463
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/types/config.type.js
|
|
3464
|
-
var require_config_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3465
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3466
|
-
}));
|
|
3467
|
-
//#endregion
|
|
3468
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/types/no-infer.type.js
|
|
3469
|
-
var require_no_infer_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3470
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3471
|
-
}));
|
|
3472
|
-
//#endregion
|
|
3473
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/types/path-value.type.js
|
|
3474
|
-
var require_path_value_type = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3475
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3476
|
-
}));
|
|
3477
|
-
//#endregion
|
|
3478
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/types/index.js
|
|
3479
|
-
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3480
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3481
|
-
if (k2 === void 0) k2 = k;
|
|
3482
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3483
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
3484
|
-
enumerable: true,
|
|
3485
|
-
get: function() {
|
|
3486
|
-
return m[k];
|
|
3487
|
-
}
|
|
3488
|
-
};
|
|
3489
|
-
Object.defineProperty(o, k2, desc);
|
|
3490
|
-
}) : (function(o, m, k, k2) {
|
|
3491
|
-
if (k2 === void 0) k2 = k;
|
|
3492
|
-
o[k2] = m[k];
|
|
3493
|
-
}));
|
|
3494
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports$4) {
|
|
3495
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$4, p)) __createBinding(exports$4, m, p);
|
|
3496
|
-
};
|
|
3497
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3498
|
-
__exportStar(require_config_object_type(), exports);
|
|
3499
|
-
__exportStar(require_config_type(), exports);
|
|
3500
|
-
__exportStar(require_no_infer_type(), exports);
|
|
3501
|
-
__exportStar(require_path_value_type(), exports);
|
|
3502
|
-
}));
|
|
3503
|
-
//#endregion
|
|
3504
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/utils/register-as.util.js
|
|
3505
|
-
var require_register_as_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3506
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3507
|
-
exports.registerAs = registerAs;
|
|
3508
|
-
const __1 = require_dist();
|
|
3509
|
-
const config_constants_1 = require_config_constants();
|
|
3510
|
-
const get_config_token_util_1 = require_get_config_token_util();
|
|
3511
|
-
/**
|
|
3512
|
-
* @publicApi
|
|
3513
|
-
*
|
|
3514
|
-
* Registers the configuration object behind a specified token.
|
|
3515
|
-
*/
|
|
3516
|
-
function registerAs(token, configFactory) {
|
|
3517
|
-
const defineProperty = (key, value) => {
|
|
3518
|
-
Object.defineProperty(configFactory, key, {
|
|
3519
|
-
configurable: false,
|
|
3520
|
-
enumerable: false,
|
|
3521
|
-
value,
|
|
3522
|
-
writable: false
|
|
3523
|
-
});
|
|
3524
|
-
};
|
|
3525
|
-
defineProperty(config_constants_1.PARTIAL_CONFIGURATION_KEY, token);
|
|
3526
|
-
defineProperty(config_constants_1.PARTIAL_CONFIGURATION_PROPNAME, (0, get_config_token_util_1.getConfigToken)(token));
|
|
3527
|
-
defineProperty(config_constants_1.AS_PROVIDER_METHOD_KEY, () => ({
|
|
3528
|
-
imports: [__1.ConfigModule.forFeature(configFactory)],
|
|
3529
|
-
useFactory: (config) => config,
|
|
3530
|
-
inject: [(0, get_config_token_util_1.getConfigToken)(token)]
|
|
3531
|
-
}));
|
|
3532
|
-
return configFactory;
|
|
3533
|
-
}
|
|
3534
|
-
}));
|
|
3535
|
-
//#endregion
|
|
3536
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/utils/index.js
|
|
3537
|
-
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3538
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3539
|
-
if (k2 === void 0) k2 = k;
|
|
3540
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3541
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
3542
|
-
enumerable: true,
|
|
3543
|
-
get: function() {
|
|
3544
|
-
return m[k];
|
|
3545
|
-
}
|
|
3546
|
-
};
|
|
3547
|
-
Object.defineProperty(o, k2, desc);
|
|
3548
|
-
}) : (function(o, m, k, k2) {
|
|
3549
|
-
if (k2 === void 0) k2 = k;
|
|
3550
|
-
o[k2] = m[k];
|
|
3551
|
-
}));
|
|
3552
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports$3) {
|
|
3553
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$3, p)) __createBinding(exports$3, m, p);
|
|
3554
|
-
};
|
|
3555
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3556
|
-
__exportStar(require_register_as_util(), exports);
|
|
3557
|
-
__exportStar(require_get_config_token_util(), exports);
|
|
3558
|
-
}));
|
|
3559
|
-
//#endregion
|
|
3560
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/interfaces/config-change-event.interface.js
|
|
3561
|
-
var require_config_change_event_interface = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3562
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3563
|
-
}));
|
|
3564
|
-
//#endregion
|
|
3565
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/interfaces/config-factory.interface.js
|
|
3566
|
-
var require_config_factory_interface = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3567
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3568
|
-
}));
|
|
3569
|
-
//#endregion
|
|
3570
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/interfaces/config-module-options.interface.js
|
|
3571
|
-
var require_config_module_options_interface = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3572
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3573
|
-
}));
|
|
3574
|
-
//#endregion
|
|
3575
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/interfaces/index.js
|
|
3576
|
-
var require_interfaces = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3577
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3578
|
-
if (k2 === void 0) k2 = k;
|
|
3579
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3580
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
3581
|
-
enumerable: true,
|
|
3582
|
-
get: function() {
|
|
3583
|
-
return m[k];
|
|
3584
|
-
}
|
|
3585
|
-
};
|
|
3586
|
-
Object.defineProperty(o, k2, desc);
|
|
3587
|
-
}) : (function(o, m, k, k2) {
|
|
3588
|
-
if (k2 === void 0) k2 = k;
|
|
3589
|
-
o[k2] = m[k];
|
|
3590
|
-
}));
|
|
3591
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports$2) {
|
|
3592
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$2, p)) __createBinding(exports$2, m, p);
|
|
3593
|
-
};
|
|
3594
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3595
|
-
__exportStar(require_config_change_event_interface(), exports);
|
|
3596
|
-
__exportStar(require_config_factory_interface(), exports);
|
|
3597
|
-
__exportStar(require_config_module_options_interface(), exports);
|
|
3598
|
-
}));
|
|
3599
|
-
//#endregion
|
|
3600
|
-
//#region node_modules/.pnpm/@nestjs+config@4.0.4_@nestjs+common@11.1.27_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@8.1.1__rxjs@7.8.2/node_modules/@nestjs/config/dist/index.js
|
|
3601
|
-
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3602
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3603
|
-
if (k2 === void 0) k2 = k;
|
|
3604
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3605
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
3606
|
-
enumerable: true,
|
|
3607
|
-
get: function() {
|
|
3608
|
-
return m[k];
|
|
3609
|
-
}
|
|
3610
|
-
};
|
|
3611
|
-
Object.defineProperty(o, k2, desc);
|
|
3612
|
-
}) : (function(o, m, k, k2) {
|
|
3613
|
-
if (k2 === void 0) k2 = k;
|
|
3614
|
-
o[k2] = m[k];
|
|
3615
|
-
}));
|
|
3616
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports$1) {
|
|
3617
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
3618
|
-
};
|
|
3619
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3620
|
-
__exportStar(require_conditional_module(), exports);
|
|
3621
|
-
__exportStar(require_config_module(), exports);
|
|
3622
|
-
__exportStar(require_config_service(), exports);
|
|
3623
|
-
__exportStar(require_types(), exports);
|
|
3624
|
-
__exportStar(require_utils(), exports);
|
|
3625
|
-
__exportStar(require_interfaces(), exports);
|
|
3626
|
-
}));
|
|
3627
|
-
//#endregion
|
|
3628
1063
|
//#region src/puppeteer/puppeteer.module.ts
|
|
3629
|
-
var import_config = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3630
|
-
function __export(m) {
|
|
3631
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
3632
|
-
}
|
|
3633
|
-
exports.__esModule = true;
|
|
3634
|
-
__export(require_dist());
|
|
3635
|
-
})))();
|
|
3636
1064
|
var _PuppeteerModule;
|
|
3637
1065
|
let PuppeteerModule = _PuppeteerModule = class PuppeteerModule {
|
|
3638
1066
|
browserService;
|
|
@@ -3664,7 +1092,6 @@ let PuppeteerModule = _PuppeteerModule = class PuppeteerModule {
|
|
|
3664
1092
|
];
|
|
3665
1093
|
return {
|
|
3666
1094
|
module: _PuppeteerModule,
|
|
3667
|
-
imports: [import_config.ConfigModule.forRoot()],
|
|
3668
1095
|
providers,
|
|
3669
1096
|
exports: [
|
|
3670
1097
|
PuppeteerService,
|
|
@@ -3690,7 +1117,7 @@ let PuppeteerModule = _PuppeteerModule = class PuppeteerModule {
|
|
|
3690
1117
|
};
|
|
3691
1118
|
return {
|
|
3692
1119
|
module: _PuppeteerModule,
|
|
3693
|
-
imports:
|
|
1120
|
+
imports: options.imports ?? [],
|
|
3694
1121
|
providers: [
|
|
3695
1122
|
pdfParamsProvider,
|
|
3696
1123
|
hbsParamsProvider,
|