@uipath/insights-tool 1.197.0 → 1.198.0-preview.100

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 (2) hide show
  1. package/dist/tool.js +1439 -952
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -2128,7 +2128,7 @@ var require_commander = __commonJS((exports) => {
2128
2128
  var package_default = {
2129
2129
  name: "@uipath/insights-tool",
2130
2130
  license: "MIT",
2131
- version: "1.197.0",
2131
+ version: "1.198.0-preview.100",
2132
2132
  description: "Query UiPath Insights data — jobs, failures, and performance metrics.",
2133
2133
  private: false,
2134
2134
  repository: {
@@ -5107,31 +5107,17 @@ function search(data, expression, options) {
5107
5107
  }
5108
5108
 
5109
5109
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
5110
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
5111
- var __create2 = Object.create;
5112
- var __defProp2 = Object.defineProperty;
5113
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5114
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
5115
- var __getProtoOf2 = Object.getPrototypeOf;
5116
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
5117
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
5118
- var __copyProps = (to, from, except, desc) => {
5119
- if (from && typeof from === "object" || typeof from === "function")
5120
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
5121
- key = keys[i];
5122
- if (!__hasOwnProp2.call(to, key) && key !== except)
5123
- __defProp2(to, key, {
5124
- get: ((k) => from[k]).bind(null, key),
5125
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
5126
- });
5127
- }
5128
- return to;
5129
- };
5130
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
5131
- value: mod2,
5132
- enumerable: true
5133
- }) : target, mod2));
5134
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
5110
+ function getDefaultExportFromCjs(x) {
5111
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5112
+ }
5113
+ var jsYaml = {};
5114
+ var loader = {};
5115
+ var common = {};
5116
+ var hasRequiredCommon;
5117
+ function requireCommon() {
5118
+ if (hasRequiredCommon)
5119
+ return common;
5120
+ hasRequiredCommon = 1;
5135
5121
  function isNothing(subject) {
5136
5122
  return typeof subject === "undefined" || subject === null;
5137
5123
  }
@@ -5157,55 +5143,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
5157
5143
  }
5158
5144
  function repeat(string, count) {
5159
5145
  let result = "";
5160
- for (let cycle = 0;cycle < count; cycle += 1)
5146
+ for (let cycle = 0;cycle < count; cycle += 1) {
5161
5147
  result += string;
5148
+ }
5162
5149
  return result;
5163
5150
  }
5164
5151
  function isNegativeZero(number) {
5165
5152
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
5166
5153
  }
5167
- module.exports.isNothing = isNothing;
5168
- module.exports.isObject = isObject2;
5169
- module.exports.toArray = toArray;
5170
- module.exports.repeat = repeat;
5171
- module.exports.isNegativeZero = isNegativeZero;
5172
- module.exports.extend = extend;
5173
- });
5174
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
5175
- function formatError(exception, compact) {
5154
+ common.isNothing = isNothing;
5155
+ common.isObject = isObject2;
5156
+ common.toArray = toArray;
5157
+ common.repeat = repeat;
5158
+ common.isNegativeZero = isNegativeZero;
5159
+ common.extend = extend;
5160
+ return common;
5161
+ }
5162
+ var exception;
5163
+ var hasRequiredException;
5164
+ function requireException() {
5165
+ if (hasRequiredException)
5166
+ return exception;
5167
+ hasRequiredException = 1;
5168
+ function formatError(exception2, compact) {
5176
5169
  let where = "";
5177
- const message = exception.reason || "(unknown reason)";
5178
- if (!exception.mark)
5170
+ const message = exception2.reason || "(unknown reason)";
5171
+ if (!exception2.mark)
5179
5172
  return message;
5180
- if (exception.mark.name)
5181
- where += 'in "' + exception.mark.name + '" ';
5182
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
5183
- if (!compact && exception.mark.snippet)
5173
+ if (exception2.mark.name) {
5174
+ where += 'in "' + exception2.mark.name + '" ';
5175
+ }
5176
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
5177
+ if (!compact && exception2.mark.snippet) {
5184
5178
  where += `
5185
5179
 
5186
- ` + exception.mark.snippet;
5180
+ ` + exception2.mark.snippet;
5181
+ }
5187
5182
  return message + " " + where;
5188
5183
  }
5189
- function YAMLException(reason, mark) {
5184
+ function YAMLException2(reason, mark) {
5190
5185
  Error.call(this);
5191
5186
  this.name = "YAMLException";
5192
5187
  this.reason = reason;
5193
5188
  this.mark = mark;
5194
5189
  this.message = formatError(this, false);
5195
- if (Error.captureStackTrace)
5190
+ if (Error.captureStackTrace) {
5196
5191
  Error.captureStackTrace(this, this.constructor);
5197
- else
5198
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
5192
+ } else {
5193
+ this.stack = new Error().stack || "";
5194
+ }
5199
5195
  }
5200
- YAMLException.prototype = Object.create(Error.prototype);
5201
- YAMLException.prototype.constructor = YAMLException;
5202
- YAMLException.prototype.toString = function toString(compact) {
5196
+ YAMLException2.prototype = Object.create(Error.prototype);
5197
+ YAMLException2.prototype.constructor = YAMLException2;
5198
+ YAMLException2.prototype.toString = function toString(compact) {
5203
5199
  return this.name + ": " + formatError(this, compact);
5204
5200
  };
5205
- module.exports = YAMLException;
5206
- });
5207
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5208
- var common = require_common();
5201
+ exception = YAMLException2;
5202
+ return exception;
5203
+ }
5204
+ var snippet;
5205
+ var hasRequiredSnippet;
5206
+ function requireSnippet() {
5207
+ if (hasRequiredSnippet)
5208
+ return snippet;
5209
+ hasRequiredSnippet = 1;
5210
+ const common2 = requireCommon();
5209
5211
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
5210
5212
  let head = "";
5211
5213
  let tail = "";
@@ -5224,7 +5226,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5224
5226
  };
5225
5227
  }
5226
5228
  function padStart(string, max) {
5227
- return common.repeat(" ", max - string.length) + string;
5229
+ return common2.repeat(" ", max - string.length) + string;
5228
5230
  }
5229
5231
  function makeSnippet(mark, options) {
5230
5232
  options = Object.create(options || null);
@@ -5246,8 +5248,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5246
5248
  while (match = re.exec(mark.buffer)) {
5247
5249
  lineEnds.push(match.index);
5248
5250
  lineStarts.push(match.index + match[0].length);
5249
- if (mark.position <= match.index && foundLineNo < 0)
5251
+ if (mark.position <= match.index && foundLineNo < 0) {
5250
5252
  foundLineNo = lineStarts.length - 2;
5253
+ }
5251
5254
  }
5252
5255
  if (foundLineNo < 0)
5253
5256
  foundLineNo = lineStarts.length - 1;
@@ -5258,28 +5261,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5258
5261
  if (foundLineNo - i < 0)
5259
5262
  break;
5260
5263
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
5261
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
5264
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
5262
5265
  ` + result;
5263
5266
  }
5264
5267
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
5265
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
5268
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
5266
5269
  `;
5267
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
5270
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
5268
5271
  `;
5269
5272
  for (let i = 1;i <= options.linesAfter; i++) {
5270
5273
  if (foundLineNo + i >= lineEnds.length)
5271
5274
  break;
5272
5275
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
5273
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
5276
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
5274
5277
  `;
5275
5278
  }
5276
5279
  return result.replace(/\n$/, "");
5277
5280
  }
5278
- module.exports = makeSnippet;
5279
- });
5280
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5281
- var YAMLException = require_exception();
5282
- var TYPE_CONSTRUCTOR_OPTIONS = [
5281
+ snippet = makeSnippet;
5282
+ return snippet;
5283
+ }
5284
+ var type;
5285
+ var hasRequiredType;
5286
+ function requireType() {
5287
+ if (hasRequiredType)
5288
+ return type;
5289
+ hasRequiredType = 1;
5290
+ const YAMLException2 = requireException();
5291
+ const TYPE_CONSTRUCTOR_OPTIONS = [
5283
5292
  "kind",
5284
5293
  "multi",
5285
5294
  "resolve",
@@ -5291,26 +5300,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5291
5300
  "defaultStyle",
5292
5301
  "styleAliases"
5293
5302
  ];
5294
- var YAML_NODE_KINDS = [
5303
+ const YAML_NODE_KINDS = [
5295
5304
  "scalar",
5296
5305
  "sequence",
5297
5306
  "mapping"
5298
5307
  ];
5299
- function compileStyleAliases(map) {
5308
+ function compileStyleAliases(map2) {
5300
5309
  const result = {};
5301
- if (map !== null)
5302
- Object.keys(map).forEach(function(style) {
5303
- map[style].forEach(function(alias) {
5310
+ if (map2 !== null) {
5311
+ Object.keys(map2).forEach(function(style) {
5312
+ map2[style].forEach(function(alias) {
5304
5313
  result[String(alias)] = style;
5305
5314
  });
5306
5315
  });
5316
+ }
5307
5317
  return result;
5308
5318
  }
5309
- function Type(tag, options) {
5319
+ function Type2(tag, options) {
5310
5320
  options = options || {};
5311
5321
  Object.keys(options).forEach(function(name) {
5312
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
5313
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
5322
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
5323
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
5324
+ }
5314
5325
  });
5315
5326
  this.options = options;
5316
5327
  this.tag = tag;
@@ -5328,21 +5339,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5328
5339
  this.defaultStyle = options["defaultStyle"] || null;
5329
5340
  this.multi = options["multi"] || false;
5330
5341
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
5331
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
5332
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
5342
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
5343
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
5344
+ }
5333
5345
  }
5334
- module.exports = Type;
5335
- });
5336
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5337
- var YAMLException = require_exception();
5338
- var Type = require_type();
5339
- function compileList(schema, name) {
5346
+ type = Type2;
5347
+ return type;
5348
+ }
5349
+ var schema;
5350
+ var hasRequiredSchema;
5351
+ function requireSchema() {
5352
+ if (hasRequiredSchema)
5353
+ return schema;
5354
+ hasRequiredSchema = 1;
5355
+ const YAMLException2 = requireException();
5356
+ const Type2 = requireType();
5357
+ function compileList(schema2, name) {
5340
5358
  const result = [];
5341
- schema[name].forEach(function(currentType) {
5359
+ schema2[name].forEach(function(currentType) {
5342
5360
  let newIndex = result.length;
5343
5361
  result.forEach(function(previousType, previousIndex) {
5344
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
5362
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
5345
5363
  newIndex = previousIndex;
5364
+ }
5346
5365
  });
5347
5366
  result[newIndex] = currentType;
5348
5367
  });
@@ -5361,47 +5380,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5361
5380
  fallback: []
5362
5381
  }
5363
5382
  };
5364
- function collectType(type) {
5365
- if (type.multi) {
5366
- result.multi[type.kind].push(type);
5367
- result.multi["fallback"].push(type);
5368
- } else
5369
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
5383
+ function collectType(type2) {
5384
+ if (type2.multi) {
5385
+ result.multi[type2.kind].push(type2);
5386
+ result.multi["fallback"].push(type2);
5387
+ } else {
5388
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
5389
+ }
5370
5390
  }
5371
- for (let index = 0, length = arguments.length;index < length; index += 1)
5391
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
5372
5392
  arguments[index].forEach(collectType);
5393
+ }
5373
5394
  return result;
5374
5395
  }
5375
- function Schema(definition) {
5396
+ function Schema2(definition) {
5376
5397
  return this.extend(definition);
5377
5398
  }
5378
- Schema.prototype.extend = function extend(definition) {
5399
+ Schema2.prototype.extend = function extend(definition) {
5379
5400
  let implicit = [];
5380
5401
  let explicit = [];
5381
- if (definition instanceof Type)
5402
+ if (definition instanceof Type2) {
5382
5403
  explicit.push(definition);
5383
- else if (Array.isArray(definition))
5404
+ } else if (Array.isArray(definition)) {
5384
5405
  explicit = explicit.concat(definition);
5385
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
5406
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
5386
5407
  if (definition.implicit)
5387
5408
  implicit = implicit.concat(definition.implicit);
5388
5409
  if (definition.explicit)
5389
5410
  explicit = explicit.concat(definition.explicit);
5390
- } else
5391
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
5392
- implicit.forEach(function(type) {
5393
- if (!(type instanceof Type))
5394
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5395
- if (type.loadKind && type.loadKind !== "scalar")
5396
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
5397
- if (type.multi)
5398
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
5411
+ } else {
5412
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
5413
+ }
5414
+ implicit.forEach(function(type2) {
5415
+ if (!(type2 instanceof Type2)) {
5416
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5417
+ }
5418
+ if (type2.loadKind && type2.loadKind !== "scalar") {
5419
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
5420
+ }
5421
+ if (type2.multi) {
5422
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
5423
+ }
5399
5424
  });
5400
- explicit.forEach(function(type) {
5401
- if (!(type instanceof Type))
5402
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5425
+ explicit.forEach(function(type2) {
5426
+ if (!(type2 instanceof Type2)) {
5427
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5428
+ }
5403
5429
  });
5404
- const result = Object.create(Schema.prototype);
5430
+ const result = Object.create(Schema2.prototype);
5405
5431
  result.implicit = (this.implicit || []).concat(implicit);
5406
5432
  result.explicit = (this.explicit || []).concat(explicit);
5407
5433
  result.compiledImplicit = compileList(result, "implicit");
@@ -5409,41 +5435,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5409
5435
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
5410
5436
  return result;
5411
5437
  };
5412
- module.exports = Schema;
5413
- });
5414
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
5415
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
5438
+ schema = Schema2;
5439
+ return schema;
5440
+ }
5441
+ var str;
5442
+ var hasRequiredStr;
5443
+ function requireStr() {
5444
+ if (hasRequiredStr)
5445
+ return str;
5446
+ hasRequiredStr = 1;
5447
+ const Type2 = requireType();
5448
+ str = new Type2("tag:yaml.org,2002:str", {
5416
5449
  kind: "scalar",
5417
5450
  construct: function(data) {
5418
5451
  return data !== null ? data : "";
5419
5452
  }
5420
5453
  });
5421
- });
5422
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
5423
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
5454
+ return str;
5455
+ }
5456
+ var seq;
5457
+ var hasRequiredSeq;
5458
+ function requireSeq() {
5459
+ if (hasRequiredSeq)
5460
+ return seq;
5461
+ hasRequiredSeq = 1;
5462
+ const Type2 = requireType();
5463
+ seq = new Type2("tag:yaml.org,2002:seq", {
5424
5464
  kind: "sequence",
5425
5465
  construct: function(data) {
5426
5466
  return data !== null ? data : [];
5427
5467
  }
5428
5468
  });
5429
- });
5430
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
5431
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
5469
+ return seq;
5470
+ }
5471
+ var map;
5472
+ var hasRequiredMap;
5473
+ function requireMap() {
5474
+ if (hasRequiredMap)
5475
+ return map;
5476
+ hasRequiredMap = 1;
5477
+ const Type2 = requireType();
5478
+ map = new Type2("tag:yaml.org,2002:map", {
5432
5479
  kind: "mapping",
5433
5480
  construct: function(data) {
5434
5481
  return data !== null ? data : {};
5435
5482
  }
5436
5483
  });
5437
- });
5438
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
5439
- module.exports = new (require_schema())({ explicit: [
5440
- require_str(),
5441
- require_seq(),
5442
- require_map()
5443
- ] });
5444
- });
5445
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5446
- var Type = require_type();
5484
+ return map;
5485
+ }
5486
+ var failsafe;
5487
+ var hasRequiredFailsafe;
5488
+ function requireFailsafe() {
5489
+ if (hasRequiredFailsafe)
5490
+ return failsafe;
5491
+ hasRequiredFailsafe = 1;
5492
+ const Schema2 = requireSchema();
5493
+ failsafe = new Schema2({
5494
+ explicit: [
5495
+ requireStr(),
5496
+ requireSeq(),
5497
+ requireMap()
5498
+ ]
5499
+ });
5500
+ return failsafe;
5501
+ }
5502
+ var _null;
5503
+ var hasRequired_null;
5504
+ function require_null() {
5505
+ if (hasRequired_null)
5506
+ return _null;
5507
+ hasRequired_null = 1;
5508
+ const Type2 = requireType();
5447
5509
  function resolveYamlNull(data) {
5448
5510
  if (data === null)
5449
5511
  return true;
@@ -5456,7 +5518,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5456
5518
  function isNull(object) {
5457
5519
  return object === null;
5458
5520
  }
5459
- module.exports = new Type("tag:yaml.org,2002:null", {
5521
+ _null = new Type2("tag:yaml.org,2002:null", {
5460
5522
  kind: "scalar",
5461
5523
  resolve: resolveYamlNull,
5462
5524
  construct: constructYamlNull,
@@ -5480,9 +5542,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5480
5542
  },
5481
5543
  defaultStyle: "lowercase"
5482
5544
  });
5483
- });
5484
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5485
- var Type = require_type();
5545
+ return _null;
5546
+ }
5547
+ var bool;
5548
+ var hasRequiredBool;
5549
+ function requireBool() {
5550
+ if (hasRequiredBool)
5551
+ return bool;
5552
+ hasRequiredBool = 1;
5553
+ const Type2 = requireType();
5486
5554
  function resolveYamlBoolean(data) {
5487
5555
  if (data === null)
5488
5556
  return false;
@@ -5495,7 +5563,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5495
5563
  function isBoolean(object) {
5496
5564
  return Object.prototype.toString.call(object) === "[object Boolean]";
5497
5565
  }
5498
- module.exports = new Type("tag:yaml.org,2002:bool", {
5566
+ bool = new Type2("tag:yaml.org,2002:bool", {
5499
5567
  kind: "scalar",
5500
5568
  resolve: resolveYamlBoolean,
5501
5569
  construct: constructYamlBoolean,
@@ -5513,10 +5581,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5513
5581
  },
5514
5582
  defaultStyle: "lowercase"
5515
5583
  });
5516
- });
5517
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5518
- var common = require_common();
5519
- var Type = require_type();
5584
+ return bool;
5585
+ }
5586
+ var int;
5587
+ var hasRequiredInt;
5588
+ function requireInt() {
5589
+ if (hasRequiredInt)
5590
+ return int;
5591
+ hasRequiredInt = 1;
5592
+ const common2 = requireCommon();
5593
+ const Type2 = requireType();
5520
5594
  function isHexCode(c) {
5521
5595
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
5522
5596
  }
@@ -5535,8 +5609,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5535
5609
  if (!max)
5536
5610
  return false;
5537
5611
  let ch = data[index];
5538
- if (ch === "-" || ch === "+")
5612
+ if (ch === "-" || ch === "+") {
5539
5613
  ch = data[++index];
5614
+ }
5540
5615
  if (ch === "0") {
5541
5616
  if (index + 1 === max)
5542
5617
  return true;
@@ -5549,7 +5624,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5549
5624
  return false;
5550
5625
  hasDigits = true;
5551
5626
  }
5552
- return hasDigits && Number.isFinite(parseYamlInteger(data));
5627
+ return hasDigits && isFinite(parseYamlInteger(data));
5553
5628
  }
5554
5629
  if (ch === "x") {
5555
5630
  index++;
@@ -5558,7 +5633,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5558
5633
  return false;
5559
5634
  hasDigits = true;
5560
5635
  }
5561
- return hasDigits && Number.isFinite(parseYamlInteger(data));
5636
+ return hasDigits && isFinite(parseYamlInteger(data));
5562
5637
  }
5563
5638
  if (ch === "o") {
5564
5639
  index++;
@@ -5567,17 +5642,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5567
5642
  return false;
5568
5643
  hasDigits = true;
5569
5644
  }
5570
- return hasDigits && Number.isFinite(parseYamlInteger(data));
5645
+ return hasDigits && isFinite(parseYamlInteger(data));
5571
5646
  }
5572
5647
  }
5573
5648
  for (;index < max; index++) {
5574
- if (!isDecCode(data.charCodeAt(index)))
5649
+ if (!isDecCode(data.charCodeAt(index))) {
5575
5650
  return false;
5651
+ }
5576
5652
  hasDigits = true;
5577
5653
  }
5578
5654
  if (!hasDigits)
5579
5655
  return false;
5580
- return Number.isFinite(parseYamlInteger(data));
5656
+ return isFinite(parseYamlInteger(data));
5581
5657
  }
5582
5658
  function parseYamlInteger(data) {
5583
5659
  let value = data;
@@ -5605,9 +5681,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5605
5681
  return parseYamlInteger(data);
5606
5682
  }
5607
5683
  function isInteger(object) {
5608
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
5684
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
5609
5685
  }
5610
- module.exports = new Type("tag:yaml.org,2002:int", {
5686
+ int = new Type2("tag:yaml.org,2002:int", {
5611
5687
  kind: "scalar",
5612
5688
  resolve: resolveYamlInteger,
5613
5689
  construct: constructYamlInteger,
@@ -5634,35 +5710,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5634
5710
  hexadecimal: [16, "hex"]
5635
5711
  }
5636
5712
  });
5637
- });
5638
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5639
- var common = require_common();
5640
- var Type = require_type();
5641
- var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
5642
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
5713
+ return int;
5714
+ }
5715
+ var float;
5716
+ var hasRequiredFloat;
5717
+ function requireFloat() {
5718
+ if (hasRequiredFloat)
5719
+ return float;
5720
+ hasRequiredFloat = 1;
5721
+ const common2 = requireCommon();
5722
+ const Type2 = requireType();
5723
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
5724
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
5643
5725
  function resolveYamlFloat(data) {
5644
5726
  if (data === null)
5645
5727
  return false;
5646
- if (!YAML_FLOAT_PATTERN.test(data))
5728
+ if (!YAML_FLOAT_PATTERN.test(data)) {
5647
5729
  return false;
5648
- if (Number.isFinite(parseFloat(data, 10)))
5730
+ }
5731
+ if (isFinite(parseFloat(data, 10))) {
5649
5732
  return true;
5733
+ }
5650
5734
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
5651
5735
  }
5652
5736
  function constructYamlFloat(data) {
5653
5737
  let value = data.toLowerCase();
5654
5738
  const sign = value[0] === "-" ? -1 : 1;
5655
- if ("+-".indexOf(value[0]) >= 0)
5739
+ if ("+-".indexOf(value[0]) >= 0) {
5656
5740
  value = value.slice(1);
5657
- if (value === ".inf")
5741
+ }
5742
+ if (value === ".inf") {
5658
5743
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
5659
- else if (value === ".nan")
5744
+ } else if (value === ".nan") {
5660
5745
  return NaN;
5746
+ }
5661
5747
  return sign * parseFloat(value, 10);
5662
5748
  }
5663
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
5749
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
5664
5750
  function representYamlFloat(object, style) {
5665
- if (isNaN(object))
5751
+ if (isNaN(object)) {
5666
5752
  switch (style) {
5667
5753
  case "lowercase":
5668
5754
  return ".nan";
@@ -5671,7 +5757,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5671
5757
  case "camelcase":
5672
5758
  return ".NaN";
5673
5759
  }
5674
- else if (Number.POSITIVE_INFINITY === object)
5760
+ } else if (Number.POSITIVE_INFINITY === object) {
5675
5761
  switch (style) {
5676
5762
  case "lowercase":
5677
5763
  return ".inf";
@@ -5680,7 +5766,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5680
5766
  case "camelcase":
5681
5767
  return ".Inf";
5682
5768
  }
5683
- else if (Number.NEGATIVE_INFINITY === object)
5769
+ } else if (Number.NEGATIVE_INFINITY === object) {
5684
5770
  switch (style) {
5685
5771
  case "lowercase":
5686
5772
  return "-.inf";
@@ -5689,15 +5775,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5689
5775
  case "camelcase":
5690
5776
  return "-.Inf";
5691
5777
  }
5692
- else if (common.isNegativeZero(object))
5778
+ } else if (common2.isNegativeZero(object)) {
5693
5779
  return "-0.0";
5780
+ }
5694
5781
  const res = object.toString(10);
5695
5782
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
5696
5783
  }
5697
5784
  function isFloat(object) {
5698
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
5785
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
5699
5786
  }
5700
- module.exports = new Type("tag:yaml.org,2002:float", {
5787
+ float = new Type2("tag:yaml.org,2002:float", {
5701
5788
  kind: "scalar",
5702
5789
  resolve: resolveYamlFloat,
5703
5790
  construct: constructYamlFloat,
@@ -5705,22 +5792,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5705
5792
  represent: representYamlFloat,
5706
5793
  defaultStyle: "lowercase"
5707
5794
  });
5708
- });
5709
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
5710
- module.exports = require_failsafe().extend({ implicit: [
5711
- require_null(),
5712
- require_bool(),
5713
- require_int(),
5714
- require_float()
5715
- ] });
5716
- });
5717
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
5718
- module.exports = require_json();
5719
- });
5720
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
5721
- var Type = require_type();
5722
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
5723
- 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]))?))?$");
5795
+ return float;
5796
+ }
5797
+ var json;
5798
+ var hasRequiredJson;
5799
+ function requireJson() {
5800
+ if (hasRequiredJson)
5801
+ return json;
5802
+ hasRequiredJson = 1;
5803
+ json = requireFailsafe().extend({
5804
+ implicit: [
5805
+ require_null(),
5806
+ requireBool(),
5807
+ requireInt(),
5808
+ requireFloat()
5809
+ ]
5810
+ });
5811
+ return json;
5812
+ }
5813
+ var core;
5814
+ var hasRequiredCore;
5815
+ function requireCore() {
5816
+ if (hasRequiredCore)
5817
+ return core;
5818
+ hasRequiredCore = 1;
5819
+ core = requireJson();
5820
+ return core;
5821
+ }
5822
+ var timestamp;
5823
+ var hasRequiredTimestamp;
5824
+ function requireTimestamp() {
5825
+ if (hasRequiredTimestamp)
5826
+ return timestamp;
5827
+ hasRequiredTimestamp = 1;
5828
+ const Type2 = requireType();
5829
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
5830
+ const YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
5724
5831
  function resolveYamlTimestamp(data) {
5725
5832
  if (data === null)
5726
5833
  return false;
@@ -5741,15 +5848,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
5741
5848
  const year = +match[1];
5742
5849
  const month = +match[2] - 1;
5743
5850
  const day = +match[3];
5744
- if (!match[4])
5851
+ if (!match[4]) {
5745
5852
  return new Date(Date.UTC(year, month, day));
5853
+ }
5746
5854
  const hour = +match[4];
5747
5855
  const minute = +match[5];
5748
5856
  const second = +match[6];
5749
5857
  if (match[7]) {
5750
5858
  fraction = match[7].slice(0, 3);
5751
- while (fraction.length < 3)
5859
+ while (fraction.length < 3) {
5752
5860
  fraction += "0";
5861
+ }
5753
5862
  fraction = +fraction;
5754
5863
  }
5755
5864
  if (match[9]) {
@@ -5767,36 +5876,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
5767
5876
  function representYamlTimestamp(object) {
5768
5877
  return object.toISOString();
5769
5878
  }
5770
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
5879
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
5771
5880
  kind: "scalar",
5772
5881
  resolve: resolveYamlTimestamp,
5773
5882
  construct: constructYamlTimestamp,
5774
5883
  instanceOf: Date,
5775
5884
  represent: representYamlTimestamp
5776
5885
  });
5777
- });
5778
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
5779
- var Type = require_type();
5886
+ return timestamp;
5887
+ }
5888
+ var merge;
5889
+ var hasRequiredMerge;
5890
+ function requireMerge() {
5891
+ if (hasRequiredMerge)
5892
+ return merge;
5893
+ hasRequiredMerge = 1;
5894
+ const Type2 = requireType();
5780
5895
  function resolveYamlMerge(data) {
5781
5896
  return data === "<<" || data === null;
5782
5897
  }
5783
- module.exports = new Type("tag:yaml.org,2002:merge", {
5898
+ merge = new Type2("tag:yaml.org,2002:merge", {
5784
5899
  kind: "scalar",
5785
5900
  resolve: resolveYamlMerge
5786
5901
  });
5787
- });
5788
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5789
- var Type = require_type();
5790
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
5902
+ return merge;
5903
+ }
5904
+ var binary;
5905
+ var hasRequiredBinary;
5906
+ function requireBinary() {
5907
+ if (hasRequiredBinary)
5908
+ return binary;
5909
+ hasRequiredBinary = 1;
5910
+ const Type2 = requireType();
5911
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
5791
5912
  \r`;
5792
5913
  function resolveYamlBinary(data) {
5793
5914
  if (data === null)
5794
5915
  return false;
5795
5916
  let bitlen = 0;
5796
5917
  const max = data.length;
5797
- const map = BASE64_MAP;
5918
+ const map2 = BASE64_MAP;
5798
5919
  for (let idx = 0;idx < max; idx++) {
5799
- const code = map.indexOf(data.charAt(idx));
5920
+ const code = map2.indexOf(data.charAt(idx));
5800
5921
  if (code > 64)
5801
5922
  continue;
5802
5923
  if (code < 0)
@@ -5808,7 +5929,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5808
5929
  function constructYamlBinary(data) {
5809
5930
  const input = data.replace(/[\r\n=]/g, "");
5810
5931
  const max = input.length;
5811
- const map = BASE64_MAP;
5932
+ const map2 = BASE64_MAP;
5812
5933
  let bits = 0;
5813
5934
  const result = [];
5814
5935
  for (let idx = 0;idx < max; idx++) {
@@ -5817,7 +5938,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5817
5938
  result.push(bits >> 8 & 255);
5818
5939
  result.push(bits & 255);
5819
5940
  }
5820
- bits = bits << 6 | map.indexOf(input.charAt(idx));
5941
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
5821
5942
  }
5822
5943
  const tailbits = max % 4 * 6;
5823
5944
  if (tailbits === 0) {
@@ -5827,58 +5948,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5827
5948
  } else if (tailbits === 18) {
5828
5949
  result.push(bits >> 10 & 255);
5829
5950
  result.push(bits >> 2 & 255);
5830
- } else if (tailbits === 12)
5951
+ } else if (tailbits === 12) {
5831
5952
  result.push(bits >> 4 & 255);
5953
+ }
5832
5954
  return new Uint8Array(result);
5833
5955
  }
5834
5956
  function representYamlBinary(object) {
5835
5957
  let result = "";
5836
5958
  let bits = 0;
5837
5959
  const max = object.length;
5838
- const map = BASE64_MAP;
5960
+ const map2 = BASE64_MAP;
5839
5961
  for (let idx = 0;idx < max; idx++) {
5840
5962
  if (idx % 3 === 0 && idx) {
5841
- result += map[bits >> 18 & 63];
5842
- result += map[bits >> 12 & 63];
5843
- result += map[bits >> 6 & 63];
5844
- result += map[bits & 63];
5963
+ result += map2[bits >> 18 & 63];
5964
+ result += map2[bits >> 12 & 63];
5965
+ result += map2[bits >> 6 & 63];
5966
+ result += map2[bits & 63];
5845
5967
  }
5846
5968
  bits = (bits << 8) + object[idx];
5847
5969
  }
5848
5970
  const tail = max % 3;
5849
5971
  if (tail === 0) {
5850
- result += map[bits >> 18 & 63];
5851
- result += map[bits >> 12 & 63];
5852
- result += map[bits >> 6 & 63];
5853
- result += map[bits & 63];
5972
+ result += map2[bits >> 18 & 63];
5973
+ result += map2[bits >> 12 & 63];
5974
+ result += map2[bits >> 6 & 63];
5975
+ result += map2[bits & 63];
5854
5976
  } else if (tail === 2) {
5855
- result += map[bits >> 10 & 63];
5856
- result += map[bits >> 4 & 63];
5857
- result += map[bits << 2 & 63];
5858
- result += map[64];
5977
+ result += map2[bits >> 10 & 63];
5978
+ result += map2[bits >> 4 & 63];
5979
+ result += map2[bits << 2 & 63];
5980
+ result += map2[64];
5859
5981
  } else if (tail === 1) {
5860
- result += map[bits >> 2 & 63];
5861
- result += map[bits << 4 & 63];
5862
- result += map[64];
5863
- result += map[64];
5982
+ result += map2[bits >> 2 & 63];
5983
+ result += map2[bits << 4 & 63];
5984
+ result += map2[64];
5985
+ result += map2[64];
5864
5986
  }
5865
5987
  return result;
5866
5988
  }
5867
5989
  function isBinary(obj) {
5868
5990
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
5869
5991
  }
5870
- module.exports = new Type("tag:yaml.org,2002:binary", {
5992
+ binary = new Type2("tag:yaml.org,2002:binary", {
5871
5993
  kind: "scalar",
5872
5994
  resolve: resolveYamlBinary,
5873
5995
  construct: constructYamlBinary,
5874
5996
  predicate: isBinary,
5875
5997
  represent: representYamlBinary
5876
5998
  });
5877
- });
5878
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
5879
- var Type = require_type();
5880
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
5881
- var _toString = Object.prototype.toString;
5999
+ return binary;
6000
+ }
6001
+ var omap;
6002
+ var hasRequiredOmap;
6003
+ function requireOmap() {
6004
+ if (hasRequiredOmap)
6005
+ return omap;
6006
+ hasRequiredOmap = 1;
6007
+ const Type2 = requireType();
6008
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6009
+ const _toString = Object.prototype.toString;
5882
6010
  function resolveYamlOmap(data) {
5883
6011
  if (data === null)
5884
6012
  return true;
@@ -5890,12 +6018,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
5890
6018
  if (_toString.call(pair) !== "[object Object]")
5891
6019
  return false;
5892
6020
  let pairKey;
5893
- for (pairKey in pair)
5894
- if (_hasOwnProperty.call(pair, pairKey))
6021
+ for (pairKey in pair) {
6022
+ if (_hasOwnProperty.call(pair, pairKey)) {
5895
6023
  if (!pairHasKey)
5896
6024
  pairHasKey = true;
5897
6025
  else
5898
6026
  return false;
6027
+ }
6028
+ }
5899
6029
  if (!pairHasKey)
5900
6030
  return false;
5901
6031
  if (objectKeys.indexOf(pairKey) === -1)
@@ -5908,15 +6038,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
5908
6038
  function constructYamlOmap(data) {
5909
6039
  return data !== null ? data : [];
5910
6040
  }
5911
- module.exports = new Type("tag:yaml.org,2002:omap", {
6041
+ omap = new Type2("tag:yaml.org,2002:omap", {
5912
6042
  kind: "sequence",
5913
6043
  resolve: resolveYamlOmap,
5914
6044
  construct: constructYamlOmap
5915
6045
  });
5916
- });
5917
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
5918
- var Type = require_type();
5919
- var _toString = Object.prototype.toString;
6046
+ return omap;
6047
+ }
6048
+ var pairs;
6049
+ var hasRequiredPairs;
6050
+ function requirePairs() {
6051
+ if (hasRequiredPairs)
6052
+ return pairs;
6053
+ hasRequiredPairs = 1;
6054
+ const Type2 = requireType();
6055
+ const _toString = Object.prototype.toString;
5920
6056
  function resolveYamlPairs(data) {
5921
6057
  if (data === null)
5922
6058
  return true;
@@ -5945,64 +6081,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
5945
6081
  }
5946
6082
  return result;
5947
6083
  }
5948
- module.exports = new Type("tag:yaml.org,2002:pairs", {
6084
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
5949
6085
  kind: "sequence",
5950
6086
  resolve: resolveYamlPairs,
5951
6087
  construct: constructYamlPairs
5952
6088
  });
5953
- });
5954
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
5955
- var Type = require_type();
5956
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6089
+ return pairs;
6090
+ }
6091
+ var set;
6092
+ var hasRequiredSet;
6093
+ function requireSet() {
6094
+ if (hasRequiredSet)
6095
+ return set;
6096
+ hasRequiredSet = 1;
6097
+ const Type2 = requireType();
6098
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
5957
6099
  function resolveYamlSet(data) {
5958
6100
  if (data === null)
5959
6101
  return true;
5960
6102
  const object = data;
5961
- for (const key in object)
6103
+ for (const key in object) {
5962
6104
  if (_hasOwnProperty.call(object, key)) {
5963
6105
  if (object[key] !== null)
5964
6106
  return false;
5965
6107
  }
6108
+ }
5966
6109
  return true;
5967
6110
  }
5968
6111
  function constructYamlSet(data) {
5969
6112
  return data !== null ? data : {};
5970
6113
  }
5971
- module.exports = new Type("tag:yaml.org,2002:set", {
6114
+ set = new Type2("tag:yaml.org,2002:set", {
5972
6115
  kind: "mapping",
5973
6116
  resolve: resolveYamlSet,
5974
6117
  construct: constructYamlSet
5975
6118
  });
5976
- });
5977
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
5978
- module.exports = require_core().extend({
5979
- implicit: [require_timestamp(), require_merge()],
6119
+ return set;
6120
+ }
6121
+ var _default;
6122
+ var hasRequired_default;
6123
+ function require_default() {
6124
+ if (hasRequired_default)
6125
+ return _default;
6126
+ hasRequired_default = 1;
6127
+ _default = requireCore().extend({
6128
+ implicit: [
6129
+ requireTimestamp(),
6130
+ requireMerge()
6131
+ ],
5980
6132
  explicit: [
5981
- require_binary(),
5982
- require_omap(),
5983
- require_pairs(),
5984
- require_set()
6133
+ requireBinary(),
6134
+ requireOmap(),
6135
+ requirePairs(),
6136
+ requireSet()
5985
6137
  ]
5986
6138
  });
5987
- });
5988
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
5989
- var common = require_common();
5990
- var YAMLException = require_exception();
5991
- var makeSnippet = require_snippet();
5992
- var DEFAULT_SCHEMA = require_default();
5993
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
5994
- var CONTEXT_FLOW_IN = 1;
5995
- var CONTEXT_FLOW_OUT = 2;
5996
- var CONTEXT_BLOCK_IN = 3;
5997
- var CONTEXT_BLOCK_OUT = 4;
5998
- var CHOMPING_CLIP = 1;
5999
- var CHOMPING_STRIP = 2;
6000
- var CHOMPING_KEEP = 3;
6001
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
6002
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
6003
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
6004
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
6005
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
6139
+ return _default;
6140
+ }
6141
+ var hasRequiredLoader;
6142
+ function requireLoader() {
6143
+ if (hasRequiredLoader)
6144
+ return loader;
6145
+ hasRequiredLoader = 1;
6146
+ const common2 = requireCommon();
6147
+ const YAMLException2 = requireException();
6148
+ const makeSnippet = requireSnippet();
6149
+ const DEFAULT_SCHEMA2 = require_default();
6150
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6151
+ const CONTEXT_FLOW_IN = 1;
6152
+ const CONTEXT_FLOW_OUT = 2;
6153
+ const CONTEXT_BLOCK_IN = 3;
6154
+ const CONTEXT_BLOCK_OUT = 4;
6155
+ const CHOMPING_CLIP = 1;
6156
+ const CHOMPING_STRIP = 2;
6157
+ const CHOMPING_KEEP = 3;
6158
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
6159
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
6160
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
6161
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
6162
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
6006
6163
  function _class(obj) {
6007
6164
  return Object.prototype.toString.call(obj);
6008
6165
  }
@@ -6019,25 +6176,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6019
6176
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
6020
6177
  }
6021
6178
  function fromHexCode(c) {
6022
- if (c >= 48 && c <= 57)
6179
+ if (c >= 48 && c <= 57) {
6023
6180
  return c - 48;
6181
+ }
6024
6182
  const lc = c | 32;
6025
- if (lc >= 97 && lc <= 102)
6183
+ if (lc >= 97 && lc <= 102) {
6026
6184
  return lc - 97 + 10;
6185
+ }
6027
6186
  return -1;
6028
6187
  }
6029
6188
  function escapedHexLen(c) {
6030
- if (c === 120)
6189
+ if (c === 120) {
6031
6190
  return 2;
6032
- if (c === 117)
6191
+ }
6192
+ if (c === 117) {
6033
6193
  return 4;
6034
- if (c === 85)
6194
+ }
6195
+ if (c === 85) {
6035
6196
  return 8;
6197
+ }
6036
6198
  return 0;
6037
6199
  }
6038
6200
  function fromDecimalCode(c) {
6039
- if (c >= 48 && c <= 57)
6201
+ if (c >= 48 && c <= 57) {
6040
6202
  return c - 48;
6203
+ }
6041
6204
  return -1;
6042
6205
  }
6043
6206
  function simpleEscapeSequence(c) {
@@ -6084,23 +6247,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6084
6247
  }
6085
6248
  }
6086
6249
  function charFromCodepoint(c) {
6087
- if (c <= 65535)
6250
+ if (c <= 65535) {
6088
6251
  return String.fromCharCode(c);
6252
+ }
6089
6253
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
6090
6254
  }
6091
6255
  function setProperty(object, key, value) {
6092
- if (key === "__proto__")
6256
+ if (key === "__proto__") {
6093
6257
  Object.defineProperty(object, key, {
6094
6258
  configurable: true,
6095
6259
  enumerable: true,
6096
6260
  writable: true,
6097
6261
  value
6098
6262
  });
6099
- else
6263
+ } else {
6100
6264
  object[key] = value;
6265
+ }
6101
6266
  }
6102
- var simpleEscapeCheck = new Array(256);
6103
- var simpleEscapeMap = new Array(256);
6267
+ const simpleEscapeCheck = new Array(256);
6268
+ const simpleEscapeMap = new Array(256);
6104
6269
  for (let i = 0;i < 256; i++) {
6105
6270
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
6106
6271
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -6108,13 +6273,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6108
6273
  function State(input, options) {
6109
6274
  this.input = input;
6110
6275
  this.filename = options["filename"] || null;
6111
- this.schema = options["schema"] || DEFAULT_SCHEMA;
6276
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
6112
6277
  this.onWarning = options["onWarning"] || null;
6113
6278
  this.legacy = options["legacy"] || false;
6114
6279
  this.json = options["json"] || false;
6115
6280
  this.listener = options["listener"] || null;
6116
6281
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
6117
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
6282
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
6118
6283
  this.implicitTypes = this.schema.compiledImplicit;
6119
6284
  this.typeMap = this.schema.compiledTypeMap;
6120
6285
  this.length = input.length;
@@ -6123,6 +6288,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6123
6288
  this.lineStart = 0;
6124
6289
  this.lineIndent = 0;
6125
6290
  this.depth = 0;
6291
+ this.totalMergeKeys = 0;
6126
6292
  this.firstTabInLine = -1;
6127
6293
  this.documents = [];
6128
6294
  this.anchorMapTransactions = [];
@@ -6136,29 +6302,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6136
6302
  column: state.position - state.lineStart
6137
6303
  };
6138
6304
  mark.snippet = makeSnippet(mark);
6139
- return new YAMLException(message, mark);
6305
+ return new YAMLException2(message, mark);
6140
6306
  }
6141
6307
  function throwError(state, message) {
6142
6308
  throw generateError(state, message);
6143
6309
  }
6144
6310
  function throwWarning(state, message) {
6145
- if (state.onWarning)
6311
+ if (state.onWarning) {
6146
6312
  state.onWarning.call(null, generateError(state, message));
6313
+ }
6147
6314
  }
6148
6315
  function storeAnchor(state, name, value) {
6149
6316
  const transactions = state.anchorMapTransactions;
6150
6317
  if (transactions.length !== 0) {
6151
6318
  const transaction = transactions[transactions.length - 1];
6152
- if (!_hasOwnProperty.call(transaction, name))
6319
+ if (!_hasOwnProperty.call(transaction, name)) {
6153
6320
  transaction[name] = {
6154
6321
  existed: _hasOwnProperty.call(state.anchorMap, name),
6155
6322
  value: state.anchorMap[name]
6156
6323
  };
6324
+ }
6157
6325
  }
6158
6326
  state.anchorMap[name] = value;
6159
6327
  }
6160
6328
  function beginAnchorTransaction(state) {
6161
- state.anchorMapTransactions.push(Object.create(null));
6329
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
6162
6330
  }
6163
6331
  function commitAnchorTransaction(state) {
6164
6332
  const transaction = state.anchorMapTransactions.pop();
@@ -6169,8 +6337,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6169
6337
  const names = Object.keys(transaction);
6170
6338
  for (let index = 0, length = names.length;index < length; index += 1) {
6171
6339
  const name = names[index];
6172
- if (!_hasOwnProperty.call(parent, name))
6340
+ if (!_hasOwnProperty.call(parent, name)) {
6173
6341
  parent[name] = transaction[name];
6342
+ }
6174
6343
  }
6175
6344
  }
6176
6345
  function rollbackAnchorTransaction(state) {
@@ -6178,10 +6347,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6178
6347
  const names = Object.keys(transaction);
6179
6348
  for (let index = names.length - 1;index >= 0; index -= 1) {
6180
6349
  const entry = transaction[names[index]];
6181
- if (entry.existed)
6350
+ if (entry.existed) {
6182
6351
  state.anchorMap[names[index]] = entry.value;
6183
- else
6352
+ } else {
6184
6353
  delete state.anchorMap[names[index]];
6354
+ }
6185
6355
  }
6186
6356
  }
6187
6357
  function snapshotState(state) {
@@ -6208,36 +6378,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6208
6378
  state.kind = snapshot.kind;
6209
6379
  state.result = snapshot.result;
6210
6380
  }
6211
- var directiveHandlers = {
6381
+ const directiveHandlers = {
6212
6382
  YAML: function handleYamlDirective(state, name, args) {
6213
- if (state.version !== null)
6383
+ if (state.version !== null) {
6214
6384
  throwError(state, "duplication of %YAML directive");
6215
- if (args.length !== 1)
6385
+ }
6386
+ if (args.length !== 1) {
6216
6387
  throwError(state, "YAML directive accepts exactly one argument");
6388
+ }
6217
6389
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
6218
- if (match === null)
6390
+ if (match === null) {
6219
6391
  throwError(state, "ill-formed argument of the YAML directive");
6392
+ }
6220
6393
  const major = parseInt(match[1], 10);
6221
6394
  const minor = parseInt(match[2], 10);
6222
- if (major !== 1)
6395
+ if (major !== 1) {
6223
6396
  throwError(state, "unacceptable YAML version of the document");
6397
+ }
6224
6398
  state.version = args[0];
6225
6399
  state.checkLineBreaks = minor < 2;
6226
- if (minor !== 1 && minor !== 2)
6400
+ if (minor !== 1 && minor !== 2) {
6227
6401
  throwWarning(state, "unsupported YAML version of the document");
6402
+ }
6228
6403
  },
6229
6404
  TAG: function handleTagDirective(state, name, args) {
6230
6405
  let prefix;
6231
- if (args.length !== 2)
6406
+ if (args.length !== 2) {
6232
6407
  throwError(state, "TAG directive accepts exactly two arguments");
6408
+ }
6233
6409
  const handle = args[0];
6234
6410
  prefix = args[1];
6235
- if (!PATTERN_TAG_HANDLE.test(handle))
6411
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
6236
6412
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
6237
- if (_hasOwnProperty.call(state.tagMap, handle))
6413
+ }
6414
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
6238
6415
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
6239
- if (!PATTERN_TAG_URI.test(prefix))
6416
+ }
6417
+ if (!PATTERN_TAG_URI.test(prefix)) {
6240
6418
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
6419
+ }
6241
6420
  try {
6242
6421
  prefix = decodeURIComponent(prefix);
6243
6422
  } catch (err) {
@@ -6249,23 +6428,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6249
6428
  function captureSegment(state, start, end, checkJson) {
6250
6429
  if (start < end) {
6251
6430
  const _result = state.input.slice(start, end);
6252
- if (checkJson)
6431
+ if (checkJson) {
6253
6432
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
6254
6433
  const _character = _result.charCodeAt(_position);
6255
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
6434
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
6256
6435
  throwError(state, "expected valid JSON character");
6436
+ }
6257
6437
  }
6258
- else if (PATTERN_NON_PRINTABLE.test(_result))
6438
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
6259
6439
  throwError(state, "the stream contains non-printable characters");
6440
+ }
6260
6441
  state.result += _result;
6261
6442
  }
6262
6443
  }
6263
6444
  function mergeMappings(state, destination, source, overridableKeys) {
6264
- if (!common.isObject(source))
6445
+ if (!common2.isObject(source)) {
6265
6446
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
6447
+ }
6266
6448
  const sourceKeys = Object.keys(source);
6267
6449
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
6268
6450
  const key = sourceKeys[index];
6451
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
6452
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
6453
+ }
6269
6454
  if (!_hasOwnProperty.call(destination, key)) {
6270
6455
  setProperty(destination, key, source[key]);
6271
6456
  overridableKeys[key] = true;
@@ -6276,32 +6461,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6276
6461
  if (Array.isArray(keyNode)) {
6277
6462
  keyNode = Array.prototype.slice.call(keyNode);
6278
6463
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
6279
- if (Array.isArray(keyNode[index]))
6464
+ if (Array.isArray(keyNode[index])) {
6280
6465
  throwError(state, "nested arrays are not supported inside keys");
6281
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
6466
+ }
6467
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
6282
6468
  keyNode[index] = "[object Object]";
6469
+ }
6283
6470
  }
6284
6471
  }
6285
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
6472
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
6286
6473
  keyNode = "[object Object]";
6474
+ }
6287
6475
  keyNode = String(keyNode);
6288
- if (_result === null)
6476
+ if (_result === null) {
6289
6477
  _result = {};
6290
- if (keyTag === "tag:yaml.org,2002:merge")
6478
+ }
6479
+ if (keyTag === "tag:yaml.org,2002:merge") {
6291
6480
  if (Array.isArray(valueNode)) {
6292
- if (valueNode.length > state.maxMergeSeqLength)
6293
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
6294
- const seen = /* @__PURE__ */ new Set;
6295
6481
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
6296
- const src = valueNode[index];
6297
- if (seen.has(src))
6298
- continue;
6299
- seen.add(src);
6300
- mergeMappings(state, _result, src, overridableKeys);
6482
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
6301
6483
  }
6302
- } else
6484
+ } else {
6303
6485
  mergeMappings(state, _result, valueNode, overridableKeys);
6304
- else {
6486
+ }
6487
+ } else {
6305
6488
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
6306
6489
  state.line = startLine || state.line;
6307
6490
  state.lineStart = startLineStart || state.lineStart;
@@ -6315,14 +6498,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6315
6498
  }
6316
6499
  function readLineBreak(state) {
6317
6500
  const ch = state.input.charCodeAt(state.position);
6318
- if (ch === 10)
6501
+ if (ch === 10) {
6319
6502
  state.position++;
6320
- else if (ch === 13) {
6503
+ } else if (ch === 13) {
6321
6504
  state.position++;
6322
- if (state.input.charCodeAt(state.position) === 10)
6505
+ if (state.input.charCodeAt(state.position) === 10) {
6323
6506
  state.position++;
6324
- } else
6507
+ }
6508
+ } else {
6325
6509
  throwError(state, "a line break is expected");
6510
+ }
6326
6511
  state.line += 1;
6327
6512
  state.lineStart = state.position;
6328
6513
  state.firstTabInLine = -1;
@@ -6332,14 +6517,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6332
6517
  let ch = state.input.charCodeAt(state.position);
6333
6518
  while (ch !== 0) {
6334
6519
  while (isWhiteSpace(ch)) {
6335
- if (ch === 9 && state.firstTabInLine === -1)
6520
+ if (ch === 9 && state.firstTabInLine === -1) {
6336
6521
  state.firstTabInLine = state.position;
6522
+ }
6337
6523
  ch = state.input.charCodeAt(++state.position);
6338
6524
  }
6339
- if (allowComments && ch === 35)
6340
- do
6525
+ if (allowComments && ch === 35) {
6526
+ do {
6341
6527
  ch = state.input.charCodeAt(++state.position);
6342
- while (ch !== 10 && ch !== 13 && ch !== 0);
6528
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
6529
+ }
6343
6530
  if (isEol(ch)) {
6344
6531
  readLineBreak(state);
6345
6532
  ch = state.input.charCodeAt(state.position);
@@ -6349,11 +6536,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6349
6536
  state.lineIndent++;
6350
6537
  ch = state.input.charCodeAt(++state.position);
6351
6538
  }
6352
- } else
6539
+ } else {
6353
6540
  break;
6541
+ }
6354
6542
  }
6355
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
6543
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
6356
6544
  throwWarning(state, "deficient indentation");
6545
+ }
6357
6546
  return lineBreaks;
6358
6547
  }
6359
6548
  function testDocumentSeparator(state) {
@@ -6362,17 +6551,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6362
6551
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
6363
6552
  _position += 3;
6364
6553
  ch = state.input.charCodeAt(_position);
6365
- if (ch === 0 || isWsOrEol(ch))
6554
+ if (ch === 0 || isWsOrEol(ch)) {
6366
6555
  return true;
6556
+ }
6367
6557
  }
6368
6558
  return false;
6369
6559
  }
6370
6560
  function writeFoldedLines(state, count) {
6371
- if (count === 1)
6561
+ if (count === 1) {
6372
6562
  state.result += " ";
6373
- else if (count > 1)
6374
- state.result += common.repeat(`
6563
+ } else if (count > 1) {
6564
+ state.result += common2.repeat(`
6375
6565
  `, count - 1);
6566
+ }
6376
6567
  }
6377
6568
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
6378
6569
  let captureStart;
@@ -6384,12 +6575,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6384
6575
  const _kind = state.kind;
6385
6576
  const _result = state.result;
6386
6577
  let ch = state.input.charCodeAt(state.position);
6387
- 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)
6578
+ 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) {
6388
6579
  return false;
6580
+ }
6389
6581
  if (ch === 63 || ch === 45) {
6390
6582
  const following = state.input.charCodeAt(state.position + 1);
6391
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
6583
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
6392
6584
  return false;
6585
+ }
6393
6586
  }
6394
6587
  state.kind = "scalar";
6395
6588
  state.result = "";
@@ -6398,14 +6591,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6398
6591
  while (ch !== 0) {
6399
6592
  if (ch === 58) {
6400
6593
  const following = state.input.charCodeAt(state.position + 1);
6401
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
6594
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
6402
6595
  break;
6596
+ }
6403
6597
  } else if (ch === 35) {
6404
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
6598
+ const preceding = state.input.charCodeAt(state.position - 1);
6599
+ if (isWsOrEol(preceding)) {
6405
6600
  break;
6406
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
6601
+ }
6602
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
6407
6603
  break;
6408
- else if (isEol(ch)) {
6604
+ } else if (isEol(ch)) {
6409
6605
  _line = state.line;
6410
6606
  _lineStart = state.lineStart;
6411
6607
  _lineIndent = state.lineIndent;
@@ -6428,13 +6624,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6428
6624
  captureStart = captureEnd = state.position;
6429
6625
  hasPendingContent = false;
6430
6626
  }
6431
- if (!isWhiteSpace(ch))
6627
+ if (!isWhiteSpace(ch)) {
6432
6628
  captureEnd = state.position + 1;
6629
+ }
6433
6630
  ch = state.input.charCodeAt(++state.position);
6434
6631
  }
6435
6632
  captureSegment(state, captureStart, captureEnd, false);
6436
- if (state.result)
6633
+ if (state.result) {
6437
6634
  return true;
6635
+ }
6438
6636
  state.kind = _kind;
6439
6637
  state.result = _result;
6440
6638
  return false;
@@ -6443,13 +6641,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6443
6641
  let captureStart;
6444
6642
  let captureEnd;
6445
6643
  let ch = state.input.charCodeAt(state.position);
6446
- if (ch !== 39)
6644
+ if (ch !== 39) {
6447
6645
  return false;
6646
+ }
6448
6647
  state.kind = "scalar";
6449
6648
  state.result = "";
6450
6649
  state.position++;
6451
6650
  captureStart = captureEnd = state.position;
6452
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
6651
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
6453
6652
  if (ch === 39) {
6454
6653
  captureSegment(state, captureStart, state.position, true);
6455
6654
  ch = state.input.charCodeAt(++state.position);
@@ -6457,19 +6656,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6457
6656
  captureStart = state.position;
6458
6657
  state.position++;
6459
6658
  captureEnd = state.position;
6460
- } else
6659
+ } else {
6461
6660
  return true;
6661
+ }
6462
6662
  } else if (isEol(ch)) {
6463
6663
  captureSegment(state, captureStart, captureEnd, true);
6464
6664
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
6465
6665
  captureStart = captureEnd = state.position;
6466
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
6666
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
6467
6667
  throwError(state, "unexpected end of the document within a single quoted scalar");
6468
- else {
6668
+ } else {
6469
6669
  state.position++;
6470
- if (!isWhiteSpace(ch))
6670
+ if (!isWhiteSpace(ch)) {
6471
6671
  captureEnd = state.position;
6672
+ }
6472
6673
  }
6674
+ }
6473
6675
  throwError(state, "unexpected end of the stream within a single quoted scalar");
6474
6676
  }
6475
6677
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -6477,13 +6679,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6477
6679
  let captureEnd;
6478
6680
  let tmp;
6479
6681
  let ch = state.input.charCodeAt(state.position);
6480
- if (ch !== 34)
6682
+ if (ch !== 34) {
6481
6683
  return false;
6684
+ }
6482
6685
  state.kind = "scalar";
6483
6686
  state.result = "";
6484
6687
  state.position++;
6485
6688
  captureStart = captureEnd = state.position;
6486
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
6689
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
6487
6690
  if (ch === 34) {
6488
6691
  captureSegment(state, captureStart, state.position, true);
6489
6692
  state.position++;
@@ -6491,9 +6694,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6491
6694
  } else if (ch === 92) {
6492
6695
  captureSegment(state, captureStart, state.position, true);
6493
6696
  ch = state.input.charCodeAt(++state.position);
6494
- if (isEol(ch))
6697
+ if (isEol(ch)) {
6495
6698
  skipSeparationSpace(state, false, nodeIndent);
6496
- else if (ch < 256 && simpleEscapeCheck[ch]) {
6699
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
6497
6700
  state.result += simpleEscapeMap[ch];
6498
6701
  state.position++;
6499
6702
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -6501,27 +6704,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6501
6704
  let hexResult = 0;
6502
6705
  for (;hexLength > 0; hexLength--) {
6503
6706
  ch = state.input.charCodeAt(++state.position);
6504
- if ((tmp = fromHexCode(ch)) >= 0)
6707
+ if ((tmp = fromHexCode(ch)) >= 0) {
6505
6708
  hexResult = (hexResult << 4) + tmp;
6506
- else
6709
+ } else {
6507
6710
  throwError(state, "expected hexadecimal character");
6711
+ }
6508
6712
  }
6509
6713
  state.result += charFromCodepoint(hexResult);
6510
6714
  state.position++;
6511
- } else
6715
+ } else {
6512
6716
  throwError(state, "unknown escape sequence");
6717
+ }
6513
6718
  captureStart = captureEnd = state.position;
6514
6719
  } else if (isEol(ch)) {
6515
6720
  captureSegment(state, captureStart, captureEnd, true);
6516
6721
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
6517
6722
  captureStart = captureEnd = state.position;
6518
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
6723
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
6519
6724
  throwError(state, "unexpected end of the document within a double quoted scalar");
6520
- else {
6725
+ } else {
6521
6726
  state.position++;
6522
- if (!isWhiteSpace(ch))
6727
+ if (!isWhiteSpace(ch)) {
6523
6728
  captureEnd = state.position;
6729
+ }
6524
6730
  }
6731
+ }
6525
6732
  throwError(state, "unexpected end of the stream within a double quoted scalar");
6526
6733
  }
6527
6734
  function readFlowCollection(state, nodeIndent) {
@@ -6536,7 +6743,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6536
6743
  let isPair;
6537
6744
  let isExplicitPair;
6538
6745
  let isMapping;
6539
- const overridableKeys = Object.create(null);
6746
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
6540
6747
  let keyNode;
6541
6748
  let keyTag;
6542
6749
  let valueNode;
@@ -6549,10 +6756,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6549
6756
  terminator = 125;
6550
6757
  isMapping = true;
6551
6758
  _result = {};
6552
- } else
6759
+ } else {
6553
6760
  return false;
6554
- if (state.anchor !== null)
6761
+ }
6762
+ if (state.anchor !== null) {
6555
6763
  storeAnchor(state, state.anchor, _result);
6764
+ }
6556
6765
  ch = state.input.charCodeAt(++state.position);
6557
6766
  while (ch !== 0) {
6558
6767
  skipSeparationSpace(state, true, nodeIndent);
@@ -6564,14 +6773,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6564
6773
  state.kind = isMapping ? "mapping" : "sequence";
6565
6774
  state.result = _result;
6566
6775
  return true;
6567
- } else if (!readNext)
6776
+ } else if (!readNext) {
6568
6777
  throwError(state, "missed comma between flow collection entries");
6569
- else if (ch === 44)
6778
+ } else if (ch === 44) {
6570
6779
  throwError(state, "expected the node content, but found ','");
6780
+ }
6571
6781
  keyTag = keyNode = valueNode = null;
6572
6782
  isPair = isExplicitPair = false;
6573
6783
  if (ch === 63) {
6574
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
6784
+ const following = state.input.charCodeAt(state.position + 1);
6785
+ if (isWsOrEol(following)) {
6575
6786
  isPair = isExplicitPair = true;
6576
6787
  state.position++;
6577
6788
  skipSeparationSpace(state, true, nodeIndent);
@@ -6592,19 +6803,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6592
6803
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
6593
6804
  valueNode = state.result;
6594
6805
  }
6595
- if (isMapping)
6806
+ if (isMapping) {
6596
6807
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
6597
- else if (isPair)
6808
+ } else if (isPair) {
6598
6809
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
6599
- else
6810
+ } else {
6600
6811
  _result.push(keyNode);
6812
+ }
6601
6813
  skipSeparationSpace(state, true, nodeIndent);
6602
6814
  ch = state.input.charCodeAt(state.position);
6603
6815
  if (ch === 44) {
6604
6816
  readNext = true;
6605
6817
  ch = state.input.charCodeAt(++state.position);
6606
- } else
6818
+ } else {
6607
6819
  readNext = false;
6820
+ }
6608
6821
  }
6609
6822
  throwError(state, "unexpected end of the stream within a flow collection");
6610
6823
  }
@@ -6618,40 +6831,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6618
6831
  let atMoreIndented = false;
6619
6832
  let tmp;
6620
6833
  let ch = state.input.charCodeAt(state.position);
6621
- if (ch === 124)
6834
+ if (ch === 124) {
6622
6835
  folding = false;
6623
- else if (ch === 62)
6836
+ } else if (ch === 62) {
6624
6837
  folding = true;
6625
- else
6838
+ } else {
6626
6839
  return false;
6840
+ }
6627
6841
  state.kind = "scalar";
6628
6842
  state.result = "";
6629
6843
  while (ch !== 0) {
6630
6844
  ch = state.input.charCodeAt(++state.position);
6631
- if (ch === 43 || ch === 45)
6632
- if (CHOMPING_CLIP === chomping)
6845
+ if (ch === 43 || ch === 45) {
6846
+ if (CHOMPING_CLIP === chomping) {
6633
6847
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
6634
- else
6848
+ } else {
6635
6849
  throwError(state, "repeat of a chomping mode identifier");
6636
- else if ((tmp = fromDecimalCode(ch)) >= 0)
6637
- if (tmp === 0)
6850
+ }
6851
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
6852
+ if (tmp === 0) {
6638
6853
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
6639
- else if (!detectedIndent) {
6854
+ } else if (!detectedIndent) {
6640
6855
  textIndent = nodeIndent + tmp - 1;
6641
6856
  detectedIndent = true;
6642
- } else
6857
+ } else {
6643
6858
  throwError(state, "repeat of an indentation width identifier");
6644
- else
6859
+ }
6860
+ } else {
6645
6861
  break;
6862
+ }
6646
6863
  }
6647
6864
  if (isWhiteSpace(ch)) {
6648
- do
6865
+ do {
6649
6866
  ch = state.input.charCodeAt(++state.position);
6650
- while (isWhiteSpace(ch));
6651
- if (ch === 35)
6652
- do
6867
+ } while (isWhiteSpace(ch));
6868
+ if (ch === 35) {
6869
+ do {
6653
6870
  ch = state.input.charCodeAt(++state.position);
6654
- while (!isEol(ch) && ch !== 0);
6871
+ } while (!isEol(ch) && ch !== 0);
6872
+ }
6655
6873
  }
6656
6874
  while (ch !== 0) {
6657
6875
  readLineBreak(state);
@@ -6661,49 +6879,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6661
6879
  state.lineIndent++;
6662
6880
  ch = state.input.charCodeAt(++state.position);
6663
6881
  }
6664
- if (!detectedIndent && state.lineIndent > textIndent)
6882
+ if (!detectedIndent && state.lineIndent > textIndent) {
6665
6883
  textIndent = state.lineIndent;
6884
+ }
6666
6885
  if (isEol(ch)) {
6667
6886
  emptyLines++;
6668
6887
  continue;
6669
6888
  }
6670
- if (!detectedIndent && textIndent === 0)
6889
+ if (!detectedIndent && textIndent === 0) {
6671
6890
  throwError(state, "missing indentation for block scalar");
6891
+ }
6672
6892
  if (state.lineIndent < textIndent) {
6673
- if (chomping === CHOMPING_KEEP)
6674
- state.result += common.repeat(`
6893
+ if (chomping === CHOMPING_KEEP) {
6894
+ state.result += common2.repeat(`
6675
6895
  `, didReadContent ? 1 + emptyLines : emptyLines);
6676
- else if (chomping === CHOMPING_CLIP) {
6677
- if (didReadContent)
6896
+ } else if (chomping === CHOMPING_CLIP) {
6897
+ if (didReadContent) {
6678
6898
  state.result += `
6679
6899
  `;
6900
+ }
6680
6901
  }
6681
6902
  break;
6682
6903
  }
6683
- if (folding)
6904
+ if (folding) {
6684
6905
  if (isWhiteSpace(ch)) {
6685
6906
  atMoreIndented = true;
6686
- state.result += common.repeat(`
6907
+ state.result += common2.repeat(`
6687
6908
  `, didReadContent ? 1 + emptyLines : emptyLines);
6688
6909
  } else if (atMoreIndented) {
6689
6910
  atMoreIndented = false;
6690
- state.result += common.repeat(`
6911
+ state.result += common2.repeat(`
6691
6912
  `, emptyLines + 1);
6692
6913
  } else if (emptyLines === 0) {
6693
- if (didReadContent)
6914
+ if (didReadContent) {
6694
6915
  state.result += " ";
6695
- } else
6696
- state.result += common.repeat(`
6916
+ }
6917
+ } else {
6918
+ state.result += common2.repeat(`
6697
6919
  `, emptyLines);
6698
- else
6699
- state.result += common.repeat(`
6920
+ }
6921
+ } else {
6922
+ state.result += common2.repeat(`
6700
6923
  `, didReadContent ? 1 + emptyLines : emptyLines);
6924
+ }
6701
6925
  didReadContent = true;
6702
6926
  detectedIndent = true;
6703
6927
  emptyLines = 0;
6704
6928
  const captureStart = state.position;
6705
- while (!isEol(ch) && ch !== 0)
6929
+ while (!isEol(ch) && ch !== 0) {
6706
6930
  ch = state.input.charCodeAt(++state.position);
6931
+ }
6707
6932
  captureSegment(state, captureStart, state.position, false);
6708
6933
  }
6709
6934
  return true;
@@ -6715,18 +6940,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6715
6940
  let detected = false;
6716
6941
  if (state.firstTabInLine !== -1)
6717
6942
  return false;
6718
- if (state.anchor !== null)
6943
+ if (state.anchor !== null) {
6719
6944
  storeAnchor(state, state.anchor, _result);
6945
+ }
6720
6946
  let ch = state.input.charCodeAt(state.position);
6721
6947
  while (ch !== 0) {
6722
6948
  if (state.firstTabInLine !== -1) {
6723
6949
  state.position = state.firstTabInLine;
6724
6950
  throwError(state, "tab characters must not be used in indentation");
6725
6951
  }
6726
- if (ch !== 45)
6952
+ if (ch !== 45) {
6727
6953
  break;
6728
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
6954
+ }
6955
+ const following = state.input.charCodeAt(state.position + 1);
6956
+ if (!isWsOrEol(following)) {
6729
6957
  break;
6958
+ }
6730
6959
  detected = true;
6731
6960
  state.position++;
6732
6961
  if (skipSeparationSpace(state, true, -1)) {
@@ -6741,10 +6970,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6741
6970
  _result.push(state.result);
6742
6971
  skipSeparationSpace(state, true, -1);
6743
6972
  ch = state.input.charCodeAt(state.position);
6744
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
6973
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
6745
6974
  throwError(state, "bad indentation of a sequence entry");
6746
- else if (state.lineIndent < nodeIndent)
6975
+ } else if (state.lineIndent < nodeIndent) {
6747
6976
  break;
6977
+ }
6748
6978
  }
6749
6979
  if (detected) {
6750
6980
  state.tag = _tag;
@@ -6763,7 +6993,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6763
6993
  const _tag = state.tag;
6764
6994
  const _anchor = state.anchor;
6765
6995
  const _result = {};
6766
- const overridableKeys = Object.create(null);
6996
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
6767
6997
  let keyTag = null;
6768
6998
  let keyNode = null;
6769
6999
  let valueNode = null;
@@ -6771,8 +7001,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6771
7001
  let detected = false;
6772
7002
  if (state.firstTabInLine !== -1)
6773
7003
  return false;
6774
- if (state.anchor !== null)
7004
+ if (state.anchor !== null) {
6775
7005
  storeAnchor(state, state.anchor, _result);
7006
+ }
6776
7007
  let ch = state.input.charCodeAt(state.position);
6777
7008
  while (ch !== 0) {
6778
7009
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -6793,24 +7024,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6793
7024
  } else if (atExplicitKey) {
6794
7025
  atExplicitKey = false;
6795
7026
  allowCompact = true;
6796
- } else
7027
+ } else {
6797
7028
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
7029
+ }
6798
7030
  state.position += 1;
6799
7031
  ch = following;
6800
7032
  } else {
6801
7033
  _keyLine = state.line;
6802
7034
  _keyLineStart = state.lineStart;
6803
7035
  _keyPos = state.position;
6804
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
7036
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
6805
7037
  break;
7038
+ }
6806
7039
  if (state.line === _line) {
6807
7040
  ch = state.input.charCodeAt(state.position);
6808
- while (isWhiteSpace(ch))
7041
+ while (isWhiteSpace(ch)) {
6809
7042
  ch = state.input.charCodeAt(++state.position);
7043
+ }
6810
7044
  if (ch === 58) {
6811
7045
  ch = state.input.charCodeAt(++state.position);
6812
- if (!isWsOrEol(ch))
7046
+ if (!isWsOrEol(ch)) {
6813
7047
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
7048
+ }
6814
7049
  if (atExplicitKey) {
6815
7050
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
6816
7051
  keyTag = keyNode = valueNode = null;
@@ -6820,16 +7055,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6820
7055
  allowCompact = false;
6821
7056
  keyTag = state.tag;
6822
7057
  keyNode = state.result;
6823
- } else if (detected)
7058
+ } else if (detected) {
6824
7059
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
6825
- else {
7060
+ } else {
6826
7061
  state.tag = _tag;
6827
7062
  state.anchor = _anchor;
6828
7063
  return true;
6829
7064
  }
6830
- } else if (detected)
7065
+ } else if (detected) {
6831
7066
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
6832
- else {
7067
+ } else {
6833
7068
  state.tag = _tag;
6834
7069
  state.anchor = _anchor;
6835
7070
  return true;
@@ -6841,11 +7076,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6841
7076
  _keyLineStart = state.lineStart;
6842
7077
  _keyPos = state.position;
6843
7078
  }
6844
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
6845
- if (atExplicitKey)
7079
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
7080
+ if (atExplicitKey) {
6846
7081
  keyNode = state.result;
6847
- else
7082
+ } else {
6848
7083
  valueNode = state.result;
7084
+ }
7085
+ }
6849
7086
  if (!atExplicitKey) {
6850
7087
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
6851
7088
  keyTag = keyNode = valueNode = null;
@@ -6853,13 +7090,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6853
7090
  skipSeparationSpace(state, true, -1);
6854
7091
  ch = state.input.charCodeAt(state.position);
6855
7092
  }
6856
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
7093
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
6857
7094
  throwError(state, "bad indentation of a mapping entry");
6858
- else if (state.lineIndent < nodeIndent)
7095
+ } else if (state.lineIndent < nodeIndent) {
6859
7096
  break;
7097
+ }
6860
7098
  }
6861
- if (atExplicitKey)
7099
+ if (atExplicitKey) {
6862
7100
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
7101
+ }
6863
7102
  if (detected) {
6864
7103
  state.tag = _tag;
6865
7104
  state.anchor = _anchor;
@@ -6876,8 +7115,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6876
7115
  let ch = state.input.charCodeAt(state.position);
6877
7116
  if (ch !== 33)
6878
7117
  return false;
6879
- if (state.tag !== null)
7118
+ if (state.tag !== null) {
6880
7119
  throwError(state, "duplication of a tag property");
7120
+ }
6881
7121
  ch = state.input.charCodeAt(++state.position);
6882
7122
  if (ch === 60) {
6883
7123
  isVerbatim = true;
@@ -6886,66 +7126,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6886
7126
  isNamed = true;
6887
7127
  tagHandle = "!!";
6888
7128
  ch = state.input.charCodeAt(++state.position);
6889
- } else
7129
+ } else {
6890
7130
  tagHandle = "!";
7131
+ }
6891
7132
  let _position = state.position;
6892
7133
  if (isVerbatim) {
6893
- do
7134
+ do {
6894
7135
  ch = state.input.charCodeAt(++state.position);
6895
- while (ch !== 0 && ch !== 62);
7136
+ } while (ch !== 0 && ch !== 62);
6896
7137
  if (state.position < state.length) {
6897
7138
  tagName = state.input.slice(_position, state.position);
6898
7139
  ch = state.input.charCodeAt(++state.position);
6899
- } else
7140
+ } else {
6900
7141
  throwError(state, "unexpected end of the stream within a verbatim tag");
7142
+ }
6901
7143
  } else {
6902
7144
  while (ch !== 0 && !isWsOrEol(ch)) {
6903
- if (ch === 33)
7145
+ if (ch === 33) {
6904
7146
  if (!isNamed) {
6905
7147
  tagHandle = state.input.slice(_position - 1, state.position + 1);
6906
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
7148
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
6907
7149
  throwError(state, "named tag handle cannot contain such characters");
7150
+ }
6908
7151
  isNamed = true;
6909
7152
  _position = state.position + 1;
6910
- } else
7153
+ } else {
6911
7154
  throwError(state, "tag suffix cannot contain exclamation marks");
7155
+ }
7156
+ }
6912
7157
  ch = state.input.charCodeAt(++state.position);
6913
7158
  }
6914
7159
  tagName = state.input.slice(_position, state.position);
6915
- if (PATTERN_FLOW_INDICATORS.test(tagName))
7160
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
6916
7161
  throwError(state, "tag suffix cannot contain flow indicator characters");
7162
+ }
6917
7163
  }
6918
- if (tagName && !PATTERN_TAG_URI.test(tagName))
7164
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
6919
7165
  throwError(state, "tag name cannot contain such characters: " + tagName);
7166
+ }
6920
7167
  try {
6921
7168
  tagName = decodeURIComponent(tagName);
6922
7169
  } catch (err) {
6923
7170
  throwError(state, "tag name is malformed: " + tagName);
6924
7171
  }
6925
- if (isVerbatim)
7172
+ if (isVerbatim) {
6926
7173
  state.tag = tagName;
6927
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
7174
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
6928
7175
  state.tag = state.tagMap[tagHandle] + tagName;
6929
- else if (tagHandle === "!")
7176
+ } else if (tagHandle === "!") {
6930
7177
  state.tag = "!" + tagName;
6931
- else if (tagHandle === "!!")
7178
+ } else if (tagHandle === "!!") {
6932
7179
  state.tag = "tag:yaml.org,2002:" + tagName;
6933
- else
7180
+ } else {
6934
7181
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
7182
+ }
6935
7183
  return true;
6936
7184
  }
6937
7185
  function readAnchorProperty(state) {
6938
7186
  let ch = state.input.charCodeAt(state.position);
6939
7187
  if (ch !== 38)
6940
7188
  return false;
6941
- if (state.anchor !== null)
7189
+ if (state.anchor !== null) {
6942
7190
  throwError(state, "duplication of an anchor property");
7191
+ }
6943
7192
  ch = state.input.charCodeAt(++state.position);
6944
7193
  const _position = state.position;
6945
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
7194
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
6946
7195
  ch = state.input.charCodeAt(++state.position);
6947
- if (state.position === _position)
7196
+ }
7197
+ if (state.position === _position) {
6948
7198
  throwError(state, "name of an anchor node must contain at least one character");
7199
+ }
6949
7200
  state.anchor = state.input.slice(_position, state.position);
6950
7201
  return true;
6951
7202
  }
@@ -6955,13 +7206,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6955
7206
  return false;
6956
7207
  ch = state.input.charCodeAt(++state.position);
6957
7208
  const _position = state.position;
6958
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
7209
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
6959
7210
  ch = state.input.charCodeAt(++state.position);
6960
- if (state.position === _position)
7211
+ }
7212
+ if (state.position === _position) {
6961
7213
  throwError(state, "name of an alias node must contain at least one character");
7214
+ }
6962
7215
  const alias = state.input.slice(_position, state.position);
6963
- if (!_hasOwnProperty.call(state.anchorMap, alias))
7216
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
6964
7217
  throwError(state, 'unidentified alias "' + alias + '"');
7218
+ }
6965
7219
  state.result = state.anchorMap[alias];
6966
7220
  skipSeparationSpace(state, true, -1);
6967
7221
  return true;
@@ -6989,14 +7243,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6989
7243
  let atNewLine = false;
6990
7244
  let hasContent = false;
6991
7245
  let propertyStart = null;
6992
- let type;
7246
+ let type2;
6993
7247
  let flowIndent;
6994
7248
  let blockIndent;
6995
- if (state.depth >= state.maxDepth)
7249
+ if (state.depth >= state.maxDepth) {
6996
7250
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
7251
+ }
6997
7252
  state.depth += 1;
6998
- if (state.listener !== null)
7253
+ if (state.listener !== null) {
6999
7254
  state.listener("open", state);
7255
+ }
7000
7256
  state.tag = null;
7001
7257
  state.anchor = null;
7002
7258
  state.kind = null;
@@ -7005,110 +7261,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7005
7261
  if (allowToSeek) {
7006
7262
  if (skipSeparationSpace(state, true, -1)) {
7007
7263
  atNewLine = true;
7008
- if (state.lineIndent > parentIndent)
7264
+ if (state.lineIndent > parentIndent) {
7009
7265
  indentStatus = 1;
7010
- else if (state.lineIndent === parentIndent)
7266
+ } else if (state.lineIndent === parentIndent) {
7011
7267
  indentStatus = 0;
7012
- else if (state.lineIndent < parentIndent)
7268
+ } else if (state.lineIndent < parentIndent) {
7013
7269
  indentStatus = -1;
7270
+ }
7014
7271
  }
7015
7272
  }
7016
- if (indentStatus === 1)
7273
+ if (indentStatus === 1) {
7017
7274
  while (true) {
7018
7275
  const ch = state.input.charCodeAt(state.position);
7019
7276
  const propertyState = snapshotState(state);
7020
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
7277
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
7021
7278
  break;
7022
- if (!readTagProperty(state) && !readAnchorProperty(state))
7279
+ }
7280
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
7023
7281
  break;
7024
- if (propertyStart === null)
7282
+ }
7283
+ if (propertyStart === null) {
7025
7284
  propertyStart = propertyState;
7285
+ }
7026
7286
  if (skipSeparationSpace(state, true, -1)) {
7027
7287
  atNewLine = true;
7028
7288
  allowBlockCollections = allowBlockStyles;
7029
- if (state.lineIndent > parentIndent)
7289
+ if (state.lineIndent > parentIndent) {
7030
7290
  indentStatus = 1;
7031
- else if (state.lineIndent === parentIndent)
7291
+ } else if (state.lineIndent === parentIndent) {
7032
7292
  indentStatus = 0;
7033
- else if (state.lineIndent < parentIndent)
7293
+ } else if (state.lineIndent < parentIndent) {
7034
7294
  indentStatus = -1;
7035
- } else
7295
+ }
7296
+ } else {
7036
7297
  allowBlockCollections = false;
7298
+ }
7037
7299
  }
7038
- if (allowBlockCollections)
7300
+ }
7301
+ if (allowBlockCollections) {
7039
7302
  allowBlockCollections = atNewLine || allowCompact;
7303
+ }
7040
7304
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
7041
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
7305
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
7042
7306
  flowIndent = parentIndent;
7043
- else
7307
+ } else {
7044
7308
  flowIndent = parentIndent + 1;
7309
+ }
7045
7310
  blockIndent = state.position - state.lineStart;
7046
- if (indentStatus === 1)
7047
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
7311
+ if (indentStatus === 1) {
7312
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
7048
7313
  hasContent = true;
7049
- else {
7314
+ } else {
7050
7315
  const ch = state.input.charCodeAt(state.position);
7051
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
7316
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
7052
7317
  hasContent = true;
7053
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
7318
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
7054
7319
  hasContent = true;
7055
- else if (readAlias(state)) {
7320
+ } else if (readAlias(state)) {
7056
7321
  hasContent = true;
7057
- if (state.tag !== null || state.anchor !== null)
7322
+ if (state.tag !== null || state.anchor !== null) {
7058
7323
  throwError(state, "alias node should not have any properties");
7324
+ }
7059
7325
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
7060
7326
  hasContent = true;
7061
- if (state.tag === null)
7327
+ if (state.tag === null) {
7062
7328
  state.tag = "?";
7329
+ }
7063
7330
  }
7064
- if (state.anchor !== null)
7331
+ if (state.anchor !== null) {
7065
7332
  storeAnchor(state, state.anchor, state.result);
7333
+ }
7066
7334
  }
7067
- else if (indentStatus === 0)
7335
+ } else if (indentStatus === 0) {
7068
7336
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
7337
+ }
7069
7338
  }
7070
7339
  if (state.tag === null) {
7071
- if (state.anchor !== null)
7340
+ if (state.anchor !== null) {
7072
7341
  storeAnchor(state, state.anchor, state.result);
7342
+ }
7073
7343
  } else if (state.tag === "?") {
7074
- if (state.result !== null && state.kind !== "scalar")
7344
+ if (state.result !== null && state.kind !== "scalar") {
7075
7345
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
7346
+ }
7076
7347
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
7077
- type = state.implicitTypes[typeIndex];
7078
- if (type.resolve(state.result)) {
7079
- state.result = type.construct(state.result);
7080
- state.tag = type.tag;
7081
- if (state.anchor !== null)
7348
+ type2 = state.implicitTypes[typeIndex];
7349
+ if (type2.resolve(state.result)) {
7350
+ state.result = type2.construct(state.result);
7351
+ state.tag = type2.tag;
7352
+ if (state.anchor !== null) {
7082
7353
  storeAnchor(state, state.anchor, state.result);
7354
+ }
7083
7355
  break;
7084
7356
  }
7085
7357
  }
7086
7358
  } else if (state.tag !== "!") {
7087
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
7088
- type = state.typeMap[state.kind || "fallback"][state.tag];
7089
- else {
7090
- type = null;
7359
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
7360
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
7361
+ } else {
7362
+ type2 = null;
7091
7363
  const typeList = state.typeMap.multi[state.kind || "fallback"];
7092
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
7364
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
7093
7365
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
7094
- type = typeList[typeIndex];
7366
+ type2 = typeList[typeIndex];
7095
7367
  break;
7096
7368
  }
7369
+ }
7097
7370
  }
7098
- if (!type)
7371
+ if (!type2) {
7099
7372
  throwError(state, "unknown tag !<" + state.tag + ">");
7100
- if (state.result !== null && type.kind !== state.kind)
7101
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
7102
- if (!type.resolve(state.result, state.tag))
7373
+ }
7374
+ if (state.result !== null && type2.kind !== state.kind) {
7375
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
7376
+ }
7377
+ if (!type2.resolve(state.result, state.tag)) {
7103
7378
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
7104
- else {
7105
- state.result = type.construct(state.result, state.tag);
7106
- if (state.anchor !== null)
7379
+ } else {
7380
+ state.result = type2.construct(state.result, state.tag);
7381
+ if (state.anchor !== null) {
7107
7382
  storeAnchor(state, state.anchor, state.result);
7383
+ }
7108
7384
  }
7109
7385
  }
7110
- if (state.listener !== null)
7386
+ if (state.listener !== null) {
7111
7387
  state.listener("close", state);
7388
+ }
7112
7389
  state.depth -= 1;
7113
7390
  return state.tag !== null || state.anchor !== null || hasContent;
7114
7391
  }
@@ -7118,55 +7395,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7118
7395
  let ch;
7119
7396
  state.version = null;
7120
7397
  state.checkLineBreaks = state.legacy;
7121
- state.tagMap = Object.create(null);
7122
- state.anchorMap = Object.create(null);
7398
+ state.tagMap = /* @__PURE__ */ Object.create(null);
7399
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
7123
7400
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
7124
7401
  skipSeparationSpace(state, true, -1);
7125
7402
  ch = state.input.charCodeAt(state.position);
7126
- if (state.lineIndent > 0 || ch !== 37)
7403
+ if (state.lineIndent > 0 || ch !== 37) {
7127
7404
  break;
7405
+ }
7128
7406
  hasDirectives = true;
7129
7407
  ch = state.input.charCodeAt(++state.position);
7130
7408
  let _position = state.position;
7131
- while (ch !== 0 && !isWsOrEol(ch))
7409
+ while (ch !== 0 && !isWsOrEol(ch)) {
7132
7410
  ch = state.input.charCodeAt(++state.position);
7411
+ }
7133
7412
  const directiveName = state.input.slice(_position, state.position);
7134
7413
  const directiveArgs = [];
7135
- if (directiveName.length < 1)
7414
+ if (directiveName.length < 1) {
7136
7415
  throwError(state, "directive name must not be less than one character in length");
7416
+ }
7137
7417
  while (ch !== 0) {
7138
- while (isWhiteSpace(ch))
7418
+ while (isWhiteSpace(ch)) {
7139
7419
  ch = state.input.charCodeAt(++state.position);
7420
+ }
7140
7421
  if (ch === 35) {
7141
- do
7422
+ do {
7142
7423
  ch = state.input.charCodeAt(++state.position);
7143
- while (ch !== 0 && !isEol(ch));
7424
+ } while (ch !== 0 && !isEol(ch));
7144
7425
  break;
7145
7426
  }
7146
7427
  if (isEol(ch))
7147
7428
  break;
7148
7429
  _position = state.position;
7149
- while (ch !== 0 && !isWsOrEol(ch))
7430
+ while (ch !== 0 && !isWsOrEol(ch)) {
7150
7431
  ch = state.input.charCodeAt(++state.position);
7432
+ }
7151
7433
  directiveArgs.push(state.input.slice(_position, state.position));
7152
7434
  }
7153
7435
  if (ch !== 0)
7154
7436
  readLineBreak(state);
7155
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
7437
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
7156
7438
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
7157
- else
7439
+ } else {
7158
7440
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
7441
+ }
7159
7442
  }
7160
7443
  skipSeparationSpace(state, true, -1);
7161
7444
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
7162
7445
  state.position += 3;
7163
7446
  skipSeparationSpace(state, true, -1);
7164
- } else if (hasDirectives)
7447
+ } else if (hasDirectives) {
7165
7448
  throwError(state, "directives end mark is expected");
7449
+ }
7166
7450
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
7167
7451
  skipSeparationSpace(state, true, -1);
7168
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
7452
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
7169
7453
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
7454
+ }
7170
7455
  state.documents.push(state.result);
7171
7456
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
7172
7457
  if (state.input.charCodeAt(state.position) === 46) {
@@ -7175,18 +7460,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7175
7460
  }
7176
7461
  return;
7177
7462
  }
7178
- if (state.position < state.length - 1)
7463
+ if (state.position < state.length - 1) {
7179
7464
  throwError(state, "end of the stream or a document separator is expected");
7465
+ }
7180
7466
  }
7181
7467
  function loadDocuments(input, options) {
7182
7468
  input = String(input);
7183
7469
  options = options || {};
7184
7470
  if (input.length !== 0) {
7185
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
7471
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
7186
7472
  input += `
7187
7473
  `;
7188
- if (input.charCodeAt(0) === 65279)
7474
+ }
7475
+ if (input.charCodeAt(0) === 65279) {
7189
7476
  input = input.slice(1);
7477
+ }
7190
7478
  }
7191
7479
  const state = new State(input, options);
7192
7480
  const nullpos = input.indexOf("\x00");
@@ -7199,64 +7487,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7199
7487
  state.lineIndent += 1;
7200
7488
  state.position += 1;
7201
7489
  }
7202
- while (state.position < state.length - 1)
7490
+ while (state.position < state.length - 1) {
7203
7491
  readDocument(state);
7492
+ }
7204
7493
  return state.documents;
7205
7494
  }
7206
- function loadAll(input, iterator, options) {
7495
+ function loadAll2(input, iterator, options) {
7207
7496
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
7208
7497
  options = iterator;
7209
7498
  iterator = null;
7210
7499
  }
7211
7500
  const documents = loadDocuments(input, options);
7212
- if (typeof iterator !== "function")
7501
+ if (typeof iterator !== "function") {
7213
7502
  return documents;
7214
- for (let index = 0, length = documents.length;index < length; index += 1)
7503
+ }
7504
+ for (let index = 0, length = documents.length;index < length; index += 1) {
7215
7505
  iterator(documents[index]);
7506
+ }
7216
7507
  }
7217
- function load(input, options) {
7508
+ function load2(input, options) {
7218
7509
  const documents = loadDocuments(input, options);
7219
- if (documents.length === 0)
7510
+ if (documents.length === 0) {
7220
7511
  return;
7221
- else if (documents.length === 1)
7512
+ } else if (documents.length === 1) {
7222
7513
  return documents[0];
7223
- throw new YAMLException("expected a single document in the stream, but found more");
7514
+ }
7515
+ throw new YAMLException2("expected a single document in the stream, but found more");
7224
7516
  }
7225
- module.exports.loadAll = loadAll;
7226
- module.exports.load = load;
7227
- });
7228
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7229
- var common = require_common();
7230
- var YAMLException = require_exception();
7231
- var DEFAULT_SCHEMA = require_default();
7232
- var _toString = Object.prototype.toString;
7233
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
7234
- var CHAR_BOM = 65279;
7235
- var CHAR_TAB = 9;
7236
- var CHAR_LINE_FEED = 10;
7237
- var CHAR_CARRIAGE_RETURN = 13;
7238
- var CHAR_SPACE = 32;
7239
- var CHAR_EXCLAMATION = 33;
7240
- var CHAR_DOUBLE_QUOTE = 34;
7241
- var CHAR_SHARP = 35;
7242
- var CHAR_PERCENT = 37;
7243
- var CHAR_AMPERSAND = 38;
7244
- var CHAR_SINGLE_QUOTE = 39;
7245
- var CHAR_ASTERISK = 42;
7246
- var CHAR_COMMA = 44;
7247
- var CHAR_MINUS = 45;
7248
- var CHAR_COLON = 58;
7249
- var CHAR_EQUALS = 61;
7250
- var CHAR_GREATER_THAN = 62;
7251
- var CHAR_QUESTION = 63;
7252
- var CHAR_COMMERCIAL_AT = 64;
7253
- var CHAR_LEFT_SQUARE_BRACKET = 91;
7254
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
7255
- var CHAR_GRAVE_ACCENT = 96;
7256
- var CHAR_LEFT_CURLY_BRACKET = 123;
7257
- var CHAR_VERTICAL_LINE = 124;
7258
- var CHAR_RIGHT_CURLY_BRACKET = 125;
7259
- var ESCAPE_SEQUENCES = {};
7517
+ loader.loadAll = loadAll2;
7518
+ loader.load = load2;
7519
+ return loader;
7520
+ }
7521
+ var dumper = {};
7522
+ var hasRequiredDumper;
7523
+ function requireDumper() {
7524
+ if (hasRequiredDumper)
7525
+ return dumper;
7526
+ hasRequiredDumper = 1;
7527
+ const common2 = requireCommon();
7528
+ const YAMLException2 = requireException();
7529
+ const DEFAULT_SCHEMA2 = require_default();
7530
+ const _toString = Object.prototype.toString;
7531
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
7532
+ const CHAR_BOM = 65279;
7533
+ const CHAR_TAB = 9;
7534
+ const CHAR_LINE_FEED = 10;
7535
+ const CHAR_CARRIAGE_RETURN = 13;
7536
+ const CHAR_SPACE = 32;
7537
+ const CHAR_EXCLAMATION = 33;
7538
+ const CHAR_DOUBLE_QUOTE = 34;
7539
+ const CHAR_SHARP = 35;
7540
+ const CHAR_PERCENT = 37;
7541
+ const CHAR_AMPERSAND = 38;
7542
+ const CHAR_SINGLE_QUOTE = 39;
7543
+ const CHAR_ASTERISK = 42;
7544
+ const CHAR_COMMA = 44;
7545
+ const CHAR_MINUS = 45;
7546
+ const CHAR_COLON = 58;
7547
+ const CHAR_EQUALS = 61;
7548
+ const CHAR_GREATER_THAN = 62;
7549
+ const CHAR_QUESTION = 63;
7550
+ const CHAR_COMMERCIAL_AT = 64;
7551
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
7552
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
7553
+ const CHAR_GRAVE_ACCENT = 96;
7554
+ const CHAR_LEFT_CURLY_BRACKET = 123;
7555
+ const CHAR_VERTICAL_LINE = 124;
7556
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
7557
+ const ESCAPE_SEQUENCES = {};
7260
7558
  ESCAPE_SEQUENCES[0] = "\\0";
7261
7559
  ESCAPE_SEQUENCES[7] = "\\a";
7262
7560
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -7272,7 +7570,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7272
7570
  ESCAPE_SEQUENCES[160] = "\\_";
7273
7571
  ESCAPE_SEQUENCES[8232] = "\\L";
7274
7572
  ESCAPE_SEQUENCES[8233] = "\\P";
7275
- var DEPRECATED_BOOLEANS_SYNTAX = [
7573
+ const DEPRECATED_BOOLEANS_SYNTAX = [
7276
7574
  "y",
7277
7575
  "Y",
7278
7576
  "yes",
@@ -7290,20 +7588,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7290
7588
  "Off",
7291
7589
  "OFF"
7292
7590
  ];
7293
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
7294
- function compileStyleMap(schema, map) {
7295
- if (map === null)
7591
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
7592
+ function compileStyleMap(schema2, map2) {
7593
+ if (map2 === null)
7296
7594
  return {};
7297
7595
  const result = {};
7298
- const keys = Object.keys(map);
7596
+ const keys = Object.keys(map2);
7299
7597
  for (let index = 0, length = keys.length;index < length; index += 1) {
7300
7598
  let tag = keys[index];
7301
- let style = String(map[tag]);
7302
- if (tag.slice(0, 2) === "!!")
7599
+ let style = String(map2[tag]);
7600
+ if (tag.slice(0, 2) === "!!") {
7303
7601
  tag = "tag:yaml.org,2002:" + tag.slice(2);
7304
- const type = schema.compiledTypeMap["fallback"][tag];
7305
- if (type && _hasOwnProperty.call(type.styleAliases, style))
7306
- style = type.styleAliases[style];
7602
+ }
7603
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
7604
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
7605
+ style = type2.styleAliases[style];
7606
+ }
7307
7607
  result[tag] = style;
7308
7608
  }
7309
7609
  return result;
@@ -7321,18 +7621,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7321
7621
  } else if (character <= 4294967295) {
7322
7622
  handle = "U";
7323
7623
  length = 8;
7324
- } else
7325
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
7326
- return "\\" + handle + common.repeat("0", length - string.length) + string;
7624
+ } else {
7625
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
7626
+ }
7627
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
7327
7628
  }
7328
- var QUOTING_TYPE_SINGLE = 1;
7329
- var QUOTING_TYPE_DOUBLE = 2;
7629
+ const QUOTING_TYPE_SINGLE = 1;
7630
+ const QUOTING_TYPE_DOUBLE = 2;
7330
7631
  function State(options) {
7331
- this.schema = options["schema"] || DEFAULT_SCHEMA;
7632
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
7332
7633
  this.indent = Math.max(1, options["indent"] || 2);
7333
7634
  this.noArrayIndent = options["noArrayIndent"] || false;
7334
7635
  this.skipInvalid = options["skipInvalid"] || false;
7335
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
7636
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
7336
7637
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
7337
7638
  this.sortKeys = options["sortKeys"] || false;
7338
7639
  this.lineWidth = options["lineWidth"] || 80;
@@ -7350,7 +7651,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7350
7651
  this.usedDuplicates = null;
7351
7652
  }
7352
7653
  function indentString(string, spaces) {
7353
- const ind = common.repeat(" ", spaces);
7654
+ const ind = common2.repeat(" ", spaces);
7354
7655
  let position = 0;
7355
7656
  let result = "";
7356
7657
  const length = string.length;
@@ -7374,12 +7675,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7374
7675
  }
7375
7676
  function generateNextLine(state, level) {
7376
7677
  return `
7377
- ` + common.repeat(" ", state.indent * level);
7678
+ ` + common2.repeat(" ", state.indent * level);
7378
7679
  }
7379
- function testImplicitResolving(state, str) {
7380
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
7381
- if (state.implicitTypes[index].resolve(str))
7680
+ function testImplicitResolving(state, str2) {
7681
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
7682
+ const type2 = state.implicitTypes[index];
7683
+ if (type2.resolve(str2)) {
7382
7684
  return true;
7685
+ }
7686
+ }
7383
7687
  return false;
7384
7688
  }
7385
7689
  function isWhitespace(c) {
@@ -7407,19 +7711,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7407
7711
  let second;
7408
7712
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
7409
7713
  second = string.charCodeAt(pos + 1);
7410
- if (second >= 56320 && second <= 57343)
7714
+ if (second >= 56320 && second <= 57343) {
7411
7715
  return (first - 55296) * 1024 + second - 56320 + 65536;
7716
+ }
7412
7717
  }
7413
7718
  return first;
7414
7719
  }
7415
7720
  function needIndentIndicator(string) {
7416
- return /^\n* /.test(string);
7417
- }
7418
- var STYLE_PLAIN = 1;
7419
- var STYLE_SINGLE = 2;
7420
- var STYLE_LITERAL = 3;
7421
- var STYLE_FOLDED = 4;
7422
- var STYLE_DOUBLE = 5;
7721
+ const leadingSpaceRe = /^\n* /;
7722
+ return leadingSpaceRe.test(string);
7723
+ }
7724
+ const STYLE_PLAIN = 1;
7725
+ const STYLE_SINGLE = 2;
7726
+ const STYLE_LITERAL = 3;
7727
+ const STYLE_FOLDED = 4;
7728
+ const STYLE_DOUBLE = 5;
7423
7729
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
7424
7730
  let i;
7425
7731
  let char = 0;
@@ -7429,15 +7735,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7429
7735
  const shouldTrackWidth = lineWidth !== -1;
7430
7736
  let previousLineBreak = -1;
7431
7737
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
7432
- if (singleLineOnly || forceQuotes)
7738
+ if (singleLineOnly || forceQuotes) {
7433
7739
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
7434
7740
  char = codePointAt(string, i);
7435
- if (!isPrintable(char))
7741
+ if (!isPrintable(char)) {
7436
7742
  return STYLE_DOUBLE;
7743
+ }
7437
7744
  plain = plain && isPlainSafe(char, prevChar, inblock);
7438
7745
  prevChar = char;
7439
7746
  }
7440
- else {
7747
+ } else {
7441
7748
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
7442
7749
  char = codePointAt(string, i);
7443
7750
  if (char === CHAR_LINE_FEED) {
@@ -7446,31 +7753,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7446
7753
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
7447
7754
  previousLineBreak = i;
7448
7755
  }
7449
- } else if (!isPrintable(char))
7756
+ } else if (!isPrintable(char)) {
7450
7757
  return STYLE_DOUBLE;
7758
+ }
7451
7759
  plain = plain && isPlainSafe(char, prevChar, inblock);
7452
7760
  prevChar = char;
7453
7761
  }
7454
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
7762
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
7455
7763
  }
7456
7764
  if (!hasLineBreak && !hasFoldableLine) {
7457
- if (plain && !forceQuotes && !testAmbiguousType(string))
7765
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
7458
7766
  return STYLE_PLAIN;
7767
+ }
7459
7768
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
7460
7769
  }
7461
- if (indentPerLevel > 9 && needIndentIndicator(string))
7770
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
7462
7771
  return STYLE_DOUBLE;
7463
- if (!forceQuotes)
7772
+ }
7773
+ if (!forceQuotes) {
7464
7774
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
7775
+ }
7465
7776
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
7466
7777
  }
7467
7778
  function writeScalar(state, string, level, iskey, inblock) {
7468
7779
  state.dump = function() {
7469
- if (string.length === 0)
7780
+ if (string.length === 0) {
7470
7781
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
7782
+ }
7471
7783
  if (!state.noCompatMode) {
7472
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
7784
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
7473
7785
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
7786
+ }
7474
7787
  }
7475
7788
  const indent = state.indent * Math.max(1, level);
7476
7789
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -7488,9 +7801,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7488
7801
  case STYLE_FOLDED:
7489
7802
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
7490
7803
  case STYLE_DOUBLE:
7491
- return '"' + escapeString(string, lineWidth) + '"';
7804
+ return '"' + escapeString(string) + '"';
7492
7805
  default:
7493
- throw new YAMLException("impossible error: invalid scalar style");
7806
+ throw new YAMLException2("impossible error: invalid scalar style");
7494
7807
  }
7495
7808
  }();
7496
7809
  }
@@ -7498,9 +7811,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7498
7811
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
7499
7812
  const clip = string[string.length - 1] === `
7500
7813
  `;
7501
- return indentIndicator + (clip && (string[string.length - 2] === `
7814
+ const keep = clip && (string[string.length - 2] === `
7502
7815
  ` || string === `
7503
- `) ? "+" : clip ? "" : "-") + `
7816
+ `);
7817
+ const chomp = keep ? "+" : clip ? "" : "-";
7818
+ return indentIndicator + chomp + `
7504
7819
  `;
7505
7820
  }
7506
7821
  function dropEndingNewline(string) {
@@ -7552,11 +7867,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7552
7867
  }
7553
7868
  result += `
7554
7869
  `;
7555
- if (line.length - start > width && curr > start)
7870
+ if (line.length - start > width && curr > start) {
7556
7871
  result += line.slice(start, curr) + `
7557
7872
  ` + line.slice(curr + 1);
7558
- else
7873
+ } else {
7559
7874
  result += line.slice(start);
7875
+ }
7560
7876
  return result.slice(1);
7561
7877
  }
7562
7878
  function escapeString(string) {
@@ -7569,8 +7885,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7569
7885
  result += string[i];
7570
7886
  if (char >= 65536)
7571
7887
  result += string[i + 1];
7572
- } else
7888
+ } else {
7573
7889
  result += escapeSeq || encodeHex(char);
7890
+ }
7574
7891
  }
7575
7892
  return result;
7576
7893
  }
@@ -7579,8 +7896,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7579
7896
  const _tag = state.tag;
7580
7897
  for (let index = 0, length = object.length;index < length; index += 1) {
7581
7898
  let value = object[index];
7582
- if (state.replacer)
7899
+ if (state.replacer) {
7583
7900
  value = state.replacer.call(object, String(index), value);
7901
+ }
7584
7902
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
7585
7903
  if (_result !== "")
7586
7904
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -7595,15 +7913,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7595
7913
  const _tag = state.tag;
7596
7914
  for (let index = 0, length = object.length;index < length; index += 1) {
7597
7915
  let value = object[index];
7598
- if (state.replacer)
7916
+ if (state.replacer) {
7599
7917
  value = state.replacer.call(object, String(index), value);
7918
+ }
7600
7919
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
7601
- if (!compact || _result !== "")
7920
+ if (!compact || _result !== "") {
7602
7921
  _result += generateNextLine(state, level);
7603
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
7922
+ }
7923
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
7604
7924
  _result += "-";
7605
- else
7925
+ } else {
7606
7926
  _result += "- ";
7927
+ }
7607
7928
  _result += state.dump;
7608
7929
  }
7609
7930
  }
@@ -7622,15 +7943,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7622
7943
  pairBuffer += '"';
7623
7944
  const objectKey = objectKeyList[index];
7624
7945
  let objectValue = object[objectKey];
7625
- if (state.replacer)
7946
+ if (state.replacer) {
7626
7947
  objectValue = state.replacer.call(object, objectKey, objectValue);
7627
- if (!writeNode(state, level, objectKey, false, false))
7948
+ }
7949
+ if (!writeNode(state, level, objectKey, false, false)) {
7628
7950
  continue;
7951
+ }
7629
7952
  if (state.dump.length > 1024)
7630
7953
  pairBuffer += "? ";
7631
7954
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
7632
- if (!writeNode(state, level, objectValue, false, false))
7955
+ if (!writeNode(state, level, objectValue, false, false)) {
7633
7956
  continue;
7957
+ }
7634
7958
  pairBuffer += state.dump;
7635
7959
  _result += pairBuffer;
7636
7960
  }
@@ -7641,37 +7965,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7641
7965
  let _result = "";
7642
7966
  const _tag = state.tag;
7643
7967
  const objectKeyList = Object.keys(object);
7644
- if (state.sortKeys === true)
7968
+ if (state.sortKeys === true) {
7645
7969
  objectKeyList.sort();
7646
- else if (typeof state.sortKeys === "function")
7970
+ } else if (typeof state.sortKeys === "function") {
7647
7971
  objectKeyList.sort(state.sortKeys);
7648
- else if (state.sortKeys)
7649
- throw new YAMLException("sortKeys must be a boolean or a function");
7972
+ } else if (state.sortKeys) {
7973
+ throw new YAMLException2("sortKeys must be a boolean or a function");
7974
+ }
7650
7975
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
7651
7976
  let pairBuffer = "";
7652
- if (!compact || _result !== "")
7977
+ if (!compact || _result !== "") {
7653
7978
  pairBuffer += generateNextLine(state, level);
7979
+ }
7654
7980
  const objectKey = objectKeyList[index];
7655
7981
  let objectValue = object[objectKey];
7656
- if (state.replacer)
7982
+ if (state.replacer) {
7657
7983
  objectValue = state.replacer.call(object, objectKey, objectValue);
7658
- if (!writeNode(state, level + 1, objectKey, true, true, true))
7984
+ }
7985
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
7659
7986
  continue;
7987
+ }
7660
7988
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
7661
- if (explicitPair)
7662
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
7989
+ if (explicitPair) {
7990
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
7663
7991
  pairBuffer += "?";
7664
- else
7992
+ } else {
7665
7993
  pairBuffer += "? ";
7994
+ }
7995
+ }
7666
7996
  pairBuffer += state.dump;
7667
- if (explicitPair)
7997
+ if (explicitPair) {
7668
7998
  pairBuffer += generateNextLine(state, level);
7669
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
7999
+ }
8000
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
7670
8001
  continue;
7671
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
8002
+ }
8003
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
7672
8004
  pairBuffer += ":";
7673
- else
8005
+ } else {
7674
8006
  pairBuffer += ": ";
8007
+ }
7675
8008
  pairBuffer += state.dump;
7676
8009
  _result += pairBuffer;
7677
8010
  }
@@ -7681,24 +8014,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7681
8014
  function detectType(state, object, explicit) {
7682
8015
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
7683
8016
  for (let index = 0, length = typeList.length;index < length; index += 1) {
7684
- const type = typeList[index];
7685
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
7686
- if (explicit)
7687
- if (type.multi && type.representName)
7688
- state.tag = type.representName(object);
7689
- else
7690
- state.tag = type.tag;
7691
- else
8017
+ const type2 = typeList[index];
8018
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
8019
+ if (explicit) {
8020
+ if (type2.multi && type2.representName) {
8021
+ state.tag = type2.representName(object);
8022
+ } else {
8023
+ state.tag = type2.tag;
8024
+ }
8025
+ } else {
7692
8026
  state.tag = "?";
7693
- if (type.represent) {
7694
- const style = state.styleMap[type.tag] || type.defaultStyle;
8027
+ }
8028
+ if (type2.represent) {
8029
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
7695
8030
  let _result;
7696
- if (_toString.call(type.represent) === "[object Function]")
7697
- _result = type.represent(object, style);
7698
- else if (_hasOwnProperty.call(type.represent, style))
7699
- _result = type.represent[style](object, style);
7700
- else
7701
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
8031
+ if (_toString.call(type2.represent) === "[object Function]") {
8032
+ _result = type2.represent(object, style);
8033
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
8034
+ _result = type2.represent[style](object, style);
8035
+ } else {
8036
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
8037
+ }
7702
8038
  state.dump = _result;
7703
8039
  }
7704
8040
  return true;
@@ -7709,67 +8045,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7709
8045
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
7710
8046
  state.tag = null;
7711
8047
  state.dump = object;
7712
- if (!detectType(state, object, false))
8048
+ if (!detectType(state, object, false)) {
7713
8049
  detectType(state, object, true);
7714
- const type = _toString.call(state.dump);
8050
+ }
8051
+ const type2 = _toString.call(state.dump);
7715
8052
  const inblock = block;
7716
- if (block)
8053
+ if (block) {
7717
8054
  block = state.flowLevel < 0 || state.flowLevel > level;
7718
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
8055
+ }
8056
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
7719
8057
  let duplicateIndex;
7720
8058
  let duplicate;
7721
8059
  if (objectOrArray) {
7722
8060
  duplicateIndex = state.duplicates.indexOf(object);
7723
8061
  duplicate = duplicateIndex !== -1;
7724
8062
  }
7725
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
8063
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
7726
8064
  compact = false;
7727
- if (duplicate && state.usedDuplicates[duplicateIndex])
8065
+ }
8066
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
7728
8067
  state.dump = "*ref_" + duplicateIndex;
7729
- else {
7730
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
8068
+ } else {
8069
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
7731
8070
  state.usedDuplicates[duplicateIndex] = true;
7732
- if (type === "[object Object]")
8071
+ }
8072
+ if (type2 === "[object Object]") {
7733
8073
  if (block && Object.keys(state.dump).length !== 0) {
7734
8074
  writeBlockMapping(state, level, state.dump, compact);
7735
- if (duplicate)
8075
+ if (duplicate) {
7736
8076
  state.dump = "&ref_" + duplicateIndex + state.dump;
8077
+ }
7737
8078
  } else {
7738
8079
  writeFlowMapping(state, level, state.dump);
7739
- if (duplicate)
8080
+ if (duplicate) {
7740
8081
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8082
+ }
7741
8083
  }
7742
- else if (type === "[object Array]")
8084
+ } else if (type2 === "[object Array]") {
7743
8085
  if (block && state.dump.length !== 0) {
7744
- if (state.noArrayIndent && !isblockseq && level > 0)
8086
+ if (state.noArrayIndent && !isblockseq && level > 0) {
7745
8087
  writeBlockSequence(state, level - 1, state.dump, compact);
7746
- else
8088
+ } else {
7747
8089
  writeBlockSequence(state, level, state.dump, compact);
7748
- if (duplicate)
8090
+ }
8091
+ if (duplicate) {
7749
8092
  state.dump = "&ref_" + duplicateIndex + state.dump;
8093
+ }
7750
8094
  } else {
7751
8095
  writeFlowSequence(state, level, state.dump);
7752
- if (duplicate)
8096
+ if (duplicate) {
7753
8097
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8098
+ }
7754
8099
  }
7755
- else if (type === "[object String]") {
7756
- if (state.tag !== "?")
8100
+ } else if (type2 === "[object String]") {
8101
+ if (state.tag !== "?") {
7757
8102
  writeScalar(state, state.dump, level, iskey, inblock);
7758
- } else if (type === "[object Undefined]")
8103
+ }
8104
+ } else if (type2 === "[object Undefined]") {
7759
8105
  return false;
7760
- else {
8106
+ } else {
7761
8107
  if (state.skipInvalid)
7762
8108
  return false;
7763
- throw new YAMLException("unacceptable kind of an object to dump " + type);
8109
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
7764
8110
  }
7765
8111
  if (state.tag !== null && state.tag !== "?") {
7766
8112
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
7767
- if (state.tag[0] === "!")
8113
+ if (state.tag[0] === "!") {
7768
8114
  tagStr = "!" + tagStr;
7769
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
8115
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
7770
8116
  tagStr = "!!" + tagStr.slice(18);
7771
- else
8117
+ } else {
7772
8118
  tagStr = "!<" + tagStr + ">";
8119
+ }
7773
8120
  state.dump = tagStr + " " + state.dump;
7774
8121
  }
7775
8122
  }
@@ -7780,83 +8127,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7780
8127
  const duplicatesIndexes = [];
7781
8128
  inspectNode(object, objects, duplicatesIndexes);
7782
8129
  const length = duplicatesIndexes.length;
7783
- for (let index = 0;index < length; index += 1)
8130
+ for (let index = 0;index < length; index += 1) {
7784
8131
  state.duplicates.push(objects[duplicatesIndexes[index]]);
8132
+ }
7785
8133
  state.usedDuplicates = new Array(length);
7786
8134
  }
7787
8135
  function inspectNode(object, objects, duplicatesIndexes) {
7788
8136
  if (object !== null && typeof object === "object") {
7789
8137
  const index = objects.indexOf(object);
7790
8138
  if (index !== -1) {
7791
- if (duplicatesIndexes.indexOf(index) === -1)
8139
+ if (duplicatesIndexes.indexOf(index) === -1) {
7792
8140
  duplicatesIndexes.push(index);
8141
+ }
7793
8142
  } else {
7794
8143
  objects.push(object);
7795
- if (Array.isArray(object))
7796
- for (let i = 0, length = object.length;i < length; i += 1)
8144
+ if (Array.isArray(object)) {
8145
+ for (let i = 0, length = object.length;i < length; i += 1) {
7797
8146
  inspectNode(object[i], objects, duplicatesIndexes);
7798
- else {
8147
+ }
8148
+ } else {
7799
8149
  const objectKeyList = Object.keys(object);
7800
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
8150
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
7801
8151
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
8152
+ }
7802
8153
  }
7803
8154
  }
7804
8155
  }
7805
8156
  }
7806
- function dump(input, options) {
8157
+ function dump2(input, options) {
7807
8158
  options = options || {};
7808
8159
  const state = new State(options);
7809
8160
  if (!state.noRefs)
7810
8161
  getDuplicateReferences(input, state);
7811
8162
  let value = input;
7812
- if (state.replacer)
8163
+ if (state.replacer) {
7813
8164
  value = state.replacer.call({ "": value }, "", value);
8165
+ }
7814
8166
  if (writeNode(state, 0, value, true, true))
7815
8167
  return state.dump + `
7816
8168
  `;
7817
8169
  return "";
7818
8170
  }
7819
- module.exports.dump = dump;
7820
- });
7821
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
7822
- var loader = require_loader();
7823
- var dumper = require_dumper();
8171
+ dumper.dump = dump2;
8172
+ return dumper;
8173
+ }
8174
+ var hasRequiredJsYaml;
8175
+ function requireJsYaml() {
8176
+ if (hasRequiredJsYaml)
8177
+ return jsYaml;
8178
+ hasRequiredJsYaml = 1;
8179
+ const loader2 = requireLoader();
8180
+ const dumper2 = requireDumper();
7824
8181
  function renamed(from, to) {
7825
8182
  return function() {
7826
8183
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
7827
8184
  };
7828
8185
  }
7829
- module.exports.Type = require_type();
7830
- module.exports.Schema = require_schema();
7831
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
7832
- module.exports.JSON_SCHEMA = require_json();
7833
- module.exports.CORE_SCHEMA = require_core();
7834
- module.exports.DEFAULT_SCHEMA = require_default();
7835
- module.exports.load = loader.load;
7836
- module.exports.loadAll = loader.loadAll;
7837
- module.exports.dump = dumper.dump;
7838
- module.exports.YAMLException = require_exception();
7839
- module.exports.types = {
7840
- binary: require_binary(),
7841
- float: require_float(),
7842
- map: require_map(),
8186
+ jsYaml.Type = requireType();
8187
+ jsYaml.Schema = requireSchema();
8188
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
8189
+ jsYaml.JSON_SCHEMA = requireJson();
8190
+ jsYaml.CORE_SCHEMA = requireCore();
8191
+ jsYaml.DEFAULT_SCHEMA = require_default();
8192
+ jsYaml.load = loader2.load;
8193
+ jsYaml.loadAll = loader2.loadAll;
8194
+ jsYaml.dump = dumper2.dump;
8195
+ jsYaml.YAMLException = requireException();
8196
+ jsYaml.types = {
8197
+ binary: requireBinary(),
8198
+ float: requireFloat(),
8199
+ map: requireMap(),
7843
8200
  null: require_null(),
7844
- pairs: require_pairs(),
7845
- set: require_set(),
7846
- timestamp: require_timestamp(),
7847
- bool: require_bool(),
7848
- int: require_int(),
7849
- merge: require_merge(),
7850
- omap: require_omap(),
7851
- seq: require_seq(),
7852
- str: require_str()
8201
+ pairs: requirePairs(),
8202
+ set: requireSet(),
8203
+ timestamp: requireTimestamp(),
8204
+ bool: requireBool(),
8205
+ int: requireInt(),
8206
+ merge: requireMerge(),
8207
+ omap: requireOmap(),
8208
+ seq: requireSeq(),
8209
+ str: requireStr()
7853
8210
  };
7854
- module.exports.safeLoad = renamed("safeLoad", "load");
7855
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
7856
- module.exports.safeDump = renamed("safeDump", "dump");
7857
- }))(), 1);
7858
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
7859
- var index_vite_proxy_tmp_default = import_js_yaml.default;
8211
+ jsYaml.safeLoad = renamed("safeLoad", "load");
8212
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
8213
+ jsYaml.safeDump = renamed("safeDump", "dump");
8214
+ return jsYaml;
8215
+ }
8216
+ var jsYamlExports = requireJsYaml();
8217
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
8218
+ var {
8219
+ Type,
8220
+ Schema,
8221
+ FAILSAFE_SCHEMA,
8222
+ JSON_SCHEMA,
8223
+ CORE_SCHEMA,
8224
+ DEFAULT_SCHEMA,
8225
+ load,
8226
+ loadAll,
8227
+ dump,
8228
+ YAMLException,
8229
+ types,
8230
+ safeLoad,
8231
+ safeLoadAll,
8232
+ safeDump
8233
+ } = yaml;
7860
8234
 
7861
8235
  // ../common/src/logger.ts
7862
8236
  var logFilePathSlot = singleton("logFilePath");
@@ -7932,11 +8306,11 @@ class SimpleLogger {
7932
8306
  const path3 = this.logFilePath || getGlobalLogFilePath();
7933
8307
  if (!path3)
7934
8308
  return;
7935
- const timestamp = new Date().toISOString();
8309
+ const timestamp2 = new Date().toISOString();
7936
8310
  this.pendingWrites = Promise.all([
7937
8311
  this.pendingWrites,
7938
8312
  this.pendingInit
7939
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
8313
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
7940
8314
  }
7941
8315
  debug(message, ...args) {
7942
8316
  if (this.level > 0 /* DEBUG */)
@@ -8052,6 +8426,7 @@ function getLogFilePath() {
8052
8426
  // ../common/src/output-format-context.ts
8053
8427
  var formatSlot = singleton("OutputFormat");
8054
8428
  var formatExplicitSlot = singleton("OutputFormatExplicit");
8429
+ var helpRequestedSlot = singleton("HelpRequested");
8055
8430
  var filterSlot = singleton("OutputFilter");
8056
8431
  function getOutputFormat() {
8057
8432
  return formatSlot.get("json");
@@ -8329,10 +8704,10 @@ class LoggerTelemetryProvider {
8329
8704
  success
8330
8705
  })));
8331
8706
  }
8332
- async trackDependency(name, type, duration, success, properties) {
8707
+ async trackDependency(name, type2, duration, success, properties) {
8333
8708
  logger.debug(formatMessage("Dependency", name, this.enrich({
8334
8709
  ...properties,
8335
- type,
8710
+ type: type2,
8336
8711
  duration: `${duration}ms`,
8337
8712
  success
8338
8713
  })));
@@ -8434,89 +8809,261 @@ var CI_SIGNATURES = [
8434
8809
  provider: "generic",
8435
8810
  matches: (env) => isTruthy(env.CI)
8436
8811
  }
8437
- ];
8438
- function currentEnv() {
8439
- return typeof process === "undefined" ? {} : process.env;
8440
- }
8441
- function currentTtyState() {
8442
- if (typeof process === "undefined")
8443
- return false;
8444
- return Boolean(process.stdout?.isTTY || process.stdin?.isTTY || process.stderr?.isTTY);
8812
+ ];
8813
+ function currentEnv() {
8814
+ return typeof process === "undefined" ? {} : process.env;
8815
+ }
8816
+ function currentTtyState() {
8817
+ if (typeof process === "undefined")
8818
+ return false;
8819
+ return Boolean(process.stdout?.isTTY || process.stdin?.isTTY || process.stderr?.isTTY);
8820
+ }
8821
+ function detectCi(env) {
8822
+ const signature = CI_SIGNATURES.find((candidate) => candidate.matches(env));
8823
+ if (!signature)
8824
+ return;
8825
+ return {
8826
+ executionContext: signature.isScheduler?.(env) ? "scheduler" : "ci",
8827
+ ciProvider: signature.provider
8828
+ };
8829
+ }
8830
+ function detectExecutionContext(options = {}) {
8831
+ const env = options.env ?? currentEnv();
8832
+ const ci = detectCi(env);
8833
+ if (ci)
8834
+ return ci;
8835
+ const agent = options.agent ?? detectAgentFromEnv(env);
8836
+ if (agent) {
8837
+ return { executionContext: "agent" };
8838
+ }
8839
+ const authSignal = options.authSignal ?? authSignalSlot.get();
8840
+ if (authSignal === "service_account") {
8841
+ return { executionContext: "service_account" };
8842
+ }
8843
+ const isTty = options.isTty ?? currentTtyState();
8844
+ if (isTty) {
8845
+ return { executionContext: "manual" };
8846
+ }
8847
+ return { executionContext: "unknown" };
8848
+ }
8849
+ function getExecutionContextTelemetryProperties() {
8850
+ const detected = detectExecutionContext();
8851
+ return {
8852
+ execution_context: detected.executionContext,
8853
+ ...detected.ciProvider ? { ci_provider: detected.ciProvider } : {}
8854
+ };
8855
+ }
8856
+ // ../common/src/telemetry/node-context-storage.ts
8857
+ import { AsyncLocalStorage } from "node:async_hooks";
8858
+
8859
+ class NodeContextStorage {
8860
+ storage = new AsyncLocalStorage;
8861
+ run(context, fn) {
8862
+ return this.storage.run(context, fn);
8863
+ }
8864
+ getContext() {
8865
+ return this.storage.getStore();
8866
+ }
8867
+ }
8868
+ // ../common/src/telemetry/trace-context.ts
8869
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
8870
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
8871
+ function getProcessEnv() {
8872
+ return globalThis.process?.env;
8873
+ }
8874
+ function parseInboundTraceparent(value) {
8875
+ if (!value) {
8876
+ return;
8877
+ }
8878
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
8879
+ if (!match) {
8880
+ return;
8881
+ }
8882
+ const [, traceId, parentSpanId] = match;
8883
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
8884
+ return;
8885
+ }
8886
+ return { traceId, parentSpanId };
8887
+ }
8888
+ function getInboundTraceContext() {
8889
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
8890
+ }
8891
+
8892
+ // ../common/src/telemetry/session-id.ts
8893
+ var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
8894
+ var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
8895
+ var telemetrySessionIdSlot = singleton("TelemetrySessionId");
8896
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
8897
+ function getProcessEnv2() {
8898
+ return globalThis.process?.env;
8899
+ }
8900
+ function normalizeSessionId(value) {
8901
+ if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
8902
+ return;
8903
+ }
8904
+ const trimmed = String(value).trim();
8905
+ return trimmed || undefined;
8906
+ }
8907
+ function getConfiguredTelemetrySessionId() {
8908
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
8909
+ }
8910
+ function resolveTelemetrySessionId(existingSessionId) {
8911
+ return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
8912
+ }
8913
+ function getTelemetryOperationId() {
8914
+ const existing = telemetryOperationIdSlot.get();
8915
+ if (existing) {
8916
+ return existing;
8917
+ }
8918
+ const inboundTraceId = getInboundTraceContext()?.traceId;
8919
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
8920
+ telemetryOperationIdSlot.set(generated);
8921
+ return generated;
8922
+ }
8923
+ // ../common/src/telemetry/global-telemetry-properties.ts
8924
+ var telemetryPropsSlot = singleton("TelemetryDefaultProps");
8925
+ function getGlobalTelemetryProperties() {
8926
+ return telemetryPropsSlot.get();
8927
+ }
8928
+
8929
+ // ../common/src/telemetry/pii-redactor.ts
8930
+ var REDACTED = "[REDACTED]";
8931
+ var MAX_VALUE_LENGTH = 200;
8932
+ var SENSITIVE_NAME_TOKENS = new Set([
8933
+ "token",
8934
+ "tokens",
8935
+ "secret",
8936
+ "secrets",
8937
+ "password",
8938
+ "passwords",
8939
+ "pwd",
8940
+ "credential",
8941
+ "credentials",
8942
+ "auth",
8943
+ "authentication",
8944
+ "authorization",
8945
+ "authority",
8946
+ "cert",
8947
+ "certificate",
8948
+ "certificates"
8949
+ ]);
8950
+ var SENSITIVE_KEY_PREFIXES = new Set([
8951
+ "api",
8952
+ "access",
8953
+ "client",
8954
+ "private",
8955
+ "public",
8956
+ "signing",
8957
+ "encryption",
8958
+ "session",
8959
+ "master",
8960
+ "shared",
8961
+ "root",
8962
+ "ssh",
8963
+ "rsa",
8964
+ "aes",
8965
+ "hmac",
8966
+ "oauth"
8967
+ ]);
8968
+ var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
8969
+ var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
8970
+ var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
8971
+ var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
8972
+ var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
8973
+ var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
8974
+ var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
8975
+ function shortHash(input) {
8976
+ let hash = 2166136261;
8977
+ for (let i = 0;i < input.length; i++) {
8978
+ hash ^= input.charCodeAt(i);
8979
+ hash = Math.imul(hash, 16777619);
8980
+ }
8981
+ return (hash >>> 0).toString(16).padStart(8, "0");
8982
+ }
8983
+ function redactUrl(raw) {
8984
+ try {
8985
+ const url = new URL(raw);
8986
+ return `${url.protocol}//${url.host}`;
8987
+ } catch {
8988
+ return `url#${shortHash(raw)}`;
8989
+ }
8990
+ }
8991
+ function redactValueDetectors(value) {
8992
+ let out = value;
8993
+ out = out.replace(JWT_PATTERN, () => REDACTED);
8994
+ out = out.replace(URL_PATTERN, (match) => {
8995
+ const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
8996
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
8997
+ return `${redactUrl(core2)}${trailing}`;
8998
+ });
8999
+ out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
9000
+ out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
9001
+ out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
9002
+ out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
9003
+ if (out.length > MAX_VALUE_LENGTH) {
9004
+ out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
9005
+ }
9006
+ return out;
9007
+ }
9008
+ function redactValue(value) {
9009
+ return redactValueDetectors(value);
9010
+ }
9011
+ function redactError(error) {
9012
+ const safe = new Error(redactValueDetectors(error.message ?? ""));
9013
+ safe.name = error.name;
9014
+ safe.stack = typeof error.stack === "string" ? redactValueDetectors(error.stack) : undefined;
9015
+ return safe;
9016
+ }
9017
+ function nameTokens(name) {
9018
+ return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s._-]+/).map((t) => t.toLowerCase()).filter(Boolean);
9019
+ }
9020
+ function isSensitiveName(name) {
9021
+ const tokens = nameTokens(name);
9022
+ for (let i = 0;i < tokens.length; i++) {
9023
+ const token = tokens[i];
9024
+ if (SENSITIVE_NAME_TOKENS.has(token)) {
9025
+ return true;
9026
+ }
9027
+ if (token === "key" || token === "keys") {
9028
+ const prev = tokens[i - 1];
9029
+ if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
9030
+ return true;
9031
+ }
9032
+ }
9033
+ }
9034
+ return false;
8445
9035
  }
8446
- function detectCi(env) {
8447
- const signature = CI_SIGNATURES.find((candidate) => candidate.matches(env));
8448
- if (!signature)
9036
+ function redactProperty(name, value) {
9037
+ if (value === undefined || value === null) {
8449
9038
  return;
8450
- return {
8451
- executionContext: signature.isScheduler?.(env) ? "scheduler" : "ci",
8452
- ciProvider: signature.provider
8453
- };
8454
- }
8455
- function detectExecutionContext(options = {}) {
8456
- const env = options.env ?? currentEnv();
8457
- const ci = detectCi(env);
8458
- if (ci)
8459
- return ci;
8460
- const agent = options.agent ?? detectAgentFromEnv(env);
8461
- if (agent) {
8462
- return { executionContext: "agent" };
8463
- }
8464
- const authSignal = options.authSignal ?? authSignalSlot.get();
8465
- if (authSignal === "service_account") {
8466
- return { executionContext: "service_account" };
8467
9039
  }
8468
- const isTty = options.isTty ?? currentTtyState();
8469
- if (isTty) {
8470
- return { executionContext: "manual" };
9040
+ if (isSensitiveName(name)) {
9041
+ return REDACTED;
8471
9042
  }
8472
- return { executionContext: "unknown" };
8473
- }
8474
- function getExecutionContextTelemetryProperties() {
8475
- const detected = detectExecutionContext();
8476
- return {
8477
- execution_context: detected.executionContext,
8478
- ...detected.ciProvider ? { ci_provider: detected.ciProvider } : {}
8479
- };
8480
- }
8481
- // ../common/src/telemetry/node-context-storage.ts
8482
- import { AsyncLocalStorage } from "node:async_hooks";
8483
-
8484
- class NodeContextStorage {
8485
- storage = new AsyncLocalStorage;
8486
- run(context, fn) {
8487
- return this.storage.run(context, fn);
9043
+ if (typeof value === "boolean" || typeof value === "number") {
9044
+ return value;
8488
9045
  }
8489
- getContext() {
8490
- return this.storage.getStore();
9046
+ if (typeof value !== "string") {
9047
+ return "[OBJECT]";
8491
9048
  }
9049
+ return redactValueDetectors(value);
8492
9050
  }
8493
- // ../common/src/telemetry/session-id.ts
8494
- var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
8495
- var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
8496
- var telemetrySessionIdSlot = singleton("TelemetrySessionId");
8497
- function getProcessEnv() {
8498
- return globalThis.process?.env;
8499
- }
8500
- function normalizeSessionId(value) {
8501
- if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
8502
- return;
9051
+ function redactProperties(properties) {
9052
+ const out = {};
9053
+ for (const [name, value] of Object.entries(properties)) {
9054
+ const redacted = redactProperty(name, value);
9055
+ if (redacted !== undefined) {
9056
+ out[name] = redacted;
9057
+ }
8503
9058
  }
8504
- const trimmed = String(value).trim();
8505
- return trimmed || undefined;
8506
- }
8507
- function getConfiguredTelemetrySessionId() {
8508
- return normalizeSessionId(getProcessEnv()?.[TELEMETRY_SESSION_ID_ENV]);
8509
- }
8510
- function resolveTelemetrySessionId(existingSessionId) {
8511
- return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
8512
- }
8513
- // ../common/src/telemetry/global-telemetry-properties.ts
8514
- var telemetryPropsSlot = singleton("TelemetryDefaultProps");
8515
- function getGlobalTelemetryProperties() {
8516
- return telemetryPropsSlot.get();
9059
+ return out;
8517
9060
  }
8518
9061
 
8519
9062
  // ../common/src/telemetry/telemetry-service.ts
9063
+ var TELEMETRY_OPERATION_ID_PROPERTY = "uip.trace.operation_id";
9064
+ var TELEMETRY_PARENT_ID_PROPERTY = "uip.trace.parent_id";
9065
+ var TELEMETRY_SPAN_ID_PROPERTY = "uip.trace.span_id";
9066
+
8520
9067
  class TelemetryService {
8521
9068
  telemetryProvider;
8522
9069
  contextStorage;
@@ -8543,11 +9090,15 @@ class TelemetryService {
8543
9090
  trackException(error, properties) {
8544
9091
  const context = this.getCurrentContext();
8545
9092
  const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
8546
- this.telemetryProvider.trackException(error, enrichedProperties);
9093
+ this.telemetryProvider.trackException(redactError(error), enrichedProperties);
8547
9094
  }
8548
9095
  async trackRequest(name, fn, properties) {
9096
+ const parentContext = this.getCurrentContext();
9097
+ const operationId = parentContext?.operationId ?? this.operationId ?? getTelemetryOperationId();
9098
+ const parentId = parentContext ? parentContext.id : this.inboundParentIdFor(operationId);
8549
9099
  const context = {
8550
- operationId: this.operationId ?? this.generateId(),
9100
+ operationId,
9101
+ ...parentId !== undefined ? { parentId } : {},
8551
9102
  id: this.generateId()
8552
9103
  };
8553
9104
  const startTime = performance.now();
@@ -8565,7 +9116,46 @@ class TelemetryService {
8565
9116
  throw error;
8566
9117
  }
8567
9118
  }
8568
- async trackDependencyOperation(name, type, fn, properties) {
9119
+ trackRequestResult(name, durationMs, success, properties, context) {
9120
+ const requestContext = context ?? {
9121
+ operationId: this.operationId ?? getTelemetryOperationId(),
9122
+ id: this.generateId()
9123
+ };
9124
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, requestContext);
9125
+ this.telemetryProvider.trackRequest(name, durationMs, success, enrichedProperties);
9126
+ }
9127
+ createRequestContext() {
9128
+ const operationId = this.operationId ?? getTelemetryOperationId();
9129
+ const parentId = this.inboundParentIdFor(operationId);
9130
+ return {
9131
+ operationId,
9132
+ ...parentId !== undefined ? { parentId } : {},
9133
+ id: this.generateId()
9134
+ };
9135
+ }
9136
+ inboundParentIdFor(operationId) {
9137
+ const inbound = getInboundTraceContext();
9138
+ return inbound && inbound.traceId === operationId ? inbound.parentSpanId : undefined;
9139
+ }
9140
+ runWithContext(context, fn) {
9141
+ return this.contextStorage.run(context, fn);
9142
+ }
9143
+ createDependencyContext() {
9144
+ const parentContext = this.getCurrentContext();
9145
+ if (!parentContext) {
9146
+ return;
9147
+ }
9148
+ return {
9149
+ operationId: parentContext.operationId,
9150
+ parentId: parentContext.id,
9151
+ id: this.generateId()
9152
+ };
9153
+ }
9154
+ trackDependencyResult(name, type2, durationMs, success, properties, context, resultCode) {
9155
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
9156
+ this.telemetryProvider.trackDependency(redactValue(name), type2, durationMs, success, enrichedProperties, resultCode);
9157
+ }
9158
+ async trackDependencyOperation(name, type2, fn, properties) {
8569
9159
  const parentContext = this.getCurrentContext();
8570
9160
  if (!parentContext) {
8571
9161
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -8580,13 +9170,13 @@ class TelemetryService {
8580
9170
  const result = await this.contextStorage.run(childContext, fn);
8581
9171
  const durationMs = performance.now() - startTime;
8582
9172
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
8583
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
9173
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
8584
9174
  return result;
8585
9175
  } catch (error) {
8586
9176
  const durationMs = performance.now() - startTime;
8587
9177
  const err = error instanceof Error ? error : new Error(String(error));
8588
9178
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
8589
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
9179
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
8590
9180
  throw error;
8591
9181
  }
8592
9182
  }
@@ -8601,8 +9191,12 @@ class TelemetryService {
8601
9191
  ...getExecutionContextTelemetryProperties(),
8602
9192
  ...globalProperties,
8603
9193
  ...this.defaultProperties,
8604
- ...properties,
8605
- ...context
9194
+ ...redactProperties(properties ?? {}),
9195
+ ...context ? {
9196
+ [TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
9197
+ ...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
9198
+ [TELEMETRY_SPAN_ID_PROPERTY]: context.id
9199
+ } : {}
8606
9200
  };
8607
9201
  if (sessionId === undefined) {
8608
9202
  delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
@@ -8612,7 +9206,16 @@ class TelemetryService {
8612
9206
  return enriched;
8613
9207
  }
8614
9208
  generateId() {
8615
- return crypto.randomUUID().replaceAll("-", "");
9209
+ const bytes = new Uint8Array(8);
9210
+ let hex = "";
9211
+ do {
9212
+ crypto.getRandomValues(bytes);
9213
+ hex = "";
9214
+ for (const byte of bytes) {
9215
+ hex += byte.toString(16).padStart(2, "0");
9216
+ }
9217
+ } while (/^0+$/.test(hex));
9218
+ return hex;
8616
9219
  }
8617
9220
  }
8618
9221
  // ../common/src/telemetry/node-appinsights-telemetry-provider.ts
@@ -8793,8 +9396,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
8793
9396
  }
8794
9397
  switch (format) {
8795
9398
  case "json": {
8796
- const json = JSON.stringify(data, null, 2);
8797
- logFn(asciiSafe ? escapeNonAscii(json) : json);
9399
+ const json2 = JSON.stringify(data, null, 2);
9400
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
8798
9401
  break;
8799
9402
  }
8800
9403
  case "yaml":
@@ -9119,6 +9722,9 @@ var OutputFormatter;
9119
9722
  if (opts?.warning) {
9120
9723
  data.Warning = opts.warning;
9121
9724
  }
9725
+ if (opts?.pagination) {
9726
+ data.Pagination = opts.pagination;
9727
+ }
9122
9728
  success(data);
9123
9729
  }
9124
9730
  OutputFormatter.emitList = emitList;
@@ -9127,8 +9733,8 @@ var OutputFormatter;
9127
9733
  const sink = getOutputSink();
9128
9734
  const normalized = toPascalCaseData(data);
9129
9735
  if (format === "json") {
9130
- const json = JSON.stringify(normalized);
9131
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
9736
+ const json2 = JSON.stringify(normalized);
9737
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
9132
9738
  sink.writeErr(`${safe}
9133
9739
  `);
9134
9740
  } else {
@@ -9311,134 +9917,11 @@ function buildCommandTelemetryAttribution(commandPath, skillSource) {
9311
9917
  };
9312
9918
  }
9313
9919
 
9314
- // ../common/src/telemetry/pii-redactor.ts
9315
- var REDACTED = "[REDACTED]";
9316
- var MAX_VALUE_LENGTH = 200;
9317
- var SENSITIVE_NAME_TOKENS = new Set([
9318
- "token",
9319
- "tokens",
9320
- "secret",
9321
- "secrets",
9322
- "password",
9323
- "passwords",
9324
- "pwd",
9325
- "credential",
9326
- "credentials",
9327
- "auth",
9328
- "authentication",
9329
- "authorization",
9330
- "authority",
9331
- "cert",
9332
- "certificate",
9333
- "certificates"
9334
- ]);
9335
- var SENSITIVE_KEY_PREFIXES = new Set([
9336
- "api",
9337
- "access",
9338
- "client",
9339
- "private",
9340
- "public",
9341
- "signing",
9342
- "encryption",
9343
- "session",
9344
- "master",
9345
- "shared",
9346
- "root",
9347
- "ssh",
9348
- "rsa",
9349
- "aes",
9350
- "hmac",
9351
- "oauth"
9352
- ]);
9353
- var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
9354
- var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
9355
- var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
9356
- var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
9357
- var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
9358
- var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
9359
- var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
9360
- function shortHash(input) {
9361
- let hash = 2166136261;
9362
- for (let i = 0;i < input.length; i++) {
9363
- hash ^= input.charCodeAt(i);
9364
- hash = Math.imul(hash, 16777619);
9365
- }
9366
- return (hash >>> 0).toString(16).padStart(8, "0");
9367
- }
9368
- function redactUrl(raw) {
9369
- try {
9370
- const url = new URL(raw);
9371
- return `${url.protocol}//${url.host}`;
9372
- } catch {
9373
- return `url#${shortHash(raw)}`;
9374
- }
9375
- }
9376
- function redactValueDetectors(value) {
9377
- let out = value;
9378
- out = out.replace(JWT_PATTERN, () => REDACTED);
9379
- out = out.replace(URL_PATTERN, (match) => {
9380
- const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
9381
- const core = trailing ? match.slice(0, -trailing.length) : match;
9382
- return `${redactUrl(core)}${trailing}`;
9383
- });
9384
- out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
9385
- out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
9386
- out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
9387
- out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
9388
- if (out.length > MAX_VALUE_LENGTH) {
9389
- out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
9390
- }
9391
- return out;
9392
- }
9393
- function nameTokens(name) {
9394
- return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s_-]+/).map((t) => t.toLowerCase()).filter(Boolean);
9395
- }
9396
- function isSensitiveName(name) {
9397
- const tokens = nameTokens(name);
9398
- for (let i = 0;i < tokens.length; i++) {
9399
- const token = tokens[i];
9400
- if (SENSITIVE_NAME_TOKENS.has(token)) {
9401
- return true;
9402
- }
9403
- if (token === "key" || token === "keys") {
9404
- const prev = tokens[i - 1];
9405
- if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
9406
- return true;
9407
- }
9408
- }
9409
- }
9410
- return false;
9411
- }
9412
- function redactProperty(name, value) {
9413
- if (value === undefined || value === null) {
9414
- return;
9415
- }
9416
- if (isSensitiveName(name)) {
9417
- return REDACTED;
9418
- }
9419
- if (typeof value === "boolean" || typeof value === "number") {
9420
- return value;
9421
- }
9422
- if (typeof value !== "string") {
9423
- return "[OBJECT]";
9424
- }
9425
- return redactValueDetectors(value);
9426
- }
9427
- function redactProperties(properties) {
9428
- const out = {};
9429
- for (const [name, value] of Object.entries(properties)) {
9430
- const redacted = redactProperty(name, value);
9431
- if (redacted !== undefined) {
9432
- out[name] = redacted;
9433
- }
9434
- }
9435
- return out;
9436
- }
9437
-
9438
9920
  // ../common/src/trackedAction.ts
9439
9921
  var pollSignalSlot = singleton("PollSignal");
9440
9922
  var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
9441
9923
  var retryHintValues = new Set(RETRY_HINTS);
9924
+ var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
9442
9925
  var processContext = {
9443
9926
  exit: (code) => {
9444
9927
  process.exitCode = code;
@@ -9449,22 +9932,18 @@ var processContext = {
9449
9932
  };
9450
9933
  function extractCommandParams(cmd) {
9451
9934
  const params = {};
9935
+ const add2 = (name, value) => {
9936
+ if (name && value !== undefined) {
9937
+ params[`${TELEMETRY_COMMAND_ARG_PREFIX}${name}`] = value;
9938
+ }
9939
+ };
9452
9940
  const registered = cmd.registeredArguments ?? [];
9453
9941
  const processed = cmd.processedArgs ?? [];
9454
9942
  for (let i = 0;i < registered.length; i++) {
9455
- const value = processed[i];
9456
- if (value === undefined) {
9457
- continue;
9458
- }
9459
- const name = registered[i].name();
9460
- if (name) {
9461
- params[name] = value;
9462
- }
9943
+ add2(registered[i].name(), processed[i]);
9463
9944
  }
9464
9945
  for (const [key, value] of Object.entries(cmd.opts())) {
9465
- if (value !== undefined) {
9466
- params[key] = value;
9467
- }
9946
+ add2(key, value);
9468
9947
  }
9469
9948
  return params;
9470
9949
  }
@@ -9507,11 +9986,12 @@ Command.prototype.trackedAction = function(context, fn, properties) {
9507
9986
  return this.action(async (...args) => {
9508
9987
  const telemetryName = deriveCommandPath(command);
9509
9988
  const props = typeof properties === "function" ? properties(...args) : properties;
9989
+ const requestContext = telemetry.createRequestContext();
9510
9990
  const startTime = performance.now();
9511
9991
  let errorMessage;
9512
9992
  let fallbackExitCode = EXIT_CODES.Success;
9513
9993
  clearRecordedCommandFailureTelemetry();
9514
- const [error] = await catchError(fn(...args));
9994
+ const [error] = await catchError(telemetry.runWithContext(requestContext, () => fn(...args)));
9515
9995
  if (error) {
9516
9996
  errorMessage = error instanceof Error ? error.message : String(error);
9517
9997
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
@@ -9547,16 +10027,21 @@ Command.prototype.trackedAction = function(context, fn, properties) {
9547
10027
  recordedFailure,
9548
10028
  pollSignal: context.pollSignal
9549
10029
  });
9550
- telemetry.trackEvent(telemetryName, redactProperties({
9551
- ...extractCommandParams(command),
10030
+ const commandParams = extractCommandParams(command);
10031
+ if (props) {
10032
+ for (const key of Object.keys(props)) {
10033
+ delete commandParams[`${TELEMETRY_COMMAND_ARG_PREFIX}${key}`];
10034
+ }
10035
+ }
10036
+ const baseProperties = redactProperties({
10037
+ ...commandParams,
9552
10038
  ...props,
9553
10039
  ...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
9554
10040
  command: "true",
9555
- duration: String(durationMs),
9556
- success: String(success),
9557
10041
  ...terminalTelemetry,
9558
10042
  ...errorMessage ? { errorMessage } : {}
9559
- }));
10043
+ });
10044
+ telemetry.trackRequestResult(telemetryName, durationMs, success, baseProperties, requestContext);
9560
10045
  });
9561
10046
  };
9562
10047
  // ../common/src/console-guard.ts
@@ -9566,6 +10051,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
9566
10051
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
9567
10052
  // ../common/src/interactivity-context.ts
9568
10053
  var modeSlot = singleton("InteractivityMode");
10054
+ var interactiveFlagSlot = singleton("InteractiveFlag");
9569
10055
  // ../common/src/option-aliases.ts
9570
10056
  function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
9571
10057
  getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
@@ -9679,17 +10165,17 @@ import { existsSync as existsSync2 } from "node:fs";
9679
10165
  import * as fs62 from "node:fs/promises";
9680
10166
  import * as os22 from "node:os";
9681
10167
  import * as path22 from "node:path";
9682
- var __create3 = Object.create;
9683
- var __getProtoOf3 = Object.getPrototypeOf;
9684
- var __defProp3 = Object.defineProperty;
9685
- var __getOwnPropNames3 = Object.getOwnPropertyNames;
9686
- var __hasOwnProp3 = Object.prototype.hasOwnProperty;
10168
+ var __create2 = Object.create;
10169
+ var __getProtoOf2 = Object.getPrototypeOf;
10170
+ var __defProp2 = Object.defineProperty;
10171
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
10172
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
9687
10173
  function __accessProp2(key) {
9688
10174
  return this[key];
9689
10175
  }
9690
10176
  var __toESMCache_node2;
9691
10177
  var __toESMCache_esm2;
9692
- var __toESM3 = (mod2, isNodeMode, target) => {
10178
+ var __toESM2 = (mod2, isNodeMode, target) => {
9693
10179
  var canCache = mod2 != null && typeof mod2 === "object";
9694
10180
  if (canCache) {
9695
10181
  var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
@@ -9697,11 +10183,11 @@ var __toESM3 = (mod2, isNodeMode, target) => {
9697
10183
  if (cached)
9698
10184
  return cached;
9699
10185
  }
9700
- target = mod2 != null ? __create3(__getProtoOf3(mod2)) : {};
9701
- const to = isNodeMode || !mod2 || !mod2.__esModule ? __defProp3(target, "default", { value: mod2, enumerable: true }) : target;
9702
- for (let key of __getOwnPropNames3(mod2))
9703
- if (!__hasOwnProp3.call(to, key))
9704
- __defProp3(to, key, {
10186
+ target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {};
10187
+ const to = isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", { value: mod2, enumerable: true }) : target;
10188
+ for (let key of __getOwnPropNames2(mod2))
10189
+ if (!__hasOwnProp2.call(to, key))
10190
+ __defProp2(to, key, {
9705
10191
  get: __accessProp2.bind(mod2, key),
9706
10192
  enumerable: true
9707
10193
  });
@@ -10058,11 +10544,11 @@ var init_is_in_ssh = __esm(() => {
10058
10544
  isInSsh2 = Boolean(process72.env.SSH_CONNECTION || process72.env.SSH_CLIENT || process72.env.SSH_TTY);
10059
10545
  is_in_ssh_default2 = isInSsh2;
10060
10546
  });
10061
- function detectArchBinary2(binary) {
10062
- if (typeof binary === "string" || Array.isArray(binary)) {
10063
- return binary;
10547
+ function detectArchBinary2(binary2) {
10548
+ if (typeof binary2 === "string" || Array.isArray(binary2)) {
10549
+ return binary2;
10064
10550
  }
10065
- const { [arch2]: archBinary } = binary;
10551
+ const { [arch2]: archBinary } = binary2;
10066
10552
  if (!archBinary) {
10067
10553
  throw new Error(`${arch2} is not supported`);
10068
10554
  }
@@ -23613,7 +24099,7 @@ var require_TimeoutError = __commonJS2((exports) => {
23613
24099
  }();
23614
24100
  exports.TimeoutError = TimeoutErrorImpl;
23615
24101
  });
23616
- var require_map2 = __commonJS2((exports) => {
24102
+ var require_map = __commonJS2((exports) => {
23617
24103
  var __extends = exports && exports.__extends || function() {
23618
24104
  var extendStatics = function(d, b) {
23619
24105
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -23635,7 +24121,7 @@ var require_map2 = __commonJS2((exports) => {
23635
24121
  }();
23636
24122
  Object.defineProperty(exports, "__esModule", { value: true });
23637
24123
  var Subscriber_1 = require_Subscriber();
23638
- function map(project, thisArg) {
24124
+ function map2(project, thisArg) {
23639
24125
  return function mapOperation(source) {
23640
24126
  if (typeof project !== "function") {
23641
24127
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -23643,7 +24129,7 @@ var require_map2 = __commonJS2((exports) => {
23643
24129
  return source.lift(new MapOperator(project, thisArg));
23644
24130
  };
23645
24131
  }
23646
- exports.map = map;
24132
+ exports.map = map2;
23647
24133
  var MapOperator = function() {
23648
24134
  function MapOperator2(project, thisArg) {
23649
24135
  this.project = project;
@@ -23681,7 +24167,7 @@ var require_bindCallback = __commonJS2((exports) => {
23681
24167
  Object.defineProperty(exports, "__esModule", { value: true });
23682
24168
  var Observable_1 = require_Observable();
23683
24169
  var AsyncSubject_1 = require_AsyncSubject();
23684
- var map_1 = require_map2();
24170
+ var map_1 = require_map();
23685
24171
  var canReportError_1 = require_canReportError();
23686
24172
  var isArray_1 = require_isArray();
23687
24173
  var isScheduler_1 = require_isScheduler();
@@ -23783,7 +24269,7 @@ var require_bindNodeCallback = __commonJS2((exports) => {
23783
24269
  Object.defineProperty(exports, "__esModule", { value: true });
23784
24270
  var Observable_1 = require_Observable();
23785
24271
  var AsyncSubject_1 = require_AsyncSubject();
23786
- var map_1 = require_map2();
24272
+ var map_1 = require_map();
23787
24273
  var canReportError_1 = require_canReportError();
23788
24274
  var isScheduler_1 = require_isScheduler();
23789
24275
  var isArray_1 = require_isArray();
@@ -24533,7 +25019,7 @@ var require_mergeMap = __commonJS2((exports) => {
24533
25019
  };
24534
25020
  }();
24535
25021
  Object.defineProperty(exports, "__esModule", { value: true });
24536
- var map_1 = require_map2();
25022
+ var map_1 = require_map();
24537
25023
  var from_1 = require_from();
24538
25024
  var innerSubscribe_1 = require_innerSubscribe();
24539
25025
  function mergeMap(project, resultSelector, concurrent) {
@@ -24694,7 +25180,7 @@ var require_forkJoin = __commonJS2((exports) => {
24694
25180
  Object.defineProperty(exports, "__esModule", { value: true });
24695
25181
  var Observable_1 = require_Observable();
24696
25182
  var isArray_1 = require_isArray();
24697
- var map_1 = require_map2();
25183
+ var map_1 = require_map();
24698
25184
  var isObject_1 = require_isObject();
24699
25185
  var from_1 = require_from();
24700
25186
  function forkJoin() {
@@ -24772,7 +25258,7 @@ var require_fromEvent = __commonJS2((exports) => {
24772
25258
  var Observable_1 = require_Observable();
24773
25259
  var isArray_1 = require_isArray();
24774
25260
  var isFunction_1 = require_isFunction();
24775
- var map_1 = require_map2();
25261
+ var map_1 = require_map();
24776
25262
  var toString = function() {
24777
25263
  return Object.prototype.toString;
24778
25264
  }();
@@ -24842,7 +25328,7 @@ var require_fromEventPattern = __commonJS2((exports) => {
24842
25328
  var Observable_1 = require_Observable();
24843
25329
  var isArray_1 = require_isArray();
24844
25330
  var isFunction_1 = require_isFunction();
24845
- var map_1 = require_map2();
25331
+ var map_1 = require_map();
24846
25332
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
24847
25333
  if (resultSelector) {
24848
25334
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -25047,13 +25533,13 @@ var require_interval = __commonJS2((exports) => {
25047
25533
  this.schedule({ subscriber, counter: counter + 1, period }, period);
25048
25534
  }
25049
25535
  });
25050
- var require_merge2 = __commonJS2((exports) => {
25536
+ var require_merge = __commonJS2((exports) => {
25051
25537
  Object.defineProperty(exports, "__esModule", { value: true });
25052
25538
  var Observable_1 = require_Observable();
25053
25539
  var isScheduler_1 = require_isScheduler();
25054
25540
  var mergeAll_1 = require_mergeAll();
25055
25541
  var fromArray_1 = require_fromArray();
25056
- function merge() {
25542
+ function merge2() {
25057
25543
  var observables = [];
25058
25544
  for (var _i = 0;_i < arguments.length; _i++) {
25059
25545
  observables[_i] = arguments[_i];
@@ -25074,7 +25560,7 @@ var require_merge2 = __commonJS2((exports) => {
25074
25560
  }
25075
25561
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
25076
25562
  }
25077
- exports.merge = merge;
25563
+ exports.merge = merge2;
25078
25564
  });
25079
25565
  var require_never = __commonJS2((exports) => {
25080
25566
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25119,11 +25605,11 @@ var require_onErrorResumeNext = __commonJS2((exports) => {
25119
25605
  }
25120
25606
  exports.onErrorResumeNext = onErrorResumeNext;
25121
25607
  });
25122
- var require_pairs2 = __commonJS2((exports) => {
25608
+ var require_pairs = __commonJS2((exports) => {
25123
25609
  Object.defineProperty(exports, "__esModule", { value: true });
25124
25610
  var Observable_1 = require_Observable();
25125
25611
  var Subscription_1 = require_Subscription();
25126
- function pairs(obj, scheduler) {
25612
+ function pairs2(obj, scheduler) {
25127
25613
  if (!scheduler) {
25128
25614
  return new Observable_1.Observable(function(subscriber) {
25129
25615
  var keys = Object.keys(obj);
@@ -25144,7 +25630,7 @@ var require_pairs2 = __commonJS2((exports) => {
25144
25630
  });
25145
25631
  }
25146
25632
  }
25147
- exports.pairs = pairs;
25633
+ exports.pairs = pairs2;
25148
25634
  function dispatch(state) {
25149
25635
  var { keys, index, subscriber, subscription, obj } = state;
25150
25636
  if (!subscriber.closed) {
@@ -25785,7 +26271,7 @@ var require_rxjs = __commonJS2((exports) => {
25785
26271
  exports.iif = iif_1.iif;
25786
26272
  var interval_1 = require_interval();
25787
26273
  exports.interval = interval_1.interval;
25788
- var merge_1 = require_merge2();
26274
+ var merge_1 = require_merge();
25789
26275
  exports.merge = merge_1.merge;
25790
26276
  var never_1 = require_never();
25791
26277
  exports.never = never_1.never;
@@ -25793,7 +26279,7 @@ var require_rxjs = __commonJS2((exports) => {
25793
26279
  exports.of = of_1.of;
25794
26280
  var onErrorResumeNext_1 = require_onErrorResumeNext();
25795
26281
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
25796
- var pairs_1 = require_pairs2();
26282
+ var pairs_1 = require_pairs();
25797
26283
  exports.pairs = pairs_1.pairs;
25798
26284
  var partition_1 = require_partition();
25799
26285
  exports.partition = partition_1.partition;
@@ -28841,7 +29327,7 @@ var parseResourceUrl = (url) => {
28841
29327
  };
28842
29328
  };
28843
29329
  var defaultLoadModule = async () => {
28844
- const [error, mod2] = await catchError2(() => Promise.resolve().then(() => __toESM3(require_dist(), 1)));
29330
+ const [error, mod2] = await catchError2(() => Promise.resolve().then(() => __toESM2(require_dist(), 1)));
28845
29331
  if (error || !mod2) {
28846
29332
  return;
28847
29333
  }
@@ -29094,12 +29580,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
29094
29580
  var saveEnvFileAsync = async ({
29095
29581
  envPath,
29096
29582
  data,
29097
- merge = true
29583
+ merge: merge2 = true
29098
29584
  }) => {
29099
29585
  const fs72 = getFileSystem2();
29100
29586
  const absolutePath = fs72.path.isAbsolute(envPath) ? envPath : fs72.path.join(fs72.env.homedir(), envPath);
29101
29587
  let existingData = {};
29102
- if (merge && await fs72.exists(absolutePath)) {
29588
+ if (merge2 && await fs72.exists(absolutePath)) {
29103
29589
  try {
29104
29590
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
29105
29591
  } catch {}
@@ -29618,6 +30104,7 @@ var getAuthContext = async (options = {}) => {
29618
30104
  tenantName
29619
30105
  };
29620
30106
  };
30107
+ init_constants();
29621
30108
  init_src();
29622
30109
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
29623
30110
  var INVALID_TENANT_CODE = "INVALID_TENANT";
@@ -29766,4 +30253,4 @@ export {
29766
30253
  metadata
29767
30254
  };
29768
30255
 
29769
- //# debugId=982B1AC32077CC4C64756E2164756E21
30256
+ //# debugId=8B7C7FE901FD055364756E2164756E21