@sap/ux-ui5-tooling 1.9.4 → 1.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -16677,73 +16677,76 @@ var require_visit = __commonJS({
16677
16677
  var SKIP = Symbol("skip children");
16678
16678
  var REMOVE = Symbol("remove node");
16679
16679
  function visit(node, visitor) {
16680
- if (typeof visitor === "object" && (visitor.Collection || visitor.Node || visitor.Value)) {
16681
- visitor = Object.assign({
16682
- Alias: visitor.Node,
16683
- Map: visitor.Node,
16684
- Scalar: visitor.Node,
16685
- Seq: visitor.Node
16686
- }, visitor.Value && {
16687
- Map: visitor.Value,
16688
- Scalar: visitor.Value,
16689
- Seq: visitor.Value
16690
- }, visitor.Collection && {
16691
- Map: visitor.Collection,
16692
- Seq: visitor.Collection
16693
- }, visitor);
16694
- }
16680
+ const visitor_ = initVisitor(visitor);
16695
16681
  if (Node.isDocument(node)) {
16696
- const cd = _visit(null, node.contents, visitor, Object.freeze([node]));
16682
+ const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
16697
16683
  if (cd === REMOVE)
16698
16684
  node.contents = null;
16699
16685
  } else
16700
- _visit(null, node, visitor, Object.freeze([]));
16686
+ visit_(null, node, visitor_, Object.freeze([]));
16701
16687
  }
16702
16688
  visit.BREAK = BREAK;
16703
16689
  visit.SKIP = SKIP;
16704
16690
  visit.REMOVE = REMOVE;
16705
- function _visit(key, node, visitor, path5) {
16706
- let ctrl = void 0;
16707
- if (typeof visitor === "function")
16708
- ctrl = visitor(key, node, path5);
16709
- else if (Node.isMap(node)) {
16710
- if (visitor.Map)
16711
- ctrl = visitor.Map(key, node, path5);
16712
- } else if (Node.isSeq(node)) {
16713
- if (visitor.Seq)
16714
- ctrl = visitor.Seq(key, node, path5);
16715
- } else if (Node.isPair(node)) {
16716
- if (visitor.Pair)
16717
- ctrl = visitor.Pair(key, node, path5);
16718
- } else if (Node.isScalar(node)) {
16719
- if (visitor.Scalar)
16720
- ctrl = visitor.Scalar(key, node, path5);
16721
- } else if (Node.isAlias(node)) {
16722
- if (visitor.Alias)
16723
- ctrl = visitor.Alias(key, node, path5);
16724
- }
16691
+ function visit_(key, node, visitor, path5) {
16692
+ const ctrl = callVisitor(key, node, visitor, path5);
16725
16693
  if (Node.isNode(ctrl) || Node.isPair(ctrl)) {
16726
- const parent2 = path5[path5.length - 1];
16727
- if (Node.isCollection(parent2)) {
16728
- parent2.items[key] = ctrl;
16729
- } else if (Node.isPair(parent2)) {
16730
- if (key === "key")
16731
- parent2.key = ctrl;
16732
- else
16733
- parent2.value = ctrl;
16734
- } else if (Node.isDocument(parent2)) {
16735
- parent2.contents = ctrl;
16736
- } else {
16737
- const pt = Node.isAlias(parent2) ? "alias" : "scalar";
16738
- throw new Error(`Cannot replace node with ${pt} parent`);
16694
+ replaceNode(key, path5, ctrl);
16695
+ return visit_(key, ctrl, visitor, path5);
16696
+ }
16697
+ if (typeof ctrl !== "symbol") {
16698
+ if (Node.isCollection(node)) {
16699
+ path5 = Object.freeze(path5.concat(node));
16700
+ for (let i = 0; i < node.items.length; ++i) {
16701
+ const ci = visit_(i, node.items[i], visitor, path5);
16702
+ if (typeof ci === "number")
16703
+ i = ci - 1;
16704
+ else if (ci === BREAK)
16705
+ return BREAK;
16706
+ else if (ci === REMOVE) {
16707
+ node.items.splice(i, 1);
16708
+ i -= 1;
16709
+ }
16710
+ }
16711
+ } else if (Node.isPair(node)) {
16712
+ path5 = Object.freeze(path5.concat(node));
16713
+ const ck = visit_("key", node.key, visitor, path5);
16714
+ if (ck === BREAK)
16715
+ return BREAK;
16716
+ else if (ck === REMOVE)
16717
+ node.key = null;
16718
+ const cv = visit_("value", node.value, visitor, path5);
16719
+ if (cv === BREAK)
16720
+ return BREAK;
16721
+ else if (cv === REMOVE)
16722
+ node.value = null;
16739
16723
  }
16740
- return _visit(key, ctrl, visitor, path5);
16724
+ }
16725
+ return ctrl;
16726
+ }
16727
+ async function visitAsync(node, visitor) {
16728
+ const visitor_ = initVisitor(visitor);
16729
+ if (Node.isDocument(node)) {
16730
+ const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
16731
+ if (cd === REMOVE)
16732
+ node.contents = null;
16733
+ } else
16734
+ await visitAsync_(null, node, visitor_, Object.freeze([]));
16735
+ }
16736
+ visitAsync.BREAK = BREAK;
16737
+ visitAsync.SKIP = SKIP;
16738
+ visitAsync.REMOVE = REMOVE;
16739
+ async function visitAsync_(key, node, visitor, path5) {
16740
+ const ctrl = await callVisitor(key, node, visitor, path5);
16741
+ if (Node.isNode(ctrl) || Node.isPair(ctrl)) {
16742
+ replaceNode(key, path5, ctrl);
16743
+ return visitAsync_(key, ctrl, visitor, path5);
16741
16744
  }
16742
16745
  if (typeof ctrl !== "symbol") {
16743
16746
  if (Node.isCollection(node)) {
16744
16747
  path5 = Object.freeze(path5.concat(node));
16745
16748
  for (let i = 0; i < node.items.length; ++i) {
16746
- const ci = _visit(i, node.items[i], visitor, path5);
16749
+ const ci = await visitAsync_(i, node.items[i], visitor, path5);
16747
16750
  if (typeof ci === "number")
16748
16751
  i = ci - 1;
16749
16752
  else if (ci === BREAK)
@@ -16755,12 +16758,12 @@ var require_visit = __commonJS({
16755
16758
  }
16756
16759
  } else if (Node.isPair(node)) {
16757
16760
  path5 = Object.freeze(path5.concat(node));
16758
- const ck = _visit("key", node.key, visitor, path5);
16761
+ const ck = await visitAsync_("key", node.key, visitor, path5);
16759
16762
  if (ck === BREAK)
16760
16763
  return BREAK;
16761
16764
  else if (ck === REMOVE)
16762
16765
  node.key = null;
16763
- const cv = _visit("value", node.value, visitor, path5);
16766
+ const cv = await visitAsync_("value", node.value, visitor, path5);
16764
16767
  if (cv === BREAK)
16765
16768
  return BREAK;
16766
16769
  else if (cv === REMOVE)
@@ -16769,7 +16772,58 @@ var require_visit = __commonJS({
16769
16772
  }
16770
16773
  return ctrl;
16771
16774
  }
16775
+ function initVisitor(visitor) {
16776
+ if (typeof visitor === "object" && (visitor.Collection || visitor.Node || visitor.Value)) {
16777
+ return Object.assign({
16778
+ Alias: visitor.Node,
16779
+ Map: visitor.Node,
16780
+ Scalar: visitor.Node,
16781
+ Seq: visitor.Node
16782
+ }, visitor.Value && {
16783
+ Map: visitor.Value,
16784
+ Scalar: visitor.Value,
16785
+ Seq: visitor.Value
16786
+ }, visitor.Collection && {
16787
+ Map: visitor.Collection,
16788
+ Seq: visitor.Collection
16789
+ }, visitor);
16790
+ }
16791
+ return visitor;
16792
+ }
16793
+ function callVisitor(key, node, visitor, path5) {
16794
+ var _a2, _b, _c, _d, _e;
16795
+ if (typeof visitor === "function")
16796
+ return visitor(key, node, path5);
16797
+ if (Node.isMap(node))
16798
+ return (_a2 = visitor.Map) == null ? void 0 : _a2.call(visitor, key, node, path5);
16799
+ if (Node.isSeq(node))
16800
+ return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node, path5);
16801
+ if (Node.isPair(node))
16802
+ return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path5);
16803
+ if (Node.isScalar(node))
16804
+ return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path5);
16805
+ if (Node.isAlias(node))
16806
+ return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path5);
16807
+ return void 0;
16808
+ }
16809
+ function replaceNode(key, path5, node) {
16810
+ const parent2 = path5[path5.length - 1];
16811
+ if (Node.isCollection(parent2)) {
16812
+ parent2.items[key] = node;
16813
+ } else if (Node.isPair(parent2)) {
16814
+ if (key === "key")
16815
+ parent2.key = node;
16816
+ else
16817
+ parent2.value = node;
16818
+ } else if (Node.isDocument(parent2)) {
16819
+ parent2.contents = node;
16820
+ } else {
16821
+ const pt = Node.isAlias(parent2) ? "alias" : "scalar";
16822
+ throw new Error(`Cannot replace node with ${pt} parent`);
16823
+ }
16824
+ }
16772
16825
  exports2.visit = visit;
16826
+ exports2.visitAsync = visitAsync;
16773
16827
  }
16774
16828
  });
16775
16829
 
@@ -16790,13 +16844,14 @@ var require_directives = __commonJS({
16790
16844
  var escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, (ch) => escapeChars[ch]);
16791
16845
  var Directives = class {
16792
16846
  constructor(yaml, tags) {
16793
- this.marker = null;
16847
+ this.docStart = null;
16848
+ this.docEnd = false;
16794
16849
  this.yaml = Object.assign({}, Directives.defaultYaml, yaml);
16795
16850
  this.tags = Object.assign({}, Directives.defaultTags, tags);
16796
16851
  }
16797
16852
  clone() {
16798
16853
  const copy3 = new Directives(this.yaml, this.tags);
16799
- copy3.marker = this.marker;
16854
+ copy3.docStart = this.docStart;
16800
16855
  return copy3;
16801
16856
  }
16802
16857
  atDocument() {
@@ -16837,7 +16892,7 @@ var require_directives = __commonJS({
16837
16892
  }
16838
16893
  case "%YAML": {
16839
16894
  this.yaml.explicit = true;
16840
- if (parts.length < 1) {
16895
+ if (parts.length !== 1) {
16841
16896
  onError(0, "%YAML directive should contain exactly one part");
16842
16897
  return false;
16843
16898
  }
@@ -16846,7 +16901,8 @@ var require_directives = __commonJS({
16846
16901
  this.yaml.version = version;
16847
16902
  return true;
16848
16903
  } else {
16849
- onError(6, `Unsupported YAML version ${version}`, true);
16904
+ const isValid = /^\d+\.\d+$/.test(version);
16905
+ onError(6, `Unsupported YAML version ${version}`, isValid);
16850
16906
  return false;
16851
16907
  }
16852
16908
  }
@@ -16954,7 +17010,7 @@ var require_anchors = __commonJS({
16954
17010
  const sourceObjects = /* @__PURE__ */ new Map();
16955
17011
  let prevAnchors = null;
16956
17012
  return {
16957
- onAnchor(source) {
17013
+ onAnchor: (source) => {
16958
17014
  aliasObjects.push(source);
16959
17015
  if (!prevAnchors)
16960
17016
  prevAnchors = anchorNames(doc);
@@ -16962,7 +17018,7 @@ var require_anchors = __commonJS({
16962
17018
  prevAnchors.add(anchor);
16963
17019
  return anchor;
16964
17020
  },
16965
- setAnchors() {
17021
+ setAnchors: () => {
16966
17022
  for (const source of aliasObjects) {
16967
17023
  const ref = sourceObjects.get(source);
16968
17024
  if (typeof ref === "object" && ref.anchor && (Node.isScalar(ref.node) || Node.isCollection(ref.node))) {
@@ -17098,7 +17154,7 @@ var require_toJS = __commonJS({
17098
17154
  ctx.onCreate(res);
17099
17155
  return res;
17100
17156
  }
17101
- if (typeof value === "bigint" && !(ctx && ctx.keep))
17157
+ if (typeof value === "bigint" && !(ctx == null ? void 0 : ctx.keep))
17102
17158
  return Number(value);
17103
17159
  return value;
17104
17160
  }
@@ -17119,7 +17175,7 @@ var require_Scalar = __commonJS({
17119
17175
  this.value = value;
17120
17176
  }
17121
17177
  toJSON(arg, ctx) {
17122
- return ctx && ctx.keep ? this.value : toJS.toJS(this.value, arg, ctx);
17178
+ return (ctx == null ? void 0 : ctx.keep) ? this.value : toJS.toJS(this.value, arg, ctx);
17123
17179
  }
17124
17180
  toString() {
17125
17181
  return String(this.value);
@@ -17146,12 +17202,15 @@ var require_createNode = __commonJS({
17146
17202
  function findTagObject(value, tagName, tags) {
17147
17203
  if (tagName) {
17148
17204
  const match = tags.filter((t) => t.tag === tagName);
17149
- const tagObj = match.find((t) => !t.format) || match[0];
17205
+ const tagObj = match.find((t) => !t.format) ?? match[0];
17150
17206
  if (!tagObj)
17151
17207
  throw new Error(`Tag ${tagName} not found`);
17152
17208
  return tagObj;
17153
17209
  }
17154
- return tags.find((t) => t.identify && t.identify(value) && !t.format);
17210
+ return tags.find((t) => {
17211
+ var _a2;
17212
+ return ((_a2 = t.identify) == null ? void 0 : _a2.call(t, value)) && !t.format;
17213
+ });
17155
17214
  }
17156
17215
  function createNode(value, tagName, ctx) {
17157
17216
  var _a2, _b;
@@ -17160,11 +17219,11 @@ var require_createNode = __commonJS({
17160
17219
  if (Node.isNode(value))
17161
17220
  return value;
17162
17221
  if (Node.isPair(value)) {
17163
- const map2 = (_b = (_a2 = ctx.schema[Node.MAP]).createNode) === null || _b === void 0 ? void 0 : _b.call(_a2, ctx.schema, null, ctx);
17222
+ const map2 = (_b = (_a2 = ctx.schema[Node.MAP]).createNode) == null ? void 0 : _b.call(_a2, ctx.schema, null, ctx);
17164
17223
  map2.items.push(value);
17165
17224
  return map2;
17166
17225
  }
17167
- if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt === "function" && value instanceof BigInt) {
17226
+ if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt !== "undefined" && value instanceof BigInt) {
17168
17227
  value = value.valueOf();
17169
17228
  }
17170
17229
  const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx;
@@ -17180,12 +17239,13 @@ var require_createNode = __commonJS({
17180
17239
  sourceObjects.set(value, ref);
17181
17240
  }
17182
17241
  }
17183
- if (tagName && tagName.startsWith("!!"))
17242
+ if (tagName == null ? void 0 : tagName.startsWith("!!"))
17184
17243
  tagName = defaultTagPrefix + tagName.slice(2);
17185
17244
  let tagObj = findTagObject(value, tagName, schema.tags);
17186
17245
  if (!tagObj) {
17187
- if (value && typeof value.toJSON === "function")
17246
+ if (value && typeof value.toJSON === "function") {
17188
17247
  value = value.toJSON();
17248
+ }
17189
17249
  if (!value || typeof value !== "object") {
17190
17250
  const node2 = new Scalar.Scalar(value);
17191
17251
  if (ref)
@@ -17198,7 +17258,7 @@ var require_createNode = __commonJS({
17198
17258
  onTagObj(tagObj);
17199
17259
  delete ctx.onTagObj;
17200
17260
  }
17201
- const node = (tagObj === null || tagObj === void 0 ? void 0 : tagObj.createNode) ? tagObj.createNode(ctx.schema, value, ctx) : new Scalar.Scalar(value);
17261
+ const node = (tagObj == null ? void 0 : tagObj.createNode) ? tagObj.createNode(ctx.schema, value, ctx) : new Scalar.Scalar(value);
17202
17262
  if (tagName)
17203
17263
  node.tag = tagName;
17204
17264
  if (ref)
@@ -17336,7 +17396,7 @@ var require_stringifyComment = __commonJS({
17336
17396
  return comment.substring(1);
17337
17397
  return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
17338
17398
  }
17339
- var lineComment = (str, indent, comment) => comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
17399
+ var lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
17340
17400
  exports2.indentComment = indentComment;
17341
17401
  exports2.lineComment = lineComment;
17342
17402
  exports2.stringifyComment = stringifyComment;
@@ -17475,8 +17535,8 @@ var require_stringifyString = __commonJS({
17475
17535
  "use strict";
17476
17536
  var Scalar = require_Scalar();
17477
17537
  var foldFlowLines = require_foldFlowLines();
17478
- var getFoldOptions = (ctx) => ({
17479
- indentAtStart: ctx.indentAtStart,
17538
+ var getFoldOptions = (ctx, isBlock) => ({
17539
+ indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
17480
17540
  lineWidth: ctx.options.lineWidth,
17481
17541
  minContentWidth: ctx.options.minContentWidth
17482
17542
  });
@@ -17577,7 +17637,7 @@ var require_stringifyString = __commonJS({
17577
17637
  }
17578
17638
  }
17579
17639
  str = start ? str + json.slice(start) : json;
17580
- return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx));
17640
+ return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false));
17581
17641
  }
17582
17642
  function singleQuotedString(value, ctx) {
17583
17643
  if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value))
@@ -17585,7 +17645,7 @@ var require_stringifyString = __commonJS({
17585
17645
  const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
17586
17646
  const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&
17587
17647
  ${indent}`) + "'";
17588
- return ctx.implicitKey ? res : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx));
17648
+ return ctx.implicitKey ? res : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
17589
17649
  }
17590
17650
  function quotedString(value, ctx) {
17591
17651
  const { singleQuote } = ctx.options;
@@ -17667,38 +17727,42 @@ ${indent}`) + "'";
17667
17727
  ${indent}${start}${value}${end}`;
17668
17728
  }
17669
17729
  value = value.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent}`);
17670
- const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx));
17730
+ const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true));
17671
17731
  return `${header}
17672
17732
  ${indent}${body}`;
17673
17733
  }
17674
17734
  function plainString(item, ctx, onComment, onChompKeep) {
17675
17735
  const { type, value } = item;
17676
- const { actualString, implicitKey, indent, inFlow } = ctx;
17736
+ const { actualString, implicitKey, indent, indentStep, inFlow } = ctx;
17677
17737
  if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) {
17678
17738
  return quotedString(value, ctx);
17679
17739
  }
17680
17740
  if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
17681
- return implicitKey || inFlow || value.indexOf("\n") === -1 ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
17741
+ return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
17682
17742
  }
17683
- if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.indexOf("\n") !== -1) {
17743
+ if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.includes("\n")) {
17684
17744
  return blockString(item, ctx, onComment, onChompKeep);
17685
17745
  }
17686
- if (indent === "" && containsDocumentMarker(value)) {
17687
- ctx.forceBlockIndent = true;
17688
- return blockString(item, ctx, onComment, onChompKeep);
17746
+ if (containsDocumentMarker(value)) {
17747
+ if (indent === "") {
17748
+ ctx.forceBlockIndent = true;
17749
+ return blockString(item, ctx, onComment, onChompKeep);
17750
+ } else if (implicitKey && indent === indentStep) {
17751
+ return quotedString(value, ctx);
17752
+ }
17689
17753
  }
17690
17754
  const str = value.replace(/\n+/g, `$&
17691
17755
  ${indent}`);
17692
17756
  if (actualString) {
17693
17757
  const test = (tag) => {
17694
17758
  var _a2;
17695
- return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test) === null || _a2 === void 0 ? void 0 : _a2.test(str));
17759
+ return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test) == null ? void 0 : _a2.test(str));
17696
17760
  };
17697
17761
  const { compat, tags } = ctx.doc.schema;
17698
- if (tags.some(test) || (compat === null || compat === void 0 ? void 0 : compat.some(test)))
17762
+ if (tags.some(test) || (compat == null ? void 0 : compat.some(test)))
17699
17763
  return quotedString(value, ctx);
17700
17764
  }
17701
- return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx));
17765
+ return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
17702
17766
  }
17703
17767
  function stringifyString(item, ctx, onComment, onChompKeep) {
17704
17768
  const { implicitKey, inFlow } = ctx;
@@ -17755,6 +17819,7 @@ var require_stringify = __commonJS({
17755
17819
  doubleQuotedAsJSON: false,
17756
17820
  doubleQuotedMinMultiLineLength: 40,
17757
17821
  falseStr: "false",
17822
+ flowCollectionPadding: true,
17758
17823
  indentSeq: true,
17759
17824
  lineWidth: 80,
17760
17825
  minContentWidth: 20,
@@ -17778,6 +17843,7 @@ var require_stringify = __commonJS({
17778
17843
  return {
17779
17844
  anchors: /* @__PURE__ */ new Set(),
17780
17845
  doc,
17846
+ flowCollectionPadding: opt.flowCollectionPadding ? " " : "",
17781
17847
  indent: "",
17782
17848
  indentStep: typeof opt.indent === "number" ? " ".repeat(opt.indent) : " ",
17783
17849
  inFlow,
@@ -17785,23 +17851,27 @@ var require_stringify = __commonJS({
17785
17851
  };
17786
17852
  }
17787
17853
  function getTagObject(tags, item) {
17854
+ var _a2;
17788
17855
  if (item.tag) {
17789
17856
  const match = tags.filter((t) => t.tag === item.tag);
17790
17857
  if (match.length > 0)
17791
- return match.find((t) => t.format === item.format) || match[0];
17858
+ return match.find((t) => t.format === item.format) ?? match[0];
17792
17859
  }
17793
17860
  let tagObj = void 0;
17794
17861
  let obj2;
17795
17862
  if (Node.isScalar(item)) {
17796
17863
  obj2 = item.value;
17797
- const match = tags.filter((t) => t.identify && t.identify(obj2));
17798
- tagObj = match.find((t) => t.format === item.format) || match.find((t) => !t.format);
17864
+ const match = tags.filter((t) => {
17865
+ var _a3;
17866
+ return (_a3 = t.identify) == null ? void 0 : _a3.call(t, obj2);
17867
+ });
17868
+ tagObj = match.find((t) => t.format === item.format) ?? match.find((t) => !t.format);
17799
17869
  } else {
17800
17870
  obj2 = item;
17801
17871
  tagObj = tags.find((t) => t.nodeClass && obj2 instanceof t.nodeClass);
17802
17872
  }
17803
17873
  if (!tagObj) {
17804
- const name = obj2 && obj2.constructor ? obj2.constructor.name : typeof obj2;
17874
+ const name = ((_a2 = obj2 == null ? void 0 : obj2.constructor) == null ? void 0 : _a2.name) ?? typeof obj2;
17805
17875
  throw new Error(`Tag not resolved for ${name} value`);
17806
17876
  }
17807
17877
  return tagObj;
@@ -17815,7 +17885,7 @@ var require_stringify = __commonJS({
17815
17885
  anchors$1.add(anchor);
17816
17886
  props.push(`&${anchor}`);
17817
17887
  }
17818
- const tag = node.tag || (tagObj.default ? null : tagObj.tag);
17888
+ const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag;
17819
17889
  if (tag)
17820
17890
  props.push(doc.directives.tagString(tag));
17821
17891
  return props.join(" ");
@@ -17827,7 +17897,7 @@ var require_stringify = __commonJS({
17827
17897
  if (Node.isAlias(item)) {
17828
17898
  if (ctx.doc.directives)
17829
17899
  return item.toString(ctx);
17830
- if ((_a2 = ctx.resolvedAliases) === null || _a2 === void 0 ? void 0 : _a2.has(item)) {
17900
+ if ((_a2 = ctx.resolvedAliases) == null ? void 0 : _a2.has(item)) {
17831
17901
  throw new TypeError(`Cannot stringify circular structure without alias nodes`);
17832
17902
  } else {
17833
17903
  if (ctx.resolvedAliases)
@@ -17843,7 +17913,7 @@ var require_stringify = __commonJS({
17843
17913
  tagObj = getTagObject(ctx.doc.schema.tags, node);
17844
17914
  const props = stringifyProps(node, tagObj, ctx);
17845
17915
  if (props.length > 0)
17846
- ctx.indentAtStart = (ctx.indentAtStart || 0) + props.length + 1;
17916
+ ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
17847
17917
  const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : Node.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
17848
17918
  if (!props)
17849
17919
  return str;
@@ -17893,7 +17963,7 @@ var require_stringifyPair = __commonJS({
17893
17963
  if (allNullValues || value == null) {
17894
17964
  if (keyCommentDone && onComment)
17895
17965
  onComment();
17896
- return explicitKey ? `? ${str}` : str;
17966
+ return str === "" ? "?" : explicitKey ? `? ${str}` : str;
17897
17967
  }
17898
17968
  } else if (allNullValues && !simpleKeys || value == null && explicitKey) {
17899
17969
  str = `? ${str}`;
@@ -17915,40 +17985,64 @@ ${indent}:`;
17915
17985
  if (keyComment)
17916
17986
  str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
17917
17987
  }
17918
- let vcb = "";
17919
- let valueComment = null;
17988
+ let vsb, vcb, valueComment;
17920
17989
  if (Node.isNode(value)) {
17921
- if (value.spaceBefore)
17922
- vcb = "\n";
17923
- if (value.commentBefore) {
17924
- const cs = commentString(value.commentBefore);
17925
- vcb += `
17926
- ${stringifyComment.indentComment(cs, ctx.indent)}`;
17927
- }
17990
+ vsb = !!value.spaceBefore;
17991
+ vcb = value.commentBefore;
17928
17992
  valueComment = value.comment;
17929
- } else if (value && typeof value === "object") {
17930
- value = doc.createNode(value);
17993
+ } else {
17994
+ vsb = false;
17995
+ vcb = null;
17996
+ valueComment = null;
17997
+ if (value && typeof value === "object")
17998
+ value = doc.createNode(value);
17931
17999
  }
17932
18000
  ctx.implicitKey = false;
17933
18001
  if (!explicitKey && !keyComment && Node.isScalar(value))
17934
18002
  ctx.indentAtStart = str.length + 1;
17935
18003
  chompKeep = false;
17936
18004
  if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && Node.isSeq(value) && !value.flow && !value.tag && !value.anchor) {
17937
- ctx.indent = ctx.indent.substr(2);
18005
+ ctx.indent = ctx.indent.substring(2);
17938
18006
  }
17939
18007
  let valueCommentDone = false;
17940
18008
  const valueStr = stringify2.stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
17941
18009
  let ws = " ";
17942
- if (vcb || keyComment) {
17943
- ws = valueStr === "" && !ctx.inFlow ? vcb : `${vcb}
18010
+ if (keyComment || vsb || vcb) {
18011
+ ws = vsb ? "\n" : "";
18012
+ if (vcb) {
18013
+ const cs = commentString(vcb);
18014
+ ws += `
18015
+ ${stringifyComment.indentComment(cs, ctx.indent)}`;
18016
+ }
18017
+ if (valueStr === "" && !ctx.inFlow) {
18018
+ if (ws === "\n")
18019
+ ws = "\n\n";
18020
+ } else {
18021
+ ws += `
17944
18022
  ${ctx.indent}`;
18023
+ }
17945
18024
  } else if (!explicitKey && Node.isCollection(value)) {
17946
- const flow = valueStr[0] === "[" || valueStr[0] === "{";
17947
- if (!flow || valueStr.includes("\n"))
17948
- ws = `
18025
+ const vs0 = valueStr[0];
18026
+ const nl0 = valueStr.indexOf("\n");
18027
+ const hasNewline = nl0 !== -1;
18028
+ const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0;
18029
+ if (hasNewline || !flow) {
18030
+ let hasPropsLine = false;
18031
+ if (hasNewline && (vs0 === "&" || vs0 === "!")) {
18032
+ let sp0 = valueStr.indexOf(" ");
18033
+ if (vs0 === "&" && sp0 !== -1 && sp0 < nl0 && valueStr[sp0 + 1] === "!") {
18034
+ sp0 = valueStr.indexOf(" ", sp0 + 1);
18035
+ }
18036
+ if (sp0 === -1 || nl0 < sp0)
18037
+ hasPropsLine = true;
18038
+ }
18039
+ if (!hasPropsLine)
18040
+ ws = `
17949
18041
  ${ctx.indent}`;
17950
- } else if (valueStr === "" || valueStr[0] === "\n")
18042
+ }
18043
+ } else if (valueStr === "" || valueStr[0] === "\n") {
17951
18044
  ws = "";
18045
+ }
17952
18046
  str += ws + valueStr;
17953
18047
  if (ctx.inFlow) {
17954
18048
  if (valueCommentDone && onComment)
@@ -17996,7 +18090,7 @@ var require_addPairToJSMap = __commonJS({
17996
18090
  var toJS = require_toJS();
17997
18091
  var MERGE_KEY = "<<";
17998
18092
  function addPairToJSMap(ctx, map2, { key, value }) {
17999
- if (ctx && ctx.doc.schema.merge && isMergeKey(key)) {
18093
+ if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) {
18000
18094
  value = Node.isAlias(value) ? value.resolve(ctx.doc) : value;
18001
18095
  if (Node.isSeq(value))
18002
18096
  for (const it of value.items)
@@ -18107,11 +18201,11 @@ var require_Pair = __commonJS({
18107
18201
  return new Pair(key, value);
18108
18202
  }
18109
18203
  toJSON(_45, ctx) {
18110
- const pair = ctx && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
18204
+ const pair = (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
18111
18205
  return addPairToJSMap.addPairToJSMap(ctx, pair, this);
18112
18206
  }
18113
18207
  toString(ctx, onComment, onChompKeep) {
18114
- return ctx && ctx.doc ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
18208
+ return (ctx == null ? void 0 : ctx.doc) ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
18115
18209
  }
18116
18210
  };
18117
18211
  exports2.Pair = Pair;
@@ -18119,23 +18213,6 @@ var require_Pair = __commonJS({
18119
18213
  }
18120
18214
  });
18121
18215
 
18122
- // ../../node_modules/yaml/dist/options.js
18123
- var require_options = __commonJS({
18124
- "../../node_modules/yaml/dist/options.js"(exports2) {
18125
- "use strict";
18126
- var defaultOptions = {
18127
- intAsBigInt: false,
18128
- keepSourceTokens: false,
18129
- logLevel: "warn",
18130
- prettyErrors: true,
18131
- strict: true,
18132
- uniqueKeys: true,
18133
- version: "1.2"
18134
- };
18135
- exports2.defaultOptions = defaultOptions;
18136
- }
18137
- });
18138
-
18139
18216
  // ../../node_modules/yaml/dist/stringify/stringifyCollection.js
18140
18217
  var require_stringifyCollection = __commonJS({
18141
18218
  "../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
@@ -18145,8 +18222,7 @@ var require_stringifyCollection = __commonJS({
18145
18222
  var stringify2 = require_stringify();
18146
18223
  var stringifyComment = require_stringifyComment();
18147
18224
  function stringifyCollection(collection, ctx, options3) {
18148
- var _a2;
18149
- const flow = (_a2 = ctx.inFlow) !== null && _a2 !== void 0 ? _a2 : collection.flow;
18225
+ const flow = ctx.inFlow ?? collection.flow;
18150
18226
  const stringify3 = flow ? stringifyFlowCollection : stringifyBlockCollection;
18151
18227
  return stringify3(collection, ctx, options3);
18152
18228
  }
@@ -18200,7 +18276,7 @@ ${indent}${line}` : "\n";
18200
18276
  return str;
18201
18277
  }
18202
18278
  function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemIndent, onComment }) {
18203
- const { indent, indentStep, options: { commentString } } = ctx;
18279
+ const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
18204
18280
  itemIndent += indentStep;
18205
18281
  const itemCtx = Object.assign({}, ctx, {
18206
18282
  indent: itemIndent,
@@ -18267,11 +18343,11 @@ ${indentStep}${indent}${line}` : "\n";
18267
18343
  str += `
18268
18344
  ${indent}${end}`;
18269
18345
  } else {
18270
- str = `${start} ${lines.join(" ")} ${end}`;
18346
+ str = `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
18271
18347
  }
18272
18348
  }
18273
18349
  if (comment) {
18274
- str += stringifyComment.lineComment(str, commentString(comment), indent);
18350
+ str += stringifyComment.lineComment(str, indent, commentString(comment));
18275
18351
  if (onComment)
18276
18352
  onComment();
18277
18353
  }
@@ -18312,23 +18388,24 @@ var require_YAMLMap = __commonJS({
18312
18388
  return void 0;
18313
18389
  }
18314
18390
  var YAMLMap = class extends Collection.Collection {
18391
+ static get tagName() {
18392
+ return "tag:yaml.org,2002:map";
18393
+ }
18315
18394
  constructor(schema) {
18316
18395
  super(Node.MAP, schema);
18317
18396
  this.items = [];
18318
18397
  }
18319
- static get tagName() {
18320
- return "tag:yaml.org,2002:map";
18321
- }
18322
18398
  add(pair, overwrite) {
18399
+ var _a2;
18323
18400
  let _pair;
18324
18401
  if (Node.isPair(pair))
18325
18402
  _pair = pair;
18326
18403
  else if (!pair || typeof pair !== "object" || !("key" in pair)) {
18327
- _pair = new Pair.Pair(pair, pair.value);
18404
+ _pair = new Pair.Pair(pair, pair == null ? void 0 : pair.value);
18328
18405
  } else
18329
18406
  _pair = new Pair.Pair(pair.key, pair.value);
18330
18407
  const prev = findPair(this.items, _pair.key);
18331
- const sortEntries = this.schema && this.schema.sortMapEntries;
18408
+ const sortEntries = (_a2 = this.schema) == null ? void 0 : _a2.sortMapEntries;
18332
18409
  if (prev) {
18333
18410
  if (!overwrite)
18334
18411
  throw new Error(`Key ${_pair.key} already set`);
@@ -18355,8 +18432,8 @@ var require_YAMLMap = __commonJS({
18355
18432
  }
18356
18433
  get(key, keepScalar) {
18357
18434
  const it = findPair(this.items, key);
18358
- const node = it && it.value;
18359
- return !keepScalar && Node.isScalar(node) ? node.value : node;
18435
+ const node = it == null ? void 0 : it.value;
18436
+ return (!keepScalar && Node.isScalar(node) ? node.value : node) ?? void 0;
18360
18437
  }
18361
18438
  has(key) {
18362
18439
  return !!findPair(this.items, key);
@@ -18365,8 +18442,8 @@ var require_YAMLMap = __commonJS({
18365
18442
  this.add(new Pair.Pair(key, value), true);
18366
18443
  }
18367
18444
  toJSON(_45, ctx, Type) {
18368
- const map2 = Type ? new Type() : ctx && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
18369
- if (ctx && ctx.onCreate)
18445
+ const map2 = Type ? new Type() : (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
18446
+ if (ctx == null ? void 0 : ctx.onCreate)
18370
18447
  ctx.onCreate(map2);
18371
18448
  for (const item of this.items)
18372
18449
  addPairToJSMap.addPairToJSMap(ctx, map2, item);
@@ -18451,13 +18528,13 @@ var require_YAMLSeq = __commonJS({
18451
18528
  var Scalar = require_Scalar();
18452
18529
  var toJS = require_toJS();
18453
18530
  var YAMLSeq = class extends Collection.Collection {
18531
+ static get tagName() {
18532
+ return "tag:yaml.org,2002:seq";
18533
+ }
18454
18534
  constructor(schema) {
18455
18535
  super(Node.SEQ, schema);
18456
18536
  this.items = [];
18457
18537
  }
18458
- static get tagName() {
18459
- return "tag:yaml.org,2002:seq";
18460
- }
18461
18538
  add(value) {
18462
18539
  this.items.push(value);
18463
18540
  }
@@ -18491,7 +18568,7 @@ var require_YAMLSeq = __commonJS({
18491
18568
  }
18492
18569
  toJSON(_45, ctx) {
18493
18570
  const seq2 = [];
18494
- if (ctx && ctx.onCreate)
18571
+ if (ctx == null ? void 0 : ctx.onCreate)
18495
18572
  ctx.onCreate(seq2);
18496
18573
  let i = 0;
18497
18574
  for (const item of this.items)
@@ -18589,7 +18666,7 @@ var require_null = __commonJS({
18589
18666
  tag: "tag:yaml.org,2002:null",
18590
18667
  test: /^(?:~|[Nn]ull|NULL)?$/,
18591
18668
  resolve: () => new Scalar.Scalar(null),
18592
- stringify: ({ source }, ctx) => source && nullTag.test.test(source) ? source : ctx.options.nullStr
18669
+ stringify: ({ source }, ctx) => typeof source === "string" && nullTag.test.test(source) ? source : ctx.options.nullStr
18593
18670
  };
18594
18671
  exports2.nullTag = nullTag;
18595
18672
  }
@@ -18909,7 +18986,7 @@ var require_pairs = __commonJS({
18909
18986
  pair.key.commentBefore = pair.key.commentBefore ? `${item.commentBefore}
18910
18987
  ${pair.key.commentBefore}` : item.commentBefore;
18911
18988
  if (item.comment) {
18912
- const cn = pair.value || pair.key;
18989
+ const cn = pair.value ?? pair.key;
18913
18990
  cn.comment = cn.comment ? `${item.comment}
18914
18991
  ${cn.comment}` : item.comment;
18915
18992
  }
@@ -18987,7 +19064,7 @@ var require_omap = __commonJS({
18987
19064
  if (!ctx)
18988
19065
  return super.toJSON(_45);
18989
19066
  const map2 = /* @__PURE__ */ new Map();
18990
- if (ctx && ctx.onCreate)
19067
+ if (ctx == null ? void 0 : ctx.onCreate)
18991
19068
  ctx.onCreate(map2);
18992
19069
  for (const pair of this.items) {
18993
19070
  let key, value;
@@ -19213,7 +19290,7 @@ var require_set = __commonJS({
19213
19290
  let pair;
19214
19291
  if (Node.isPair(key))
19215
19292
  pair = key;
19216
- else if (typeof key === "object" && "key" in key && "value" in key && key.value === null)
19293
+ else if (key && typeof key === "object" && "key" in key && "value" in key && key.value === null)
19217
19294
  pair = new Pair.Pair(key.key, null);
19218
19295
  else
19219
19296
  pair = new Pair.Pair(key, null);
@@ -19508,11 +19585,11 @@ var require_Schema = __commonJS({
19508
19585
  this.name = typeof schema === "string" && schema || "core";
19509
19586
  this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
19510
19587
  this.tags = tags.getTags(customTags, this.name);
19511
- this.toStringOptions = toStringDefaults || null;
19588
+ this.toStringOptions = toStringDefaults ?? null;
19512
19589
  Object.defineProperty(this, Node.MAP, { value: map2.map });
19513
19590
  Object.defineProperty(this, Node.SCALAR, { value: string.string });
19514
19591
  Object.defineProperty(this, Node.SEQ, { value: seq2.seq });
19515
- this.sortMapEntries = sortMapEntries === true ? sortMapEntriesByKey : sortMapEntries || null;
19592
+ this.sortMapEntries = typeof sortMapEntries === "function" ? sortMapEntries : sortMapEntries === true ? sortMapEntriesByKey : null;
19516
19593
  }
19517
19594
  clone() {
19518
19595
  const copy3 = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this));
@@ -19532,6 +19609,7 @@ var require_stringifyDocument = __commonJS({
19532
19609
  var stringify2 = require_stringify();
19533
19610
  var stringifyComment = require_stringifyComment();
19534
19611
  function stringifyDocument(doc, options3) {
19612
+ var _a2;
19535
19613
  const lines = [];
19536
19614
  let hasDirectives = options3.directives === true;
19537
19615
  if (options3.directives !== false && doc.directives) {
@@ -19539,7 +19617,7 @@ var require_stringifyDocument = __commonJS({
19539
19617
  if (dir2) {
19540
19618
  lines.push(dir2);
19541
19619
  hasDirectives = true;
19542
- } else if (doc.directives.marker)
19620
+ } else if (doc.directives.docStart)
19543
19621
  hasDirectives = true;
19544
19622
  }
19545
19623
  if (hasDirectives)
@@ -19576,13 +19654,27 @@ var require_stringifyDocument = __commonJS({
19576
19654
  } else {
19577
19655
  lines.push(stringify2.stringify(doc.contents, ctx));
19578
19656
  }
19579
- let dc = doc.comment;
19580
- if (dc && chompKeep)
19581
- dc = dc.replace(/^\n+/, "");
19582
- if (dc) {
19583
- if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "")
19584
- lines.push("");
19585
- lines.push(stringifyComment.indentComment(commentString(dc), ""));
19657
+ if ((_a2 = doc.directives) == null ? void 0 : _a2.docEnd) {
19658
+ if (doc.comment) {
19659
+ const cs = commentString(doc.comment);
19660
+ if (cs.includes("\n")) {
19661
+ lines.push("...");
19662
+ lines.push(stringifyComment.indentComment(cs, ""));
19663
+ } else {
19664
+ lines.push(`... ${cs}`);
19665
+ }
19666
+ } else {
19667
+ lines.push("...");
19668
+ }
19669
+ } else {
19670
+ let dc = doc.comment;
19671
+ if (dc && chompKeep)
19672
+ dc = dc.replace(/^\n+/, "");
19673
+ if (dc) {
19674
+ if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "")
19675
+ lines.push("");
19676
+ lines.push(stringifyComment.indentComment(commentString(dc), ""));
19677
+ }
19586
19678
  }
19587
19679
  return lines.join("\n") + "\n";
19588
19680
  }
@@ -19649,7 +19741,6 @@ var require_Document = __commonJS({
19649
19741
  var Node = require_Node();
19650
19742
  var Pair = require_Pair();
19651
19743
  var toJS = require_toJS();
19652
- var options3 = require_options();
19653
19744
  var Schema = require_Schema();
19654
19745
  var stringify2 = require_stringify();
19655
19746
  var stringifyDocument = require_stringifyDocument();
@@ -19658,7 +19749,7 @@ var require_Document = __commonJS({
19658
19749
  var createNode = require_createNode();
19659
19750
  var directives = require_directives();
19660
19751
  var Document = class {
19661
- constructor(value, replacer, options$1) {
19752
+ constructor(value, replacer, options3) {
19662
19753
  this.commentBefore = null;
19663
19754
  this.comment = null;
19664
19755
  this.errors = [];
@@ -19667,24 +19758,32 @@ var require_Document = __commonJS({
19667
19758
  let _replacer = null;
19668
19759
  if (typeof replacer === "function" || Array.isArray(replacer)) {
19669
19760
  _replacer = replacer;
19670
- } else if (options$1 === void 0 && replacer) {
19671
- options$1 = replacer;
19761
+ } else if (options3 === void 0 && replacer) {
19762
+ options3 = replacer;
19672
19763
  replacer = void 0;
19673
19764
  }
19674
- const opt = Object.assign({}, options3.defaultOptions, options$1);
19765
+ const opt = Object.assign({
19766
+ intAsBigInt: false,
19767
+ keepSourceTokens: false,
19768
+ logLevel: "warn",
19769
+ prettyErrors: true,
19770
+ strict: true,
19771
+ uniqueKeys: true,
19772
+ version: "1.2"
19773
+ }, options3);
19675
19774
  this.options = opt;
19676
19775
  let { version } = opt;
19677
- if (options$1 === null || options$1 === void 0 ? void 0 : options$1.directives) {
19678
- this.directives = options$1.directives.atDocument();
19776
+ if (options3 == null ? void 0 : options3._directives) {
19777
+ this.directives = options3._directives.atDocument();
19679
19778
  if (this.directives.yaml.explicit)
19680
19779
  version = this.directives.yaml.version;
19681
19780
  } else
19682
19781
  this.directives = new directives.Directives({ version });
19683
- this.setSchema(version, options$1);
19782
+ this.setSchema(version, options3);
19684
19783
  if (value === void 0)
19685
19784
  this.contents = null;
19686
19785
  else {
19687
- this.contents = this.createNode(value, _replacer, options$1);
19786
+ this.contents = this.createNode(value, _replacer, options3);
19688
19787
  }
19689
19788
  }
19690
19789
  clone() {
@@ -19719,7 +19818,7 @@ var require_Document = __commonJS({
19719
19818
  }
19720
19819
  return new Alias.Alias(node.anchor);
19721
19820
  }
19722
- createNode(value, replacer, options4) {
19821
+ createNode(value, replacer, options3) {
19723
19822
  let _replacer = void 0;
19724
19823
  if (typeof replacer === "function") {
19725
19824
  value = replacer.call({ "": value }, "", value);
@@ -19730,15 +19829,15 @@ var require_Document = __commonJS({
19730
19829
  if (asStr.length > 0)
19731
19830
  replacer = replacer.concat(asStr);
19732
19831
  _replacer = replacer;
19733
- } else if (options4 === void 0 && replacer) {
19734
- options4 = replacer;
19832
+ } else if (options3 === void 0 && replacer) {
19833
+ options3 = replacer;
19735
19834
  replacer = void 0;
19736
19835
  }
19737
- const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options4 || {};
19836
+ const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options3 ?? {};
19738
19837
  const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(this, anchorPrefix || "a");
19739
19838
  const ctx = {
19740
- aliasDuplicateObjects: aliasDuplicateObjects !== null && aliasDuplicateObjects !== void 0 ? aliasDuplicateObjects : true,
19741
- keepUndefined: keepUndefined !== null && keepUndefined !== void 0 ? keepUndefined : false,
19839
+ aliasDuplicateObjects: aliasDuplicateObjects ?? true,
19840
+ keepUndefined: keepUndefined ?? false,
19742
19841
  onAnchor,
19743
19842
  onTagObj,
19744
19843
  replacer: _replacer,
@@ -19751,9 +19850,9 @@ var require_Document = __commonJS({
19751
19850
  setAnchors();
19752
19851
  return node;
19753
19852
  }
19754
- createPair(key, value, options4 = {}) {
19755
- const k = this.createNode(key, null, options4);
19756
- const v = this.createNode(value, null, options4);
19853
+ createPair(key, value, options3 = {}) {
19854
+ const k = this.createNode(key, null, options3);
19855
+ const v = this.createNode(value, null, options3);
19757
19856
  return new Pair.Pair(k, v);
19758
19857
  }
19759
19858
  delete(key) {
@@ -19800,7 +19899,7 @@ var require_Document = __commonJS({
19800
19899
  this.contents.setIn(path5, value);
19801
19900
  }
19802
19901
  }
19803
- setSchema(version, options4 = {}) {
19902
+ setSchema(version, options3 = {}) {
19804
19903
  if (typeof version === "number")
19805
19904
  version = String(version);
19806
19905
  let opt;
@@ -19813,10 +19912,11 @@ var require_Document = __commonJS({
19813
19912
  opt = { merge: true, resolveKnownTags: false, schema: "yaml-1.1" };
19814
19913
  break;
19815
19914
  case "1.2":
19915
+ case "next":
19816
19916
  if (this.directives)
19817
- this.directives.yaml.version = "1.2";
19917
+ this.directives.yaml.version = version;
19818
19918
  else
19819
- this.directives = new directives.Directives({ version: "1.2" });
19919
+ this.directives = new directives.Directives({ version });
19820
19920
  opt = { merge: false, resolveKnownTags: true, schema: "core" };
19821
19921
  break;
19822
19922
  case null:
@@ -19829,10 +19929,10 @@ var require_Document = __commonJS({
19829
19929
  throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`);
19830
19930
  }
19831
19931
  }
19832
- if (options4.schema instanceof Object)
19833
- this.schema = options4.schema;
19932
+ if (options3.schema instanceof Object)
19933
+ this.schema = options3.schema;
19834
19934
  else if (opt)
19835
- this.schema = new Schema.Schema(Object.assign(opt, options4));
19935
+ this.schema = new Schema.Schema(Object.assign(opt, options3));
19836
19936
  else
19837
19937
  throw new Error(`With a null YAML version, the { schema: Schema } option is required`);
19838
19938
  }
@@ -19846,7 +19946,7 @@ var require_Document = __commonJS({
19846
19946
  maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100,
19847
19947
  stringify: stringify2.stringify
19848
19948
  };
19849
- const res = toJS.toJS(this.contents, jsonArg || "", ctx);
19949
+ const res = toJS.toJS(this.contents, jsonArg ?? "", ctx);
19850
19950
  if (typeof onAnchor === "function")
19851
19951
  for (const { count, res: res2 } of ctx.anchors.values())
19852
19952
  onAnchor(res2, count);
@@ -19855,14 +19955,14 @@ var require_Document = __commonJS({
19855
19955
  toJSON(jsonArg, onAnchor) {
19856
19956
  return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor });
19857
19957
  }
19858
- toString(options4 = {}) {
19958
+ toString(options3 = {}) {
19859
19959
  if (this.errors.length > 0)
19860
19960
  throw new Error("Document with errors cannot be stringified");
19861
- if ("indent" in options4 && (!Number.isInteger(options4.indent) || Number(options4.indent) <= 0)) {
19862
- const s = JSON.stringify(options4.indent);
19961
+ if ("indent" in options3 && (!Number.isInteger(options3.indent) || Number(options3.indent) <= 0)) {
19962
+ const s = JSON.stringify(options3.indent);
19863
19963
  throw new Error(`"indent" option must be a positive integer, not ${s}`);
19864
19964
  }
19865
- return stringifyDocument.stringifyDocument(this, options4);
19965
+ return stringifyDocument.stringifyDocument(this, options3);
19866
19966
  }
19867
19967
  };
19868
19968
  function assertCollection(contents) {
@@ -19922,7 +20022,7 @@ var require_errors2 = __commonJS({
19922
20022
  let count = 1;
19923
20023
  const end = error3.linePos[1];
19924
20024
  if (end && end.line === line && end.col > col) {
19925
- count = Math.min(end.col - col, 80 - ci);
20025
+ count = Math.max(1, Math.min(end.col - col, 80 - ci));
19926
20026
  }
19927
20027
  const pointer = " ".repeat(ci) + "^".repeat(count);
19928
20028
  error3.message += `:
@@ -19950,6 +20050,7 @@ var require_resolve_props = __commonJS({
19950
20050
  let comment = "";
19951
20051
  let commentSep = "";
19952
20052
  let hasNewline = false;
20053
+ let hasNewlineAfterProp = false;
19953
20054
  let reqSpace = false;
19954
20055
  let anchor = null;
19955
20056
  let tag = null;
@@ -19990,11 +20091,15 @@ var require_resolve_props = __commonJS({
19990
20091
  commentSep += token2.source;
19991
20092
  atNewline = true;
19992
20093
  hasNewline = true;
20094
+ if (anchor || tag)
20095
+ hasNewlineAfterProp = true;
19993
20096
  hasSpace = true;
19994
20097
  break;
19995
20098
  case "anchor":
19996
20099
  if (anchor)
19997
20100
  onError(token2, "MULTIPLE_ANCHORS", "A node can have at most one anchor");
20101
+ if (token2.source.endsWith(":"))
20102
+ onError(token2.offset + token2.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
19998
20103
  anchor = token2;
19999
20104
  if (start === null)
20000
20105
  start = token2.offset;
@@ -20017,7 +20122,7 @@ var require_resolve_props = __commonJS({
20017
20122
  if (anchor || tag)
20018
20123
  onError(token2, "BAD_PROP_ORDER", `Anchors and tags must be after the ${token2.source} indicator`);
20019
20124
  if (found)
20020
- onError(token2, "UNEXPECTED_TOKEN", `Unexpected ${token2.source} in ${flow || "collection"}`);
20125
+ onError(token2, "UNEXPECTED_TOKEN", `Unexpected ${token2.source} in ${flow ?? "collection"}`);
20021
20126
  found = token2;
20022
20127
  atNewline = false;
20023
20128
  hasSpace = false;
@@ -20047,10 +20152,11 @@ var require_resolve_props = __commonJS({
20047
20152
  spaceBefore,
20048
20153
  comment,
20049
20154
  hasNewline,
20155
+ hasNewlineAfterProp,
20050
20156
  anchor,
20051
20157
  tag,
20052
20158
  end,
20053
- start: start !== null && start !== void 0 ? start : end
20159
+ start: start ?? end
20054
20160
  };
20055
20161
  }
20056
20162
  exports2.resolveProps = resolveProps;
@@ -20105,7 +20211,7 @@ var require_util_flow_indent_check = __commonJS({
20105
20211
  "use strict";
20106
20212
  var utilContainsNewline = require_util_contains_newline();
20107
20213
  function flowIndentCheck(indent, fc, onError) {
20108
- if ((fc === null || fc === void 0 ? void 0 : fc.type) === "flow-collection") {
20214
+ if ((fc == null ? void 0 : fc.type) === "flow-collection") {
20109
20215
  const end = fc.end[0];
20110
20216
  if (end.indent === indent && (end.source === "]" || end.source === "}") && utilContainsNewline.containsNewline(fc)) {
20111
20217
  const msg = "Flow end indicator should be more indented than parent";
@@ -20150,11 +20256,12 @@ var require_resolve_block_map = __commonJS({
20150
20256
  if (ctx.atRoot)
20151
20257
  ctx.atRoot = false;
20152
20258
  let offset = bm.offset;
20259
+ let commentEnd = null;
20153
20260
  for (const collItem of bm.items) {
20154
20261
  const { start, key, sep, value } = collItem;
20155
20262
  const keyProps = resolveProps.resolveProps(start, {
20156
20263
  indicator: "explicit-key-ind",
20157
- next: key || (sep === null || sep === void 0 ? void 0 : sep[0]),
20264
+ next: key ?? (sep == null ? void 0 : sep[0]),
20158
20265
  offset,
20159
20266
  onError,
20160
20267
  startOnNewline: true
@@ -20168,6 +20275,7 @@ var require_resolve_block_map = __commonJS({
20168
20275
  onError(offset, "BAD_INDENT", startColMsg);
20169
20276
  }
20170
20277
  if (!keyProps.anchor && !keyProps.tag && !sep) {
20278
+ commentEnd = keyProps.end;
20171
20279
  if (keyProps.comment) {
20172
20280
  if (map2.comment)
20173
20281
  map2.comment += "\n" + keyProps.comment;
@@ -20176,17 +20284,19 @@ var require_resolve_block_map = __commonJS({
20176
20284
  }
20177
20285
  continue;
20178
20286
  }
20179
- } else if (((_a2 = keyProps.found) === null || _a2 === void 0 ? void 0 : _a2.indent) !== bm.indent)
20287
+ if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) {
20288
+ onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
20289
+ }
20290
+ } else if (((_a2 = keyProps.found) == null ? void 0 : _a2.indent) !== bm.indent) {
20180
20291
  onError(offset, "BAD_INDENT", startColMsg);
20181
- if (implicitKey && utilContainsNewline.containsNewline(key))
20182
- onError(key, "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
20292
+ }
20183
20293
  const keyStart = keyProps.end;
20184
20294
  const keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
20185
20295
  if (ctx.schema.compat)
20186
20296
  utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError);
20187
20297
  if (utilMapIncludes.mapIncludes(ctx, map2.items, keyNode))
20188
20298
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
20189
- const valueProps = resolveProps.resolveProps(sep || [], {
20299
+ const valueProps = resolveProps.resolveProps(sep ?? [], {
20190
20300
  indicator: "map-value-ind",
20191
20301
  next: value,
20192
20302
  offset: keyNode.range[2],
@@ -20196,7 +20306,7 @@ var require_resolve_block_map = __commonJS({
20196
20306
  offset = valueProps.end;
20197
20307
  if (valueProps.found) {
20198
20308
  if (implicitKey) {
20199
- if ((value === null || value === void 0 ? void 0 : value.type) === "block-map" && !valueProps.hasNewline)
20309
+ if ((value == null ? void 0 : value.type) === "block-map" && !valueProps.hasNewline)
20200
20310
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings");
20201
20311
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
20202
20312
  onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
@@ -20224,7 +20334,9 @@ var require_resolve_block_map = __commonJS({
20224
20334
  map2.items.push(pair);
20225
20335
  }
20226
20336
  }
20227
- map2.range = [bm.offset, offset, offset];
20337
+ if (commentEnd && commentEnd < offset)
20338
+ onError(commentEnd, "IMPOSSIBLE", "Map comment with trailing content");
20339
+ map2.range = [bm.offset, offset, commentEnd ?? offset];
20228
20340
  return map2;
20229
20341
  }
20230
20342
  exports2.resolveBlockMap = resolveBlockMap;
@@ -20243,6 +20355,7 @@ var require_resolve_block_seq = __commonJS({
20243
20355
  if (ctx.atRoot)
20244
20356
  ctx.atRoot = false;
20245
20357
  let offset = bs.offset;
20358
+ let commentEnd = null;
20246
20359
  for (const { start, value } of bs.items) {
20247
20360
  const props = resolveProps.resolveProps(start, {
20248
20361
  indicator: "seq-item-ind",
@@ -20251,26 +20364,26 @@ var require_resolve_block_seq = __commonJS({
20251
20364
  onError,
20252
20365
  startOnNewline: true
20253
20366
  });
20254
- offset = props.end;
20255
20367
  if (!props.found) {
20256
20368
  if (props.anchor || props.tag || value) {
20257
20369
  if (value && value.type === "block-seq")
20258
- onError(offset, "BAD_INDENT", "All sequence items must start at the same column");
20370
+ onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
20259
20371
  else
20260
20372
  onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
20261
20373
  } else {
20374
+ commentEnd = props.end;
20262
20375
  if (props.comment)
20263
20376
  seq2.comment = props.comment;
20264
20377
  continue;
20265
20378
  }
20266
20379
  }
20267
- const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, offset, start, null, props, onError);
20380
+ const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
20268
20381
  if (ctx.schema.compat)
20269
20382
  utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
20270
20383
  offset = node.range[2];
20271
20384
  seq2.items.push(node);
20272
20385
  }
20273
- seq2.range = [bs.offset, offset, offset];
20386
+ seq2.range = [bs.offset, offset, commentEnd ?? offset];
20274
20387
  return seq2;
20275
20388
  }
20276
20389
  exports2.resolveBlockSeq = resolveBlockSeq;
@@ -20349,7 +20462,7 @@ var require_resolve_flow_collection = __commonJS({
20349
20462
  const props = resolveProps.resolveProps(start, {
20350
20463
  flow: fcName,
20351
20464
  indicator: "explicit-key-ind",
20352
- next: key || (sep === null || sep === void 0 ? void 0 : sep[0]),
20465
+ next: key ?? (sep == null ? void 0 : sep[0]),
20353
20466
  offset,
20354
20467
  onError,
20355
20468
  startOnNewline: false
@@ -20396,7 +20509,7 @@ var require_resolve_flow_collection = __commonJS({
20396
20509
  if (prevItemComment) {
20397
20510
  let prev = coll.items[coll.items.length - 1];
20398
20511
  if (Node.isPair(prev))
20399
- prev = prev.value || prev.key;
20512
+ prev = prev.value ?? prev.key;
20400
20513
  if (prev.comment)
20401
20514
  prev.comment += "\n" + prevItemComment;
20402
20515
  else
@@ -20416,7 +20529,7 @@ var require_resolve_flow_collection = __commonJS({
20416
20529
  const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
20417
20530
  if (isBlock(key))
20418
20531
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
20419
- const valueProps = resolveProps.resolveProps(sep || [], {
20532
+ const valueProps = resolveProps.resolveProps(sep ?? [], {
20420
20533
  flow: fcName,
20421
20534
  indicator: "map-value-ind",
20422
20535
  next: value,
@@ -20553,7 +20666,7 @@ var require_compose_collection = __commonJS({
20553
20666
  const node = Node.isNode(res) ? res : new Scalar.Scalar(res);
20554
20667
  node.range = coll.range;
20555
20668
  node.tag = tagName;
20556
- if (tag === null || tag === void 0 ? void 0 : tag.format)
20669
+ if (tag == null ? void 0 : tag.format)
20557
20670
  node.format = tag.format;
20558
20671
  return node;
20559
20672
  }
@@ -20581,8 +20694,8 @@ var require_resolve_block_scalar = __commonJS({
20581
20694
  else
20582
20695
  break;
20583
20696
  }
20584
- if (!scalar.source || chompStart === 0) {
20585
- const value2 = header.chomp === "+" ? "\n".repeat(Math.max(0, lines.length - 1)) : "";
20697
+ if (chompStart === 0) {
20698
+ const value2 = header.chomp === "+" && lines.length > 0 ? "\n".repeat(Math.max(1, lines.length - 1)) : "";
20586
20699
  let end2 = start + header.length;
20587
20700
  if (scalar.source)
20588
20701
  end2 += scalar.source.length;
@@ -20608,6 +20721,10 @@ var require_resolve_block_scalar = __commonJS({
20608
20721
  }
20609
20722
  offset += indent.length + content.length + 1;
20610
20723
  }
20724
+ for (let i = lines.length - 1; i >= chompStart; --i) {
20725
+ if (lines[i][0].length > trimIndent)
20726
+ chompStart = i + 1;
20727
+ }
20611
20728
  let value = "";
20612
20729
  let sep = "";
20613
20730
  let prevMoreIndented = false;
@@ -20724,7 +20841,7 @@ var require_resolve_block_scalar = __commonJS({
20724
20841
  const split = source.split(/\n( *)/);
20725
20842
  const first = split[0];
20726
20843
  const m = first.match(/^( *)/);
20727
- const line0 = m && m[1] ? [m[1], first.slice(m[1].length)] : ["", first];
20844
+ const line0 = (m == null ? void 0 : m[1]) ? [m[1], first.slice(m[1].length)] : ["", first];
20728
20845
  const lines = [line0];
20729
20846
  for (let i = 1; i < split.length; i += 2)
20730
20847
  lines.push([split[i], split[i + 1]]);
@@ -20839,7 +20956,7 @@ var require_resolve_flow_scalar = __commonJS({
20839
20956
  const last = /[ \t]*(.*)/sy;
20840
20957
  last.lastIndex = pos;
20841
20958
  match = last.exec(source);
20842
- return res + sep + (match && match[1] || "");
20959
+ return res + sep + ((match == null ? void 0 : match[1]) ?? "");
20843
20960
  }
20844
20961
  function doubleQuotedValue(source, onError) {
20845
20962
  let res = "";
@@ -20952,11 +21069,11 @@ var require_compose_scalar = __commonJS({
20952
21069
  const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token2.type === "scalar" ? findScalarTagByTest(ctx, value, token2, onError) : ctx.schema[Node.SCALAR];
20953
21070
  let scalar;
20954
21071
  try {
20955
- const res = tag.resolve(value, (msg) => onError(tagToken || token2, "TAG_RESOLVE_FAILED", msg), ctx.options);
21072
+ const res = tag.resolve(value, (msg) => onError(tagToken ?? token2, "TAG_RESOLVE_FAILED", msg), ctx.options);
20956
21073
  scalar = Node.isScalar(res) ? res : new Scalar.Scalar(res);
20957
21074
  } catch (error3) {
20958
21075
  const msg = error3 instanceof Error ? error3.message : String(error3);
20959
- onError(tagToken || token2, "TAG_RESOLVE_FAILED", msg);
21076
+ onError(tagToken ?? token2, "TAG_RESOLVE_FAILED", msg);
20960
21077
  scalar = new Scalar.Scalar(value);
20961
21078
  }
20962
21079
  scalar.range = range2;
@@ -20985,7 +21102,7 @@ var require_compose_scalar = __commonJS({
20985
21102
  }
20986
21103
  }
20987
21104
  for (const tag of matchWithTest)
20988
- if ((_a2 = tag.test) === null || _a2 === void 0 ? void 0 : _a2.test(value))
21105
+ if ((_a2 = tag.test) == null ? void 0 : _a2.test(value))
20989
21106
  return tag;
20990
21107
  const kt = schema.knownTags[tagName];
20991
21108
  if (kt && !kt.collection) {
@@ -20998,13 +21115,13 @@ var require_compose_scalar = __commonJS({
20998
21115
  function findScalarTagByTest({ directives, schema }, value, token2, onError) {
20999
21116
  const tag = schema.tags.find((tag2) => {
21000
21117
  var _a2;
21001
- return tag2.default && ((_a2 = tag2.test) === null || _a2 === void 0 ? void 0 : _a2.test(value));
21118
+ return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
21002
21119
  }) || schema[Node.SCALAR];
21003
21120
  if (schema.compat) {
21004
21121
  const compat = schema.compat.find((tag2) => {
21005
21122
  var _a2;
21006
- return tag2.default && ((_a2 = tag2.test) === null || _a2 === void 0 ? void 0 : _a2.test(value));
21007
- }) || schema[Node.SCALAR];
21123
+ return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
21124
+ }) ?? schema[Node.SCALAR];
21008
21125
  if (tag.tag !== compat.tag) {
21009
21126
  const ts = directives.tagString(tag.tag);
21010
21127
  const cs = directives.tagString(compat.tag);
@@ -21036,7 +21153,7 @@ var require_util_empty_scalar_position = __commonJS({
21036
21153
  continue;
21037
21154
  }
21038
21155
  st = before[++i];
21039
- while ((st === null || st === void 0 ? void 0 : st.type) === "space") {
21156
+ while ((st == null ? void 0 : st.type) === "space") {
21040
21157
  offset += st.source.length;
21041
21158
  st = before[++i];
21042
21159
  }
@@ -21062,6 +21179,7 @@ var require_compose_node = __commonJS({
21062
21179
  function composeNode(ctx, token2, props, onError) {
21063
21180
  const { spaceBefore, comment, anchor, tag } = props;
21064
21181
  let node;
21182
+ let isSrcToken = true;
21065
21183
  switch (token2.type) {
21066
21184
  case "alias":
21067
21185
  node = composeAlias(ctx, token2, onError);
@@ -21083,9 +21201,12 @@ var require_compose_node = __commonJS({
21083
21201
  if (anchor)
21084
21202
  node.anchor = anchor.source.substring(1);
21085
21203
  break;
21086
- default:
21087
- console.log(token2);
21088
- throw new Error(`Unsupporten token type: ${token2.type}`);
21204
+ default: {
21205
+ const message = token2.type === "error" ? token2.message : `Unsupported token (type: ${token2.type})`;
21206
+ onError(token2, "UNEXPECTED_TOKEN", message);
21207
+ node = composeEmptyNode(ctx, token2.offset, void 0, null, props, onError);
21208
+ isSrcToken = false;
21209
+ }
21089
21210
  }
21090
21211
  if (anchor && node.anchor === "")
21091
21212
  onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
@@ -21097,11 +21218,11 @@ var require_compose_node = __commonJS({
21097
21218
  else
21098
21219
  node.commentBefore = comment;
21099
21220
  }
21100
- if (ctx.options.keepSourceTokens)
21221
+ if (ctx.options.keepSourceTokens && isSrcToken)
21101
21222
  node.srcToken = token2;
21102
21223
  return node;
21103
21224
  }
21104
- function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag }, onError) {
21225
+ function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) {
21105
21226
  const token2 = {
21106
21227
  type: "scalar",
21107
21228
  offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
@@ -21116,14 +21237,18 @@ var require_compose_node = __commonJS({
21116
21237
  }
21117
21238
  if (spaceBefore)
21118
21239
  node.spaceBefore = true;
21119
- if (comment)
21240
+ if (comment) {
21120
21241
  node.comment = comment;
21242
+ node.range[2] = end;
21243
+ }
21121
21244
  return node;
21122
21245
  }
21123
21246
  function composeAlias({ options: options3 }, { offset, source, end }, onError) {
21124
21247
  const alias = new Alias.Alias(source.substring(1));
21125
21248
  if (alias.source === "")
21126
21249
  onError(offset, "BAD_ALIAS", "Alias cannot be an empty string");
21250
+ if (alias.source.endsWith(":"))
21251
+ onError(offset + source.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", true);
21127
21252
  const valueEnd = offset + source.length;
21128
21253
  const re = resolveEnd.resolveEnd(end, valueEnd, options3.strict, onError);
21129
21254
  alias.range = [offset, valueEnd, re.offset];
@@ -21145,7 +21270,7 @@ var require_compose_doc = __commonJS({
21145
21270
  var resolveEnd = require_resolve_end();
21146
21271
  var resolveProps = require_resolve_props();
21147
21272
  function composeDoc(options3, directives, { offset, start, value, end }, onError) {
21148
- const opts = Object.assign({ directives }, options3);
21273
+ const opts = Object.assign({ _directives: directives }, options3);
21149
21274
  const doc = new Document.Document(void 0, opts);
21150
21275
  const ctx = {
21151
21276
  atRoot: true,
@@ -21155,13 +21280,13 @@ var require_compose_doc = __commonJS({
21155
21280
  };
21156
21281
  const props = resolveProps.resolveProps(start, {
21157
21282
  indicator: "doc-start",
21158
- next: value || (end === null || end === void 0 ? void 0 : end[0]),
21283
+ next: value ?? (end == null ? void 0 : end[0]),
21159
21284
  offset,
21160
21285
  onError,
21161
21286
  startOnNewline: true
21162
21287
  });
21163
21288
  if (props.found) {
21164
- doc.directives.marker = true;
21289
+ doc.directives.docStart = true;
21165
21290
  if (value && (value.type === "block-map" || value.type === "block-seq") && !props.hasNewline)
21166
21291
  onError(props.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker");
21167
21292
  }
@@ -21185,7 +21310,6 @@ var require_composer = __commonJS({
21185
21310
  var Document = require_Document();
21186
21311
  var errors = require_errors2();
21187
21312
  var Node = require_Node();
21188
- var options3 = require_options();
21189
21313
  var composeDoc = require_compose_doc();
21190
21314
  var resolveEnd = require_resolve_end();
21191
21315
  function getErrorPos(src) {
@@ -21210,7 +21334,7 @@ var require_composer = __commonJS({
21210
21334
  afterEmptyLine = false;
21211
21335
  break;
21212
21336
  case "%":
21213
- if (((_a2 = prelude[i + 1]) === null || _a2 === void 0 ? void 0 : _a2[0]) !== "#")
21337
+ if (((_a2 = prelude[i + 1]) == null ? void 0 : _a2[0]) !== "#")
21214
21338
  i += 1;
21215
21339
  atComment = false;
21216
21340
  break;
@@ -21223,7 +21347,7 @@ var require_composer = __commonJS({
21223
21347
  return { comment, afterEmptyLine };
21224
21348
  }
21225
21349
  var Composer = class {
21226
- constructor(options$1 = {}) {
21350
+ constructor(options3 = {}) {
21227
21351
  this.doc = null;
21228
21352
  this.atDirectives = false;
21229
21353
  this.prelude = [];
@@ -21236,10 +21360,8 @@ var require_composer = __commonJS({
21236
21360
  else
21237
21361
  this.errors.push(new errors.YAMLParseError(pos, code, message));
21238
21362
  };
21239
- this.directives = new directives.Directives({
21240
- version: options$1.version || options3.defaultOptions.version
21241
- });
21242
- this.options = options$1;
21363
+ this.directives = new directives.Directives({ version: options3.version || "1.2" });
21364
+ this.options = options3;
21243
21365
  }
21244
21366
  decorate(doc, afterDoc) {
21245
21367
  const { comment, afterEmptyLine } = parsePrelude(this.prelude);
@@ -21248,7 +21370,7 @@ var require_composer = __commonJS({
21248
21370
  if (afterDoc) {
21249
21371
  doc.comment = doc.comment ? `${doc.comment}
21250
21372
  ${comment}` : comment;
21251
- } else if (afterEmptyLine || doc.directives.marker || !dc) {
21373
+ } else if (afterEmptyLine || doc.directives.docStart || !dc) {
21252
21374
  doc.commentBefore = comment;
21253
21375
  } else if (Node.isCollection(dc) && !dc.flow && dc.items.length > 0) {
21254
21376
  let it = dc.items[0];
@@ -21302,8 +21424,8 @@ ${cb}` : comment;
21302
21424
  break;
21303
21425
  case "document": {
21304
21426
  const doc = composeDoc.composeDoc(this.options, this.directives, token2, this.onError);
21305
- if (this.atDirectives && !doc.directives.marker)
21306
- this.onError(token2, "MISSING_CHAR", "Missing directives-end indicator line");
21427
+ if (this.atDirectives && !doc.directives.docStart)
21428
+ this.onError(token2, "MISSING_CHAR", "Missing directives-end/doc-start indicator line");
21307
21429
  this.decorate(doc, false);
21308
21430
  if (this.doc)
21309
21431
  yield this.doc;
@@ -21333,6 +21455,7 @@ ${cb}` : comment;
21333
21455
  this.errors.push(new errors.YAMLParseError(getErrorPos(token2), "UNEXPECTED_TOKEN", msg));
21334
21456
  break;
21335
21457
  }
21458
+ this.doc.directives.docEnd = true;
21336
21459
  const end = resolveEnd.resolveEnd(token2.end, token2.offset + token2.source.length, this.doc.options.strict, this.onError);
21337
21460
  this.decorate(this.doc, true);
21338
21461
  if (end.comment) {
@@ -21353,7 +21476,7 @@ ${end.comment}` : end.comment;
21353
21476
  yield this.doc;
21354
21477
  this.doc = null;
21355
21478
  } else if (forceDoc) {
21356
- const opts = Object.assign({ directives: this.directives }, this.options);
21479
+ const opts = Object.assign({ _directives: this.directives }, this.options);
21357
21480
  const doc = new Document.Document(void 0, opts);
21358
21481
  if (this.atDirectives)
21359
21482
  this.onError(endOffset, "MISSING_CHAR", "Missing directives-end indicator line");
@@ -21396,7 +21519,6 @@ var require_cst_scalar = __commonJS({
21396
21519
  return null;
21397
21520
  }
21398
21521
  function createScalarToken(value, context) {
21399
- var _a2;
21400
21522
  const { implicitKey = false, indent, inFlow = false, offset = -1, type = "PLAIN" } = context;
21401
21523
  const source = stringifyString.stringifyString({ type, value }, {
21402
21524
  implicitKey,
@@ -21404,7 +21526,7 @@ var require_cst_scalar = __commonJS({
21404
21526
  inFlow,
21405
21527
  options: { blockQuote: true, lineWidth: -1 }
21406
21528
  });
21407
- const end = (_a2 = context.end) !== null && _a2 !== void 0 ? _a2 : [
21529
+ const end = context.end ?? [
21408
21530
  { type: "newline", offset: -1, indent, source: "\n" }
21409
21531
  ];
21410
21532
  switch (source[0]) {
@@ -21632,7 +21754,7 @@ var require_cst_visit = __commonJS({
21632
21754
  visit.itemAtPath = (cst, path5) => {
21633
21755
  let item = cst;
21634
21756
  for (const [field, index2] of path5) {
21635
- const tok = item && item[field];
21757
+ const tok = item == null ? void 0 : item[field];
21636
21758
  if (tok && "items" in tok) {
21637
21759
  item = tok.items[index2];
21638
21760
  } else
@@ -21643,7 +21765,7 @@ var require_cst_visit = __commonJS({
21643
21765
  visit.parentCollection = (cst, path5) => {
21644
21766
  const parent2 = visit.itemAtPath(cst, path5.slice(0, -1));
21645
21767
  const field = path5[path5.length - 1][0];
21646
- const coll = parent2 && parent2[field];
21768
+ const coll = parent2 == null ? void 0 : parent2[field];
21647
21769
  if (coll && "items" in coll)
21648
21770
  return coll;
21649
21771
  throw new Error("Parent collection not found");
@@ -21820,7 +21942,7 @@ var require_lexer = __commonJS({
21820
21942
  this.lineEndPos = null;
21821
21943
  }
21822
21944
  this.atEnd = !incomplete;
21823
- let next = this.next || "stream";
21945
+ let next = this.next ?? "stream";
21824
21946
  while (next && (incomplete || this.hasChars(1)))
21825
21947
  next = yield* this.parseNext(next);
21826
21948
  }
@@ -22019,9 +22141,13 @@ var require_lexer = __commonJS({
22019
22141
  let indent = -1;
22020
22142
  do {
22021
22143
  nl = yield* this.pushNewline();
22022
- sp = yield* this.pushSpaces(true);
22023
- if (nl > 0)
22144
+ if (nl > 0) {
22145
+ sp = yield* this.pushSpaces(false);
22024
22146
  this.indentValue = indent = sp;
22147
+ } else {
22148
+ sp = 0;
22149
+ }
22150
+ sp += yield* this.pushSpaces(true);
22025
22151
  } while (nl + sp > 0);
22026
22152
  const line = this.getLine();
22027
22153
  if (line === null)
@@ -22182,9 +22308,10 @@ var require_lexer = __commonJS({
22182
22308
  let ch2 = this.buffer[i];
22183
22309
  if (ch2 === "\r")
22184
22310
  ch2 = this.buffer[--i];
22311
+ const lastChar = i;
22185
22312
  while (ch2 === " " || ch2 === " ")
22186
22313
  ch2 = this.buffer[--i];
22187
- if (ch2 === "\n" && i >= this.pos)
22314
+ if (ch2 === "\n" && i >= this.pos && i + 1 + indent > lastChar)
22188
22315
  nl = i;
22189
22316
  else
22190
22317
  break;
@@ -22259,16 +22386,19 @@ var require_lexer = __commonJS({
22259
22386
  return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
22260
22387
  case "&":
22261
22388
  return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
22262
- case ":":
22263
- case "?":
22264
22389
  case "-":
22265
- if (isEmpty(this.charAt(1))) {
22266
- if (this.flowLevel === 0)
22390
+ case "?":
22391
+ case ":": {
22392
+ const inFlow = this.flowLevel > 0;
22393
+ const ch1 = this.charAt(1);
22394
+ if (isEmpty(ch1) || inFlow && invalidFlowScalarChars.includes(ch1)) {
22395
+ if (!inFlow)
22267
22396
  this.indentNext = this.indentValue + 1;
22268
22397
  else if (this.flowKey)
22269
22398
  this.flowKey = false;
22270
22399
  return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
22271
22400
  }
22401
+ }
22272
22402
  }
22273
22403
  return 0;
22274
22404
  }
@@ -22370,7 +22500,7 @@ var require_parser = __commonJS({
22370
22500
  return true;
22371
22501
  return false;
22372
22502
  }
22373
- function includesNonEmpty(list) {
22503
+ function findNonEmptyIndex(list) {
22374
22504
  for (let i = 0; i < list.length; ++i) {
22375
22505
  switch (list[i].type) {
22376
22506
  case "space":
@@ -22378,13 +22508,13 @@ var require_parser = __commonJS({
22378
22508
  case "newline":
22379
22509
  break;
22380
22510
  default:
22381
- return true;
22511
+ return i;
22382
22512
  }
22383
22513
  }
22384
- return false;
22514
+ return -1;
22385
22515
  }
22386
22516
  function isFlowToken(token2) {
22387
- switch (token2 === null || token2 === void 0 ? void 0 : token2.type) {
22517
+ switch (token2 == null ? void 0 : token2.type) {
22388
22518
  case "alias":
22389
22519
  case "scalar":
22390
22520
  case "single-quoted-scalar":
@@ -22401,7 +22531,7 @@ var require_parser = __commonJS({
22401
22531
  return parent2.start;
22402
22532
  case "block-map": {
22403
22533
  const it = parent2.items[parent2.items.length - 1];
22404
- return it.sep || it.start;
22534
+ return it.sep ?? it.start;
22405
22535
  }
22406
22536
  case "block-seq":
22407
22537
  return parent2.items[parent2.items.length - 1].start;
@@ -22425,7 +22555,7 @@ var require_parser = __commonJS({
22425
22555
  break loop;
22426
22556
  }
22427
22557
  }
22428
- while (((_a2 = prev[++i]) === null || _a2 === void 0 ? void 0 : _a2.type) === "space") {
22558
+ while (((_a2 = prev[++i]) == null ? void 0 : _a2.type) === "space") {
22429
22559
  }
22430
22560
  return prev.splice(i, prev.length);
22431
22561
  }
@@ -22569,7 +22699,7 @@ var require_parser = __commonJS({
22569
22699
  return this.stack[this.stack.length - n];
22570
22700
  }
22571
22701
  *pop(error3) {
22572
- const token2 = error3 || this.stack.pop();
22702
+ const token2 = error3 ?? this.stack.pop();
22573
22703
  if (!token2) {
22574
22704
  const message = "Tried to pop an empty stack";
22575
22705
  yield { type: "error", offset: this.offset, source: "", message };
@@ -22630,7 +22760,7 @@ var require_parser = __commonJS({
22630
22760
  }
22631
22761
  if ((top.type === "document" || top.type === "block-map" || top.type === "block-seq") && (token2.type === "block-map" || token2.type === "block-seq")) {
22632
22762
  const last = token2.items[token2.items.length - 1];
22633
- if (last && !last.sep && !last.value && last.start.length > 0 && !includesNonEmpty(last.start) && (token2.indent === 0 || last.start.every((st) => st.type !== "comment" || st.indent < token2.indent))) {
22763
+ if (last && !last.sep && !last.value && last.start.length > 0 && findNonEmptyIndex(last.start) === -1 && (token2.indent === 0 || last.start.every((st) => st.type !== "comment" || st.indent < token2.indent))) {
22634
22764
  if (top.type === "document")
22635
22765
  top.end = last.start;
22636
22766
  else
@@ -22676,7 +22806,7 @@ var require_parser = __commonJS({
22676
22806
  return yield* this.lineEnd(doc);
22677
22807
  switch (this.type) {
22678
22808
  case "doc-start": {
22679
- if (includesNonEmpty(doc.start)) {
22809
+ if (findNonEmptyIndex(doc.start) !== -1) {
22680
22810
  yield* this.pop();
22681
22811
  yield* this.step();
22682
22812
  } else
@@ -22759,25 +22889,26 @@ var require_parser = __commonJS({
22759
22889
  if (it.value) {
22760
22890
  const end = "end" in it.value ? it.value.end : void 0;
22761
22891
  const last = Array.isArray(end) ? end[end.length - 1] : void 0;
22762
- if ((last === null || last === void 0 ? void 0 : last.type) === "comment")
22763
- end === null || end === void 0 ? void 0 : end.push(this.sourceToken);
22892
+ if ((last == null ? void 0 : last.type) === "comment")
22893
+ end == null ? void 0 : end.push(this.sourceToken);
22764
22894
  else
22765
22895
  map2.items.push({ start: [this.sourceToken] });
22766
- } else if (it.sep)
22896
+ } else if (it.sep) {
22767
22897
  it.sep.push(this.sourceToken);
22768
- else
22898
+ } else {
22769
22899
  it.start.push(this.sourceToken);
22900
+ }
22770
22901
  return;
22771
22902
  case "space":
22772
22903
  case "comment":
22773
- if (it.value)
22904
+ if (it.value) {
22774
22905
  map2.items.push({ start: [this.sourceToken] });
22775
- else if (it.sep)
22906
+ } else if (it.sep) {
22776
22907
  it.sep.push(this.sourceToken);
22777
- else {
22908
+ } else {
22778
22909
  if (this.atIndentedComment(it.start, map2.indent)) {
22779
22910
  const prev = map2.items[map2.items.length - 2];
22780
- const end = (_a2 = prev === null || prev === void 0 ? void 0 : prev.value) === null || _a2 === void 0 ? void 0 : _a2.end;
22911
+ const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
22781
22912
  if (Array.isArray(end)) {
22782
22913
  Array.prototype.push.apply(end, it.start);
22783
22914
  end.push(this.sourceToken);
@@ -22790,58 +22921,114 @@ var require_parser = __commonJS({
22790
22921
  return;
22791
22922
  }
22792
22923
  if (this.indent >= map2.indent) {
22793
- const atNextItem = !this.onKeyLine && this.indent === map2.indent && (it.sep || includesNonEmpty(it.start));
22924
+ const atNextItem = !this.onKeyLine && this.indent === map2.indent && it.sep;
22925
+ let start = [];
22926
+ if (atNextItem && it.sep && !it.value) {
22927
+ const nl = [];
22928
+ for (let i = 0; i < it.sep.length; ++i) {
22929
+ const st = it.sep[i];
22930
+ switch (st.type) {
22931
+ case "newline":
22932
+ nl.push(i);
22933
+ break;
22934
+ case "space":
22935
+ break;
22936
+ case "comment":
22937
+ if (st.indent > map2.indent)
22938
+ nl.length = 0;
22939
+ break;
22940
+ default:
22941
+ nl.length = 0;
22942
+ }
22943
+ }
22944
+ if (nl.length >= 2)
22945
+ start = it.sep.splice(nl[1]);
22946
+ }
22794
22947
  switch (this.type) {
22795
22948
  case "anchor":
22796
22949
  case "tag":
22797
22950
  if (atNextItem || it.value) {
22798
- map2.items.push({ start: [this.sourceToken] });
22951
+ start.push(this.sourceToken);
22952
+ map2.items.push({ start });
22799
22953
  this.onKeyLine = true;
22800
- } else if (it.sep)
22954
+ } else if (it.sep) {
22801
22955
  it.sep.push(this.sourceToken);
22802
- else
22956
+ } else {
22803
22957
  it.start.push(this.sourceToken);
22958
+ }
22804
22959
  return;
22805
22960
  case "explicit-key-ind":
22806
- if (!it.sep && !includesToken(it.start, "explicit-key-ind"))
22961
+ if (!it.sep && !includesToken(it.start, "explicit-key-ind")) {
22807
22962
  it.start.push(this.sourceToken);
22808
- else if (atNextItem || it.value)
22809
- map2.items.push({ start: [this.sourceToken] });
22810
- else
22963
+ } else if (atNextItem || it.value) {
22964
+ start.push(this.sourceToken);
22965
+ map2.items.push({ start });
22966
+ } else {
22811
22967
  this.stack.push({
22812
22968
  type: "block-map",
22813
22969
  offset: this.offset,
22814
22970
  indent: this.indent,
22815
22971
  items: [{ start: [this.sourceToken] }]
22816
22972
  });
22973
+ }
22817
22974
  this.onKeyLine = true;
22818
22975
  return;
22819
22976
  case "map-value-ind":
22820
- if (!it.sep)
22821
- Object.assign(it, { key: null, sep: [this.sourceToken] });
22822
- else if (it.value || atNextItem && !includesToken(it.start, "explicit-key-ind"))
22823
- map2.items.push({ start: [], key: null, sep: [this.sourceToken] });
22824
- else if (includesToken(it.sep, "map-value-ind"))
22825
- this.stack.push({
22826
- type: "block-map",
22827
- offset: this.offset,
22828
- indent: this.indent,
22829
- items: [{ start: [], key: null, sep: [this.sourceToken] }]
22830
- });
22831
- else if (includesToken(it.start, "explicit-key-ind") && isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
22832
- const start = getFirstKeyStartProps(it.start);
22833
- const key = it.key;
22834
- const sep = it.sep;
22835
- sep.push(this.sourceToken);
22836
- delete it.key, delete it.sep;
22837
- this.stack.push({
22838
- type: "block-map",
22839
- offset: this.offset,
22840
- indent: this.indent,
22841
- items: [{ start, key, sep }]
22842
- });
22843
- } else
22844
- it.sep.push(this.sourceToken);
22977
+ if (includesToken(it.start, "explicit-key-ind")) {
22978
+ if (!it.sep) {
22979
+ if (includesToken(it.start, "newline")) {
22980
+ Object.assign(it, { key: null, sep: [this.sourceToken] });
22981
+ } else {
22982
+ const start2 = getFirstKeyStartProps(it.start);
22983
+ this.stack.push({
22984
+ type: "block-map",
22985
+ offset: this.offset,
22986
+ indent: this.indent,
22987
+ items: [{ start: start2, key: null, sep: [this.sourceToken] }]
22988
+ });
22989
+ }
22990
+ } else if (it.value) {
22991
+ map2.items.push({ start: [], key: null, sep: [this.sourceToken] });
22992
+ } else if (includesToken(it.sep, "map-value-ind")) {
22993
+ this.stack.push({
22994
+ type: "block-map",
22995
+ offset: this.offset,
22996
+ indent: this.indent,
22997
+ items: [{ start, key: null, sep: [this.sourceToken] }]
22998
+ });
22999
+ } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
23000
+ const start2 = getFirstKeyStartProps(it.start);
23001
+ const key = it.key;
23002
+ const sep = it.sep;
23003
+ sep.push(this.sourceToken);
23004
+ delete it.key, delete it.sep;
23005
+ this.stack.push({
23006
+ type: "block-map",
23007
+ offset: this.offset,
23008
+ indent: this.indent,
23009
+ items: [{ start: start2, key, sep }]
23010
+ });
23011
+ } else if (start.length > 0) {
23012
+ it.sep = it.sep.concat(start, this.sourceToken);
23013
+ } else {
23014
+ it.sep.push(this.sourceToken);
23015
+ }
23016
+ } else {
23017
+ if (!it.sep) {
23018
+ Object.assign(it, { key: null, sep: [this.sourceToken] });
23019
+ } else if (it.value || atNextItem) {
23020
+ map2.items.push({ start, key: null, sep: [this.sourceToken] });
23021
+ } else if (includesToken(it.sep, "map-value-ind")) {
23022
+ this.stack.push({
23023
+ type: "block-map",
23024
+ offset: this.offset,
23025
+ indent: this.indent,
23026
+ items: [{ start: [], key: null, sep: [this.sourceToken] }]
23027
+ });
23028
+ } else {
23029
+ it.sep.push(this.sourceToken);
23030
+ }
23031
+ }
22845
23032
  this.onKeyLine = true;
22846
23033
  return;
22847
23034
  case "alias":
@@ -22850,7 +23037,7 @@ var require_parser = __commonJS({
22850
23037
  case "double-quoted-scalar": {
22851
23038
  const fs5 = this.flowScalar(this.type);
22852
23039
  if (atNextItem || it.value) {
22853
- map2.items.push({ start: [], key: fs5, sep: [] });
23040
+ map2.items.push({ start, key: fs5, sep: [] });
22854
23041
  this.onKeyLine = true;
22855
23042
  } else if (it.sep) {
22856
23043
  this.stack.push(fs5);
@@ -22863,8 +23050,9 @@ var require_parser = __commonJS({
22863
23050
  default: {
22864
23051
  const bv = this.startBlockValue(map2);
22865
23052
  if (bv) {
22866
- if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind"))
22867
- map2.items.push({ start: [] });
23053
+ if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind")) {
23054
+ map2.items.push({ start });
23055
+ }
22868
23056
  this.stack.push(bv);
22869
23057
  return;
22870
23058
  }
@@ -22882,8 +23070,8 @@ var require_parser = __commonJS({
22882
23070
  if (it.value) {
22883
23071
  const end = "end" in it.value ? it.value.end : void 0;
22884
23072
  const last = Array.isArray(end) ? end[end.length - 1] : void 0;
22885
- if ((last === null || last === void 0 ? void 0 : last.type) === "comment")
22886
- end === null || end === void 0 ? void 0 : end.push(this.sourceToken);
23073
+ if ((last == null ? void 0 : last.type) === "comment")
23074
+ end == null ? void 0 : end.push(this.sourceToken);
22887
23075
  else
22888
23076
  seq2.items.push({ start: [this.sourceToken] });
22889
23077
  } else
@@ -22896,7 +23084,7 @@ var require_parser = __commonJS({
22896
23084
  else {
22897
23085
  if (this.atIndentedComment(it.start, seq2.indent)) {
22898
23086
  const prev = seq2.items[seq2.items.length - 2];
22899
- const end = (_a2 = prev === null || prev === void 0 ? void 0 : prev.value) === null || _a2 === void 0 ? void 0 : _a2.end;
23087
+ const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
22900
23088
  if (Array.isArray(end)) {
22901
23089
  Array.prototype.push.apply(end, it.start);
22902
23090
  end.push(this.sourceToken);
@@ -22996,7 +23184,7 @@ var require_parser = __commonJS({
22996
23184
  }
22997
23185
  } else {
22998
23186
  const parent2 = this.peek(2);
22999
- if (parent2.type === "block-map" && (this.type === "map-value-ind" || this.type === "newline" && !parent2.items[parent2.items.length - 1].sep)) {
23187
+ if (parent2.type === "block-map" && (this.type === "map-value-ind" && parent2.indent === fc.indent || this.type === "newline" && !parent2.items[parent2.items.length - 1].sep)) {
23000
23188
  yield* this.pop();
23001
23189
  yield* this.step();
23002
23190
  } else if (this.type === "map-value-ind" && parent2.type !== "flow-collection") {
@@ -23154,7 +23342,7 @@ var require_public_api = __commonJS({
23154
23342
  }
23155
23343
  function parseAllDocuments(source, options3 = {}) {
23156
23344
  const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options3);
23157
- const parser$1 = new parser3.Parser(lineCounter2 === null || lineCounter2 === void 0 ? void 0 : lineCounter2.addNewLine);
23345
+ const parser$1 = new parser3.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine);
23158
23346
  const composer$1 = new composer.Composer(options3);
23159
23347
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
23160
23348
  if (prettyErrors && lineCounter2)
@@ -23168,7 +23356,7 @@ var require_public_api = __commonJS({
23168
23356
  }
23169
23357
  function parseDocument2(source, options3 = {}) {
23170
23358
  const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options3);
23171
- const parser$1 = new parser3.Parser(lineCounter2 === null || lineCounter2 === void 0 ? void 0 : lineCounter2.addNewLine);
23359
+ const parser$1 = new parser3.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine);
23172
23360
  const composer$1 = new composer.Composer(options3);
23173
23361
  let doc = null;
23174
23362
  for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
@@ -23218,7 +23406,7 @@ var require_public_api = __commonJS({
23218
23406
  options3 = indent < 1 ? void 0 : indent > 8 ? { indent: 8 } : { indent };
23219
23407
  }
23220
23408
  if (value === void 0) {
23221
- const { keepUndefined } = options3 || replacer || {};
23409
+ const { keepUndefined } = options3 ?? replacer ?? {};
23222
23410
  if (!keepUndefined)
23223
23411
  return void 0;
23224
23412
  }
@@ -23245,7 +23433,6 @@ var require_dist3 = __commonJS({
23245
23433
  var Scalar = require_Scalar();
23246
23434
  var YAMLMap = require_YAMLMap();
23247
23435
  var YAMLSeq = require_YAMLSeq();
23248
- var options3 = require_options();
23249
23436
  var cst = require_cst();
23250
23437
  var lexer2 = require_lexer();
23251
23438
  var lineCounter = require_line_counter();
@@ -23271,7 +23458,6 @@ var require_dist3 = __commonJS({
23271
23458
  exports2.Scalar = Scalar.Scalar;
23272
23459
  exports2.YAMLMap = YAMLMap.YAMLMap;
23273
23460
  exports2.YAMLSeq = YAMLSeq.YAMLSeq;
23274
- exports2.defaultOptions = options3.defaultOptions;
23275
23461
  exports2.CST = cst;
23276
23462
  exports2.Lexer = lexer2.Lexer;
23277
23463
  exports2.LineCounter = lineCounter.LineCounter;
@@ -23281,6 +23467,7 @@ var require_dist3 = __commonJS({
23281
23467
  exports2.parseDocument = publicApi.parseDocument;
23282
23468
  exports2.stringify = publicApi.stringify;
23283
23469
  exports2.visit = visit.visit;
23470
+ exports2.visitAsync = visit.visitAsync;
23284
23471
  }
23285
23472
  });
23286
23473
 
@@ -23437,15 +23624,15 @@ var require_common2 = __commonJS({
23437
23624
  };
23438
23625
  var Je = (c, n, t, o) => {
23439
23626
  if (n && typeof n == "object" || typeof n == "function")
23440
- for (let p of Ne(n))
23441
- !O.call(c, p) && (t || p !== "default") && P(c, p, { get: () => n[p], enumerable: !(o = Ye(n, p)) || o.enumerable });
23627
+ for (let s of Ne(n))
23628
+ !O.call(c, s) && (t || s !== "default") && P(c, s, { get: () => n[s], enumerable: !(o = Ye(n, s)) || o.enumerable });
23442
23629
  return c;
23443
23630
  };
23444
23631
  var $e = ((c) => (n, t) => c && c.get(n) || (t = Je(qe({}), n, 1), c && c.set(n, t), t))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
23445
23632
  var Ht = {};
23446
23633
  A(Ht, { ALPViewType: () => I, ActionTitlePrefix: () => tt, ArtifactType: () => w, BindingPropertyRegexAsString: () => ot, ControlType: () => M, CustomExtensionType: () => oe, DATESETTINGSPATH: () => mt, DataSourceType: () => $, DefinitionName: () => W, DirName: () => k, DraftDiscardEnabledSettings: () => N, ExportArtifacts: () => v, FIORI_FCL_ROOT_ID: () => ut, FIORI_FCL_ROOT_VIEW_NAME: () => xt, FRAGMENTNAMEPART: () => bt, FacetBase: () => G, FacetTitlePrefix: () => et, Features: () => ae, FileName: () => B, FioriElementsVersion: () => L, FlexChangeLayer: () => h, FlexibleColumnLayoutAggregations: () => J, FlexibleColumnLayoutType: () => F, GENERICAPPSETTINGS: () => St, LogSeverity: () => ee, LogSeverityLabel: () => At, MANIFESTPATH: () => nt, METADATAPATH: () => at, MacrosPropertyType: () => Y, ManifestSection: () => Z, OdataVersion: () => j, PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP: () => De, PageType: () => Ze, PageTypeV2: () => T, PageTypeV4: () => C, PropertyName: () => X, QUICKVARPATH: () => lt2, QUICKVARPATHX: () => gt2, SAPUI5_FRAGMENT_CLASS: () => dt, SAPUI5_VIEW_CLASS: () => Pt, SchemaKeyName: () => K, SchemaTag: () => Q, SchemaType: () => R, SectionType: () => U, StatePreservationMode: () => q2, TableColumnVerticalAlignment: () => z, TemplateType: () => te, UIVOCABULARY: () => st, UIVOCABULARYALPHADOT: () => ct, UIVOCABULARYDOT: () => pt, VOCWITHCOLONS: () => rt, VOCWITHSLASH: () => it, ViewTemplateType: () => H, ViewTypes: () => D, Visualization: () => _45, v2: () => f, v4: () => E });
23447
- var T = ((i) => (i.ObjectPage = "ObjectPage", i.ListReport = "ListReport", i.OverviewPage = "OverviewPage", i.CustomPage = "CustomPage", i.AnalyticalListPage = "AnalyticalListPage", i))(T || {});
23448
- var C = ((i) => (i.ObjectPage = "ObjectPage", i.ListReport = "ListReport", i.CustomPage = "CustomPage", i.FPMCustomPage = "FPMCustomPage", i.AnalyticalListPage = "AnalyticalListPage", i))(C || {});
23634
+ var T = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.OverviewPage = "OverviewPage", r.CustomPage = "CustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(T || {});
23635
+ var C = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.CustomPage = "CustomPage", r.FPMCustomPage = "FPMCustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(C || {});
23449
23636
  var Ze = d(d({}, T), C);
23450
23637
  var De = /* @__PURE__ */ new Map([["ListReport", "sap.suite.ui.generic.template.ListReport.view.ListReport"], ["AnalyticalListPage", "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"], ["ObjectPage", "sap.suite.ui.generic.template.ObjectPage.view.Details"]]);
23451
23638
  var L = ((t) => (t.v2 = "v2", t.v4 = "v4", t))(L || {});
@@ -23456,20 +23643,20 @@ var require_common2 = __commonJS({
23456
23643
  var v = ((t) => (t.flex = "flex", t.manifest = "manifest", t))(v || {});
23457
23644
  var I = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t))(I || {});
23458
23645
  var U = ((o) => (o.Section = "Section", o.SubSection = "SubSection", o.HeaderSection = "HeaderSection", o))(U || {});
23459
- var w = ((i) => (i.Manifest = "Manifest", i.FlexChange = "FlexChange", i.Annotation = "Annotation", i.Fragment = "Fragment", i.View = "View", i))(w || {});
23646
+ var w = ((s) => (s.Manifest = "Manifest", s.FlexChange = "FlexChange", s.Annotation = "Annotation", s.XMLProperty = "XMLProperty", s))(w || {});
23460
23647
  var M = ((g) => (g.Table = "sap.m.Table", g.TableColumn = "sap.m.Column", g.SmartTable = "sap.ui.comp.smarttable.SmartTable", g.SmartFilterBar = "sap.ui.comp.smartfilterbar.SmartFilterBar", g.SmartChart = "sap.ui.comp.smartchart.SmartChart", g.Group = "sap.ui.comp.smartform.Group", g.GroupElement = "sap.ui.comp.smartform.GroupElement", g.Button = "sap.m.Button", g.ToolbarButton = "sap.m.OverflowToolbarButton", g.Avatar = "sap.f.Avatar", g.ObjectPageDynamicHeaderTitle = "sap.uxap.ObjectPageDynamicHeaderTitle", g.ObjectPageGridProperties = "sap.ui.layout.GridData", g.ObjectPageHeader = "sap.uxap.ObjectPageHeader", g.ObjectPageLayout = "sap.uxap.ObjectPageLayout", g.HeaderAction = "sap.uxap.ObjectPageHeaderActionButton", g.DynamicPage = "sap.f.DynamicPage", g.Form = "sap.ui.layout.form", g.Chart = "sap.suite.ui.microchart", g.Section = "sap.uxap.ObjectPageSection", g.SubSection = "sap.uxap.ObjectPageSubSection", g))(M || {});
23461
23648
  var _45 = ((t) => (t.LineItem = "LineItem", t.Chart = "Chart", t))(_45 || {});
23462
- var k = ((r) => (r.Sapux = "src", r.Schemas = ".schemas", r.Pages = "pages", r.Webapp = "webapp", r.Temp = ".tmp", r.Changes = "changes", r.LocalService = "localService", r.Controller = "controller", r.View = "view", r.Fragment = "fragment", r.Ext = "ext", r.VSCode = ".vscode", r))(k || {});
23649
+ var k = ((i) => (i.Sapux = "src", i.Schemas = ".schemas", i.Pages = "pages", i.Webapp = "webapp", i.Temp = ".tmp", i.Changes = "changes", i.LocalService = "localService", i.Controller = "controller", i.View = "view", i.Fragment = "fragment", i.Ext = "ext", i.VSCode = ".vscode", i))(k || {});
23463
23650
  var B = ((n) => (n.App = "app.json", n))(B || {});
23464
23651
  var et = "Facet ID: ";
23465
23652
  var tt = "Action ID: ";
23466
23653
  var G = ((S) => (S.LineItem = "LineItem", S.CollectionFacet = "CollectionFacet", S.Chart = "Chart", S.Form = "Form", S.Identification = "Identification", S.DataPoint = "DataPoint", S.Address = "Address", S.Contact = "Contact", S.PresentationVariant = "PresentationVariant", S.Unknown = "", S))(G || {});
23467
23654
  var ot = "^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$";
23468
- var H = ((i) => (i.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", i.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", i.TreeTableColumnsExtension = "TreeTableColumnsExtension", i.GridTableColumnsExtension = "GridTableColumnsExtension", i.ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension", i))(H || {});
23655
+ var H = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r.ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension", r))(H || {});
23469
23656
  var W = ((e) => (e.Action = "Action", e.Actions = "Actions", e.ActionsLR = "Actions<LineItems>", e.ALPChart = "ALPChart", e.ALPChartView = "ALPChartView", e.ALPTable = "ALPTable", e.ALPTableView = "ALPTableView", e.AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar", e.AnnotationPathAsObject = "AnnotationPathAsObject", e.ChartToolBarAction = "ChartToolBarAction", e.CommonHeaderFacetSettings = "CommonHeaderFacetSettings", e.CompactFilters = "CompactFilters", e.CustomFooterActionOP = "CustomFooterActionOP", e.CustomHeaderAction = "CustomHeaderAction", e.CustomHeaderActionOP = "CustomHeaderActionOP", e.CustomFormActionOP = "CustomFormActionOP", e.CustomTableAction = "CustomTableAction", e.CustomTableActionOP = "CustomTableActionOP", e.CustomColumn = "TableCustomColumn", e.CustomColumnOP = "TableCustomColumnOP", e.CustomColumns = "TableCustomColumns", e.CustomSections = "CustomSections", e.FieldPath = "FieldPath", e.Field = "Field", e.Fields = "Fields", e.Fields4Dialog = "Fields4Dialog", e.FilterBar = "FilterBar", e.FilterBarVisualFilters = "FilterBarVisualFilters", e.Footer = "Footer", e.FooterAction = "FooterAction", e.FooterActionV4 = "FooterActionV4", e.FooterActions = "FooterActions", e.FooterActionsLR = "FooterActions<LineItems>", e.Form = "Form", e.FormAction = "FormAction", e.GenericActions = "GenericActions", e.GenericColumnsOP = "GenericColumnsOP", e.GenericFooter = "GenericFooter", e.GenericSections = "GenericSections", e.Header = "Header", e.HeaderActions = "HeaderActions", e.ObjectPageHeaderAction = "ObjectPageHeaderAction", e.ObjectPageHeaderActions = "ObjectPageHeaderActions", e.HeaderSections = "HeaderSections", e.LineItems = "LineItems", e.LineItemsOfView = "LineItemsOfView", e.ListReportFilterBar = "ListReportFilterBar", e.LRTableView = "LRTableView", e.LRChartView = "LRChartView", e.MultiEditV2 = "MultiEdit", e.MultiTableModeV4 = "MultiTableModeV4", e.ObjectPageChart = "ObjectPageChart", e.ObjectPageCustomSectionFragment = "ObjectPageCustomSectionFragment", e.ObjectPageForm = "ObjectPageForm", e.ObjectPageFooter = "ObjectPageFooter", e.ObjectPageFooterAction = "ObjectPageFooterAction", e.ObjectPageFooterActions = "ObjectPageFooterActions", e.ObjectPageHeader = "ObjectPageHeader", e.ObjectPageHeaderSectionForm = "ObjectPageHeaderSectionForm", e.ObjectPageHeaderSectionChart = "ObjectPageHeaderSectionChart", e.ObjectPageHeaderSectionDataPoint = "ObjectPageHeaderSectionDataPoint", e.ObjectPageHeaderSectionContact = "ObjectPageHeaderSectionContact", e.ObjectPageHeaderSectionAddress = "ObjectPageHeaderSectionAddress", e.ObjectPageLayout = "ObjectPageLayout", e.ObjectPagePresentationVariant = "ObjectPagePresentationVariant", e.ObjectPageSectionAddress = "ObjectPageSectionAddress", e.ObjectPageSectionChart = "ObjectPageSectionChart", e.ObjectPageSectionContact = "ObjectPageSectionContact", e.ObjectPageSectionDataPoint = "ObjectPageSectionDataPoint", e.ObjectPageSectionForm = "ObjectPageSectionForm", e.ObjectPageSectionPresentationVariant = "ObjectPageSectionPresentationVariant", e.ObjectPageSectionTableV4 = "ObjectPageSectionTableV4", e.ObjectPageSubSections = "ObjectPageSubSections", e.ObjectPageTable = "ObjectPageTable", e.ObjectPageTableColumn = "ObjectPageTableColumn", e.ObjectPageToolBar = "ObjectPageToolBar", e.ObjectPageToolBarAction = "ObjectPageToolBarAction", e.ObjectPageToolBarActions = "ObjectPageToolBarActions", e.Position = "Position", e.PositionOP = "PositionOP", e.QuickVariant = "QuickVariant", e.QuickVariantSelectionOP = "QuickVariantSelectionOP", e.QuickVariantSelectionV4OP = "QuickVariantSelectionV4OP", e.RelatedFacetKeys = "RelatedFacetKeys", e.Sections = "Sections", e.SectionActions = "SectionActions", e.SelectionFields = "SelectionFields", e.Table = "Table", e.TableSPV = "TableSPV", e.TableColumn = "TableColumn", e.TableViewExtension = "TableViewExtension", e.ToolBarAction = "ToolBarAction", e.ToolBarLR = "ToolBar<LineItems>", e.ToolBar = "ToolBar", e.ViewTableColumn = "ViewTableColumn", e.ViewCustomColumn = "ViewTableCustomColumn", e.ViewCustomAction = "ViewTableCustomAction", e.ViewChartToolBar = "ViewChartToolBar", e.ViewToolBarAction = "ViewToolBarAction", e.ViewPosition = "ViewPosition", e.ViewCustomActionPosition = "ViewCustomActionPosition", e.VisualFilters = "VisualFilters", e.VisualFilter = "VisualFilter", e.CustomActionPosition = "CustomActionPosition", e.CustomActionPositionOP = "CustomActionPositionOP", e.CustomHeaderActionPosition = "CustomHeaderActionPosition", e.CustomHeaderActionPositionOP = "CustomHeaderActionPositionOP", e.CustomFooterActionPositionOP = "CustomFooterActionPositionOP", e))(W || {});
23470
- var X = ((r) => (r.actions = "actions", r.annotationPath = "annotationPath", r.chart = "chart", r.columns = "columns", r.defaultPath = "defaultPath", r.defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath", r.footer = "footer", r.header = "header", r.sections = "sections", r.table = "table", r.views = "views", r.visualFilters = "visualFilters", r))(X || {});
23471
- var Q = ((r) => (r.annotationPath = "annotationPath", r.annotationType = "annotationType", r.artifactType = "artifactType", r.controlType = "controlType", r.dataType = "dataType", r.fullyQualifiedName = "fullyQualifiedName", r.hidden = "hidden", r.isViewNode = "isViewNode", r.key = "key", r.keys = "keys", r.target = "target", r.propertyIndex = "propertyIndex", r))(Q || {});
23472
- var K = ((i) => (i.id = "ID", i.value = "Value", i.action = "Action", i.target = "Target", i.key = "Key", i))(K || {});
23657
+ var X = ((i) => (i.actions = "actions", i.annotationPath = "annotationPath", i.chart = "chart", i.columns = "columns", i.defaultPath = "defaultPath", i.defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath", i.footer = "footer", i.header = "header", i.sections = "sections", i.table = "table", i.views = "views", i.visualFilters = "visualFilters", i))(X || {});
23658
+ var Q = ((i) => (i.annotationPath = "annotationPath", i.annotationType = "annotationType", i.artifactType = "artifactType", i.controlType = "controlType", i.dataType = "dataType", i.fullyQualifiedName = "fullyQualifiedName", i.hidden = "hidden", i.isViewNode = "isViewNode", i.key = "key", i.keys = "keys", i.target = "target", i.propertyIndex = "propertyIndex", i))(Q || {});
23659
+ var K = ((r) => (r.id = "ID", r.value = "Value", r.action = "Action", r.target = "Target", r.key = "Key", r))(K || {});
23473
23660
  var at = "webapp/localService/metadata.xml";
23474
23661
  var nt = "webapp/manifest.json";
23475
23662
  var it = "/@com.sap.vocabularies";
@@ -23481,13 +23668,13 @@ var require_common2 = __commonJS({
23481
23668
  var gt2 = "/quickVariantSelectionX";
23482
23669
  var mt = "/filterSettings/dateSettings";
23483
23670
  var bt = ".fragment.";
23484
- var Y = ((p) => (p.Control = "Control", p.Property = "Property", p.Aggregation = "Aggregation", p.Event = "Event", p))(Y || {});
23671
+ var Y = ((s) => (s.Control = "Control", s.Property = "Property", s.Aggregation = "Aggregation", s.Event = "Event", s))(Y || {});
23485
23672
  var N = ((n) => (n.restricted = "restricted", n))(N || {});
23486
23673
  var z = ((o) => (o.Top = "Top", o.Middle = "Middle", o.Bottom = "Bottom", o))(z || {});
23487
23674
  var q2 = ((t) => (t.persistence = "persistence", t.discovery = "discovery", t))(q2 || {});
23488
23675
  var J = ((o) => (o.BeginColumnPages = "beginColumnPages", o.MidColumnPages = "midColumnPages", o.EndColumnPages = "endColumnPages", o))(J || {});
23489
23676
  var $ = ((t) => (t.OData = "OData", t.ODataAnnotation = "ODataAnnotation", t))($ || {});
23490
- var Z = ((i) => (i.ui = "sap.ui", i.app = "sap.app", i.generic = "sap.ui.generic.app", i.ovp = "sap.ovp", i.ui5 = "sap.ui5", i))(Z || {});
23677
+ var Z = ((r) => (r.ui = "sap.ui", r.app = "sap.app", r.generic = "sap.ui.generic.app", r.ovp = "sap.ovp", r.ui5 = "sap.ui5", r))(Z || {});
23491
23678
  var St = `${"sap.ui.generic.app"}/settings`;
23492
23679
  var xt = "sap.fe.templates.RootContainer.view.Fcl";
23493
23680
  var ut = "appRootView";
@@ -23505,7 +23692,7 @@ var require_common2 = __commonJS({
23505
23692
  var ie = ((m) => (m.analytical = "sap.ovp.cards.charts.analytical", m.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", m.list = "sap.ovp.cards.list", m.listv4 = "sap.ovp.cards.v4.list", m.linklist = "sap.ovp.cards.linklist", m.linklistv4 = "sap.ovp.cards.v4.linklist", m.table = "sap.ovp.cards.table", m.tablev4 = "sap.ovp.cards.v4.table", m.stack = "sap.ovp.cards.stack", m))(ie || {});
23506
23693
  var Tt = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
23507
23694
  var re = ((b) => (b.analyticalCardSettings = "analyticalCardSettings", b.analyticalCardSettingsv4 = "analyticalCardSettingsv4", b.listCardSettings = "listCardSettings", b.listCardSettingsv4 = "listCardSettingsv4", b.stackCardSettings = "stackCardSettings", b.linkListCardSettings = "linkListCardSettings", b.tableCardSettings = "tableCardSettings", b.tableCardSettingsv4 = "tableCardSettingsv4", b))(re || {});
23508
- var se = ((i) => (i.average = "average", i.max = "max", i.min = "min", i.sum = "sum", i.count = "$count", i))(se || {});
23695
+ var se = ((r) => (r.average = "average", r.max = "max", r.min = "min", r.sum = "sum", r.count = "$count", r))(se || {});
23509
23696
  var pe = ((o) => (o.standard = "standard", o.bar = "bar", o.carousel = "carousel", o))(pe || {});
23510
23697
  var ce = ((t) => (t.extended = "extended", t.condensed = "condensed", t))(ce || {});
23511
23698
  var le = ((t) => (t.ascending = "ascending", t.descending = "descending", t))(le || {});
@@ -23513,17 +23700,17 @@ var require_common2 = __commonJS({
23513
23700
  var me = ((a) => (a.DATERANGE = "DATERANGE", a.DATE = "DATE", a.FROM = "FROM", a.TO = "TO", a.DAYS = "DAYS", a.LASTDAYS = "LASTDAYS", a.LASTWEEKS = "LASTWEEKS", a.WEEK = "WEEK", a.LASTMONTHS = "LASTMONTHS", a.MONTH = "MONTH", a.QUARTER = "QUARTER", a.LASTQUARTERS = "LASTQUARTERS", a.LASTYEARS = "LASTYEARS", a.LASTYEAR = "LASTYEAR", a.YEAR = "YEAR", a.NEXTDAYS = "NEXTDAYS", a.NEXTWEEKS = "NEXTWEEKS", a.NEXTMONTHS = "NEXTMONTHS", a.NEXTQUARTERS = "NEXTQUARTERS", a.NEXTYEARS = "NEXTYEARS", a.NEXT = "NEXT", a.SPECIFICMONTH = "SPECIFICMONTH", a.YESTERDAY = "YESTERDAY", a.YEARTODATE = "YEARTODATE", a.TODAY = "TODAY", a.TOMORROW = "TOMORROW", a.THISWEEK = "THISWEEK", a.LASTWEEK = "LASTWEEK", a.LAST2WEEKS = "LAST2WEEKS", a.LAST3WEEKS = "LAST3WEEKS", a.LAST4WEEKS = "LAST4WEEKS", a.LAST5WEEKS = "LAST5WEEKS", a.NEXTWEEK = "NEXTWEEK", a.NEXT2WEEKS = "NEXT2WEEKS", a.NEXT3WEEKS = "NEXT3WEEKS", a.NEXT4WEEKS = "NEXT4WEEKS", a.NEXT5WEEKS = "NEXT5WEEKS", a.THISMONTH = "THISMONTH", a.LASTMONTH = "LASTMONTH", a.NEXTMONTH = "NEXTMONTH", a.THISQUARTER = "THISQUARTER", a.LASTQUARTER = "LASTQUARTER", a.NEXTQUARTER = "NEXTQUARTER", a.QUARTER1 = "QUARTER1", a.QUARTER2 = "QUARTER2", a.QUARTER3 = "QUARTER3", a.QUARTER4 = "QUARTER4", a.TODAYFROMTO = "TODAYFROMTO", a))(me || {});
23514
23701
  var be = ((l) => (l.YESTERDAY = "YESTERDAY", l.TODAY = "TODAY", l.THISWEEK = "THISWEEK", l.LASTWEEK = "LASTWEEK", l.THISMONTH = "THISMONTH", l.TOMORROW = "TOMORROW", l.LASTMONTH = "LASTMONTH", l.THISQUARTER = "THISQUARTER", l.LASTQUARTER = "LASTQUARTER", l.THISYEAR = "THISYEAR", l.LASTYEAR = "LASTYEAR", l.LAST2WEEKS = "LAST2WEEKS", l.LAST3WEEKS = "LAST3WEEKS", l.LAST4WEEKS = "LAST4WEEKS", l.LAST5WEEKS = "LAST5WEEKS", l.YEARTODATE = "YEARTODATE", l.QUARTER1 = "QUARTER1", l.QUARTER2 = "QUARTER2", l.QUARTER3 = "QUARTER3", l.QUARTER4 = "QUARTER4", l.DATETOYEAR = "DATETOYEAR", l))(be || {});
23515
23702
  var Se = ((n) => (n.XML = "XML", n))(Se || {});
23516
- var xe = ((p) => (p.ResponsiveTable = "ResponsiveTable", p.GridTable = "GridTable", p.AnalyticalTable = "AnalyticalTable", p.TreeTable = "TreeTable", p))(xe || {});
23517
- var ue = ((p) => (p.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", p.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", p.TreeTableColumnsExtension = "TreeTableColumnsExtension", p.GridTableColumnsExtension = "GridTableColumnsExtension", p))(ue || {});
23703
+ var xe = ((s) => (s.ResponsiveTable = "ResponsiveTable", s.GridTable = "GridTable", s.AnalyticalTable = "AnalyticalTable", s.TreeTable = "TreeTable", s))(xe || {});
23704
+ var ue = ((s) => (s.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", s.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", s.TreeTableColumnsExtension = "TreeTableColumnsExtension", s.GridTableColumnsExtension = "GridTableColumnsExtension", s))(ue || {});
23518
23705
  var Pe = ((n) => (n.extension = "extension", n))(Pe || {});
23519
23706
  var de = ((n) => (n.GENERICPROPERTY = "GENERICPROPERTY", n))(de || {});
23520
23707
  var Ae = ((o) => (o.charttable = "charttable", o.chart = "chart", o.table = "table", o))(Ae || {});
23521
23708
  var Te = ((t) => (t.visual = "visual", t.compact = "compact", t))(Te || {});
23522
23709
  var Ce = ((o) => (o.always = "always", o.never = "never", o.ifAnyFilterExist = "ifAnyFilterExist", o))(Ce || {});
23523
- var fe = ((s) => (s.bar = "bar", s.column = "column", s.line = "line", s.combination = "combination", s.pie = "pie", s.donut = "donut", s.scatter = "scatter", s.bubble = "bubble", s.heatmap = "heatmap", s.bullet = "bullet", s.verticalBullet = "vertical_bullet", s.stackedBar = "stacked_bar", s.stackedColumn = "stacked_column", s.stackedCombination = "stacked_combination", s.horizontalStackedCombination = "horizontal_stacked_combination", s.dualBar = "dual_bar", s.dualColumn = "dual_column", s.dualLine = "dual_line", s.dualStackedBar = "dual_stacked_bar", s.dualStackedColumn = "dual_stacked_column", s.dualCombination = "dual_combination", s.dualStackedCombination = "dual_stacked_combination", s.dualHorizontalCombination = "dual_horizontal_combination", s.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", s.hundredStackedBar = "100_stacked_bar", s.hundredStackedColumn = "100_stacked_column", s.hundredDualStackedBar = "100_dual_stacked_bar", s.hundredDualStackedColumn = "100_dual_stacked_column", s.waterfall = "waterfall", s.horizontalWaterfall = "horizontal_waterfall", s))(fe || {});
23710
+ var fe = ((p) => (p.bar = "bar", p.column = "column", p.line = "line", p.combination = "combination", p.pie = "pie", p.donut = "donut", p.scatter = "scatter", p.bubble = "bubble", p.heatmap = "heatmap", p.bullet = "bullet", p.verticalBullet = "vertical_bullet", p.stackedBar = "stacked_bar", p.stackedColumn = "stacked_column", p.stackedCombination = "stacked_combination", p.horizontalStackedCombination = "horizontal_stacked_combination", p.dualBar = "dual_bar", p.dualColumn = "dual_column", p.dualLine = "dual_line", p.dualStackedBar = "dual_stacked_bar", p.dualStackedColumn = "dual_stacked_column", p.dualCombination = "dual_combination", p.dualStackedCombination = "dual_stacked_combination", p.dualHorizontalCombination = "dual_horizontal_combination", p.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", p.hundredStackedBar = "100_stacked_bar", p.hundredStackedColumn = "100_stacked_column", p.hundredDualStackedBar = "100_dual_stacked_bar", p.hundredDualStackedColumn = "100_dual_stacked_column", p.waterfall = "waterfall", p.horizontalWaterfall = "horizontal_waterfall", p))(fe || {});
23524
23711
  var Ee = ((o) => (o.AfterFacet = "AfterFacet", o.BeforeFacet = "BeforeFacet", o.ReplaceFacet = "ReplaceFacet", o))(Ee || {});
23525
23712
  var ye = ((n) => (n.XML = "XML", n))(ye || {});
23526
- var Ve = ((n) => (n.inline = "inline", n))(Ve || {});
23713
+ var Ve = ((o) => (o.inline = "inline", o.creationRows = "creationRows", o.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", o))(Ve || {});
23527
23714
  var Ct = "sap.suite.ui.generic.template";
23528
23715
  var ft = "sap.suite.ui.generic.template.ObjectPage";
23529
23716
  var Et = "sap.suite.ui.generic.template.ListReport";
@@ -23537,7 +23724,7 @@ var require_common2 = __commonJS({
23537
23724
  var E = {};
23538
23725
  A(E, { ActionPlacement: () => Le, Availability: () => We, CustomSectionViewTypesV4: () => Be, DefaultPathType: () => ve, DesigntimeValues: () => Me, FE_TEMPLATE_V4: () => ht, FE_TEMPLATE_V4_ALP: () => Ut, FE_TEMPLATE_V4_CUSTOM_PAGE: () => Rt, FE_TEMPLATE_V4_LIST_REPORT: () => It, FE_TEMPLATE_V4_OBJECT_PAGE: () => vt, FIORI_FCL_ROUTER_CLASS: () => Mt, HorizontalAlign: () => Xe, InitialLayoutType: () => Ue, InitialLoadType: () => Re, LayoutType: () => Ie, Placement: () => He, SAPUI5_CONTROLLER_EXTENSION: () => kt, SAPUI5_DEPENDENCY_LIB_SAP_F: () => _t, SAPUI5_FRAGMENT_TYPE_V4: () => wt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Gt, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Bt, SectionLayoutType: () => _e, SectionPosition: () => ke, SectionPositionV4: () => Ge, SelectType: () => we, SelectionMode: () => je, TableCreationModeType: () => he, TableTypeV4: () => Fe, VariantManagementTypeListReport: () => Ke, VariantManagementTypeObjectPage: () => Qe });
23539
23726
  var Le = ((t) => (t.After = "After", t.Before = "Before", t))(Le || {});
23540
- var je = ((p) => (p.Multi = "Multi", p.None = "None", p.Single = "Single", p.Auto = "Auto", p))(je || {});
23727
+ var je = ((s) => (s.Multi = "Multi", s.None = "None", s.Single = "Single", s.Auto = "Auto", s))(je || {});
23541
23728
  var Fe = ((o) => (o.ResponsiveTable = "ResponsiveTable", o.GridTable = "GridTable", o.AnalyticalTable = "AnalyticalTable", o))(Fe || {});
23542
23729
  var he = ((o) => (o.NewPage = "NewPage", o.Inline = "Inline", o.CreationRow = "CreationRow", o))(he || {});
23543
23730
  var Re = ((o) => (o.Disabled = "Disabled", o.Enabled = "Enabled", o.Auto = "Auto", o))(Re || {});
@@ -23621,46 +23808,46 @@ var require_v2 = __commonJS({
23621
23808
  var F = Object.getOwnPropertyNames;
23622
23809
  var j = Object.prototype.hasOwnProperty;
23623
23810
  var W = (s) => p(s, "__esModule", { value: true });
23624
- var w = (s, n) => {
23625
- for (var a in n)
23626
- p(s, a, { get: n[a], enumerable: true });
23627
- };
23628
- var M = (s, n, a, i) => {
23629
- if (n && typeof n == "object" || typeof n == "function")
23630
- for (let r of F(n))
23631
- !j.call(s, r) && (a || r !== "default") && p(s, r, { get: () => n[r], enumerable: !(i = h(n, r)) || i.enumerable });
23811
+ var w = (s, i) => {
23812
+ for (var a in i)
23813
+ p(s, a, { get: i[a], enumerable: true });
23814
+ };
23815
+ var M = (s, i, a, n) => {
23816
+ if (i && typeof i == "object" || typeof i == "function")
23817
+ for (let r of F(i))
23818
+ !j.call(s, r) && (a || r !== "default") && p(s, r, { get: () => i[r], enumerable: !(n = h(i, r)) || n.enumerable });
23632
23819
  return s;
23633
23820
  };
23634
- var B = ((s) => (n, a) => s && s.get(n) || (a = M(W({}), n, 1), s && s.set(n, a), a))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
23821
+ var B = ((s) => (i, a) => s && s.get(i) || (a = M(W({}), i, 1), s && s.set(i, a), a))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
23635
23822
  var Z = {};
23636
- w(Z, { CardSettingsType: () => d, CardTemplateType: () => m, ChartCardType: () => b, ChartType: () => V, ContainerLayoutType: () => k, CreateMode: () => N, DateRangeType: () => u, DefaultContentView: () => y, DefaultDateRangeValueType: () => P, DefaultFilterMode: () => v, ExtensionFragmentTypes: () => _45, FE_TEMPLATE_V2: () => X, FE_TEMPLATE_V2_ALP: () => H, FE_TEMPLATE_V2_LIST_REPORT: () => G, FE_TEMPLATE_V2_OBJECT_PAGE: () => K, IgnoredFieldsType: () => R, LinkListFlavorType: () => A, ListFlavorType: () => T, ListTypeType: () => x, LoadDataOnAppLaunchSettings: () => U, MeasureAggregateValues: () => g, SAPUI5_CONTROLLER_EXTENSION: () => z, SAPUI5_VIEW_EXTENSION: () => Y, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => $, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => J, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => q2, SectionPosition: () => I, SortOrderType: () => E, Strategy: () => L, TableColumnExtensionTypeV2: () => O, TableTypeV2: () => C, cardTemplateTypeMap: () => Q, customColumnViewTypes: () => f });
23637
- var b = ((i) => (i.cardBubble = "cardBubble", i.cardchartsline = "cardchartsline", i.cardchartsdonut = "cardchartsdonut", i))(b || {});
23638
- var m = ((l) => (l.analytical = "sap.ovp.cards.charts.analytical", l.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", l.list = "sap.ovp.cards.list", l.listv4 = "sap.ovp.cards.v4.list", l.linklist = "sap.ovp.cards.linklist", l.linklistv4 = "sap.ovp.cards.v4.linklist", l.table = "sap.ovp.cards.table", l.tablev4 = "sap.ovp.cards.v4.table", l.stack = "sap.ovp.cards.stack", l))(m || {});
23823
+ w(Z, { CardSettingsType: () => m, CardTemplateType: () => d, ChartCardType: () => b, ChartType: () => I, ContainerLayoutType: () => k, CreateMode: () => N, DateRangeType: () => u, DefaultContentView: () => y, DefaultDateRangeValueType: () => P, DefaultFilterMode: () => v, ExtensionFragmentTypes: () => _45, FE_TEMPLATE_V2: () => X, FE_TEMPLATE_V2_ALP: () => G, FE_TEMPLATE_V2_LIST_REPORT: () => K, FE_TEMPLATE_V2_OBJECT_PAGE: () => H, IgnoredFieldsType: () => L, LinkListFlavorType: () => A, ListFlavorType: () => T, ListTypeType: () => x, LoadDataOnAppLaunchSettings: () => U, MeasureAggregateValues: () => g, SAPUI5_CONTROLLER_EXTENSION: () => z, SAPUI5_VIEW_EXTENSION: () => Y, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => $, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => J, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => q2, SectionPosition: () => V, SortOrderType: () => E, Strategy: () => R, TableColumnExtensionTypeV2: () => O, TableTypeV2: () => C, cardTemplateTypeMap: () => Q, customColumnViewTypes: () => f });
23824
+ var b = ((n) => (n.cardBubble = "cardBubble", n.cardchartsline = "cardchartsline", n.cardchartsdonut = "cardchartsdonut", n))(b || {});
23825
+ var d = ((l) => (l.analytical = "sap.ovp.cards.charts.analytical", l.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", l.list = "sap.ovp.cards.list", l.listv4 = "sap.ovp.cards.v4.list", l.linklist = "sap.ovp.cards.linklist", l.linklistv4 = "sap.ovp.cards.v4.linklist", l.table = "sap.ovp.cards.table", l.tablev4 = "sap.ovp.cards.v4.table", l.stack = "sap.ovp.cards.stack", l))(d || {});
23639
23826
  var Q = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
23640
- var d = ((c) => (c.analyticalCardSettings = "analyticalCardSettings", c.analyticalCardSettingsv4 = "analyticalCardSettingsv4", c.listCardSettings = "listCardSettings", c.listCardSettingsv4 = "listCardSettingsv4", c.stackCardSettings = "stackCardSettings", c.linkListCardSettings = "linkListCardSettings", c.tableCardSettings = "tableCardSettings", c.tableCardSettingsv4 = "tableCardSettingsv4", c))(d || {});
23827
+ var m = ((c) => (c.analyticalCardSettings = "analyticalCardSettings", c.analyticalCardSettingsv4 = "analyticalCardSettingsv4", c.listCardSettings = "listCardSettings", c.listCardSettingsv4 = "listCardSettingsv4", c.stackCardSettings = "stackCardSettings", c.linkListCardSettings = "linkListCardSettings", c.tableCardSettings = "tableCardSettings", c.tableCardSettingsv4 = "tableCardSettingsv4", c))(m || {});
23641
23828
  var g = ((S) => (S.average = "average", S.max = "max", S.min = "min", S.sum = "sum", S.count = "$count", S))(g || {});
23642
- var T = ((i) => (i.standard = "standard", i.bar = "bar", i.carousel = "carousel", i))(T || {});
23829
+ var T = ((n) => (n.standard = "standard", n.bar = "bar", n.carousel = "carousel", n))(T || {});
23643
23830
  var x = ((a) => (a.extended = "extended", a.condensed = "condensed", a))(x || {});
23644
23831
  var E = ((a) => (a.ascending = "ascending", a.descending = "descending", a))(E || {});
23645
23832
  var A = ((a) => (a.standard = "standard", a.carousel = "carousel", a))(A || {});
23646
23833
  var u = ((e) => (e.DATERANGE = "DATERANGE", e.DATE = "DATE", e.FROM = "FROM", e.TO = "TO", e.DAYS = "DAYS", e.LASTDAYS = "LASTDAYS", e.LASTWEEKS = "LASTWEEKS", e.WEEK = "WEEK", e.LASTMONTHS = "LASTMONTHS", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.LASTQUARTERS = "LASTQUARTERS", e.LASTYEARS = "LASTYEARS", e.LASTYEAR = "LASTYEAR", e.YEAR = "YEAR", e.NEXTDAYS = "NEXTDAYS", e.NEXTWEEKS = "NEXTWEEKS", e.NEXTMONTHS = "NEXTMONTHS", e.NEXTQUARTERS = "NEXTQUARTERS", e.NEXTYEARS = "NEXTYEARS", e.NEXT = "NEXT", e.SPECIFICMONTH = "SPECIFICMONTH", e.YESTERDAY = "YESTERDAY", e.YEARTODATE = "YEARTODATE", e.TODAY = "TODAY", e.TOMORROW = "TOMORROW", e.THISWEEK = "THISWEEK", e.LASTWEEK = "LASTWEEK", e.LAST2WEEKS = "LAST2WEEKS", e.LAST3WEEKS = "LAST3WEEKS", e.LAST4WEEKS = "LAST4WEEKS", e.LAST5WEEKS = "LAST5WEEKS", e.NEXTWEEK = "NEXTWEEK", e.NEXT2WEEKS = "NEXT2WEEKS", e.NEXT3WEEKS = "NEXT3WEEKS", e.NEXT4WEEKS = "NEXT4WEEKS", e.NEXT5WEEKS = "NEXT5WEEKS", e.THISMONTH = "THISMONTH", e.LASTMONTH = "LASTMONTH", e.NEXTMONTH = "NEXTMONTH", e.THISQUARTER = "THISQUARTER", e.LASTQUARTER = "LASTQUARTER", e.NEXTQUARTER = "NEXTQUARTER", e.QUARTER1 = "QUARTER1", e.QUARTER2 = "QUARTER2", e.QUARTER3 = "QUARTER3", e.QUARTER4 = "QUARTER4", e.TODAYFROMTO = "TODAYFROMTO", e))(u || {});
23647
23834
  var P = ((o) => (o.YESTERDAY = "YESTERDAY", o.TODAY = "TODAY", o.THISWEEK = "THISWEEK", o.LASTWEEK = "LASTWEEK", o.THISMONTH = "THISMONTH", o.TOMORROW = "TOMORROW", o.LASTMONTH = "LASTMONTH", o.THISQUARTER = "THISQUARTER", o.LASTQUARTER = "LASTQUARTER", o.THISYEAR = "THISYEAR", o.LASTYEAR = "LASTYEAR", o.LAST2WEEKS = "LAST2WEEKS", o.LAST3WEEKS = "LAST3WEEKS", o.LAST4WEEKS = "LAST4WEEKS", o.LAST5WEEKS = "LAST5WEEKS", o.YEARTODATE = "YEARTODATE", o.QUARTER1 = "QUARTER1", o.QUARTER2 = "QUARTER2", o.QUARTER3 = "QUARTER3", o.QUARTER4 = "QUARTER4", o.DATETOYEAR = "DATETOYEAR", o))(P || {});
23648
- var f = ((n) => (n.XML = "XML", n))(f || {});
23835
+ var f = ((i) => (i.XML = "XML", i))(f || {});
23649
23836
  var C = ((r) => (r.ResponsiveTable = "ResponsiveTable", r.GridTable = "GridTable", r.AnalyticalTable = "AnalyticalTable", r.TreeTable = "TreeTable", r))(C || {});
23650
23837
  var O = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r))(O || {});
23651
- var L = ((n) => (n.extension = "extension", n))(L || {});
23652
- var R = ((n) => (n.GENERICPROPERTY = "GENERICPROPERTY", n))(R || {});
23653
- var y = ((i) => (i.charttable = "charttable", i.chart = "chart", i.table = "table", i))(y || {});
23838
+ var R = ((i) => (i.extension = "extension", i))(R || {});
23839
+ var L = ((i) => (i.GENERICPROPERTY = "GENERICPROPERTY", i))(L || {});
23840
+ var y = ((n) => (n.charttable = "charttable", n.chart = "chart", n.table = "table", n))(y || {});
23654
23841
  var v = ((a) => (a.visual = "visual", a.compact = "compact", a))(v || {});
23655
- var U = ((i) => (i.always = "always", i.never = "never", i.ifAnyFilterExist = "ifAnyFilterExist", i))(U || {});
23656
- var V = ((t) => (t.bar = "bar", t.column = "column", t.line = "line", t.combination = "combination", t.pie = "pie", t.donut = "donut", t.scatter = "scatter", t.bubble = "bubble", t.heatmap = "heatmap", t.bullet = "bullet", t.verticalBullet = "vertical_bullet", t.stackedBar = "stacked_bar", t.stackedColumn = "stacked_column", t.stackedCombination = "stacked_combination", t.horizontalStackedCombination = "horizontal_stacked_combination", t.dualBar = "dual_bar", t.dualColumn = "dual_column", t.dualLine = "dual_line", t.dualStackedBar = "dual_stacked_bar", t.dualStackedColumn = "dual_stacked_column", t.dualCombination = "dual_combination", t.dualStackedCombination = "dual_stacked_combination", t.dualHorizontalCombination = "dual_horizontal_combination", t.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", t.hundredStackedBar = "100_stacked_bar", t.hundredStackedColumn = "100_stacked_column", t.hundredDualStackedBar = "100_dual_stacked_bar", t.hundredDualStackedColumn = "100_dual_stacked_column", t.waterfall = "waterfall", t.horizontalWaterfall = "horizontal_waterfall", t))(V || {});
23657
- var I = ((i) => (i.AfterFacet = "AfterFacet", i.BeforeFacet = "BeforeFacet", i.ReplaceFacet = "ReplaceFacet", i))(I || {});
23658
- var _45 = ((n) => (n.XML = "XML", n))(_45 || {});
23659
- var N = ((n) => (n.inline = "inline", n))(N || {});
23842
+ var U = ((n) => (n.always = "always", n.never = "never", n.ifAnyFilterExist = "ifAnyFilterExist", n))(U || {});
23843
+ var I = ((t) => (t.bar = "bar", t.column = "column", t.line = "line", t.combination = "combination", t.pie = "pie", t.donut = "donut", t.scatter = "scatter", t.bubble = "bubble", t.heatmap = "heatmap", t.bullet = "bullet", t.verticalBullet = "vertical_bullet", t.stackedBar = "stacked_bar", t.stackedColumn = "stacked_column", t.stackedCombination = "stacked_combination", t.horizontalStackedCombination = "horizontal_stacked_combination", t.dualBar = "dual_bar", t.dualColumn = "dual_column", t.dualLine = "dual_line", t.dualStackedBar = "dual_stacked_bar", t.dualStackedColumn = "dual_stacked_column", t.dualCombination = "dual_combination", t.dualStackedCombination = "dual_stacked_combination", t.dualHorizontalCombination = "dual_horizontal_combination", t.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", t.hundredStackedBar = "100_stacked_bar", t.hundredStackedColumn = "100_stacked_column", t.hundredDualStackedBar = "100_dual_stacked_bar", t.hundredDualStackedColumn = "100_dual_stacked_column", t.waterfall = "waterfall", t.horizontalWaterfall = "horizontal_waterfall", t))(I || {});
23844
+ var V = ((n) => (n.AfterFacet = "AfterFacet", n.BeforeFacet = "BeforeFacet", n.ReplaceFacet = "ReplaceFacet", n))(V || {});
23845
+ var _45 = ((i) => (i.XML = "XML", i))(_45 || {});
23846
+ var N = ((n) => (n.inline = "inline", n.creationRows = "creationRows", n.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", n))(N || {});
23660
23847
  var X = "sap.suite.ui.generic.template";
23661
- var K = "sap.suite.ui.generic.template.ObjectPage";
23662
- var G = "sap.suite.ui.generic.template.ListReport";
23663
- var H = "sap.suite.ui.generic.template.AnalyticalListPage";
23848
+ var H = "sap.suite.ui.generic.template.ObjectPage";
23849
+ var K = "sap.suite.ui.generic.template.ListReport";
23850
+ var G = "sap.suite.ui.generic.template.AnalyticalListPage";
23664
23851
  var Y = "sap.ui.viewExtensions";
23665
23852
  var z = "sap.ui.controllerExtensions";
23666
23853
  var q2 = "sap.suite.ui.generic.template.ObjectPage.view.Details";
@@ -23733,9 +23920,13 @@ var require_dist4 = __commonJS({
23733
23920
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
23734
23921
  if (k2 === void 0)
23735
23922
  k2 = k;
23736
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
23737
- return m[k];
23738
- } });
23923
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23924
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
23925
+ desc = { enumerable: true, get: function() {
23926
+ return m[k];
23927
+ } };
23928
+ }
23929
+ Object.defineProperty(o, k2, desc);
23739
23930
  } : function(o, m, k, k2) {
23740
23931
  if (k2 === void 0)
23741
23932
  k2 = k;
@@ -33296,18 +33487,17 @@ var require_config = __commonJS({
33296
33487
  };
33297
33488
  exports2.destinationPropertyId = Object.keys(exports2.DestinationAttributeProperty);
33298
33489
  function hasDestinationAttrib(destinationProperty, destinationAttributeProperty, destinationAttribs = {}) {
33299
- var _a2, _b;
33300
- return (_b = destinationAttribs && ((_a2 = destinationAttribs[destinationProperty]) == null ? void 0 : _a2.includes(destinationAttributeProperty))) != null ? _b : false;
33490
+ var _a2;
33491
+ return (destinationAttribs && ((_a2 = destinationAttribs[destinationProperty]) == null ? void 0 : _a2.includes(destinationAttributeProperty))) ?? false;
33301
33492
  }
33302
33493
  exports2.hasDestinationAttrib = hasDestinationAttrib;
33303
33494
  function hasFullUrlDestAttribute(destinationAttribs) {
33304
- var _a2, _b;
33305
- return (_b = destinationAttribs && ((_a2 = destinationAttribs["WebIDEAdditionalData"]) == null ? void 0 : _a2.includes(exports2.DestinationAttributeProperty.FULL_URL))) != null ? _b : false;
33495
+ var _a2;
33496
+ return (destinationAttribs && ((_a2 = destinationAttribs["WebIDEAdditionalData"]) == null ? void 0 : _a2.includes(exports2.DestinationAttributeProperty.FULL_URL))) ?? false;
33306
33497
  }
33307
33498
  exports2.hasFullUrlDestAttribute = hasFullUrlDestAttribute;
33308
33499
  function hasHTML5DynamicDestinationAttrib(destinationAttribs) {
33309
- var _a2;
33310
- return (_a2 = destinationAttribs && destinationAttribs["HTML5.DynamicDestination"] === "true") != null ? _a2 : false;
33500
+ return (destinationAttribs && destinationAttribs["HTML5.DynamicDestination"] === "true") ?? false;
33311
33501
  }
33312
33502
  exports2.hasHTML5DynamicDestinationAttrib = hasHTML5DynamicDestinationAttrib;
33313
33503
  }
@@ -51759,14 +51949,14 @@ var require_destination = __commonJS({
51759
51949
  }
51760
51950
  exports2.listDestinations = listDestinations;
51761
51951
  async function replaceUrlForAppStudio(systemConfig, destinationName, destinationInstance) {
51762
- var _a2, _b;
51952
+ var _a2;
51763
51953
  systemConfig.originalUrl = systemConfig.url;
51764
51954
  if (destinationName && destinationInstance) {
51765
51955
  systemConfig.url = `https://${destinationName}${DEST}`;
51766
51956
  systemConfig.basDestinationInstanceCred = await getAuthHeaderForInstanceBasedDest(destinationInstance);
51767
51957
  } else {
51768
51958
  systemConfig.url = (0, ux_common_utils_1.getAppStudioBaseURL)();
51769
- systemConfig.service = `/destinations/${destinationName != null ? destinationName : systemConfig.destination}${(_b = (_a2 = systemConfig.service) == null ? void 0 : _a2.replace(/^\/?/, "/")) != null ? _b : ""}`;
51959
+ systemConfig.service = `/destinations/${destinationName ?? systemConfig.destination}${((_a2 = systemConfig.service) == null ? void 0 : _a2.replace(/^\/?/, "/")) ?? ""}`;
51770
51960
  }
51771
51961
  delete systemConfig.scp;
51772
51962
  delete systemConfig.client;
@@ -51918,11 +52108,11 @@ var require_connection = __commonJS({
51918
52108
  return isHtmlResponse(response) && typeof response.data === "string" && !!response.data.match(/log[io]n/i);
51919
52109
  }
51920
52110
  function getContentType(contentTypeHeader, responseData) {
51921
- var _a2, _b;
52111
+ var _a2;
51922
52112
  if (contentTypeHeader) {
51923
52113
  return contentTypeHeader.toLowerCase();
51924
52114
  } else if (typeof responseData === "string") {
51925
- return (_b = (_a2 = (0, detect_content_type_1.default)(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) != null ? _b : "";
52115
+ return ((_a2 = (0, detect_content_type_1.default)(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) ?? "";
51926
52116
  } else {
51927
52117
  return "";
51928
52118
  }
@@ -53964,6 +54154,7 @@ var require_message = __commonJS({
53964
54154
  }
53965
54155
  exports2.prettyPrintMessage = prettyPrintMessage;
53966
54156
  function printUrl(longtextUrl, frontendUrl, log7) {
54157
+ log7.info("Click this link for more information:");
53967
54158
  const fullLongTextUrl = frontendUrl.concat(longtextUrl).replace(/'/g, "%27");
53968
54159
  log7.info(fullLongTextUrl);
53969
54160
  }
@@ -55245,8 +55436,8 @@ var require_oDataClient = __commonJS({
55245
55436
  debug2(res);
55246
55437
  },
55247
55438
  error: (debug2, error3) => {
55248
- var _a2, _b, _c, _d, _e, _f;
55249
- debug2(`Error ${(_c = (_b = (_a2 = error3.response) == null ? void 0 : _a2.config) == null ? void 0 : _b.method) == null ? void 0 : _c.toUpperCase()} ${(_d = error3.response) == null ? void 0 : _d.status} ${this.buildFullUrl((_f = (_e = error3.response) == null ? void 0 : _e.config) != null ? _f : {})}
55439
+ var _a2, _b, _c, _d, _e;
55440
+ debug2(`Error ${(_c = (_b = (_a2 = error3.response) == null ? void 0 : _a2.config) == null ? void 0 : _b.method) == null ? void 0 : _c.toUpperCase()} ${(_d = error3.response) == null ? void 0 : _d.status} ${this.buildFullUrl(((_e = error3.response) == null ? void 0 : _e.config) ?? {})}
55250
55441
  `);
55251
55442
  debug2(error3.response);
55252
55443
  debug2(error3);
@@ -55376,8 +55567,7 @@ var require_ui5AbapRepository = __commonJS({
55376
55567
  }
55377
55568
  var Ui5AbapRepository2 = class extends oDataClient_1.ODataClient {
55378
55569
  constructor({ system, credentials = void 0, log: log7 = console, connection = void 0, ignoreCertError, postConnectionCallback }) {
55379
- var _a2;
55380
- system.service = (_a2 = system.service) != null ? _a2 : constants_1.DEFAULT_SERVICE_PATH;
55570
+ system.service = system.service ?? constants_1.DEFAULT_SERVICE_PATH;
55381
55571
  super({ system, credentials, log: log7, connection, ignoreCertError, postConnectionCallback });
55382
55572
  }
55383
55573
  async getInfo(app) {
@@ -56275,12 +56465,12 @@ var require_system = __commonJS({
56275
56465
  const systems = {};
56276
56466
  const destinations = await (0, connection_1.listDestinations)();
56277
56467
  Object.values(destinations).sort((a, b) => a.Name.localeCompare(b.Name, void 0, { numeric: true, caseFirst: "lower" })).forEach((destination) => {
56278
- var _a2, _b;
56468
+ var _a2;
56279
56469
  systems[destination.Name] = new sapSystem_1.SapSystem(destination.Name, {
56280
56470
  url: destination.Host,
56281
56471
  destination: destination.Name,
56282
56472
  destinationAuthType: destination.Authentication,
56283
- scp: (_b = (_a2 = destination.WebIDEUsage) == null ? void 0 : _a2.includes("abap_cloud")) != null ? _b : false,
56473
+ scp: ((_a2 = destination.WebIDEUsage) == null ? void 0 : _a2.includes("abap_cloud")) ?? false,
56284
56474
  destinationAttributes: Object.assign({}, destination),
56285
56475
  client: destination["sap-client"]
56286
56476
  });
@@ -57590,13 +57780,8 @@ var require_EventName = __commonJS({
57590
57780
  EventName4["APP_INFO_COMMAND_STARTED"] = "APP_INFO_COMMAND_STARTED";
57591
57781
  EventName4["APP_INFO_LINK_CLICKED"] = "APP_INFO_LINK_CLICKED";
57592
57782
  EventName4["APP_INFO_STARTUP_TIME"] = "APP_INFO_STARTUP_TIME";
57593
- EventName4["SRV_MODELLER_SETTINGS_CHANGED"] = "SRV_MODELER_SETTINGS_CHANGED";
57594
- EventName4["SRV_MODELER_ACTIVATED"] = "SRV_MODELER_ACTIVATED";
57595
- EventName4["SRV_MODELER_PANEL_LOAD"] = "SRV_MODELER_PANEL_LOAD";
57596
- EventName4["SRV_MODELER_BACKEND_LOAD"] = "SRV_MODELER_BACKEND_LOAD";
57597
- EventName4["SRV_MODELER_ODATA_VERSION"] = "SRV_MODELER_ODATA_VERSION";
57598
- EventName4["ANNOTATION_FILE_PANEL_LOAD"] = "ANNOTATION_FILE_PANEL_LOAD";
57599
- EventName4["ANNOTATION_FILE_BACKEND_LOAD"] = "ANNOTATION_FILE_BACKEND_LOAD";
57783
+ EventName4["SERVICE_MODELER_EVENT"] = "SERVICE_MODELER_EVENT";
57784
+ EventName4["ANNOTATION_FILE_MANAGER_EVENT"] = "ANNOTATION_FILE_MANAGER_EVENT";
57600
57785
  EventName4["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
57601
57786
  EventName4["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
57602
57787
  EventName4["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
@@ -69263,7 +69448,7 @@ var require_package5 = __commonJS({
69263
69448
  "../lib/telemetry/dist/package.json"(exports2, module2) {
69264
69449
  module2.exports = {
69265
69450
  name: "@sap/ux-telemetry",
69266
- version: "1.9.4",
69451
+ version: "1.9.5",
69267
69452
  description: "SAP Fiori tools telemetry library",
69268
69453
  main: "dist/src/index.js",
69269
69454
  author: "SAP SE",
@@ -69288,14 +69473,14 @@ var require_package5 = __commonJS({
69288
69473
  },
69289
69474
  dependencies: {
69290
69475
  "@sap-ux/store": "0.3.8",
69291
- "@sap/ux-cds": "1.9.4",
69292
- "@sap/ux-common-utils": "1.9.4",
69293
- "@sap/ux-feature-toggle": "1.9.4",
69294
- "@sap/ux-project-access": "1.9.4",
69476
+ "@sap/ux-cds": "1.9.5",
69477
+ "@sap/ux-common-utils": "1.9.5",
69478
+ "@sap/ux-feature-toggle": "1.9.5",
69479
+ "@sap/ux-project-access": "1.9.5",
69295
69480
  applicationinsights: "1.4.1",
69296
69481
  axios: "0.26.0",
69297
69482
  "performance-now": "2.1.0",
69298
- yaml: "2.0.0-10"
69483
+ yaml: "2.2.2"
69299
69484
  },
69300
69485
  devDependencies: {
69301
69486
  memfs: "3.4.13",
@@ -72831,11 +73016,11 @@ var require_webapp2 = __commonJS({
72831
73016
  var yaml = __importStar(require_Yaml());
72832
73017
  var project_spec_1 = require_dist5();
72833
73018
  async function getUi5CustomWebappPath(root) {
72834
- var _a2, _b, _c, _d, _e;
73019
+ var _a2, _b, _c, _d;
72835
73020
  let webappPath = project_spec_1.DirName.Webapp;
72836
73021
  try {
72837
73022
  const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
72838
- webappPath = (_e = (_d = (_c = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.resources) == null ? void 0 : _b.configuration) == null ? void 0 : _c.paths) == null ? void 0 : _d.webapp) != null ? _e : project_spec_1.DirName.Webapp;
73023
+ webappPath = ((_d = (_c = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.resources) == null ? void 0 : _b.configuration) == null ? void 0 : _c.paths) == null ? void 0 : _d.webapp) ?? project_spec_1.DirName.Webapp;
72839
73024
  } catch {
72840
73025
  }
72841
73026
  return webappPath;
@@ -73532,7 +73717,8 @@ var require_constants6 = __commonJS({
73532
73717
  Tsconfig: "tsconfig.json",
73533
73718
  Ui5Yaml: "ui5.yaml",
73534
73719
  Ui5LocalYaml: "ui5-local.yaml",
73535
- Ui5MockYaml: "ui5-mock.yaml"
73720
+ Ui5MockYaml: "ui5-mock.yaml",
73721
+ UI5DeployYaml: "ui5-deploy.yaml"
73536
73722
  };
73537
73723
  }
73538
73724
  });
@@ -75505,9 +75691,9 @@ var require_merge = __commonJS({
75505
75691
  }
75506
75692
  });
75507
75693
 
75508
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/errors/yaml-error.js
75694
+ // ../../node_modules/@sap-ux/yaml/dist/errors/yaml-error.js
75509
75695
  var require_yaml_error = __commonJS({
75510
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/errors/yaml-error.js"(exports2) {
75696
+ "../../node_modules/@sap-ux/yaml/dist/errors/yaml-error.js"(exports2) {
75511
75697
  "use strict";
75512
75698
  Object.defineProperty(exports2, "__esModule", { value: true });
75513
75699
  exports2.YAMLError = void 0;
@@ -75522,9 +75708,9 @@ var require_yaml_error = __commonJS({
75522
75708
  }
75523
75709
  });
75524
75710
 
75525
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/errors/index.js
75711
+ // ../../node_modules/@sap-ux/yaml/dist/errors/index.js
75526
75712
  var require_errors3 = __commonJS({
75527
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/errors/index.js"(exports2) {
75713
+ "../../node_modules/@sap-ux/yaml/dist/errors/index.js"(exports2) {
75528
75714
  "use strict";
75529
75715
  Object.defineProperty(exports2, "__esModule", { value: true });
75530
75716
  exports2.YAMLError = exports2.errorTemplate = exports2.errorCode = void 0;
@@ -75561,9 +75747,9 @@ var require_errors3 = __commonJS({
75561
75747
  }
75562
75748
  });
75563
75749
 
75564
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/texts/index.js
75750
+ // ../../node_modules/@sap-ux/yaml/dist/texts/index.js
75565
75751
  var require_texts = __commonJS({
75566
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/texts/index.js"(exports2) {
75752
+ "../../node_modules/@sap-ux/yaml/dist/texts/index.js"(exports2) {
75567
75753
  "use strict";
75568
75754
  Object.defineProperty(exports2, "__esModule", { value: true });
75569
75755
  exports2.interpolate = void 0;
@@ -75582,9 +75768,9 @@ var require_texts = __commonJS({
75582
75768
  }
75583
75769
  });
75584
75770
 
75585
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/yaml-document.js
75771
+ // ../../node_modules/@sap-ux/yaml/dist/yaml-document.js
75586
75772
  var require_yaml_document = __commonJS({
75587
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/yaml-document.js"(exports2) {
75773
+ "../../node_modules/@sap-ux/yaml/dist/yaml-document.js"(exports2) {
75588
75774
  "use strict";
75589
75775
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
75590
75776
  if (k2 === void 0)
@@ -75818,9 +76004,9 @@ var require_yaml_document = __commonJS({
75818
76004
  }
75819
76005
  });
75820
76006
 
75821
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/index.js
76007
+ // ../../node_modules/@sap-ux/yaml/dist/index.js
75822
76008
  var require_dist10 = __commonJS({
75823
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/yaml/dist/index.js"(exports2) {
76009
+ "../../node_modules/@sap-ux/yaml/dist/index.js"(exports2) {
75824
76010
  "use strict";
75825
76011
  Object.defineProperty(exports2, "__esModule", { value: true });
75826
76012
  exports2.YAMLError = exports2.errorCode = exports2.YAMLMap = exports2.YAMLSeq = exports2.YamlDocument = void 0;
@@ -75845,9 +76031,9 @@ var require_dist10 = __commonJS({
75845
76031
  }
75846
76032
  });
75847
76033
 
75848
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/ui5-config/dist/middlewares.js
76034
+ // ../../node_modules/@sap-ux/ui5-config/dist/middlewares.js
75849
76035
  var require_middlewares = __commonJS({
75850
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/ui5-config/dist/middlewares.js"(exports2) {
76036
+ "../../node_modules/@sap-ux/ui5-config/dist/middlewares.js"(exports2) {
75851
76037
  "use strict";
75852
76038
  Object.defineProperty(exports2, "__esModule", { value: true });
75853
76039
  exports2.getMockServerMiddlewareConfig = exports2.getFioriToolsProxyMiddlewareConfig = exports2.getAppReloadMiddlewareConfig = void 0;
@@ -75921,9 +76107,9 @@ var require_middlewares = __commonJS({
75921
76107
  }
75922
76108
  });
75923
76109
 
75924
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/ui5-config/dist/ui5config.js
76110
+ // ../../node_modules/@sap-ux/ui5-config/dist/ui5config.js
75925
76111
  var require_ui5config = __commonJS({
75926
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/ui5-config/dist/ui5config.js"(exports2) {
76112
+ "../../node_modules/@sap-ux/ui5-config/dist/ui5config.js"(exports2) {
75927
76113
  "use strict";
75928
76114
  var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
75929
76115
  function adopt(value) {
@@ -76125,9 +76311,9 @@ var require_ui5config = __commonJS({
76125
76311
  }
76126
76312
  });
76127
76313
 
76128
- // ../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/ui5-config/dist/index.js
76314
+ // ../../node_modules/@sap-ux/ui5-config/dist/index.js
76129
76315
  var require_dist11 = __commonJS({
76130
- "../../node_modules/@sap-ux/project-access/node_modules/@sap-ux/ui5-config/dist/index.js"(exports2) {
76316
+ "../../node_modules/@sap-ux/ui5-config/dist/index.js"(exports2) {
76131
76317
  "use strict";
76132
76318
  Object.defineProperty(exports2, "__esModule", { value: true });
76133
76319
  exports2.YAMLError = exports2.yamlErrorCode = exports2.UI5Config = void 0;
@@ -76177,7 +76363,7 @@ var require_ui5_config = __commonJS({
76177
76363
  });
76178
76364
  };
76179
76365
  Object.defineProperty(exports2, "__esModule", { value: true });
76180
- exports2.getWebappPath = void 0;
76366
+ exports2.readUi5Yaml = exports2.getWebappPath = void 0;
76181
76367
  var path_1 = require("path");
76182
76368
  var ui5_config_1 = require_dist11();
76183
76369
  var constants_1 = require_constants6();
@@ -76199,6 +76385,17 @@ var require_ui5_config = __commonJS({
76199
76385
  });
76200
76386
  }
76201
76387
  exports2.getWebappPath = getWebappPath;
76388
+ function readUi5Yaml(basePath, fileName) {
76389
+ return __awaiter(this, void 0, void 0, function* () {
76390
+ const ui5YamlPath = (0, path_1.join)(basePath, fileName);
76391
+ if (yield (0, file_1.fileExists)(ui5YamlPath)) {
76392
+ const yamlString = yield (0, file_1.readFile)(ui5YamlPath);
76393
+ return yield ui5_config_1.UI5Config.newInstance(yamlString);
76394
+ }
76395
+ throw Error(`File '${fileName}' not found in project '${basePath}'`);
76396
+ });
76397
+ }
76398
+ exports2.readUi5Yaml = readUi5Yaml;
76202
76399
  }
76203
76400
  });
76204
76401
 
@@ -76462,7 +76659,7 @@ var require_project2 = __commonJS({
76462
76659
  "../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
76463
76660
  "use strict";
76464
76661
  Object.defineProperty(exports2, "__esModule", { value: true });
76465
- exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = void 0;
76662
+ exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = void 0;
76466
76663
  var cap_1 = require_cap();
76467
76664
  Object.defineProperty(exports2, "getCapModelAndServices", { enumerable: true, get: function() {
76468
76665
  return cap_1.getCapModelAndServices;
@@ -76498,6 +76695,9 @@ var require_project2 = __commonJS({
76498
76695
  Object.defineProperty(exports2, "getWebappPath", { enumerable: true, get: function() {
76499
76696
  return ui5_config_1.getWebappPath;
76500
76697
  } });
76698
+ Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
76699
+ return ui5_config_1.readUi5Yaml;
76700
+ } });
76501
76701
  }
76502
76702
  });
76503
76703
 
@@ -76608,7 +76808,7 @@ var require_dist12 = __commonJS({
76608
76808
  __createBinding(exports3, m, p);
76609
76809
  };
76610
76810
  Object.defineProperty(exports2, "__esModule", { value: true });
76611
- exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.FileName = void 0;
76811
+ exports2.readUi5Yaml = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.FileName = void 0;
76612
76812
  var constants_1 = require_constants6();
76613
76813
  Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
76614
76814
  return constants_1.FileName;
@@ -76644,6 +76844,9 @@ var require_dist12 = __commonJS({
76644
76844
  Object.defineProperty(exports2, "loadModuleFromProject", { enumerable: true, get: function() {
76645
76845
  return project_1.loadModuleFromProject;
76646
76846
  } });
76847
+ Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
76848
+ return project_1.readUi5Yaml;
76849
+ } });
76647
76850
  __exportStar(require_types8(), exports2);
76648
76851
  }
76649
76852
  });
@@ -77857,7 +78060,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
77857
78060
  return (0, ux_feature_toggle_1.isInternalFeaturesSettingEnabled)() ? "internal" : "external";
77858
78061
  }
77859
78062
  async function getManifestSourceTemplate(appPath) {
77860
- var _a2, _b, _c, _d;
78063
+ var _a2;
77861
78064
  let sourceTemplate;
77862
78065
  try {
77863
78066
  const manifestPath = path_1.default.join(appPath, "webapp", "manifest.json");
@@ -77868,10 +78071,10 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
77868
78071
  } catch (err) {
77869
78072
  console.log(`[Telemetry]: ${err.message}`);
77870
78073
  }
77871
- sourceTemplate = sourceTemplate != null ? sourceTemplate : {};
77872
- sourceTemplate.id = (_b = sourceTemplate.id) != null ? _b : "";
77873
- sourceTemplate.version = (_c = sourceTemplate.version) != null ? _c : "";
77874
- sourceTemplate.toolsId = (_d = sourceTemplate.toolsId) != null ? _d : types_1.ToolsId.NO_TOOLS_ID;
78074
+ sourceTemplate = sourceTemplate ?? {};
78075
+ sourceTemplate.id = sourceTemplate.id ?? "";
78076
+ sourceTemplate.version = sourceTemplate.version ?? "";
78077
+ sourceTemplate.toolsId = sourceTemplate.toolsId ?? types_1.ToolsId.NO_TOOLS_ID;
77875
78078
  return sourceTemplate;
77876
78079
  }
77877
78080
  async function getProcessVersions() {
@@ -95847,10 +96050,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
95847
96050
  try {
95848
96051
  content = await fs_1.default.promises.readFile(deprecatedSettingPath, "utf-8");
95849
96052
  const deprecatedSetting = JSON.parse(content);
95850
- const propValues = deprecatedExtensionPropKeys.map((propKey) => {
95851
- var _a2;
95852
- return (_a2 = deprecatedSetting[propKey]) != null ? _a2 : true;
95853
- });
96053
+ const propValues = deprecatedExtensionPropKeys.map((propKey) => deprecatedSetting[propKey] ?? true);
95854
96054
  const deprecatedEnableTelemetrySetting = propValues.reduce((prevValue, currentValue) => prevValue && currentValue);
95855
96055
  (0, exports2.setEnableTelemetry)(deprecatedEnableTelemetrySetting);
95856
96056
  } catch {
@@ -162364,8 +162564,7 @@ function createDistWorkspace() {
162364
162564
  return import_fs2.resourceFactory.createWorkspace({ reader: fs5, name: "fiori", virBasePath: "fiori" });
162365
162565
  }
162366
162566
  function getSapClientFromPackageJson(packageJson) {
162367
- var _a2;
162368
- const scripts = Object.values((_a2 = packageJson.scripts) != null ? _a2 : {});
162567
+ const scripts = Object.values(packageJson.scripts ?? {});
162369
162568
  for (const script of scripts) {
162370
162569
  const match = script.match(SAP_CLIENT_REGEX);
162371
162570
  if (match) {
@@ -166683,14 +166882,13 @@ async function getUrlArchive(archiveUrl, strictSsl) {
166683
166882
  return archivePath;
166684
166883
  }
166685
166884
  async function confirmDeploy(config2) {
166686
- var _a2, _b, _c, _d, _e, _f;
166687
166885
  let abort = false;
166688
166886
  let target;
166689
166887
  if ((0, import_ux_common_utils3.isAppStudio)()) {
166690
- target = `${chalk.blue(i18next_default.t("DESTINATION"))}: ${(_a2 = config2.target.destination) != null ? _a2 : ""}`;
166888
+ target = `${chalk.blue(i18next_default.t("DESTINATION"))}: ${config2.target.destination ?? ""}`;
166691
166889
  } else {
166692
- target = `${chalk.blue(i18next_default.t("TARGET"))}: ${(_b = config2.target.url) != null ? _b : ""}
166693
- ${chalk.blue(i18next_default.t("CLIENT"))}: ${(_c = config2.target.client) != null ? _c : ""}`;
166890
+ target = `${chalk.blue(i18next_default.t("TARGET"))}: ${config2.target.url ?? ""}
166891
+ ${chalk.blue(i18next_default.t("CLIENT"))}: ${config2.target.client ?? ""}`;
166694
166892
  }
166695
166893
  let targetSystemUI5Version = "";
166696
166894
  if (config2.targetSystemUI5Version) {
@@ -166703,10 +166901,10 @@ async function confirmDeploy(config2) {
166703
166901
  }
166704
166902
  console.log(`
166705
166903
  ${chalk.blue(i18next_default.t("APPLICATION_NAME"))}: ${config2.app.name}
166706
- ${chalk.blue(i18next_default.t("PACKAGE"))}: ${(_d = config2.app.package) != null ? _d : ""}
166707
- ${chalk.blue(i18next_default.t("TRANSPORT_REQUEST"))}: ${(_e = config2.app.transport) != null ? _e : ""}
166904
+ ${chalk.blue(i18next_default.t("PACKAGE"))}: ${config2.app.package ?? ""}
166905
+ ${chalk.blue(i18next_default.t("TRANSPORT_REQUEST"))}: ${config2.app.transport ?? ""}
166708
166906
  ${target}
166709
- ${chalk.blue("SCP")}: ${(_f = config2.target.scp) != null ? _f : "false"}
166907
+ ${chalk.blue("SCP")}: ${config2.target.scp ?? "false"}
166710
166908
  ${targetSystemUI5Version}
166711
166909
  `);
166712
166910
  if (config2.targetSystemUI5Version) {
@@ -166883,19 +167081,18 @@ async function undeployWithRetry(config2, log7) {
166883
167081
  // src/tasks/undeploy/index.ts
166884
167082
  var chalk3 = require_source7();
166885
167083
  async function confirmUndeploy(config2) {
166886
- var _a2, _b, _c;
166887
167084
  let abort = false;
166888
167085
  console.log();
166889
167086
  console.log(chalk3.blue.bold.underline(i18next_default.t("CONFIRM_UNDEPLOYMENT")));
166890
167087
  let target;
166891
167088
  if ((0, import_ux_common_utils4.isAppStudio)()) {
166892
- target = `${chalk3.blue(i18next_default.t("DESTINATION"))}: ${(_a2 = config2.target.destination) != null ? _a2 : ""}`;
167089
+ target = `${chalk3.blue(i18next_default.t("DESTINATION"))}: ${config2.target.destination ?? ""}`;
166893
167090
  } else {
166894
- target = `${chalk3.blue(i18next_default.t("TARGET"))}: ${(_b = config2.target.url) != null ? _b : ""}`;
167091
+ target = `${chalk3.blue(i18next_default.t("TARGET"))}: ${config2.target.url ?? ""}`;
166895
167092
  }
166896
167093
  console.log(`
166897
167094
  ${chalk3.blue(i18next_default.t("APPLICATION_NAME"))}: ${config2.app.name}
166898
- ${chalk3.blue(i18next_default.t("TRANSPORT_REQUEST"))}: ${(_c = config2.app.transport) != null ? _c : ""}
167095
+ ${chalk3.blue(i18next_default.t("TRANSPORT_REQUEST"))}: ${config2.app.transport ?? ""}
166899
167096
  ${target}
166900
167097
  `);
166901
167098
  console.log();