@uipath/apms-tool 1.197.0 → 1.198.0-preview.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1356 -852
- package/dist/tool.js +1356 -852
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21247,7 +21247,7 @@ var {
|
|
|
21247
21247
|
var package_default = {
|
|
21248
21248
|
name: "@uipath/apms-tool",
|
|
21249
21249
|
license: "MIT",
|
|
21250
|
-
version: "1.
|
|
21250
|
+
version: "1.198.0-preview.100",
|
|
21251
21251
|
description: "CLI plugin for the UiPath Access Policy Management Service.",
|
|
21252
21252
|
private: false,
|
|
21253
21253
|
repository: {
|
|
@@ -21655,7 +21655,7 @@ class VoidApiResponse {
|
|
|
21655
21655
|
var package_default2 = {
|
|
21656
21656
|
name: "@uipath/apms-sdk",
|
|
21657
21657
|
license: "MIT",
|
|
21658
|
-
version: "1.
|
|
21658
|
+
version: "1.198.0",
|
|
21659
21659
|
description: "SDK for the UiPath Access Policy Management Service API.",
|
|
21660
21660
|
repository: {
|
|
21661
21661
|
type: "git",
|
|
@@ -23847,6 +23847,10 @@ function normalizeTokenRefreshUnavailableFailure() {
|
|
|
23847
23847
|
function errorMessage(error) {
|
|
23848
23848
|
return error instanceof Error ? error.message : String(error);
|
|
23849
23849
|
}
|
|
23850
|
+
|
|
23851
|
+
// ../../auth/src/index.ts
|
|
23852
|
+
init_constants();
|
|
23853
|
+
|
|
23850
23854
|
// ../../auth/src/interactive.ts
|
|
23851
23855
|
init_src();
|
|
23852
23856
|
|
|
@@ -23966,8 +23970,15 @@ var TLS_ERROR_CODES = new Set([
|
|
|
23966
23970
|
var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
|
|
23967
23971
|
var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
|
|
23968
23972
|
function describeConnectivityError(error) {
|
|
23969
|
-
|
|
23970
|
-
|
|
23973
|
+
const queue = [error];
|
|
23974
|
+
const seen = new Set;
|
|
23975
|
+
for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
|
|
23976
|
+
const current = queue.shift();
|
|
23977
|
+
if (current === null || typeof current !== "object")
|
|
23978
|
+
continue;
|
|
23979
|
+
if (seen.has(current))
|
|
23980
|
+
continue;
|
|
23981
|
+
seen.add(current);
|
|
23971
23982
|
const cur = current;
|
|
23972
23983
|
const code = typeof cur.code === "string" ? cur.code : undefined;
|
|
23973
23984
|
const message = typeof cur.message === "string" ? cur.message : undefined;
|
|
@@ -23987,7 +23998,10 @@ function describeConnectivityError(error) {
|
|
|
23987
23998
|
instructions: NETWORK_INSTRUCTIONS
|
|
23988
23999
|
};
|
|
23989
24000
|
}
|
|
23990
|
-
|
|
24001
|
+
if (cur.cause !== undefined)
|
|
24002
|
+
queue.push(cur.cause);
|
|
24003
|
+
if (Array.isArray(cur.errors))
|
|
24004
|
+
queue.push(...cur.errors);
|
|
23991
24005
|
}
|
|
23992
24006
|
return;
|
|
23993
24007
|
}
|
|
@@ -26230,31 +26244,17 @@ function search(data, expression, options) {
|
|
|
26230
26244
|
}
|
|
26231
26245
|
|
|
26232
26246
|
// ../../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
26233
|
-
|
|
26234
|
-
|
|
26235
|
-
|
|
26236
|
-
var
|
|
26237
|
-
var
|
|
26238
|
-
var
|
|
26239
|
-
var
|
|
26240
|
-
|
|
26241
|
-
|
|
26242
|
-
|
|
26243
|
-
|
|
26244
|
-
key = keys[i];
|
|
26245
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
26246
|
-
__defProp2(to, key, {
|
|
26247
|
-
get: ((k) => from[k]).bind(null, key),
|
|
26248
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26249
|
-
});
|
|
26250
|
-
}
|
|
26251
|
-
return to;
|
|
26252
|
-
};
|
|
26253
|
-
var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
|
|
26254
|
-
value: mod2,
|
|
26255
|
-
enumerable: true
|
|
26256
|
-
}) : target, mod2));
|
|
26257
|
-
var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
26247
|
+
function getDefaultExportFromCjs(x) {
|
|
26248
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
26249
|
+
}
|
|
26250
|
+
var jsYaml = {};
|
|
26251
|
+
var loader = {};
|
|
26252
|
+
var common = {};
|
|
26253
|
+
var hasRequiredCommon;
|
|
26254
|
+
function requireCommon() {
|
|
26255
|
+
if (hasRequiredCommon)
|
|
26256
|
+
return common;
|
|
26257
|
+
hasRequiredCommon = 1;
|
|
26258
26258
|
function isNothing(subject) {
|
|
26259
26259
|
return typeof subject === "undefined" || subject === null;
|
|
26260
26260
|
}
|
|
@@ -26280,55 +26280,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26280
26280
|
}
|
|
26281
26281
|
function repeat(string, count) {
|
|
26282
26282
|
let result = "";
|
|
26283
|
-
for (let cycle = 0;cycle < count; cycle += 1)
|
|
26283
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
26284
26284
|
result += string;
|
|
26285
|
+
}
|
|
26285
26286
|
return result;
|
|
26286
26287
|
}
|
|
26287
26288
|
function isNegativeZero(number) {
|
|
26288
26289
|
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
26289
26290
|
}
|
|
26290
|
-
|
|
26291
|
-
|
|
26292
|
-
|
|
26293
|
-
|
|
26294
|
-
|
|
26295
|
-
|
|
26296
|
-
|
|
26297
|
-
|
|
26298
|
-
|
|
26291
|
+
common.isNothing = isNothing;
|
|
26292
|
+
common.isObject = isObject2;
|
|
26293
|
+
common.toArray = toArray;
|
|
26294
|
+
common.repeat = repeat;
|
|
26295
|
+
common.isNegativeZero = isNegativeZero;
|
|
26296
|
+
common.extend = extend;
|
|
26297
|
+
return common;
|
|
26298
|
+
}
|
|
26299
|
+
var exception;
|
|
26300
|
+
var hasRequiredException;
|
|
26301
|
+
function requireException() {
|
|
26302
|
+
if (hasRequiredException)
|
|
26303
|
+
return exception;
|
|
26304
|
+
hasRequiredException = 1;
|
|
26305
|
+
function formatError(exception2, compact) {
|
|
26299
26306
|
let where = "";
|
|
26300
|
-
const message =
|
|
26301
|
-
if (!
|
|
26307
|
+
const message = exception2.reason || "(unknown reason)";
|
|
26308
|
+
if (!exception2.mark)
|
|
26302
26309
|
return message;
|
|
26303
|
-
if (
|
|
26304
|
-
where += 'in "' +
|
|
26305
|
-
|
|
26306
|
-
|
|
26310
|
+
if (exception2.mark.name) {
|
|
26311
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
26312
|
+
}
|
|
26313
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
26314
|
+
if (!compact && exception2.mark.snippet) {
|
|
26307
26315
|
where += `
|
|
26308
26316
|
|
|
26309
|
-
` +
|
|
26317
|
+
` + exception2.mark.snippet;
|
|
26318
|
+
}
|
|
26310
26319
|
return message + " " + where;
|
|
26311
26320
|
}
|
|
26312
|
-
function
|
|
26321
|
+
function YAMLException2(reason, mark) {
|
|
26313
26322
|
Error.call(this);
|
|
26314
26323
|
this.name = "YAMLException";
|
|
26315
26324
|
this.reason = reason;
|
|
26316
26325
|
this.mark = mark;
|
|
26317
26326
|
this.message = formatError(this, false);
|
|
26318
|
-
if (Error.captureStackTrace)
|
|
26327
|
+
if (Error.captureStackTrace) {
|
|
26319
26328
|
Error.captureStackTrace(this, this.constructor);
|
|
26320
|
-
else
|
|
26321
|
-
this.stack =
|
|
26329
|
+
} else {
|
|
26330
|
+
this.stack = new Error().stack || "";
|
|
26331
|
+
}
|
|
26322
26332
|
}
|
|
26323
|
-
|
|
26324
|
-
|
|
26325
|
-
|
|
26333
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
26334
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
26335
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
26326
26336
|
return this.name + ": " + formatError(this, compact);
|
|
26327
26337
|
};
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26338
|
+
exception = YAMLException2;
|
|
26339
|
+
return exception;
|
|
26340
|
+
}
|
|
26341
|
+
var snippet;
|
|
26342
|
+
var hasRequiredSnippet;
|
|
26343
|
+
function requireSnippet() {
|
|
26344
|
+
if (hasRequiredSnippet)
|
|
26345
|
+
return snippet;
|
|
26346
|
+
hasRequiredSnippet = 1;
|
|
26347
|
+
const common2 = requireCommon();
|
|
26332
26348
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
26333
26349
|
let head = "";
|
|
26334
26350
|
let tail = "";
|
|
@@ -26347,7 +26363,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26347
26363
|
};
|
|
26348
26364
|
}
|
|
26349
26365
|
function padStart(string, max) {
|
|
26350
|
-
return
|
|
26366
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
26351
26367
|
}
|
|
26352
26368
|
function makeSnippet(mark, options) {
|
|
26353
26369
|
options = Object.create(options || null);
|
|
@@ -26369,8 +26385,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26369
26385
|
while (match = re.exec(mark.buffer)) {
|
|
26370
26386
|
lineEnds.push(match.index);
|
|
26371
26387
|
lineStarts.push(match.index + match[0].length);
|
|
26372
|
-
if (mark.position <= match.index && foundLineNo < 0)
|
|
26388
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
26373
26389
|
foundLineNo = lineStarts.length - 2;
|
|
26390
|
+
}
|
|
26374
26391
|
}
|
|
26375
26392
|
if (foundLineNo < 0)
|
|
26376
26393
|
foundLineNo = lineStarts.length - 1;
|
|
@@ -26381,28 +26398,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26381
26398
|
if (foundLineNo - i < 0)
|
|
26382
26399
|
break;
|
|
26383
26400
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
26384
|
-
result =
|
|
26401
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
26385
26402
|
` + result;
|
|
26386
26403
|
}
|
|
26387
26404
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
26388
|
-
result +=
|
|
26405
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
26389
26406
|
`;
|
|
26390
|
-
result +=
|
|
26407
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
26391
26408
|
`;
|
|
26392
26409
|
for (let i = 1;i <= options.linesAfter; i++) {
|
|
26393
26410
|
if (foundLineNo + i >= lineEnds.length)
|
|
26394
26411
|
break;
|
|
26395
26412
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
26396
|
-
result +=
|
|
26413
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
26397
26414
|
`;
|
|
26398
26415
|
}
|
|
26399
26416
|
return result.replace(/\n$/, "");
|
|
26400
26417
|
}
|
|
26401
|
-
|
|
26402
|
-
|
|
26403
|
-
|
|
26404
|
-
|
|
26405
|
-
|
|
26418
|
+
snippet = makeSnippet;
|
|
26419
|
+
return snippet;
|
|
26420
|
+
}
|
|
26421
|
+
var type;
|
|
26422
|
+
var hasRequiredType;
|
|
26423
|
+
function requireType() {
|
|
26424
|
+
if (hasRequiredType)
|
|
26425
|
+
return type;
|
|
26426
|
+
hasRequiredType = 1;
|
|
26427
|
+
const YAMLException2 = requireException();
|
|
26428
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
26406
26429
|
"kind",
|
|
26407
26430
|
"multi",
|
|
26408
26431
|
"resolve",
|
|
@@ -26414,26 +26437,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26414
26437
|
"defaultStyle",
|
|
26415
26438
|
"styleAliases"
|
|
26416
26439
|
];
|
|
26417
|
-
|
|
26440
|
+
const YAML_NODE_KINDS = [
|
|
26418
26441
|
"scalar",
|
|
26419
26442
|
"sequence",
|
|
26420
26443
|
"mapping"
|
|
26421
26444
|
];
|
|
26422
|
-
function compileStyleAliases(
|
|
26445
|
+
function compileStyleAliases(map2) {
|
|
26423
26446
|
const result = {};
|
|
26424
|
-
if (
|
|
26425
|
-
Object.keys(
|
|
26426
|
-
|
|
26447
|
+
if (map2 !== null) {
|
|
26448
|
+
Object.keys(map2).forEach(function(style) {
|
|
26449
|
+
map2[style].forEach(function(alias) {
|
|
26427
26450
|
result[String(alias)] = style;
|
|
26428
26451
|
});
|
|
26429
26452
|
});
|
|
26453
|
+
}
|
|
26430
26454
|
return result;
|
|
26431
26455
|
}
|
|
26432
|
-
function
|
|
26456
|
+
function Type2(tag, options) {
|
|
26433
26457
|
options = options || {};
|
|
26434
26458
|
Object.keys(options).forEach(function(name) {
|
|
26435
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
|
|
26436
|
-
throw new
|
|
26459
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
26460
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
26461
|
+
}
|
|
26437
26462
|
});
|
|
26438
26463
|
this.options = options;
|
|
26439
26464
|
this.tag = tag;
|
|
@@ -26451,21 +26476,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26451
26476
|
this.defaultStyle = options["defaultStyle"] || null;
|
|
26452
26477
|
this.multi = options["multi"] || false;
|
|
26453
26478
|
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
26454
|
-
if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
|
|
26455
|
-
throw new
|
|
26479
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
26480
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
26481
|
+
}
|
|
26456
26482
|
}
|
|
26457
|
-
|
|
26458
|
-
|
|
26459
|
-
|
|
26460
|
-
|
|
26461
|
-
|
|
26462
|
-
|
|
26483
|
+
type = Type2;
|
|
26484
|
+
return type;
|
|
26485
|
+
}
|
|
26486
|
+
var schema;
|
|
26487
|
+
var hasRequiredSchema;
|
|
26488
|
+
function requireSchema() {
|
|
26489
|
+
if (hasRequiredSchema)
|
|
26490
|
+
return schema;
|
|
26491
|
+
hasRequiredSchema = 1;
|
|
26492
|
+
const YAMLException2 = requireException();
|
|
26493
|
+
const Type2 = requireType();
|
|
26494
|
+
function compileList(schema2, name) {
|
|
26463
26495
|
const result = [];
|
|
26464
|
-
|
|
26496
|
+
schema2[name].forEach(function(currentType) {
|
|
26465
26497
|
let newIndex = result.length;
|
|
26466
26498
|
result.forEach(function(previousType, previousIndex) {
|
|
26467
|
-
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
|
|
26499
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
26468
26500
|
newIndex = previousIndex;
|
|
26501
|
+
}
|
|
26469
26502
|
});
|
|
26470
26503
|
result[newIndex] = currentType;
|
|
26471
26504
|
});
|
|
@@ -26484,47 +26517,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26484
26517
|
fallback: []
|
|
26485
26518
|
}
|
|
26486
26519
|
};
|
|
26487
|
-
function collectType(
|
|
26488
|
-
if (
|
|
26489
|
-
result.multi[
|
|
26490
|
-
result.multi["fallback"].push(
|
|
26491
|
-
} else
|
|
26492
|
-
result[
|
|
26520
|
+
function collectType(type2) {
|
|
26521
|
+
if (type2.multi) {
|
|
26522
|
+
result.multi[type2.kind].push(type2);
|
|
26523
|
+
result.multi["fallback"].push(type2);
|
|
26524
|
+
} else {
|
|
26525
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
26526
|
+
}
|
|
26493
26527
|
}
|
|
26494
|
-
for (let index = 0, length = arguments.length;index < length; index += 1)
|
|
26528
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
26495
26529
|
arguments[index].forEach(collectType);
|
|
26530
|
+
}
|
|
26496
26531
|
return result;
|
|
26497
26532
|
}
|
|
26498
|
-
function
|
|
26533
|
+
function Schema2(definition) {
|
|
26499
26534
|
return this.extend(definition);
|
|
26500
26535
|
}
|
|
26501
|
-
|
|
26536
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
26502
26537
|
let implicit = [];
|
|
26503
26538
|
let explicit = [];
|
|
26504
|
-
if (definition instanceof
|
|
26539
|
+
if (definition instanceof Type2) {
|
|
26505
26540
|
explicit.push(definition);
|
|
26506
|
-
else if (Array.isArray(definition))
|
|
26541
|
+
} else if (Array.isArray(definition)) {
|
|
26507
26542
|
explicit = explicit.concat(definition);
|
|
26508
|
-
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
26543
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
26509
26544
|
if (definition.implicit)
|
|
26510
26545
|
implicit = implicit.concat(definition.implicit);
|
|
26511
26546
|
if (definition.explicit)
|
|
26512
26547
|
explicit = explicit.concat(definition.explicit);
|
|
26513
|
-
} else
|
|
26514
|
-
throw new
|
|
26515
|
-
|
|
26516
|
-
|
|
26517
|
-
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
if (
|
|
26521
|
-
throw new
|
|
26548
|
+
} else {
|
|
26549
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
26550
|
+
}
|
|
26551
|
+
implicit.forEach(function(type2) {
|
|
26552
|
+
if (!(type2 instanceof Type2)) {
|
|
26553
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
26554
|
+
}
|
|
26555
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
26556
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
26557
|
+
}
|
|
26558
|
+
if (type2.multi) {
|
|
26559
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
26560
|
+
}
|
|
26522
26561
|
});
|
|
26523
|
-
explicit.forEach(function(
|
|
26524
|
-
if (!(
|
|
26525
|
-
throw new
|
|
26562
|
+
explicit.forEach(function(type2) {
|
|
26563
|
+
if (!(type2 instanceof Type2)) {
|
|
26564
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
26565
|
+
}
|
|
26526
26566
|
});
|
|
26527
|
-
const result = Object.create(
|
|
26567
|
+
const result = Object.create(Schema2.prototype);
|
|
26528
26568
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
26529
26569
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
26530
26570
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -26532,41 +26572,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26532
26572
|
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
26533
26573
|
return result;
|
|
26534
26574
|
};
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26575
|
+
schema = Schema2;
|
|
26576
|
+
return schema;
|
|
26577
|
+
}
|
|
26578
|
+
var str;
|
|
26579
|
+
var hasRequiredStr;
|
|
26580
|
+
function requireStr() {
|
|
26581
|
+
if (hasRequiredStr)
|
|
26582
|
+
return str;
|
|
26583
|
+
hasRequiredStr = 1;
|
|
26584
|
+
const Type2 = requireType();
|
|
26585
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
26539
26586
|
kind: "scalar",
|
|
26540
26587
|
construct: function(data) {
|
|
26541
26588
|
return data !== null ? data : "";
|
|
26542
26589
|
}
|
|
26543
26590
|
});
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26591
|
+
return str;
|
|
26592
|
+
}
|
|
26593
|
+
var seq;
|
|
26594
|
+
var hasRequiredSeq;
|
|
26595
|
+
function requireSeq() {
|
|
26596
|
+
if (hasRequiredSeq)
|
|
26597
|
+
return seq;
|
|
26598
|
+
hasRequiredSeq = 1;
|
|
26599
|
+
const Type2 = requireType();
|
|
26600
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
26547
26601
|
kind: "sequence",
|
|
26548
26602
|
construct: function(data) {
|
|
26549
26603
|
return data !== null ? data : [];
|
|
26550
26604
|
}
|
|
26551
26605
|
});
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
|
|
26606
|
+
return seq;
|
|
26607
|
+
}
|
|
26608
|
+
var map;
|
|
26609
|
+
var hasRequiredMap;
|
|
26610
|
+
function requireMap() {
|
|
26611
|
+
if (hasRequiredMap)
|
|
26612
|
+
return map;
|
|
26613
|
+
hasRequiredMap = 1;
|
|
26614
|
+
const Type2 = requireType();
|
|
26615
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
26555
26616
|
kind: "mapping",
|
|
26556
26617
|
construct: function(data) {
|
|
26557
26618
|
return data !== null ? data : {};
|
|
26558
26619
|
}
|
|
26559
26620
|
});
|
|
26560
|
-
|
|
26561
|
-
|
|
26562
|
-
|
|
26563
|
-
|
|
26564
|
-
|
|
26565
|
-
|
|
26566
|
-
|
|
26567
|
-
|
|
26568
|
-
|
|
26569
|
-
|
|
26621
|
+
return map;
|
|
26622
|
+
}
|
|
26623
|
+
var failsafe;
|
|
26624
|
+
var hasRequiredFailsafe;
|
|
26625
|
+
function requireFailsafe() {
|
|
26626
|
+
if (hasRequiredFailsafe)
|
|
26627
|
+
return failsafe;
|
|
26628
|
+
hasRequiredFailsafe = 1;
|
|
26629
|
+
const Schema2 = requireSchema();
|
|
26630
|
+
failsafe = new Schema2({
|
|
26631
|
+
explicit: [
|
|
26632
|
+
requireStr(),
|
|
26633
|
+
requireSeq(),
|
|
26634
|
+
requireMap()
|
|
26635
|
+
]
|
|
26636
|
+
});
|
|
26637
|
+
return failsafe;
|
|
26638
|
+
}
|
|
26639
|
+
var _null;
|
|
26640
|
+
var hasRequired_null;
|
|
26641
|
+
function require_null() {
|
|
26642
|
+
if (hasRequired_null)
|
|
26643
|
+
return _null;
|
|
26644
|
+
hasRequired_null = 1;
|
|
26645
|
+
const Type2 = requireType();
|
|
26570
26646
|
function resolveYamlNull(data) {
|
|
26571
26647
|
if (data === null)
|
|
26572
26648
|
return true;
|
|
@@ -26579,7 +26655,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26579
26655
|
function isNull(object) {
|
|
26580
26656
|
return object === null;
|
|
26581
26657
|
}
|
|
26582
|
-
|
|
26658
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
26583
26659
|
kind: "scalar",
|
|
26584
26660
|
resolve: resolveYamlNull,
|
|
26585
26661
|
construct: constructYamlNull,
|
|
@@ -26603,9 +26679,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26603
26679
|
},
|
|
26604
26680
|
defaultStyle: "lowercase"
|
|
26605
26681
|
});
|
|
26606
|
-
|
|
26607
|
-
|
|
26608
|
-
|
|
26682
|
+
return _null;
|
|
26683
|
+
}
|
|
26684
|
+
var bool;
|
|
26685
|
+
var hasRequiredBool;
|
|
26686
|
+
function requireBool() {
|
|
26687
|
+
if (hasRequiredBool)
|
|
26688
|
+
return bool;
|
|
26689
|
+
hasRequiredBool = 1;
|
|
26690
|
+
const Type2 = requireType();
|
|
26609
26691
|
function resolveYamlBoolean(data) {
|
|
26610
26692
|
if (data === null)
|
|
26611
26693
|
return false;
|
|
@@ -26618,7 +26700,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26618
26700
|
function isBoolean(object) {
|
|
26619
26701
|
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
26620
26702
|
}
|
|
26621
|
-
|
|
26703
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
26622
26704
|
kind: "scalar",
|
|
26623
26705
|
resolve: resolveYamlBoolean,
|
|
26624
26706
|
construct: constructYamlBoolean,
|
|
@@ -26636,10 +26718,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26636
26718
|
},
|
|
26637
26719
|
defaultStyle: "lowercase"
|
|
26638
26720
|
});
|
|
26639
|
-
|
|
26640
|
-
|
|
26641
|
-
|
|
26642
|
-
|
|
26721
|
+
return bool;
|
|
26722
|
+
}
|
|
26723
|
+
var int;
|
|
26724
|
+
var hasRequiredInt;
|
|
26725
|
+
function requireInt() {
|
|
26726
|
+
if (hasRequiredInt)
|
|
26727
|
+
return int;
|
|
26728
|
+
hasRequiredInt = 1;
|
|
26729
|
+
const common2 = requireCommon();
|
|
26730
|
+
const Type2 = requireType();
|
|
26643
26731
|
function isHexCode(c) {
|
|
26644
26732
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
26645
26733
|
}
|
|
@@ -26658,8 +26746,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26658
26746
|
if (!max)
|
|
26659
26747
|
return false;
|
|
26660
26748
|
let ch = data[index];
|
|
26661
|
-
if (ch === "-" || ch === "+")
|
|
26749
|
+
if (ch === "-" || ch === "+") {
|
|
26662
26750
|
ch = data[++index];
|
|
26751
|
+
}
|
|
26663
26752
|
if (ch === "0") {
|
|
26664
26753
|
if (index + 1 === max)
|
|
26665
26754
|
return true;
|
|
@@ -26672,7 +26761,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26672
26761
|
return false;
|
|
26673
26762
|
hasDigits = true;
|
|
26674
26763
|
}
|
|
26675
|
-
return hasDigits &&
|
|
26764
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
26676
26765
|
}
|
|
26677
26766
|
if (ch === "x") {
|
|
26678
26767
|
index++;
|
|
@@ -26681,7 +26770,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26681
26770
|
return false;
|
|
26682
26771
|
hasDigits = true;
|
|
26683
26772
|
}
|
|
26684
|
-
return hasDigits &&
|
|
26773
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
26685
26774
|
}
|
|
26686
26775
|
if (ch === "o") {
|
|
26687
26776
|
index++;
|
|
@@ -26690,17 +26779,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26690
26779
|
return false;
|
|
26691
26780
|
hasDigits = true;
|
|
26692
26781
|
}
|
|
26693
|
-
return hasDigits &&
|
|
26782
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
26694
26783
|
}
|
|
26695
26784
|
}
|
|
26696
26785
|
for (;index < max; index++) {
|
|
26697
|
-
if (!isDecCode(data.charCodeAt(index)))
|
|
26786
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
26698
26787
|
return false;
|
|
26788
|
+
}
|
|
26699
26789
|
hasDigits = true;
|
|
26700
26790
|
}
|
|
26701
26791
|
if (!hasDigits)
|
|
26702
26792
|
return false;
|
|
26703
|
-
return
|
|
26793
|
+
return isFinite(parseYamlInteger(data));
|
|
26704
26794
|
}
|
|
26705
26795
|
function parseYamlInteger(data) {
|
|
26706
26796
|
let value = data;
|
|
@@ -26728,9 +26818,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26728
26818
|
return parseYamlInteger(data);
|
|
26729
26819
|
}
|
|
26730
26820
|
function isInteger(object) {
|
|
26731
|
-
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !
|
|
26821
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
26732
26822
|
}
|
|
26733
|
-
|
|
26823
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
26734
26824
|
kind: "scalar",
|
|
26735
26825
|
resolve: resolveYamlInteger,
|
|
26736
26826
|
construct: constructYamlInteger,
|
|
@@ -26757,35 +26847,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26757
26847
|
hexadecimal: [16, "hex"]
|
|
26758
26848
|
}
|
|
26759
26849
|
});
|
|
26760
|
-
|
|
26761
|
-
|
|
26762
|
-
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26850
|
+
return int;
|
|
26851
|
+
}
|
|
26852
|
+
var float;
|
|
26853
|
+
var hasRequiredFloat;
|
|
26854
|
+
function requireFloat() {
|
|
26855
|
+
if (hasRequiredFloat)
|
|
26856
|
+
return float;
|
|
26857
|
+
hasRequiredFloat = 1;
|
|
26858
|
+
const common2 = requireCommon();
|
|
26859
|
+
const Type2 = requireType();
|
|
26860
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
26861
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
26766
26862
|
function resolveYamlFloat(data) {
|
|
26767
26863
|
if (data === null)
|
|
26768
26864
|
return false;
|
|
26769
|
-
if (!YAML_FLOAT_PATTERN.test(data))
|
|
26865
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
26770
26866
|
return false;
|
|
26771
|
-
|
|
26867
|
+
}
|
|
26868
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
26772
26869
|
return true;
|
|
26870
|
+
}
|
|
26773
26871
|
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
26774
26872
|
}
|
|
26775
26873
|
function constructYamlFloat(data) {
|
|
26776
26874
|
let value = data.toLowerCase();
|
|
26777
26875
|
const sign = value[0] === "-" ? -1 : 1;
|
|
26778
|
-
if ("+-".indexOf(value[0]) >= 0)
|
|
26876
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
26779
26877
|
value = value.slice(1);
|
|
26780
|
-
|
|
26878
|
+
}
|
|
26879
|
+
if (value === ".inf") {
|
|
26781
26880
|
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
26782
|
-
else if (value === ".nan")
|
|
26881
|
+
} else if (value === ".nan") {
|
|
26783
26882
|
return NaN;
|
|
26883
|
+
}
|
|
26784
26884
|
return sign * parseFloat(value, 10);
|
|
26785
26885
|
}
|
|
26786
|
-
|
|
26886
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
26787
26887
|
function representYamlFloat(object, style) {
|
|
26788
|
-
if (isNaN(object))
|
|
26888
|
+
if (isNaN(object)) {
|
|
26789
26889
|
switch (style) {
|
|
26790
26890
|
case "lowercase":
|
|
26791
26891
|
return ".nan";
|
|
@@ -26794,7 +26894,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26794
26894
|
case "camelcase":
|
|
26795
26895
|
return ".NaN";
|
|
26796
26896
|
}
|
|
26797
|
-
else if (Number.POSITIVE_INFINITY === object)
|
|
26897
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
26798
26898
|
switch (style) {
|
|
26799
26899
|
case "lowercase":
|
|
26800
26900
|
return ".inf";
|
|
@@ -26803,7 +26903,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26803
26903
|
case "camelcase":
|
|
26804
26904
|
return ".Inf";
|
|
26805
26905
|
}
|
|
26806
|
-
else if (Number.NEGATIVE_INFINITY === object)
|
|
26906
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
26807
26907
|
switch (style) {
|
|
26808
26908
|
case "lowercase":
|
|
26809
26909
|
return "-.inf";
|
|
@@ -26812,15 +26912,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26812
26912
|
case "camelcase":
|
|
26813
26913
|
return "-.Inf";
|
|
26814
26914
|
}
|
|
26815
|
-
else if (
|
|
26915
|
+
} else if (common2.isNegativeZero(object)) {
|
|
26816
26916
|
return "-0.0";
|
|
26917
|
+
}
|
|
26817
26918
|
const res = object.toString(10);
|
|
26818
26919
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
26819
26920
|
}
|
|
26820
26921
|
function isFloat(object) {
|
|
26821
|
-
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 ||
|
|
26922
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
26822
26923
|
}
|
|
26823
|
-
|
|
26924
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
26824
26925
|
kind: "scalar",
|
|
26825
26926
|
resolve: resolveYamlFloat,
|
|
26826
26927
|
construct: constructYamlFloat,
|
|
@@ -26828,22 +26929,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26828
26929
|
represent: representYamlFloat,
|
|
26829
26930
|
defaultStyle: "lowercase"
|
|
26830
26931
|
});
|
|
26831
|
-
|
|
26832
|
-
|
|
26833
|
-
|
|
26834
|
-
|
|
26835
|
-
|
|
26836
|
-
|
|
26837
|
-
|
|
26838
|
-
|
|
26839
|
-
|
|
26840
|
-
|
|
26841
|
-
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
|
|
26845
|
-
|
|
26846
|
-
|
|
26932
|
+
return float;
|
|
26933
|
+
}
|
|
26934
|
+
var json;
|
|
26935
|
+
var hasRequiredJson;
|
|
26936
|
+
function requireJson() {
|
|
26937
|
+
if (hasRequiredJson)
|
|
26938
|
+
return json;
|
|
26939
|
+
hasRequiredJson = 1;
|
|
26940
|
+
json = requireFailsafe().extend({
|
|
26941
|
+
implicit: [
|
|
26942
|
+
require_null(),
|
|
26943
|
+
requireBool(),
|
|
26944
|
+
requireInt(),
|
|
26945
|
+
requireFloat()
|
|
26946
|
+
]
|
|
26947
|
+
});
|
|
26948
|
+
return json;
|
|
26949
|
+
}
|
|
26950
|
+
var core;
|
|
26951
|
+
var hasRequiredCore;
|
|
26952
|
+
function requireCore() {
|
|
26953
|
+
if (hasRequiredCore)
|
|
26954
|
+
return core;
|
|
26955
|
+
hasRequiredCore = 1;
|
|
26956
|
+
core = requireJson();
|
|
26957
|
+
return core;
|
|
26958
|
+
}
|
|
26959
|
+
var timestamp;
|
|
26960
|
+
var hasRequiredTimestamp;
|
|
26961
|
+
function requireTimestamp() {
|
|
26962
|
+
if (hasRequiredTimestamp)
|
|
26963
|
+
return timestamp;
|
|
26964
|
+
hasRequiredTimestamp = 1;
|
|
26965
|
+
const Type2 = requireType();
|
|
26966
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
26967
|
+
const YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
26847
26968
|
function resolveYamlTimestamp(data) {
|
|
26848
26969
|
if (data === null)
|
|
26849
26970
|
return false;
|
|
@@ -26864,15 +26985,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26864
26985
|
const year = +match[1];
|
|
26865
26986
|
const month = +match[2] - 1;
|
|
26866
26987
|
const day = +match[3];
|
|
26867
|
-
if (!match[4])
|
|
26988
|
+
if (!match[4]) {
|
|
26868
26989
|
return new Date(Date.UTC(year, month, day));
|
|
26990
|
+
}
|
|
26869
26991
|
const hour = +match[4];
|
|
26870
26992
|
const minute = +match[5];
|
|
26871
26993
|
const second = +match[6];
|
|
26872
26994
|
if (match[7]) {
|
|
26873
26995
|
fraction = match[7].slice(0, 3);
|
|
26874
|
-
while (fraction.length < 3)
|
|
26996
|
+
while (fraction.length < 3) {
|
|
26875
26997
|
fraction += "0";
|
|
26998
|
+
}
|
|
26876
26999
|
fraction = +fraction;
|
|
26877
27000
|
}
|
|
26878
27001
|
if (match[9]) {
|
|
@@ -26890,36 +27013,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26890
27013
|
function representYamlTimestamp(object) {
|
|
26891
27014
|
return object.toISOString();
|
|
26892
27015
|
}
|
|
26893
|
-
|
|
27016
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
26894
27017
|
kind: "scalar",
|
|
26895
27018
|
resolve: resolveYamlTimestamp,
|
|
26896
27019
|
construct: constructYamlTimestamp,
|
|
26897
27020
|
instanceOf: Date,
|
|
26898
27021
|
represent: representYamlTimestamp
|
|
26899
27022
|
});
|
|
26900
|
-
|
|
26901
|
-
|
|
26902
|
-
|
|
27023
|
+
return timestamp;
|
|
27024
|
+
}
|
|
27025
|
+
var merge;
|
|
27026
|
+
var hasRequiredMerge;
|
|
27027
|
+
function requireMerge() {
|
|
27028
|
+
if (hasRequiredMerge)
|
|
27029
|
+
return merge;
|
|
27030
|
+
hasRequiredMerge = 1;
|
|
27031
|
+
const Type2 = requireType();
|
|
26903
27032
|
function resolveYamlMerge(data) {
|
|
26904
27033
|
return data === "<<" || data === null;
|
|
26905
27034
|
}
|
|
26906
|
-
|
|
27035
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
26907
27036
|
kind: "scalar",
|
|
26908
27037
|
resolve: resolveYamlMerge
|
|
26909
27038
|
});
|
|
26910
|
-
|
|
26911
|
-
|
|
26912
|
-
|
|
26913
|
-
|
|
27039
|
+
return merge;
|
|
27040
|
+
}
|
|
27041
|
+
var binary;
|
|
27042
|
+
var hasRequiredBinary;
|
|
27043
|
+
function requireBinary() {
|
|
27044
|
+
if (hasRequiredBinary)
|
|
27045
|
+
return binary;
|
|
27046
|
+
hasRequiredBinary = 1;
|
|
27047
|
+
const Type2 = requireType();
|
|
27048
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26914
27049
|
\r`;
|
|
26915
27050
|
function resolveYamlBinary(data) {
|
|
26916
27051
|
if (data === null)
|
|
26917
27052
|
return false;
|
|
26918
27053
|
let bitlen = 0;
|
|
26919
27054
|
const max = data.length;
|
|
26920
|
-
const
|
|
27055
|
+
const map2 = BASE64_MAP;
|
|
26921
27056
|
for (let idx = 0;idx < max; idx++) {
|
|
26922
|
-
const code =
|
|
27057
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
26923
27058
|
if (code > 64)
|
|
26924
27059
|
continue;
|
|
26925
27060
|
if (code < 0)
|
|
@@ -26931,7 +27066,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26931
27066
|
function constructYamlBinary(data) {
|
|
26932
27067
|
const input = data.replace(/[\r\n=]/g, "");
|
|
26933
27068
|
const max = input.length;
|
|
26934
|
-
const
|
|
27069
|
+
const map2 = BASE64_MAP;
|
|
26935
27070
|
let bits = 0;
|
|
26936
27071
|
const result = [];
|
|
26937
27072
|
for (let idx = 0;idx < max; idx++) {
|
|
@@ -26940,7 +27075,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26940
27075
|
result.push(bits >> 8 & 255);
|
|
26941
27076
|
result.push(bits & 255);
|
|
26942
27077
|
}
|
|
26943
|
-
bits = bits << 6 |
|
|
27078
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
26944
27079
|
}
|
|
26945
27080
|
const tailbits = max % 4 * 6;
|
|
26946
27081
|
if (tailbits === 0) {
|
|
@@ -26950,58 +27085,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26950
27085
|
} else if (tailbits === 18) {
|
|
26951
27086
|
result.push(bits >> 10 & 255);
|
|
26952
27087
|
result.push(bits >> 2 & 255);
|
|
26953
|
-
} else if (tailbits === 12)
|
|
27088
|
+
} else if (tailbits === 12) {
|
|
26954
27089
|
result.push(bits >> 4 & 255);
|
|
27090
|
+
}
|
|
26955
27091
|
return new Uint8Array(result);
|
|
26956
27092
|
}
|
|
26957
27093
|
function representYamlBinary(object) {
|
|
26958
27094
|
let result = "";
|
|
26959
27095
|
let bits = 0;
|
|
26960
27096
|
const max = object.length;
|
|
26961
|
-
const
|
|
27097
|
+
const map2 = BASE64_MAP;
|
|
26962
27098
|
for (let idx = 0;idx < max; idx++) {
|
|
26963
27099
|
if (idx % 3 === 0 && idx) {
|
|
26964
|
-
result +=
|
|
26965
|
-
result +=
|
|
26966
|
-
result +=
|
|
26967
|
-
result +=
|
|
27100
|
+
result += map2[bits >> 18 & 63];
|
|
27101
|
+
result += map2[bits >> 12 & 63];
|
|
27102
|
+
result += map2[bits >> 6 & 63];
|
|
27103
|
+
result += map2[bits & 63];
|
|
26968
27104
|
}
|
|
26969
27105
|
bits = (bits << 8) + object[idx];
|
|
26970
27106
|
}
|
|
26971
27107
|
const tail = max % 3;
|
|
26972
27108
|
if (tail === 0) {
|
|
26973
|
-
result +=
|
|
26974
|
-
result +=
|
|
26975
|
-
result +=
|
|
26976
|
-
result +=
|
|
27109
|
+
result += map2[bits >> 18 & 63];
|
|
27110
|
+
result += map2[bits >> 12 & 63];
|
|
27111
|
+
result += map2[bits >> 6 & 63];
|
|
27112
|
+
result += map2[bits & 63];
|
|
26977
27113
|
} else if (tail === 2) {
|
|
26978
|
-
result +=
|
|
26979
|
-
result +=
|
|
26980
|
-
result +=
|
|
26981
|
-
result +=
|
|
27114
|
+
result += map2[bits >> 10 & 63];
|
|
27115
|
+
result += map2[bits >> 4 & 63];
|
|
27116
|
+
result += map2[bits << 2 & 63];
|
|
27117
|
+
result += map2[64];
|
|
26982
27118
|
} else if (tail === 1) {
|
|
26983
|
-
result +=
|
|
26984
|
-
result +=
|
|
26985
|
-
result +=
|
|
26986
|
-
result +=
|
|
27119
|
+
result += map2[bits >> 2 & 63];
|
|
27120
|
+
result += map2[bits << 4 & 63];
|
|
27121
|
+
result += map2[64];
|
|
27122
|
+
result += map2[64];
|
|
26987
27123
|
}
|
|
26988
27124
|
return result;
|
|
26989
27125
|
}
|
|
26990
27126
|
function isBinary(obj) {
|
|
26991
27127
|
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
26992
27128
|
}
|
|
26993
|
-
|
|
27129
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
26994
27130
|
kind: "scalar",
|
|
26995
27131
|
resolve: resolveYamlBinary,
|
|
26996
27132
|
construct: constructYamlBinary,
|
|
26997
27133
|
predicate: isBinary,
|
|
26998
27134
|
represent: representYamlBinary
|
|
26999
27135
|
});
|
|
27000
|
-
|
|
27001
|
-
|
|
27002
|
-
|
|
27003
|
-
|
|
27004
|
-
|
|
27136
|
+
return binary;
|
|
27137
|
+
}
|
|
27138
|
+
var omap;
|
|
27139
|
+
var hasRequiredOmap;
|
|
27140
|
+
function requireOmap() {
|
|
27141
|
+
if (hasRequiredOmap)
|
|
27142
|
+
return omap;
|
|
27143
|
+
hasRequiredOmap = 1;
|
|
27144
|
+
const Type2 = requireType();
|
|
27145
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
27146
|
+
const _toString = Object.prototype.toString;
|
|
27005
27147
|
function resolveYamlOmap(data) {
|
|
27006
27148
|
if (data === null)
|
|
27007
27149
|
return true;
|
|
@@ -27013,12 +27155,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27013
27155
|
if (_toString.call(pair) !== "[object Object]")
|
|
27014
27156
|
return false;
|
|
27015
27157
|
let pairKey;
|
|
27016
|
-
for (pairKey in pair)
|
|
27017
|
-
if (_hasOwnProperty.call(pair, pairKey))
|
|
27158
|
+
for (pairKey in pair) {
|
|
27159
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
27018
27160
|
if (!pairHasKey)
|
|
27019
27161
|
pairHasKey = true;
|
|
27020
27162
|
else
|
|
27021
27163
|
return false;
|
|
27164
|
+
}
|
|
27165
|
+
}
|
|
27022
27166
|
if (!pairHasKey)
|
|
27023
27167
|
return false;
|
|
27024
27168
|
if (objectKeys.indexOf(pairKey) === -1)
|
|
@@ -27031,15 +27175,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27031
27175
|
function constructYamlOmap(data) {
|
|
27032
27176
|
return data !== null ? data : [];
|
|
27033
27177
|
}
|
|
27034
|
-
|
|
27178
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
27035
27179
|
kind: "sequence",
|
|
27036
27180
|
resolve: resolveYamlOmap,
|
|
27037
27181
|
construct: constructYamlOmap
|
|
27038
27182
|
});
|
|
27039
|
-
|
|
27040
|
-
|
|
27041
|
-
|
|
27042
|
-
|
|
27183
|
+
return omap;
|
|
27184
|
+
}
|
|
27185
|
+
var pairs;
|
|
27186
|
+
var hasRequiredPairs;
|
|
27187
|
+
function requirePairs() {
|
|
27188
|
+
if (hasRequiredPairs)
|
|
27189
|
+
return pairs;
|
|
27190
|
+
hasRequiredPairs = 1;
|
|
27191
|
+
const Type2 = requireType();
|
|
27192
|
+
const _toString = Object.prototype.toString;
|
|
27043
27193
|
function resolveYamlPairs(data) {
|
|
27044
27194
|
if (data === null)
|
|
27045
27195
|
return true;
|
|
@@ -27068,64 +27218,85 @@ var require_pairs2 = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27068
27218
|
}
|
|
27069
27219
|
return result;
|
|
27070
27220
|
}
|
|
27071
|
-
|
|
27221
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
27072
27222
|
kind: "sequence",
|
|
27073
27223
|
resolve: resolveYamlPairs,
|
|
27074
27224
|
construct: constructYamlPairs
|
|
27075
27225
|
});
|
|
27076
|
-
|
|
27077
|
-
|
|
27078
|
-
|
|
27079
|
-
|
|
27226
|
+
return pairs;
|
|
27227
|
+
}
|
|
27228
|
+
var set;
|
|
27229
|
+
var hasRequiredSet;
|
|
27230
|
+
function requireSet() {
|
|
27231
|
+
if (hasRequiredSet)
|
|
27232
|
+
return set;
|
|
27233
|
+
hasRequiredSet = 1;
|
|
27234
|
+
const Type2 = requireType();
|
|
27235
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
27080
27236
|
function resolveYamlSet(data) {
|
|
27081
27237
|
if (data === null)
|
|
27082
27238
|
return true;
|
|
27083
27239
|
const object = data;
|
|
27084
|
-
for (const key in object)
|
|
27240
|
+
for (const key in object) {
|
|
27085
27241
|
if (_hasOwnProperty.call(object, key)) {
|
|
27086
27242
|
if (object[key] !== null)
|
|
27087
27243
|
return false;
|
|
27088
27244
|
}
|
|
27245
|
+
}
|
|
27089
27246
|
return true;
|
|
27090
27247
|
}
|
|
27091
27248
|
function constructYamlSet(data) {
|
|
27092
27249
|
return data !== null ? data : {};
|
|
27093
27250
|
}
|
|
27094
|
-
|
|
27251
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
27095
27252
|
kind: "mapping",
|
|
27096
27253
|
resolve: resolveYamlSet,
|
|
27097
27254
|
construct: constructYamlSet
|
|
27098
27255
|
});
|
|
27099
|
-
|
|
27100
|
-
|
|
27101
|
-
|
|
27102
|
-
|
|
27256
|
+
return set;
|
|
27257
|
+
}
|
|
27258
|
+
var _default;
|
|
27259
|
+
var hasRequired_default;
|
|
27260
|
+
function require_default() {
|
|
27261
|
+
if (hasRequired_default)
|
|
27262
|
+
return _default;
|
|
27263
|
+
hasRequired_default = 1;
|
|
27264
|
+
_default = requireCore().extend({
|
|
27265
|
+
implicit: [
|
|
27266
|
+
requireTimestamp(),
|
|
27267
|
+
requireMerge()
|
|
27268
|
+
],
|
|
27103
27269
|
explicit: [
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
|
|
27270
|
+
requireBinary(),
|
|
27271
|
+
requireOmap(),
|
|
27272
|
+
requirePairs(),
|
|
27273
|
+
requireSet()
|
|
27108
27274
|
]
|
|
27109
27275
|
});
|
|
27110
|
-
|
|
27111
|
-
|
|
27112
|
-
|
|
27113
|
-
|
|
27114
|
-
|
|
27115
|
-
|
|
27116
|
-
|
|
27117
|
-
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27276
|
+
return _default;
|
|
27277
|
+
}
|
|
27278
|
+
var hasRequiredLoader;
|
|
27279
|
+
function requireLoader() {
|
|
27280
|
+
if (hasRequiredLoader)
|
|
27281
|
+
return loader;
|
|
27282
|
+
hasRequiredLoader = 1;
|
|
27283
|
+
const common2 = requireCommon();
|
|
27284
|
+
const YAMLException2 = requireException();
|
|
27285
|
+
const makeSnippet = requireSnippet();
|
|
27286
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
27287
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
27288
|
+
const CONTEXT_FLOW_IN = 1;
|
|
27289
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
27290
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
27291
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
27292
|
+
const CHOMPING_CLIP = 1;
|
|
27293
|
+
const CHOMPING_STRIP = 2;
|
|
27294
|
+
const CHOMPING_KEEP = 3;
|
|
27295
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
27296
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
27297
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
27298
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
27299
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
27129
27300
|
function _class(obj) {
|
|
27130
27301
|
return Object.prototype.toString.call(obj);
|
|
27131
27302
|
}
|
|
@@ -27142,25 +27313,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27142
27313
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
27143
27314
|
}
|
|
27144
27315
|
function fromHexCode(c) {
|
|
27145
|
-
if (c >= 48 && c <= 57)
|
|
27316
|
+
if (c >= 48 && c <= 57) {
|
|
27146
27317
|
return c - 48;
|
|
27318
|
+
}
|
|
27147
27319
|
const lc = c | 32;
|
|
27148
|
-
if (lc >= 97 && lc <= 102)
|
|
27320
|
+
if (lc >= 97 && lc <= 102) {
|
|
27149
27321
|
return lc - 97 + 10;
|
|
27322
|
+
}
|
|
27150
27323
|
return -1;
|
|
27151
27324
|
}
|
|
27152
27325
|
function escapedHexLen(c) {
|
|
27153
|
-
if (c === 120)
|
|
27326
|
+
if (c === 120) {
|
|
27154
27327
|
return 2;
|
|
27155
|
-
|
|
27328
|
+
}
|
|
27329
|
+
if (c === 117) {
|
|
27156
27330
|
return 4;
|
|
27157
|
-
|
|
27331
|
+
}
|
|
27332
|
+
if (c === 85) {
|
|
27158
27333
|
return 8;
|
|
27334
|
+
}
|
|
27159
27335
|
return 0;
|
|
27160
27336
|
}
|
|
27161
27337
|
function fromDecimalCode(c) {
|
|
27162
|
-
if (c >= 48 && c <= 57)
|
|
27338
|
+
if (c >= 48 && c <= 57) {
|
|
27163
27339
|
return c - 48;
|
|
27340
|
+
}
|
|
27164
27341
|
return -1;
|
|
27165
27342
|
}
|
|
27166
27343
|
function simpleEscapeSequence(c) {
|
|
@@ -27207,23 +27384,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27207
27384
|
}
|
|
27208
27385
|
}
|
|
27209
27386
|
function charFromCodepoint(c) {
|
|
27210
|
-
if (c <= 65535)
|
|
27387
|
+
if (c <= 65535) {
|
|
27211
27388
|
return String.fromCharCode(c);
|
|
27389
|
+
}
|
|
27212
27390
|
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
27213
27391
|
}
|
|
27214
27392
|
function setProperty(object, key, value) {
|
|
27215
|
-
if (key === "__proto__")
|
|
27393
|
+
if (key === "__proto__") {
|
|
27216
27394
|
Object.defineProperty(object, key, {
|
|
27217
27395
|
configurable: true,
|
|
27218
27396
|
enumerable: true,
|
|
27219
27397
|
writable: true,
|
|
27220
27398
|
value
|
|
27221
27399
|
});
|
|
27222
|
-
else
|
|
27400
|
+
} else {
|
|
27223
27401
|
object[key] = value;
|
|
27402
|
+
}
|
|
27224
27403
|
}
|
|
27225
|
-
|
|
27226
|
-
|
|
27404
|
+
const simpleEscapeCheck = new Array(256);
|
|
27405
|
+
const simpleEscapeMap = new Array(256);
|
|
27227
27406
|
for (let i = 0;i < 256; i++) {
|
|
27228
27407
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
27229
27408
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
@@ -27231,13 +27410,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27231
27410
|
function State(input, options) {
|
|
27232
27411
|
this.input = input;
|
|
27233
27412
|
this.filename = options["filename"] || null;
|
|
27234
|
-
this.schema = options["schema"] ||
|
|
27413
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
27235
27414
|
this.onWarning = options["onWarning"] || null;
|
|
27236
27415
|
this.legacy = options["legacy"] || false;
|
|
27237
27416
|
this.json = options["json"] || false;
|
|
27238
27417
|
this.listener = options["listener"] || null;
|
|
27239
27418
|
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
27240
|
-
this.
|
|
27419
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
27241
27420
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
27242
27421
|
this.typeMap = this.schema.compiledTypeMap;
|
|
27243
27422
|
this.length = input.length;
|
|
@@ -27246,6 +27425,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27246
27425
|
this.lineStart = 0;
|
|
27247
27426
|
this.lineIndent = 0;
|
|
27248
27427
|
this.depth = 0;
|
|
27428
|
+
this.totalMergeKeys = 0;
|
|
27249
27429
|
this.firstTabInLine = -1;
|
|
27250
27430
|
this.documents = [];
|
|
27251
27431
|
this.anchorMapTransactions = [];
|
|
@@ -27259,29 +27439,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27259
27439
|
column: state.position - state.lineStart
|
|
27260
27440
|
};
|
|
27261
27441
|
mark.snippet = makeSnippet(mark);
|
|
27262
|
-
return new
|
|
27442
|
+
return new YAMLException2(message, mark);
|
|
27263
27443
|
}
|
|
27264
27444
|
function throwError(state, message) {
|
|
27265
27445
|
throw generateError(state, message);
|
|
27266
27446
|
}
|
|
27267
27447
|
function throwWarning(state, message) {
|
|
27268
|
-
if (state.onWarning)
|
|
27448
|
+
if (state.onWarning) {
|
|
27269
27449
|
state.onWarning.call(null, generateError(state, message));
|
|
27450
|
+
}
|
|
27270
27451
|
}
|
|
27271
27452
|
function storeAnchor(state, name, value) {
|
|
27272
27453
|
const transactions = state.anchorMapTransactions;
|
|
27273
27454
|
if (transactions.length !== 0) {
|
|
27274
27455
|
const transaction = transactions[transactions.length - 1];
|
|
27275
|
-
if (!_hasOwnProperty.call(transaction, name))
|
|
27456
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
27276
27457
|
transaction[name] = {
|
|
27277
27458
|
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
27278
27459
|
value: state.anchorMap[name]
|
|
27279
27460
|
};
|
|
27461
|
+
}
|
|
27280
27462
|
}
|
|
27281
27463
|
state.anchorMap[name] = value;
|
|
27282
27464
|
}
|
|
27283
27465
|
function beginAnchorTransaction(state) {
|
|
27284
|
-
state.anchorMapTransactions.push(Object.create(null));
|
|
27466
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
27285
27467
|
}
|
|
27286
27468
|
function commitAnchorTransaction(state) {
|
|
27287
27469
|
const transaction = state.anchorMapTransactions.pop();
|
|
@@ -27292,8 +27474,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27292
27474
|
const names = Object.keys(transaction);
|
|
27293
27475
|
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
27294
27476
|
const name = names[index];
|
|
27295
|
-
if (!_hasOwnProperty.call(parent, name))
|
|
27477
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
27296
27478
|
parent[name] = transaction[name];
|
|
27479
|
+
}
|
|
27297
27480
|
}
|
|
27298
27481
|
}
|
|
27299
27482
|
function rollbackAnchorTransaction(state) {
|
|
@@ -27301,10 +27484,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27301
27484
|
const names = Object.keys(transaction);
|
|
27302
27485
|
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
27303
27486
|
const entry = transaction[names[index]];
|
|
27304
|
-
if (entry.existed)
|
|
27487
|
+
if (entry.existed) {
|
|
27305
27488
|
state.anchorMap[names[index]] = entry.value;
|
|
27306
|
-
else
|
|
27489
|
+
} else {
|
|
27307
27490
|
delete state.anchorMap[names[index]];
|
|
27491
|
+
}
|
|
27308
27492
|
}
|
|
27309
27493
|
}
|
|
27310
27494
|
function snapshotState(state) {
|
|
@@ -27331,36 +27515,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27331
27515
|
state.kind = snapshot.kind;
|
|
27332
27516
|
state.result = snapshot.result;
|
|
27333
27517
|
}
|
|
27334
|
-
|
|
27518
|
+
const directiveHandlers = {
|
|
27335
27519
|
YAML: function handleYamlDirective(state, name, args) {
|
|
27336
|
-
if (state.version !== null)
|
|
27520
|
+
if (state.version !== null) {
|
|
27337
27521
|
throwError(state, "duplication of %YAML directive");
|
|
27338
|
-
|
|
27522
|
+
}
|
|
27523
|
+
if (args.length !== 1) {
|
|
27339
27524
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
27525
|
+
}
|
|
27340
27526
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
27341
|
-
if (match === null)
|
|
27527
|
+
if (match === null) {
|
|
27342
27528
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
27529
|
+
}
|
|
27343
27530
|
const major = parseInt(match[1], 10);
|
|
27344
27531
|
const minor = parseInt(match[2], 10);
|
|
27345
|
-
if (major !== 1)
|
|
27532
|
+
if (major !== 1) {
|
|
27346
27533
|
throwError(state, "unacceptable YAML version of the document");
|
|
27534
|
+
}
|
|
27347
27535
|
state.version = args[0];
|
|
27348
27536
|
state.checkLineBreaks = minor < 2;
|
|
27349
|
-
if (minor !== 1 && minor !== 2)
|
|
27537
|
+
if (minor !== 1 && minor !== 2) {
|
|
27350
27538
|
throwWarning(state, "unsupported YAML version of the document");
|
|
27539
|
+
}
|
|
27351
27540
|
},
|
|
27352
27541
|
TAG: function handleTagDirective(state, name, args) {
|
|
27353
27542
|
let prefix;
|
|
27354
|
-
if (args.length !== 2)
|
|
27543
|
+
if (args.length !== 2) {
|
|
27355
27544
|
throwError(state, "TAG directive accepts exactly two arguments");
|
|
27545
|
+
}
|
|
27356
27546
|
const handle = args[0];
|
|
27357
27547
|
prefix = args[1];
|
|
27358
|
-
if (!PATTERN_TAG_HANDLE.test(handle))
|
|
27548
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
27359
27549
|
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
27360
|
-
|
|
27550
|
+
}
|
|
27551
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
27361
27552
|
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
27362
|
-
|
|
27553
|
+
}
|
|
27554
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
27363
27555
|
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
27556
|
+
}
|
|
27364
27557
|
try {
|
|
27365
27558
|
prefix = decodeURIComponent(prefix);
|
|
27366
27559
|
} catch (err) {
|
|
@@ -27372,23 +27565,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27372
27565
|
function captureSegment(state, start, end, checkJson) {
|
|
27373
27566
|
if (start < end) {
|
|
27374
27567
|
const _result = state.input.slice(start, end);
|
|
27375
|
-
if (checkJson)
|
|
27568
|
+
if (checkJson) {
|
|
27376
27569
|
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
27377
27570
|
const _character = _result.charCodeAt(_position);
|
|
27378
|
-
if (!(_character === 9 || _character >= 32 && _character <= 1114111))
|
|
27571
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
27379
27572
|
throwError(state, "expected valid JSON character");
|
|
27573
|
+
}
|
|
27380
27574
|
}
|
|
27381
|
-
else if (PATTERN_NON_PRINTABLE.test(_result))
|
|
27575
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
27382
27576
|
throwError(state, "the stream contains non-printable characters");
|
|
27577
|
+
}
|
|
27383
27578
|
state.result += _result;
|
|
27384
27579
|
}
|
|
27385
27580
|
}
|
|
27386
27581
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
27387
|
-
if (!
|
|
27582
|
+
if (!common2.isObject(source)) {
|
|
27388
27583
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
27584
|
+
}
|
|
27389
27585
|
const sourceKeys = Object.keys(source);
|
|
27390
27586
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
27391
27587
|
const key = sourceKeys[index];
|
|
27588
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
27589
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
27590
|
+
}
|
|
27392
27591
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
27393
27592
|
setProperty(destination, key, source[key]);
|
|
27394
27593
|
overridableKeys[key] = true;
|
|
@@ -27399,32 +27598,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27399
27598
|
if (Array.isArray(keyNode)) {
|
|
27400
27599
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
27401
27600
|
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
27402
|
-
if (Array.isArray(keyNode[index]))
|
|
27601
|
+
if (Array.isArray(keyNode[index])) {
|
|
27403
27602
|
throwError(state, "nested arrays are not supported inside keys");
|
|
27404
|
-
|
|
27603
|
+
}
|
|
27604
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
27405
27605
|
keyNode[index] = "[object Object]";
|
|
27606
|
+
}
|
|
27406
27607
|
}
|
|
27407
27608
|
}
|
|
27408
|
-
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
|
|
27609
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
27409
27610
|
keyNode = "[object Object]";
|
|
27611
|
+
}
|
|
27410
27612
|
keyNode = String(keyNode);
|
|
27411
|
-
if (_result === null)
|
|
27613
|
+
if (_result === null) {
|
|
27412
27614
|
_result = {};
|
|
27413
|
-
|
|
27615
|
+
}
|
|
27616
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
27414
27617
|
if (Array.isArray(valueNode)) {
|
|
27415
|
-
if (valueNode.length > state.maxMergeSeqLength)
|
|
27416
|
-
throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
|
|
27417
|
-
const seen = /* @__PURE__ */ new Set;
|
|
27418
27618
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
27419
|
-
|
|
27420
|
-
if (seen.has(src2))
|
|
27421
|
-
continue;
|
|
27422
|
-
seen.add(src2);
|
|
27423
|
-
mergeMappings(state, _result, src2, overridableKeys);
|
|
27619
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
27424
27620
|
}
|
|
27425
|
-
} else
|
|
27621
|
+
} else {
|
|
27426
27622
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
27427
|
-
|
|
27623
|
+
}
|
|
27624
|
+
} else {
|
|
27428
27625
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
27429
27626
|
state.line = startLine || state.line;
|
|
27430
27627
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -27438,14 +27635,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27438
27635
|
}
|
|
27439
27636
|
function readLineBreak(state) {
|
|
27440
27637
|
const ch = state.input.charCodeAt(state.position);
|
|
27441
|
-
if (ch === 10)
|
|
27638
|
+
if (ch === 10) {
|
|
27442
27639
|
state.position++;
|
|
27443
|
-
else if (ch === 13) {
|
|
27640
|
+
} else if (ch === 13) {
|
|
27444
27641
|
state.position++;
|
|
27445
|
-
if (state.input.charCodeAt(state.position) === 10)
|
|
27642
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
27446
27643
|
state.position++;
|
|
27447
|
-
|
|
27644
|
+
}
|
|
27645
|
+
} else {
|
|
27448
27646
|
throwError(state, "a line break is expected");
|
|
27647
|
+
}
|
|
27449
27648
|
state.line += 1;
|
|
27450
27649
|
state.lineStart = state.position;
|
|
27451
27650
|
state.firstTabInLine = -1;
|
|
@@ -27455,14 +27654,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27455
27654
|
let ch = state.input.charCodeAt(state.position);
|
|
27456
27655
|
while (ch !== 0) {
|
|
27457
27656
|
while (isWhiteSpace(ch)) {
|
|
27458
|
-
if (ch === 9 && state.firstTabInLine === -1)
|
|
27657
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
27459
27658
|
state.firstTabInLine = state.position;
|
|
27659
|
+
}
|
|
27460
27660
|
ch = state.input.charCodeAt(++state.position);
|
|
27461
27661
|
}
|
|
27462
|
-
if (allowComments && ch === 35)
|
|
27463
|
-
do
|
|
27662
|
+
if (allowComments && ch === 35) {
|
|
27663
|
+
do {
|
|
27464
27664
|
ch = state.input.charCodeAt(++state.position);
|
|
27465
|
-
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
27665
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
27666
|
+
}
|
|
27466
27667
|
if (isEol(ch)) {
|
|
27467
27668
|
readLineBreak(state);
|
|
27468
27669
|
ch = state.input.charCodeAt(state.position);
|
|
@@ -27472,11 +27673,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27472
27673
|
state.lineIndent++;
|
|
27473
27674
|
ch = state.input.charCodeAt(++state.position);
|
|
27474
27675
|
}
|
|
27475
|
-
} else
|
|
27676
|
+
} else {
|
|
27476
27677
|
break;
|
|
27678
|
+
}
|
|
27477
27679
|
}
|
|
27478
|
-
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
|
|
27680
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
27479
27681
|
throwWarning(state, "deficient indentation");
|
|
27682
|
+
}
|
|
27480
27683
|
return lineBreaks;
|
|
27481
27684
|
}
|
|
27482
27685
|
function testDocumentSeparator(state) {
|
|
@@ -27485,17 +27688,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27485
27688
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
27486
27689
|
_position += 3;
|
|
27487
27690
|
ch = state.input.charCodeAt(_position);
|
|
27488
|
-
if (ch === 0 || isWsOrEol(ch))
|
|
27691
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
27489
27692
|
return true;
|
|
27693
|
+
}
|
|
27490
27694
|
}
|
|
27491
27695
|
return false;
|
|
27492
27696
|
}
|
|
27493
27697
|
function writeFoldedLines(state, count) {
|
|
27494
|
-
if (count === 1)
|
|
27698
|
+
if (count === 1) {
|
|
27495
27699
|
state.result += " ";
|
|
27496
|
-
else if (count > 1)
|
|
27497
|
-
state.result +=
|
|
27700
|
+
} else if (count > 1) {
|
|
27701
|
+
state.result += common2.repeat(`
|
|
27498
27702
|
`, count - 1);
|
|
27703
|
+
}
|
|
27499
27704
|
}
|
|
27500
27705
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
27501
27706
|
let captureStart;
|
|
@@ -27507,12 +27712,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27507
27712
|
const _kind = state.kind;
|
|
27508
27713
|
const _result = state.result;
|
|
27509
27714
|
let ch = state.input.charCodeAt(state.position);
|
|
27510
|
-
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96)
|
|
27715
|
+
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
|
|
27511
27716
|
return false;
|
|
27717
|
+
}
|
|
27512
27718
|
if (ch === 63 || ch === 45) {
|
|
27513
27719
|
const following = state.input.charCodeAt(state.position + 1);
|
|
27514
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
27720
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
27515
27721
|
return false;
|
|
27722
|
+
}
|
|
27516
27723
|
}
|
|
27517
27724
|
state.kind = "scalar";
|
|
27518
27725
|
state.result = "";
|
|
@@ -27521,14 +27728,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27521
27728
|
while (ch !== 0) {
|
|
27522
27729
|
if (ch === 58) {
|
|
27523
27730
|
const following = state.input.charCodeAt(state.position + 1);
|
|
27524
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
27731
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
27525
27732
|
break;
|
|
27733
|
+
}
|
|
27526
27734
|
} else if (ch === 35) {
|
|
27527
|
-
|
|
27735
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
27736
|
+
if (isWsOrEol(preceding)) {
|
|
27528
27737
|
break;
|
|
27529
|
-
|
|
27738
|
+
}
|
|
27739
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
27530
27740
|
break;
|
|
27531
|
-
else if (isEol(ch)) {
|
|
27741
|
+
} else if (isEol(ch)) {
|
|
27532
27742
|
_line = state.line;
|
|
27533
27743
|
_lineStart = state.lineStart;
|
|
27534
27744
|
_lineIndent = state.lineIndent;
|
|
@@ -27551,13 +27761,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27551
27761
|
captureStart = captureEnd = state.position;
|
|
27552
27762
|
hasPendingContent = false;
|
|
27553
27763
|
}
|
|
27554
|
-
if (!isWhiteSpace(ch))
|
|
27764
|
+
if (!isWhiteSpace(ch)) {
|
|
27555
27765
|
captureEnd = state.position + 1;
|
|
27766
|
+
}
|
|
27556
27767
|
ch = state.input.charCodeAt(++state.position);
|
|
27557
27768
|
}
|
|
27558
27769
|
captureSegment(state, captureStart, captureEnd, false);
|
|
27559
|
-
if (state.result)
|
|
27770
|
+
if (state.result) {
|
|
27560
27771
|
return true;
|
|
27772
|
+
}
|
|
27561
27773
|
state.kind = _kind;
|
|
27562
27774
|
state.result = _result;
|
|
27563
27775
|
return false;
|
|
@@ -27566,13 +27778,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27566
27778
|
let captureStart;
|
|
27567
27779
|
let captureEnd;
|
|
27568
27780
|
let ch = state.input.charCodeAt(state.position);
|
|
27569
|
-
if (ch !== 39)
|
|
27781
|
+
if (ch !== 39) {
|
|
27570
27782
|
return false;
|
|
27783
|
+
}
|
|
27571
27784
|
state.kind = "scalar";
|
|
27572
27785
|
state.result = "";
|
|
27573
27786
|
state.position++;
|
|
27574
27787
|
captureStart = captureEnd = state.position;
|
|
27575
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
27788
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
27576
27789
|
if (ch === 39) {
|
|
27577
27790
|
captureSegment(state, captureStart, state.position, true);
|
|
27578
27791
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -27580,19 +27793,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27580
27793
|
captureStart = state.position;
|
|
27581
27794
|
state.position++;
|
|
27582
27795
|
captureEnd = state.position;
|
|
27583
|
-
} else
|
|
27796
|
+
} else {
|
|
27584
27797
|
return true;
|
|
27798
|
+
}
|
|
27585
27799
|
} else if (isEol(ch)) {
|
|
27586
27800
|
captureSegment(state, captureStart, captureEnd, true);
|
|
27587
27801
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
27588
27802
|
captureStart = captureEnd = state.position;
|
|
27589
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
27803
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
27590
27804
|
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
27591
|
-
else {
|
|
27805
|
+
} else {
|
|
27592
27806
|
state.position++;
|
|
27593
|
-
if (!isWhiteSpace(ch))
|
|
27807
|
+
if (!isWhiteSpace(ch)) {
|
|
27594
27808
|
captureEnd = state.position;
|
|
27809
|
+
}
|
|
27595
27810
|
}
|
|
27811
|
+
}
|
|
27596
27812
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
27597
27813
|
}
|
|
27598
27814
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -27600,13 +27816,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27600
27816
|
let captureEnd;
|
|
27601
27817
|
let tmp;
|
|
27602
27818
|
let ch = state.input.charCodeAt(state.position);
|
|
27603
|
-
if (ch !== 34)
|
|
27819
|
+
if (ch !== 34) {
|
|
27604
27820
|
return false;
|
|
27821
|
+
}
|
|
27605
27822
|
state.kind = "scalar";
|
|
27606
27823
|
state.result = "";
|
|
27607
27824
|
state.position++;
|
|
27608
27825
|
captureStart = captureEnd = state.position;
|
|
27609
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
27826
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
27610
27827
|
if (ch === 34) {
|
|
27611
27828
|
captureSegment(state, captureStart, state.position, true);
|
|
27612
27829
|
state.position++;
|
|
@@ -27614,9 +27831,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27614
27831
|
} else if (ch === 92) {
|
|
27615
27832
|
captureSegment(state, captureStart, state.position, true);
|
|
27616
27833
|
ch = state.input.charCodeAt(++state.position);
|
|
27617
|
-
if (isEol(ch))
|
|
27834
|
+
if (isEol(ch)) {
|
|
27618
27835
|
skipSeparationSpace(state, false, nodeIndent);
|
|
27619
|
-
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
27836
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
27620
27837
|
state.result += simpleEscapeMap[ch];
|
|
27621
27838
|
state.position++;
|
|
27622
27839
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
@@ -27624,27 +27841,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27624
27841
|
let hexResult = 0;
|
|
27625
27842
|
for (;hexLength > 0; hexLength--) {
|
|
27626
27843
|
ch = state.input.charCodeAt(++state.position);
|
|
27627
|
-
if ((tmp = fromHexCode(ch)) >= 0)
|
|
27844
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
27628
27845
|
hexResult = (hexResult << 4) + tmp;
|
|
27629
|
-
else
|
|
27846
|
+
} else {
|
|
27630
27847
|
throwError(state, "expected hexadecimal character");
|
|
27848
|
+
}
|
|
27631
27849
|
}
|
|
27632
27850
|
state.result += charFromCodepoint(hexResult);
|
|
27633
27851
|
state.position++;
|
|
27634
|
-
} else
|
|
27852
|
+
} else {
|
|
27635
27853
|
throwError(state, "unknown escape sequence");
|
|
27854
|
+
}
|
|
27636
27855
|
captureStart = captureEnd = state.position;
|
|
27637
27856
|
} else if (isEol(ch)) {
|
|
27638
27857
|
captureSegment(state, captureStart, captureEnd, true);
|
|
27639
27858
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
27640
27859
|
captureStart = captureEnd = state.position;
|
|
27641
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
27860
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
27642
27861
|
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
27643
|
-
else {
|
|
27862
|
+
} else {
|
|
27644
27863
|
state.position++;
|
|
27645
|
-
if (!isWhiteSpace(ch))
|
|
27864
|
+
if (!isWhiteSpace(ch)) {
|
|
27646
27865
|
captureEnd = state.position;
|
|
27866
|
+
}
|
|
27647
27867
|
}
|
|
27868
|
+
}
|
|
27648
27869
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
27649
27870
|
}
|
|
27650
27871
|
function readFlowCollection(state, nodeIndent) {
|
|
@@ -27659,7 +27880,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27659
27880
|
let isPair;
|
|
27660
27881
|
let isExplicitPair;
|
|
27661
27882
|
let isMapping;
|
|
27662
|
-
const overridableKeys = Object.create(null);
|
|
27883
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
27663
27884
|
let keyNode;
|
|
27664
27885
|
let keyTag;
|
|
27665
27886
|
let valueNode;
|
|
@@ -27672,10 +27893,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27672
27893
|
terminator = 125;
|
|
27673
27894
|
isMapping = true;
|
|
27674
27895
|
_result = {};
|
|
27675
|
-
} else
|
|
27896
|
+
} else {
|
|
27676
27897
|
return false;
|
|
27677
|
-
|
|
27898
|
+
}
|
|
27899
|
+
if (state.anchor !== null) {
|
|
27678
27900
|
storeAnchor(state, state.anchor, _result);
|
|
27901
|
+
}
|
|
27679
27902
|
ch = state.input.charCodeAt(++state.position);
|
|
27680
27903
|
while (ch !== 0) {
|
|
27681
27904
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -27687,14 +27910,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27687
27910
|
state.kind = isMapping ? "mapping" : "sequence";
|
|
27688
27911
|
state.result = _result;
|
|
27689
27912
|
return true;
|
|
27690
|
-
} else if (!readNext)
|
|
27913
|
+
} else if (!readNext) {
|
|
27691
27914
|
throwError(state, "missed comma between flow collection entries");
|
|
27692
|
-
else if (ch === 44)
|
|
27915
|
+
} else if (ch === 44) {
|
|
27693
27916
|
throwError(state, "expected the node content, but found ','");
|
|
27917
|
+
}
|
|
27694
27918
|
keyTag = keyNode = valueNode = null;
|
|
27695
27919
|
isPair = isExplicitPair = false;
|
|
27696
27920
|
if (ch === 63) {
|
|
27697
|
-
|
|
27921
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
27922
|
+
if (isWsOrEol(following)) {
|
|
27698
27923
|
isPair = isExplicitPair = true;
|
|
27699
27924
|
state.position++;
|
|
27700
27925
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -27715,19 +27940,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27715
27940
|
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
27716
27941
|
valueNode = state.result;
|
|
27717
27942
|
}
|
|
27718
|
-
if (isMapping)
|
|
27943
|
+
if (isMapping) {
|
|
27719
27944
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
27720
|
-
else if (isPair)
|
|
27945
|
+
} else if (isPair) {
|
|
27721
27946
|
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
27722
|
-
else
|
|
27947
|
+
} else {
|
|
27723
27948
|
_result.push(keyNode);
|
|
27949
|
+
}
|
|
27724
27950
|
skipSeparationSpace(state, true, nodeIndent);
|
|
27725
27951
|
ch = state.input.charCodeAt(state.position);
|
|
27726
27952
|
if (ch === 44) {
|
|
27727
27953
|
readNext = true;
|
|
27728
27954
|
ch = state.input.charCodeAt(++state.position);
|
|
27729
|
-
} else
|
|
27955
|
+
} else {
|
|
27730
27956
|
readNext = false;
|
|
27957
|
+
}
|
|
27731
27958
|
}
|
|
27732
27959
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
27733
27960
|
}
|
|
@@ -27741,40 +27968,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27741
27968
|
let atMoreIndented = false;
|
|
27742
27969
|
let tmp;
|
|
27743
27970
|
let ch = state.input.charCodeAt(state.position);
|
|
27744
|
-
if (ch === 124)
|
|
27971
|
+
if (ch === 124) {
|
|
27745
27972
|
folding = false;
|
|
27746
|
-
else if (ch === 62)
|
|
27973
|
+
} else if (ch === 62) {
|
|
27747
27974
|
folding = true;
|
|
27748
|
-
else
|
|
27975
|
+
} else {
|
|
27749
27976
|
return false;
|
|
27977
|
+
}
|
|
27750
27978
|
state.kind = "scalar";
|
|
27751
27979
|
state.result = "";
|
|
27752
27980
|
while (ch !== 0) {
|
|
27753
27981
|
ch = state.input.charCodeAt(++state.position);
|
|
27754
|
-
if (ch === 43 || ch === 45)
|
|
27755
|
-
if (CHOMPING_CLIP === chomping)
|
|
27982
|
+
if (ch === 43 || ch === 45) {
|
|
27983
|
+
if (CHOMPING_CLIP === chomping) {
|
|
27756
27984
|
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
27757
|
-
else
|
|
27985
|
+
} else {
|
|
27758
27986
|
throwError(state, "repeat of a chomping mode identifier");
|
|
27759
|
-
|
|
27760
|
-
|
|
27987
|
+
}
|
|
27988
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
27989
|
+
if (tmp === 0) {
|
|
27761
27990
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
27762
|
-
else if (!detectedIndent) {
|
|
27991
|
+
} else if (!detectedIndent) {
|
|
27763
27992
|
textIndent = nodeIndent + tmp - 1;
|
|
27764
27993
|
detectedIndent = true;
|
|
27765
|
-
} else
|
|
27994
|
+
} else {
|
|
27766
27995
|
throwError(state, "repeat of an indentation width identifier");
|
|
27767
|
-
|
|
27996
|
+
}
|
|
27997
|
+
} else {
|
|
27768
27998
|
break;
|
|
27999
|
+
}
|
|
27769
28000
|
}
|
|
27770
28001
|
if (isWhiteSpace(ch)) {
|
|
27771
|
-
do
|
|
28002
|
+
do {
|
|
27772
28003
|
ch = state.input.charCodeAt(++state.position);
|
|
27773
|
-
while (isWhiteSpace(ch));
|
|
27774
|
-
if (ch === 35)
|
|
27775
|
-
do
|
|
28004
|
+
} while (isWhiteSpace(ch));
|
|
28005
|
+
if (ch === 35) {
|
|
28006
|
+
do {
|
|
27776
28007
|
ch = state.input.charCodeAt(++state.position);
|
|
27777
|
-
while (!isEol(ch) && ch !== 0);
|
|
28008
|
+
} while (!isEol(ch) && ch !== 0);
|
|
28009
|
+
}
|
|
27778
28010
|
}
|
|
27779
28011
|
while (ch !== 0) {
|
|
27780
28012
|
readLineBreak(state);
|
|
@@ -27784,49 +28016,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27784
28016
|
state.lineIndent++;
|
|
27785
28017
|
ch = state.input.charCodeAt(++state.position);
|
|
27786
28018
|
}
|
|
27787
|
-
if (!detectedIndent && state.lineIndent > textIndent)
|
|
28019
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
27788
28020
|
textIndent = state.lineIndent;
|
|
28021
|
+
}
|
|
27789
28022
|
if (isEol(ch)) {
|
|
27790
28023
|
emptyLines++;
|
|
27791
28024
|
continue;
|
|
27792
28025
|
}
|
|
27793
|
-
if (!detectedIndent && textIndent === 0)
|
|
28026
|
+
if (!detectedIndent && textIndent === 0) {
|
|
27794
28027
|
throwError(state, "missing indentation for block scalar");
|
|
28028
|
+
}
|
|
27795
28029
|
if (state.lineIndent < textIndent) {
|
|
27796
|
-
if (chomping === CHOMPING_KEEP)
|
|
27797
|
-
state.result +=
|
|
28030
|
+
if (chomping === CHOMPING_KEEP) {
|
|
28031
|
+
state.result += common2.repeat(`
|
|
27798
28032
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
27799
|
-
else if (chomping === CHOMPING_CLIP) {
|
|
27800
|
-
if (didReadContent)
|
|
28033
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
28034
|
+
if (didReadContent) {
|
|
27801
28035
|
state.result += `
|
|
27802
28036
|
`;
|
|
28037
|
+
}
|
|
27803
28038
|
}
|
|
27804
28039
|
break;
|
|
27805
28040
|
}
|
|
27806
|
-
if (folding)
|
|
28041
|
+
if (folding) {
|
|
27807
28042
|
if (isWhiteSpace(ch)) {
|
|
27808
28043
|
atMoreIndented = true;
|
|
27809
|
-
state.result +=
|
|
28044
|
+
state.result += common2.repeat(`
|
|
27810
28045
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
27811
28046
|
} else if (atMoreIndented) {
|
|
27812
28047
|
atMoreIndented = false;
|
|
27813
|
-
state.result +=
|
|
28048
|
+
state.result += common2.repeat(`
|
|
27814
28049
|
`, emptyLines + 1);
|
|
27815
28050
|
} else if (emptyLines === 0) {
|
|
27816
|
-
if (didReadContent)
|
|
28051
|
+
if (didReadContent) {
|
|
27817
28052
|
state.result += " ";
|
|
27818
|
-
|
|
27819
|
-
|
|
28053
|
+
}
|
|
28054
|
+
} else {
|
|
28055
|
+
state.result += common2.repeat(`
|
|
27820
28056
|
`, emptyLines);
|
|
27821
|
-
|
|
27822
|
-
|
|
28057
|
+
}
|
|
28058
|
+
} else {
|
|
28059
|
+
state.result += common2.repeat(`
|
|
27823
28060
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
28061
|
+
}
|
|
27824
28062
|
didReadContent = true;
|
|
27825
28063
|
detectedIndent = true;
|
|
27826
28064
|
emptyLines = 0;
|
|
27827
28065
|
const captureStart = state.position;
|
|
27828
|
-
while (!isEol(ch) && ch !== 0)
|
|
28066
|
+
while (!isEol(ch) && ch !== 0) {
|
|
27829
28067
|
ch = state.input.charCodeAt(++state.position);
|
|
28068
|
+
}
|
|
27830
28069
|
captureSegment(state, captureStart, state.position, false);
|
|
27831
28070
|
}
|
|
27832
28071
|
return true;
|
|
@@ -27838,18 +28077,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27838
28077
|
let detected = false;
|
|
27839
28078
|
if (state.firstTabInLine !== -1)
|
|
27840
28079
|
return false;
|
|
27841
|
-
if (state.anchor !== null)
|
|
28080
|
+
if (state.anchor !== null) {
|
|
27842
28081
|
storeAnchor(state, state.anchor, _result);
|
|
28082
|
+
}
|
|
27843
28083
|
let ch = state.input.charCodeAt(state.position);
|
|
27844
28084
|
while (ch !== 0) {
|
|
27845
28085
|
if (state.firstTabInLine !== -1) {
|
|
27846
28086
|
state.position = state.firstTabInLine;
|
|
27847
28087
|
throwError(state, "tab characters must not be used in indentation");
|
|
27848
28088
|
}
|
|
27849
|
-
if (ch !== 45)
|
|
28089
|
+
if (ch !== 45) {
|
|
27850
28090
|
break;
|
|
27851
|
-
|
|
28091
|
+
}
|
|
28092
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
28093
|
+
if (!isWsOrEol(following)) {
|
|
27852
28094
|
break;
|
|
28095
|
+
}
|
|
27853
28096
|
detected = true;
|
|
27854
28097
|
state.position++;
|
|
27855
28098
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -27864,10 +28107,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27864
28107
|
_result.push(state.result);
|
|
27865
28108
|
skipSeparationSpace(state, true, -1);
|
|
27866
28109
|
ch = state.input.charCodeAt(state.position);
|
|
27867
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
28110
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
27868
28111
|
throwError(state, "bad indentation of a sequence entry");
|
|
27869
|
-
else if (state.lineIndent < nodeIndent)
|
|
28112
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
27870
28113
|
break;
|
|
28114
|
+
}
|
|
27871
28115
|
}
|
|
27872
28116
|
if (detected) {
|
|
27873
28117
|
state.tag = _tag;
|
|
@@ -27886,7 +28130,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27886
28130
|
const _tag = state.tag;
|
|
27887
28131
|
const _anchor = state.anchor;
|
|
27888
28132
|
const _result = {};
|
|
27889
|
-
const overridableKeys = Object.create(null);
|
|
28133
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
27890
28134
|
let keyTag = null;
|
|
27891
28135
|
let keyNode = null;
|
|
27892
28136
|
let valueNode = null;
|
|
@@ -27894,8 +28138,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27894
28138
|
let detected = false;
|
|
27895
28139
|
if (state.firstTabInLine !== -1)
|
|
27896
28140
|
return false;
|
|
27897
|
-
if (state.anchor !== null)
|
|
28141
|
+
if (state.anchor !== null) {
|
|
27898
28142
|
storeAnchor(state, state.anchor, _result);
|
|
28143
|
+
}
|
|
27899
28144
|
let ch = state.input.charCodeAt(state.position);
|
|
27900
28145
|
while (ch !== 0) {
|
|
27901
28146
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
@@ -27916,24 +28161,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27916
28161
|
} else if (atExplicitKey) {
|
|
27917
28162
|
atExplicitKey = false;
|
|
27918
28163
|
allowCompact = true;
|
|
27919
|
-
} else
|
|
28164
|
+
} else {
|
|
27920
28165
|
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
28166
|
+
}
|
|
27921
28167
|
state.position += 1;
|
|
27922
28168
|
ch = following;
|
|
27923
28169
|
} else {
|
|
27924
28170
|
_keyLine = state.line;
|
|
27925
28171
|
_keyLineStart = state.lineStart;
|
|
27926
28172
|
_keyPos = state.position;
|
|
27927
|
-
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
|
|
28173
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
27928
28174
|
break;
|
|
28175
|
+
}
|
|
27929
28176
|
if (state.line === _line) {
|
|
27930
28177
|
ch = state.input.charCodeAt(state.position);
|
|
27931
|
-
while (isWhiteSpace(ch))
|
|
28178
|
+
while (isWhiteSpace(ch)) {
|
|
27932
28179
|
ch = state.input.charCodeAt(++state.position);
|
|
28180
|
+
}
|
|
27933
28181
|
if (ch === 58) {
|
|
27934
28182
|
ch = state.input.charCodeAt(++state.position);
|
|
27935
|
-
if (!isWsOrEol(ch))
|
|
28183
|
+
if (!isWsOrEol(ch)) {
|
|
27936
28184
|
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
28185
|
+
}
|
|
27937
28186
|
if (atExplicitKey) {
|
|
27938
28187
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
27939
28188
|
keyTag = keyNode = valueNode = null;
|
|
@@ -27943,16 +28192,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27943
28192
|
allowCompact = false;
|
|
27944
28193
|
keyTag = state.tag;
|
|
27945
28194
|
keyNode = state.result;
|
|
27946
|
-
} else if (detected)
|
|
28195
|
+
} else if (detected) {
|
|
27947
28196
|
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
27948
|
-
else {
|
|
28197
|
+
} else {
|
|
27949
28198
|
state.tag = _tag;
|
|
27950
28199
|
state.anchor = _anchor;
|
|
27951
28200
|
return true;
|
|
27952
28201
|
}
|
|
27953
|
-
} else if (detected)
|
|
28202
|
+
} else if (detected) {
|
|
27954
28203
|
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
27955
|
-
else {
|
|
28204
|
+
} else {
|
|
27956
28205
|
state.tag = _tag;
|
|
27957
28206
|
state.anchor = _anchor;
|
|
27958
28207
|
return true;
|
|
@@ -27964,11 +28213,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27964
28213
|
_keyLineStart = state.lineStart;
|
|
27965
28214
|
_keyPos = state.position;
|
|
27966
28215
|
}
|
|
27967
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
27968
|
-
if (atExplicitKey)
|
|
28216
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
28217
|
+
if (atExplicitKey) {
|
|
27969
28218
|
keyNode = state.result;
|
|
27970
|
-
else
|
|
28219
|
+
} else {
|
|
27971
28220
|
valueNode = state.result;
|
|
28221
|
+
}
|
|
28222
|
+
}
|
|
27972
28223
|
if (!atExplicitKey) {
|
|
27973
28224
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
27974
28225
|
keyTag = keyNode = valueNode = null;
|
|
@@ -27976,13 +28227,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27976
28227
|
skipSeparationSpace(state, true, -1);
|
|
27977
28228
|
ch = state.input.charCodeAt(state.position);
|
|
27978
28229
|
}
|
|
27979
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
28230
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
27980
28231
|
throwError(state, "bad indentation of a mapping entry");
|
|
27981
|
-
else if (state.lineIndent < nodeIndent)
|
|
28232
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
27982
28233
|
break;
|
|
28234
|
+
}
|
|
27983
28235
|
}
|
|
27984
|
-
if (atExplicitKey)
|
|
28236
|
+
if (atExplicitKey) {
|
|
27985
28237
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
28238
|
+
}
|
|
27986
28239
|
if (detected) {
|
|
27987
28240
|
state.tag = _tag;
|
|
27988
28241
|
state.anchor = _anchor;
|
|
@@ -27999,8 +28252,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27999
28252
|
let ch = state.input.charCodeAt(state.position);
|
|
28000
28253
|
if (ch !== 33)
|
|
28001
28254
|
return false;
|
|
28002
|
-
if (state.tag !== null)
|
|
28255
|
+
if (state.tag !== null) {
|
|
28003
28256
|
throwError(state, "duplication of a tag property");
|
|
28257
|
+
}
|
|
28004
28258
|
ch = state.input.charCodeAt(++state.position);
|
|
28005
28259
|
if (ch === 60) {
|
|
28006
28260
|
isVerbatim = true;
|
|
@@ -28009,66 +28263,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28009
28263
|
isNamed = true;
|
|
28010
28264
|
tagHandle = "!!";
|
|
28011
28265
|
ch = state.input.charCodeAt(++state.position);
|
|
28012
|
-
} else
|
|
28266
|
+
} else {
|
|
28013
28267
|
tagHandle = "!";
|
|
28268
|
+
}
|
|
28014
28269
|
let _position = state.position;
|
|
28015
28270
|
if (isVerbatim) {
|
|
28016
|
-
do
|
|
28271
|
+
do {
|
|
28017
28272
|
ch = state.input.charCodeAt(++state.position);
|
|
28018
|
-
while (ch !== 0 && ch !== 62);
|
|
28273
|
+
} while (ch !== 0 && ch !== 62);
|
|
28019
28274
|
if (state.position < state.length) {
|
|
28020
28275
|
tagName = state.input.slice(_position, state.position);
|
|
28021
28276
|
ch = state.input.charCodeAt(++state.position);
|
|
28022
|
-
} else
|
|
28277
|
+
} else {
|
|
28023
28278
|
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
28279
|
+
}
|
|
28024
28280
|
} else {
|
|
28025
28281
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
28026
|
-
if (ch === 33)
|
|
28282
|
+
if (ch === 33) {
|
|
28027
28283
|
if (!isNamed) {
|
|
28028
28284
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
28029
|
-
if (!PATTERN_TAG_HANDLE.test(tagHandle))
|
|
28285
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
28030
28286
|
throwError(state, "named tag handle cannot contain such characters");
|
|
28287
|
+
}
|
|
28031
28288
|
isNamed = true;
|
|
28032
28289
|
_position = state.position + 1;
|
|
28033
|
-
} else
|
|
28290
|
+
} else {
|
|
28034
28291
|
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
28292
|
+
}
|
|
28293
|
+
}
|
|
28035
28294
|
ch = state.input.charCodeAt(++state.position);
|
|
28036
28295
|
}
|
|
28037
28296
|
tagName = state.input.slice(_position, state.position);
|
|
28038
|
-
if (PATTERN_FLOW_INDICATORS.test(tagName))
|
|
28297
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
28039
28298
|
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
28299
|
+
}
|
|
28040
28300
|
}
|
|
28041
|
-
if (tagName && !PATTERN_TAG_URI.test(tagName))
|
|
28301
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
28042
28302
|
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
28303
|
+
}
|
|
28043
28304
|
try {
|
|
28044
28305
|
tagName = decodeURIComponent(tagName);
|
|
28045
28306
|
} catch (err) {
|
|
28046
28307
|
throwError(state, "tag name is malformed: " + tagName);
|
|
28047
28308
|
}
|
|
28048
|
-
if (isVerbatim)
|
|
28309
|
+
if (isVerbatim) {
|
|
28049
28310
|
state.tag = tagName;
|
|
28050
|
-
else if (_hasOwnProperty.call(state.tagMap, tagHandle))
|
|
28311
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
28051
28312
|
state.tag = state.tagMap[tagHandle] + tagName;
|
|
28052
|
-
else if (tagHandle === "!")
|
|
28313
|
+
} else if (tagHandle === "!") {
|
|
28053
28314
|
state.tag = "!" + tagName;
|
|
28054
|
-
else if (tagHandle === "!!")
|
|
28315
|
+
} else if (tagHandle === "!!") {
|
|
28055
28316
|
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
28056
|
-
else
|
|
28317
|
+
} else {
|
|
28057
28318
|
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
28319
|
+
}
|
|
28058
28320
|
return true;
|
|
28059
28321
|
}
|
|
28060
28322
|
function readAnchorProperty(state) {
|
|
28061
28323
|
let ch = state.input.charCodeAt(state.position);
|
|
28062
28324
|
if (ch !== 38)
|
|
28063
28325
|
return false;
|
|
28064
|
-
if (state.anchor !== null)
|
|
28326
|
+
if (state.anchor !== null) {
|
|
28065
28327
|
throwError(state, "duplication of an anchor property");
|
|
28328
|
+
}
|
|
28066
28329
|
ch = state.input.charCodeAt(++state.position);
|
|
28067
28330
|
const _position = state.position;
|
|
28068
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
28331
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
28069
28332
|
ch = state.input.charCodeAt(++state.position);
|
|
28070
|
-
|
|
28333
|
+
}
|
|
28334
|
+
if (state.position === _position) {
|
|
28071
28335
|
throwError(state, "name of an anchor node must contain at least one character");
|
|
28336
|
+
}
|
|
28072
28337
|
state.anchor = state.input.slice(_position, state.position);
|
|
28073
28338
|
return true;
|
|
28074
28339
|
}
|
|
@@ -28078,13 +28343,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28078
28343
|
return false;
|
|
28079
28344
|
ch = state.input.charCodeAt(++state.position);
|
|
28080
28345
|
const _position = state.position;
|
|
28081
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
28346
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
28082
28347
|
ch = state.input.charCodeAt(++state.position);
|
|
28083
|
-
|
|
28348
|
+
}
|
|
28349
|
+
if (state.position === _position) {
|
|
28084
28350
|
throwError(state, "name of an alias node must contain at least one character");
|
|
28351
|
+
}
|
|
28085
28352
|
const alias = state.input.slice(_position, state.position);
|
|
28086
|
-
if (!_hasOwnProperty.call(state.anchorMap, alias))
|
|
28353
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
28087
28354
|
throwError(state, 'unidentified alias "' + alias + '"');
|
|
28355
|
+
}
|
|
28088
28356
|
state.result = state.anchorMap[alias];
|
|
28089
28357
|
skipSeparationSpace(state, true, -1);
|
|
28090
28358
|
return true;
|
|
@@ -28112,14 +28380,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28112
28380
|
let atNewLine = false;
|
|
28113
28381
|
let hasContent = false;
|
|
28114
28382
|
let propertyStart = null;
|
|
28115
|
-
let
|
|
28383
|
+
let type2;
|
|
28116
28384
|
let flowIndent;
|
|
28117
28385
|
let blockIndent;
|
|
28118
|
-
if (state.depth >= state.maxDepth)
|
|
28386
|
+
if (state.depth >= state.maxDepth) {
|
|
28119
28387
|
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
28388
|
+
}
|
|
28120
28389
|
state.depth += 1;
|
|
28121
|
-
if (state.listener !== null)
|
|
28390
|
+
if (state.listener !== null) {
|
|
28122
28391
|
state.listener("open", state);
|
|
28392
|
+
}
|
|
28123
28393
|
state.tag = null;
|
|
28124
28394
|
state.anchor = null;
|
|
28125
28395
|
state.kind = null;
|
|
@@ -28128,110 +28398,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28128
28398
|
if (allowToSeek) {
|
|
28129
28399
|
if (skipSeparationSpace(state, true, -1)) {
|
|
28130
28400
|
atNewLine = true;
|
|
28131
|
-
if (state.lineIndent > parentIndent)
|
|
28401
|
+
if (state.lineIndent > parentIndent) {
|
|
28132
28402
|
indentStatus = 1;
|
|
28133
|
-
else if (state.lineIndent === parentIndent)
|
|
28403
|
+
} else if (state.lineIndent === parentIndent) {
|
|
28134
28404
|
indentStatus = 0;
|
|
28135
|
-
else if (state.lineIndent < parentIndent)
|
|
28405
|
+
} else if (state.lineIndent < parentIndent) {
|
|
28136
28406
|
indentStatus = -1;
|
|
28407
|
+
}
|
|
28137
28408
|
}
|
|
28138
28409
|
}
|
|
28139
|
-
if (indentStatus === 1)
|
|
28410
|
+
if (indentStatus === 1) {
|
|
28140
28411
|
while (true) {
|
|
28141
28412
|
const ch = state.input.charCodeAt(state.position);
|
|
28142
28413
|
const propertyState = snapshotState(state);
|
|
28143
|
-
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
|
|
28414
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
28144
28415
|
break;
|
|
28145
|
-
|
|
28416
|
+
}
|
|
28417
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
28146
28418
|
break;
|
|
28147
|
-
|
|
28419
|
+
}
|
|
28420
|
+
if (propertyStart === null) {
|
|
28148
28421
|
propertyStart = propertyState;
|
|
28422
|
+
}
|
|
28149
28423
|
if (skipSeparationSpace(state, true, -1)) {
|
|
28150
28424
|
atNewLine = true;
|
|
28151
28425
|
allowBlockCollections = allowBlockStyles;
|
|
28152
|
-
if (state.lineIndent > parentIndent)
|
|
28426
|
+
if (state.lineIndent > parentIndent) {
|
|
28153
28427
|
indentStatus = 1;
|
|
28154
|
-
else if (state.lineIndent === parentIndent)
|
|
28428
|
+
} else if (state.lineIndent === parentIndent) {
|
|
28155
28429
|
indentStatus = 0;
|
|
28156
|
-
else if (state.lineIndent < parentIndent)
|
|
28430
|
+
} else if (state.lineIndent < parentIndent) {
|
|
28157
28431
|
indentStatus = -1;
|
|
28158
|
-
|
|
28432
|
+
}
|
|
28433
|
+
} else {
|
|
28159
28434
|
allowBlockCollections = false;
|
|
28435
|
+
}
|
|
28160
28436
|
}
|
|
28161
|
-
|
|
28437
|
+
}
|
|
28438
|
+
if (allowBlockCollections) {
|
|
28162
28439
|
allowBlockCollections = atNewLine || allowCompact;
|
|
28440
|
+
}
|
|
28163
28441
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
28164
|
-
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
|
|
28442
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
28165
28443
|
flowIndent = parentIndent;
|
|
28166
|
-
else
|
|
28444
|
+
} else {
|
|
28167
28445
|
flowIndent = parentIndent + 1;
|
|
28446
|
+
}
|
|
28168
28447
|
blockIndent = state.position - state.lineStart;
|
|
28169
|
-
if (indentStatus === 1)
|
|
28170
|
-
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
|
|
28448
|
+
if (indentStatus === 1) {
|
|
28449
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
28171
28450
|
hasContent = true;
|
|
28172
|
-
else {
|
|
28451
|
+
} else {
|
|
28173
28452
|
const ch = state.input.charCodeAt(state.position);
|
|
28174
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
|
|
28453
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
28175
28454
|
hasContent = true;
|
|
28176
|
-
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
|
|
28455
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
28177
28456
|
hasContent = true;
|
|
28178
|
-
else if (readAlias(state)) {
|
|
28457
|
+
} else if (readAlias(state)) {
|
|
28179
28458
|
hasContent = true;
|
|
28180
|
-
if (state.tag !== null || state.anchor !== null)
|
|
28459
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
28181
28460
|
throwError(state, "alias node should not have any properties");
|
|
28461
|
+
}
|
|
28182
28462
|
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
28183
28463
|
hasContent = true;
|
|
28184
|
-
if (state.tag === null)
|
|
28464
|
+
if (state.tag === null) {
|
|
28185
28465
|
state.tag = "?";
|
|
28466
|
+
}
|
|
28186
28467
|
}
|
|
28187
|
-
if (state.anchor !== null)
|
|
28468
|
+
if (state.anchor !== null) {
|
|
28188
28469
|
storeAnchor(state, state.anchor, state.result);
|
|
28470
|
+
}
|
|
28189
28471
|
}
|
|
28190
|
-
else if (indentStatus === 0)
|
|
28472
|
+
} else if (indentStatus === 0) {
|
|
28191
28473
|
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
28474
|
+
}
|
|
28192
28475
|
}
|
|
28193
28476
|
if (state.tag === null) {
|
|
28194
|
-
if (state.anchor !== null)
|
|
28477
|
+
if (state.anchor !== null) {
|
|
28195
28478
|
storeAnchor(state, state.anchor, state.result);
|
|
28479
|
+
}
|
|
28196
28480
|
} else if (state.tag === "?") {
|
|
28197
|
-
if (state.result !== null && state.kind !== "scalar")
|
|
28481
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
28198
28482
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
28483
|
+
}
|
|
28199
28484
|
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
28200
|
-
|
|
28201
|
-
if (
|
|
28202
|
-
state.result =
|
|
28203
|
-
state.tag =
|
|
28204
|
-
if (state.anchor !== null)
|
|
28485
|
+
type2 = state.implicitTypes[typeIndex];
|
|
28486
|
+
if (type2.resolve(state.result)) {
|
|
28487
|
+
state.result = type2.construct(state.result);
|
|
28488
|
+
state.tag = type2.tag;
|
|
28489
|
+
if (state.anchor !== null) {
|
|
28205
28490
|
storeAnchor(state, state.anchor, state.result);
|
|
28491
|
+
}
|
|
28206
28492
|
break;
|
|
28207
28493
|
}
|
|
28208
28494
|
}
|
|
28209
28495
|
} else if (state.tag !== "!") {
|
|
28210
|
-
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
|
|
28211
|
-
|
|
28212
|
-
else {
|
|
28213
|
-
|
|
28496
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
28497
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
28498
|
+
} else {
|
|
28499
|
+
type2 = null;
|
|
28214
28500
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
28215
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
|
|
28501
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
28216
28502
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
28217
|
-
|
|
28503
|
+
type2 = typeList[typeIndex];
|
|
28218
28504
|
break;
|
|
28219
28505
|
}
|
|
28506
|
+
}
|
|
28220
28507
|
}
|
|
28221
|
-
if (!
|
|
28508
|
+
if (!type2) {
|
|
28222
28509
|
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
28223
|
-
|
|
28224
|
-
|
|
28225
|
-
|
|
28510
|
+
}
|
|
28511
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
28512
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
28513
|
+
}
|
|
28514
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
28226
28515
|
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
28227
|
-
else {
|
|
28228
|
-
state.result =
|
|
28229
|
-
if (state.anchor !== null)
|
|
28516
|
+
} else {
|
|
28517
|
+
state.result = type2.construct(state.result, state.tag);
|
|
28518
|
+
if (state.anchor !== null) {
|
|
28230
28519
|
storeAnchor(state, state.anchor, state.result);
|
|
28520
|
+
}
|
|
28231
28521
|
}
|
|
28232
28522
|
}
|
|
28233
|
-
if (state.listener !== null)
|
|
28523
|
+
if (state.listener !== null) {
|
|
28234
28524
|
state.listener("close", state);
|
|
28525
|
+
}
|
|
28235
28526
|
state.depth -= 1;
|
|
28236
28527
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
28237
28528
|
}
|
|
@@ -28241,55 +28532,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28241
28532
|
let ch;
|
|
28242
28533
|
state.version = null;
|
|
28243
28534
|
state.checkLineBreaks = state.legacy;
|
|
28244
|
-
state.tagMap = Object.create(null);
|
|
28245
|
-
state.anchorMap = Object.create(null);
|
|
28535
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
28536
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
28246
28537
|
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
28247
28538
|
skipSeparationSpace(state, true, -1);
|
|
28248
28539
|
ch = state.input.charCodeAt(state.position);
|
|
28249
|
-
if (state.lineIndent > 0 || ch !== 37)
|
|
28540
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
28250
28541
|
break;
|
|
28542
|
+
}
|
|
28251
28543
|
hasDirectives = true;
|
|
28252
28544
|
ch = state.input.charCodeAt(++state.position);
|
|
28253
28545
|
let _position = state.position;
|
|
28254
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
28546
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
28255
28547
|
ch = state.input.charCodeAt(++state.position);
|
|
28548
|
+
}
|
|
28256
28549
|
const directiveName = state.input.slice(_position, state.position);
|
|
28257
28550
|
const directiveArgs = [];
|
|
28258
|
-
if (directiveName.length < 1)
|
|
28551
|
+
if (directiveName.length < 1) {
|
|
28259
28552
|
throwError(state, "directive name must not be less than one character in length");
|
|
28553
|
+
}
|
|
28260
28554
|
while (ch !== 0) {
|
|
28261
|
-
while (isWhiteSpace(ch))
|
|
28555
|
+
while (isWhiteSpace(ch)) {
|
|
28262
28556
|
ch = state.input.charCodeAt(++state.position);
|
|
28557
|
+
}
|
|
28263
28558
|
if (ch === 35) {
|
|
28264
|
-
do
|
|
28559
|
+
do {
|
|
28265
28560
|
ch = state.input.charCodeAt(++state.position);
|
|
28266
|
-
while (ch !== 0 && !isEol(ch));
|
|
28561
|
+
} while (ch !== 0 && !isEol(ch));
|
|
28267
28562
|
break;
|
|
28268
28563
|
}
|
|
28269
28564
|
if (isEol(ch))
|
|
28270
28565
|
break;
|
|
28271
28566
|
_position = state.position;
|
|
28272
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
28567
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
28273
28568
|
ch = state.input.charCodeAt(++state.position);
|
|
28569
|
+
}
|
|
28274
28570
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
28275
28571
|
}
|
|
28276
28572
|
if (ch !== 0)
|
|
28277
28573
|
readLineBreak(state);
|
|
28278
|
-
if (_hasOwnProperty.call(directiveHandlers, directiveName))
|
|
28574
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
28279
28575
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
28280
|
-
else
|
|
28576
|
+
} else {
|
|
28281
28577
|
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
28578
|
+
}
|
|
28282
28579
|
}
|
|
28283
28580
|
skipSeparationSpace(state, true, -1);
|
|
28284
28581
|
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
28285
28582
|
state.position += 3;
|
|
28286
28583
|
skipSeparationSpace(state, true, -1);
|
|
28287
|
-
} else if (hasDirectives)
|
|
28584
|
+
} else if (hasDirectives) {
|
|
28288
28585
|
throwError(state, "directives end mark is expected");
|
|
28586
|
+
}
|
|
28289
28587
|
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
28290
28588
|
skipSeparationSpace(state, true, -1);
|
|
28291
|
-
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
|
|
28589
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
28292
28590
|
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
28591
|
+
}
|
|
28293
28592
|
state.documents.push(state.result);
|
|
28294
28593
|
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
28295
28594
|
if (state.input.charCodeAt(state.position) === 46) {
|
|
@@ -28298,18 +28597,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28298
28597
|
}
|
|
28299
28598
|
return;
|
|
28300
28599
|
}
|
|
28301
|
-
if (state.position < state.length - 1)
|
|
28600
|
+
if (state.position < state.length - 1) {
|
|
28302
28601
|
throwError(state, "end of the stream or a document separator is expected");
|
|
28602
|
+
}
|
|
28303
28603
|
}
|
|
28304
28604
|
function loadDocuments(input, options) {
|
|
28305
28605
|
input = String(input);
|
|
28306
28606
|
options = options || {};
|
|
28307
28607
|
if (input.length !== 0) {
|
|
28308
|
-
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
|
|
28608
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
28309
28609
|
input += `
|
|
28310
28610
|
`;
|
|
28311
|
-
|
|
28611
|
+
}
|
|
28612
|
+
if (input.charCodeAt(0) === 65279) {
|
|
28312
28613
|
input = input.slice(1);
|
|
28614
|
+
}
|
|
28313
28615
|
}
|
|
28314
28616
|
const state = new State(input, options);
|
|
28315
28617
|
const nullpos = input.indexOf("\x00");
|
|
@@ -28322,64 +28624,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28322
28624
|
state.lineIndent += 1;
|
|
28323
28625
|
state.position += 1;
|
|
28324
28626
|
}
|
|
28325
|
-
while (state.position < state.length - 1)
|
|
28627
|
+
while (state.position < state.length - 1) {
|
|
28326
28628
|
readDocument(state);
|
|
28629
|
+
}
|
|
28327
28630
|
return state.documents;
|
|
28328
28631
|
}
|
|
28329
|
-
function
|
|
28632
|
+
function loadAll2(input, iterator, options) {
|
|
28330
28633
|
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
28331
28634
|
options = iterator;
|
|
28332
28635
|
iterator = null;
|
|
28333
28636
|
}
|
|
28334
28637
|
const documents = loadDocuments(input, options);
|
|
28335
|
-
if (typeof iterator !== "function")
|
|
28638
|
+
if (typeof iterator !== "function") {
|
|
28336
28639
|
return documents;
|
|
28337
|
-
|
|
28640
|
+
}
|
|
28641
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
28338
28642
|
iterator(documents[index]);
|
|
28643
|
+
}
|
|
28339
28644
|
}
|
|
28340
|
-
function
|
|
28645
|
+
function load2(input, options) {
|
|
28341
28646
|
const documents = loadDocuments(input, options);
|
|
28342
|
-
if (documents.length === 0)
|
|
28647
|
+
if (documents.length === 0) {
|
|
28343
28648
|
return;
|
|
28344
|
-
else if (documents.length === 1)
|
|
28649
|
+
} else if (documents.length === 1) {
|
|
28345
28650
|
return documents[0];
|
|
28346
|
-
|
|
28651
|
+
}
|
|
28652
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
28347
28653
|
}
|
|
28348
|
-
|
|
28349
|
-
|
|
28350
|
-
|
|
28351
|
-
|
|
28352
|
-
|
|
28353
|
-
|
|
28354
|
-
|
|
28355
|
-
|
|
28356
|
-
|
|
28357
|
-
|
|
28358
|
-
|
|
28359
|
-
|
|
28360
|
-
|
|
28361
|
-
|
|
28362
|
-
|
|
28363
|
-
|
|
28364
|
-
|
|
28365
|
-
|
|
28366
|
-
|
|
28367
|
-
|
|
28368
|
-
|
|
28369
|
-
|
|
28370
|
-
|
|
28371
|
-
|
|
28372
|
-
|
|
28373
|
-
|
|
28374
|
-
|
|
28375
|
-
|
|
28376
|
-
|
|
28377
|
-
|
|
28378
|
-
|
|
28379
|
-
|
|
28380
|
-
|
|
28381
|
-
|
|
28382
|
-
|
|
28654
|
+
loader.loadAll = loadAll2;
|
|
28655
|
+
loader.load = load2;
|
|
28656
|
+
return loader;
|
|
28657
|
+
}
|
|
28658
|
+
var dumper = {};
|
|
28659
|
+
var hasRequiredDumper;
|
|
28660
|
+
function requireDumper() {
|
|
28661
|
+
if (hasRequiredDumper)
|
|
28662
|
+
return dumper;
|
|
28663
|
+
hasRequiredDumper = 1;
|
|
28664
|
+
const common2 = requireCommon();
|
|
28665
|
+
const YAMLException2 = requireException();
|
|
28666
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
28667
|
+
const _toString = Object.prototype.toString;
|
|
28668
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
28669
|
+
const CHAR_BOM = 65279;
|
|
28670
|
+
const CHAR_TAB = 9;
|
|
28671
|
+
const CHAR_LINE_FEED = 10;
|
|
28672
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
28673
|
+
const CHAR_SPACE = 32;
|
|
28674
|
+
const CHAR_EXCLAMATION = 33;
|
|
28675
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
28676
|
+
const CHAR_SHARP = 35;
|
|
28677
|
+
const CHAR_PERCENT = 37;
|
|
28678
|
+
const CHAR_AMPERSAND = 38;
|
|
28679
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
28680
|
+
const CHAR_ASTERISK = 42;
|
|
28681
|
+
const CHAR_COMMA = 44;
|
|
28682
|
+
const CHAR_MINUS = 45;
|
|
28683
|
+
const CHAR_COLON = 58;
|
|
28684
|
+
const CHAR_EQUALS = 61;
|
|
28685
|
+
const CHAR_GREATER_THAN = 62;
|
|
28686
|
+
const CHAR_QUESTION = 63;
|
|
28687
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
28688
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
28689
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
28690
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
28691
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
28692
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
28693
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
28694
|
+
const ESCAPE_SEQUENCES = {};
|
|
28383
28695
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
28384
28696
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
28385
28697
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -28395,7 +28707,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28395
28707
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
28396
28708
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
28397
28709
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
28398
|
-
|
|
28710
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
28399
28711
|
"y",
|
|
28400
28712
|
"Y",
|
|
28401
28713
|
"yes",
|
|
@@ -28413,20 +28725,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28413
28725
|
"Off",
|
|
28414
28726
|
"OFF"
|
|
28415
28727
|
];
|
|
28416
|
-
|
|
28417
|
-
function compileStyleMap(
|
|
28418
|
-
if (
|
|
28728
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
28729
|
+
function compileStyleMap(schema2, map2) {
|
|
28730
|
+
if (map2 === null)
|
|
28419
28731
|
return {};
|
|
28420
28732
|
const result = {};
|
|
28421
|
-
const keys = Object.keys(
|
|
28733
|
+
const keys = Object.keys(map2);
|
|
28422
28734
|
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
28423
28735
|
let tag = keys[index];
|
|
28424
|
-
let style = String(
|
|
28425
|
-
if (tag.slice(0, 2) === "!!")
|
|
28736
|
+
let style = String(map2[tag]);
|
|
28737
|
+
if (tag.slice(0, 2) === "!!") {
|
|
28426
28738
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
28427
|
-
|
|
28428
|
-
|
|
28429
|
-
|
|
28739
|
+
}
|
|
28740
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
28741
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
28742
|
+
style = type2.styleAliases[style];
|
|
28743
|
+
}
|
|
28430
28744
|
result[tag] = style;
|
|
28431
28745
|
}
|
|
28432
28746
|
return result;
|
|
@@ -28444,18 +28758,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28444
28758
|
} else if (character <= 4294967295) {
|
|
28445
28759
|
handle = "U";
|
|
28446
28760
|
length = 8;
|
|
28447
|
-
} else
|
|
28448
|
-
throw new
|
|
28449
|
-
|
|
28761
|
+
} else {
|
|
28762
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
28763
|
+
}
|
|
28764
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
28450
28765
|
}
|
|
28451
|
-
|
|
28452
|
-
|
|
28766
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
28767
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
28453
28768
|
function State(options) {
|
|
28454
|
-
this.schema = options["schema"] ||
|
|
28769
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
28455
28770
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
28456
28771
|
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
28457
28772
|
this.skipInvalid = options["skipInvalid"] || false;
|
|
28458
|
-
this.flowLevel =
|
|
28773
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
28459
28774
|
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
28460
28775
|
this.sortKeys = options["sortKeys"] || false;
|
|
28461
28776
|
this.lineWidth = options["lineWidth"] || 80;
|
|
@@ -28473,7 +28788,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28473
28788
|
this.usedDuplicates = null;
|
|
28474
28789
|
}
|
|
28475
28790
|
function indentString(string, spaces) {
|
|
28476
|
-
const ind =
|
|
28791
|
+
const ind = common2.repeat(" ", spaces);
|
|
28477
28792
|
let position = 0;
|
|
28478
28793
|
let result = "";
|
|
28479
28794
|
const length = string.length;
|
|
@@ -28497,12 +28812,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28497
28812
|
}
|
|
28498
28813
|
function generateNextLine(state, level) {
|
|
28499
28814
|
return `
|
|
28500
|
-
` +
|
|
28815
|
+
` + common2.repeat(" ", state.indent * level);
|
|
28501
28816
|
}
|
|
28502
|
-
function testImplicitResolving(state,
|
|
28503
|
-
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
|
|
28504
|
-
|
|
28817
|
+
function testImplicitResolving(state, str2) {
|
|
28818
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
28819
|
+
const type2 = state.implicitTypes[index];
|
|
28820
|
+
if (type2.resolve(str2)) {
|
|
28505
28821
|
return true;
|
|
28822
|
+
}
|
|
28823
|
+
}
|
|
28506
28824
|
return false;
|
|
28507
28825
|
}
|
|
28508
28826
|
function isWhitespace(c) {
|
|
@@ -28530,19 +28848,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28530
28848
|
let second;
|
|
28531
28849
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
28532
28850
|
second = string.charCodeAt(pos + 1);
|
|
28533
|
-
if (second >= 56320 && second <= 57343)
|
|
28851
|
+
if (second >= 56320 && second <= 57343) {
|
|
28534
28852
|
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
28853
|
+
}
|
|
28535
28854
|
}
|
|
28536
28855
|
return first;
|
|
28537
28856
|
}
|
|
28538
28857
|
function needIndentIndicator(string) {
|
|
28539
|
-
|
|
28540
|
-
|
|
28541
|
-
|
|
28542
|
-
|
|
28543
|
-
|
|
28544
|
-
|
|
28545
|
-
|
|
28858
|
+
const leadingSpaceRe = /^\n* /;
|
|
28859
|
+
return leadingSpaceRe.test(string);
|
|
28860
|
+
}
|
|
28861
|
+
const STYLE_PLAIN = 1;
|
|
28862
|
+
const STYLE_SINGLE = 2;
|
|
28863
|
+
const STYLE_LITERAL = 3;
|
|
28864
|
+
const STYLE_FOLDED = 4;
|
|
28865
|
+
const STYLE_DOUBLE = 5;
|
|
28546
28866
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
28547
28867
|
let i;
|
|
28548
28868
|
let char = 0;
|
|
@@ -28552,15 +28872,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28552
28872
|
const shouldTrackWidth = lineWidth !== -1;
|
|
28553
28873
|
let previousLineBreak = -1;
|
|
28554
28874
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
28555
|
-
if (singleLineOnly || forceQuotes)
|
|
28875
|
+
if (singleLineOnly || forceQuotes) {
|
|
28556
28876
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
28557
28877
|
char = codePointAt(string, i);
|
|
28558
|
-
if (!isPrintable(char))
|
|
28878
|
+
if (!isPrintable(char)) {
|
|
28559
28879
|
return STYLE_DOUBLE;
|
|
28880
|
+
}
|
|
28560
28881
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
28561
28882
|
prevChar = char;
|
|
28562
28883
|
}
|
|
28563
|
-
else {
|
|
28884
|
+
} else {
|
|
28564
28885
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
28565
28886
|
char = codePointAt(string, i);
|
|
28566
28887
|
if (char === CHAR_LINE_FEED) {
|
|
@@ -28569,31 +28890,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28569
28890
|
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
28570
28891
|
previousLineBreak = i;
|
|
28571
28892
|
}
|
|
28572
|
-
} else if (!isPrintable(char))
|
|
28893
|
+
} else if (!isPrintable(char)) {
|
|
28573
28894
|
return STYLE_DOUBLE;
|
|
28895
|
+
}
|
|
28574
28896
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
28575
28897
|
prevChar = char;
|
|
28576
28898
|
}
|
|
28577
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
28899
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
28578
28900
|
}
|
|
28579
28901
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
28580
|
-
if (plain && !forceQuotes && !testAmbiguousType(string))
|
|
28902
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
28581
28903
|
return STYLE_PLAIN;
|
|
28904
|
+
}
|
|
28582
28905
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
28583
28906
|
}
|
|
28584
|
-
if (indentPerLevel > 9 && needIndentIndicator(string))
|
|
28907
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
28585
28908
|
return STYLE_DOUBLE;
|
|
28586
|
-
|
|
28909
|
+
}
|
|
28910
|
+
if (!forceQuotes) {
|
|
28587
28911
|
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
28912
|
+
}
|
|
28588
28913
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
28589
28914
|
}
|
|
28590
28915
|
function writeScalar(state, string, level, iskey, inblock) {
|
|
28591
28916
|
state.dump = function() {
|
|
28592
|
-
if (string.length === 0)
|
|
28917
|
+
if (string.length === 0) {
|
|
28593
28918
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
28919
|
+
}
|
|
28594
28920
|
if (!state.noCompatMode) {
|
|
28595
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
|
|
28921
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
28596
28922
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
28923
|
+
}
|
|
28597
28924
|
}
|
|
28598
28925
|
const indent = state.indent * Math.max(1, level);
|
|
28599
28926
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
@@ -28611,9 +28938,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28611
28938
|
case STYLE_FOLDED:
|
|
28612
28939
|
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
28613
28940
|
case STYLE_DOUBLE:
|
|
28614
|
-
return '"' + escapeString(string
|
|
28941
|
+
return '"' + escapeString(string) + '"';
|
|
28615
28942
|
default:
|
|
28616
|
-
throw new
|
|
28943
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
28617
28944
|
}
|
|
28618
28945
|
}();
|
|
28619
28946
|
}
|
|
@@ -28621,9 +28948,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28621
28948
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
28622
28949
|
const clip = string[string.length - 1] === `
|
|
28623
28950
|
`;
|
|
28624
|
-
|
|
28951
|
+
const keep = clip && (string[string.length - 2] === `
|
|
28625
28952
|
` || string === `
|
|
28626
|
-
`)
|
|
28953
|
+
`);
|
|
28954
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
28955
|
+
return indentIndicator + chomp + `
|
|
28627
28956
|
`;
|
|
28628
28957
|
}
|
|
28629
28958
|
function dropEndingNewline(string) {
|
|
@@ -28675,11 +29004,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28675
29004
|
}
|
|
28676
29005
|
result += `
|
|
28677
29006
|
`;
|
|
28678
|
-
if (line.length - start > width && curr > start)
|
|
29007
|
+
if (line.length - start > width && curr > start) {
|
|
28679
29008
|
result += line.slice(start, curr) + `
|
|
28680
29009
|
` + line.slice(curr + 1);
|
|
28681
|
-
else
|
|
29010
|
+
} else {
|
|
28682
29011
|
result += line.slice(start);
|
|
29012
|
+
}
|
|
28683
29013
|
return result.slice(1);
|
|
28684
29014
|
}
|
|
28685
29015
|
function escapeString(string) {
|
|
@@ -28692,8 +29022,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28692
29022
|
result += string[i];
|
|
28693
29023
|
if (char >= 65536)
|
|
28694
29024
|
result += string[i + 1];
|
|
28695
|
-
} else
|
|
29025
|
+
} else {
|
|
28696
29026
|
result += escapeSeq || encodeHex(char);
|
|
29027
|
+
}
|
|
28697
29028
|
}
|
|
28698
29029
|
return result;
|
|
28699
29030
|
}
|
|
@@ -28702,8 +29033,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28702
29033
|
const _tag = state.tag;
|
|
28703
29034
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
28704
29035
|
let value = object[index];
|
|
28705
|
-
if (state.replacer)
|
|
29036
|
+
if (state.replacer) {
|
|
28706
29037
|
value = state.replacer.call(object, String(index), value);
|
|
29038
|
+
}
|
|
28707
29039
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
28708
29040
|
if (_result !== "")
|
|
28709
29041
|
_result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -28718,15 +29050,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28718
29050
|
const _tag = state.tag;
|
|
28719
29051
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
28720
29052
|
let value = object[index];
|
|
28721
|
-
if (state.replacer)
|
|
29053
|
+
if (state.replacer) {
|
|
28722
29054
|
value = state.replacer.call(object, String(index), value);
|
|
29055
|
+
}
|
|
28723
29056
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
28724
|
-
if (!compact || _result !== "")
|
|
29057
|
+
if (!compact || _result !== "") {
|
|
28725
29058
|
_result += generateNextLine(state, level);
|
|
28726
|
-
|
|
29059
|
+
}
|
|
29060
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
28727
29061
|
_result += "-";
|
|
28728
|
-
else
|
|
29062
|
+
} else {
|
|
28729
29063
|
_result += "- ";
|
|
29064
|
+
}
|
|
28730
29065
|
_result += state.dump;
|
|
28731
29066
|
}
|
|
28732
29067
|
}
|
|
@@ -28745,15 +29080,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28745
29080
|
pairBuffer += '"';
|
|
28746
29081
|
const objectKey = objectKeyList[index];
|
|
28747
29082
|
let objectValue = object[objectKey];
|
|
28748
|
-
if (state.replacer)
|
|
29083
|
+
if (state.replacer) {
|
|
28749
29084
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
28750
|
-
|
|
29085
|
+
}
|
|
29086
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
28751
29087
|
continue;
|
|
29088
|
+
}
|
|
28752
29089
|
if (state.dump.length > 1024)
|
|
28753
29090
|
pairBuffer += "? ";
|
|
28754
29091
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
28755
|
-
if (!writeNode(state, level, objectValue, false, false))
|
|
29092
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
28756
29093
|
continue;
|
|
29094
|
+
}
|
|
28757
29095
|
pairBuffer += state.dump;
|
|
28758
29096
|
_result += pairBuffer;
|
|
28759
29097
|
}
|
|
@@ -28764,37 +29102,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28764
29102
|
let _result = "";
|
|
28765
29103
|
const _tag = state.tag;
|
|
28766
29104
|
const objectKeyList = Object.keys(object);
|
|
28767
|
-
if (state.sortKeys === true)
|
|
29105
|
+
if (state.sortKeys === true) {
|
|
28768
29106
|
objectKeyList.sort();
|
|
28769
|
-
else if (typeof state.sortKeys === "function")
|
|
29107
|
+
} else if (typeof state.sortKeys === "function") {
|
|
28770
29108
|
objectKeyList.sort(state.sortKeys);
|
|
28771
|
-
else if (state.sortKeys)
|
|
28772
|
-
throw new
|
|
29109
|
+
} else if (state.sortKeys) {
|
|
29110
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
29111
|
+
}
|
|
28773
29112
|
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
28774
29113
|
let pairBuffer = "";
|
|
28775
|
-
if (!compact || _result !== "")
|
|
29114
|
+
if (!compact || _result !== "") {
|
|
28776
29115
|
pairBuffer += generateNextLine(state, level);
|
|
29116
|
+
}
|
|
28777
29117
|
const objectKey = objectKeyList[index];
|
|
28778
29118
|
let objectValue = object[objectKey];
|
|
28779
|
-
if (state.replacer)
|
|
29119
|
+
if (state.replacer) {
|
|
28780
29120
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
28781
|
-
|
|
29121
|
+
}
|
|
29122
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
28782
29123
|
continue;
|
|
29124
|
+
}
|
|
28783
29125
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
28784
|
-
if (explicitPair)
|
|
28785
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
|
|
29126
|
+
if (explicitPair) {
|
|
29127
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
28786
29128
|
pairBuffer += "?";
|
|
28787
|
-
else
|
|
29129
|
+
} else {
|
|
28788
29130
|
pairBuffer += "? ";
|
|
29131
|
+
}
|
|
29132
|
+
}
|
|
28789
29133
|
pairBuffer += state.dump;
|
|
28790
|
-
if (explicitPair)
|
|
29134
|
+
if (explicitPair) {
|
|
28791
29135
|
pairBuffer += generateNextLine(state, level);
|
|
28792
|
-
|
|
29136
|
+
}
|
|
29137
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
28793
29138
|
continue;
|
|
28794
|
-
|
|
29139
|
+
}
|
|
29140
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
28795
29141
|
pairBuffer += ":";
|
|
28796
|
-
else
|
|
29142
|
+
} else {
|
|
28797
29143
|
pairBuffer += ": ";
|
|
29144
|
+
}
|
|
28798
29145
|
pairBuffer += state.dump;
|
|
28799
29146
|
_result += pairBuffer;
|
|
28800
29147
|
}
|
|
@@ -28804,24 +29151,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28804
29151
|
function detectType(state, object, explicit) {
|
|
28805
29152
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
28806
29153
|
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
28807
|
-
const
|
|
28808
|
-
if ((
|
|
28809
|
-
if (explicit)
|
|
28810
|
-
if (
|
|
28811
|
-
state.tag =
|
|
28812
|
-
else
|
|
28813
|
-
state.tag =
|
|
28814
|
-
|
|
29154
|
+
const type2 = typeList[index];
|
|
29155
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
29156
|
+
if (explicit) {
|
|
29157
|
+
if (type2.multi && type2.representName) {
|
|
29158
|
+
state.tag = type2.representName(object);
|
|
29159
|
+
} else {
|
|
29160
|
+
state.tag = type2.tag;
|
|
29161
|
+
}
|
|
29162
|
+
} else {
|
|
28815
29163
|
state.tag = "?";
|
|
28816
|
-
|
|
28817
|
-
|
|
29164
|
+
}
|
|
29165
|
+
if (type2.represent) {
|
|
29166
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
28818
29167
|
let _result;
|
|
28819
|
-
if (_toString.call(
|
|
28820
|
-
_result =
|
|
28821
|
-
else if (_hasOwnProperty.call(
|
|
28822
|
-
_result =
|
|
28823
|
-
else
|
|
28824
|
-
throw new
|
|
29168
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
29169
|
+
_result = type2.represent(object, style);
|
|
29170
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
29171
|
+
_result = type2.represent[style](object, style);
|
|
29172
|
+
} else {
|
|
29173
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
29174
|
+
}
|
|
28825
29175
|
state.dump = _result;
|
|
28826
29176
|
}
|
|
28827
29177
|
return true;
|
|
@@ -28832,67 +29182,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28832
29182
|
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
28833
29183
|
state.tag = null;
|
|
28834
29184
|
state.dump = object;
|
|
28835
|
-
if (!detectType(state, object, false))
|
|
29185
|
+
if (!detectType(state, object, false)) {
|
|
28836
29186
|
detectType(state, object, true);
|
|
28837
|
-
|
|
29187
|
+
}
|
|
29188
|
+
const type2 = _toString.call(state.dump);
|
|
28838
29189
|
const inblock = block;
|
|
28839
|
-
if (block)
|
|
29190
|
+
if (block) {
|
|
28840
29191
|
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
28841
|
-
|
|
29192
|
+
}
|
|
29193
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
28842
29194
|
let duplicateIndex;
|
|
28843
29195
|
let duplicate;
|
|
28844
29196
|
if (objectOrArray) {
|
|
28845
29197
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
28846
29198
|
duplicate = duplicateIndex !== -1;
|
|
28847
29199
|
}
|
|
28848
|
-
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
|
|
29200
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
28849
29201
|
compact = false;
|
|
28850
|
-
|
|
29202
|
+
}
|
|
29203
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
28851
29204
|
state.dump = "*ref_" + duplicateIndex;
|
|
28852
|
-
else {
|
|
28853
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
|
|
29205
|
+
} else {
|
|
29206
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
28854
29207
|
state.usedDuplicates[duplicateIndex] = true;
|
|
28855
|
-
|
|
29208
|
+
}
|
|
29209
|
+
if (type2 === "[object Object]") {
|
|
28856
29210
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
28857
29211
|
writeBlockMapping(state, level, state.dump, compact);
|
|
28858
|
-
if (duplicate)
|
|
29212
|
+
if (duplicate) {
|
|
28859
29213
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
29214
|
+
}
|
|
28860
29215
|
} else {
|
|
28861
29216
|
writeFlowMapping(state, level, state.dump);
|
|
28862
|
-
if (duplicate)
|
|
29217
|
+
if (duplicate) {
|
|
28863
29218
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
29219
|
+
}
|
|
28864
29220
|
}
|
|
28865
|
-
else if (
|
|
29221
|
+
} else if (type2 === "[object Array]") {
|
|
28866
29222
|
if (block && state.dump.length !== 0) {
|
|
28867
|
-
if (state.noArrayIndent && !isblockseq && level > 0)
|
|
29223
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
28868
29224
|
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
28869
|
-
else
|
|
29225
|
+
} else {
|
|
28870
29226
|
writeBlockSequence(state, level, state.dump, compact);
|
|
28871
|
-
|
|
29227
|
+
}
|
|
29228
|
+
if (duplicate) {
|
|
28872
29229
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
29230
|
+
}
|
|
28873
29231
|
} else {
|
|
28874
29232
|
writeFlowSequence(state, level, state.dump);
|
|
28875
|
-
if (duplicate)
|
|
29233
|
+
if (duplicate) {
|
|
28876
29234
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
29235
|
+
}
|
|
28877
29236
|
}
|
|
28878
|
-
else if (
|
|
28879
|
-
if (state.tag !== "?")
|
|
29237
|
+
} else if (type2 === "[object String]") {
|
|
29238
|
+
if (state.tag !== "?") {
|
|
28880
29239
|
writeScalar(state, state.dump, level, iskey, inblock);
|
|
28881
|
-
|
|
29240
|
+
}
|
|
29241
|
+
} else if (type2 === "[object Undefined]") {
|
|
28882
29242
|
return false;
|
|
28883
|
-
else {
|
|
29243
|
+
} else {
|
|
28884
29244
|
if (state.skipInvalid)
|
|
28885
29245
|
return false;
|
|
28886
|
-
throw new
|
|
29246
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
28887
29247
|
}
|
|
28888
29248
|
if (state.tag !== null && state.tag !== "?") {
|
|
28889
29249
|
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
28890
|
-
if (state.tag[0] === "!")
|
|
29250
|
+
if (state.tag[0] === "!") {
|
|
28891
29251
|
tagStr = "!" + tagStr;
|
|
28892
|
-
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
|
|
29252
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
28893
29253
|
tagStr = "!!" + tagStr.slice(18);
|
|
28894
|
-
else
|
|
29254
|
+
} else {
|
|
28895
29255
|
tagStr = "!<" + tagStr + ">";
|
|
29256
|
+
}
|
|
28896
29257
|
state.dump = tagStr + " " + state.dump;
|
|
28897
29258
|
}
|
|
28898
29259
|
}
|
|
@@ -28903,83 +29264,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28903
29264
|
const duplicatesIndexes = [];
|
|
28904
29265
|
inspectNode(object, objects, duplicatesIndexes);
|
|
28905
29266
|
const length = duplicatesIndexes.length;
|
|
28906
|
-
for (let index = 0;index < length; index += 1)
|
|
29267
|
+
for (let index = 0;index < length; index += 1) {
|
|
28907
29268
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
29269
|
+
}
|
|
28908
29270
|
state.usedDuplicates = new Array(length);
|
|
28909
29271
|
}
|
|
28910
29272
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
28911
29273
|
if (object !== null && typeof object === "object") {
|
|
28912
29274
|
const index = objects.indexOf(object);
|
|
28913
29275
|
if (index !== -1) {
|
|
28914
|
-
if (duplicatesIndexes.indexOf(index) === -1)
|
|
29276
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
28915
29277
|
duplicatesIndexes.push(index);
|
|
29278
|
+
}
|
|
28916
29279
|
} else {
|
|
28917
29280
|
objects.push(object);
|
|
28918
|
-
if (Array.isArray(object))
|
|
28919
|
-
for (let i = 0, length = object.length;i < length; i += 1)
|
|
29281
|
+
if (Array.isArray(object)) {
|
|
29282
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
28920
29283
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
28921
|
-
|
|
29284
|
+
}
|
|
29285
|
+
} else {
|
|
28922
29286
|
const objectKeyList = Object.keys(object);
|
|
28923
|
-
for (let i = 0, length = objectKeyList.length;i < length; i += 1)
|
|
29287
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
28924
29288
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
29289
|
+
}
|
|
28925
29290
|
}
|
|
28926
29291
|
}
|
|
28927
29292
|
}
|
|
28928
29293
|
}
|
|
28929
|
-
function
|
|
29294
|
+
function dump2(input, options) {
|
|
28930
29295
|
options = options || {};
|
|
28931
29296
|
const state = new State(options);
|
|
28932
29297
|
if (!state.noRefs)
|
|
28933
29298
|
getDuplicateReferences(input, state);
|
|
28934
29299
|
let value = input;
|
|
28935
|
-
if (state.replacer)
|
|
29300
|
+
if (state.replacer) {
|
|
28936
29301
|
value = state.replacer.call({ "": value }, "", value);
|
|
29302
|
+
}
|
|
28937
29303
|
if (writeNode(state, 0, value, true, true))
|
|
28938
29304
|
return state.dump + `
|
|
28939
29305
|
`;
|
|
28940
29306
|
return "";
|
|
28941
29307
|
}
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
29308
|
+
dumper.dump = dump2;
|
|
29309
|
+
return dumper;
|
|
29310
|
+
}
|
|
29311
|
+
var hasRequiredJsYaml;
|
|
29312
|
+
function requireJsYaml() {
|
|
29313
|
+
if (hasRequiredJsYaml)
|
|
29314
|
+
return jsYaml;
|
|
29315
|
+
hasRequiredJsYaml = 1;
|
|
29316
|
+
const loader2 = requireLoader();
|
|
29317
|
+
const dumper2 = requireDumper();
|
|
28947
29318
|
function renamed(from, to) {
|
|
28948
29319
|
return function() {
|
|
28949
29320
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
28950
29321
|
};
|
|
28951
29322
|
}
|
|
28952
|
-
|
|
28953
|
-
|
|
28954
|
-
|
|
28955
|
-
|
|
28956
|
-
|
|
28957
|
-
|
|
28958
|
-
|
|
28959
|
-
|
|
28960
|
-
|
|
28961
|
-
|
|
28962
|
-
|
|
28963
|
-
binary:
|
|
28964
|
-
float:
|
|
28965
|
-
map:
|
|
29323
|
+
jsYaml.Type = requireType();
|
|
29324
|
+
jsYaml.Schema = requireSchema();
|
|
29325
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
29326
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
29327
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
29328
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
29329
|
+
jsYaml.load = loader2.load;
|
|
29330
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
29331
|
+
jsYaml.dump = dumper2.dump;
|
|
29332
|
+
jsYaml.YAMLException = requireException();
|
|
29333
|
+
jsYaml.types = {
|
|
29334
|
+
binary: requireBinary(),
|
|
29335
|
+
float: requireFloat(),
|
|
29336
|
+
map: requireMap(),
|
|
28966
29337
|
null: require_null(),
|
|
28967
|
-
pairs:
|
|
28968
|
-
set:
|
|
28969
|
-
timestamp:
|
|
28970
|
-
bool:
|
|
28971
|
-
int:
|
|
28972
|
-
merge:
|
|
28973
|
-
omap:
|
|
28974
|
-
seq:
|
|
28975
|
-
str:
|
|
29338
|
+
pairs: requirePairs(),
|
|
29339
|
+
set: requireSet(),
|
|
29340
|
+
timestamp: requireTimestamp(),
|
|
29341
|
+
bool: requireBool(),
|
|
29342
|
+
int: requireInt(),
|
|
29343
|
+
merge: requireMerge(),
|
|
29344
|
+
omap: requireOmap(),
|
|
29345
|
+
seq: requireSeq(),
|
|
29346
|
+
str: requireStr()
|
|
28976
29347
|
};
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
28981
|
-
|
|
28982
|
-
var
|
|
29348
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
29349
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
29350
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
29351
|
+
return jsYaml;
|
|
29352
|
+
}
|
|
29353
|
+
var jsYamlExports = requireJsYaml();
|
|
29354
|
+
var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
29355
|
+
var {
|
|
29356
|
+
Type,
|
|
29357
|
+
Schema,
|
|
29358
|
+
FAILSAFE_SCHEMA,
|
|
29359
|
+
JSON_SCHEMA,
|
|
29360
|
+
CORE_SCHEMA,
|
|
29361
|
+
DEFAULT_SCHEMA,
|
|
29362
|
+
load,
|
|
29363
|
+
loadAll,
|
|
29364
|
+
dump,
|
|
29365
|
+
YAMLException,
|
|
29366
|
+
types,
|
|
29367
|
+
safeLoad,
|
|
29368
|
+
safeLoadAll,
|
|
29369
|
+
safeDump
|
|
29370
|
+
} = yaml;
|
|
28983
29371
|
|
|
28984
29372
|
// ../../common/src/logger.ts
|
|
28985
29373
|
init_src();
|
|
@@ -29056,11 +29444,11 @@ class SimpleLogger {
|
|
|
29056
29444
|
const path3 = this.logFilePath || getGlobalLogFilePath();
|
|
29057
29445
|
if (!path3)
|
|
29058
29446
|
return;
|
|
29059
|
-
const
|
|
29447
|
+
const timestamp2 = new Date().toISOString();
|
|
29060
29448
|
this.pendingWrites = Promise.all([
|
|
29061
29449
|
this.pendingWrites,
|
|
29062
29450
|
this.pendingInit
|
|
29063
|
-
]).then(() => getFileSystem().appendFile(path3, `${
|
|
29451
|
+
]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
|
|
29064
29452
|
}
|
|
29065
29453
|
debug(message, ...args) {
|
|
29066
29454
|
if (this.level > 0 /* DEBUG */)
|
|
@@ -29176,6 +29564,7 @@ function getLogFilePath() {
|
|
|
29176
29564
|
// ../../common/src/output-format-context.ts
|
|
29177
29565
|
var formatSlot = singleton("OutputFormat");
|
|
29178
29566
|
var formatExplicitSlot = singleton("OutputFormatExplicit");
|
|
29567
|
+
var helpRequestedSlot = singleton("HelpRequested");
|
|
29179
29568
|
var filterSlot = singleton("OutputFilter");
|
|
29180
29569
|
function getOutputFormat() {
|
|
29181
29570
|
return formatSlot.get("json");
|
|
@@ -29453,10 +29842,10 @@ class LoggerTelemetryProvider {
|
|
|
29453
29842
|
success
|
|
29454
29843
|
})));
|
|
29455
29844
|
}
|
|
29456
|
-
async trackDependency(name,
|
|
29845
|
+
async trackDependency(name, type2, duration, success, properties) {
|
|
29457
29846
|
logger.debug(formatMessage("Dependency", name, this.enrich({
|
|
29458
29847
|
...properties,
|
|
29459
|
-
type,
|
|
29848
|
+
type: type2,
|
|
29460
29849
|
duration: `${duration}ms`,
|
|
29461
29850
|
success
|
|
29462
29851
|
})));
|
|
@@ -29614,11 +30003,36 @@ class NodeContextStorage {
|
|
|
29614
30003
|
return this.storage.getStore();
|
|
29615
30004
|
}
|
|
29616
30005
|
}
|
|
30006
|
+
// ../../common/src/telemetry/trace-context.ts
|
|
30007
|
+
var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
|
|
30008
|
+
var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
|
|
30009
|
+
function getProcessEnv() {
|
|
30010
|
+
return globalThis.process?.env;
|
|
30011
|
+
}
|
|
30012
|
+
function parseInboundTraceparent(value) {
|
|
30013
|
+
if (!value) {
|
|
30014
|
+
return;
|
|
30015
|
+
}
|
|
30016
|
+
const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
|
|
30017
|
+
if (!match) {
|
|
30018
|
+
return;
|
|
30019
|
+
}
|
|
30020
|
+
const [, traceId, parentSpanId] = match;
|
|
30021
|
+
if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
|
|
30022
|
+
return;
|
|
30023
|
+
}
|
|
30024
|
+
return { traceId, parentSpanId };
|
|
30025
|
+
}
|
|
30026
|
+
function getInboundTraceContext() {
|
|
30027
|
+
return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
|
|
30028
|
+
}
|
|
30029
|
+
|
|
29617
30030
|
// ../../common/src/telemetry/session-id.ts
|
|
29618
30031
|
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
29619
30032
|
var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
|
|
29620
30033
|
var telemetrySessionIdSlot = singleton("TelemetrySessionId");
|
|
29621
|
-
|
|
30034
|
+
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
30035
|
+
function getProcessEnv2() {
|
|
29622
30036
|
return globalThis.process?.env;
|
|
29623
30037
|
}
|
|
29624
30038
|
function normalizeSessionId(value) {
|
|
@@ -29629,12 +30043,159 @@ function normalizeSessionId(value) {
|
|
|
29629
30043
|
return trimmed || undefined;
|
|
29630
30044
|
}
|
|
29631
30045
|
function getConfiguredTelemetrySessionId() {
|
|
29632
|
-
return normalizeSessionId(
|
|
30046
|
+
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
29633
30047
|
}
|
|
29634
30048
|
function resolveTelemetrySessionId(existingSessionId) {
|
|
29635
30049
|
return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
|
|
29636
30050
|
}
|
|
30051
|
+
function getTelemetryOperationId() {
|
|
30052
|
+
const existing = telemetryOperationIdSlot.get();
|
|
30053
|
+
if (existing) {
|
|
30054
|
+
return existing;
|
|
30055
|
+
}
|
|
30056
|
+
const inboundTraceId = getInboundTraceContext()?.traceId;
|
|
30057
|
+
const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
|
|
30058
|
+
telemetryOperationIdSlot.set(generated);
|
|
30059
|
+
return generated;
|
|
30060
|
+
}
|
|
30061
|
+
// ../../common/src/telemetry/pii-redactor.ts
|
|
30062
|
+
var REDACTED = "[REDACTED]";
|
|
30063
|
+
var MAX_VALUE_LENGTH = 200;
|
|
30064
|
+
var SENSITIVE_NAME_TOKENS = new Set([
|
|
30065
|
+
"token",
|
|
30066
|
+
"tokens",
|
|
30067
|
+
"secret",
|
|
30068
|
+
"secrets",
|
|
30069
|
+
"password",
|
|
30070
|
+
"passwords",
|
|
30071
|
+
"pwd",
|
|
30072
|
+
"credential",
|
|
30073
|
+
"credentials",
|
|
30074
|
+
"auth",
|
|
30075
|
+
"authentication",
|
|
30076
|
+
"authorization",
|
|
30077
|
+
"authority",
|
|
30078
|
+
"cert",
|
|
30079
|
+
"certificate",
|
|
30080
|
+
"certificates"
|
|
30081
|
+
]);
|
|
30082
|
+
var SENSITIVE_KEY_PREFIXES = new Set([
|
|
30083
|
+
"api",
|
|
30084
|
+
"access",
|
|
30085
|
+
"client",
|
|
30086
|
+
"private",
|
|
30087
|
+
"public",
|
|
30088
|
+
"signing",
|
|
30089
|
+
"encryption",
|
|
30090
|
+
"session",
|
|
30091
|
+
"master",
|
|
30092
|
+
"shared",
|
|
30093
|
+
"root",
|
|
30094
|
+
"ssh",
|
|
30095
|
+
"rsa",
|
|
30096
|
+
"aes",
|
|
30097
|
+
"hmac",
|
|
30098
|
+
"oauth"
|
|
30099
|
+
]);
|
|
30100
|
+
var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
|
|
30101
|
+
var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
30102
|
+
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
30103
|
+
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
30104
|
+
var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
|
|
30105
|
+
var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
|
|
30106
|
+
var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
|
|
30107
|
+
function shortHash(input) {
|
|
30108
|
+
let hash = 2166136261;
|
|
30109
|
+
for (let i = 0;i < input.length; i++) {
|
|
30110
|
+
hash ^= input.charCodeAt(i);
|
|
30111
|
+
hash = Math.imul(hash, 16777619);
|
|
30112
|
+
}
|
|
30113
|
+
return (hash >>> 0).toString(16).padStart(8, "0");
|
|
30114
|
+
}
|
|
30115
|
+
function redactUrl(raw) {
|
|
30116
|
+
try {
|
|
30117
|
+
const url = new URL(raw);
|
|
30118
|
+
return `${url.protocol}//${url.host}`;
|
|
30119
|
+
} catch {
|
|
30120
|
+
return `url#${shortHash(raw)}`;
|
|
30121
|
+
}
|
|
30122
|
+
}
|
|
30123
|
+
function redactValueDetectors(value) {
|
|
30124
|
+
let out = value;
|
|
30125
|
+
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
30126
|
+
out = out.replace(URL_PATTERN, (match) => {
|
|
30127
|
+
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
30128
|
+
const core2 = trailing ? match.slice(0, -trailing.length) : match;
|
|
30129
|
+
return `${redactUrl(core2)}${trailing}`;
|
|
30130
|
+
});
|
|
30131
|
+
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
30132
|
+
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
30133
|
+
out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
|
|
30134
|
+
out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
|
|
30135
|
+
if (out.length > MAX_VALUE_LENGTH) {
|
|
30136
|
+
out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
|
|
30137
|
+
}
|
|
30138
|
+
return out;
|
|
30139
|
+
}
|
|
30140
|
+
function redactValue(value) {
|
|
30141
|
+
return redactValueDetectors(value);
|
|
30142
|
+
}
|
|
30143
|
+
function redactError(error) {
|
|
30144
|
+
const safe = new Error(redactValueDetectors(error.message ?? ""));
|
|
30145
|
+
safe.name = error.name;
|
|
30146
|
+
safe.stack = typeof error.stack === "string" ? redactValueDetectors(error.stack) : undefined;
|
|
30147
|
+
return safe;
|
|
30148
|
+
}
|
|
30149
|
+
function nameTokens(name) {
|
|
30150
|
+
return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s._-]+/).map((t) => t.toLowerCase()).filter(Boolean);
|
|
30151
|
+
}
|
|
30152
|
+
function isSensitiveName(name) {
|
|
30153
|
+
const tokens = nameTokens(name);
|
|
30154
|
+
for (let i = 0;i < tokens.length; i++) {
|
|
30155
|
+
const token = tokens[i];
|
|
30156
|
+
if (SENSITIVE_NAME_TOKENS.has(token)) {
|
|
30157
|
+
return true;
|
|
30158
|
+
}
|
|
30159
|
+
if (token === "key" || token === "keys") {
|
|
30160
|
+
const prev = tokens[i - 1];
|
|
30161
|
+
if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
|
|
30162
|
+
return true;
|
|
30163
|
+
}
|
|
30164
|
+
}
|
|
30165
|
+
}
|
|
30166
|
+
return false;
|
|
30167
|
+
}
|
|
30168
|
+
function redactProperty(name, value) {
|
|
30169
|
+
if (value === undefined || value === null) {
|
|
30170
|
+
return;
|
|
30171
|
+
}
|
|
30172
|
+
if (isSensitiveName(name)) {
|
|
30173
|
+
return REDACTED;
|
|
30174
|
+
}
|
|
30175
|
+
if (typeof value === "boolean" || typeof value === "number") {
|
|
30176
|
+
return value;
|
|
30177
|
+
}
|
|
30178
|
+
if (typeof value !== "string") {
|
|
30179
|
+
return "[OBJECT]";
|
|
30180
|
+
}
|
|
30181
|
+
return redactValueDetectors(value);
|
|
30182
|
+
}
|
|
30183
|
+
function redactProperties(properties) {
|
|
30184
|
+
const out = {};
|
|
30185
|
+
for (const [name, value] of Object.entries(properties)) {
|
|
30186
|
+
const redacted = redactProperty(name, value);
|
|
30187
|
+
if (redacted !== undefined) {
|
|
30188
|
+
out[name] = redacted;
|
|
30189
|
+
}
|
|
30190
|
+
}
|
|
30191
|
+
return out;
|
|
30192
|
+
}
|
|
30193
|
+
|
|
29637
30194
|
// ../../common/src/telemetry/telemetry-service.ts
|
|
30195
|
+
var TELEMETRY_OPERATION_ID_PROPERTY = "uip.trace.operation_id";
|
|
30196
|
+
var TELEMETRY_PARENT_ID_PROPERTY = "uip.trace.parent_id";
|
|
30197
|
+
var TELEMETRY_SPAN_ID_PROPERTY = "uip.trace.span_id";
|
|
30198
|
+
|
|
29638
30199
|
class TelemetryService {
|
|
29639
30200
|
telemetryProvider;
|
|
29640
30201
|
contextStorage;
|
|
@@ -29661,11 +30222,15 @@ class TelemetryService {
|
|
|
29661
30222
|
trackException(error, properties) {
|
|
29662
30223
|
const context = this.getCurrentContext();
|
|
29663
30224
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
|
|
29664
|
-
this.telemetryProvider.trackException(error, enrichedProperties);
|
|
30225
|
+
this.telemetryProvider.trackException(redactError(error), enrichedProperties);
|
|
29665
30226
|
}
|
|
29666
30227
|
async trackRequest(name, fn, properties) {
|
|
30228
|
+
const parentContext = this.getCurrentContext();
|
|
30229
|
+
const operationId = parentContext?.operationId ?? this.operationId ?? getTelemetryOperationId();
|
|
30230
|
+
const parentId = parentContext ? parentContext.id : this.inboundParentIdFor(operationId);
|
|
29667
30231
|
const context = {
|
|
29668
|
-
operationId
|
|
30232
|
+
operationId,
|
|
30233
|
+
...parentId !== undefined ? { parentId } : {},
|
|
29669
30234
|
id: this.generateId()
|
|
29670
30235
|
};
|
|
29671
30236
|
const startTime = performance.now();
|
|
@@ -29683,7 +30248,46 @@ class TelemetryService {
|
|
|
29683
30248
|
throw error;
|
|
29684
30249
|
}
|
|
29685
30250
|
}
|
|
29686
|
-
|
|
30251
|
+
trackRequestResult(name, durationMs, success, properties, context) {
|
|
30252
|
+
const requestContext = context ?? {
|
|
30253
|
+
operationId: this.operationId ?? getTelemetryOperationId(),
|
|
30254
|
+
id: this.generateId()
|
|
30255
|
+
};
|
|
30256
|
+
const enrichedProperties = this.enrichPropertiesWithContext(properties, requestContext);
|
|
30257
|
+
this.telemetryProvider.trackRequest(name, durationMs, success, enrichedProperties);
|
|
30258
|
+
}
|
|
30259
|
+
createRequestContext() {
|
|
30260
|
+
const operationId = this.operationId ?? getTelemetryOperationId();
|
|
30261
|
+
const parentId = this.inboundParentIdFor(operationId);
|
|
30262
|
+
return {
|
|
30263
|
+
operationId,
|
|
30264
|
+
...parentId !== undefined ? { parentId } : {},
|
|
30265
|
+
id: this.generateId()
|
|
30266
|
+
};
|
|
30267
|
+
}
|
|
30268
|
+
inboundParentIdFor(operationId) {
|
|
30269
|
+
const inbound = getInboundTraceContext();
|
|
30270
|
+
return inbound && inbound.traceId === operationId ? inbound.parentSpanId : undefined;
|
|
30271
|
+
}
|
|
30272
|
+
runWithContext(context, fn) {
|
|
30273
|
+
return this.contextStorage.run(context, fn);
|
|
30274
|
+
}
|
|
30275
|
+
createDependencyContext() {
|
|
30276
|
+
const parentContext = this.getCurrentContext();
|
|
30277
|
+
if (!parentContext) {
|
|
30278
|
+
return;
|
|
30279
|
+
}
|
|
30280
|
+
return {
|
|
30281
|
+
operationId: parentContext.operationId,
|
|
30282
|
+
parentId: parentContext.id,
|
|
30283
|
+
id: this.generateId()
|
|
30284
|
+
};
|
|
30285
|
+
}
|
|
30286
|
+
trackDependencyResult(name, type2, durationMs, success, properties, context, resultCode) {
|
|
30287
|
+
const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
|
|
30288
|
+
this.telemetryProvider.trackDependency(redactValue(name), type2, durationMs, success, enrichedProperties, resultCode);
|
|
30289
|
+
}
|
|
30290
|
+
async trackDependencyOperation(name, type2, fn, properties) {
|
|
29687
30291
|
const parentContext = this.getCurrentContext();
|
|
29688
30292
|
if (!parentContext) {
|
|
29689
30293
|
throw new Error("trackDependencyOperation must be called within a trackRequest block.");
|
|
@@ -29698,13 +30302,13 @@ class TelemetryService {
|
|
|
29698
30302
|
const result = await this.contextStorage.run(childContext, fn);
|
|
29699
30303
|
const durationMs = performance.now() - startTime;
|
|
29700
30304
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
|
|
29701
|
-
await this.telemetryProvider.trackDependency(name,
|
|
30305
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
|
|
29702
30306
|
return result;
|
|
29703
30307
|
} catch (error) {
|
|
29704
30308
|
const durationMs = performance.now() - startTime;
|
|
29705
30309
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
29706
30310
|
const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
|
|
29707
|
-
await this.telemetryProvider.trackDependency(name,
|
|
30311
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
|
|
29708
30312
|
throw error;
|
|
29709
30313
|
}
|
|
29710
30314
|
}
|
|
@@ -29719,8 +30323,12 @@ class TelemetryService {
|
|
|
29719
30323
|
...getExecutionContextTelemetryProperties(),
|
|
29720
30324
|
...globalProperties,
|
|
29721
30325
|
...this.defaultProperties,
|
|
29722
|
-
...properties,
|
|
29723
|
-
...context
|
|
30326
|
+
...redactProperties(properties ?? {}),
|
|
30327
|
+
...context ? {
|
|
30328
|
+
[TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
|
|
30329
|
+
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
|
|
30330
|
+
[TELEMETRY_SPAN_ID_PROPERTY]: context.id
|
|
30331
|
+
} : {}
|
|
29724
30332
|
};
|
|
29725
30333
|
if (sessionId === undefined) {
|
|
29726
30334
|
delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
|
|
@@ -29730,7 +30338,16 @@ class TelemetryService {
|
|
|
29730
30338
|
return enriched;
|
|
29731
30339
|
}
|
|
29732
30340
|
generateId() {
|
|
29733
|
-
|
|
30341
|
+
const bytes = new Uint8Array(8);
|
|
30342
|
+
let hex = "";
|
|
30343
|
+
do {
|
|
30344
|
+
crypto.getRandomValues(bytes);
|
|
30345
|
+
hex = "";
|
|
30346
|
+
for (const byte of bytes) {
|
|
30347
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
30348
|
+
}
|
|
30349
|
+
} while (/^0+$/.test(hex));
|
|
30350
|
+
return hex;
|
|
29734
30351
|
}
|
|
29735
30352
|
}
|
|
29736
30353
|
// ../../common/src/telemetry/node-appinsights-telemetry-provider.ts
|
|
@@ -29911,8 +30528,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
|
29911
30528
|
}
|
|
29912
30529
|
switch (format) {
|
|
29913
30530
|
case "json": {
|
|
29914
|
-
const
|
|
29915
|
-
logFn(asciiSafe ? escapeNonAscii(
|
|
30531
|
+
const json2 = JSON.stringify(data, null, 2);
|
|
30532
|
+
logFn(asciiSafe ? escapeNonAscii(json2) : json2);
|
|
29916
30533
|
break;
|
|
29917
30534
|
}
|
|
29918
30535
|
case "yaml":
|
|
@@ -30237,6 +30854,9 @@ var OutputFormatter;
|
|
|
30237
30854
|
if (opts?.warning) {
|
|
30238
30855
|
data.Warning = opts.warning;
|
|
30239
30856
|
}
|
|
30857
|
+
if (opts?.pagination) {
|
|
30858
|
+
data.Pagination = opts.pagination;
|
|
30859
|
+
}
|
|
30240
30860
|
success(data);
|
|
30241
30861
|
}
|
|
30242
30862
|
OutputFormatter.emitList = emitList;
|
|
@@ -30245,8 +30865,8 @@ var OutputFormatter;
|
|
|
30245
30865
|
const sink = getOutputSink();
|
|
30246
30866
|
const normalized = toPascalCaseData(data);
|
|
30247
30867
|
if (format === "json") {
|
|
30248
|
-
const
|
|
30249
|
-
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(
|
|
30868
|
+
const json2 = JSON.stringify(normalized);
|
|
30869
|
+
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
30250
30870
|
sink.writeErr(`${safe}
|
|
30251
30871
|
`);
|
|
30252
30872
|
} else {
|
|
@@ -30429,134 +31049,11 @@ function buildCommandTelemetryAttribution(commandPath, skillSource) {
|
|
|
30429
31049
|
};
|
|
30430
31050
|
}
|
|
30431
31051
|
|
|
30432
|
-
// ../../common/src/telemetry/pii-redactor.ts
|
|
30433
|
-
var REDACTED = "[REDACTED]";
|
|
30434
|
-
var MAX_VALUE_LENGTH = 200;
|
|
30435
|
-
var SENSITIVE_NAME_TOKENS = new Set([
|
|
30436
|
-
"token",
|
|
30437
|
-
"tokens",
|
|
30438
|
-
"secret",
|
|
30439
|
-
"secrets",
|
|
30440
|
-
"password",
|
|
30441
|
-
"passwords",
|
|
30442
|
-
"pwd",
|
|
30443
|
-
"credential",
|
|
30444
|
-
"credentials",
|
|
30445
|
-
"auth",
|
|
30446
|
-
"authentication",
|
|
30447
|
-
"authorization",
|
|
30448
|
-
"authority",
|
|
30449
|
-
"cert",
|
|
30450
|
-
"certificate",
|
|
30451
|
-
"certificates"
|
|
30452
|
-
]);
|
|
30453
|
-
var SENSITIVE_KEY_PREFIXES = new Set([
|
|
30454
|
-
"api",
|
|
30455
|
-
"access",
|
|
30456
|
-
"client",
|
|
30457
|
-
"private",
|
|
30458
|
-
"public",
|
|
30459
|
-
"signing",
|
|
30460
|
-
"encryption",
|
|
30461
|
-
"session",
|
|
30462
|
-
"master",
|
|
30463
|
-
"shared",
|
|
30464
|
-
"root",
|
|
30465
|
-
"ssh",
|
|
30466
|
-
"rsa",
|
|
30467
|
-
"aes",
|
|
30468
|
-
"hmac",
|
|
30469
|
-
"oauth"
|
|
30470
|
-
]);
|
|
30471
|
-
var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
|
|
30472
|
-
var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
30473
|
-
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
30474
|
-
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
30475
|
-
var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
|
|
30476
|
-
var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
|
|
30477
|
-
var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
|
|
30478
|
-
function shortHash(input) {
|
|
30479
|
-
let hash = 2166136261;
|
|
30480
|
-
for (let i = 0;i < input.length; i++) {
|
|
30481
|
-
hash ^= input.charCodeAt(i);
|
|
30482
|
-
hash = Math.imul(hash, 16777619);
|
|
30483
|
-
}
|
|
30484
|
-
return (hash >>> 0).toString(16).padStart(8, "0");
|
|
30485
|
-
}
|
|
30486
|
-
function redactUrl(raw) {
|
|
30487
|
-
try {
|
|
30488
|
-
const url = new URL(raw);
|
|
30489
|
-
return `${url.protocol}//${url.host}`;
|
|
30490
|
-
} catch {
|
|
30491
|
-
return `url#${shortHash(raw)}`;
|
|
30492
|
-
}
|
|
30493
|
-
}
|
|
30494
|
-
function redactValueDetectors(value) {
|
|
30495
|
-
let out = value;
|
|
30496
|
-
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
30497
|
-
out = out.replace(URL_PATTERN, (match) => {
|
|
30498
|
-
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
30499
|
-
const core = trailing ? match.slice(0, -trailing.length) : match;
|
|
30500
|
-
return `${redactUrl(core)}${trailing}`;
|
|
30501
|
-
});
|
|
30502
|
-
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
30503
|
-
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
30504
|
-
out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
|
|
30505
|
-
out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
|
|
30506
|
-
if (out.length > MAX_VALUE_LENGTH) {
|
|
30507
|
-
out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
|
|
30508
|
-
}
|
|
30509
|
-
return out;
|
|
30510
|
-
}
|
|
30511
|
-
function nameTokens(name) {
|
|
30512
|
-
return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s_-]+/).map((t) => t.toLowerCase()).filter(Boolean);
|
|
30513
|
-
}
|
|
30514
|
-
function isSensitiveName(name) {
|
|
30515
|
-
const tokens = nameTokens(name);
|
|
30516
|
-
for (let i = 0;i < tokens.length; i++) {
|
|
30517
|
-
const token = tokens[i];
|
|
30518
|
-
if (SENSITIVE_NAME_TOKENS.has(token)) {
|
|
30519
|
-
return true;
|
|
30520
|
-
}
|
|
30521
|
-
if (token === "key" || token === "keys") {
|
|
30522
|
-
const prev = tokens[i - 1];
|
|
30523
|
-
if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
|
|
30524
|
-
return true;
|
|
30525
|
-
}
|
|
30526
|
-
}
|
|
30527
|
-
}
|
|
30528
|
-
return false;
|
|
30529
|
-
}
|
|
30530
|
-
function redactProperty(name, value) {
|
|
30531
|
-
if (value === undefined || value === null) {
|
|
30532
|
-
return;
|
|
30533
|
-
}
|
|
30534
|
-
if (isSensitiveName(name)) {
|
|
30535
|
-
return REDACTED;
|
|
30536
|
-
}
|
|
30537
|
-
if (typeof value === "boolean" || typeof value === "number") {
|
|
30538
|
-
return value;
|
|
30539
|
-
}
|
|
30540
|
-
if (typeof value !== "string") {
|
|
30541
|
-
return "[OBJECT]";
|
|
30542
|
-
}
|
|
30543
|
-
return redactValueDetectors(value);
|
|
30544
|
-
}
|
|
30545
|
-
function redactProperties(properties) {
|
|
30546
|
-
const out = {};
|
|
30547
|
-
for (const [name, value] of Object.entries(properties)) {
|
|
30548
|
-
const redacted = redactProperty(name, value);
|
|
30549
|
-
if (redacted !== undefined) {
|
|
30550
|
-
out[name] = redacted;
|
|
30551
|
-
}
|
|
30552
|
-
}
|
|
30553
|
-
return out;
|
|
30554
|
-
}
|
|
30555
|
-
|
|
30556
31052
|
// ../../common/src/trackedAction.ts
|
|
30557
31053
|
var pollSignalSlot = singleton("PollSignal");
|
|
30558
31054
|
var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
|
|
30559
31055
|
var retryHintValues = new Set(RETRY_HINTS);
|
|
31056
|
+
var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
|
|
30560
31057
|
var processContext = {
|
|
30561
31058
|
exit: (code) => {
|
|
30562
31059
|
process.exitCode = code;
|
|
@@ -30567,22 +31064,18 @@ var processContext = {
|
|
|
30567
31064
|
};
|
|
30568
31065
|
function extractCommandParams(cmd) {
|
|
30569
31066
|
const params = {};
|
|
31067
|
+
const add2 = (name, value) => {
|
|
31068
|
+
if (name && value !== undefined) {
|
|
31069
|
+
params[`${TELEMETRY_COMMAND_ARG_PREFIX}${name}`] = value;
|
|
31070
|
+
}
|
|
31071
|
+
};
|
|
30570
31072
|
const registered = cmd.registeredArguments ?? [];
|
|
30571
31073
|
const processed = cmd.processedArgs ?? [];
|
|
30572
31074
|
for (let i = 0;i < registered.length; i++) {
|
|
30573
|
-
|
|
30574
|
-
if (value === undefined) {
|
|
30575
|
-
continue;
|
|
30576
|
-
}
|
|
30577
|
-
const name = registered[i].name();
|
|
30578
|
-
if (name) {
|
|
30579
|
-
params[name] = value;
|
|
30580
|
-
}
|
|
31075
|
+
add2(registered[i].name(), processed[i]);
|
|
30581
31076
|
}
|
|
30582
31077
|
for (const [key, value] of Object.entries(cmd.opts())) {
|
|
30583
|
-
|
|
30584
|
-
params[key] = value;
|
|
30585
|
-
}
|
|
31078
|
+
add2(key, value);
|
|
30586
31079
|
}
|
|
30587
31080
|
return params;
|
|
30588
31081
|
}
|
|
@@ -30625,11 +31118,12 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
30625
31118
|
return this.action(async (...args) => {
|
|
30626
31119
|
const telemetryName = deriveCommandPath(command);
|
|
30627
31120
|
const props = typeof properties === "function" ? properties(...args) : properties;
|
|
31121
|
+
const requestContext = telemetry.createRequestContext();
|
|
30628
31122
|
const startTime = performance.now();
|
|
30629
31123
|
let errorMessage2;
|
|
30630
31124
|
let fallbackExitCode = EXIT_CODES.Success;
|
|
30631
31125
|
clearRecordedCommandFailureTelemetry();
|
|
30632
|
-
const [error] = await catchError2(fn(...args));
|
|
31126
|
+
const [error] = await catchError2(telemetry.runWithContext(requestContext, () => fn(...args)));
|
|
30633
31127
|
if (error) {
|
|
30634
31128
|
errorMessage2 = error instanceof Error ? error.message : String(error);
|
|
30635
31129
|
logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage2}`);
|
|
@@ -30665,16 +31159,21 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
30665
31159
|
recordedFailure,
|
|
30666
31160
|
pollSignal: context.pollSignal
|
|
30667
31161
|
});
|
|
30668
|
-
|
|
30669
|
-
|
|
31162
|
+
const commandParams = extractCommandParams(command);
|
|
31163
|
+
if (props) {
|
|
31164
|
+
for (const key of Object.keys(props)) {
|
|
31165
|
+
delete commandParams[`${TELEMETRY_COMMAND_ARG_PREFIX}${key}`];
|
|
31166
|
+
}
|
|
31167
|
+
}
|
|
31168
|
+
const baseProperties = redactProperties({
|
|
31169
|
+
...commandParams,
|
|
30670
31170
|
...props,
|
|
30671
31171
|
...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
|
|
30672
31172
|
command: "true",
|
|
30673
|
-
duration: String(durationMs),
|
|
30674
|
-
success: String(success),
|
|
30675
31173
|
...terminalTelemetry,
|
|
30676
31174
|
...errorMessage2 ? { errorMessage: errorMessage2 } : {}
|
|
30677
|
-
})
|
|
31175
|
+
});
|
|
31176
|
+
telemetry.trackRequestResult(telemetryName, durationMs, success, baseProperties, requestContext);
|
|
30678
31177
|
});
|
|
30679
31178
|
};
|
|
30680
31179
|
// ../../common/src/console-guard.ts
|
|
@@ -30684,6 +31183,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
|
|
|
30684
31183
|
var DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
|
|
30685
31184
|
// ../../common/src/interactivity-context.ts
|
|
30686
31185
|
var modeSlot = singleton("InteractivityMode");
|
|
31186
|
+
var interactiveFlagSlot = singleton("InteractiveFlag");
|
|
30687
31187
|
// ../../common/src/polling/types.ts
|
|
30688
31188
|
var PollOutcome = {
|
|
30689
31189
|
Completed: "completed",
|
|
@@ -30743,7 +31243,6 @@ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
|
30743
31243
|
// ../../common/src/tool-provider.ts
|
|
30744
31244
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
30745
31245
|
// src/commands/_shared.ts
|
|
30746
|
-
import { isIPv4 } from "node:net";
|
|
30747
31246
|
init_src();
|
|
30748
31247
|
var LOGIN_INSTRUCTIONS = "Ensure you are logged in with 'uip login' and have access to the Access Policy Management service.";
|
|
30749
31248
|
var NON_NEGATIVE_INTEGER_RE = /^\d+$/;
|
|
@@ -30844,6 +31343,11 @@ async function fetchCurrentIp(loginValidity) {
|
|
|
30844
31343
|
const ip = typeof candidate === "string" ? candidate : undefined;
|
|
30845
31344
|
return { body, ip };
|
|
30846
31345
|
}
|
|
31346
|
+
var IPV4_SEGMENT = "(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])";
|
|
31347
|
+
var IPV4_REGEX = new RegExp(`^(?:${IPV4_SEGMENT}\\.){3}${IPV4_SEGMENT}$`);
|
|
31348
|
+
function isIPv4(value) {
|
|
31349
|
+
return typeof value === "string" && IPV4_REGEX.test(value);
|
|
31350
|
+
}
|
|
30847
31351
|
function ipInCidr(ip, cidr) {
|
|
30848
31352
|
if (!isIPv4(ip))
|
|
30849
31353
|
return false;
|
|
@@ -31884,4 +32388,4 @@ program2.name(metadata.commandPrefix).description(metadata.description).version(
|
|
|
31884
32388
|
await registerCommands(program2);
|
|
31885
32389
|
program2.parse(process.argv);
|
|
31886
32390
|
|
|
31887
|
-
//# debugId=
|
|
32391
|
+
//# debugId=79A219CB2927992464756E2164756E21
|