@uipath/llmgw-tool 1.198.0-preview.85 → 1.198.0-preview.87
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/tool.js +1110 -736
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -4,7 +4,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@uipath/llmgw-tool",
|
|
6
6
|
license: "MIT",
|
|
7
|
-
version: "1.198.0-preview.
|
|
7
|
+
version: "1.198.0-preview.87",
|
|
8
8
|
description: "CLI plugin for UiPath AI Trust Layer Bring-Your-Own LLM connections.",
|
|
9
9
|
private: false,
|
|
10
10
|
repository: {
|
|
@@ -3246,31 +3246,17 @@ function search(data, expression, options) {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
|
|
3248
3248
|
// ../../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
var
|
|
3253
|
-
var
|
|
3254
|
-
var
|
|
3255
|
-
var
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
key = keys[i];
|
|
3261
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
3262
|
-
__defProp(to, key, {
|
|
3263
|
-
get: ((k) => from[k]).bind(null, key),
|
|
3264
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
3265
|
-
});
|
|
3266
|
-
}
|
|
3267
|
-
return to;
|
|
3268
|
-
};
|
|
3269
|
-
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", {
|
|
3270
|
-
value: mod2,
|
|
3271
|
-
enumerable: true
|
|
3272
|
-
}) : target, mod2));
|
|
3273
|
-
var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
3249
|
+
function getDefaultExportFromCjs(x) {
|
|
3250
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3251
|
+
}
|
|
3252
|
+
var jsYaml = {};
|
|
3253
|
+
var loader = {};
|
|
3254
|
+
var common = {};
|
|
3255
|
+
var hasRequiredCommon;
|
|
3256
|
+
function requireCommon() {
|
|
3257
|
+
if (hasRequiredCommon)
|
|
3258
|
+
return common;
|
|
3259
|
+
hasRequiredCommon = 1;
|
|
3274
3260
|
function isNothing(subject) {
|
|
3275
3261
|
return typeof subject === "undefined" || subject === null;
|
|
3276
3262
|
}
|
|
@@ -3296,55 +3282,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3296
3282
|
}
|
|
3297
3283
|
function repeat(string, count) {
|
|
3298
3284
|
let result = "";
|
|
3299
|
-
for (let cycle = 0;cycle < count; cycle += 1)
|
|
3285
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
3300
3286
|
result += string;
|
|
3287
|
+
}
|
|
3301
3288
|
return result;
|
|
3302
3289
|
}
|
|
3303
3290
|
function isNegativeZero(number) {
|
|
3304
3291
|
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
3305
3292
|
}
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3293
|
+
common.isNothing = isNothing;
|
|
3294
|
+
common.isObject = isObject2;
|
|
3295
|
+
common.toArray = toArray;
|
|
3296
|
+
common.repeat = repeat;
|
|
3297
|
+
common.isNegativeZero = isNegativeZero;
|
|
3298
|
+
common.extend = extend;
|
|
3299
|
+
return common;
|
|
3300
|
+
}
|
|
3301
|
+
var exception;
|
|
3302
|
+
var hasRequiredException;
|
|
3303
|
+
function requireException() {
|
|
3304
|
+
if (hasRequiredException)
|
|
3305
|
+
return exception;
|
|
3306
|
+
hasRequiredException = 1;
|
|
3307
|
+
function formatError(exception2, compact) {
|
|
3315
3308
|
let where = "";
|
|
3316
|
-
const message =
|
|
3317
|
-
if (!
|
|
3309
|
+
const message = exception2.reason || "(unknown reason)";
|
|
3310
|
+
if (!exception2.mark)
|
|
3318
3311
|
return message;
|
|
3319
|
-
if (
|
|
3320
|
-
where += 'in "' +
|
|
3321
|
-
|
|
3322
|
-
|
|
3312
|
+
if (exception2.mark.name) {
|
|
3313
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
3314
|
+
}
|
|
3315
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
3316
|
+
if (!compact && exception2.mark.snippet) {
|
|
3323
3317
|
where += `
|
|
3324
3318
|
|
|
3325
|
-
` +
|
|
3319
|
+
` + exception2.mark.snippet;
|
|
3320
|
+
}
|
|
3326
3321
|
return message + " " + where;
|
|
3327
3322
|
}
|
|
3328
|
-
function
|
|
3323
|
+
function YAMLException2(reason, mark) {
|
|
3329
3324
|
Error.call(this);
|
|
3330
3325
|
this.name = "YAMLException";
|
|
3331
3326
|
this.reason = reason;
|
|
3332
3327
|
this.mark = mark;
|
|
3333
3328
|
this.message = formatError(this, false);
|
|
3334
|
-
if (Error.captureStackTrace)
|
|
3329
|
+
if (Error.captureStackTrace) {
|
|
3335
3330
|
Error.captureStackTrace(this, this.constructor);
|
|
3336
|
-
else
|
|
3337
|
-
this.stack =
|
|
3331
|
+
} else {
|
|
3332
|
+
this.stack = new Error().stack || "";
|
|
3333
|
+
}
|
|
3338
3334
|
}
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3335
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
3336
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
3337
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
3342
3338
|
return this.name + ": " + formatError(this, compact);
|
|
3343
3339
|
};
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3340
|
+
exception = YAMLException2;
|
|
3341
|
+
return exception;
|
|
3342
|
+
}
|
|
3343
|
+
var snippet;
|
|
3344
|
+
var hasRequiredSnippet;
|
|
3345
|
+
function requireSnippet() {
|
|
3346
|
+
if (hasRequiredSnippet)
|
|
3347
|
+
return snippet;
|
|
3348
|
+
hasRequiredSnippet = 1;
|
|
3349
|
+
const common2 = requireCommon();
|
|
3348
3350
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
3349
3351
|
let head = "";
|
|
3350
3352
|
let tail = "";
|
|
@@ -3363,7 +3365,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3363
3365
|
};
|
|
3364
3366
|
}
|
|
3365
3367
|
function padStart(string, max) {
|
|
3366
|
-
return
|
|
3368
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
3367
3369
|
}
|
|
3368
3370
|
function makeSnippet(mark, options) {
|
|
3369
3371
|
options = Object.create(options || null);
|
|
@@ -3385,8 +3387,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3385
3387
|
while (match = re.exec(mark.buffer)) {
|
|
3386
3388
|
lineEnds.push(match.index);
|
|
3387
3389
|
lineStarts.push(match.index + match[0].length);
|
|
3388
|
-
if (mark.position <= match.index && foundLineNo < 0)
|
|
3390
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
3389
3391
|
foundLineNo = lineStarts.length - 2;
|
|
3392
|
+
}
|
|
3390
3393
|
}
|
|
3391
3394
|
if (foundLineNo < 0)
|
|
3392
3395
|
foundLineNo = lineStarts.length - 1;
|
|
@@ -3397,28 +3400,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3397
3400
|
if (foundLineNo - i < 0)
|
|
3398
3401
|
break;
|
|
3399
3402
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
3400
|
-
result =
|
|
3403
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
3401
3404
|
` + result;
|
|
3402
3405
|
}
|
|
3403
3406
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
3404
|
-
result +=
|
|
3407
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
3405
3408
|
`;
|
|
3406
|
-
result +=
|
|
3409
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
3407
3410
|
`;
|
|
3408
3411
|
for (let i = 1;i <= options.linesAfter; i++) {
|
|
3409
3412
|
if (foundLineNo + i >= lineEnds.length)
|
|
3410
3413
|
break;
|
|
3411
3414
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
3412
|
-
result +=
|
|
3415
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
3413
3416
|
`;
|
|
3414
3417
|
}
|
|
3415
3418
|
return result.replace(/\n$/, "");
|
|
3416
3419
|
}
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3420
|
+
snippet = makeSnippet;
|
|
3421
|
+
return snippet;
|
|
3422
|
+
}
|
|
3423
|
+
var type;
|
|
3424
|
+
var hasRequiredType;
|
|
3425
|
+
function requireType() {
|
|
3426
|
+
if (hasRequiredType)
|
|
3427
|
+
return type;
|
|
3428
|
+
hasRequiredType = 1;
|
|
3429
|
+
const YAMLException2 = requireException();
|
|
3430
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
3422
3431
|
"kind",
|
|
3423
3432
|
"multi",
|
|
3424
3433
|
"resolve",
|
|
@@ -3430,26 +3439,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3430
3439
|
"defaultStyle",
|
|
3431
3440
|
"styleAliases"
|
|
3432
3441
|
];
|
|
3433
|
-
|
|
3442
|
+
const YAML_NODE_KINDS = [
|
|
3434
3443
|
"scalar",
|
|
3435
3444
|
"sequence",
|
|
3436
3445
|
"mapping"
|
|
3437
3446
|
];
|
|
3438
|
-
function compileStyleAliases(
|
|
3447
|
+
function compileStyleAliases(map2) {
|
|
3439
3448
|
const result = {};
|
|
3440
|
-
if (
|
|
3441
|
-
Object.keys(
|
|
3442
|
-
|
|
3449
|
+
if (map2 !== null) {
|
|
3450
|
+
Object.keys(map2).forEach(function(style) {
|
|
3451
|
+
map2[style].forEach(function(alias) {
|
|
3443
3452
|
result[String(alias)] = style;
|
|
3444
3453
|
});
|
|
3445
3454
|
});
|
|
3455
|
+
}
|
|
3446
3456
|
return result;
|
|
3447
3457
|
}
|
|
3448
|
-
function
|
|
3458
|
+
function Type2(tag, options) {
|
|
3449
3459
|
options = options || {};
|
|
3450
3460
|
Object.keys(options).forEach(function(name) {
|
|
3451
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
|
|
3452
|
-
throw new
|
|
3461
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
3462
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
3463
|
+
}
|
|
3453
3464
|
});
|
|
3454
3465
|
this.options = options;
|
|
3455
3466
|
this.tag = tag;
|
|
@@ -3467,21 +3478,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3467
3478
|
this.defaultStyle = options["defaultStyle"] || null;
|
|
3468
3479
|
this.multi = options["multi"] || false;
|
|
3469
3480
|
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
3470
|
-
if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
|
|
3471
|
-
throw new
|
|
3481
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
3482
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
3483
|
+
}
|
|
3472
3484
|
}
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3485
|
+
type = Type2;
|
|
3486
|
+
return type;
|
|
3487
|
+
}
|
|
3488
|
+
var schema;
|
|
3489
|
+
var hasRequiredSchema;
|
|
3490
|
+
function requireSchema() {
|
|
3491
|
+
if (hasRequiredSchema)
|
|
3492
|
+
return schema;
|
|
3493
|
+
hasRequiredSchema = 1;
|
|
3494
|
+
const YAMLException2 = requireException();
|
|
3495
|
+
const Type2 = requireType();
|
|
3496
|
+
function compileList(schema2, name) {
|
|
3479
3497
|
const result = [];
|
|
3480
|
-
|
|
3498
|
+
schema2[name].forEach(function(currentType) {
|
|
3481
3499
|
let newIndex = result.length;
|
|
3482
3500
|
result.forEach(function(previousType, previousIndex) {
|
|
3483
|
-
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
|
|
3501
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
3484
3502
|
newIndex = previousIndex;
|
|
3503
|
+
}
|
|
3485
3504
|
});
|
|
3486
3505
|
result[newIndex] = currentType;
|
|
3487
3506
|
});
|
|
@@ -3500,47 +3519,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3500
3519
|
fallback: []
|
|
3501
3520
|
}
|
|
3502
3521
|
};
|
|
3503
|
-
function collectType(
|
|
3504
|
-
if (
|
|
3505
|
-
result.multi[
|
|
3506
|
-
result.multi["fallback"].push(
|
|
3507
|
-
} else
|
|
3508
|
-
result[
|
|
3522
|
+
function collectType(type2) {
|
|
3523
|
+
if (type2.multi) {
|
|
3524
|
+
result.multi[type2.kind].push(type2);
|
|
3525
|
+
result.multi["fallback"].push(type2);
|
|
3526
|
+
} else {
|
|
3527
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
3528
|
+
}
|
|
3509
3529
|
}
|
|
3510
|
-
for (let index = 0, length = arguments.length;index < length; index += 1)
|
|
3530
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
3511
3531
|
arguments[index].forEach(collectType);
|
|
3532
|
+
}
|
|
3512
3533
|
return result;
|
|
3513
3534
|
}
|
|
3514
|
-
function
|
|
3535
|
+
function Schema2(definition) {
|
|
3515
3536
|
return this.extend(definition);
|
|
3516
3537
|
}
|
|
3517
|
-
|
|
3538
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
3518
3539
|
let implicit = [];
|
|
3519
3540
|
let explicit = [];
|
|
3520
|
-
if (definition instanceof
|
|
3541
|
+
if (definition instanceof Type2) {
|
|
3521
3542
|
explicit.push(definition);
|
|
3522
|
-
else if (Array.isArray(definition))
|
|
3543
|
+
} else if (Array.isArray(definition)) {
|
|
3523
3544
|
explicit = explicit.concat(definition);
|
|
3524
|
-
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
3545
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
3525
3546
|
if (definition.implicit)
|
|
3526
3547
|
implicit = implicit.concat(definition.implicit);
|
|
3527
3548
|
if (definition.explicit)
|
|
3528
3549
|
explicit = explicit.concat(definition.explicit);
|
|
3529
|
-
} else
|
|
3530
|
-
throw new
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
if (
|
|
3537
|
-
throw new
|
|
3550
|
+
} else {
|
|
3551
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
3552
|
+
}
|
|
3553
|
+
implicit.forEach(function(type2) {
|
|
3554
|
+
if (!(type2 instanceof Type2)) {
|
|
3555
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
3556
|
+
}
|
|
3557
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
3558
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
3559
|
+
}
|
|
3560
|
+
if (type2.multi) {
|
|
3561
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
3562
|
+
}
|
|
3538
3563
|
});
|
|
3539
|
-
explicit.forEach(function(
|
|
3540
|
-
if (!(
|
|
3541
|
-
throw new
|
|
3564
|
+
explicit.forEach(function(type2) {
|
|
3565
|
+
if (!(type2 instanceof Type2)) {
|
|
3566
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
3567
|
+
}
|
|
3542
3568
|
});
|
|
3543
|
-
const result = Object.create(
|
|
3569
|
+
const result = Object.create(Schema2.prototype);
|
|
3544
3570
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
3545
3571
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
3546
3572
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -3548,41 +3574,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3548
3574
|
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
3549
3575
|
return result;
|
|
3550
3576
|
};
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3577
|
+
schema = Schema2;
|
|
3578
|
+
return schema;
|
|
3579
|
+
}
|
|
3580
|
+
var str;
|
|
3581
|
+
var hasRequiredStr;
|
|
3582
|
+
function requireStr() {
|
|
3583
|
+
if (hasRequiredStr)
|
|
3584
|
+
return str;
|
|
3585
|
+
hasRequiredStr = 1;
|
|
3586
|
+
const Type2 = requireType();
|
|
3587
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
3555
3588
|
kind: "scalar",
|
|
3556
3589
|
construct: function(data) {
|
|
3557
3590
|
return data !== null ? data : "";
|
|
3558
3591
|
}
|
|
3559
3592
|
});
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3593
|
+
return str;
|
|
3594
|
+
}
|
|
3595
|
+
var seq;
|
|
3596
|
+
var hasRequiredSeq;
|
|
3597
|
+
function requireSeq() {
|
|
3598
|
+
if (hasRequiredSeq)
|
|
3599
|
+
return seq;
|
|
3600
|
+
hasRequiredSeq = 1;
|
|
3601
|
+
const Type2 = requireType();
|
|
3602
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
3563
3603
|
kind: "sequence",
|
|
3564
3604
|
construct: function(data) {
|
|
3565
3605
|
return data !== null ? data : [];
|
|
3566
3606
|
}
|
|
3567
3607
|
});
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3608
|
+
return seq;
|
|
3609
|
+
}
|
|
3610
|
+
var map;
|
|
3611
|
+
var hasRequiredMap;
|
|
3612
|
+
function requireMap() {
|
|
3613
|
+
if (hasRequiredMap)
|
|
3614
|
+
return map;
|
|
3615
|
+
hasRequiredMap = 1;
|
|
3616
|
+
const Type2 = requireType();
|
|
3617
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
3571
3618
|
kind: "mapping",
|
|
3572
3619
|
construct: function(data) {
|
|
3573
3620
|
return data !== null ? data : {};
|
|
3574
3621
|
}
|
|
3575
3622
|
});
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3623
|
+
return map;
|
|
3624
|
+
}
|
|
3625
|
+
var failsafe;
|
|
3626
|
+
var hasRequiredFailsafe;
|
|
3627
|
+
function requireFailsafe() {
|
|
3628
|
+
if (hasRequiredFailsafe)
|
|
3629
|
+
return failsafe;
|
|
3630
|
+
hasRequiredFailsafe = 1;
|
|
3631
|
+
const Schema2 = requireSchema();
|
|
3632
|
+
failsafe = new Schema2({
|
|
3633
|
+
explicit: [
|
|
3634
|
+
requireStr(),
|
|
3635
|
+
requireSeq(),
|
|
3636
|
+
requireMap()
|
|
3637
|
+
]
|
|
3638
|
+
});
|
|
3639
|
+
return failsafe;
|
|
3640
|
+
}
|
|
3641
|
+
var _null;
|
|
3642
|
+
var hasRequired_null;
|
|
3643
|
+
function require_null() {
|
|
3644
|
+
if (hasRequired_null)
|
|
3645
|
+
return _null;
|
|
3646
|
+
hasRequired_null = 1;
|
|
3647
|
+
const Type2 = requireType();
|
|
3586
3648
|
function resolveYamlNull(data) {
|
|
3587
3649
|
if (data === null)
|
|
3588
3650
|
return true;
|
|
@@ -3595,7 +3657,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3595
3657
|
function isNull(object) {
|
|
3596
3658
|
return object === null;
|
|
3597
3659
|
}
|
|
3598
|
-
|
|
3660
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
3599
3661
|
kind: "scalar",
|
|
3600
3662
|
resolve: resolveYamlNull,
|
|
3601
3663
|
construct: constructYamlNull,
|
|
@@ -3619,9 +3681,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3619
3681
|
},
|
|
3620
3682
|
defaultStyle: "lowercase"
|
|
3621
3683
|
});
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3684
|
+
return _null;
|
|
3685
|
+
}
|
|
3686
|
+
var bool;
|
|
3687
|
+
var hasRequiredBool;
|
|
3688
|
+
function requireBool() {
|
|
3689
|
+
if (hasRequiredBool)
|
|
3690
|
+
return bool;
|
|
3691
|
+
hasRequiredBool = 1;
|
|
3692
|
+
const Type2 = requireType();
|
|
3625
3693
|
function resolveYamlBoolean(data) {
|
|
3626
3694
|
if (data === null)
|
|
3627
3695
|
return false;
|
|
@@ -3634,7 +3702,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3634
3702
|
function isBoolean(object) {
|
|
3635
3703
|
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
3636
3704
|
}
|
|
3637
|
-
|
|
3705
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
3638
3706
|
kind: "scalar",
|
|
3639
3707
|
resolve: resolveYamlBoolean,
|
|
3640
3708
|
construct: constructYamlBoolean,
|
|
@@ -3652,10 +3720,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3652
3720
|
},
|
|
3653
3721
|
defaultStyle: "lowercase"
|
|
3654
3722
|
});
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3723
|
+
return bool;
|
|
3724
|
+
}
|
|
3725
|
+
var int;
|
|
3726
|
+
var hasRequiredInt;
|
|
3727
|
+
function requireInt() {
|
|
3728
|
+
if (hasRequiredInt)
|
|
3729
|
+
return int;
|
|
3730
|
+
hasRequiredInt = 1;
|
|
3731
|
+
const common2 = requireCommon();
|
|
3732
|
+
const Type2 = requireType();
|
|
3659
3733
|
function isHexCode(c) {
|
|
3660
3734
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
3661
3735
|
}
|
|
@@ -3674,8 +3748,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3674
3748
|
if (!max)
|
|
3675
3749
|
return false;
|
|
3676
3750
|
let ch = data[index];
|
|
3677
|
-
if (ch === "-" || ch === "+")
|
|
3751
|
+
if (ch === "-" || ch === "+") {
|
|
3678
3752
|
ch = data[++index];
|
|
3753
|
+
}
|
|
3679
3754
|
if (ch === "0") {
|
|
3680
3755
|
if (index + 1 === max)
|
|
3681
3756
|
return true;
|
|
@@ -3688,7 +3763,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3688
3763
|
return false;
|
|
3689
3764
|
hasDigits = true;
|
|
3690
3765
|
}
|
|
3691
|
-
return hasDigits &&
|
|
3766
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
3692
3767
|
}
|
|
3693
3768
|
if (ch === "x") {
|
|
3694
3769
|
index++;
|
|
@@ -3697,7 +3772,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3697
3772
|
return false;
|
|
3698
3773
|
hasDigits = true;
|
|
3699
3774
|
}
|
|
3700
|
-
return hasDigits &&
|
|
3775
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
3701
3776
|
}
|
|
3702
3777
|
if (ch === "o") {
|
|
3703
3778
|
index++;
|
|
@@ -3706,17 +3781,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3706
3781
|
return false;
|
|
3707
3782
|
hasDigits = true;
|
|
3708
3783
|
}
|
|
3709
|
-
return hasDigits &&
|
|
3784
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
3710
3785
|
}
|
|
3711
3786
|
}
|
|
3712
3787
|
for (;index < max; index++) {
|
|
3713
|
-
if (!isDecCode(data.charCodeAt(index)))
|
|
3788
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
3714
3789
|
return false;
|
|
3790
|
+
}
|
|
3715
3791
|
hasDigits = true;
|
|
3716
3792
|
}
|
|
3717
3793
|
if (!hasDigits)
|
|
3718
3794
|
return false;
|
|
3719
|
-
return
|
|
3795
|
+
return isFinite(parseYamlInteger(data));
|
|
3720
3796
|
}
|
|
3721
3797
|
function parseYamlInteger(data) {
|
|
3722
3798
|
let value = data;
|
|
@@ -3744,9 +3820,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3744
3820
|
return parseYamlInteger(data);
|
|
3745
3821
|
}
|
|
3746
3822
|
function isInteger(object) {
|
|
3747
|
-
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !
|
|
3823
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
3748
3824
|
}
|
|
3749
|
-
|
|
3825
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
3750
3826
|
kind: "scalar",
|
|
3751
3827
|
resolve: resolveYamlInteger,
|
|
3752
3828
|
construct: constructYamlInteger,
|
|
@@ -3773,35 +3849,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3773
3849
|
hexadecimal: [16, "hex"]
|
|
3774
3850
|
}
|
|
3775
3851
|
});
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3852
|
+
return int;
|
|
3853
|
+
}
|
|
3854
|
+
var float;
|
|
3855
|
+
var hasRequiredFloat;
|
|
3856
|
+
function requireFloat() {
|
|
3857
|
+
if (hasRequiredFloat)
|
|
3858
|
+
return float;
|
|
3859
|
+
hasRequiredFloat = 1;
|
|
3860
|
+
const common2 = requireCommon();
|
|
3861
|
+
const Type2 = requireType();
|
|
3862
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
3863
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
3782
3864
|
function resolveYamlFloat(data) {
|
|
3783
3865
|
if (data === null)
|
|
3784
3866
|
return false;
|
|
3785
|
-
if (!YAML_FLOAT_PATTERN.test(data))
|
|
3867
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
3786
3868
|
return false;
|
|
3787
|
-
|
|
3869
|
+
}
|
|
3870
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
3788
3871
|
return true;
|
|
3872
|
+
}
|
|
3789
3873
|
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
3790
3874
|
}
|
|
3791
3875
|
function constructYamlFloat(data) {
|
|
3792
3876
|
let value = data.toLowerCase();
|
|
3793
3877
|
const sign = value[0] === "-" ? -1 : 1;
|
|
3794
|
-
if ("+-".indexOf(value[0]) >= 0)
|
|
3878
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
3795
3879
|
value = value.slice(1);
|
|
3796
|
-
|
|
3880
|
+
}
|
|
3881
|
+
if (value === ".inf") {
|
|
3797
3882
|
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
3798
|
-
else if (value === ".nan")
|
|
3883
|
+
} else if (value === ".nan") {
|
|
3799
3884
|
return NaN;
|
|
3885
|
+
}
|
|
3800
3886
|
return sign * parseFloat(value, 10);
|
|
3801
3887
|
}
|
|
3802
|
-
|
|
3888
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
3803
3889
|
function representYamlFloat(object, style) {
|
|
3804
|
-
if (isNaN(object))
|
|
3890
|
+
if (isNaN(object)) {
|
|
3805
3891
|
switch (style) {
|
|
3806
3892
|
case "lowercase":
|
|
3807
3893
|
return ".nan";
|
|
@@ -3810,7 +3896,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3810
3896
|
case "camelcase":
|
|
3811
3897
|
return ".NaN";
|
|
3812
3898
|
}
|
|
3813
|
-
else if (Number.POSITIVE_INFINITY === object)
|
|
3899
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
3814
3900
|
switch (style) {
|
|
3815
3901
|
case "lowercase":
|
|
3816
3902
|
return ".inf";
|
|
@@ -3819,7 +3905,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3819
3905
|
case "camelcase":
|
|
3820
3906
|
return ".Inf";
|
|
3821
3907
|
}
|
|
3822
|
-
else if (Number.NEGATIVE_INFINITY === object)
|
|
3908
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
3823
3909
|
switch (style) {
|
|
3824
3910
|
case "lowercase":
|
|
3825
3911
|
return "-.inf";
|
|
@@ -3828,15 +3914,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3828
3914
|
case "camelcase":
|
|
3829
3915
|
return "-.Inf";
|
|
3830
3916
|
}
|
|
3831
|
-
else if (
|
|
3917
|
+
} else if (common2.isNegativeZero(object)) {
|
|
3832
3918
|
return "-0.0";
|
|
3919
|
+
}
|
|
3833
3920
|
const res = object.toString(10);
|
|
3834
3921
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
3835
3922
|
}
|
|
3836
3923
|
function isFloat(object) {
|
|
3837
|
-
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 ||
|
|
3924
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
3838
3925
|
}
|
|
3839
|
-
|
|
3926
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
3840
3927
|
kind: "scalar",
|
|
3841
3928
|
resolve: resolveYamlFloat,
|
|
3842
3929
|
construct: constructYamlFloat,
|
|
@@ -3844,22 +3931,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3844
3931
|
represent: representYamlFloat,
|
|
3845
3932
|
defaultStyle: "lowercase"
|
|
3846
3933
|
});
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3934
|
+
return float;
|
|
3935
|
+
}
|
|
3936
|
+
var json;
|
|
3937
|
+
var hasRequiredJson;
|
|
3938
|
+
function requireJson() {
|
|
3939
|
+
if (hasRequiredJson)
|
|
3940
|
+
return json;
|
|
3941
|
+
hasRequiredJson = 1;
|
|
3942
|
+
json = requireFailsafe().extend({
|
|
3943
|
+
implicit: [
|
|
3944
|
+
require_null(),
|
|
3945
|
+
requireBool(),
|
|
3946
|
+
requireInt(),
|
|
3947
|
+
requireFloat()
|
|
3948
|
+
]
|
|
3949
|
+
});
|
|
3950
|
+
return json;
|
|
3951
|
+
}
|
|
3952
|
+
var core;
|
|
3953
|
+
var hasRequiredCore;
|
|
3954
|
+
function requireCore() {
|
|
3955
|
+
if (hasRequiredCore)
|
|
3956
|
+
return core;
|
|
3957
|
+
hasRequiredCore = 1;
|
|
3958
|
+
core = requireJson();
|
|
3959
|
+
return core;
|
|
3960
|
+
}
|
|
3961
|
+
var timestamp;
|
|
3962
|
+
var hasRequiredTimestamp;
|
|
3963
|
+
function requireTimestamp() {
|
|
3964
|
+
if (hasRequiredTimestamp)
|
|
3965
|
+
return timestamp;
|
|
3966
|
+
hasRequiredTimestamp = 1;
|
|
3967
|
+
const Type2 = requireType();
|
|
3968
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
3969
|
+
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]))?))?$");
|
|
3863
3970
|
function resolveYamlTimestamp(data) {
|
|
3864
3971
|
if (data === null)
|
|
3865
3972
|
return false;
|
|
@@ -3880,15 +3987,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3880
3987
|
const year = +match[1];
|
|
3881
3988
|
const month = +match[2] - 1;
|
|
3882
3989
|
const day = +match[3];
|
|
3883
|
-
if (!match[4])
|
|
3990
|
+
if (!match[4]) {
|
|
3884
3991
|
return new Date(Date.UTC(year, month, day));
|
|
3992
|
+
}
|
|
3885
3993
|
const hour = +match[4];
|
|
3886
3994
|
const minute = +match[5];
|
|
3887
3995
|
const second = +match[6];
|
|
3888
3996
|
if (match[7]) {
|
|
3889
3997
|
fraction = match[7].slice(0, 3);
|
|
3890
|
-
while (fraction.length < 3)
|
|
3998
|
+
while (fraction.length < 3) {
|
|
3891
3999
|
fraction += "0";
|
|
4000
|
+
}
|
|
3892
4001
|
fraction = +fraction;
|
|
3893
4002
|
}
|
|
3894
4003
|
if (match[9]) {
|
|
@@ -3906,36 +4015,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3906
4015
|
function representYamlTimestamp(object) {
|
|
3907
4016
|
return object.toISOString();
|
|
3908
4017
|
}
|
|
3909
|
-
|
|
4018
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
3910
4019
|
kind: "scalar",
|
|
3911
4020
|
resolve: resolveYamlTimestamp,
|
|
3912
4021
|
construct: constructYamlTimestamp,
|
|
3913
4022
|
instanceOf: Date,
|
|
3914
4023
|
represent: representYamlTimestamp
|
|
3915
4024
|
});
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
4025
|
+
return timestamp;
|
|
4026
|
+
}
|
|
4027
|
+
var merge;
|
|
4028
|
+
var hasRequiredMerge;
|
|
4029
|
+
function requireMerge() {
|
|
4030
|
+
if (hasRequiredMerge)
|
|
4031
|
+
return merge;
|
|
4032
|
+
hasRequiredMerge = 1;
|
|
4033
|
+
const Type2 = requireType();
|
|
3919
4034
|
function resolveYamlMerge(data) {
|
|
3920
4035
|
return data === "<<" || data === null;
|
|
3921
4036
|
}
|
|
3922
|
-
|
|
4037
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
3923
4038
|
kind: "scalar",
|
|
3924
4039
|
resolve: resolveYamlMerge
|
|
3925
4040
|
});
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
4041
|
+
return merge;
|
|
4042
|
+
}
|
|
4043
|
+
var binary;
|
|
4044
|
+
var hasRequiredBinary;
|
|
4045
|
+
function requireBinary() {
|
|
4046
|
+
if (hasRequiredBinary)
|
|
4047
|
+
return binary;
|
|
4048
|
+
hasRequiredBinary = 1;
|
|
4049
|
+
const Type2 = requireType();
|
|
4050
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
3930
4051
|
\r`;
|
|
3931
4052
|
function resolveYamlBinary(data) {
|
|
3932
4053
|
if (data === null)
|
|
3933
4054
|
return false;
|
|
3934
4055
|
let bitlen = 0;
|
|
3935
4056
|
const max = data.length;
|
|
3936
|
-
const
|
|
4057
|
+
const map2 = BASE64_MAP;
|
|
3937
4058
|
for (let idx = 0;idx < max; idx++) {
|
|
3938
|
-
const code =
|
|
4059
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
3939
4060
|
if (code > 64)
|
|
3940
4061
|
continue;
|
|
3941
4062
|
if (code < 0)
|
|
@@ -3947,7 +4068,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3947
4068
|
function constructYamlBinary(data) {
|
|
3948
4069
|
const input = data.replace(/[\r\n=]/g, "");
|
|
3949
4070
|
const max = input.length;
|
|
3950
|
-
const
|
|
4071
|
+
const map2 = BASE64_MAP;
|
|
3951
4072
|
let bits = 0;
|
|
3952
4073
|
const result = [];
|
|
3953
4074
|
for (let idx = 0;idx < max; idx++) {
|
|
@@ -3956,7 +4077,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3956
4077
|
result.push(bits >> 8 & 255);
|
|
3957
4078
|
result.push(bits & 255);
|
|
3958
4079
|
}
|
|
3959
|
-
bits = bits << 6 |
|
|
4080
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
3960
4081
|
}
|
|
3961
4082
|
const tailbits = max % 4 * 6;
|
|
3962
4083
|
if (tailbits === 0) {
|
|
@@ -3966,58 +4087,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
3966
4087
|
} else if (tailbits === 18) {
|
|
3967
4088
|
result.push(bits >> 10 & 255);
|
|
3968
4089
|
result.push(bits >> 2 & 255);
|
|
3969
|
-
} else if (tailbits === 12)
|
|
4090
|
+
} else if (tailbits === 12) {
|
|
3970
4091
|
result.push(bits >> 4 & 255);
|
|
4092
|
+
}
|
|
3971
4093
|
return new Uint8Array(result);
|
|
3972
4094
|
}
|
|
3973
4095
|
function representYamlBinary(object) {
|
|
3974
4096
|
let result = "";
|
|
3975
4097
|
let bits = 0;
|
|
3976
4098
|
const max = object.length;
|
|
3977
|
-
const
|
|
4099
|
+
const map2 = BASE64_MAP;
|
|
3978
4100
|
for (let idx = 0;idx < max; idx++) {
|
|
3979
4101
|
if (idx % 3 === 0 && idx) {
|
|
3980
|
-
result +=
|
|
3981
|
-
result +=
|
|
3982
|
-
result +=
|
|
3983
|
-
result +=
|
|
4102
|
+
result += map2[bits >> 18 & 63];
|
|
4103
|
+
result += map2[bits >> 12 & 63];
|
|
4104
|
+
result += map2[bits >> 6 & 63];
|
|
4105
|
+
result += map2[bits & 63];
|
|
3984
4106
|
}
|
|
3985
4107
|
bits = (bits << 8) + object[idx];
|
|
3986
4108
|
}
|
|
3987
4109
|
const tail = max % 3;
|
|
3988
4110
|
if (tail === 0) {
|
|
3989
|
-
result +=
|
|
3990
|
-
result +=
|
|
3991
|
-
result +=
|
|
3992
|
-
result +=
|
|
4111
|
+
result += map2[bits >> 18 & 63];
|
|
4112
|
+
result += map2[bits >> 12 & 63];
|
|
4113
|
+
result += map2[bits >> 6 & 63];
|
|
4114
|
+
result += map2[bits & 63];
|
|
3993
4115
|
} else if (tail === 2) {
|
|
3994
|
-
result +=
|
|
3995
|
-
result +=
|
|
3996
|
-
result +=
|
|
3997
|
-
result +=
|
|
4116
|
+
result += map2[bits >> 10 & 63];
|
|
4117
|
+
result += map2[bits >> 4 & 63];
|
|
4118
|
+
result += map2[bits << 2 & 63];
|
|
4119
|
+
result += map2[64];
|
|
3998
4120
|
} else if (tail === 1) {
|
|
3999
|
-
result +=
|
|
4000
|
-
result +=
|
|
4001
|
-
result +=
|
|
4002
|
-
result +=
|
|
4121
|
+
result += map2[bits >> 2 & 63];
|
|
4122
|
+
result += map2[bits << 4 & 63];
|
|
4123
|
+
result += map2[64];
|
|
4124
|
+
result += map2[64];
|
|
4003
4125
|
}
|
|
4004
4126
|
return result;
|
|
4005
4127
|
}
|
|
4006
4128
|
function isBinary(obj) {
|
|
4007
4129
|
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
4008
4130
|
}
|
|
4009
|
-
|
|
4131
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
4010
4132
|
kind: "scalar",
|
|
4011
4133
|
resolve: resolveYamlBinary,
|
|
4012
4134
|
construct: constructYamlBinary,
|
|
4013
4135
|
predicate: isBinary,
|
|
4014
4136
|
represent: representYamlBinary
|
|
4015
4137
|
});
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4138
|
+
return binary;
|
|
4139
|
+
}
|
|
4140
|
+
var omap;
|
|
4141
|
+
var hasRequiredOmap;
|
|
4142
|
+
function requireOmap() {
|
|
4143
|
+
if (hasRequiredOmap)
|
|
4144
|
+
return omap;
|
|
4145
|
+
hasRequiredOmap = 1;
|
|
4146
|
+
const Type2 = requireType();
|
|
4147
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4148
|
+
const _toString = Object.prototype.toString;
|
|
4021
4149
|
function resolveYamlOmap(data) {
|
|
4022
4150
|
if (data === null)
|
|
4023
4151
|
return true;
|
|
@@ -4029,12 +4157,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4029
4157
|
if (_toString.call(pair) !== "[object Object]")
|
|
4030
4158
|
return false;
|
|
4031
4159
|
let pairKey;
|
|
4032
|
-
for (pairKey in pair)
|
|
4033
|
-
if (_hasOwnProperty.call(pair, pairKey))
|
|
4160
|
+
for (pairKey in pair) {
|
|
4161
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
4034
4162
|
if (!pairHasKey)
|
|
4035
4163
|
pairHasKey = true;
|
|
4036
4164
|
else
|
|
4037
4165
|
return false;
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4038
4168
|
if (!pairHasKey)
|
|
4039
4169
|
return false;
|
|
4040
4170
|
if (objectKeys.indexOf(pairKey) === -1)
|
|
@@ -4047,15 +4177,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4047
4177
|
function constructYamlOmap(data) {
|
|
4048
4178
|
return data !== null ? data : [];
|
|
4049
4179
|
}
|
|
4050
|
-
|
|
4180
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
4051
4181
|
kind: "sequence",
|
|
4052
4182
|
resolve: resolveYamlOmap,
|
|
4053
4183
|
construct: constructYamlOmap
|
|
4054
4184
|
});
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4185
|
+
return omap;
|
|
4186
|
+
}
|
|
4187
|
+
var pairs;
|
|
4188
|
+
var hasRequiredPairs;
|
|
4189
|
+
function requirePairs() {
|
|
4190
|
+
if (hasRequiredPairs)
|
|
4191
|
+
return pairs;
|
|
4192
|
+
hasRequiredPairs = 1;
|
|
4193
|
+
const Type2 = requireType();
|
|
4194
|
+
const _toString = Object.prototype.toString;
|
|
4059
4195
|
function resolveYamlPairs(data) {
|
|
4060
4196
|
if (data === null)
|
|
4061
4197
|
return true;
|
|
@@ -4084,64 +4220,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4084
4220
|
}
|
|
4085
4221
|
return result;
|
|
4086
4222
|
}
|
|
4087
|
-
|
|
4223
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
4088
4224
|
kind: "sequence",
|
|
4089
4225
|
resolve: resolveYamlPairs,
|
|
4090
4226
|
construct: constructYamlPairs
|
|
4091
4227
|
});
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4228
|
+
return pairs;
|
|
4229
|
+
}
|
|
4230
|
+
var set;
|
|
4231
|
+
var hasRequiredSet;
|
|
4232
|
+
function requireSet() {
|
|
4233
|
+
if (hasRequiredSet)
|
|
4234
|
+
return set;
|
|
4235
|
+
hasRequiredSet = 1;
|
|
4236
|
+
const Type2 = requireType();
|
|
4237
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4096
4238
|
function resolveYamlSet(data) {
|
|
4097
4239
|
if (data === null)
|
|
4098
4240
|
return true;
|
|
4099
4241
|
const object = data;
|
|
4100
|
-
for (const key in object)
|
|
4242
|
+
for (const key in object) {
|
|
4101
4243
|
if (_hasOwnProperty.call(object, key)) {
|
|
4102
4244
|
if (object[key] !== null)
|
|
4103
4245
|
return false;
|
|
4104
4246
|
}
|
|
4247
|
+
}
|
|
4105
4248
|
return true;
|
|
4106
4249
|
}
|
|
4107
4250
|
function constructYamlSet(data) {
|
|
4108
4251
|
return data !== null ? data : {};
|
|
4109
4252
|
}
|
|
4110
|
-
|
|
4253
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
4111
4254
|
kind: "mapping",
|
|
4112
4255
|
resolve: resolveYamlSet,
|
|
4113
4256
|
construct: constructYamlSet
|
|
4114
4257
|
});
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4258
|
+
return set;
|
|
4259
|
+
}
|
|
4260
|
+
var _default;
|
|
4261
|
+
var hasRequired_default;
|
|
4262
|
+
function require_default() {
|
|
4263
|
+
if (hasRequired_default)
|
|
4264
|
+
return _default;
|
|
4265
|
+
hasRequired_default = 1;
|
|
4266
|
+
_default = requireCore().extend({
|
|
4267
|
+
implicit: [
|
|
4268
|
+
requireTimestamp(),
|
|
4269
|
+
requireMerge()
|
|
4270
|
+
],
|
|
4119
4271
|
explicit: [
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4272
|
+
requireBinary(),
|
|
4273
|
+
requireOmap(),
|
|
4274
|
+
requirePairs(),
|
|
4275
|
+
requireSet()
|
|
4124
4276
|
]
|
|
4125
4277
|
});
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4278
|
+
return _default;
|
|
4279
|
+
}
|
|
4280
|
+
var hasRequiredLoader;
|
|
4281
|
+
function requireLoader() {
|
|
4282
|
+
if (hasRequiredLoader)
|
|
4283
|
+
return loader;
|
|
4284
|
+
hasRequiredLoader = 1;
|
|
4285
|
+
const common2 = requireCommon();
|
|
4286
|
+
const YAMLException2 = requireException();
|
|
4287
|
+
const makeSnippet = requireSnippet();
|
|
4288
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
4289
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4290
|
+
const CONTEXT_FLOW_IN = 1;
|
|
4291
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
4292
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
4293
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
4294
|
+
const CHOMPING_CLIP = 1;
|
|
4295
|
+
const CHOMPING_STRIP = 2;
|
|
4296
|
+
const CHOMPING_KEEP = 3;
|
|
4297
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
4298
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
4299
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
4300
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
4301
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
4145
4302
|
function _class(obj) {
|
|
4146
4303
|
return Object.prototype.toString.call(obj);
|
|
4147
4304
|
}
|
|
@@ -4158,25 +4315,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4158
4315
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
4159
4316
|
}
|
|
4160
4317
|
function fromHexCode(c) {
|
|
4161
|
-
if (c >= 48 && c <= 57)
|
|
4318
|
+
if (c >= 48 && c <= 57) {
|
|
4162
4319
|
return c - 48;
|
|
4320
|
+
}
|
|
4163
4321
|
const lc = c | 32;
|
|
4164
|
-
if (lc >= 97 && lc <= 102)
|
|
4322
|
+
if (lc >= 97 && lc <= 102) {
|
|
4165
4323
|
return lc - 97 + 10;
|
|
4324
|
+
}
|
|
4166
4325
|
return -1;
|
|
4167
4326
|
}
|
|
4168
4327
|
function escapedHexLen(c) {
|
|
4169
|
-
if (c === 120)
|
|
4328
|
+
if (c === 120) {
|
|
4170
4329
|
return 2;
|
|
4171
|
-
|
|
4330
|
+
}
|
|
4331
|
+
if (c === 117) {
|
|
4172
4332
|
return 4;
|
|
4173
|
-
|
|
4333
|
+
}
|
|
4334
|
+
if (c === 85) {
|
|
4174
4335
|
return 8;
|
|
4336
|
+
}
|
|
4175
4337
|
return 0;
|
|
4176
4338
|
}
|
|
4177
4339
|
function fromDecimalCode(c) {
|
|
4178
|
-
if (c >= 48 && c <= 57)
|
|
4340
|
+
if (c >= 48 && c <= 57) {
|
|
4179
4341
|
return c - 48;
|
|
4342
|
+
}
|
|
4180
4343
|
return -1;
|
|
4181
4344
|
}
|
|
4182
4345
|
function simpleEscapeSequence(c) {
|
|
@@ -4223,23 +4386,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4223
4386
|
}
|
|
4224
4387
|
}
|
|
4225
4388
|
function charFromCodepoint(c) {
|
|
4226
|
-
if (c <= 65535)
|
|
4389
|
+
if (c <= 65535) {
|
|
4227
4390
|
return String.fromCharCode(c);
|
|
4391
|
+
}
|
|
4228
4392
|
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
4229
4393
|
}
|
|
4230
4394
|
function setProperty(object, key, value) {
|
|
4231
|
-
if (key === "__proto__")
|
|
4395
|
+
if (key === "__proto__") {
|
|
4232
4396
|
Object.defineProperty(object, key, {
|
|
4233
4397
|
configurable: true,
|
|
4234
4398
|
enumerable: true,
|
|
4235
4399
|
writable: true,
|
|
4236
4400
|
value
|
|
4237
4401
|
});
|
|
4238
|
-
else
|
|
4402
|
+
} else {
|
|
4239
4403
|
object[key] = value;
|
|
4404
|
+
}
|
|
4240
4405
|
}
|
|
4241
|
-
|
|
4242
|
-
|
|
4406
|
+
const simpleEscapeCheck = new Array(256);
|
|
4407
|
+
const simpleEscapeMap = new Array(256);
|
|
4243
4408
|
for (let i = 0;i < 256; i++) {
|
|
4244
4409
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
4245
4410
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
@@ -4247,13 +4412,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4247
4412
|
function State(input, options) {
|
|
4248
4413
|
this.input = input;
|
|
4249
4414
|
this.filename = options["filename"] || null;
|
|
4250
|
-
this.schema = options["schema"] ||
|
|
4415
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
4251
4416
|
this.onWarning = options["onWarning"] || null;
|
|
4252
4417
|
this.legacy = options["legacy"] || false;
|
|
4253
4418
|
this.json = options["json"] || false;
|
|
4254
4419
|
this.listener = options["listener"] || null;
|
|
4255
4420
|
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
4256
|
-
this.
|
|
4421
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
4257
4422
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
4258
4423
|
this.typeMap = this.schema.compiledTypeMap;
|
|
4259
4424
|
this.length = input.length;
|
|
@@ -4262,6 +4427,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4262
4427
|
this.lineStart = 0;
|
|
4263
4428
|
this.lineIndent = 0;
|
|
4264
4429
|
this.depth = 0;
|
|
4430
|
+
this.totalMergeKeys = 0;
|
|
4265
4431
|
this.firstTabInLine = -1;
|
|
4266
4432
|
this.documents = [];
|
|
4267
4433
|
this.anchorMapTransactions = [];
|
|
@@ -4275,29 +4441,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4275
4441
|
column: state.position - state.lineStart
|
|
4276
4442
|
};
|
|
4277
4443
|
mark.snippet = makeSnippet(mark);
|
|
4278
|
-
return new
|
|
4444
|
+
return new YAMLException2(message, mark);
|
|
4279
4445
|
}
|
|
4280
4446
|
function throwError(state, message) {
|
|
4281
4447
|
throw generateError(state, message);
|
|
4282
4448
|
}
|
|
4283
4449
|
function throwWarning(state, message) {
|
|
4284
|
-
if (state.onWarning)
|
|
4450
|
+
if (state.onWarning) {
|
|
4285
4451
|
state.onWarning.call(null, generateError(state, message));
|
|
4452
|
+
}
|
|
4286
4453
|
}
|
|
4287
4454
|
function storeAnchor(state, name, value) {
|
|
4288
4455
|
const transactions = state.anchorMapTransactions;
|
|
4289
4456
|
if (transactions.length !== 0) {
|
|
4290
4457
|
const transaction = transactions[transactions.length - 1];
|
|
4291
|
-
if (!_hasOwnProperty.call(transaction, name))
|
|
4458
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
4292
4459
|
transaction[name] = {
|
|
4293
4460
|
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
4294
4461
|
value: state.anchorMap[name]
|
|
4295
4462
|
};
|
|
4463
|
+
}
|
|
4296
4464
|
}
|
|
4297
4465
|
state.anchorMap[name] = value;
|
|
4298
4466
|
}
|
|
4299
4467
|
function beginAnchorTransaction(state) {
|
|
4300
|
-
state.anchorMapTransactions.push(Object.create(null));
|
|
4468
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
4301
4469
|
}
|
|
4302
4470
|
function commitAnchorTransaction(state) {
|
|
4303
4471
|
const transaction = state.anchorMapTransactions.pop();
|
|
@@ -4308,8 +4476,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4308
4476
|
const names = Object.keys(transaction);
|
|
4309
4477
|
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
4310
4478
|
const name = names[index];
|
|
4311
|
-
if (!_hasOwnProperty.call(parent, name))
|
|
4479
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
4312
4480
|
parent[name] = transaction[name];
|
|
4481
|
+
}
|
|
4313
4482
|
}
|
|
4314
4483
|
}
|
|
4315
4484
|
function rollbackAnchorTransaction(state) {
|
|
@@ -4317,10 +4486,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4317
4486
|
const names = Object.keys(transaction);
|
|
4318
4487
|
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
4319
4488
|
const entry = transaction[names[index]];
|
|
4320
|
-
if (entry.existed)
|
|
4489
|
+
if (entry.existed) {
|
|
4321
4490
|
state.anchorMap[names[index]] = entry.value;
|
|
4322
|
-
else
|
|
4491
|
+
} else {
|
|
4323
4492
|
delete state.anchorMap[names[index]];
|
|
4493
|
+
}
|
|
4324
4494
|
}
|
|
4325
4495
|
}
|
|
4326
4496
|
function snapshotState(state) {
|
|
@@ -4347,36 +4517,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4347
4517
|
state.kind = snapshot.kind;
|
|
4348
4518
|
state.result = snapshot.result;
|
|
4349
4519
|
}
|
|
4350
|
-
|
|
4520
|
+
const directiveHandlers = {
|
|
4351
4521
|
YAML: function handleYamlDirective(state, name, args) {
|
|
4352
|
-
if (state.version !== null)
|
|
4522
|
+
if (state.version !== null) {
|
|
4353
4523
|
throwError(state, "duplication of %YAML directive");
|
|
4354
|
-
|
|
4524
|
+
}
|
|
4525
|
+
if (args.length !== 1) {
|
|
4355
4526
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
4527
|
+
}
|
|
4356
4528
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
4357
|
-
if (match === null)
|
|
4529
|
+
if (match === null) {
|
|
4358
4530
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
4531
|
+
}
|
|
4359
4532
|
const major = parseInt(match[1], 10);
|
|
4360
4533
|
const minor = parseInt(match[2], 10);
|
|
4361
|
-
if (major !== 1)
|
|
4534
|
+
if (major !== 1) {
|
|
4362
4535
|
throwError(state, "unacceptable YAML version of the document");
|
|
4536
|
+
}
|
|
4363
4537
|
state.version = args[0];
|
|
4364
4538
|
state.checkLineBreaks = minor < 2;
|
|
4365
|
-
if (minor !== 1 && minor !== 2)
|
|
4539
|
+
if (minor !== 1 && minor !== 2) {
|
|
4366
4540
|
throwWarning(state, "unsupported YAML version of the document");
|
|
4541
|
+
}
|
|
4367
4542
|
},
|
|
4368
4543
|
TAG: function handleTagDirective(state, name, args) {
|
|
4369
4544
|
let prefix;
|
|
4370
|
-
if (args.length !== 2)
|
|
4545
|
+
if (args.length !== 2) {
|
|
4371
4546
|
throwError(state, "TAG directive accepts exactly two arguments");
|
|
4547
|
+
}
|
|
4372
4548
|
const handle = args[0];
|
|
4373
4549
|
prefix = args[1];
|
|
4374
|
-
if (!PATTERN_TAG_HANDLE.test(handle))
|
|
4550
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
4375
4551
|
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
4376
|
-
|
|
4552
|
+
}
|
|
4553
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
4377
4554
|
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
4378
|
-
|
|
4555
|
+
}
|
|
4556
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
4379
4557
|
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
4558
|
+
}
|
|
4380
4559
|
try {
|
|
4381
4560
|
prefix = decodeURIComponent(prefix);
|
|
4382
4561
|
} catch (err) {
|
|
@@ -4388,23 +4567,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4388
4567
|
function captureSegment(state, start, end, checkJson) {
|
|
4389
4568
|
if (start < end) {
|
|
4390
4569
|
const _result = state.input.slice(start, end);
|
|
4391
|
-
if (checkJson)
|
|
4570
|
+
if (checkJson) {
|
|
4392
4571
|
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
4393
4572
|
const _character = _result.charCodeAt(_position);
|
|
4394
|
-
if (!(_character === 9 || _character >= 32 && _character <= 1114111))
|
|
4573
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
4395
4574
|
throwError(state, "expected valid JSON character");
|
|
4575
|
+
}
|
|
4396
4576
|
}
|
|
4397
|
-
else if (PATTERN_NON_PRINTABLE.test(_result))
|
|
4577
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
4398
4578
|
throwError(state, "the stream contains non-printable characters");
|
|
4579
|
+
}
|
|
4399
4580
|
state.result += _result;
|
|
4400
4581
|
}
|
|
4401
4582
|
}
|
|
4402
4583
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
4403
|
-
if (!
|
|
4584
|
+
if (!common2.isObject(source)) {
|
|
4404
4585
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
4586
|
+
}
|
|
4405
4587
|
const sourceKeys = Object.keys(source);
|
|
4406
4588
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
4407
4589
|
const key = sourceKeys[index];
|
|
4590
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
4591
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
4592
|
+
}
|
|
4408
4593
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
4409
4594
|
setProperty(destination, key, source[key]);
|
|
4410
4595
|
overridableKeys[key] = true;
|
|
@@ -4415,32 +4600,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4415
4600
|
if (Array.isArray(keyNode)) {
|
|
4416
4601
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
4417
4602
|
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
4418
|
-
if (Array.isArray(keyNode[index]))
|
|
4603
|
+
if (Array.isArray(keyNode[index])) {
|
|
4419
4604
|
throwError(state, "nested arrays are not supported inside keys");
|
|
4420
|
-
|
|
4605
|
+
}
|
|
4606
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
4421
4607
|
keyNode[index] = "[object Object]";
|
|
4608
|
+
}
|
|
4422
4609
|
}
|
|
4423
4610
|
}
|
|
4424
|
-
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
|
|
4611
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
4425
4612
|
keyNode = "[object Object]";
|
|
4613
|
+
}
|
|
4426
4614
|
keyNode = String(keyNode);
|
|
4427
|
-
if (_result === null)
|
|
4615
|
+
if (_result === null) {
|
|
4428
4616
|
_result = {};
|
|
4429
|
-
|
|
4617
|
+
}
|
|
4618
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
4430
4619
|
if (Array.isArray(valueNode)) {
|
|
4431
|
-
if (valueNode.length > state.maxMergeSeqLength)
|
|
4432
|
-
throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
|
|
4433
|
-
const seen = /* @__PURE__ */ new Set;
|
|
4434
4620
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
4435
|
-
|
|
4436
|
-
if (seen.has(src))
|
|
4437
|
-
continue;
|
|
4438
|
-
seen.add(src);
|
|
4439
|
-
mergeMappings(state, _result, src, overridableKeys);
|
|
4621
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
4440
4622
|
}
|
|
4441
|
-
} else
|
|
4623
|
+
} else {
|
|
4442
4624
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
4443
|
-
|
|
4625
|
+
}
|
|
4626
|
+
} else {
|
|
4444
4627
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
4445
4628
|
state.line = startLine || state.line;
|
|
4446
4629
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -4454,14 +4637,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4454
4637
|
}
|
|
4455
4638
|
function readLineBreak(state) {
|
|
4456
4639
|
const ch = state.input.charCodeAt(state.position);
|
|
4457
|
-
if (ch === 10)
|
|
4640
|
+
if (ch === 10) {
|
|
4458
4641
|
state.position++;
|
|
4459
|
-
else if (ch === 13) {
|
|
4642
|
+
} else if (ch === 13) {
|
|
4460
4643
|
state.position++;
|
|
4461
|
-
if (state.input.charCodeAt(state.position) === 10)
|
|
4644
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
4462
4645
|
state.position++;
|
|
4463
|
-
|
|
4646
|
+
}
|
|
4647
|
+
} else {
|
|
4464
4648
|
throwError(state, "a line break is expected");
|
|
4649
|
+
}
|
|
4465
4650
|
state.line += 1;
|
|
4466
4651
|
state.lineStart = state.position;
|
|
4467
4652
|
state.firstTabInLine = -1;
|
|
@@ -4471,14 +4656,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4471
4656
|
let ch = state.input.charCodeAt(state.position);
|
|
4472
4657
|
while (ch !== 0) {
|
|
4473
4658
|
while (isWhiteSpace(ch)) {
|
|
4474
|
-
if (ch === 9 && state.firstTabInLine === -1)
|
|
4659
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
4475
4660
|
state.firstTabInLine = state.position;
|
|
4661
|
+
}
|
|
4476
4662
|
ch = state.input.charCodeAt(++state.position);
|
|
4477
4663
|
}
|
|
4478
|
-
if (allowComments && ch === 35)
|
|
4479
|
-
do
|
|
4664
|
+
if (allowComments && ch === 35) {
|
|
4665
|
+
do {
|
|
4480
4666
|
ch = state.input.charCodeAt(++state.position);
|
|
4481
|
-
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
4667
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
4668
|
+
}
|
|
4482
4669
|
if (isEol(ch)) {
|
|
4483
4670
|
readLineBreak(state);
|
|
4484
4671
|
ch = state.input.charCodeAt(state.position);
|
|
@@ -4488,11 +4675,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4488
4675
|
state.lineIndent++;
|
|
4489
4676
|
ch = state.input.charCodeAt(++state.position);
|
|
4490
4677
|
}
|
|
4491
|
-
} else
|
|
4678
|
+
} else {
|
|
4492
4679
|
break;
|
|
4680
|
+
}
|
|
4493
4681
|
}
|
|
4494
|
-
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
|
|
4682
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
4495
4683
|
throwWarning(state, "deficient indentation");
|
|
4684
|
+
}
|
|
4496
4685
|
return lineBreaks;
|
|
4497
4686
|
}
|
|
4498
4687
|
function testDocumentSeparator(state) {
|
|
@@ -4501,17 +4690,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4501
4690
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
4502
4691
|
_position += 3;
|
|
4503
4692
|
ch = state.input.charCodeAt(_position);
|
|
4504
|
-
if (ch === 0 || isWsOrEol(ch))
|
|
4693
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
4505
4694
|
return true;
|
|
4695
|
+
}
|
|
4506
4696
|
}
|
|
4507
4697
|
return false;
|
|
4508
4698
|
}
|
|
4509
4699
|
function writeFoldedLines(state, count) {
|
|
4510
|
-
if (count === 1)
|
|
4700
|
+
if (count === 1) {
|
|
4511
4701
|
state.result += " ";
|
|
4512
|
-
else if (count > 1)
|
|
4513
|
-
state.result +=
|
|
4702
|
+
} else if (count > 1) {
|
|
4703
|
+
state.result += common2.repeat(`
|
|
4514
4704
|
`, count - 1);
|
|
4705
|
+
}
|
|
4515
4706
|
}
|
|
4516
4707
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
4517
4708
|
let captureStart;
|
|
@@ -4523,12 +4714,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4523
4714
|
const _kind = state.kind;
|
|
4524
4715
|
const _result = state.result;
|
|
4525
4716
|
let ch = state.input.charCodeAt(state.position);
|
|
4526
|
-
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)
|
|
4717
|
+
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) {
|
|
4527
4718
|
return false;
|
|
4719
|
+
}
|
|
4528
4720
|
if (ch === 63 || ch === 45) {
|
|
4529
4721
|
const following = state.input.charCodeAt(state.position + 1);
|
|
4530
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
4722
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
4531
4723
|
return false;
|
|
4724
|
+
}
|
|
4532
4725
|
}
|
|
4533
4726
|
state.kind = "scalar";
|
|
4534
4727
|
state.result = "";
|
|
@@ -4537,14 +4730,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4537
4730
|
while (ch !== 0) {
|
|
4538
4731
|
if (ch === 58) {
|
|
4539
4732
|
const following = state.input.charCodeAt(state.position + 1);
|
|
4540
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
4733
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
4541
4734
|
break;
|
|
4735
|
+
}
|
|
4542
4736
|
} else if (ch === 35) {
|
|
4543
|
-
|
|
4737
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
4738
|
+
if (isWsOrEol(preceding)) {
|
|
4544
4739
|
break;
|
|
4545
|
-
|
|
4740
|
+
}
|
|
4741
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
4546
4742
|
break;
|
|
4547
|
-
else if (isEol(ch)) {
|
|
4743
|
+
} else if (isEol(ch)) {
|
|
4548
4744
|
_line = state.line;
|
|
4549
4745
|
_lineStart = state.lineStart;
|
|
4550
4746
|
_lineIndent = state.lineIndent;
|
|
@@ -4567,13 +4763,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4567
4763
|
captureStart = captureEnd = state.position;
|
|
4568
4764
|
hasPendingContent = false;
|
|
4569
4765
|
}
|
|
4570
|
-
if (!isWhiteSpace(ch))
|
|
4766
|
+
if (!isWhiteSpace(ch)) {
|
|
4571
4767
|
captureEnd = state.position + 1;
|
|
4768
|
+
}
|
|
4572
4769
|
ch = state.input.charCodeAt(++state.position);
|
|
4573
4770
|
}
|
|
4574
4771
|
captureSegment(state, captureStart, captureEnd, false);
|
|
4575
|
-
if (state.result)
|
|
4772
|
+
if (state.result) {
|
|
4576
4773
|
return true;
|
|
4774
|
+
}
|
|
4577
4775
|
state.kind = _kind;
|
|
4578
4776
|
state.result = _result;
|
|
4579
4777
|
return false;
|
|
@@ -4582,13 +4780,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4582
4780
|
let captureStart;
|
|
4583
4781
|
let captureEnd;
|
|
4584
4782
|
let ch = state.input.charCodeAt(state.position);
|
|
4585
|
-
if (ch !== 39)
|
|
4783
|
+
if (ch !== 39) {
|
|
4586
4784
|
return false;
|
|
4785
|
+
}
|
|
4587
4786
|
state.kind = "scalar";
|
|
4588
4787
|
state.result = "";
|
|
4589
4788
|
state.position++;
|
|
4590
4789
|
captureStart = captureEnd = state.position;
|
|
4591
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
4790
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
4592
4791
|
if (ch === 39) {
|
|
4593
4792
|
captureSegment(state, captureStart, state.position, true);
|
|
4594
4793
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -4596,19 +4795,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4596
4795
|
captureStart = state.position;
|
|
4597
4796
|
state.position++;
|
|
4598
4797
|
captureEnd = state.position;
|
|
4599
|
-
} else
|
|
4798
|
+
} else {
|
|
4600
4799
|
return true;
|
|
4800
|
+
}
|
|
4601
4801
|
} else if (isEol(ch)) {
|
|
4602
4802
|
captureSegment(state, captureStart, captureEnd, true);
|
|
4603
4803
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
4604
4804
|
captureStart = captureEnd = state.position;
|
|
4605
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
4805
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
4606
4806
|
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
4607
|
-
else {
|
|
4807
|
+
} else {
|
|
4608
4808
|
state.position++;
|
|
4609
|
-
if (!isWhiteSpace(ch))
|
|
4809
|
+
if (!isWhiteSpace(ch)) {
|
|
4610
4810
|
captureEnd = state.position;
|
|
4811
|
+
}
|
|
4611
4812
|
}
|
|
4813
|
+
}
|
|
4612
4814
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
4613
4815
|
}
|
|
4614
4816
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -4616,13 +4818,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4616
4818
|
let captureEnd;
|
|
4617
4819
|
let tmp;
|
|
4618
4820
|
let ch = state.input.charCodeAt(state.position);
|
|
4619
|
-
if (ch !== 34)
|
|
4821
|
+
if (ch !== 34) {
|
|
4620
4822
|
return false;
|
|
4823
|
+
}
|
|
4621
4824
|
state.kind = "scalar";
|
|
4622
4825
|
state.result = "";
|
|
4623
4826
|
state.position++;
|
|
4624
4827
|
captureStart = captureEnd = state.position;
|
|
4625
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
4828
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
4626
4829
|
if (ch === 34) {
|
|
4627
4830
|
captureSegment(state, captureStart, state.position, true);
|
|
4628
4831
|
state.position++;
|
|
@@ -4630,9 +4833,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4630
4833
|
} else if (ch === 92) {
|
|
4631
4834
|
captureSegment(state, captureStart, state.position, true);
|
|
4632
4835
|
ch = state.input.charCodeAt(++state.position);
|
|
4633
|
-
if (isEol(ch))
|
|
4836
|
+
if (isEol(ch)) {
|
|
4634
4837
|
skipSeparationSpace(state, false, nodeIndent);
|
|
4635
|
-
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
4838
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
4636
4839
|
state.result += simpleEscapeMap[ch];
|
|
4637
4840
|
state.position++;
|
|
4638
4841
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
@@ -4640,27 +4843,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4640
4843
|
let hexResult = 0;
|
|
4641
4844
|
for (;hexLength > 0; hexLength--) {
|
|
4642
4845
|
ch = state.input.charCodeAt(++state.position);
|
|
4643
|
-
if ((tmp = fromHexCode(ch)) >= 0)
|
|
4846
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
4644
4847
|
hexResult = (hexResult << 4) + tmp;
|
|
4645
|
-
else
|
|
4848
|
+
} else {
|
|
4646
4849
|
throwError(state, "expected hexadecimal character");
|
|
4850
|
+
}
|
|
4647
4851
|
}
|
|
4648
4852
|
state.result += charFromCodepoint(hexResult);
|
|
4649
4853
|
state.position++;
|
|
4650
|
-
} else
|
|
4854
|
+
} else {
|
|
4651
4855
|
throwError(state, "unknown escape sequence");
|
|
4856
|
+
}
|
|
4652
4857
|
captureStart = captureEnd = state.position;
|
|
4653
4858
|
} else if (isEol(ch)) {
|
|
4654
4859
|
captureSegment(state, captureStart, captureEnd, true);
|
|
4655
4860
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
4656
4861
|
captureStart = captureEnd = state.position;
|
|
4657
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
4862
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
4658
4863
|
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
4659
|
-
else {
|
|
4864
|
+
} else {
|
|
4660
4865
|
state.position++;
|
|
4661
|
-
if (!isWhiteSpace(ch))
|
|
4866
|
+
if (!isWhiteSpace(ch)) {
|
|
4662
4867
|
captureEnd = state.position;
|
|
4868
|
+
}
|
|
4663
4869
|
}
|
|
4870
|
+
}
|
|
4664
4871
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
4665
4872
|
}
|
|
4666
4873
|
function readFlowCollection(state, nodeIndent) {
|
|
@@ -4675,7 +4882,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4675
4882
|
let isPair;
|
|
4676
4883
|
let isExplicitPair;
|
|
4677
4884
|
let isMapping;
|
|
4678
|
-
const overridableKeys = Object.create(null);
|
|
4885
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
4679
4886
|
let keyNode;
|
|
4680
4887
|
let keyTag;
|
|
4681
4888
|
let valueNode;
|
|
@@ -4688,10 +4895,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4688
4895
|
terminator = 125;
|
|
4689
4896
|
isMapping = true;
|
|
4690
4897
|
_result = {};
|
|
4691
|
-
} else
|
|
4898
|
+
} else {
|
|
4692
4899
|
return false;
|
|
4693
|
-
|
|
4900
|
+
}
|
|
4901
|
+
if (state.anchor !== null) {
|
|
4694
4902
|
storeAnchor(state, state.anchor, _result);
|
|
4903
|
+
}
|
|
4695
4904
|
ch = state.input.charCodeAt(++state.position);
|
|
4696
4905
|
while (ch !== 0) {
|
|
4697
4906
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -4703,14 +4912,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4703
4912
|
state.kind = isMapping ? "mapping" : "sequence";
|
|
4704
4913
|
state.result = _result;
|
|
4705
4914
|
return true;
|
|
4706
|
-
} else if (!readNext)
|
|
4915
|
+
} else if (!readNext) {
|
|
4707
4916
|
throwError(state, "missed comma between flow collection entries");
|
|
4708
|
-
else if (ch === 44)
|
|
4917
|
+
} else if (ch === 44) {
|
|
4709
4918
|
throwError(state, "expected the node content, but found ','");
|
|
4919
|
+
}
|
|
4710
4920
|
keyTag = keyNode = valueNode = null;
|
|
4711
4921
|
isPair = isExplicitPair = false;
|
|
4712
4922
|
if (ch === 63) {
|
|
4713
|
-
|
|
4923
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
4924
|
+
if (isWsOrEol(following)) {
|
|
4714
4925
|
isPair = isExplicitPair = true;
|
|
4715
4926
|
state.position++;
|
|
4716
4927
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -4731,19 +4942,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4731
4942
|
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
4732
4943
|
valueNode = state.result;
|
|
4733
4944
|
}
|
|
4734
|
-
if (isMapping)
|
|
4945
|
+
if (isMapping) {
|
|
4735
4946
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
4736
|
-
else if (isPair)
|
|
4947
|
+
} else if (isPair) {
|
|
4737
4948
|
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
4738
|
-
else
|
|
4949
|
+
} else {
|
|
4739
4950
|
_result.push(keyNode);
|
|
4951
|
+
}
|
|
4740
4952
|
skipSeparationSpace(state, true, nodeIndent);
|
|
4741
4953
|
ch = state.input.charCodeAt(state.position);
|
|
4742
4954
|
if (ch === 44) {
|
|
4743
4955
|
readNext = true;
|
|
4744
4956
|
ch = state.input.charCodeAt(++state.position);
|
|
4745
|
-
} else
|
|
4957
|
+
} else {
|
|
4746
4958
|
readNext = false;
|
|
4959
|
+
}
|
|
4747
4960
|
}
|
|
4748
4961
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
4749
4962
|
}
|
|
@@ -4757,40 +4970,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4757
4970
|
let atMoreIndented = false;
|
|
4758
4971
|
let tmp;
|
|
4759
4972
|
let ch = state.input.charCodeAt(state.position);
|
|
4760
|
-
if (ch === 124)
|
|
4973
|
+
if (ch === 124) {
|
|
4761
4974
|
folding = false;
|
|
4762
|
-
else if (ch === 62)
|
|
4975
|
+
} else if (ch === 62) {
|
|
4763
4976
|
folding = true;
|
|
4764
|
-
else
|
|
4977
|
+
} else {
|
|
4765
4978
|
return false;
|
|
4979
|
+
}
|
|
4766
4980
|
state.kind = "scalar";
|
|
4767
4981
|
state.result = "";
|
|
4768
4982
|
while (ch !== 0) {
|
|
4769
4983
|
ch = state.input.charCodeAt(++state.position);
|
|
4770
|
-
if (ch === 43 || ch === 45)
|
|
4771
|
-
if (CHOMPING_CLIP === chomping)
|
|
4984
|
+
if (ch === 43 || ch === 45) {
|
|
4985
|
+
if (CHOMPING_CLIP === chomping) {
|
|
4772
4986
|
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
4773
|
-
else
|
|
4987
|
+
} else {
|
|
4774
4988
|
throwError(state, "repeat of a chomping mode identifier");
|
|
4775
|
-
|
|
4776
|
-
|
|
4989
|
+
}
|
|
4990
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
4991
|
+
if (tmp === 0) {
|
|
4777
4992
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
4778
|
-
else if (!detectedIndent) {
|
|
4993
|
+
} else if (!detectedIndent) {
|
|
4779
4994
|
textIndent = nodeIndent + tmp - 1;
|
|
4780
4995
|
detectedIndent = true;
|
|
4781
|
-
} else
|
|
4996
|
+
} else {
|
|
4782
4997
|
throwError(state, "repeat of an indentation width identifier");
|
|
4783
|
-
|
|
4998
|
+
}
|
|
4999
|
+
} else {
|
|
4784
5000
|
break;
|
|
5001
|
+
}
|
|
4785
5002
|
}
|
|
4786
5003
|
if (isWhiteSpace(ch)) {
|
|
4787
|
-
do
|
|
5004
|
+
do {
|
|
4788
5005
|
ch = state.input.charCodeAt(++state.position);
|
|
4789
|
-
while (isWhiteSpace(ch));
|
|
4790
|
-
if (ch === 35)
|
|
4791
|
-
do
|
|
5006
|
+
} while (isWhiteSpace(ch));
|
|
5007
|
+
if (ch === 35) {
|
|
5008
|
+
do {
|
|
4792
5009
|
ch = state.input.charCodeAt(++state.position);
|
|
4793
|
-
while (!isEol(ch) && ch !== 0);
|
|
5010
|
+
} while (!isEol(ch) && ch !== 0);
|
|
5011
|
+
}
|
|
4794
5012
|
}
|
|
4795
5013
|
while (ch !== 0) {
|
|
4796
5014
|
readLineBreak(state);
|
|
@@ -4800,49 +5018,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4800
5018
|
state.lineIndent++;
|
|
4801
5019
|
ch = state.input.charCodeAt(++state.position);
|
|
4802
5020
|
}
|
|
4803
|
-
if (!detectedIndent && state.lineIndent > textIndent)
|
|
5021
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
4804
5022
|
textIndent = state.lineIndent;
|
|
5023
|
+
}
|
|
4805
5024
|
if (isEol(ch)) {
|
|
4806
5025
|
emptyLines++;
|
|
4807
5026
|
continue;
|
|
4808
5027
|
}
|
|
4809
|
-
if (!detectedIndent && textIndent === 0)
|
|
5028
|
+
if (!detectedIndent && textIndent === 0) {
|
|
4810
5029
|
throwError(state, "missing indentation for block scalar");
|
|
5030
|
+
}
|
|
4811
5031
|
if (state.lineIndent < textIndent) {
|
|
4812
|
-
if (chomping === CHOMPING_KEEP)
|
|
4813
|
-
state.result +=
|
|
5032
|
+
if (chomping === CHOMPING_KEEP) {
|
|
5033
|
+
state.result += common2.repeat(`
|
|
4814
5034
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
4815
|
-
else if (chomping === CHOMPING_CLIP) {
|
|
4816
|
-
if (didReadContent)
|
|
5035
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
5036
|
+
if (didReadContent) {
|
|
4817
5037
|
state.result += `
|
|
4818
5038
|
`;
|
|
5039
|
+
}
|
|
4819
5040
|
}
|
|
4820
5041
|
break;
|
|
4821
5042
|
}
|
|
4822
|
-
if (folding)
|
|
5043
|
+
if (folding) {
|
|
4823
5044
|
if (isWhiteSpace(ch)) {
|
|
4824
5045
|
atMoreIndented = true;
|
|
4825
|
-
state.result +=
|
|
5046
|
+
state.result += common2.repeat(`
|
|
4826
5047
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
4827
5048
|
} else if (atMoreIndented) {
|
|
4828
5049
|
atMoreIndented = false;
|
|
4829
|
-
state.result +=
|
|
5050
|
+
state.result += common2.repeat(`
|
|
4830
5051
|
`, emptyLines + 1);
|
|
4831
5052
|
} else if (emptyLines === 0) {
|
|
4832
|
-
if (didReadContent)
|
|
5053
|
+
if (didReadContent) {
|
|
4833
5054
|
state.result += " ";
|
|
4834
|
-
|
|
4835
|
-
|
|
5055
|
+
}
|
|
5056
|
+
} else {
|
|
5057
|
+
state.result += common2.repeat(`
|
|
4836
5058
|
`, emptyLines);
|
|
4837
|
-
|
|
4838
|
-
|
|
5059
|
+
}
|
|
5060
|
+
} else {
|
|
5061
|
+
state.result += common2.repeat(`
|
|
4839
5062
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
5063
|
+
}
|
|
4840
5064
|
didReadContent = true;
|
|
4841
5065
|
detectedIndent = true;
|
|
4842
5066
|
emptyLines = 0;
|
|
4843
5067
|
const captureStart = state.position;
|
|
4844
|
-
while (!isEol(ch) && ch !== 0)
|
|
5068
|
+
while (!isEol(ch) && ch !== 0) {
|
|
4845
5069
|
ch = state.input.charCodeAt(++state.position);
|
|
5070
|
+
}
|
|
4846
5071
|
captureSegment(state, captureStart, state.position, false);
|
|
4847
5072
|
}
|
|
4848
5073
|
return true;
|
|
@@ -4854,18 +5079,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4854
5079
|
let detected = false;
|
|
4855
5080
|
if (state.firstTabInLine !== -1)
|
|
4856
5081
|
return false;
|
|
4857
|
-
if (state.anchor !== null)
|
|
5082
|
+
if (state.anchor !== null) {
|
|
4858
5083
|
storeAnchor(state, state.anchor, _result);
|
|
5084
|
+
}
|
|
4859
5085
|
let ch = state.input.charCodeAt(state.position);
|
|
4860
5086
|
while (ch !== 0) {
|
|
4861
5087
|
if (state.firstTabInLine !== -1) {
|
|
4862
5088
|
state.position = state.firstTabInLine;
|
|
4863
5089
|
throwError(state, "tab characters must not be used in indentation");
|
|
4864
5090
|
}
|
|
4865
|
-
if (ch !== 45)
|
|
5091
|
+
if (ch !== 45) {
|
|
4866
5092
|
break;
|
|
4867
|
-
|
|
5093
|
+
}
|
|
5094
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
5095
|
+
if (!isWsOrEol(following)) {
|
|
4868
5096
|
break;
|
|
5097
|
+
}
|
|
4869
5098
|
detected = true;
|
|
4870
5099
|
state.position++;
|
|
4871
5100
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -4880,10 +5109,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4880
5109
|
_result.push(state.result);
|
|
4881
5110
|
skipSeparationSpace(state, true, -1);
|
|
4882
5111
|
ch = state.input.charCodeAt(state.position);
|
|
4883
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
5112
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
4884
5113
|
throwError(state, "bad indentation of a sequence entry");
|
|
4885
|
-
else if (state.lineIndent < nodeIndent)
|
|
5114
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
4886
5115
|
break;
|
|
5116
|
+
}
|
|
4887
5117
|
}
|
|
4888
5118
|
if (detected) {
|
|
4889
5119
|
state.tag = _tag;
|
|
@@ -4902,7 +5132,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4902
5132
|
const _tag = state.tag;
|
|
4903
5133
|
const _anchor = state.anchor;
|
|
4904
5134
|
const _result = {};
|
|
4905
|
-
const overridableKeys = Object.create(null);
|
|
5135
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
4906
5136
|
let keyTag = null;
|
|
4907
5137
|
let keyNode = null;
|
|
4908
5138
|
let valueNode = null;
|
|
@@ -4910,8 +5140,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4910
5140
|
let detected = false;
|
|
4911
5141
|
if (state.firstTabInLine !== -1)
|
|
4912
5142
|
return false;
|
|
4913
|
-
if (state.anchor !== null)
|
|
5143
|
+
if (state.anchor !== null) {
|
|
4914
5144
|
storeAnchor(state, state.anchor, _result);
|
|
5145
|
+
}
|
|
4915
5146
|
let ch = state.input.charCodeAt(state.position);
|
|
4916
5147
|
while (ch !== 0) {
|
|
4917
5148
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
@@ -4932,24 +5163,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4932
5163
|
} else if (atExplicitKey) {
|
|
4933
5164
|
atExplicitKey = false;
|
|
4934
5165
|
allowCompact = true;
|
|
4935
|
-
} else
|
|
5166
|
+
} else {
|
|
4936
5167
|
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
5168
|
+
}
|
|
4937
5169
|
state.position += 1;
|
|
4938
5170
|
ch = following;
|
|
4939
5171
|
} else {
|
|
4940
5172
|
_keyLine = state.line;
|
|
4941
5173
|
_keyLineStart = state.lineStart;
|
|
4942
5174
|
_keyPos = state.position;
|
|
4943
|
-
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
|
|
5175
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
4944
5176
|
break;
|
|
5177
|
+
}
|
|
4945
5178
|
if (state.line === _line) {
|
|
4946
5179
|
ch = state.input.charCodeAt(state.position);
|
|
4947
|
-
while (isWhiteSpace(ch))
|
|
5180
|
+
while (isWhiteSpace(ch)) {
|
|
4948
5181
|
ch = state.input.charCodeAt(++state.position);
|
|
5182
|
+
}
|
|
4949
5183
|
if (ch === 58) {
|
|
4950
5184
|
ch = state.input.charCodeAt(++state.position);
|
|
4951
|
-
if (!isWsOrEol(ch))
|
|
5185
|
+
if (!isWsOrEol(ch)) {
|
|
4952
5186
|
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
5187
|
+
}
|
|
4953
5188
|
if (atExplicitKey) {
|
|
4954
5189
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
4955
5190
|
keyTag = keyNode = valueNode = null;
|
|
@@ -4959,16 +5194,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4959
5194
|
allowCompact = false;
|
|
4960
5195
|
keyTag = state.tag;
|
|
4961
5196
|
keyNode = state.result;
|
|
4962
|
-
} else if (detected)
|
|
5197
|
+
} else if (detected) {
|
|
4963
5198
|
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
4964
|
-
else {
|
|
5199
|
+
} else {
|
|
4965
5200
|
state.tag = _tag;
|
|
4966
5201
|
state.anchor = _anchor;
|
|
4967
5202
|
return true;
|
|
4968
5203
|
}
|
|
4969
|
-
} else if (detected)
|
|
5204
|
+
} else if (detected) {
|
|
4970
5205
|
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
4971
|
-
else {
|
|
5206
|
+
} else {
|
|
4972
5207
|
state.tag = _tag;
|
|
4973
5208
|
state.anchor = _anchor;
|
|
4974
5209
|
return true;
|
|
@@ -4980,11 +5215,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4980
5215
|
_keyLineStart = state.lineStart;
|
|
4981
5216
|
_keyPos = state.position;
|
|
4982
5217
|
}
|
|
4983
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
4984
|
-
if (atExplicitKey)
|
|
5218
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
5219
|
+
if (atExplicitKey) {
|
|
4985
5220
|
keyNode = state.result;
|
|
4986
|
-
else
|
|
5221
|
+
} else {
|
|
4987
5222
|
valueNode = state.result;
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
4988
5225
|
if (!atExplicitKey) {
|
|
4989
5226
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
4990
5227
|
keyTag = keyNode = valueNode = null;
|
|
@@ -4992,13 +5229,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
4992
5229
|
skipSeparationSpace(state, true, -1);
|
|
4993
5230
|
ch = state.input.charCodeAt(state.position);
|
|
4994
5231
|
}
|
|
4995
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
5232
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
4996
5233
|
throwError(state, "bad indentation of a mapping entry");
|
|
4997
|
-
else if (state.lineIndent < nodeIndent)
|
|
5234
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
4998
5235
|
break;
|
|
5236
|
+
}
|
|
4999
5237
|
}
|
|
5000
|
-
if (atExplicitKey)
|
|
5238
|
+
if (atExplicitKey) {
|
|
5001
5239
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
5240
|
+
}
|
|
5002
5241
|
if (detected) {
|
|
5003
5242
|
state.tag = _tag;
|
|
5004
5243
|
state.anchor = _anchor;
|
|
@@ -5015,8 +5254,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5015
5254
|
let ch = state.input.charCodeAt(state.position);
|
|
5016
5255
|
if (ch !== 33)
|
|
5017
5256
|
return false;
|
|
5018
|
-
if (state.tag !== null)
|
|
5257
|
+
if (state.tag !== null) {
|
|
5019
5258
|
throwError(state, "duplication of a tag property");
|
|
5259
|
+
}
|
|
5020
5260
|
ch = state.input.charCodeAt(++state.position);
|
|
5021
5261
|
if (ch === 60) {
|
|
5022
5262
|
isVerbatim = true;
|
|
@@ -5025,66 +5265,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5025
5265
|
isNamed = true;
|
|
5026
5266
|
tagHandle = "!!";
|
|
5027
5267
|
ch = state.input.charCodeAt(++state.position);
|
|
5028
|
-
} else
|
|
5268
|
+
} else {
|
|
5029
5269
|
tagHandle = "!";
|
|
5270
|
+
}
|
|
5030
5271
|
let _position = state.position;
|
|
5031
5272
|
if (isVerbatim) {
|
|
5032
|
-
do
|
|
5273
|
+
do {
|
|
5033
5274
|
ch = state.input.charCodeAt(++state.position);
|
|
5034
|
-
while (ch !== 0 && ch !== 62);
|
|
5275
|
+
} while (ch !== 0 && ch !== 62);
|
|
5035
5276
|
if (state.position < state.length) {
|
|
5036
5277
|
tagName = state.input.slice(_position, state.position);
|
|
5037
5278
|
ch = state.input.charCodeAt(++state.position);
|
|
5038
|
-
} else
|
|
5279
|
+
} else {
|
|
5039
5280
|
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
5281
|
+
}
|
|
5040
5282
|
} else {
|
|
5041
5283
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
5042
|
-
if (ch === 33)
|
|
5284
|
+
if (ch === 33) {
|
|
5043
5285
|
if (!isNamed) {
|
|
5044
5286
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
5045
|
-
if (!PATTERN_TAG_HANDLE.test(tagHandle))
|
|
5287
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
5046
5288
|
throwError(state, "named tag handle cannot contain such characters");
|
|
5289
|
+
}
|
|
5047
5290
|
isNamed = true;
|
|
5048
5291
|
_position = state.position + 1;
|
|
5049
|
-
} else
|
|
5292
|
+
} else {
|
|
5050
5293
|
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
5294
|
+
}
|
|
5295
|
+
}
|
|
5051
5296
|
ch = state.input.charCodeAt(++state.position);
|
|
5052
5297
|
}
|
|
5053
5298
|
tagName = state.input.slice(_position, state.position);
|
|
5054
|
-
if (PATTERN_FLOW_INDICATORS.test(tagName))
|
|
5299
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
5055
5300
|
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
5301
|
+
}
|
|
5056
5302
|
}
|
|
5057
|
-
if (tagName && !PATTERN_TAG_URI.test(tagName))
|
|
5303
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
5058
5304
|
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
5305
|
+
}
|
|
5059
5306
|
try {
|
|
5060
5307
|
tagName = decodeURIComponent(tagName);
|
|
5061
5308
|
} catch (err) {
|
|
5062
5309
|
throwError(state, "tag name is malformed: " + tagName);
|
|
5063
5310
|
}
|
|
5064
|
-
if (isVerbatim)
|
|
5311
|
+
if (isVerbatim) {
|
|
5065
5312
|
state.tag = tagName;
|
|
5066
|
-
else if (_hasOwnProperty.call(state.tagMap, tagHandle))
|
|
5313
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
5067
5314
|
state.tag = state.tagMap[tagHandle] + tagName;
|
|
5068
|
-
else if (tagHandle === "!")
|
|
5315
|
+
} else if (tagHandle === "!") {
|
|
5069
5316
|
state.tag = "!" + tagName;
|
|
5070
|
-
else if (tagHandle === "!!")
|
|
5317
|
+
} else if (tagHandle === "!!") {
|
|
5071
5318
|
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
5072
|
-
else
|
|
5319
|
+
} else {
|
|
5073
5320
|
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
5321
|
+
}
|
|
5074
5322
|
return true;
|
|
5075
5323
|
}
|
|
5076
5324
|
function readAnchorProperty(state) {
|
|
5077
5325
|
let ch = state.input.charCodeAt(state.position);
|
|
5078
5326
|
if (ch !== 38)
|
|
5079
5327
|
return false;
|
|
5080
|
-
if (state.anchor !== null)
|
|
5328
|
+
if (state.anchor !== null) {
|
|
5081
5329
|
throwError(state, "duplication of an anchor property");
|
|
5330
|
+
}
|
|
5082
5331
|
ch = state.input.charCodeAt(++state.position);
|
|
5083
5332
|
const _position = state.position;
|
|
5084
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
5333
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
5085
5334
|
ch = state.input.charCodeAt(++state.position);
|
|
5086
|
-
|
|
5335
|
+
}
|
|
5336
|
+
if (state.position === _position) {
|
|
5087
5337
|
throwError(state, "name of an anchor node must contain at least one character");
|
|
5338
|
+
}
|
|
5088
5339
|
state.anchor = state.input.slice(_position, state.position);
|
|
5089
5340
|
return true;
|
|
5090
5341
|
}
|
|
@@ -5094,13 +5345,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5094
5345
|
return false;
|
|
5095
5346
|
ch = state.input.charCodeAt(++state.position);
|
|
5096
5347
|
const _position = state.position;
|
|
5097
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
5348
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
5098
5349
|
ch = state.input.charCodeAt(++state.position);
|
|
5099
|
-
|
|
5350
|
+
}
|
|
5351
|
+
if (state.position === _position) {
|
|
5100
5352
|
throwError(state, "name of an alias node must contain at least one character");
|
|
5353
|
+
}
|
|
5101
5354
|
const alias = state.input.slice(_position, state.position);
|
|
5102
|
-
if (!_hasOwnProperty.call(state.anchorMap, alias))
|
|
5355
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
5103
5356
|
throwError(state, 'unidentified alias "' + alias + '"');
|
|
5357
|
+
}
|
|
5104
5358
|
state.result = state.anchorMap[alias];
|
|
5105
5359
|
skipSeparationSpace(state, true, -1);
|
|
5106
5360
|
return true;
|
|
@@ -5128,14 +5382,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5128
5382
|
let atNewLine = false;
|
|
5129
5383
|
let hasContent = false;
|
|
5130
5384
|
let propertyStart = null;
|
|
5131
|
-
let
|
|
5385
|
+
let type2;
|
|
5132
5386
|
let flowIndent;
|
|
5133
5387
|
let blockIndent;
|
|
5134
|
-
if (state.depth >= state.maxDepth)
|
|
5388
|
+
if (state.depth >= state.maxDepth) {
|
|
5135
5389
|
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
5390
|
+
}
|
|
5136
5391
|
state.depth += 1;
|
|
5137
|
-
if (state.listener !== null)
|
|
5392
|
+
if (state.listener !== null) {
|
|
5138
5393
|
state.listener("open", state);
|
|
5394
|
+
}
|
|
5139
5395
|
state.tag = null;
|
|
5140
5396
|
state.anchor = null;
|
|
5141
5397
|
state.kind = null;
|
|
@@ -5144,110 +5400,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5144
5400
|
if (allowToSeek) {
|
|
5145
5401
|
if (skipSeparationSpace(state, true, -1)) {
|
|
5146
5402
|
atNewLine = true;
|
|
5147
|
-
if (state.lineIndent > parentIndent)
|
|
5403
|
+
if (state.lineIndent > parentIndent) {
|
|
5148
5404
|
indentStatus = 1;
|
|
5149
|
-
else if (state.lineIndent === parentIndent)
|
|
5405
|
+
} else if (state.lineIndent === parentIndent) {
|
|
5150
5406
|
indentStatus = 0;
|
|
5151
|
-
else if (state.lineIndent < parentIndent)
|
|
5407
|
+
} else if (state.lineIndent < parentIndent) {
|
|
5152
5408
|
indentStatus = -1;
|
|
5409
|
+
}
|
|
5153
5410
|
}
|
|
5154
5411
|
}
|
|
5155
|
-
if (indentStatus === 1)
|
|
5412
|
+
if (indentStatus === 1) {
|
|
5156
5413
|
while (true) {
|
|
5157
5414
|
const ch = state.input.charCodeAt(state.position);
|
|
5158
5415
|
const propertyState = snapshotState(state);
|
|
5159
|
-
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
|
|
5416
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
5160
5417
|
break;
|
|
5161
|
-
|
|
5418
|
+
}
|
|
5419
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
5162
5420
|
break;
|
|
5163
|
-
|
|
5421
|
+
}
|
|
5422
|
+
if (propertyStart === null) {
|
|
5164
5423
|
propertyStart = propertyState;
|
|
5424
|
+
}
|
|
5165
5425
|
if (skipSeparationSpace(state, true, -1)) {
|
|
5166
5426
|
atNewLine = true;
|
|
5167
5427
|
allowBlockCollections = allowBlockStyles;
|
|
5168
|
-
if (state.lineIndent > parentIndent)
|
|
5428
|
+
if (state.lineIndent > parentIndent) {
|
|
5169
5429
|
indentStatus = 1;
|
|
5170
|
-
else if (state.lineIndent === parentIndent)
|
|
5430
|
+
} else if (state.lineIndent === parentIndent) {
|
|
5171
5431
|
indentStatus = 0;
|
|
5172
|
-
else if (state.lineIndent < parentIndent)
|
|
5432
|
+
} else if (state.lineIndent < parentIndent) {
|
|
5173
5433
|
indentStatus = -1;
|
|
5174
|
-
|
|
5434
|
+
}
|
|
5435
|
+
} else {
|
|
5175
5436
|
allowBlockCollections = false;
|
|
5437
|
+
}
|
|
5176
5438
|
}
|
|
5177
|
-
|
|
5439
|
+
}
|
|
5440
|
+
if (allowBlockCollections) {
|
|
5178
5441
|
allowBlockCollections = atNewLine || allowCompact;
|
|
5442
|
+
}
|
|
5179
5443
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
5180
|
-
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
|
|
5444
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
5181
5445
|
flowIndent = parentIndent;
|
|
5182
|
-
else
|
|
5446
|
+
} else {
|
|
5183
5447
|
flowIndent = parentIndent + 1;
|
|
5448
|
+
}
|
|
5184
5449
|
blockIndent = state.position - state.lineStart;
|
|
5185
|
-
if (indentStatus === 1)
|
|
5186
|
-
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
|
|
5450
|
+
if (indentStatus === 1) {
|
|
5451
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
5187
5452
|
hasContent = true;
|
|
5188
|
-
else {
|
|
5453
|
+
} else {
|
|
5189
5454
|
const ch = state.input.charCodeAt(state.position);
|
|
5190
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
|
|
5455
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
5191
5456
|
hasContent = true;
|
|
5192
|
-
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
|
|
5457
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
5193
5458
|
hasContent = true;
|
|
5194
|
-
else if (readAlias(state)) {
|
|
5459
|
+
} else if (readAlias(state)) {
|
|
5195
5460
|
hasContent = true;
|
|
5196
|
-
if (state.tag !== null || state.anchor !== null)
|
|
5461
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
5197
5462
|
throwError(state, "alias node should not have any properties");
|
|
5463
|
+
}
|
|
5198
5464
|
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
5199
5465
|
hasContent = true;
|
|
5200
|
-
if (state.tag === null)
|
|
5466
|
+
if (state.tag === null) {
|
|
5201
5467
|
state.tag = "?";
|
|
5468
|
+
}
|
|
5202
5469
|
}
|
|
5203
|
-
if (state.anchor !== null)
|
|
5470
|
+
if (state.anchor !== null) {
|
|
5204
5471
|
storeAnchor(state, state.anchor, state.result);
|
|
5472
|
+
}
|
|
5205
5473
|
}
|
|
5206
|
-
else if (indentStatus === 0)
|
|
5474
|
+
} else if (indentStatus === 0) {
|
|
5207
5475
|
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
5476
|
+
}
|
|
5208
5477
|
}
|
|
5209
5478
|
if (state.tag === null) {
|
|
5210
|
-
if (state.anchor !== null)
|
|
5479
|
+
if (state.anchor !== null) {
|
|
5211
5480
|
storeAnchor(state, state.anchor, state.result);
|
|
5481
|
+
}
|
|
5212
5482
|
} else if (state.tag === "?") {
|
|
5213
|
-
if (state.result !== null && state.kind !== "scalar")
|
|
5483
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
5214
5484
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
5485
|
+
}
|
|
5215
5486
|
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
5216
|
-
|
|
5217
|
-
if (
|
|
5218
|
-
state.result =
|
|
5219
|
-
state.tag =
|
|
5220
|
-
if (state.anchor !== null)
|
|
5487
|
+
type2 = state.implicitTypes[typeIndex];
|
|
5488
|
+
if (type2.resolve(state.result)) {
|
|
5489
|
+
state.result = type2.construct(state.result);
|
|
5490
|
+
state.tag = type2.tag;
|
|
5491
|
+
if (state.anchor !== null) {
|
|
5221
5492
|
storeAnchor(state, state.anchor, state.result);
|
|
5493
|
+
}
|
|
5222
5494
|
break;
|
|
5223
5495
|
}
|
|
5224
5496
|
}
|
|
5225
5497
|
} else if (state.tag !== "!") {
|
|
5226
|
-
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
|
|
5227
|
-
|
|
5228
|
-
else {
|
|
5229
|
-
|
|
5498
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
5499
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
5500
|
+
} else {
|
|
5501
|
+
type2 = null;
|
|
5230
5502
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
5231
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
|
|
5503
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
5232
5504
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
5233
|
-
|
|
5505
|
+
type2 = typeList[typeIndex];
|
|
5234
5506
|
break;
|
|
5235
5507
|
}
|
|
5508
|
+
}
|
|
5236
5509
|
}
|
|
5237
|
-
if (!
|
|
5510
|
+
if (!type2) {
|
|
5238
5511
|
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5512
|
+
}
|
|
5513
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
5514
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
5515
|
+
}
|
|
5516
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
5242
5517
|
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
5243
|
-
else {
|
|
5244
|
-
state.result =
|
|
5245
|
-
if (state.anchor !== null)
|
|
5518
|
+
} else {
|
|
5519
|
+
state.result = type2.construct(state.result, state.tag);
|
|
5520
|
+
if (state.anchor !== null) {
|
|
5246
5521
|
storeAnchor(state, state.anchor, state.result);
|
|
5522
|
+
}
|
|
5247
5523
|
}
|
|
5248
5524
|
}
|
|
5249
|
-
if (state.listener !== null)
|
|
5525
|
+
if (state.listener !== null) {
|
|
5250
5526
|
state.listener("close", state);
|
|
5527
|
+
}
|
|
5251
5528
|
state.depth -= 1;
|
|
5252
5529
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
5253
5530
|
}
|
|
@@ -5257,55 +5534,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5257
5534
|
let ch;
|
|
5258
5535
|
state.version = null;
|
|
5259
5536
|
state.checkLineBreaks = state.legacy;
|
|
5260
|
-
state.tagMap = Object.create(null);
|
|
5261
|
-
state.anchorMap = Object.create(null);
|
|
5537
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
5538
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
5262
5539
|
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
5263
5540
|
skipSeparationSpace(state, true, -1);
|
|
5264
5541
|
ch = state.input.charCodeAt(state.position);
|
|
5265
|
-
if (state.lineIndent > 0 || ch !== 37)
|
|
5542
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
5266
5543
|
break;
|
|
5544
|
+
}
|
|
5267
5545
|
hasDirectives = true;
|
|
5268
5546
|
ch = state.input.charCodeAt(++state.position);
|
|
5269
5547
|
let _position = state.position;
|
|
5270
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
5548
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
5271
5549
|
ch = state.input.charCodeAt(++state.position);
|
|
5550
|
+
}
|
|
5272
5551
|
const directiveName = state.input.slice(_position, state.position);
|
|
5273
5552
|
const directiveArgs = [];
|
|
5274
|
-
if (directiveName.length < 1)
|
|
5553
|
+
if (directiveName.length < 1) {
|
|
5275
5554
|
throwError(state, "directive name must not be less than one character in length");
|
|
5555
|
+
}
|
|
5276
5556
|
while (ch !== 0) {
|
|
5277
|
-
while (isWhiteSpace(ch))
|
|
5557
|
+
while (isWhiteSpace(ch)) {
|
|
5278
5558
|
ch = state.input.charCodeAt(++state.position);
|
|
5559
|
+
}
|
|
5279
5560
|
if (ch === 35) {
|
|
5280
|
-
do
|
|
5561
|
+
do {
|
|
5281
5562
|
ch = state.input.charCodeAt(++state.position);
|
|
5282
|
-
while (ch !== 0 && !isEol(ch));
|
|
5563
|
+
} while (ch !== 0 && !isEol(ch));
|
|
5283
5564
|
break;
|
|
5284
5565
|
}
|
|
5285
5566
|
if (isEol(ch))
|
|
5286
5567
|
break;
|
|
5287
5568
|
_position = state.position;
|
|
5288
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
5569
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
5289
5570
|
ch = state.input.charCodeAt(++state.position);
|
|
5571
|
+
}
|
|
5290
5572
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
5291
5573
|
}
|
|
5292
5574
|
if (ch !== 0)
|
|
5293
5575
|
readLineBreak(state);
|
|
5294
|
-
if (_hasOwnProperty.call(directiveHandlers, directiveName))
|
|
5576
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
5295
5577
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
5296
|
-
else
|
|
5578
|
+
} else {
|
|
5297
5579
|
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
5580
|
+
}
|
|
5298
5581
|
}
|
|
5299
5582
|
skipSeparationSpace(state, true, -1);
|
|
5300
5583
|
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
5301
5584
|
state.position += 3;
|
|
5302
5585
|
skipSeparationSpace(state, true, -1);
|
|
5303
|
-
} else if (hasDirectives)
|
|
5586
|
+
} else if (hasDirectives) {
|
|
5304
5587
|
throwError(state, "directives end mark is expected");
|
|
5588
|
+
}
|
|
5305
5589
|
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
5306
5590
|
skipSeparationSpace(state, true, -1);
|
|
5307
|
-
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
|
|
5591
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
5308
5592
|
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
5593
|
+
}
|
|
5309
5594
|
state.documents.push(state.result);
|
|
5310
5595
|
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
5311
5596
|
if (state.input.charCodeAt(state.position) === 46) {
|
|
@@ -5314,18 +5599,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5314
5599
|
}
|
|
5315
5600
|
return;
|
|
5316
5601
|
}
|
|
5317
|
-
if (state.position < state.length - 1)
|
|
5602
|
+
if (state.position < state.length - 1) {
|
|
5318
5603
|
throwError(state, "end of the stream or a document separator is expected");
|
|
5604
|
+
}
|
|
5319
5605
|
}
|
|
5320
5606
|
function loadDocuments(input, options) {
|
|
5321
5607
|
input = String(input);
|
|
5322
5608
|
options = options || {};
|
|
5323
5609
|
if (input.length !== 0) {
|
|
5324
|
-
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
|
|
5610
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
5325
5611
|
input += `
|
|
5326
5612
|
`;
|
|
5327
|
-
|
|
5613
|
+
}
|
|
5614
|
+
if (input.charCodeAt(0) === 65279) {
|
|
5328
5615
|
input = input.slice(1);
|
|
5616
|
+
}
|
|
5329
5617
|
}
|
|
5330
5618
|
const state = new State(input, options);
|
|
5331
5619
|
const nullpos = input.indexOf("\x00");
|
|
@@ -5338,64 +5626,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5338
5626
|
state.lineIndent += 1;
|
|
5339
5627
|
state.position += 1;
|
|
5340
5628
|
}
|
|
5341
|
-
while (state.position < state.length - 1)
|
|
5629
|
+
while (state.position < state.length - 1) {
|
|
5342
5630
|
readDocument(state);
|
|
5631
|
+
}
|
|
5343
5632
|
return state.documents;
|
|
5344
5633
|
}
|
|
5345
|
-
function
|
|
5634
|
+
function loadAll2(input, iterator, options) {
|
|
5346
5635
|
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
5347
5636
|
options = iterator;
|
|
5348
5637
|
iterator = null;
|
|
5349
5638
|
}
|
|
5350
5639
|
const documents = loadDocuments(input, options);
|
|
5351
|
-
if (typeof iterator !== "function")
|
|
5640
|
+
if (typeof iterator !== "function") {
|
|
5352
5641
|
return documents;
|
|
5353
|
-
|
|
5642
|
+
}
|
|
5643
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
5354
5644
|
iterator(documents[index]);
|
|
5645
|
+
}
|
|
5355
5646
|
}
|
|
5356
|
-
function
|
|
5647
|
+
function load2(input, options) {
|
|
5357
5648
|
const documents = loadDocuments(input, options);
|
|
5358
|
-
if (documents.length === 0)
|
|
5649
|
+
if (documents.length === 0) {
|
|
5359
5650
|
return;
|
|
5360
|
-
else if (documents.length === 1)
|
|
5651
|
+
} else if (documents.length === 1) {
|
|
5361
5652
|
return documents[0];
|
|
5362
|
-
|
|
5653
|
+
}
|
|
5654
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
5363
5655
|
}
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5656
|
+
loader.loadAll = loadAll2;
|
|
5657
|
+
loader.load = load2;
|
|
5658
|
+
return loader;
|
|
5659
|
+
}
|
|
5660
|
+
var dumper = {};
|
|
5661
|
+
var hasRequiredDumper;
|
|
5662
|
+
function requireDumper() {
|
|
5663
|
+
if (hasRequiredDumper)
|
|
5664
|
+
return dumper;
|
|
5665
|
+
hasRequiredDumper = 1;
|
|
5666
|
+
const common2 = requireCommon();
|
|
5667
|
+
const YAMLException2 = requireException();
|
|
5668
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
5669
|
+
const _toString = Object.prototype.toString;
|
|
5670
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5671
|
+
const CHAR_BOM = 65279;
|
|
5672
|
+
const CHAR_TAB = 9;
|
|
5673
|
+
const CHAR_LINE_FEED = 10;
|
|
5674
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
5675
|
+
const CHAR_SPACE = 32;
|
|
5676
|
+
const CHAR_EXCLAMATION = 33;
|
|
5677
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
5678
|
+
const CHAR_SHARP = 35;
|
|
5679
|
+
const CHAR_PERCENT = 37;
|
|
5680
|
+
const CHAR_AMPERSAND = 38;
|
|
5681
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
5682
|
+
const CHAR_ASTERISK = 42;
|
|
5683
|
+
const CHAR_COMMA = 44;
|
|
5684
|
+
const CHAR_MINUS = 45;
|
|
5685
|
+
const CHAR_COLON = 58;
|
|
5686
|
+
const CHAR_EQUALS = 61;
|
|
5687
|
+
const CHAR_GREATER_THAN = 62;
|
|
5688
|
+
const CHAR_QUESTION = 63;
|
|
5689
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
5690
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
5691
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
5692
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
5693
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
5694
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
5695
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
5696
|
+
const ESCAPE_SEQUENCES = {};
|
|
5399
5697
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
5400
5698
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
5401
5699
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -5411,7 +5709,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5411
5709
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
5412
5710
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
5413
5711
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
5414
|
-
|
|
5712
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
5415
5713
|
"y",
|
|
5416
5714
|
"Y",
|
|
5417
5715
|
"yes",
|
|
@@ -5429,20 +5727,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5429
5727
|
"Off",
|
|
5430
5728
|
"OFF"
|
|
5431
5729
|
];
|
|
5432
|
-
|
|
5433
|
-
function compileStyleMap(
|
|
5434
|
-
if (
|
|
5730
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
5731
|
+
function compileStyleMap(schema2, map2) {
|
|
5732
|
+
if (map2 === null)
|
|
5435
5733
|
return {};
|
|
5436
5734
|
const result = {};
|
|
5437
|
-
const keys = Object.keys(
|
|
5735
|
+
const keys = Object.keys(map2);
|
|
5438
5736
|
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
5439
5737
|
let tag = keys[index];
|
|
5440
|
-
let style = String(
|
|
5441
|
-
if (tag.slice(0, 2) === "!!")
|
|
5738
|
+
let style = String(map2[tag]);
|
|
5739
|
+
if (tag.slice(0, 2) === "!!") {
|
|
5442
5740
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5741
|
+
}
|
|
5742
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
5743
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
5744
|
+
style = type2.styleAliases[style];
|
|
5745
|
+
}
|
|
5446
5746
|
result[tag] = style;
|
|
5447
5747
|
}
|
|
5448
5748
|
return result;
|
|
@@ -5460,18 +5760,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5460
5760
|
} else if (character <= 4294967295) {
|
|
5461
5761
|
handle = "U";
|
|
5462
5762
|
length = 8;
|
|
5463
|
-
} else
|
|
5464
|
-
throw new
|
|
5465
|
-
|
|
5763
|
+
} else {
|
|
5764
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
5765
|
+
}
|
|
5766
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
5466
5767
|
}
|
|
5467
|
-
|
|
5468
|
-
|
|
5768
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
5769
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
5469
5770
|
function State(options) {
|
|
5470
|
-
this.schema = options["schema"] ||
|
|
5771
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
5471
5772
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
5472
5773
|
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
5473
5774
|
this.skipInvalid = options["skipInvalid"] || false;
|
|
5474
|
-
this.flowLevel =
|
|
5775
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
5475
5776
|
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
5476
5777
|
this.sortKeys = options["sortKeys"] || false;
|
|
5477
5778
|
this.lineWidth = options["lineWidth"] || 80;
|
|
@@ -5489,7 +5790,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5489
5790
|
this.usedDuplicates = null;
|
|
5490
5791
|
}
|
|
5491
5792
|
function indentString(string, spaces) {
|
|
5492
|
-
const ind =
|
|
5793
|
+
const ind = common2.repeat(" ", spaces);
|
|
5493
5794
|
let position = 0;
|
|
5494
5795
|
let result = "";
|
|
5495
5796
|
const length = string.length;
|
|
@@ -5513,12 +5814,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5513
5814
|
}
|
|
5514
5815
|
function generateNextLine(state, level) {
|
|
5515
5816
|
return `
|
|
5516
|
-
` +
|
|
5817
|
+
` + common2.repeat(" ", state.indent * level);
|
|
5517
5818
|
}
|
|
5518
|
-
function testImplicitResolving(state,
|
|
5519
|
-
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
|
|
5520
|
-
|
|
5819
|
+
function testImplicitResolving(state, str2) {
|
|
5820
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
5821
|
+
const type2 = state.implicitTypes[index];
|
|
5822
|
+
if (type2.resolve(str2)) {
|
|
5521
5823
|
return true;
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5522
5826
|
return false;
|
|
5523
5827
|
}
|
|
5524
5828
|
function isWhitespace(c) {
|
|
@@ -5546,19 +5850,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5546
5850
|
let second;
|
|
5547
5851
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
5548
5852
|
second = string.charCodeAt(pos + 1);
|
|
5549
|
-
if (second >= 56320 && second <= 57343)
|
|
5853
|
+
if (second >= 56320 && second <= 57343) {
|
|
5550
5854
|
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
5855
|
+
}
|
|
5551
5856
|
}
|
|
5552
5857
|
return first;
|
|
5553
5858
|
}
|
|
5554
5859
|
function needIndentIndicator(string) {
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5860
|
+
const leadingSpaceRe = /^\n* /;
|
|
5861
|
+
return leadingSpaceRe.test(string);
|
|
5862
|
+
}
|
|
5863
|
+
const STYLE_PLAIN = 1;
|
|
5864
|
+
const STYLE_SINGLE = 2;
|
|
5865
|
+
const STYLE_LITERAL = 3;
|
|
5866
|
+
const STYLE_FOLDED = 4;
|
|
5867
|
+
const STYLE_DOUBLE = 5;
|
|
5562
5868
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
5563
5869
|
let i;
|
|
5564
5870
|
let char = 0;
|
|
@@ -5568,15 +5874,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5568
5874
|
const shouldTrackWidth = lineWidth !== -1;
|
|
5569
5875
|
let previousLineBreak = -1;
|
|
5570
5876
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
5571
|
-
if (singleLineOnly || forceQuotes)
|
|
5877
|
+
if (singleLineOnly || forceQuotes) {
|
|
5572
5878
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
5573
5879
|
char = codePointAt(string, i);
|
|
5574
|
-
if (!isPrintable(char))
|
|
5880
|
+
if (!isPrintable(char)) {
|
|
5575
5881
|
return STYLE_DOUBLE;
|
|
5882
|
+
}
|
|
5576
5883
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
5577
5884
|
prevChar = char;
|
|
5578
5885
|
}
|
|
5579
|
-
else {
|
|
5886
|
+
} else {
|
|
5580
5887
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
5581
5888
|
char = codePointAt(string, i);
|
|
5582
5889
|
if (char === CHAR_LINE_FEED) {
|
|
@@ -5585,31 +5892,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5585
5892
|
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
5586
5893
|
previousLineBreak = i;
|
|
5587
5894
|
}
|
|
5588
|
-
} else if (!isPrintable(char))
|
|
5895
|
+
} else if (!isPrintable(char)) {
|
|
5589
5896
|
return STYLE_DOUBLE;
|
|
5897
|
+
}
|
|
5590
5898
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
5591
5899
|
prevChar = char;
|
|
5592
5900
|
}
|
|
5593
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
5901
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
5594
5902
|
}
|
|
5595
5903
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
5596
|
-
if (plain && !forceQuotes && !testAmbiguousType(string))
|
|
5904
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
5597
5905
|
return STYLE_PLAIN;
|
|
5906
|
+
}
|
|
5598
5907
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
5599
5908
|
}
|
|
5600
|
-
if (indentPerLevel > 9 && needIndentIndicator(string))
|
|
5909
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
5601
5910
|
return STYLE_DOUBLE;
|
|
5602
|
-
|
|
5911
|
+
}
|
|
5912
|
+
if (!forceQuotes) {
|
|
5603
5913
|
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
5914
|
+
}
|
|
5604
5915
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
5605
5916
|
}
|
|
5606
5917
|
function writeScalar(state, string, level, iskey, inblock) {
|
|
5607
5918
|
state.dump = function() {
|
|
5608
|
-
if (string.length === 0)
|
|
5919
|
+
if (string.length === 0) {
|
|
5609
5920
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
5921
|
+
}
|
|
5610
5922
|
if (!state.noCompatMode) {
|
|
5611
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
|
|
5923
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
5612
5924
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
5925
|
+
}
|
|
5613
5926
|
}
|
|
5614
5927
|
const indent = state.indent * Math.max(1, level);
|
|
5615
5928
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
@@ -5627,9 +5940,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5627
5940
|
case STYLE_FOLDED:
|
|
5628
5941
|
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
5629
5942
|
case STYLE_DOUBLE:
|
|
5630
|
-
return '"' + escapeString(string
|
|
5943
|
+
return '"' + escapeString(string) + '"';
|
|
5631
5944
|
default:
|
|
5632
|
-
throw new
|
|
5945
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
5633
5946
|
}
|
|
5634
5947
|
}();
|
|
5635
5948
|
}
|
|
@@ -5637,9 +5950,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5637
5950
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
5638
5951
|
const clip = string[string.length - 1] === `
|
|
5639
5952
|
`;
|
|
5640
|
-
|
|
5953
|
+
const keep = clip && (string[string.length - 2] === `
|
|
5641
5954
|
` || string === `
|
|
5642
|
-
`)
|
|
5955
|
+
`);
|
|
5956
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
5957
|
+
return indentIndicator + chomp + `
|
|
5643
5958
|
`;
|
|
5644
5959
|
}
|
|
5645
5960
|
function dropEndingNewline(string) {
|
|
@@ -5691,11 +6006,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5691
6006
|
}
|
|
5692
6007
|
result += `
|
|
5693
6008
|
`;
|
|
5694
|
-
if (line.length - start > width && curr > start)
|
|
6009
|
+
if (line.length - start > width && curr > start) {
|
|
5695
6010
|
result += line.slice(start, curr) + `
|
|
5696
6011
|
` + line.slice(curr + 1);
|
|
5697
|
-
else
|
|
6012
|
+
} else {
|
|
5698
6013
|
result += line.slice(start);
|
|
6014
|
+
}
|
|
5699
6015
|
return result.slice(1);
|
|
5700
6016
|
}
|
|
5701
6017
|
function escapeString(string) {
|
|
@@ -5708,8 +6024,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5708
6024
|
result += string[i];
|
|
5709
6025
|
if (char >= 65536)
|
|
5710
6026
|
result += string[i + 1];
|
|
5711
|
-
} else
|
|
6027
|
+
} else {
|
|
5712
6028
|
result += escapeSeq || encodeHex(char);
|
|
6029
|
+
}
|
|
5713
6030
|
}
|
|
5714
6031
|
return result;
|
|
5715
6032
|
}
|
|
@@ -5718,8 +6035,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5718
6035
|
const _tag = state.tag;
|
|
5719
6036
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
5720
6037
|
let value = object[index];
|
|
5721
|
-
if (state.replacer)
|
|
6038
|
+
if (state.replacer) {
|
|
5722
6039
|
value = state.replacer.call(object, String(index), value);
|
|
6040
|
+
}
|
|
5723
6041
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
5724
6042
|
if (_result !== "")
|
|
5725
6043
|
_result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -5734,15 +6052,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5734
6052
|
const _tag = state.tag;
|
|
5735
6053
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
5736
6054
|
let value = object[index];
|
|
5737
|
-
if (state.replacer)
|
|
6055
|
+
if (state.replacer) {
|
|
5738
6056
|
value = state.replacer.call(object, String(index), value);
|
|
6057
|
+
}
|
|
5739
6058
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
5740
|
-
if (!compact || _result !== "")
|
|
6059
|
+
if (!compact || _result !== "") {
|
|
5741
6060
|
_result += generateNextLine(state, level);
|
|
5742
|
-
|
|
6061
|
+
}
|
|
6062
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
5743
6063
|
_result += "-";
|
|
5744
|
-
else
|
|
6064
|
+
} else {
|
|
5745
6065
|
_result += "- ";
|
|
6066
|
+
}
|
|
5746
6067
|
_result += state.dump;
|
|
5747
6068
|
}
|
|
5748
6069
|
}
|
|
@@ -5761,15 +6082,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5761
6082
|
pairBuffer += '"';
|
|
5762
6083
|
const objectKey = objectKeyList[index];
|
|
5763
6084
|
let objectValue = object[objectKey];
|
|
5764
|
-
if (state.replacer)
|
|
6085
|
+
if (state.replacer) {
|
|
5765
6086
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
5766
|
-
|
|
6087
|
+
}
|
|
6088
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
5767
6089
|
continue;
|
|
6090
|
+
}
|
|
5768
6091
|
if (state.dump.length > 1024)
|
|
5769
6092
|
pairBuffer += "? ";
|
|
5770
6093
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
5771
|
-
if (!writeNode(state, level, objectValue, false, false))
|
|
6094
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
5772
6095
|
continue;
|
|
6096
|
+
}
|
|
5773
6097
|
pairBuffer += state.dump;
|
|
5774
6098
|
_result += pairBuffer;
|
|
5775
6099
|
}
|
|
@@ -5780,37 +6104,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5780
6104
|
let _result = "";
|
|
5781
6105
|
const _tag = state.tag;
|
|
5782
6106
|
const objectKeyList = Object.keys(object);
|
|
5783
|
-
if (state.sortKeys === true)
|
|
6107
|
+
if (state.sortKeys === true) {
|
|
5784
6108
|
objectKeyList.sort();
|
|
5785
|
-
else if (typeof state.sortKeys === "function")
|
|
6109
|
+
} else if (typeof state.sortKeys === "function") {
|
|
5786
6110
|
objectKeyList.sort(state.sortKeys);
|
|
5787
|
-
else if (state.sortKeys)
|
|
5788
|
-
throw new
|
|
6111
|
+
} else if (state.sortKeys) {
|
|
6112
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
6113
|
+
}
|
|
5789
6114
|
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
5790
6115
|
let pairBuffer = "";
|
|
5791
|
-
if (!compact || _result !== "")
|
|
6116
|
+
if (!compact || _result !== "") {
|
|
5792
6117
|
pairBuffer += generateNextLine(state, level);
|
|
6118
|
+
}
|
|
5793
6119
|
const objectKey = objectKeyList[index];
|
|
5794
6120
|
let objectValue = object[objectKey];
|
|
5795
|
-
if (state.replacer)
|
|
6121
|
+
if (state.replacer) {
|
|
5796
6122
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
5797
|
-
|
|
6123
|
+
}
|
|
6124
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
5798
6125
|
continue;
|
|
6126
|
+
}
|
|
5799
6127
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
5800
|
-
if (explicitPair)
|
|
5801
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
|
|
6128
|
+
if (explicitPair) {
|
|
6129
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
5802
6130
|
pairBuffer += "?";
|
|
5803
|
-
else
|
|
6131
|
+
} else {
|
|
5804
6132
|
pairBuffer += "? ";
|
|
6133
|
+
}
|
|
6134
|
+
}
|
|
5805
6135
|
pairBuffer += state.dump;
|
|
5806
|
-
if (explicitPair)
|
|
6136
|
+
if (explicitPair) {
|
|
5807
6137
|
pairBuffer += generateNextLine(state, level);
|
|
5808
|
-
|
|
6138
|
+
}
|
|
6139
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
5809
6140
|
continue;
|
|
5810
|
-
|
|
6141
|
+
}
|
|
6142
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
5811
6143
|
pairBuffer += ":";
|
|
5812
|
-
else
|
|
6144
|
+
} else {
|
|
5813
6145
|
pairBuffer += ": ";
|
|
6146
|
+
}
|
|
5814
6147
|
pairBuffer += state.dump;
|
|
5815
6148
|
_result += pairBuffer;
|
|
5816
6149
|
}
|
|
@@ -5820,24 +6153,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5820
6153
|
function detectType(state, object, explicit) {
|
|
5821
6154
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
5822
6155
|
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
5823
|
-
const
|
|
5824
|
-
if ((
|
|
5825
|
-
if (explicit)
|
|
5826
|
-
if (
|
|
5827
|
-
state.tag =
|
|
5828
|
-
else
|
|
5829
|
-
state.tag =
|
|
5830
|
-
|
|
6156
|
+
const type2 = typeList[index];
|
|
6157
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
6158
|
+
if (explicit) {
|
|
6159
|
+
if (type2.multi && type2.representName) {
|
|
6160
|
+
state.tag = type2.representName(object);
|
|
6161
|
+
} else {
|
|
6162
|
+
state.tag = type2.tag;
|
|
6163
|
+
}
|
|
6164
|
+
} else {
|
|
5831
6165
|
state.tag = "?";
|
|
5832
|
-
|
|
5833
|
-
|
|
6166
|
+
}
|
|
6167
|
+
if (type2.represent) {
|
|
6168
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
5834
6169
|
let _result;
|
|
5835
|
-
if (_toString.call(
|
|
5836
|
-
_result =
|
|
5837
|
-
else if (_hasOwnProperty.call(
|
|
5838
|
-
_result =
|
|
5839
|
-
else
|
|
5840
|
-
throw new
|
|
6170
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
6171
|
+
_result = type2.represent(object, style);
|
|
6172
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
6173
|
+
_result = type2.represent[style](object, style);
|
|
6174
|
+
} else {
|
|
6175
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
6176
|
+
}
|
|
5841
6177
|
state.dump = _result;
|
|
5842
6178
|
}
|
|
5843
6179
|
return true;
|
|
@@ -5848,67 +6184,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5848
6184
|
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
5849
6185
|
state.tag = null;
|
|
5850
6186
|
state.dump = object;
|
|
5851
|
-
if (!detectType(state, object, false))
|
|
6187
|
+
if (!detectType(state, object, false)) {
|
|
5852
6188
|
detectType(state, object, true);
|
|
5853
|
-
|
|
6189
|
+
}
|
|
6190
|
+
const type2 = _toString.call(state.dump);
|
|
5854
6191
|
const inblock = block;
|
|
5855
|
-
if (block)
|
|
6192
|
+
if (block) {
|
|
5856
6193
|
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
5857
|
-
|
|
6194
|
+
}
|
|
6195
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
5858
6196
|
let duplicateIndex;
|
|
5859
6197
|
let duplicate;
|
|
5860
6198
|
if (objectOrArray) {
|
|
5861
6199
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
5862
6200
|
duplicate = duplicateIndex !== -1;
|
|
5863
6201
|
}
|
|
5864
|
-
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
|
|
6202
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
5865
6203
|
compact = false;
|
|
5866
|
-
|
|
6204
|
+
}
|
|
6205
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
5867
6206
|
state.dump = "*ref_" + duplicateIndex;
|
|
5868
|
-
else {
|
|
5869
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
|
|
6207
|
+
} else {
|
|
6208
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
5870
6209
|
state.usedDuplicates[duplicateIndex] = true;
|
|
5871
|
-
|
|
6210
|
+
}
|
|
6211
|
+
if (type2 === "[object Object]") {
|
|
5872
6212
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
5873
6213
|
writeBlockMapping(state, level, state.dump, compact);
|
|
5874
|
-
if (duplicate)
|
|
6214
|
+
if (duplicate) {
|
|
5875
6215
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6216
|
+
}
|
|
5876
6217
|
} else {
|
|
5877
6218
|
writeFlowMapping(state, level, state.dump);
|
|
5878
|
-
if (duplicate)
|
|
6219
|
+
if (duplicate) {
|
|
5879
6220
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6221
|
+
}
|
|
5880
6222
|
}
|
|
5881
|
-
else if (
|
|
6223
|
+
} else if (type2 === "[object Array]") {
|
|
5882
6224
|
if (block && state.dump.length !== 0) {
|
|
5883
|
-
if (state.noArrayIndent && !isblockseq && level > 0)
|
|
6225
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
5884
6226
|
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
5885
|
-
else
|
|
6227
|
+
} else {
|
|
5886
6228
|
writeBlockSequence(state, level, state.dump, compact);
|
|
5887
|
-
|
|
6229
|
+
}
|
|
6230
|
+
if (duplicate) {
|
|
5888
6231
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6232
|
+
}
|
|
5889
6233
|
} else {
|
|
5890
6234
|
writeFlowSequence(state, level, state.dump);
|
|
5891
|
-
if (duplicate)
|
|
6235
|
+
if (duplicate) {
|
|
5892
6236
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6237
|
+
}
|
|
5893
6238
|
}
|
|
5894
|
-
else if (
|
|
5895
|
-
if (state.tag !== "?")
|
|
6239
|
+
} else if (type2 === "[object String]") {
|
|
6240
|
+
if (state.tag !== "?") {
|
|
5896
6241
|
writeScalar(state, state.dump, level, iskey, inblock);
|
|
5897
|
-
|
|
6242
|
+
}
|
|
6243
|
+
} else if (type2 === "[object Undefined]") {
|
|
5898
6244
|
return false;
|
|
5899
|
-
else {
|
|
6245
|
+
} else {
|
|
5900
6246
|
if (state.skipInvalid)
|
|
5901
6247
|
return false;
|
|
5902
|
-
throw new
|
|
6248
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
5903
6249
|
}
|
|
5904
6250
|
if (state.tag !== null && state.tag !== "?") {
|
|
5905
6251
|
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
5906
|
-
if (state.tag[0] === "!")
|
|
6252
|
+
if (state.tag[0] === "!") {
|
|
5907
6253
|
tagStr = "!" + tagStr;
|
|
5908
|
-
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
|
|
6254
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
5909
6255
|
tagStr = "!!" + tagStr.slice(18);
|
|
5910
|
-
else
|
|
6256
|
+
} else {
|
|
5911
6257
|
tagStr = "!<" + tagStr + ">";
|
|
6258
|
+
}
|
|
5912
6259
|
state.dump = tagStr + " " + state.dump;
|
|
5913
6260
|
}
|
|
5914
6261
|
}
|
|
@@ -5919,83 +6266,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
5919
6266
|
const duplicatesIndexes = [];
|
|
5920
6267
|
inspectNode(object, objects, duplicatesIndexes);
|
|
5921
6268
|
const length = duplicatesIndexes.length;
|
|
5922
|
-
for (let index = 0;index < length; index += 1)
|
|
6269
|
+
for (let index = 0;index < length; index += 1) {
|
|
5923
6270
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
6271
|
+
}
|
|
5924
6272
|
state.usedDuplicates = new Array(length);
|
|
5925
6273
|
}
|
|
5926
6274
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
5927
6275
|
if (object !== null && typeof object === "object") {
|
|
5928
6276
|
const index = objects.indexOf(object);
|
|
5929
6277
|
if (index !== -1) {
|
|
5930
|
-
if (duplicatesIndexes.indexOf(index) === -1)
|
|
6278
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
5931
6279
|
duplicatesIndexes.push(index);
|
|
6280
|
+
}
|
|
5932
6281
|
} else {
|
|
5933
6282
|
objects.push(object);
|
|
5934
|
-
if (Array.isArray(object))
|
|
5935
|
-
for (let i = 0, length = object.length;i < length; i += 1)
|
|
6283
|
+
if (Array.isArray(object)) {
|
|
6284
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
5936
6285
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
5937
|
-
|
|
6286
|
+
}
|
|
6287
|
+
} else {
|
|
5938
6288
|
const objectKeyList = Object.keys(object);
|
|
5939
|
-
for (let i = 0, length = objectKeyList.length;i < length; i += 1)
|
|
6289
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
5940
6290
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
6291
|
+
}
|
|
5941
6292
|
}
|
|
5942
6293
|
}
|
|
5943
6294
|
}
|
|
5944
6295
|
}
|
|
5945
|
-
function
|
|
6296
|
+
function dump2(input, options) {
|
|
5946
6297
|
options = options || {};
|
|
5947
6298
|
const state = new State(options);
|
|
5948
6299
|
if (!state.noRefs)
|
|
5949
6300
|
getDuplicateReferences(input, state);
|
|
5950
6301
|
let value = input;
|
|
5951
|
-
if (state.replacer)
|
|
6302
|
+
if (state.replacer) {
|
|
5952
6303
|
value = state.replacer.call({ "": value }, "", value);
|
|
6304
|
+
}
|
|
5953
6305
|
if (writeNode(state, 0, value, true, true))
|
|
5954
6306
|
return state.dump + `
|
|
5955
6307
|
`;
|
|
5956
6308
|
return "";
|
|
5957
6309
|
}
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
6310
|
+
dumper.dump = dump2;
|
|
6311
|
+
return dumper;
|
|
6312
|
+
}
|
|
6313
|
+
var hasRequiredJsYaml;
|
|
6314
|
+
function requireJsYaml() {
|
|
6315
|
+
if (hasRequiredJsYaml)
|
|
6316
|
+
return jsYaml;
|
|
6317
|
+
hasRequiredJsYaml = 1;
|
|
6318
|
+
const loader2 = requireLoader();
|
|
6319
|
+
const dumper2 = requireDumper();
|
|
5963
6320
|
function renamed(from, to) {
|
|
5964
6321
|
return function() {
|
|
5965
6322
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
5966
6323
|
};
|
|
5967
6324
|
}
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
binary:
|
|
5980
|
-
float:
|
|
5981
|
-
map:
|
|
6325
|
+
jsYaml.Type = requireType();
|
|
6326
|
+
jsYaml.Schema = requireSchema();
|
|
6327
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
6328
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
6329
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
6330
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
6331
|
+
jsYaml.load = loader2.load;
|
|
6332
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
6333
|
+
jsYaml.dump = dumper2.dump;
|
|
6334
|
+
jsYaml.YAMLException = requireException();
|
|
6335
|
+
jsYaml.types = {
|
|
6336
|
+
binary: requireBinary(),
|
|
6337
|
+
float: requireFloat(),
|
|
6338
|
+
map: requireMap(),
|
|
5982
6339
|
null: require_null(),
|
|
5983
|
-
pairs:
|
|
5984
|
-
set:
|
|
5985
|
-
timestamp:
|
|
5986
|
-
bool:
|
|
5987
|
-
int:
|
|
5988
|
-
merge:
|
|
5989
|
-
omap:
|
|
5990
|
-
seq:
|
|
5991
|
-
str:
|
|
6340
|
+
pairs: requirePairs(),
|
|
6341
|
+
set: requireSet(),
|
|
6342
|
+
timestamp: requireTimestamp(),
|
|
6343
|
+
bool: requireBool(),
|
|
6344
|
+
int: requireInt(),
|
|
6345
|
+
merge: requireMerge(),
|
|
6346
|
+
omap: requireOmap(),
|
|
6347
|
+
seq: requireSeq(),
|
|
6348
|
+
str: requireStr()
|
|
5992
6349
|
};
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
var
|
|
6350
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
6351
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
6352
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
6353
|
+
return jsYaml;
|
|
6354
|
+
}
|
|
6355
|
+
var jsYamlExports = requireJsYaml();
|
|
6356
|
+
var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
6357
|
+
var {
|
|
6358
|
+
Type,
|
|
6359
|
+
Schema,
|
|
6360
|
+
FAILSAFE_SCHEMA,
|
|
6361
|
+
JSON_SCHEMA,
|
|
6362
|
+
CORE_SCHEMA,
|
|
6363
|
+
DEFAULT_SCHEMA,
|
|
6364
|
+
load,
|
|
6365
|
+
loadAll,
|
|
6366
|
+
dump,
|
|
6367
|
+
YAMLException,
|
|
6368
|
+
types,
|
|
6369
|
+
safeLoad,
|
|
6370
|
+
safeLoadAll,
|
|
6371
|
+
safeDump
|
|
6372
|
+
} = yaml;
|
|
5999
6373
|
|
|
6000
6374
|
// ../../common/src/logger.ts
|
|
6001
6375
|
var logFilePathSlot = singleton("logFilePath");
|
|
@@ -6071,11 +6445,11 @@ class SimpleLogger {
|
|
|
6071
6445
|
const path3 = this.logFilePath || getGlobalLogFilePath();
|
|
6072
6446
|
if (!path3)
|
|
6073
6447
|
return;
|
|
6074
|
-
const
|
|
6448
|
+
const timestamp2 = new Date().toISOString();
|
|
6075
6449
|
this.pendingWrites = Promise.all([
|
|
6076
6450
|
this.pendingWrites,
|
|
6077
6451
|
this.pendingInit
|
|
6078
|
-
]).then(() => getFileSystem().appendFile(path3, `${
|
|
6452
|
+
]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
|
|
6079
6453
|
}
|
|
6080
6454
|
debug(message, ...args) {
|
|
6081
6455
|
if (this.level > 0 /* DEBUG */)
|
|
@@ -6469,10 +6843,10 @@ class LoggerTelemetryProvider {
|
|
|
6469
6843
|
success
|
|
6470
6844
|
})));
|
|
6471
6845
|
}
|
|
6472
|
-
async trackDependency(name,
|
|
6846
|
+
async trackDependency(name, type2, duration, success, properties) {
|
|
6473
6847
|
logger.debug(formatMessage("Dependency", name, this.enrich({
|
|
6474
6848
|
...properties,
|
|
6475
|
-
type,
|
|
6849
|
+
type: type2,
|
|
6476
6850
|
duration: `${duration}ms`,
|
|
6477
6851
|
success
|
|
6478
6852
|
})));
|
|
@@ -6705,7 +7079,7 @@ class TelemetryService {
|
|
|
6705
7079
|
throw error;
|
|
6706
7080
|
}
|
|
6707
7081
|
}
|
|
6708
|
-
async trackDependencyOperation(name,
|
|
7082
|
+
async trackDependencyOperation(name, type2, fn, properties) {
|
|
6709
7083
|
const parentContext = this.getCurrentContext();
|
|
6710
7084
|
if (!parentContext) {
|
|
6711
7085
|
throw new Error("trackDependencyOperation must be called within a trackRequest block.");
|
|
@@ -6720,13 +7094,13 @@ class TelemetryService {
|
|
|
6720
7094
|
const result = await this.contextStorage.run(childContext, fn);
|
|
6721
7095
|
const durationMs = performance.now() - startTime;
|
|
6722
7096
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
|
|
6723
|
-
await this.telemetryProvider.trackDependency(name,
|
|
7097
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
|
|
6724
7098
|
return result;
|
|
6725
7099
|
} catch (error) {
|
|
6726
7100
|
const durationMs = performance.now() - startTime;
|
|
6727
7101
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
6728
7102
|
const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
|
|
6729
|
-
await this.telemetryProvider.trackDependency(name,
|
|
7103
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
|
|
6730
7104
|
throw error;
|
|
6731
7105
|
}
|
|
6732
7106
|
}
|
|
@@ -6933,8 +7307,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
|
6933
7307
|
}
|
|
6934
7308
|
switch (format) {
|
|
6935
7309
|
case "json": {
|
|
6936
|
-
const
|
|
6937
|
-
logFn(asciiSafe ? escapeNonAscii(
|
|
7310
|
+
const json2 = JSON.stringify(data, null, 2);
|
|
7311
|
+
logFn(asciiSafe ? escapeNonAscii(json2) : json2);
|
|
6938
7312
|
break;
|
|
6939
7313
|
}
|
|
6940
7314
|
case "yaml":
|
|
@@ -7270,8 +7644,8 @@ var OutputFormatter;
|
|
|
7270
7644
|
const sink = getOutputSink();
|
|
7271
7645
|
const normalized = toPascalCaseData(data);
|
|
7272
7646
|
if (format === "json") {
|
|
7273
|
-
const
|
|
7274
|
-
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(
|
|
7647
|
+
const json2 = JSON.stringify(normalized);
|
|
7648
|
+
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
7275
7649
|
sink.writeErr(`${safe}
|
|
7276
7650
|
`);
|
|
7277
7651
|
} else {
|
|
@@ -7524,8 +7898,8 @@ function redactValueDetectors(value) {
|
|
|
7524
7898
|
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
7525
7899
|
out = out.replace(URL_PATTERN, (match) => {
|
|
7526
7900
|
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
7527
|
-
const
|
|
7528
|
-
return `${redactUrl(
|
|
7901
|
+
const core2 = trailing ? match.slice(0, -trailing.length) : match;
|
|
7902
|
+
return `${redactUrl(core2)}${trailing}`;
|
|
7529
7903
|
});
|
|
7530
7904
|
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
7531
7905
|
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
@@ -7814,17 +8188,17 @@ import { existsSync as existsSync2 } from "node:fs";
|
|
|
7814
8188
|
import * as fs62 from "node:fs/promises";
|
|
7815
8189
|
import * as os22 from "node:os";
|
|
7816
8190
|
import * as path22 from "node:path";
|
|
7817
|
-
var
|
|
7818
|
-
var
|
|
7819
|
-
var
|
|
7820
|
-
var
|
|
7821
|
-
var
|
|
8191
|
+
var __create = Object.create;
|
|
8192
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8193
|
+
var __defProp = Object.defineProperty;
|
|
8194
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8195
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7822
8196
|
function __accessProp(key) {
|
|
7823
8197
|
return this[key];
|
|
7824
8198
|
}
|
|
7825
8199
|
var __toESMCache_node;
|
|
7826
8200
|
var __toESMCache_esm;
|
|
7827
|
-
var
|
|
8201
|
+
var __toESM = (mod2, isNodeMode, target) => {
|
|
7828
8202
|
var canCache = mod2 != null && typeof mod2 === "object";
|
|
7829
8203
|
if (canCache) {
|
|
7830
8204
|
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
@@ -7832,11 +8206,11 @@ var __toESM2 = (mod2, isNodeMode, target) => {
|
|
|
7832
8206
|
if (cached)
|
|
7833
8207
|
return cached;
|
|
7834
8208
|
}
|
|
7835
|
-
target = mod2 != null ?
|
|
7836
|
-
const to = isNodeMode || !mod2 || !mod2.__esModule ?
|
|
7837
|
-
for (let key of
|
|
7838
|
-
if (!
|
|
7839
|
-
|
|
8209
|
+
target = mod2 != null ? __create(__getProtoOf(mod2)) : {};
|
|
8210
|
+
const to = isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target;
|
|
8211
|
+
for (let key of __getOwnPropNames(mod2))
|
|
8212
|
+
if (!__hasOwnProp.call(to, key))
|
|
8213
|
+
__defProp(to, key, {
|
|
7840
8214
|
get: __accessProp.bind(mod2, key),
|
|
7841
8215
|
enumerable: true
|
|
7842
8216
|
});
|
|
@@ -8193,11 +8567,11 @@ var init_is_in_ssh = __esm(() => {
|
|
|
8193
8567
|
isInSsh2 = Boolean(process72.env.SSH_CONNECTION || process72.env.SSH_CLIENT || process72.env.SSH_TTY);
|
|
8194
8568
|
is_in_ssh_default2 = isInSsh2;
|
|
8195
8569
|
});
|
|
8196
|
-
function detectArchBinary2(
|
|
8197
|
-
if (typeof
|
|
8198
|
-
return
|
|
8570
|
+
function detectArchBinary2(binary2) {
|
|
8571
|
+
if (typeof binary2 === "string" || Array.isArray(binary2)) {
|
|
8572
|
+
return binary2;
|
|
8199
8573
|
}
|
|
8200
|
-
const { [arch2]: archBinary } =
|
|
8574
|
+
const { [arch2]: archBinary } = binary2;
|
|
8201
8575
|
if (!archBinary) {
|
|
8202
8576
|
throw new Error(`${arch2} is not supported`);
|
|
8203
8577
|
}
|
|
@@ -21748,7 +22122,7 @@ var require_TimeoutError = __commonJS((exports) => {
|
|
|
21748
22122
|
}();
|
|
21749
22123
|
exports.TimeoutError = TimeoutErrorImpl;
|
|
21750
22124
|
});
|
|
21751
|
-
var
|
|
22125
|
+
var require_map = __commonJS((exports) => {
|
|
21752
22126
|
var __extends = exports && exports.__extends || function() {
|
|
21753
22127
|
var extendStatics = function(d, b) {
|
|
21754
22128
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -21770,7 +22144,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
21770
22144
|
}();
|
|
21771
22145
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21772
22146
|
var Subscriber_1 = require_Subscriber();
|
|
21773
|
-
function
|
|
22147
|
+
function map2(project, thisArg) {
|
|
21774
22148
|
return function mapOperation(source) {
|
|
21775
22149
|
if (typeof project !== "function") {
|
|
21776
22150
|
throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
|
|
@@ -21778,7 +22152,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
21778
22152
|
return source.lift(new MapOperator(project, thisArg));
|
|
21779
22153
|
};
|
|
21780
22154
|
}
|
|
21781
|
-
exports.map =
|
|
22155
|
+
exports.map = map2;
|
|
21782
22156
|
var MapOperator = function() {
|
|
21783
22157
|
function MapOperator2(project, thisArg) {
|
|
21784
22158
|
this.project = project;
|
|
@@ -21816,7 +22190,7 @@ var require_bindCallback = __commonJS((exports) => {
|
|
|
21816
22190
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21817
22191
|
var Observable_1 = require_Observable();
|
|
21818
22192
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
21819
|
-
var map_1 =
|
|
22193
|
+
var map_1 = require_map();
|
|
21820
22194
|
var canReportError_1 = require_canReportError();
|
|
21821
22195
|
var isArray_1 = require_isArray();
|
|
21822
22196
|
var isScheduler_1 = require_isScheduler();
|
|
@@ -21918,7 +22292,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
|
|
|
21918
22292
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21919
22293
|
var Observable_1 = require_Observable();
|
|
21920
22294
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
21921
|
-
var map_1 =
|
|
22295
|
+
var map_1 = require_map();
|
|
21922
22296
|
var canReportError_1 = require_canReportError();
|
|
21923
22297
|
var isScheduler_1 = require_isScheduler();
|
|
21924
22298
|
var isArray_1 = require_isArray();
|
|
@@ -22668,7 +23042,7 @@ var require_mergeMap = __commonJS((exports) => {
|
|
|
22668
23042
|
};
|
|
22669
23043
|
}();
|
|
22670
23044
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22671
|
-
var map_1 =
|
|
23045
|
+
var map_1 = require_map();
|
|
22672
23046
|
var from_1 = require_from();
|
|
22673
23047
|
var innerSubscribe_1 = require_innerSubscribe();
|
|
22674
23048
|
function mergeMap(project, resultSelector, concurrent) {
|
|
@@ -22829,7 +23203,7 @@ var require_forkJoin = __commonJS((exports) => {
|
|
|
22829
23203
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22830
23204
|
var Observable_1 = require_Observable();
|
|
22831
23205
|
var isArray_1 = require_isArray();
|
|
22832
|
-
var map_1 =
|
|
23206
|
+
var map_1 = require_map();
|
|
22833
23207
|
var isObject_1 = require_isObject();
|
|
22834
23208
|
var from_1 = require_from();
|
|
22835
23209
|
function forkJoin() {
|
|
@@ -22907,7 +23281,7 @@ var require_fromEvent = __commonJS((exports) => {
|
|
|
22907
23281
|
var Observable_1 = require_Observable();
|
|
22908
23282
|
var isArray_1 = require_isArray();
|
|
22909
23283
|
var isFunction_1 = require_isFunction();
|
|
22910
|
-
var map_1 =
|
|
23284
|
+
var map_1 = require_map();
|
|
22911
23285
|
var toString = function() {
|
|
22912
23286
|
return Object.prototype.toString;
|
|
22913
23287
|
}();
|
|
@@ -22977,7 +23351,7 @@ var require_fromEventPattern = __commonJS((exports) => {
|
|
|
22977
23351
|
var Observable_1 = require_Observable();
|
|
22978
23352
|
var isArray_1 = require_isArray();
|
|
22979
23353
|
var isFunction_1 = require_isFunction();
|
|
22980
|
-
var map_1 =
|
|
23354
|
+
var map_1 = require_map();
|
|
22981
23355
|
function fromEventPattern(addHandler, removeHandler, resultSelector) {
|
|
22982
23356
|
if (resultSelector) {
|
|
22983
23357
|
return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
|
|
@@ -23182,13 +23556,13 @@ var require_interval = __commonJS((exports) => {
|
|
|
23182
23556
|
this.schedule({ subscriber, counter: counter + 1, period }, period);
|
|
23183
23557
|
}
|
|
23184
23558
|
});
|
|
23185
|
-
var
|
|
23559
|
+
var require_merge = __commonJS((exports) => {
|
|
23186
23560
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23187
23561
|
var Observable_1 = require_Observable();
|
|
23188
23562
|
var isScheduler_1 = require_isScheduler();
|
|
23189
23563
|
var mergeAll_1 = require_mergeAll();
|
|
23190
23564
|
var fromArray_1 = require_fromArray();
|
|
23191
|
-
function
|
|
23565
|
+
function merge2() {
|
|
23192
23566
|
var observables = [];
|
|
23193
23567
|
for (var _i = 0;_i < arguments.length; _i++) {
|
|
23194
23568
|
observables[_i] = arguments[_i];
|
|
@@ -23209,7 +23583,7 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
23209
23583
|
}
|
|
23210
23584
|
return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
|
|
23211
23585
|
}
|
|
23212
|
-
exports.merge =
|
|
23586
|
+
exports.merge = merge2;
|
|
23213
23587
|
});
|
|
23214
23588
|
var require_never = __commonJS((exports) => {
|
|
23215
23589
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -23254,11 +23628,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
|
|
|
23254
23628
|
}
|
|
23255
23629
|
exports.onErrorResumeNext = onErrorResumeNext;
|
|
23256
23630
|
});
|
|
23257
|
-
var
|
|
23631
|
+
var require_pairs = __commonJS((exports) => {
|
|
23258
23632
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23259
23633
|
var Observable_1 = require_Observable();
|
|
23260
23634
|
var Subscription_1 = require_Subscription();
|
|
23261
|
-
function
|
|
23635
|
+
function pairs2(obj, scheduler) {
|
|
23262
23636
|
if (!scheduler) {
|
|
23263
23637
|
return new Observable_1.Observable(function(subscriber) {
|
|
23264
23638
|
var keys = Object.keys(obj);
|
|
@@ -23279,7 +23653,7 @@ var require_pairs2 = __commonJS((exports) => {
|
|
|
23279
23653
|
});
|
|
23280
23654
|
}
|
|
23281
23655
|
}
|
|
23282
|
-
exports.pairs =
|
|
23656
|
+
exports.pairs = pairs2;
|
|
23283
23657
|
function dispatch(state) {
|
|
23284
23658
|
var { keys, index, subscriber, subscription, obj } = state;
|
|
23285
23659
|
if (!subscriber.closed) {
|
|
@@ -23920,7 +24294,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
23920
24294
|
exports.iif = iif_1.iif;
|
|
23921
24295
|
var interval_1 = require_interval();
|
|
23922
24296
|
exports.interval = interval_1.interval;
|
|
23923
|
-
var merge_1 =
|
|
24297
|
+
var merge_1 = require_merge();
|
|
23924
24298
|
exports.merge = merge_1.merge;
|
|
23925
24299
|
var never_1 = require_never();
|
|
23926
24300
|
exports.never = never_1.never;
|
|
@@ -23928,7 +24302,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
23928
24302
|
exports.of = of_1.of;
|
|
23929
24303
|
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
23930
24304
|
exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
|
|
23931
|
-
var pairs_1 =
|
|
24305
|
+
var pairs_1 = require_pairs();
|
|
23932
24306
|
exports.pairs = pairs_1.pairs;
|
|
23933
24307
|
var partition_1 = require_partition();
|
|
23934
24308
|
exports.partition = partition_1.partition;
|
|
@@ -26917,7 +27291,7 @@ var parseResourceUrl = (url) => {
|
|
|
26917
27291
|
};
|
|
26918
27292
|
};
|
|
26919
27293
|
var defaultLoadModule = async () => {
|
|
26920
|
-
const [error, mod2] = await catchError2(() => Promise.resolve().then(() =>
|
|
27294
|
+
const [error, mod2] = await catchError2(() => Promise.resolve().then(() => __toESM(require_dist(), 1)));
|
|
26921
27295
|
if (error || !mod2) {
|
|
26922
27296
|
return;
|
|
26923
27297
|
}
|
|
@@ -27170,12 +27544,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
27170
27544
|
var saveEnvFileAsync = async ({
|
|
27171
27545
|
envPath,
|
|
27172
27546
|
data,
|
|
27173
|
-
merge = true
|
|
27547
|
+
merge: merge2 = true
|
|
27174
27548
|
}) => {
|
|
27175
27549
|
const fs72 = getFileSystem2();
|
|
27176
27550
|
const absolutePath = fs72.path.isAbsolute(envPath) ? envPath : fs72.path.join(fs72.env.homedir(), envPath);
|
|
27177
27551
|
let existingData = {};
|
|
27178
|
-
if (
|
|
27552
|
+
if (merge2 && await fs72.exists(absolutePath)) {
|
|
27179
27553
|
try {
|
|
27180
27554
|
existingData = await loadEnvFileAsync({ envPath: absolutePath });
|
|
27181
27555
|
} catch {}
|
|
@@ -29048,4 +29422,4 @@ export {
|
|
|
29048
29422
|
metadata
|
|
29049
29423
|
};
|
|
29050
29424
|
|
|
29051
|
-
//# debugId=
|
|
29425
|
+
//# debugId=A1DAC8568A8C7B0964756E2164756E21
|