@base44-preview/cli 0.0.41-pr.367.270daed → 0.0.41-pr.367.985ad5e
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/cli/index.js +3333 -558
- package/dist/cli/index.js.map +27 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -9479,7 +9479,7 @@ var require_ejs = __commonJS((exports) => {
|
|
|
9479
9479
|
}
|
|
9480
9480
|
});
|
|
9481
9481
|
|
|
9482
|
-
// ../../node_modules/
|
|
9482
|
+
// ../../node_modules/js-yaml/lib/js-yaml/common.js
|
|
9483
9483
|
var require_common3 = __commonJS((exports, module) => {
|
|
9484
9484
|
function isNothing(subject) {
|
|
9485
9485
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -9523,7 +9523,7 @@ var require_common3 = __commonJS((exports, module) => {
|
|
|
9523
9523
|
exports.extend = extend2;
|
|
9524
9524
|
});
|
|
9525
9525
|
|
|
9526
|
-
// ../../node_modules/
|
|
9526
|
+
// ../../node_modules/js-yaml/lib/js-yaml/exception.js
|
|
9527
9527
|
var require_exception = __commonJS((exports, module) => {
|
|
9528
9528
|
function YAMLException(reason, mark) {
|
|
9529
9529
|
Error.call(this);
|
|
@@ -9550,7 +9550,7 @@ var require_exception = __commonJS((exports, module) => {
|
|
|
9550
9550
|
module.exports = YAMLException;
|
|
9551
9551
|
});
|
|
9552
9552
|
|
|
9553
|
-
// ../../node_modules/
|
|
9553
|
+
// ../../node_modules/js-yaml/lib/js-yaml/mark.js
|
|
9554
9554
|
var require_mark = __commonJS((exports, module) => {
|
|
9555
9555
|
var common = require_common3();
|
|
9556
9556
|
function Mark(name2, buffer, position, line, column) {
|
|
@@ -9610,7 +9610,7 @@ var require_mark = __commonJS((exports, module) => {
|
|
|
9610
9610
|
module.exports = Mark;
|
|
9611
9611
|
});
|
|
9612
9612
|
|
|
9613
|
-
// ../../node_modules/
|
|
9613
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type.js
|
|
9614
9614
|
var require_type = __commonJS((exports, module) => {
|
|
9615
9615
|
var YAMLException = require_exception();
|
|
9616
9616
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -9666,7 +9666,7 @@ var require_type = __commonJS((exports, module) => {
|
|
|
9666
9666
|
module.exports = Type;
|
|
9667
9667
|
});
|
|
9668
9668
|
|
|
9669
|
-
// ../../node_modules/
|
|
9669
|
+
// ../../node_modules/js-yaml/lib/js-yaml/schema.js
|
|
9670
9670
|
var require_schema = __commonJS((exports, module) => {
|
|
9671
9671
|
var common = require_common3();
|
|
9672
9672
|
var YAMLException = require_exception();
|
|
@@ -9751,7 +9751,7 @@ var require_schema = __commonJS((exports, module) => {
|
|
|
9751
9751
|
module.exports = Schema;
|
|
9752
9752
|
});
|
|
9753
9753
|
|
|
9754
|
-
// ../../node_modules/
|
|
9754
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/str.js
|
|
9755
9755
|
var require_str = __commonJS((exports, module) => {
|
|
9756
9756
|
var Type = require_type();
|
|
9757
9757
|
module.exports = new Type("tag:yaml.org,2002:str", {
|
|
@@ -9762,7 +9762,7 @@ var require_str = __commonJS((exports, module) => {
|
|
|
9762
9762
|
});
|
|
9763
9763
|
});
|
|
9764
9764
|
|
|
9765
|
-
// ../../node_modules/
|
|
9765
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/seq.js
|
|
9766
9766
|
var require_seq = __commonJS((exports, module) => {
|
|
9767
9767
|
var Type = require_type();
|
|
9768
9768
|
module.exports = new Type("tag:yaml.org,2002:seq", {
|
|
@@ -9773,7 +9773,7 @@ var require_seq = __commonJS((exports, module) => {
|
|
|
9773
9773
|
});
|
|
9774
9774
|
});
|
|
9775
9775
|
|
|
9776
|
-
// ../../node_modules/
|
|
9776
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/map.js
|
|
9777
9777
|
var require_map = __commonJS((exports, module) => {
|
|
9778
9778
|
var Type = require_type();
|
|
9779
9779
|
module.exports = new Type("tag:yaml.org,2002:map", {
|
|
@@ -9784,7 +9784,7 @@ var require_map = __commonJS((exports, module) => {
|
|
|
9784
9784
|
});
|
|
9785
9785
|
});
|
|
9786
9786
|
|
|
9787
|
-
// ../../node_modules/
|
|
9787
|
+
// ../../node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
|
|
9788
9788
|
var require_failsafe = __commonJS((exports, module) => {
|
|
9789
9789
|
var Schema = require_schema();
|
|
9790
9790
|
module.exports = new Schema({
|
|
@@ -9796,7 +9796,7 @@ var require_failsafe = __commonJS((exports, module) => {
|
|
|
9796
9796
|
});
|
|
9797
9797
|
});
|
|
9798
9798
|
|
|
9799
|
-
// ../../node_modules/
|
|
9799
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/null.js
|
|
9800
9800
|
var require_null = __commonJS((exports, module) => {
|
|
9801
9801
|
var Type = require_type();
|
|
9802
9802
|
function resolveYamlNull(data) {
|
|
@@ -9834,7 +9834,7 @@ var require_null = __commonJS((exports, module) => {
|
|
|
9834
9834
|
});
|
|
9835
9835
|
});
|
|
9836
9836
|
|
|
9837
|
-
// ../../node_modules/
|
|
9837
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/bool.js
|
|
9838
9838
|
var require_bool = __commonJS((exports, module) => {
|
|
9839
9839
|
var Type = require_type();
|
|
9840
9840
|
function resolveYamlBoolean(data) {
|
|
@@ -9869,7 +9869,7 @@ var require_bool = __commonJS((exports, module) => {
|
|
|
9869
9869
|
});
|
|
9870
9870
|
});
|
|
9871
9871
|
|
|
9872
|
-
// ../../node_modules/
|
|
9872
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/int.js
|
|
9873
9873
|
var require_int = __commonJS((exports, module) => {
|
|
9874
9874
|
var common = require_common3();
|
|
9875
9875
|
var Type = require_type();
|
|
@@ -10016,7 +10016,7 @@ var require_int = __commonJS((exports, module) => {
|
|
|
10016
10016
|
});
|
|
10017
10017
|
});
|
|
10018
10018
|
|
|
10019
|
-
// ../../node_modules/
|
|
10019
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/float.js
|
|
10020
10020
|
var require_float = __commonJS((exports, module) => {
|
|
10021
10021
|
var common = require_common3();
|
|
10022
10022
|
var Type = require_type();
|
|
@@ -10104,7 +10104,7 @@ var require_float = __commonJS((exports, module) => {
|
|
|
10104
10104
|
});
|
|
10105
10105
|
});
|
|
10106
10106
|
|
|
10107
|
-
// ../../node_modules/
|
|
10107
|
+
// ../../node_modules/js-yaml/lib/js-yaml/schema/json.js
|
|
10108
10108
|
var require_json = __commonJS((exports, module) => {
|
|
10109
10109
|
var Schema = require_schema();
|
|
10110
10110
|
module.exports = new Schema({
|
|
@@ -10120,7 +10120,7 @@ var require_json = __commonJS((exports, module) => {
|
|
|
10120
10120
|
});
|
|
10121
10121
|
});
|
|
10122
10122
|
|
|
10123
|
-
// ../../node_modules/
|
|
10123
|
+
// ../../node_modules/js-yaml/lib/js-yaml/schema/core.js
|
|
10124
10124
|
var require_core = __commonJS((exports, module) => {
|
|
10125
10125
|
var Schema = require_schema();
|
|
10126
10126
|
module.exports = new Schema({
|
|
@@ -10130,7 +10130,7 @@ var require_core = __commonJS((exports, module) => {
|
|
|
10130
10130
|
});
|
|
10131
10131
|
});
|
|
10132
10132
|
|
|
10133
|
-
// ../../node_modules/
|
|
10133
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/timestamp.js
|
|
10134
10134
|
var require_timestamp = __commonJS((exports, module) => {
|
|
10135
10135
|
var Type = require_type();
|
|
10136
10136
|
var YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])" + "-([0-9][0-9])" + "-([0-9][0-9])$");
|
|
@@ -10191,7 +10191,7 @@ var require_timestamp = __commonJS((exports, module) => {
|
|
|
10191
10191
|
});
|
|
10192
10192
|
});
|
|
10193
10193
|
|
|
10194
|
-
// ../../node_modules/
|
|
10194
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/merge.js
|
|
10195
10195
|
var require_merge = __commonJS((exports, module) => {
|
|
10196
10196
|
var Type = require_type();
|
|
10197
10197
|
function resolveYamlMerge(data) {
|
|
@@ -10203,7 +10203,7 @@ var require_merge = __commonJS((exports, module) => {
|
|
|
10203
10203
|
});
|
|
10204
10204
|
});
|
|
10205
10205
|
|
|
10206
|
-
// ../../node_modules/
|
|
10206
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/binary.js
|
|
10207
10207
|
var require_binary = __commonJS((exports, module) => {
|
|
10208
10208
|
var NodeBuffer;
|
|
10209
10209
|
try {
|
|
@@ -10296,7 +10296,7 @@ var require_binary = __commonJS((exports, module) => {
|
|
|
10296
10296
|
});
|
|
10297
10297
|
});
|
|
10298
10298
|
|
|
10299
|
-
// ../../node_modules/
|
|
10299
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/omap.js
|
|
10300
10300
|
var require_omap = __commonJS((exports, module) => {
|
|
10301
10301
|
var Type = require_type();
|
|
10302
10302
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -10337,7 +10337,7 @@ var require_omap = __commonJS((exports, module) => {
|
|
|
10337
10337
|
});
|
|
10338
10338
|
});
|
|
10339
10339
|
|
|
10340
|
-
// ../../node_modules/
|
|
10340
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/pairs.js
|
|
10341
10341
|
var require_pairs = __commonJS((exports, module) => {
|
|
10342
10342
|
var Type = require_type();
|
|
10343
10343
|
var _toString = Object.prototype.toString;
|
|
@@ -10376,7 +10376,7 @@ var require_pairs = __commonJS((exports, module) => {
|
|
|
10376
10376
|
});
|
|
10377
10377
|
});
|
|
10378
10378
|
|
|
10379
|
-
// ../../node_modules/
|
|
10379
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/set.js
|
|
10380
10380
|
var require_set = __commonJS((exports, module) => {
|
|
10381
10381
|
var Type = require_type();
|
|
10382
10382
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -10402,7 +10402,7 @@ var require_set = __commonJS((exports, module) => {
|
|
|
10402
10402
|
});
|
|
10403
10403
|
});
|
|
10404
10404
|
|
|
10405
|
-
// ../../node_modules/
|
|
10405
|
+
// ../../node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
|
|
10406
10406
|
var require_default_safe = __commonJS((exports, module) => {
|
|
10407
10407
|
var Schema = require_schema();
|
|
10408
10408
|
module.exports = new Schema({
|
|
@@ -10422,7 +10422,7 @@ var require_default_safe = __commonJS((exports, module) => {
|
|
|
10422
10422
|
});
|
|
10423
10423
|
});
|
|
10424
10424
|
|
|
10425
|
-
// ../../node_modules/
|
|
10425
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
|
|
10426
10426
|
var require_undefined = __commonJS((exports, module) => {
|
|
10427
10427
|
var Type = require_type();
|
|
10428
10428
|
function resolveJavascriptUndefined() {
|
|
@@ -10446,7 +10446,7 @@ var require_undefined = __commonJS((exports, module) => {
|
|
|
10446
10446
|
});
|
|
10447
10447
|
});
|
|
10448
10448
|
|
|
10449
|
-
// ../../node_modules/
|
|
10449
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
|
|
10450
10450
|
var require_regexp = __commonJS((exports, module) => {
|
|
10451
10451
|
var Type = require_type();
|
|
10452
10452
|
function resolveJavascriptRegExp(data) {
|
|
@@ -10496,7 +10496,7 @@ var require_regexp = __commonJS((exports, module) => {
|
|
|
10496
10496
|
});
|
|
10497
10497
|
});
|
|
10498
10498
|
|
|
10499
|
-
// ../../node_modules/
|
|
10499
|
+
// ../../node_modules/js-yaml/lib/js-yaml/type/js/function.js
|
|
10500
10500
|
var require_function = __commonJS((exports, module) => {
|
|
10501
10501
|
var esprima;
|
|
10502
10502
|
try {
|
|
@@ -10550,7 +10550,7 @@ var require_function = __commonJS((exports, module) => {
|
|
|
10550
10550
|
});
|
|
10551
10551
|
});
|
|
10552
10552
|
|
|
10553
|
-
// ../../node_modules/
|
|
10553
|
+
// ../../node_modules/js-yaml/lib/js-yaml/schema/default_full.js
|
|
10554
10554
|
var require_default_full = __commonJS((exports, module) => {
|
|
10555
10555
|
var Schema = require_schema();
|
|
10556
10556
|
module.exports = Schema.DEFAULT = new Schema({
|
|
@@ -10565,7 +10565,7 @@ var require_default_full = __commonJS((exports, module) => {
|
|
|
10565
10565
|
});
|
|
10566
10566
|
});
|
|
10567
10567
|
|
|
10568
|
-
// ../../node_modules/
|
|
10568
|
+
// ../../node_modules/js-yaml/lib/js-yaml/loader.js
|
|
10569
10569
|
var require_loader = __commonJS((exports, module) => {
|
|
10570
10570
|
var common = require_common3();
|
|
10571
10571
|
var YAMLException = require_exception();
|
|
@@ -11689,7 +11689,7 @@ var require_loader = __commonJS((exports, module) => {
|
|
|
11689
11689
|
exports.safeLoad = safeLoad;
|
|
11690
11690
|
});
|
|
11691
11691
|
|
|
11692
|
-
// ../../node_modules/
|
|
11692
|
+
// ../../node_modules/js-yaml/lib/js-yaml/dumper.js
|
|
11693
11693
|
var require_dumper = __commonJS((exports, module) => {
|
|
11694
11694
|
var common = require_common3();
|
|
11695
11695
|
var YAMLException = require_exception();
|
|
@@ -12258,7 +12258,7 @@ var require_dumper = __commonJS((exports, module) => {
|
|
|
12258
12258
|
exports.safeDump = safeDump;
|
|
12259
12259
|
});
|
|
12260
12260
|
|
|
12261
|
-
// ../../node_modules/
|
|
12261
|
+
// ../../node_modules/js-yaml/lib/js-yaml.js
|
|
12262
12262
|
var require_js_yaml = __commonJS((exports, module) => {
|
|
12263
12263
|
var loader = require_loader();
|
|
12264
12264
|
var dumper = require_dumper();
|
|
@@ -12290,7 +12290,7 @@ var require_js_yaml = __commonJS((exports, module) => {
|
|
|
12290
12290
|
exports.addConstructor = deprecated("addConstructor");
|
|
12291
12291
|
});
|
|
12292
12292
|
|
|
12293
|
-
// ../../node_modules/
|
|
12293
|
+
// ../../node_modules/js-yaml/index.js
|
|
12294
12294
|
var require_js_yaml2 = __commonJS((exports, module) => {
|
|
12295
12295
|
var yaml = require_js_yaml();
|
|
12296
12296
|
module.exports = yaml;
|
|
@@ -134710,7 +134710,7 @@ var require_JSONSchema = __commonJS((exports) => {
|
|
|
134710
134710
|
exports.isCompound = isCompound;
|
|
134711
134711
|
});
|
|
134712
134712
|
|
|
134713
|
-
// ../../node_modules/js-yaml/lib/common.js
|
|
134713
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/common.js
|
|
134714
134714
|
var require_common5 = __commonJS((exports, module) => {
|
|
134715
134715
|
function isNothing(subject) {
|
|
134716
134716
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -134754,7 +134754,7 @@ var require_common5 = __commonJS((exports, module) => {
|
|
|
134754
134754
|
exports.extend = extend2;
|
|
134755
134755
|
});
|
|
134756
134756
|
|
|
134757
|
-
// ../../node_modules/js-yaml/lib/exception.js
|
|
134757
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/exception.js
|
|
134758
134758
|
var require_exception2 = __commonJS((exports, module) => {
|
|
134759
134759
|
function formatError2(exception, compact) {
|
|
134760
134760
|
var where = "", message = exception.reason || "(unknown reason)";
|
|
@@ -134791,7 +134791,7 @@ var require_exception2 = __commonJS((exports, module) => {
|
|
|
134791
134791
|
module.exports = YAMLException;
|
|
134792
134792
|
});
|
|
134793
134793
|
|
|
134794
|
-
// ../../node_modules/js-yaml/lib/snippet.js
|
|
134794
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/snippet.js
|
|
134795
134795
|
var require_snippet = __commonJS((exports, module) => {
|
|
134796
134796
|
var common2 = require_common5();
|
|
134797
134797
|
function getLine(buffer2, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -134867,7 +134867,7 @@ var require_snippet = __commonJS((exports, module) => {
|
|
|
134867
134867
|
module.exports = makeSnippet;
|
|
134868
134868
|
});
|
|
134869
134869
|
|
|
134870
|
-
// ../../node_modules/js-yaml/lib/type.js
|
|
134870
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type.js
|
|
134871
134871
|
var require_type2 = __commonJS((exports, module) => {
|
|
134872
134872
|
var YAMLException = require_exception2();
|
|
134873
134873
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -134928,7 +134928,7 @@ var require_type2 = __commonJS((exports, module) => {
|
|
|
134928
134928
|
module.exports = Type;
|
|
134929
134929
|
});
|
|
134930
134930
|
|
|
134931
|
-
// ../../node_modules/js-yaml/lib/schema.js
|
|
134931
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/schema.js
|
|
134932
134932
|
var require_schema5 = __commonJS((exports, module) => {
|
|
134933
134933
|
var YAMLException = require_exception2();
|
|
134934
134934
|
var Type = require_type2();
|
|
@@ -135016,7 +135016,7 @@ var require_schema5 = __commonJS((exports, module) => {
|
|
|
135016
135016
|
module.exports = Schema3;
|
|
135017
135017
|
});
|
|
135018
135018
|
|
|
135019
|
-
// ../../node_modules/js-yaml/lib/type/str.js
|
|
135019
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/str.js
|
|
135020
135020
|
var require_str2 = __commonJS((exports, module) => {
|
|
135021
135021
|
var Type = require_type2();
|
|
135022
135022
|
module.exports = new Type("tag:yaml.org,2002:str", {
|
|
@@ -135027,7 +135027,7 @@ var require_str2 = __commonJS((exports, module) => {
|
|
|
135027
135027
|
});
|
|
135028
135028
|
});
|
|
135029
135029
|
|
|
135030
|
-
// ../../node_modules/js-yaml/lib/type/seq.js
|
|
135030
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/seq.js
|
|
135031
135031
|
var require_seq3 = __commonJS((exports, module) => {
|
|
135032
135032
|
var Type = require_type2();
|
|
135033
135033
|
module.exports = new Type("tag:yaml.org,2002:seq", {
|
|
@@ -135038,7 +135038,7 @@ var require_seq3 = __commonJS((exports, module) => {
|
|
|
135038
135038
|
});
|
|
135039
135039
|
});
|
|
135040
135040
|
|
|
135041
|
-
// ../../node_modules/js-yaml/lib/type/map.js
|
|
135041
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/map.js
|
|
135042
135042
|
var require_map4 = __commonJS((exports, module) => {
|
|
135043
135043
|
var Type = require_type2();
|
|
135044
135044
|
module.exports = new Type("tag:yaml.org,2002:map", {
|
|
@@ -135049,7 +135049,7 @@ var require_map4 = __commonJS((exports, module) => {
|
|
|
135049
135049
|
});
|
|
135050
135050
|
});
|
|
135051
135051
|
|
|
135052
|
-
// ../../node_modules/js-yaml/lib/schema/failsafe.js
|
|
135052
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/schema/failsafe.js
|
|
135053
135053
|
var require_failsafe2 = __commonJS((exports, module) => {
|
|
135054
135054
|
var Schema3 = require_schema5();
|
|
135055
135055
|
module.exports = new Schema3({
|
|
@@ -135061,7 +135061,7 @@ var require_failsafe2 = __commonJS((exports, module) => {
|
|
|
135061
135061
|
});
|
|
135062
135062
|
});
|
|
135063
135063
|
|
|
135064
|
-
// ../../node_modules/js-yaml/lib/type/null.js
|
|
135064
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/null.js
|
|
135065
135065
|
var require_null3 = __commonJS((exports, module) => {
|
|
135066
135066
|
var Type = require_type2();
|
|
135067
135067
|
function resolveYamlNull(data) {
|
|
@@ -135102,7 +135102,7 @@ var require_null3 = __commonJS((exports, module) => {
|
|
|
135102
135102
|
});
|
|
135103
135103
|
});
|
|
135104
135104
|
|
|
135105
|
-
// ../../node_modules/js-yaml/lib/type/bool.js
|
|
135105
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/bool.js
|
|
135106
135106
|
var require_bool4 = __commonJS((exports, module) => {
|
|
135107
135107
|
var Type = require_type2();
|
|
135108
135108
|
function resolveYamlBoolean(data) {
|
|
@@ -135137,7 +135137,7 @@ var require_bool4 = __commonJS((exports, module) => {
|
|
|
135137
135137
|
});
|
|
135138
135138
|
});
|
|
135139
135139
|
|
|
135140
|
-
// ../../node_modules/js-yaml/lib/type/int.js
|
|
135140
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/int.js
|
|
135141
135141
|
var require_int4 = __commonJS((exports, module) => {
|
|
135142
135142
|
var common2 = require_common5();
|
|
135143
135143
|
var Type = require_type2();
|
|
@@ -135272,7 +135272,7 @@ var require_int4 = __commonJS((exports, module) => {
|
|
|
135272
135272
|
});
|
|
135273
135273
|
});
|
|
135274
135274
|
|
|
135275
|
-
// ../../node_modules/js-yaml/lib/type/float.js
|
|
135275
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/float.js
|
|
135276
135276
|
var require_float4 = __commonJS((exports, module) => {
|
|
135277
135277
|
var common2 = require_common5();
|
|
135278
135278
|
var Type = require_type2();
|
|
@@ -135348,7 +135348,7 @@ var require_float4 = __commonJS((exports, module) => {
|
|
|
135348
135348
|
});
|
|
135349
135349
|
});
|
|
135350
135350
|
|
|
135351
|
-
// ../../node_modules/js-yaml/lib/schema/json.js
|
|
135351
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/schema/json.js
|
|
135352
135352
|
var require_json2 = __commonJS((exports, module) => {
|
|
135353
135353
|
module.exports = require_failsafe2().extend({
|
|
135354
135354
|
implicit: [
|
|
@@ -135360,7 +135360,7 @@ var require_json2 = __commonJS((exports, module) => {
|
|
|
135360
135360
|
});
|
|
135361
135361
|
});
|
|
135362
135362
|
|
|
135363
|
-
// ../../node_modules/js-yaml/lib/type/timestamp.js
|
|
135363
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/timestamp.js
|
|
135364
135364
|
var require_timestamp3 = __commonJS((exports, module) => {
|
|
135365
135365
|
var Type = require_type2();
|
|
135366
135366
|
var YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])" + "-([0-9][0-9])" + "-([0-9][0-9])$");
|
|
@@ -135421,7 +135421,7 @@ var require_timestamp3 = __commonJS((exports, module) => {
|
|
|
135421
135421
|
});
|
|
135422
135422
|
});
|
|
135423
135423
|
|
|
135424
|
-
// ../../node_modules/js-yaml/lib/type/merge.js
|
|
135424
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/merge.js
|
|
135425
135425
|
var require_merge5 = __commonJS((exports, module) => {
|
|
135426
135426
|
var Type = require_type2();
|
|
135427
135427
|
function resolveYamlMerge(data) {
|
|
@@ -135433,7 +135433,7 @@ var require_merge5 = __commonJS((exports, module) => {
|
|
|
135433
135433
|
});
|
|
135434
135434
|
});
|
|
135435
135435
|
|
|
135436
|
-
// ../../node_modules/js-yaml/lib/type/binary.js
|
|
135436
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/binary.js
|
|
135437
135437
|
var require_binary3 = __commonJS((exports, module) => {
|
|
135438
135438
|
var Type = require_type2();
|
|
135439
135439
|
var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -135517,7 +135517,7 @@ var require_binary3 = __commonJS((exports, module) => {
|
|
|
135517
135517
|
});
|
|
135518
135518
|
});
|
|
135519
135519
|
|
|
135520
|
-
// ../../node_modules/js-yaml/lib/type/omap.js
|
|
135520
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/omap.js
|
|
135521
135521
|
var require_omap3 = __commonJS((exports, module) => {
|
|
135522
135522
|
var Type = require_type2();
|
|
135523
135523
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -135558,7 +135558,7 @@ var require_omap3 = __commonJS((exports, module) => {
|
|
|
135558
135558
|
});
|
|
135559
135559
|
});
|
|
135560
135560
|
|
|
135561
|
-
// ../../node_modules/js-yaml/lib/type/pairs.js
|
|
135561
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/pairs.js
|
|
135562
135562
|
var require_pairs3 = __commonJS((exports, module) => {
|
|
135563
135563
|
var Type = require_type2();
|
|
135564
135564
|
var _toString = Object.prototype.toString;
|
|
@@ -135597,7 +135597,7 @@ var require_pairs3 = __commonJS((exports, module) => {
|
|
|
135597
135597
|
});
|
|
135598
135598
|
});
|
|
135599
135599
|
|
|
135600
|
-
// ../../node_modules/js-yaml/lib/type/set.js
|
|
135600
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/type/set.js
|
|
135601
135601
|
var require_set3 = __commonJS((exports, module) => {
|
|
135602
135602
|
var Type = require_type2();
|
|
135603
135603
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -135623,7 +135623,7 @@ var require_set3 = __commonJS((exports, module) => {
|
|
|
135623
135623
|
});
|
|
135624
135624
|
});
|
|
135625
135625
|
|
|
135626
|
-
// ../../node_modules/js-yaml/lib/schema/default.js
|
|
135626
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/schema/default.js
|
|
135627
135627
|
var require_default = __commonJS((exports, module) => {
|
|
135628
135628
|
module.exports = require_json2().extend({
|
|
135629
135629
|
implicit: [
|
|
@@ -135639,7 +135639,7 @@ var require_default = __commonJS((exports, module) => {
|
|
|
135639
135639
|
});
|
|
135640
135640
|
});
|
|
135641
135641
|
|
|
135642
|
-
// ../../node_modules/js-yaml/lib/loader.js
|
|
135642
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/loader.js
|
|
135643
135643
|
var require_loader2 = __commonJS((exports, module) => {
|
|
135644
135644
|
var common2 = require_common5();
|
|
135645
135645
|
var YAMLException = require_exception2();
|
|
@@ -136812,7 +136812,7 @@ var require_loader2 = __commonJS((exports, module) => {
|
|
|
136812
136812
|
exports.load = load2;
|
|
136813
136813
|
});
|
|
136814
136814
|
|
|
136815
|
-
// ../../node_modules/js-yaml/lib/dumper.js
|
|
136815
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/lib/dumper.js
|
|
136816
136816
|
var require_dumper2 = __commonJS((exports, module) => {
|
|
136817
136817
|
var common2 = require_common5();
|
|
136818
136818
|
var YAMLException = require_exception2();
|
|
@@ -137446,7 +137446,7 @@ var require_dumper2 = __commonJS((exports, module) => {
|
|
|
137446
137446
|
exports.dump = dump;
|
|
137447
137447
|
});
|
|
137448
137448
|
|
|
137449
|
-
// ../../node_modules/js-yaml/index.js
|
|
137449
|
+
// ../../node_modules/json-schema-to-typescript/node_modules/js-yaml/index.js
|
|
137450
137450
|
var require_js_yaml3 = __commonJS((exports, module) => {
|
|
137451
137451
|
var loader = require_loader2();
|
|
137452
137452
|
var dumper = require_dumper2();
|
|
@@ -140357,546 +140357,3321 @@ var require_json3 = __commonJS((exports) => {
|
|
|
140357
140357
|
};
|
|
140358
140358
|
});
|
|
140359
140359
|
|
|
140360
|
-
// ../../node_modules/@apidevtools/json-schema-ref-parser/
|
|
140361
|
-
var
|
|
140362
|
-
|
|
140363
|
-
return
|
|
140364
|
-
}
|
|
140365
|
-
|
|
140366
|
-
|
|
140367
|
-
|
|
140368
|
-
|
|
140369
|
-
|
|
140370
|
-
|
|
140371
|
-
|
|
140372
|
-
|
|
140373
|
-
|
|
140374
|
-
|
|
140375
|
-
|
|
140376
|
-
|
|
140377
|
-
|
|
140378
|
-
|
|
140379
|
-
|
|
140380
|
-
|
|
140381
|
-
|
|
140382
|
-
throw new errors_js_1.ParserError(e8?.message || "Parser Error", file2.url);
|
|
140383
|
-
}
|
|
140384
|
-
} else {
|
|
140385
|
-
return data;
|
|
140360
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/common.js
|
|
140361
|
+
var require_common6 = __commonJS((exports, module) => {
|
|
140362
|
+
function isNothing(subject) {
|
|
140363
|
+
return typeof subject === "undefined" || subject === null;
|
|
140364
|
+
}
|
|
140365
|
+
function isObject5(subject) {
|
|
140366
|
+
return typeof subject === "object" && subject !== null;
|
|
140367
|
+
}
|
|
140368
|
+
function toArray(sequence) {
|
|
140369
|
+
if (Array.isArray(sequence))
|
|
140370
|
+
return sequence;
|
|
140371
|
+
else if (isNothing(sequence))
|
|
140372
|
+
return [];
|
|
140373
|
+
return [sequence];
|
|
140374
|
+
}
|
|
140375
|
+
function extend2(target, source2) {
|
|
140376
|
+
var index, length, key2, sourceKeys;
|
|
140377
|
+
if (source2) {
|
|
140378
|
+
sourceKeys = Object.keys(source2);
|
|
140379
|
+
for (index = 0, length = sourceKeys.length;index < length; index += 1) {
|
|
140380
|
+
key2 = sourceKeys[index];
|
|
140381
|
+
target[key2] = source2[key2];
|
|
140386
140382
|
}
|
|
140387
140383
|
}
|
|
140388
|
-
|
|
140384
|
+
return target;
|
|
140385
|
+
}
|
|
140386
|
+
function repeat(string4, count2) {
|
|
140387
|
+
var result = "", cycle;
|
|
140388
|
+
for (cycle = 0;cycle < count2; cycle += 1) {
|
|
140389
|
+
result += string4;
|
|
140390
|
+
}
|
|
140391
|
+
return result;
|
|
140392
|
+
}
|
|
140393
|
+
function isNegativeZero(number4) {
|
|
140394
|
+
return number4 === 0 && Number.NEGATIVE_INFINITY === 1 / number4;
|
|
140395
|
+
}
|
|
140396
|
+
exports.isNothing = isNothing;
|
|
140397
|
+
exports.isObject = isObject5;
|
|
140398
|
+
exports.toArray = toArray;
|
|
140399
|
+
exports.repeat = repeat;
|
|
140400
|
+
exports.isNegativeZero = isNegativeZero;
|
|
140401
|
+
exports.extend = extend2;
|
|
140389
140402
|
});
|
|
140390
140403
|
|
|
140391
|
-
// ../../node_modules/@apidevtools/json-schema-ref-parser/
|
|
140392
|
-
var
|
|
140393
|
-
|
|
140394
|
-
|
|
140395
|
-
|
|
140396
|
-
|
|
140397
|
-
|
|
140398
|
-
|
|
140399
|
-
encoding: "utf8",
|
|
140400
|
-
canParse(file2) {
|
|
140401
|
-
return (typeof file2.data === "string" || Buffer.isBuffer(file2.data)) && TEXT_REGEXP.test(file2.url);
|
|
140402
|
-
},
|
|
140403
|
-
parse(file2) {
|
|
140404
|
-
if (typeof file2.data === "string") {
|
|
140405
|
-
return file2.data;
|
|
140406
|
-
} else if (Buffer.isBuffer(file2.data)) {
|
|
140407
|
-
return file2.data.toString(this.encoding);
|
|
140408
|
-
} else {
|
|
140409
|
-
throw new errors_js_1.ParserError("data is not text", file2.url);
|
|
140410
|
-
}
|
|
140404
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/exception.js
|
|
140405
|
+
var require_exception3 = __commonJS((exports, module) => {
|
|
140406
|
+
function formatError2(exception, compact) {
|
|
140407
|
+
var where = "", message = exception.reason || "(unknown reason)";
|
|
140408
|
+
if (!exception.mark)
|
|
140409
|
+
return message;
|
|
140410
|
+
if (exception.mark.name) {
|
|
140411
|
+
where += 'in "' + exception.mark.name + '" ';
|
|
140411
140412
|
}
|
|
140412
|
-
|
|
140413
|
-
|
|
140413
|
+
where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
|
|
140414
|
+
if (!compact && exception.mark.snippet) {
|
|
140415
|
+
where += `
|
|
140414
140416
|
|
|
140415
|
-
|
|
140416
|
-
|
|
140417
|
-
|
|
140418
|
-
|
|
140419
|
-
|
|
140420
|
-
|
|
140421
|
-
|
|
140422
|
-
|
|
140423
|
-
|
|
140424
|
-
|
|
140425
|
-
|
|
140426
|
-
|
|
140427
|
-
|
|
140428
|
-
|
|
140429
|
-
return Buffer.from(file2.data);
|
|
140430
|
-
}
|
|
140417
|
+
` + exception.mark.snippet;
|
|
140418
|
+
}
|
|
140419
|
+
return message + " " + where;
|
|
140420
|
+
}
|
|
140421
|
+
function YAMLException(reason, mark) {
|
|
140422
|
+
Error.call(this);
|
|
140423
|
+
this.name = "YAMLException";
|
|
140424
|
+
this.reason = reason;
|
|
140425
|
+
this.mark = mark;
|
|
140426
|
+
this.message = formatError2(this, false);
|
|
140427
|
+
if (Error.captureStackTrace) {
|
|
140428
|
+
Error.captureStackTrace(this, this.constructor);
|
|
140429
|
+
} else {
|
|
140430
|
+
this.stack = new Error().stack || "";
|
|
140431
140431
|
}
|
|
140432
|
+
}
|
|
140433
|
+
YAMLException.prototype = Object.create(Error.prototype);
|
|
140434
|
+
YAMLException.prototype.constructor = YAMLException;
|
|
140435
|
+
YAMLException.prototype.toString = function toString2(compact) {
|
|
140436
|
+
return this.name + ": " + formatError2(this, compact);
|
|
140432
140437
|
};
|
|
140438
|
+
module.exports = YAMLException;
|
|
140433
140439
|
});
|
|
140434
140440
|
|
|
140435
|
-
// ../../node_modules/@apidevtools/json-schema-ref-parser/
|
|
140436
|
-
var
|
|
140437
|
-
var
|
|
140438
|
-
|
|
140439
|
-
|
|
140440
|
-
var
|
|
140441
|
-
|
|
140442
|
-
|
|
140443
|
-
|
|
140444
|
-
|
|
140441
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/snippet.js
|
|
140442
|
+
var require_snippet2 = __commonJS((exports, module) => {
|
|
140443
|
+
var common2 = require_common6();
|
|
140444
|
+
function getLine(buffer2, lineStart, lineEnd, position, maxLineLength) {
|
|
140445
|
+
var head = "";
|
|
140446
|
+
var tail = "";
|
|
140447
|
+
var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
|
|
140448
|
+
if (position - lineStart > maxHalfLength) {
|
|
140449
|
+
head = " ... ";
|
|
140450
|
+
lineStart = position - maxHalfLength + head.length;
|
|
140445
140451
|
}
|
|
140446
|
-
|
|
140447
|
-
|
|
140448
|
-
|
|
140449
|
-
|
|
140450
|
-
|
|
140451
|
-
|
|
140452
|
-
|
|
140453
|
-
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
140454
|
-
} : function(o5, v10) {
|
|
140455
|
-
o5["default"] = v10;
|
|
140456
|
-
});
|
|
140457
|
-
var __importStar = exports && exports.__importStar || function() {
|
|
140458
|
-
var ownKeys = function(o5) {
|
|
140459
|
-
ownKeys = Object.getOwnPropertyNames || function(o7) {
|
|
140460
|
-
var ar9 = [];
|
|
140461
|
-
for (var k9 in o7)
|
|
140462
|
-
if (Object.prototype.hasOwnProperty.call(o7, k9))
|
|
140463
|
-
ar9[ar9.length] = k9;
|
|
140464
|
-
return ar9;
|
|
140465
|
-
};
|
|
140466
|
-
return ownKeys(o5);
|
|
140467
|
-
};
|
|
140468
|
-
return function(mod) {
|
|
140469
|
-
if (mod && mod.__esModule)
|
|
140470
|
-
return mod;
|
|
140471
|
-
var result = {};
|
|
140472
|
-
if (mod != null) {
|
|
140473
|
-
for (var k9 = ownKeys(mod), i5 = 0;i5 < k9.length; i5++)
|
|
140474
|
-
if (k9[i5] !== "default")
|
|
140475
|
-
__createBinding(result, mod, k9[i5]);
|
|
140476
|
-
}
|
|
140477
|
-
__setModuleDefault(result, mod);
|
|
140478
|
-
return result;
|
|
140452
|
+
if (lineEnd - position > maxHalfLength) {
|
|
140453
|
+
tail = " ...";
|
|
140454
|
+
lineEnd = position + maxHalfLength - tail.length;
|
|
140455
|
+
}
|
|
140456
|
+
return {
|
|
140457
|
+
str: head + buffer2.slice(lineStart, lineEnd).replace(/\t/g, "→") + tail,
|
|
140458
|
+
pos: position - lineStart + head.length
|
|
140479
140459
|
};
|
|
140480
|
-
}
|
|
140481
|
-
|
|
140482
|
-
return
|
|
140483
|
-
}
|
|
140484
|
-
|
|
140485
|
-
|
|
140486
|
-
|
|
140487
|
-
|
|
140488
|
-
|
|
140489
|
-
|
|
140490
|
-
|
|
140491
|
-
|
|
140492
|
-
|
|
140493
|
-
|
|
140494
|
-
|
|
140495
|
-
|
|
140496
|
-
|
|
140497
|
-
|
|
140498
|
-
|
|
140499
|
-
|
|
140500
|
-
|
|
140501
|
-
|
|
140502
|
-
|
|
140503
|
-
|
|
140504
|
-
|
|
140460
|
+
}
|
|
140461
|
+
function padStart(string4, max) {
|
|
140462
|
+
return common2.repeat(" ", max - string4.length) + string4;
|
|
140463
|
+
}
|
|
140464
|
+
function makeSnippet(mark, options8) {
|
|
140465
|
+
options8 = Object.create(options8 || null);
|
|
140466
|
+
if (!mark.buffer)
|
|
140467
|
+
return null;
|
|
140468
|
+
if (!options8.maxLength)
|
|
140469
|
+
options8.maxLength = 79;
|
|
140470
|
+
if (typeof options8.indent !== "number")
|
|
140471
|
+
options8.indent = 1;
|
|
140472
|
+
if (typeof options8.linesBefore !== "number")
|
|
140473
|
+
options8.linesBefore = 3;
|
|
140474
|
+
if (typeof options8.linesAfter !== "number")
|
|
140475
|
+
options8.linesAfter = 2;
|
|
140476
|
+
var re9 = /\r?\n|\r|\0/g;
|
|
140477
|
+
var lineStarts = [0];
|
|
140478
|
+
var lineEnds = [];
|
|
140479
|
+
var match;
|
|
140480
|
+
var foundLineNo = -1;
|
|
140481
|
+
while (match = re9.exec(mark.buffer)) {
|
|
140482
|
+
lineEnds.push(match.index);
|
|
140483
|
+
lineStarts.push(match.index + match[0].length);
|
|
140484
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
140485
|
+
foundLineNo = lineStarts.length - 2;
|
|
140505
140486
|
}
|
|
140506
140487
|
}
|
|
140507
|
-
|
|
140488
|
+
if (foundLineNo < 0)
|
|
140489
|
+
foundLineNo = lineStarts.length - 1;
|
|
140490
|
+
var result = "", i5, line3;
|
|
140491
|
+
var lineNoLength = Math.min(mark.line + options8.linesAfter, lineEnds.length).toString().length;
|
|
140492
|
+
var maxLineLength = options8.maxLength - (options8.indent + lineNoLength + 3);
|
|
140493
|
+
for (i5 = 1;i5 <= options8.linesBefore; i5++) {
|
|
140494
|
+
if (foundLineNo - i5 < 0)
|
|
140495
|
+
break;
|
|
140496
|
+
line3 = getLine(mark.buffer, lineStarts[foundLineNo - i5], lineEnds[foundLineNo - i5], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i5]), maxLineLength);
|
|
140497
|
+
result = common2.repeat(" ", options8.indent) + padStart((mark.line - i5 + 1).toString(), lineNoLength) + " | " + line3.str + `
|
|
140498
|
+
` + result;
|
|
140499
|
+
}
|
|
140500
|
+
line3 = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
140501
|
+
result += common2.repeat(" ", options8.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line3.str + `
|
|
140502
|
+
`;
|
|
140503
|
+
result += common2.repeat("-", options8.indent + lineNoLength + 3 + line3.pos) + "^" + `
|
|
140504
|
+
`;
|
|
140505
|
+
for (i5 = 1;i5 <= options8.linesAfter; i5++) {
|
|
140506
|
+
if (foundLineNo + i5 >= lineEnds.length)
|
|
140507
|
+
break;
|
|
140508
|
+
line3 = getLine(mark.buffer, lineStarts[foundLineNo + i5], lineEnds[foundLineNo + i5], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i5]), maxLineLength);
|
|
140509
|
+
result += common2.repeat(" ", options8.indent) + padStart((mark.line + i5 + 1).toString(), lineNoLength) + " | " + line3.str + `
|
|
140510
|
+
`;
|
|
140511
|
+
}
|
|
140512
|
+
return result.replace(/\n$/, "");
|
|
140513
|
+
}
|
|
140514
|
+
module.exports = makeSnippet;
|
|
140508
140515
|
});
|
|
140509
140516
|
|
|
140510
|
-
// ../../node_modules/@apidevtools/json-schema-ref-parser/
|
|
140511
|
-
var
|
|
140512
|
-
var
|
|
140513
|
-
|
|
140514
|
-
|
|
140515
|
-
|
|
140516
|
-
|
|
140517
|
-
|
|
140518
|
-
|
|
140519
|
-
|
|
140517
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type.js
|
|
140518
|
+
var require_type3 = __commonJS((exports, module) => {
|
|
140519
|
+
var YAMLException = require_exception3();
|
|
140520
|
+
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
140521
|
+
"kind",
|
|
140522
|
+
"multi",
|
|
140523
|
+
"resolve",
|
|
140524
|
+
"construct",
|
|
140525
|
+
"instanceOf",
|
|
140526
|
+
"predicate",
|
|
140527
|
+
"represent",
|
|
140528
|
+
"representName",
|
|
140529
|
+
"defaultStyle",
|
|
140530
|
+
"styleAliases"
|
|
140531
|
+
];
|
|
140532
|
+
var YAML_NODE_KINDS = [
|
|
140533
|
+
"scalar",
|
|
140534
|
+
"sequence",
|
|
140535
|
+
"mapping"
|
|
140536
|
+
];
|
|
140537
|
+
function compileStyleAliases(map2) {
|
|
140538
|
+
var result = {};
|
|
140539
|
+
if (map2 !== null) {
|
|
140540
|
+
Object.keys(map2).forEach(function(style) {
|
|
140541
|
+
map2[style].forEach(function(alias) {
|
|
140542
|
+
result[String(alias)] = style;
|
|
140543
|
+
});
|
|
140544
|
+
});
|
|
140520
140545
|
}
|
|
140521
|
-
|
|
140522
|
-
}
|
|
140523
|
-
|
|
140524
|
-
|
|
140525
|
-
|
|
140526
|
-
|
|
140527
|
-
|
|
140528
|
-
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
140529
|
-
} : function(o5, v10) {
|
|
140530
|
-
o5["default"] = v10;
|
|
140531
|
-
});
|
|
140532
|
-
var __importStar = exports && exports.__importStar || function() {
|
|
140533
|
-
var ownKeys = function(o5) {
|
|
140534
|
-
ownKeys = Object.getOwnPropertyNames || function(o7) {
|
|
140535
|
-
var ar9 = [];
|
|
140536
|
-
for (var k9 in o7)
|
|
140537
|
-
if (Object.prototype.hasOwnProperty.call(o7, k9))
|
|
140538
|
-
ar9[ar9.length] = k9;
|
|
140539
|
-
return ar9;
|
|
140540
|
-
};
|
|
140541
|
-
return ownKeys(o5);
|
|
140542
|
-
};
|
|
140543
|
-
return function(mod) {
|
|
140544
|
-
if (mod && mod.__esModule)
|
|
140545
|
-
return mod;
|
|
140546
|
-
var result = {};
|
|
140547
|
-
if (mod != null) {
|
|
140548
|
-
for (var k9 = ownKeys(mod), i5 = 0;i5 < k9.length; i5++)
|
|
140549
|
-
if (k9[i5] !== "default")
|
|
140550
|
-
__createBinding(result, mod, k9[i5]);
|
|
140546
|
+
return result;
|
|
140547
|
+
}
|
|
140548
|
+
function Type(tag, options8) {
|
|
140549
|
+
options8 = options8 || {};
|
|
140550
|
+
Object.keys(options8).forEach(function(name2) {
|
|
140551
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name2) === -1) {
|
|
140552
|
+
throw new YAMLException('Unknown option "' + name2 + '" is met in definition of "' + tag + '" YAML type.');
|
|
140551
140553
|
}
|
|
140552
|
-
|
|
140553
|
-
|
|
140554
|
+
});
|
|
140555
|
+
this.options = options8;
|
|
140556
|
+
this.tag = tag;
|
|
140557
|
+
this.kind = options8["kind"] || null;
|
|
140558
|
+
this.resolve = options8["resolve"] || function() {
|
|
140559
|
+
return true;
|
|
140554
140560
|
};
|
|
140555
|
-
|
|
140556
|
-
|
|
140557
|
-
|
|
140558
|
-
|
|
140559
|
-
|
|
140560
|
-
|
|
140561
|
-
|
|
140562
|
-
|
|
140563
|
-
|
|
140564
|
-
|
|
140565
|
-
|
|
140566
|
-
|
|
140567
|
-
return url3.isHttp(file2.url);
|
|
140568
|
-
},
|
|
140569
|
-
read(file2) {
|
|
140570
|
-
const u4 = url3.parse(file2.url);
|
|
140571
|
-
if (typeof window !== "undefined" && !u4.protocol) {
|
|
140572
|
-
u4.protocol = url3.parse(location.href).protocol;
|
|
140573
|
-
}
|
|
140574
|
-
return download(u4, this);
|
|
140561
|
+
this.construct = options8["construct"] || function(data) {
|
|
140562
|
+
return data;
|
|
140563
|
+
};
|
|
140564
|
+
this.instanceOf = options8["instanceOf"] || null;
|
|
140565
|
+
this.predicate = options8["predicate"] || null;
|
|
140566
|
+
this.represent = options8["represent"] || null;
|
|
140567
|
+
this.representName = options8["representName"] || null;
|
|
140568
|
+
this.defaultStyle = options8["defaultStyle"] || null;
|
|
140569
|
+
this.multi = options8["multi"] || false;
|
|
140570
|
+
this.styleAliases = compileStyleAliases(options8["styleAliases"] || null);
|
|
140571
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
140572
|
+
throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
140575
140573
|
}
|
|
140576
|
-
}
|
|
140577
|
-
|
|
140578
|
-
|
|
140579
|
-
|
|
140580
|
-
|
|
140581
|
-
|
|
140582
|
-
|
|
140583
|
-
|
|
140584
|
-
|
|
140585
|
-
|
|
140586
|
-
|
|
140587
|
-
|
|
140588
|
-
|
|
140589
|
-
|
|
140590
|
-
|
|
140591
|
-
} else if (!("location" in res.headers) || !res.headers.location) {
|
|
140592
|
-
throw (0, ono_1.ono)({ status: res.status }, `HTTP ${res.status} redirect with no location header`);
|
|
140593
|
-
} else {
|
|
140594
|
-
const redirectTo = url3.resolve(u4.href, res.headers.location);
|
|
140595
|
-
return download(redirectTo, httpOptions, redirects);
|
|
140574
|
+
}
|
|
140575
|
+
module.exports = Type;
|
|
140576
|
+
});
|
|
140577
|
+
|
|
140578
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/schema.js
|
|
140579
|
+
var require_schema6 = __commonJS((exports, module) => {
|
|
140580
|
+
var YAMLException = require_exception3();
|
|
140581
|
+
var Type = require_type3();
|
|
140582
|
+
function compileList(schema9, name2) {
|
|
140583
|
+
var result = [];
|
|
140584
|
+
schema9[name2].forEach(function(currentType) {
|
|
140585
|
+
var newIndex = result.length;
|
|
140586
|
+
result.forEach(function(previousType, previousIndex) {
|
|
140587
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
140588
|
+
newIndex = previousIndex;
|
|
140596
140589
|
}
|
|
140590
|
+
});
|
|
140591
|
+
result[newIndex] = currentType;
|
|
140592
|
+
});
|
|
140593
|
+
return result;
|
|
140594
|
+
}
|
|
140595
|
+
function compileMap() {
|
|
140596
|
+
var result = {
|
|
140597
|
+
scalar: {},
|
|
140598
|
+
sequence: {},
|
|
140599
|
+
mapping: {},
|
|
140600
|
+
fallback: {},
|
|
140601
|
+
multi: {
|
|
140602
|
+
scalar: [],
|
|
140603
|
+
sequence: [],
|
|
140604
|
+
mapping: [],
|
|
140605
|
+
fallback: []
|
|
140606
|
+
}
|
|
140607
|
+
}, index, length;
|
|
140608
|
+
function collectType(type) {
|
|
140609
|
+
if (type.multi) {
|
|
140610
|
+
result.multi[type.kind].push(type);
|
|
140611
|
+
result.multi["fallback"].push(type);
|
|
140597
140612
|
} else {
|
|
140598
|
-
|
|
140599
|
-
const buf = await res.arrayBuffer();
|
|
140600
|
-
return Buffer.from(buf);
|
|
140601
|
-
}
|
|
140602
|
-
return Buffer.alloc(0);
|
|
140613
|
+
result[type.kind][type.tag] = result["fallback"][type.tag] = type;
|
|
140603
140614
|
}
|
|
140604
|
-
} catch (err) {
|
|
140605
|
-
throw new errors_js_1.ResolverError((0, ono_1.ono)(err, `Error downloading ${u4.href}`), u4.href);
|
|
140606
140615
|
}
|
|
140616
|
+
for (index = 0, length = arguments.length;index < length; index += 1) {
|
|
140617
|
+
arguments[index].forEach(collectType);
|
|
140618
|
+
}
|
|
140619
|
+
return result;
|
|
140607
140620
|
}
|
|
140608
|
-
|
|
140609
|
-
|
|
140610
|
-
|
|
140611
|
-
|
|
140612
|
-
|
|
140613
|
-
|
|
140621
|
+
function Schema3(definition) {
|
|
140622
|
+
return this.extend(definition);
|
|
140623
|
+
}
|
|
140624
|
+
Schema3.prototype.extend = function extend2(definition) {
|
|
140625
|
+
var implicit = [];
|
|
140626
|
+
var explicit = [];
|
|
140627
|
+
if (definition instanceof Type) {
|
|
140628
|
+
explicit.push(definition);
|
|
140629
|
+
} else if (Array.isArray(definition)) {
|
|
140630
|
+
explicit = explicit.concat(definition);
|
|
140631
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
140632
|
+
if (definition.implicit)
|
|
140633
|
+
implicit = implicit.concat(definition.implicit);
|
|
140634
|
+
if (definition.explicit)
|
|
140635
|
+
explicit = explicit.concat(definition.explicit);
|
|
140636
|
+
} else {
|
|
140637
|
+
throw new YAMLException("Schema.extend argument should be a Type, [ Type ], " + "or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
140614
140638
|
}
|
|
140615
|
-
|
|
140616
|
-
|
|
140617
|
-
|
|
140618
|
-
|
|
140619
|
-
|
|
140639
|
+
implicit.forEach(function(type) {
|
|
140640
|
+
if (!(type instanceof Type)) {
|
|
140641
|
+
throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
140642
|
+
}
|
|
140643
|
+
if (type.loadKind && type.loadKind !== "scalar") {
|
|
140644
|
+
throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
140645
|
+
}
|
|
140646
|
+
if (type.multi) {
|
|
140647
|
+
throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
140648
|
+
}
|
|
140620
140649
|
});
|
|
140621
|
-
|
|
140622
|
-
|
|
140650
|
+
explicit.forEach(function(type) {
|
|
140651
|
+
if (!(type instanceof Type)) {
|
|
140652
|
+
throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
140653
|
+
}
|
|
140654
|
+
});
|
|
140655
|
+
var result = Object.create(Schema3.prototype);
|
|
140656
|
+
result.implicit = (this.implicit || []).concat(implicit);
|
|
140657
|
+
result.explicit = (this.explicit || []).concat(explicit);
|
|
140658
|
+
result.compiledImplicit = compileList(result, "implicit");
|
|
140659
|
+
result.compiledExplicit = compileList(result, "explicit");
|
|
140660
|
+
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
140661
|
+
return result;
|
|
140662
|
+
};
|
|
140663
|
+
module.exports = Schema3;
|
|
140664
|
+
});
|
|
140665
|
+
|
|
140666
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/str.js
|
|
140667
|
+
var require_str3 = __commonJS((exports, module) => {
|
|
140668
|
+
var Type = require_type3();
|
|
140669
|
+
module.exports = new Type("tag:yaml.org,2002:str", {
|
|
140670
|
+
kind: "scalar",
|
|
140671
|
+
construct: function(data) {
|
|
140672
|
+
return data !== null ? data : "";
|
|
140623
140673
|
}
|
|
140624
|
-
|
|
140625
|
-
}
|
|
140674
|
+
});
|
|
140626
140675
|
});
|
|
140627
140676
|
|
|
140628
|
-
// ../../node_modules/@apidevtools/json-schema-ref-parser/
|
|
140629
|
-
var
|
|
140630
|
-
var
|
|
140631
|
-
|
|
140632
|
-
|
|
140633
|
-
|
|
140634
|
-
|
|
140635
|
-
|
|
140636
|
-
|
|
140637
|
-
|
|
140638
|
-
|
|
140639
|
-
|
|
140640
|
-
|
|
140641
|
-
var
|
|
140642
|
-
|
|
140643
|
-
|
|
140644
|
-
|
|
140645
|
-
|
|
140646
|
-
|
|
140647
|
-
|
|
140677
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/seq.js
|
|
140678
|
+
var require_seq4 = __commonJS((exports, module) => {
|
|
140679
|
+
var Type = require_type3();
|
|
140680
|
+
module.exports = new Type("tag:yaml.org,2002:seq", {
|
|
140681
|
+
kind: "sequence",
|
|
140682
|
+
construct: function(data) {
|
|
140683
|
+
return data !== null ? data : [];
|
|
140684
|
+
}
|
|
140685
|
+
});
|
|
140686
|
+
});
|
|
140687
|
+
|
|
140688
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/map.js
|
|
140689
|
+
var require_map5 = __commonJS((exports, module) => {
|
|
140690
|
+
var Type = require_type3();
|
|
140691
|
+
module.exports = new Type("tag:yaml.org,2002:map", {
|
|
140692
|
+
kind: "mapping",
|
|
140693
|
+
construct: function(data) {
|
|
140694
|
+
return data !== null ? data : {};
|
|
140695
|
+
}
|
|
140696
|
+
});
|
|
140697
|
+
});
|
|
140698
|
+
|
|
140699
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/schema/failsafe.js
|
|
140700
|
+
var require_failsafe3 = __commonJS((exports, module) => {
|
|
140701
|
+
var Schema3 = require_schema6();
|
|
140702
|
+
module.exports = new Schema3({
|
|
140703
|
+
explicit: [
|
|
140704
|
+
require_str3(),
|
|
140705
|
+
require_seq4(),
|
|
140706
|
+
require_map5()
|
|
140707
|
+
]
|
|
140708
|
+
});
|
|
140709
|
+
});
|
|
140710
|
+
|
|
140711
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/null.js
|
|
140712
|
+
var require_null4 = __commonJS((exports, module) => {
|
|
140713
|
+
var Type = require_type3();
|
|
140714
|
+
function resolveYamlNull(data) {
|
|
140715
|
+
if (data === null)
|
|
140716
|
+
return true;
|
|
140717
|
+
var max = data.length;
|
|
140718
|
+
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
140719
|
+
}
|
|
140720
|
+
function constructYamlNull() {
|
|
140721
|
+
return null;
|
|
140722
|
+
}
|
|
140723
|
+
function isNull(object2) {
|
|
140724
|
+
return object2 === null;
|
|
140725
|
+
}
|
|
140726
|
+
module.exports = new Type("tag:yaml.org,2002:null", {
|
|
140727
|
+
kind: "scalar",
|
|
140728
|
+
resolve: resolveYamlNull,
|
|
140729
|
+
construct: constructYamlNull,
|
|
140730
|
+
predicate: isNull,
|
|
140731
|
+
represent: {
|
|
140732
|
+
canonical: function() {
|
|
140733
|
+
return "~";
|
|
140648
140734
|
},
|
|
140649
|
-
|
|
140650
|
-
|
|
140651
|
-
http: { ...http_js_1.default },
|
|
140652
|
-
external: true
|
|
140735
|
+
lowercase: function() {
|
|
140736
|
+
return "null";
|
|
140653
140737
|
},
|
|
140654
|
-
|
|
140655
|
-
|
|
140656
|
-
circular: true,
|
|
140657
|
-
excludedPathMatcher: () => false,
|
|
140658
|
-
referenceResolution: "relative"
|
|
140738
|
+
uppercase: function() {
|
|
140739
|
+
return "NULL";
|
|
140659
140740
|
},
|
|
140660
|
-
|
|
140661
|
-
|
|
140662
|
-
|
|
140663
|
-
|
|
140664
|
-
|
|
140665
|
-
var getNewOptions = (options8) => {
|
|
140666
|
-
const newOptions = (0, exports.getJsonSchemaRefParserDefaultOptions)();
|
|
140667
|
-
if (options8) {
|
|
140668
|
-
merge3(newOptions, options8);
|
|
140669
|
-
}
|
|
140670
|
-
return newOptions;
|
|
140671
|
-
};
|
|
140672
|
-
exports.getNewOptions = getNewOptions;
|
|
140673
|
-
function merge3(target, source2) {
|
|
140674
|
-
if (isMergeable(source2)) {
|
|
140675
|
-
const keys = Object.keys(source2).filter((key2) => !["__proto__", "constructor", "prototype"].includes(key2));
|
|
140676
|
-
for (let i5 = 0;i5 < keys.length; i5++) {
|
|
140677
|
-
const key2 = keys[i5];
|
|
140678
|
-
const sourceSetting = source2[key2];
|
|
140679
|
-
const targetSetting = target[key2];
|
|
140680
|
-
if (isMergeable(sourceSetting)) {
|
|
140681
|
-
target[key2] = merge3(targetSetting || {}, sourceSetting);
|
|
140682
|
-
} else if (sourceSetting !== undefined) {
|
|
140683
|
-
target[key2] = sourceSetting;
|
|
140684
|
-
}
|
|
140741
|
+
camelcase: function() {
|
|
140742
|
+
return "Null";
|
|
140743
|
+
},
|
|
140744
|
+
empty: function() {
|
|
140745
|
+
return "";
|
|
140685
140746
|
}
|
|
140686
|
-
}
|
|
140687
|
-
|
|
140747
|
+
},
|
|
140748
|
+
defaultStyle: "lowercase"
|
|
140749
|
+
});
|
|
140750
|
+
});
|
|
140751
|
+
|
|
140752
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/bool.js
|
|
140753
|
+
var require_bool5 = __commonJS((exports, module) => {
|
|
140754
|
+
var Type = require_type3();
|
|
140755
|
+
function resolveYamlBoolean(data) {
|
|
140756
|
+
if (data === null)
|
|
140757
|
+
return false;
|
|
140758
|
+
var max = data.length;
|
|
140759
|
+
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
140688
140760
|
}
|
|
140689
|
-
function
|
|
140690
|
-
return
|
|
140761
|
+
function constructYamlBoolean(data) {
|
|
140762
|
+
return data === "true" || data === "True" || data === "TRUE";
|
|
140763
|
+
}
|
|
140764
|
+
function isBoolean(object2) {
|
|
140765
|
+
return Object.prototype.toString.call(object2) === "[object Boolean]";
|
|
140691
140766
|
}
|
|
140767
|
+
module.exports = new Type("tag:yaml.org,2002:bool", {
|
|
140768
|
+
kind: "scalar",
|
|
140769
|
+
resolve: resolveYamlBoolean,
|
|
140770
|
+
construct: constructYamlBoolean,
|
|
140771
|
+
predicate: isBoolean,
|
|
140772
|
+
represent: {
|
|
140773
|
+
lowercase: function(object2) {
|
|
140774
|
+
return object2 ? "true" : "false";
|
|
140775
|
+
},
|
|
140776
|
+
uppercase: function(object2) {
|
|
140777
|
+
return object2 ? "TRUE" : "FALSE";
|
|
140778
|
+
},
|
|
140779
|
+
camelcase: function(object2) {
|
|
140780
|
+
return object2 ? "True" : "False";
|
|
140781
|
+
}
|
|
140782
|
+
},
|
|
140783
|
+
defaultStyle: "lowercase"
|
|
140784
|
+
});
|
|
140692
140785
|
});
|
|
140693
140786
|
|
|
140694
|
-
// ../../node_modules/@apidevtools/json-schema-ref-parser/
|
|
140695
|
-
var
|
|
140696
|
-
|
|
140697
|
-
|
|
140698
|
-
|
|
140699
|
-
|
|
140700
|
-
|
|
140701
|
-
|
|
140702
|
-
|
|
140703
|
-
|
|
140704
|
-
|
|
140705
|
-
|
|
140706
|
-
|
|
140787
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/int.js
|
|
140788
|
+
var require_int5 = __commonJS((exports, module) => {
|
|
140789
|
+
var common2 = require_common6();
|
|
140790
|
+
var Type = require_type3();
|
|
140791
|
+
function isHexCode(c8) {
|
|
140792
|
+
return 48 <= c8 && c8 <= 57 || 65 <= c8 && c8 <= 70 || 97 <= c8 && c8 <= 102;
|
|
140793
|
+
}
|
|
140794
|
+
function isOctCode(c8) {
|
|
140795
|
+
return 48 <= c8 && c8 <= 55;
|
|
140796
|
+
}
|
|
140797
|
+
function isDecCode(c8) {
|
|
140798
|
+
return 48 <= c8 && c8 <= 57;
|
|
140799
|
+
}
|
|
140800
|
+
function resolveYamlInteger(data) {
|
|
140801
|
+
if (data === null)
|
|
140802
|
+
return false;
|
|
140803
|
+
var max = data.length, index = 0, hasDigits = false, ch2;
|
|
140804
|
+
if (!max)
|
|
140805
|
+
return false;
|
|
140806
|
+
ch2 = data[index];
|
|
140807
|
+
if (ch2 === "-" || ch2 === "+") {
|
|
140808
|
+
ch2 = data[++index];
|
|
140707
140809
|
}
|
|
140708
|
-
if (
|
|
140709
|
-
|
|
140710
|
-
|
|
140711
|
-
|
|
140712
|
-
|
|
140713
|
-
|
|
140714
|
-
|
|
140715
|
-
|
|
140810
|
+
if (ch2 === "0") {
|
|
140811
|
+
if (index + 1 === max)
|
|
140812
|
+
return true;
|
|
140813
|
+
ch2 = data[++index];
|
|
140814
|
+
if (ch2 === "b") {
|
|
140815
|
+
index++;
|
|
140816
|
+
for (;index < max; index++) {
|
|
140817
|
+
ch2 = data[index];
|
|
140818
|
+
if (ch2 === "_")
|
|
140819
|
+
continue;
|
|
140820
|
+
if (ch2 !== "0" && ch2 !== "1")
|
|
140821
|
+
return false;
|
|
140822
|
+
hasDigits = true;
|
|
140823
|
+
}
|
|
140824
|
+
return hasDigits && ch2 !== "_";
|
|
140825
|
+
}
|
|
140826
|
+
if (ch2 === "x") {
|
|
140827
|
+
index++;
|
|
140828
|
+
for (;index < max; index++) {
|
|
140829
|
+
ch2 = data[index];
|
|
140830
|
+
if (ch2 === "_")
|
|
140831
|
+
continue;
|
|
140832
|
+
if (!isHexCode(data.charCodeAt(index)))
|
|
140833
|
+
return false;
|
|
140834
|
+
hasDigits = true;
|
|
140835
|
+
}
|
|
140836
|
+
return hasDigits && ch2 !== "_";
|
|
140837
|
+
}
|
|
140838
|
+
if (ch2 === "o") {
|
|
140839
|
+
index++;
|
|
140840
|
+
for (;index < max; index++) {
|
|
140841
|
+
ch2 = data[index];
|
|
140842
|
+
if (ch2 === "_")
|
|
140843
|
+
continue;
|
|
140844
|
+
if (!isOctCode(data.charCodeAt(index)))
|
|
140845
|
+
return false;
|
|
140846
|
+
hasDigits = true;
|
|
140847
|
+
}
|
|
140848
|
+
return hasDigits && ch2 !== "_";
|
|
140716
140849
|
}
|
|
140717
|
-
} else {
|
|
140718
|
-
path18 = "";
|
|
140719
|
-
schema9 = args[0];
|
|
140720
|
-
options8 = args[1];
|
|
140721
|
-
}
|
|
140722
|
-
try {
|
|
140723
|
-
options8 = (0, options_js_1.getNewOptions)(options8);
|
|
140724
|
-
} catch (e8) {
|
|
140725
|
-
console.error(`JSON Schema Ref Parser: Error normalizing options: ${e8}`);
|
|
140726
140850
|
}
|
|
140727
|
-
if (
|
|
140728
|
-
|
|
140851
|
+
if (ch2 === "_")
|
|
140852
|
+
return false;
|
|
140853
|
+
for (;index < max; index++) {
|
|
140854
|
+
ch2 = data[index];
|
|
140855
|
+
if (ch2 === "_")
|
|
140856
|
+
continue;
|
|
140857
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
140858
|
+
return false;
|
|
140859
|
+
}
|
|
140860
|
+
hasDigits = true;
|
|
140729
140861
|
}
|
|
140730
|
-
|
|
140731
|
-
|
|
140732
|
-
|
|
140733
|
-
options: options8,
|
|
140734
|
-
callback
|
|
140735
|
-
};
|
|
140862
|
+
if (!hasDigits || ch2 === "_")
|
|
140863
|
+
return false;
|
|
140864
|
+
return true;
|
|
140736
140865
|
}
|
|
140737
|
-
|
|
140738
|
-
|
|
140739
|
-
|
|
140740
|
-
|
|
140741
|
-
var require_resolve_external = __commonJS((exports) => {
|
|
140742
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o5, m7, k9, k24) {
|
|
140743
|
-
if (k24 === undefined)
|
|
140744
|
-
k24 = k9;
|
|
140745
|
-
var desc2 = Object.getOwnPropertyDescriptor(m7, k9);
|
|
140746
|
-
if (!desc2 || ("get" in desc2 ? !m7.__esModule : desc2.writable || desc2.configurable)) {
|
|
140747
|
-
desc2 = { enumerable: true, get: function() {
|
|
140748
|
-
return m7[k9];
|
|
140749
|
-
} };
|
|
140866
|
+
function constructYamlInteger(data) {
|
|
140867
|
+
var value = data, sign2 = 1, ch2;
|
|
140868
|
+
if (value.indexOf("_") !== -1) {
|
|
140869
|
+
value = value.replace(/_/g, "");
|
|
140750
140870
|
}
|
|
140751
|
-
|
|
140752
|
-
|
|
140753
|
-
|
|
140754
|
-
|
|
140755
|
-
|
|
140756
|
-
|
|
140757
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o5, v10) {
|
|
140758
|
-
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
140759
|
-
} : function(o5, v10) {
|
|
140760
|
-
o5["default"] = v10;
|
|
140761
|
-
});
|
|
140762
|
-
var __importStar = exports && exports.__importStar || function() {
|
|
140763
|
-
var ownKeys = function(o5) {
|
|
140764
|
-
ownKeys = Object.getOwnPropertyNames || function(o7) {
|
|
140765
|
-
var ar9 = [];
|
|
140766
|
-
for (var k9 in o7)
|
|
140767
|
-
if (Object.prototype.hasOwnProperty.call(o7, k9))
|
|
140768
|
-
ar9[ar9.length] = k9;
|
|
140769
|
-
return ar9;
|
|
140770
|
-
};
|
|
140771
|
-
return ownKeys(o5);
|
|
140772
|
-
};
|
|
140773
|
-
return function(mod) {
|
|
140774
|
-
if (mod && mod.__esModule)
|
|
140775
|
-
return mod;
|
|
140776
|
-
var result = {};
|
|
140777
|
-
if (mod != null) {
|
|
140778
|
-
for (var k9 = ownKeys(mod), i5 = 0;i5 < k9.length; i5++)
|
|
140779
|
-
if (k9[i5] !== "default")
|
|
140780
|
-
__createBinding(result, mod, k9[i5]);
|
|
140781
|
-
}
|
|
140782
|
-
__setModuleDefault(result, mod);
|
|
140783
|
-
return result;
|
|
140784
|
-
};
|
|
140785
|
-
}();
|
|
140786
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
140787
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
140788
|
-
};
|
|
140789
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
140790
|
-
var ref_js_1 = __importDefault(require_ref());
|
|
140791
|
-
var pointer_js_1 = __importDefault(require_pointer());
|
|
140792
|
-
var parse_js_1 = __importDefault(require_parse6());
|
|
140793
|
-
var url3 = __importStar(require_url());
|
|
140794
|
-
var errors_js_1 = require_errors2();
|
|
140795
|
-
function resolveExternal(parser2, options8) {
|
|
140796
|
-
if (!options8.resolve?.external) {
|
|
140797
|
-
return Promise.resolve();
|
|
140871
|
+
ch2 = value[0];
|
|
140872
|
+
if (ch2 === "-" || ch2 === "+") {
|
|
140873
|
+
if (ch2 === "-")
|
|
140874
|
+
sign2 = -1;
|
|
140875
|
+
value = value.slice(1);
|
|
140876
|
+
ch2 = value[0];
|
|
140798
140877
|
}
|
|
140799
|
-
|
|
140800
|
-
|
|
140801
|
-
|
|
140802
|
-
|
|
140803
|
-
|
|
140878
|
+
if (value === "0")
|
|
140879
|
+
return 0;
|
|
140880
|
+
if (ch2 === "0") {
|
|
140881
|
+
if (value[1] === "b")
|
|
140882
|
+
return sign2 * parseInt(value.slice(2), 2);
|
|
140883
|
+
if (value[1] === "x")
|
|
140884
|
+
return sign2 * parseInt(value.slice(2), 16);
|
|
140885
|
+
if (value[1] === "o")
|
|
140886
|
+
return sign2 * parseInt(value.slice(2), 8);
|
|
140804
140887
|
}
|
|
140888
|
+
return sign2 * parseInt(value, 10);
|
|
140805
140889
|
}
|
|
140806
|
-
function
|
|
140807
|
-
|
|
140808
|
-
|
|
140809
|
-
|
|
140810
|
-
|
|
140811
|
-
|
|
140812
|
-
|
|
140813
|
-
|
|
140814
|
-
|
|
140815
|
-
|
|
140816
|
-
|
|
140817
|
-
|
|
140818
|
-
|
|
140890
|
+
function isInteger(object2) {
|
|
140891
|
+
return Object.prototype.toString.call(object2) === "[object Number]" && (object2 % 1 === 0 && !common2.isNegativeZero(object2));
|
|
140892
|
+
}
|
|
140893
|
+
module.exports = new Type("tag:yaml.org,2002:int", {
|
|
140894
|
+
kind: "scalar",
|
|
140895
|
+
resolve: resolveYamlInteger,
|
|
140896
|
+
construct: constructYamlInteger,
|
|
140897
|
+
predicate: isInteger,
|
|
140898
|
+
represent: {
|
|
140899
|
+
binary: function(obj) {
|
|
140900
|
+
return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
|
|
140901
|
+
},
|
|
140902
|
+
octal: function(obj) {
|
|
140903
|
+
return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1);
|
|
140904
|
+
},
|
|
140905
|
+
decimal: function(obj) {
|
|
140906
|
+
return obj.toString(10);
|
|
140907
|
+
},
|
|
140908
|
+
hexadecimal: function(obj) {
|
|
140909
|
+
return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
|
|
140819
140910
|
}
|
|
140911
|
+
},
|
|
140912
|
+
defaultStyle: "decimal",
|
|
140913
|
+
styleAliases: {
|
|
140914
|
+
binary: [2, "bin"],
|
|
140915
|
+
octal: [8, "oct"],
|
|
140916
|
+
decimal: [10, "dec"],
|
|
140917
|
+
hexadecimal: [16, "hex"]
|
|
140820
140918
|
}
|
|
140821
|
-
|
|
140919
|
+
});
|
|
140920
|
+
});
|
|
140921
|
+
|
|
140922
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/float.js
|
|
140923
|
+
var require_float5 = __commonJS((exports, module) => {
|
|
140924
|
+
var common2 = require_common6();
|
|
140925
|
+
var Type = require_type3();
|
|
140926
|
+
var YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?" + "|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?" + "|[-+]?\\.(?:inf|Inf|INF)" + "|\\.(?:nan|NaN|NAN))$");
|
|
140927
|
+
function resolveYamlFloat(data) {
|
|
140928
|
+
if (data === null)
|
|
140929
|
+
return false;
|
|
140930
|
+
if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") {
|
|
140931
|
+
return false;
|
|
140932
|
+
}
|
|
140933
|
+
return true;
|
|
140822
140934
|
}
|
|
140823
|
-
|
|
140824
|
-
|
|
140825
|
-
|
|
140826
|
-
|
|
140827
|
-
|
|
140828
|
-
|
|
140829
|
-
return Promise.resolve(ref.value);
|
|
140935
|
+
function constructYamlFloat(data) {
|
|
140936
|
+
var value, sign2;
|
|
140937
|
+
value = data.replace(/_/g, "").toLowerCase();
|
|
140938
|
+
sign2 = value[0] === "-" ? -1 : 1;
|
|
140939
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
140940
|
+
value = value.slice(1);
|
|
140830
140941
|
}
|
|
140831
|
-
|
|
140832
|
-
|
|
140833
|
-
|
|
140834
|
-
return
|
|
140835
|
-
}
|
|
140836
|
-
|
|
140837
|
-
|
|
140942
|
+
if (value === ".inf") {
|
|
140943
|
+
return sign2 === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
140944
|
+
} else if (value === ".nan") {
|
|
140945
|
+
return NaN;
|
|
140946
|
+
}
|
|
140947
|
+
return sign2 * parseFloat(value, 10);
|
|
140948
|
+
}
|
|
140949
|
+
var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
140950
|
+
function representYamlFloat(object2, style) {
|
|
140951
|
+
var res;
|
|
140952
|
+
if (isNaN(object2)) {
|
|
140953
|
+
switch (style) {
|
|
140954
|
+
case "lowercase":
|
|
140955
|
+
return ".nan";
|
|
140956
|
+
case "uppercase":
|
|
140957
|
+
return ".NAN";
|
|
140958
|
+
case "camelcase":
|
|
140959
|
+
return ".NaN";
|
|
140838
140960
|
}
|
|
140839
|
-
|
|
140840
|
-
|
|
140841
|
-
|
|
140961
|
+
} else if (Number.POSITIVE_INFINITY === object2) {
|
|
140962
|
+
switch (style) {
|
|
140963
|
+
case "lowercase":
|
|
140964
|
+
return ".inf";
|
|
140965
|
+
case "uppercase":
|
|
140966
|
+
return ".INF";
|
|
140967
|
+
case "camelcase":
|
|
140968
|
+
return ".Inf";
|
|
140842
140969
|
}
|
|
140843
|
-
|
|
140970
|
+
} else if (Number.NEGATIVE_INFINITY === object2) {
|
|
140971
|
+
switch (style) {
|
|
140972
|
+
case "lowercase":
|
|
140973
|
+
return "-.inf";
|
|
140974
|
+
case "uppercase":
|
|
140975
|
+
return "-.INF";
|
|
140976
|
+
case "camelcase":
|
|
140977
|
+
return "-.Inf";
|
|
140978
|
+
}
|
|
140979
|
+
} else if (common2.isNegativeZero(object2)) {
|
|
140980
|
+
return "-0.0";
|
|
140844
140981
|
}
|
|
140982
|
+
res = object2.toString(10);
|
|
140983
|
+
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
140845
140984
|
}
|
|
140846
|
-
|
|
140985
|
+
function isFloat(object2) {
|
|
140986
|
+
return Object.prototype.toString.call(object2) === "[object Number]" && (object2 % 1 !== 0 || common2.isNegativeZero(object2));
|
|
140987
|
+
}
|
|
140988
|
+
module.exports = new Type("tag:yaml.org,2002:float", {
|
|
140989
|
+
kind: "scalar",
|
|
140990
|
+
resolve: resolveYamlFloat,
|
|
140991
|
+
construct: constructYamlFloat,
|
|
140992
|
+
predicate: isFloat,
|
|
140993
|
+
represent: representYamlFloat,
|
|
140994
|
+
defaultStyle: "lowercase"
|
|
140995
|
+
});
|
|
140847
140996
|
});
|
|
140848
140997
|
|
|
140849
|
-
// ../../node_modules/@apidevtools/json-schema-ref-parser/
|
|
140850
|
-
var
|
|
140851
|
-
|
|
140852
|
-
|
|
140853
|
-
|
|
140854
|
-
|
|
140855
|
-
|
|
140856
|
-
|
|
140857
|
-
|
|
140858
|
-
} };
|
|
140859
|
-
}
|
|
140860
|
-
Object.defineProperty(o5, k24, desc2);
|
|
140861
|
-
} : function(o5, m7, k9, k24) {
|
|
140862
|
-
if (k24 === undefined)
|
|
140863
|
-
k24 = k9;
|
|
140864
|
-
o5[k24] = m7[k9];
|
|
140865
|
-
});
|
|
140866
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o5, v10) {
|
|
140867
|
-
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
140868
|
-
} : function(o5, v10) {
|
|
140869
|
-
o5["default"] = v10;
|
|
140998
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/schema/json.js
|
|
140999
|
+
var require_json4 = __commonJS((exports, module) => {
|
|
141000
|
+
module.exports = require_failsafe3().extend({
|
|
141001
|
+
implicit: [
|
|
141002
|
+
require_null4(),
|
|
141003
|
+
require_bool5(),
|
|
141004
|
+
require_int5(),
|
|
141005
|
+
require_float5()
|
|
141006
|
+
]
|
|
140870
141007
|
});
|
|
140871
|
-
|
|
140872
|
-
|
|
140873
|
-
|
|
140874
|
-
|
|
140875
|
-
|
|
140876
|
-
|
|
140877
|
-
|
|
140878
|
-
|
|
140879
|
-
|
|
140880
|
-
return
|
|
140881
|
-
|
|
140882
|
-
|
|
140883
|
-
|
|
140884
|
-
|
|
140885
|
-
|
|
140886
|
-
|
|
140887
|
-
|
|
140888
|
-
|
|
140889
|
-
|
|
140890
|
-
|
|
140891
|
-
|
|
140892
|
-
|
|
140893
|
-
|
|
140894
|
-
|
|
140895
|
-
|
|
140896
|
-
|
|
140897
|
-
|
|
140898
|
-
|
|
140899
|
-
|
|
141008
|
+
});
|
|
141009
|
+
|
|
141010
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/timestamp.js
|
|
141011
|
+
var require_timestamp4 = __commonJS((exports, module) => {
|
|
141012
|
+
var Type = require_type3();
|
|
141013
|
+
var YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])" + "-([0-9][0-9])" + "-([0-9][0-9])$");
|
|
141014
|
+
var 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]))?))?$");
|
|
141015
|
+
function resolveYamlTimestamp(data) {
|
|
141016
|
+
if (data === null)
|
|
141017
|
+
return false;
|
|
141018
|
+
if (YAML_DATE_REGEXP.exec(data) !== null)
|
|
141019
|
+
return true;
|
|
141020
|
+
if (YAML_TIMESTAMP_REGEXP.exec(data) !== null)
|
|
141021
|
+
return true;
|
|
141022
|
+
return false;
|
|
141023
|
+
}
|
|
141024
|
+
function constructYamlTimestamp(data) {
|
|
141025
|
+
var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date5;
|
|
141026
|
+
match = YAML_DATE_REGEXP.exec(data);
|
|
141027
|
+
if (match === null)
|
|
141028
|
+
match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
141029
|
+
if (match === null)
|
|
141030
|
+
throw new Error("Date resolve error");
|
|
141031
|
+
year = +match[1];
|
|
141032
|
+
month = +match[2] - 1;
|
|
141033
|
+
day = +match[3];
|
|
141034
|
+
if (!match[4]) {
|
|
141035
|
+
return new Date(Date.UTC(year, month, day));
|
|
141036
|
+
}
|
|
141037
|
+
hour = +match[4];
|
|
141038
|
+
minute = +match[5];
|
|
141039
|
+
second = +match[6];
|
|
141040
|
+
if (match[7]) {
|
|
141041
|
+
fraction = match[7].slice(0, 3);
|
|
141042
|
+
while (fraction.length < 3) {
|
|
141043
|
+
fraction += "0";
|
|
141044
|
+
}
|
|
141045
|
+
fraction = +fraction;
|
|
141046
|
+
}
|
|
141047
|
+
if (match[9]) {
|
|
141048
|
+
tz_hour = +match[10];
|
|
141049
|
+
tz_minute = +(match[11] || 0);
|
|
141050
|
+
delta = (tz_hour * 60 + tz_minute) * 60000;
|
|
141051
|
+
if (match[9] === "-")
|
|
141052
|
+
delta = -delta;
|
|
141053
|
+
}
|
|
141054
|
+
date5 = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
141055
|
+
if (delta)
|
|
141056
|
+
date5.setTime(date5.getTime() - delta);
|
|
141057
|
+
return date5;
|
|
141058
|
+
}
|
|
141059
|
+
function representYamlTimestamp(object2) {
|
|
141060
|
+
return object2.toISOString();
|
|
141061
|
+
}
|
|
141062
|
+
module.exports = new Type("tag:yaml.org,2002:timestamp", {
|
|
141063
|
+
kind: "scalar",
|
|
141064
|
+
resolve: resolveYamlTimestamp,
|
|
141065
|
+
construct: constructYamlTimestamp,
|
|
141066
|
+
instanceOf: Date,
|
|
141067
|
+
represent: representYamlTimestamp
|
|
141068
|
+
});
|
|
141069
|
+
});
|
|
141070
|
+
|
|
141071
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/merge.js
|
|
141072
|
+
var require_merge6 = __commonJS((exports, module) => {
|
|
141073
|
+
var Type = require_type3();
|
|
141074
|
+
function resolveYamlMerge(data) {
|
|
141075
|
+
return data === "<<" || data === null;
|
|
141076
|
+
}
|
|
141077
|
+
module.exports = new Type("tag:yaml.org,2002:merge", {
|
|
141078
|
+
kind: "scalar",
|
|
141079
|
+
resolve: resolveYamlMerge
|
|
141080
|
+
});
|
|
141081
|
+
});
|
|
141082
|
+
|
|
141083
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/binary.js
|
|
141084
|
+
var require_binary4 = __commonJS((exports, module) => {
|
|
141085
|
+
var Type = require_type3();
|
|
141086
|
+
var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
141087
|
+
\r`;
|
|
141088
|
+
function resolveYamlBinary(data) {
|
|
141089
|
+
if (data === null)
|
|
141090
|
+
return false;
|
|
141091
|
+
var code2, idx, bitlen = 0, max = data.length, map2 = BASE64_MAP;
|
|
141092
|
+
for (idx = 0;idx < max; idx++) {
|
|
141093
|
+
code2 = map2.indexOf(data.charAt(idx));
|
|
141094
|
+
if (code2 > 64)
|
|
141095
|
+
continue;
|
|
141096
|
+
if (code2 < 0)
|
|
141097
|
+
return false;
|
|
141098
|
+
bitlen += 6;
|
|
141099
|
+
}
|
|
141100
|
+
return bitlen % 8 === 0;
|
|
141101
|
+
}
|
|
141102
|
+
function constructYamlBinary(data) {
|
|
141103
|
+
var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map2 = BASE64_MAP, bits = 0, result = [];
|
|
141104
|
+
for (idx = 0;idx < max; idx++) {
|
|
141105
|
+
if (idx % 4 === 0 && idx) {
|
|
141106
|
+
result.push(bits >> 16 & 255);
|
|
141107
|
+
result.push(bits >> 8 & 255);
|
|
141108
|
+
result.push(bits & 255);
|
|
141109
|
+
}
|
|
141110
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
141111
|
+
}
|
|
141112
|
+
tailbits = max % 4 * 6;
|
|
141113
|
+
if (tailbits === 0) {
|
|
141114
|
+
result.push(bits >> 16 & 255);
|
|
141115
|
+
result.push(bits >> 8 & 255);
|
|
141116
|
+
result.push(bits & 255);
|
|
141117
|
+
} else if (tailbits === 18) {
|
|
141118
|
+
result.push(bits >> 10 & 255);
|
|
141119
|
+
result.push(bits >> 2 & 255);
|
|
141120
|
+
} else if (tailbits === 12) {
|
|
141121
|
+
result.push(bits >> 4 & 255);
|
|
141122
|
+
}
|
|
141123
|
+
return new Uint8Array(result);
|
|
141124
|
+
}
|
|
141125
|
+
function representYamlBinary(object2) {
|
|
141126
|
+
var result = "", bits = 0, idx, tail, max = object2.length, map2 = BASE64_MAP;
|
|
141127
|
+
for (idx = 0;idx < max; idx++) {
|
|
141128
|
+
if (idx % 3 === 0 && idx) {
|
|
141129
|
+
result += map2[bits >> 18 & 63];
|
|
141130
|
+
result += map2[bits >> 12 & 63];
|
|
141131
|
+
result += map2[bits >> 6 & 63];
|
|
141132
|
+
result += map2[bits & 63];
|
|
141133
|
+
}
|
|
141134
|
+
bits = (bits << 8) + object2[idx];
|
|
141135
|
+
}
|
|
141136
|
+
tail = max % 3;
|
|
141137
|
+
if (tail === 0) {
|
|
141138
|
+
result += map2[bits >> 18 & 63];
|
|
141139
|
+
result += map2[bits >> 12 & 63];
|
|
141140
|
+
result += map2[bits >> 6 & 63];
|
|
141141
|
+
result += map2[bits & 63];
|
|
141142
|
+
} else if (tail === 2) {
|
|
141143
|
+
result += map2[bits >> 10 & 63];
|
|
141144
|
+
result += map2[bits >> 4 & 63];
|
|
141145
|
+
result += map2[bits << 2 & 63];
|
|
141146
|
+
result += map2[64];
|
|
141147
|
+
} else if (tail === 1) {
|
|
141148
|
+
result += map2[bits >> 2 & 63];
|
|
141149
|
+
result += map2[bits << 4 & 63];
|
|
141150
|
+
result += map2[64];
|
|
141151
|
+
result += map2[64];
|
|
141152
|
+
}
|
|
141153
|
+
return result;
|
|
141154
|
+
}
|
|
141155
|
+
function isBinary(obj) {
|
|
141156
|
+
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
141157
|
+
}
|
|
141158
|
+
module.exports = new Type("tag:yaml.org,2002:binary", {
|
|
141159
|
+
kind: "scalar",
|
|
141160
|
+
resolve: resolveYamlBinary,
|
|
141161
|
+
construct: constructYamlBinary,
|
|
141162
|
+
predicate: isBinary,
|
|
141163
|
+
represent: representYamlBinary
|
|
141164
|
+
});
|
|
141165
|
+
});
|
|
141166
|
+
|
|
141167
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/omap.js
|
|
141168
|
+
var require_omap4 = __commonJS((exports, module) => {
|
|
141169
|
+
var Type = require_type3();
|
|
141170
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
141171
|
+
var _toString = Object.prototype.toString;
|
|
141172
|
+
function resolveYamlOmap(data) {
|
|
141173
|
+
if (data === null)
|
|
141174
|
+
return true;
|
|
141175
|
+
var objectKeys = [], index, length, pair, pairKey, pairHasKey, object2 = data;
|
|
141176
|
+
for (index = 0, length = object2.length;index < length; index += 1) {
|
|
141177
|
+
pair = object2[index];
|
|
141178
|
+
pairHasKey = false;
|
|
141179
|
+
if (_toString.call(pair) !== "[object Object]")
|
|
141180
|
+
return false;
|
|
141181
|
+
for (pairKey in pair) {
|
|
141182
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
141183
|
+
if (!pairHasKey)
|
|
141184
|
+
pairHasKey = true;
|
|
141185
|
+
else
|
|
141186
|
+
return false;
|
|
141187
|
+
}
|
|
141188
|
+
}
|
|
141189
|
+
if (!pairHasKey)
|
|
141190
|
+
return false;
|
|
141191
|
+
if (objectKeys.indexOf(pairKey) === -1)
|
|
141192
|
+
objectKeys.push(pairKey);
|
|
141193
|
+
else
|
|
141194
|
+
return false;
|
|
141195
|
+
}
|
|
141196
|
+
return true;
|
|
141197
|
+
}
|
|
141198
|
+
function constructYamlOmap(data) {
|
|
141199
|
+
return data !== null ? data : [];
|
|
141200
|
+
}
|
|
141201
|
+
module.exports = new Type("tag:yaml.org,2002:omap", {
|
|
141202
|
+
kind: "sequence",
|
|
141203
|
+
resolve: resolveYamlOmap,
|
|
141204
|
+
construct: constructYamlOmap
|
|
141205
|
+
});
|
|
141206
|
+
});
|
|
141207
|
+
|
|
141208
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/pairs.js
|
|
141209
|
+
var require_pairs4 = __commonJS((exports, module) => {
|
|
141210
|
+
var Type = require_type3();
|
|
141211
|
+
var _toString = Object.prototype.toString;
|
|
141212
|
+
function resolveYamlPairs(data) {
|
|
141213
|
+
if (data === null)
|
|
141214
|
+
return true;
|
|
141215
|
+
var index, length, pair, keys, result, object2 = data;
|
|
141216
|
+
result = new Array(object2.length);
|
|
141217
|
+
for (index = 0, length = object2.length;index < length; index += 1) {
|
|
141218
|
+
pair = object2[index];
|
|
141219
|
+
if (_toString.call(pair) !== "[object Object]")
|
|
141220
|
+
return false;
|
|
141221
|
+
keys = Object.keys(pair);
|
|
141222
|
+
if (keys.length !== 1)
|
|
141223
|
+
return false;
|
|
141224
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
141225
|
+
}
|
|
141226
|
+
return true;
|
|
141227
|
+
}
|
|
141228
|
+
function constructYamlPairs(data) {
|
|
141229
|
+
if (data === null)
|
|
141230
|
+
return [];
|
|
141231
|
+
var index, length, pair, keys, result, object2 = data;
|
|
141232
|
+
result = new Array(object2.length);
|
|
141233
|
+
for (index = 0, length = object2.length;index < length; index += 1) {
|
|
141234
|
+
pair = object2[index];
|
|
141235
|
+
keys = Object.keys(pair);
|
|
141236
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
141237
|
+
}
|
|
141238
|
+
return result;
|
|
141239
|
+
}
|
|
141240
|
+
module.exports = new Type("tag:yaml.org,2002:pairs", {
|
|
141241
|
+
kind: "sequence",
|
|
141242
|
+
resolve: resolveYamlPairs,
|
|
141243
|
+
construct: constructYamlPairs
|
|
141244
|
+
});
|
|
141245
|
+
});
|
|
141246
|
+
|
|
141247
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/type/set.js
|
|
141248
|
+
var require_set4 = __commonJS((exports, module) => {
|
|
141249
|
+
var Type = require_type3();
|
|
141250
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
141251
|
+
function resolveYamlSet(data) {
|
|
141252
|
+
if (data === null)
|
|
141253
|
+
return true;
|
|
141254
|
+
var key2, object2 = data;
|
|
141255
|
+
for (key2 in object2) {
|
|
141256
|
+
if (_hasOwnProperty.call(object2, key2)) {
|
|
141257
|
+
if (object2[key2] !== null)
|
|
141258
|
+
return false;
|
|
141259
|
+
}
|
|
141260
|
+
}
|
|
141261
|
+
return true;
|
|
141262
|
+
}
|
|
141263
|
+
function constructYamlSet(data) {
|
|
141264
|
+
return data !== null ? data : {};
|
|
141265
|
+
}
|
|
141266
|
+
module.exports = new Type("tag:yaml.org,2002:set", {
|
|
141267
|
+
kind: "mapping",
|
|
141268
|
+
resolve: resolveYamlSet,
|
|
141269
|
+
construct: constructYamlSet
|
|
141270
|
+
});
|
|
141271
|
+
});
|
|
141272
|
+
|
|
141273
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/schema/default.js
|
|
141274
|
+
var require_default2 = __commonJS((exports, module) => {
|
|
141275
|
+
module.exports = require_json4().extend({
|
|
141276
|
+
implicit: [
|
|
141277
|
+
require_timestamp4(),
|
|
141278
|
+
require_merge6()
|
|
141279
|
+
],
|
|
141280
|
+
explicit: [
|
|
141281
|
+
require_binary4(),
|
|
141282
|
+
require_omap4(),
|
|
141283
|
+
require_pairs4(),
|
|
141284
|
+
require_set4()
|
|
141285
|
+
]
|
|
141286
|
+
});
|
|
141287
|
+
});
|
|
141288
|
+
|
|
141289
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/loader.js
|
|
141290
|
+
var require_loader3 = __commonJS((exports, module) => {
|
|
141291
|
+
var common2 = require_common6();
|
|
141292
|
+
var YAMLException = require_exception3();
|
|
141293
|
+
var makeSnippet = require_snippet2();
|
|
141294
|
+
var DEFAULT_SCHEMA = require_default2();
|
|
141295
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
141296
|
+
var CONTEXT_FLOW_IN = 1;
|
|
141297
|
+
var CONTEXT_FLOW_OUT = 2;
|
|
141298
|
+
var CONTEXT_BLOCK_IN = 3;
|
|
141299
|
+
var CONTEXT_BLOCK_OUT = 4;
|
|
141300
|
+
var CHOMPING_CLIP = 1;
|
|
141301
|
+
var CHOMPING_STRIP = 2;
|
|
141302
|
+
var CHOMPING_KEEP = 3;
|
|
141303
|
+
var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
141304
|
+
var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
141305
|
+
var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
|
|
141306
|
+
var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
141307
|
+
var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
141308
|
+
function _class(obj) {
|
|
141309
|
+
return Object.prototype.toString.call(obj);
|
|
141310
|
+
}
|
|
141311
|
+
function is_EOL(c8) {
|
|
141312
|
+
return c8 === 10 || c8 === 13;
|
|
141313
|
+
}
|
|
141314
|
+
function is_WHITE_SPACE(c8) {
|
|
141315
|
+
return c8 === 9 || c8 === 32;
|
|
141316
|
+
}
|
|
141317
|
+
function is_WS_OR_EOL(c8) {
|
|
141318
|
+
return c8 === 9 || c8 === 32 || c8 === 10 || c8 === 13;
|
|
141319
|
+
}
|
|
141320
|
+
function is_FLOW_INDICATOR(c8) {
|
|
141321
|
+
return c8 === 44 || c8 === 91 || c8 === 93 || c8 === 123 || c8 === 125;
|
|
141322
|
+
}
|
|
141323
|
+
function fromHexCode(c8) {
|
|
141324
|
+
var lc3;
|
|
141325
|
+
if (48 <= c8 && c8 <= 57) {
|
|
141326
|
+
return c8 - 48;
|
|
141327
|
+
}
|
|
141328
|
+
lc3 = c8 | 32;
|
|
141329
|
+
if (97 <= lc3 && lc3 <= 102) {
|
|
141330
|
+
return lc3 - 97 + 10;
|
|
141331
|
+
}
|
|
141332
|
+
return -1;
|
|
141333
|
+
}
|
|
141334
|
+
function escapedHexLen(c8) {
|
|
141335
|
+
if (c8 === 120) {
|
|
141336
|
+
return 2;
|
|
141337
|
+
}
|
|
141338
|
+
if (c8 === 117) {
|
|
141339
|
+
return 4;
|
|
141340
|
+
}
|
|
141341
|
+
if (c8 === 85) {
|
|
141342
|
+
return 8;
|
|
141343
|
+
}
|
|
141344
|
+
return 0;
|
|
141345
|
+
}
|
|
141346
|
+
function fromDecimalCode(c8) {
|
|
141347
|
+
if (48 <= c8 && c8 <= 57) {
|
|
141348
|
+
return c8 - 48;
|
|
141349
|
+
}
|
|
141350
|
+
return -1;
|
|
141351
|
+
}
|
|
141352
|
+
function simpleEscapeSequence(c8) {
|
|
141353
|
+
return c8 === 48 ? "\x00" : c8 === 97 ? "\x07" : c8 === 98 ? "\b" : c8 === 116 ? "\t" : c8 === 9 ? "\t" : c8 === 110 ? `
|
|
141354
|
+
` : c8 === 118 ? "\v" : c8 === 102 ? "\f" : c8 === 114 ? "\r" : c8 === 101 ? "\x1B" : c8 === 32 ? " " : c8 === 34 ? '"' : c8 === 47 ? "/" : c8 === 92 ? "\\" : c8 === 78 ? "
" : c8 === 95 ? " " : c8 === 76 ? "\u2028" : c8 === 80 ? "\u2029" : "";
|
|
141355
|
+
}
|
|
141356
|
+
function charFromCodepoint(c8) {
|
|
141357
|
+
if (c8 <= 65535) {
|
|
141358
|
+
return String.fromCharCode(c8);
|
|
141359
|
+
}
|
|
141360
|
+
return String.fromCharCode((c8 - 65536 >> 10) + 55296, (c8 - 65536 & 1023) + 56320);
|
|
141361
|
+
}
|
|
141362
|
+
function setProperty(object2, key2, value) {
|
|
141363
|
+
if (key2 === "__proto__") {
|
|
141364
|
+
Object.defineProperty(object2, key2, {
|
|
141365
|
+
configurable: true,
|
|
141366
|
+
enumerable: true,
|
|
141367
|
+
writable: true,
|
|
141368
|
+
value
|
|
141369
|
+
});
|
|
141370
|
+
} else {
|
|
141371
|
+
object2[key2] = value;
|
|
141372
|
+
}
|
|
141373
|
+
}
|
|
141374
|
+
var simpleEscapeCheck = new Array(256);
|
|
141375
|
+
var simpleEscapeMap = new Array(256);
|
|
141376
|
+
for (i5 = 0;i5 < 256; i5++) {
|
|
141377
|
+
simpleEscapeCheck[i5] = simpleEscapeSequence(i5) ? 1 : 0;
|
|
141378
|
+
simpleEscapeMap[i5] = simpleEscapeSequence(i5);
|
|
141379
|
+
}
|
|
141380
|
+
var i5;
|
|
141381
|
+
function State(input, options8) {
|
|
141382
|
+
this.input = input;
|
|
141383
|
+
this.filename = options8["filename"] || null;
|
|
141384
|
+
this.schema = options8["schema"] || DEFAULT_SCHEMA;
|
|
141385
|
+
this.onWarning = options8["onWarning"] || null;
|
|
141386
|
+
this.legacy = options8["legacy"] || false;
|
|
141387
|
+
this.json = options8["json"] || false;
|
|
141388
|
+
this.listener = options8["listener"] || null;
|
|
141389
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
141390
|
+
this.typeMap = this.schema.compiledTypeMap;
|
|
141391
|
+
this.length = input.length;
|
|
141392
|
+
this.position = 0;
|
|
141393
|
+
this.line = 0;
|
|
141394
|
+
this.lineStart = 0;
|
|
141395
|
+
this.lineIndent = 0;
|
|
141396
|
+
this.firstTabInLine = -1;
|
|
141397
|
+
this.documents = [];
|
|
141398
|
+
}
|
|
141399
|
+
function generateError(state, message) {
|
|
141400
|
+
var mark = {
|
|
141401
|
+
name: state.filename,
|
|
141402
|
+
buffer: state.input.slice(0, -1),
|
|
141403
|
+
position: state.position,
|
|
141404
|
+
line: state.line,
|
|
141405
|
+
column: state.position - state.lineStart
|
|
141406
|
+
};
|
|
141407
|
+
mark.snippet = makeSnippet(mark);
|
|
141408
|
+
return new YAMLException(message, mark);
|
|
141409
|
+
}
|
|
141410
|
+
function throwError(state, message) {
|
|
141411
|
+
throw generateError(state, message);
|
|
141412
|
+
}
|
|
141413
|
+
function throwWarning(state, message) {
|
|
141414
|
+
if (state.onWarning) {
|
|
141415
|
+
state.onWarning.call(null, generateError(state, message));
|
|
141416
|
+
}
|
|
141417
|
+
}
|
|
141418
|
+
var directiveHandlers = {
|
|
141419
|
+
YAML: function handleYamlDirective(state, name2, args) {
|
|
141420
|
+
var match, major, minor;
|
|
141421
|
+
if (state.version !== null) {
|
|
141422
|
+
throwError(state, "duplication of %YAML directive");
|
|
141423
|
+
}
|
|
141424
|
+
if (args.length !== 1) {
|
|
141425
|
+
throwError(state, "YAML directive accepts exactly one argument");
|
|
141426
|
+
}
|
|
141427
|
+
match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
141428
|
+
if (match === null) {
|
|
141429
|
+
throwError(state, "ill-formed argument of the YAML directive");
|
|
141430
|
+
}
|
|
141431
|
+
major = parseInt(match[1], 10);
|
|
141432
|
+
minor = parseInt(match[2], 10);
|
|
141433
|
+
if (major !== 1) {
|
|
141434
|
+
throwError(state, "unacceptable YAML version of the document");
|
|
141435
|
+
}
|
|
141436
|
+
state.version = args[0];
|
|
141437
|
+
state.checkLineBreaks = minor < 2;
|
|
141438
|
+
if (minor !== 1 && minor !== 2) {
|
|
141439
|
+
throwWarning(state, "unsupported YAML version of the document");
|
|
141440
|
+
}
|
|
141441
|
+
},
|
|
141442
|
+
TAG: function handleTagDirective(state, name2, args) {
|
|
141443
|
+
var handle, prefix;
|
|
141444
|
+
if (args.length !== 2) {
|
|
141445
|
+
throwError(state, "TAG directive accepts exactly two arguments");
|
|
141446
|
+
}
|
|
141447
|
+
handle = args[0];
|
|
141448
|
+
prefix = args[1];
|
|
141449
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
141450
|
+
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
141451
|
+
}
|
|
141452
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
141453
|
+
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
141454
|
+
}
|
|
141455
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
141456
|
+
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
141457
|
+
}
|
|
141458
|
+
try {
|
|
141459
|
+
prefix = decodeURIComponent(prefix);
|
|
141460
|
+
} catch (err) {
|
|
141461
|
+
throwError(state, "tag prefix is malformed: " + prefix);
|
|
141462
|
+
}
|
|
141463
|
+
state.tagMap[handle] = prefix;
|
|
141464
|
+
}
|
|
141465
|
+
};
|
|
141466
|
+
function captureSegment(state, start, end, checkJson) {
|
|
141467
|
+
var _position, _length2, _character, _result;
|
|
141468
|
+
if (start < end) {
|
|
141469
|
+
_result = state.input.slice(start, end);
|
|
141470
|
+
if (checkJson) {
|
|
141471
|
+
for (_position = 0, _length2 = _result.length;_position < _length2; _position += 1) {
|
|
141472
|
+
_character = _result.charCodeAt(_position);
|
|
141473
|
+
if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
|
|
141474
|
+
throwError(state, "expected valid JSON character");
|
|
141475
|
+
}
|
|
141476
|
+
}
|
|
141477
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
141478
|
+
throwError(state, "the stream contains non-printable characters");
|
|
141479
|
+
}
|
|
141480
|
+
state.result += _result;
|
|
141481
|
+
}
|
|
141482
|
+
}
|
|
141483
|
+
function mergeMappings(state, destination, source2, overridableKeys) {
|
|
141484
|
+
var sourceKeys, key2, index, quantity;
|
|
141485
|
+
if (!common2.isObject(source2)) {
|
|
141486
|
+
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
141487
|
+
}
|
|
141488
|
+
sourceKeys = Object.keys(source2);
|
|
141489
|
+
for (index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
141490
|
+
key2 = sourceKeys[index];
|
|
141491
|
+
if (!_hasOwnProperty.call(destination, key2)) {
|
|
141492
|
+
setProperty(destination, key2, source2[key2]);
|
|
141493
|
+
overridableKeys[key2] = true;
|
|
141494
|
+
}
|
|
141495
|
+
}
|
|
141496
|
+
}
|
|
141497
|
+
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
141498
|
+
var index, quantity;
|
|
141499
|
+
if (Array.isArray(keyNode)) {
|
|
141500
|
+
keyNode = Array.prototype.slice.call(keyNode);
|
|
141501
|
+
for (index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
141502
|
+
if (Array.isArray(keyNode[index])) {
|
|
141503
|
+
throwError(state, "nested arrays are not supported inside keys");
|
|
141504
|
+
}
|
|
141505
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
141506
|
+
keyNode[index] = "[object Object]";
|
|
141507
|
+
}
|
|
141508
|
+
}
|
|
141509
|
+
}
|
|
141510
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
141511
|
+
keyNode = "[object Object]";
|
|
141512
|
+
}
|
|
141513
|
+
keyNode = String(keyNode);
|
|
141514
|
+
if (_result === null) {
|
|
141515
|
+
_result = {};
|
|
141516
|
+
}
|
|
141517
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
141518
|
+
if (Array.isArray(valueNode)) {
|
|
141519
|
+
for (index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
141520
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
141521
|
+
}
|
|
141522
|
+
} else {
|
|
141523
|
+
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
141524
|
+
}
|
|
141525
|
+
} else {
|
|
141526
|
+
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
141527
|
+
state.line = startLine || state.line;
|
|
141528
|
+
state.lineStart = startLineStart || state.lineStart;
|
|
141529
|
+
state.position = startPos || state.position;
|
|
141530
|
+
throwError(state, "duplicated mapping key");
|
|
141531
|
+
}
|
|
141532
|
+
setProperty(_result, keyNode, valueNode);
|
|
141533
|
+
delete overridableKeys[keyNode];
|
|
141534
|
+
}
|
|
141535
|
+
return _result;
|
|
141536
|
+
}
|
|
141537
|
+
function readLineBreak(state) {
|
|
141538
|
+
var ch2;
|
|
141539
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141540
|
+
if (ch2 === 10) {
|
|
141541
|
+
state.position++;
|
|
141542
|
+
} else if (ch2 === 13) {
|
|
141543
|
+
state.position++;
|
|
141544
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
141545
|
+
state.position++;
|
|
141546
|
+
}
|
|
141547
|
+
} else {
|
|
141548
|
+
throwError(state, "a line break is expected");
|
|
141549
|
+
}
|
|
141550
|
+
state.line += 1;
|
|
141551
|
+
state.lineStart = state.position;
|
|
141552
|
+
state.firstTabInLine = -1;
|
|
141553
|
+
}
|
|
141554
|
+
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
141555
|
+
var lineBreaks = 0, ch2 = state.input.charCodeAt(state.position);
|
|
141556
|
+
while (ch2 !== 0) {
|
|
141557
|
+
while (is_WHITE_SPACE(ch2)) {
|
|
141558
|
+
if (ch2 === 9 && state.firstTabInLine === -1) {
|
|
141559
|
+
state.firstTabInLine = state.position;
|
|
141560
|
+
}
|
|
141561
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141562
|
+
}
|
|
141563
|
+
if (allowComments && ch2 === 35) {
|
|
141564
|
+
do {
|
|
141565
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141566
|
+
} while (ch2 !== 10 && ch2 !== 13 && ch2 !== 0);
|
|
141567
|
+
}
|
|
141568
|
+
if (is_EOL(ch2)) {
|
|
141569
|
+
readLineBreak(state);
|
|
141570
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141571
|
+
lineBreaks++;
|
|
141572
|
+
state.lineIndent = 0;
|
|
141573
|
+
while (ch2 === 32) {
|
|
141574
|
+
state.lineIndent++;
|
|
141575
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141576
|
+
}
|
|
141577
|
+
} else {
|
|
141578
|
+
break;
|
|
141579
|
+
}
|
|
141580
|
+
}
|
|
141581
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
141582
|
+
throwWarning(state, "deficient indentation");
|
|
141583
|
+
}
|
|
141584
|
+
return lineBreaks;
|
|
141585
|
+
}
|
|
141586
|
+
function testDocumentSeparator(state) {
|
|
141587
|
+
var _position = state.position, ch2;
|
|
141588
|
+
ch2 = state.input.charCodeAt(_position);
|
|
141589
|
+
if ((ch2 === 45 || ch2 === 46) && ch2 === state.input.charCodeAt(_position + 1) && ch2 === state.input.charCodeAt(_position + 2)) {
|
|
141590
|
+
_position += 3;
|
|
141591
|
+
ch2 = state.input.charCodeAt(_position);
|
|
141592
|
+
if (ch2 === 0 || is_WS_OR_EOL(ch2)) {
|
|
141593
|
+
return true;
|
|
141594
|
+
}
|
|
141595
|
+
}
|
|
141596
|
+
return false;
|
|
141597
|
+
}
|
|
141598
|
+
function writeFoldedLines(state, count2) {
|
|
141599
|
+
if (count2 === 1) {
|
|
141600
|
+
state.result += " ";
|
|
141601
|
+
} else if (count2 > 1) {
|
|
141602
|
+
state.result += common2.repeat(`
|
|
141603
|
+
`, count2 - 1);
|
|
141604
|
+
}
|
|
141605
|
+
}
|
|
141606
|
+
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
141607
|
+
var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch2;
|
|
141608
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141609
|
+
if (is_WS_OR_EOL(ch2) || is_FLOW_INDICATOR(ch2) || ch2 === 35 || ch2 === 38 || ch2 === 42 || ch2 === 33 || ch2 === 124 || ch2 === 62 || ch2 === 39 || ch2 === 34 || ch2 === 37 || ch2 === 64 || ch2 === 96) {
|
|
141610
|
+
return false;
|
|
141611
|
+
}
|
|
141612
|
+
if (ch2 === 63 || ch2 === 45) {
|
|
141613
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
141614
|
+
if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
|
141615
|
+
return false;
|
|
141616
|
+
}
|
|
141617
|
+
}
|
|
141618
|
+
state.kind = "scalar";
|
|
141619
|
+
state.result = "";
|
|
141620
|
+
captureStart = captureEnd = state.position;
|
|
141621
|
+
hasPendingContent = false;
|
|
141622
|
+
while (ch2 !== 0) {
|
|
141623
|
+
if (ch2 === 58) {
|
|
141624
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
141625
|
+
if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
|
141626
|
+
break;
|
|
141627
|
+
}
|
|
141628
|
+
} else if (ch2 === 35) {
|
|
141629
|
+
preceding = state.input.charCodeAt(state.position - 1);
|
|
141630
|
+
if (is_WS_OR_EOL(preceding)) {
|
|
141631
|
+
break;
|
|
141632
|
+
}
|
|
141633
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch2)) {
|
|
141634
|
+
break;
|
|
141635
|
+
} else if (is_EOL(ch2)) {
|
|
141636
|
+
_line = state.line;
|
|
141637
|
+
_lineStart = state.lineStart;
|
|
141638
|
+
_lineIndent = state.lineIndent;
|
|
141639
|
+
skipSeparationSpace(state, false, -1);
|
|
141640
|
+
if (state.lineIndent >= nodeIndent) {
|
|
141641
|
+
hasPendingContent = true;
|
|
141642
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141643
|
+
continue;
|
|
141644
|
+
} else {
|
|
141645
|
+
state.position = captureEnd;
|
|
141646
|
+
state.line = _line;
|
|
141647
|
+
state.lineStart = _lineStart;
|
|
141648
|
+
state.lineIndent = _lineIndent;
|
|
141649
|
+
break;
|
|
141650
|
+
}
|
|
141651
|
+
}
|
|
141652
|
+
if (hasPendingContent) {
|
|
141653
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
141654
|
+
writeFoldedLines(state, state.line - _line);
|
|
141655
|
+
captureStart = captureEnd = state.position;
|
|
141656
|
+
hasPendingContent = false;
|
|
141657
|
+
}
|
|
141658
|
+
if (!is_WHITE_SPACE(ch2)) {
|
|
141659
|
+
captureEnd = state.position + 1;
|
|
141660
|
+
}
|
|
141661
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141662
|
+
}
|
|
141663
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
141664
|
+
if (state.result) {
|
|
141665
|
+
return true;
|
|
141666
|
+
}
|
|
141667
|
+
state.kind = _kind;
|
|
141668
|
+
state.result = _result;
|
|
141669
|
+
return false;
|
|
141670
|
+
}
|
|
141671
|
+
function readSingleQuotedScalar(state, nodeIndent) {
|
|
141672
|
+
var ch2, captureStart, captureEnd;
|
|
141673
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141674
|
+
if (ch2 !== 39) {
|
|
141675
|
+
return false;
|
|
141676
|
+
}
|
|
141677
|
+
state.kind = "scalar";
|
|
141678
|
+
state.result = "";
|
|
141679
|
+
state.position++;
|
|
141680
|
+
captureStart = captureEnd = state.position;
|
|
141681
|
+
while ((ch2 = state.input.charCodeAt(state.position)) !== 0) {
|
|
141682
|
+
if (ch2 === 39) {
|
|
141683
|
+
captureSegment(state, captureStart, state.position, true);
|
|
141684
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141685
|
+
if (ch2 === 39) {
|
|
141686
|
+
captureStart = state.position;
|
|
141687
|
+
state.position++;
|
|
141688
|
+
captureEnd = state.position;
|
|
141689
|
+
} else {
|
|
141690
|
+
return true;
|
|
141691
|
+
}
|
|
141692
|
+
} else if (is_EOL(ch2)) {
|
|
141693
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
141694
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
141695
|
+
captureStart = captureEnd = state.position;
|
|
141696
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
141697
|
+
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
141698
|
+
} else {
|
|
141699
|
+
state.position++;
|
|
141700
|
+
captureEnd = state.position;
|
|
141701
|
+
}
|
|
141702
|
+
}
|
|
141703
|
+
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
141704
|
+
}
|
|
141705
|
+
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
141706
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp, ch2;
|
|
141707
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141708
|
+
if (ch2 !== 34) {
|
|
141709
|
+
return false;
|
|
141710
|
+
}
|
|
141711
|
+
state.kind = "scalar";
|
|
141712
|
+
state.result = "";
|
|
141713
|
+
state.position++;
|
|
141714
|
+
captureStart = captureEnd = state.position;
|
|
141715
|
+
while ((ch2 = state.input.charCodeAt(state.position)) !== 0) {
|
|
141716
|
+
if (ch2 === 34) {
|
|
141717
|
+
captureSegment(state, captureStart, state.position, true);
|
|
141718
|
+
state.position++;
|
|
141719
|
+
return true;
|
|
141720
|
+
} else if (ch2 === 92) {
|
|
141721
|
+
captureSegment(state, captureStart, state.position, true);
|
|
141722
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141723
|
+
if (is_EOL(ch2)) {
|
|
141724
|
+
skipSeparationSpace(state, false, nodeIndent);
|
|
141725
|
+
} else if (ch2 < 256 && simpleEscapeCheck[ch2]) {
|
|
141726
|
+
state.result += simpleEscapeMap[ch2];
|
|
141727
|
+
state.position++;
|
|
141728
|
+
} else if ((tmp = escapedHexLen(ch2)) > 0) {
|
|
141729
|
+
hexLength = tmp;
|
|
141730
|
+
hexResult = 0;
|
|
141731
|
+
for (;hexLength > 0; hexLength--) {
|
|
141732
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141733
|
+
if ((tmp = fromHexCode(ch2)) >= 0) {
|
|
141734
|
+
hexResult = (hexResult << 4) + tmp;
|
|
141735
|
+
} else {
|
|
141736
|
+
throwError(state, "expected hexadecimal character");
|
|
141737
|
+
}
|
|
141738
|
+
}
|
|
141739
|
+
state.result += charFromCodepoint(hexResult);
|
|
141740
|
+
state.position++;
|
|
141741
|
+
} else {
|
|
141742
|
+
throwError(state, "unknown escape sequence");
|
|
141743
|
+
}
|
|
141744
|
+
captureStart = captureEnd = state.position;
|
|
141745
|
+
} else if (is_EOL(ch2)) {
|
|
141746
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
141747
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
141748
|
+
captureStart = captureEnd = state.position;
|
|
141749
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
141750
|
+
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
141751
|
+
} else {
|
|
141752
|
+
state.position++;
|
|
141753
|
+
captureEnd = state.position;
|
|
141754
|
+
}
|
|
141755
|
+
}
|
|
141756
|
+
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
141757
|
+
}
|
|
141758
|
+
function readFlowCollection(state, nodeIndent) {
|
|
141759
|
+
var readNext = true, _line, _lineStart, _pos2, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = Object.create(null), keyNode, keyTag, valueNode, ch2;
|
|
141760
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141761
|
+
if (ch2 === 91) {
|
|
141762
|
+
terminator = 93;
|
|
141763
|
+
isMapping = false;
|
|
141764
|
+
_result = [];
|
|
141765
|
+
} else if (ch2 === 123) {
|
|
141766
|
+
terminator = 125;
|
|
141767
|
+
isMapping = true;
|
|
141768
|
+
_result = {};
|
|
141769
|
+
} else {
|
|
141770
|
+
return false;
|
|
141771
|
+
}
|
|
141772
|
+
if (state.anchor !== null) {
|
|
141773
|
+
state.anchorMap[state.anchor] = _result;
|
|
141774
|
+
}
|
|
141775
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141776
|
+
while (ch2 !== 0) {
|
|
141777
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
141778
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141779
|
+
if (ch2 === terminator) {
|
|
141780
|
+
state.position++;
|
|
141781
|
+
state.tag = _tag;
|
|
141782
|
+
state.anchor = _anchor;
|
|
141783
|
+
state.kind = isMapping ? "mapping" : "sequence";
|
|
141784
|
+
state.result = _result;
|
|
141785
|
+
return true;
|
|
141786
|
+
} else if (!readNext) {
|
|
141787
|
+
throwError(state, "missed comma between flow collection entries");
|
|
141788
|
+
} else if (ch2 === 44) {
|
|
141789
|
+
throwError(state, "expected the node content, but found ','");
|
|
141790
|
+
}
|
|
141791
|
+
keyTag = keyNode = valueNode = null;
|
|
141792
|
+
isPair = isExplicitPair = false;
|
|
141793
|
+
if (ch2 === 63) {
|
|
141794
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
141795
|
+
if (is_WS_OR_EOL(following)) {
|
|
141796
|
+
isPair = isExplicitPair = true;
|
|
141797
|
+
state.position++;
|
|
141798
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
141799
|
+
}
|
|
141800
|
+
}
|
|
141801
|
+
_line = state.line;
|
|
141802
|
+
_lineStart = state.lineStart;
|
|
141803
|
+
_pos2 = state.position;
|
|
141804
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
141805
|
+
keyTag = state.tag;
|
|
141806
|
+
keyNode = state.result;
|
|
141807
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
141808
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141809
|
+
if ((isExplicitPair || state.line === _line) && ch2 === 58) {
|
|
141810
|
+
isPair = true;
|
|
141811
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141812
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
141813
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
141814
|
+
valueNode = state.result;
|
|
141815
|
+
}
|
|
141816
|
+
if (isMapping) {
|
|
141817
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos2);
|
|
141818
|
+
} else if (isPair) {
|
|
141819
|
+
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos2));
|
|
141820
|
+
} else {
|
|
141821
|
+
_result.push(keyNode);
|
|
141822
|
+
}
|
|
141823
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
141824
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141825
|
+
if (ch2 === 44) {
|
|
141826
|
+
readNext = true;
|
|
141827
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141828
|
+
} else {
|
|
141829
|
+
readNext = false;
|
|
141830
|
+
}
|
|
141831
|
+
}
|
|
141832
|
+
throwError(state, "unexpected end of the stream within a flow collection");
|
|
141833
|
+
}
|
|
141834
|
+
function readBlockScalar(state, nodeIndent) {
|
|
141835
|
+
var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch2;
|
|
141836
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141837
|
+
if (ch2 === 124) {
|
|
141838
|
+
folding = false;
|
|
141839
|
+
} else if (ch2 === 62) {
|
|
141840
|
+
folding = true;
|
|
141841
|
+
} else {
|
|
141842
|
+
return false;
|
|
141843
|
+
}
|
|
141844
|
+
state.kind = "scalar";
|
|
141845
|
+
state.result = "";
|
|
141846
|
+
while (ch2 !== 0) {
|
|
141847
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141848
|
+
if (ch2 === 43 || ch2 === 45) {
|
|
141849
|
+
if (CHOMPING_CLIP === chomping) {
|
|
141850
|
+
chomping = ch2 === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
141851
|
+
} else {
|
|
141852
|
+
throwError(state, "repeat of a chomping mode identifier");
|
|
141853
|
+
}
|
|
141854
|
+
} else if ((tmp = fromDecimalCode(ch2)) >= 0) {
|
|
141855
|
+
if (tmp === 0) {
|
|
141856
|
+
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
141857
|
+
} else if (!detectedIndent) {
|
|
141858
|
+
textIndent = nodeIndent + tmp - 1;
|
|
141859
|
+
detectedIndent = true;
|
|
141860
|
+
} else {
|
|
141861
|
+
throwError(state, "repeat of an indentation width identifier");
|
|
141862
|
+
}
|
|
141863
|
+
} else {
|
|
141864
|
+
break;
|
|
141865
|
+
}
|
|
141866
|
+
}
|
|
141867
|
+
if (is_WHITE_SPACE(ch2)) {
|
|
141868
|
+
do {
|
|
141869
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141870
|
+
} while (is_WHITE_SPACE(ch2));
|
|
141871
|
+
if (ch2 === 35) {
|
|
141872
|
+
do {
|
|
141873
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141874
|
+
} while (!is_EOL(ch2) && ch2 !== 0);
|
|
141875
|
+
}
|
|
141876
|
+
}
|
|
141877
|
+
while (ch2 !== 0) {
|
|
141878
|
+
readLineBreak(state);
|
|
141879
|
+
state.lineIndent = 0;
|
|
141880
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141881
|
+
while ((!detectedIndent || state.lineIndent < textIndent) && ch2 === 32) {
|
|
141882
|
+
state.lineIndent++;
|
|
141883
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141884
|
+
}
|
|
141885
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
141886
|
+
textIndent = state.lineIndent;
|
|
141887
|
+
}
|
|
141888
|
+
if (is_EOL(ch2)) {
|
|
141889
|
+
emptyLines++;
|
|
141890
|
+
continue;
|
|
141891
|
+
}
|
|
141892
|
+
if (state.lineIndent < textIndent) {
|
|
141893
|
+
if (chomping === CHOMPING_KEEP) {
|
|
141894
|
+
state.result += common2.repeat(`
|
|
141895
|
+
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
141896
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
141897
|
+
if (didReadContent) {
|
|
141898
|
+
state.result += `
|
|
141899
|
+
`;
|
|
141900
|
+
}
|
|
141901
|
+
}
|
|
141902
|
+
break;
|
|
141903
|
+
}
|
|
141904
|
+
if (folding) {
|
|
141905
|
+
if (is_WHITE_SPACE(ch2)) {
|
|
141906
|
+
atMoreIndented = true;
|
|
141907
|
+
state.result += common2.repeat(`
|
|
141908
|
+
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
141909
|
+
} else if (atMoreIndented) {
|
|
141910
|
+
atMoreIndented = false;
|
|
141911
|
+
state.result += common2.repeat(`
|
|
141912
|
+
`, emptyLines + 1);
|
|
141913
|
+
} else if (emptyLines === 0) {
|
|
141914
|
+
if (didReadContent) {
|
|
141915
|
+
state.result += " ";
|
|
141916
|
+
}
|
|
141917
|
+
} else {
|
|
141918
|
+
state.result += common2.repeat(`
|
|
141919
|
+
`, emptyLines);
|
|
141920
|
+
}
|
|
141921
|
+
} else {
|
|
141922
|
+
state.result += common2.repeat(`
|
|
141923
|
+
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
141924
|
+
}
|
|
141925
|
+
didReadContent = true;
|
|
141926
|
+
detectedIndent = true;
|
|
141927
|
+
emptyLines = 0;
|
|
141928
|
+
captureStart = state.position;
|
|
141929
|
+
while (!is_EOL(ch2) && ch2 !== 0) {
|
|
141930
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
141931
|
+
}
|
|
141932
|
+
captureSegment(state, captureStart, state.position, false);
|
|
141933
|
+
}
|
|
141934
|
+
return true;
|
|
141935
|
+
}
|
|
141936
|
+
function readBlockSequence(state, nodeIndent) {
|
|
141937
|
+
var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch2;
|
|
141938
|
+
if (state.firstTabInLine !== -1)
|
|
141939
|
+
return false;
|
|
141940
|
+
if (state.anchor !== null) {
|
|
141941
|
+
state.anchorMap[state.anchor] = _result;
|
|
141942
|
+
}
|
|
141943
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141944
|
+
while (ch2 !== 0) {
|
|
141945
|
+
if (state.firstTabInLine !== -1) {
|
|
141946
|
+
state.position = state.firstTabInLine;
|
|
141947
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
141948
|
+
}
|
|
141949
|
+
if (ch2 !== 45) {
|
|
141950
|
+
break;
|
|
141951
|
+
}
|
|
141952
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
141953
|
+
if (!is_WS_OR_EOL(following)) {
|
|
141954
|
+
break;
|
|
141955
|
+
}
|
|
141956
|
+
detected = true;
|
|
141957
|
+
state.position++;
|
|
141958
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
141959
|
+
if (state.lineIndent <= nodeIndent) {
|
|
141960
|
+
_result.push(null);
|
|
141961
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141962
|
+
continue;
|
|
141963
|
+
}
|
|
141964
|
+
}
|
|
141965
|
+
_line = state.line;
|
|
141966
|
+
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
141967
|
+
_result.push(state.result);
|
|
141968
|
+
skipSeparationSpace(state, true, -1);
|
|
141969
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141970
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch2 !== 0) {
|
|
141971
|
+
throwError(state, "bad indentation of a sequence entry");
|
|
141972
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
141973
|
+
break;
|
|
141974
|
+
}
|
|
141975
|
+
}
|
|
141976
|
+
if (detected) {
|
|
141977
|
+
state.tag = _tag;
|
|
141978
|
+
state.anchor = _anchor;
|
|
141979
|
+
state.kind = "sequence";
|
|
141980
|
+
state.result = _result;
|
|
141981
|
+
return true;
|
|
141982
|
+
}
|
|
141983
|
+
return false;
|
|
141984
|
+
}
|
|
141985
|
+
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
141986
|
+
var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch2;
|
|
141987
|
+
if (state.firstTabInLine !== -1)
|
|
141988
|
+
return false;
|
|
141989
|
+
if (state.anchor !== null) {
|
|
141990
|
+
state.anchorMap[state.anchor] = _result;
|
|
141991
|
+
}
|
|
141992
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
141993
|
+
while (ch2 !== 0) {
|
|
141994
|
+
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
141995
|
+
state.position = state.firstTabInLine;
|
|
141996
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
141997
|
+
}
|
|
141998
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
141999
|
+
_line = state.line;
|
|
142000
|
+
if ((ch2 === 63 || ch2 === 58) && is_WS_OR_EOL(following)) {
|
|
142001
|
+
if (ch2 === 63) {
|
|
142002
|
+
if (atExplicitKey) {
|
|
142003
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
142004
|
+
keyTag = keyNode = valueNode = null;
|
|
142005
|
+
}
|
|
142006
|
+
detected = true;
|
|
142007
|
+
atExplicitKey = true;
|
|
142008
|
+
allowCompact = true;
|
|
142009
|
+
} else if (atExplicitKey) {
|
|
142010
|
+
atExplicitKey = false;
|
|
142011
|
+
allowCompact = true;
|
|
142012
|
+
} else {
|
|
142013
|
+
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
142014
|
+
}
|
|
142015
|
+
state.position += 1;
|
|
142016
|
+
ch2 = following;
|
|
142017
|
+
} else {
|
|
142018
|
+
_keyLine = state.line;
|
|
142019
|
+
_keyLineStart = state.lineStart;
|
|
142020
|
+
_keyPos = state.position;
|
|
142021
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
142022
|
+
break;
|
|
142023
|
+
}
|
|
142024
|
+
if (state.line === _line) {
|
|
142025
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
142026
|
+
while (is_WHITE_SPACE(ch2)) {
|
|
142027
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142028
|
+
}
|
|
142029
|
+
if (ch2 === 58) {
|
|
142030
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142031
|
+
if (!is_WS_OR_EOL(ch2)) {
|
|
142032
|
+
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
142033
|
+
}
|
|
142034
|
+
if (atExplicitKey) {
|
|
142035
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
142036
|
+
keyTag = keyNode = valueNode = null;
|
|
142037
|
+
}
|
|
142038
|
+
detected = true;
|
|
142039
|
+
atExplicitKey = false;
|
|
142040
|
+
allowCompact = false;
|
|
142041
|
+
keyTag = state.tag;
|
|
142042
|
+
keyNode = state.result;
|
|
142043
|
+
} else if (detected) {
|
|
142044
|
+
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
142045
|
+
} else {
|
|
142046
|
+
state.tag = _tag;
|
|
142047
|
+
state.anchor = _anchor;
|
|
142048
|
+
return true;
|
|
142049
|
+
}
|
|
142050
|
+
} else if (detected) {
|
|
142051
|
+
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
142052
|
+
} else {
|
|
142053
|
+
state.tag = _tag;
|
|
142054
|
+
state.anchor = _anchor;
|
|
142055
|
+
return true;
|
|
142056
|
+
}
|
|
142057
|
+
}
|
|
142058
|
+
if (state.line === _line || state.lineIndent > nodeIndent) {
|
|
142059
|
+
if (atExplicitKey) {
|
|
142060
|
+
_keyLine = state.line;
|
|
142061
|
+
_keyLineStart = state.lineStart;
|
|
142062
|
+
_keyPos = state.position;
|
|
142063
|
+
}
|
|
142064
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
142065
|
+
if (atExplicitKey) {
|
|
142066
|
+
keyNode = state.result;
|
|
142067
|
+
} else {
|
|
142068
|
+
valueNode = state.result;
|
|
142069
|
+
}
|
|
142070
|
+
}
|
|
142071
|
+
if (!atExplicitKey) {
|
|
142072
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
142073
|
+
keyTag = keyNode = valueNode = null;
|
|
142074
|
+
}
|
|
142075
|
+
skipSeparationSpace(state, true, -1);
|
|
142076
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
142077
|
+
}
|
|
142078
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch2 !== 0) {
|
|
142079
|
+
throwError(state, "bad indentation of a mapping entry");
|
|
142080
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
142081
|
+
break;
|
|
142082
|
+
}
|
|
142083
|
+
}
|
|
142084
|
+
if (atExplicitKey) {
|
|
142085
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
142086
|
+
}
|
|
142087
|
+
if (detected) {
|
|
142088
|
+
state.tag = _tag;
|
|
142089
|
+
state.anchor = _anchor;
|
|
142090
|
+
state.kind = "mapping";
|
|
142091
|
+
state.result = _result;
|
|
142092
|
+
}
|
|
142093
|
+
return detected;
|
|
142094
|
+
}
|
|
142095
|
+
function readTagProperty(state) {
|
|
142096
|
+
var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch2;
|
|
142097
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
142098
|
+
if (ch2 !== 33)
|
|
142099
|
+
return false;
|
|
142100
|
+
if (state.tag !== null) {
|
|
142101
|
+
throwError(state, "duplication of a tag property");
|
|
142102
|
+
}
|
|
142103
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142104
|
+
if (ch2 === 60) {
|
|
142105
|
+
isVerbatim = true;
|
|
142106
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142107
|
+
} else if (ch2 === 33) {
|
|
142108
|
+
isNamed = true;
|
|
142109
|
+
tagHandle = "!!";
|
|
142110
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142111
|
+
} else {
|
|
142112
|
+
tagHandle = "!";
|
|
142113
|
+
}
|
|
142114
|
+
_position = state.position;
|
|
142115
|
+
if (isVerbatim) {
|
|
142116
|
+
do {
|
|
142117
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142118
|
+
} while (ch2 !== 0 && ch2 !== 62);
|
|
142119
|
+
if (state.position < state.length) {
|
|
142120
|
+
tagName = state.input.slice(_position, state.position);
|
|
142121
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142122
|
+
} else {
|
|
142123
|
+
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
142124
|
+
}
|
|
142125
|
+
} else {
|
|
142126
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2)) {
|
|
142127
|
+
if (ch2 === 33) {
|
|
142128
|
+
if (!isNamed) {
|
|
142129
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
142130
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
142131
|
+
throwError(state, "named tag handle cannot contain such characters");
|
|
142132
|
+
}
|
|
142133
|
+
isNamed = true;
|
|
142134
|
+
_position = state.position + 1;
|
|
142135
|
+
} else {
|
|
142136
|
+
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
142137
|
+
}
|
|
142138
|
+
}
|
|
142139
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142140
|
+
}
|
|
142141
|
+
tagName = state.input.slice(_position, state.position);
|
|
142142
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
142143
|
+
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
142144
|
+
}
|
|
142145
|
+
}
|
|
142146
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
142147
|
+
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
142148
|
+
}
|
|
142149
|
+
try {
|
|
142150
|
+
tagName = decodeURIComponent(tagName);
|
|
142151
|
+
} catch (err) {
|
|
142152
|
+
throwError(state, "tag name is malformed: " + tagName);
|
|
142153
|
+
}
|
|
142154
|
+
if (isVerbatim) {
|
|
142155
|
+
state.tag = tagName;
|
|
142156
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
142157
|
+
state.tag = state.tagMap[tagHandle] + tagName;
|
|
142158
|
+
} else if (tagHandle === "!") {
|
|
142159
|
+
state.tag = "!" + tagName;
|
|
142160
|
+
} else if (tagHandle === "!!") {
|
|
142161
|
+
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
142162
|
+
} else {
|
|
142163
|
+
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
142164
|
+
}
|
|
142165
|
+
return true;
|
|
142166
|
+
}
|
|
142167
|
+
function readAnchorProperty(state) {
|
|
142168
|
+
var _position, ch2;
|
|
142169
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
142170
|
+
if (ch2 !== 38)
|
|
142171
|
+
return false;
|
|
142172
|
+
if (state.anchor !== null) {
|
|
142173
|
+
throwError(state, "duplication of an anchor property");
|
|
142174
|
+
}
|
|
142175
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142176
|
+
_position = state.position;
|
|
142177
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2) && !is_FLOW_INDICATOR(ch2)) {
|
|
142178
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142179
|
+
}
|
|
142180
|
+
if (state.position === _position) {
|
|
142181
|
+
throwError(state, "name of an anchor node must contain at least one character");
|
|
142182
|
+
}
|
|
142183
|
+
state.anchor = state.input.slice(_position, state.position);
|
|
142184
|
+
return true;
|
|
142185
|
+
}
|
|
142186
|
+
function readAlias(state) {
|
|
142187
|
+
var _position, alias, ch2;
|
|
142188
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
142189
|
+
if (ch2 !== 42)
|
|
142190
|
+
return false;
|
|
142191
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142192
|
+
_position = state.position;
|
|
142193
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2) && !is_FLOW_INDICATOR(ch2)) {
|
|
142194
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142195
|
+
}
|
|
142196
|
+
if (state.position === _position) {
|
|
142197
|
+
throwError(state, "name of an alias node must contain at least one character");
|
|
142198
|
+
}
|
|
142199
|
+
alias = state.input.slice(_position, state.position);
|
|
142200
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
142201
|
+
throwError(state, 'unidentified alias "' + alias + '"');
|
|
142202
|
+
}
|
|
142203
|
+
state.result = state.anchorMap[alias];
|
|
142204
|
+
skipSeparationSpace(state, true, -1);
|
|
142205
|
+
return true;
|
|
142206
|
+
}
|
|
142207
|
+
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
142208
|
+
var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
|
|
142209
|
+
if (state.listener !== null) {
|
|
142210
|
+
state.listener("open", state);
|
|
142211
|
+
}
|
|
142212
|
+
state.tag = null;
|
|
142213
|
+
state.anchor = null;
|
|
142214
|
+
state.kind = null;
|
|
142215
|
+
state.result = null;
|
|
142216
|
+
allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
142217
|
+
if (allowToSeek) {
|
|
142218
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
142219
|
+
atNewLine = true;
|
|
142220
|
+
if (state.lineIndent > parentIndent) {
|
|
142221
|
+
indentStatus = 1;
|
|
142222
|
+
} else if (state.lineIndent === parentIndent) {
|
|
142223
|
+
indentStatus = 0;
|
|
142224
|
+
} else if (state.lineIndent < parentIndent) {
|
|
142225
|
+
indentStatus = -1;
|
|
142226
|
+
}
|
|
142227
|
+
}
|
|
142228
|
+
}
|
|
142229
|
+
if (indentStatus === 1) {
|
|
142230
|
+
while (readTagProperty(state) || readAnchorProperty(state)) {
|
|
142231
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
142232
|
+
atNewLine = true;
|
|
142233
|
+
allowBlockCollections = allowBlockStyles;
|
|
142234
|
+
if (state.lineIndent > parentIndent) {
|
|
142235
|
+
indentStatus = 1;
|
|
142236
|
+
} else if (state.lineIndent === parentIndent) {
|
|
142237
|
+
indentStatus = 0;
|
|
142238
|
+
} else if (state.lineIndent < parentIndent) {
|
|
142239
|
+
indentStatus = -1;
|
|
142240
|
+
}
|
|
142241
|
+
} else {
|
|
142242
|
+
allowBlockCollections = false;
|
|
142243
|
+
}
|
|
142244
|
+
}
|
|
142245
|
+
}
|
|
142246
|
+
if (allowBlockCollections) {
|
|
142247
|
+
allowBlockCollections = atNewLine || allowCompact;
|
|
142248
|
+
}
|
|
142249
|
+
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
142250
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
142251
|
+
flowIndent = parentIndent;
|
|
142252
|
+
} else {
|
|
142253
|
+
flowIndent = parentIndent + 1;
|
|
142254
|
+
}
|
|
142255
|
+
blockIndent = state.position - state.lineStart;
|
|
142256
|
+
if (indentStatus === 1) {
|
|
142257
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
142258
|
+
hasContent = true;
|
|
142259
|
+
} else {
|
|
142260
|
+
if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
142261
|
+
hasContent = true;
|
|
142262
|
+
} else if (readAlias(state)) {
|
|
142263
|
+
hasContent = true;
|
|
142264
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
142265
|
+
throwError(state, "alias node should not have any properties");
|
|
142266
|
+
}
|
|
142267
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
142268
|
+
hasContent = true;
|
|
142269
|
+
if (state.tag === null) {
|
|
142270
|
+
state.tag = "?";
|
|
142271
|
+
}
|
|
142272
|
+
}
|
|
142273
|
+
if (state.anchor !== null) {
|
|
142274
|
+
state.anchorMap[state.anchor] = state.result;
|
|
142275
|
+
}
|
|
142276
|
+
}
|
|
142277
|
+
} else if (indentStatus === 0) {
|
|
142278
|
+
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
142279
|
+
}
|
|
142280
|
+
}
|
|
142281
|
+
if (state.tag === null) {
|
|
142282
|
+
if (state.anchor !== null) {
|
|
142283
|
+
state.anchorMap[state.anchor] = state.result;
|
|
142284
|
+
}
|
|
142285
|
+
} else if (state.tag === "?") {
|
|
142286
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
142287
|
+
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
142288
|
+
}
|
|
142289
|
+
for (typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
142290
|
+
type = state.implicitTypes[typeIndex];
|
|
142291
|
+
if (type.resolve(state.result)) {
|
|
142292
|
+
state.result = type.construct(state.result);
|
|
142293
|
+
state.tag = type.tag;
|
|
142294
|
+
if (state.anchor !== null) {
|
|
142295
|
+
state.anchorMap[state.anchor] = state.result;
|
|
142296
|
+
}
|
|
142297
|
+
break;
|
|
142298
|
+
}
|
|
142299
|
+
}
|
|
142300
|
+
} else if (state.tag !== "!") {
|
|
142301
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
142302
|
+
type = state.typeMap[state.kind || "fallback"][state.tag];
|
|
142303
|
+
} else {
|
|
142304
|
+
type = null;
|
|
142305
|
+
typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
142306
|
+
for (typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
142307
|
+
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
142308
|
+
type = typeList[typeIndex];
|
|
142309
|
+
break;
|
|
142310
|
+
}
|
|
142311
|
+
}
|
|
142312
|
+
}
|
|
142313
|
+
if (!type) {
|
|
142314
|
+
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
142315
|
+
}
|
|
142316
|
+
if (state.result !== null && type.kind !== state.kind) {
|
|
142317
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
|
|
142318
|
+
}
|
|
142319
|
+
if (!type.resolve(state.result, state.tag)) {
|
|
142320
|
+
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
142321
|
+
} else {
|
|
142322
|
+
state.result = type.construct(state.result, state.tag);
|
|
142323
|
+
if (state.anchor !== null) {
|
|
142324
|
+
state.anchorMap[state.anchor] = state.result;
|
|
142325
|
+
}
|
|
142326
|
+
}
|
|
142327
|
+
}
|
|
142328
|
+
if (state.listener !== null) {
|
|
142329
|
+
state.listener("close", state);
|
|
142330
|
+
}
|
|
142331
|
+
return state.tag !== null || state.anchor !== null || hasContent;
|
|
142332
|
+
}
|
|
142333
|
+
function readDocument(state) {
|
|
142334
|
+
var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch2;
|
|
142335
|
+
state.version = null;
|
|
142336
|
+
state.checkLineBreaks = state.legacy;
|
|
142337
|
+
state.tagMap = Object.create(null);
|
|
142338
|
+
state.anchorMap = Object.create(null);
|
|
142339
|
+
while ((ch2 = state.input.charCodeAt(state.position)) !== 0) {
|
|
142340
|
+
skipSeparationSpace(state, true, -1);
|
|
142341
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
142342
|
+
if (state.lineIndent > 0 || ch2 !== 37) {
|
|
142343
|
+
break;
|
|
142344
|
+
}
|
|
142345
|
+
hasDirectives = true;
|
|
142346
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142347
|
+
_position = state.position;
|
|
142348
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2)) {
|
|
142349
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142350
|
+
}
|
|
142351
|
+
directiveName = state.input.slice(_position, state.position);
|
|
142352
|
+
directiveArgs = [];
|
|
142353
|
+
if (directiveName.length < 1) {
|
|
142354
|
+
throwError(state, "directive name must not be less than one character in length");
|
|
142355
|
+
}
|
|
142356
|
+
while (ch2 !== 0) {
|
|
142357
|
+
while (is_WHITE_SPACE(ch2)) {
|
|
142358
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142359
|
+
}
|
|
142360
|
+
if (ch2 === 35) {
|
|
142361
|
+
do {
|
|
142362
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142363
|
+
} while (ch2 !== 0 && !is_EOL(ch2));
|
|
142364
|
+
break;
|
|
142365
|
+
}
|
|
142366
|
+
if (is_EOL(ch2))
|
|
142367
|
+
break;
|
|
142368
|
+
_position = state.position;
|
|
142369
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2)) {
|
|
142370
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
142371
|
+
}
|
|
142372
|
+
directiveArgs.push(state.input.slice(_position, state.position));
|
|
142373
|
+
}
|
|
142374
|
+
if (ch2 !== 0)
|
|
142375
|
+
readLineBreak(state);
|
|
142376
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
142377
|
+
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
142378
|
+
} else {
|
|
142379
|
+
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
142380
|
+
}
|
|
142381
|
+
}
|
|
142382
|
+
skipSeparationSpace(state, true, -1);
|
|
142383
|
+
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
142384
|
+
state.position += 3;
|
|
142385
|
+
skipSeparationSpace(state, true, -1);
|
|
142386
|
+
} else if (hasDirectives) {
|
|
142387
|
+
throwError(state, "directives end mark is expected");
|
|
142388
|
+
}
|
|
142389
|
+
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
142390
|
+
skipSeparationSpace(state, true, -1);
|
|
142391
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
142392
|
+
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
142393
|
+
}
|
|
142394
|
+
state.documents.push(state.result);
|
|
142395
|
+
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
142396
|
+
if (state.input.charCodeAt(state.position) === 46) {
|
|
142397
|
+
state.position += 3;
|
|
142398
|
+
skipSeparationSpace(state, true, -1);
|
|
142399
|
+
}
|
|
142400
|
+
return;
|
|
142401
|
+
}
|
|
142402
|
+
if (state.position < state.length - 1) {
|
|
142403
|
+
throwError(state, "end of the stream or a document separator is expected");
|
|
142404
|
+
} else {
|
|
142405
|
+
return;
|
|
142406
|
+
}
|
|
142407
|
+
}
|
|
142408
|
+
function loadDocuments(input, options8) {
|
|
142409
|
+
input = String(input);
|
|
142410
|
+
options8 = options8 || {};
|
|
142411
|
+
if (input.length !== 0) {
|
|
142412
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
142413
|
+
input += `
|
|
142414
|
+
`;
|
|
142415
|
+
}
|
|
142416
|
+
if (input.charCodeAt(0) === 65279) {
|
|
142417
|
+
input = input.slice(1);
|
|
142418
|
+
}
|
|
142419
|
+
}
|
|
142420
|
+
var state = new State(input, options8);
|
|
142421
|
+
var nullpos = input.indexOf("\x00");
|
|
142422
|
+
if (nullpos !== -1) {
|
|
142423
|
+
state.position = nullpos;
|
|
142424
|
+
throwError(state, "null byte is not allowed in input");
|
|
142425
|
+
}
|
|
142426
|
+
state.input += "\x00";
|
|
142427
|
+
while (state.input.charCodeAt(state.position) === 32) {
|
|
142428
|
+
state.lineIndent += 1;
|
|
142429
|
+
state.position += 1;
|
|
142430
|
+
}
|
|
142431
|
+
while (state.position < state.length - 1) {
|
|
142432
|
+
readDocument(state);
|
|
142433
|
+
}
|
|
142434
|
+
return state.documents;
|
|
142435
|
+
}
|
|
142436
|
+
function loadAll(input, iterator, options8) {
|
|
142437
|
+
if (iterator !== null && typeof iterator === "object" && typeof options8 === "undefined") {
|
|
142438
|
+
options8 = iterator;
|
|
142439
|
+
iterator = null;
|
|
142440
|
+
}
|
|
142441
|
+
var documents = loadDocuments(input, options8);
|
|
142442
|
+
if (typeof iterator !== "function") {
|
|
142443
|
+
return documents;
|
|
142444
|
+
}
|
|
142445
|
+
for (var index = 0, length = documents.length;index < length; index += 1) {
|
|
142446
|
+
iterator(documents[index]);
|
|
142447
|
+
}
|
|
142448
|
+
}
|
|
142449
|
+
function load2(input, options8) {
|
|
142450
|
+
var documents = loadDocuments(input, options8);
|
|
142451
|
+
if (documents.length === 0) {
|
|
142452
|
+
return;
|
|
142453
|
+
} else if (documents.length === 1) {
|
|
142454
|
+
return documents[0];
|
|
142455
|
+
}
|
|
142456
|
+
throw new YAMLException("expected a single document in the stream, but found more");
|
|
142457
|
+
}
|
|
142458
|
+
exports.loadAll = loadAll;
|
|
142459
|
+
exports.load = load2;
|
|
142460
|
+
});
|
|
142461
|
+
|
|
142462
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/lib/dumper.js
|
|
142463
|
+
var require_dumper3 = __commonJS((exports, module) => {
|
|
142464
|
+
var common2 = require_common6();
|
|
142465
|
+
var YAMLException = require_exception3();
|
|
142466
|
+
var DEFAULT_SCHEMA = require_default2();
|
|
142467
|
+
var _toString = Object.prototype.toString;
|
|
142468
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
142469
|
+
var CHAR_BOM = 65279;
|
|
142470
|
+
var CHAR_TAB = 9;
|
|
142471
|
+
var CHAR_LINE_FEED = 10;
|
|
142472
|
+
var CHAR_CARRIAGE_RETURN = 13;
|
|
142473
|
+
var CHAR_SPACE = 32;
|
|
142474
|
+
var CHAR_EXCLAMATION = 33;
|
|
142475
|
+
var CHAR_DOUBLE_QUOTE = 34;
|
|
142476
|
+
var CHAR_SHARP = 35;
|
|
142477
|
+
var CHAR_PERCENT = 37;
|
|
142478
|
+
var CHAR_AMPERSAND = 38;
|
|
142479
|
+
var CHAR_SINGLE_QUOTE = 39;
|
|
142480
|
+
var CHAR_ASTERISK = 42;
|
|
142481
|
+
var CHAR_COMMA = 44;
|
|
142482
|
+
var CHAR_MINUS = 45;
|
|
142483
|
+
var CHAR_COLON = 58;
|
|
142484
|
+
var CHAR_EQUALS = 61;
|
|
142485
|
+
var CHAR_GREATER_THAN = 62;
|
|
142486
|
+
var CHAR_QUESTION = 63;
|
|
142487
|
+
var CHAR_COMMERCIAL_AT = 64;
|
|
142488
|
+
var CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
142489
|
+
var CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
142490
|
+
var CHAR_GRAVE_ACCENT = 96;
|
|
142491
|
+
var CHAR_LEFT_CURLY_BRACKET = 123;
|
|
142492
|
+
var CHAR_VERTICAL_LINE = 124;
|
|
142493
|
+
var CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
142494
|
+
var ESCAPE_SEQUENCES = {};
|
|
142495
|
+
ESCAPE_SEQUENCES[0] = "\\0";
|
|
142496
|
+
ESCAPE_SEQUENCES[7] = "\\a";
|
|
142497
|
+
ESCAPE_SEQUENCES[8] = "\\b";
|
|
142498
|
+
ESCAPE_SEQUENCES[9] = "\\t";
|
|
142499
|
+
ESCAPE_SEQUENCES[10] = "\\n";
|
|
142500
|
+
ESCAPE_SEQUENCES[11] = "\\v";
|
|
142501
|
+
ESCAPE_SEQUENCES[12] = "\\f";
|
|
142502
|
+
ESCAPE_SEQUENCES[13] = "\\r";
|
|
142503
|
+
ESCAPE_SEQUENCES[27] = "\\e";
|
|
142504
|
+
ESCAPE_SEQUENCES[34] = "\\\"";
|
|
142505
|
+
ESCAPE_SEQUENCES[92] = "\\\\";
|
|
142506
|
+
ESCAPE_SEQUENCES[133] = "\\N";
|
|
142507
|
+
ESCAPE_SEQUENCES[160] = "\\_";
|
|
142508
|
+
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
142509
|
+
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
142510
|
+
var DEPRECATED_BOOLEANS_SYNTAX = [
|
|
142511
|
+
"y",
|
|
142512
|
+
"Y",
|
|
142513
|
+
"yes",
|
|
142514
|
+
"Yes",
|
|
142515
|
+
"YES",
|
|
142516
|
+
"on",
|
|
142517
|
+
"On",
|
|
142518
|
+
"ON",
|
|
142519
|
+
"n",
|
|
142520
|
+
"N",
|
|
142521
|
+
"no",
|
|
142522
|
+
"No",
|
|
142523
|
+
"NO",
|
|
142524
|
+
"off",
|
|
142525
|
+
"Off",
|
|
142526
|
+
"OFF"
|
|
142527
|
+
];
|
|
142528
|
+
var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
142529
|
+
function compileStyleMap(schema9, map2) {
|
|
142530
|
+
var result, keys, index, length, tag, style, type;
|
|
142531
|
+
if (map2 === null)
|
|
142532
|
+
return {};
|
|
142533
|
+
result = {};
|
|
142534
|
+
keys = Object.keys(map2);
|
|
142535
|
+
for (index = 0, length = keys.length;index < length; index += 1) {
|
|
142536
|
+
tag = keys[index];
|
|
142537
|
+
style = String(map2[tag]);
|
|
142538
|
+
if (tag.slice(0, 2) === "!!") {
|
|
142539
|
+
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
142540
|
+
}
|
|
142541
|
+
type = schema9.compiledTypeMap["fallback"][tag];
|
|
142542
|
+
if (type && _hasOwnProperty.call(type.styleAliases, style)) {
|
|
142543
|
+
style = type.styleAliases[style];
|
|
142544
|
+
}
|
|
142545
|
+
result[tag] = style;
|
|
142546
|
+
}
|
|
142547
|
+
return result;
|
|
142548
|
+
}
|
|
142549
|
+
function encodeHex(character) {
|
|
142550
|
+
var string4, handle, length;
|
|
142551
|
+
string4 = character.toString(16).toUpperCase();
|
|
142552
|
+
if (character <= 255) {
|
|
142553
|
+
handle = "x";
|
|
142554
|
+
length = 2;
|
|
142555
|
+
} else if (character <= 65535) {
|
|
142556
|
+
handle = "u";
|
|
142557
|
+
length = 4;
|
|
142558
|
+
} else if (character <= 4294967295) {
|
|
142559
|
+
handle = "U";
|
|
142560
|
+
length = 8;
|
|
142561
|
+
} else {
|
|
142562
|
+
throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
142563
|
+
}
|
|
142564
|
+
return "\\" + handle + common2.repeat("0", length - string4.length) + string4;
|
|
142565
|
+
}
|
|
142566
|
+
var QUOTING_TYPE_SINGLE = 1;
|
|
142567
|
+
var QUOTING_TYPE_DOUBLE = 2;
|
|
142568
|
+
function State(options8) {
|
|
142569
|
+
this.schema = options8["schema"] || DEFAULT_SCHEMA;
|
|
142570
|
+
this.indent = Math.max(1, options8["indent"] || 2);
|
|
142571
|
+
this.noArrayIndent = options8["noArrayIndent"] || false;
|
|
142572
|
+
this.skipInvalid = options8["skipInvalid"] || false;
|
|
142573
|
+
this.flowLevel = common2.isNothing(options8["flowLevel"]) ? -1 : options8["flowLevel"];
|
|
142574
|
+
this.styleMap = compileStyleMap(this.schema, options8["styles"] || null);
|
|
142575
|
+
this.sortKeys = options8["sortKeys"] || false;
|
|
142576
|
+
this.lineWidth = options8["lineWidth"] || 80;
|
|
142577
|
+
this.noRefs = options8["noRefs"] || false;
|
|
142578
|
+
this.noCompatMode = options8["noCompatMode"] || false;
|
|
142579
|
+
this.condenseFlow = options8["condenseFlow"] || false;
|
|
142580
|
+
this.quotingType = options8["quotingType"] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
|
|
142581
|
+
this.forceQuotes = options8["forceQuotes"] || false;
|
|
142582
|
+
this.replacer = typeof options8["replacer"] === "function" ? options8["replacer"] : null;
|
|
142583
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
142584
|
+
this.explicitTypes = this.schema.compiledExplicit;
|
|
142585
|
+
this.tag = null;
|
|
142586
|
+
this.result = "";
|
|
142587
|
+
this.duplicates = [];
|
|
142588
|
+
this.usedDuplicates = null;
|
|
142589
|
+
}
|
|
142590
|
+
function indentString(string4, spaces) {
|
|
142591
|
+
var ind = common2.repeat(" ", spaces), position = 0, next = -1, result = "", line3, length = string4.length;
|
|
142592
|
+
while (position < length) {
|
|
142593
|
+
next = string4.indexOf(`
|
|
142594
|
+
`, position);
|
|
142595
|
+
if (next === -1) {
|
|
142596
|
+
line3 = string4.slice(position);
|
|
142597
|
+
position = length;
|
|
142598
|
+
} else {
|
|
142599
|
+
line3 = string4.slice(position, next + 1);
|
|
142600
|
+
position = next + 1;
|
|
142601
|
+
}
|
|
142602
|
+
if (line3.length && line3 !== `
|
|
142603
|
+
`)
|
|
142604
|
+
result += ind;
|
|
142605
|
+
result += line3;
|
|
142606
|
+
}
|
|
142607
|
+
return result;
|
|
142608
|
+
}
|
|
142609
|
+
function generateNextLine(state, level) {
|
|
142610
|
+
return `
|
|
142611
|
+
` + common2.repeat(" ", state.indent * level);
|
|
142612
|
+
}
|
|
142613
|
+
function testImplicitResolving(state, str) {
|
|
142614
|
+
var index, length, type;
|
|
142615
|
+
for (index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
142616
|
+
type = state.implicitTypes[index];
|
|
142617
|
+
if (type.resolve(str)) {
|
|
142618
|
+
return true;
|
|
142619
|
+
}
|
|
142620
|
+
}
|
|
142621
|
+
return false;
|
|
142622
|
+
}
|
|
142623
|
+
function isWhitespace(c8) {
|
|
142624
|
+
return c8 === CHAR_SPACE || c8 === CHAR_TAB;
|
|
142625
|
+
}
|
|
142626
|
+
function isPrintable(c8) {
|
|
142627
|
+
return 32 <= c8 && c8 <= 126 || 161 <= c8 && c8 <= 55295 && c8 !== 8232 && c8 !== 8233 || 57344 <= c8 && c8 <= 65533 && c8 !== CHAR_BOM || 65536 <= c8 && c8 <= 1114111;
|
|
142628
|
+
}
|
|
142629
|
+
function isNsCharOrWhitespace(c8) {
|
|
142630
|
+
return isPrintable(c8) && c8 !== CHAR_BOM && c8 !== CHAR_CARRIAGE_RETURN && c8 !== CHAR_LINE_FEED;
|
|
142631
|
+
}
|
|
142632
|
+
function isPlainSafe(c8, prev, inblock) {
|
|
142633
|
+
var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c8);
|
|
142634
|
+
var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c8);
|
|
142635
|
+
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c8 !== CHAR_COMMA && c8 !== CHAR_LEFT_SQUARE_BRACKET && c8 !== CHAR_RIGHT_SQUARE_BRACKET && c8 !== CHAR_LEFT_CURLY_BRACKET && c8 !== CHAR_RIGHT_CURLY_BRACKET) && c8 !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c8 === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
|
|
142636
|
+
}
|
|
142637
|
+
function isPlainSafeFirst(c8) {
|
|
142638
|
+
return isPrintable(c8) && c8 !== CHAR_BOM && !isWhitespace(c8) && c8 !== CHAR_MINUS && c8 !== CHAR_QUESTION && c8 !== CHAR_COLON && c8 !== CHAR_COMMA && c8 !== CHAR_LEFT_SQUARE_BRACKET && c8 !== CHAR_RIGHT_SQUARE_BRACKET && c8 !== CHAR_LEFT_CURLY_BRACKET && c8 !== CHAR_RIGHT_CURLY_BRACKET && c8 !== CHAR_SHARP && c8 !== CHAR_AMPERSAND && c8 !== CHAR_ASTERISK && c8 !== CHAR_EXCLAMATION && c8 !== CHAR_VERTICAL_LINE && c8 !== CHAR_EQUALS && c8 !== CHAR_GREATER_THAN && c8 !== CHAR_SINGLE_QUOTE && c8 !== CHAR_DOUBLE_QUOTE && c8 !== CHAR_PERCENT && c8 !== CHAR_COMMERCIAL_AT && c8 !== CHAR_GRAVE_ACCENT;
|
|
142639
|
+
}
|
|
142640
|
+
function isPlainSafeLast(c8) {
|
|
142641
|
+
return !isWhitespace(c8) && c8 !== CHAR_COLON;
|
|
142642
|
+
}
|
|
142643
|
+
function codePointAt(string4, pos3) {
|
|
142644
|
+
var first = string4.charCodeAt(pos3), second;
|
|
142645
|
+
if (first >= 55296 && first <= 56319 && pos3 + 1 < string4.length) {
|
|
142646
|
+
second = string4.charCodeAt(pos3 + 1);
|
|
142647
|
+
if (second >= 56320 && second <= 57343) {
|
|
142648
|
+
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
142649
|
+
}
|
|
142650
|
+
}
|
|
142651
|
+
return first;
|
|
142652
|
+
}
|
|
142653
|
+
function needIndentIndicator(string4) {
|
|
142654
|
+
var leadingSpaceRe = /^\n* /;
|
|
142655
|
+
return leadingSpaceRe.test(string4);
|
|
142656
|
+
}
|
|
142657
|
+
var STYLE_PLAIN = 1;
|
|
142658
|
+
var STYLE_SINGLE = 2;
|
|
142659
|
+
var STYLE_LITERAL = 3;
|
|
142660
|
+
var STYLE_FOLDED = 4;
|
|
142661
|
+
var STYLE_DOUBLE = 5;
|
|
142662
|
+
function chooseScalarStyle(string4, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
142663
|
+
var i5;
|
|
142664
|
+
var char = 0;
|
|
142665
|
+
var prevChar = null;
|
|
142666
|
+
var hasLineBreak = false;
|
|
142667
|
+
var hasFoldableLine = false;
|
|
142668
|
+
var shouldTrackWidth = lineWidth !== -1;
|
|
142669
|
+
var previousLineBreak = -1;
|
|
142670
|
+
var plain = isPlainSafeFirst(codePointAt(string4, 0)) && isPlainSafeLast(codePointAt(string4, string4.length - 1));
|
|
142671
|
+
if (singleLineOnly || forceQuotes) {
|
|
142672
|
+
for (i5 = 0;i5 < string4.length; char >= 65536 ? i5 += 2 : i5++) {
|
|
142673
|
+
char = codePointAt(string4, i5);
|
|
142674
|
+
if (!isPrintable(char)) {
|
|
142675
|
+
return STYLE_DOUBLE;
|
|
142676
|
+
}
|
|
142677
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
142678
|
+
prevChar = char;
|
|
142679
|
+
}
|
|
142680
|
+
} else {
|
|
142681
|
+
for (i5 = 0;i5 < string4.length; char >= 65536 ? i5 += 2 : i5++) {
|
|
142682
|
+
char = codePointAt(string4, i5);
|
|
142683
|
+
if (char === CHAR_LINE_FEED) {
|
|
142684
|
+
hasLineBreak = true;
|
|
142685
|
+
if (shouldTrackWidth) {
|
|
142686
|
+
hasFoldableLine = hasFoldableLine || i5 - previousLineBreak - 1 > lineWidth && string4[previousLineBreak + 1] !== " ";
|
|
142687
|
+
previousLineBreak = i5;
|
|
142688
|
+
}
|
|
142689
|
+
} else if (!isPrintable(char)) {
|
|
142690
|
+
return STYLE_DOUBLE;
|
|
142691
|
+
}
|
|
142692
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
142693
|
+
prevChar = char;
|
|
142694
|
+
}
|
|
142695
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i5 - previousLineBreak - 1 > lineWidth && string4[previousLineBreak + 1] !== " ");
|
|
142696
|
+
}
|
|
142697
|
+
if (!hasLineBreak && !hasFoldableLine) {
|
|
142698
|
+
if (plain && !forceQuotes && !testAmbiguousType(string4)) {
|
|
142699
|
+
return STYLE_PLAIN;
|
|
142700
|
+
}
|
|
142701
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
142702
|
+
}
|
|
142703
|
+
if (indentPerLevel > 9 && needIndentIndicator(string4)) {
|
|
142704
|
+
return STYLE_DOUBLE;
|
|
142705
|
+
}
|
|
142706
|
+
if (!forceQuotes) {
|
|
142707
|
+
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
142708
|
+
}
|
|
142709
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
142710
|
+
}
|
|
142711
|
+
function writeScalar(state, string4, level, iskey, inblock) {
|
|
142712
|
+
state.dump = function() {
|
|
142713
|
+
if (string4.length === 0) {
|
|
142714
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
142715
|
+
}
|
|
142716
|
+
if (!state.noCompatMode) {
|
|
142717
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string4) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string4)) {
|
|
142718
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string4 + '"' : "'" + string4 + "'";
|
|
142719
|
+
}
|
|
142720
|
+
}
|
|
142721
|
+
var indent3 = state.indent * Math.max(1, level);
|
|
142722
|
+
var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent3);
|
|
142723
|
+
var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
|
|
142724
|
+
function testAmbiguity(string5) {
|
|
142725
|
+
return testImplicitResolving(state, string5);
|
|
142726
|
+
}
|
|
142727
|
+
switch (chooseScalarStyle(string4, singleLineOnly, state.indent, lineWidth, testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
|
|
142728
|
+
case STYLE_PLAIN:
|
|
142729
|
+
return string4;
|
|
142730
|
+
case STYLE_SINGLE:
|
|
142731
|
+
return "'" + string4.replace(/'/g, "''") + "'";
|
|
142732
|
+
case STYLE_LITERAL:
|
|
142733
|
+
return "|" + blockHeader(string4, state.indent) + dropEndingNewline(indentString(string4, indent3));
|
|
142734
|
+
case STYLE_FOLDED:
|
|
142735
|
+
return ">" + blockHeader(string4, state.indent) + dropEndingNewline(indentString(foldString(string4, lineWidth), indent3));
|
|
142736
|
+
case STYLE_DOUBLE:
|
|
142737
|
+
return '"' + escapeString(string4, lineWidth) + '"';
|
|
142738
|
+
default:
|
|
142739
|
+
throw new YAMLException("impossible error: invalid scalar style");
|
|
142740
|
+
}
|
|
142741
|
+
}();
|
|
142742
|
+
}
|
|
142743
|
+
function blockHeader(string4, indentPerLevel) {
|
|
142744
|
+
var indentIndicator = needIndentIndicator(string4) ? String(indentPerLevel) : "";
|
|
142745
|
+
var clip = string4[string4.length - 1] === `
|
|
142746
|
+
`;
|
|
142747
|
+
var keep = clip && (string4[string4.length - 2] === `
|
|
142748
|
+
` || string4 === `
|
|
142749
|
+
`);
|
|
142750
|
+
var chomp = keep ? "+" : clip ? "" : "-";
|
|
142751
|
+
return indentIndicator + chomp + `
|
|
142752
|
+
`;
|
|
142753
|
+
}
|
|
142754
|
+
function dropEndingNewline(string4) {
|
|
142755
|
+
return string4[string4.length - 1] === `
|
|
142756
|
+
` ? string4.slice(0, -1) : string4;
|
|
142757
|
+
}
|
|
142758
|
+
function foldString(string4, width) {
|
|
142759
|
+
var lineRe = /(\n+)([^\n]*)/g;
|
|
142760
|
+
var result = function() {
|
|
142761
|
+
var nextLF = string4.indexOf(`
|
|
142762
|
+
`);
|
|
142763
|
+
nextLF = nextLF !== -1 ? nextLF : string4.length;
|
|
142764
|
+
lineRe.lastIndex = nextLF;
|
|
142765
|
+
return foldLine(string4.slice(0, nextLF), width);
|
|
142766
|
+
}();
|
|
142767
|
+
var prevMoreIndented = string4[0] === `
|
|
142768
|
+
` || string4[0] === " ";
|
|
142769
|
+
var moreIndented;
|
|
142770
|
+
var match;
|
|
142771
|
+
while (match = lineRe.exec(string4)) {
|
|
142772
|
+
var prefix = match[1], line3 = match[2];
|
|
142773
|
+
moreIndented = line3[0] === " ";
|
|
142774
|
+
result += prefix + (!prevMoreIndented && !moreIndented && line3 !== "" ? `
|
|
142775
|
+
` : "") + foldLine(line3, width);
|
|
142776
|
+
prevMoreIndented = moreIndented;
|
|
142777
|
+
}
|
|
142778
|
+
return result;
|
|
142779
|
+
}
|
|
142780
|
+
function foldLine(line3, width) {
|
|
142781
|
+
if (line3 === "" || line3[0] === " ")
|
|
142782
|
+
return line3;
|
|
142783
|
+
var breakRe = / [^ ]/g;
|
|
142784
|
+
var match;
|
|
142785
|
+
var start = 0, end, curr = 0, next = 0;
|
|
142786
|
+
var result = "";
|
|
142787
|
+
while (match = breakRe.exec(line3)) {
|
|
142788
|
+
next = match.index;
|
|
142789
|
+
if (next - start > width) {
|
|
142790
|
+
end = curr > start ? curr : next;
|
|
142791
|
+
result += `
|
|
142792
|
+
` + line3.slice(start, end);
|
|
142793
|
+
start = end + 1;
|
|
142794
|
+
}
|
|
142795
|
+
curr = next;
|
|
142796
|
+
}
|
|
142797
|
+
result += `
|
|
142798
|
+
`;
|
|
142799
|
+
if (line3.length - start > width && curr > start) {
|
|
142800
|
+
result += line3.slice(start, curr) + `
|
|
142801
|
+
` + line3.slice(curr + 1);
|
|
142802
|
+
} else {
|
|
142803
|
+
result += line3.slice(start);
|
|
142804
|
+
}
|
|
142805
|
+
return result.slice(1);
|
|
142806
|
+
}
|
|
142807
|
+
function escapeString(string4) {
|
|
142808
|
+
var result = "";
|
|
142809
|
+
var char = 0;
|
|
142810
|
+
var escapeSeq;
|
|
142811
|
+
for (var i5 = 0;i5 < string4.length; char >= 65536 ? i5 += 2 : i5++) {
|
|
142812
|
+
char = codePointAt(string4, i5);
|
|
142813
|
+
escapeSeq = ESCAPE_SEQUENCES[char];
|
|
142814
|
+
if (!escapeSeq && isPrintable(char)) {
|
|
142815
|
+
result += string4[i5];
|
|
142816
|
+
if (char >= 65536)
|
|
142817
|
+
result += string4[i5 + 1];
|
|
142818
|
+
} else {
|
|
142819
|
+
result += escapeSeq || encodeHex(char);
|
|
142820
|
+
}
|
|
142821
|
+
}
|
|
142822
|
+
return result;
|
|
142823
|
+
}
|
|
142824
|
+
function writeFlowSequence(state, level, object2) {
|
|
142825
|
+
var _result = "", _tag = state.tag, index, length, value;
|
|
142826
|
+
for (index = 0, length = object2.length;index < length; index += 1) {
|
|
142827
|
+
value = object2[index];
|
|
142828
|
+
if (state.replacer) {
|
|
142829
|
+
value = state.replacer.call(object2, String(index), value);
|
|
142830
|
+
}
|
|
142831
|
+
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
142832
|
+
if (_result !== "")
|
|
142833
|
+
_result += "," + (!state.condenseFlow ? " " : "");
|
|
142834
|
+
_result += state.dump;
|
|
142835
|
+
}
|
|
142836
|
+
}
|
|
142837
|
+
state.tag = _tag;
|
|
142838
|
+
state.dump = "[" + _result + "]";
|
|
142839
|
+
}
|
|
142840
|
+
function writeBlockSequence(state, level, object2, compact) {
|
|
142841
|
+
var _result = "", _tag = state.tag, index, length, value;
|
|
142842
|
+
for (index = 0, length = object2.length;index < length; index += 1) {
|
|
142843
|
+
value = object2[index];
|
|
142844
|
+
if (state.replacer) {
|
|
142845
|
+
value = state.replacer.call(object2, String(index), value);
|
|
142846
|
+
}
|
|
142847
|
+
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
142848
|
+
if (!compact || _result !== "") {
|
|
142849
|
+
_result += generateNextLine(state, level);
|
|
142850
|
+
}
|
|
142851
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
142852
|
+
_result += "-";
|
|
142853
|
+
} else {
|
|
142854
|
+
_result += "- ";
|
|
142855
|
+
}
|
|
142856
|
+
_result += state.dump;
|
|
142857
|
+
}
|
|
142858
|
+
}
|
|
142859
|
+
state.tag = _tag;
|
|
142860
|
+
state.dump = _result || "[]";
|
|
142861
|
+
}
|
|
142862
|
+
function writeFlowMapping(state, level, object2) {
|
|
142863
|
+
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object2), index, length, objectKey, objectValue, pairBuffer;
|
|
142864
|
+
for (index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
142865
|
+
pairBuffer = "";
|
|
142866
|
+
if (_result !== "")
|
|
142867
|
+
pairBuffer += ", ";
|
|
142868
|
+
if (state.condenseFlow)
|
|
142869
|
+
pairBuffer += '"';
|
|
142870
|
+
objectKey = objectKeyList[index];
|
|
142871
|
+
objectValue = object2[objectKey];
|
|
142872
|
+
if (state.replacer) {
|
|
142873
|
+
objectValue = state.replacer.call(object2, objectKey, objectValue);
|
|
142874
|
+
}
|
|
142875
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
142876
|
+
continue;
|
|
142877
|
+
}
|
|
142878
|
+
if (state.dump.length > 1024)
|
|
142879
|
+
pairBuffer += "? ";
|
|
142880
|
+
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
142881
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
142882
|
+
continue;
|
|
142883
|
+
}
|
|
142884
|
+
pairBuffer += state.dump;
|
|
142885
|
+
_result += pairBuffer;
|
|
142886
|
+
}
|
|
142887
|
+
state.tag = _tag;
|
|
142888
|
+
state.dump = "{" + _result + "}";
|
|
142889
|
+
}
|
|
142890
|
+
function writeBlockMapping(state, level, object2, compact) {
|
|
142891
|
+
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object2), index, length, objectKey, objectValue, explicitPair, pairBuffer;
|
|
142892
|
+
if (state.sortKeys === true) {
|
|
142893
|
+
objectKeyList.sort();
|
|
142894
|
+
} else if (typeof state.sortKeys === "function") {
|
|
142895
|
+
objectKeyList.sort(state.sortKeys);
|
|
142896
|
+
} else if (state.sortKeys) {
|
|
142897
|
+
throw new YAMLException("sortKeys must be a boolean or a function");
|
|
142898
|
+
}
|
|
142899
|
+
for (index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
142900
|
+
pairBuffer = "";
|
|
142901
|
+
if (!compact || _result !== "") {
|
|
142902
|
+
pairBuffer += generateNextLine(state, level);
|
|
142903
|
+
}
|
|
142904
|
+
objectKey = objectKeyList[index];
|
|
142905
|
+
objectValue = object2[objectKey];
|
|
142906
|
+
if (state.replacer) {
|
|
142907
|
+
objectValue = state.replacer.call(object2, objectKey, objectValue);
|
|
142908
|
+
}
|
|
142909
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
142910
|
+
continue;
|
|
142911
|
+
}
|
|
142912
|
+
explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
142913
|
+
if (explicitPair) {
|
|
142914
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
142915
|
+
pairBuffer += "?";
|
|
142916
|
+
} else {
|
|
142917
|
+
pairBuffer += "? ";
|
|
142918
|
+
}
|
|
142919
|
+
}
|
|
142920
|
+
pairBuffer += state.dump;
|
|
142921
|
+
if (explicitPair) {
|
|
142922
|
+
pairBuffer += generateNextLine(state, level);
|
|
142923
|
+
}
|
|
142924
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
142925
|
+
continue;
|
|
142926
|
+
}
|
|
142927
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
142928
|
+
pairBuffer += ":";
|
|
142929
|
+
} else {
|
|
142930
|
+
pairBuffer += ": ";
|
|
142931
|
+
}
|
|
142932
|
+
pairBuffer += state.dump;
|
|
142933
|
+
_result += pairBuffer;
|
|
142934
|
+
}
|
|
142935
|
+
state.tag = _tag;
|
|
142936
|
+
state.dump = _result || "{}";
|
|
142937
|
+
}
|
|
142938
|
+
function detectType(state, object2, explicit) {
|
|
142939
|
+
var _result, typeList, index, length, type, style;
|
|
142940
|
+
typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
142941
|
+
for (index = 0, length = typeList.length;index < length; index += 1) {
|
|
142942
|
+
type = typeList[index];
|
|
142943
|
+
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object2 === "object" && object2 instanceof type.instanceOf) && (!type.predicate || type.predicate(object2))) {
|
|
142944
|
+
if (explicit) {
|
|
142945
|
+
if (type.multi && type.representName) {
|
|
142946
|
+
state.tag = type.representName(object2);
|
|
142947
|
+
} else {
|
|
142948
|
+
state.tag = type.tag;
|
|
142949
|
+
}
|
|
142950
|
+
} else {
|
|
142951
|
+
state.tag = "?";
|
|
142952
|
+
}
|
|
142953
|
+
if (type.represent) {
|
|
142954
|
+
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
142955
|
+
if (_toString.call(type.represent) === "[object Function]") {
|
|
142956
|
+
_result = type.represent(object2, style);
|
|
142957
|
+
} else if (_hasOwnProperty.call(type.represent, style)) {
|
|
142958
|
+
_result = type.represent[style](object2, style);
|
|
142959
|
+
} else {
|
|
142960
|
+
throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
|
|
142961
|
+
}
|
|
142962
|
+
state.dump = _result;
|
|
142963
|
+
}
|
|
142964
|
+
return true;
|
|
142965
|
+
}
|
|
142966
|
+
}
|
|
142967
|
+
return false;
|
|
142968
|
+
}
|
|
142969
|
+
function writeNode(state, level, object2, block, compact, iskey, isblockseq) {
|
|
142970
|
+
state.tag = null;
|
|
142971
|
+
state.dump = object2;
|
|
142972
|
+
if (!detectType(state, object2, false)) {
|
|
142973
|
+
detectType(state, object2, true);
|
|
142974
|
+
}
|
|
142975
|
+
var type = _toString.call(state.dump);
|
|
142976
|
+
var inblock = block;
|
|
142977
|
+
var tagStr;
|
|
142978
|
+
if (block) {
|
|
142979
|
+
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
142980
|
+
}
|
|
142981
|
+
var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
|
|
142982
|
+
if (objectOrArray) {
|
|
142983
|
+
duplicateIndex = state.duplicates.indexOf(object2);
|
|
142984
|
+
duplicate = duplicateIndex !== -1;
|
|
142985
|
+
}
|
|
142986
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
142987
|
+
compact = false;
|
|
142988
|
+
}
|
|
142989
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
142990
|
+
state.dump = "*ref_" + duplicateIndex;
|
|
142991
|
+
} else {
|
|
142992
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
142993
|
+
state.usedDuplicates[duplicateIndex] = true;
|
|
142994
|
+
}
|
|
142995
|
+
if (type === "[object Object]") {
|
|
142996
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
142997
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
142998
|
+
if (duplicate) {
|
|
142999
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
143000
|
+
}
|
|
143001
|
+
} else {
|
|
143002
|
+
writeFlowMapping(state, level, state.dump);
|
|
143003
|
+
if (duplicate) {
|
|
143004
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
143005
|
+
}
|
|
143006
|
+
}
|
|
143007
|
+
} else if (type === "[object Array]") {
|
|
143008
|
+
if (block && state.dump.length !== 0) {
|
|
143009
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
143010
|
+
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
143011
|
+
} else {
|
|
143012
|
+
writeBlockSequence(state, level, state.dump, compact);
|
|
143013
|
+
}
|
|
143014
|
+
if (duplicate) {
|
|
143015
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
143016
|
+
}
|
|
143017
|
+
} else {
|
|
143018
|
+
writeFlowSequence(state, level, state.dump);
|
|
143019
|
+
if (duplicate) {
|
|
143020
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
143021
|
+
}
|
|
143022
|
+
}
|
|
143023
|
+
} else if (type === "[object String]") {
|
|
143024
|
+
if (state.tag !== "?") {
|
|
143025
|
+
writeScalar(state, state.dump, level, iskey, inblock);
|
|
143026
|
+
}
|
|
143027
|
+
} else if (type === "[object Undefined]") {
|
|
143028
|
+
return false;
|
|
143029
|
+
} else {
|
|
143030
|
+
if (state.skipInvalid)
|
|
143031
|
+
return false;
|
|
143032
|
+
throw new YAMLException("unacceptable kind of an object to dump " + type);
|
|
143033
|
+
}
|
|
143034
|
+
if (state.tag !== null && state.tag !== "?") {
|
|
143035
|
+
tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
143036
|
+
if (state.tag[0] === "!") {
|
|
143037
|
+
tagStr = "!" + tagStr;
|
|
143038
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
143039
|
+
tagStr = "!!" + tagStr.slice(18);
|
|
143040
|
+
} else {
|
|
143041
|
+
tagStr = "!<" + tagStr + ">";
|
|
143042
|
+
}
|
|
143043
|
+
state.dump = tagStr + " " + state.dump;
|
|
143044
|
+
}
|
|
143045
|
+
}
|
|
143046
|
+
return true;
|
|
143047
|
+
}
|
|
143048
|
+
function getDuplicateReferences(object2, state) {
|
|
143049
|
+
var objects = [], duplicatesIndexes = [], index, length;
|
|
143050
|
+
inspectNode(object2, objects, duplicatesIndexes);
|
|
143051
|
+
for (index = 0, length = duplicatesIndexes.length;index < length; index += 1) {
|
|
143052
|
+
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
143053
|
+
}
|
|
143054
|
+
state.usedDuplicates = new Array(length);
|
|
143055
|
+
}
|
|
143056
|
+
function inspectNode(object2, objects, duplicatesIndexes) {
|
|
143057
|
+
var objectKeyList, index, length;
|
|
143058
|
+
if (object2 !== null && typeof object2 === "object") {
|
|
143059
|
+
index = objects.indexOf(object2);
|
|
143060
|
+
if (index !== -1) {
|
|
143061
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
143062
|
+
duplicatesIndexes.push(index);
|
|
143063
|
+
}
|
|
143064
|
+
} else {
|
|
143065
|
+
objects.push(object2);
|
|
143066
|
+
if (Array.isArray(object2)) {
|
|
143067
|
+
for (index = 0, length = object2.length;index < length; index += 1) {
|
|
143068
|
+
inspectNode(object2[index], objects, duplicatesIndexes);
|
|
143069
|
+
}
|
|
143070
|
+
} else {
|
|
143071
|
+
objectKeyList = Object.keys(object2);
|
|
143072
|
+
for (index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
143073
|
+
inspectNode(object2[objectKeyList[index]], objects, duplicatesIndexes);
|
|
143074
|
+
}
|
|
143075
|
+
}
|
|
143076
|
+
}
|
|
143077
|
+
}
|
|
143078
|
+
}
|
|
143079
|
+
function dump(input, options8) {
|
|
143080
|
+
options8 = options8 || {};
|
|
143081
|
+
var state = new State(options8);
|
|
143082
|
+
if (!state.noRefs)
|
|
143083
|
+
getDuplicateReferences(input, state);
|
|
143084
|
+
var value = input;
|
|
143085
|
+
if (state.replacer) {
|
|
143086
|
+
value = state.replacer.call({ "": value }, "", value);
|
|
143087
|
+
}
|
|
143088
|
+
if (writeNode(state, 0, value, true, true))
|
|
143089
|
+
return state.dump + `
|
|
143090
|
+
`;
|
|
143091
|
+
return "";
|
|
143092
|
+
}
|
|
143093
|
+
exports.dump = dump;
|
|
143094
|
+
});
|
|
143095
|
+
|
|
143096
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml/index.js
|
|
143097
|
+
var require_js_yaml4 = __commonJS((exports, module) => {
|
|
143098
|
+
var loader = require_loader3();
|
|
143099
|
+
var dumper = require_dumper3();
|
|
143100
|
+
function renamed(from, to5) {
|
|
143101
|
+
return function() {
|
|
143102
|
+
throw new Error("Function yaml." + from + " is removed in js-yaml 4. " + "Use yaml." + to5 + " instead, which is now safe by default.");
|
|
143103
|
+
};
|
|
143104
|
+
}
|
|
143105
|
+
exports.Type = require_type3();
|
|
143106
|
+
exports.Schema = require_schema6();
|
|
143107
|
+
exports.FAILSAFE_SCHEMA = require_failsafe3();
|
|
143108
|
+
exports.JSON_SCHEMA = require_json4();
|
|
143109
|
+
exports.CORE_SCHEMA = require_json4();
|
|
143110
|
+
exports.DEFAULT_SCHEMA = require_default2();
|
|
143111
|
+
exports.load = loader.load;
|
|
143112
|
+
exports.loadAll = loader.loadAll;
|
|
143113
|
+
exports.dump = dumper.dump;
|
|
143114
|
+
exports.YAMLException = require_exception3();
|
|
143115
|
+
exports.types = {
|
|
143116
|
+
binary: require_binary4(),
|
|
143117
|
+
float: require_float5(),
|
|
143118
|
+
map: require_map5(),
|
|
143119
|
+
null: require_null4(),
|
|
143120
|
+
pairs: require_pairs4(),
|
|
143121
|
+
set: require_set4(),
|
|
143122
|
+
timestamp: require_timestamp4(),
|
|
143123
|
+
bool: require_bool5(),
|
|
143124
|
+
int: require_int5(),
|
|
143125
|
+
merge: require_merge6(),
|
|
143126
|
+
omap: require_omap4(),
|
|
143127
|
+
seq: require_seq4(),
|
|
143128
|
+
str: require_str3()
|
|
143129
|
+
};
|
|
143130
|
+
exports.safeLoad = renamed("safeLoad", "load");
|
|
143131
|
+
exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
143132
|
+
exports.safeDump = renamed("safeDump", "dump");
|
|
143133
|
+
});
|
|
143134
|
+
|
|
143135
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/yaml.js
|
|
143136
|
+
var require_yaml = __commonJS((exports) => {
|
|
143137
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
143138
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
143139
|
+
};
|
|
143140
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143141
|
+
var errors_js_1 = require_errors2();
|
|
143142
|
+
var js_yaml_1 = __importDefault(require_js_yaml4());
|
|
143143
|
+
var js_yaml_2 = require_js_yaml4();
|
|
143144
|
+
exports.default = {
|
|
143145
|
+
order: 200,
|
|
143146
|
+
allowEmpty: true,
|
|
143147
|
+
canParse: [".yaml", ".yml", ".json"],
|
|
143148
|
+
async parse(file2) {
|
|
143149
|
+
let data = file2.data;
|
|
143150
|
+
if (Buffer.isBuffer(data)) {
|
|
143151
|
+
data = data.toString();
|
|
143152
|
+
}
|
|
143153
|
+
if (typeof data === "string") {
|
|
143154
|
+
try {
|
|
143155
|
+
return js_yaml_1.default.load(data, { schema: js_yaml_2.JSON_SCHEMA });
|
|
143156
|
+
} catch (e8) {
|
|
143157
|
+
throw new errors_js_1.ParserError(e8?.message || "Parser Error", file2.url);
|
|
143158
|
+
}
|
|
143159
|
+
} else {
|
|
143160
|
+
return data;
|
|
143161
|
+
}
|
|
143162
|
+
}
|
|
143163
|
+
};
|
|
143164
|
+
});
|
|
143165
|
+
|
|
143166
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/text.js
|
|
143167
|
+
var require_text = __commonJS((exports) => {
|
|
143168
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143169
|
+
var errors_js_1 = require_errors2();
|
|
143170
|
+
var TEXT_REGEXP = /\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;
|
|
143171
|
+
exports.default = {
|
|
143172
|
+
order: 300,
|
|
143173
|
+
allowEmpty: true,
|
|
143174
|
+
encoding: "utf8",
|
|
143175
|
+
canParse(file2) {
|
|
143176
|
+
return (typeof file2.data === "string" || Buffer.isBuffer(file2.data)) && TEXT_REGEXP.test(file2.url);
|
|
143177
|
+
},
|
|
143178
|
+
parse(file2) {
|
|
143179
|
+
if (typeof file2.data === "string") {
|
|
143180
|
+
return file2.data;
|
|
143181
|
+
} else if (Buffer.isBuffer(file2.data)) {
|
|
143182
|
+
return file2.data.toString(this.encoding);
|
|
143183
|
+
} else {
|
|
143184
|
+
throw new errors_js_1.ParserError("data is not text", file2.url);
|
|
143185
|
+
}
|
|
143186
|
+
}
|
|
143187
|
+
};
|
|
143188
|
+
});
|
|
143189
|
+
|
|
143190
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/binary.js
|
|
143191
|
+
var require_binary5 = __commonJS((exports) => {
|
|
143192
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143193
|
+
var BINARY_REGEXP = /\.(jpeg|jpg|gif|png|bmp|ico)$/i;
|
|
143194
|
+
exports.default = {
|
|
143195
|
+
order: 400,
|
|
143196
|
+
allowEmpty: true,
|
|
143197
|
+
canParse(file2) {
|
|
143198
|
+
return Buffer.isBuffer(file2.data) && BINARY_REGEXP.test(file2.url);
|
|
143199
|
+
},
|
|
143200
|
+
parse(file2) {
|
|
143201
|
+
if (Buffer.isBuffer(file2.data)) {
|
|
143202
|
+
return file2.data;
|
|
143203
|
+
} else {
|
|
143204
|
+
return Buffer.from(file2.data);
|
|
143205
|
+
}
|
|
143206
|
+
}
|
|
143207
|
+
};
|
|
143208
|
+
});
|
|
143209
|
+
|
|
143210
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/file.js
|
|
143211
|
+
var require_file = __commonJS((exports) => {
|
|
143212
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o5, m7, k9, k24) {
|
|
143213
|
+
if (k24 === undefined)
|
|
143214
|
+
k24 = k9;
|
|
143215
|
+
var desc2 = Object.getOwnPropertyDescriptor(m7, k9);
|
|
143216
|
+
if (!desc2 || ("get" in desc2 ? !m7.__esModule : desc2.writable || desc2.configurable)) {
|
|
143217
|
+
desc2 = { enumerable: true, get: function() {
|
|
143218
|
+
return m7[k9];
|
|
143219
|
+
} };
|
|
143220
|
+
}
|
|
143221
|
+
Object.defineProperty(o5, k24, desc2);
|
|
143222
|
+
} : function(o5, m7, k9, k24) {
|
|
143223
|
+
if (k24 === undefined)
|
|
143224
|
+
k24 = k9;
|
|
143225
|
+
o5[k24] = m7[k9];
|
|
143226
|
+
});
|
|
143227
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o5, v10) {
|
|
143228
|
+
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
143229
|
+
} : function(o5, v10) {
|
|
143230
|
+
o5["default"] = v10;
|
|
143231
|
+
});
|
|
143232
|
+
var __importStar = exports && exports.__importStar || function() {
|
|
143233
|
+
var ownKeys = function(o5) {
|
|
143234
|
+
ownKeys = Object.getOwnPropertyNames || function(o7) {
|
|
143235
|
+
var ar9 = [];
|
|
143236
|
+
for (var k9 in o7)
|
|
143237
|
+
if (Object.prototype.hasOwnProperty.call(o7, k9))
|
|
143238
|
+
ar9[ar9.length] = k9;
|
|
143239
|
+
return ar9;
|
|
143240
|
+
};
|
|
143241
|
+
return ownKeys(o5);
|
|
143242
|
+
};
|
|
143243
|
+
return function(mod) {
|
|
143244
|
+
if (mod && mod.__esModule)
|
|
143245
|
+
return mod;
|
|
143246
|
+
var result = {};
|
|
143247
|
+
if (mod != null) {
|
|
143248
|
+
for (var k9 = ownKeys(mod), i5 = 0;i5 < k9.length; i5++)
|
|
143249
|
+
if (k9[i5] !== "default")
|
|
143250
|
+
__createBinding(result, mod, k9[i5]);
|
|
143251
|
+
}
|
|
143252
|
+
__setModuleDefault(result, mod);
|
|
143253
|
+
return result;
|
|
143254
|
+
};
|
|
143255
|
+
}();
|
|
143256
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
143257
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
143258
|
+
};
|
|
143259
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143260
|
+
var fs_1 = __importDefault(__require("fs"));
|
|
143261
|
+
var ono_1 = require_cjs();
|
|
143262
|
+
var url3 = __importStar(require_url());
|
|
143263
|
+
var errors_js_1 = require_errors2();
|
|
143264
|
+
exports.default = {
|
|
143265
|
+
order: 100,
|
|
143266
|
+
canRead(file2) {
|
|
143267
|
+
return url3.isFileSystemPath(file2.url);
|
|
143268
|
+
},
|
|
143269
|
+
async read(file2) {
|
|
143270
|
+
let path18;
|
|
143271
|
+
try {
|
|
143272
|
+
path18 = url3.toFileSystemPath(file2.url);
|
|
143273
|
+
} catch (err) {
|
|
143274
|
+
throw new errors_js_1.ResolverError(ono_1.ono.uri(err, `Malformed URI: ${file2.url}`), file2.url);
|
|
143275
|
+
}
|
|
143276
|
+
try {
|
|
143277
|
+
return await fs_1.default.promises.readFile(path18);
|
|
143278
|
+
} catch (err) {
|
|
143279
|
+
throw new errors_js_1.ResolverError((0, ono_1.ono)(err, `Error opening file "${path18}"`), path18);
|
|
143280
|
+
}
|
|
143281
|
+
}
|
|
143282
|
+
};
|
|
143283
|
+
});
|
|
143284
|
+
|
|
143285
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/http.js
|
|
143286
|
+
var require_http = __commonJS((exports) => {
|
|
143287
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o5, m7, k9, k24) {
|
|
143288
|
+
if (k24 === undefined)
|
|
143289
|
+
k24 = k9;
|
|
143290
|
+
var desc2 = Object.getOwnPropertyDescriptor(m7, k9);
|
|
143291
|
+
if (!desc2 || ("get" in desc2 ? !m7.__esModule : desc2.writable || desc2.configurable)) {
|
|
143292
|
+
desc2 = { enumerable: true, get: function() {
|
|
143293
|
+
return m7[k9];
|
|
143294
|
+
} };
|
|
143295
|
+
}
|
|
143296
|
+
Object.defineProperty(o5, k24, desc2);
|
|
143297
|
+
} : function(o5, m7, k9, k24) {
|
|
143298
|
+
if (k24 === undefined)
|
|
143299
|
+
k24 = k9;
|
|
143300
|
+
o5[k24] = m7[k9];
|
|
143301
|
+
});
|
|
143302
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o5, v10) {
|
|
143303
|
+
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
143304
|
+
} : function(o5, v10) {
|
|
143305
|
+
o5["default"] = v10;
|
|
143306
|
+
});
|
|
143307
|
+
var __importStar = exports && exports.__importStar || function() {
|
|
143308
|
+
var ownKeys = function(o5) {
|
|
143309
|
+
ownKeys = Object.getOwnPropertyNames || function(o7) {
|
|
143310
|
+
var ar9 = [];
|
|
143311
|
+
for (var k9 in o7)
|
|
143312
|
+
if (Object.prototype.hasOwnProperty.call(o7, k9))
|
|
143313
|
+
ar9[ar9.length] = k9;
|
|
143314
|
+
return ar9;
|
|
143315
|
+
};
|
|
143316
|
+
return ownKeys(o5);
|
|
143317
|
+
};
|
|
143318
|
+
return function(mod) {
|
|
143319
|
+
if (mod && mod.__esModule)
|
|
143320
|
+
return mod;
|
|
143321
|
+
var result = {};
|
|
143322
|
+
if (mod != null) {
|
|
143323
|
+
for (var k9 = ownKeys(mod), i5 = 0;i5 < k9.length; i5++)
|
|
143324
|
+
if (k9[i5] !== "default")
|
|
143325
|
+
__createBinding(result, mod, k9[i5]);
|
|
143326
|
+
}
|
|
143327
|
+
__setModuleDefault(result, mod);
|
|
143328
|
+
return result;
|
|
143329
|
+
};
|
|
143330
|
+
}();
|
|
143331
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143332
|
+
var ono_1 = require_cjs();
|
|
143333
|
+
var url3 = __importStar(require_url());
|
|
143334
|
+
var errors_js_1 = require_errors2();
|
|
143335
|
+
exports.default = {
|
|
143336
|
+
order: 200,
|
|
143337
|
+
headers: null,
|
|
143338
|
+
timeout: 60000,
|
|
143339
|
+
redirects: 5,
|
|
143340
|
+
withCredentials: false,
|
|
143341
|
+
canRead(file2) {
|
|
143342
|
+
return url3.isHttp(file2.url);
|
|
143343
|
+
},
|
|
143344
|
+
read(file2) {
|
|
143345
|
+
const u4 = url3.parse(file2.url);
|
|
143346
|
+
if (typeof window !== "undefined" && !u4.protocol) {
|
|
143347
|
+
u4.protocol = url3.parse(location.href).protocol;
|
|
143348
|
+
}
|
|
143349
|
+
return download(u4, this);
|
|
143350
|
+
}
|
|
143351
|
+
};
|
|
143352
|
+
async function download(u4, httpOptions, _redirects) {
|
|
143353
|
+
u4 = url3.parse(u4);
|
|
143354
|
+
const redirects = _redirects || [];
|
|
143355
|
+
redirects.push(u4.href);
|
|
143356
|
+
try {
|
|
143357
|
+
const res = await get(u4, httpOptions);
|
|
143358
|
+
if (res.status >= 400) {
|
|
143359
|
+
throw (0, ono_1.ono)({ status: res.status }, `HTTP ERROR ${res.status}`);
|
|
143360
|
+
} else if (res.status >= 300) {
|
|
143361
|
+
if (!Number.isNaN(httpOptions.redirects) && redirects.length > httpOptions.redirects) {
|
|
143362
|
+
throw new errors_js_1.ResolverError((0, ono_1.ono)({ status: res.status }, `Error downloading ${redirects[0]}.
|
|
143363
|
+
Too many redirects:
|
|
143364
|
+
${redirects.join(`
|
|
143365
|
+
`)}`));
|
|
143366
|
+
} else if (!("location" in res.headers) || !res.headers.location) {
|
|
143367
|
+
throw (0, ono_1.ono)({ status: res.status }, `HTTP ${res.status} redirect with no location header`);
|
|
143368
|
+
} else {
|
|
143369
|
+
const redirectTo = url3.resolve(u4.href, res.headers.location);
|
|
143370
|
+
return download(redirectTo, httpOptions, redirects);
|
|
143371
|
+
}
|
|
143372
|
+
} else {
|
|
143373
|
+
if (res.body) {
|
|
143374
|
+
const buf = await res.arrayBuffer();
|
|
143375
|
+
return Buffer.from(buf);
|
|
143376
|
+
}
|
|
143377
|
+
return Buffer.alloc(0);
|
|
143378
|
+
}
|
|
143379
|
+
} catch (err) {
|
|
143380
|
+
throw new errors_js_1.ResolverError((0, ono_1.ono)(err, `Error downloading ${u4.href}`), u4.href);
|
|
143381
|
+
}
|
|
143382
|
+
}
|
|
143383
|
+
async function get(u4, httpOptions) {
|
|
143384
|
+
let controller;
|
|
143385
|
+
let timeoutId;
|
|
143386
|
+
if (httpOptions.timeout) {
|
|
143387
|
+
controller = new AbortController;
|
|
143388
|
+
timeoutId = setTimeout(() => controller.abort(), httpOptions.timeout);
|
|
143389
|
+
}
|
|
143390
|
+
const response = await fetch(u4, {
|
|
143391
|
+
method: "GET",
|
|
143392
|
+
headers: httpOptions.headers || {},
|
|
143393
|
+
credentials: httpOptions.withCredentials ? "include" : "same-origin",
|
|
143394
|
+
signal: controller ? controller.signal : null
|
|
143395
|
+
});
|
|
143396
|
+
if (timeoutId) {
|
|
143397
|
+
clearTimeout(timeoutId);
|
|
143398
|
+
}
|
|
143399
|
+
return response;
|
|
143400
|
+
}
|
|
143401
|
+
});
|
|
143402
|
+
|
|
143403
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/options.js
|
|
143404
|
+
var require_options = __commonJS((exports) => {
|
|
143405
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
143406
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
143407
|
+
};
|
|
143408
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143409
|
+
exports.getNewOptions = exports.getJsonSchemaRefParserDefaultOptions = undefined;
|
|
143410
|
+
var json_js_1 = __importDefault(require_json3());
|
|
143411
|
+
var yaml_js_1 = __importDefault(require_yaml());
|
|
143412
|
+
var text_js_1 = __importDefault(require_text());
|
|
143413
|
+
var binary_js_1 = __importDefault(require_binary5());
|
|
143414
|
+
var file_js_1 = __importDefault(require_file());
|
|
143415
|
+
var http_js_1 = __importDefault(require_http());
|
|
143416
|
+
var getJsonSchemaRefParserDefaultOptions = () => {
|
|
143417
|
+
const defaults = {
|
|
143418
|
+
parse: {
|
|
143419
|
+
json: { ...json_js_1.default },
|
|
143420
|
+
yaml: { ...yaml_js_1.default },
|
|
143421
|
+
text: { ...text_js_1.default },
|
|
143422
|
+
binary: { ...binary_js_1.default }
|
|
143423
|
+
},
|
|
143424
|
+
resolve: {
|
|
143425
|
+
file: { ...file_js_1.default },
|
|
143426
|
+
http: { ...http_js_1.default },
|
|
143427
|
+
external: true
|
|
143428
|
+
},
|
|
143429
|
+
continueOnError: false,
|
|
143430
|
+
dereference: {
|
|
143431
|
+
circular: true,
|
|
143432
|
+
excludedPathMatcher: () => false,
|
|
143433
|
+
referenceResolution: "relative"
|
|
143434
|
+
},
|
|
143435
|
+
mutateInputSchema: true
|
|
143436
|
+
};
|
|
143437
|
+
return defaults;
|
|
143438
|
+
};
|
|
143439
|
+
exports.getJsonSchemaRefParserDefaultOptions = getJsonSchemaRefParserDefaultOptions;
|
|
143440
|
+
var getNewOptions = (options8) => {
|
|
143441
|
+
const newOptions = (0, exports.getJsonSchemaRefParserDefaultOptions)();
|
|
143442
|
+
if (options8) {
|
|
143443
|
+
merge3(newOptions, options8);
|
|
143444
|
+
}
|
|
143445
|
+
return newOptions;
|
|
143446
|
+
};
|
|
143447
|
+
exports.getNewOptions = getNewOptions;
|
|
143448
|
+
function merge3(target, source2) {
|
|
143449
|
+
if (isMergeable(source2)) {
|
|
143450
|
+
const keys = Object.keys(source2).filter((key2) => !["__proto__", "constructor", "prototype"].includes(key2));
|
|
143451
|
+
for (let i5 = 0;i5 < keys.length; i5++) {
|
|
143452
|
+
const key2 = keys[i5];
|
|
143453
|
+
const sourceSetting = source2[key2];
|
|
143454
|
+
const targetSetting = target[key2];
|
|
143455
|
+
if (isMergeable(sourceSetting)) {
|
|
143456
|
+
target[key2] = merge3(targetSetting || {}, sourceSetting);
|
|
143457
|
+
} else if (sourceSetting !== undefined) {
|
|
143458
|
+
target[key2] = sourceSetting;
|
|
143459
|
+
}
|
|
143460
|
+
}
|
|
143461
|
+
}
|
|
143462
|
+
return target;
|
|
143463
|
+
}
|
|
143464
|
+
function isMergeable(val) {
|
|
143465
|
+
return val && typeof val === "object" && !Array.isArray(val) && !(val instanceof RegExp) && !(val instanceof Date);
|
|
143466
|
+
}
|
|
143467
|
+
});
|
|
143468
|
+
|
|
143469
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/normalize-args.js
|
|
143470
|
+
var require_normalize_args = __commonJS((exports) => {
|
|
143471
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143472
|
+
exports.normalizeArgs = normalizeArgs;
|
|
143473
|
+
var options_js_1 = require_options();
|
|
143474
|
+
function normalizeArgs(_args) {
|
|
143475
|
+
let path18;
|
|
143476
|
+
let schema9;
|
|
143477
|
+
let options8;
|
|
143478
|
+
let callback;
|
|
143479
|
+
const args = Array.prototype.slice.call(_args);
|
|
143480
|
+
if (typeof args[args.length - 1] === "function") {
|
|
143481
|
+
callback = args.pop();
|
|
143482
|
+
}
|
|
143483
|
+
if (typeof args[0] === "string") {
|
|
143484
|
+
path18 = args[0];
|
|
143485
|
+
if (typeof args[2] === "object") {
|
|
143486
|
+
schema9 = args[1];
|
|
143487
|
+
options8 = args[2];
|
|
143488
|
+
} else {
|
|
143489
|
+
schema9 = undefined;
|
|
143490
|
+
options8 = args[1];
|
|
143491
|
+
}
|
|
143492
|
+
} else {
|
|
143493
|
+
path18 = "";
|
|
143494
|
+
schema9 = args[0];
|
|
143495
|
+
options8 = args[1];
|
|
143496
|
+
}
|
|
143497
|
+
try {
|
|
143498
|
+
options8 = (0, options_js_1.getNewOptions)(options8);
|
|
143499
|
+
} catch (e8) {
|
|
143500
|
+
console.error(`JSON Schema Ref Parser: Error normalizing options: ${e8}`);
|
|
143501
|
+
}
|
|
143502
|
+
if (!options8.mutateInputSchema && typeof schema9 === "object") {
|
|
143503
|
+
schema9 = JSON.parse(JSON.stringify(schema9));
|
|
143504
|
+
}
|
|
143505
|
+
return {
|
|
143506
|
+
path: path18,
|
|
143507
|
+
schema: schema9,
|
|
143508
|
+
options: options8,
|
|
143509
|
+
callback
|
|
143510
|
+
};
|
|
143511
|
+
}
|
|
143512
|
+
exports.default = normalizeArgs;
|
|
143513
|
+
});
|
|
143514
|
+
|
|
143515
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolve-external.js
|
|
143516
|
+
var require_resolve_external = __commonJS((exports) => {
|
|
143517
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o5, m7, k9, k24) {
|
|
143518
|
+
if (k24 === undefined)
|
|
143519
|
+
k24 = k9;
|
|
143520
|
+
var desc2 = Object.getOwnPropertyDescriptor(m7, k9);
|
|
143521
|
+
if (!desc2 || ("get" in desc2 ? !m7.__esModule : desc2.writable || desc2.configurable)) {
|
|
143522
|
+
desc2 = { enumerable: true, get: function() {
|
|
143523
|
+
return m7[k9];
|
|
143524
|
+
} };
|
|
143525
|
+
}
|
|
143526
|
+
Object.defineProperty(o5, k24, desc2);
|
|
143527
|
+
} : function(o5, m7, k9, k24) {
|
|
143528
|
+
if (k24 === undefined)
|
|
143529
|
+
k24 = k9;
|
|
143530
|
+
o5[k24] = m7[k9];
|
|
143531
|
+
});
|
|
143532
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o5, v10) {
|
|
143533
|
+
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
143534
|
+
} : function(o5, v10) {
|
|
143535
|
+
o5["default"] = v10;
|
|
143536
|
+
});
|
|
143537
|
+
var __importStar = exports && exports.__importStar || function() {
|
|
143538
|
+
var ownKeys = function(o5) {
|
|
143539
|
+
ownKeys = Object.getOwnPropertyNames || function(o7) {
|
|
143540
|
+
var ar9 = [];
|
|
143541
|
+
for (var k9 in o7)
|
|
143542
|
+
if (Object.prototype.hasOwnProperty.call(o7, k9))
|
|
143543
|
+
ar9[ar9.length] = k9;
|
|
143544
|
+
return ar9;
|
|
143545
|
+
};
|
|
143546
|
+
return ownKeys(o5);
|
|
143547
|
+
};
|
|
143548
|
+
return function(mod) {
|
|
143549
|
+
if (mod && mod.__esModule)
|
|
143550
|
+
return mod;
|
|
143551
|
+
var result = {};
|
|
143552
|
+
if (mod != null) {
|
|
143553
|
+
for (var k9 = ownKeys(mod), i5 = 0;i5 < k9.length; i5++)
|
|
143554
|
+
if (k9[i5] !== "default")
|
|
143555
|
+
__createBinding(result, mod, k9[i5]);
|
|
143556
|
+
}
|
|
143557
|
+
__setModuleDefault(result, mod);
|
|
143558
|
+
return result;
|
|
143559
|
+
};
|
|
143560
|
+
}();
|
|
143561
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
143562
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
143563
|
+
};
|
|
143564
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143565
|
+
var ref_js_1 = __importDefault(require_ref());
|
|
143566
|
+
var pointer_js_1 = __importDefault(require_pointer());
|
|
143567
|
+
var parse_js_1 = __importDefault(require_parse6());
|
|
143568
|
+
var url3 = __importStar(require_url());
|
|
143569
|
+
var errors_js_1 = require_errors2();
|
|
143570
|
+
function resolveExternal(parser2, options8) {
|
|
143571
|
+
if (!options8.resolve?.external) {
|
|
143572
|
+
return Promise.resolve();
|
|
143573
|
+
}
|
|
143574
|
+
try {
|
|
143575
|
+
const promises = crawl(parser2.schema, parser2.$refs._root$Ref.path + "#", parser2.$refs, options8);
|
|
143576
|
+
return Promise.all(promises);
|
|
143577
|
+
} catch (e8) {
|
|
143578
|
+
return Promise.reject(e8);
|
|
143579
|
+
}
|
|
143580
|
+
}
|
|
143581
|
+
function crawl(obj, path18, $refs, options8, seen, external2) {
|
|
143582
|
+
seen || (seen = new Set);
|
|
143583
|
+
let promises = [];
|
|
143584
|
+
if (obj && typeof obj === "object" && !ArrayBuffer.isView(obj) && !seen.has(obj)) {
|
|
143585
|
+
seen.add(obj);
|
|
143586
|
+
if (ref_js_1.default.isExternal$Ref(obj)) {
|
|
143587
|
+
promises.push(resolve$Ref(obj, path18, $refs, options8));
|
|
143588
|
+
}
|
|
143589
|
+
const keys = Object.keys(obj);
|
|
143590
|
+
for (const key2 of keys) {
|
|
143591
|
+
const keyPath = pointer_js_1.default.join(path18, key2);
|
|
143592
|
+
const value = obj[key2];
|
|
143593
|
+
promises = promises.concat(crawl(value, keyPath, $refs, options8, seen, external2));
|
|
143594
|
+
}
|
|
143595
|
+
}
|
|
143596
|
+
return promises;
|
|
143597
|
+
}
|
|
143598
|
+
async function resolve$Ref($ref, path18, $refs, options8) {
|
|
143599
|
+
const shouldResolveOnCwd = options8.dereference?.externalReferenceResolution === "root";
|
|
143600
|
+
const resolvedPath = url3.resolve(shouldResolveOnCwd ? url3.cwd() : path18, $ref.$ref);
|
|
143601
|
+
const withoutHash = url3.stripHash(resolvedPath);
|
|
143602
|
+
const ref = $refs._$refs[withoutHash];
|
|
143603
|
+
if (ref) {
|
|
143604
|
+
return Promise.resolve(ref.value);
|
|
143605
|
+
}
|
|
143606
|
+
try {
|
|
143607
|
+
const result = await (0, parse_js_1.default)(resolvedPath, $refs, options8);
|
|
143608
|
+
const promises = crawl(result, withoutHash + "#", $refs, options8, new Set, true);
|
|
143609
|
+
return Promise.all(promises);
|
|
143610
|
+
} catch (err) {
|
|
143611
|
+
if (!options8?.continueOnError || !(0, errors_js_1.isHandledError)(err)) {
|
|
143612
|
+
throw err;
|
|
143613
|
+
}
|
|
143614
|
+
if ($refs._$refs[withoutHash]) {
|
|
143615
|
+
err.source = decodeURI(url3.stripHash(path18));
|
|
143616
|
+
err.path = url3.safePointerToPath(url3.getHash(path18));
|
|
143617
|
+
}
|
|
143618
|
+
return [];
|
|
143619
|
+
}
|
|
143620
|
+
}
|
|
143621
|
+
exports.default = resolveExternal;
|
|
143622
|
+
});
|
|
143623
|
+
|
|
143624
|
+
// ../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/bundle.js
|
|
143625
|
+
var require_bundle = __commonJS((exports) => {
|
|
143626
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o5, m7, k9, k24) {
|
|
143627
|
+
if (k24 === undefined)
|
|
143628
|
+
k24 = k9;
|
|
143629
|
+
var desc2 = Object.getOwnPropertyDescriptor(m7, k9);
|
|
143630
|
+
if (!desc2 || ("get" in desc2 ? !m7.__esModule : desc2.writable || desc2.configurable)) {
|
|
143631
|
+
desc2 = { enumerable: true, get: function() {
|
|
143632
|
+
return m7[k9];
|
|
143633
|
+
} };
|
|
143634
|
+
}
|
|
143635
|
+
Object.defineProperty(o5, k24, desc2);
|
|
143636
|
+
} : function(o5, m7, k9, k24) {
|
|
143637
|
+
if (k24 === undefined)
|
|
143638
|
+
k24 = k9;
|
|
143639
|
+
o5[k24] = m7[k9];
|
|
143640
|
+
});
|
|
143641
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o5, v10) {
|
|
143642
|
+
Object.defineProperty(o5, "default", { enumerable: true, value: v10 });
|
|
143643
|
+
} : function(o5, v10) {
|
|
143644
|
+
o5["default"] = v10;
|
|
143645
|
+
});
|
|
143646
|
+
var __importStar = exports && exports.__importStar || function() {
|
|
143647
|
+
var ownKeys = function(o5) {
|
|
143648
|
+
ownKeys = Object.getOwnPropertyNames || function(o7) {
|
|
143649
|
+
var ar9 = [];
|
|
143650
|
+
for (var k9 in o7)
|
|
143651
|
+
if (Object.prototype.hasOwnProperty.call(o7, k9))
|
|
143652
|
+
ar9[ar9.length] = k9;
|
|
143653
|
+
return ar9;
|
|
143654
|
+
};
|
|
143655
|
+
return ownKeys(o5);
|
|
143656
|
+
};
|
|
143657
|
+
return function(mod) {
|
|
143658
|
+
if (mod && mod.__esModule)
|
|
143659
|
+
return mod;
|
|
143660
|
+
var result = {};
|
|
143661
|
+
if (mod != null) {
|
|
143662
|
+
for (var k9 = ownKeys(mod), i5 = 0;i5 < k9.length; i5++)
|
|
143663
|
+
if (k9[i5] !== "default")
|
|
143664
|
+
__createBinding(result, mod, k9[i5]);
|
|
143665
|
+
}
|
|
143666
|
+
__setModuleDefault(result, mod);
|
|
143667
|
+
return result;
|
|
143668
|
+
};
|
|
143669
|
+
}();
|
|
143670
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
143671
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
143672
|
+
};
|
|
143673
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143674
|
+
var ref_js_1 = __importDefault(require_ref());
|
|
140900
143675
|
var pointer_js_1 = __importDefault(require_pointer());
|
|
140901
143676
|
var url3 = __importStar(require_url());
|
|
140902
143677
|
function bundle(parser2, options8) {
|
|
@@ -142220,7 +144995,7 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
142220
144995
|
});
|
|
142221
144996
|
|
|
142222
144997
|
// ../../node_modules/debug/src/common.js
|
|
142223
|
-
var
|
|
144998
|
+
var require_common7 = __commonJS((exports, module) => {
|
|
142224
144999
|
function setup(env3) {
|
|
142225
145000
|
createDebug.debug = createDebug;
|
|
142226
145001
|
createDebug.default = createDebug;
|
|
@@ -142543,7 +145318,7 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
142543
145318
|
return localStorage;
|
|
142544
145319
|
} catch (error48) {}
|
|
142545
145320
|
}
|
|
142546
|
-
module.exports =
|
|
145321
|
+
module.exports = require_common7()(exports);
|
|
142547
145322
|
var { formatters } = module.exports;
|
|
142548
145323
|
formatters.j = function(v10) {
|
|
142549
145324
|
try {
|
|
@@ -142712,7 +145487,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
142712
145487
|
debug.inspectOpts[keys[i5]] = exports.inspectOpts[keys[i5]];
|
|
142713
145488
|
}
|
|
142714
145489
|
}
|
|
142715
|
-
module.exports =
|
|
145490
|
+
module.exports = require_common7()(exports);
|
|
142716
145491
|
var { formatters } = module.exports;
|
|
142717
145492
|
formatters.o = function(v10) {
|
|
142718
145493
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -157558,7 +160333,7 @@ var require_read = __commonJS((exports, module) => {
|
|
|
157558
160333
|
});
|
|
157559
160334
|
|
|
157560
160335
|
// ../../node_modules/body-parser/lib/types/json.js
|
|
157561
|
-
var
|
|
160336
|
+
var require_json5 = __commonJS((exports, module) => {
|
|
157562
160337
|
/*!
|
|
157563
160338
|
* body-parser
|
|
157564
160339
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -157684,7 +160459,7 @@ var require_text2 = __commonJS((exports, module) => {
|
|
|
157684
160459
|
});
|
|
157685
160460
|
|
|
157686
160461
|
// ../../node_modules/es-errors/type.js
|
|
157687
|
-
var
|
|
160462
|
+
var require_type4 = __commonJS((exports, module) => {
|
|
157688
160463
|
module.exports = TypeError;
|
|
157689
160464
|
});
|
|
157690
160465
|
|
|
@@ -158221,7 +160996,7 @@ var require_object_inspect = __commonJS((exports, module) => {
|
|
|
158221
160996
|
// ../../node_modules/side-channel-list/index.js
|
|
158222
160997
|
var require_side_channel_list = __commonJS((exports, module) => {
|
|
158223
160998
|
var inspect4 = require_object_inspect();
|
|
158224
|
-
var $TypeError =
|
|
160999
|
+
var $TypeError = require_type4();
|
|
158225
161000
|
var listGetNode = function(list3, key2, isDelete) {
|
|
158226
161001
|
var prev = list3;
|
|
158227
161002
|
var curr;
|
|
@@ -158595,7 +161370,7 @@ var require_actualApply = __commonJS((exports, module) => {
|
|
|
158595
161370
|
// ../../node_modules/call-bind-apply-helpers/index.js
|
|
158596
161371
|
var require_call_bind_apply_helpers = __commonJS((exports, module) => {
|
|
158597
161372
|
var bind = require_function_bind();
|
|
158598
|
-
var $TypeError =
|
|
161373
|
+
var $TypeError = require_type4();
|
|
158599
161374
|
var $call = require_functionCall();
|
|
158600
161375
|
var $actualApply = require_actualApply();
|
|
158601
161376
|
module.exports = function callBindBasic(args) {
|
|
@@ -158660,7 +161435,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
158660
161435
|
var $RangeError = require_range();
|
|
158661
161436
|
var $ReferenceError = require_ref2();
|
|
158662
161437
|
var $SyntaxError = require_syntax();
|
|
158663
|
-
var $TypeError =
|
|
161438
|
+
var $TypeError = require_type4();
|
|
158664
161439
|
var $URIError = require_uri();
|
|
158665
161440
|
var abs = require_abs();
|
|
158666
161441
|
var floor = require_floor();
|
|
@@ -158996,7 +161771,7 @@ var require_side_channel_map = __commonJS((exports, module) => {
|
|
|
158996
161771
|
var GetIntrinsic = require_get_intrinsic();
|
|
158997
161772
|
var callBound = require_call_bound();
|
|
158998
161773
|
var inspect4 = require_object_inspect();
|
|
158999
|
-
var $TypeError =
|
|
161774
|
+
var $TypeError = require_type4();
|
|
159000
161775
|
var $Map = GetIntrinsic("%Map%", true);
|
|
159001
161776
|
var $mapGet = callBound("Map.prototype.get", true);
|
|
159002
161777
|
var $mapSet = callBound("Map.prototype.set", true);
|
|
@@ -159049,7 +161824,7 @@ var require_side_channel_weakmap = __commonJS((exports, module) => {
|
|
|
159049
161824
|
var callBound = require_call_bound();
|
|
159050
161825
|
var inspect4 = require_object_inspect();
|
|
159051
161826
|
var getSideChannelMap = require_side_channel_map();
|
|
159052
|
-
var $TypeError =
|
|
161827
|
+
var $TypeError = require_type4();
|
|
159053
161828
|
var $WeakMap = GetIntrinsic("%WeakMap%", true);
|
|
159054
161829
|
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
159055
161830
|
var $weakMapSet = callBound("WeakMap.prototype.set", true);
|
|
@@ -159112,7 +161887,7 @@ var require_side_channel_weakmap = __commonJS((exports, module) => {
|
|
|
159112
161887
|
|
|
159113
161888
|
// ../../node_modules/side-channel/index.js
|
|
159114
161889
|
var require_side_channel = __commonJS((exports, module) => {
|
|
159115
|
-
var $TypeError =
|
|
161890
|
+
var $TypeError = require_type4();
|
|
159116
161891
|
var inspect4 = require_object_inspect();
|
|
159117
161892
|
var getSideChannelList = require_side_channel_list();
|
|
159118
161893
|
var getSideChannelMap = require_side_channel_map();
|
|
@@ -160056,7 +162831,7 @@ var require_body_parser = __commonJS((exports, module) => {
|
|
|
160056
162831
|
Object.defineProperty(exports, "json", {
|
|
160057
162832
|
configurable: true,
|
|
160058
162833
|
enumerable: true,
|
|
160059
|
-
get: () =>
|
|
162834
|
+
get: () => require_json5()
|
|
160060
162835
|
});
|
|
160061
162836
|
Object.defineProperty(exports, "raw", {
|
|
160062
162837
|
configurable: true,
|
|
@@ -165496,7 +168271,7 @@ var require_requires_port = __commonJS((exports, module) => {
|
|
|
165496
168271
|
});
|
|
165497
168272
|
|
|
165498
168273
|
// ../../node_modules/http-proxy/lib/http-proxy/common.js
|
|
165499
|
-
var
|
|
168274
|
+
var require_common8 = __commonJS((exports) => {
|
|
165500
168275
|
var common2 = exports;
|
|
165501
168276
|
var url3 = __require("url");
|
|
165502
168277
|
var extend2 = __require("util")._extend;
|
|
@@ -165604,7 +168379,7 @@ var require_common7 = __commonJS((exports) => {
|
|
|
165604
168379
|
// ../../node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js
|
|
165605
168380
|
var require_web_outgoing = __commonJS((exports, module) => {
|
|
165606
168381
|
var url3 = __require("url");
|
|
165607
|
-
var common2 =
|
|
168382
|
+
var common2 = require_common8();
|
|
165608
168383
|
var redirectRegex = /^201|30(1|2|7|8)$/;
|
|
165609
168384
|
/*!
|
|
165610
168385
|
* Array of passes.
|
|
@@ -166176,7 +168951,7 @@ var require_web_incoming = __commonJS((exports, module) => {
|
|
|
166176
168951
|
var httpNative = __require("http");
|
|
166177
168952
|
var httpsNative = __require("https");
|
|
166178
168953
|
var web_o = require_web_outgoing();
|
|
166179
|
-
var common2 =
|
|
168954
|
+
var common2 = require_common8();
|
|
166180
168955
|
var followRedirects = require_follow_redirects();
|
|
166181
168956
|
web_o = Object.keys(web_o).map(function(pass) {
|
|
166182
168957
|
return web_o[pass];
|
|
@@ -166292,7 +169067,7 @@ var require_web_incoming = __commonJS((exports, module) => {
|
|
|
166292
169067
|
var require_ws_incoming = __commonJS((exports, module) => {
|
|
166293
169068
|
var http = __require("http");
|
|
166294
169069
|
var https = __require("https");
|
|
166295
|
-
var common2 =
|
|
169070
|
+
var common2 = require_common8();
|
|
166296
169071
|
/*!
|
|
166297
169072
|
* Array of passes.
|
|
166298
169073
|
*
|
|
@@ -166751,7 +169526,7 @@ var require_proxy_events = __commonJS((exports) => {
|
|
|
166751
169526
|
});
|
|
166752
169527
|
|
|
166753
169528
|
// ../../node_modules/http-proxy-middleware/dist/plugins/default/index.js
|
|
166754
|
-
var
|
|
169529
|
+
var require_default3 = __commonJS((exports) => {
|
|
166755
169530
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o5, m7, k9, k24) {
|
|
166756
169531
|
if (k24 === undefined)
|
|
166757
169532
|
k24 = k9;
|
|
@@ -166783,7 +169558,7 @@ var require_default2 = __commonJS((exports) => {
|
|
|
166783
169558
|
var require_get_plugins = __commonJS((exports) => {
|
|
166784
169559
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
166785
169560
|
exports.getPlugins = getPlugins;
|
|
166786
|
-
var default_1 =
|
|
169561
|
+
var default_1 = require_default3();
|
|
166787
169562
|
function getPlugins(options8) {
|
|
166788
169563
|
const maybeErrorResponsePlugin = options8.on?.error ? [] : [default_1.errorResponsePlugin];
|
|
166789
169564
|
const defaultPlugins = options8.ejectPlugins ? [] : [default_1.debugProxyErrorsPlugin, default_1.proxyEventsPlugin, default_1.loggerPlugin, ...maybeErrorResponsePlugin];
|
|
@@ -167444,7 +170219,7 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
167444
170219
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
167445
170220
|
__exportStar(require_factory(), exports);
|
|
167446
170221
|
__exportStar(require_handlers(), exports);
|
|
167447
|
-
__exportStar(
|
|
170222
|
+
__exportStar(require_default3(), exports);
|
|
167448
170223
|
__exportStar(require_legacy(), exports);
|
|
167449
170224
|
});
|
|
167450
170225
|
|
|
@@ -194748,7 +197523,7 @@ var require_is_binary = __commonJS((exports) => {
|
|
|
194748
197523
|
});
|
|
194749
197524
|
|
|
194750
197525
|
// ../../node_modules/socket.io-parser/build/cjs/binary.js
|
|
194751
|
-
var
|
|
197526
|
+
var require_binary6 = __commonJS((exports) => {
|
|
194752
197527
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
194753
197528
|
exports.deconstructPacket = deconstructPacket;
|
|
194754
197529
|
exports.reconstructPacket = reconstructPacket;
|
|
@@ -194821,7 +197596,7 @@ var require_cjs4 = __commonJS((exports) => {
|
|
|
194821
197596
|
exports.Decoder = exports.Encoder = exports.PacketType = exports.protocol = undefined;
|
|
194822
197597
|
exports.isPacketValid = isPacketValid;
|
|
194823
197598
|
var component_emitter_1 = require_cjs3();
|
|
194824
|
-
var binary_js_1 =
|
|
197599
|
+
var binary_js_1 = require_binary6();
|
|
194825
197600
|
var is_binary_js_1 = require_is_binary();
|
|
194826
197601
|
var debug_1 = require_src4();
|
|
194827
197602
|
var debug = (0, debug_1.default)("socket.io-parser");
|
|
@@ -255143,4 +257918,4 @@ export {
|
|
|
255143
257918
|
CLIExitError
|
|
255144
257919
|
};
|
|
255145
257920
|
|
|
255146
|
-
//# debugId=
|
|
257921
|
+
//# debugId=B31A1EF406F7914164756E2164756E21
|