@uipath/resourcecatalog-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/index.js +1264 -890
- package/dist/tool.js +1264 -890
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -16178,7 +16178,7 @@ var require_TimeoutError = __commonJS((exports) => {
|
|
|
16178
16178
|
});
|
|
16179
16179
|
|
|
16180
16180
|
// ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
|
|
16181
|
-
var
|
|
16181
|
+
var require_map = __commonJS((exports) => {
|
|
16182
16182
|
var __extends = exports && exports.__extends || function() {
|
|
16183
16183
|
var extendStatics = function(d, b) {
|
|
16184
16184
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -16200,7 +16200,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
16200
16200
|
}();
|
|
16201
16201
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16202
16202
|
var Subscriber_1 = require_Subscriber();
|
|
16203
|
-
function
|
|
16203
|
+
function map2(project, thisArg) {
|
|
16204
16204
|
return function mapOperation(source) {
|
|
16205
16205
|
if (typeof project !== "function") {
|
|
16206
16206
|
throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
|
|
@@ -16208,7 +16208,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
16208
16208
|
return source.lift(new MapOperator(project, thisArg));
|
|
16209
16209
|
};
|
|
16210
16210
|
}
|
|
16211
|
-
exports.map =
|
|
16211
|
+
exports.map = map2;
|
|
16212
16212
|
var MapOperator = function() {
|
|
16213
16213
|
function MapOperator2(project, thisArg) {
|
|
16214
16214
|
this.project = project;
|
|
@@ -16248,7 +16248,7 @@ var require_bindCallback = __commonJS((exports) => {
|
|
|
16248
16248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16249
16249
|
var Observable_1 = require_Observable();
|
|
16250
16250
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
16251
|
-
var map_1 =
|
|
16251
|
+
var map_1 = require_map();
|
|
16252
16252
|
var canReportError_1 = require_canReportError();
|
|
16253
16253
|
var isArray_1 = require_isArray();
|
|
16254
16254
|
var isScheduler_1 = require_isScheduler();
|
|
@@ -16352,7 +16352,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
|
|
|
16352
16352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16353
16353
|
var Observable_1 = require_Observable();
|
|
16354
16354
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
16355
|
-
var map_1 =
|
|
16355
|
+
var map_1 = require_map();
|
|
16356
16356
|
var canReportError_1 = require_canReportError();
|
|
16357
16357
|
var isScheduler_1 = require_isScheduler();
|
|
16358
16358
|
var isArray_1 = require_isArray();
|
|
@@ -17142,7 +17142,7 @@ var require_mergeMap = __commonJS((exports) => {
|
|
|
17142
17142
|
};
|
|
17143
17143
|
}();
|
|
17144
17144
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17145
|
-
var map_1 =
|
|
17145
|
+
var map_1 = require_map();
|
|
17146
17146
|
var from_1 = require_from();
|
|
17147
17147
|
var innerSubscribe_1 = require_innerSubscribe();
|
|
17148
17148
|
function mergeMap(project, resultSelector, concurrent) {
|
|
@@ -17313,7 +17313,7 @@ var require_forkJoin = __commonJS((exports) => {
|
|
|
17313
17313
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17314
17314
|
var Observable_1 = require_Observable();
|
|
17315
17315
|
var isArray_1 = require_isArray();
|
|
17316
|
-
var map_1 =
|
|
17316
|
+
var map_1 = require_map();
|
|
17317
17317
|
var isObject_1 = require_isObject();
|
|
17318
17318
|
var from_1 = require_from();
|
|
17319
17319
|
function forkJoin() {
|
|
@@ -17393,7 +17393,7 @@ var require_fromEvent = __commonJS((exports) => {
|
|
|
17393
17393
|
var Observable_1 = require_Observable();
|
|
17394
17394
|
var isArray_1 = require_isArray();
|
|
17395
17395
|
var isFunction_1 = require_isFunction();
|
|
17396
|
-
var map_1 =
|
|
17396
|
+
var map_1 = require_map();
|
|
17397
17397
|
var toString = function() {
|
|
17398
17398
|
return Object.prototype.toString;
|
|
17399
17399
|
}();
|
|
@@ -17465,7 +17465,7 @@ var require_fromEventPattern = __commonJS((exports) => {
|
|
|
17465
17465
|
var Observable_1 = require_Observable();
|
|
17466
17466
|
var isArray_1 = require_isArray();
|
|
17467
17467
|
var isFunction_1 = require_isFunction();
|
|
17468
|
-
var map_1 =
|
|
17468
|
+
var map_1 = require_map();
|
|
17469
17469
|
function fromEventPattern(addHandler, removeHandler, resultSelector) {
|
|
17470
17470
|
if (resultSelector) {
|
|
17471
17471
|
return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
|
|
@@ -17680,13 +17680,13 @@ var require_interval = __commonJS((exports) => {
|
|
|
17680
17680
|
});
|
|
17681
17681
|
|
|
17682
17682
|
// ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
|
|
17683
|
-
var
|
|
17683
|
+
var require_merge = __commonJS((exports) => {
|
|
17684
17684
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17685
17685
|
var Observable_1 = require_Observable();
|
|
17686
17686
|
var isScheduler_1 = require_isScheduler();
|
|
17687
17687
|
var mergeAll_1 = require_mergeAll();
|
|
17688
17688
|
var fromArray_1 = require_fromArray();
|
|
17689
|
-
function
|
|
17689
|
+
function merge2() {
|
|
17690
17690
|
var observables = [];
|
|
17691
17691
|
for (var _i = 0;_i < arguments.length; _i++) {
|
|
17692
17692
|
observables[_i] = arguments[_i];
|
|
@@ -17707,7 +17707,7 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
17707
17707
|
}
|
|
17708
17708
|
return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
|
|
17709
17709
|
}
|
|
17710
|
-
exports.merge =
|
|
17710
|
+
exports.merge = merge2;
|
|
17711
17711
|
});
|
|
17712
17712
|
|
|
17713
17713
|
// ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
|
|
@@ -17758,11 +17758,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
|
|
|
17758
17758
|
});
|
|
17759
17759
|
|
|
17760
17760
|
// ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
|
|
17761
|
-
var
|
|
17761
|
+
var require_pairs = __commonJS((exports) => {
|
|
17762
17762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17763
17763
|
var Observable_1 = require_Observable();
|
|
17764
17764
|
var Subscription_1 = require_Subscription();
|
|
17765
|
-
function
|
|
17765
|
+
function pairs2(obj, scheduler) {
|
|
17766
17766
|
if (!scheduler) {
|
|
17767
17767
|
return new Observable_1.Observable(function(subscriber) {
|
|
17768
17768
|
var keys = Object.keys(obj);
|
|
@@ -17783,7 +17783,7 @@ var require_pairs2 = __commonJS((exports) => {
|
|
|
17783
17783
|
});
|
|
17784
17784
|
}
|
|
17785
17785
|
}
|
|
17786
|
-
exports.pairs =
|
|
17786
|
+
exports.pairs = pairs2;
|
|
17787
17787
|
function dispatch(state) {
|
|
17788
17788
|
var { keys, index, subscriber, subscription, obj } = state;
|
|
17789
17789
|
if (!subscriber.closed) {
|
|
@@ -18442,7 +18442,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
18442
18442
|
exports.iif = iif_1.iif;
|
|
18443
18443
|
var interval_1 = require_interval();
|
|
18444
18444
|
exports.interval = interval_1.interval;
|
|
18445
|
-
var merge_1 =
|
|
18445
|
+
var merge_1 = require_merge();
|
|
18446
18446
|
exports.merge = merge_1.merge;
|
|
18447
18447
|
var never_1 = require_never();
|
|
18448
18448
|
exports.never = never_1.never;
|
|
@@ -18450,7 +18450,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
18450
18450
|
exports.of = of_1.of;
|
|
18451
18451
|
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
18452
18452
|
exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
|
|
18453
|
-
var pairs_1 =
|
|
18453
|
+
var pairs_1 = require_pairs();
|
|
18454
18454
|
exports.pairs = pairs_1.pairs;
|
|
18455
18455
|
var partition_1 = require_partition();
|
|
18456
18456
|
exports.partition = partition_1.partition;
|
|
@@ -21247,7 +21247,7 @@ var {
|
|
|
21247
21247
|
var package_default = {
|
|
21248
21248
|
name: "@uipath/resourcecatalog-tool",
|
|
21249
21249
|
license: "MIT",
|
|
21250
|
-
version: "1.198.0-preview.
|
|
21250
|
+
version: "1.198.0-preview.87",
|
|
21251
21251
|
description: "CLI plugin for the UiPath Resource Catalog Service.",
|
|
21252
21252
|
private: false,
|
|
21253
21253
|
repository: {
|
|
@@ -23653,31 +23653,17 @@ function search(data, expression, options) {
|
|
|
23653
23653
|
}
|
|
23654
23654
|
|
|
23655
23655
|
// ../../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
23656
|
-
|
|
23657
|
-
|
|
23658
|
-
|
|
23659
|
-
var
|
|
23660
|
-
var
|
|
23661
|
-
var
|
|
23662
|
-
var
|
|
23663
|
-
|
|
23664
|
-
|
|
23665
|
-
|
|
23666
|
-
|
|
23667
|
-
key = keys[i];
|
|
23668
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
23669
|
-
__defProp2(to, key, {
|
|
23670
|
-
get: ((k) => from[k]).bind(null, key),
|
|
23671
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23672
|
-
});
|
|
23673
|
-
}
|
|
23674
|
-
return to;
|
|
23675
|
-
};
|
|
23676
|
-
var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
|
|
23677
|
-
value: mod2,
|
|
23678
|
-
enumerable: true
|
|
23679
|
-
}) : target, mod2));
|
|
23680
|
-
var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
23656
|
+
function getDefaultExportFromCjs(x) {
|
|
23657
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
23658
|
+
}
|
|
23659
|
+
var jsYaml = {};
|
|
23660
|
+
var loader = {};
|
|
23661
|
+
var common = {};
|
|
23662
|
+
var hasRequiredCommon;
|
|
23663
|
+
function requireCommon() {
|
|
23664
|
+
if (hasRequiredCommon)
|
|
23665
|
+
return common;
|
|
23666
|
+
hasRequiredCommon = 1;
|
|
23681
23667
|
function isNothing(subject) {
|
|
23682
23668
|
return typeof subject === "undefined" || subject === null;
|
|
23683
23669
|
}
|
|
@@ -23703,55 +23689,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23703
23689
|
}
|
|
23704
23690
|
function repeat(string, count) {
|
|
23705
23691
|
let result = "";
|
|
23706
|
-
for (let cycle = 0;cycle < count; cycle += 1)
|
|
23692
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
23707
23693
|
result += string;
|
|
23694
|
+
}
|
|
23708
23695
|
return result;
|
|
23709
23696
|
}
|
|
23710
23697
|
function isNegativeZero(number) {
|
|
23711
23698
|
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
23712
23699
|
}
|
|
23713
|
-
|
|
23714
|
-
|
|
23715
|
-
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
|
|
23719
|
-
|
|
23720
|
-
|
|
23721
|
-
|
|
23700
|
+
common.isNothing = isNothing;
|
|
23701
|
+
common.isObject = isObject2;
|
|
23702
|
+
common.toArray = toArray;
|
|
23703
|
+
common.repeat = repeat;
|
|
23704
|
+
common.isNegativeZero = isNegativeZero;
|
|
23705
|
+
common.extend = extend;
|
|
23706
|
+
return common;
|
|
23707
|
+
}
|
|
23708
|
+
var exception;
|
|
23709
|
+
var hasRequiredException;
|
|
23710
|
+
function requireException() {
|
|
23711
|
+
if (hasRequiredException)
|
|
23712
|
+
return exception;
|
|
23713
|
+
hasRequiredException = 1;
|
|
23714
|
+
function formatError(exception2, compact) {
|
|
23722
23715
|
let where = "";
|
|
23723
|
-
const message =
|
|
23724
|
-
if (!
|
|
23716
|
+
const message = exception2.reason || "(unknown reason)";
|
|
23717
|
+
if (!exception2.mark)
|
|
23725
23718
|
return message;
|
|
23726
|
-
if (
|
|
23727
|
-
where += 'in "' +
|
|
23728
|
-
|
|
23729
|
-
|
|
23719
|
+
if (exception2.mark.name) {
|
|
23720
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
23721
|
+
}
|
|
23722
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
23723
|
+
if (!compact && exception2.mark.snippet) {
|
|
23730
23724
|
where += `
|
|
23731
23725
|
|
|
23732
|
-
` +
|
|
23726
|
+
` + exception2.mark.snippet;
|
|
23727
|
+
}
|
|
23733
23728
|
return message + " " + where;
|
|
23734
23729
|
}
|
|
23735
|
-
function
|
|
23730
|
+
function YAMLException2(reason, mark) {
|
|
23736
23731
|
Error.call(this);
|
|
23737
23732
|
this.name = "YAMLException";
|
|
23738
23733
|
this.reason = reason;
|
|
23739
23734
|
this.mark = mark;
|
|
23740
23735
|
this.message = formatError(this, false);
|
|
23741
|
-
if (Error.captureStackTrace)
|
|
23736
|
+
if (Error.captureStackTrace) {
|
|
23742
23737
|
Error.captureStackTrace(this, this.constructor);
|
|
23743
|
-
else
|
|
23744
|
-
this.stack =
|
|
23738
|
+
} else {
|
|
23739
|
+
this.stack = new Error().stack || "";
|
|
23740
|
+
}
|
|
23745
23741
|
}
|
|
23746
|
-
|
|
23747
|
-
|
|
23748
|
-
|
|
23742
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
23743
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
23744
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
23749
23745
|
return this.name + ": " + formatError(this, compact);
|
|
23750
23746
|
};
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
|
|
23747
|
+
exception = YAMLException2;
|
|
23748
|
+
return exception;
|
|
23749
|
+
}
|
|
23750
|
+
var snippet;
|
|
23751
|
+
var hasRequiredSnippet;
|
|
23752
|
+
function requireSnippet() {
|
|
23753
|
+
if (hasRequiredSnippet)
|
|
23754
|
+
return snippet;
|
|
23755
|
+
hasRequiredSnippet = 1;
|
|
23756
|
+
const common2 = requireCommon();
|
|
23755
23757
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
23756
23758
|
let head = "";
|
|
23757
23759
|
let tail = "";
|
|
@@ -23770,7 +23772,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23770
23772
|
};
|
|
23771
23773
|
}
|
|
23772
23774
|
function padStart(string, max) {
|
|
23773
|
-
return
|
|
23775
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
23774
23776
|
}
|
|
23775
23777
|
function makeSnippet(mark, options) {
|
|
23776
23778
|
options = Object.create(options || null);
|
|
@@ -23792,8 +23794,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23792
23794
|
while (match = re.exec(mark.buffer)) {
|
|
23793
23795
|
lineEnds.push(match.index);
|
|
23794
23796
|
lineStarts.push(match.index + match[0].length);
|
|
23795
|
-
if (mark.position <= match.index && foundLineNo < 0)
|
|
23797
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
23796
23798
|
foundLineNo = lineStarts.length - 2;
|
|
23799
|
+
}
|
|
23797
23800
|
}
|
|
23798
23801
|
if (foundLineNo < 0)
|
|
23799
23802
|
foundLineNo = lineStarts.length - 1;
|
|
@@ -23804,28 +23807,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23804
23807
|
if (foundLineNo - i < 0)
|
|
23805
23808
|
break;
|
|
23806
23809
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
23807
|
-
result =
|
|
23810
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
23808
23811
|
` + result;
|
|
23809
23812
|
}
|
|
23810
23813
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
23811
|
-
result +=
|
|
23814
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
23812
23815
|
`;
|
|
23813
|
-
result +=
|
|
23816
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
23814
23817
|
`;
|
|
23815
23818
|
for (let i = 1;i <= options.linesAfter; i++) {
|
|
23816
23819
|
if (foundLineNo + i >= lineEnds.length)
|
|
23817
23820
|
break;
|
|
23818
23821
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
23819
|
-
result +=
|
|
23822
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
23820
23823
|
`;
|
|
23821
23824
|
}
|
|
23822
23825
|
return result.replace(/\n$/, "");
|
|
23823
23826
|
}
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
|
|
23827
|
+
snippet = makeSnippet;
|
|
23828
|
+
return snippet;
|
|
23829
|
+
}
|
|
23830
|
+
var type;
|
|
23831
|
+
var hasRequiredType;
|
|
23832
|
+
function requireType() {
|
|
23833
|
+
if (hasRequiredType)
|
|
23834
|
+
return type;
|
|
23835
|
+
hasRequiredType = 1;
|
|
23836
|
+
const YAMLException2 = requireException();
|
|
23837
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
23829
23838
|
"kind",
|
|
23830
23839
|
"multi",
|
|
23831
23840
|
"resolve",
|
|
@@ -23837,26 +23846,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23837
23846
|
"defaultStyle",
|
|
23838
23847
|
"styleAliases"
|
|
23839
23848
|
];
|
|
23840
|
-
|
|
23849
|
+
const YAML_NODE_KINDS = [
|
|
23841
23850
|
"scalar",
|
|
23842
23851
|
"sequence",
|
|
23843
23852
|
"mapping"
|
|
23844
23853
|
];
|
|
23845
|
-
function compileStyleAliases(
|
|
23854
|
+
function compileStyleAliases(map2) {
|
|
23846
23855
|
const result = {};
|
|
23847
|
-
if (
|
|
23848
|
-
Object.keys(
|
|
23849
|
-
|
|
23856
|
+
if (map2 !== null) {
|
|
23857
|
+
Object.keys(map2).forEach(function(style) {
|
|
23858
|
+
map2[style].forEach(function(alias) {
|
|
23850
23859
|
result[String(alias)] = style;
|
|
23851
23860
|
});
|
|
23852
23861
|
});
|
|
23862
|
+
}
|
|
23853
23863
|
return result;
|
|
23854
23864
|
}
|
|
23855
|
-
function
|
|
23865
|
+
function Type2(tag, options) {
|
|
23856
23866
|
options = options || {};
|
|
23857
23867
|
Object.keys(options).forEach(function(name) {
|
|
23858
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
|
|
23859
|
-
throw new
|
|
23868
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
23869
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
23870
|
+
}
|
|
23860
23871
|
});
|
|
23861
23872
|
this.options = options;
|
|
23862
23873
|
this.tag = tag;
|
|
@@ -23874,21 +23885,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23874
23885
|
this.defaultStyle = options["defaultStyle"] || null;
|
|
23875
23886
|
this.multi = options["multi"] || false;
|
|
23876
23887
|
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
23877
|
-
if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
|
|
23878
|
-
throw new
|
|
23888
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
23889
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
23890
|
+
}
|
|
23879
23891
|
}
|
|
23880
|
-
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
23885
|
-
|
|
23892
|
+
type = Type2;
|
|
23893
|
+
return type;
|
|
23894
|
+
}
|
|
23895
|
+
var schema;
|
|
23896
|
+
var hasRequiredSchema;
|
|
23897
|
+
function requireSchema() {
|
|
23898
|
+
if (hasRequiredSchema)
|
|
23899
|
+
return schema;
|
|
23900
|
+
hasRequiredSchema = 1;
|
|
23901
|
+
const YAMLException2 = requireException();
|
|
23902
|
+
const Type2 = requireType();
|
|
23903
|
+
function compileList(schema2, name) {
|
|
23886
23904
|
const result = [];
|
|
23887
|
-
|
|
23905
|
+
schema2[name].forEach(function(currentType) {
|
|
23888
23906
|
let newIndex = result.length;
|
|
23889
23907
|
result.forEach(function(previousType, previousIndex) {
|
|
23890
|
-
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
|
|
23908
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
23891
23909
|
newIndex = previousIndex;
|
|
23910
|
+
}
|
|
23892
23911
|
});
|
|
23893
23912
|
result[newIndex] = currentType;
|
|
23894
23913
|
});
|
|
@@ -23907,47 +23926,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23907
23926
|
fallback: []
|
|
23908
23927
|
}
|
|
23909
23928
|
};
|
|
23910
|
-
function collectType(
|
|
23911
|
-
if (
|
|
23912
|
-
result.multi[
|
|
23913
|
-
result.multi["fallback"].push(
|
|
23914
|
-
} else
|
|
23915
|
-
result[
|
|
23929
|
+
function collectType(type2) {
|
|
23930
|
+
if (type2.multi) {
|
|
23931
|
+
result.multi[type2.kind].push(type2);
|
|
23932
|
+
result.multi["fallback"].push(type2);
|
|
23933
|
+
} else {
|
|
23934
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
23935
|
+
}
|
|
23916
23936
|
}
|
|
23917
|
-
for (let index = 0, length = arguments.length;index < length; index += 1)
|
|
23937
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
23918
23938
|
arguments[index].forEach(collectType);
|
|
23939
|
+
}
|
|
23919
23940
|
return result;
|
|
23920
23941
|
}
|
|
23921
|
-
function
|
|
23942
|
+
function Schema2(definition) {
|
|
23922
23943
|
return this.extend(definition);
|
|
23923
23944
|
}
|
|
23924
|
-
|
|
23945
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
23925
23946
|
let implicit = [];
|
|
23926
23947
|
let explicit = [];
|
|
23927
|
-
if (definition instanceof
|
|
23948
|
+
if (definition instanceof Type2) {
|
|
23928
23949
|
explicit.push(definition);
|
|
23929
|
-
else if (Array.isArray(definition))
|
|
23950
|
+
} else if (Array.isArray(definition)) {
|
|
23930
23951
|
explicit = explicit.concat(definition);
|
|
23931
|
-
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
23952
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
23932
23953
|
if (definition.implicit)
|
|
23933
23954
|
implicit = implicit.concat(definition.implicit);
|
|
23934
23955
|
if (definition.explicit)
|
|
23935
23956
|
explicit = explicit.concat(definition.explicit);
|
|
23936
|
-
} else
|
|
23937
|
-
throw new
|
|
23938
|
-
|
|
23939
|
-
|
|
23940
|
-
|
|
23941
|
-
|
|
23942
|
-
|
|
23943
|
-
if (
|
|
23944
|
-
throw new
|
|
23957
|
+
} else {
|
|
23958
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
23959
|
+
}
|
|
23960
|
+
implicit.forEach(function(type2) {
|
|
23961
|
+
if (!(type2 instanceof Type2)) {
|
|
23962
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
23963
|
+
}
|
|
23964
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
23965
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
23966
|
+
}
|
|
23967
|
+
if (type2.multi) {
|
|
23968
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
23969
|
+
}
|
|
23945
23970
|
});
|
|
23946
|
-
explicit.forEach(function(
|
|
23947
|
-
if (!(
|
|
23948
|
-
throw new
|
|
23971
|
+
explicit.forEach(function(type2) {
|
|
23972
|
+
if (!(type2 instanceof Type2)) {
|
|
23973
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
23974
|
+
}
|
|
23949
23975
|
});
|
|
23950
|
-
const result = Object.create(
|
|
23976
|
+
const result = Object.create(Schema2.prototype);
|
|
23951
23977
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
23952
23978
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
23953
23979
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -23955,41 +23981,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23955
23981
|
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
23956
23982
|
return result;
|
|
23957
23983
|
};
|
|
23958
|
-
|
|
23959
|
-
|
|
23960
|
-
|
|
23961
|
-
|
|
23984
|
+
schema = Schema2;
|
|
23985
|
+
return schema;
|
|
23986
|
+
}
|
|
23987
|
+
var str;
|
|
23988
|
+
var hasRequiredStr;
|
|
23989
|
+
function requireStr() {
|
|
23990
|
+
if (hasRequiredStr)
|
|
23991
|
+
return str;
|
|
23992
|
+
hasRequiredStr = 1;
|
|
23993
|
+
const Type2 = requireType();
|
|
23994
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
23962
23995
|
kind: "scalar",
|
|
23963
23996
|
construct: function(data) {
|
|
23964
23997
|
return data !== null ? data : "";
|
|
23965
23998
|
}
|
|
23966
23999
|
});
|
|
23967
|
-
|
|
23968
|
-
|
|
23969
|
-
|
|
24000
|
+
return str;
|
|
24001
|
+
}
|
|
24002
|
+
var seq;
|
|
24003
|
+
var hasRequiredSeq;
|
|
24004
|
+
function requireSeq() {
|
|
24005
|
+
if (hasRequiredSeq)
|
|
24006
|
+
return seq;
|
|
24007
|
+
hasRequiredSeq = 1;
|
|
24008
|
+
const Type2 = requireType();
|
|
24009
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
23970
24010
|
kind: "sequence",
|
|
23971
24011
|
construct: function(data) {
|
|
23972
24012
|
return data !== null ? data : [];
|
|
23973
24013
|
}
|
|
23974
24014
|
});
|
|
23975
|
-
|
|
23976
|
-
|
|
23977
|
-
|
|
24015
|
+
return seq;
|
|
24016
|
+
}
|
|
24017
|
+
var map;
|
|
24018
|
+
var hasRequiredMap;
|
|
24019
|
+
function requireMap() {
|
|
24020
|
+
if (hasRequiredMap)
|
|
24021
|
+
return map;
|
|
24022
|
+
hasRequiredMap = 1;
|
|
24023
|
+
const Type2 = requireType();
|
|
24024
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
23978
24025
|
kind: "mapping",
|
|
23979
24026
|
construct: function(data) {
|
|
23980
24027
|
return data !== null ? data : {};
|
|
23981
24028
|
}
|
|
23982
24029
|
});
|
|
23983
|
-
|
|
23984
|
-
|
|
23985
|
-
|
|
23986
|
-
|
|
23987
|
-
|
|
23988
|
-
|
|
23989
|
-
|
|
23990
|
-
|
|
23991
|
-
|
|
23992
|
-
|
|
24030
|
+
return map;
|
|
24031
|
+
}
|
|
24032
|
+
var failsafe;
|
|
24033
|
+
var hasRequiredFailsafe;
|
|
24034
|
+
function requireFailsafe() {
|
|
24035
|
+
if (hasRequiredFailsafe)
|
|
24036
|
+
return failsafe;
|
|
24037
|
+
hasRequiredFailsafe = 1;
|
|
24038
|
+
const Schema2 = requireSchema();
|
|
24039
|
+
failsafe = new Schema2({
|
|
24040
|
+
explicit: [
|
|
24041
|
+
requireStr(),
|
|
24042
|
+
requireSeq(),
|
|
24043
|
+
requireMap()
|
|
24044
|
+
]
|
|
24045
|
+
});
|
|
24046
|
+
return failsafe;
|
|
24047
|
+
}
|
|
24048
|
+
var _null;
|
|
24049
|
+
var hasRequired_null;
|
|
24050
|
+
function require_null() {
|
|
24051
|
+
if (hasRequired_null)
|
|
24052
|
+
return _null;
|
|
24053
|
+
hasRequired_null = 1;
|
|
24054
|
+
const Type2 = requireType();
|
|
23993
24055
|
function resolveYamlNull(data) {
|
|
23994
24056
|
if (data === null)
|
|
23995
24057
|
return true;
|
|
@@ -24002,7 +24064,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24002
24064
|
function isNull(object) {
|
|
24003
24065
|
return object === null;
|
|
24004
24066
|
}
|
|
24005
|
-
|
|
24067
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
24006
24068
|
kind: "scalar",
|
|
24007
24069
|
resolve: resolveYamlNull,
|
|
24008
24070
|
construct: constructYamlNull,
|
|
@@ -24026,9 +24088,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24026
24088
|
},
|
|
24027
24089
|
defaultStyle: "lowercase"
|
|
24028
24090
|
});
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24091
|
+
return _null;
|
|
24092
|
+
}
|
|
24093
|
+
var bool;
|
|
24094
|
+
var hasRequiredBool;
|
|
24095
|
+
function requireBool() {
|
|
24096
|
+
if (hasRequiredBool)
|
|
24097
|
+
return bool;
|
|
24098
|
+
hasRequiredBool = 1;
|
|
24099
|
+
const Type2 = requireType();
|
|
24032
24100
|
function resolveYamlBoolean(data) {
|
|
24033
24101
|
if (data === null)
|
|
24034
24102
|
return false;
|
|
@@ -24041,7 +24109,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24041
24109
|
function isBoolean(object) {
|
|
24042
24110
|
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
24043
24111
|
}
|
|
24044
|
-
|
|
24112
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
24045
24113
|
kind: "scalar",
|
|
24046
24114
|
resolve: resolveYamlBoolean,
|
|
24047
24115
|
construct: constructYamlBoolean,
|
|
@@ -24059,10 +24127,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24059
24127
|
},
|
|
24060
24128
|
defaultStyle: "lowercase"
|
|
24061
24129
|
});
|
|
24062
|
-
|
|
24063
|
-
|
|
24064
|
-
|
|
24065
|
-
|
|
24130
|
+
return bool;
|
|
24131
|
+
}
|
|
24132
|
+
var int;
|
|
24133
|
+
var hasRequiredInt;
|
|
24134
|
+
function requireInt() {
|
|
24135
|
+
if (hasRequiredInt)
|
|
24136
|
+
return int;
|
|
24137
|
+
hasRequiredInt = 1;
|
|
24138
|
+
const common2 = requireCommon();
|
|
24139
|
+
const Type2 = requireType();
|
|
24066
24140
|
function isHexCode(c) {
|
|
24067
24141
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
24068
24142
|
}
|
|
@@ -24081,8 +24155,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24081
24155
|
if (!max)
|
|
24082
24156
|
return false;
|
|
24083
24157
|
let ch = data[index];
|
|
24084
|
-
if (ch === "-" || ch === "+")
|
|
24158
|
+
if (ch === "-" || ch === "+") {
|
|
24085
24159
|
ch = data[++index];
|
|
24160
|
+
}
|
|
24086
24161
|
if (ch === "0") {
|
|
24087
24162
|
if (index + 1 === max)
|
|
24088
24163
|
return true;
|
|
@@ -24095,7 +24170,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24095
24170
|
return false;
|
|
24096
24171
|
hasDigits = true;
|
|
24097
24172
|
}
|
|
24098
|
-
return hasDigits &&
|
|
24173
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
24099
24174
|
}
|
|
24100
24175
|
if (ch === "x") {
|
|
24101
24176
|
index++;
|
|
@@ -24104,7 +24179,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24104
24179
|
return false;
|
|
24105
24180
|
hasDigits = true;
|
|
24106
24181
|
}
|
|
24107
|
-
return hasDigits &&
|
|
24182
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
24108
24183
|
}
|
|
24109
24184
|
if (ch === "o") {
|
|
24110
24185
|
index++;
|
|
@@ -24113,17 +24188,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24113
24188
|
return false;
|
|
24114
24189
|
hasDigits = true;
|
|
24115
24190
|
}
|
|
24116
|
-
return hasDigits &&
|
|
24191
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
24117
24192
|
}
|
|
24118
24193
|
}
|
|
24119
24194
|
for (;index < max; index++) {
|
|
24120
|
-
if (!isDecCode(data.charCodeAt(index)))
|
|
24195
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
24121
24196
|
return false;
|
|
24197
|
+
}
|
|
24122
24198
|
hasDigits = true;
|
|
24123
24199
|
}
|
|
24124
24200
|
if (!hasDigits)
|
|
24125
24201
|
return false;
|
|
24126
|
-
return
|
|
24202
|
+
return isFinite(parseYamlInteger(data));
|
|
24127
24203
|
}
|
|
24128
24204
|
function parseYamlInteger(data) {
|
|
24129
24205
|
let value = data;
|
|
@@ -24151,9 +24227,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24151
24227
|
return parseYamlInteger(data);
|
|
24152
24228
|
}
|
|
24153
24229
|
function isInteger(object) {
|
|
24154
|
-
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !
|
|
24230
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
24155
24231
|
}
|
|
24156
|
-
|
|
24232
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
24157
24233
|
kind: "scalar",
|
|
24158
24234
|
resolve: resolveYamlInteger,
|
|
24159
24235
|
construct: constructYamlInteger,
|
|
@@ -24180,35 +24256,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24180
24256
|
hexadecimal: [16, "hex"]
|
|
24181
24257
|
}
|
|
24182
24258
|
});
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24259
|
+
return int;
|
|
24260
|
+
}
|
|
24261
|
+
var float;
|
|
24262
|
+
var hasRequiredFloat;
|
|
24263
|
+
function requireFloat() {
|
|
24264
|
+
if (hasRequiredFloat)
|
|
24265
|
+
return float;
|
|
24266
|
+
hasRequiredFloat = 1;
|
|
24267
|
+
const common2 = requireCommon();
|
|
24268
|
+
const Type2 = requireType();
|
|
24269
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
24270
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
24189
24271
|
function resolveYamlFloat(data) {
|
|
24190
24272
|
if (data === null)
|
|
24191
24273
|
return false;
|
|
24192
|
-
if (!YAML_FLOAT_PATTERN.test(data))
|
|
24274
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
24193
24275
|
return false;
|
|
24194
|
-
|
|
24276
|
+
}
|
|
24277
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
24195
24278
|
return true;
|
|
24279
|
+
}
|
|
24196
24280
|
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
24197
24281
|
}
|
|
24198
24282
|
function constructYamlFloat(data) {
|
|
24199
24283
|
let value = data.toLowerCase();
|
|
24200
24284
|
const sign = value[0] === "-" ? -1 : 1;
|
|
24201
|
-
if ("+-".indexOf(value[0]) >= 0)
|
|
24285
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
24202
24286
|
value = value.slice(1);
|
|
24203
|
-
|
|
24287
|
+
}
|
|
24288
|
+
if (value === ".inf") {
|
|
24204
24289
|
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
24205
|
-
else if (value === ".nan")
|
|
24290
|
+
} else if (value === ".nan") {
|
|
24206
24291
|
return NaN;
|
|
24292
|
+
}
|
|
24207
24293
|
return sign * parseFloat(value, 10);
|
|
24208
24294
|
}
|
|
24209
|
-
|
|
24295
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
24210
24296
|
function representYamlFloat(object, style) {
|
|
24211
|
-
if (isNaN(object))
|
|
24297
|
+
if (isNaN(object)) {
|
|
24212
24298
|
switch (style) {
|
|
24213
24299
|
case "lowercase":
|
|
24214
24300
|
return ".nan";
|
|
@@ -24217,7 +24303,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24217
24303
|
case "camelcase":
|
|
24218
24304
|
return ".NaN";
|
|
24219
24305
|
}
|
|
24220
|
-
else if (Number.POSITIVE_INFINITY === object)
|
|
24306
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
24221
24307
|
switch (style) {
|
|
24222
24308
|
case "lowercase":
|
|
24223
24309
|
return ".inf";
|
|
@@ -24226,7 +24312,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24226
24312
|
case "camelcase":
|
|
24227
24313
|
return ".Inf";
|
|
24228
24314
|
}
|
|
24229
|
-
else if (Number.NEGATIVE_INFINITY === object)
|
|
24315
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
24230
24316
|
switch (style) {
|
|
24231
24317
|
case "lowercase":
|
|
24232
24318
|
return "-.inf";
|
|
@@ -24235,15 +24321,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24235
24321
|
case "camelcase":
|
|
24236
24322
|
return "-.Inf";
|
|
24237
24323
|
}
|
|
24238
|
-
else if (
|
|
24324
|
+
} else if (common2.isNegativeZero(object)) {
|
|
24239
24325
|
return "-0.0";
|
|
24326
|
+
}
|
|
24240
24327
|
const res = object.toString(10);
|
|
24241
24328
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
24242
24329
|
}
|
|
24243
24330
|
function isFloat(object) {
|
|
24244
|
-
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 ||
|
|
24331
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
24245
24332
|
}
|
|
24246
|
-
|
|
24333
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
24247
24334
|
kind: "scalar",
|
|
24248
24335
|
resolve: resolveYamlFloat,
|
|
24249
24336
|
construct: constructYamlFloat,
|
|
@@ -24251,22 +24338,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24251
24338
|
represent: representYamlFloat,
|
|
24252
24339
|
defaultStyle: "lowercase"
|
|
24253
24340
|
});
|
|
24254
|
-
|
|
24255
|
-
|
|
24256
|
-
|
|
24257
|
-
|
|
24258
|
-
|
|
24259
|
-
|
|
24260
|
-
|
|
24261
|
-
|
|
24262
|
-
|
|
24263
|
-
|
|
24264
|
-
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24269
|
-
|
|
24341
|
+
return float;
|
|
24342
|
+
}
|
|
24343
|
+
var json;
|
|
24344
|
+
var hasRequiredJson;
|
|
24345
|
+
function requireJson() {
|
|
24346
|
+
if (hasRequiredJson)
|
|
24347
|
+
return json;
|
|
24348
|
+
hasRequiredJson = 1;
|
|
24349
|
+
json = requireFailsafe().extend({
|
|
24350
|
+
implicit: [
|
|
24351
|
+
require_null(),
|
|
24352
|
+
requireBool(),
|
|
24353
|
+
requireInt(),
|
|
24354
|
+
requireFloat()
|
|
24355
|
+
]
|
|
24356
|
+
});
|
|
24357
|
+
return json;
|
|
24358
|
+
}
|
|
24359
|
+
var core;
|
|
24360
|
+
var hasRequiredCore;
|
|
24361
|
+
function requireCore() {
|
|
24362
|
+
if (hasRequiredCore)
|
|
24363
|
+
return core;
|
|
24364
|
+
hasRequiredCore = 1;
|
|
24365
|
+
core = requireJson();
|
|
24366
|
+
return core;
|
|
24367
|
+
}
|
|
24368
|
+
var timestamp;
|
|
24369
|
+
var hasRequiredTimestamp;
|
|
24370
|
+
function requireTimestamp() {
|
|
24371
|
+
if (hasRequiredTimestamp)
|
|
24372
|
+
return timestamp;
|
|
24373
|
+
hasRequiredTimestamp = 1;
|
|
24374
|
+
const Type2 = requireType();
|
|
24375
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
24376
|
+
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]))?))?$");
|
|
24270
24377
|
function resolveYamlTimestamp(data) {
|
|
24271
24378
|
if (data === null)
|
|
24272
24379
|
return false;
|
|
@@ -24287,15 +24394,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24287
24394
|
const year = +match[1];
|
|
24288
24395
|
const month = +match[2] - 1;
|
|
24289
24396
|
const day = +match[3];
|
|
24290
|
-
if (!match[4])
|
|
24397
|
+
if (!match[4]) {
|
|
24291
24398
|
return new Date(Date.UTC(year, month, day));
|
|
24399
|
+
}
|
|
24292
24400
|
const hour = +match[4];
|
|
24293
24401
|
const minute = +match[5];
|
|
24294
24402
|
const second = +match[6];
|
|
24295
24403
|
if (match[7]) {
|
|
24296
24404
|
fraction = match[7].slice(0, 3);
|
|
24297
|
-
while (fraction.length < 3)
|
|
24405
|
+
while (fraction.length < 3) {
|
|
24298
24406
|
fraction += "0";
|
|
24407
|
+
}
|
|
24299
24408
|
fraction = +fraction;
|
|
24300
24409
|
}
|
|
24301
24410
|
if (match[9]) {
|
|
@@ -24313,36 +24422,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24313
24422
|
function representYamlTimestamp(object) {
|
|
24314
24423
|
return object.toISOString();
|
|
24315
24424
|
}
|
|
24316
|
-
|
|
24425
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
24317
24426
|
kind: "scalar",
|
|
24318
24427
|
resolve: resolveYamlTimestamp,
|
|
24319
24428
|
construct: constructYamlTimestamp,
|
|
24320
24429
|
instanceOf: Date,
|
|
24321
24430
|
represent: representYamlTimestamp
|
|
24322
24431
|
});
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24432
|
+
return timestamp;
|
|
24433
|
+
}
|
|
24434
|
+
var merge;
|
|
24435
|
+
var hasRequiredMerge;
|
|
24436
|
+
function requireMerge() {
|
|
24437
|
+
if (hasRequiredMerge)
|
|
24438
|
+
return merge;
|
|
24439
|
+
hasRequiredMerge = 1;
|
|
24440
|
+
const Type2 = requireType();
|
|
24326
24441
|
function resolveYamlMerge(data) {
|
|
24327
24442
|
return data === "<<" || data === null;
|
|
24328
24443
|
}
|
|
24329
|
-
|
|
24444
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
24330
24445
|
kind: "scalar",
|
|
24331
24446
|
resolve: resolveYamlMerge
|
|
24332
24447
|
});
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24336
|
-
|
|
24448
|
+
return merge;
|
|
24449
|
+
}
|
|
24450
|
+
var binary;
|
|
24451
|
+
var hasRequiredBinary;
|
|
24452
|
+
function requireBinary() {
|
|
24453
|
+
if (hasRequiredBinary)
|
|
24454
|
+
return binary;
|
|
24455
|
+
hasRequiredBinary = 1;
|
|
24456
|
+
const Type2 = requireType();
|
|
24457
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
24337
24458
|
\r`;
|
|
24338
24459
|
function resolveYamlBinary(data) {
|
|
24339
24460
|
if (data === null)
|
|
24340
24461
|
return false;
|
|
24341
24462
|
let bitlen = 0;
|
|
24342
24463
|
const max = data.length;
|
|
24343
|
-
const
|
|
24464
|
+
const map2 = BASE64_MAP;
|
|
24344
24465
|
for (let idx = 0;idx < max; idx++) {
|
|
24345
|
-
const code =
|
|
24466
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
24346
24467
|
if (code > 64)
|
|
24347
24468
|
continue;
|
|
24348
24469
|
if (code < 0)
|
|
@@ -24354,7 +24475,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24354
24475
|
function constructYamlBinary(data) {
|
|
24355
24476
|
const input = data.replace(/[\r\n=]/g, "");
|
|
24356
24477
|
const max = input.length;
|
|
24357
|
-
const
|
|
24478
|
+
const map2 = BASE64_MAP;
|
|
24358
24479
|
let bits = 0;
|
|
24359
24480
|
const result = [];
|
|
24360
24481
|
for (let idx = 0;idx < max; idx++) {
|
|
@@ -24363,7 +24484,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24363
24484
|
result.push(bits >> 8 & 255);
|
|
24364
24485
|
result.push(bits & 255);
|
|
24365
24486
|
}
|
|
24366
|
-
bits = bits << 6 |
|
|
24487
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
24367
24488
|
}
|
|
24368
24489
|
const tailbits = max % 4 * 6;
|
|
24369
24490
|
if (tailbits === 0) {
|
|
@@ -24373,58 +24494,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24373
24494
|
} else if (tailbits === 18) {
|
|
24374
24495
|
result.push(bits >> 10 & 255);
|
|
24375
24496
|
result.push(bits >> 2 & 255);
|
|
24376
|
-
} else if (tailbits === 12)
|
|
24497
|
+
} else if (tailbits === 12) {
|
|
24377
24498
|
result.push(bits >> 4 & 255);
|
|
24499
|
+
}
|
|
24378
24500
|
return new Uint8Array(result);
|
|
24379
24501
|
}
|
|
24380
24502
|
function representYamlBinary(object) {
|
|
24381
24503
|
let result = "";
|
|
24382
24504
|
let bits = 0;
|
|
24383
24505
|
const max = object.length;
|
|
24384
|
-
const
|
|
24506
|
+
const map2 = BASE64_MAP;
|
|
24385
24507
|
for (let idx = 0;idx < max; idx++) {
|
|
24386
24508
|
if (idx % 3 === 0 && idx) {
|
|
24387
|
-
result +=
|
|
24388
|
-
result +=
|
|
24389
|
-
result +=
|
|
24390
|
-
result +=
|
|
24509
|
+
result += map2[bits >> 18 & 63];
|
|
24510
|
+
result += map2[bits >> 12 & 63];
|
|
24511
|
+
result += map2[bits >> 6 & 63];
|
|
24512
|
+
result += map2[bits & 63];
|
|
24391
24513
|
}
|
|
24392
24514
|
bits = (bits << 8) + object[idx];
|
|
24393
24515
|
}
|
|
24394
24516
|
const tail = max % 3;
|
|
24395
24517
|
if (tail === 0) {
|
|
24396
|
-
result +=
|
|
24397
|
-
result +=
|
|
24398
|
-
result +=
|
|
24399
|
-
result +=
|
|
24518
|
+
result += map2[bits >> 18 & 63];
|
|
24519
|
+
result += map2[bits >> 12 & 63];
|
|
24520
|
+
result += map2[bits >> 6 & 63];
|
|
24521
|
+
result += map2[bits & 63];
|
|
24400
24522
|
} else if (tail === 2) {
|
|
24401
|
-
result +=
|
|
24402
|
-
result +=
|
|
24403
|
-
result +=
|
|
24404
|
-
result +=
|
|
24523
|
+
result += map2[bits >> 10 & 63];
|
|
24524
|
+
result += map2[bits >> 4 & 63];
|
|
24525
|
+
result += map2[bits << 2 & 63];
|
|
24526
|
+
result += map2[64];
|
|
24405
24527
|
} else if (tail === 1) {
|
|
24406
|
-
result +=
|
|
24407
|
-
result +=
|
|
24408
|
-
result +=
|
|
24409
|
-
result +=
|
|
24528
|
+
result += map2[bits >> 2 & 63];
|
|
24529
|
+
result += map2[bits << 4 & 63];
|
|
24530
|
+
result += map2[64];
|
|
24531
|
+
result += map2[64];
|
|
24410
24532
|
}
|
|
24411
24533
|
return result;
|
|
24412
24534
|
}
|
|
24413
24535
|
function isBinary(obj) {
|
|
24414
24536
|
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
24415
24537
|
}
|
|
24416
|
-
|
|
24538
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
24417
24539
|
kind: "scalar",
|
|
24418
24540
|
resolve: resolveYamlBinary,
|
|
24419
24541
|
construct: constructYamlBinary,
|
|
24420
24542
|
predicate: isBinary,
|
|
24421
24543
|
represent: representYamlBinary
|
|
24422
24544
|
});
|
|
24423
|
-
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24545
|
+
return binary;
|
|
24546
|
+
}
|
|
24547
|
+
var omap;
|
|
24548
|
+
var hasRequiredOmap;
|
|
24549
|
+
function requireOmap() {
|
|
24550
|
+
if (hasRequiredOmap)
|
|
24551
|
+
return omap;
|
|
24552
|
+
hasRequiredOmap = 1;
|
|
24553
|
+
const Type2 = requireType();
|
|
24554
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24555
|
+
const _toString = Object.prototype.toString;
|
|
24428
24556
|
function resolveYamlOmap(data) {
|
|
24429
24557
|
if (data === null)
|
|
24430
24558
|
return true;
|
|
@@ -24436,12 +24564,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24436
24564
|
if (_toString.call(pair) !== "[object Object]")
|
|
24437
24565
|
return false;
|
|
24438
24566
|
let pairKey;
|
|
24439
|
-
for (pairKey in pair)
|
|
24440
|
-
if (_hasOwnProperty.call(pair, pairKey))
|
|
24567
|
+
for (pairKey in pair) {
|
|
24568
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
24441
24569
|
if (!pairHasKey)
|
|
24442
24570
|
pairHasKey = true;
|
|
24443
24571
|
else
|
|
24444
24572
|
return false;
|
|
24573
|
+
}
|
|
24574
|
+
}
|
|
24445
24575
|
if (!pairHasKey)
|
|
24446
24576
|
return false;
|
|
24447
24577
|
if (objectKeys.indexOf(pairKey) === -1)
|
|
@@ -24454,15 +24584,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24454
24584
|
function constructYamlOmap(data) {
|
|
24455
24585
|
return data !== null ? data : [];
|
|
24456
24586
|
}
|
|
24457
|
-
|
|
24587
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
24458
24588
|
kind: "sequence",
|
|
24459
24589
|
resolve: resolveYamlOmap,
|
|
24460
24590
|
construct: constructYamlOmap
|
|
24461
24591
|
});
|
|
24462
|
-
|
|
24463
|
-
|
|
24464
|
-
|
|
24465
|
-
|
|
24592
|
+
return omap;
|
|
24593
|
+
}
|
|
24594
|
+
var pairs;
|
|
24595
|
+
var hasRequiredPairs;
|
|
24596
|
+
function requirePairs() {
|
|
24597
|
+
if (hasRequiredPairs)
|
|
24598
|
+
return pairs;
|
|
24599
|
+
hasRequiredPairs = 1;
|
|
24600
|
+
const Type2 = requireType();
|
|
24601
|
+
const _toString = Object.prototype.toString;
|
|
24466
24602
|
function resolveYamlPairs(data) {
|
|
24467
24603
|
if (data === null)
|
|
24468
24604
|
return true;
|
|
@@ -24491,64 +24627,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24491
24627
|
}
|
|
24492
24628
|
return result;
|
|
24493
24629
|
}
|
|
24494
|
-
|
|
24630
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
24495
24631
|
kind: "sequence",
|
|
24496
24632
|
resolve: resolveYamlPairs,
|
|
24497
24633
|
construct: constructYamlPairs
|
|
24498
24634
|
});
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
|
|
24635
|
+
return pairs;
|
|
24636
|
+
}
|
|
24637
|
+
var set;
|
|
24638
|
+
var hasRequiredSet;
|
|
24639
|
+
function requireSet() {
|
|
24640
|
+
if (hasRequiredSet)
|
|
24641
|
+
return set;
|
|
24642
|
+
hasRequiredSet = 1;
|
|
24643
|
+
const Type2 = requireType();
|
|
24644
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24503
24645
|
function resolveYamlSet(data) {
|
|
24504
24646
|
if (data === null)
|
|
24505
24647
|
return true;
|
|
24506
24648
|
const object = data;
|
|
24507
|
-
for (const key in object)
|
|
24649
|
+
for (const key in object) {
|
|
24508
24650
|
if (_hasOwnProperty.call(object, key)) {
|
|
24509
24651
|
if (object[key] !== null)
|
|
24510
24652
|
return false;
|
|
24511
24653
|
}
|
|
24654
|
+
}
|
|
24512
24655
|
return true;
|
|
24513
24656
|
}
|
|
24514
24657
|
function constructYamlSet(data) {
|
|
24515
24658
|
return data !== null ? data : {};
|
|
24516
24659
|
}
|
|
24517
|
-
|
|
24660
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
24518
24661
|
kind: "mapping",
|
|
24519
24662
|
resolve: resolveYamlSet,
|
|
24520
24663
|
construct: constructYamlSet
|
|
24521
24664
|
});
|
|
24522
|
-
|
|
24523
|
-
|
|
24524
|
-
|
|
24525
|
-
|
|
24665
|
+
return set;
|
|
24666
|
+
}
|
|
24667
|
+
var _default;
|
|
24668
|
+
var hasRequired_default;
|
|
24669
|
+
function require_default() {
|
|
24670
|
+
if (hasRequired_default)
|
|
24671
|
+
return _default;
|
|
24672
|
+
hasRequired_default = 1;
|
|
24673
|
+
_default = requireCore().extend({
|
|
24674
|
+
implicit: [
|
|
24675
|
+
requireTimestamp(),
|
|
24676
|
+
requireMerge()
|
|
24677
|
+
],
|
|
24526
24678
|
explicit: [
|
|
24527
|
-
|
|
24528
|
-
|
|
24529
|
-
|
|
24530
|
-
|
|
24679
|
+
requireBinary(),
|
|
24680
|
+
requireOmap(),
|
|
24681
|
+
requirePairs(),
|
|
24682
|
+
requireSet()
|
|
24531
24683
|
]
|
|
24532
24684
|
});
|
|
24533
|
-
|
|
24534
|
-
|
|
24535
|
-
|
|
24536
|
-
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24685
|
+
return _default;
|
|
24686
|
+
}
|
|
24687
|
+
var hasRequiredLoader;
|
|
24688
|
+
function requireLoader() {
|
|
24689
|
+
if (hasRequiredLoader)
|
|
24690
|
+
return loader;
|
|
24691
|
+
hasRequiredLoader = 1;
|
|
24692
|
+
const common2 = requireCommon();
|
|
24693
|
+
const YAMLException2 = requireException();
|
|
24694
|
+
const makeSnippet = requireSnippet();
|
|
24695
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
24696
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24697
|
+
const CONTEXT_FLOW_IN = 1;
|
|
24698
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
24699
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
24700
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
24701
|
+
const CHOMPING_CLIP = 1;
|
|
24702
|
+
const CHOMPING_STRIP = 2;
|
|
24703
|
+
const CHOMPING_KEEP = 3;
|
|
24704
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
24705
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
24706
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
24707
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
24708
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
24552
24709
|
function _class(obj) {
|
|
24553
24710
|
return Object.prototype.toString.call(obj);
|
|
24554
24711
|
}
|
|
@@ -24565,25 +24722,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24565
24722
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
24566
24723
|
}
|
|
24567
24724
|
function fromHexCode(c) {
|
|
24568
|
-
if (c >= 48 && c <= 57)
|
|
24725
|
+
if (c >= 48 && c <= 57) {
|
|
24569
24726
|
return c - 48;
|
|
24727
|
+
}
|
|
24570
24728
|
const lc = c | 32;
|
|
24571
|
-
if (lc >= 97 && lc <= 102)
|
|
24729
|
+
if (lc >= 97 && lc <= 102) {
|
|
24572
24730
|
return lc - 97 + 10;
|
|
24731
|
+
}
|
|
24573
24732
|
return -1;
|
|
24574
24733
|
}
|
|
24575
24734
|
function escapedHexLen(c) {
|
|
24576
|
-
if (c === 120)
|
|
24735
|
+
if (c === 120) {
|
|
24577
24736
|
return 2;
|
|
24578
|
-
|
|
24737
|
+
}
|
|
24738
|
+
if (c === 117) {
|
|
24579
24739
|
return 4;
|
|
24580
|
-
|
|
24740
|
+
}
|
|
24741
|
+
if (c === 85) {
|
|
24581
24742
|
return 8;
|
|
24743
|
+
}
|
|
24582
24744
|
return 0;
|
|
24583
24745
|
}
|
|
24584
24746
|
function fromDecimalCode(c) {
|
|
24585
|
-
if (c >= 48 && c <= 57)
|
|
24747
|
+
if (c >= 48 && c <= 57) {
|
|
24586
24748
|
return c - 48;
|
|
24749
|
+
}
|
|
24587
24750
|
return -1;
|
|
24588
24751
|
}
|
|
24589
24752
|
function simpleEscapeSequence(c) {
|
|
@@ -24630,23 +24793,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24630
24793
|
}
|
|
24631
24794
|
}
|
|
24632
24795
|
function charFromCodepoint(c) {
|
|
24633
|
-
if (c <= 65535)
|
|
24796
|
+
if (c <= 65535) {
|
|
24634
24797
|
return String.fromCharCode(c);
|
|
24798
|
+
}
|
|
24635
24799
|
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
24636
24800
|
}
|
|
24637
24801
|
function setProperty(object, key, value) {
|
|
24638
|
-
if (key === "__proto__")
|
|
24802
|
+
if (key === "__proto__") {
|
|
24639
24803
|
Object.defineProperty(object, key, {
|
|
24640
24804
|
configurable: true,
|
|
24641
24805
|
enumerable: true,
|
|
24642
24806
|
writable: true,
|
|
24643
24807
|
value
|
|
24644
24808
|
});
|
|
24645
|
-
else
|
|
24809
|
+
} else {
|
|
24646
24810
|
object[key] = value;
|
|
24811
|
+
}
|
|
24647
24812
|
}
|
|
24648
|
-
|
|
24649
|
-
|
|
24813
|
+
const simpleEscapeCheck = new Array(256);
|
|
24814
|
+
const simpleEscapeMap = new Array(256);
|
|
24650
24815
|
for (let i = 0;i < 256; i++) {
|
|
24651
24816
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
24652
24817
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
@@ -24654,13 +24819,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24654
24819
|
function State(input, options) {
|
|
24655
24820
|
this.input = input;
|
|
24656
24821
|
this.filename = options["filename"] || null;
|
|
24657
|
-
this.schema = options["schema"] ||
|
|
24822
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
24658
24823
|
this.onWarning = options["onWarning"] || null;
|
|
24659
24824
|
this.legacy = options["legacy"] || false;
|
|
24660
24825
|
this.json = options["json"] || false;
|
|
24661
24826
|
this.listener = options["listener"] || null;
|
|
24662
24827
|
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
24663
|
-
this.
|
|
24828
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
24664
24829
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
24665
24830
|
this.typeMap = this.schema.compiledTypeMap;
|
|
24666
24831
|
this.length = input.length;
|
|
@@ -24669,6 +24834,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24669
24834
|
this.lineStart = 0;
|
|
24670
24835
|
this.lineIndent = 0;
|
|
24671
24836
|
this.depth = 0;
|
|
24837
|
+
this.totalMergeKeys = 0;
|
|
24672
24838
|
this.firstTabInLine = -1;
|
|
24673
24839
|
this.documents = [];
|
|
24674
24840
|
this.anchorMapTransactions = [];
|
|
@@ -24682,29 +24848,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24682
24848
|
column: state.position - state.lineStart
|
|
24683
24849
|
};
|
|
24684
24850
|
mark.snippet = makeSnippet(mark);
|
|
24685
|
-
return new
|
|
24851
|
+
return new YAMLException2(message, mark);
|
|
24686
24852
|
}
|
|
24687
24853
|
function throwError(state, message) {
|
|
24688
24854
|
throw generateError(state, message);
|
|
24689
24855
|
}
|
|
24690
24856
|
function throwWarning(state, message) {
|
|
24691
|
-
if (state.onWarning)
|
|
24857
|
+
if (state.onWarning) {
|
|
24692
24858
|
state.onWarning.call(null, generateError(state, message));
|
|
24859
|
+
}
|
|
24693
24860
|
}
|
|
24694
24861
|
function storeAnchor(state, name, value) {
|
|
24695
24862
|
const transactions = state.anchorMapTransactions;
|
|
24696
24863
|
if (transactions.length !== 0) {
|
|
24697
24864
|
const transaction = transactions[transactions.length - 1];
|
|
24698
|
-
if (!_hasOwnProperty.call(transaction, name))
|
|
24865
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
24699
24866
|
transaction[name] = {
|
|
24700
24867
|
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
24701
24868
|
value: state.anchorMap[name]
|
|
24702
24869
|
};
|
|
24870
|
+
}
|
|
24703
24871
|
}
|
|
24704
24872
|
state.anchorMap[name] = value;
|
|
24705
24873
|
}
|
|
24706
24874
|
function beginAnchorTransaction(state) {
|
|
24707
|
-
state.anchorMapTransactions.push(Object.create(null));
|
|
24875
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
24708
24876
|
}
|
|
24709
24877
|
function commitAnchorTransaction(state) {
|
|
24710
24878
|
const transaction = state.anchorMapTransactions.pop();
|
|
@@ -24715,8 +24883,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24715
24883
|
const names = Object.keys(transaction);
|
|
24716
24884
|
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
24717
24885
|
const name = names[index];
|
|
24718
|
-
if (!_hasOwnProperty.call(parent, name))
|
|
24886
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
24719
24887
|
parent[name] = transaction[name];
|
|
24888
|
+
}
|
|
24720
24889
|
}
|
|
24721
24890
|
}
|
|
24722
24891
|
function rollbackAnchorTransaction(state) {
|
|
@@ -24724,10 +24893,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24724
24893
|
const names = Object.keys(transaction);
|
|
24725
24894
|
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
24726
24895
|
const entry = transaction[names[index]];
|
|
24727
|
-
if (entry.existed)
|
|
24896
|
+
if (entry.existed) {
|
|
24728
24897
|
state.anchorMap[names[index]] = entry.value;
|
|
24729
|
-
else
|
|
24898
|
+
} else {
|
|
24730
24899
|
delete state.anchorMap[names[index]];
|
|
24900
|
+
}
|
|
24731
24901
|
}
|
|
24732
24902
|
}
|
|
24733
24903
|
function snapshotState(state) {
|
|
@@ -24754,36 +24924,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24754
24924
|
state.kind = snapshot.kind;
|
|
24755
24925
|
state.result = snapshot.result;
|
|
24756
24926
|
}
|
|
24757
|
-
|
|
24927
|
+
const directiveHandlers = {
|
|
24758
24928
|
YAML: function handleYamlDirective(state, name, args) {
|
|
24759
|
-
if (state.version !== null)
|
|
24929
|
+
if (state.version !== null) {
|
|
24760
24930
|
throwError(state, "duplication of %YAML directive");
|
|
24761
|
-
|
|
24931
|
+
}
|
|
24932
|
+
if (args.length !== 1) {
|
|
24762
24933
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
24934
|
+
}
|
|
24763
24935
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
24764
|
-
if (match === null)
|
|
24936
|
+
if (match === null) {
|
|
24765
24937
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
24938
|
+
}
|
|
24766
24939
|
const major = parseInt(match[1], 10);
|
|
24767
24940
|
const minor = parseInt(match[2], 10);
|
|
24768
|
-
if (major !== 1)
|
|
24941
|
+
if (major !== 1) {
|
|
24769
24942
|
throwError(state, "unacceptable YAML version of the document");
|
|
24943
|
+
}
|
|
24770
24944
|
state.version = args[0];
|
|
24771
24945
|
state.checkLineBreaks = minor < 2;
|
|
24772
|
-
if (minor !== 1 && minor !== 2)
|
|
24946
|
+
if (minor !== 1 && minor !== 2) {
|
|
24773
24947
|
throwWarning(state, "unsupported YAML version of the document");
|
|
24948
|
+
}
|
|
24774
24949
|
},
|
|
24775
24950
|
TAG: function handleTagDirective(state, name, args) {
|
|
24776
24951
|
let prefix;
|
|
24777
|
-
if (args.length !== 2)
|
|
24952
|
+
if (args.length !== 2) {
|
|
24778
24953
|
throwError(state, "TAG directive accepts exactly two arguments");
|
|
24954
|
+
}
|
|
24779
24955
|
const handle = args[0];
|
|
24780
24956
|
prefix = args[1];
|
|
24781
|
-
if (!PATTERN_TAG_HANDLE.test(handle))
|
|
24957
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
24782
24958
|
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
24783
|
-
|
|
24959
|
+
}
|
|
24960
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
24784
24961
|
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
24785
|
-
|
|
24962
|
+
}
|
|
24963
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
24786
24964
|
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
24965
|
+
}
|
|
24787
24966
|
try {
|
|
24788
24967
|
prefix = decodeURIComponent(prefix);
|
|
24789
24968
|
} catch (err) {
|
|
@@ -24795,23 +24974,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24795
24974
|
function captureSegment(state, start, end, checkJson) {
|
|
24796
24975
|
if (start < end) {
|
|
24797
24976
|
const _result = state.input.slice(start, end);
|
|
24798
|
-
if (checkJson)
|
|
24977
|
+
if (checkJson) {
|
|
24799
24978
|
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
24800
24979
|
const _character = _result.charCodeAt(_position);
|
|
24801
|
-
if (!(_character === 9 || _character >= 32 && _character <= 1114111))
|
|
24980
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
24802
24981
|
throwError(state, "expected valid JSON character");
|
|
24982
|
+
}
|
|
24803
24983
|
}
|
|
24804
|
-
else if (PATTERN_NON_PRINTABLE.test(_result))
|
|
24984
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
24805
24985
|
throwError(state, "the stream contains non-printable characters");
|
|
24986
|
+
}
|
|
24806
24987
|
state.result += _result;
|
|
24807
24988
|
}
|
|
24808
24989
|
}
|
|
24809
24990
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
24810
|
-
if (!
|
|
24991
|
+
if (!common2.isObject(source)) {
|
|
24811
24992
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
24993
|
+
}
|
|
24812
24994
|
const sourceKeys = Object.keys(source);
|
|
24813
24995
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
24814
24996
|
const key = sourceKeys[index];
|
|
24997
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
24998
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
24999
|
+
}
|
|
24815
25000
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
24816
25001
|
setProperty(destination, key, source[key]);
|
|
24817
25002
|
overridableKeys[key] = true;
|
|
@@ -24822,32 +25007,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24822
25007
|
if (Array.isArray(keyNode)) {
|
|
24823
25008
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
24824
25009
|
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
24825
|
-
if (Array.isArray(keyNode[index]))
|
|
25010
|
+
if (Array.isArray(keyNode[index])) {
|
|
24826
25011
|
throwError(state, "nested arrays are not supported inside keys");
|
|
24827
|
-
|
|
25012
|
+
}
|
|
25013
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
24828
25014
|
keyNode[index] = "[object Object]";
|
|
25015
|
+
}
|
|
24829
25016
|
}
|
|
24830
25017
|
}
|
|
24831
|
-
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
|
|
25018
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
24832
25019
|
keyNode = "[object Object]";
|
|
25020
|
+
}
|
|
24833
25021
|
keyNode = String(keyNode);
|
|
24834
|
-
if (_result === null)
|
|
25022
|
+
if (_result === null) {
|
|
24835
25023
|
_result = {};
|
|
24836
|
-
|
|
25024
|
+
}
|
|
25025
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
24837
25026
|
if (Array.isArray(valueNode)) {
|
|
24838
|
-
if (valueNode.length > state.maxMergeSeqLength)
|
|
24839
|
-
throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
|
|
24840
|
-
const seen = /* @__PURE__ */ new Set;
|
|
24841
25027
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
24842
|
-
|
|
24843
|
-
if (seen.has(src))
|
|
24844
|
-
continue;
|
|
24845
|
-
seen.add(src);
|
|
24846
|
-
mergeMappings(state, _result, src, overridableKeys);
|
|
25028
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
24847
25029
|
}
|
|
24848
|
-
} else
|
|
25030
|
+
} else {
|
|
24849
25031
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
24850
|
-
|
|
25032
|
+
}
|
|
25033
|
+
} else {
|
|
24851
25034
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
24852
25035
|
state.line = startLine || state.line;
|
|
24853
25036
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -24861,14 +25044,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24861
25044
|
}
|
|
24862
25045
|
function readLineBreak(state) {
|
|
24863
25046
|
const ch = state.input.charCodeAt(state.position);
|
|
24864
|
-
if (ch === 10)
|
|
25047
|
+
if (ch === 10) {
|
|
24865
25048
|
state.position++;
|
|
24866
|
-
else if (ch === 13) {
|
|
25049
|
+
} else if (ch === 13) {
|
|
24867
25050
|
state.position++;
|
|
24868
|
-
if (state.input.charCodeAt(state.position) === 10)
|
|
25051
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
24869
25052
|
state.position++;
|
|
24870
|
-
|
|
25053
|
+
}
|
|
25054
|
+
} else {
|
|
24871
25055
|
throwError(state, "a line break is expected");
|
|
25056
|
+
}
|
|
24872
25057
|
state.line += 1;
|
|
24873
25058
|
state.lineStart = state.position;
|
|
24874
25059
|
state.firstTabInLine = -1;
|
|
@@ -24878,14 +25063,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24878
25063
|
let ch = state.input.charCodeAt(state.position);
|
|
24879
25064
|
while (ch !== 0) {
|
|
24880
25065
|
while (isWhiteSpace(ch)) {
|
|
24881
|
-
if (ch === 9 && state.firstTabInLine === -1)
|
|
25066
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
24882
25067
|
state.firstTabInLine = state.position;
|
|
25068
|
+
}
|
|
24883
25069
|
ch = state.input.charCodeAt(++state.position);
|
|
24884
25070
|
}
|
|
24885
|
-
if (allowComments && ch === 35)
|
|
24886
|
-
do
|
|
25071
|
+
if (allowComments && ch === 35) {
|
|
25072
|
+
do {
|
|
24887
25073
|
ch = state.input.charCodeAt(++state.position);
|
|
24888
|
-
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
25074
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
25075
|
+
}
|
|
24889
25076
|
if (isEol(ch)) {
|
|
24890
25077
|
readLineBreak(state);
|
|
24891
25078
|
ch = state.input.charCodeAt(state.position);
|
|
@@ -24895,11 +25082,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24895
25082
|
state.lineIndent++;
|
|
24896
25083
|
ch = state.input.charCodeAt(++state.position);
|
|
24897
25084
|
}
|
|
24898
|
-
} else
|
|
25085
|
+
} else {
|
|
24899
25086
|
break;
|
|
25087
|
+
}
|
|
24900
25088
|
}
|
|
24901
|
-
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
|
|
25089
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
24902
25090
|
throwWarning(state, "deficient indentation");
|
|
25091
|
+
}
|
|
24903
25092
|
return lineBreaks;
|
|
24904
25093
|
}
|
|
24905
25094
|
function testDocumentSeparator(state) {
|
|
@@ -24908,17 +25097,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24908
25097
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
24909
25098
|
_position += 3;
|
|
24910
25099
|
ch = state.input.charCodeAt(_position);
|
|
24911
|
-
if (ch === 0 || isWsOrEol(ch))
|
|
25100
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
24912
25101
|
return true;
|
|
25102
|
+
}
|
|
24913
25103
|
}
|
|
24914
25104
|
return false;
|
|
24915
25105
|
}
|
|
24916
25106
|
function writeFoldedLines(state, count) {
|
|
24917
|
-
if (count === 1)
|
|
25107
|
+
if (count === 1) {
|
|
24918
25108
|
state.result += " ";
|
|
24919
|
-
else if (count > 1)
|
|
24920
|
-
state.result +=
|
|
25109
|
+
} else if (count > 1) {
|
|
25110
|
+
state.result += common2.repeat(`
|
|
24921
25111
|
`, count - 1);
|
|
25112
|
+
}
|
|
24922
25113
|
}
|
|
24923
25114
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
24924
25115
|
let captureStart;
|
|
@@ -24930,12 +25121,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24930
25121
|
const _kind = state.kind;
|
|
24931
25122
|
const _result = state.result;
|
|
24932
25123
|
let ch = state.input.charCodeAt(state.position);
|
|
24933
|
-
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)
|
|
25124
|
+
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) {
|
|
24934
25125
|
return false;
|
|
25126
|
+
}
|
|
24935
25127
|
if (ch === 63 || ch === 45) {
|
|
24936
25128
|
const following = state.input.charCodeAt(state.position + 1);
|
|
24937
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
25129
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
24938
25130
|
return false;
|
|
25131
|
+
}
|
|
24939
25132
|
}
|
|
24940
25133
|
state.kind = "scalar";
|
|
24941
25134
|
state.result = "";
|
|
@@ -24944,14 +25137,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24944
25137
|
while (ch !== 0) {
|
|
24945
25138
|
if (ch === 58) {
|
|
24946
25139
|
const following = state.input.charCodeAt(state.position + 1);
|
|
24947
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
25140
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
24948
25141
|
break;
|
|
25142
|
+
}
|
|
24949
25143
|
} else if (ch === 35) {
|
|
24950
|
-
|
|
25144
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
25145
|
+
if (isWsOrEol(preceding)) {
|
|
24951
25146
|
break;
|
|
24952
|
-
|
|
25147
|
+
}
|
|
25148
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
24953
25149
|
break;
|
|
24954
|
-
else if (isEol(ch)) {
|
|
25150
|
+
} else if (isEol(ch)) {
|
|
24955
25151
|
_line = state.line;
|
|
24956
25152
|
_lineStart = state.lineStart;
|
|
24957
25153
|
_lineIndent = state.lineIndent;
|
|
@@ -24974,13 +25170,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24974
25170
|
captureStart = captureEnd = state.position;
|
|
24975
25171
|
hasPendingContent = false;
|
|
24976
25172
|
}
|
|
24977
|
-
if (!isWhiteSpace(ch))
|
|
25173
|
+
if (!isWhiteSpace(ch)) {
|
|
24978
25174
|
captureEnd = state.position + 1;
|
|
25175
|
+
}
|
|
24979
25176
|
ch = state.input.charCodeAt(++state.position);
|
|
24980
25177
|
}
|
|
24981
25178
|
captureSegment(state, captureStart, captureEnd, false);
|
|
24982
|
-
if (state.result)
|
|
25179
|
+
if (state.result) {
|
|
24983
25180
|
return true;
|
|
25181
|
+
}
|
|
24984
25182
|
state.kind = _kind;
|
|
24985
25183
|
state.result = _result;
|
|
24986
25184
|
return false;
|
|
@@ -24989,13 +25187,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24989
25187
|
let captureStart;
|
|
24990
25188
|
let captureEnd;
|
|
24991
25189
|
let ch = state.input.charCodeAt(state.position);
|
|
24992
|
-
if (ch !== 39)
|
|
25190
|
+
if (ch !== 39) {
|
|
24993
25191
|
return false;
|
|
25192
|
+
}
|
|
24994
25193
|
state.kind = "scalar";
|
|
24995
25194
|
state.result = "";
|
|
24996
25195
|
state.position++;
|
|
24997
25196
|
captureStart = captureEnd = state.position;
|
|
24998
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
25197
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
24999
25198
|
if (ch === 39) {
|
|
25000
25199
|
captureSegment(state, captureStart, state.position, true);
|
|
25001
25200
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -25003,19 +25202,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25003
25202
|
captureStart = state.position;
|
|
25004
25203
|
state.position++;
|
|
25005
25204
|
captureEnd = state.position;
|
|
25006
|
-
} else
|
|
25205
|
+
} else {
|
|
25007
25206
|
return true;
|
|
25207
|
+
}
|
|
25008
25208
|
} else if (isEol(ch)) {
|
|
25009
25209
|
captureSegment(state, captureStart, captureEnd, true);
|
|
25010
25210
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
25011
25211
|
captureStart = captureEnd = state.position;
|
|
25012
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
25212
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
25013
25213
|
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
25014
|
-
else {
|
|
25214
|
+
} else {
|
|
25015
25215
|
state.position++;
|
|
25016
|
-
if (!isWhiteSpace(ch))
|
|
25216
|
+
if (!isWhiteSpace(ch)) {
|
|
25017
25217
|
captureEnd = state.position;
|
|
25218
|
+
}
|
|
25018
25219
|
}
|
|
25220
|
+
}
|
|
25019
25221
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
25020
25222
|
}
|
|
25021
25223
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -25023,13 +25225,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25023
25225
|
let captureEnd;
|
|
25024
25226
|
let tmp;
|
|
25025
25227
|
let ch = state.input.charCodeAt(state.position);
|
|
25026
|
-
if (ch !== 34)
|
|
25228
|
+
if (ch !== 34) {
|
|
25027
25229
|
return false;
|
|
25230
|
+
}
|
|
25028
25231
|
state.kind = "scalar";
|
|
25029
25232
|
state.result = "";
|
|
25030
25233
|
state.position++;
|
|
25031
25234
|
captureStart = captureEnd = state.position;
|
|
25032
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
25235
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
25033
25236
|
if (ch === 34) {
|
|
25034
25237
|
captureSegment(state, captureStart, state.position, true);
|
|
25035
25238
|
state.position++;
|
|
@@ -25037,9 +25240,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25037
25240
|
} else if (ch === 92) {
|
|
25038
25241
|
captureSegment(state, captureStart, state.position, true);
|
|
25039
25242
|
ch = state.input.charCodeAt(++state.position);
|
|
25040
|
-
if (isEol(ch))
|
|
25243
|
+
if (isEol(ch)) {
|
|
25041
25244
|
skipSeparationSpace(state, false, nodeIndent);
|
|
25042
|
-
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
25245
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
25043
25246
|
state.result += simpleEscapeMap[ch];
|
|
25044
25247
|
state.position++;
|
|
25045
25248
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
@@ -25047,27 +25250,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25047
25250
|
let hexResult = 0;
|
|
25048
25251
|
for (;hexLength > 0; hexLength--) {
|
|
25049
25252
|
ch = state.input.charCodeAt(++state.position);
|
|
25050
|
-
if ((tmp = fromHexCode(ch)) >= 0)
|
|
25253
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
25051
25254
|
hexResult = (hexResult << 4) + tmp;
|
|
25052
|
-
else
|
|
25255
|
+
} else {
|
|
25053
25256
|
throwError(state, "expected hexadecimal character");
|
|
25257
|
+
}
|
|
25054
25258
|
}
|
|
25055
25259
|
state.result += charFromCodepoint(hexResult);
|
|
25056
25260
|
state.position++;
|
|
25057
|
-
} else
|
|
25261
|
+
} else {
|
|
25058
25262
|
throwError(state, "unknown escape sequence");
|
|
25263
|
+
}
|
|
25059
25264
|
captureStart = captureEnd = state.position;
|
|
25060
25265
|
} else if (isEol(ch)) {
|
|
25061
25266
|
captureSegment(state, captureStart, captureEnd, true);
|
|
25062
25267
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
25063
25268
|
captureStart = captureEnd = state.position;
|
|
25064
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
25269
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
25065
25270
|
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
25066
|
-
else {
|
|
25271
|
+
} else {
|
|
25067
25272
|
state.position++;
|
|
25068
|
-
if (!isWhiteSpace(ch))
|
|
25273
|
+
if (!isWhiteSpace(ch)) {
|
|
25069
25274
|
captureEnd = state.position;
|
|
25275
|
+
}
|
|
25070
25276
|
}
|
|
25277
|
+
}
|
|
25071
25278
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
25072
25279
|
}
|
|
25073
25280
|
function readFlowCollection(state, nodeIndent) {
|
|
@@ -25082,7 +25289,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25082
25289
|
let isPair;
|
|
25083
25290
|
let isExplicitPair;
|
|
25084
25291
|
let isMapping;
|
|
25085
|
-
const overridableKeys = Object.create(null);
|
|
25292
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
25086
25293
|
let keyNode;
|
|
25087
25294
|
let keyTag;
|
|
25088
25295
|
let valueNode;
|
|
@@ -25095,10 +25302,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25095
25302
|
terminator = 125;
|
|
25096
25303
|
isMapping = true;
|
|
25097
25304
|
_result = {};
|
|
25098
|
-
} else
|
|
25305
|
+
} else {
|
|
25099
25306
|
return false;
|
|
25100
|
-
|
|
25307
|
+
}
|
|
25308
|
+
if (state.anchor !== null) {
|
|
25101
25309
|
storeAnchor(state, state.anchor, _result);
|
|
25310
|
+
}
|
|
25102
25311
|
ch = state.input.charCodeAt(++state.position);
|
|
25103
25312
|
while (ch !== 0) {
|
|
25104
25313
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -25110,14 +25319,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25110
25319
|
state.kind = isMapping ? "mapping" : "sequence";
|
|
25111
25320
|
state.result = _result;
|
|
25112
25321
|
return true;
|
|
25113
|
-
} else if (!readNext)
|
|
25322
|
+
} else if (!readNext) {
|
|
25114
25323
|
throwError(state, "missed comma between flow collection entries");
|
|
25115
|
-
else if (ch === 44)
|
|
25324
|
+
} else if (ch === 44) {
|
|
25116
25325
|
throwError(state, "expected the node content, but found ','");
|
|
25326
|
+
}
|
|
25117
25327
|
keyTag = keyNode = valueNode = null;
|
|
25118
25328
|
isPair = isExplicitPair = false;
|
|
25119
25329
|
if (ch === 63) {
|
|
25120
|
-
|
|
25330
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
25331
|
+
if (isWsOrEol(following)) {
|
|
25121
25332
|
isPair = isExplicitPair = true;
|
|
25122
25333
|
state.position++;
|
|
25123
25334
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -25138,19 +25349,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25138
25349
|
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
25139
25350
|
valueNode = state.result;
|
|
25140
25351
|
}
|
|
25141
|
-
if (isMapping)
|
|
25352
|
+
if (isMapping) {
|
|
25142
25353
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
25143
|
-
else if (isPair)
|
|
25354
|
+
} else if (isPair) {
|
|
25144
25355
|
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
25145
|
-
else
|
|
25356
|
+
} else {
|
|
25146
25357
|
_result.push(keyNode);
|
|
25358
|
+
}
|
|
25147
25359
|
skipSeparationSpace(state, true, nodeIndent);
|
|
25148
25360
|
ch = state.input.charCodeAt(state.position);
|
|
25149
25361
|
if (ch === 44) {
|
|
25150
25362
|
readNext = true;
|
|
25151
25363
|
ch = state.input.charCodeAt(++state.position);
|
|
25152
|
-
} else
|
|
25364
|
+
} else {
|
|
25153
25365
|
readNext = false;
|
|
25366
|
+
}
|
|
25154
25367
|
}
|
|
25155
25368
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
25156
25369
|
}
|
|
@@ -25164,40 +25377,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25164
25377
|
let atMoreIndented = false;
|
|
25165
25378
|
let tmp;
|
|
25166
25379
|
let ch = state.input.charCodeAt(state.position);
|
|
25167
|
-
if (ch === 124)
|
|
25380
|
+
if (ch === 124) {
|
|
25168
25381
|
folding = false;
|
|
25169
|
-
else if (ch === 62)
|
|
25382
|
+
} else if (ch === 62) {
|
|
25170
25383
|
folding = true;
|
|
25171
|
-
else
|
|
25384
|
+
} else {
|
|
25172
25385
|
return false;
|
|
25386
|
+
}
|
|
25173
25387
|
state.kind = "scalar";
|
|
25174
25388
|
state.result = "";
|
|
25175
25389
|
while (ch !== 0) {
|
|
25176
25390
|
ch = state.input.charCodeAt(++state.position);
|
|
25177
|
-
if (ch === 43 || ch === 45)
|
|
25178
|
-
if (CHOMPING_CLIP === chomping)
|
|
25391
|
+
if (ch === 43 || ch === 45) {
|
|
25392
|
+
if (CHOMPING_CLIP === chomping) {
|
|
25179
25393
|
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
25180
|
-
else
|
|
25394
|
+
} else {
|
|
25181
25395
|
throwError(state, "repeat of a chomping mode identifier");
|
|
25182
|
-
|
|
25183
|
-
|
|
25396
|
+
}
|
|
25397
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
25398
|
+
if (tmp === 0) {
|
|
25184
25399
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
25185
|
-
else if (!detectedIndent) {
|
|
25400
|
+
} else if (!detectedIndent) {
|
|
25186
25401
|
textIndent = nodeIndent + tmp - 1;
|
|
25187
25402
|
detectedIndent = true;
|
|
25188
|
-
} else
|
|
25403
|
+
} else {
|
|
25189
25404
|
throwError(state, "repeat of an indentation width identifier");
|
|
25190
|
-
|
|
25405
|
+
}
|
|
25406
|
+
} else {
|
|
25191
25407
|
break;
|
|
25408
|
+
}
|
|
25192
25409
|
}
|
|
25193
25410
|
if (isWhiteSpace(ch)) {
|
|
25194
|
-
do
|
|
25411
|
+
do {
|
|
25195
25412
|
ch = state.input.charCodeAt(++state.position);
|
|
25196
|
-
while (isWhiteSpace(ch));
|
|
25197
|
-
if (ch === 35)
|
|
25198
|
-
do
|
|
25413
|
+
} while (isWhiteSpace(ch));
|
|
25414
|
+
if (ch === 35) {
|
|
25415
|
+
do {
|
|
25199
25416
|
ch = state.input.charCodeAt(++state.position);
|
|
25200
|
-
while (!isEol(ch) && ch !== 0);
|
|
25417
|
+
} while (!isEol(ch) && ch !== 0);
|
|
25418
|
+
}
|
|
25201
25419
|
}
|
|
25202
25420
|
while (ch !== 0) {
|
|
25203
25421
|
readLineBreak(state);
|
|
@@ -25207,49 +25425,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25207
25425
|
state.lineIndent++;
|
|
25208
25426
|
ch = state.input.charCodeAt(++state.position);
|
|
25209
25427
|
}
|
|
25210
|
-
if (!detectedIndent && state.lineIndent > textIndent)
|
|
25428
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
25211
25429
|
textIndent = state.lineIndent;
|
|
25430
|
+
}
|
|
25212
25431
|
if (isEol(ch)) {
|
|
25213
25432
|
emptyLines++;
|
|
25214
25433
|
continue;
|
|
25215
25434
|
}
|
|
25216
|
-
if (!detectedIndent && textIndent === 0)
|
|
25435
|
+
if (!detectedIndent && textIndent === 0) {
|
|
25217
25436
|
throwError(state, "missing indentation for block scalar");
|
|
25437
|
+
}
|
|
25218
25438
|
if (state.lineIndent < textIndent) {
|
|
25219
|
-
if (chomping === CHOMPING_KEEP)
|
|
25220
|
-
state.result +=
|
|
25439
|
+
if (chomping === CHOMPING_KEEP) {
|
|
25440
|
+
state.result += common2.repeat(`
|
|
25221
25441
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
25222
|
-
else if (chomping === CHOMPING_CLIP) {
|
|
25223
|
-
if (didReadContent)
|
|
25442
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
25443
|
+
if (didReadContent) {
|
|
25224
25444
|
state.result += `
|
|
25225
25445
|
`;
|
|
25446
|
+
}
|
|
25226
25447
|
}
|
|
25227
25448
|
break;
|
|
25228
25449
|
}
|
|
25229
|
-
if (folding)
|
|
25450
|
+
if (folding) {
|
|
25230
25451
|
if (isWhiteSpace(ch)) {
|
|
25231
25452
|
atMoreIndented = true;
|
|
25232
|
-
state.result +=
|
|
25453
|
+
state.result += common2.repeat(`
|
|
25233
25454
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
25234
25455
|
} else if (atMoreIndented) {
|
|
25235
25456
|
atMoreIndented = false;
|
|
25236
|
-
state.result +=
|
|
25457
|
+
state.result += common2.repeat(`
|
|
25237
25458
|
`, emptyLines + 1);
|
|
25238
25459
|
} else if (emptyLines === 0) {
|
|
25239
|
-
if (didReadContent)
|
|
25460
|
+
if (didReadContent) {
|
|
25240
25461
|
state.result += " ";
|
|
25241
|
-
|
|
25242
|
-
|
|
25462
|
+
}
|
|
25463
|
+
} else {
|
|
25464
|
+
state.result += common2.repeat(`
|
|
25243
25465
|
`, emptyLines);
|
|
25244
|
-
|
|
25245
|
-
|
|
25466
|
+
}
|
|
25467
|
+
} else {
|
|
25468
|
+
state.result += common2.repeat(`
|
|
25246
25469
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
25470
|
+
}
|
|
25247
25471
|
didReadContent = true;
|
|
25248
25472
|
detectedIndent = true;
|
|
25249
25473
|
emptyLines = 0;
|
|
25250
25474
|
const captureStart = state.position;
|
|
25251
|
-
while (!isEol(ch) && ch !== 0)
|
|
25475
|
+
while (!isEol(ch) && ch !== 0) {
|
|
25252
25476
|
ch = state.input.charCodeAt(++state.position);
|
|
25477
|
+
}
|
|
25253
25478
|
captureSegment(state, captureStart, state.position, false);
|
|
25254
25479
|
}
|
|
25255
25480
|
return true;
|
|
@@ -25261,18 +25486,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25261
25486
|
let detected = false;
|
|
25262
25487
|
if (state.firstTabInLine !== -1)
|
|
25263
25488
|
return false;
|
|
25264
|
-
if (state.anchor !== null)
|
|
25489
|
+
if (state.anchor !== null) {
|
|
25265
25490
|
storeAnchor(state, state.anchor, _result);
|
|
25491
|
+
}
|
|
25266
25492
|
let ch = state.input.charCodeAt(state.position);
|
|
25267
25493
|
while (ch !== 0) {
|
|
25268
25494
|
if (state.firstTabInLine !== -1) {
|
|
25269
25495
|
state.position = state.firstTabInLine;
|
|
25270
25496
|
throwError(state, "tab characters must not be used in indentation");
|
|
25271
25497
|
}
|
|
25272
|
-
if (ch !== 45)
|
|
25498
|
+
if (ch !== 45) {
|
|
25273
25499
|
break;
|
|
25274
|
-
|
|
25500
|
+
}
|
|
25501
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
25502
|
+
if (!isWsOrEol(following)) {
|
|
25275
25503
|
break;
|
|
25504
|
+
}
|
|
25276
25505
|
detected = true;
|
|
25277
25506
|
state.position++;
|
|
25278
25507
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -25287,10 +25516,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25287
25516
|
_result.push(state.result);
|
|
25288
25517
|
skipSeparationSpace(state, true, -1);
|
|
25289
25518
|
ch = state.input.charCodeAt(state.position);
|
|
25290
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
25519
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
25291
25520
|
throwError(state, "bad indentation of a sequence entry");
|
|
25292
|
-
else if (state.lineIndent < nodeIndent)
|
|
25521
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
25293
25522
|
break;
|
|
25523
|
+
}
|
|
25294
25524
|
}
|
|
25295
25525
|
if (detected) {
|
|
25296
25526
|
state.tag = _tag;
|
|
@@ -25309,7 +25539,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25309
25539
|
const _tag = state.tag;
|
|
25310
25540
|
const _anchor = state.anchor;
|
|
25311
25541
|
const _result = {};
|
|
25312
|
-
const overridableKeys = Object.create(null);
|
|
25542
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
25313
25543
|
let keyTag = null;
|
|
25314
25544
|
let keyNode = null;
|
|
25315
25545
|
let valueNode = null;
|
|
@@ -25317,8 +25547,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25317
25547
|
let detected = false;
|
|
25318
25548
|
if (state.firstTabInLine !== -1)
|
|
25319
25549
|
return false;
|
|
25320
|
-
if (state.anchor !== null)
|
|
25550
|
+
if (state.anchor !== null) {
|
|
25321
25551
|
storeAnchor(state, state.anchor, _result);
|
|
25552
|
+
}
|
|
25322
25553
|
let ch = state.input.charCodeAt(state.position);
|
|
25323
25554
|
while (ch !== 0) {
|
|
25324
25555
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
@@ -25339,24 +25570,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25339
25570
|
} else if (atExplicitKey) {
|
|
25340
25571
|
atExplicitKey = false;
|
|
25341
25572
|
allowCompact = true;
|
|
25342
|
-
} else
|
|
25573
|
+
} else {
|
|
25343
25574
|
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
25575
|
+
}
|
|
25344
25576
|
state.position += 1;
|
|
25345
25577
|
ch = following;
|
|
25346
25578
|
} else {
|
|
25347
25579
|
_keyLine = state.line;
|
|
25348
25580
|
_keyLineStart = state.lineStart;
|
|
25349
25581
|
_keyPos = state.position;
|
|
25350
|
-
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
|
|
25582
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
25351
25583
|
break;
|
|
25584
|
+
}
|
|
25352
25585
|
if (state.line === _line) {
|
|
25353
25586
|
ch = state.input.charCodeAt(state.position);
|
|
25354
|
-
while (isWhiteSpace(ch))
|
|
25587
|
+
while (isWhiteSpace(ch)) {
|
|
25355
25588
|
ch = state.input.charCodeAt(++state.position);
|
|
25589
|
+
}
|
|
25356
25590
|
if (ch === 58) {
|
|
25357
25591
|
ch = state.input.charCodeAt(++state.position);
|
|
25358
|
-
if (!isWsOrEol(ch))
|
|
25592
|
+
if (!isWsOrEol(ch)) {
|
|
25359
25593
|
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
25594
|
+
}
|
|
25360
25595
|
if (atExplicitKey) {
|
|
25361
25596
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
25362
25597
|
keyTag = keyNode = valueNode = null;
|
|
@@ -25366,16 +25601,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25366
25601
|
allowCompact = false;
|
|
25367
25602
|
keyTag = state.tag;
|
|
25368
25603
|
keyNode = state.result;
|
|
25369
|
-
} else if (detected)
|
|
25604
|
+
} else if (detected) {
|
|
25370
25605
|
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
25371
|
-
else {
|
|
25606
|
+
} else {
|
|
25372
25607
|
state.tag = _tag;
|
|
25373
25608
|
state.anchor = _anchor;
|
|
25374
25609
|
return true;
|
|
25375
25610
|
}
|
|
25376
|
-
} else if (detected)
|
|
25611
|
+
} else if (detected) {
|
|
25377
25612
|
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
25378
|
-
else {
|
|
25613
|
+
} else {
|
|
25379
25614
|
state.tag = _tag;
|
|
25380
25615
|
state.anchor = _anchor;
|
|
25381
25616
|
return true;
|
|
@@ -25387,11 +25622,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25387
25622
|
_keyLineStart = state.lineStart;
|
|
25388
25623
|
_keyPos = state.position;
|
|
25389
25624
|
}
|
|
25390
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
25391
|
-
if (atExplicitKey)
|
|
25625
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
25626
|
+
if (atExplicitKey) {
|
|
25392
25627
|
keyNode = state.result;
|
|
25393
|
-
else
|
|
25628
|
+
} else {
|
|
25394
25629
|
valueNode = state.result;
|
|
25630
|
+
}
|
|
25631
|
+
}
|
|
25395
25632
|
if (!atExplicitKey) {
|
|
25396
25633
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
25397
25634
|
keyTag = keyNode = valueNode = null;
|
|
@@ -25399,13 +25636,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25399
25636
|
skipSeparationSpace(state, true, -1);
|
|
25400
25637
|
ch = state.input.charCodeAt(state.position);
|
|
25401
25638
|
}
|
|
25402
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
25639
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
25403
25640
|
throwError(state, "bad indentation of a mapping entry");
|
|
25404
|
-
else if (state.lineIndent < nodeIndent)
|
|
25641
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
25405
25642
|
break;
|
|
25643
|
+
}
|
|
25406
25644
|
}
|
|
25407
|
-
if (atExplicitKey)
|
|
25645
|
+
if (atExplicitKey) {
|
|
25408
25646
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
25647
|
+
}
|
|
25409
25648
|
if (detected) {
|
|
25410
25649
|
state.tag = _tag;
|
|
25411
25650
|
state.anchor = _anchor;
|
|
@@ -25422,8 +25661,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25422
25661
|
let ch = state.input.charCodeAt(state.position);
|
|
25423
25662
|
if (ch !== 33)
|
|
25424
25663
|
return false;
|
|
25425
|
-
if (state.tag !== null)
|
|
25664
|
+
if (state.tag !== null) {
|
|
25426
25665
|
throwError(state, "duplication of a tag property");
|
|
25666
|
+
}
|
|
25427
25667
|
ch = state.input.charCodeAt(++state.position);
|
|
25428
25668
|
if (ch === 60) {
|
|
25429
25669
|
isVerbatim = true;
|
|
@@ -25432,66 +25672,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25432
25672
|
isNamed = true;
|
|
25433
25673
|
tagHandle = "!!";
|
|
25434
25674
|
ch = state.input.charCodeAt(++state.position);
|
|
25435
|
-
} else
|
|
25675
|
+
} else {
|
|
25436
25676
|
tagHandle = "!";
|
|
25677
|
+
}
|
|
25437
25678
|
let _position = state.position;
|
|
25438
25679
|
if (isVerbatim) {
|
|
25439
|
-
do
|
|
25680
|
+
do {
|
|
25440
25681
|
ch = state.input.charCodeAt(++state.position);
|
|
25441
|
-
while (ch !== 0 && ch !== 62);
|
|
25682
|
+
} while (ch !== 0 && ch !== 62);
|
|
25442
25683
|
if (state.position < state.length) {
|
|
25443
25684
|
tagName = state.input.slice(_position, state.position);
|
|
25444
25685
|
ch = state.input.charCodeAt(++state.position);
|
|
25445
|
-
} else
|
|
25686
|
+
} else {
|
|
25446
25687
|
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
25688
|
+
}
|
|
25447
25689
|
} else {
|
|
25448
25690
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25449
|
-
if (ch === 33)
|
|
25691
|
+
if (ch === 33) {
|
|
25450
25692
|
if (!isNamed) {
|
|
25451
25693
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
25452
|
-
if (!PATTERN_TAG_HANDLE.test(tagHandle))
|
|
25694
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
25453
25695
|
throwError(state, "named tag handle cannot contain such characters");
|
|
25696
|
+
}
|
|
25454
25697
|
isNamed = true;
|
|
25455
25698
|
_position = state.position + 1;
|
|
25456
|
-
} else
|
|
25699
|
+
} else {
|
|
25457
25700
|
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
25701
|
+
}
|
|
25702
|
+
}
|
|
25458
25703
|
ch = state.input.charCodeAt(++state.position);
|
|
25459
25704
|
}
|
|
25460
25705
|
tagName = state.input.slice(_position, state.position);
|
|
25461
|
-
if (PATTERN_FLOW_INDICATORS.test(tagName))
|
|
25706
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
25462
25707
|
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
25708
|
+
}
|
|
25463
25709
|
}
|
|
25464
|
-
if (tagName && !PATTERN_TAG_URI.test(tagName))
|
|
25710
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
25465
25711
|
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
25712
|
+
}
|
|
25466
25713
|
try {
|
|
25467
25714
|
tagName = decodeURIComponent(tagName);
|
|
25468
25715
|
} catch (err) {
|
|
25469
25716
|
throwError(state, "tag name is malformed: " + tagName);
|
|
25470
25717
|
}
|
|
25471
|
-
if (isVerbatim)
|
|
25718
|
+
if (isVerbatim) {
|
|
25472
25719
|
state.tag = tagName;
|
|
25473
|
-
else if (_hasOwnProperty.call(state.tagMap, tagHandle))
|
|
25720
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
25474
25721
|
state.tag = state.tagMap[tagHandle] + tagName;
|
|
25475
|
-
else if (tagHandle === "!")
|
|
25722
|
+
} else if (tagHandle === "!") {
|
|
25476
25723
|
state.tag = "!" + tagName;
|
|
25477
|
-
else if (tagHandle === "!!")
|
|
25724
|
+
} else if (tagHandle === "!!") {
|
|
25478
25725
|
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
25479
|
-
else
|
|
25726
|
+
} else {
|
|
25480
25727
|
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
25728
|
+
}
|
|
25481
25729
|
return true;
|
|
25482
25730
|
}
|
|
25483
25731
|
function readAnchorProperty(state) {
|
|
25484
25732
|
let ch = state.input.charCodeAt(state.position);
|
|
25485
25733
|
if (ch !== 38)
|
|
25486
25734
|
return false;
|
|
25487
|
-
if (state.anchor !== null)
|
|
25735
|
+
if (state.anchor !== null) {
|
|
25488
25736
|
throwError(state, "duplication of an anchor property");
|
|
25737
|
+
}
|
|
25489
25738
|
ch = state.input.charCodeAt(++state.position);
|
|
25490
25739
|
const _position = state.position;
|
|
25491
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
25740
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
25492
25741
|
ch = state.input.charCodeAt(++state.position);
|
|
25493
|
-
|
|
25742
|
+
}
|
|
25743
|
+
if (state.position === _position) {
|
|
25494
25744
|
throwError(state, "name of an anchor node must contain at least one character");
|
|
25745
|
+
}
|
|
25495
25746
|
state.anchor = state.input.slice(_position, state.position);
|
|
25496
25747
|
return true;
|
|
25497
25748
|
}
|
|
@@ -25501,13 +25752,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25501
25752
|
return false;
|
|
25502
25753
|
ch = state.input.charCodeAt(++state.position);
|
|
25503
25754
|
const _position = state.position;
|
|
25504
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
25755
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
25505
25756
|
ch = state.input.charCodeAt(++state.position);
|
|
25506
|
-
|
|
25757
|
+
}
|
|
25758
|
+
if (state.position === _position) {
|
|
25507
25759
|
throwError(state, "name of an alias node must contain at least one character");
|
|
25760
|
+
}
|
|
25508
25761
|
const alias = state.input.slice(_position, state.position);
|
|
25509
|
-
if (!_hasOwnProperty.call(state.anchorMap, alias))
|
|
25762
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
25510
25763
|
throwError(state, 'unidentified alias "' + alias + '"');
|
|
25764
|
+
}
|
|
25511
25765
|
state.result = state.anchorMap[alias];
|
|
25512
25766
|
skipSeparationSpace(state, true, -1);
|
|
25513
25767
|
return true;
|
|
@@ -25535,14 +25789,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25535
25789
|
let atNewLine = false;
|
|
25536
25790
|
let hasContent = false;
|
|
25537
25791
|
let propertyStart = null;
|
|
25538
|
-
let
|
|
25792
|
+
let type2;
|
|
25539
25793
|
let flowIndent;
|
|
25540
25794
|
let blockIndent;
|
|
25541
|
-
if (state.depth >= state.maxDepth)
|
|
25795
|
+
if (state.depth >= state.maxDepth) {
|
|
25542
25796
|
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
25797
|
+
}
|
|
25543
25798
|
state.depth += 1;
|
|
25544
|
-
if (state.listener !== null)
|
|
25799
|
+
if (state.listener !== null) {
|
|
25545
25800
|
state.listener("open", state);
|
|
25801
|
+
}
|
|
25546
25802
|
state.tag = null;
|
|
25547
25803
|
state.anchor = null;
|
|
25548
25804
|
state.kind = null;
|
|
@@ -25551,110 +25807,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25551
25807
|
if (allowToSeek) {
|
|
25552
25808
|
if (skipSeparationSpace(state, true, -1)) {
|
|
25553
25809
|
atNewLine = true;
|
|
25554
|
-
if (state.lineIndent > parentIndent)
|
|
25810
|
+
if (state.lineIndent > parentIndent) {
|
|
25555
25811
|
indentStatus = 1;
|
|
25556
|
-
else if (state.lineIndent === parentIndent)
|
|
25812
|
+
} else if (state.lineIndent === parentIndent) {
|
|
25557
25813
|
indentStatus = 0;
|
|
25558
|
-
else if (state.lineIndent < parentIndent)
|
|
25814
|
+
} else if (state.lineIndent < parentIndent) {
|
|
25559
25815
|
indentStatus = -1;
|
|
25816
|
+
}
|
|
25560
25817
|
}
|
|
25561
25818
|
}
|
|
25562
|
-
if (indentStatus === 1)
|
|
25819
|
+
if (indentStatus === 1) {
|
|
25563
25820
|
while (true) {
|
|
25564
25821
|
const ch = state.input.charCodeAt(state.position);
|
|
25565
25822
|
const propertyState = snapshotState(state);
|
|
25566
|
-
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
|
|
25823
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
25567
25824
|
break;
|
|
25568
|
-
|
|
25825
|
+
}
|
|
25826
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
25569
25827
|
break;
|
|
25570
|
-
|
|
25828
|
+
}
|
|
25829
|
+
if (propertyStart === null) {
|
|
25571
25830
|
propertyStart = propertyState;
|
|
25831
|
+
}
|
|
25572
25832
|
if (skipSeparationSpace(state, true, -1)) {
|
|
25573
25833
|
atNewLine = true;
|
|
25574
25834
|
allowBlockCollections = allowBlockStyles;
|
|
25575
|
-
if (state.lineIndent > parentIndent)
|
|
25835
|
+
if (state.lineIndent > parentIndent) {
|
|
25576
25836
|
indentStatus = 1;
|
|
25577
|
-
else if (state.lineIndent === parentIndent)
|
|
25837
|
+
} else if (state.lineIndent === parentIndent) {
|
|
25578
25838
|
indentStatus = 0;
|
|
25579
|
-
else if (state.lineIndent < parentIndent)
|
|
25839
|
+
} else if (state.lineIndent < parentIndent) {
|
|
25580
25840
|
indentStatus = -1;
|
|
25581
|
-
|
|
25841
|
+
}
|
|
25842
|
+
} else {
|
|
25582
25843
|
allowBlockCollections = false;
|
|
25844
|
+
}
|
|
25583
25845
|
}
|
|
25584
|
-
|
|
25846
|
+
}
|
|
25847
|
+
if (allowBlockCollections) {
|
|
25585
25848
|
allowBlockCollections = atNewLine || allowCompact;
|
|
25849
|
+
}
|
|
25586
25850
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
25587
|
-
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
|
|
25851
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
25588
25852
|
flowIndent = parentIndent;
|
|
25589
|
-
else
|
|
25853
|
+
} else {
|
|
25590
25854
|
flowIndent = parentIndent + 1;
|
|
25855
|
+
}
|
|
25591
25856
|
blockIndent = state.position - state.lineStart;
|
|
25592
|
-
if (indentStatus === 1)
|
|
25593
|
-
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
|
|
25857
|
+
if (indentStatus === 1) {
|
|
25858
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
25594
25859
|
hasContent = true;
|
|
25595
|
-
else {
|
|
25860
|
+
} else {
|
|
25596
25861
|
const ch = state.input.charCodeAt(state.position);
|
|
25597
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
|
|
25862
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
25598
25863
|
hasContent = true;
|
|
25599
|
-
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
|
|
25864
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
25600
25865
|
hasContent = true;
|
|
25601
|
-
else if (readAlias(state)) {
|
|
25866
|
+
} else if (readAlias(state)) {
|
|
25602
25867
|
hasContent = true;
|
|
25603
|
-
if (state.tag !== null || state.anchor !== null)
|
|
25868
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
25604
25869
|
throwError(state, "alias node should not have any properties");
|
|
25870
|
+
}
|
|
25605
25871
|
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
25606
25872
|
hasContent = true;
|
|
25607
|
-
if (state.tag === null)
|
|
25873
|
+
if (state.tag === null) {
|
|
25608
25874
|
state.tag = "?";
|
|
25875
|
+
}
|
|
25609
25876
|
}
|
|
25610
|
-
if (state.anchor !== null)
|
|
25877
|
+
if (state.anchor !== null) {
|
|
25611
25878
|
storeAnchor(state, state.anchor, state.result);
|
|
25879
|
+
}
|
|
25612
25880
|
}
|
|
25613
|
-
else if (indentStatus === 0)
|
|
25881
|
+
} else if (indentStatus === 0) {
|
|
25614
25882
|
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
25883
|
+
}
|
|
25615
25884
|
}
|
|
25616
25885
|
if (state.tag === null) {
|
|
25617
|
-
if (state.anchor !== null)
|
|
25886
|
+
if (state.anchor !== null) {
|
|
25618
25887
|
storeAnchor(state, state.anchor, state.result);
|
|
25888
|
+
}
|
|
25619
25889
|
} else if (state.tag === "?") {
|
|
25620
|
-
if (state.result !== null && state.kind !== "scalar")
|
|
25890
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
25621
25891
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
25892
|
+
}
|
|
25622
25893
|
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
25623
|
-
|
|
25624
|
-
if (
|
|
25625
|
-
state.result =
|
|
25626
|
-
state.tag =
|
|
25627
|
-
if (state.anchor !== null)
|
|
25894
|
+
type2 = state.implicitTypes[typeIndex];
|
|
25895
|
+
if (type2.resolve(state.result)) {
|
|
25896
|
+
state.result = type2.construct(state.result);
|
|
25897
|
+
state.tag = type2.tag;
|
|
25898
|
+
if (state.anchor !== null) {
|
|
25628
25899
|
storeAnchor(state, state.anchor, state.result);
|
|
25900
|
+
}
|
|
25629
25901
|
break;
|
|
25630
25902
|
}
|
|
25631
25903
|
}
|
|
25632
25904
|
} else if (state.tag !== "!") {
|
|
25633
|
-
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
|
|
25634
|
-
|
|
25635
|
-
else {
|
|
25636
|
-
|
|
25905
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
25906
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
25907
|
+
} else {
|
|
25908
|
+
type2 = null;
|
|
25637
25909
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
25638
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
|
|
25910
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
25639
25911
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
25640
|
-
|
|
25912
|
+
type2 = typeList[typeIndex];
|
|
25641
25913
|
break;
|
|
25642
25914
|
}
|
|
25915
|
+
}
|
|
25643
25916
|
}
|
|
25644
|
-
if (!
|
|
25917
|
+
if (!type2) {
|
|
25645
25918
|
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
25646
|
-
|
|
25647
|
-
|
|
25648
|
-
|
|
25919
|
+
}
|
|
25920
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
25921
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
25922
|
+
}
|
|
25923
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
25649
25924
|
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
25650
|
-
else {
|
|
25651
|
-
state.result =
|
|
25652
|
-
if (state.anchor !== null)
|
|
25925
|
+
} else {
|
|
25926
|
+
state.result = type2.construct(state.result, state.tag);
|
|
25927
|
+
if (state.anchor !== null) {
|
|
25653
25928
|
storeAnchor(state, state.anchor, state.result);
|
|
25929
|
+
}
|
|
25654
25930
|
}
|
|
25655
25931
|
}
|
|
25656
|
-
if (state.listener !== null)
|
|
25932
|
+
if (state.listener !== null) {
|
|
25657
25933
|
state.listener("close", state);
|
|
25934
|
+
}
|
|
25658
25935
|
state.depth -= 1;
|
|
25659
25936
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
25660
25937
|
}
|
|
@@ -25664,55 +25941,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25664
25941
|
let ch;
|
|
25665
25942
|
state.version = null;
|
|
25666
25943
|
state.checkLineBreaks = state.legacy;
|
|
25667
|
-
state.tagMap = Object.create(null);
|
|
25668
|
-
state.anchorMap = Object.create(null);
|
|
25944
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
25945
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
25669
25946
|
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
25670
25947
|
skipSeparationSpace(state, true, -1);
|
|
25671
25948
|
ch = state.input.charCodeAt(state.position);
|
|
25672
|
-
if (state.lineIndent > 0 || ch !== 37)
|
|
25949
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
25673
25950
|
break;
|
|
25951
|
+
}
|
|
25674
25952
|
hasDirectives = true;
|
|
25675
25953
|
ch = state.input.charCodeAt(++state.position);
|
|
25676
25954
|
let _position = state.position;
|
|
25677
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
25955
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25678
25956
|
ch = state.input.charCodeAt(++state.position);
|
|
25957
|
+
}
|
|
25679
25958
|
const directiveName = state.input.slice(_position, state.position);
|
|
25680
25959
|
const directiveArgs = [];
|
|
25681
|
-
if (directiveName.length < 1)
|
|
25960
|
+
if (directiveName.length < 1) {
|
|
25682
25961
|
throwError(state, "directive name must not be less than one character in length");
|
|
25962
|
+
}
|
|
25683
25963
|
while (ch !== 0) {
|
|
25684
|
-
while (isWhiteSpace(ch))
|
|
25964
|
+
while (isWhiteSpace(ch)) {
|
|
25685
25965
|
ch = state.input.charCodeAt(++state.position);
|
|
25966
|
+
}
|
|
25686
25967
|
if (ch === 35) {
|
|
25687
|
-
do
|
|
25968
|
+
do {
|
|
25688
25969
|
ch = state.input.charCodeAt(++state.position);
|
|
25689
|
-
while (ch !== 0 && !isEol(ch));
|
|
25970
|
+
} while (ch !== 0 && !isEol(ch));
|
|
25690
25971
|
break;
|
|
25691
25972
|
}
|
|
25692
25973
|
if (isEol(ch))
|
|
25693
25974
|
break;
|
|
25694
25975
|
_position = state.position;
|
|
25695
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
25976
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25696
25977
|
ch = state.input.charCodeAt(++state.position);
|
|
25978
|
+
}
|
|
25697
25979
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
25698
25980
|
}
|
|
25699
25981
|
if (ch !== 0)
|
|
25700
25982
|
readLineBreak(state);
|
|
25701
|
-
if (_hasOwnProperty.call(directiveHandlers, directiveName))
|
|
25983
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
25702
25984
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
25703
|
-
else
|
|
25985
|
+
} else {
|
|
25704
25986
|
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
25987
|
+
}
|
|
25705
25988
|
}
|
|
25706
25989
|
skipSeparationSpace(state, true, -1);
|
|
25707
25990
|
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
25708
25991
|
state.position += 3;
|
|
25709
25992
|
skipSeparationSpace(state, true, -1);
|
|
25710
|
-
} else if (hasDirectives)
|
|
25993
|
+
} else if (hasDirectives) {
|
|
25711
25994
|
throwError(state, "directives end mark is expected");
|
|
25995
|
+
}
|
|
25712
25996
|
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
25713
25997
|
skipSeparationSpace(state, true, -1);
|
|
25714
|
-
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
|
|
25998
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
25715
25999
|
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
26000
|
+
}
|
|
25716
26001
|
state.documents.push(state.result);
|
|
25717
26002
|
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
25718
26003
|
if (state.input.charCodeAt(state.position) === 46) {
|
|
@@ -25721,18 +26006,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25721
26006
|
}
|
|
25722
26007
|
return;
|
|
25723
26008
|
}
|
|
25724
|
-
if (state.position < state.length - 1)
|
|
26009
|
+
if (state.position < state.length - 1) {
|
|
25725
26010
|
throwError(state, "end of the stream or a document separator is expected");
|
|
26011
|
+
}
|
|
25726
26012
|
}
|
|
25727
26013
|
function loadDocuments(input, options) {
|
|
25728
26014
|
input = String(input);
|
|
25729
26015
|
options = options || {};
|
|
25730
26016
|
if (input.length !== 0) {
|
|
25731
|
-
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
|
|
26017
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
25732
26018
|
input += `
|
|
25733
26019
|
`;
|
|
25734
|
-
|
|
26020
|
+
}
|
|
26021
|
+
if (input.charCodeAt(0) === 65279) {
|
|
25735
26022
|
input = input.slice(1);
|
|
26023
|
+
}
|
|
25736
26024
|
}
|
|
25737
26025
|
const state = new State(input, options);
|
|
25738
26026
|
const nullpos = input.indexOf("\x00");
|
|
@@ -25745,64 +26033,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25745
26033
|
state.lineIndent += 1;
|
|
25746
26034
|
state.position += 1;
|
|
25747
26035
|
}
|
|
25748
|
-
while (state.position < state.length - 1)
|
|
26036
|
+
while (state.position < state.length - 1) {
|
|
25749
26037
|
readDocument(state);
|
|
26038
|
+
}
|
|
25750
26039
|
return state.documents;
|
|
25751
26040
|
}
|
|
25752
|
-
function
|
|
26041
|
+
function loadAll2(input, iterator, options) {
|
|
25753
26042
|
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
25754
26043
|
options = iterator;
|
|
25755
26044
|
iterator = null;
|
|
25756
26045
|
}
|
|
25757
26046
|
const documents = loadDocuments(input, options);
|
|
25758
|
-
if (typeof iterator !== "function")
|
|
26047
|
+
if (typeof iterator !== "function") {
|
|
25759
26048
|
return documents;
|
|
25760
|
-
|
|
26049
|
+
}
|
|
26050
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
25761
26051
|
iterator(documents[index]);
|
|
26052
|
+
}
|
|
25762
26053
|
}
|
|
25763
|
-
function
|
|
26054
|
+
function load2(input, options) {
|
|
25764
26055
|
const documents = loadDocuments(input, options);
|
|
25765
|
-
if (documents.length === 0)
|
|
26056
|
+
if (documents.length === 0) {
|
|
25766
26057
|
return;
|
|
25767
|
-
else if (documents.length === 1)
|
|
26058
|
+
} else if (documents.length === 1) {
|
|
25768
26059
|
return documents[0];
|
|
25769
|
-
|
|
26060
|
+
}
|
|
26061
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
25770
26062
|
}
|
|
25771
|
-
|
|
25772
|
-
|
|
25773
|
-
|
|
25774
|
-
|
|
25775
|
-
|
|
25776
|
-
|
|
25777
|
-
|
|
25778
|
-
|
|
25779
|
-
|
|
25780
|
-
|
|
25781
|
-
|
|
25782
|
-
|
|
25783
|
-
|
|
25784
|
-
|
|
25785
|
-
|
|
25786
|
-
|
|
25787
|
-
|
|
25788
|
-
|
|
25789
|
-
|
|
25790
|
-
|
|
25791
|
-
|
|
25792
|
-
|
|
25793
|
-
|
|
25794
|
-
|
|
25795
|
-
|
|
25796
|
-
|
|
25797
|
-
|
|
25798
|
-
|
|
25799
|
-
|
|
25800
|
-
|
|
25801
|
-
|
|
25802
|
-
|
|
25803
|
-
|
|
25804
|
-
|
|
25805
|
-
|
|
26063
|
+
loader.loadAll = loadAll2;
|
|
26064
|
+
loader.load = load2;
|
|
26065
|
+
return loader;
|
|
26066
|
+
}
|
|
26067
|
+
var dumper = {};
|
|
26068
|
+
var hasRequiredDumper;
|
|
26069
|
+
function requireDumper() {
|
|
26070
|
+
if (hasRequiredDumper)
|
|
26071
|
+
return dumper;
|
|
26072
|
+
hasRequiredDumper = 1;
|
|
26073
|
+
const common2 = requireCommon();
|
|
26074
|
+
const YAMLException2 = requireException();
|
|
26075
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
26076
|
+
const _toString = Object.prototype.toString;
|
|
26077
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
26078
|
+
const CHAR_BOM = 65279;
|
|
26079
|
+
const CHAR_TAB = 9;
|
|
26080
|
+
const CHAR_LINE_FEED = 10;
|
|
26081
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
26082
|
+
const CHAR_SPACE = 32;
|
|
26083
|
+
const CHAR_EXCLAMATION = 33;
|
|
26084
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
26085
|
+
const CHAR_SHARP = 35;
|
|
26086
|
+
const CHAR_PERCENT = 37;
|
|
26087
|
+
const CHAR_AMPERSAND = 38;
|
|
26088
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
26089
|
+
const CHAR_ASTERISK = 42;
|
|
26090
|
+
const CHAR_COMMA = 44;
|
|
26091
|
+
const CHAR_MINUS = 45;
|
|
26092
|
+
const CHAR_COLON = 58;
|
|
26093
|
+
const CHAR_EQUALS = 61;
|
|
26094
|
+
const CHAR_GREATER_THAN = 62;
|
|
26095
|
+
const CHAR_QUESTION = 63;
|
|
26096
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
26097
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
26098
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
26099
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
26100
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
26101
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
26102
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
26103
|
+
const ESCAPE_SEQUENCES = {};
|
|
25806
26104
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
25807
26105
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
25808
26106
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -25818,7 +26116,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25818
26116
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
25819
26117
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
25820
26118
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
25821
|
-
|
|
26119
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
25822
26120
|
"y",
|
|
25823
26121
|
"Y",
|
|
25824
26122
|
"yes",
|
|
@@ -25836,20 +26134,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25836
26134
|
"Off",
|
|
25837
26135
|
"OFF"
|
|
25838
26136
|
];
|
|
25839
|
-
|
|
25840
|
-
function compileStyleMap(
|
|
25841
|
-
if (
|
|
26137
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
26138
|
+
function compileStyleMap(schema2, map2) {
|
|
26139
|
+
if (map2 === null)
|
|
25842
26140
|
return {};
|
|
25843
26141
|
const result = {};
|
|
25844
|
-
const keys = Object.keys(
|
|
26142
|
+
const keys = Object.keys(map2);
|
|
25845
26143
|
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
25846
26144
|
let tag = keys[index];
|
|
25847
|
-
let style = String(
|
|
25848
|
-
if (tag.slice(0, 2) === "!!")
|
|
26145
|
+
let style = String(map2[tag]);
|
|
26146
|
+
if (tag.slice(0, 2) === "!!") {
|
|
25849
26147
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
25850
|
-
|
|
25851
|
-
|
|
25852
|
-
|
|
26148
|
+
}
|
|
26149
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
26150
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
26151
|
+
style = type2.styleAliases[style];
|
|
26152
|
+
}
|
|
25853
26153
|
result[tag] = style;
|
|
25854
26154
|
}
|
|
25855
26155
|
return result;
|
|
@@ -25867,18 +26167,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25867
26167
|
} else if (character <= 4294967295) {
|
|
25868
26168
|
handle = "U";
|
|
25869
26169
|
length = 8;
|
|
25870
|
-
} else
|
|
25871
|
-
throw new
|
|
25872
|
-
|
|
26170
|
+
} else {
|
|
26171
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
26172
|
+
}
|
|
26173
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
25873
26174
|
}
|
|
25874
|
-
|
|
25875
|
-
|
|
26175
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
26176
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
25876
26177
|
function State(options) {
|
|
25877
|
-
this.schema = options["schema"] ||
|
|
26178
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
25878
26179
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
25879
26180
|
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
25880
26181
|
this.skipInvalid = options["skipInvalid"] || false;
|
|
25881
|
-
this.flowLevel =
|
|
26182
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
25882
26183
|
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
25883
26184
|
this.sortKeys = options["sortKeys"] || false;
|
|
25884
26185
|
this.lineWidth = options["lineWidth"] || 80;
|
|
@@ -25896,7 +26197,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25896
26197
|
this.usedDuplicates = null;
|
|
25897
26198
|
}
|
|
25898
26199
|
function indentString(string, spaces) {
|
|
25899
|
-
const ind =
|
|
26200
|
+
const ind = common2.repeat(" ", spaces);
|
|
25900
26201
|
let position = 0;
|
|
25901
26202
|
let result = "";
|
|
25902
26203
|
const length = string.length;
|
|
@@ -25920,12 +26221,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25920
26221
|
}
|
|
25921
26222
|
function generateNextLine(state, level) {
|
|
25922
26223
|
return `
|
|
25923
|
-
` +
|
|
26224
|
+
` + common2.repeat(" ", state.indent * level);
|
|
25924
26225
|
}
|
|
25925
|
-
function testImplicitResolving(state,
|
|
25926
|
-
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
|
|
25927
|
-
|
|
26226
|
+
function testImplicitResolving(state, str2) {
|
|
26227
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
26228
|
+
const type2 = state.implicitTypes[index];
|
|
26229
|
+
if (type2.resolve(str2)) {
|
|
25928
26230
|
return true;
|
|
26231
|
+
}
|
|
26232
|
+
}
|
|
25929
26233
|
return false;
|
|
25930
26234
|
}
|
|
25931
26235
|
function isWhitespace(c) {
|
|
@@ -25953,19 +26257,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25953
26257
|
let second;
|
|
25954
26258
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
25955
26259
|
second = string.charCodeAt(pos + 1);
|
|
25956
|
-
if (second >= 56320 && second <= 57343)
|
|
26260
|
+
if (second >= 56320 && second <= 57343) {
|
|
25957
26261
|
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
26262
|
+
}
|
|
25958
26263
|
}
|
|
25959
26264
|
return first;
|
|
25960
26265
|
}
|
|
25961
26266
|
function needIndentIndicator(string) {
|
|
25962
|
-
|
|
25963
|
-
|
|
25964
|
-
|
|
25965
|
-
|
|
25966
|
-
|
|
25967
|
-
|
|
25968
|
-
|
|
26267
|
+
const leadingSpaceRe = /^\n* /;
|
|
26268
|
+
return leadingSpaceRe.test(string);
|
|
26269
|
+
}
|
|
26270
|
+
const STYLE_PLAIN = 1;
|
|
26271
|
+
const STYLE_SINGLE = 2;
|
|
26272
|
+
const STYLE_LITERAL = 3;
|
|
26273
|
+
const STYLE_FOLDED = 4;
|
|
26274
|
+
const STYLE_DOUBLE = 5;
|
|
25969
26275
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
25970
26276
|
let i;
|
|
25971
26277
|
let char = 0;
|
|
@@ -25975,15 +26281,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25975
26281
|
const shouldTrackWidth = lineWidth !== -1;
|
|
25976
26282
|
let previousLineBreak = -1;
|
|
25977
26283
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
25978
|
-
if (singleLineOnly || forceQuotes)
|
|
26284
|
+
if (singleLineOnly || forceQuotes) {
|
|
25979
26285
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
25980
26286
|
char = codePointAt(string, i);
|
|
25981
|
-
if (!isPrintable(char))
|
|
26287
|
+
if (!isPrintable(char)) {
|
|
25982
26288
|
return STYLE_DOUBLE;
|
|
26289
|
+
}
|
|
25983
26290
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
25984
26291
|
prevChar = char;
|
|
25985
26292
|
}
|
|
25986
|
-
else {
|
|
26293
|
+
} else {
|
|
25987
26294
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
25988
26295
|
char = codePointAt(string, i);
|
|
25989
26296
|
if (char === CHAR_LINE_FEED) {
|
|
@@ -25992,31 +26299,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25992
26299
|
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
25993
26300
|
previousLineBreak = i;
|
|
25994
26301
|
}
|
|
25995
|
-
} else if (!isPrintable(char))
|
|
26302
|
+
} else if (!isPrintable(char)) {
|
|
25996
26303
|
return STYLE_DOUBLE;
|
|
26304
|
+
}
|
|
25997
26305
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
25998
26306
|
prevChar = char;
|
|
25999
26307
|
}
|
|
26000
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
26308
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
26001
26309
|
}
|
|
26002
26310
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
26003
|
-
if (plain && !forceQuotes && !testAmbiguousType(string))
|
|
26311
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
26004
26312
|
return STYLE_PLAIN;
|
|
26313
|
+
}
|
|
26005
26314
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
26006
26315
|
}
|
|
26007
|
-
if (indentPerLevel > 9 && needIndentIndicator(string))
|
|
26316
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
26008
26317
|
return STYLE_DOUBLE;
|
|
26009
|
-
|
|
26318
|
+
}
|
|
26319
|
+
if (!forceQuotes) {
|
|
26010
26320
|
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
26321
|
+
}
|
|
26011
26322
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
26012
26323
|
}
|
|
26013
26324
|
function writeScalar(state, string, level, iskey, inblock) {
|
|
26014
26325
|
state.dump = function() {
|
|
26015
|
-
if (string.length === 0)
|
|
26326
|
+
if (string.length === 0) {
|
|
26016
26327
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
26328
|
+
}
|
|
26017
26329
|
if (!state.noCompatMode) {
|
|
26018
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
|
|
26330
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
26019
26331
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
26332
|
+
}
|
|
26020
26333
|
}
|
|
26021
26334
|
const indent = state.indent * Math.max(1, level);
|
|
26022
26335
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
@@ -26034,9 +26347,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26034
26347
|
case STYLE_FOLDED:
|
|
26035
26348
|
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
26036
26349
|
case STYLE_DOUBLE:
|
|
26037
|
-
return '"' + escapeString(string
|
|
26350
|
+
return '"' + escapeString(string) + '"';
|
|
26038
26351
|
default:
|
|
26039
|
-
throw new
|
|
26352
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
26040
26353
|
}
|
|
26041
26354
|
}();
|
|
26042
26355
|
}
|
|
@@ -26044,9 +26357,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26044
26357
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
26045
26358
|
const clip = string[string.length - 1] === `
|
|
26046
26359
|
`;
|
|
26047
|
-
|
|
26360
|
+
const keep = clip && (string[string.length - 2] === `
|
|
26048
26361
|
` || string === `
|
|
26049
|
-
`)
|
|
26362
|
+
`);
|
|
26363
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
26364
|
+
return indentIndicator + chomp + `
|
|
26050
26365
|
`;
|
|
26051
26366
|
}
|
|
26052
26367
|
function dropEndingNewline(string) {
|
|
@@ -26098,11 +26413,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26098
26413
|
}
|
|
26099
26414
|
result += `
|
|
26100
26415
|
`;
|
|
26101
|
-
if (line.length - start > width && curr > start)
|
|
26416
|
+
if (line.length - start > width && curr > start) {
|
|
26102
26417
|
result += line.slice(start, curr) + `
|
|
26103
26418
|
` + line.slice(curr + 1);
|
|
26104
|
-
else
|
|
26419
|
+
} else {
|
|
26105
26420
|
result += line.slice(start);
|
|
26421
|
+
}
|
|
26106
26422
|
return result.slice(1);
|
|
26107
26423
|
}
|
|
26108
26424
|
function escapeString(string) {
|
|
@@ -26115,8 +26431,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26115
26431
|
result += string[i];
|
|
26116
26432
|
if (char >= 65536)
|
|
26117
26433
|
result += string[i + 1];
|
|
26118
|
-
} else
|
|
26434
|
+
} else {
|
|
26119
26435
|
result += escapeSeq || encodeHex(char);
|
|
26436
|
+
}
|
|
26120
26437
|
}
|
|
26121
26438
|
return result;
|
|
26122
26439
|
}
|
|
@@ -26125,8 +26442,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26125
26442
|
const _tag = state.tag;
|
|
26126
26443
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
26127
26444
|
let value = object[index];
|
|
26128
|
-
if (state.replacer)
|
|
26445
|
+
if (state.replacer) {
|
|
26129
26446
|
value = state.replacer.call(object, String(index), value);
|
|
26447
|
+
}
|
|
26130
26448
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
26131
26449
|
if (_result !== "")
|
|
26132
26450
|
_result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -26141,15 +26459,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26141
26459
|
const _tag = state.tag;
|
|
26142
26460
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
26143
26461
|
let value = object[index];
|
|
26144
|
-
if (state.replacer)
|
|
26462
|
+
if (state.replacer) {
|
|
26145
26463
|
value = state.replacer.call(object, String(index), value);
|
|
26464
|
+
}
|
|
26146
26465
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
26147
|
-
if (!compact || _result !== "")
|
|
26466
|
+
if (!compact || _result !== "") {
|
|
26148
26467
|
_result += generateNextLine(state, level);
|
|
26149
|
-
|
|
26468
|
+
}
|
|
26469
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
26150
26470
|
_result += "-";
|
|
26151
|
-
else
|
|
26471
|
+
} else {
|
|
26152
26472
|
_result += "- ";
|
|
26473
|
+
}
|
|
26153
26474
|
_result += state.dump;
|
|
26154
26475
|
}
|
|
26155
26476
|
}
|
|
@@ -26168,15 +26489,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26168
26489
|
pairBuffer += '"';
|
|
26169
26490
|
const objectKey = objectKeyList[index];
|
|
26170
26491
|
let objectValue = object[objectKey];
|
|
26171
|
-
if (state.replacer)
|
|
26492
|
+
if (state.replacer) {
|
|
26172
26493
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
26173
|
-
|
|
26494
|
+
}
|
|
26495
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
26174
26496
|
continue;
|
|
26497
|
+
}
|
|
26175
26498
|
if (state.dump.length > 1024)
|
|
26176
26499
|
pairBuffer += "? ";
|
|
26177
26500
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
26178
|
-
if (!writeNode(state, level, objectValue, false, false))
|
|
26501
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
26179
26502
|
continue;
|
|
26503
|
+
}
|
|
26180
26504
|
pairBuffer += state.dump;
|
|
26181
26505
|
_result += pairBuffer;
|
|
26182
26506
|
}
|
|
@@ -26187,37 +26511,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26187
26511
|
let _result = "";
|
|
26188
26512
|
const _tag = state.tag;
|
|
26189
26513
|
const objectKeyList = Object.keys(object);
|
|
26190
|
-
if (state.sortKeys === true)
|
|
26514
|
+
if (state.sortKeys === true) {
|
|
26191
26515
|
objectKeyList.sort();
|
|
26192
|
-
else if (typeof state.sortKeys === "function")
|
|
26516
|
+
} else if (typeof state.sortKeys === "function") {
|
|
26193
26517
|
objectKeyList.sort(state.sortKeys);
|
|
26194
|
-
else if (state.sortKeys)
|
|
26195
|
-
throw new
|
|
26518
|
+
} else if (state.sortKeys) {
|
|
26519
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
26520
|
+
}
|
|
26196
26521
|
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
26197
26522
|
let pairBuffer = "";
|
|
26198
|
-
if (!compact || _result !== "")
|
|
26523
|
+
if (!compact || _result !== "") {
|
|
26199
26524
|
pairBuffer += generateNextLine(state, level);
|
|
26525
|
+
}
|
|
26200
26526
|
const objectKey = objectKeyList[index];
|
|
26201
26527
|
let objectValue = object[objectKey];
|
|
26202
|
-
if (state.replacer)
|
|
26528
|
+
if (state.replacer) {
|
|
26203
26529
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
26204
|
-
|
|
26530
|
+
}
|
|
26531
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
26205
26532
|
continue;
|
|
26533
|
+
}
|
|
26206
26534
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
26207
|
-
if (explicitPair)
|
|
26208
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
|
|
26535
|
+
if (explicitPair) {
|
|
26536
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
26209
26537
|
pairBuffer += "?";
|
|
26210
|
-
else
|
|
26538
|
+
} else {
|
|
26211
26539
|
pairBuffer += "? ";
|
|
26540
|
+
}
|
|
26541
|
+
}
|
|
26212
26542
|
pairBuffer += state.dump;
|
|
26213
|
-
if (explicitPair)
|
|
26543
|
+
if (explicitPair) {
|
|
26214
26544
|
pairBuffer += generateNextLine(state, level);
|
|
26215
|
-
|
|
26545
|
+
}
|
|
26546
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
26216
26547
|
continue;
|
|
26217
|
-
|
|
26548
|
+
}
|
|
26549
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
26218
26550
|
pairBuffer += ":";
|
|
26219
|
-
else
|
|
26551
|
+
} else {
|
|
26220
26552
|
pairBuffer += ": ";
|
|
26553
|
+
}
|
|
26221
26554
|
pairBuffer += state.dump;
|
|
26222
26555
|
_result += pairBuffer;
|
|
26223
26556
|
}
|
|
@@ -26227,24 +26560,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26227
26560
|
function detectType(state, object, explicit) {
|
|
26228
26561
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
26229
26562
|
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
26230
|
-
const
|
|
26231
|
-
if ((
|
|
26232
|
-
if (explicit)
|
|
26233
|
-
if (
|
|
26234
|
-
state.tag =
|
|
26235
|
-
else
|
|
26236
|
-
state.tag =
|
|
26237
|
-
|
|
26563
|
+
const type2 = typeList[index];
|
|
26564
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
26565
|
+
if (explicit) {
|
|
26566
|
+
if (type2.multi && type2.representName) {
|
|
26567
|
+
state.tag = type2.representName(object);
|
|
26568
|
+
} else {
|
|
26569
|
+
state.tag = type2.tag;
|
|
26570
|
+
}
|
|
26571
|
+
} else {
|
|
26238
26572
|
state.tag = "?";
|
|
26239
|
-
|
|
26240
|
-
|
|
26573
|
+
}
|
|
26574
|
+
if (type2.represent) {
|
|
26575
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
26241
26576
|
let _result;
|
|
26242
|
-
if (_toString.call(
|
|
26243
|
-
_result =
|
|
26244
|
-
else if (_hasOwnProperty.call(
|
|
26245
|
-
_result =
|
|
26246
|
-
else
|
|
26247
|
-
throw new
|
|
26577
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
26578
|
+
_result = type2.represent(object, style);
|
|
26579
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
26580
|
+
_result = type2.represent[style](object, style);
|
|
26581
|
+
} else {
|
|
26582
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
26583
|
+
}
|
|
26248
26584
|
state.dump = _result;
|
|
26249
26585
|
}
|
|
26250
26586
|
return true;
|
|
@@ -26255,67 +26591,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26255
26591
|
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
26256
26592
|
state.tag = null;
|
|
26257
26593
|
state.dump = object;
|
|
26258
|
-
if (!detectType(state, object, false))
|
|
26594
|
+
if (!detectType(state, object, false)) {
|
|
26259
26595
|
detectType(state, object, true);
|
|
26260
|
-
|
|
26596
|
+
}
|
|
26597
|
+
const type2 = _toString.call(state.dump);
|
|
26261
26598
|
const inblock = block;
|
|
26262
|
-
if (block)
|
|
26599
|
+
if (block) {
|
|
26263
26600
|
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
26264
|
-
|
|
26601
|
+
}
|
|
26602
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
26265
26603
|
let duplicateIndex;
|
|
26266
26604
|
let duplicate;
|
|
26267
26605
|
if (objectOrArray) {
|
|
26268
26606
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
26269
26607
|
duplicate = duplicateIndex !== -1;
|
|
26270
26608
|
}
|
|
26271
|
-
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
|
|
26609
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
26272
26610
|
compact = false;
|
|
26273
|
-
|
|
26611
|
+
}
|
|
26612
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
26274
26613
|
state.dump = "*ref_" + duplicateIndex;
|
|
26275
|
-
else {
|
|
26276
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
|
|
26614
|
+
} else {
|
|
26615
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
26277
26616
|
state.usedDuplicates[duplicateIndex] = true;
|
|
26278
|
-
|
|
26617
|
+
}
|
|
26618
|
+
if (type2 === "[object Object]") {
|
|
26279
26619
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
26280
26620
|
writeBlockMapping(state, level, state.dump, compact);
|
|
26281
|
-
if (duplicate)
|
|
26621
|
+
if (duplicate) {
|
|
26282
26622
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
26623
|
+
}
|
|
26283
26624
|
} else {
|
|
26284
26625
|
writeFlowMapping(state, level, state.dump);
|
|
26285
|
-
if (duplicate)
|
|
26626
|
+
if (duplicate) {
|
|
26286
26627
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
26628
|
+
}
|
|
26287
26629
|
}
|
|
26288
|
-
else if (
|
|
26630
|
+
} else if (type2 === "[object Array]") {
|
|
26289
26631
|
if (block && state.dump.length !== 0) {
|
|
26290
|
-
if (state.noArrayIndent && !isblockseq && level > 0)
|
|
26632
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
26291
26633
|
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
26292
|
-
else
|
|
26634
|
+
} else {
|
|
26293
26635
|
writeBlockSequence(state, level, state.dump, compact);
|
|
26294
|
-
|
|
26636
|
+
}
|
|
26637
|
+
if (duplicate) {
|
|
26295
26638
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
26639
|
+
}
|
|
26296
26640
|
} else {
|
|
26297
26641
|
writeFlowSequence(state, level, state.dump);
|
|
26298
|
-
if (duplicate)
|
|
26642
|
+
if (duplicate) {
|
|
26299
26643
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
26644
|
+
}
|
|
26300
26645
|
}
|
|
26301
|
-
else if (
|
|
26302
|
-
if (state.tag !== "?")
|
|
26646
|
+
} else if (type2 === "[object String]") {
|
|
26647
|
+
if (state.tag !== "?") {
|
|
26303
26648
|
writeScalar(state, state.dump, level, iskey, inblock);
|
|
26304
|
-
|
|
26649
|
+
}
|
|
26650
|
+
} else if (type2 === "[object Undefined]") {
|
|
26305
26651
|
return false;
|
|
26306
|
-
else {
|
|
26652
|
+
} else {
|
|
26307
26653
|
if (state.skipInvalid)
|
|
26308
26654
|
return false;
|
|
26309
|
-
throw new
|
|
26655
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
26310
26656
|
}
|
|
26311
26657
|
if (state.tag !== null && state.tag !== "?") {
|
|
26312
26658
|
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
26313
|
-
if (state.tag[0] === "!")
|
|
26659
|
+
if (state.tag[0] === "!") {
|
|
26314
26660
|
tagStr = "!" + tagStr;
|
|
26315
|
-
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
|
|
26661
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
26316
26662
|
tagStr = "!!" + tagStr.slice(18);
|
|
26317
|
-
else
|
|
26663
|
+
} else {
|
|
26318
26664
|
tagStr = "!<" + tagStr + ">";
|
|
26665
|
+
}
|
|
26319
26666
|
state.dump = tagStr + " " + state.dump;
|
|
26320
26667
|
}
|
|
26321
26668
|
}
|
|
@@ -26326,83 +26673,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26326
26673
|
const duplicatesIndexes = [];
|
|
26327
26674
|
inspectNode(object, objects, duplicatesIndexes);
|
|
26328
26675
|
const length = duplicatesIndexes.length;
|
|
26329
|
-
for (let index = 0;index < length; index += 1)
|
|
26676
|
+
for (let index = 0;index < length; index += 1) {
|
|
26330
26677
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
26678
|
+
}
|
|
26331
26679
|
state.usedDuplicates = new Array(length);
|
|
26332
26680
|
}
|
|
26333
26681
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
26334
26682
|
if (object !== null && typeof object === "object") {
|
|
26335
26683
|
const index = objects.indexOf(object);
|
|
26336
26684
|
if (index !== -1) {
|
|
26337
|
-
if (duplicatesIndexes.indexOf(index) === -1)
|
|
26685
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
26338
26686
|
duplicatesIndexes.push(index);
|
|
26687
|
+
}
|
|
26339
26688
|
} else {
|
|
26340
26689
|
objects.push(object);
|
|
26341
|
-
if (Array.isArray(object))
|
|
26342
|
-
for (let i = 0, length = object.length;i < length; i += 1)
|
|
26690
|
+
if (Array.isArray(object)) {
|
|
26691
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
26343
26692
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
26344
|
-
|
|
26693
|
+
}
|
|
26694
|
+
} else {
|
|
26345
26695
|
const objectKeyList = Object.keys(object);
|
|
26346
|
-
for (let i = 0, length = objectKeyList.length;i < length; i += 1)
|
|
26696
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
26347
26697
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
26698
|
+
}
|
|
26348
26699
|
}
|
|
26349
26700
|
}
|
|
26350
26701
|
}
|
|
26351
26702
|
}
|
|
26352
|
-
function
|
|
26703
|
+
function dump2(input, options) {
|
|
26353
26704
|
options = options || {};
|
|
26354
26705
|
const state = new State(options);
|
|
26355
26706
|
if (!state.noRefs)
|
|
26356
26707
|
getDuplicateReferences(input, state);
|
|
26357
26708
|
let value = input;
|
|
26358
|
-
if (state.replacer)
|
|
26709
|
+
if (state.replacer) {
|
|
26359
26710
|
value = state.replacer.call({ "": value }, "", value);
|
|
26711
|
+
}
|
|
26360
26712
|
if (writeNode(state, 0, value, true, true))
|
|
26361
26713
|
return state.dump + `
|
|
26362
26714
|
`;
|
|
26363
26715
|
return "";
|
|
26364
26716
|
}
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
|
|
26717
|
+
dumper.dump = dump2;
|
|
26718
|
+
return dumper;
|
|
26719
|
+
}
|
|
26720
|
+
var hasRequiredJsYaml;
|
|
26721
|
+
function requireJsYaml() {
|
|
26722
|
+
if (hasRequiredJsYaml)
|
|
26723
|
+
return jsYaml;
|
|
26724
|
+
hasRequiredJsYaml = 1;
|
|
26725
|
+
const loader2 = requireLoader();
|
|
26726
|
+
const dumper2 = requireDumper();
|
|
26370
26727
|
function renamed(from, to) {
|
|
26371
26728
|
return function() {
|
|
26372
26729
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
26373
26730
|
};
|
|
26374
26731
|
}
|
|
26375
|
-
|
|
26376
|
-
|
|
26377
|
-
|
|
26378
|
-
|
|
26379
|
-
|
|
26380
|
-
|
|
26381
|
-
|
|
26382
|
-
|
|
26383
|
-
|
|
26384
|
-
|
|
26385
|
-
|
|
26386
|
-
binary:
|
|
26387
|
-
float:
|
|
26388
|
-
map:
|
|
26732
|
+
jsYaml.Type = requireType();
|
|
26733
|
+
jsYaml.Schema = requireSchema();
|
|
26734
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
26735
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
26736
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
26737
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
26738
|
+
jsYaml.load = loader2.load;
|
|
26739
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
26740
|
+
jsYaml.dump = dumper2.dump;
|
|
26741
|
+
jsYaml.YAMLException = requireException();
|
|
26742
|
+
jsYaml.types = {
|
|
26743
|
+
binary: requireBinary(),
|
|
26744
|
+
float: requireFloat(),
|
|
26745
|
+
map: requireMap(),
|
|
26389
26746
|
null: require_null(),
|
|
26390
|
-
pairs:
|
|
26391
|
-
set:
|
|
26392
|
-
timestamp:
|
|
26393
|
-
bool:
|
|
26394
|
-
int:
|
|
26395
|
-
merge:
|
|
26396
|
-
omap:
|
|
26397
|
-
seq:
|
|
26398
|
-
str:
|
|
26747
|
+
pairs: requirePairs(),
|
|
26748
|
+
set: requireSet(),
|
|
26749
|
+
timestamp: requireTimestamp(),
|
|
26750
|
+
bool: requireBool(),
|
|
26751
|
+
int: requireInt(),
|
|
26752
|
+
merge: requireMerge(),
|
|
26753
|
+
omap: requireOmap(),
|
|
26754
|
+
seq: requireSeq(),
|
|
26755
|
+
str: requireStr()
|
|
26399
26756
|
};
|
|
26400
|
-
|
|
26401
|
-
|
|
26402
|
-
|
|
26403
|
-
|
|
26404
|
-
|
|
26405
|
-
var
|
|
26757
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
26758
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
26759
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
26760
|
+
return jsYaml;
|
|
26761
|
+
}
|
|
26762
|
+
var jsYamlExports = requireJsYaml();
|
|
26763
|
+
var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
26764
|
+
var {
|
|
26765
|
+
Type,
|
|
26766
|
+
Schema,
|
|
26767
|
+
FAILSAFE_SCHEMA,
|
|
26768
|
+
JSON_SCHEMA,
|
|
26769
|
+
CORE_SCHEMA,
|
|
26770
|
+
DEFAULT_SCHEMA,
|
|
26771
|
+
load,
|
|
26772
|
+
loadAll,
|
|
26773
|
+
dump,
|
|
26774
|
+
YAMLException,
|
|
26775
|
+
types,
|
|
26776
|
+
safeLoad,
|
|
26777
|
+
safeLoadAll,
|
|
26778
|
+
safeDump
|
|
26779
|
+
} = yaml;
|
|
26406
26780
|
|
|
26407
26781
|
// ../../common/src/logger.ts
|
|
26408
26782
|
init_src();
|
|
@@ -26479,11 +26853,11 @@ class SimpleLogger {
|
|
|
26479
26853
|
const path3 = this.logFilePath || getGlobalLogFilePath();
|
|
26480
26854
|
if (!path3)
|
|
26481
26855
|
return;
|
|
26482
|
-
const
|
|
26856
|
+
const timestamp2 = new Date().toISOString();
|
|
26483
26857
|
this.pendingWrites = Promise.all([
|
|
26484
26858
|
this.pendingWrites,
|
|
26485
26859
|
this.pendingInit
|
|
26486
|
-
]).then(() => getFileSystem().appendFile(path3, `${
|
|
26860
|
+
]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
|
|
26487
26861
|
}
|
|
26488
26862
|
debug(message, ...args) {
|
|
26489
26863
|
if (this.level > 0 /* DEBUG */)
|
|
@@ -26877,10 +27251,10 @@ class LoggerTelemetryProvider {
|
|
|
26877
27251
|
success
|
|
26878
27252
|
})));
|
|
26879
27253
|
}
|
|
26880
|
-
async trackDependency(name,
|
|
27254
|
+
async trackDependency(name, type2, duration, success, properties) {
|
|
26881
27255
|
logger.debug(formatMessage("Dependency", name, this.enrich({
|
|
26882
27256
|
...properties,
|
|
26883
|
-
type,
|
|
27257
|
+
type: type2,
|
|
26884
27258
|
duration: `${duration}ms`,
|
|
26885
27259
|
success
|
|
26886
27260
|
})));
|
|
@@ -27113,7 +27487,7 @@ class TelemetryService {
|
|
|
27113
27487
|
throw error;
|
|
27114
27488
|
}
|
|
27115
27489
|
}
|
|
27116
|
-
async trackDependencyOperation(name,
|
|
27490
|
+
async trackDependencyOperation(name, type2, fn, properties) {
|
|
27117
27491
|
const parentContext = this.getCurrentContext();
|
|
27118
27492
|
if (!parentContext) {
|
|
27119
27493
|
throw new Error("trackDependencyOperation must be called within a trackRequest block.");
|
|
@@ -27128,13 +27502,13 @@ class TelemetryService {
|
|
|
27128
27502
|
const result = await this.contextStorage.run(childContext, fn);
|
|
27129
27503
|
const durationMs = performance.now() - startTime;
|
|
27130
27504
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
|
|
27131
|
-
await this.telemetryProvider.trackDependency(name,
|
|
27505
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
|
|
27132
27506
|
return result;
|
|
27133
27507
|
} catch (error) {
|
|
27134
27508
|
const durationMs = performance.now() - startTime;
|
|
27135
27509
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
27136
27510
|
const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
|
|
27137
|
-
await this.telemetryProvider.trackDependency(name,
|
|
27511
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
|
|
27138
27512
|
throw error;
|
|
27139
27513
|
}
|
|
27140
27514
|
}
|
|
@@ -27341,8 +27715,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
|
27341
27715
|
}
|
|
27342
27716
|
switch (format) {
|
|
27343
27717
|
case "json": {
|
|
27344
|
-
const
|
|
27345
|
-
logFn(asciiSafe ? escapeNonAscii(
|
|
27718
|
+
const json2 = JSON.stringify(data, null, 2);
|
|
27719
|
+
logFn(asciiSafe ? escapeNonAscii(json2) : json2);
|
|
27346
27720
|
break;
|
|
27347
27721
|
}
|
|
27348
27722
|
case "yaml":
|
|
@@ -27678,8 +28052,8 @@ var OutputFormatter;
|
|
|
27678
28052
|
const sink = getOutputSink();
|
|
27679
28053
|
const normalized = toPascalCaseData(data);
|
|
27680
28054
|
if (format === "json") {
|
|
27681
|
-
const
|
|
27682
|
-
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(
|
|
28055
|
+
const json2 = JSON.stringify(normalized);
|
|
28056
|
+
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
27683
28057
|
sink.writeErr(`${safe}
|
|
27684
28058
|
`);
|
|
27685
28059
|
} else {
|
|
@@ -27929,8 +28303,8 @@ function redactValueDetectors(value) {
|
|
|
27929
28303
|
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
27930
28304
|
out = out.replace(URL_PATTERN, (match) => {
|
|
27931
28305
|
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
27932
|
-
const
|
|
27933
|
-
return `${redactUrl(
|
|
28306
|
+
const core2 = trailing ? match.slice(0, -trailing.length) : match;
|
|
28307
|
+
return `${redactUrl(core2)}${trailing}`;
|
|
27934
28308
|
});
|
|
27935
28309
|
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
27936
28310
|
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
@@ -28592,11 +28966,11 @@ var SDK_USER_AGENT = getSdkUserAgentToken(package_default2);
|
|
|
28592
28966
|
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
28593
28967
|
|
|
28594
28968
|
// ../resourcecatalog-sdk/generated/src/models/EntitySearchState.ts
|
|
28595
|
-
function EntitySearchStateFromJSON(
|
|
28596
|
-
return EntitySearchStateFromJSONTyped(
|
|
28969
|
+
function EntitySearchStateFromJSON(json2) {
|
|
28970
|
+
return EntitySearchStateFromJSONTyped(json2, false);
|
|
28597
28971
|
}
|
|
28598
|
-
function EntitySearchStateFromJSONTyped(
|
|
28599
|
-
return
|
|
28972
|
+
function EntitySearchStateFromJSONTyped(json2, ignoreDiscriminator) {
|
|
28973
|
+
return json2;
|
|
28600
28974
|
}
|
|
28601
28975
|
|
|
28602
28976
|
// ../resourcecatalog-sdk/generated/src/models/TagType.ts
|
|
@@ -28604,193 +28978,193 @@ var TagType = {
|
|
|
28604
28978
|
Label: "Label",
|
|
28605
28979
|
KeyValue: "KeyValue"
|
|
28606
28980
|
};
|
|
28607
|
-
function TagTypeFromJSON(
|
|
28608
|
-
return TagTypeFromJSONTyped(
|
|
28981
|
+
function TagTypeFromJSON(json2) {
|
|
28982
|
+
return TagTypeFromJSONTyped(json2, false);
|
|
28609
28983
|
}
|
|
28610
|
-
function TagTypeFromJSONTyped(
|
|
28611
|
-
return
|
|
28984
|
+
function TagTypeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
28985
|
+
return json2;
|
|
28612
28986
|
}
|
|
28613
28987
|
function TagTypeToJSON(value) {
|
|
28614
28988
|
return value;
|
|
28615
28989
|
}
|
|
28616
28990
|
|
|
28617
28991
|
// ../resourcecatalog-sdk/generated/src/models/TagModel.ts
|
|
28618
|
-
function TagModelFromJSON(
|
|
28619
|
-
return TagModelFromJSONTyped(
|
|
28992
|
+
function TagModelFromJSON(json2) {
|
|
28993
|
+
return TagModelFromJSONTyped(json2, false);
|
|
28620
28994
|
}
|
|
28621
|
-
function TagModelFromJSONTyped(
|
|
28622
|
-
if (
|
|
28623
|
-
return
|
|
28995
|
+
function TagModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
28996
|
+
if (json2 == null) {
|
|
28997
|
+
return json2;
|
|
28624
28998
|
}
|
|
28625
28999
|
return {
|
|
28626
|
-
key:
|
|
28627
|
-
displayName:
|
|
28628
|
-
name:
|
|
28629
|
-
displayValue:
|
|
28630
|
-
value:
|
|
28631
|
-
type:
|
|
28632
|
-
accountKey:
|
|
28633
|
-
tenantKey:
|
|
28634
|
-
userKey:
|
|
29000
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
29001
|
+
displayName: json2["displayName"] == null ? undefined : json2["displayName"],
|
|
29002
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
29003
|
+
displayValue: json2["displayValue"] == null ? undefined : json2["displayValue"],
|
|
29004
|
+
value: json2["value"] == null ? undefined : json2["value"],
|
|
29005
|
+
type: json2["type"] == null ? undefined : TagTypeFromJSON(json2["type"]),
|
|
29006
|
+
accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
|
|
29007
|
+
tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
|
|
29008
|
+
userKey: json2["userKey"] == null ? undefined : json2["userKey"]
|
|
28635
29009
|
};
|
|
28636
29010
|
}
|
|
28637
29011
|
|
|
28638
29012
|
// ../resourcecatalog-sdk/generated/src/models/EntityScope.ts
|
|
28639
|
-
function EntityScopeFromJSON(
|
|
28640
|
-
return EntityScopeFromJSONTyped(
|
|
29013
|
+
function EntityScopeFromJSON(json2) {
|
|
29014
|
+
return EntityScopeFromJSONTyped(json2, false);
|
|
28641
29015
|
}
|
|
28642
|
-
function EntityScopeFromJSONTyped(
|
|
28643
|
-
return
|
|
29016
|
+
function EntityScopeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29017
|
+
return json2;
|
|
28644
29018
|
}
|
|
28645
29019
|
|
|
28646
29020
|
// ../resourcecatalog-sdk/generated/src/models/FolderType.ts
|
|
28647
|
-
function FolderTypeFromJSON(
|
|
28648
|
-
return FolderTypeFromJSONTyped(
|
|
29021
|
+
function FolderTypeFromJSON(json2) {
|
|
29022
|
+
return FolderTypeFromJSONTyped(json2, false);
|
|
28649
29023
|
}
|
|
28650
|
-
function FolderTypeFromJSONTyped(
|
|
28651
|
-
return
|
|
29024
|
+
function FolderTypeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29025
|
+
return json2;
|
|
28652
29026
|
}
|
|
28653
29027
|
|
|
28654
29028
|
// ../resourcecatalog-sdk/generated/src/models/FolderModel.ts
|
|
28655
|
-
function FolderModelFromJSON(
|
|
28656
|
-
return FolderModelFromJSONTyped(
|
|
29029
|
+
function FolderModelFromJSON(json2) {
|
|
29030
|
+
return FolderModelFromJSONTyped(json2, false);
|
|
28657
29031
|
}
|
|
28658
|
-
function FolderModelFromJSONTyped(
|
|
28659
|
-
if (
|
|
28660
|
-
return
|
|
29032
|
+
function FolderModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29033
|
+
if (json2 == null) {
|
|
29034
|
+
return json2;
|
|
28661
29035
|
}
|
|
28662
29036
|
return {
|
|
28663
|
-
id:
|
|
28664
|
-
key:
|
|
28665
|
-
displayName:
|
|
28666
|
-
code:
|
|
28667
|
-
fullyQualifiedName:
|
|
28668
|
-
timestamp:
|
|
28669
|
-
tenantKey:
|
|
28670
|
-
accountKey:
|
|
28671
|
-
userKey:
|
|
28672
|
-
type:
|
|
28673
|
-
path:
|
|
28674
|
-
permissions:
|
|
29037
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
29038
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
29039
|
+
displayName: json2["displayName"] == null ? undefined : json2["displayName"],
|
|
29040
|
+
code: json2["code"] == null ? undefined : json2["code"],
|
|
29041
|
+
fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
|
|
29042
|
+
timestamp: json2["timestamp"] == null ? undefined : new Date(json2["timestamp"]),
|
|
29043
|
+
tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
|
|
29044
|
+
accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
|
|
29045
|
+
userKey: json2["userKey"] == null ? undefined : json2["userKey"],
|
|
29046
|
+
type: json2["type"] == null ? undefined : FolderTypeFromJSON(json2["type"]),
|
|
29047
|
+
path: json2["path"] == null ? undefined : json2["path"],
|
|
29048
|
+
permissions: json2["permissions"] == null ? undefined : json2["permissions"]
|
|
28675
29049
|
};
|
|
28676
29050
|
}
|
|
28677
29051
|
|
|
28678
29052
|
// ../resourcecatalog-sdk/generated/src/models/EntityModel.ts
|
|
28679
|
-
function EntityModelFromJSON(
|
|
28680
|
-
return EntityModelFromJSONTyped(
|
|
29053
|
+
function EntityModelFromJSON(json2) {
|
|
29054
|
+
return EntityModelFromJSONTyped(json2, false);
|
|
28681
29055
|
}
|
|
28682
|
-
function EntityModelFromJSONTyped(
|
|
28683
|
-
if (
|
|
28684
|
-
return
|
|
29056
|
+
function EntityModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29057
|
+
if (json2 == null) {
|
|
29058
|
+
return json2;
|
|
28685
29059
|
}
|
|
28686
29060
|
return {
|
|
28687
|
-
entityKey:
|
|
28688
|
-
name:
|
|
28689
|
-
description:
|
|
28690
|
-
entityType:
|
|
28691
|
-
tags:
|
|
28692
|
-
folders:
|
|
28693
|
-
linkedFoldersCount:
|
|
28694
|
-
source:
|
|
28695
|
-
scope:
|
|
28696
|
-
searchState:
|
|
28697
|
-
timestamp:
|
|
28698
|
-
folderKey:
|
|
28699
|
-
folderKeys:
|
|
28700
|
-
tenantKey:
|
|
28701
|
-
accountKey:
|
|
28702
|
-
userKey:
|
|
28703
|
-
dependencies:
|
|
28704
|
-
customData:
|
|
28705
|
-
entitySubType:
|
|
29061
|
+
entityKey: json2["entityKey"] == null ? undefined : json2["entityKey"],
|
|
29062
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
29063
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
29064
|
+
entityType: json2["entityType"] == null ? undefined : json2["entityType"],
|
|
29065
|
+
tags: json2["tags"] == null ? undefined : json2["tags"].map(TagModelFromJSON),
|
|
29066
|
+
folders: json2["folders"] == null ? undefined : json2["folders"].map(FolderModelFromJSON),
|
|
29067
|
+
linkedFoldersCount: json2["linkedFoldersCount"] == null ? undefined : json2["linkedFoldersCount"],
|
|
29068
|
+
source: json2["source"] == null ? undefined : json2["source"],
|
|
29069
|
+
scope: json2["scope"] == null ? undefined : EntityScopeFromJSON(json2["scope"]),
|
|
29070
|
+
searchState: json2["searchState"] == null ? undefined : EntitySearchStateFromJSON(json2["searchState"]),
|
|
29071
|
+
timestamp: json2["timestamp"] == null ? undefined : new Date(json2["timestamp"]),
|
|
29072
|
+
folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
|
|
29073
|
+
folderKeys: json2["folderKeys"] == null ? undefined : json2["folderKeys"],
|
|
29074
|
+
tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
|
|
29075
|
+
accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
|
|
29076
|
+
userKey: json2["userKey"] == null ? undefined : json2["userKey"],
|
|
29077
|
+
dependencies: json2["dependencies"] == null ? undefined : json2["dependencies"],
|
|
29078
|
+
customData: json2["customData"] == null ? undefined : json2["customData"],
|
|
29079
|
+
entitySubType: json2["entitySubType"] == null ? undefined : json2["entitySubType"]
|
|
28706
29080
|
};
|
|
28707
29081
|
}
|
|
28708
29082
|
|
|
28709
29083
|
// ../resourcecatalog-sdk/generated/src/models/EntityModelPaginationResult.ts
|
|
28710
|
-
function EntityModelPaginationResultFromJSON(
|
|
28711
|
-
return EntityModelPaginationResultFromJSONTyped(
|
|
29084
|
+
function EntityModelPaginationResultFromJSON(json2) {
|
|
29085
|
+
return EntityModelPaginationResultFromJSONTyped(json2, false);
|
|
28712
29086
|
}
|
|
28713
|
-
function EntityModelPaginationResultFromJSONTyped(
|
|
28714
|
-
if (
|
|
28715
|
-
return
|
|
29087
|
+
function EntityModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29088
|
+
if (json2 == null) {
|
|
29089
|
+
return json2;
|
|
28716
29090
|
}
|
|
28717
29091
|
return {
|
|
28718
|
-
count:
|
|
28719
|
-
value:
|
|
29092
|
+
count: json2["count"] == null ? undefined : json2["count"],
|
|
29093
|
+
value: json2["value"] == null ? undefined : json2["value"].map(EntityModelFromJSON)
|
|
28720
29094
|
};
|
|
28721
29095
|
}
|
|
28722
29096
|
|
|
28723
29097
|
// ../resourcecatalog-sdk/generated/src/models/FolderDto.ts
|
|
28724
|
-
function FolderDtoFromJSON(
|
|
28725
|
-
return FolderDtoFromJSONTyped(
|
|
29098
|
+
function FolderDtoFromJSON(json2) {
|
|
29099
|
+
return FolderDtoFromJSONTyped(json2, false);
|
|
28726
29100
|
}
|
|
28727
|
-
function FolderDtoFromJSONTyped(
|
|
28728
|
-
if (
|
|
28729
|
-
return
|
|
29101
|
+
function FolderDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29102
|
+
if (json2 == null) {
|
|
29103
|
+
return json2;
|
|
28730
29104
|
}
|
|
28731
29105
|
return {
|
|
28732
|
-
key:
|
|
28733
|
-
fullyQualifiedName:
|
|
28734
|
-
isPersonal:
|
|
28735
|
-
folderType:
|
|
29106
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
29107
|
+
fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
|
|
29108
|
+
isPersonal: json2["isPersonal"] == null ? undefined : json2["isPersonal"],
|
|
29109
|
+
folderType: json2["folderType"] == null ? undefined : FolderTypeFromJSON(json2["folderType"])
|
|
28736
29110
|
};
|
|
28737
29111
|
}
|
|
28738
29112
|
|
|
28739
29113
|
// ../resourcecatalog-sdk/generated/src/models/FolderEntityModel.ts
|
|
28740
|
-
function FolderEntityModelFromJSON(
|
|
28741
|
-
return FolderEntityModelFromJSONTyped(
|
|
29114
|
+
function FolderEntityModelFromJSON(json2) {
|
|
29115
|
+
return FolderEntityModelFromJSONTyped(json2, false);
|
|
28742
29116
|
}
|
|
28743
|
-
function FolderEntityModelFromJSONTyped(
|
|
28744
|
-
if (
|
|
28745
|
-
return
|
|
29117
|
+
function FolderEntityModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29118
|
+
if (json2 == null) {
|
|
29119
|
+
return json2;
|
|
28746
29120
|
}
|
|
28747
29121
|
return {
|
|
28748
|
-
folderKey:
|
|
28749
|
-
folderName:
|
|
28750
|
-
folderCode:
|
|
28751
|
-
fullyQualifiedName:
|
|
28752
|
-
folderType:
|
|
28753
|
-
folderPath:
|
|
28754
|
-
entityKey:
|
|
28755
|
-
entityName:
|
|
28756
|
-
entityDescription:
|
|
28757
|
-
entityType:
|
|
28758
|
-
entitySubType:
|
|
28759
|
-
entitySource:
|
|
29122
|
+
folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
|
|
29123
|
+
folderName: json2["folderName"] == null ? undefined : json2["folderName"],
|
|
29124
|
+
folderCode: json2["folderCode"] == null ? undefined : json2["folderCode"],
|
|
29125
|
+
fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
|
|
29126
|
+
folderType: json2["folderType"] == null ? undefined : FolderTypeFromJSON(json2["folderType"]),
|
|
29127
|
+
folderPath: json2["folderPath"] == null ? undefined : json2["folderPath"],
|
|
29128
|
+
entityKey: json2["entityKey"] == null ? undefined : json2["entityKey"],
|
|
29129
|
+
entityName: json2["entityName"] == null ? undefined : json2["entityName"],
|
|
29130
|
+
entityDescription: json2["entityDescription"] == null ? undefined : json2["entityDescription"],
|
|
29131
|
+
entityType: json2["entityType"] == null ? undefined : json2["entityType"],
|
|
29132
|
+
entitySubType: json2["entitySubType"] == null ? undefined : json2["entitySubType"],
|
|
29133
|
+
entitySource: json2["entitySource"] == null ? undefined : json2["entitySource"]
|
|
28760
29134
|
};
|
|
28761
29135
|
}
|
|
28762
29136
|
|
|
28763
29137
|
// ../resourcecatalog-sdk/generated/src/models/FolderEntityModelCursorPaginationResult.ts
|
|
28764
|
-
function FolderEntityModelCursorPaginationResultFromJSON(
|
|
28765
|
-
return FolderEntityModelCursorPaginationResultFromJSONTyped(
|
|
29138
|
+
function FolderEntityModelCursorPaginationResultFromJSON(json2) {
|
|
29139
|
+
return FolderEntityModelCursorPaginationResultFromJSONTyped(json2, false);
|
|
28766
29140
|
}
|
|
28767
|
-
function FolderEntityModelCursorPaginationResultFromJSONTyped(
|
|
28768
|
-
if (
|
|
28769
|
-
return
|
|
29141
|
+
function FolderEntityModelCursorPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29142
|
+
if (json2 == null) {
|
|
29143
|
+
return json2;
|
|
28770
29144
|
}
|
|
28771
29145
|
return {
|
|
28772
|
-
items:
|
|
28773
|
-
totalCount:
|
|
28774
|
-
nextPage:
|
|
28775
|
-
previousPage:
|
|
29146
|
+
items: json2["items"] == null ? undefined : json2["items"].map(FolderEntityModelFromJSON),
|
|
29147
|
+
totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
|
|
29148
|
+
nextPage: json2["nextPage"] == null ? undefined : json2["nextPage"],
|
|
29149
|
+
previousPage: json2["previousPage"] == null ? undefined : json2["previousPage"]
|
|
28776
29150
|
};
|
|
28777
29151
|
}
|
|
28778
29152
|
|
|
28779
29153
|
// ../resourcecatalog-sdk/generated/src/models/TagReferencesModel.ts
|
|
28780
|
-
function TagReferencesModelFromJSON(
|
|
28781
|
-
return TagReferencesModelFromJSONTyped(
|
|
29154
|
+
function TagReferencesModelFromJSON(json2) {
|
|
29155
|
+
return TagReferencesModelFromJSONTyped(json2, false);
|
|
28782
29156
|
}
|
|
28783
|
-
function TagReferencesModelFromJSONTyped(
|
|
28784
|
-
if (
|
|
28785
|
-
return
|
|
29157
|
+
function TagReferencesModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29158
|
+
if (json2 == null) {
|
|
29159
|
+
return json2;
|
|
28786
29160
|
}
|
|
28787
29161
|
return {
|
|
28788
|
-
entityType:
|
|
28789
|
-
count:
|
|
29162
|
+
entityType: json2["entityType"] == null ? undefined : json2["entityType"],
|
|
29163
|
+
count: json2["count"] == null ? undefined : json2["count"]
|
|
28790
29164
|
};
|
|
28791
29165
|
}
|
|
28792
|
-
function TagReferencesModelToJSON(
|
|
28793
|
-
return TagReferencesModelToJSONTyped(
|
|
29166
|
+
function TagReferencesModelToJSON(json2) {
|
|
29167
|
+
return TagReferencesModelToJSONTyped(json2, false);
|
|
28794
29168
|
}
|
|
28795
29169
|
function TagReferencesModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
28796
29170
|
if (value == null) {
|
|
@@ -28803,41 +29177,41 @@ function TagReferencesModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
28803
29177
|
}
|
|
28804
29178
|
|
|
28805
29179
|
// ../resourcecatalog-sdk/generated/src/models/TagDataType.ts
|
|
28806
|
-
function TagDataTypeFromJSON(
|
|
28807
|
-
return TagDataTypeFromJSONTyped(
|
|
29180
|
+
function TagDataTypeFromJSON(json2) {
|
|
29181
|
+
return TagDataTypeFromJSONTyped(json2, false);
|
|
28808
29182
|
}
|
|
28809
|
-
function TagDataTypeFromJSONTyped(
|
|
28810
|
-
return
|
|
29183
|
+
function TagDataTypeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29184
|
+
return json2;
|
|
28811
29185
|
}
|
|
28812
29186
|
function TagDataTypeToJSON(value) {
|
|
28813
29187
|
return value;
|
|
28814
29188
|
}
|
|
28815
29189
|
|
|
28816
29190
|
// ../resourcecatalog-sdk/generated/src/models/LabelModel.ts
|
|
28817
|
-
function LabelModelFromJSON(
|
|
28818
|
-
return LabelModelFromJSONTyped(
|
|
29191
|
+
function LabelModelFromJSON(json2) {
|
|
29192
|
+
return LabelModelFromJSONTyped(json2, false);
|
|
28819
29193
|
}
|
|
28820
|
-
function LabelModelFromJSONTyped(
|
|
28821
|
-
if (
|
|
28822
|
-
return
|
|
29194
|
+
function LabelModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29195
|
+
if (json2 == null) {
|
|
29196
|
+
return json2;
|
|
28823
29197
|
}
|
|
28824
29198
|
return {
|
|
28825
|
-
key:
|
|
28826
|
-
name:
|
|
28827
|
-
description:
|
|
28828
|
-
referencesCount:
|
|
28829
|
-
entityReferencesCount:
|
|
28830
|
-
dataType:
|
|
28831
|
-
regex:
|
|
28832
|
-
type:
|
|
28833
|
-
accountKey:
|
|
28834
|
-
tenantKey:
|
|
28835
|
-
userKey:
|
|
28836
|
-
values:
|
|
29199
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
29200
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
29201
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
29202
|
+
referencesCount: json2["referencesCount"] == null ? undefined : json2["referencesCount"],
|
|
29203
|
+
entityReferencesCount: json2["entityReferencesCount"] == null ? undefined : json2["entityReferencesCount"].map(TagReferencesModelFromJSON),
|
|
29204
|
+
dataType: json2["dataType"] == null ? undefined : TagDataTypeFromJSON(json2["dataType"]),
|
|
29205
|
+
regex: json2["regex"] == null ? undefined : json2["regex"],
|
|
29206
|
+
type: json2["type"] == null ? undefined : TagTypeFromJSON(json2["type"]),
|
|
29207
|
+
accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
|
|
29208
|
+
tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
|
|
29209
|
+
userKey: json2["userKey"] == null ? undefined : json2["userKey"],
|
|
29210
|
+
values: json2["values"] == null ? undefined : json2["values"]
|
|
28837
29211
|
};
|
|
28838
29212
|
}
|
|
28839
|
-
function LabelModelToJSON(
|
|
28840
|
-
return LabelModelToJSONTyped(
|
|
29213
|
+
function LabelModelToJSON(json2) {
|
|
29214
|
+
return LabelModelToJSONTyped(json2, false);
|
|
28841
29215
|
}
|
|
28842
29216
|
function LabelModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
28843
29217
|
if (value == null) {
|
|
@@ -28860,52 +29234,52 @@ function LabelModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
28860
29234
|
}
|
|
28861
29235
|
|
|
28862
29236
|
// ../resourcecatalog-sdk/generated/src/models/LabelModelPaginationResult.ts
|
|
28863
|
-
function LabelModelPaginationResultFromJSON(
|
|
28864
|
-
return LabelModelPaginationResultFromJSONTyped(
|
|
29237
|
+
function LabelModelPaginationResultFromJSON(json2) {
|
|
29238
|
+
return LabelModelPaginationResultFromJSONTyped(json2, false);
|
|
28865
29239
|
}
|
|
28866
|
-
function LabelModelPaginationResultFromJSONTyped(
|
|
28867
|
-
if (
|
|
28868
|
-
return
|
|
29240
|
+
function LabelModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29241
|
+
if (json2 == null) {
|
|
29242
|
+
return json2;
|
|
28869
29243
|
}
|
|
28870
29244
|
return {
|
|
28871
|
-
count:
|
|
28872
|
-
value:
|
|
29245
|
+
count: json2["count"] == null ? undefined : json2["count"],
|
|
29246
|
+
value: json2["value"] == null ? undefined : json2["value"].map(LabelModelFromJSON)
|
|
28873
29247
|
};
|
|
28874
29248
|
}
|
|
28875
29249
|
|
|
28876
29250
|
// ../resourcecatalog-sdk/generated/src/models/TagValueModel.ts
|
|
28877
|
-
function TagValueModelFromJSON(
|
|
28878
|
-
return TagValueModelFromJSONTyped(
|
|
29251
|
+
function TagValueModelFromJSON(json2) {
|
|
29252
|
+
return TagValueModelFromJSONTyped(json2, false);
|
|
28879
29253
|
}
|
|
28880
|
-
function TagValueModelFromJSONTyped(
|
|
28881
|
-
if (
|
|
28882
|
-
return
|
|
29254
|
+
function TagValueModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29255
|
+
if (json2 == null) {
|
|
29256
|
+
return json2;
|
|
28883
29257
|
}
|
|
28884
29258
|
return {
|
|
28885
|
-
key:
|
|
28886
|
-
displayValue:
|
|
28887
|
-
normalizedValue:
|
|
28888
|
-
entityReferencesCount:
|
|
29259
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
29260
|
+
displayValue: json2["displayValue"] == null ? undefined : json2["displayValue"],
|
|
29261
|
+
normalizedValue: json2["normalizedValue"] == null ? undefined : json2["normalizedValue"],
|
|
29262
|
+
entityReferencesCount: json2["entityReferencesCount"] == null ? undefined : json2["entityReferencesCount"].map(TagReferencesModelFromJSON)
|
|
28889
29263
|
};
|
|
28890
29264
|
}
|
|
28891
29265
|
|
|
28892
29266
|
// ../resourcecatalog-sdk/generated/src/models/TagValueModelPaginationResult.ts
|
|
28893
|
-
function TagValueModelPaginationResultFromJSON(
|
|
28894
|
-
return TagValueModelPaginationResultFromJSONTyped(
|
|
29267
|
+
function TagValueModelPaginationResultFromJSON(json2) {
|
|
29268
|
+
return TagValueModelPaginationResultFromJSONTyped(json2, false);
|
|
28895
29269
|
}
|
|
28896
|
-
function TagValueModelPaginationResultFromJSONTyped(
|
|
28897
|
-
if (
|
|
28898
|
-
return
|
|
29270
|
+
function TagValueModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29271
|
+
if (json2 == null) {
|
|
29272
|
+
return json2;
|
|
28899
29273
|
}
|
|
28900
29274
|
return {
|
|
28901
|
-
count:
|
|
28902
|
-
value:
|
|
29275
|
+
count: json2["count"] == null ? undefined : json2["count"],
|
|
29276
|
+
value: json2["value"] == null ? undefined : json2["value"].map(TagValueModelFromJSON)
|
|
28903
29277
|
};
|
|
28904
29278
|
}
|
|
28905
29279
|
|
|
28906
29280
|
// ../resourcecatalog-sdk/generated/src/models/ValueModel.ts
|
|
28907
|
-
function ValueModelToJSON(
|
|
28908
|
-
return ValueModelToJSONTyped(
|
|
29281
|
+
function ValueModelToJSON(json2) {
|
|
29282
|
+
return ValueModelToJSONTyped(json2, false);
|
|
28909
29283
|
}
|
|
28910
29284
|
function ValueModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
28911
29285
|
if (value == null) {
|
|
@@ -30601,12 +30975,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
30601
30975
|
var saveEnvFileAsync = async ({
|
|
30602
30976
|
envPath,
|
|
30603
30977
|
data,
|
|
30604
|
-
merge = true
|
|
30978
|
+
merge: merge2 = true
|
|
30605
30979
|
}) => {
|
|
30606
30980
|
const fs7 = getFileSystem();
|
|
30607
30981
|
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
|
|
30608
30982
|
let existingData = {};
|
|
30609
|
-
if (
|
|
30983
|
+
if (merge2 && await fs7.exists(absolutePath)) {
|
|
30610
30984
|
try {
|
|
30611
30985
|
existingData = await loadEnvFileAsync({ envPath: absolutePath });
|
|
30612
30986
|
} catch {}
|
|
@@ -31386,4 +31760,4 @@ program2.name(metadata.commandPrefix).description(metadata.description).version(
|
|
|
31386
31760
|
await registerCommands(program2);
|
|
31387
31761
|
program2.parse(process.argv);
|
|
31388
31762
|
|
|
31389
|
-
//# debugId=
|
|
31763
|
+
//# debugId=088CCAF103C0743364756E2164756E21
|