@redocly/cli 2.35.1 → 2.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,14 @@ import {
4
4
  exitWithError,
5
5
  getExecutionTime,
6
6
  getFallbackApisOrExit
7
- } from "./YQONFFT5.js";
7
+ } from "./R5E5LXAJ.js";
8
8
  import {
9
9
  require_dist
10
- } from "./HQSFIOKV.js";
10
+ } from "./SHVJYD75.js";
11
11
  import {
12
+ redocStandaloneSri,
12
13
  redocVersion
13
- } from "./FLHMB3O6.js";
14
+ } from "./K6PX5SU7.js";
14
15
  import {
15
16
  require_json_pointer,
16
17
  require_openapi_sampler
@@ -21,7 +22,7 @@ import {
21
22
  require_fast_deep_equal,
22
23
  require_json_schema_traverse,
23
24
  require_pluralize
24
- } from "./RA3UJ5AH.js";
25
+ } from "./UVIPIXTL.js";
25
26
  import {
26
27
  __commonJS,
27
28
  __esm,
@@ -23932,19 +23933,18 @@ var require_common = __commonJS({
23932
23933
  return [sequence];
23933
23934
  }
23934
23935
  function extend(target, source) {
23935
- var index, length, key2, sourceKeys;
23936
23936
  if (source) {
23937
- sourceKeys = Object.keys(source);
23938
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
23939
- key2 = sourceKeys[index];
23937
+ const sourceKeys = Object.keys(source);
23938
+ for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
23939
+ const key2 = sourceKeys[index];
23940
23940
  target[key2] = source[key2];
23941
23941
  }
23942
23942
  }
23943
23943
  return target;
23944
23944
  }
23945
23945
  function repeat(string, count) {
23946
- var result = "", cycle;
23947
- for (cycle = 0; cycle < count; cycle += 1) {
23946
+ let result = "";
23947
+ for (let cycle = 0; cycle < count; cycle += 1) {
23948
23948
  result += string;
23949
23949
  }
23950
23950
  return result;
@@ -23966,7 +23966,8 @@ var require_exception = __commonJS({
23966
23966
  "../../node_modules/js-yaml/lib/exception.js"(exports, module) {
23967
23967
  "use strict";
23968
23968
  function formatError(exception, compact) {
23969
- var where = "", message = exception.reason || "(unknown reason)";
23969
+ let where = "";
23970
+ const message = exception.reason || "(unknown reason)";
23970
23971
  if (!exception.mark) return message;
23971
23972
  if (exception.mark.name) {
23972
23973
  where += 'in "' + exception.mark.name + '" ';
@@ -24004,9 +24005,9 @@ var require_snippet = __commonJS({
24004
24005
  "use strict";
24005
24006
  var common = require_common();
24006
24007
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
24007
- var head = "";
24008
- var tail = "";
24009
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
24008
+ let head = "";
24009
+ let tail = "";
24010
+ const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
24010
24011
  if (position - lineStart > maxHalfLength) {
24011
24012
  head = " ... ";
24012
24013
  lineStart = position - maxHalfLength + head.length;
@@ -24031,11 +24032,11 @@ var require_snippet = __commonJS({
24031
24032
  if (typeof options.indent !== "number") options.indent = 1;
24032
24033
  if (typeof options.linesBefore !== "number") options.linesBefore = 3;
24033
24034
  if (typeof options.linesAfter !== "number") options.linesAfter = 2;
24034
- var re = /\r?\n|\r|\0/g;
24035
- var lineStarts = [0];
24036
- var lineEnds = [];
24037
- var match;
24038
- var foundLineNo = -1;
24035
+ const re = /\r?\n|\r|\0/g;
24036
+ const lineStarts = [0];
24037
+ const lineEnds = [];
24038
+ let match;
24039
+ let foundLineNo = -1;
24039
24040
  while (match = re.exec(mark.buffer)) {
24040
24041
  lineEnds.push(match.index);
24041
24042
  lineStarts.push(match.index + match[0].length);
@@ -24044,33 +24045,33 @@ var require_snippet = __commonJS({
24044
24045
  }
24045
24046
  }
24046
24047
  if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
24047
- var result = "", i, line;
24048
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
24049
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
24050
- for (i = 1; i <= options.linesBefore; i++) {
24048
+ let result = "";
24049
+ const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
24050
+ const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
24051
+ for (let i = 1; i <= options.linesBefore; i++) {
24051
24052
  if (foundLineNo - i < 0) break;
24052
- line = getLine(
24053
+ const line2 = getLine(
24053
24054
  mark.buffer,
24054
24055
  lineStarts[foundLineNo - i],
24055
24056
  lineEnds[foundLineNo - i],
24056
24057
  mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
24057
24058
  maxLineLength
24058
24059
  );
24059
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
24060
+ result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + "\n" + result;
24060
24061
  }
24061
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
24062
+ const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
24062
24063
  result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
24063
24064
  result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
24064
- for (i = 1; i <= options.linesAfter; i++) {
24065
+ for (let i = 1; i <= options.linesAfter; i++) {
24065
24066
  if (foundLineNo + i >= lineEnds.length) break;
24066
- line = getLine(
24067
+ const line2 = getLine(
24067
24068
  mark.buffer,
24068
24069
  lineStarts[foundLineNo + i],
24069
24070
  lineEnds[foundLineNo + i],
24070
24071
  mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
24071
24072
  maxLineLength
24072
24073
  );
24073
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
24074
+ result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + "\n";
24074
24075
  }
24075
24076
  return result.replace(/\n$/, "");
24076
24077
  }
@@ -24101,7 +24102,7 @@ var require_type = __commonJS({
24101
24102
  "mapping"
24102
24103
  ];
24103
24104
  function compileStyleAliases(map) {
24104
- var result = {};
24105
+ const result = {};
24105
24106
  if (map !== null) {
24106
24107
  Object.keys(map).forEach(function(style) {
24107
24108
  map[style].forEach(function(alias) {
@@ -24149,9 +24150,9 @@ var require_schema4 = __commonJS({
24149
24150
  var YAMLException = require_exception();
24150
24151
  var Type = require_type();
24151
24152
  function compileList(schema, name) {
24152
- var result = [];
24153
+ const result = [];
24153
24154
  schema[name].forEach(function(currentType) {
24154
- var newIndex = result.length;
24155
+ let newIndex = result.length;
24155
24156
  result.forEach(function(previousType, previousIndex) {
24156
24157
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
24157
24158
  newIndex = previousIndex;
@@ -24162,7 +24163,7 @@ var require_schema4 = __commonJS({
24162
24163
  return result;
24163
24164
  }
24164
24165
  function compileMap() {
24165
- var result = {
24166
+ const result = {
24166
24167
  scalar: {},
24167
24168
  sequence: {},
24168
24169
  mapping: {},
@@ -24173,7 +24174,7 @@ var require_schema4 = __commonJS({
24173
24174
  mapping: [],
24174
24175
  fallback: []
24175
24176
  }
24176
- }, index, length;
24177
+ };
24177
24178
  function collectType(type) {
24178
24179
  if (type.multi) {
24179
24180
  result.multi[type.kind].push(type);
@@ -24182,7 +24183,7 @@ var require_schema4 = __commonJS({
24182
24183
  result[type.kind][type.tag] = result["fallback"][type.tag] = type;
24183
24184
  }
24184
24185
  }
24185
- for (index = 0, length = arguments.length; index < length; index += 1) {
24186
+ for (let index = 0, length = arguments.length; index < length; index += 1) {
24186
24187
  arguments[index].forEach(collectType);
24187
24188
  }
24188
24189
  return result;
@@ -24191,8 +24192,8 @@ var require_schema4 = __commonJS({
24191
24192
  return this.extend(definition);
24192
24193
  }
24193
24194
  Schema.prototype.extend = function extend(definition) {
24194
- var implicit = [];
24195
- var explicit = [];
24195
+ let implicit = [];
24196
+ let explicit = [];
24196
24197
  if (definition instanceof Type) {
24197
24198
  explicit.push(definition);
24198
24199
  } else if (Array.isArray(definition)) {
@@ -24219,7 +24220,7 @@ var require_schema4 = __commonJS({
24219
24220
  throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
24220
24221
  }
24221
24222
  });
24222
- var result = Object.create(Schema.prototype);
24223
+ const result = Object.create(Schema.prototype);
24223
24224
  result.implicit = (this.implicit || []).concat(implicit);
24224
24225
  result.explicit = (this.explicit || []).concat(explicit);
24225
24226
  result.compiledImplicit = compileList(result, "implicit");
@@ -24295,7 +24296,7 @@ var require_null2 = __commonJS({
24295
24296
  var Type = require_type();
24296
24297
  function resolveYamlNull(data) {
24297
24298
  if (data === null) return true;
24298
- var max = data.length;
24299
+ const max = data.length;
24299
24300
  return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
24300
24301
  }
24301
24302
  function constructYamlNull() {
@@ -24338,7 +24339,7 @@ var require_bool3 = __commonJS({
24338
24339
  var Type = require_type();
24339
24340
  function resolveYamlBoolean(data) {
24340
24341
  if (data === null) return false;
24341
- var max = data.length;
24342
+ const max = data.length;
24342
24343
  return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
24343
24344
  }
24344
24345
  function constructYamlBoolean(data) {
@@ -24375,19 +24376,21 @@ var require_int3 = __commonJS({
24375
24376
  var common = require_common();
24376
24377
  var Type = require_type();
24377
24378
  function isHexCode(c) {
24378
- return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
24379
+ return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
24379
24380
  }
24380
24381
  function isOctCode(c) {
24381
- return 48 <= c && c <= 55;
24382
+ return c >= 48 && c <= 55;
24382
24383
  }
24383
24384
  function isDecCode(c) {
24384
- return 48 <= c && c <= 57;
24385
+ return c >= 48 && c <= 57;
24385
24386
  }
24386
24387
  function resolveYamlInteger(data) {
24387
24388
  if (data === null) return false;
24388
- var max = data.length, index = 0, hasDigits = false, ch;
24389
+ const max = data.length;
24390
+ let index = 0;
24391
+ let hasDigits = false;
24389
24392
  if (!max) return false;
24390
- ch = data[index];
24393
+ let ch = data[index];
24391
24394
  if (ch === "-" || ch === "+") {
24392
24395
  ch = data[++index];
24393
24396
  }
@@ -24398,51 +24401,41 @@ var require_int3 = __commonJS({
24398
24401
  index++;
24399
24402
  for (; index < max; index++) {
24400
24403
  ch = data[index];
24401
- if (ch === "_") continue;
24402
24404
  if (ch !== "0" && ch !== "1") return false;
24403
24405
  hasDigits = true;
24404
24406
  }
24405
- return hasDigits && ch !== "_";
24407
+ return hasDigits && Number.isFinite(parseYamlInteger(data));
24406
24408
  }
24407
24409
  if (ch === "x") {
24408
24410
  index++;
24409
24411
  for (; index < max; index++) {
24410
- ch = data[index];
24411
- if (ch === "_") continue;
24412
24412
  if (!isHexCode(data.charCodeAt(index))) return false;
24413
24413
  hasDigits = true;
24414
24414
  }
24415
- return hasDigits && ch !== "_";
24415
+ return hasDigits && Number.isFinite(parseYamlInteger(data));
24416
24416
  }
24417
24417
  if (ch === "o") {
24418
24418
  index++;
24419
24419
  for (; index < max; index++) {
24420
- ch = data[index];
24421
- if (ch === "_") continue;
24422
24420
  if (!isOctCode(data.charCodeAt(index))) return false;
24423
24421
  hasDigits = true;
24424
24422
  }
24425
- return hasDigits && ch !== "_";
24423
+ return hasDigits && Number.isFinite(parseYamlInteger(data));
24426
24424
  }
24427
24425
  }
24428
- if (ch === "_") return false;
24429
24426
  for (; index < max; index++) {
24430
- ch = data[index];
24431
- if (ch === "_") continue;
24432
24427
  if (!isDecCode(data.charCodeAt(index))) {
24433
24428
  return false;
24434
24429
  }
24435
24430
  hasDigits = true;
24436
24431
  }
24437
- if (!hasDigits || ch === "_") return false;
24438
- return true;
24432
+ if (!hasDigits) return false;
24433
+ return Number.isFinite(parseYamlInteger(data));
24439
24434
  }
24440
- function constructYamlInteger(data) {
24441
- var value = data, sign = 1, ch;
24442
- if (value.indexOf("_") !== -1) {
24443
- value = value.replace(/_/g, "");
24444
- }
24445
- ch = value[0];
24435
+ function parseYamlInteger(data) {
24436
+ let value = data;
24437
+ let sign = 1;
24438
+ let ch = value[0];
24446
24439
  if (ch === "-" || ch === "+") {
24447
24440
  if (ch === "-") sign = -1;
24448
24441
  value = value.slice(1);
@@ -24456,6 +24449,9 @@ var require_int3 = __commonJS({
24456
24449
  }
24457
24450
  return sign * parseInt(value, 10);
24458
24451
  }
24452
+ function constructYamlInteger(data) {
24453
+ return parseYamlInteger(data);
24454
+ }
24459
24455
  function isInteger(object) {
24460
24456
  return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common.isNegativeZero(object));
24461
24457
  }
@@ -24474,7 +24470,6 @@ var require_int3 = __commonJS({
24474
24470
  decimal: function(obj) {
24475
24471
  return obj.toString(10);
24476
24472
  },
24477
- /* eslint-disable max-len */
24478
24473
  hexadecimal: function(obj) {
24479
24474
  return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
24480
24475
  }
@@ -24498,21 +24493,24 @@ var require_float3 = __commonJS({
24498
24493
  var Type = require_type();
24499
24494
  var YAML_FLOAT_PATTERN = new RegExp(
24500
24495
  // 2.5e4, 2.5 and integers
24501
- "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
24496
+ "^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
24497
+ );
24498
+ var YAML_FLOAT_SPECIAL_PATTERN = new RegExp(
24499
+ "^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
24502
24500
  );
24503
24501
  function resolveYamlFloat(data) {
24504
24502
  if (data === null) return false;
24505
- if (!YAML_FLOAT_PATTERN.test(data) || // Quick hack to not allow integers end with `_`
24506
- // Probably should update regexp & check speed
24507
- data[data.length - 1] === "_") {
24503
+ if (!YAML_FLOAT_PATTERN.test(data)) {
24508
24504
  return false;
24509
24505
  }
24510
- return true;
24506
+ if (Number.isFinite(parseFloat(data, 10))) {
24507
+ return true;
24508
+ }
24509
+ return YAML_FLOAT_SPECIAL_PATTERN.test(data);
24511
24510
  }
24512
24511
  function constructYamlFloat(data) {
24513
- var value, sign;
24514
- value = data.replace(/_/g, "").toLowerCase();
24515
- sign = value[0] === "-" ? -1 : 1;
24512
+ let value = data.toLowerCase();
24513
+ const sign = value[0] === "-" ? -1 : 1;
24516
24514
  if ("+-".indexOf(value[0]) >= 0) {
24517
24515
  value = value.slice(1);
24518
24516
  }
@@ -24525,7 +24523,6 @@ var require_float3 = __commonJS({
24525
24523
  }
24526
24524
  var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
24527
24525
  function representYamlFloat(object, style) {
24528
- var res;
24529
24526
  if (isNaN(object)) {
24530
24527
  switch (style) {
24531
24528
  case "lowercase":
@@ -24556,7 +24553,7 @@ var require_float3 = __commonJS({
24556
24553
  } else if (common.isNegativeZero(object)) {
24557
24554
  return "-0.0";
24558
24555
  }
24559
- res = object.toString(10);
24556
+ const res = object.toString(10);
24560
24557
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
24561
24558
  }
24562
24559
  function isFloat(object) {
@@ -24614,19 +24611,20 @@ var require_timestamp2 = __commonJS({
24614
24611
  return false;
24615
24612
  }
24616
24613
  function constructYamlTimestamp(data) {
24617
- var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
24618
- match = YAML_DATE_REGEXP.exec(data);
24614
+ let fraction = 0;
24615
+ let delta = null;
24616
+ let match = YAML_DATE_REGEXP.exec(data);
24619
24617
  if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
24620
24618
  if (match === null) throw new Error("Date resolve error");
24621
- year = +match[1];
24622
- month = +match[2] - 1;
24623
- day = +match[3];
24619
+ const year = +match[1];
24620
+ const month = +match[2] - 1;
24621
+ const day = +match[3];
24624
24622
  if (!match[4]) {
24625
24623
  return new Date(Date.UTC(year, month, day));
24626
24624
  }
24627
- hour = +match[4];
24628
- minute = +match[5];
24629
- second = +match[6];
24625
+ const hour = +match[4];
24626
+ const minute = +match[5];
24627
+ const second = +match[6];
24630
24628
  if (match[7]) {
24631
24629
  fraction = match[7].slice(0, 3);
24632
24630
  while (fraction.length < 3) {
@@ -24635,12 +24633,12 @@ var require_timestamp2 = __commonJS({
24635
24633
  fraction = +fraction;
24636
24634
  }
24637
24635
  if (match[9]) {
24638
- tz_hour = +match[10];
24639
- tz_minute = +(match[11] || 0);
24640
- delta = (tz_hour * 60 + tz_minute) * 6e4;
24636
+ const tzHour = +match[10];
24637
+ const tzMinute = +(match[11] || 0);
24638
+ delta = (tzHour * 60 + tzMinute) * 6e4;
24641
24639
  if (match[9] === "-") delta = -delta;
24642
24640
  }
24643
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
24641
+ const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
24644
24642
  if (delta) date.setTime(date.getTime() - delta);
24645
24643
  return date;
24646
24644
  }
@@ -24680,9 +24678,11 @@ var require_binary2 = __commonJS({
24680
24678
  var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
24681
24679
  function resolveYamlBinary(data) {
24682
24680
  if (data === null) return false;
24683
- var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
24684
- for (idx = 0; idx < max; idx++) {
24685
- code = map.indexOf(data.charAt(idx));
24681
+ let bitlen = 0;
24682
+ const max = data.length;
24683
+ const map = BASE64_MAP;
24684
+ for (let idx = 0; idx < max; idx++) {
24685
+ const code = map.indexOf(data.charAt(idx));
24686
24686
  if (code > 64) continue;
24687
24687
  if (code < 0) return false;
24688
24688
  bitlen += 6;
@@ -24690,8 +24690,12 @@ var require_binary2 = __commonJS({
24690
24690
  return bitlen % 8 === 0;
24691
24691
  }
24692
24692
  function constructYamlBinary(data) {
24693
- var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map = BASE64_MAP, bits = 0, result = [];
24694
- for (idx = 0; idx < max; idx++) {
24693
+ const input = data.replace(/[\r\n=]/g, "");
24694
+ const max = input.length;
24695
+ const map = BASE64_MAP;
24696
+ let bits = 0;
24697
+ const result = [];
24698
+ for (let idx = 0; idx < max; idx++) {
24695
24699
  if (idx % 4 === 0 && idx) {
24696
24700
  result.push(bits >> 16 & 255);
24697
24701
  result.push(bits >> 8 & 255);
@@ -24699,7 +24703,7 @@ var require_binary2 = __commonJS({
24699
24703
  }
24700
24704
  bits = bits << 6 | map.indexOf(input.charAt(idx));
24701
24705
  }
24702
- tailbits = max % 4 * 6;
24706
+ const tailbits = max % 4 * 6;
24703
24707
  if (tailbits === 0) {
24704
24708
  result.push(bits >> 16 & 255);
24705
24709
  result.push(bits >> 8 & 255);
@@ -24713,8 +24717,11 @@ var require_binary2 = __commonJS({
24713
24717
  return new Uint8Array(result);
24714
24718
  }
24715
24719
  function representYamlBinary(object) {
24716
- var result = "", bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
24717
- for (idx = 0; idx < max; idx++) {
24720
+ let result = "";
24721
+ let bits = 0;
24722
+ const max = object.length;
24723
+ const map = BASE64_MAP;
24724
+ for (let idx = 0; idx < max; idx++) {
24718
24725
  if (idx % 3 === 0 && idx) {
24719
24726
  result += map[bits >> 18 & 63];
24720
24727
  result += map[bits >> 12 & 63];
@@ -24723,7 +24730,7 @@ var require_binary2 = __commonJS({
24723
24730
  }
24724
24731
  bits = (bits << 8) + object[idx];
24725
24732
  }
24726
- tail = max % 3;
24733
+ const tail = max % 3;
24727
24734
  if (tail === 0) {
24728
24735
  result += map[bits >> 18 & 63];
24729
24736
  result += map[bits >> 12 & 63];
@@ -24764,11 +24771,13 @@ var require_omap2 = __commonJS({
24764
24771
  var _toString = Object.prototype.toString;
24765
24772
  function resolveYamlOmap(data) {
24766
24773
  if (data === null) return true;
24767
- var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
24768
- for (index = 0, length = object.length; index < length; index += 1) {
24769
- pair = object[index];
24770
- pairHasKey = false;
24774
+ const objectKeys = [];
24775
+ const object = data;
24776
+ for (let index = 0, length = object.length; index < length; index += 1) {
24777
+ const pair = object[index];
24778
+ let pairHasKey = false;
24771
24779
  if (_toString.call(pair) !== "[object Object]") return false;
24780
+ let pairKey;
24772
24781
  for (pairKey in pair) {
24773
24782
  if (_hasOwnProperty.call(pair, pairKey)) {
24774
24783
  if (!pairHasKey) pairHasKey = true;
@@ -24800,12 +24809,12 @@ var require_pairs2 = __commonJS({
24800
24809
  var _toString = Object.prototype.toString;
24801
24810
  function resolveYamlPairs(data) {
24802
24811
  if (data === null) return true;
24803
- var index, length, pair, keys, result, object = data;
24804
- result = new Array(object.length);
24805
- for (index = 0, length = object.length; index < length; index += 1) {
24806
- pair = object[index];
24812
+ const object = data;
24813
+ const result = new Array(object.length);
24814
+ for (let index = 0, length = object.length; index < length; index += 1) {
24815
+ const pair = object[index];
24807
24816
  if (_toString.call(pair) !== "[object Object]") return false;
24808
- keys = Object.keys(pair);
24817
+ const keys = Object.keys(pair);
24809
24818
  if (keys.length !== 1) return false;
24810
24819
  result[index] = [keys[0], pair[keys[0]]];
24811
24820
  }
@@ -24813,11 +24822,11 @@ var require_pairs2 = __commonJS({
24813
24822
  }
24814
24823
  function constructYamlPairs(data) {
24815
24824
  if (data === null) return [];
24816
- var index, length, pair, keys, result, object = data;
24817
- result = new Array(object.length);
24818
- for (index = 0, length = object.length; index < length; index += 1) {
24819
- pair = object[index];
24820
- keys = Object.keys(pair);
24825
+ const object = data;
24826
+ const result = new Array(object.length);
24827
+ for (let index = 0, length = object.length; index < length; index += 1) {
24828
+ const pair = object[index];
24829
+ const keys = Object.keys(pair);
24821
24830
  result[index] = [keys[0], pair[keys[0]]];
24822
24831
  }
24823
24832
  return result;
@@ -24838,8 +24847,8 @@ var require_set2 = __commonJS({
24838
24847
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
24839
24848
  function resolveYamlSet(data) {
24840
24849
  if (data === null) return true;
24841
- var key2, object = data;
24842
- for (key2 in object) {
24850
+ const object = data;
24851
+ for (const key2 in object) {
24843
24852
  if (_hasOwnProperty.call(object, key2)) {
24844
24853
  if (object[key2] !== null) return false;
24845
24854
  }
@@ -24894,31 +24903,30 @@ var require_loader = __commonJS({
24894
24903
  var CHOMPING_KEEP = 3;
24895
24904
  var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24896
24905
  var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24897
- var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
24898
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
24899
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
24906
+ var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24907
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24908
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24900
24909
  function _class(obj) {
24901
24910
  return Object.prototype.toString.call(obj);
24902
24911
  }
24903
- function is_EOL(c) {
24912
+ function isEol(c) {
24904
24913
  return c === 10 || c === 13;
24905
24914
  }
24906
- function is_WHITE_SPACE(c) {
24915
+ function isWhiteSpace(c) {
24907
24916
  return c === 9 || c === 32;
24908
24917
  }
24909
- function is_WS_OR_EOL(c) {
24918
+ function isWsOrEol(c) {
24910
24919
  return c === 9 || c === 32 || c === 10 || c === 13;
24911
24920
  }
24912
- function is_FLOW_INDICATOR(c) {
24921
+ function isFlowIndicator(c) {
24913
24922
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
24914
24923
  }
24915
24924
  function fromHexCode(c) {
24916
- var lc;
24917
- if (48 <= c && c <= 57) {
24925
+ if (c >= 48 && c <= 57) {
24918
24926
  return c - 48;
24919
24927
  }
24920
- lc = c | 32;
24921
- if (97 <= lc && lc <= 102) {
24928
+ const lc = c | 32;
24929
+ if (lc >= 97 && lc <= 102) {
24922
24930
  return lc - 97 + 10;
24923
24931
  }
24924
24932
  return -1;
@@ -24936,13 +24944,52 @@ var require_loader = __commonJS({
24936
24944
  return 0;
24937
24945
  }
24938
24946
  function fromDecimalCode(c) {
24939
- if (48 <= c && c <= 57) {
24947
+ if (c >= 48 && c <= 57) {
24940
24948
  return c - 48;
24941
24949
  }
24942
24950
  return -1;
24943
24951
  }
24944
24952
  function simpleEscapeSequence(c) {
24945
- return c === 48 ? "\0" : c === 97 ? "\x07" : c === 98 ? "\b" : c === 116 ? " " : c === 9 ? " " : c === 110 ? "\n" : c === 118 ? "\v" : c === 102 ? "\f" : c === 114 ? "\r" : c === 101 ? "\x1B" : c === 32 ? " " : c === 34 ? '"' : c === 47 ? "/" : c === 92 ? "\\" : c === 78 ? "\x85" : c === 95 ? "\xA0" : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
24953
+ switch (c) {
24954
+ case 48:
24955
+ return "\0";
24956
+ case 97:
24957
+ return "\x07";
24958
+ case 98:
24959
+ return "\b";
24960
+ case 116:
24961
+ return " ";
24962
+ case 9:
24963
+ return " ";
24964
+ case 110:
24965
+ return "\n";
24966
+ case 118:
24967
+ return "\v";
24968
+ case 102:
24969
+ return "\f";
24970
+ case 114:
24971
+ return "\r";
24972
+ case 101:
24973
+ return "\x1B";
24974
+ case 32:
24975
+ return " ";
24976
+ case 34:
24977
+ return '"';
24978
+ case 47:
24979
+ return "/";
24980
+ case 92:
24981
+ return "\\";
24982
+ case 78:
24983
+ return "\x85";
24984
+ case 95:
24985
+ return "\xA0";
24986
+ case 76:
24987
+ return "\u2028";
24988
+ case 80:
24989
+ return "\u2029";
24990
+ default:
24991
+ return "";
24992
+ }
24946
24993
  }
24947
24994
  function charFromCodepoint(c) {
24948
24995
  if (c <= 65535) {
@@ -24967,11 +25014,10 @@ var require_loader = __commonJS({
24967
25014
  }
24968
25015
  var simpleEscapeCheck = new Array(256);
24969
25016
  var simpleEscapeMap = new Array(256);
24970
- for (i = 0; i < 256; i++) {
25017
+ for (let i = 0; i < 256; i++) {
24971
25018
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
24972
25019
  simpleEscapeMap[i] = simpleEscapeSequence(i);
24973
25020
  }
24974
- var i;
24975
25021
  function State(input, options) {
24976
25022
  this.input = input;
24977
25023
  this.filename = options["filename"] || null;
@@ -24980,6 +25026,8 @@ var require_loader = __commonJS({
24980
25026
  this.legacy = options["legacy"] || false;
24981
25027
  this.json = options["json"] || false;
24982
25028
  this.listener = options["listener"] || null;
25029
+ this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
25030
+ this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
24983
25031
  this.implicitTypes = this.schema.compiledImplicit;
24984
25032
  this.typeMap = this.schema.compiledTypeMap;
24985
25033
  this.length = input.length;
@@ -24987,11 +25035,13 @@ var require_loader = __commonJS({
24987
25035
  this.line = 0;
24988
25036
  this.lineStart = 0;
24989
25037
  this.lineIndent = 0;
25038
+ this.depth = 0;
24990
25039
  this.firstTabInLine = -1;
24991
25040
  this.documents = [];
25041
+ this.anchorMapTransactions = [];
24992
25042
  }
24993
25043
  function generateError(state, message) {
24994
- var mark = {
25044
+ const mark = {
24995
25045
  name: state.filename,
24996
25046
  buffer: state.input.slice(0, -1),
24997
25047
  // omit trailing \0
@@ -25010,21 +25060,85 @@ var require_loader = __commonJS({
25010
25060
  state.onWarning.call(null, generateError(state, message));
25011
25061
  }
25012
25062
  }
25063
+ function storeAnchor(state, name, value) {
25064
+ const transactions = state.anchorMapTransactions;
25065
+ if (transactions.length !== 0) {
25066
+ const transaction = transactions[transactions.length - 1];
25067
+ if (!_hasOwnProperty.call(transaction, name)) {
25068
+ transaction[name] = {
25069
+ existed: _hasOwnProperty.call(state.anchorMap, name),
25070
+ value: state.anchorMap[name]
25071
+ };
25072
+ }
25073
+ }
25074
+ state.anchorMap[name] = value;
25075
+ }
25076
+ function beginAnchorTransaction(state) {
25077
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
25078
+ }
25079
+ function commitAnchorTransaction(state) {
25080
+ const transaction = state.anchorMapTransactions.pop();
25081
+ const transactions = state.anchorMapTransactions;
25082
+ if (transactions.length === 0) return;
25083
+ const parent = transactions[transactions.length - 1];
25084
+ const names = Object.keys(transaction);
25085
+ for (let index = 0, length = names.length; index < length; index += 1) {
25086
+ const name = names[index];
25087
+ if (!_hasOwnProperty.call(parent, name)) {
25088
+ parent[name] = transaction[name];
25089
+ }
25090
+ }
25091
+ }
25092
+ function rollbackAnchorTransaction(state) {
25093
+ const transaction = state.anchorMapTransactions.pop();
25094
+ const names = Object.keys(transaction);
25095
+ for (let index = names.length - 1; index >= 0; index -= 1) {
25096
+ const entry = transaction[names[index]];
25097
+ if (entry.existed) {
25098
+ state.anchorMap[names[index]] = entry.value;
25099
+ } else {
25100
+ delete state.anchorMap[names[index]];
25101
+ }
25102
+ }
25103
+ }
25104
+ function snapshotState(state) {
25105
+ return {
25106
+ position: state.position,
25107
+ line: state.line,
25108
+ lineStart: state.lineStart,
25109
+ lineIndent: state.lineIndent,
25110
+ firstTabInLine: state.firstTabInLine,
25111
+ tag: state.tag,
25112
+ anchor: state.anchor,
25113
+ kind: state.kind,
25114
+ result: state.result
25115
+ };
25116
+ }
25117
+ function restoreState(state, snapshot) {
25118
+ state.position = snapshot.position;
25119
+ state.line = snapshot.line;
25120
+ state.lineStart = snapshot.lineStart;
25121
+ state.lineIndent = snapshot.lineIndent;
25122
+ state.firstTabInLine = snapshot.firstTabInLine;
25123
+ state.tag = snapshot.tag;
25124
+ state.anchor = snapshot.anchor;
25125
+ state.kind = snapshot.kind;
25126
+ state.result = snapshot.result;
25127
+ }
25013
25128
  var directiveHandlers = {
25014
25129
  YAML: function handleYamlDirective(state, name, args) {
25015
- var match, major, minor;
25016
25130
  if (state.version !== null) {
25017
25131
  throwError(state, "duplication of %YAML directive");
25018
25132
  }
25019
25133
  if (args.length !== 1) {
25020
25134
  throwError(state, "YAML directive accepts exactly one argument");
25021
25135
  }
25022
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
25136
+ const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
25023
25137
  if (match === null) {
25024
25138
  throwError(state, "ill-formed argument of the YAML directive");
25025
25139
  }
25026
- major = parseInt(match[1], 10);
25027
- minor = parseInt(match[2], 10);
25140
+ const major = parseInt(match[1], 10);
25141
+ const minor = parseInt(match[2], 10);
25028
25142
  if (major !== 1) {
25029
25143
  throwError(state, "unacceptable YAML version of the document");
25030
25144
  }
@@ -25035,11 +25149,11 @@ var require_loader = __commonJS({
25035
25149
  }
25036
25150
  },
25037
25151
  TAG: function handleTagDirective(state, name, args) {
25038
- var handle, prefix;
25152
+ let prefix;
25039
25153
  if (args.length !== 2) {
25040
25154
  throwError(state, "TAG directive accepts exactly two arguments");
25041
25155
  }
25042
- handle = args[0];
25156
+ const handle = args[0];
25043
25157
  prefix = args[1];
25044
25158
  if (!PATTERN_TAG_HANDLE.test(handle)) {
25045
25159
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
@@ -25059,13 +25173,12 @@ var require_loader = __commonJS({
25059
25173
  }
25060
25174
  };
25061
25175
  function captureSegment(state, start, end, checkJson) {
25062
- var _position, _length, _character, _result;
25063
25176
  if (start < end) {
25064
- _result = state.input.slice(start, end);
25177
+ const _result = state.input.slice(start, end);
25065
25178
  if (checkJson) {
25066
- for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
25067
- _character = _result.charCodeAt(_position);
25068
- if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
25179
+ for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
25180
+ const _character = _result.charCodeAt(_position);
25181
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
25069
25182
  throwError(state, "expected valid JSON character");
25070
25183
  }
25071
25184
  }
@@ -25076,13 +25189,12 @@ var require_loader = __commonJS({
25076
25189
  }
25077
25190
  }
25078
25191
  function mergeMappings(state, destination, source, overridableKeys) {
25079
- var sourceKeys, key2, index, quantity;
25080
25192
  if (!common.isObject(source)) {
25081
25193
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
25082
25194
  }
25083
- sourceKeys = Object.keys(source);
25084
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
25085
- key2 = sourceKeys[index];
25195
+ const sourceKeys = Object.keys(source);
25196
+ for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
25197
+ const key2 = sourceKeys[index];
25086
25198
  if (!_hasOwnProperty.call(destination, key2)) {
25087
25199
  setProperty(destination, key2, source[key2]);
25088
25200
  overridableKeys[key2] = true;
@@ -25090,10 +25202,9 @@ var require_loader = __commonJS({
25090
25202
  }
25091
25203
  }
25092
25204
  function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
25093
- var index, quantity;
25094
25205
  if (Array.isArray(keyNode)) {
25095
25206
  keyNode = Array.prototype.slice.call(keyNode);
25096
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
25207
+ for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
25097
25208
  if (Array.isArray(keyNode[index])) {
25098
25209
  throwError(state, "nested arrays are not supported inside keys");
25099
25210
  }
@@ -25111,8 +25222,15 @@ var require_loader = __commonJS({
25111
25222
  }
25112
25223
  if (keyTag === "tag:yaml.org,2002:merge") {
25113
25224
  if (Array.isArray(valueNode)) {
25114
- for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
25115
- mergeMappings(state, _result, valueNode[index], overridableKeys);
25225
+ if (valueNode.length > state.maxMergeSeqLength) {
25226
+ throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
25227
+ }
25228
+ const seen = /* @__PURE__ */ new Set();
25229
+ for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
25230
+ const src = valueNode[index];
25231
+ if (seen.has(src)) continue;
25232
+ seen.add(src);
25233
+ mergeMappings(state, _result, src, overridableKeys);
25116
25234
  }
25117
25235
  } else {
25118
25236
  mergeMappings(state, _result, valueNode, overridableKeys);
@@ -25130,8 +25248,7 @@ var require_loader = __commonJS({
25130
25248
  return _result;
25131
25249
  }
25132
25250
  function readLineBreak(state) {
25133
- var ch;
25134
- ch = state.input.charCodeAt(state.position);
25251
+ const ch = state.input.charCodeAt(state.position);
25135
25252
  if (ch === 10) {
25136
25253
  state.position++;
25137
25254
  } else if (ch === 13) {
@@ -25147,9 +25264,10 @@ var require_loader = __commonJS({
25147
25264
  state.firstTabInLine = -1;
25148
25265
  }
25149
25266
  function skipSeparationSpace(state, allowComments, checkIndent) {
25150
- var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
25267
+ let lineBreaks = 0;
25268
+ let ch = state.input.charCodeAt(state.position);
25151
25269
  while (ch !== 0) {
25152
- while (is_WHITE_SPACE(ch)) {
25270
+ while (isWhiteSpace(ch)) {
25153
25271
  if (ch === 9 && state.firstTabInLine === -1) {
25154
25272
  state.firstTabInLine = state.position;
25155
25273
  }
@@ -25160,7 +25278,7 @@ var require_loader = __commonJS({
25160
25278
  ch = state.input.charCodeAt(++state.position);
25161
25279
  } while (ch !== 10 && ch !== 13 && ch !== 0);
25162
25280
  }
25163
- if (is_EOL(ch)) {
25281
+ if (isEol(ch)) {
25164
25282
  readLineBreak(state);
25165
25283
  ch = state.input.charCodeAt(state.position);
25166
25284
  lineBreaks++;
@@ -25179,12 +25297,12 @@ var require_loader = __commonJS({
25179
25297
  return lineBreaks;
25180
25298
  }
25181
25299
  function testDocumentSeparator(state) {
25182
- var _position = state.position, ch;
25183
- ch = state.input.charCodeAt(_position);
25300
+ let _position = state.position;
25301
+ let ch = state.input.charCodeAt(_position);
25184
25302
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
25185
25303
  _position += 3;
25186
25304
  ch = state.input.charCodeAt(_position);
25187
- if (ch === 0 || is_WS_OR_EOL(ch)) {
25305
+ if (ch === 0 || isWsOrEol(ch)) {
25188
25306
  return true;
25189
25307
  }
25190
25308
  }
@@ -25198,14 +25316,21 @@ var require_loader = __commonJS({
25198
25316
  }
25199
25317
  }
25200
25318
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
25201
- var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch;
25202
- ch = state.input.charCodeAt(state.position);
25203
- if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
25319
+ let captureStart;
25320
+ let captureEnd;
25321
+ let hasPendingContent;
25322
+ let _line;
25323
+ let _lineStart;
25324
+ let _lineIndent;
25325
+ const _kind = state.kind;
25326
+ const _result = state.result;
25327
+ let ch = state.input.charCodeAt(state.position);
25328
+ if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
25204
25329
  return false;
25205
25330
  }
25206
25331
  if (ch === 63 || ch === 45) {
25207
- following = state.input.charCodeAt(state.position + 1);
25208
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
25332
+ const following = state.input.charCodeAt(state.position + 1);
25333
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
25209
25334
  return false;
25210
25335
  }
25211
25336
  }
@@ -25215,18 +25340,18 @@ var require_loader = __commonJS({
25215
25340
  hasPendingContent = false;
25216
25341
  while (ch !== 0) {
25217
25342
  if (ch === 58) {
25218
- following = state.input.charCodeAt(state.position + 1);
25219
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
25343
+ const following = state.input.charCodeAt(state.position + 1);
25344
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
25220
25345
  break;
25221
25346
  }
25222
25347
  } else if (ch === 35) {
25223
- preceding = state.input.charCodeAt(state.position - 1);
25224
- if (is_WS_OR_EOL(preceding)) {
25348
+ const preceding = state.input.charCodeAt(state.position - 1);
25349
+ if (isWsOrEol(preceding)) {
25225
25350
  break;
25226
25351
  }
25227
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) {
25352
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
25228
25353
  break;
25229
- } else if (is_EOL(ch)) {
25354
+ } else if (isEol(ch)) {
25230
25355
  _line = state.line;
25231
25356
  _lineStart = state.lineStart;
25232
25357
  _lineIndent = state.lineIndent;
@@ -25249,7 +25374,7 @@ var require_loader = __commonJS({
25249
25374
  captureStart = captureEnd = state.position;
25250
25375
  hasPendingContent = false;
25251
25376
  }
25252
- if (!is_WHITE_SPACE(ch)) {
25377
+ if (!isWhiteSpace(ch)) {
25253
25378
  captureEnd = state.position + 1;
25254
25379
  }
25255
25380
  ch = state.input.charCodeAt(++state.position);
@@ -25263,8 +25388,9 @@ var require_loader = __commonJS({
25263
25388
  return false;
25264
25389
  }
25265
25390
  function readSingleQuotedScalar(state, nodeIndent) {
25266
- var ch, captureStart, captureEnd;
25267
- ch = state.input.charCodeAt(state.position);
25391
+ let captureStart;
25392
+ let captureEnd;
25393
+ let ch = state.input.charCodeAt(state.position);
25268
25394
  if (ch !== 39) {
25269
25395
  return false;
25270
25396
  }
@@ -25283,7 +25409,7 @@ var require_loader = __commonJS({
25283
25409
  } else {
25284
25410
  return true;
25285
25411
  }
25286
- } else if (is_EOL(ch)) {
25412
+ } else if (isEol(ch)) {
25287
25413
  captureSegment(state, captureStart, captureEnd, true);
25288
25414
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
25289
25415
  captureStart = captureEnd = state.position;
@@ -25291,14 +25417,18 @@ var require_loader = __commonJS({
25291
25417
  throwError(state, "unexpected end of the document within a single quoted scalar");
25292
25418
  } else {
25293
25419
  state.position++;
25294
- captureEnd = state.position;
25420
+ if (!isWhiteSpace(ch)) {
25421
+ captureEnd = state.position;
25422
+ }
25295
25423
  }
25296
25424
  }
25297
25425
  throwError(state, "unexpected end of the stream within a single quoted scalar");
25298
25426
  }
25299
25427
  function readDoubleQuotedScalar(state, nodeIndent) {
25300
- var captureStart, captureEnd, hexLength, hexResult, tmp, ch;
25301
- ch = state.input.charCodeAt(state.position);
25428
+ let captureStart;
25429
+ let captureEnd;
25430
+ let tmp;
25431
+ let ch = state.input.charCodeAt(state.position);
25302
25432
  if (ch !== 34) {
25303
25433
  return false;
25304
25434
  }
@@ -25314,14 +25444,14 @@ var require_loader = __commonJS({
25314
25444
  } else if (ch === 92) {
25315
25445
  captureSegment(state, captureStart, state.position, true);
25316
25446
  ch = state.input.charCodeAt(++state.position);
25317
- if (is_EOL(ch)) {
25447
+ if (isEol(ch)) {
25318
25448
  skipSeparationSpace(state, false, nodeIndent);
25319
25449
  } else if (ch < 256 && simpleEscapeCheck[ch]) {
25320
25450
  state.result += simpleEscapeMap[ch];
25321
25451
  state.position++;
25322
25452
  } else if ((tmp = escapedHexLen(ch)) > 0) {
25323
- hexLength = tmp;
25324
- hexResult = 0;
25453
+ let hexLength = tmp;
25454
+ let hexResult = 0;
25325
25455
  for (; hexLength > 0; hexLength--) {
25326
25456
  ch = state.input.charCodeAt(++state.position);
25327
25457
  if ((tmp = fromHexCode(ch)) >= 0) {
@@ -25336,7 +25466,7 @@ var require_loader = __commonJS({
25336
25466
  throwError(state, "unknown escape sequence");
25337
25467
  }
25338
25468
  captureStart = captureEnd = state.position;
25339
- } else if (is_EOL(ch)) {
25469
+ } else if (isEol(ch)) {
25340
25470
  captureSegment(state, captureStart, captureEnd, true);
25341
25471
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
25342
25472
  captureStart = captureEnd = state.position;
@@ -25344,14 +25474,30 @@ var require_loader = __commonJS({
25344
25474
  throwError(state, "unexpected end of the document within a double quoted scalar");
25345
25475
  } else {
25346
25476
  state.position++;
25347
- captureEnd = state.position;
25477
+ if (!isWhiteSpace(ch)) {
25478
+ captureEnd = state.position;
25479
+ }
25348
25480
  }
25349
25481
  }
25350
25482
  throwError(state, "unexpected end of the stream within a double quoted scalar");
25351
25483
  }
25352
25484
  function readFlowCollection(state, nodeIndent) {
25353
- var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = /* @__PURE__ */ Object.create(null), keyNode, keyTag, valueNode, ch;
25354
- ch = state.input.charCodeAt(state.position);
25485
+ let readNext = true;
25486
+ let _line;
25487
+ let _lineStart;
25488
+ let _pos;
25489
+ const _tag = state.tag;
25490
+ let _result;
25491
+ const _anchor = state.anchor;
25492
+ let terminator;
25493
+ let isPair;
25494
+ let isExplicitPair;
25495
+ let isMapping;
25496
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25497
+ let keyNode;
25498
+ let keyTag;
25499
+ let valueNode;
25500
+ let ch = state.input.charCodeAt(state.position);
25355
25501
  if (ch === 91) {
25356
25502
  terminator = 93;
25357
25503
  isMapping = false;
@@ -25364,7 +25510,7 @@ var require_loader = __commonJS({
25364
25510
  return false;
25365
25511
  }
25366
25512
  if (state.anchor !== null) {
25367
- state.anchorMap[state.anchor] = _result;
25513
+ storeAnchor(state, state.anchor, _result);
25368
25514
  }
25369
25515
  ch = state.input.charCodeAt(++state.position);
25370
25516
  while (ch !== 0) {
@@ -25385,8 +25531,8 @@ var require_loader = __commonJS({
25385
25531
  keyTag = keyNode = valueNode = null;
25386
25532
  isPair = isExplicitPair = false;
25387
25533
  if (ch === 63) {
25388
- following = state.input.charCodeAt(state.position + 1);
25389
- if (is_WS_OR_EOL(following)) {
25534
+ const following = state.input.charCodeAt(state.position + 1);
25535
+ if (isWsOrEol(following)) {
25390
25536
  isPair = isExplicitPair = true;
25391
25537
  state.position++;
25392
25538
  skipSeparationSpace(state, true, nodeIndent);
@@ -25426,8 +25572,15 @@ var require_loader = __commonJS({
25426
25572
  throwError(state, "unexpected end of the stream within a flow collection");
25427
25573
  }
25428
25574
  function readBlockScalar(state, nodeIndent) {
25429
- var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch;
25430
- ch = state.input.charCodeAt(state.position);
25575
+ let folding;
25576
+ let chomping = CHOMPING_CLIP;
25577
+ let didReadContent = false;
25578
+ let detectedIndent = false;
25579
+ let textIndent = nodeIndent;
25580
+ let emptyLines = 0;
25581
+ let atMoreIndented = false;
25582
+ let tmp;
25583
+ let ch = state.input.charCodeAt(state.position);
25431
25584
  if (ch === 124) {
25432
25585
  folding = false;
25433
25586
  } else if (ch === 62) {
@@ -25458,14 +25611,14 @@ var require_loader = __commonJS({
25458
25611
  break;
25459
25612
  }
25460
25613
  }
25461
- if (is_WHITE_SPACE(ch)) {
25614
+ if (isWhiteSpace(ch)) {
25462
25615
  do {
25463
25616
  ch = state.input.charCodeAt(++state.position);
25464
- } while (is_WHITE_SPACE(ch));
25617
+ } while (isWhiteSpace(ch));
25465
25618
  if (ch === 35) {
25466
25619
  do {
25467
25620
  ch = state.input.charCodeAt(++state.position);
25468
- } while (!is_EOL(ch) && ch !== 0);
25621
+ } while (!isEol(ch) && ch !== 0);
25469
25622
  }
25470
25623
  }
25471
25624
  while (ch !== 0) {
@@ -25479,10 +25632,13 @@ var require_loader = __commonJS({
25479
25632
  if (!detectedIndent && state.lineIndent > textIndent) {
25480
25633
  textIndent = state.lineIndent;
25481
25634
  }
25482
- if (is_EOL(ch)) {
25635
+ if (isEol(ch)) {
25483
25636
  emptyLines++;
25484
25637
  continue;
25485
25638
  }
25639
+ if (!detectedIndent && textIndent === 0) {
25640
+ throwError(state, "missing indentation for block scalar");
25641
+ }
25486
25642
  if (state.lineIndent < textIndent) {
25487
25643
  if (chomping === CHOMPING_KEEP) {
25488
25644
  state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
@@ -25494,7 +25650,7 @@ var require_loader = __commonJS({
25494
25650
  break;
25495
25651
  }
25496
25652
  if (folding) {
25497
- if (is_WHITE_SPACE(ch)) {
25653
+ if (isWhiteSpace(ch)) {
25498
25654
  atMoreIndented = true;
25499
25655
  state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
25500
25656
  } else if (atMoreIndented) {
@@ -25513,8 +25669,8 @@ var require_loader = __commonJS({
25513
25669
  didReadContent = true;
25514
25670
  detectedIndent = true;
25515
25671
  emptyLines = 0;
25516
- captureStart = state.position;
25517
- while (!is_EOL(ch) && ch !== 0) {
25672
+ const captureStart = state.position;
25673
+ while (!isEol(ch) && ch !== 0) {
25518
25674
  ch = state.input.charCodeAt(++state.position);
25519
25675
  }
25520
25676
  captureSegment(state, captureStart, state.position, false);
@@ -25522,12 +25678,15 @@ var require_loader = __commonJS({
25522
25678
  return true;
25523
25679
  }
25524
25680
  function readBlockSequence(state, nodeIndent) {
25525
- var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
25681
+ const _tag = state.tag;
25682
+ const _anchor = state.anchor;
25683
+ const _result = [];
25684
+ let detected = false;
25526
25685
  if (state.firstTabInLine !== -1) return false;
25527
25686
  if (state.anchor !== null) {
25528
- state.anchorMap[state.anchor] = _result;
25687
+ storeAnchor(state, state.anchor, _result);
25529
25688
  }
25530
- ch = state.input.charCodeAt(state.position);
25689
+ let ch = state.input.charCodeAt(state.position);
25531
25690
  while (ch !== 0) {
25532
25691
  if (state.firstTabInLine !== -1) {
25533
25692
  state.position = state.firstTabInLine;
@@ -25536,8 +25695,8 @@ var require_loader = __commonJS({
25536
25695
  if (ch !== 45) {
25537
25696
  break;
25538
25697
  }
25539
- following = state.input.charCodeAt(state.position + 1);
25540
- if (!is_WS_OR_EOL(following)) {
25698
+ const following = state.input.charCodeAt(state.position + 1);
25699
+ if (!isWsOrEol(following)) {
25541
25700
  break;
25542
25701
  }
25543
25702
  detected = true;
@@ -25549,7 +25708,7 @@ var require_loader = __commonJS({
25549
25708
  continue;
25550
25709
  }
25551
25710
  }
25552
- _line = state.line;
25711
+ const _line = state.line;
25553
25712
  composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
25554
25713
  _result.push(state.result);
25555
25714
  skipSeparationSpace(state, true, -1);
@@ -25570,20 +25729,32 @@ var require_loader = __commonJS({
25570
25729
  return false;
25571
25730
  }
25572
25731
  function readBlockMapping(state, nodeIndent, flowIndent) {
25573
- var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = /* @__PURE__ */ Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
25732
+ let allowCompact;
25733
+ let _keyLine;
25734
+ let _keyLineStart;
25735
+ let _keyPos;
25736
+ const _tag = state.tag;
25737
+ const _anchor = state.anchor;
25738
+ const _result = {};
25739
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25740
+ let keyTag = null;
25741
+ let keyNode = null;
25742
+ let valueNode = null;
25743
+ let atExplicitKey = false;
25744
+ let detected = false;
25574
25745
  if (state.firstTabInLine !== -1) return false;
25575
25746
  if (state.anchor !== null) {
25576
- state.anchorMap[state.anchor] = _result;
25747
+ storeAnchor(state, state.anchor, _result);
25577
25748
  }
25578
- ch = state.input.charCodeAt(state.position);
25749
+ let ch = state.input.charCodeAt(state.position);
25579
25750
  while (ch !== 0) {
25580
25751
  if (!atExplicitKey && state.firstTabInLine !== -1) {
25581
25752
  state.position = state.firstTabInLine;
25582
25753
  throwError(state, "tab characters must not be used in indentation");
25583
25754
  }
25584
- following = state.input.charCodeAt(state.position + 1);
25585
- _line = state.line;
25586
- if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
25755
+ const following = state.input.charCodeAt(state.position + 1);
25756
+ const _line = state.line;
25757
+ if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
25587
25758
  if (ch === 63) {
25588
25759
  if (atExplicitKey) {
25589
25760
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
@@ -25609,12 +25780,12 @@ var require_loader = __commonJS({
25609
25780
  }
25610
25781
  if (state.line === _line) {
25611
25782
  ch = state.input.charCodeAt(state.position);
25612
- while (is_WHITE_SPACE(ch)) {
25783
+ while (isWhiteSpace(ch)) {
25613
25784
  ch = state.input.charCodeAt(++state.position);
25614
25785
  }
25615
25786
  if (ch === 58) {
25616
25787
  ch = state.input.charCodeAt(++state.position);
25617
- if (!is_WS_OR_EOL(ch)) {
25788
+ if (!isWsOrEol(ch)) {
25618
25789
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
25619
25790
  }
25620
25791
  if (atExplicitKey) {
@@ -25679,8 +25850,11 @@ var require_loader = __commonJS({
25679
25850
  return detected;
25680
25851
  }
25681
25852
  function readTagProperty(state) {
25682
- var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch;
25683
- ch = state.input.charCodeAt(state.position);
25853
+ let isVerbatim = false;
25854
+ let isNamed = false;
25855
+ let tagHandle;
25856
+ let tagName;
25857
+ let ch = state.input.charCodeAt(state.position);
25684
25858
  if (ch !== 33) return false;
25685
25859
  if (state.tag !== null) {
25686
25860
  throwError(state, "duplication of a tag property");
@@ -25696,7 +25870,7 @@ var require_loader = __commonJS({
25696
25870
  } else {
25697
25871
  tagHandle = "!";
25698
25872
  }
25699
- _position = state.position;
25873
+ let _position = state.position;
25700
25874
  if (isVerbatim) {
25701
25875
  do {
25702
25876
  ch = state.input.charCodeAt(++state.position);
@@ -25708,7 +25882,7 @@ var require_loader = __commonJS({
25708
25882
  throwError(state, "unexpected end of the stream within a verbatim tag");
25709
25883
  }
25710
25884
  } else {
25711
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
25885
+ while (ch !== 0 && !isWsOrEol(ch)) {
25712
25886
  if (ch === 33) {
25713
25887
  if (!isNamed) {
25714
25888
  tagHandle = state.input.slice(_position - 1, state.position + 1);
@@ -25750,15 +25924,14 @@ var require_loader = __commonJS({
25750
25924
  return true;
25751
25925
  }
25752
25926
  function readAnchorProperty(state) {
25753
- var _position, ch;
25754
- ch = state.input.charCodeAt(state.position);
25927
+ let ch = state.input.charCodeAt(state.position);
25755
25928
  if (ch !== 38) return false;
25756
25929
  if (state.anchor !== null) {
25757
25930
  throwError(state, "duplication of an anchor property");
25758
25931
  }
25759
25932
  ch = state.input.charCodeAt(++state.position);
25760
- _position = state.position;
25761
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
25933
+ const _position = state.position;
25934
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25762
25935
  ch = state.input.charCodeAt(++state.position);
25763
25936
  }
25764
25937
  if (state.position === _position) {
@@ -25768,18 +25941,17 @@ var require_loader = __commonJS({
25768
25941
  return true;
25769
25942
  }
25770
25943
  function readAlias(state) {
25771
- var _position, alias, ch;
25772
- ch = state.input.charCodeAt(state.position);
25944
+ let ch = state.input.charCodeAt(state.position);
25773
25945
  if (ch !== 42) return false;
25774
25946
  ch = state.input.charCodeAt(++state.position);
25775
- _position = state.position;
25776
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
25947
+ const _position = state.position;
25948
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25777
25949
  ch = state.input.charCodeAt(++state.position);
25778
25950
  }
25779
25951
  if (state.position === _position) {
25780
25952
  throwError(state, "name of an alias node must contain at least one character");
25781
25953
  }
25782
- alias = state.input.slice(_position, state.position);
25954
+ const alias = state.input.slice(_position, state.position);
25783
25955
  if (!_hasOwnProperty.call(state.anchorMap, alias)) {
25784
25956
  throwError(state, 'unidentified alias "' + alias + '"');
25785
25957
  }
@@ -25787,8 +25959,36 @@ var require_loader = __commonJS({
25787
25959
  skipSeparationSpace(state, true, -1);
25788
25960
  return true;
25789
25961
  }
25962
+ function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
25963
+ const fallbackState = snapshotState(state);
25964
+ beginAnchorTransaction(state);
25965
+ restoreState(state, propertyStart);
25966
+ state.tag = null;
25967
+ state.anchor = null;
25968
+ state.kind = null;
25969
+ state.result = null;
25970
+ if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
25971
+ commitAnchorTransaction(state);
25972
+ return true;
25973
+ }
25974
+ rollbackAnchorTransaction(state);
25975
+ restoreState(state, fallbackState);
25976
+ return false;
25977
+ }
25790
25978
  function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
25791
- var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
25979
+ let allowBlockScalars;
25980
+ let allowBlockCollections;
25981
+ let indentStatus = 1;
25982
+ let atNewLine = false;
25983
+ let hasContent = false;
25984
+ let propertyStart = null;
25985
+ let type;
25986
+ let flowIndent;
25987
+ let blockIndent;
25988
+ if (state.depth >= state.maxDepth) {
25989
+ throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
25990
+ }
25991
+ state.depth += 1;
25792
25992
  if (state.listener !== null) {
25793
25993
  state.listener("open", state);
25794
25994
  }
@@ -25796,7 +25996,7 @@ var require_loader = __commonJS({
25796
25996
  state.anchor = null;
25797
25997
  state.kind = null;
25798
25998
  state.result = null;
25799
- allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
25999
+ const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
25800
26000
  if (allowToSeek) {
25801
26001
  if (skipSeparationSpace(state, true, -1)) {
25802
26002
  atNewLine = true;
@@ -25810,7 +26010,18 @@ var require_loader = __commonJS({
25810
26010
  }
25811
26011
  }
25812
26012
  if (indentStatus === 1) {
25813
- while (readTagProperty(state) || readAnchorProperty(state)) {
26013
+ while (true) {
26014
+ const ch = state.input.charCodeAt(state.position);
26015
+ const propertyState = snapshotState(state);
26016
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
26017
+ break;
26018
+ }
26019
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
26020
+ break;
26021
+ }
26022
+ if (propertyStart === null) {
26023
+ propertyStart = propertyState;
26024
+ }
25814
26025
  if (skipSeparationSpace(state, true, -1)) {
25815
26026
  atNewLine = true;
25816
26027
  allowBlockCollections = allowBlockStyles;
@@ -25840,7 +26051,15 @@ var require_loader = __commonJS({
25840
26051
  if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
25841
26052
  hasContent = true;
25842
26053
  } else {
25843
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
26054
+ const ch = state.input.charCodeAt(state.position);
26055
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(
26056
+ state,
26057
+ propertyStart,
26058
+ propertyStart.position - propertyStart.lineStart,
26059
+ flowIndent
26060
+ )) {
26061
+ hasContent = true;
26062
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
25844
26063
  hasContent = true;
25845
26064
  } else if (readAlias(state)) {
25846
26065
  hasContent = true;
@@ -25854,7 +26073,7 @@ var require_loader = __commonJS({
25854
26073
  }
25855
26074
  }
25856
26075
  if (state.anchor !== null) {
25857
- state.anchorMap[state.anchor] = state.result;
26076
+ storeAnchor(state, state.anchor, state.result);
25858
26077
  }
25859
26078
  }
25860
26079
  } else if (indentStatus === 0) {
@@ -25863,19 +26082,19 @@ var require_loader = __commonJS({
25863
26082
  }
25864
26083
  if (state.tag === null) {
25865
26084
  if (state.anchor !== null) {
25866
- state.anchorMap[state.anchor] = state.result;
26085
+ storeAnchor(state, state.anchor, state.result);
25867
26086
  }
25868
26087
  } else if (state.tag === "?") {
25869
26088
  if (state.result !== null && state.kind !== "scalar") {
25870
26089
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
25871
26090
  }
25872
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
26091
+ for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
25873
26092
  type = state.implicitTypes[typeIndex];
25874
26093
  if (type.resolve(state.result)) {
25875
26094
  state.result = type.construct(state.result);
25876
26095
  state.tag = type.tag;
25877
26096
  if (state.anchor !== null) {
25878
- state.anchorMap[state.anchor] = state.result;
26097
+ storeAnchor(state, state.anchor, state.result);
25879
26098
  }
25880
26099
  break;
25881
26100
  }
@@ -25885,8 +26104,8 @@ var require_loader = __commonJS({
25885
26104
  type = state.typeMap[state.kind || "fallback"][state.tag];
25886
26105
  } else {
25887
26106
  type = null;
25888
- typeList = state.typeMap.multi[state.kind || "fallback"];
25889
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
26107
+ const typeList = state.typeMap.multi[state.kind || "fallback"];
26108
+ for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
25890
26109
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
25891
26110
  type = typeList[typeIndex];
25892
26111
  break;
@@ -25904,17 +26123,20 @@ var require_loader = __commonJS({
25904
26123
  } else {
25905
26124
  state.result = type.construct(state.result, state.tag);
25906
26125
  if (state.anchor !== null) {
25907
- state.anchorMap[state.anchor] = state.result;
26126
+ storeAnchor(state, state.anchor, state.result);
25908
26127
  }
25909
26128
  }
25910
26129
  }
25911
26130
  if (state.listener !== null) {
25912
26131
  state.listener("close", state);
25913
26132
  }
26133
+ state.depth -= 1;
25914
26134
  return state.tag !== null || state.anchor !== null || hasContent;
25915
26135
  }
25916
26136
  function readDocument(state) {
25917
- var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
26137
+ const documentStart = state.position;
26138
+ let hasDirectives = false;
26139
+ let ch;
25918
26140
  state.version = null;
25919
26141
  state.checkLineBreaks = state.legacy;
25920
26142
  state.tagMap = /* @__PURE__ */ Object.create(null);
@@ -25927,28 +26149,28 @@ var require_loader = __commonJS({
25927
26149
  }
25928
26150
  hasDirectives = true;
25929
26151
  ch = state.input.charCodeAt(++state.position);
25930
- _position = state.position;
25931
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
26152
+ let _position = state.position;
26153
+ while (ch !== 0 && !isWsOrEol(ch)) {
25932
26154
  ch = state.input.charCodeAt(++state.position);
25933
26155
  }
25934
- directiveName = state.input.slice(_position, state.position);
25935
- directiveArgs = [];
26156
+ const directiveName = state.input.slice(_position, state.position);
26157
+ const directiveArgs = [];
25936
26158
  if (directiveName.length < 1) {
25937
26159
  throwError(state, "directive name must not be less than one character in length");
25938
26160
  }
25939
26161
  while (ch !== 0) {
25940
- while (is_WHITE_SPACE(ch)) {
26162
+ while (isWhiteSpace(ch)) {
25941
26163
  ch = state.input.charCodeAt(++state.position);
25942
26164
  }
25943
26165
  if (ch === 35) {
25944
26166
  do {
25945
26167
  ch = state.input.charCodeAt(++state.position);
25946
- } while (ch !== 0 && !is_EOL(ch));
26168
+ } while (ch !== 0 && !isEol(ch));
25947
26169
  break;
25948
26170
  }
25949
- if (is_EOL(ch)) break;
26171
+ if (isEol(ch)) break;
25950
26172
  _position = state.position;
25951
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
26173
+ while (ch !== 0 && !isWsOrEol(ch)) {
25952
26174
  ch = state.input.charCodeAt(++state.position);
25953
26175
  }
25954
26176
  directiveArgs.push(state.input.slice(_position, state.position));
@@ -25982,8 +26204,6 @@ var require_loader = __commonJS({
25982
26204
  }
25983
26205
  if (state.position < state.length - 1) {
25984
26206
  throwError(state, "end of the stream or a document separator is expected");
25985
- } else {
25986
- return;
25987
26207
  }
25988
26208
  }
25989
26209
  function loadDocuments(input, options) {
@@ -25997,8 +26217,8 @@ var require_loader = __commonJS({
25997
26217
  input = input.slice(1);
25998
26218
  }
25999
26219
  }
26000
- var state = new State(input, options);
26001
- var nullpos = input.indexOf("\0");
26220
+ const state = new State(input, options);
26221
+ const nullpos = input.indexOf("\0");
26002
26222
  if (nullpos !== -1) {
26003
26223
  state.position = nullpos;
26004
26224
  throwError(state, "null byte is not allowed in input");
@@ -26018,16 +26238,16 @@ var require_loader = __commonJS({
26018
26238
  options = iterator;
26019
26239
  iterator = null;
26020
26240
  }
26021
- var documents = loadDocuments(input, options);
26241
+ const documents = loadDocuments(input, options);
26022
26242
  if (typeof iterator !== "function") {
26023
26243
  return documents;
26024
26244
  }
26025
- for (var index = 0, length = documents.length; index < length; index += 1) {
26245
+ for (let index = 0, length = documents.length; index < length; index += 1) {
26026
26246
  iterator(documents[index]);
26027
26247
  }
26028
26248
  }
26029
26249
  function load(input, options) {
26030
- var documents = loadDocuments(input, options);
26250
+ const documents = loadDocuments(input, options);
26031
26251
  if (documents.length === 0) {
26032
26252
  return void 0;
26033
26253
  } else if (documents.length === 1) {
@@ -26110,17 +26330,16 @@ var require_dumper = __commonJS({
26110
26330
  ];
26111
26331
  var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
26112
26332
  function compileStyleMap(schema, map) {
26113
- var result, keys, index, length, tag, style, type;
26114
26333
  if (map === null) return {};
26115
- result = {};
26116
- keys = Object.keys(map);
26117
- for (index = 0, length = keys.length; index < length; index += 1) {
26118
- tag = keys[index];
26119
- style = String(map[tag]);
26334
+ const result = {};
26335
+ const keys = Object.keys(map);
26336
+ for (let index = 0, length = keys.length; index < length; index += 1) {
26337
+ let tag = keys[index];
26338
+ let style = String(map[tag]);
26120
26339
  if (tag.slice(0, 2) === "!!") {
26121
26340
  tag = "tag:yaml.org,2002:" + tag.slice(2);
26122
26341
  }
26123
- type = schema.compiledTypeMap["fallback"][tag];
26342
+ const type = schema.compiledTypeMap["fallback"][tag];
26124
26343
  if (type && _hasOwnProperty.call(type.styleAliases, style)) {
26125
26344
  style = type.styleAliases[style];
26126
26345
  }
@@ -26129,8 +26348,9 @@ var require_dumper = __commonJS({
26129
26348
  return result;
26130
26349
  }
26131
26350
  function encodeHex(character) {
26132
- var string, handle, length;
26133
- string = character.toString(16).toUpperCase();
26351
+ let handle;
26352
+ let length;
26353
+ const string = character.toString(16).toUpperCase();
26134
26354
  if (character <= 255) {
26135
26355
  handle = "x";
26136
26356
  length = 2;
@@ -26170,9 +26390,13 @@ var require_dumper = __commonJS({
26170
26390
  this.usedDuplicates = null;
26171
26391
  }
26172
26392
  function indentString(string, spaces) {
26173
- var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
26393
+ const ind = common.repeat(" ", spaces);
26394
+ let position = 0;
26395
+ let result = "";
26396
+ const length = string.length;
26174
26397
  while (position < length) {
26175
- next = string.indexOf("\n", position);
26398
+ let line;
26399
+ const next = string.indexOf("\n", position);
26176
26400
  if (next === -1) {
26177
26401
  line = string.slice(position);
26178
26402
  position = length;
@@ -26189,9 +26413,8 @@ var require_dumper = __commonJS({
26189
26413
  return "\n" + common.repeat(" ", state.indent * level);
26190
26414
  }
26191
26415
  function testImplicitResolving(state, str) {
26192
- var index, length, type;
26193
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
26194
- type = state.implicitTypes[index];
26416
+ for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) {
26417
+ const type = state.implicitTypes[index];
26195
26418
  if (type.resolve(str)) {
26196
26419
  return true;
26197
26420
  }
@@ -26202,30 +26425,39 @@ var require_dumper = __commonJS({
26202
26425
  return c === CHAR_SPACE || c === CHAR_TAB;
26203
26426
  }
26204
26427
  function isPrintable(c) {
26205
- return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM || 65536 <= c && c <= 1114111;
26428
+ return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
26206
26429
  }
26207
26430
  function isNsCharOrWhitespace(c) {
26208
- return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
26431
+ return isPrintable(c) && c !== CHAR_BOM && // - b-char
26432
+ c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
26209
26433
  }
26210
26434
  function isPlainSafe(c, prev, inblock) {
26211
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
26212
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
26435
+ const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
26436
+ const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
26213
26437
  return (
26214
26438
  // ns-plain-safe
26215
- (inblock ? (
26216
- // c = flow-in
26217
- cIsNsCharOrWhitespace
26218
- ) : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar
26439
+ (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && // - c-flow-indicator
26440
+ c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && // ns-plain-char
26441
+ c !== CHAR_SHARP && // false on '#'
26442
+ !(prev === CHAR_COLON && !cIsNsChar) || // false on ': '
26443
+ isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || // change to true on '[^ ]#'
26444
+ prev === CHAR_COLON && cIsNsChar
26219
26445
  );
26220
26446
  }
26221
26447
  function isPlainSafeFirst(c) {
26222
- return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
26448
+ return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && // - s-white
26449
+ // - (c-indicator ::=
26450
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
26451
+ c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
26452
+ c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && // | “%” | “@” | “`”)
26453
+ c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
26223
26454
  }
26224
26455
  function isPlainSafeLast(c) {
26225
26456
  return !isWhitespace(c) && c !== CHAR_COLON;
26226
26457
  }
26227
26458
  function codePointAt(string, pos) {
26228
- var first = string.charCodeAt(pos), second;
26459
+ const first = string.charCodeAt(pos);
26460
+ let second;
26229
26461
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
26230
26462
  second = string.charCodeAt(pos + 1);
26231
26463
  if (second >= 56320 && second <= 57343) {
@@ -26235,7 +26467,7 @@ var require_dumper = __commonJS({
26235
26467
  return first;
26236
26468
  }
26237
26469
  function needIndentIndicator(string) {
26238
- var leadingSpaceRe = /^\n* /;
26470
+ const leadingSpaceRe = /^\n* /;
26239
26471
  return leadingSpaceRe.test(string);
26240
26472
  }
26241
26473
  var STYLE_PLAIN = 1;
@@ -26244,14 +26476,14 @@ var require_dumper = __commonJS({
26244
26476
  var STYLE_FOLDED = 4;
26245
26477
  var STYLE_DOUBLE = 5;
26246
26478
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
26247
- var i;
26248
- var char = 0;
26249
- var prevChar = null;
26250
- var hasLineBreak = false;
26251
- var hasFoldableLine = false;
26252
- var shouldTrackWidth = lineWidth !== -1;
26253
- var previousLineBreak = -1;
26254
- var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
26479
+ let i;
26480
+ let char = 0;
26481
+ let prevChar = null;
26482
+ let hasLineBreak = false;
26483
+ let hasFoldableLine = false;
26484
+ const shouldTrackWidth = lineWidth !== -1;
26485
+ let previousLineBreak = -1;
26486
+ let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
26255
26487
  if (singleLineOnly || forceQuotes) {
26256
26488
  for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
26257
26489
  char = codePointAt(string, i);
@@ -26303,9 +26535,10 @@ var require_dumper = __commonJS({
26303
26535
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
26304
26536
  }
26305
26537
  }
26306
- var indent = state.indent * Math.max(1, level);
26307
- var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
26308
- var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
26538
+ const indent = state.indent * Math.max(1, level);
26539
+ const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
26540
+ const singleLineOnly = iskey || // No block styles in flow mode.
26541
+ state.flowLevel > -1 && level >= state.flowLevel;
26309
26542
  function testAmbiguity(string2) {
26310
26543
  return testImplicitResolving(state, string2);
26311
26544
  }
@@ -26335,28 +26568,29 @@ var require_dumper = __commonJS({
26335
26568
  })();
26336
26569
  }
26337
26570
  function blockHeader(string, indentPerLevel) {
26338
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
26339
- var clip = string[string.length - 1] === "\n";
26340
- var keep = clip && (string[string.length - 2] === "\n" || string === "\n");
26341
- var chomp = keep ? "+" : clip ? "" : "-";
26571
+ const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
26572
+ const clip = string[string.length - 1] === "\n";
26573
+ const keep = clip && (string[string.length - 2] === "\n" || string === "\n");
26574
+ const chomp = keep ? "+" : clip ? "" : "-";
26342
26575
  return indentIndicator + chomp + "\n";
26343
26576
  }
26344
26577
  function dropEndingNewline(string) {
26345
26578
  return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
26346
26579
  }
26347
26580
  function foldString(string, width) {
26348
- var lineRe = /(\n+)([^\n]*)/g;
26349
- var result = (function() {
26350
- var nextLF = string.indexOf("\n");
26581
+ const lineRe = /(\n+)([^\n]*)/g;
26582
+ let result = (function() {
26583
+ let nextLF = string.indexOf("\n");
26351
26584
  nextLF = nextLF !== -1 ? nextLF : string.length;
26352
26585
  lineRe.lastIndex = nextLF;
26353
26586
  return foldLine(string.slice(0, nextLF), width);
26354
26587
  })();
26355
- var prevMoreIndented = string[0] === "\n" || string[0] === " ";
26356
- var moreIndented;
26357
- var match;
26588
+ let prevMoreIndented = string[0] === "\n" || string[0] === " ";
26589
+ let moreIndented;
26590
+ let match;
26358
26591
  while (match = lineRe.exec(string)) {
26359
- var prefix = match[1], line = match[2];
26592
+ const prefix = match[1];
26593
+ const line = match[2];
26360
26594
  moreIndented = line[0] === " ";
26361
26595
  result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
26362
26596
  prevMoreIndented = moreIndented;
@@ -26365,10 +26599,13 @@ var require_dumper = __commonJS({
26365
26599
  }
26366
26600
  function foldLine(line, width) {
26367
26601
  if (line === "" || line[0] === " ") return line;
26368
- var breakRe = / [^ ]/g;
26369
- var match;
26370
- var start = 0, end, curr = 0, next = 0;
26371
- var result = "";
26602
+ const breakRe = / [^ ]/g;
26603
+ let match;
26604
+ let start = 0;
26605
+ let end;
26606
+ let curr = 0;
26607
+ let next = 0;
26608
+ let result = "";
26372
26609
  while (match = breakRe.exec(line)) {
26373
26610
  next = match.index;
26374
26611
  if (next - start > width) {
@@ -26387,12 +26624,11 @@ var require_dumper = __commonJS({
26387
26624
  return result.slice(1);
26388
26625
  }
26389
26626
  function escapeString(string) {
26390
- var result = "";
26391
- var char = 0;
26392
- var escapeSeq;
26393
- for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
26627
+ let result = "";
26628
+ let char = 0;
26629
+ for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
26394
26630
  char = codePointAt(string, i);
26395
- escapeSeq = ESCAPE_SEQUENCES[char];
26631
+ const escapeSeq = ESCAPE_SEQUENCES[char];
26396
26632
  if (!escapeSeq && isPrintable(char)) {
26397
26633
  result += string[i];
26398
26634
  if (char >= 65536) result += string[i + 1];
@@ -26403,9 +26639,10 @@ var require_dumper = __commonJS({
26403
26639
  return result;
26404
26640
  }
26405
26641
  function writeFlowSequence(state, level, object) {
26406
- var _result = "", _tag = state.tag, index, length, value;
26407
- for (index = 0, length = object.length; index < length; index += 1) {
26408
- value = object[index];
26642
+ let _result = "";
26643
+ const _tag = state.tag;
26644
+ for (let index = 0, length = object.length; index < length; index += 1) {
26645
+ let value = object[index];
26409
26646
  if (state.replacer) {
26410
26647
  value = state.replacer.call(object, String(index), value);
26411
26648
  }
@@ -26418,9 +26655,10 @@ var require_dumper = __commonJS({
26418
26655
  state.dump = "[" + _result + "]";
26419
26656
  }
26420
26657
  function writeBlockSequence(state, level, object, compact) {
26421
- var _result = "", _tag = state.tag, index, length, value;
26422
- for (index = 0, length = object.length; index < length; index += 1) {
26423
- value = object[index];
26658
+ let _result = "";
26659
+ const _tag = state.tag;
26660
+ for (let index = 0, length = object.length; index < length; index += 1) {
26661
+ let value = object[index];
26424
26662
  if (state.replacer) {
26425
26663
  value = state.replacer.call(object, String(index), value);
26426
26664
  }
@@ -26440,13 +26678,15 @@ var require_dumper = __commonJS({
26440
26678
  state.dump = _result || "[]";
26441
26679
  }
26442
26680
  function writeFlowMapping(state, level, object) {
26443
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
26444
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
26445
- pairBuffer = "";
26681
+ let _result = "";
26682
+ const _tag = state.tag;
26683
+ const objectKeyList = Object.keys(object);
26684
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
26685
+ let pairBuffer = "";
26446
26686
  if (_result !== "") pairBuffer += ", ";
26447
26687
  if (state.condenseFlow) pairBuffer += '"';
26448
- objectKey = objectKeyList[index];
26449
- objectValue = object[objectKey];
26688
+ const objectKey = objectKeyList[index];
26689
+ let objectValue = object[objectKey];
26450
26690
  if (state.replacer) {
26451
26691
  objectValue = state.replacer.call(object, objectKey, objectValue);
26452
26692
  }
@@ -26465,7 +26705,9 @@ var require_dumper = __commonJS({
26465
26705
  state.dump = "{" + _result + "}";
26466
26706
  }
26467
26707
  function writeBlockMapping(state, level, object, compact) {
26468
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
26708
+ let _result = "";
26709
+ const _tag = state.tag;
26710
+ const objectKeyList = Object.keys(object);
26469
26711
  if (state.sortKeys === true) {
26470
26712
  objectKeyList.sort();
26471
26713
  } else if (typeof state.sortKeys === "function") {
@@ -26473,20 +26715,20 @@ var require_dumper = __commonJS({
26473
26715
  } else if (state.sortKeys) {
26474
26716
  throw new YAMLException("sortKeys must be a boolean or a function");
26475
26717
  }
26476
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
26477
- pairBuffer = "";
26718
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
26719
+ let pairBuffer = "";
26478
26720
  if (!compact || _result !== "") {
26479
26721
  pairBuffer += generateNextLine(state, level);
26480
26722
  }
26481
- objectKey = objectKeyList[index];
26482
- objectValue = object[objectKey];
26723
+ const objectKey = objectKeyList[index];
26724
+ let objectValue = object[objectKey];
26483
26725
  if (state.replacer) {
26484
26726
  objectValue = state.replacer.call(object, objectKey, objectValue);
26485
26727
  }
26486
26728
  if (!writeNode(state, level + 1, objectKey, true, true, true)) {
26487
26729
  continue;
26488
26730
  }
26489
- explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
26731
+ const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
26490
26732
  if (explicitPair) {
26491
26733
  if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26492
26734
  pairBuffer += "?";
@@ -26513,10 +26755,9 @@ var require_dumper = __commonJS({
26513
26755
  state.dump = _result || "{}";
26514
26756
  }
26515
26757
  function detectType(state, object, explicit) {
26516
- var _result, typeList, index, length, type, style;
26517
- typeList = explicit ? state.explicitTypes : state.implicitTypes;
26518
- for (index = 0, length = typeList.length; index < length; index += 1) {
26519
- type = typeList[index];
26758
+ const typeList = explicit ? state.explicitTypes : state.implicitTypes;
26759
+ for (let index = 0, length = typeList.length; index < length; index += 1) {
26760
+ const type = typeList[index];
26520
26761
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
26521
26762
  if (explicit) {
26522
26763
  if (type.multi && type.representName) {
@@ -26528,7 +26769,8 @@ var require_dumper = __commonJS({
26528
26769
  state.tag = "?";
26529
26770
  }
26530
26771
  if (type.represent) {
26531
- style = state.styleMap[type.tag] || type.defaultStyle;
26772
+ const style = state.styleMap[type.tag] || type.defaultStyle;
26773
+ let _result;
26532
26774
  if (_toString.call(type.represent) === "[object Function]") {
26533
26775
  _result = type.represent(object, style);
26534
26776
  } else if (_hasOwnProperty.call(type.represent, style)) {
@@ -26549,13 +26791,14 @@ var require_dumper = __commonJS({
26549
26791
  if (!detectType(state, object, false)) {
26550
26792
  detectType(state, object, true);
26551
26793
  }
26552
- var type = _toString.call(state.dump);
26553
- var inblock = block;
26554
- var tagStr;
26794
+ const type = _toString.call(state.dump);
26795
+ const inblock = block;
26555
26796
  if (block) {
26556
26797
  block = state.flowLevel < 0 || state.flowLevel > level;
26557
26798
  }
26558
- var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
26799
+ const objectOrArray = type === "[object Object]" || type === "[object Array]";
26800
+ let duplicateIndex;
26801
+ let duplicate;
26559
26802
  if (objectOrArray) {
26560
26803
  duplicateIndex = state.duplicates.indexOf(object);
26561
26804
  duplicate = duplicateIndex !== -1;
@@ -26608,7 +26851,7 @@ var require_dumper = __commonJS({
26608
26851
  throw new YAMLException("unacceptable kind of an object to dump " + type);
26609
26852
  }
26610
26853
  if (state.tag !== null && state.tag !== "?") {
26611
- tagStr = encodeURI(
26854
+ let tagStr = encodeURI(
26612
26855
  state.tag[0] === "!" ? state.tag.slice(1) : state.tag
26613
26856
  ).replace(/!/g, "%21");
26614
26857
  if (state.tag[0] === "!") {
@@ -26624,17 +26867,18 @@ var require_dumper = __commonJS({
26624
26867
  return true;
26625
26868
  }
26626
26869
  function getDuplicateReferences(object, state) {
26627
- var objects = [], duplicatesIndexes = [], index, length;
26870
+ const objects = [];
26871
+ const duplicatesIndexes = [];
26628
26872
  inspectNode(object, objects, duplicatesIndexes);
26629
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
26873
+ const length = duplicatesIndexes.length;
26874
+ for (let index = 0; index < length; index += 1) {
26630
26875
  state.duplicates.push(objects[duplicatesIndexes[index]]);
26631
26876
  }
26632
26877
  state.usedDuplicates = new Array(length);
26633
26878
  }
26634
26879
  function inspectNode(object, objects, duplicatesIndexes) {
26635
- var objectKeyList, index, length;
26636
26880
  if (object !== null && typeof object === "object") {
26637
- index = objects.indexOf(object);
26881
+ const index = objects.indexOf(object);
26638
26882
  if (index !== -1) {
26639
26883
  if (duplicatesIndexes.indexOf(index) === -1) {
26640
26884
  duplicatesIndexes.push(index);
@@ -26642,13 +26886,13 @@ var require_dumper = __commonJS({
26642
26886
  } else {
26643
26887
  objects.push(object);
26644
26888
  if (Array.isArray(object)) {
26645
- for (index = 0, length = object.length; index < length; index += 1) {
26646
- inspectNode(object[index], objects, duplicatesIndexes);
26889
+ for (let i = 0, length = object.length; i < length; i += 1) {
26890
+ inspectNode(object[i], objects, duplicatesIndexes);
26647
26891
  }
26648
26892
  } else {
26649
- objectKeyList = Object.keys(object);
26650
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
26651
- inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
26893
+ const objectKeyList = Object.keys(object);
26894
+ for (let i = 0, length = objectKeyList.length; i < length; i += 1) {
26895
+ inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
26652
26896
  }
26653
26897
  }
26654
26898
  }
@@ -26656,9 +26900,9 @@ var require_dumper = __commonJS({
26656
26900
  }
26657
26901
  function dump(input, options) {
26658
26902
  options = options || {};
26659
- var state = new State(options);
26903
+ const state = new State(options);
26660
26904
  if (!state.noRefs) getDuplicateReferences(input, state);
26661
- var value = input;
26905
+ let value = input;
26662
26906
  if (state.replacer) {
26663
26907
  value = state.replacer.call({ "": value }, "", value);
26664
26908
  }
@@ -49863,7 +50107,7 @@ var require_purify_cjs = __commonJS({
49863
50107
  function createDOMPurify() {
49864
50108
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
49865
50109
  const DOMPurify = (root) => createDOMPurify(root);
49866
- DOMPurify.version = "3.4.10";
50110
+ DOMPurify.version = "3.4.11";
49867
50111
  DOMPurify.removed = [];
49868
50112
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
49869
50113
  DOMPurify.isSupported = false;
@@ -49982,6 +50226,8 @@ var require_purify_cjs = __commonJS({
49982
50226
  let SAFE_FOR_XML = true;
49983
50227
  let WHOLE_DOCUMENT = false;
49984
50228
  let SET_CONFIG = false;
50229
+ let SET_CONFIG_ALLOWED_TAGS = null;
50230
+ let SET_CONFIG_ALLOWED_ATTR = null;
49985
50231
  let FORCE_BODY = false;
49986
50232
  let RETURN_DOM = false;
49987
50233
  let RETURN_DOM_FRAGMENT = false;
@@ -50227,12 +50473,6 @@ var require_purify_cjs = __commonJS({
50227
50473
  emptyHTML = _createTrustedHTML("");
50228
50474
  }
50229
50475
  }
50230
- if ((hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) && ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
50231
- ALLOWED_TAGS = clone(ALLOWED_TAGS);
50232
- }
50233
- if (hooks.uponSanitizeAttribute.length > 0 && ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
50234
- ALLOWED_ATTR = clone(ALLOWED_ATTR);
50235
- }
50236
50476
  if (freeze) {
50237
50477
  freeze(cfg);
50238
50478
  }
@@ -50825,9 +51065,18 @@ var require_purify_cjs = __commonJS({
50825
51065
  if (!DOMPurify.isSupported) {
50826
51066
  return dirty;
50827
51067
  }
50828
- if (!SET_CONFIG) {
51068
+ if (SET_CONFIG) {
51069
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
51070
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
51071
+ } else {
50829
51072
  _parseConfig(cfg);
50830
51073
  }
51074
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) {
51075
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
51076
+ }
51077
+ if (hooks.uponSanitizeAttribute.length > 0) {
51078
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
51079
+ }
50831
51080
  DOMPurify.removed = [];
50832
51081
  const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
50833
51082
  if (inPlace) {
@@ -50927,10 +51176,14 @@ var require_purify_cjs = __commonJS({
50927
51176
  let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
50928
51177
  _parseConfig(cfg);
50929
51178
  SET_CONFIG = true;
51179
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
51180
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
50930
51181
  };
50931
51182
  DOMPurify.clearConfig = function() {
50932
51183
  CONFIG = null;
50933
51184
  SET_CONFIG = false;
51185
+ SET_CONFIG_ALLOWED_TAGS = null;
51186
+ SET_CONFIG_ALLOWED_ATTR = null;
50934
51187
  trustedTypesPolicy = defaultTrustedTypesPolicy;
50935
51188
  emptyHTML = "";
50936
51189
  };
@@ -50946,9 +51199,15 @@ var require_purify_cjs = __commonJS({
50946
51199
  if (typeof hookFunction !== "function") {
50947
51200
  return;
50948
51201
  }
51202
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
51203
+ return;
51204
+ }
50949
51205
  arrayPush(hooks[entryPoint], hookFunction);
50950
51206
  };
50951
51207
  DOMPurify.removeHook = function(entryPoint, hookFunction) {
51208
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
51209
+ return void 0;
51210
+ }
50952
51211
  if (hookFunction !== void 0) {
50953
51212
  const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
50954
51213
  return index === -1 ? void 0 : arraySplice(hooks[entryPoint], index, 1)[0];
@@ -50956,6 +51215,9 @@ var require_purify_cjs = __commonJS({
50956
51215
  return arrayPop(hooks[entryPoint]);
50957
51216
  };
50958
51217
  DOMPurify.removeHooks = function(entryPoint) {
51218
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
51219
+ return;
51220
+ }
50959
51221
  hooks[entryPoint] = [];
50960
51222
  };
50961
51223
  DOMPurify.removeAllHooks = function() {
@@ -91942,7 +92204,7 @@ async function getPageHTML(api, pathToApi, {
91942
92204
  templateFileName,
91943
92205
  templateOptions,
91944
92206
  redocOptions = {},
91945
- redocCurrentVersion
92207
+ redocVersion: redocVersion2
91946
92208
  }, configPath) {
91947
92209
  logger.info("Prerendering docs\n");
91948
92210
  const apiUrl = redocOptions.specUrl || (isAbsoluteUrl(pathToApi) ? pathToApi : void 0);
@@ -91964,7 +92226,7 @@ async function getPageHTML(api, pathToApi, {
91964
92226
  Redoc.${"hydrate(__redoc_state, container)"};
91965
92227
 
91966
92228
  </script>`,
91967
- redocHead: `<script src="https://cdn.redocly.com/redoc/v${redocCurrentVersion}/bundles/redoc.standalone.js"></script>` + css,
92229
+ redocHead: `<script src="https://cdn.redocly.com/redoc/v${redocVersion2}/bundles/redoc.standalone.js" integrity="${redocStandaloneSri}" crossorigin="anonymous"></script>` + css,
91968
92230
  title: title || api.info.title || "ReDoc documentation",
91969
92231
  disableGoogleFont,
91970
92232
  templateOptions
@@ -92003,12 +92265,7 @@ var handlerBuildCommand = async ({
92003
92265
  isAbsoluteUrl(pathToApi) ? pathToApi : resolve2(pathToApi)
92004
92266
  );
92005
92267
  collectSpecData?.(api);
92006
- const pageHTML = await getPageHTML(
92007
- api,
92008
- pathToApi,
92009
- { ...options, redocCurrentVersion: redocVersion },
92010
- argv.config
92011
- );
92268
+ const pageHTML = await getPageHTML(api, pathToApi, { ...options, redocVersion }, argv.config);
92012
92269
  mkdirSync(dirname2(options.output), { recursive: true });
92013
92270
  writeFileSync(options.output, pageHTML);
92014
92271
  const sizeInKiB = Math.ceil(Buffer.byteLength(pageHTML) / 1024);
@@ -92162,7 +92419,7 @@ perfect-scrollbar/dist/perfect-scrollbar.common.js:
92162
92419
  *)
92163
92420
 
92164
92421
  dompurify/dist/purify.cjs.js:
92165
- (*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE *)
92422
+ (*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE *)
92166
92423
 
92167
92424
  react-dom/cjs/react-dom.production.js:
92168
92425
  (**