sap-ux-sap-systems-ext 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extension.js +732 -466
- package/dist/webapp/store.js +9 -9
- package/package.json +8 -8
package/dist/extension.js
CHANGED
|
@@ -4167,7 +4167,7 @@ var require_hybrid = __commonJS({
|
|
|
4167
4167
|
var utils_1 = require_utils();
|
|
4168
4168
|
var secure_store_1 = require_secure_store();
|
|
4169
4169
|
var decorators_1 = require_decorators();
|
|
4170
|
-
var
|
|
4170
|
+
var node_util_1 = require("node:util");
|
|
4171
4171
|
function getFullyQualifiedServiceName(name2) {
|
|
4172
4172
|
return "fiori/v2/" + name2;
|
|
4173
4173
|
}
|
|
@@ -4185,7 +4185,7 @@ var require_hybrid = __commonJS({
|
|
|
4185
4185
|
if (!serialized) {
|
|
4186
4186
|
this.logger.debug(`hybrid/read - id: [${id}], nothing on the filesystem`);
|
|
4187
4187
|
} else {
|
|
4188
|
-
this.logger.debug(`hybrid/read - id: [${id}], filesystem: ${(0,
|
|
4188
|
+
this.logger.debug(`hybrid/read - id: [${id}], filesystem: ${(0, node_util_1.inspect)(serialized)}`);
|
|
4189
4189
|
}
|
|
4190
4190
|
const sensitiveData = await this.secureStore.retrieve(getFullyQualifiedServiceName(entityName2), id);
|
|
4191
4191
|
if (!sensitiveData) {
|
|
@@ -4229,17 +4229,17 @@ var require_hybrid = __commonJS({
|
|
|
4229
4229
|
}
|
|
4230
4230
|
const serializable = (0, utils_1.pick)(entity, ...serializableProps);
|
|
4231
4231
|
if ((0, utils_1.hasAnyValue)(entity, serializableProps)) {
|
|
4232
|
-
this.logger.debug(`hybrid/write - writing serializable properties: ${(0,
|
|
4232
|
+
this.logger.debug(`hybrid/write - writing serializable properties: ${(0, node_util_1.inspect)(serializable)}`);
|
|
4233
4233
|
await this.filesystem.write({ entityName: entityName2, id, entity: serializable });
|
|
4234
4234
|
} else {
|
|
4235
|
-
this.logger.debug(`hybrid/write - no serializable properties found in ${(0,
|
|
4235
|
+
this.logger.debug(`hybrid/write - no serializable properties found in ${(0, node_util_1.inspect)(serializable)}`);
|
|
4236
4236
|
}
|
|
4237
4237
|
const sensitiveData = (0, utils_1.pick)(entity, ...sensitiveProps);
|
|
4238
4238
|
if ((0, utils_1.hasAnyValue)(sensitiveData, sensitiveProps)) {
|
|
4239
4239
|
this.logger.debug(`hybrid/write - writing sensitive properties to secure store. ID: [${id}]`);
|
|
4240
4240
|
await this.secureStore.save(getFullyQualifiedServiceName(entityName2), id, sensitiveData);
|
|
4241
4241
|
} else {
|
|
4242
|
-
this.logger.debug(`hybrid/write - no sensitive properties found in ${(0,
|
|
4242
|
+
this.logger.debug(`hybrid/write - no sensitive properties found in ${(0, node_util_1.inspect)(entity)}`);
|
|
4243
4243
|
}
|
|
4244
4244
|
return entity;
|
|
4245
4245
|
}
|
|
@@ -4290,11 +4290,12 @@ var require_backend_system = __commonJS({
|
|
|
4290
4290
|
connectionType;
|
|
4291
4291
|
authenticationType;
|
|
4292
4292
|
hasSensitiveData;
|
|
4293
|
+
systemInfo;
|
|
4293
4294
|
serviceKeys;
|
|
4294
4295
|
refreshToken;
|
|
4295
4296
|
username;
|
|
4296
4297
|
password;
|
|
4297
|
-
constructor({ name: name2, url, client, systemType, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType, connectionType }) {
|
|
4298
|
+
constructor({ name: name2, url, client, systemType, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType, connectionType, systemInfo }) {
|
|
4298
4299
|
this.name = name2;
|
|
4299
4300
|
this.url = url;
|
|
4300
4301
|
this.client = client;
|
|
@@ -4308,6 +4309,7 @@ var require_backend_system = __commonJS({
|
|
|
4308
4309
|
this.connectionType = connectionType;
|
|
4309
4310
|
const sensitiveProps = (0, decorators_1.getSensitiveDataProperties)(this);
|
|
4310
4311
|
this.hasSensitiveData = (0, utils_1.hasAnyValue)(this, sensitiveProps);
|
|
4312
|
+
this.systemInfo = systemInfo;
|
|
4311
4313
|
}
|
|
4312
4314
|
};
|
|
4313
4315
|
exports2.BackendSystem = BackendSystem2;
|
|
@@ -4343,6 +4345,10 @@ var require_backend_system = __commonJS({
|
|
|
4343
4345
|
decorators_1.serializable,
|
|
4344
4346
|
__metadata2("design:type", Boolean)
|
|
4345
4347
|
], BackendSystem2.prototype, "hasSensitiveData", void 0);
|
|
4348
|
+
__decorate2([
|
|
4349
|
+
decorators_1.serializable,
|
|
4350
|
+
__metadata2("design:type", Object)
|
|
4351
|
+
], BackendSystem2.prototype, "systemInfo", void 0);
|
|
4346
4352
|
__decorate2([
|
|
4347
4353
|
decorators_1.sensitiveData,
|
|
4348
4354
|
__metadata2("design:type", Object)
|
|
@@ -4359,7 +4365,7 @@ var require_backend_system = __commonJS({
|
|
|
4359
4365
|
decorators_1.sensitiveData,
|
|
4360
4366
|
__metadata2("design:type", String)
|
|
4361
4367
|
], BackendSystem2.prototype, "password", void 0);
|
|
4362
|
-
var
|
|
4368
|
+
var BackendSystemKey7 = class _BackendSystemKey {
|
|
4363
4369
|
url;
|
|
4364
4370
|
client;
|
|
4365
4371
|
static from(system) {
|
|
@@ -4373,7 +4379,7 @@ var require_backend_system = __commonJS({
|
|
|
4373
4379
|
return this.url + `${this.client ? "/" + this.client : ""}`;
|
|
4374
4380
|
}
|
|
4375
4381
|
};
|
|
4376
|
-
exports2.BackendSystemKey =
|
|
4382
|
+
exports2.BackendSystemKey = BackendSystemKey7;
|
|
4377
4383
|
}
|
|
4378
4384
|
});
|
|
4379
4385
|
|
|
@@ -9647,8 +9653,9 @@ var require_transport = __commonJS({
|
|
|
9647
9653
|
var FileTransport = class extends types_1.Transport {
|
|
9648
9654
|
options;
|
|
9649
9655
|
/**
|
|
9656
|
+
* Constructor for FileTransport, expects the options for the transport, file name is mandatory.
|
|
9650
9657
|
*
|
|
9651
|
-
* @param opts
|
|
9658
|
+
* @param opts - options for the transport
|
|
9652
9659
|
*/
|
|
9653
9660
|
constructor(opts) {
|
|
9654
9661
|
super();
|
|
@@ -19341,14 +19348,14 @@ var require_adapter = __commonJS({
|
|
|
19341
19348
|
var transports_1 = require_transports();
|
|
19342
19349
|
var null_transport_1 = require_null_transport();
|
|
19343
19350
|
var vscode_output_channel_transport_1 = require_vscode_output_channel_transport();
|
|
19344
|
-
var
|
|
19351
|
+
var node_util_1 = require("node:util");
|
|
19345
19352
|
var chalk_1 = __importDefault2(require_source());
|
|
19346
19353
|
function toWinstonLogLevel(logLevel) {
|
|
19347
19354
|
return logLevel === void 0 ? void 0 : types_1.LogLevel[logLevel].toLowerCase();
|
|
19348
19355
|
}
|
|
19349
19356
|
var toWinstonTransportOptions = (transportOptions) => {
|
|
19350
19357
|
const { logLevel, ...opts } = transportOptions;
|
|
19351
|
-
return
|
|
19358
|
+
return { ...opts, level: toWinstonLogLevel(logLevel) };
|
|
19352
19359
|
};
|
|
19353
19360
|
var levelColor = {
|
|
19354
19361
|
info: "green",
|
|
@@ -19367,7 +19374,7 @@ var require_adapter = __commonJS({
|
|
|
19367
19374
|
}
|
|
19368
19375
|
};
|
|
19369
19376
|
var ui5ToolingFormat = (moduleName) => winston_1.format.combine(winston_1.format.colorize(), winston_1.format.label({ label: moduleName }), winston_1.format.printf(({ level, message, label }) => {
|
|
19370
|
-
let msg = typeof message === "string" ? message : (0,
|
|
19377
|
+
let msg = typeof message === "string" ? message : (0, node_util_1.inspect)(message);
|
|
19371
19378
|
msg = msg.split(/\r?\n/).join(`
|
|
19372
19379
|
${level} ${chalk_1.default.magenta(label)} `);
|
|
19373
19380
|
return `${level} ${chalk_1.default.magenta(label)} ${msg}`;
|
|
@@ -19393,9 +19400,9 @@ ${level} ${chalk_1.default.magenta(label)} `);
|
|
|
19393
19400
|
return l;
|
|
19394
19401
|
};
|
|
19395
19402
|
var consoleFormat = winston_1.format.combine(winston_1.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.format.printf(({ timestamp, level, message, label, labelColor, ...meta }) => {
|
|
19396
|
-
const msg = typeof message === "string" ? message : (0,
|
|
19403
|
+
const msg = typeof message === "string" ? message : (0, node_util_1.inspect)(message);
|
|
19397
19404
|
const lvl = decorateLevel(level);
|
|
19398
|
-
return `${timestamp} ${lvl} ${decorateLabel(label, labelColor)}: ${msg} ${Object.keys(meta).length ? (0,
|
|
19405
|
+
return `${timestamp} ${lvl} ${decorateLabel(label, labelColor)}: ${msg} ${Object.keys(meta).length ? (0, node_util_1.inspect)(meta) : ""}`;
|
|
19399
19406
|
}));
|
|
19400
19407
|
function toWinstonTransport(transport) {
|
|
19401
19408
|
if (transport instanceof transports_1.NullTransport) {
|
|
@@ -19493,7 +19500,7 @@ var require_logger2 = __commonJS({
|
|
|
19493
19500
|
var winston_1 = __importStar2(require_winston());
|
|
19494
19501
|
var adapter_1 = require_adapter();
|
|
19495
19502
|
var utils_1 = require_utils2();
|
|
19496
|
-
var
|
|
19503
|
+
var node_util_1 = require("node:util");
|
|
19497
19504
|
var defaultLoggerOptions = {
|
|
19498
19505
|
transports: [new transports_1.ConsoleTransport()]
|
|
19499
19506
|
};
|
|
@@ -19536,7 +19543,7 @@ var require_logger2 = __commonJS({
|
|
|
19536
19543
|
}
|
|
19537
19544
|
}
|
|
19538
19545
|
winstonLog({ level, message, metadata }) {
|
|
19539
|
-
const msg = typeof message === "string" ? message : (0,
|
|
19546
|
+
const msg = typeof message === "string" ? message : (0, node_util_1.inspect)(message);
|
|
19540
19547
|
this._logger.log(level, msg, metadata);
|
|
19541
19548
|
}
|
|
19542
19549
|
addToMap(transportMap, transport) {
|
|
@@ -54154,7 +54161,7 @@ var require_package6 = __commonJS({
|
|
|
54154
54161
|
"../telemetry/package.json"(exports2, module2) {
|
|
54155
54162
|
module2.exports = {
|
|
54156
54163
|
name: "@sap-ux/telemetry",
|
|
54157
|
-
version: "0.6.
|
|
54164
|
+
version: "0.6.55",
|
|
54158
54165
|
description: "Library for sending usage telemetry data",
|
|
54159
54166
|
repository: {
|
|
54160
54167
|
type: "git",
|
|
@@ -94366,7 +94373,7 @@ var require_commandRunner = __commonJS({
|
|
|
94366
94373
|
"use strict";
|
|
94367
94374
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
94368
94375
|
exports2.CommandRunner = void 0;
|
|
94369
|
-
var
|
|
94376
|
+
var node_child_process_1 = require("node:child_process");
|
|
94370
94377
|
var CommandRunner = class {
|
|
94371
94378
|
/**
|
|
94372
94379
|
* Run a command with arguments.
|
|
@@ -94385,7 +94392,7 @@ var require_commandRunner = __commonJS({
|
|
|
94385
94392
|
return new Promise((resolve2, reject) => {
|
|
94386
94393
|
const stack = [];
|
|
94387
94394
|
const spawnOpts = process.platform === "win32" ? { ...opts, shell: true } : opts;
|
|
94388
|
-
const spawnedCmd = (0,
|
|
94395
|
+
const spawnedCmd = (0, node_child_process_1.spawn)(cmd, args, spawnOpts);
|
|
94389
94396
|
spawnedCmd.stdout.setEncoding("utf8");
|
|
94390
94397
|
let response;
|
|
94391
94398
|
spawnedCmd.stdout.on("data", (data) => {
|
|
@@ -105768,13 +105775,13 @@ var require_httpsUtils = __commonJS({
|
|
|
105768
105775
|
};
|
|
105769
105776
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
105770
105777
|
exports2.setGlobalRejectUnauthorized = setGlobalRejectUnauthorized;
|
|
105771
|
-
var
|
|
105778
|
+
var node_https_1 = __importDefault2(require("node:https"));
|
|
105772
105779
|
function setGlobalRejectUnauthorized(rejectUnauthorized) {
|
|
105773
|
-
if (
|
|
105774
|
-
|
|
105780
|
+
if (node_https_1.default.globalAgent.options) {
|
|
105781
|
+
node_https_1.default.globalAgent.options.rejectUnauthorized = rejectUnauthorized;
|
|
105775
105782
|
}
|
|
105776
|
-
if (
|
|
105777
|
-
|
|
105783
|
+
if (node_https_1.default.globalAgent.fallbackAgent?.options) {
|
|
105784
|
+
node_https_1.default.globalAgent.fallbackAgent.options.rejectUnauthorized = rejectUnauthorized;
|
|
105778
105785
|
}
|
|
105779
105786
|
}
|
|
105780
105787
|
}
|
|
@@ -123176,7 +123183,7 @@ var require_ui5config = __commonJS({
|
|
|
123176
123183
|
var constants_1 = require_constants10();
|
|
123177
123184
|
var ajv_1 = __importDefault2(require_ajv());
|
|
123178
123185
|
var node_path_1 = require("node:path");
|
|
123179
|
-
var promises_1 = require("fs/promises");
|
|
123186
|
+
var promises_1 = require("node:fs/promises");
|
|
123180
123187
|
var js_yaml_1 = __importDefault2(require_js_yaml());
|
|
123181
123188
|
var UI5Config = class _UI5Config {
|
|
123182
123189
|
document;
|
|
@@ -131730,6 +131737,41 @@ var require_file4 = __commonJS({
|
|
|
131730
131737
|
}
|
|
131731
131738
|
});
|
|
131732
131739
|
|
|
131740
|
+
// ../project-access/dist/path/normalize.js
|
|
131741
|
+
var require_normalize2 = __commonJS({
|
|
131742
|
+
"../project-access/dist/path/normalize.js"(exports2) {
|
|
131743
|
+
"use strict";
|
|
131744
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
131745
|
+
exports2.normalizePath = normalizePath2;
|
|
131746
|
+
var node_fs_1 = require("node:fs");
|
|
131747
|
+
var toUpperCase;
|
|
131748
|
+
function normalizePath2(path3) {
|
|
131749
|
+
if (process.platform === "win32") {
|
|
131750
|
+
if (toUpperCase === void 0) {
|
|
131751
|
+
const driveLetter = node_fs_1.realpathSync.native("\\")[0];
|
|
131752
|
+
toUpperCase = driveLetter === driveLetter.toUpperCase();
|
|
131753
|
+
}
|
|
131754
|
+
const correctedDriveLetter = toUpperCase ? path3.charAt(0).toUpperCase() : path3.charAt(0).toLowerCase();
|
|
131755
|
+
return correctedDriveLetter + path3.slice(1);
|
|
131756
|
+
}
|
|
131757
|
+
return path3;
|
|
131758
|
+
}
|
|
131759
|
+
}
|
|
131760
|
+
});
|
|
131761
|
+
|
|
131762
|
+
// ../project-access/dist/path/index.js
|
|
131763
|
+
var require_path2 = __commonJS({
|
|
131764
|
+
"../project-access/dist/path/index.js"(exports2) {
|
|
131765
|
+
"use strict";
|
|
131766
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
131767
|
+
exports2.normalizePath = void 0;
|
|
131768
|
+
var normalize_1 = require_normalize2();
|
|
131769
|
+
Object.defineProperty(exports2, "normalizePath", { enumerable: true, get: function() {
|
|
131770
|
+
return normalize_1.normalizePath;
|
|
131771
|
+
} });
|
|
131772
|
+
}
|
|
131773
|
+
});
|
|
131774
|
+
|
|
131733
131775
|
// ../project-access/dist/project/dependencies.js
|
|
131734
131776
|
var require_dependencies2 = __commonJS({
|
|
131735
131777
|
"../project-access/dist/project/dependencies.js"(exports2) {
|
|
@@ -131782,7 +131824,7 @@ var require_npm_command = __commonJS({
|
|
|
131782
131824
|
"use strict";
|
|
131783
131825
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
131784
131826
|
exports2.execNpmCommand = execNpmCommand;
|
|
131785
|
-
var
|
|
131827
|
+
var node_child_process_1 = require("node:child_process");
|
|
131786
131828
|
async function execNpmCommand(commandArguments, options2) {
|
|
131787
131829
|
return new Promise((resolve2, reject) => {
|
|
131788
131830
|
const isWin = process.platform.startsWith("win");
|
|
@@ -131791,7 +131833,7 @@ var require_npm_command = __commonJS({
|
|
|
131791
131833
|
const logger2 = options2?.logger;
|
|
131792
131834
|
const cwd = options2?.cwd;
|
|
131793
131835
|
const spawnOptions = typeof cwd === "string" ? { ...defaultSpawnOptions, cwd } : defaultSpawnOptions;
|
|
131794
|
-
const spawnProcess = (0,
|
|
131836
|
+
const spawnProcess = (0, node_child_process_1.spawn)(npmCommand, commandArguments, spawnOptions);
|
|
131795
131837
|
let stdOut = "";
|
|
131796
131838
|
let stdErr = "";
|
|
131797
131839
|
spawnProcess.stdout.on("data", (data) => {
|
|
@@ -131881,7 +131923,7 @@ var require_module_loader = __commonJS({
|
|
|
131881
131923
|
exports2.getModule = getModule;
|
|
131882
131924
|
exports2.deleteModule = deleteModule;
|
|
131883
131925
|
var node_fs_1 = require("node:fs");
|
|
131884
|
-
var promises_1 = require("fs/promises");
|
|
131926
|
+
var promises_1 = require("node:fs/promises");
|
|
131885
131927
|
var node_path_1 = require("node:path");
|
|
131886
131928
|
var dependencies_1 = require_dependencies2();
|
|
131887
131929
|
var constants_1 = require_constants11();
|
|
@@ -132370,11 +132412,13 @@ var require_search = __commonJS({
|
|
|
132370
132412
|
const excludeFolders2 = ["node_modules", "dist", "webapp", "MDKModule", "gen"];
|
|
132371
132413
|
const fileNames = [constants_1.FileName.Pom, constants_1.FileName.Package, constants_1.FileName.CapJavaApplicationYaml];
|
|
132372
132414
|
const wsRoots = wsFoldersToRootPaths(options2.wsFolders);
|
|
132415
|
+
const noTraversal = options2.noTraversal ?? false;
|
|
132373
132416
|
for (const root of wsRoots) {
|
|
132374
132417
|
const filesToCheck = await (0, file_1.findBy)({
|
|
132375
132418
|
fileNames,
|
|
132376
132419
|
root,
|
|
132377
|
-
excludeFolders: excludeFolders2
|
|
132420
|
+
excludeFolders: excludeFolders2,
|
|
132421
|
+
noTraversal
|
|
132378
132422
|
});
|
|
132379
132423
|
const appYamlsToCheck = Array.from(new Set(filesToCheck.filter((file) => (0, node_path_1.basename)(file) === constants_1.FileName.CapJavaApplicationYaml).map((file) => (0, node_path_1.dirname)(file))));
|
|
132380
132424
|
const foldersToCheck = Array.from(new Set(filesToCheck.filter((file) => (0, node_path_1.basename)(file) !== constants_1.FileName.CapJavaApplicationYaml).map((file) => (0, node_path_1.dirname)(file))));
|
|
@@ -134880,7 +134924,7 @@ var require_is_stream2 = __commonJS({
|
|
|
134880
134924
|
});
|
|
134881
134925
|
|
|
134882
134926
|
// ../../node_modules/.pnpm/vinyl@2.2.1/node_modules/vinyl/lib/normalize.js
|
|
134883
|
-
var
|
|
134927
|
+
var require_normalize3 = __commonJS({
|
|
134884
134928
|
"../../node_modules/.pnpm/vinyl@2.2.1/node_modules/vinyl/lib/normalize.js"(exports2, module2) {
|
|
134885
134929
|
"use strict";
|
|
134886
134930
|
var path3 = require("path");
|
|
@@ -134920,7 +134964,7 @@ var require_vinyl = __commonJS({
|
|
|
134920
134964
|
var cloneBuffer = require_clone_buffer();
|
|
134921
134965
|
var removeTrailingSep = require_remove_trailing_separator();
|
|
134922
134966
|
var isStream = require_is_stream2();
|
|
134923
|
-
var normalize2 =
|
|
134967
|
+
var normalize2 = require_normalize3();
|
|
134924
134968
|
var inspectStream = require_inspect_stream();
|
|
134925
134969
|
var builtInFields = [
|
|
134926
134970
|
"_contents",
|
|
@@ -139162,6 +139206,7 @@ var require_cap = __commonJS({
|
|
|
139162
139206
|
exports2.isCapProject = isCapProject;
|
|
139163
139207
|
exports2.getCapCustomPaths = getCapCustomPaths;
|
|
139164
139208
|
exports2.getCapModelAndServices = getCapModelAndServices;
|
|
139209
|
+
exports2.processServices = processServices;
|
|
139165
139210
|
exports2.getCdsFiles = getCdsFiles;
|
|
139166
139211
|
exports2.getCdsRoots = getCdsRoots;
|
|
139167
139212
|
exports2.getCdsServices = getCdsServices;
|
|
@@ -139175,7 +139220,7 @@ var require_cap = __commonJS({
|
|
|
139175
139220
|
exports2.getWorkspaceInfo = getWorkspaceInfo;
|
|
139176
139221
|
exports2.satisfiesMinCdsVersion = satisfiesMinCdsVersion;
|
|
139177
139222
|
exports2.hasMinCdsVersion = hasMinCdsVersion;
|
|
139178
|
-
var
|
|
139223
|
+
var node_child_process_1 = require("node:child_process");
|
|
139179
139224
|
var node_path_1 = require("node:path");
|
|
139180
139225
|
var constants_1 = require_constants11();
|
|
139181
139226
|
var file_1 = require_file4();
|
|
@@ -139265,11 +139310,20 @@ var require_cap = __commonJS({
|
|
|
139265
139310
|
_logger?.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.root': ${cds.root}`);
|
|
139266
139311
|
_logger?.info(`@sap-ux/project-access:getCapModelAndServices - Using 'projectRoot': ${_projectRoot}`);
|
|
139267
139312
|
let services = cds.compile.to.serviceinfo(model, { root: _projectRoot }) ?? [];
|
|
139268
|
-
|
|
139269
|
-
|
|
139270
|
-
|
|
139271
|
-
|
|
139272
|
-
|
|
139313
|
+
services = processServices(services);
|
|
139314
|
+
return {
|
|
139315
|
+
model,
|
|
139316
|
+
services,
|
|
139317
|
+
cdsVersionInfo: {
|
|
139318
|
+
home: cds.home,
|
|
139319
|
+
version: cds.version,
|
|
139320
|
+
root: cds.root
|
|
139321
|
+
}
|
|
139322
|
+
};
|
|
139323
|
+
}
|
|
139324
|
+
function processServices(services) {
|
|
139325
|
+
if (services && Array.isArray(services)) {
|
|
139326
|
+
return services.filter((service) => service.urlPath && service.endpoints === void 0 || service.endpoints?.find(filterCapServiceEndpoints)).map((value) => {
|
|
139273
139327
|
const { endpoints, urlPath } = value;
|
|
139274
139328
|
const odataEndpoint = endpoints?.find(filterCapServiceEndpoints);
|
|
139275
139329
|
const endpointPath = odataEndpoint?.path ?? urlPath;
|
|
@@ -139280,15 +139334,7 @@ var require_cap = __commonJS({
|
|
|
139280
139334
|
};
|
|
139281
139335
|
});
|
|
139282
139336
|
}
|
|
139283
|
-
return
|
|
139284
|
-
model,
|
|
139285
|
-
services,
|
|
139286
|
-
cdsVersionInfo: {
|
|
139287
|
-
home: cds.home,
|
|
139288
|
-
version: cds.version,
|
|
139289
|
-
root: cds.root
|
|
139290
|
-
}
|
|
139291
|
-
};
|
|
139337
|
+
return [];
|
|
139292
139338
|
}
|
|
139293
139339
|
async function getCdsFiles(projectRoot, ignoreErrors = false, envRoot) {
|
|
139294
139340
|
let cdsFiles = [];
|
|
@@ -139523,7 +139569,7 @@ var require_cap = __commonJS({
|
|
|
139523
139569
|
async function getCdsVersionInfo(cwd) {
|
|
139524
139570
|
return new Promise((resolve2, reject) => {
|
|
139525
139571
|
let out = "";
|
|
139526
|
-
const cdsVersionInfo = (0,
|
|
139572
|
+
const cdsVersionInfo = (0, node_child_process_1.spawn)("cds", ["--version"], { cwd, shell: true });
|
|
139527
139573
|
cdsVersionInfo.stdout.on("data", (data) => {
|
|
139528
139574
|
out += data.toString();
|
|
139529
139575
|
});
|
|
@@ -139896,7 +139942,7 @@ var require_resolve3 = __commonJS({
|
|
|
139896
139942
|
});
|
|
139897
139943
|
|
|
139898
139944
|
// ../i18n/dist/utils/path.js
|
|
139899
|
-
var
|
|
139945
|
+
var require_path3 = __commonJS({
|
|
139900
139946
|
"../i18n/dist/utils/path.js"(exports2) {
|
|
139901
139947
|
"use strict";
|
|
139902
139948
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -140252,7 +140298,7 @@ var require_utils13 = __commonJS({
|
|
|
140252
140298
|
Object.defineProperty(exports2, "getCapI18nFolder", { enumerable: true, get: function() {
|
|
140253
140299
|
return resolve_1.getCapI18nFolder;
|
|
140254
140300
|
} });
|
|
140255
|
-
var path_1 =
|
|
140301
|
+
var path_1 = require_path3();
|
|
140256
140302
|
Object.defineProperty(exports2, "csvPath", { enumerable: true, get: function() {
|
|
140257
140303
|
return path_1.csvPath;
|
|
140258
140304
|
} });
|
|
@@ -145636,7 +145682,7 @@ var require_write4 = __commonJS({
|
|
|
145636
145682
|
var __1 = require_project();
|
|
145637
145683
|
var node_path_1 = require("node:path");
|
|
145638
145684
|
var file_1 = require_file4();
|
|
145639
|
-
var promises_1 = require("fs/promises");
|
|
145685
|
+
var promises_1 = require("node:fs/promises");
|
|
145640
145686
|
async function createCapI18nEntries(root, filePath, newI18nEntries, fs3) {
|
|
145641
145687
|
const env3 = await (0, __1.getCapEnvironment)(root);
|
|
145642
145688
|
return (0, i18n_1.createCapI18nEntries)(root, filePath, newI18nEntries, env3, fs3);
|
|
@@ -145720,41 +145766,6 @@ var require_i18n3 = __commonJS({
|
|
|
145720
145766
|
}
|
|
145721
145767
|
});
|
|
145722
145768
|
|
|
145723
|
-
// ../project-access/dist/path/normalize.js
|
|
145724
|
-
var require_normalize3 = __commonJS({
|
|
145725
|
-
"../project-access/dist/path/normalize.js"(exports2) {
|
|
145726
|
-
"use strict";
|
|
145727
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
145728
|
-
exports2.normalizePath = normalizePath2;
|
|
145729
|
-
var node_fs_1 = require("node:fs");
|
|
145730
|
-
var toUpperCase;
|
|
145731
|
-
function normalizePath2(path3) {
|
|
145732
|
-
if (process.platform === "win32") {
|
|
145733
|
-
if (toUpperCase === void 0) {
|
|
145734
|
-
const driveLetter = node_fs_1.realpathSync.native("\\")[0];
|
|
145735
|
-
toUpperCase = driveLetter === driveLetter.toUpperCase();
|
|
145736
|
-
}
|
|
145737
|
-
const correctedDriveLetter = toUpperCase ? path3.charAt(0).toUpperCase() : path3.charAt(0).toLowerCase();
|
|
145738
|
-
return correctedDriveLetter + path3.slice(1);
|
|
145739
|
-
}
|
|
145740
|
-
return path3;
|
|
145741
|
-
}
|
|
145742
|
-
}
|
|
145743
|
-
});
|
|
145744
|
-
|
|
145745
|
-
// ../project-access/dist/path/index.js
|
|
145746
|
-
var require_path3 = __commonJS({
|
|
145747
|
-
"../project-access/dist/path/index.js"(exports2) {
|
|
145748
|
-
"use strict";
|
|
145749
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
145750
|
-
exports2.normalizePath = void 0;
|
|
145751
|
-
var normalize_1 = require_normalize3();
|
|
145752
|
-
Object.defineProperty(exports2, "normalizePath", { enumerable: true, get: function() {
|
|
145753
|
-
return normalize_1.normalizePath;
|
|
145754
|
-
} });
|
|
145755
|
-
}
|
|
145756
|
-
});
|
|
145757
|
-
|
|
145758
145769
|
// ../project-access/dist/project/info.js
|
|
145759
145770
|
var require_info = __commonJS({
|
|
145760
145771
|
"../project-access/dist/project/info.js"(exports2) {
|
|
@@ -145776,7 +145787,7 @@ var require_info = __commonJS({
|
|
|
145776
145787
|
var service_1 = require_service2();
|
|
145777
145788
|
var ui5_config_1 = require_ui5_config();
|
|
145778
145789
|
var semver_1 = require_semver5();
|
|
145779
|
-
var path_1 =
|
|
145790
|
+
var path_1 = require_path2();
|
|
145780
145791
|
async function getProject(root, memFs) {
|
|
145781
145792
|
if (!await (0, file_1.fileExists)((0, node_path_1.join)(root, constants_1.FileName.Package), memFs)) {
|
|
145782
145793
|
throw new Error(`The project root folder '${root}' is not a Fiori project. No 'package.json' found.`);
|
|
@@ -145958,7 +145969,7 @@ var require_specification = __commonJS({
|
|
|
145958
145969
|
exports2.refreshSpecificationDistTags = refreshSpecificationDistTags;
|
|
145959
145970
|
exports2.getSpecificationPath = getSpecificationPath;
|
|
145960
145971
|
var node_fs_1 = require("node:fs");
|
|
145961
|
-
var promises_1 = require("fs/promises");
|
|
145972
|
+
var promises_1 = require("node:fs/promises");
|
|
145962
145973
|
var node_path_1 = require("node:path");
|
|
145963
145974
|
var semver_1 = require_semver5();
|
|
145964
145975
|
var module_loader_1 = require_module_loader();
|
|
@@ -146498,8 +146509,8 @@ var require_project = __commonJS({
|
|
|
146498
146509
|
"../project-access/dist/project/index.js"(exports2) {
|
|
146499
146510
|
"use strict";
|
|
146500
146511
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
146501
|
-
exports2.
|
|
146502
|
-
exports2.readFlexChanges = exports2.refreshSpecificationDistTags = exports2.getSpecificationPath = exports2.getSpecificationModuleFromCache = exports2.getSpecification = exports2.hasUI5CliV3 = void 0;
|
|
146512
|
+
exports2.createApplicationAccess = exports2.getMtaPath = exports2.getPathMappings = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getAllUi5YamlFileNames = exports2.readUi5Yaml = exports2.getWebappPath = exports2.findRootsForPath = exports2.findCapProjectRoot = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getProjectType = exports2.getProject = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getCapI18nFolderNames = exports2.hasDependency = exports2.getNodeModulesPath = exports2.addPackageDevDependency = exports2.getMainService = exports2.filterDataSourcesByType = exports2.processServices = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.toReferenceUri = exports2.readCapServiceMetadataEdmx = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapServiceName = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.deleteCapApp = exports2.clearCdsModuleCache = void 0;
|
|
146513
|
+
exports2.readFlexChanges = exports2.refreshSpecificationDistTags = exports2.getSpecificationPath = exports2.getSpecificationModuleFromCache = exports2.getSpecification = exports2.hasUI5CliV3 = exports2.updatePackageScript = exports2.createProjectAccess = void 0;
|
|
146503
146514
|
var cap_1 = require_cap();
|
|
146504
146515
|
Object.defineProperty(exports2, "clearCdsModuleCache", { enumerable: true, get: function() {
|
|
146505
146516
|
return cap_1.clearCdsModuleCache;
|
|
@@ -146555,10 +146566,16 @@ var require_project = __commonJS({
|
|
|
146555
146566
|
Object.defineProperty(exports2, "checkCdsUi5PluginEnabled", { enumerable: true, get: function() {
|
|
146556
146567
|
return cap_1.checkCdsUi5PluginEnabled;
|
|
146557
146568
|
} });
|
|
146569
|
+
Object.defineProperty(exports2, "processServices", { enumerable: true, get: function() {
|
|
146570
|
+
return cap_1.processServices;
|
|
146571
|
+
} });
|
|
146558
146572
|
var service_1 = require_service2();
|
|
146559
146573
|
Object.defineProperty(exports2, "filterDataSourcesByType", { enumerable: true, get: function() {
|
|
146560
146574
|
return service_1.filterDataSourcesByType;
|
|
146561
146575
|
} });
|
|
146576
|
+
Object.defineProperty(exports2, "getMainService", { enumerable: true, get: function() {
|
|
146577
|
+
return service_1.getMainService;
|
|
146578
|
+
} });
|
|
146562
146579
|
var dependencies_1 = require_dependencies2();
|
|
146563
146580
|
Object.defineProperty(exports2, "addPackageDevDependency", { enumerable: true, get: function() {
|
|
146564
146581
|
return dependencies_1.addPackageDevDependency;
|
|
@@ -148696,8 +148713,8 @@ var require_dist14 = __commonJS({
|
|
|
148696
148713
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding2(exports3, m, p);
|
|
148697
148714
|
};
|
|
148698
148715
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
148699
|
-
exports2.
|
|
148700
|
-
exports2.hasDependency = exports2.execNpmCommand = exports2.readFlexChanges = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = void 0;
|
|
148716
|
+
exports2.hasUI5CliV3 = exports2.getWebappPath = exports2.getProjectType = exports2.getProject = exports2.getPathMappings = exports2.getNodeModulesPath = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getMtaPath = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getSpecificationPath = exports2.getSpecificationModuleFromCache = exports2.getSpecification = exports2.getCapI18nFolderNames = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapServiceName = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.getAllUi5YamlFileNames = exports2.findRootsForPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findCapProjectRoot = exports2.findAllApps = exports2.filterDataSourcesByType = exports2.deleteCapApp = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.clearCdsModuleCache = exports2.addPackageDevDependency = exports2.normalizePath = exports2.getFilePaths = exports2.fioriToolsDirectory = exports2.MinCdsVersion = exports2.MinCdsPluginUi5Version = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
|
|
148717
|
+
exports2.hasDependency = exports2.execNpmCommand = exports2.getMainService = exports2.processServices = exports2.readFlexChanges = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = void 0;
|
|
148701
148718
|
var constants_1 = require_constants11();
|
|
148702
148719
|
Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
|
|
148703
148720
|
return constants_1.FileName;
|
|
@@ -148714,10 +148731,17 @@ var require_dist14 = __commonJS({
|
|
|
148714
148731
|
Object.defineProperty(exports2, "MinCdsVersion", { enumerable: true, get: function() {
|
|
148715
148732
|
return constants_1.MinCdsVersion;
|
|
148716
148733
|
} });
|
|
148734
|
+
Object.defineProperty(exports2, "fioriToolsDirectory", { enumerable: true, get: function() {
|
|
148735
|
+
return constants_1.fioriToolsDirectory;
|
|
148736
|
+
} });
|
|
148717
148737
|
var file_1 = require_file4();
|
|
148718
148738
|
Object.defineProperty(exports2, "getFilePaths", { enumerable: true, get: function() {
|
|
148719
148739
|
return file_1.getFilePaths;
|
|
148720
148740
|
} });
|
|
148741
|
+
var path_1 = require_path2();
|
|
148742
|
+
Object.defineProperty(exports2, "normalizePath", { enumerable: true, get: function() {
|
|
148743
|
+
return path_1.normalizePath;
|
|
148744
|
+
} });
|
|
148721
148745
|
var project_1 = require_project();
|
|
148722
148746
|
Object.defineProperty(exports2, "addPackageDevDependency", { enumerable: true, get: function() {
|
|
148723
148747
|
return project_1.addPackageDevDependency;
|
|
@@ -148884,6 +148908,12 @@ var require_dist14 = __commonJS({
|
|
|
148884
148908
|
Object.defineProperty(exports2, "readFlexChanges", { enumerable: true, get: function() {
|
|
148885
148909
|
return project_1.readFlexChanges;
|
|
148886
148910
|
} });
|
|
148911
|
+
Object.defineProperty(exports2, "processServices", { enumerable: true, get: function() {
|
|
148912
|
+
return project_1.processServices;
|
|
148913
|
+
} });
|
|
148914
|
+
Object.defineProperty(exports2, "getMainService", { enumerable: true, get: function() {
|
|
148915
|
+
return project_1.getMainService;
|
|
148916
|
+
} });
|
|
148887
148917
|
var npm_command_1 = require_npm_command();
|
|
148888
148918
|
Object.defineProperty(exports2, "execNpmCommand", { enumerable: true, get: function() {
|
|
148889
148919
|
return npm_command_1.execNpmCommand;
|
|
@@ -149865,7 +149895,7 @@ var require_param_processing = __commonJS({
|
|
|
149865
149895
|
} else {
|
|
149866
149896
|
val2 = param;
|
|
149867
149897
|
}
|
|
149868
|
-
if (!isNaN(val2)) {
|
|
149898
|
+
if (typeof val2 === "number" && !Number.isNaN(val2)) {
|
|
149869
149899
|
processedMeasurements[key] = val2;
|
|
149870
149900
|
} else {
|
|
149871
149901
|
processedDimensions[key] = val2;
|
|
@@ -153323,7 +153353,7 @@ var require_redirect = __commonJS({
|
|
|
153323
153353
|
};
|
|
153324
153354
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
153325
153355
|
exports2.setupRedirectHandling = setupRedirectHandling;
|
|
153326
|
-
var
|
|
153356
|
+
var node_http_1 = __importDefault2(require("node:http"));
|
|
153327
153357
|
var error_1 = require_error5();
|
|
153328
153358
|
var message_1 = require_message();
|
|
153329
153359
|
var static_1 = require_static();
|
|
@@ -153335,7 +153365,7 @@ var require_redirect = __commonJS({
|
|
|
153335
153365
|
reject(new error_1.TimeoutError(`Timeout. Did not get a response within ${(0, message_1.prettyPrintTimeInMs)(timeout)}`));
|
|
153336
153366
|
};
|
|
153337
153367
|
const timer = setTimeout(handleTimeout, timeout);
|
|
153338
|
-
server =
|
|
153368
|
+
server = node_http_1.default.createServer((req, res) => {
|
|
153339
153369
|
const reqUrl = new URL(req.url, `http://${req.headers.host}`);
|
|
153340
153370
|
if (reqUrl.pathname === REDIRECT_PATH) {
|
|
153341
153371
|
if (timer) {
|
|
@@ -153397,181 +153427,6 @@ var require_reentrance_ticket = __commonJS({
|
|
|
153397
153427
|
}
|
|
153398
153428
|
});
|
|
153399
153429
|
|
|
153400
|
-
// ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
|
|
153401
|
-
var require_define_data_property = __commonJS({
|
|
153402
|
-
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports2, module2) {
|
|
153403
|
-
"use strict";
|
|
153404
|
-
var $defineProperty = require_es_define_property();
|
|
153405
|
-
var $SyntaxError = require_syntax();
|
|
153406
|
-
var $TypeError = require_type();
|
|
153407
|
-
var gopd = require_gopd();
|
|
153408
|
-
module2.exports = function defineDataProperty(obj, property, value) {
|
|
153409
|
-
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
153410
|
-
throw new $TypeError("`obj` must be an object or a function`");
|
|
153411
|
-
}
|
|
153412
|
-
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
153413
|
-
throw new $TypeError("`property` must be a string or a symbol`");
|
|
153414
|
-
}
|
|
153415
|
-
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
153416
|
-
throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
153417
|
-
}
|
|
153418
|
-
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
153419
|
-
throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
153420
|
-
}
|
|
153421
|
-
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
153422
|
-
throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
153423
|
-
}
|
|
153424
|
-
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
153425
|
-
throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
153426
|
-
}
|
|
153427
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
153428
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
153429
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
153430
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
153431
|
-
var desc = !!gopd && gopd(obj, property);
|
|
153432
|
-
if ($defineProperty) {
|
|
153433
|
-
$defineProperty(obj, property, {
|
|
153434
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
153435
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
153436
|
-
value,
|
|
153437
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
153438
|
-
});
|
|
153439
|
-
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
153440
|
-
obj[property] = value;
|
|
153441
|
-
} else {
|
|
153442
|
-
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
153443
|
-
}
|
|
153444
|
-
};
|
|
153445
|
-
}
|
|
153446
|
-
});
|
|
153447
|
-
|
|
153448
|
-
// ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
|
|
153449
|
-
var require_has_property_descriptors = __commonJS({
|
|
153450
|
-
"../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports2, module2) {
|
|
153451
|
-
"use strict";
|
|
153452
|
-
var $defineProperty = require_es_define_property();
|
|
153453
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
153454
|
-
return !!$defineProperty;
|
|
153455
|
-
};
|
|
153456
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
153457
|
-
if (!$defineProperty) {
|
|
153458
|
-
return null;
|
|
153459
|
-
}
|
|
153460
|
-
try {
|
|
153461
|
-
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
153462
|
-
} catch (e) {
|
|
153463
|
-
return true;
|
|
153464
|
-
}
|
|
153465
|
-
};
|
|
153466
|
-
module2.exports = hasPropertyDescriptors;
|
|
153467
|
-
}
|
|
153468
|
-
});
|
|
153469
|
-
|
|
153470
|
-
// ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
|
|
153471
|
-
var require_set_function_length = __commonJS({
|
|
153472
|
-
"../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(exports2, module2) {
|
|
153473
|
-
"use strict";
|
|
153474
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
153475
|
-
var define2 = require_define_data_property();
|
|
153476
|
-
var hasDescriptors = require_has_property_descriptors()();
|
|
153477
|
-
var gOPD = require_gopd();
|
|
153478
|
-
var $TypeError = require_type();
|
|
153479
|
-
var $floor = GetIntrinsic("%Math.floor%");
|
|
153480
|
-
module2.exports = function setFunctionLength(fn2, length) {
|
|
153481
|
-
if (typeof fn2 !== "function") {
|
|
153482
|
-
throw new $TypeError("`fn` is not a function");
|
|
153483
|
-
}
|
|
153484
|
-
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
|
|
153485
|
-
throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
153486
|
-
}
|
|
153487
|
-
var loose = arguments.length > 2 && !!arguments[2];
|
|
153488
|
-
var functionLengthIsConfigurable = true;
|
|
153489
|
-
var functionLengthIsWritable = true;
|
|
153490
|
-
if ("length" in fn2 && gOPD) {
|
|
153491
|
-
var desc = gOPD(fn2, "length");
|
|
153492
|
-
if (desc && !desc.configurable) {
|
|
153493
|
-
functionLengthIsConfigurable = false;
|
|
153494
|
-
}
|
|
153495
|
-
if (desc && !desc.writable) {
|
|
153496
|
-
functionLengthIsWritable = false;
|
|
153497
|
-
}
|
|
153498
|
-
}
|
|
153499
|
-
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
153500
|
-
if (hasDescriptors) {
|
|
153501
|
-
define2(
|
|
153502
|
-
/** @type {Parameters<define>[0]} */
|
|
153503
|
-
fn2,
|
|
153504
|
-
"length",
|
|
153505
|
-
length,
|
|
153506
|
-
true,
|
|
153507
|
-
true
|
|
153508
|
-
);
|
|
153509
|
-
} else {
|
|
153510
|
-
define2(
|
|
153511
|
-
/** @type {Parameters<define>[0]} */
|
|
153512
|
-
fn2,
|
|
153513
|
-
"length",
|
|
153514
|
-
length
|
|
153515
|
-
);
|
|
153516
|
-
}
|
|
153517
|
-
}
|
|
153518
|
-
return fn2;
|
|
153519
|
-
};
|
|
153520
|
-
}
|
|
153521
|
-
});
|
|
153522
|
-
|
|
153523
|
-
// ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js
|
|
153524
|
-
var require_call_bind = __commonJS({
|
|
153525
|
-
"../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports2, module2) {
|
|
153526
|
-
"use strict";
|
|
153527
|
-
var bind = require_function_bind();
|
|
153528
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
153529
|
-
var setFunctionLength = require_set_function_length();
|
|
153530
|
-
var $TypeError = require_type();
|
|
153531
|
-
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
153532
|
-
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
153533
|
-
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
|
|
153534
|
-
var $defineProperty = require_es_define_property();
|
|
153535
|
-
var $max = GetIntrinsic("%Math.max%");
|
|
153536
|
-
module2.exports = function callBind(originalFunction) {
|
|
153537
|
-
if (typeof originalFunction !== "function") {
|
|
153538
|
-
throw new $TypeError("a function is required");
|
|
153539
|
-
}
|
|
153540
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
153541
|
-
return setFunctionLength(
|
|
153542
|
-
func,
|
|
153543
|
-
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
153544
|
-
true
|
|
153545
|
-
);
|
|
153546
|
-
};
|
|
153547
|
-
var applyBind = function applyBind2() {
|
|
153548
|
-
return $reflectApply(bind, $apply, arguments);
|
|
153549
|
-
};
|
|
153550
|
-
if ($defineProperty) {
|
|
153551
|
-
$defineProperty(module2.exports, "apply", { value: applyBind });
|
|
153552
|
-
} else {
|
|
153553
|
-
module2.exports.apply = applyBind;
|
|
153554
|
-
}
|
|
153555
|
-
}
|
|
153556
|
-
});
|
|
153557
|
-
|
|
153558
|
-
// ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js
|
|
153559
|
-
var require_callBound = __commonJS({
|
|
153560
|
-
"../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js"(exports2, module2) {
|
|
153561
|
-
"use strict";
|
|
153562
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
153563
|
-
var callBind = require_call_bind();
|
|
153564
|
-
var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
|
|
153565
|
-
module2.exports = function callBoundIntrinsic(name2, allowMissing) {
|
|
153566
|
-
var intrinsic = GetIntrinsic(name2, !!allowMissing);
|
|
153567
|
-
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
153568
|
-
return callBind(intrinsic);
|
|
153569
|
-
}
|
|
153570
|
-
return intrinsic;
|
|
153571
|
-
};
|
|
153572
|
-
}
|
|
153573
|
-
});
|
|
153574
|
-
|
|
153575
153430
|
// ../../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/util.inspect.js
|
|
153576
153431
|
var require_util_inspect = __commonJS({
|
|
153577
153432
|
"../../node_modules/.pnpm/object-inspect@1.13.4/node_modules/object-inspect/util.inspect.js"(exports2, module2) {
|
|
@@ -154110,33 +153965,31 @@ var require_object_inspect = __commonJS({
|
|
|
154110
153965
|
}
|
|
154111
153966
|
});
|
|
154112
153967
|
|
|
154113
|
-
// ../../node_modules/.pnpm/side-channel@1.0.
|
|
154114
|
-
var
|
|
154115
|
-
"../../node_modules/.pnpm/side-channel@1.0.
|
|
153968
|
+
// ../../node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.js
|
|
153969
|
+
var require_side_channel_list = __commonJS({
|
|
153970
|
+
"../../node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.js"(exports2, module2) {
|
|
154116
153971
|
"use strict";
|
|
154117
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
154118
|
-
var callBound = require_callBound();
|
|
154119
153972
|
var inspect = require_object_inspect();
|
|
154120
|
-
var $TypeError =
|
|
154121
|
-
var
|
|
154122
|
-
|
|
154123
|
-
|
|
154124
|
-
|
|
154125
|
-
var $weakMapHas = callBound("WeakMap.prototype.has", true);
|
|
154126
|
-
var $mapGet = callBound("Map.prototype.get", true);
|
|
154127
|
-
var $mapSet = callBound("Map.prototype.set", true);
|
|
154128
|
-
var $mapHas = callBound("Map.prototype.has", true);
|
|
154129
|
-
var listGetNode = function(list, key) {
|
|
154130
|
-
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
153973
|
+
var $TypeError = require_type();
|
|
153974
|
+
var listGetNode = function(list, key, isDelete) {
|
|
153975
|
+
var prev = list;
|
|
153976
|
+
var curr;
|
|
153977
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
154131
153978
|
if (curr.key === key) {
|
|
154132
153979
|
prev.next = curr.next;
|
|
154133
|
-
|
|
154134
|
-
|
|
153980
|
+
if (!isDelete) {
|
|
153981
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */
|
|
153982
|
+
list.next;
|
|
153983
|
+
list.next = curr;
|
|
153984
|
+
}
|
|
154135
153985
|
return curr;
|
|
154136
153986
|
}
|
|
154137
153987
|
}
|
|
154138
153988
|
};
|
|
154139
153989
|
var listGet = function(objects, key) {
|
|
153990
|
+
if (!objects) {
|
|
153991
|
+
return void 0;
|
|
153992
|
+
}
|
|
154140
153993
|
var node = listGetNode(objects, key);
|
|
154141
153994
|
return node && node.value;
|
|
154142
153995
|
};
|
|
@@ -154145,8 +153998,9 @@ var require_side_channel = __commonJS({
|
|
|
154145
153998
|
if (node) {
|
|
154146
153999
|
node.value = value;
|
|
154147
154000
|
} else {
|
|
154148
|
-
objects.next = {
|
|
154149
|
-
|
|
154001
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
154002
|
+
{
|
|
154003
|
+
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
154150
154004
|
key,
|
|
154151
154005
|
next: objects.next,
|
|
154152
154006
|
value
|
|
@@ -154154,11 +154008,17 @@ var require_side_channel = __commonJS({
|
|
|
154154
154008
|
}
|
|
154155
154009
|
};
|
|
154156
154010
|
var listHas = function(objects, key) {
|
|
154011
|
+
if (!objects) {
|
|
154012
|
+
return false;
|
|
154013
|
+
}
|
|
154157
154014
|
return !!listGetNode(objects, key);
|
|
154158
154015
|
};
|
|
154159
|
-
|
|
154160
|
-
|
|
154161
|
-
|
|
154016
|
+
var listDelete = function(objects, key) {
|
|
154017
|
+
if (objects) {
|
|
154018
|
+
return listGetNode(objects, key, true);
|
|
154019
|
+
}
|
|
154020
|
+
};
|
|
154021
|
+
module2.exports = function getSideChannelList() {
|
|
154162
154022
|
var $o;
|
|
154163
154023
|
var channel = {
|
|
154164
154024
|
assert: function(key) {
|
|
@@ -154166,54 +154026,223 @@ var require_side_channel = __commonJS({
|
|
|
154166
154026
|
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
154167
154027
|
}
|
|
154168
154028
|
},
|
|
154029
|
+
"delete": function(key) {
|
|
154030
|
+
var root = $o && $o.next;
|
|
154031
|
+
var deletedNode = listDelete($o, key);
|
|
154032
|
+
if (deletedNode && root && root === deletedNode) {
|
|
154033
|
+
$o = void 0;
|
|
154034
|
+
}
|
|
154035
|
+
return !!deletedNode;
|
|
154036
|
+
},
|
|
154169
154037
|
get: function(key) {
|
|
154170
|
-
|
|
154171
|
-
|
|
154172
|
-
|
|
154173
|
-
|
|
154174
|
-
|
|
154175
|
-
|
|
154176
|
-
|
|
154177
|
-
|
|
154178
|
-
|
|
154179
|
-
|
|
154180
|
-
|
|
154038
|
+
return listGet($o, key);
|
|
154039
|
+
},
|
|
154040
|
+
has: function(key) {
|
|
154041
|
+
return listHas($o, key);
|
|
154042
|
+
},
|
|
154043
|
+
set: function(key, value) {
|
|
154044
|
+
if (!$o) {
|
|
154045
|
+
$o = {
|
|
154046
|
+
next: void 0
|
|
154047
|
+
};
|
|
154048
|
+
}
|
|
154049
|
+
listSet(
|
|
154050
|
+
/** @type {NonNullable<typeof $o>} */
|
|
154051
|
+
$o,
|
|
154052
|
+
key,
|
|
154053
|
+
value
|
|
154054
|
+
);
|
|
154055
|
+
}
|
|
154056
|
+
};
|
|
154057
|
+
return channel;
|
|
154058
|
+
};
|
|
154059
|
+
}
|
|
154060
|
+
});
|
|
154061
|
+
|
|
154062
|
+
// ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
154063
|
+
var require_call_bound = __commonJS({
|
|
154064
|
+
"../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports2, module2) {
|
|
154065
|
+
"use strict";
|
|
154066
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
154067
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
154068
|
+
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
154069
|
+
module2.exports = function callBoundIntrinsic(name2, allowMissing) {
|
|
154070
|
+
var intrinsic = (
|
|
154071
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
154072
|
+
GetIntrinsic(name2, !!allowMissing)
|
|
154073
|
+
);
|
|
154074
|
+
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
154075
|
+
return callBindBasic(
|
|
154076
|
+
/** @type {const} */
|
|
154077
|
+
[intrinsic]
|
|
154078
|
+
);
|
|
154079
|
+
}
|
|
154080
|
+
return intrinsic;
|
|
154081
|
+
};
|
|
154082
|
+
}
|
|
154083
|
+
});
|
|
154084
|
+
|
|
154085
|
+
// ../../node_modules/.pnpm/side-channel-map@1.0.1/node_modules/side-channel-map/index.js
|
|
154086
|
+
var require_side_channel_map = __commonJS({
|
|
154087
|
+
"../../node_modules/.pnpm/side-channel-map@1.0.1/node_modules/side-channel-map/index.js"(exports2, module2) {
|
|
154088
|
+
"use strict";
|
|
154089
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
154090
|
+
var callBound = require_call_bound();
|
|
154091
|
+
var inspect = require_object_inspect();
|
|
154092
|
+
var $TypeError = require_type();
|
|
154093
|
+
var $Map = GetIntrinsic("%Map%", true);
|
|
154094
|
+
var $mapGet = callBound("Map.prototype.get", true);
|
|
154095
|
+
var $mapSet = callBound("Map.prototype.set", true);
|
|
154096
|
+
var $mapHas = callBound("Map.prototype.has", true);
|
|
154097
|
+
var $mapDelete = callBound("Map.prototype.delete", true);
|
|
154098
|
+
var $mapSize = callBound("Map.prototype.size", true);
|
|
154099
|
+
module2.exports = !!$Map && /** @type {Exclude<import('.'), false>} */
|
|
154100
|
+
function getSideChannelMap() {
|
|
154101
|
+
var $m;
|
|
154102
|
+
var channel = {
|
|
154103
|
+
assert: function(key) {
|
|
154104
|
+
if (!channel.has(key)) {
|
|
154105
|
+
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
154106
|
+
}
|
|
154107
|
+
},
|
|
154108
|
+
"delete": function(key) {
|
|
154109
|
+
if ($m) {
|
|
154110
|
+
var result = $mapDelete($m, key);
|
|
154111
|
+
if ($mapSize($m) === 0) {
|
|
154112
|
+
$m = void 0;
|
|
154181
154113
|
}
|
|
154114
|
+
return result;
|
|
154115
|
+
}
|
|
154116
|
+
return false;
|
|
154117
|
+
},
|
|
154118
|
+
get: function(key) {
|
|
154119
|
+
if ($m) {
|
|
154120
|
+
return $mapGet($m, key);
|
|
154182
154121
|
}
|
|
154183
154122
|
},
|
|
154184
154123
|
has: function(key) {
|
|
154185
|
-
if ($
|
|
154186
|
-
|
|
154187
|
-
return $weakMapHas($wm, key);
|
|
154188
|
-
}
|
|
154189
|
-
} else if ($Map) {
|
|
154190
|
-
if ($m) {
|
|
154191
|
-
return $mapHas($m, key);
|
|
154192
|
-
}
|
|
154193
|
-
} else {
|
|
154194
|
-
if ($o) {
|
|
154195
|
-
return listHas($o, key);
|
|
154196
|
-
}
|
|
154124
|
+
if ($m) {
|
|
154125
|
+
return $mapHas($m, key);
|
|
154197
154126
|
}
|
|
154198
154127
|
return false;
|
|
154199
154128
|
},
|
|
154200
154129
|
set: function(key, value) {
|
|
154201
|
-
if (
|
|
154202
|
-
|
|
154203
|
-
|
|
154130
|
+
if (!$m) {
|
|
154131
|
+
$m = new $Map();
|
|
154132
|
+
}
|
|
154133
|
+
$mapSet($m, key, value);
|
|
154134
|
+
}
|
|
154135
|
+
};
|
|
154136
|
+
return channel;
|
|
154137
|
+
};
|
|
154138
|
+
}
|
|
154139
|
+
});
|
|
154140
|
+
|
|
154141
|
+
// ../../node_modules/.pnpm/side-channel-weakmap@1.0.2/node_modules/side-channel-weakmap/index.js
|
|
154142
|
+
var require_side_channel_weakmap = __commonJS({
|
|
154143
|
+
"../../node_modules/.pnpm/side-channel-weakmap@1.0.2/node_modules/side-channel-weakmap/index.js"(exports2, module2) {
|
|
154144
|
+
"use strict";
|
|
154145
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
154146
|
+
var callBound = require_call_bound();
|
|
154147
|
+
var inspect = require_object_inspect();
|
|
154148
|
+
var getSideChannelMap = require_side_channel_map();
|
|
154149
|
+
var $TypeError = require_type();
|
|
154150
|
+
var $WeakMap = GetIntrinsic("%WeakMap%", true);
|
|
154151
|
+
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
154152
|
+
var $weakMapSet = callBound("WeakMap.prototype.set", true);
|
|
154153
|
+
var $weakMapHas = callBound("WeakMap.prototype.has", true);
|
|
154154
|
+
var $weakMapDelete = callBound("WeakMap.prototype.delete", true);
|
|
154155
|
+
module2.exports = $WeakMap ? (
|
|
154156
|
+
/** @type {Exclude<import('.'), false>} */
|
|
154157
|
+
function getSideChannelWeakMap() {
|
|
154158
|
+
var $wm;
|
|
154159
|
+
var $m;
|
|
154160
|
+
var channel = {
|
|
154161
|
+
assert: function(key) {
|
|
154162
|
+
if (!channel.has(key)) {
|
|
154163
|
+
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
154164
|
+
}
|
|
154165
|
+
},
|
|
154166
|
+
"delete": function(key) {
|
|
154167
|
+
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
154168
|
+
if ($wm) {
|
|
154169
|
+
return $weakMapDelete($wm, key);
|
|
154170
|
+
}
|
|
154171
|
+
} else if (getSideChannelMap) {
|
|
154172
|
+
if ($m) {
|
|
154173
|
+
return $m["delete"](key);
|
|
154174
|
+
}
|
|
154204
154175
|
}
|
|
154205
|
-
|
|
154206
|
-
}
|
|
154207
|
-
|
|
154208
|
-
|
|
154176
|
+
return false;
|
|
154177
|
+
},
|
|
154178
|
+
get: function(key) {
|
|
154179
|
+
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
154180
|
+
if ($wm) {
|
|
154181
|
+
return $weakMapGet($wm, key);
|
|
154182
|
+
}
|
|
154209
154183
|
}
|
|
154210
|
-
$
|
|
154211
|
-
}
|
|
154212
|
-
|
|
154213
|
-
|
|
154184
|
+
return $m && $m.get(key);
|
|
154185
|
+
},
|
|
154186
|
+
has: function(key) {
|
|
154187
|
+
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
154188
|
+
if ($wm) {
|
|
154189
|
+
return $weakMapHas($wm, key);
|
|
154190
|
+
}
|
|
154191
|
+
}
|
|
154192
|
+
return !!$m && $m.has(key);
|
|
154193
|
+
},
|
|
154194
|
+
set: function(key, value) {
|
|
154195
|
+
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
154196
|
+
if (!$wm) {
|
|
154197
|
+
$wm = new $WeakMap();
|
|
154198
|
+
}
|
|
154199
|
+
$weakMapSet($wm, key, value);
|
|
154200
|
+
} else if (getSideChannelMap) {
|
|
154201
|
+
if (!$m) {
|
|
154202
|
+
$m = getSideChannelMap();
|
|
154203
|
+
}
|
|
154204
|
+
$m.set(key, value);
|
|
154214
154205
|
}
|
|
154215
|
-
listSet($o, key, value);
|
|
154216
154206
|
}
|
|
154207
|
+
};
|
|
154208
|
+
return channel;
|
|
154209
|
+
}
|
|
154210
|
+
) : getSideChannelMap;
|
|
154211
|
+
}
|
|
154212
|
+
});
|
|
154213
|
+
|
|
154214
|
+
// ../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js
|
|
154215
|
+
var require_side_channel = __commonJS({
|
|
154216
|
+
"../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js"(exports2, module2) {
|
|
154217
|
+
"use strict";
|
|
154218
|
+
var $TypeError = require_type();
|
|
154219
|
+
var inspect = require_object_inspect();
|
|
154220
|
+
var getSideChannelList = require_side_channel_list();
|
|
154221
|
+
var getSideChannelMap = require_side_channel_map();
|
|
154222
|
+
var getSideChannelWeakMap = require_side_channel_weakmap();
|
|
154223
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
154224
|
+
module2.exports = function getSideChannel() {
|
|
154225
|
+
var $channelData;
|
|
154226
|
+
var channel = {
|
|
154227
|
+
assert: function(key) {
|
|
154228
|
+
if (!channel.has(key)) {
|
|
154229
|
+
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
154230
|
+
}
|
|
154231
|
+
},
|
|
154232
|
+
"delete": function(key) {
|
|
154233
|
+
return !!$channelData && $channelData["delete"](key);
|
|
154234
|
+
},
|
|
154235
|
+
get: function(key) {
|
|
154236
|
+
return $channelData && $channelData.get(key);
|
|
154237
|
+
},
|
|
154238
|
+
has: function(key) {
|
|
154239
|
+
return !!$channelData && $channelData.has(key);
|
|
154240
|
+
},
|
|
154241
|
+
set: function(key, value) {
|
|
154242
|
+
if (!$channelData) {
|
|
154243
|
+
$channelData = makeChannel();
|
|
154244
|
+
}
|
|
154245
|
+
$channelData.set(key, value);
|
|
154217
154246
|
}
|
|
154218
154247
|
};
|
|
154219
154248
|
return channel;
|
|
@@ -154221,9 +154250,9 @@ var require_side_channel = __commonJS({
|
|
|
154221
154250
|
}
|
|
154222
154251
|
});
|
|
154223
154252
|
|
|
154224
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
154253
|
+
// ../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js
|
|
154225
154254
|
var require_formats = __commonJS({
|
|
154226
|
-
"../../node_modules/.pnpm/qs@6.
|
|
154255
|
+
"../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
154227
154256
|
"use strict";
|
|
154228
154257
|
var replace = String.prototype.replace;
|
|
154229
154258
|
var percentTwenties = /%20/g;
|
|
@@ -154247,13 +154276,28 @@ var require_formats = __commonJS({
|
|
|
154247
154276
|
}
|
|
154248
154277
|
});
|
|
154249
154278
|
|
|
154250
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
154279
|
+
// ../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js
|
|
154251
154280
|
var require_utils15 = __commonJS({
|
|
154252
|
-
"../../node_modules/.pnpm/qs@6.
|
|
154281
|
+
"../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
154253
154282
|
"use strict";
|
|
154254
154283
|
var formats = require_formats();
|
|
154284
|
+
var getSideChannel = require_side_channel();
|
|
154255
154285
|
var has = Object.prototype.hasOwnProperty;
|
|
154256
154286
|
var isArray2 = Array.isArray;
|
|
154287
|
+
var overflowChannel = getSideChannel();
|
|
154288
|
+
var markOverflow = function markOverflow2(obj, maxIndex) {
|
|
154289
|
+
overflowChannel.set(obj, maxIndex);
|
|
154290
|
+
return obj;
|
|
154291
|
+
};
|
|
154292
|
+
var isOverflow = function isOverflow2(obj) {
|
|
154293
|
+
return overflowChannel.has(obj);
|
|
154294
|
+
};
|
|
154295
|
+
var getMaxIndex = function getMaxIndex2(obj) {
|
|
154296
|
+
return overflowChannel.get(obj);
|
|
154297
|
+
};
|
|
154298
|
+
var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
|
|
154299
|
+
overflowChannel.set(obj, maxIndex);
|
|
154300
|
+
};
|
|
154257
154301
|
var hexTable = (function() {
|
|
154258
154302
|
var array = [];
|
|
154259
154303
|
for (var i = 0; i < 256; ++i) {
|
|
@@ -154277,7 +154321,7 @@ var require_utils15 = __commonJS({
|
|
|
154277
154321
|
}
|
|
154278
154322
|
};
|
|
154279
154323
|
var arrayToObject = function arrayToObject2(source, options2) {
|
|
154280
|
-
var obj = options2 && options2.plainObjects ?
|
|
154324
|
+
var obj = options2 && options2.plainObjects ? { __proto__: null } : {};
|
|
154281
154325
|
for (var i = 0; i < source.length; ++i) {
|
|
154282
154326
|
if (typeof source[i] !== "undefined") {
|
|
154283
154327
|
obj[i] = source[i];
|
|
@@ -154289,11 +154333,15 @@ var require_utils15 = __commonJS({
|
|
|
154289
154333
|
if (!source) {
|
|
154290
154334
|
return target;
|
|
154291
154335
|
}
|
|
154292
|
-
if (typeof source !== "object") {
|
|
154336
|
+
if (typeof source !== "object" && typeof source !== "function") {
|
|
154293
154337
|
if (isArray2(target)) {
|
|
154294
154338
|
target.push(source);
|
|
154295
154339
|
} else if (target && typeof target === "object") {
|
|
154296
|
-
if (
|
|
154340
|
+
if (isOverflow(target)) {
|
|
154341
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
154342
|
+
target[newIndex] = source;
|
|
154343
|
+
setMaxIndex(target, newIndex);
|
|
154344
|
+
} else if (options2 && (options2.plainObjects || options2.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
154297
154345
|
target[source] = true;
|
|
154298
154346
|
}
|
|
154299
154347
|
} else {
|
|
@@ -154302,6 +154350,15 @@ var require_utils15 = __commonJS({
|
|
|
154302
154350
|
return target;
|
|
154303
154351
|
}
|
|
154304
154352
|
if (!target || typeof target !== "object") {
|
|
154353
|
+
if (isOverflow(source)) {
|
|
154354
|
+
var sourceKeys = Object.keys(source);
|
|
154355
|
+
var result = options2 && options2.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
154356
|
+
for (var m = 0; m < sourceKeys.length; m++) {
|
|
154357
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
154358
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
154359
|
+
}
|
|
154360
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
154361
|
+
}
|
|
154305
154362
|
return [target].concat(source);
|
|
154306
154363
|
}
|
|
154307
154364
|
var mergeTarget = target;
|
|
@@ -154339,7 +154396,7 @@ var require_utils15 = __commonJS({
|
|
|
154339
154396
|
return acc;
|
|
154340
154397
|
}, target);
|
|
154341
154398
|
};
|
|
154342
|
-
var decode = function(str,
|
|
154399
|
+
var decode = function(str, defaultDecoder, charset) {
|
|
154343
154400
|
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
154344
154401
|
if (charset === "iso-8859-1") {
|
|
154345
154402
|
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -154350,6 +154407,7 @@ var require_utils15 = __commonJS({
|
|
|
154350
154407
|
return strWithoutPlus;
|
|
154351
154408
|
}
|
|
154352
154409
|
};
|
|
154410
|
+
var limit = 1024;
|
|
154353
154411
|
var encode = function encode2(str, defaultEncoder, charset, kind, format4) {
|
|
154354
154412
|
if (str.length === 0) {
|
|
154355
154413
|
return str;
|
|
@@ -154366,27 +154424,32 @@ var require_utils15 = __commonJS({
|
|
|
154366
154424
|
});
|
|
154367
154425
|
}
|
|
154368
154426
|
var out = "";
|
|
154369
|
-
for (var
|
|
154370
|
-
var
|
|
154371
|
-
|
|
154372
|
-
|
|
154373
|
-
|
|
154374
|
-
|
|
154375
|
-
|
|
154376
|
-
|
|
154377
|
-
|
|
154378
|
-
|
|
154379
|
-
|
|
154380
|
-
|
|
154381
|
-
|
|
154382
|
-
|
|
154383
|
-
|
|
154384
|
-
|
|
154385
|
-
|
|
154427
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
154428
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
154429
|
+
var arr = [];
|
|
154430
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
154431
|
+
var c = segment.charCodeAt(i);
|
|
154432
|
+
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format4 === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
154433
|
+
arr[arr.length] = segment.charAt(i);
|
|
154434
|
+
continue;
|
|
154435
|
+
}
|
|
154436
|
+
if (c < 128) {
|
|
154437
|
+
arr[arr.length] = hexTable[c];
|
|
154438
|
+
continue;
|
|
154439
|
+
}
|
|
154440
|
+
if (c < 2048) {
|
|
154441
|
+
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
154442
|
+
continue;
|
|
154443
|
+
}
|
|
154444
|
+
if (c < 55296 || c >= 57344) {
|
|
154445
|
+
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
154446
|
+
continue;
|
|
154447
|
+
}
|
|
154448
|
+
i += 1;
|
|
154449
|
+
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
154450
|
+
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
154386
154451
|
}
|
|
154387
|
-
|
|
154388
|
-
c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
|
|
154389
|
-
out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
154452
|
+
out += arr.join("");
|
|
154390
154453
|
}
|
|
154391
154454
|
return out;
|
|
154392
154455
|
};
|
|
@@ -154418,8 +154481,18 @@ var require_utils15 = __commonJS({
|
|
|
154418
154481
|
}
|
|
154419
154482
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
154420
154483
|
};
|
|
154421
|
-
var combine = function combine2(a, b) {
|
|
154422
|
-
|
|
154484
|
+
var combine = function combine2(a, b, arrayLimit, plainObjects) {
|
|
154485
|
+
if (isOverflow(a)) {
|
|
154486
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
154487
|
+
a[newIndex] = b;
|
|
154488
|
+
setMaxIndex(a, newIndex);
|
|
154489
|
+
return a;
|
|
154490
|
+
}
|
|
154491
|
+
var result = [].concat(a, b);
|
|
154492
|
+
if (result.length > arrayLimit) {
|
|
154493
|
+
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
154494
|
+
}
|
|
154495
|
+
return result;
|
|
154423
154496
|
};
|
|
154424
154497
|
var maybeMap = function maybeMap2(val2, fn2) {
|
|
154425
154498
|
if (isArray2(val2)) {
|
|
@@ -154439,6 +154512,7 @@ var require_utils15 = __commonJS({
|
|
|
154439
154512
|
decode,
|
|
154440
154513
|
encode,
|
|
154441
154514
|
isBuffer,
|
|
154515
|
+
isOverflow,
|
|
154442
154516
|
isRegExp,
|
|
154443
154517
|
maybeMap,
|
|
154444
154518
|
merge: merge2
|
|
@@ -154446,9 +154520,9 @@ var require_utils15 = __commonJS({
|
|
|
154446
154520
|
}
|
|
154447
154521
|
});
|
|
154448
154522
|
|
|
154449
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
154523
|
+
// ../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/stringify.js
|
|
154450
154524
|
var require_stringify5 = __commonJS({
|
|
154451
|
-
"../../node_modules/.pnpm/qs@6.
|
|
154525
|
+
"../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
154452
154526
|
"use strict";
|
|
154453
154527
|
var getSideChannel = require_side_channel();
|
|
154454
154528
|
var utils = require_utils15();
|
|
@@ -154467,7 +154541,6 @@ var require_stringify5 = __commonJS({
|
|
|
154467
154541
|
}
|
|
154468
154542
|
};
|
|
154469
154543
|
var isArray2 = Array.isArray;
|
|
154470
|
-
var split = String.prototype.split;
|
|
154471
154544
|
var push = Array.prototype.push;
|
|
154472
154545
|
var pushToArray = function(arr, valueOrArray) {
|
|
154473
154546
|
push.apply(arr, isArray2(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
@@ -154477,12 +154550,17 @@ var require_stringify5 = __commonJS({
|
|
|
154477
154550
|
var defaults = {
|
|
154478
154551
|
addQueryPrefix: false,
|
|
154479
154552
|
allowDots: false,
|
|
154553
|
+
allowEmptyArrays: false,
|
|
154554
|
+
arrayFormat: "indices",
|
|
154480
154555
|
charset: "utf-8",
|
|
154481
154556
|
charsetSentinel: false,
|
|
154557
|
+
commaRoundTrip: false,
|
|
154482
154558
|
delimiter: "&",
|
|
154483
154559
|
encode: true,
|
|
154560
|
+
encodeDotInKeys: false,
|
|
154484
154561
|
encoder: utils.encode,
|
|
154485
154562
|
encodeValuesOnly: false,
|
|
154563
|
+
filter: void 0,
|
|
154486
154564
|
format: defaultFormat,
|
|
154487
154565
|
formatter: formats.formatters[defaultFormat],
|
|
154488
154566
|
// deprecated
|
|
@@ -154497,7 +154575,7 @@ var require_stringify5 = __commonJS({
|
|
|
154497
154575
|
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
154498
154576
|
};
|
|
154499
154577
|
var sentinel = {};
|
|
154500
|
-
var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format4, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
154578
|
+
var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format4, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
154501
154579
|
var obj = object;
|
|
154502
154580
|
var tmpSc = sideChannel;
|
|
154503
154581
|
var step = 0;
|
|
@@ -154537,14 +154615,6 @@ var require_stringify5 = __commonJS({
|
|
|
154537
154615
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
154538
154616
|
if (encoder) {
|
|
154539
154617
|
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format4);
|
|
154540
|
-
if (generateArrayPrefix === "comma" && encodeValuesOnly) {
|
|
154541
|
-
var valuesArray = split.call(String(obj), ",");
|
|
154542
|
-
var valuesJoined = "";
|
|
154543
|
-
for (var i = 0; i < valuesArray.length; ++i) {
|
|
154544
|
-
valuesJoined += (i === 0 ? "" : ",") + formatter(encoder(valuesArray[i], defaults.encoder, charset, "value", format4));
|
|
154545
|
-
}
|
|
154546
|
-
return [formatter(keyValue) + (commaRoundTrip && isArray2(obj) && valuesArray.length === 1 ? "[]" : "") + "=" + valuesJoined];
|
|
154547
|
-
}
|
|
154548
154618
|
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format4))];
|
|
154549
154619
|
}
|
|
154550
154620
|
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
@@ -154555,6 +154625,9 @@ var require_stringify5 = __commonJS({
|
|
|
154555
154625
|
}
|
|
154556
154626
|
var objKeys;
|
|
154557
154627
|
if (generateArrayPrefix === "comma" && isArray2(obj)) {
|
|
154628
|
+
if (encodeValuesOnly && encoder) {
|
|
154629
|
+
obj = utils.maybeMap(obj, encoder);
|
|
154630
|
+
}
|
|
154558
154631
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
154559
154632
|
} else if (isArray2(filter)) {
|
|
154560
154633
|
objKeys = filter;
|
|
@@ -154562,14 +154635,19 @@ var require_stringify5 = __commonJS({
|
|
|
154562
154635
|
var keys = Object.keys(obj);
|
|
154563
154636
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
154564
154637
|
}
|
|
154565
|
-
var
|
|
154638
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
154639
|
+
var adjustedPrefix = commaRoundTrip && isArray2(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
154640
|
+
if (allowEmptyArrays && isArray2(obj) && obj.length === 0) {
|
|
154641
|
+
return adjustedPrefix + "[]";
|
|
154642
|
+
}
|
|
154566
154643
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
154567
154644
|
var key = objKeys[j];
|
|
154568
|
-
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
154645
|
+
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
154569
154646
|
if (skipNulls && value === null) {
|
|
154570
154647
|
continue;
|
|
154571
154648
|
}
|
|
154572
|
-
var
|
|
154649
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
154650
|
+
var keyPrefix = isArray2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
154573
154651
|
sideChannel.set(object, step);
|
|
154574
154652
|
var valueSideChannel = getSideChannel();
|
|
154575
154653
|
valueSideChannel.set(sentinel, sideChannel);
|
|
@@ -154578,9 +154656,11 @@ var require_stringify5 = __commonJS({
|
|
|
154578
154656
|
keyPrefix,
|
|
154579
154657
|
generateArrayPrefix,
|
|
154580
154658
|
commaRoundTrip,
|
|
154659
|
+
allowEmptyArrays,
|
|
154581
154660
|
strictNullHandling,
|
|
154582
154661
|
skipNulls,
|
|
154583
|
-
|
|
154662
|
+
encodeDotInKeys,
|
|
154663
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray2(obj) ? null : encoder,
|
|
154584
154664
|
filter,
|
|
154585
154665
|
sort,
|
|
154586
154666
|
allowDots,
|
|
@@ -154598,6 +154678,12 @@ var require_stringify5 = __commonJS({
|
|
|
154598
154678
|
if (!opts) {
|
|
154599
154679
|
return defaults;
|
|
154600
154680
|
}
|
|
154681
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
154682
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
154683
|
+
}
|
|
154684
|
+
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
154685
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
154686
|
+
}
|
|
154601
154687
|
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
154602
154688
|
throw new TypeError("Encoder has to be a function.");
|
|
154603
154689
|
}
|
|
@@ -154617,13 +154703,29 @@ var require_stringify5 = __commonJS({
|
|
|
154617
154703
|
if (typeof opts.filter === "function" || isArray2(opts.filter)) {
|
|
154618
154704
|
filter = opts.filter;
|
|
154619
154705
|
}
|
|
154706
|
+
var arrayFormat;
|
|
154707
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
154708
|
+
arrayFormat = opts.arrayFormat;
|
|
154709
|
+
} else if ("indices" in opts) {
|
|
154710
|
+
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
154711
|
+
} else {
|
|
154712
|
+
arrayFormat = defaults.arrayFormat;
|
|
154713
|
+
}
|
|
154714
|
+
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
154715
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
154716
|
+
}
|
|
154717
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
154620
154718
|
return {
|
|
154621
154719
|
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
154622
|
-
allowDots
|
|
154720
|
+
allowDots,
|
|
154721
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
154722
|
+
arrayFormat,
|
|
154623
154723
|
charset,
|
|
154624
154724
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
154725
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
154625
154726
|
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
154626
154727
|
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
154728
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
154627
154729
|
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
154628
154730
|
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
154629
154731
|
filter,
|
|
@@ -154651,19 +154753,8 @@ var require_stringify5 = __commonJS({
|
|
|
154651
154753
|
if (typeof obj !== "object" || obj === null) {
|
|
154652
154754
|
return "";
|
|
154653
154755
|
}
|
|
154654
|
-
var arrayFormat;
|
|
154655
|
-
|
|
154656
|
-
arrayFormat = opts.arrayFormat;
|
|
154657
|
-
} else if (opts && "indices" in opts) {
|
|
154658
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
154659
|
-
} else {
|
|
154660
|
-
arrayFormat = "indices";
|
|
154661
|
-
}
|
|
154662
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
154663
|
-
if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
154664
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
154665
|
-
}
|
|
154666
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
|
|
154756
|
+
var generateArrayPrefix = arrayPrefixGenerators[options2.arrayFormat];
|
|
154757
|
+
var commaRoundTrip = generateArrayPrefix === "comma" && options2.commaRoundTrip;
|
|
154667
154758
|
if (!objKeys) {
|
|
154668
154759
|
objKeys = Object.keys(obj);
|
|
154669
154760
|
}
|
|
@@ -154673,16 +154764,19 @@ var require_stringify5 = __commonJS({
|
|
|
154673
154764
|
var sideChannel = getSideChannel();
|
|
154674
154765
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
154675
154766
|
var key = objKeys[i];
|
|
154676
|
-
|
|
154767
|
+
var value = obj[key];
|
|
154768
|
+
if (options2.skipNulls && value === null) {
|
|
154677
154769
|
continue;
|
|
154678
154770
|
}
|
|
154679
154771
|
pushToArray(keys, stringify(
|
|
154680
|
-
|
|
154772
|
+
value,
|
|
154681
154773
|
key,
|
|
154682
154774
|
generateArrayPrefix,
|
|
154683
154775
|
commaRoundTrip,
|
|
154776
|
+
options2.allowEmptyArrays,
|
|
154684
154777
|
options2.strictNullHandling,
|
|
154685
154778
|
options2.skipNulls,
|
|
154779
|
+
options2.encodeDotInKeys,
|
|
154686
154780
|
options2.encode ? options2.encoder : null,
|
|
154687
154781
|
options2.filter,
|
|
154688
154782
|
options2.sort,
|
|
@@ -154709,49 +154803,64 @@ var require_stringify5 = __commonJS({
|
|
|
154709
154803
|
}
|
|
154710
154804
|
});
|
|
154711
154805
|
|
|
154712
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
154806
|
+
// ../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/parse.js
|
|
154713
154807
|
var require_parse9 = __commonJS({
|
|
154714
|
-
"../../node_modules/.pnpm/qs@6.
|
|
154808
|
+
"../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
154715
154809
|
"use strict";
|
|
154716
154810
|
var utils = require_utils15();
|
|
154717
154811
|
var has = Object.prototype.hasOwnProperty;
|
|
154718
154812
|
var isArray2 = Array.isArray;
|
|
154719
154813
|
var defaults = {
|
|
154720
154814
|
allowDots: false,
|
|
154815
|
+
allowEmptyArrays: false,
|
|
154721
154816
|
allowPrototypes: false,
|
|
154722
154817
|
allowSparse: false,
|
|
154723
154818
|
arrayLimit: 20,
|
|
154724
154819
|
charset: "utf-8",
|
|
154725
154820
|
charsetSentinel: false,
|
|
154726
154821
|
comma: false,
|
|
154822
|
+
decodeDotInKeys: false,
|
|
154727
154823
|
decoder: utils.decode,
|
|
154728
154824
|
delimiter: "&",
|
|
154729
154825
|
depth: 5,
|
|
154826
|
+
duplicates: "combine",
|
|
154730
154827
|
ignoreQueryPrefix: false,
|
|
154731
154828
|
interpretNumericEntities: false,
|
|
154732
154829
|
parameterLimit: 1e3,
|
|
154733
154830
|
parseArrays: true,
|
|
154734
154831
|
plainObjects: false,
|
|
154735
|
-
|
|
154832
|
+
strictDepth: false,
|
|
154833
|
+
strictNullHandling: false,
|
|
154834
|
+
throwOnLimitExceeded: false
|
|
154736
154835
|
};
|
|
154737
154836
|
var interpretNumericEntities = function(str) {
|
|
154738
154837
|
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
154739
154838
|
return String.fromCharCode(parseInt(numberStr, 10));
|
|
154740
154839
|
});
|
|
154741
154840
|
};
|
|
154742
|
-
var parseArrayValue = function(val2, options2) {
|
|
154841
|
+
var parseArrayValue = function(val2, options2, currentArrayLength) {
|
|
154743
154842
|
if (val2 && typeof val2 === "string" && options2.comma && val2.indexOf(",") > -1) {
|
|
154744
154843
|
return val2.split(",");
|
|
154745
154844
|
}
|
|
154845
|
+
if (options2.throwOnLimitExceeded && currentArrayLength >= options2.arrayLimit) {
|
|
154846
|
+
throw new RangeError("Array limit exceeded. Only " + options2.arrayLimit + " element" + (options2.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
154847
|
+
}
|
|
154746
154848
|
return val2;
|
|
154747
154849
|
};
|
|
154748
154850
|
var isoSentinel = "utf8=%26%2310003%3B";
|
|
154749
154851
|
var charsetSentinel = "utf8=%E2%9C%93";
|
|
154750
154852
|
var parseValues = function parseQueryStringValues(str, options2) {
|
|
154751
|
-
var obj = {};
|
|
154853
|
+
var obj = { __proto__: null };
|
|
154752
154854
|
var cleanStr = options2.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
154855
|
+
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
154753
154856
|
var limit = options2.parameterLimit === Infinity ? void 0 : options2.parameterLimit;
|
|
154754
|
-
var parts = cleanStr.split(
|
|
154857
|
+
var parts = cleanStr.split(
|
|
154858
|
+
options2.delimiter,
|
|
154859
|
+
options2.throwOnLimitExceeded ? limit + 1 : limit
|
|
154860
|
+
);
|
|
154861
|
+
if (options2.throwOnLimitExceeded && parts.length > limit) {
|
|
154862
|
+
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
154863
|
+
}
|
|
154755
154864
|
var skipIndex = -1;
|
|
154756
154865
|
var i;
|
|
154757
154866
|
var charset = options2.charset;
|
|
@@ -154775,65 +154884,100 @@ var require_parse9 = __commonJS({
|
|
|
154775
154884
|
var part = parts[i];
|
|
154776
154885
|
var bracketEqualsPos = part.indexOf("]=");
|
|
154777
154886
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
154778
|
-
var key
|
|
154887
|
+
var key;
|
|
154888
|
+
var val2;
|
|
154779
154889
|
if (pos === -1) {
|
|
154780
154890
|
key = options2.decoder(part, defaults.decoder, charset, "key");
|
|
154781
154891
|
val2 = options2.strictNullHandling ? null : "";
|
|
154782
154892
|
} else {
|
|
154783
154893
|
key = options2.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
154784
|
-
|
|
154785
|
-
|
|
154786
|
-
|
|
154787
|
-
|
|
154788
|
-
|
|
154789
|
-
|
|
154894
|
+
if (key !== null) {
|
|
154895
|
+
val2 = utils.maybeMap(
|
|
154896
|
+
parseArrayValue(
|
|
154897
|
+
part.slice(pos + 1),
|
|
154898
|
+
options2,
|
|
154899
|
+
isArray2(obj[key]) ? obj[key].length : 0
|
|
154900
|
+
),
|
|
154901
|
+
function(encodedVal) {
|
|
154902
|
+
return options2.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
154903
|
+
}
|
|
154904
|
+
);
|
|
154905
|
+
}
|
|
154790
154906
|
}
|
|
154791
154907
|
if (val2 && options2.interpretNumericEntities && charset === "iso-8859-1") {
|
|
154792
|
-
val2 = interpretNumericEntities(val2);
|
|
154908
|
+
val2 = interpretNumericEntities(String(val2));
|
|
154793
154909
|
}
|
|
154794
154910
|
if (part.indexOf("[]=") > -1) {
|
|
154795
154911
|
val2 = isArray2(val2) ? [val2] : val2;
|
|
154796
154912
|
}
|
|
154797
|
-
if (
|
|
154798
|
-
|
|
154799
|
-
|
|
154800
|
-
|
|
154913
|
+
if (key !== null) {
|
|
154914
|
+
var existing = has.call(obj, key);
|
|
154915
|
+
if (existing && options2.duplicates === "combine") {
|
|
154916
|
+
obj[key] = utils.combine(
|
|
154917
|
+
obj[key],
|
|
154918
|
+
val2,
|
|
154919
|
+
options2.arrayLimit,
|
|
154920
|
+
options2.plainObjects
|
|
154921
|
+
);
|
|
154922
|
+
} else if (!existing || options2.duplicates === "last") {
|
|
154923
|
+
obj[key] = val2;
|
|
154924
|
+
}
|
|
154801
154925
|
}
|
|
154802
154926
|
}
|
|
154803
154927
|
return obj;
|
|
154804
154928
|
};
|
|
154805
154929
|
var parseObject = function(chain, val2, options2, valuesParsed) {
|
|
154806
|
-
var
|
|
154930
|
+
var currentArrayLength = 0;
|
|
154931
|
+
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
154932
|
+
var parentKey = chain.slice(0, -1).join("");
|
|
154933
|
+
currentArrayLength = Array.isArray(val2) && val2[parentKey] ? val2[parentKey].length : 0;
|
|
154934
|
+
}
|
|
154935
|
+
var leaf = valuesParsed ? val2 : parseArrayValue(val2, options2, currentArrayLength);
|
|
154807
154936
|
for (var i = chain.length - 1; i >= 0; --i) {
|
|
154808
154937
|
var obj;
|
|
154809
154938
|
var root = chain[i];
|
|
154810
154939
|
if (root === "[]" && options2.parseArrays) {
|
|
154811
|
-
|
|
154940
|
+
if (utils.isOverflow(leaf)) {
|
|
154941
|
+
obj = leaf;
|
|
154942
|
+
} else {
|
|
154943
|
+
obj = options2.allowEmptyArrays && (leaf === "" || options2.strictNullHandling && leaf === null) ? [] : utils.combine(
|
|
154944
|
+
[],
|
|
154945
|
+
leaf,
|
|
154946
|
+
options2.arrayLimit,
|
|
154947
|
+
options2.plainObjects
|
|
154948
|
+
);
|
|
154949
|
+
}
|
|
154812
154950
|
} else {
|
|
154813
|
-
obj = options2.plainObjects ?
|
|
154951
|
+
obj = options2.plainObjects ? { __proto__: null } : {};
|
|
154814
154952
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
154815
|
-
var
|
|
154816
|
-
|
|
154953
|
+
var decodedRoot = options2.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
154954
|
+
var index = parseInt(decodedRoot, 10);
|
|
154955
|
+
if (!options2.parseArrays && decodedRoot === "") {
|
|
154817
154956
|
obj = { 0: leaf };
|
|
154818
|
-
} else if (!isNaN(index) && root !==
|
|
154957
|
+
} else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options2.parseArrays && index <= options2.arrayLimit)) {
|
|
154819
154958
|
obj = [];
|
|
154820
154959
|
obj[index] = leaf;
|
|
154821
|
-
} else if (
|
|
154822
|
-
obj[
|
|
154960
|
+
} else if (decodedRoot !== "__proto__") {
|
|
154961
|
+
obj[decodedRoot] = leaf;
|
|
154823
154962
|
}
|
|
154824
154963
|
}
|
|
154825
154964
|
leaf = obj;
|
|
154826
154965
|
}
|
|
154827
154966
|
return leaf;
|
|
154828
154967
|
};
|
|
154829
|
-
var
|
|
154830
|
-
if (!givenKey) {
|
|
154831
|
-
return;
|
|
154832
|
-
}
|
|
154968
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options2) {
|
|
154833
154969
|
var key = options2.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
154970
|
+
if (options2.depth <= 0) {
|
|
154971
|
+
if (!options2.plainObjects && has.call(Object.prototype, key)) {
|
|
154972
|
+
if (!options2.allowPrototypes) {
|
|
154973
|
+
return;
|
|
154974
|
+
}
|
|
154975
|
+
}
|
|
154976
|
+
return [key];
|
|
154977
|
+
}
|
|
154834
154978
|
var brackets = /(\[[^[\]]*])/;
|
|
154835
154979
|
var child = /(\[[^[\]]*])/g;
|
|
154836
|
-
var segment =
|
|
154980
|
+
var segment = brackets.exec(key);
|
|
154837
154981
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
154838
154982
|
var keys = [];
|
|
154839
154983
|
if (parent) {
|
|
@@ -154845,9 +154989,10 @@ var require_parse9 = __commonJS({
|
|
|
154845
154989
|
keys.push(parent);
|
|
154846
154990
|
}
|
|
154847
154991
|
var i = 0;
|
|
154848
|
-
while (
|
|
154992
|
+
while ((segment = child.exec(key)) !== null && i < options2.depth) {
|
|
154849
154993
|
i += 1;
|
|
154850
|
-
|
|
154994
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
154995
|
+
if (!options2.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
154851
154996
|
if (!options2.allowPrototypes) {
|
|
154852
154997
|
return;
|
|
154853
154998
|
}
|
|
@@ -154855,48 +155000,80 @@ var require_parse9 = __commonJS({
|
|
|
154855
155000
|
keys.push(segment[1]);
|
|
154856
155001
|
}
|
|
154857
155002
|
if (segment) {
|
|
155003
|
+
if (options2.strictDepth === true) {
|
|
155004
|
+
throw new RangeError("Input depth exceeded depth option of " + options2.depth + " and strictDepth is true");
|
|
155005
|
+
}
|
|
154858
155006
|
keys.push("[" + key.slice(segment.index) + "]");
|
|
154859
155007
|
}
|
|
155008
|
+
return keys;
|
|
155009
|
+
};
|
|
155010
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val2, options2, valuesParsed) {
|
|
155011
|
+
if (!givenKey) {
|
|
155012
|
+
return;
|
|
155013
|
+
}
|
|
155014
|
+
var keys = splitKeyIntoSegments(givenKey, options2);
|
|
155015
|
+
if (!keys) {
|
|
155016
|
+
return;
|
|
155017
|
+
}
|
|
154860
155018
|
return parseObject(keys, val2, options2, valuesParsed);
|
|
154861
155019
|
};
|
|
154862
155020
|
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
154863
155021
|
if (!opts) {
|
|
154864
155022
|
return defaults;
|
|
154865
155023
|
}
|
|
154866
|
-
if (
|
|
155024
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
155025
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
155026
|
+
}
|
|
155027
|
+
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
155028
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
155029
|
+
}
|
|
155030
|
+
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
154867
155031
|
throw new TypeError("Decoder has to be a function.");
|
|
154868
155032
|
}
|
|
154869
155033
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
154870
155034
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
154871
155035
|
}
|
|
155036
|
+
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
155037
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
155038
|
+
}
|
|
154872
155039
|
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
155040
|
+
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
155041
|
+
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
155042
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
155043
|
+
}
|
|
155044
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
154873
155045
|
return {
|
|
154874
|
-
allowDots
|
|
155046
|
+
allowDots,
|
|
155047
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
154875
155048
|
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
154876
155049
|
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
154877
155050
|
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
154878
155051
|
charset,
|
|
154879
155052
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
154880
155053
|
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
155054
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
154881
155055
|
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
154882
155056
|
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
154883
155057
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
154884
155058
|
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
155059
|
+
duplicates,
|
|
154885
155060
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
154886
155061
|
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
154887
155062
|
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
154888
155063
|
parseArrays: opts.parseArrays !== false,
|
|
154889
155064
|
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
154890
|
-
|
|
155065
|
+
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
155066
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
155067
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
154891
155068
|
};
|
|
154892
155069
|
};
|
|
154893
155070
|
module2.exports = function(str, opts) {
|
|
154894
155071
|
var options2 = normalizeParseOptions(opts);
|
|
154895
155072
|
if (str === "" || str === null || typeof str === "undefined") {
|
|
154896
|
-
return options2.plainObjects ?
|
|
155073
|
+
return options2.plainObjects ? { __proto__: null } : {};
|
|
154897
155074
|
}
|
|
154898
155075
|
var tempObj = typeof str === "string" ? parseValues(str, options2) : str;
|
|
154899
|
-
var obj = options2.plainObjects ?
|
|
155076
|
+
var obj = options2.plainObjects ? { __proto__: null } : {};
|
|
154900
155077
|
var keys = Object.keys(tempObj);
|
|
154901
155078
|
for (var i = 0; i < keys.length; ++i) {
|
|
154902
155079
|
var key = keys[i];
|
|
@@ -154911,9 +155088,9 @@ var require_parse9 = __commonJS({
|
|
|
154911
155088
|
}
|
|
154912
155089
|
});
|
|
154913
155090
|
|
|
154914
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
155091
|
+
// ../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js
|
|
154915
155092
|
var require_lib9 = __commonJS({
|
|
154916
|
-
"../../node_modules/.pnpm/qs@6.
|
|
155093
|
+
"../../node_modules/.pnpm/qs@6.14.1/node_modules/qs/lib/index.js"(exports2, module2) {
|
|
154917
155094
|
"use strict";
|
|
154918
155095
|
var stringify = require_stringify5();
|
|
154919
155096
|
var parse4 = require_parse9();
|
|
@@ -154967,7 +155144,7 @@ var require_uaa = __commonJS({
|
|
|
154967
155144
|
exports2.Uaa = void 0;
|
|
154968
155145
|
var open = require_open();
|
|
154969
155146
|
var axios_1 = __importDefault2(require_axios2());
|
|
154970
|
-
var
|
|
155147
|
+
var node_http_1 = __importDefault2(require("node:http"));
|
|
154971
155148
|
var qs_1 = __importDefault2(require_lib9());
|
|
154972
155149
|
var redirect_1 = require_redirect2();
|
|
154973
155150
|
var message_1 = require_message();
|
|
@@ -155166,7 +155343,7 @@ var require_uaa = __commonJS({
|
|
|
155166
155343
|
reject(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${(0, message_1.prettyPrintTimeInMs)(timeout)}`));
|
|
155167
155344
|
};
|
|
155168
155345
|
const timer = setTimeout(handleTimeout, timeout);
|
|
155169
|
-
server =
|
|
155346
|
+
server = node_http_1.default.createServer((req, res) => {
|
|
155170
155347
|
const reqUrl = new URL(req.url, `http://${req.headers.host}`);
|
|
155171
155348
|
if (reqUrl.pathname === redirect_1.Redirect.path) {
|
|
155172
155349
|
res.writeHead(200, { "Content-Type": "text/html" });
|
|
@@ -155380,6 +155557,11 @@ var require_service_provider = __commonJS({
|
|
|
155380
155557
|
/**
|
|
155381
155558
|
* Create an axios configuration for a new service instance.
|
|
155382
155559
|
*
|
|
155560
|
+
* **IMPORTANT:**
|
|
155561
|
+
* This method intentionally mutates Axios instance defaults.
|
|
155562
|
+
* Changing this behaviour (e.g. making defaults immutable) will break
|
|
155563
|
+
* Axios header merging and interceptor resolution.
|
|
155564
|
+
*
|
|
155383
155565
|
* @param path path of the service relative to the service provider
|
|
155384
155566
|
* @returns axios config
|
|
155385
155567
|
*/
|
|
@@ -156264,7 +156446,7 @@ var require_app_index_service = __commonJS({
|
|
|
156264
156446
|
* @returns list of applications
|
|
156265
156447
|
*/
|
|
156266
156448
|
async search(searchParams = {}, resultFields) {
|
|
156267
|
-
const params =
|
|
156449
|
+
const params = { ...searchParams };
|
|
156268
156450
|
if (resultFields) {
|
|
156269
156451
|
params["fields"] = resultFields.join(",");
|
|
156270
156452
|
}
|
|
@@ -165686,7 +165868,6 @@ var require_generator_service = __commonJS({
|
|
|
165686
165868
|
static getAdtCatagory() {
|
|
165687
165869
|
return _GeneratorService.adtCategory;
|
|
165688
165870
|
}
|
|
165689
|
-
id;
|
|
165690
165871
|
/**
|
|
165691
165872
|
* Get the UI service generator for the given referenced object.
|
|
165692
165873
|
*
|
|
@@ -166828,11 +167009,11 @@ var require_factory = __commonJS({
|
|
|
166828
167009
|
exports2.createServiceForUrl = createServiceForUrl;
|
|
166829
167010
|
var btp_utils_1 = require_dist6();
|
|
166830
167011
|
var http_proxy_agent_1 = require_dist5();
|
|
166831
|
-
var
|
|
167012
|
+
var node_https_1 = require("node:https");
|
|
166832
167013
|
var https_proxy_agent_1 = require_dist4();
|
|
166833
167014
|
var cloneDeep_1 = __importDefault2(require_cloneDeep());
|
|
166834
167015
|
var proxy_from_env_1 = require_proxy_from_env();
|
|
166835
|
-
var
|
|
167016
|
+
var node_util_1 = require("node:util");
|
|
166836
167017
|
var abap_1 = require_abap();
|
|
166837
167018
|
var auth_1 = require_auth();
|
|
166838
167019
|
var patchTls_1 = require_patchTls();
|
|
@@ -166873,7 +167054,7 @@ var require_factory = __commonJS({
|
|
|
166873
167054
|
providerConfig.proxy = false;
|
|
166874
167055
|
}
|
|
166875
167056
|
if (!providerConfig.httpsAgent) {
|
|
166876
|
-
providerConfig.httpsAgent = new
|
|
167057
|
+
providerConfig.httpsAgent = new node_https_1.Agent(agentOptions);
|
|
166877
167058
|
}
|
|
166878
167059
|
delete providerConfig.ignoreCertErrors;
|
|
166879
167060
|
providerConfig.withCredentials = providerConfig?.auth && Object.keys(providerConfig.auth).length > 0;
|
|
@@ -166952,7 +167133,7 @@ var require_factory = __commonJS({
|
|
|
166952
167133
|
}
|
|
166953
167134
|
default:
|
|
166954
167135
|
const opts = options2;
|
|
166955
|
-
throw new Error(`Unknown environment type supplied: ${(0,
|
|
167136
|
+
throw new Error(`Unknown environment type supplied: ${(0, node_util_1.inspect)(opts)}`);
|
|
166956
167137
|
}
|
|
166957
167138
|
return provider;
|
|
166958
167139
|
}
|
|
@@ -169384,7 +169565,12 @@ var i18n_en_default = {
|
|
|
169384
169565
|
noFileSelected: "No file selected for import.",
|
|
169385
169566
|
panelActionDispatch: "Error dispatching panel action: {{- error}}",
|
|
169386
169567
|
noneSelected: "No SAP system selected.",
|
|
169387
|
-
testConnection: "An error occurred when testing the connection: {{- error}}"
|
|
169568
|
+
testConnection: "An error occurred when testing the connection: {{- error}}",
|
|
169569
|
+
systemInfoUpdate: "Failed to add the system information to the backend system: {{- error}}"
|
|
169570
|
+
},
|
|
169571
|
+
debug: {
|
|
169572
|
+
systemInfoRetrieved: "Successfully retrieved the system ID '{{- systemId}}' and client '{{client}}' from '/sap/bc/adt/core/http/systeminformation'.",
|
|
169573
|
+
systemInfoRetrievalFailure: "Failed to retrieve system information from '/sap/bc/adt/core/http/systeminformation': {{- error}}"
|
|
169388
169574
|
},
|
|
169389
169575
|
validation: {
|
|
169390
169576
|
provideUrl: "Please provide a valid URL to test the connection.",
|
|
@@ -169462,12 +169648,18 @@ function getSystemTypeLabel(systemType) {
|
|
|
169462
169648
|
}
|
|
169463
169649
|
return systemTypeName;
|
|
169464
169650
|
}
|
|
169651
|
+
function compareSystems(currentSystem, newSystem) {
|
|
169652
|
+
return currentSystem.url.replace(/\/$/, "") === newSystem?.url.replace(/\/$/, "") && currentSystem.client === newSystem?.client;
|
|
169653
|
+
}
|
|
169654
|
+
function shouldStoreSystemInfo(system) {
|
|
169655
|
+
return system.systemType === "OnPrem" && !!system.username && !!system.password;
|
|
169656
|
+
}
|
|
169465
169657
|
|
|
169466
169658
|
// src/utils/telemetryHelper.ts
|
|
169467
169659
|
var import_telemetry = __toESM(require_dist15());
|
|
169468
169660
|
|
|
169469
169661
|
// package.json
|
|
169470
|
-
var version = "0.
|
|
169662
|
+
var version = "0.2.0";
|
|
169471
169663
|
|
|
169472
169664
|
// src/utils/telemetryHelper.ts
|
|
169473
169665
|
var import_feature_toggle = __toESM(require_dist16());
|
|
@@ -169697,7 +169889,7 @@ var import_vscode14 = require("vscode");
|
|
|
169697
169889
|
var import_vscode9 = require("vscode");
|
|
169698
169890
|
var import_node_path3 = require("node:path");
|
|
169699
169891
|
|
|
169700
|
-
// src/panel/system/utils/
|
|
169892
|
+
// src/panel/system/utils/connectionInfo.ts
|
|
169701
169893
|
var import_axios_extension = __toESM(require_dist17());
|
|
169702
169894
|
function getAbapOnPremServiceProvider({
|
|
169703
169895
|
url,
|
|
@@ -169743,6 +169935,24 @@ async function getCatalogServiceCount(system) {
|
|
|
169743
169935
|
const v4Request = await fetchCount(import_axios_extension.ODataVersion.v4);
|
|
169744
169936
|
return { v2Request, v4Request };
|
|
169745
169937
|
}
|
|
169938
|
+
async function getSystemInfo(system) {
|
|
169939
|
+
let systemInfo;
|
|
169940
|
+
try {
|
|
169941
|
+
const abapServiceProvider = getAbapServiceProvider(system);
|
|
169942
|
+
const info = await abapServiceProvider.getSystemInfo();
|
|
169943
|
+
if (info) {
|
|
169944
|
+
systemInfo = {
|
|
169945
|
+
systemId: info.systemID,
|
|
169946
|
+
client: info.client
|
|
169947
|
+
};
|
|
169948
|
+
}
|
|
169949
|
+
} catch (e) {
|
|
169950
|
+
SystemsLogger.logger.debug(
|
|
169951
|
+
t2("debug.systemInfoRetrievalFailure", { error: e instanceof Error ? e.message : String(e) })
|
|
169952
|
+
);
|
|
169953
|
+
}
|
|
169954
|
+
return systemInfo;
|
|
169955
|
+
}
|
|
169746
169956
|
|
|
169747
169957
|
// src/panel/system/utils/validate.ts
|
|
169748
169958
|
function validateSystemInfo(input) {
|
|
@@ -169990,7 +170200,7 @@ function logTelemetry(status) {
|
|
|
169990
170200
|
var import_store3 = __toESM(require_dist2());
|
|
169991
170201
|
async function renderWebApp(context4) {
|
|
169992
170202
|
const { backendSystem, panelViewType, systemStatusMessage, postMessage } = context4;
|
|
169993
|
-
const systemInfo =
|
|
170203
|
+
const systemInfo = getSystemInfo2(backendSystem);
|
|
169994
170204
|
await postMessage(systemInfoLoading());
|
|
169995
170205
|
if (panelViewType === 0 /* Create */) {
|
|
169996
170206
|
await postMessage(createNewSystem());
|
|
@@ -170003,11 +170213,11 @@ async function renderWebApp(context4) {
|
|
|
170003
170213
|
}
|
|
170004
170214
|
return;
|
|
170005
170215
|
}
|
|
170006
|
-
if (systemInfo && panelViewType ===
|
|
170216
|
+
if (systemInfo && panelViewType === 2 /* Import */) {
|
|
170007
170217
|
await postMessage(updateSystemInfo({ systemInfo, unSaved: true }));
|
|
170008
170218
|
}
|
|
170009
170219
|
}
|
|
170010
|
-
function
|
|
170220
|
+
function getSystemInfo2(backendSystem) {
|
|
170011
170221
|
let systemInfo;
|
|
170012
170222
|
if (backendSystem) {
|
|
170013
170223
|
systemInfo = {
|
|
@@ -170021,27 +170231,50 @@ function getSystemInfo(backendSystem) {
|
|
|
170021
170231
|
// src/panel/system/actions/updateSystem.ts
|
|
170022
170232
|
var import_vscode7 = require("vscode");
|
|
170023
170233
|
async function updateSystem(context4, action) {
|
|
170024
|
-
const { system:
|
|
170234
|
+
const { system: backendSystemPayload } = action.payload;
|
|
170025
170235
|
const systemExistsInStore = !!await getBackendSystem({
|
|
170026
|
-
url:
|
|
170027
|
-
client:
|
|
170236
|
+
url: backendSystemPayload.url,
|
|
170237
|
+
client: backendSystemPayload.client
|
|
170028
170238
|
});
|
|
170239
|
+
let systemInfo;
|
|
170240
|
+
if (shouldStoreSystemInfo(backendSystemPayload)) {
|
|
170241
|
+
systemInfo = await fetchSystemInfo(context4, backendSystemPayload);
|
|
170242
|
+
}
|
|
170243
|
+
const backendSystem = {
|
|
170244
|
+
...backendSystemPayload,
|
|
170245
|
+
...systemInfo && { systemInfo }
|
|
170246
|
+
};
|
|
170029
170247
|
try {
|
|
170030
|
-
await validateSystemName(
|
|
170031
|
-
const newPanelMsg = await updateHandler(context4,
|
|
170032
|
-
await saveSystem(
|
|
170248
|
+
await validateSystemName(backendSystem.name, context4.backendSystem?.name);
|
|
170249
|
+
const newPanelMsg = await updateHandler(context4, backendSystem, systemExistsInStore);
|
|
170250
|
+
await saveSystem(backendSystem, systemExistsInStore, context4.panelViewType);
|
|
170033
170251
|
if (newPanelMsg) {
|
|
170034
|
-
await import_vscode7.commands.executeCommand("sap.ux.tools.sapSystems.show" /* Show */,
|
|
170252
|
+
await import_vscode7.commands.executeCommand("sap.ux.tools.sapSystems.show" /* Show */, backendSystem, newPanelMsg);
|
|
170035
170253
|
}
|
|
170036
170254
|
} catch (error) {
|
|
170037
170255
|
const message = error instanceof Error ? error.message : String(error);
|
|
170038
|
-
await postSavingError(message, context4.postMessage, systemExistsInStore,
|
|
170256
|
+
await postSavingError(message, context4.postMessage, systemExistsInStore, backendSystem.systemType);
|
|
170039
170257
|
}
|
|
170040
170258
|
}
|
|
170259
|
+
async function fetchSystemInfo(context4, backendSystemPayload) {
|
|
170260
|
+
if (context4.backendSystem?.systemInfo?.systemId && compareSystems(context4.backendSystem, backendSystemPayload)) {
|
|
170261
|
+
return context4.backendSystem.systemInfo;
|
|
170262
|
+
}
|
|
170263
|
+
const systemInfo = await getSystemInfo(backendSystemPayload);
|
|
170264
|
+
if (systemInfo) {
|
|
170265
|
+
SystemsLogger.logger.debug(
|
|
170266
|
+
t2("debug.systemInfoRetrieved", {
|
|
170267
|
+
systemId: systemInfo.systemId,
|
|
170268
|
+
client: systemInfo.client
|
|
170269
|
+
})
|
|
170270
|
+
);
|
|
170271
|
+
}
|
|
170272
|
+
return systemInfo;
|
|
170273
|
+
}
|
|
170041
170274
|
async function updateHandler(context4, newSystem, systemExistsInStore) {
|
|
170042
170275
|
const panelViewType = context4.panelViewType;
|
|
170043
170276
|
let newPanelMsg;
|
|
170044
|
-
if (panelViewType === 0 /* Create */ || panelViewType ===
|
|
170277
|
+
if (panelViewType === 0 /* Create */ || panelViewType === 2 /* Import */) {
|
|
170045
170278
|
if (systemExistsInStore) {
|
|
170046
170279
|
throw t2("error.systemKeyExists");
|
|
170047
170280
|
}
|
|
@@ -170082,9 +170315,6 @@ async function postSavingError(errorMsg, postMessage, systemExistsInStore, syste
|
|
|
170082
170315
|
systemType
|
|
170083
170316
|
});
|
|
170084
170317
|
}
|
|
170085
|
-
function compareSystems(currentSystem, newSystem) {
|
|
170086
|
-
return currentSystem.url.replace(/\/$/, "") === newSystem?.url.replace(/\/$/, "") && currentSystem.client === newSystem?.client;
|
|
170087
|
-
}
|
|
170088
170318
|
async function saveSystem(backendSystem, systemExistsInStore, systemPanelViewType) {
|
|
170089
170319
|
const newBackendSystem = {
|
|
170090
170320
|
...backendSystem,
|
|
@@ -170106,6 +170336,7 @@ async function saveSystem(backendSystem, systemExistsInStore, systemPanelViewTyp
|
|
|
170106
170336
|
}
|
|
170107
170337
|
|
|
170108
170338
|
// src/panel/system/actions/testConnection.ts
|
|
170339
|
+
var import_store4 = __toESM(require_dist2());
|
|
170109
170340
|
var import_axios_extension2 = __toESM(require_dist17());
|
|
170110
170341
|
async function testSystemConnection(context4, action) {
|
|
170111
170342
|
const { postMessage, isGuidedAnswersEnabled } = context4;
|
|
@@ -170132,6 +170363,13 @@ async function testSystemConnection(context4, action) {
|
|
|
170132
170363
|
handleCatalogError(postMessage, serviceCount, isGuidedAnswersEnabled, e);
|
|
170133
170364
|
logTestTelemetry("FAILED" /* FAILED */, system.systemType);
|
|
170134
170365
|
}
|
|
170366
|
+
try {
|
|
170367
|
+
if (shouldStoreSystemInfo(system)) {
|
|
170368
|
+
await storeSystemInfo(context4, system);
|
|
170369
|
+
}
|
|
170370
|
+
} catch (e) {
|
|
170371
|
+
SystemsLogger.logger.error(t2("error.systemInfoUpdate", { error: e.message }));
|
|
170372
|
+
}
|
|
170135
170373
|
}
|
|
170136
170374
|
function postConnectionStatus(postMessage, connected, catalogResults, message, guidedAnswerLink) {
|
|
170137
170375
|
postMessage(connectionStatusMsg({ connectionStatus: { connected, catalogResults, message }, guidedAnswerLink }));
|
|
@@ -170197,6 +170435,34 @@ function logGATelemetry(status, errorType = "", isGuidedAnswersEnabled) {
|
|
|
170197
170435
|
isGuidedAnswersEnabled: isGuidedAnswersEnabled ? "true" : "false"
|
|
170198
170436
|
});
|
|
170199
170437
|
}
|
|
170438
|
+
async function storeSystemInfo(context4, backendSystemPayload) {
|
|
170439
|
+
const isSimpleView = context4.panelViewType === 1 /* View */ && context4.backendSystem && compareSystems(context4.backendSystem, backendSystemPayload);
|
|
170440
|
+
if (!isSimpleView) {
|
|
170441
|
+
return;
|
|
170442
|
+
}
|
|
170443
|
+
if (isSimpleView && context4.backendSystem?.systemInfo?.systemId) {
|
|
170444
|
+
return;
|
|
170445
|
+
}
|
|
170446
|
+
const systemInfo = await getSystemInfo(backendSystemPayload);
|
|
170447
|
+
if (systemInfo) {
|
|
170448
|
+
SystemsLogger.logger.debug(
|
|
170449
|
+
t2("debug.systemInfoRetrieved", {
|
|
170450
|
+
systemId: systemInfo.systemId,
|
|
170451
|
+
client: systemInfo.client
|
|
170452
|
+
})
|
|
170453
|
+
);
|
|
170454
|
+
const systemService = await getBackendSystemService();
|
|
170455
|
+
await systemService.partialUpdate(
|
|
170456
|
+
new import_store4.BackendSystemKey({
|
|
170457
|
+
url: backendSystemPayload.url,
|
|
170458
|
+
client: backendSystemPayload.client
|
|
170459
|
+
}),
|
|
170460
|
+
{
|
|
170461
|
+
systemInfo: { systemId: systemInfo.systemId, client: systemInfo.client }
|
|
170462
|
+
}
|
|
170463
|
+
);
|
|
170464
|
+
}
|
|
170465
|
+
}
|
|
170200
170466
|
|
|
170201
170467
|
// src/panel/system/actions/sendTelemetry.ts
|
|
170202
170468
|
function fireGALinkClickedTelemetry(context4) {
|
|
@@ -170408,7 +170674,7 @@ function createNewPanel(context4) {
|
|
|
170408
170674
|
}
|
|
170409
170675
|
|
|
170410
170676
|
// src/commands/system/show.ts
|
|
170411
|
-
var
|
|
170677
|
+
var import_store5 = __toESM(require_dist2());
|
|
170412
170678
|
var import_vscode10 = require("vscode");
|
|
170413
170679
|
var showSystemsCommandHandler = (context4) => async (system, statusMsg) => {
|
|
170414
170680
|
try {
|
|
@@ -170428,7 +170694,7 @@ var showSystemsCommandHandler = (context4) => async (system, statusMsg) => {
|
|
|
170428
170694
|
};
|
|
170429
170695
|
async function getBackendSystemKey(systemService, system) {
|
|
170430
170696
|
if (system) {
|
|
170431
|
-
return new
|
|
170697
|
+
return new import_store5.BackendSystemKey({ url: system.url, client: system.client });
|
|
170432
170698
|
} else {
|
|
170433
170699
|
return sapSystemDropdownPicker(systemService);
|
|
170434
170700
|
}
|
|
@@ -170437,7 +170703,7 @@ async function sapSystemDropdownPicker(systemService) {
|
|
|
170437
170703
|
const allBackendSystems = await systemService.getAll({ includeSensitiveData: false });
|
|
170438
170704
|
const quickPickItems = allBackendSystems.map((system) => ({
|
|
170439
170705
|
label: system.name,
|
|
170440
|
-
systemKey: new
|
|
170706
|
+
systemKey: new import_store5.BackendSystemKey({ url: system.url, client: system.client })
|
|
170441
170707
|
}));
|
|
170442
170708
|
const selectedItem = await import_vscode10.window.showQuickPick(quickPickItems, {
|
|
170443
170709
|
placeHolder: t2("commands.quickpickPlaceholder")
|
|
@@ -170474,10 +170740,10 @@ function logTelemetryFailure() {
|
|
|
170474
170740
|
}
|
|
170475
170741
|
|
|
170476
170742
|
// src/commands/system/delete.ts
|
|
170477
|
-
var
|
|
170743
|
+
var import_store6 = __toESM(require_dist2());
|
|
170478
170744
|
var import_vscode11 = require("vscode");
|
|
170479
170745
|
var deleteSystemCommandHandler = (context4) => async (system) => {
|
|
170480
|
-
const backendSystemKey = new
|
|
170746
|
+
const backendSystemKey = new import_store6.BackendSystemKey({ url: system.url, client: system.client });
|
|
170481
170747
|
const systemService = await getBackendSystemService();
|
|
170482
170748
|
const backendSystem = await systemService.read(backendSystemKey);
|
|
170483
170749
|
if (!backendSystem) {
|
|
@@ -170519,14 +170785,14 @@ var refreshSystemsCommandHandler = (commandContext) => async () => {
|
|
|
170519
170785
|
};
|
|
170520
170786
|
|
|
170521
170787
|
// src/commands/system/import.ts
|
|
170522
|
-
var
|
|
170788
|
+
var import_store7 = __toESM(require_dist2());
|
|
170523
170789
|
var import_vscode12 = require("vscode");
|
|
170524
170790
|
var import_node_os2 = require("node:os");
|
|
170525
170791
|
var import_node_fs2 = require("node:fs");
|
|
170526
170792
|
var importSystemCommandHandler = (commandContext) => async () => {
|
|
170527
170793
|
try {
|
|
170528
170794
|
const importSystemConfig = await getImportSystemConfig();
|
|
170529
|
-
const backendSystemKey = new
|
|
170795
|
+
const backendSystemKey = new import_store7.BackendSystemKey({
|
|
170530
170796
|
url: importSystemConfig.url,
|
|
170531
170797
|
client: importSystemConfig.client
|
|
170532
170798
|
});
|
|
@@ -170556,7 +170822,7 @@ var importSystemCommandHandler = (commandContext) => async () => {
|
|
|
170556
170822
|
};
|
|
170557
170823
|
function createNewPanel2(context4, panelKey, systemConfig, existingSystem) {
|
|
170558
170824
|
const name2 = systemConfig?.name ?? existingSystem?.name ?? "New System";
|
|
170559
|
-
const backendSystem = new
|
|
170825
|
+
const backendSystem = new import_store7.BackendSystem({
|
|
170560
170826
|
name: name2,
|
|
170561
170827
|
url: systemConfig.url,
|
|
170562
170828
|
client: systemConfig.client,
|
|
@@ -170567,7 +170833,7 @@ function createNewPanel2(context4, panelKey, systemConfig, existingSystem) {
|
|
|
170567
170833
|
});
|
|
170568
170834
|
return new SystemPanel({
|
|
170569
170835
|
extensionPath: context4.extContext.vscodeExtContext.extensionPath,
|
|
170570
|
-
systemPanelViewType: existingSystem ? 1 /* View */ :
|
|
170836
|
+
systemPanelViewType: existingSystem ? 1 /* View */ : 2 /* Import */,
|
|
170571
170837
|
disposeCallback: () => {
|
|
170572
170838
|
context4.panelManager.deleteAndDispose(panelKey);
|
|
170573
170839
|
},
|
|
@@ -170611,12 +170877,12 @@ function logImportTelemetry(status) {
|
|
|
170611
170877
|
|
|
170612
170878
|
// src/commands/system/launchAppGen.ts
|
|
170613
170879
|
var import_vscode13 = require("vscode");
|
|
170614
|
-
var
|
|
170880
|
+
var import_store8 = __toESM(require_dist2());
|
|
170615
170881
|
var launchAppGenCommandHandler = (_context) => async (system) => {
|
|
170616
170882
|
if (system.url) {
|
|
170617
170883
|
const systemService = await getBackendSystemService();
|
|
170618
170884
|
const backendSystem = await systemService.read(
|
|
170619
|
-
new
|
|
170885
|
+
new import_store8.BackendSystemKey({ url: system.url, client: system.client })
|
|
170620
170886
|
);
|
|
170621
170887
|
try {
|
|
170622
170888
|
await import_vscode13.commands.executeCommand(fioriToolsAppModAppGenLaunchCmd, {
|