@ariestools/toolchain 8.7.20 → 8.7.21

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.
Files changed (43) hide show
  1. package/dist/actions/analyze.d.ts +28 -1
  2. package/dist/actions/analyze.d.ts.map +1 -1
  3. package/dist/actions/work/github.d.ts +60 -0
  4. package/dist/actions/work/github.d.ts.map +1 -0
  5. package/dist/actions/work/index.d.ts +20 -19
  6. package/dist/actions/work/index.d.ts.map +1 -1
  7. package/dist/actions/work/result.d.ts +12 -0
  8. package/dist/actions/work/result.d.ts.map +1 -0
  9. package/dist/actions/work/schema.d.ts.map +1 -1
  10. package/dist/actions/work/sync.d.ts +34 -0
  11. package/dist/actions/work/sync.d.ts.map +1 -0
  12. package/dist/bin/package/build.mjs +1256 -699
  13. package/dist/bin/package/build.mjs.map +1 -1
  14. package/dist/bin/package/clean.mjs +633 -432
  15. package/dist/bin/package/clean.mjs.map +1 -1
  16. package/dist/bin/package/compile.mjs +632 -431
  17. package/dist/bin/package/compile.mjs.map +1 -1
  18. package/dist/bin/package/copy-assets-cjs.mjs +1 -1
  19. package/dist/bin/package/copy-assets-esm.mjs +1 -1
  20. package/dist/bin/package/fix.mjs +17 -12
  21. package/dist/bin/package/fix.mjs.map +1 -1
  22. package/dist/bin/package/lint-verbose.mjs +17 -12
  23. package/dist/bin/package/lint-verbose.mjs.map +1 -1
  24. package/dist/bin/package/lint.mjs +17 -12
  25. package/dist/bin/package/lint.mjs.map +1 -1
  26. package/dist/bin/package/publint.mjs +1161 -609
  27. package/dist/bin/package/publint.mjs.map +1 -1
  28. package/dist/bin/package/recompile.mjs +632 -431
  29. package/dist/bin/package/recompile.mjs.map +1 -1
  30. package/dist/bin/package/relint.mjs +17 -12
  31. package/dist/bin/package/relint.mjs.map +1 -1
  32. package/dist/bin/package/sync-layout.mjs +615 -419
  33. package/dist/bin/package/sync-layout.mjs.map +1 -1
  34. package/dist/bin/xy.mjs +1960 -722
  35. package/dist/bin/xy.mjs.map +1 -1
  36. package/dist/xy/common/work/index.d.ts.map +1 -1
  37. package/dist/xy/common/work/listCommand.d.ts.map +1 -1
  38. package/dist/xy/common/work/syncCommand.d.ts +3 -0
  39. package/dist/xy/common/work/syncCommand.d.ts.map +1 -0
  40. package/dist/xy/react/analyzeCommand.d.ts.map +1 -1
  41. package/package.json +5 -5
  42. package/dist/bin/source-map-explorer.mjs +0 -27268
  43. package/dist/bin/source-map-explorer.mjs.map +0 -1
@@ -2220,7 +2220,7 @@ var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2220
2220
  module.exports = parseJson;
2221
2221
  }));
2222
2222
  //#endregion
2223
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/common.js
2223
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
2224
2224
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2225
2225
  function isNothing(subject) {
2226
2226
  return typeof subject === "undefined" || subject === null;
@@ -2234,19 +2234,18 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2234
2234
  return [sequence];
2235
2235
  }
2236
2236
  function extend(target, source) {
2237
- var index, length, key, sourceKeys;
2238
2237
  if (source) {
2239
- sourceKeys = Object.keys(source);
2240
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
2241
- key = sourceKeys[index];
2238
+ const sourceKeys = Object.keys(source);
2239
+ for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
2240
+ const key = sourceKeys[index];
2242
2241
  target[key] = source[key];
2243
2242
  }
2244
2243
  }
2245
2244
  return target;
2246
2245
  }
2247
2246
  function repeat(string, count) {
2248
- var result = "", cycle;
2249
- for (cycle = 0; cycle < count; cycle += 1) result += string;
2247
+ let result = "";
2248
+ for (let cycle = 0; cycle < count; cycle += 1) result += string;
2250
2249
  return result;
2251
2250
  }
2252
2251
  function isNegativeZero(number) {
@@ -2260,10 +2259,11 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2260
2259
  module.exports.extend = extend;
2261
2260
  }));
2262
2261
  //#endregion
2263
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/exception.js
2262
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/exception.js
2264
2263
  var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2265
2264
  function formatError(exception, compact) {
2266
- var where = "", message = exception.reason || "(unknown reason)";
2265
+ let where = "";
2266
+ const message = exception.reason || "(unknown reason)";
2267
2267
  if (!exception.mark) return message;
2268
2268
  if (exception.mark.name) where += "in \"" + exception.mark.name + "\" ";
2269
2269
  where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
@@ -2287,13 +2287,13 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2287
2287
  module.exports = YAMLException;
2288
2288
  }));
2289
2289
  //#endregion
2290
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/snippet.js
2290
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/snippet.js
2291
2291
  var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2292
- var common = require_common();
2292
+ const common = require_common();
2293
2293
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
2294
- var head = "";
2295
- var tail = "";
2296
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
2294
+ let head = "";
2295
+ let tail = "";
2296
+ const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
2297
2297
  if (position - lineStart > maxHalfLength) {
2298
2298
  head = " ... ";
2299
2299
  lineStart = position - maxHalfLength + head.length;
@@ -2317,31 +2317,31 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2317
2317
  if (typeof options.indent !== "number") options.indent = 1;
2318
2318
  if (typeof options.linesBefore !== "number") options.linesBefore = 3;
2319
2319
  if (typeof options.linesAfter !== "number") options.linesAfter = 2;
2320
- var re = /\r?\n|\r|\0/g;
2321
- var lineStarts = [0];
2322
- var lineEnds = [];
2323
- var match;
2324
- var foundLineNo = -1;
2320
+ const re = /\r?\n|\r|\0/g;
2321
+ const lineStarts = [0];
2322
+ const lineEnds = [];
2323
+ let match;
2324
+ let foundLineNo = -1;
2325
2325
  while (match = re.exec(mark.buffer)) {
2326
2326
  lineEnds.push(match.index);
2327
2327
  lineStarts.push(match.index + match[0].length);
2328
2328
  if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2;
2329
2329
  }
2330
2330
  if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
2331
- var result = "", i, line;
2332
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
2333
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
2334
- for (i = 1; i <= options.linesBefore; i++) {
2331
+ let result = "";
2332
+ const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
2333
+ const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
2334
+ for (let i = 1; i <= options.linesBefore; i++) {
2335
2335
  if (foundLineNo - i < 0) break;
2336
- line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
2336
+ const line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
2337
2337
  result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
2338
2338
  }
2339
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
2339
+ const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
2340
2340
  result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
2341
2341
  result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
2342
- for (i = 1; i <= options.linesAfter; i++) {
2342
+ for (let i = 1; i <= options.linesAfter; i++) {
2343
2343
  if (foundLineNo + i >= lineEnds.length) break;
2344
- line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
2344
+ const line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
2345
2345
  result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
2346
2346
  }
2347
2347
  return result.replace(/\n$/, "");
@@ -2349,10 +2349,10 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2349
2349
  module.exports = makeSnippet;
2350
2350
  }));
2351
2351
  //#endregion
2352
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type.js
2352
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type.js
2353
2353
  var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2354
- var YAMLException = require_exception();
2355
- var TYPE_CONSTRUCTOR_OPTIONS = [
2354
+ const YAMLException = require_exception();
2355
+ const TYPE_CONSTRUCTOR_OPTIONS = [
2356
2356
  "kind",
2357
2357
  "multi",
2358
2358
  "resolve",
@@ -2364,13 +2364,13 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2364
2364
  "defaultStyle",
2365
2365
  "styleAliases"
2366
2366
  ];
2367
- var YAML_NODE_KINDS = [
2367
+ const YAML_NODE_KINDS = [
2368
2368
  "scalar",
2369
2369
  "sequence",
2370
2370
  "mapping"
2371
2371
  ];
2372
2372
  function compileStyleAliases(map) {
2373
- var result = {};
2373
+ const result = {};
2374
2374
  if (map !== null) Object.keys(map).forEach(function(style) {
2375
2375
  map[style].forEach(function(alias) {
2376
2376
  result[String(alias)] = style;
@@ -2404,14 +2404,14 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2404
2404
  module.exports = Type;
2405
2405
  }));
2406
2406
  //#endregion
2407
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema.js
2407
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema.js
2408
2408
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2409
- var YAMLException = require_exception();
2410
- var Type = require_type();
2409
+ const YAMLException = require_exception();
2410
+ const Type = require_type();
2411
2411
  function compileList(schema, name) {
2412
- var result = [];
2412
+ const result = [];
2413
2413
  schema[name].forEach(function(currentType) {
2414
- var newIndex = result.length;
2414
+ let newIndex = result.length;
2415
2415
  result.forEach(function(previousType, previousIndex) {
2416
2416
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) newIndex = previousIndex;
2417
2417
  });
@@ -2420,7 +2420,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2420
2420
  return result;
2421
2421
  }
2422
2422
  function compileMap() {
2423
- var result = {
2423
+ const result = {
2424
2424
  scalar: {},
2425
2425
  sequence: {},
2426
2426
  mapping: {},
@@ -2431,22 +2431,22 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2431
2431
  mapping: [],
2432
2432
  fallback: []
2433
2433
  }
2434
- }, index, length;
2434
+ };
2435
2435
  function collectType(type) {
2436
2436
  if (type.multi) {
2437
2437
  result.multi[type.kind].push(type);
2438
2438
  result.multi["fallback"].push(type);
2439
2439
  } else result[type.kind][type.tag] = result["fallback"][type.tag] = type;
2440
2440
  }
2441
- for (index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
2441
+ for (let index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
2442
2442
  return result;
2443
2443
  }
2444
2444
  function Schema(definition) {
2445
2445
  return this.extend(definition);
2446
2446
  }
2447
2447
  Schema.prototype.extend = function extend(definition) {
2448
- var implicit = [];
2449
- var explicit = [];
2448
+ let implicit = [];
2449
+ let explicit = [];
2450
2450
  if (definition instanceof Type) explicit.push(definition);
2451
2451
  else if (Array.isArray(definition)) explicit = explicit.concat(definition);
2452
2452
  else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
@@ -2461,7 +2461,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2461
2461
  explicit.forEach(function(type) {
2462
2462
  if (!(type instanceof Type)) throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
2463
2463
  });
2464
- var result = Object.create(Schema.prototype);
2464
+ const result = Object.create(Schema.prototype);
2465
2465
  result.implicit = (this.implicit || []).concat(implicit);
2466
2466
  result.explicit = (this.explicit || []).concat(explicit);
2467
2467
  result.compiledImplicit = compileList(result, "implicit");
@@ -2472,7 +2472,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2472
2472
  module.exports = Schema;
2473
2473
  }));
2474
2474
  //#endregion
2475
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/str.js
2475
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/str.js
2476
2476
  var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2477
2477
  module.exports = new (require_type())("tag:yaml.org,2002:str", {
2478
2478
  kind: "scalar",
@@ -2482,7 +2482,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2482
2482
  });
2483
2483
  }));
2484
2484
  //#endregion
2485
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/seq.js
2485
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/seq.js
2486
2486
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2487
2487
  module.exports = new (require_type())("tag:yaml.org,2002:seq", {
2488
2488
  kind: "sequence",
@@ -2492,7 +2492,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2492
2492
  });
2493
2493
  }));
2494
2494
  //#endregion
2495
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/map.js
2495
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/map.js
2496
2496
  var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2497
2497
  module.exports = new (require_type())("tag:yaml.org,2002:map", {
2498
2498
  kind: "mapping",
@@ -2502,7 +2502,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2502
2502
  });
2503
2503
  }));
2504
2504
  //#endregion
2505
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/failsafe.js
2505
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/failsafe.js
2506
2506
  var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2507
2507
  module.exports = new (require_schema())({ explicit: [
2508
2508
  require_str(),
@@ -2511,12 +2511,12 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2511
2511
  ] });
2512
2512
  }));
2513
2513
  //#endregion
2514
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/null.js
2514
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/null.js
2515
2515
  var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2516
- var Type = require_type();
2516
+ const Type = require_type();
2517
2517
  function resolveYamlNull(data) {
2518
2518
  if (data === null) return true;
2519
- var max = data.length;
2519
+ const max = data.length;
2520
2520
  return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
2521
2521
  }
2522
2522
  function constructYamlNull() {
@@ -2551,12 +2551,12 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2551
2551
  });
2552
2552
  }));
2553
2553
  //#endregion
2554
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/bool.js
2554
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/bool.js
2555
2555
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2556
- var Type = require_type();
2556
+ const Type = require_type();
2557
2557
  function resolveYamlBoolean(data) {
2558
2558
  if (data === null) return false;
2559
- var max = data.length;
2559
+ const max = data.length;
2560
2560
  return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
2561
2561
  }
2562
2562
  function constructYamlBoolean(data) {
@@ -2585,24 +2585,26 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2585
2585
  });
2586
2586
  }));
2587
2587
  //#endregion
2588
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/int.js
2588
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/int.js
2589
2589
  var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2590
- var common = require_common();
2591
- var Type = require_type();
2590
+ const common = require_common();
2591
+ const Type = require_type();
2592
2592
  function isHexCode(c) {
2593
- return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
2593
+ return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
2594
2594
  }
2595
2595
  function isOctCode(c) {
2596
- return 48 <= c && c <= 55;
2596
+ return c >= 48 && c <= 55;
2597
2597
  }
2598
2598
  function isDecCode(c) {
2599
- return 48 <= c && c <= 57;
2599
+ return c >= 48 && c <= 57;
2600
2600
  }
2601
2601
  function resolveYamlInteger(data) {
2602
2602
  if (data === null) return false;
2603
- var max = data.length, index = 0, hasDigits = false, ch;
2603
+ const max = data.length;
2604
+ let index = 0;
2605
+ let hasDigits = false;
2604
2606
  if (!max) return false;
2605
- ch = data[index];
2607
+ let ch = data[index];
2606
2608
  if (ch === "-" || ch === "+") ch = data[++index];
2607
2609
  if (ch === "0") {
2608
2610
  if (index + 1 === max) return true;
@@ -2611,47 +2613,39 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2611
2613
  index++;
2612
2614
  for (; index < max; index++) {
2613
2615
  ch = data[index];
2614
- if (ch === "_") continue;
2615
2616
  if (ch !== "0" && ch !== "1") return false;
2616
2617
  hasDigits = true;
2617
2618
  }
2618
- return hasDigits && ch !== "_";
2619
+ return hasDigits && isFinite(parseYamlInteger(data));
2619
2620
  }
2620
2621
  if (ch === "x") {
2621
2622
  index++;
2622
2623
  for (; index < max; index++) {
2623
- ch = data[index];
2624
- if (ch === "_") continue;
2625
2624
  if (!isHexCode(data.charCodeAt(index))) return false;
2626
2625
  hasDigits = true;
2627
2626
  }
2628
- return hasDigits && ch !== "_";
2627
+ return hasDigits && isFinite(parseYamlInteger(data));
2629
2628
  }
2630
2629
  if (ch === "o") {
2631
2630
  index++;
2632
2631
  for (; index < max; index++) {
2633
- ch = data[index];
2634
- if (ch === "_") continue;
2635
2632
  if (!isOctCode(data.charCodeAt(index))) return false;
2636
2633
  hasDigits = true;
2637
2634
  }
2638
- return hasDigits && ch !== "_";
2635
+ return hasDigits && isFinite(parseYamlInteger(data));
2639
2636
  }
2640
2637
  }
2641
- if (ch === "_") return false;
2642
2638
  for (; index < max; index++) {
2643
- ch = data[index];
2644
- if (ch === "_") continue;
2645
2639
  if (!isDecCode(data.charCodeAt(index))) return false;
2646
2640
  hasDigits = true;
2647
2641
  }
2648
- if (!hasDigits || ch === "_") return false;
2649
- return true;
2642
+ if (!hasDigits) return false;
2643
+ return isFinite(parseYamlInteger(data));
2650
2644
  }
2651
- function constructYamlInteger(data) {
2652
- var value = data, sign = 1, ch;
2653
- if (value.indexOf("_") !== -1) value = value.replace(/_/g, "");
2654
- ch = value[0];
2645
+ function parseYamlInteger(data) {
2646
+ let value = data;
2647
+ let sign = 1;
2648
+ let ch = value[0];
2655
2649
  if (ch === "-" || ch === "+") {
2656
2650
  if (ch === "-") sign = -1;
2657
2651
  value = value.slice(1);
@@ -2665,6 +2659,9 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2665
2659
  }
2666
2660
  return sign * parseInt(value, 10);
2667
2661
  }
2662
+ function constructYamlInteger(data) {
2663
+ return parseYamlInteger(data);
2664
+ }
2668
2665
  function isInteger(object) {
2669
2666
  return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
2670
2667
  }
@@ -2697,26 +2694,28 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2697
2694
  });
2698
2695
  }));
2699
2696
  //#endregion
2700
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/float.js
2697
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/float.js
2701
2698
  var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2702
- var common = require_common();
2703
- var Type = require_type();
2704
- var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
2699
+ const common = require_common();
2700
+ const Type = require_type();
2701
+ const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
2702
+ const YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
2705
2703
  function resolveYamlFloat(data) {
2706
2704
  if (data === null) return false;
2707
- if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
2708
- return true;
2705
+ if (!YAML_FLOAT_PATTERN.test(data)) return false;
2706
+ if (isFinite(parseFloat(data, 10))) return true;
2707
+ return YAML_FLOAT_SPECIAL_PATTERN.test(data);
2709
2708
  }
2710
2709
  function constructYamlFloat(data) {
2711
- var value = data.replace(/_/g, "").toLowerCase(), sign = value[0] === "-" ? -1 : 1;
2710
+ let value = data.toLowerCase();
2711
+ const sign = value[0] === "-" ? -1 : 1;
2712
2712
  if ("+-".indexOf(value[0]) >= 0) value = value.slice(1);
2713
2713
  if (value === ".inf") return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
2714
2714
  else if (value === ".nan") return NaN;
2715
2715
  return sign * parseFloat(value, 10);
2716
2716
  }
2717
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
2717
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
2718
2718
  function representYamlFloat(object, style) {
2719
- var res;
2720
2719
  if (isNaN(object)) switch (style) {
2721
2720
  case "lowercase": return ".nan";
2722
2721
  case "uppercase": return ".NAN";
@@ -2733,7 +2732,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2733
2732
  case "camelcase": return "-.Inf";
2734
2733
  }
2735
2734
  else if (common.isNegativeZero(object)) return "-0.0";
2736
- res = object.toString(10);
2735
+ const res = object.toString(10);
2737
2736
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
2738
2737
  }
2739
2738
  function isFloat(object) {
@@ -2749,7 +2748,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2749
2748
  });
2750
2749
  }));
2751
2750
  //#endregion
2752
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/json.js
2751
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/json.js
2753
2752
  var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2754
2753
  module.exports = require_failsafe().extend({ implicit: [
2755
2754
  require_null(),
@@ -2759,16 +2758,16 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2759
2758
  ] });
2760
2759
  }));
2761
2760
  //#endregion
2762
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/core.js
2761
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/core.js
2763
2762
  var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2764
2763
  module.exports = require_json();
2765
2764
  }));
2766
2765
  //#endregion
2767
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/timestamp.js
2766
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/timestamp.js
2768
2767
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2769
- var Type = require_type();
2770
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
2771
- var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
2768
+ const Type = require_type();
2769
+ const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
2770
+ const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
2772
2771
  function resolveYamlTimestamp(data) {
2773
2772
  if (data === null) return false;
2774
2773
  if (YAML_DATE_REGEXP.exec(data) !== null) return true;
@@ -2776,29 +2775,30 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2776
2775
  return false;
2777
2776
  }
2778
2777
  function constructYamlTimestamp(data) {
2779
- var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
2780
- match = YAML_DATE_REGEXP.exec(data);
2778
+ let fraction = 0;
2779
+ let delta = null;
2780
+ let match = YAML_DATE_REGEXP.exec(data);
2781
2781
  if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
2782
2782
  if (match === null) throw new Error("Date resolve error");
2783
- year = +match[1];
2784
- month = +match[2] - 1;
2785
- day = +match[3];
2783
+ const year = +match[1];
2784
+ const month = +match[2] - 1;
2785
+ const day = +match[3];
2786
2786
  if (!match[4]) return new Date(Date.UTC(year, month, day));
2787
- hour = +match[4];
2788
- minute = +match[5];
2789
- second = +match[6];
2787
+ const hour = +match[4];
2788
+ const minute = +match[5];
2789
+ const second = +match[6];
2790
2790
  if (match[7]) {
2791
2791
  fraction = match[7].slice(0, 3);
2792
2792
  while (fraction.length < 3) fraction += "0";
2793
2793
  fraction = +fraction;
2794
2794
  }
2795
2795
  if (match[9]) {
2796
- tz_hour = +match[10];
2797
- tz_minute = +(match[11] || 0);
2798
- delta = (tz_hour * 60 + tz_minute) * 6e4;
2796
+ const tzHour = +match[10];
2797
+ const tzMinute = +(match[11] || 0);
2798
+ delta = (tzHour * 60 + tzMinute) * 6e4;
2799
2799
  if (match[9] === "-") delta = -delta;
2800
2800
  }
2801
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
2801
+ const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
2802
2802
  if (delta) date.setTime(date.getTime() - delta);
2803
2803
  return date;
2804
2804
  }
@@ -2814,9 +2814,9 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2814
2814
  });
2815
2815
  }));
2816
2816
  //#endregion
2817
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/merge.js
2817
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/merge.js
2818
2818
  var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2819
- var Type = require_type();
2819
+ const Type = require_type();
2820
2820
  function resolveYamlMerge(data) {
2821
2821
  return data === "<<" || data === null;
2822
2822
  }
@@ -2826,15 +2826,17 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2826
2826
  });
2827
2827
  }));
2828
2828
  //#endregion
2829
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/binary.js
2829
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/binary.js
2830
2830
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2831
- var Type = require_type();
2832
- var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
2831
+ const Type = require_type();
2832
+ const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
2833
2833
  function resolveYamlBinary(data) {
2834
2834
  if (data === null) return false;
2835
- var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
2836
- for (idx = 0; idx < max; idx++) {
2837
- code = map.indexOf(data.charAt(idx));
2835
+ let bitlen = 0;
2836
+ const max = data.length;
2837
+ const map = BASE64_MAP;
2838
+ for (let idx = 0; idx < max; idx++) {
2839
+ const code = map.indexOf(data.charAt(idx));
2838
2840
  if (code > 64) continue;
2839
2841
  if (code < 0) return false;
2840
2842
  bitlen += 6;
@@ -2842,8 +2844,12 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2842
2844
  return bitlen % 8 === 0;
2843
2845
  }
2844
2846
  function constructYamlBinary(data) {
2845
- var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map = BASE64_MAP, bits = 0, result = [];
2846
- for (idx = 0; idx < max; idx++) {
2847
+ const input = data.replace(/[\r\n=]/g, "");
2848
+ const max = input.length;
2849
+ const map = BASE64_MAP;
2850
+ let bits = 0;
2851
+ const result = [];
2852
+ for (let idx = 0; idx < max; idx++) {
2847
2853
  if (idx % 4 === 0 && idx) {
2848
2854
  result.push(bits >> 16 & 255);
2849
2855
  result.push(bits >> 8 & 255);
@@ -2851,7 +2857,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2851
2857
  }
2852
2858
  bits = bits << 6 | map.indexOf(input.charAt(idx));
2853
2859
  }
2854
- tailbits = max % 4 * 6;
2860
+ const tailbits = max % 4 * 6;
2855
2861
  if (tailbits === 0) {
2856
2862
  result.push(bits >> 16 & 255);
2857
2863
  result.push(bits >> 8 & 255);
@@ -2863,8 +2869,11 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2863
2869
  return new Uint8Array(result);
2864
2870
  }
2865
2871
  function representYamlBinary(object) {
2866
- var result = "", bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
2867
- for (idx = 0; idx < max; idx++) {
2872
+ let result = "";
2873
+ let bits = 0;
2874
+ const max = object.length;
2875
+ const map = BASE64_MAP;
2876
+ for (let idx = 0; idx < max; idx++) {
2868
2877
  if (idx % 3 === 0 && idx) {
2869
2878
  result += map[bits >> 18 & 63];
2870
2879
  result += map[bits >> 12 & 63];
@@ -2873,7 +2882,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2873
2882
  }
2874
2883
  bits = (bits << 8) + object[idx];
2875
2884
  }
2876
- tail = max % 3;
2885
+ const tail = max % 3;
2877
2886
  if (tail === 0) {
2878
2887
  result += map[bits >> 18 & 63];
2879
2888
  result += map[bits >> 12 & 63];
@@ -2904,18 +2913,20 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2904
2913
  });
2905
2914
  }));
2906
2915
  //#endregion
2907
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/omap.js
2916
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/omap.js
2908
2917
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2909
- var Type = require_type();
2910
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
2911
- var _toString = Object.prototype.toString;
2918
+ const Type = require_type();
2919
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
2920
+ const _toString = Object.prototype.toString;
2912
2921
  function resolveYamlOmap(data) {
2913
2922
  if (data === null) return true;
2914
- var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
2915
- for (index = 0, length = object.length; index < length; index += 1) {
2916
- pair = object[index];
2917
- pairHasKey = false;
2923
+ const objectKeys = [];
2924
+ const object = data;
2925
+ for (let index = 0, length = object.length; index < length; index += 1) {
2926
+ const pair = object[index];
2927
+ let pairHasKey = false;
2918
2928
  if (_toString.call(pair) !== "[object Object]") return false;
2929
+ let pairKey;
2919
2930
  for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
2920
2931
  else return false;
2921
2932
  if (!pairHasKey) return false;
@@ -2934,18 +2945,18 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2934
2945
  });
2935
2946
  }));
2936
2947
  //#endregion
2937
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/pairs.js
2948
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/pairs.js
2938
2949
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2939
- var Type = require_type();
2940
- var _toString = Object.prototype.toString;
2950
+ const Type = require_type();
2951
+ const _toString = Object.prototype.toString;
2941
2952
  function resolveYamlPairs(data) {
2942
2953
  if (data === null) return true;
2943
- var index, length, pair, keys, result, object = data;
2944
- result = new Array(object.length);
2945
- for (index = 0, length = object.length; index < length; index += 1) {
2946
- pair = object[index];
2954
+ const object = data;
2955
+ const result = new Array(object.length);
2956
+ for (let index = 0, length = object.length; index < length; index += 1) {
2957
+ const pair = object[index];
2947
2958
  if (_toString.call(pair) !== "[object Object]") return false;
2948
- keys = Object.keys(pair);
2959
+ const keys = Object.keys(pair);
2949
2960
  if (keys.length !== 1) return false;
2950
2961
  result[index] = [keys[0], pair[keys[0]]];
2951
2962
  }
@@ -2953,11 +2964,11 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2953
2964
  }
2954
2965
  function constructYamlPairs(data) {
2955
2966
  if (data === null) return [];
2956
- var index, length, pair, keys, result, object = data;
2957
- result = new Array(object.length);
2958
- for (index = 0, length = object.length; index < length; index += 1) {
2959
- pair = object[index];
2960
- keys = Object.keys(pair);
2967
+ const object = data;
2968
+ const result = new Array(object.length);
2969
+ for (let index = 0, length = object.length; index < length; index += 1) {
2970
+ const pair = object[index];
2971
+ const keys = Object.keys(pair);
2961
2972
  result[index] = [keys[0], pair[keys[0]]];
2962
2973
  }
2963
2974
  return result;
@@ -2969,14 +2980,14 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2969
2980
  });
2970
2981
  }));
2971
2982
  //#endregion
2972
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/set.js
2983
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/set.js
2973
2984
  var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2974
- var Type = require_type();
2975
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
2985
+ const Type = require_type();
2986
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
2976
2987
  function resolveYamlSet(data) {
2977
2988
  if (data === null) return true;
2978
- var key, object = data;
2979
- for (key in object) if (_hasOwnProperty.call(object, key)) {
2989
+ const object = data;
2990
+ for (const key in object) if (_hasOwnProperty.call(object, key)) {
2980
2991
  if (object[key] !== null) return false;
2981
2992
  }
2982
2993
  return true;
@@ -2991,7 +3002,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2991
3002
  });
2992
3003
  }));
2993
3004
  //#endregion
2994
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/default.js
3005
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/default.js
2995
3006
  var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2996
3007
  module.exports = require_core().extend({
2997
3008
  implicit: [require_timestamp(), require_merge$1()],
@@ -3004,45 +3015,44 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3004
3015
  });
3005
3016
  }));
3006
3017
  //#endregion
3007
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/loader.js
3018
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/loader.js
3008
3019
  var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3009
- var common = require_common();
3010
- var YAMLException = require_exception();
3011
- var makeSnippet = require_snippet();
3012
- var DEFAULT_SCHEMA = require_default();
3013
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
3014
- var CONTEXT_FLOW_IN = 1;
3015
- var CONTEXT_FLOW_OUT = 2;
3016
- var CONTEXT_BLOCK_IN = 3;
3017
- var CONTEXT_BLOCK_OUT = 4;
3018
- var CHOMPING_CLIP = 1;
3019
- var CHOMPING_STRIP = 2;
3020
- var CHOMPING_KEEP = 3;
3021
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
3022
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
3023
- var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
3024
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
3025
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
3020
+ const common = require_common();
3021
+ const YAMLException = require_exception();
3022
+ const makeSnippet = require_snippet();
3023
+ const DEFAULT_SCHEMA = require_default();
3024
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
3025
+ const CONTEXT_FLOW_IN = 1;
3026
+ const CONTEXT_FLOW_OUT = 2;
3027
+ const CONTEXT_BLOCK_IN = 3;
3028
+ const CONTEXT_BLOCK_OUT = 4;
3029
+ const CHOMPING_CLIP = 1;
3030
+ const CHOMPING_STRIP = 2;
3031
+ const CHOMPING_KEEP = 3;
3032
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
3033
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
3034
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
3035
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
3036
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
3026
3037
  function _class(obj) {
3027
3038
  return Object.prototype.toString.call(obj);
3028
3039
  }
3029
- function is_EOL(c) {
3040
+ function isEol(c) {
3030
3041
  return c === 10 || c === 13;
3031
3042
  }
3032
- function is_WHITE_SPACE(c) {
3043
+ function isWhiteSpace(c) {
3033
3044
  return c === 9 || c === 32;
3034
3045
  }
3035
- function is_WS_OR_EOL(c) {
3046
+ function isWsOrEol(c) {
3036
3047
  return c === 9 || c === 32 || c === 10 || c === 13;
3037
3048
  }
3038
- function is_FLOW_INDICATOR(c) {
3049
+ function isFlowIndicator(c) {
3039
3050
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
3040
3051
  }
3041
3052
  function fromHexCode(c) {
3042
- var lc;
3043
- if (48 <= c && c <= 57) return c - 48;
3044
- lc = c | 32;
3045
- if (97 <= lc && lc <= 102) return lc - 97 + 10;
3053
+ if (c >= 48 && c <= 57) return c - 48;
3054
+ const lc = c | 32;
3055
+ if (lc >= 97 && lc <= 102) return lc - 97 + 10;
3046
3056
  return -1;
3047
3057
  }
3048
3058
  function escapedHexLen(c) {
@@ -3052,11 +3062,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3052
3062
  return 0;
3053
3063
  }
3054
3064
  function fromDecimalCode(c) {
3055
- if (48 <= c && c <= 57) return c - 48;
3065
+ if (c >= 48 && c <= 57) return c - 48;
3056
3066
  return -1;
3057
3067
  }
3058
3068
  function simpleEscapeSequence(c) {
3059
- 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 ? "…" : c === 95 ? "\xA0" : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
3069
+ switch (c) {
3070
+ case 48: return "\0";
3071
+ case 97: return "\x07";
3072
+ case 98: return "\b";
3073
+ case 116: return " ";
3074
+ case 9: return " ";
3075
+ case 110: return "\n";
3076
+ case 118: return "\v";
3077
+ case 102: return "\f";
3078
+ case 114: return "\r";
3079
+ case 101: return "\x1B";
3080
+ case 32: return " ";
3081
+ case 34: return "\"";
3082
+ case 47: return "/";
3083
+ case 92: return "\\";
3084
+ case 78: return "…";
3085
+ case 95: return "\xA0";
3086
+ case 76: return "\u2028";
3087
+ case 80: return "\u2029";
3088
+ default: return "";
3089
+ }
3060
3090
  }
3061
3091
  function charFromCodepoint(c) {
3062
3092
  if (c <= 65535) return String.fromCharCode(c);
@@ -3071,9 +3101,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3071
3101
  });
3072
3102
  else object[key] = value;
3073
3103
  }
3074
- var simpleEscapeCheck = new Array(256);
3075
- var simpleEscapeMap = new Array(256);
3076
- for (var i = 0; i < 256; i++) {
3104
+ const simpleEscapeCheck = new Array(256);
3105
+ const simpleEscapeMap = new Array(256);
3106
+ for (let i = 0; i < 256; i++) {
3077
3107
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
3078
3108
  simpleEscapeMap[i] = simpleEscapeSequence(i);
3079
3109
  }
@@ -3085,6 +3115,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3085
3115
  this.legacy = options["legacy"] || false;
3086
3116
  this.json = options["json"] || false;
3087
3117
  this.listener = options["listener"] || null;
3118
+ this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
3119
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
3088
3120
  this.implicitTypes = this.schema.compiledImplicit;
3089
3121
  this.typeMap = this.schema.compiledTypeMap;
3090
3122
  this.length = input.length;
@@ -3092,11 +3124,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3092
3124
  this.line = 0;
3093
3125
  this.lineStart = 0;
3094
3126
  this.lineIndent = 0;
3127
+ this.depth = 0;
3128
+ this.totalMergeKeys = 0;
3095
3129
  this.firstTabInLine = -1;
3096
3130
  this.documents = [];
3131
+ this.anchorMapTransactions = [];
3097
3132
  }
3098
3133
  function generateError(state, message) {
3099
- var mark = {
3134
+ const mark = {
3100
3135
  name: state.filename,
3101
3136
  buffer: state.input.slice(0, -1),
3102
3137
  position: state.position,
@@ -3112,24 +3147,81 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3112
3147
  function throwWarning(state, message) {
3113
3148
  if (state.onWarning) state.onWarning.call(null, generateError(state, message));
3114
3149
  }
3115
- var directiveHandlers = {
3150
+ function storeAnchor(state, name, value) {
3151
+ const transactions = state.anchorMapTransactions;
3152
+ if (transactions.length !== 0) {
3153
+ const transaction = transactions[transactions.length - 1];
3154
+ if (!_hasOwnProperty.call(transaction, name)) transaction[name] = {
3155
+ existed: _hasOwnProperty.call(state.anchorMap, name),
3156
+ value: state.anchorMap[name]
3157
+ };
3158
+ }
3159
+ state.anchorMap[name] = value;
3160
+ }
3161
+ function beginAnchorTransaction(state) {
3162
+ state.anchorMapTransactions.push(Object.create(null));
3163
+ }
3164
+ function commitAnchorTransaction(state) {
3165
+ const transaction = state.anchorMapTransactions.pop();
3166
+ const transactions = state.anchorMapTransactions;
3167
+ if (transactions.length === 0) return;
3168
+ const parent = transactions[transactions.length - 1];
3169
+ const names = Object.keys(transaction);
3170
+ for (let index = 0, length = names.length; index < length; index += 1) {
3171
+ const name = names[index];
3172
+ if (!_hasOwnProperty.call(parent, name)) parent[name] = transaction[name];
3173
+ }
3174
+ }
3175
+ function rollbackAnchorTransaction(state) {
3176
+ const transaction = state.anchorMapTransactions.pop();
3177
+ const names = Object.keys(transaction);
3178
+ for (let index = names.length - 1; index >= 0; index -= 1) {
3179
+ const entry = transaction[names[index]];
3180
+ if (entry.existed) state.anchorMap[names[index]] = entry.value;
3181
+ else delete state.anchorMap[names[index]];
3182
+ }
3183
+ }
3184
+ function snapshotState(state) {
3185
+ return {
3186
+ position: state.position,
3187
+ line: state.line,
3188
+ lineStart: state.lineStart,
3189
+ lineIndent: state.lineIndent,
3190
+ firstTabInLine: state.firstTabInLine,
3191
+ tag: state.tag,
3192
+ anchor: state.anchor,
3193
+ kind: state.kind,
3194
+ result: state.result
3195
+ };
3196
+ }
3197
+ function restoreState(state, snapshot) {
3198
+ state.position = snapshot.position;
3199
+ state.line = snapshot.line;
3200
+ state.lineStart = snapshot.lineStart;
3201
+ state.lineIndent = snapshot.lineIndent;
3202
+ state.firstTabInLine = snapshot.firstTabInLine;
3203
+ state.tag = snapshot.tag;
3204
+ state.anchor = snapshot.anchor;
3205
+ state.kind = snapshot.kind;
3206
+ state.result = snapshot.result;
3207
+ }
3208
+ const directiveHandlers = {
3116
3209
  YAML: function handleYamlDirective(state, name, args) {
3117
- var match, major, minor;
3118
3210
  if (state.version !== null) throwError(state, "duplication of %YAML directive");
3119
3211
  if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument");
3120
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
3212
+ const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
3121
3213
  if (match === null) throwError(state, "ill-formed argument of the YAML directive");
3122
- major = parseInt(match[1], 10);
3123
- minor = parseInt(match[2], 10);
3214
+ const major = parseInt(match[1], 10);
3215
+ const minor = parseInt(match[2], 10);
3124
3216
  if (major !== 1) throwError(state, "unacceptable YAML version of the document");
3125
3217
  state.version = args[0];
3126
3218
  state.checkLineBreaks = minor < 2;
3127
3219
  if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
3128
3220
  },
3129
3221
  TAG: function handleTagDirective(state, name, args) {
3130
- var handle, prefix;
3222
+ let prefix;
3131
3223
  if (args.length !== 2) throwError(state, "TAG directive accepts exactly two arguments");
3132
- handle = args[0];
3224
+ const handle = args[0];
3133
3225
  prefix = args[1];
3134
3226
  if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
3135
3227
  if (_hasOwnProperty.call(state.tagMap, handle)) throwError(state, "there is a previously declared suffix for \"" + handle + "\" tag handle");
@@ -3143,23 +3235,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3143
3235
  }
3144
3236
  };
3145
3237
  function captureSegment(state, start, end, checkJson) {
3146
- var _position, _length, _character, _result;
3147
3238
  if (start < end) {
3148
- _result = state.input.slice(start, end);
3149
- if (checkJson) for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
3150
- _character = _result.charCodeAt(_position);
3151
- if (!(_character === 9 || 32 <= _character && _character <= 1114111)) throwError(state, "expected valid JSON character");
3239
+ const _result = state.input.slice(start, end);
3240
+ if (checkJson) for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
3241
+ const _character = _result.charCodeAt(_position);
3242
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) throwError(state, "expected valid JSON character");
3152
3243
  }
3153
3244
  else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, "the stream contains non-printable characters");
3154
3245
  state.result += _result;
3155
3246
  }
3156
3247
  }
3157
3248
  function mergeMappings(state, destination, source, overridableKeys) {
3158
- var sourceKeys, key, index, quantity;
3159
3249
  if (!common.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable");
3160
- sourceKeys = Object.keys(source);
3161
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
3162
- key = sourceKeys[index];
3250
+ const sourceKeys = Object.keys(source);
3251
+ for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
3252
+ const key = sourceKeys[index];
3253
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
3163
3254
  if (!_hasOwnProperty.call(destination, key)) {
3164
3255
  setProperty(destination, key, source[key]);
3165
3256
  overridableKeys[key] = true;
@@ -3167,10 +3258,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3167
3258
  }
3168
3259
  }
3169
3260
  function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
3170
- var index, quantity;
3171
3261
  if (Array.isArray(keyNode)) {
3172
3262
  keyNode = Array.prototype.slice.call(keyNode);
3173
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
3263
+ for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
3174
3264
  if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys");
3175
3265
  if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]";
3176
3266
  }
@@ -3178,7 +3268,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3178
3268
  if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
3179
3269
  keyNode = String(keyNode);
3180
3270
  if (_result === null) _result = {};
3181
- if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
3271
+ if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
3182
3272
  else mergeMappings(state, _result, valueNode, overridableKeys);
3183
3273
  else {
3184
3274
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
@@ -3193,7 +3283,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3193
3283
  return _result;
3194
3284
  }
3195
3285
  function readLineBreak(state) {
3196
- var ch = state.input.charCodeAt(state.position);
3286
+ const ch = state.input.charCodeAt(state.position);
3197
3287
  if (ch === 10) state.position++;
3198
3288
  else if (ch === 13) {
3199
3289
  state.position++;
@@ -3204,16 +3294,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3204
3294
  state.firstTabInLine = -1;
3205
3295
  }
3206
3296
  function skipSeparationSpace(state, allowComments, checkIndent) {
3207
- var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
3297
+ let lineBreaks = 0;
3298
+ let ch = state.input.charCodeAt(state.position);
3208
3299
  while (ch !== 0) {
3209
- while (is_WHITE_SPACE(ch)) {
3300
+ while (isWhiteSpace(ch)) {
3210
3301
  if (ch === 9 && state.firstTabInLine === -1) state.firstTabInLine = state.position;
3211
3302
  ch = state.input.charCodeAt(++state.position);
3212
3303
  }
3213
3304
  if (allowComments && ch === 35) do
3214
3305
  ch = state.input.charCodeAt(++state.position);
3215
3306
  while (ch !== 10 && ch !== 13 && ch !== 0);
3216
- if (is_EOL(ch)) {
3307
+ if (isEol(ch)) {
3217
3308
  readLineBreak(state);
3218
3309
  ch = state.input.charCodeAt(state.position);
3219
3310
  lineBreaks++;
@@ -3228,11 +3319,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3228
3319
  return lineBreaks;
3229
3320
  }
3230
3321
  function testDocumentSeparator(state) {
3231
- var _position = state.position, ch = state.input.charCodeAt(_position);
3322
+ let _position = state.position;
3323
+ let ch = state.input.charCodeAt(_position);
3232
3324
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
3233
3325
  _position += 3;
3234
3326
  ch = state.input.charCodeAt(_position);
3235
- if (ch === 0 || is_WS_OR_EOL(ch)) return true;
3327
+ if (ch === 0 || isWsOrEol(ch)) return true;
3236
3328
  }
3237
3329
  return false;
3238
3330
  }
@@ -3241,11 +3333,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3241
3333
  else if (count > 1) state.result += common.repeat("\n", count - 1);
3242
3334
  }
3243
3335
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
3244
- var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch = state.input.charCodeAt(state.position);
3245
- 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) return false;
3336
+ let captureStart;
3337
+ let captureEnd;
3338
+ let hasPendingContent;
3339
+ let _line;
3340
+ let _lineStart;
3341
+ let _lineIndent;
3342
+ const _kind = state.kind;
3343
+ const _result = state.result;
3344
+ let ch = state.input.charCodeAt(state.position);
3345
+ 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) return false;
3246
3346
  if (ch === 63 || ch === 45) {
3247
- following = state.input.charCodeAt(state.position + 1);
3248
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) return false;
3347
+ const following = state.input.charCodeAt(state.position + 1);
3348
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) return false;
3249
3349
  }
3250
3350
  state.kind = "scalar";
3251
3351
  state.result = "";
@@ -3253,13 +3353,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3253
3353
  hasPendingContent = false;
3254
3354
  while (ch !== 0) {
3255
3355
  if (ch === 58) {
3256
- following = state.input.charCodeAt(state.position + 1);
3257
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) break;
3356
+ const following = state.input.charCodeAt(state.position + 1);
3357
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) break;
3258
3358
  } else if (ch === 35) {
3259
- preceding = state.input.charCodeAt(state.position - 1);
3260
- if (is_WS_OR_EOL(preceding)) break;
3261
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) break;
3262
- else if (is_EOL(ch)) {
3359
+ if (isWsOrEol(state.input.charCodeAt(state.position - 1))) break;
3360
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) break;
3361
+ else if (isEol(ch)) {
3263
3362
  _line = state.line;
3264
3363
  _lineStart = state.lineStart;
3265
3364
  _lineIndent = state.lineIndent;
@@ -3282,7 +3381,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3282
3381
  captureStart = captureEnd = state.position;
3283
3382
  hasPendingContent = false;
3284
3383
  }
3285
- if (!is_WHITE_SPACE(ch)) captureEnd = state.position + 1;
3384
+ if (!isWhiteSpace(ch)) captureEnd = state.position + 1;
3286
3385
  ch = state.input.charCodeAt(++state.position);
3287
3386
  }
3288
3387
  captureSegment(state, captureStart, captureEnd, false);
@@ -3292,7 +3391,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3292
3391
  return false;
3293
3392
  }
3294
3393
  function readSingleQuotedScalar(state, nodeIndent) {
3295
- var ch = state.input.charCodeAt(state.position), captureStart, captureEnd;
3394
+ let captureStart;
3395
+ let captureEnd;
3396
+ let ch = state.input.charCodeAt(state.position);
3296
3397
  if (ch !== 39) return false;
3297
3398
  state.kind = "scalar";
3298
3399
  state.result = "";
@@ -3306,19 +3407,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3306
3407
  state.position++;
3307
3408
  captureEnd = state.position;
3308
3409
  } else return true;
3309
- } else if (is_EOL(ch)) {
3410
+ } else if (isEol(ch)) {
3310
3411
  captureSegment(state, captureStart, captureEnd, true);
3311
3412
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
3312
3413
  captureStart = captureEnd = state.position;
3313
3414
  } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a single quoted scalar");
3314
3415
  else {
3315
3416
  state.position++;
3316
- captureEnd = state.position;
3417
+ if (!isWhiteSpace(ch)) captureEnd = state.position;
3317
3418
  }
3318
3419
  throwError(state, "unexpected end of the stream within a single quoted scalar");
3319
3420
  }
3320
3421
  function readDoubleQuotedScalar(state, nodeIndent) {
3321
- var captureStart, captureEnd, hexLength, hexResult, tmp, ch = state.input.charCodeAt(state.position);
3422
+ let captureStart;
3423
+ let captureEnd;
3424
+ let tmp;
3425
+ let ch = state.input.charCodeAt(state.position);
3322
3426
  if (ch !== 34) return false;
3323
3427
  state.kind = "scalar";
3324
3428
  state.result = "";
@@ -3331,13 +3435,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3331
3435
  } else if (ch === 92) {
3332
3436
  captureSegment(state, captureStart, state.position, true);
3333
3437
  ch = state.input.charCodeAt(++state.position);
3334
- if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
3438
+ if (isEol(ch)) skipSeparationSpace(state, false, nodeIndent);
3335
3439
  else if (ch < 256 && simpleEscapeCheck[ch]) {
3336
3440
  state.result += simpleEscapeMap[ch];
3337
3441
  state.position++;
3338
3442
  } else if ((tmp = escapedHexLen(ch)) > 0) {
3339
- hexLength = tmp;
3340
- hexResult = 0;
3443
+ let hexLength = tmp;
3444
+ let hexResult = 0;
3341
3445
  for (; hexLength > 0; hexLength--) {
3342
3446
  ch = state.input.charCodeAt(++state.position);
3343
3447
  if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
@@ -3347,19 +3451,34 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3347
3451
  state.position++;
3348
3452
  } else throwError(state, "unknown escape sequence");
3349
3453
  captureStart = captureEnd = state.position;
3350
- } else if (is_EOL(ch)) {
3454
+ } else if (isEol(ch)) {
3351
3455
  captureSegment(state, captureStart, captureEnd, true);
3352
3456
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
3353
3457
  captureStart = captureEnd = state.position;
3354
3458
  } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a double quoted scalar");
3355
3459
  else {
3356
3460
  state.position++;
3357
- captureEnd = state.position;
3461
+ if (!isWhiteSpace(ch)) captureEnd = state.position;
3358
3462
  }
3359
3463
  throwError(state, "unexpected end of the stream within a double quoted scalar");
3360
3464
  }
3361
3465
  function readFlowCollection(state, nodeIndent) {
3362
- var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = Object.create(null), keyNode, keyTag, valueNode, ch = state.input.charCodeAt(state.position);
3466
+ let readNext = true;
3467
+ let _line;
3468
+ let _lineStart;
3469
+ let _pos;
3470
+ const _tag = state.tag;
3471
+ let _result;
3472
+ const _anchor = state.anchor;
3473
+ let terminator;
3474
+ let isPair;
3475
+ let isExplicitPair;
3476
+ let isMapping;
3477
+ const overridableKeys = Object.create(null);
3478
+ let keyNode;
3479
+ let keyTag;
3480
+ let valueNode;
3481
+ let ch = state.input.charCodeAt(state.position);
3363
3482
  if (ch === 91) {
3364
3483
  terminator = 93;
3365
3484
  isMapping = false;
@@ -3369,7 +3488,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3369
3488
  isMapping = true;
3370
3489
  _result = {};
3371
3490
  } else return false;
3372
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
3491
+ if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
3373
3492
  ch = state.input.charCodeAt(++state.position);
3374
3493
  while (ch !== 0) {
3375
3494
  skipSeparationSpace(state, true, nodeIndent);
@@ -3386,8 +3505,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3386
3505
  keyTag = keyNode = valueNode = null;
3387
3506
  isPair = isExplicitPair = false;
3388
3507
  if (ch === 63) {
3389
- following = state.input.charCodeAt(state.position + 1);
3390
- if (is_WS_OR_EOL(following)) {
3508
+ if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
3391
3509
  isPair = isExplicitPair = true;
3392
3510
  state.position++;
3393
3511
  skipSeparationSpace(state, true, nodeIndent);
@@ -3421,7 +3539,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3421
3539
  throwError(state, "unexpected end of the stream within a flow collection");
3422
3540
  }
3423
3541
  function readBlockScalar(state, nodeIndent) {
3424
- var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch = state.input.charCodeAt(state.position);
3542
+ let folding;
3543
+ let chomping = CHOMPING_CLIP;
3544
+ let didReadContent = false;
3545
+ let detectedIndent = false;
3546
+ let textIndent = nodeIndent;
3547
+ let emptyLines = 0;
3548
+ let atMoreIndented = false;
3549
+ let tmp;
3550
+ let ch = state.input.charCodeAt(state.position);
3425
3551
  if (ch === 124) folding = false;
3426
3552
  else if (ch === 62) folding = true;
3427
3553
  else return false;
@@ -3438,13 +3564,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3438
3564
  } else throwError(state, "repeat of an indentation width identifier");
3439
3565
  else break;
3440
3566
  }
3441
- if (is_WHITE_SPACE(ch)) {
3567
+ if (isWhiteSpace(ch)) {
3442
3568
  do
3443
3569
  ch = state.input.charCodeAt(++state.position);
3444
- while (is_WHITE_SPACE(ch));
3570
+ while (isWhiteSpace(ch));
3445
3571
  if (ch === 35) do
3446
3572
  ch = state.input.charCodeAt(++state.position);
3447
- while (!is_EOL(ch) && ch !== 0);
3573
+ while (!isEol(ch) && ch !== 0);
3448
3574
  }
3449
3575
  while (ch !== 0) {
3450
3576
  readLineBreak(state);
@@ -3455,10 +3581,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3455
3581
  ch = state.input.charCodeAt(++state.position);
3456
3582
  }
3457
3583
  if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent;
3458
- if (is_EOL(ch)) {
3584
+ if (isEol(ch)) {
3459
3585
  emptyLines++;
3460
3586
  continue;
3461
3587
  }
3588
+ if (!detectedIndent && textIndent === 0) throwError(state, "missing indentation for block scalar");
3462
3589
  if (state.lineIndent < textIndent) {
3463
3590
  if (chomping === CHOMPING_KEEP) state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
3464
3591
  else if (chomping === CHOMPING_CLIP) {
@@ -3466,7 +3593,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3466
3593
  }
3467
3594
  break;
3468
3595
  }
3469
- if (folding) if (is_WHITE_SPACE(ch)) {
3596
+ if (folding) if (isWhiteSpace(ch)) {
3470
3597
  atMoreIndented = true;
3471
3598
  state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
3472
3599
  } else if (atMoreIndented) {
@@ -3479,25 +3606,27 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3479
3606
  didReadContent = true;
3480
3607
  detectedIndent = true;
3481
3608
  emptyLines = 0;
3482
- captureStart = state.position;
3483
- while (!is_EOL(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
3609
+ const captureStart = state.position;
3610
+ while (!isEol(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
3484
3611
  captureSegment(state, captureStart, state.position, false);
3485
3612
  }
3486
3613
  return true;
3487
3614
  }
3488
3615
  function readBlockSequence(state, nodeIndent) {
3489
- var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
3616
+ const _tag = state.tag;
3617
+ const _anchor = state.anchor;
3618
+ const _result = [];
3619
+ let detected = false;
3490
3620
  if (state.firstTabInLine !== -1) return false;
3491
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
3492
- ch = state.input.charCodeAt(state.position);
3621
+ if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
3622
+ let ch = state.input.charCodeAt(state.position);
3493
3623
  while (ch !== 0) {
3494
3624
  if (state.firstTabInLine !== -1) {
3495
3625
  state.position = state.firstTabInLine;
3496
3626
  throwError(state, "tab characters must not be used in indentation");
3497
3627
  }
3498
3628
  if (ch !== 45) break;
3499
- following = state.input.charCodeAt(state.position + 1);
3500
- if (!is_WS_OR_EOL(following)) break;
3629
+ if (!isWsOrEol(state.input.charCodeAt(state.position + 1))) break;
3501
3630
  detected = true;
3502
3631
  state.position++;
3503
3632
  if (skipSeparationSpace(state, true, -1)) {
@@ -3507,7 +3636,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3507
3636
  continue;
3508
3637
  }
3509
3638
  }
3510
- _line = state.line;
3639
+ const _line = state.line;
3511
3640
  composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
3512
3641
  _result.push(state.result);
3513
3642
  skipSeparationSpace(state, true, -1);
@@ -3525,18 +3654,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3525
3654
  return false;
3526
3655
  }
3527
3656
  function readBlockMapping(state, nodeIndent, flowIndent) {
3528
- var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
3657
+ let allowCompact;
3658
+ let _keyLine;
3659
+ let _keyLineStart;
3660
+ let _keyPos;
3661
+ const _tag = state.tag;
3662
+ const _anchor = state.anchor;
3663
+ const _result = {};
3664
+ const overridableKeys = Object.create(null);
3665
+ let keyTag = null;
3666
+ let keyNode = null;
3667
+ let valueNode = null;
3668
+ let atExplicitKey = false;
3669
+ let detected = false;
3529
3670
  if (state.firstTabInLine !== -1) return false;
3530
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
3531
- ch = state.input.charCodeAt(state.position);
3671
+ if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
3672
+ let ch = state.input.charCodeAt(state.position);
3532
3673
  while (ch !== 0) {
3533
3674
  if (!atExplicitKey && state.firstTabInLine !== -1) {
3534
3675
  state.position = state.firstTabInLine;
3535
3676
  throwError(state, "tab characters must not be used in indentation");
3536
3677
  }
3537
- following = state.input.charCodeAt(state.position + 1);
3538
- _line = state.line;
3539
- if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
3678
+ const following = state.input.charCodeAt(state.position + 1);
3679
+ const _line = state.line;
3680
+ if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
3540
3681
  if (ch === 63) {
3541
3682
  if (atExplicitKey) {
3542
3683
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
@@ -3558,10 +3699,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3558
3699
  if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) break;
3559
3700
  if (state.line === _line) {
3560
3701
  ch = state.input.charCodeAt(state.position);
3561
- while (is_WHITE_SPACE(ch)) ch = state.input.charCodeAt(++state.position);
3702
+ while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
3562
3703
  if (ch === 58) {
3563
3704
  ch = state.input.charCodeAt(++state.position);
3564
- if (!is_WS_OR_EOL(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
3705
+ if (!isWsOrEol(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
3565
3706
  if (atExplicitKey) {
3566
3707
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
3567
3708
  keyTag = keyNode = valueNode = null;
@@ -3612,7 +3753,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3612
3753
  return detected;
3613
3754
  }
3614
3755
  function readTagProperty(state) {
3615
- var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch = state.input.charCodeAt(state.position);
3756
+ let isVerbatim = false;
3757
+ let isNamed = false;
3758
+ let tagHandle;
3759
+ let tagName;
3760
+ let ch = state.input.charCodeAt(state.position);
3616
3761
  if (ch !== 33) return false;
3617
3762
  if (state.tag !== null) throwError(state, "duplication of a tag property");
3618
3763
  ch = state.input.charCodeAt(++state.position);
@@ -3624,7 +3769,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3624
3769
  tagHandle = "!!";
3625
3770
  ch = state.input.charCodeAt(++state.position);
3626
3771
  } else tagHandle = "!";
3627
- _position = state.position;
3772
+ let _position = state.position;
3628
3773
  if (isVerbatim) {
3629
3774
  do
3630
3775
  ch = state.input.charCodeAt(++state.position);
@@ -3634,7 +3779,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3634
3779
  ch = state.input.charCodeAt(++state.position);
3635
3780
  } else throwError(state, "unexpected end of the stream within a verbatim tag");
3636
3781
  } else {
3637
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
3782
+ while (ch !== 0 && !isWsOrEol(ch)) {
3638
3783
  if (ch === 33) if (!isNamed) {
3639
3784
  tagHandle = state.input.slice(_position - 1, state.position + 1);
3640
3785
  if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
@@ -3660,37 +3805,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3660
3805
  return true;
3661
3806
  }
3662
3807
  function readAnchorProperty(state) {
3663
- var _position, ch = state.input.charCodeAt(state.position);
3808
+ let ch = state.input.charCodeAt(state.position);
3664
3809
  if (ch !== 38) return false;
3665
3810
  if (state.anchor !== null) throwError(state, "duplication of an anchor property");
3666
3811
  ch = state.input.charCodeAt(++state.position);
3667
- _position = state.position;
3668
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) ch = state.input.charCodeAt(++state.position);
3812
+ const _position = state.position;
3813
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
3669
3814
  if (state.position === _position) throwError(state, "name of an anchor node must contain at least one character");
3670
3815
  state.anchor = state.input.slice(_position, state.position);
3671
3816
  return true;
3672
3817
  }
3673
3818
  function readAlias(state) {
3674
- var _position, alias, ch = state.input.charCodeAt(state.position);
3819
+ let ch = state.input.charCodeAt(state.position);
3675
3820
  if (ch !== 42) return false;
3676
3821
  ch = state.input.charCodeAt(++state.position);
3677
- _position = state.position;
3678
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) ch = state.input.charCodeAt(++state.position);
3822
+ const _position = state.position;
3823
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
3679
3824
  if (state.position === _position) throwError(state, "name of an alias node must contain at least one character");
3680
- alias = state.input.slice(_position, state.position);
3825
+ const alias = state.input.slice(_position, state.position);
3681
3826
  if (!_hasOwnProperty.call(state.anchorMap, alias)) throwError(state, "unidentified alias \"" + alias + "\"");
3682
3827
  state.result = state.anchorMap[alias];
3683
3828
  skipSeparationSpace(state, true, -1);
3684
3829
  return true;
3685
3830
  }
3831
+ function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
3832
+ const fallbackState = snapshotState(state);
3833
+ beginAnchorTransaction(state);
3834
+ restoreState(state, propertyStart);
3835
+ state.tag = null;
3836
+ state.anchor = null;
3837
+ state.kind = null;
3838
+ state.result = null;
3839
+ if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
3840
+ commitAnchorTransaction(state);
3841
+ return true;
3842
+ }
3843
+ rollbackAnchorTransaction(state);
3844
+ restoreState(state, fallbackState);
3845
+ return false;
3846
+ }
3686
3847
  function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
3687
- var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
3848
+ let allowBlockScalars;
3849
+ let allowBlockCollections;
3850
+ let indentStatus = 1;
3851
+ let atNewLine = false;
3852
+ let hasContent = false;
3853
+ let propertyStart = null;
3854
+ let type;
3855
+ let flowIndent;
3856
+ let blockIndent;
3857
+ if (state.depth >= state.maxDepth) throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
3858
+ state.depth += 1;
3688
3859
  if (state.listener !== null) state.listener("open", state);
3689
3860
  state.tag = null;
3690
3861
  state.anchor = null;
3691
3862
  state.kind = null;
3692
3863
  state.result = null;
3693
- allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
3864
+ const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
3694
3865
  if (allowToSeek) {
3695
3866
  if (skipSeparationSpace(state, true, -1)) {
3696
3867
  atNewLine = true;
@@ -3699,13 +3870,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3699
3870
  else if (state.lineIndent < parentIndent) indentStatus = -1;
3700
3871
  }
3701
3872
  }
3702
- if (indentStatus === 1) while (readTagProperty(state) || readAnchorProperty(state)) if (skipSeparationSpace(state, true, -1)) {
3703
- atNewLine = true;
3704
- allowBlockCollections = allowBlockStyles;
3705
- if (state.lineIndent > parentIndent) indentStatus = 1;
3706
- else if (state.lineIndent === parentIndent) indentStatus = 0;
3707
- else if (state.lineIndent < parentIndent) indentStatus = -1;
3708
- } else allowBlockCollections = false;
3873
+ if (indentStatus === 1) while (true) {
3874
+ const ch = state.input.charCodeAt(state.position);
3875
+ const propertyState = snapshotState(state);
3876
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) break;
3877
+ if (!readTagProperty(state) && !readAnchorProperty(state)) break;
3878
+ if (propertyStart === null) propertyStart = propertyState;
3879
+ if (skipSeparationSpace(state, true, -1)) {
3880
+ atNewLine = true;
3881
+ allowBlockCollections = allowBlockStyles;
3882
+ if (state.lineIndent > parentIndent) indentStatus = 1;
3883
+ else if (state.lineIndent === parentIndent) indentStatus = 0;
3884
+ else if (state.lineIndent < parentIndent) indentStatus = -1;
3885
+ } else allowBlockCollections = false;
3886
+ }
3709
3887
  if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
3710
3888
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
3711
3889
  if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
@@ -3713,7 +3891,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3713
3891
  blockIndent = state.position - state.lineStart;
3714
3892
  if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
3715
3893
  else {
3716
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
3894
+ const ch = state.input.charCodeAt(state.position);
3895
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
3896
+ else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
3717
3897
  else if (readAlias(state)) {
3718
3898
  hasContent = true;
3719
3899
  if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
@@ -3721,20 +3901,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3721
3901
  hasContent = true;
3722
3902
  if (state.tag === null) state.tag = "?";
3723
3903
  }
3724
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
3904
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
3725
3905
  }
3726
3906
  else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
3727
3907
  }
3728
3908
  if (state.tag === null) {
3729
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
3909
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
3730
3910
  } else if (state.tag === "?") {
3731
3911
  if (state.result !== null && state.kind !== "scalar") throwError(state, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + state.kind + "\"");
3732
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
3912
+ for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
3733
3913
  type = state.implicitTypes[typeIndex];
3734
3914
  if (type.resolve(state.result)) {
3735
3915
  state.result = type.construct(state.result);
3736
3916
  state.tag = type.tag;
3737
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
3917
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
3738
3918
  break;
3739
3919
  }
3740
3920
  }
@@ -3742,8 +3922,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3742
3922
  if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) type = state.typeMap[state.kind || "fallback"][state.tag];
3743
3923
  else {
3744
3924
  type = null;
3745
- typeList = state.typeMap.multi[state.kind || "fallback"];
3746
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
3925
+ const typeList = state.typeMap.multi[state.kind || "fallback"];
3926
+ for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
3747
3927
  type = typeList[typeIndex];
3748
3928
  break;
3749
3929
  }
@@ -3753,14 +3933,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3753
3933
  if (!type.resolve(state.result, state.tag)) throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
3754
3934
  else {
3755
3935
  state.result = type.construct(state.result, state.tag);
3756
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
3936
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
3757
3937
  }
3758
3938
  }
3759
3939
  if (state.listener !== null) state.listener("close", state);
3940
+ state.depth -= 1;
3760
3941
  return state.tag !== null || state.anchor !== null || hasContent;
3761
3942
  }
3762
3943
  function readDocument(state) {
3763
- var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
3944
+ const documentStart = state.position;
3945
+ let hasDirectives = false;
3946
+ let ch;
3764
3947
  state.version = null;
3765
3948
  state.checkLineBreaks = state.legacy;
3766
3949
  state.tagMap = Object.create(null);
@@ -3771,22 +3954,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3771
3954
  if (state.lineIndent > 0 || ch !== 37) break;
3772
3955
  hasDirectives = true;
3773
3956
  ch = state.input.charCodeAt(++state.position);
3774
- _position = state.position;
3775
- while (ch !== 0 && !is_WS_OR_EOL(ch)) ch = state.input.charCodeAt(++state.position);
3776
- directiveName = state.input.slice(_position, state.position);
3777
- directiveArgs = [];
3957
+ let _position = state.position;
3958
+ while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
3959
+ const directiveName = state.input.slice(_position, state.position);
3960
+ const directiveArgs = [];
3778
3961
  if (directiveName.length < 1) throwError(state, "directive name must not be less than one character in length");
3779
3962
  while (ch !== 0) {
3780
- while (is_WHITE_SPACE(ch)) ch = state.input.charCodeAt(++state.position);
3963
+ while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
3781
3964
  if (ch === 35) {
3782
3965
  do
3783
3966
  ch = state.input.charCodeAt(++state.position);
3784
- while (ch !== 0 && !is_EOL(ch));
3967
+ while (ch !== 0 && !isEol(ch));
3785
3968
  break;
3786
3969
  }
3787
- if (is_EOL(ch)) break;
3970
+ if (isEol(ch)) break;
3788
3971
  _position = state.position;
3789
- while (ch !== 0 && !is_WS_OR_EOL(ch)) ch = state.input.charCodeAt(++state.position);
3972
+ while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
3790
3973
  directiveArgs.push(state.input.slice(_position, state.position));
3791
3974
  }
3792
3975
  if (ch !== 0) readLineBreak(state);
@@ -3810,7 +3993,6 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3810
3993
  return;
3811
3994
  }
3812
3995
  if (state.position < state.length - 1) throwError(state, "end of the stream or a document separator is expected");
3813
- else return;
3814
3996
  }
3815
3997
  function loadDocuments(input, options) {
3816
3998
  input = String(input);
@@ -3819,8 +4001,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3819
4001
  if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) input += "\n";
3820
4002
  if (input.charCodeAt(0) === 65279) input = input.slice(1);
3821
4003
  }
3822
- var state = new State(input, options);
3823
- var nullpos = input.indexOf("\0");
4004
+ const state = new State(input, options);
4005
+ const nullpos = input.indexOf("\0");
3824
4006
  if (nullpos !== -1) {
3825
4007
  state.position = nullpos;
3826
4008
  throwError(state, "null byte is not allowed in input");
@@ -3838,12 +4020,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3838
4020
  options = iterator;
3839
4021
  iterator = null;
3840
4022
  }
3841
- var documents = loadDocuments(input, options);
4023
+ const documents = loadDocuments(input, options);
3842
4024
  if (typeof iterator !== "function") return documents;
3843
- for (var index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
4025
+ for (let index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
3844
4026
  }
3845
4027
  function load(input, options) {
3846
- var documents = loadDocuments(input, options);
4028
+ const documents = loadDocuments(input, options);
3847
4029
  if (documents.length === 0) return;
3848
4030
  else if (documents.length === 1) return documents[0];
3849
4031
  throw new YAMLException("expected a single document in the stream, but found more");
@@ -3852,39 +4034,39 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3852
4034
  module.exports.load = load;
3853
4035
  }));
3854
4036
  //#endregion
3855
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/dumper.js
4037
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/dumper.js
3856
4038
  var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3857
- var common = require_common();
3858
- var YAMLException = require_exception();
3859
- var DEFAULT_SCHEMA = require_default();
3860
- var _toString = Object.prototype.toString;
3861
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
3862
- var CHAR_BOM = 65279;
3863
- var CHAR_TAB = 9;
3864
- var CHAR_LINE_FEED = 10;
3865
- var CHAR_CARRIAGE_RETURN = 13;
3866
- var CHAR_SPACE = 32;
3867
- var CHAR_EXCLAMATION = 33;
3868
- var CHAR_DOUBLE_QUOTE = 34;
3869
- var CHAR_SHARP = 35;
3870
- var CHAR_PERCENT = 37;
3871
- var CHAR_AMPERSAND = 38;
3872
- var CHAR_SINGLE_QUOTE = 39;
3873
- var CHAR_ASTERISK = 42;
3874
- var CHAR_COMMA = 44;
3875
- var CHAR_MINUS = 45;
3876
- var CHAR_COLON = 58;
3877
- var CHAR_EQUALS = 61;
3878
- var CHAR_GREATER_THAN = 62;
3879
- var CHAR_QUESTION = 63;
3880
- var CHAR_COMMERCIAL_AT = 64;
3881
- var CHAR_LEFT_SQUARE_BRACKET = 91;
3882
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
3883
- var CHAR_GRAVE_ACCENT = 96;
3884
- var CHAR_LEFT_CURLY_BRACKET = 123;
3885
- var CHAR_VERTICAL_LINE = 124;
3886
- var CHAR_RIGHT_CURLY_BRACKET = 125;
3887
- var ESCAPE_SEQUENCES = {};
4039
+ const common = require_common();
4040
+ const YAMLException = require_exception();
4041
+ const DEFAULT_SCHEMA = require_default();
4042
+ const _toString = Object.prototype.toString;
4043
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
4044
+ const CHAR_BOM = 65279;
4045
+ const CHAR_TAB = 9;
4046
+ const CHAR_LINE_FEED = 10;
4047
+ const CHAR_CARRIAGE_RETURN = 13;
4048
+ const CHAR_SPACE = 32;
4049
+ const CHAR_EXCLAMATION = 33;
4050
+ const CHAR_DOUBLE_QUOTE = 34;
4051
+ const CHAR_SHARP = 35;
4052
+ const CHAR_PERCENT = 37;
4053
+ const CHAR_AMPERSAND = 38;
4054
+ const CHAR_SINGLE_QUOTE = 39;
4055
+ const CHAR_ASTERISK = 42;
4056
+ const CHAR_COMMA = 44;
4057
+ const CHAR_MINUS = 45;
4058
+ const CHAR_COLON = 58;
4059
+ const CHAR_EQUALS = 61;
4060
+ const CHAR_GREATER_THAN = 62;
4061
+ const CHAR_QUESTION = 63;
4062
+ const CHAR_COMMERCIAL_AT = 64;
4063
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
4064
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
4065
+ const CHAR_GRAVE_ACCENT = 96;
4066
+ const CHAR_LEFT_CURLY_BRACKET = 123;
4067
+ const CHAR_VERTICAL_LINE = 124;
4068
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
4069
+ const ESCAPE_SEQUENCES = {};
3888
4070
  ESCAPE_SEQUENCES[0] = "\\0";
3889
4071
  ESCAPE_SEQUENCES[7] = "\\a";
3890
4072
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -3900,7 +4082,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3900
4082
  ESCAPE_SEQUENCES[160] = "\\_";
3901
4083
  ESCAPE_SEQUENCES[8232] = "\\L";
3902
4084
  ESCAPE_SEQUENCES[8233] = "\\P";
3903
- var DEPRECATED_BOOLEANS_SYNTAX = [
4085
+ const DEPRECATED_BOOLEANS_SYNTAX = [
3904
4086
  "y",
3905
4087
  "Y",
3906
4088
  "yes",
@@ -3918,24 +4100,25 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3918
4100
  "Off",
3919
4101
  "OFF"
3920
4102
  ];
3921
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
4103
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
3922
4104
  function compileStyleMap(schema, map) {
3923
- var result, keys, index, length, tag, style, type;
3924
4105
  if (map === null) return {};
3925
- result = {};
3926
- keys = Object.keys(map);
3927
- for (index = 0, length = keys.length; index < length; index += 1) {
3928
- tag = keys[index];
3929
- style = String(map[tag]);
4106
+ const result = {};
4107
+ const keys = Object.keys(map);
4108
+ for (let index = 0, length = keys.length; index < length; index += 1) {
4109
+ let tag = keys[index];
4110
+ let style = String(map[tag]);
3930
4111
  if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2);
3931
- type = schema.compiledTypeMap["fallback"][tag];
4112
+ const type = schema.compiledTypeMap["fallback"][tag];
3932
4113
  if (type && _hasOwnProperty.call(type.styleAliases, style)) style = type.styleAliases[style];
3933
4114
  result[tag] = style;
3934
4115
  }
3935
4116
  return result;
3936
4117
  }
3937
4118
  function encodeHex(character) {
3938
- var string = character.toString(16).toUpperCase(), handle, length;
4119
+ let handle;
4120
+ let length;
4121
+ const string = character.toString(16).toUpperCase();
3939
4122
  if (character <= 255) {
3940
4123
  handle = "x";
3941
4124
  length = 2;
@@ -3948,8 +4131,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3948
4131
  } else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
3949
4132
  return "\\" + handle + common.repeat("0", length - string.length) + string;
3950
4133
  }
3951
- var QUOTING_TYPE_SINGLE = 1;
3952
- var QUOTING_TYPE_DOUBLE = 2;
4134
+ const QUOTING_TYPE_SINGLE = 1;
4135
+ const QUOTING_TYPE_DOUBLE = 2;
3953
4136
  function State(options) {
3954
4137
  this.schema = options["schema"] || DEFAULT_SCHEMA;
3955
4138
  this.indent = Math.max(1, options["indent"] || 2);
@@ -3973,9 +4156,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3973
4156
  this.usedDuplicates = null;
3974
4157
  }
3975
4158
  function indentString(string, spaces) {
3976
- var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
4159
+ const ind = common.repeat(" ", spaces);
4160
+ let position = 0;
4161
+ let result = "";
4162
+ const length = string.length;
3977
4163
  while (position < length) {
3978
- next = string.indexOf("\n", position);
4164
+ let line;
4165
+ const next = string.indexOf("\n", position);
3979
4166
  if (next === -1) {
3980
4167
  line = string.slice(position);
3981
4168
  position = length;
@@ -3992,25 +4179,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3992
4179
  return "\n" + common.repeat(" ", state.indent * level);
3993
4180
  }
3994
4181
  function testImplicitResolving(state, str) {
3995
- var index, length, type;
3996
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
3997
- type = state.implicitTypes[index];
3998
- if (type.resolve(str)) return true;
3999
- }
4182
+ for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) if (state.implicitTypes[index].resolve(str)) return true;
4000
4183
  return false;
4001
4184
  }
4002
4185
  function isWhitespace(c) {
4003
4186
  return c === CHAR_SPACE || c === CHAR_TAB;
4004
4187
  }
4005
4188
  function isPrintable(c) {
4006
- return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM || 65536 <= c && c <= 1114111;
4189
+ return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
4007
4190
  }
4008
4191
  function isNsCharOrWhitespace(c) {
4009
4192
  return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
4010
4193
  }
4011
4194
  function isPlainSafe(c, prev, inblock) {
4012
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
4013
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
4195
+ const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
4196
+ const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
4014
4197
  return (inblock ? cIsNsCharOrWhitespace : 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;
4015
4198
  }
4016
4199
  function isPlainSafeFirst(c) {
@@ -4020,7 +4203,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4020
4203
  return !isWhitespace(c) && c !== CHAR_COLON;
4021
4204
  }
4022
4205
  function codePointAt(string, pos) {
4023
- var first = string.charCodeAt(pos), second;
4206
+ const first = string.charCodeAt(pos);
4207
+ let second;
4024
4208
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
4025
4209
  second = string.charCodeAt(pos + 1);
4026
4210
  if (second >= 56320 && second <= 57343) return (first - 55296) * 1024 + second - 56320 + 65536;
@@ -4030,20 +4214,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4030
4214
  function needIndentIndicator(string) {
4031
4215
  return /^\n* /.test(string);
4032
4216
  }
4033
- var STYLE_PLAIN = 1;
4034
- var STYLE_SINGLE = 2;
4035
- var STYLE_LITERAL = 3;
4036
- var STYLE_FOLDED = 4;
4037
- var STYLE_DOUBLE = 5;
4217
+ const STYLE_PLAIN = 1;
4218
+ const STYLE_SINGLE = 2;
4219
+ const STYLE_LITERAL = 3;
4220
+ const STYLE_FOLDED = 4;
4221
+ const STYLE_DOUBLE = 5;
4038
4222
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
4039
- var i;
4040
- var char = 0;
4041
- var prevChar = null;
4042
- var hasLineBreak = false;
4043
- var hasFoldableLine = false;
4044
- var shouldTrackWidth = lineWidth !== -1;
4045
- var previousLineBreak = -1;
4046
- var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
4223
+ let i;
4224
+ let char = 0;
4225
+ let prevChar = null;
4226
+ let hasLineBreak = false;
4227
+ let hasFoldableLine = false;
4228
+ const shouldTrackWidth = lineWidth !== -1;
4229
+ let previousLineBreak = -1;
4230
+ let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
4047
4231
  if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
4048
4232
  char = codePointAt(string, i);
4049
4233
  if (!isPrintable(char)) return STYLE_DOUBLE;
@@ -4079,9 +4263,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4079
4263
  if (!state.noCompatMode) {
4080
4264
  if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"" + string + "\"" : "'" + string + "'";
4081
4265
  }
4082
- var indent = state.indent * Math.max(1, level);
4083
- var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
4084
- var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
4266
+ const indent = state.indent * Math.max(1, level);
4267
+ const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
4268
+ const singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
4085
4269
  function testAmbiguity(string) {
4086
4270
  return testImplicitResolving(state, string);
4087
4271
  }
@@ -4096,26 +4280,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4096
4280
  }();
4097
4281
  }
4098
4282
  function blockHeader(string, indentPerLevel) {
4099
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
4100
- var clip = string[string.length - 1] === "\n";
4283
+ const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
4284
+ const clip = string[string.length - 1] === "\n";
4101
4285
  return indentIndicator + (clip && (string[string.length - 2] === "\n" || string === "\n") ? "+" : clip ? "" : "-") + "\n";
4102
4286
  }
4103
4287
  function dropEndingNewline(string) {
4104
4288
  return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
4105
4289
  }
4106
4290
  function foldString(string, width) {
4107
- var lineRe = /(\n+)([^\n]*)/g;
4108
- var result = function() {
4109
- var nextLF = string.indexOf("\n");
4291
+ const lineRe = /(\n+)([^\n]*)/g;
4292
+ let result = function() {
4293
+ let nextLF = string.indexOf("\n");
4110
4294
  nextLF = nextLF !== -1 ? nextLF : string.length;
4111
4295
  lineRe.lastIndex = nextLF;
4112
4296
  return foldLine(string.slice(0, nextLF), width);
4113
4297
  }();
4114
- var prevMoreIndented = string[0] === "\n" || string[0] === " ";
4115
- var moreIndented;
4116
- var match;
4298
+ let prevMoreIndented = string[0] === "\n" || string[0] === " ";
4299
+ let moreIndented;
4300
+ let match;
4117
4301
  while (match = lineRe.exec(string)) {
4118
- var prefix = match[1], line = match[2];
4302
+ const prefix = match[1];
4303
+ const line = match[2];
4119
4304
  moreIndented = line[0] === " ";
4120
4305
  result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
4121
4306
  prevMoreIndented = moreIndented;
@@ -4124,10 +4309,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4124
4309
  }
4125
4310
  function foldLine(line, width) {
4126
4311
  if (line === "" || line[0] === " ") return line;
4127
- var breakRe = / [^ ]/g;
4128
- var match;
4129
- var start = 0, end, curr = 0, next = 0;
4130
- var result = "";
4312
+ const breakRe = / [^ ]/g;
4313
+ let match;
4314
+ let start = 0;
4315
+ let end;
4316
+ let curr = 0;
4317
+ let next = 0;
4318
+ let result = "";
4131
4319
  while (match = breakRe.exec(line)) {
4132
4320
  next = match.index;
4133
4321
  if (next - start > width) {
@@ -4143,12 +4331,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4143
4331
  return result.slice(1);
4144
4332
  }
4145
4333
  function escapeString(string) {
4146
- var result = "";
4147
- var char = 0;
4148
- var escapeSeq;
4149
- for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
4334
+ let result = "";
4335
+ let char = 0;
4336
+ for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
4150
4337
  char = codePointAt(string, i);
4151
- escapeSeq = ESCAPE_SEQUENCES[char];
4338
+ const escapeSeq = ESCAPE_SEQUENCES[char];
4152
4339
  if (!escapeSeq && isPrintable(char)) {
4153
4340
  result += string[i];
4154
4341
  if (char >= 65536) result += string[i + 1];
@@ -4157,9 +4344,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4157
4344
  return result;
4158
4345
  }
4159
4346
  function writeFlowSequence(state, level, object) {
4160
- var _result = "", _tag = state.tag, index, length, value;
4161
- for (index = 0, length = object.length; index < length; index += 1) {
4162
- value = object[index];
4347
+ let _result = "";
4348
+ const _tag = state.tag;
4349
+ for (let index = 0, length = object.length; index < length; index += 1) {
4350
+ let value = object[index];
4163
4351
  if (state.replacer) value = state.replacer.call(object, String(index), value);
4164
4352
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
4165
4353
  if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
@@ -4170,9 +4358,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4170
4358
  state.dump = "[" + _result + "]";
4171
4359
  }
4172
4360
  function writeBlockSequence(state, level, object, compact) {
4173
- var _result = "", _tag = state.tag, index, length, value;
4174
- for (index = 0, length = object.length; index < length; index += 1) {
4175
- value = object[index];
4361
+ let _result = "";
4362
+ const _tag = state.tag;
4363
+ for (let index = 0, length = object.length; index < length; index += 1) {
4364
+ let value = object[index];
4176
4365
  if (state.replacer) value = state.replacer.call(object, String(index), value);
4177
4366
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
4178
4367
  if (!compact || _result !== "") _result += generateNextLine(state, level);
@@ -4185,13 +4374,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4185
4374
  state.dump = _result || "[]";
4186
4375
  }
4187
4376
  function writeFlowMapping(state, level, object) {
4188
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
4189
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
4190
- pairBuffer = "";
4377
+ let _result = "";
4378
+ const _tag = state.tag;
4379
+ const objectKeyList = Object.keys(object);
4380
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
4381
+ let pairBuffer = "";
4191
4382
  if (_result !== "") pairBuffer += ", ";
4192
4383
  if (state.condenseFlow) pairBuffer += "\"";
4193
- objectKey = objectKeyList[index];
4194
- objectValue = object[objectKey];
4384
+ const objectKey = objectKeyList[index];
4385
+ let objectValue = object[objectKey];
4195
4386
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
4196
4387
  if (!writeNode(state, level, objectKey, false, false)) continue;
4197
4388
  if (state.dump.length > 1024) pairBuffer += "? ";
@@ -4204,18 +4395,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4204
4395
  state.dump = "{" + _result + "}";
4205
4396
  }
4206
4397
  function writeBlockMapping(state, level, object, compact) {
4207
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
4398
+ let _result = "";
4399
+ const _tag = state.tag;
4400
+ const objectKeyList = Object.keys(object);
4208
4401
  if (state.sortKeys === true) objectKeyList.sort();
4209
4402
  else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
4210
4403
  else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
4211
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
4212
- pairBuffer = "";
4404
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
4405
+ let pairBuffer = "";
4213
4406
  if (!compact || _result !== "") pairBuffer += generateNextLine(state, level);
4214
- objectKey = objectKeyList[index];
4215
- objectValue = object[objectKey];
4407
+ const objectKey = objectKeyList[index];
4408
+ let objectValue = object[objectKey];
4216
4409
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
4217
4410
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
4218
- explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
4411
+ const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
4219
4412
  if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
4220
4413
  else pairBuffer += "? ";
4221
4414
  pairBuffer += state.dump;
@@ -4230,15 +4423,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4230
4423
  state.dump = _result || "{}";
4231
4424
  }
4232
4425
  function detectType(state, object, explicit) {
4233
- var _result, typeList = explicit ? state.explicitTypes : state.implicitTypes, index, length, type, style;
4234
- for (index = 0, length = typeList.length; index < length; index += 1) {
4235
- type = typeList[index];
4426
+ const typeList = explicit ? state.explicitTypes : state.implicitTypes;
4427
+ for (let index = 0, length = typeList.length; index < length; index += 1) {
4428
+ const type = typeList[index];
4236
4429
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
4237
4430
  if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
4238
4431
  else state.tag = type.tag;
4239
4432
  else state.tag = "?";
4240
4433
  if (type.represent) {
4241
- style = state.styleMap[type.tag] || type.defaultStyle;
4434
+ const style = state.styleMap[type.tag] || type.defaultStyle;
4435
+ let _result;
4242
4436
  if (_toString.call(type.represent) === "[object Function]") _result = type.represent(object, style);
4243
4437
  else if (_hasOwnProperty.call(type.represent, style)) _result = type.represent[style](object, style);
4244
4438
  else throw new YAMLException("!<" + type.tag + "> tag resolver accepts not \"" + style + "\" style");
@@ -4253,11 +4447,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4253
4447
  state.tag = null;
4254
4448
  state.dump = object;
4255
4449
  if (!detectType(state, object, false)) detectType(state, object, true);
4256
- var type = _toString.call(state.dump);
4257
- var inblock = block;
4258
- var tagStr;
4450
+ const type = _toString.call(state.dump);
4451
+ const inblock = block;
4259
4452
  if (block) block = state.flowLevel < 0 || state.flowLevel > level;
4260
- var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
4453
+ const objectOrArray = type === "[object Object]" || type === "[object Array]";
4454
+ let duplicateIndex;
4455
+ let duplicate;
4261
4456
  if (objectOrArray) {
4262
4457
  duplicateIndex = state.duplicates.indexOf(object);
4263
4458
  duplicate = duplicateIndex !== -1;
@@ -4289,7 +4484,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4289
4484
  throw new YAMLException("unacceptable kind of an object to dump " + type);
4290
4485
  }
4291
4486
  if (state.tag !== null && state.tag !== "?") {
4292
- tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
4487
+ let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
4293
4488
  if (state.tag[0] === "!") tagStr = "!" + tagStr;
4294
4489
  else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") tagStr = "!!" + tagStr.slice(18);
4295
4490
  else tagStr = "!<" + tagStr + ">";
@@ -4299,32 +4494,33 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4299
4494
  return true;
4300
4495
  }
4301
4496
  function getDuplicateReferences(object, state) {
4302
- var objects = [], duplicatesIndexes = [], index, length;
4497
+ const objects = [];
4498
+ const duplicatesIndexes = [];
4303
4499
  inspectNode(object, objects, duplicatesIndexes);
4304
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
4500
+ const length = duplicatesIndexes.length;
4501
+ for (let index = 0; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
4305
4502
  state.usedDuplicates = new Array(length);
4306
4503
  }
4307
4504
  function inspectNode(object, objects, duplicatesIndexes) {
4308
- var objectKeyList, index, length;
4309
4505
  if (object !== null && typeof object === "object") {
4310
- index = objects.indexOf(object);
4506
+ const index = objects.indexOf(object);
4311
4507
  if (index !== -1) {
4312
4508
  if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index);
4313
4509
  } else {
4314
4510
  objects.push(object);
4315
- if (Array.isArray(object)) for (index = 0, length = object.length; index < length; index += 1) inspectNode(object[index], objects, duplicatesIndexes);
4511
+ if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes);
4316
4512
  else {
4317
- objectKeyList = Object.keys(object);
4318
- for (index = 0, length = objectKeyList.length; index < length; index += 1) inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
4513
+ const objectKeyList = Object.keys(object);
4514
+ for (let i = 0, length = objectKeyList.length; i < length; i += 1) inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
4319
4515
  }
4320
4516
  }
4321
4517
  }
4322
4518
  }
4323
4519
  function dump(input, options) {
4324
4520
  options = options || {};
4325
- var state = new State(options);
4521
+ const state = new State(options);
4326
4522
  if (!state.noRefs) getDuplicateReferences(input, state);
4327
- var value = input;
4523
+ let value = input;
4328
4524
  if (state.replacer) value = state.replacer.call({ "": value }, "", value);
4329
4525
  if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
4330
4526
  return "";
@@ -4332,10 +4528,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4332
4528
  module.exports.dump = dump;
4333
4529
  }));
4334
4530
  //#endregion
4335
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/index.js
4531
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/index.js
4336
4532
  var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4337
- var loader = require_loader();
4338
- var dumper = require_dumper();
4533
+ const loader = require_loader();
4534
+ const dumper = require_dumper();
4339
4535
  function renamed(from, to) {
4340
4536
  return function() {
4341
4537
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");