@gigadrive/network-config 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3408,8 +3408,8 @@
3408
3408
  wsComponents.secure = void 0;
3409
3409
  }
3410
3410
  if (wsComponents.resourceName) {
3411
- const [path5, query] = wsComponents.resourceName.split("?");
3412
- wsComponents.path = path5 && path5 !== "/" ? path5 : void 0;
3411
+ const [path7, query] = wsComponents.resourceName.split("?");
3412
+ wsComponents.path = path7 && path7 !== "/" ? path7 : void 0;
3413
3413
  wsComponents.query = query;
3414
3414
  wsComponents.resourceName = void 0;
3415
3415
  }
@@ -6725,12 +6725,12 @@
6725
6725
  throw new Error(`Unknown format "${name}"`);
6726
6726
  return f;
6727
6727
  };
6728
- function addFormats2(ajv, list, fs5, exportName) {
6728
+ function addFormats2(ajv, list, fs6, exportName) {
6729
6729
  var _a;
6730
6730
  var _b;
6731
6731
  (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
6732
6732
  for (const f of list)
6733
- ajv.addFormat(f, fs5[f]);
6733
+ ajv.addFormat(f, fs6[f]);
6734
6734
  }
6735
6735
  module.exports = exports = formatsPlugin;
6736
6736
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6947,9 +6947,9 @@
6947
6947
  }
6948
6948
  });
6949
6949
 
6950
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/identity.js
6950
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/identity.js
6951
6951
  var require_identity = __commonJS({
6952
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/identity.js"(exports) {
6952
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/identity.js"(exports) {
6953
6953
  "use strict";
6954
6954
  var ALIAS = Symbol.for("yaml.alias");
6955
6955
  var DOC = Symbol.for("yaml.document");
@@ -7004,9 +7004,9 @@
7004
7004
  }
7005
7005
  });
7006
7006
 
7007
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/visit.js
7007
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/visit.js
7008
7008
  var require_visit = __commonJS({
7009
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/visit.js"(exports) {
7009
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/visit.js"(exports) {
7010
7010
  "use strict";
7011
7011
  var identity = require_identity();
7012
7012
  var BREAK = Symbol("break visit");
@@ -7024,17 +7024,17 @@
7024
7024
  visit.BREAK = BREAK;
7025
7025
  visit.SKIP = SKIP;
7026
7026
  visit.REMOVE = REMOVE;
7027
- function visit_(key, node, visitor, path5) {
7028
- const ctrl = callVisitor(key, node, visitor, path5);
7027
+ function visit_(key, node, visitor, path7) {
7028
+ const ctrl = callVisitor(key, node, visitor, path7);
7029
7029
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
7030
- replaceNode(key, path5, ctrl);
7031
- return visit_(key, ctrl, visitor, path5);
7030
+ replaceNode(key, path7, ctrl);
7031
+ return visit_(key, ctrl, visitor, path7);
7032
7032
  }
7033
7033
  if (typeof ctrl !== "symbol") {
7034
7034
  if (identity.isCollection(node)) {
7035
- path5 = Object.freeze(path5.concat(node));
7035
+ path7 = Object.freeze(path7.concat(node));
7036
7036
  for (let i = 0; i < node.items.length; ++i) {
7037
- const ci = visit_(i, node.items[i], visitor, path5);
7037
+ const ci = visit_(i, node.items[i], visitor, path7);
7038
7038
  if (typeof ci === "number")
7039
7039
  i = ci - 1;
7040
7040
  else if (ci === BREAK)
@@ -7045,13 +7045,13 @@
7045
7045
  }
7046
7046
  }
7047
7047
  } else if (identity.isPair(node)) {
7048
- path5 = Object.freeze(path5.concat(node));
7049
- const ck = visit_("key", node.key, visitor, path5);
7048
+ path7 = Object.freeze(path7.concat(node));
7049
+ const ck = visit_("key", node.key, visitor, path7);
7050
7050
  if (ck === BREAK)
7051
7051
  return BREAK;
7052
7052
  else if (ck === REMOVE)
7053
7053
  node.key = null;
7054
- const cv = visit_("value", node.value, visitor, path5);
7054
+ const cv = visit_("value", node.value, visitor, path7);
7055
7055
  if (cv === BREAK)
7056
7056
  return BREAK;
7057
7057
  else if (cv === REMOVE)
@@ -7072,17 +7072,17 @@
7072
7072
  visitAsync.BREAK = BREAK;
7073
7073
  visitAsync.SKIP = SKIP;
7074
7074
  visitAsync.REMOVE = REMOVE;
7075
- async function visitAsync_(key, node, visitor, path5) {
7076
- const ctrl = await callVisitor(key, node, visitor, path5);
7075
+ async function visitAsync_(key, node, visitor, path7) {
7076
+ const ctrl = await callVisitor(key, node, visitor, path7);
7077
7077
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
7078
- replaceNode(key, path5, ctrl);
7079
- return visitAsync_(key, ctrl, visitor, path5);
7078
+ replaceNode(key, path7, ctrl);
7079
+ return visitAsync_(key, ctrl, visitor, path7);
7080
7080
  }
7081
7081
  if (typeof ctrl !== "symbol") {
7082
7082
  if (identity.isCollection(node)) {
7083
- path5 = Object.freeze(path5.concat(node));
7083
+ path7 = Object.freeze(path7.concat(node));
7084
7084
  for (let i = 0; i < node.items.length; ++i) {
7085
- const ci = await visitAsync_(i, node.items[i], visitor, path5);
7085
+ const ci = await visitAsync_(i, node.items[i], visitor, path7);
7086
7086
  if (typeof ci === "number")
7087
7087
  i = ci - 1;
7088
7088
  else if (ci === BREAK)
@@ -7093,13 +7093,13 @@
7093
7093
  }
7094
7094
  }
7095
7095
  } else if (identity.isPair(node)) {
7096
- path5 = Object.freeze(path5.concat(node));
7097
- const ck = await visitAsync_("key", node.key, visitor, path5);
7096
+ path7 = Object.freeze(path7.concat(node));
7097
+ const ck = await visitAsync_("key", node.key, visitor, path7);
7098
7098
  if (ck === BREAK)
7099
7099
  return BREAK;
7100
7100
  else if (ck === REMOVE)
7101
7101
  node.key = null;
7102
- const cv = await visitAsync_("value", node.value, visitor, path5);
7102
+ const cv = await visitAsync_("value", node.value, visitor, path7);
7103
7103
  if (cv === BREAK)
7104
7104
  return BREAK;
7105
7105
  else if (cv === REMOVE)
@@ -7126,23 +7126,23 @@
7126
7126
  }
7127
7127
  return visitor;
7128
7128
  }
7129
- function callVisitor(key, node, visitor, path5) {
7129
+ function callVisitor(key, node, visitor, path7) {
7130
7130
  if (typeof visitor === "function")
7131
- return visitor(key, node, path5);
7131
+ return visitor(key, node, path7);
7132
7132
  if (identity.isMap(node))
7133
- return visitor.Map?.(key, node, path5);
7133
+ return visitor.Map?.(key, node, path7);
7134
7134
  if (identity.isSeq(node))
7135
- return visitor.Seq?.(key, node, path5);
7135
+ return visitor.Seq?.(key, node, path7);
7136
7136
  if (identity.isPair(node))
7137
- return visitor.Pair?.(key, node, path5);
7137
+ return visitor.Pair?.(key, node, path7);
7138
7138
  if (identity.isScalar(node))
7139
- return visitor.Scalar?.(key, node, path5);
7139
+ return visitor.Scalar?.(key, node, path7);
7140
7140
  if (identity.isAlias(node))
7141
- return visitor.Alias?.(key, node, path5);
7141
+ return visitor.Alias?.(key, node, path7);
7142
7142
  return void 0;
7143
7143
  }
7144
- function replaceNode(key, path5, node) {
7145
- const parent = path5[path5.length - 1];
7144
+ function replaceNode(key, path7, node) {
7145
+ const parent = path7[path7.length - 1];
7146
7146
  if (identity.isCollection(parent)) {
7147
7147
  parent.items[key] = node;
7148
7148
  } else if (identity.isPair(parent)) {
@@ -7162,9 +7162,9 @@
7162
7162
  }
7163
7163
  });
7164
7164
 
7165
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/directives.js
7165
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/directives.js
7166
7166
  var require_directives = __commonJS({
7167
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/directives.js"(exports) {
7167
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/directives.js"(exports) {
7168
7168
  "use strict";
7169
7169
  var identity = require_identity();
7170
7170
  var visit = require_visit();
@@ -7333,9 +7333,9 @@
7333
7333
  }
7334
7334
  });
7335
7335
 
7336
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/anchors.js
7336
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/anchors.js
7337
7337
  var require_anchors = __commonJS({
7338
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/anchors.js"(exports) {
7338
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/anchors.js"(exports) {
7339
7339
  "use strict";
7340
7340
  var identity = require_identity();
7341
7341
  var visit = require_visit();
@@ -7404,9 +7404,9 @@
7404
7404
  }
7405
7405
  });
7406
7406
 
7407
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/applyReviver.js
7407
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/applyReviver.js
7408
7408
  var require_applyReviver = __commonJS({
7409
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
7409
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
7410
7410
  "use strict";
7411
7411
  function applyReviver(reviver, obj, key, val) {
7412
7412
  if (val && typeof val === "object") {
@@ -7454,9 +7454,9 @@
7454
7454
  }
7455
7455
  });
7456
7456
 
7457
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/toJS.js
7457
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/toJS.js
7458
7458
  var require_toJS = __commonJS({
7459
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/toJS.js"(exports) {
7459
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/toJS.js"(exports) {
7460
7460
  "use strict";
7461
7461
  var identity = require_identity();
7462
7462
  function toJS(value, arg, ctx) {
@@ -7484,9 +7484,9 @@
7484
7484
  }
7485
7485
  });
7486
7486
 
7487
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Node.js
7487
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Node.js
7488
7488
  var require_Node = __commonJS({
7489
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Node.js"(exports) {
7489
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Node.js"(exports) {
7490
7490
  "use strict";
7491
7491
  var applyReviver = require_applyReviver();
7492
7492
  var identity = require_identity();
@@ -7525,9 +7525,9 @@
7525
7525
  }
7526
7526
  });
7527
7527
 
7528
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Alias.js
7528
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Alias.js
7529
7529
  var require_Alias = __commonJS({
7530
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Alias.js"(exports) {
7530
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Alias.js"(exports) {
7531
7531
  "use strict";
7532
7532
  var anchors = require_anchors();
7533
7533
  var visit = require_visit();
@@ -7627,9 +7627,9 @@
7627
7627
  }
7628
7628
  });
7629
7629
 
7630
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Scalar.js
7630
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Scalar.js
7631
7631
  var require_Scalar = __commonJS({
7632
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
7632
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
7633
7633
  "use strict";
7634
7634
  var identity = require_identity();
7635
7635
  var Node = require_Node();
@@ -7657,9 +7657,9 @@
7657
7657
  }
7658
7658
  });
7659
7659
 
7660
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/createNode.js
7660
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/createNode.js
7661
7661
  var require_createNode = __commonJS({
7662
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/createNode.js"(exports) {
7662
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/createNode.js"(exports) {
7663
7663
  "use strict";
7664
7664
  var Alias = require_Alias();
7665
7665
  var identity = require_identity();
@@ -7733,17 +7733,17 @@
7733
7733
  }
7734
7734
  });
7735
7735
 
7736
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Collection.js
7736
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Collection.js
7737
7737
  var require_Collection = __commonJS({
7738
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Collection.js"(exports) {
7738
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Collection.js"(exports) {
7739
7739
  "use strict";
7740
7740
  var createNode = require_createNode();
7741
7741
  var identity = require_identity();
7742
7742
  var Node = require_Node();
7743
- function collectionFromPath(schema, path5, value) {
7743
+ function collectionFromPath(schema, path7, value) {
7744
7744
  let v = value;
7745
- for (let i = path5.length - 1; i >= 0; --i) {
7746
- const k = path5[i];
7745
+ for (let i = path7.length - 1; i >= 0; --i) {
7746
+ const k = path7[i];
7747
7747
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
7748
7748
  const a = [];
7749
7749
  a[k] = v;
@@ -7762,7 +7762,7 @@
7762
7762
  sourceObjects: /* @__PURE__ */ new Map()
7763
7763
  });
7764
7764
  }
7765
- var isEmptyPath = (path5) => path5 == null || typeof path5 === "object" && !!path5[Symbol.iterator]().next().done;
7765
+ var isEmptyPath = (path7) => path7 == null || typeof path7 === "object" && !!path7[Symbol.iterator]().next().done;
7766
7766
  var Collection = class extends Node.NodeBase {
7767
7767
  constructor(type, schema) {
7768
7768
  super(type);
@@ -7792,11 +7792,11 @@
7792
7792
  * be a Pair instance or a `{ key, value }` object, which may not have a key
7793
7793
  * that already exists in the map.
7794
7794
  */
7795
- addIn(path5, value) {
7796
- if (isEmptyPath(path5))
7795
+ addIn(path7, value) {
7796
+ if (isEmptyPath(path7))
7797
7797
  this.add(value);
7798
7798
  else {
7799
- const [key, ...rest] = path5;
7799
+ const [key, ...rest] = path7;
7800
7800
  const node = this.get(key, true);
7801
7801
  if (identity.isCollection(node))
7802
7802
  node.addIn(rest, value);
@@ -7810,8 +7810,8 @@
7810
7810
  * Removes a value from the collection.
7811
7811
  * @returns `true` if the item was found and removed.
7812
7812
  */
7813
- deleteIn(path5) {
7814
- const [key, ...rest] = path5;
7813
+ deleteIn(path7) {
7814
+ const [key, ...rest] = path7;
7815
7815
  if (rest.length === 0)
7816
7816
  return this.delete(key);
7817
7817
  const node = this.get(key, true);
@@ -7825,8 +7825,8 @@
7825
7825
  * scalar values from their surrounding node; to disable set `keepScalar` to
7826
7826
  * `true` (collections are always returned intact).
7827
7827
  */
7828
- getIn(path5, keepScalar) {
7829
- const [key, ...rest] = path5;
7828
+ getIn(path7, keepScalar) {
7829
+ const [key, ...rest] = path7;
7830
7830
  const node = this.get(key, true);
7831
7831
  if (rest.length === 0)
7832
7832
  return !keepScalar && identity.isScalar(node) ? node.value : node;
@@ -7844,8 +7844,8 @@
7844
7844
  /**
7845
7845
  * Checks if the collection includes a value with the key `key`.
7846
7846
  */
7847
- hasIn(path5) {
7848
- const [key, ...rest] = path5;
7847
+ hasIn(path7) {
7848
+ const [key, ...rest] = path7;
7849
7849
  if (rest.length === 0)
7850
7850
  return this.has(key);
7851
7851
  const node = this.get(key, true);
@@ -7855,8 +7855,8 @@
7855
7855
  * Sets a value in this collection. For `!!set`, `value` needs to be a
7856
7856
  * boolean to add/remove the item from the set.
7857
7857
  */
7858
- setIn(path5, value) {
7859
- const [key, ...rest] = path5;
7858
+ setIn(path7, value) {
7859
+ const [key, ...rest] = path7;
7860
7860
  if (rest.length === 0) {
7861
7861
  this.set(key, value);
7862
7862
  } else {
@@ -7876,9 +7876,9 @@
7876
7876
  }
7877
7877
  });
7878
7878
 
7879
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyComment.js
7879
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyComment.js
7880
7880
  var require_stringifyComment = __commonJS({
7881
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
7881
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
7882
7882
  "use strict";
7883
7883
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
7884
7884
  function indentComment(comment, indent) {
@@ -7893,9 +7893,9 @@
7893
7893
  }
7894
7894
  });
7895
7895
 
7896
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/foldFlowLines.js
7896
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/foldFlowLines.js
7897
7897
  var require_foldFlowLines = __commonJS({
7898
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
7898
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
7899
7899
  "use strict";
7900
7900
  var FOLD_FLOW = "flow";
7901
7901
  var FOLD_BLOCK = "block";
@@ -8029,9 +8029,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
8029
8029
  }
8030
8030
  });
8031
8031
 
8032
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyString.js
8032
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyString.js
8033
8033
  var require_stringifyString = __commonJS({
8034
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
8034
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
8035
8035
  "use strict";
8036
8036
  var Scalar = require_Scalar();
8037
8037
  var foldFlowLines = require_foldFlowLines();
@@ -8312,9 +8312,9 @@ ${indent}`);
8312
8312
  }
8313
8313
  });
8314
8314
 
8315
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringify.js
8315
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringify.js
8316
8316
  var require_stringify = __commonJS({
8317
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringify.js"(exports) {
8317
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringify.js"(exports) {
8318
8318
  "use strict";
8319
8319
  var anchors = require_anchors();
8320
8320
  var identity = require_identity();
@@ -8436,9 +8436,9 @@ ${ctx.indent}${str}`;
8436
8436
  }
8437
8437
  });
8438
8438
 
8439
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyPair.js
8439
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyPair.js
8440
8440
  var require_stringifyPair = __commonJS({
8441
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
8441
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
8442
8442
  "use strict";
8443
8443
  var identity = require_identity();
8444
8444
  var Scalar = require_Scalar();
@@ -8569,9 +8569,9 @@ ${ctx.indent}`;
8569
8569
  }
8570
8570
  });
8571
8571
 
8572
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/log.js
8572
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/log.js
8573
8573
  var require_log = __commonJS({
8574
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/log.js"(exports) {
8574
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/log.js"(exports) {
8575
8575
  "use strict";
8576
8576
  var node_process = __require("node:process");
8577
8577
  function debug(logLevel, ...messages) {
@@ -8591,9 +8591,9 @@ ${ctx.indent}`;
8591
8591
  }
8592
8592
  });
8593
8593
 
8594
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
8594
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
8595
8595
  var require_merge = __commonJS({
8596
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
8596
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
8597
8597
  "use strict";
8598
8598
  var identity = require_identity();
8599
8599
  var Scalar = require_Scalar();
@@ -8648,9 +8648,9 @@ ${ctx.indent}`;
8648
8648
  }
8649
8649
  });
8650
8650
 
8651
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
8651
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
8652
8652
  var require_addPairToJSMap = __commonJS({
8653
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
8653
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
8654
8654
  "use strict";
8655
8655
  var log = require_log();
8656
8656
  var merge = require_merge();
@@ -8712,9 +8712,9 @@ ${ctx.indent}`;
8712
8712
  }
8713
8713
  });
8714
8714
 
8715
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Pair.js
8715
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Pair.js
8716
8716
  var require_Pair = __commonJS({
8717
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/Pair.js"(exports) {
8717
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/Pair.js"(exports) {
8718
8718
  "use strict";
8719
8719
  var createNode = require_createNode();
8720
8720
  var stringifyPair = require_stringifyPair();
@@ -8752,9 +8752,9 @@ ${ctx.indent}`;
8752
8752
  }
8753
8753
  });
8754
8754
 
8755
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyCollection.js
8755
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyCollection.js
8756
8756
  var require_stringifyCollection = __commonJS({
8757
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
8757
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
8758
8758
  "use strict";
8759
8759
  var identity = require_identity();
8760
8760
  var stringify = require_stringify();
@@ -8896,9 +8896,9 @@ ${indent}${end}`;
8896
8896
  }
8897
8897
  });
8898
8898
 
8899
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/YAMLMap.js
8899
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLMap.js
8900
8900
  var require_YAMLMap = __commonJS({
8901
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
8901
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
8902
8902
  "use strict";
8903
8903
  var stringifyCollection = require_stringifyCollection();
8904
8904
  var addPairToJSMap = require_addPairToJSMap();
@@ -9040,9 +9040,9 @@ ${indent}${end}`;
9040
9040
  }
9041
9041
  });
9042
9042
 
9043
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/map.js
9043
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/map.js
9044
9044
  var require_map = __commonJS({
9045
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/map.js"(exports) {
9045
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/map.js"(exports) {
9046
9046
  "use strict";
9047
9047
  var identity = require_identity();
9048
9048
  var YAMLMap = require_YAMLMap();
@@ -9062,9 +9062,9 @@ ${indent}${end}`;
9062
9062
  }
9063
9063
  });
9064
9064
 
9065
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/YAMLSeq.js
9065
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLSeq.js
9066
9066
  var require_YAMLSeq = __commonJS({
9067
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
9067
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
9068
9068
  "use strict";
9069
9069
  var createNode = require_createNode();
9070
9070
  var stringifyCollection = require_stringifyCollection();
@@ -9178,9 +9178,9 @@ ${indent}${end}`;
9178
9178
  }
9179
9179
  });
9180
9180
 
9181
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/seq.js
9181
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/seq.js
9182
9182
  var require_seq = __commonJS({
9183
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/seq.js"(exports) {
9183
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/seq.js"(exports) {
9184
9184
  "use strict";
9185
9185
  var identity = require_identity();
9186
9186
  var YAMLSeq = require_YAMLSeq();
@@ -9200,9 +9200,9 @@ ${indent}${end}`;
9200
9200
  }
9201
9201
  });
9202
9202
 
9203
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/string.js
9203
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/string.js
9204
9204
  var require_string = __commonJS({
9205
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/string.js"(exports) {
9205
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/string.js"(exports) {
9206
9206
  "use strict";
9207
9207
  var stringifyString = require_stringifyString();
9208
9208
  var string = {
@@ -9219,9 +9219,9 @@ ${indent}${end}`;
9219
9219
  }
9220
9220
  });
9221
9221
 
9222
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/null.js
9222
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/null.js
9223
9223
  var require_null = __commonJS({
9224
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/common/null.js"(exports) {
9224
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/common/null.js"(exports) {
9225
9225
  "use strict";
9226
9226
  var Scalar = require_Scalar();
9227
9227
  var nullTag = {
@@ -9237,9 +9237,9 @@ ${indent}${end}`;
9237
9237
  }
9238
9238
  });
9239
9239
 
9240
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/bool.js
9240
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/bool.js
9241
9241
  var require_bool = __commonJS({
9242
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/bool.js"(exports) {
9242
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/bool.js"(exports) {
9243
9243
  "use strict";
9244
9244
  var Scalar = require_Scalar();
9245
9245
  var boolTag = {
@@ -9261,9 +9261,9 @@ ${indent}${end}`;
9261
9261
  }
9262
9262
  });
9263
9263
 
9264
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyNumber.js
9264
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyNumber.js
9265
9265
  var require_stringifyNumber = __commonJS({
9266
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
9266
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
9267
9267
  "use strict";
9268
9268
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
9269
9269
  if (typeof value === "bigint")
@@ -9288,9 +9288,9 @@ ${indent}${end}`;
9288
9288
  }
9289
9289
  });
9290
9290
 
9291
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/float.js
9291
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/float.js
9292
9292
  var require_float = __commonJS({
9293
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/float.js"(exports) {
9293
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/float.js"(exports) {
9294
9294
  "use strict";
9295
9295
  var Scalar = require_Scalar();
9296
9296
  var stringifyNumber = require_stringifyNumber();
@@ -9334,9 +9334,9 @@ ${indent}${end}`;
9334
9334
  }
9335
9335
  });
9336
9336
 
9337
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/int.js
9337
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/int.js
9338
9338
  var require_int = __commonJS({
9339
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/int.js"(exports) {
9339
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/int.js"(exports) {
9340
9340
  "use strict";
9341
9341
  var stringifyNumber = require_stringifyNumber();
9342
9342
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -9379,9 +9379,9 @@ ${indent}${end}`;
9379
9379
  }
9380
9380
  });
9381
9381
 
9382
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/schema.js
9382
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/schema.js
9383
9383
  var require_schema = __commonJS({
9384
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/core/schema.js"(exports) {
9384
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/core/schema.js"(exports) {
9385
9385
  "use strict";
9386
9386
  var map = require_map();
9387
9387
  var _null = require_null();
@@ -9407,9 +9407,9 @@ ${indent}${end}`;
9407
9407
  }
9408
9408
  });
9409
9409
 
9410
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/json/schema.js
9410
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/json/schema.js
9411
9411
  var require_schema2 = __commonJS({
9412
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/json/schema.js"(exports) {
9412
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/json/schema.js"(exports) {
9413
9413
  "use strict";
9414
9414
  var Scalar = require_Scalar();
9415
9415
  var map = require_map();
@@ -9474,9 +9474,9 @@ ${indent}${end}`;
9474
9474
  }
9475
9475
  });
9476
9476
 
9477
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
9477
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
9478
9478
  var require_binary = __commonJS({
9479
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
9479
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
9480
9480
  "use strict";
9481
9481
  var node_buffer = __require("node:buffer");
9482
9482
  var Scalar = require_Scalar();
@@ -9509,6 +9509,8 @@ ${indent}${end}`;
9509
9509
  }
9510
9510
  },
9511
9511
  stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
9512
+ if (!value)
9513
+ return "";
9512
9514
  const buf = value;
9513
9515
  let str;
9514
9516
  if (typeof node_buffer.Buffer === "function") {
@@ -9539,9 +9541,9 @@ ${indent}${end}`;
9539
9541
  }
9540
9542
  });
9541
9543
 
9542
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
9544
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
9543
9545
  var require_pairs = __commonJS({
9544
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
9546
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
9545
9547
  "use strict";
9546
9548
  var identity = require_identity();
9547
9549
  var Pair = require_Pair();
@@ -9617,9 +9619,9 @@ ${cn.comment}` : item.comment;
9617
9619
  }
9618
9620
  });
9619
9621
 
9620
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
9622
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
9621
9623
  var require_omap = __commonJS({
9622
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
9624
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
9623
9625
  "use strict";
9624
9626
  var identity = require_identity();
9625
9627
  var toJS = require_toJS();
@@ -9695,9 +9697,9 @@ ${cn.comment}` : item.comment;
9695
9697
  }
9696
9698
  });
9697
9699
 
9698
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
9700
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
9699
9701
  var require_bool2 = __commonJS({
9700
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
9702
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
9701
9703
  "use strict";
9702
9704
  var Scalar = require_Scalar();
9703
9705
  function boolStringify({ value, source }, ctx) {
@@ -9727,9 +9729,9 @@ ${cn.comment}` : item.comment;
9727
9729
  }
9728
9730
  });
9729
9731
 
9730
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
9732
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
9731
9733
  var require_float2 = __commonJS({
9732
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
9734
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
9733
9735
  "use strict";
9734
9736
  var Scalar = require_Scalar();
9735
9737
  var stringifyNumber = require_stringifyNumber();
@@ -9776,9 +9778,9 @@ ${cn.comment}` : item.comment;
9776
9778
  }
9777
9779
  });
9778
9780
 
9779
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
9781
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
9780
9782
  var require_int2 = __commonJS({
9781
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
9783
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
9782
9784
  "use strict";
9783
9785
  var stringifyNumber = require_stringifyNumber();
9784
9786
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -9855,9 +9857,9 @@ ${cn.comment}` : item.comment;
9855
9857
  }
9856
9858
  });
9857
9859
 
9858
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
9860
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
9859
9861
  var require_set = __commonJS({
9860
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
9862
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
9861
9863
  "use strict";
9862
9864
  var identity = require_identity();
9863
9865
  var Pair = require_Pair();
@@ -9944,9 +9946,9 @@ ${cn.comment}` : item.comment;
9944
9946
  }
9945
9947
  });
9946
9948
 
9947
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
9949
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
9948
9950
  var require_timestamp = __commonJS({
9949
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
9951
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
9950
9952
  "use strict";
9951
9953
  var stringifyNumber = require_stringifyNumber();
9952
9954
  function parseSexagesimal(str, asBigInt) {
@@ -10024,7 +10026,7 @@ ${cn.comment}` : item.comment;
10024
10026
  }
10025
10027
  return new Date(date);
10026
10028
  },
10027
- stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
10029
+ stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
10028
10030
  };
10029
10031
  exports.floatTime = floatTime;
10030
10032
  exports.intTime = intTime;
@@ -10032,9 +10034,9 @@ ${cn.comment}` : item.comment;
10032
10034
  }
10033
10035
  });
10034
10036
 
10035
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
10037
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
10036
10038
  var require_schema3 = __commonJS({
10037
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
10039
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
10038
10040
  "use strict";
10039
10041
  var map = require_map();
10040
10042
  var _null = require_null();
@@ -10076,9 +10078,9 @@ ${cn.comment}` : item.comment;
10076
10078
  }
10077
10079
  });
10078
10080
 
10079
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/tags.js
10081
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/tags.js
10080
10082
  var require_tags = __commonJS({
10081
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/tags.js"(exports) {
10083
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/tags.js"(exports) {
10082
10084
  "use strict";
10083
10085
  var map = require_map();
10084
10086
  var _null = require_null();
@@ -10170,9 +10172,9 @@ ${cn.comment}` : item.comment;
10170
10172
  }
10171
10173
  });
10172
10174
 
10173
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/Schema.js
10175
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/Schema.js
10174
10176
  var require_Schema = __commonJS({
10175
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/schema/Schema.js"(exports) {
10177
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/schema/Schema.js"(exports) {
10176
10178
  "use strict";
10177
10179
  var identity = require_identity();
10178
10180
  var map = require_map();
@@ -10202,9 +10204,9 @@ ${cn.comment}` : item.comment;
10202
10204
  }
10203
10205
  });
10204
10206
 
10205
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyDocument.js
10207
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyDocument.js
10206
10208
  var require_stringifyDocument = __commonJS({
10207
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
10209
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
10208
10210
  "use strict";
10209
10211
  var identity = require_identity();
10210
10212
  var stringify = require_stringify();
@@ -10282,9 +10284,9 @@ ${cn.comment}` : item.comment;
10282
10284
  }
10283
10285
  });
10284
10286
 
10285
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/Document.js
10287
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/Document.js
10286
10288
  var require_Document = __commonJS({
10287
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/doc/Document.js"(exports) {
10289
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/doc/Document.js"(exports) {
10288
10290
  "use strict";
10289
10291
  var Alias = require_Alias();
10290
10292
  var Collection = require_Collection();
@@ -10360,9 +10362,9 @@ ${cn.comment}` : item.comment;
10360
10362
  this.contents.add(value);
10361
10363
  }
10362
10364
  /** Adds a value to the document. */
10363
- addIn(path5, value) {
10365
+ addIn(path7, value) {
10364
10366
  if (assertCollection(this.contents))
10365
- this.contents.addIn(path5, value);
10367
+ this.contents.addIn(path7, value);
10366
10368
  }
10367
10369
  /**
10368
10370
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -10437,14 +10439,14 @@ ${cn.comment}` : item.comment;
10437
10439
  * Removes a value from the document.
10438
10440
  * @returns `true` if the item was found and removed.
10439
10441
  */
10440
- deleteIn(path5) {
10441
- if (Collection.isEmptyPath(path5)) {
10442
+ deleteIn(path7) {
10443
+ if (Collection.isEmptyPath(path7)) {
10442
10444
  if (this.contents == null)
10443
10445
  return false;
10444
10446
  this.contents = null;
10445
10447
  return true;
10446
10448
  }
10447
- return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
10449
+ return assertCollection(this.contents) ? this.contents.deleteIn(path7) : false;
10448
10450
  }
10449
10451
  /**
10450
10452
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -10459,10 +10461,10 @@ ${cn.comment}` : item.comment;
10459
10461
  * scalar values from their surrounding node; to disable set `keepScalar` to
10460
10462
  * `true` (collections are always returned intact).
10461
10463
  */
10462
- getIn(path5, keepScalar) {
10463
- if (Collection.isEmptyPath(path5))
10464
+ getIn(path7, keepScalar) {
10465
+ if (Collection.isEmptyPath(path7))
10464
10466
  return !keepScalar && identity.isScalar(this.contents) ? this.contents.value : this.contents;
10465
- return identity.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : void 0;
10467
+ return identity.isCollection(this.contents) ? this.contents.getIn(path7, keepScalar) : void 0;
10466
10468
  }
10467
10469
  /**
10468
10470
  * Checks if the document includes a value with the key `key`.
@@ -10473,10 +10475,10 @@ ${cn.comment}` : item.comment;
10473
10475
  /**
10474
10476
  * Checks if the document includes a value at `path`.
10475
10477
  */
10476
- hasIn(path5) {
10477
- if (Collection.isEmptyPath(path5))
10478
+ hasIn(path7) {
10479
+ if (Collection.isEmptyPath(path7))
10478
10480
  return this.contents !== void 0;
10479
- return identity.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
10481
+ return identity.isCollection(this.contents) ? this.contents.hasIn(path7) : false;
10480
10482
  }
10481
10483
  /**
10482
10484
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -10493,13 +10495,13 @@ ${cn.comment}` : item.comment;
10493
10495
  * Sets a value in this document. For `!!set`, `value` needs to be a
10494
10496
  * boolean to add/remove the item from the set.
10495
10497
  */
10496
- setIn(path5, value) {
10497
- if (Collection.isEmptyPath(path5)) {
10498
+ setIn(path7, value) {
10499
+ if (Collection.isEmptyPath(path7)) {
10498
10500
  this.contents = value;
10499
10501
  } else if (this.contents == null) {
10500
- this.contents = Collection.collectionFromPath(this.schema, Array.from(path5), value);
10502
+ this.contents = Collection.collectionFromPath(this.schema, Array.from(path7), value);
10501
10503
  } else if (assertCollection(this.contents)) {
10502
- this.contents.setIn(path5, value);
10504
+ this.contents.setIn(path7, value);
10503
10505
  }
10504
10506
  }
10505
10507
  /**
@@ -10591,9 +10593,9 @@ ${cn.comment}` : item.comment;
10591
10593
  }
10592
10594
  });
10593
10595
 
10594
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/errors.js
10596
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/errors.js
10595
10597
  var require_errors2 = __commonJS({
10596
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/errors.js"(exports) {
10598
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/errors.js"(exports) {
10597
10599
  "use strict";
10598
10600
  var YAMLError = class extends Error {
10599
10601
  constructor(name, pos, code, message) {
@@ -10656,9 +10658,9 @@ ${pointer}
10656
10658
  }
10657
10659
  });
10658
10660
 
10659
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-props.js
10661
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-props.js
10660
10662
  var require_resolve_props = __commonJS({
10661
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
10663
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
10662
10664
  "use strict";
10663
10665
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
10664
10666
  let spaceBefore = false;
@@ -10792,9 +10794,9 @@ ${pointer}
10792
10794
  }
10793
10795
  });
10794
10796
 
10795
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-contains-newline.js
10797
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-contains-newline.js
10796
10798
  var require_util_contains_newline = __commonJS({
10797
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
10799
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
10798
10800
  "use strict";
10799
10801
  function containsNewline(key) {
10800
10802
  if (!key)
@@ -10834,9 +10836,9 @@ ${pointer}
10834
10836
  }
10835
10837
  });
10836
10838
 
10837
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
10839
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
10838
10840
  var require_util_flow_indent_check = __commonJS({
10839
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
10841
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
10840
10842
  "use strict";
10841
10843
  var utilContainsNewline = require_util_contains_newline();
10842
10844
  function flowIndentCheck(indent, fc, onError) {
@@ -10852,9 +10854,9 @@ ${pointer}
10852
10854
  }
10853
10855
  });
10854
10856
 
10855
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-map-includes.js
10857
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-map-includes.js
10856
10858
  var require_util_map_includes = __commonJS({
10857
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
10859
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
10858
10860
  "use strict";
10859
10861
  var identity = require_identity();
10860
10862
  function mapIncludes(ctx, items, search) {
@@ -10868,9 +10870,9 @@ ${pointer}
10868
10870
  }
10869
10871
  });
10870
10872
 
10871
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-block-map.js
10873
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-map.js
10872
10874
  var require_resolve_block_map = __commonJS({
10873
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
10875
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
10874
10876
  "use strict";
10875
10877
  var Pair = require_Pair();
10876
10878
  var YAMLMap = require_YAMLMap();
@@ -10976,9 +10978,9 @@ ${pointer}
10976
10978
  }
10977
10979
  });
10978
10980
 
10979
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-block-seq.js
10981
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-seq.js
10980
10982
  var require_resolve_block_seq = __commonJS({
10981
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
10983
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
10982
10984
  "use strict";
10983
10985
  var YAMLSeq = require_YAMLSeq();
10984
10986
  var resolveProps = require_resolve_props();
@@ -11027,9 +11029,9 @@ ${pointer}
11027
11029
  }
11028
11030
  });
11029
11031
 
11030
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-end.js
11032
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-end.js
11031
11033
  var require_resolve_end = __commonJS({
11032
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
11034
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
11033
11035
  "use strict";
11034
11036
  function resolveEnd(end, offset, reqSpace, onError) {
11035
11037
  let comment = "";
@@ -11070,9 +11072,9 @@ ${pointer}
11070
11072
  }
11071
11073
  });
11072
11074
 
11073
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
11075
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
11074
11076
  var require_resolve_flow_collection = __commonJS({
11075
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
11077
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
11076
11078
  "use strict";
11077
11079
  var identity = require_identity();
11078
11080
  var Pair = require_Pair();
@@ -11264,9 +11266,9 @@ ${pointer}
11264
11266
  }
11265
11267
  });
11266
11268
 
11267
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-collection.js
11269
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-collection.js
11268
11270
  var require_compose_collection = __commonJS({
11269
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
11271
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
11270
11272
  "use strict";
11271
11273
  var identity = require_identity();
11272
11274
  var Scalar = require_Scalar();
@@ -11308,8 +11310,8 @@ ${pointer}
11308
11310
  ctx.schema.tags.push(Object.assign({}, kt, { default: false }));
11309
11311
  tag = kt;
11310
11312
  } else {
11311
- if (kt?.collection) {
11312
- onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
11313
+ if (kt) {
11314
+ onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? "scalar"}`, true);
11313
11315
  } else {
11314
11316
  onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, true);
11315
11317
  }
@@ -11329,9 +11331,9 @@ ${pointer}
11329
11331
  }
11330
11332
  });
11331
11333
 
11332
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
11334
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
11333
11335
  var require_resolve_block_scalar = __commonJS({
11334
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
11336
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
11335
11337
  "use strict";
11336
11338
  var Scalar = require_Scalar();
11337
11339
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -11512,9 +11514,9 @@ ${pointer}
11512
11514
  }
11513
11515
  });
11514
11516
 
11515
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
11517
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
11516
11518
  var require_resolve_flow_scalar = __commonJS({
11517
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
11519
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
11518
11520
  "use strict";
11519
11521
  var Scalar = require_Scalar();
11520
11522
  var resolveEnd = require_resolve_end();
@@ -11731,9 +11733,9 @@ ${pointer}
11731
11733
  }
11732
11734
  });
11733
11735
 
11734
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-scalar.js
11736
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-scalar.js
11735
11737
  var require_compose_scalar = __commonJS({
11736
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
11738
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
11737
11739
  "use strict";
11738
11740
  var identity = require_identity();
11739
11741
  var Scalar = require_Scalar();
@@ -11812,9 +11814,9 @@ ${pointer}
11812
11814
  }
11813
11815
  });
11814
11816
 
11815
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
11817
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
11816
11818
  var require_util_empty_scalar_position = __commonJS({
11817
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
11819
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
11818
11820
  "use strict";
11819
11821
  function emptyScalarPosition(offset, before, pos) {
11820
11822
  if (before) {
@@ -11843,9 +11845,9 @@ ${pointer}
11843
11845
  }
11844
11846
  });
11845
11847
 
11846
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-node.js
11848
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-node.js
11847
11849
  var require_compose_node = __commonJS({
11848
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-node.js"(exports) {
11850
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-node.js"(exports) {
11849
11851
  "use strict";
11850
11852
  var Alias = require_Alias();
11851
11853
  var identity = require_identity();
@@ -11944,9 +11946,9 @@ ${pointer}
11944
11946
  }
11945
11947
  });
11946
11948
 
11947
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-doc.js
11949
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-doc.js
11948
11950
  var require_compose_doc = __commonJS({
11949
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
11951
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
11950
11952
  "use strict";
11951
11953
  var Document = require_Document();
11952
11954
  var composeNode = require_compose_node();
@@ -11987,9 +11989,9 @@ ${pointer}
11987
11989
  }
11988
11990
  });
11989
11991
 
11990
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/composer.js
11992
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/composer.js
11991
11993
  var require_composer = __commonJS({
11992
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/compose/composer.js"(exports) {
11994
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/compose/composer.js"(exports) {
11993
11995
  "use strict";
11994
11996
  var node_process = __require("node:process");
11995
11997
  var directives = require_directives();
@@ -12193,9 +12195,9 @@ ${end.comment}` : end.comment;
12193
12195
  }
12194
12196
  });
12195
12197
 
12196
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst-scalar.js
12198
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-scalar.js
12197
12199
  var require_cst_scalar = __commonJS({
12198
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
12200
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
12199
12201
  "use strict";
12200
12202
  var resolveBlockScalar = require_resolve_block_scalar();
12201
12203
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -12378,9 +12380,9 @@ ${end.comment}` : end.comment;
12378
12380
  }
12379
12381
  });
12380
12382
 
12381
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst-stringify.js
12383
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-stringify.js
12382
12384
  var require_cst_stringify = __commonJS({
12383
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
12385
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
12384
12386
  "use strict";
12385
12387
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
12386
12388
  function stringifyToken(token) {
@@ -12439,9 +12441,9 @@ ${end.comment}` : end.comment;
12439
12441
  }
12440
12442
  });
12441
12443
 
12442
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst-visit.js
12444
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-visit.js
12443
12445
  var require_cst_visit = __commonJS({
12444
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
12446
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
12445
12447
  "use strict";
12446
12448
  var BREAK = Symbol("break visit");
12447
12449
  var SKIP = Symbol("skip children");
@@ -12454,9 +12456,9 @@ ${end.comment}` : end.comment;
12454
12456
  visit.BREAK = BREAK;
12455
12457
  visit.SKIP = SKIP;
12456
12458
  visit.REMOVE = REMOVE;
12457
- visit.itemAtPath = (cst, path5) => {
12459
+ visit.itemAtPath = (cst, path7) => {
12458
12460
  let item = cst;
12459
- for (const [field, index] of path5) {
12461
+ for (const [field, index] of path7) {
12460
12462
  const tok = item?.[field];
12461
12463
  if (tok && "items" in tok) {
12462
12464
  item = tok.items[index];
@@ -12465,23 +12467,23 @@ ${end.comment}` : end.comment;
12465
12467
  }
12466
12468
  return item;
12467
12469
  };
12468
- visit.parentCollection = (cst, path5) => {
12469
- const parent = visit.itemAtPath(cst, path5.slice(0, -1));
12470
- const field = path5[path5.length - 1][0];
12470
+ visit.parentCollection = (cst, path7) => {
12471
+ const parent = visit.itemAtPath(cst, path7.slice(0, -1));
12472
+ const field = path7[path7.length - 1][0];
12471
12473
  const coll = parent?.[field];
12472
12474
  if (coll && "items" in coll)
12473
12475
  return coll;
12474
12476
  throw new Error("Parent collection not found");
12475
12477
  };
12476
- function _visit(path5, item, visitor) {
12477
- let ctrl = visitor(item, path5);
12478
+ function _visit(path7, item, visitor) {
12479
+ let ctrl = visitor(item, path7);
12478
12480
  if (typeof ctrl === "symbol")
12479
12481
  return ctrl;
12480
12482
  for (const field of ["key", "value"]) {
12481
12483
  const token = item[field];
12482
12484
  if (token && "items" in token) {
12483
12485
  for (let i = 0; i < token.items.length; ++i) {
12484
- const ci = _visit(Object.freeze(path5.concat([[field, i]])), token.items[i], visitor);
12486
+ const ci = _visit(Object.freeze(path7.concat([[field, i]])), token.items[i], visitor);
12485
12487
  if (typeof ci === "number")
12486
12488
  i = ci - 1;
12487
12489
  else if (ci === BREAK)
@@ -12492,18 +12494,18 @@ ${end.comment}` : end.comment;
12492
12494
  }
12493
12495
  }
12494
12496
  if (typeof ctrl === "function" && field === "key")
12495
- ctrl = ctrl(item, path5);
12497
+ ctrl = ctrl(item, path7);
12496
12498
  }
12497
12499
  }
12498
- return typeof ctrl === "function" ? ctrl(item, path5) : ctrl;
12500
+ return typeof ctrl === "function" ? ctrl(item, path7) : ctrl;
12499
12501
  }
12500
12502
  exports.visit = visit;
12501
12503
  }
12502
12504
  });
12503
12505
 
12504
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst.js
12506
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst.js
12505
12507
  var require_cst = __commonJS({
12506
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/cst.js"(exports) {
12508
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/cst.js"(exports) {
12507
12509
  "use strict";
12508
12510
  var cstScalar = require_cst_scalar();
12509
12511
  var cstStringify = require_cst_stringify();
@@ -12603,9 +12605,9 @@ ${end.comment}` : end.comment;
12603
12605
  }
12604
12606
  });
12605
12607
 
12606
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/lexer.js
12608
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/lexer.js
12607
12609
  var require_lexer = __commonJS({
12608
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/lexer.js"(exports) {
12610
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/lexer.js"(exports) {
12609
12611
  "use strict";
12610
12612
  var cst = require_cst();
12611
12613
  function isEmpty(ch) {
@@ -13182,9 +13184,9 @@ ${end.comment}` : end.comment;
13182
13184
  }
13183
13185
  });
13184
13186
 
13185
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/line-counter.js
13187
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/line-counter.js
13186
13188
  var require_line_counter = __commonJS({
13187
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/line-counter.js"(exports) {
13189
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/line-counter.js"(exports) {
13188
13190
  "use strict";
13189
13191
  var LineCounter = class {
13190
13192
  constructor() {
@@ -13213,9 +13215,9 @@ ${end.comment}` : end.comment;
13213
13215
  }
13214
13216
  });
13215
13217
 
13216
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/parser.js
13218
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/parser.js
13217
13219
  var require_parser = __commonJS({
13218
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/parse/parser.js"(exports) {
13220
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/parse/parser.js"(exports) {
13219
13221
  "use strict";
13220
13222
  var node_process = __require("node:process");
13221
13223
  var cst = require_cst();
@@ -13780,14 +13782,14 @@ ${end.comment}` : end.comment;
13780
13782
  case "scalar":
13781
13783
  case "single-quoted-scalar":
13782
13784
  case "double-quoted-scalar": {
13783
- const fs5 = this.flowScalar(this.type);
13785
+ const fs6 = this.flowScalar(this.type);
13784
13786
  if (atNextItem || it.value) {
13785
- map.items.push({ start, key: fs5, sep: [] });
13787
+ map.items.push({ start, key: fs6, sep: [] });
13786
13788
  this.onKeyLine = true;
13787
13789
  } else if (it.sep) {
13788
- this.stack.push(fs5);
13790
+ this.stack.push(fs6);
13789
13791
  } else {
13790
- Object.assign(it, { key: fs5, sep: [] });
13792
+ Object.assign(it, { key: fs6, sep: [] });
13791
13793
  this.onKeyLine = true;
13792
13794
  }
13793
13795
  return;
@@ -13795,7 +13797,17 @@ ${end.comment}` : end.comment;
13795
13797
  default: {
13796
13798
  const bv = this.startBlockValue(map);
13797
13799
  if (bv) {
13798
- if (atMapIndent && bv.type !== "block-seq") {
13800
+ if (bv.type === "block-seq") {
13801
+ if (!it.explicitKey && it.sep && !includesToken(it.sep, "newline")) {
13802
+ yield* this.pop({
13803
+ type: "error",
13804
+ offset: this.offset,
13805
+ message: "Unexpected block-seq-ind on same line with key",
13806
+ source: this.source
13807
+ });
13808
+ return;
13809
+ }
13810
+ } else if (atMapIndent) {
13799
13811
  map.items.push({ start });
13800
13812
  }
13801
13813
  this.stack.push(bv);
@@ -13905,13 +13917,13 @@ ${end.comment}` : end.comment;
13905
13917
  case "scalar":
13906
13918
  case "single-quoted-scalar":
13907
13919
  case "double-quoted-scalar": {
13908
- const fs5 = this.flowScalar(this.type);
13920
+ const fs6 = this.flowScalar(this.type);
13909
13921
  if (!it || it.value)
13910
- fc.items.push({ start: [], key: fs5, sep: [] });
13922
+ fc.items.push({ start: [], key: fs6, sep: [] });
13911
13923
  else if (it.sep)
13912
- this.stack.push(fs5);
13924
+ this.stack.push(fs6);
13913
13925
  else
13914
- Object.assign(it, { key: fs5, sep: [] });
13926
+ Object.assign(it, { key: fs6, sep: [] });
13915
13927
  return;
13916
13928
  }
13917
13929
  case "flow-map-end":
@@ -14070,9 +14082,9 @@ ${end.comment}` : end.comment;
14070
14082
  }
14071
14083
  });
14072
14084
 
14073
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/public-api.js
14085
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/public-api.js
14074
14086
  var require_public_api = __commonJS({
14075
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/public-api.js"(exports) {
14087
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/public-api.js"(exports) {
14076
14088
  "use strict";
14077
14089
  var composer = require_composer();
14078
14090
  var Document = require_Document();
@@ -14167,9 +14179,9 @@ ${end.comment}` : end.comment;
14167
14179
  }
14168
14180
  });
14169
14181
 
14170
- // ../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/index.js
14182
+ // ../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/index.js
14171
14183
  var require_dist2 = __commonJS({
14172
- "../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/index.js"(exports) {
14184
+ "../../node_modules/.pnpm/yaml@2.7.1/node_modules/yaml/dist/index.js"(exports) {
14173
14185
  "use strict";
14174
14186
  var composer = require_composer();
14175
14187
  var Document = require_Document();
@@ -15601,23 +15613,124 @@ ${end.comment}` : end.comment;
15601
15613
  return files;
15602
15614
  };
15603
15615
 
15616
+ // ../commons/src/deep-merge.ts
15617
+ var deepMerge = (target, ...partials) => {
15618
+ const isObject = (item) => item !== null && typeof item === "object";
15619
+ if (!isObject(target)) {
15620
+ return target;
15621
+ }
15622
+ for (const partial of partials) {
15623
+ if (!isObject(partial)) {
15624
+ continue;
15625
+ }
15626
+ Object.keys(partial).forEach((key) => {
15627
+ if (key === "__proto__" || key === "constructor") return;
15628
+ const targetValue = target[key];
15629
+ const sourceValue = partial[key];
15630
+ if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {
15631
+ targetValue.push(...sourceValue);
15632
+ } else if (isObject(targetValue) && isObject(sourceValue)) {
15633
+ deepMerge(targetValue, sourceValue);
15634
+ } else {
15635
+ target[key] = sourceValue;
15636
+ }
15637
+ });
15638
+ }
15639
+ return target;
15640
+ };
15641
+
15604
15642
  // src/build-output-v3/parse.ts
15605
- var import_fs3 = __toESM(__require("fs"));
15643
+ var import_path5 = __toESM(__require("path"));
15644
+
15645
+ // src/build-output-v3/determine-repo-root.ts
15646
+ var import_path2 = __toESM(__require("path"));
15647
+ var determineRepoRoot = (projectFolder, config) => {
15648
+ if (!config.entrypoints?.length) {
15649
+ return projectFolder;
15650
+ }
15651
+ const filePaths = [];
15652
+ for (const entrypoint of config.entrypoints) {
15653
+ if (entrypoint.package?.filePathMap) {
15654
+ filePaths.push(...Object.keys(entrypoint.package.filePathMap));
15655
+ }
15656
+ }
15657
+ if (filePaths.length === 0) {
15658
+ return projectFolder;
15659
+ }
15660
+ const pathParts = filePaths.map((p) => p.split(import_path2.default.sep));
15661
+ const firstPath = pathParts[0];
15662
+ let commonParts = [];
15663
+ for (let i = 0; i < firstPath.length; i++) {
15664
+ const part = firstPath[i];
15665
+ if (pathParts.every((parts) => parts[i] === part)) {
15666
+ commonParts.push(part);
15667
+ } else {
15668
+ break;
15669
+ }
15670
+ }
15671
+ const commonRoot = commonParts.join(import_path2.default.sep);
15672
+ if (commonRoot && projectFolder.startsWith(commonRoot) && commonRoot !== projectFolder) {
15673
+ return commonRoot;
15674
+ }
15675
+ return projectFolder;
15676
+ };
15677
+
15678
+ // src/build-output-v3/get-default-path-map.ts
15679
+ var import_fs2 = __toESM(__require("fs"));
15606
15680
  var import_path3 = __toESM(__require("path"));
15681
+ var getDefaultPathMap = (directory) => {
15682
+ const result = {};
15683
+ if (!import_fs2.default.existsSync(directory)) {
15684
+ return result;
15685
+ }
15686
+ const processDirectory = (currentPath, basePath = "") => {
15687
+ const files = import_fs2.default.readdirSync(currentPath, { withFileTypes: true });
15688
+ for (const file of files) {
15689
+ const fullPath = import_path3.default.join(currentPath, file.name);
15690
+ const relativePath = import_path3.default.join(basePath, file.name);
15691
+ if (file.isDirectory()) {
15692
+ processDirectory(fullPath, relativePath);
15693
+ } else {
15694
+ result[fullPath] = relativePath;
15695
+ }
15696
+ }
15697
+ };
15698
+ processDirectory(directory);
15699
+ return result;
15700
+ };
15701
+
15702
+ // src/build-output-v3/get-monorepo-files.ts
15703
+ function getMonorepoFiles(directory, filePathMaps) {
15704
+ const result = [];
15705
+ for (const filePathMap of filePathMaps ?? []) {
15706
+ if (!filePathMap) {
15707
+ continue;
15708
+ }
15709
+ for (const file of Object.keys(filePathMap)) {
15710
+ if (!file.startsWith(directory)) {
15711
+ result.push(file);
15712
+ }
15713
+ }
15714
+ }
15715
+ return result;
15716
+ }
15717
+
15718
+ // src/build-output-v3/read-config-file.ts
15719
+ var import_fs4 = __toESM(__require("fs"));
15607
15720
 
15608
15721
  // src/parse-raw-config.ts
15609
- var import_fs2 = __toESM(__require("fs"));
15610
- var import_path2 = __toESM(__require("path"));
15722
+ var import_fs3 = __toESM(__require("fs"));
15723
+ var import_path4 = __toESM(__require("path"));
15611
15724
  var import_yaml = __toESM(require_dist2());
15612
15725
  var parseRawConfig = async (filePath, { disableVersionCheck = false } = {}) => {
15613
- if (!import_fs2.default.existsSync(filePath)) {
15726
+ if (!import_fs3.default.existsSync(filePath)) {
15614
15727
  throw new Error(`Config file not found at ${filePath}`);
15615
15728
  }
15616
- const fileContents = import_fs2.default.readFileSync(filePath, "utf8");
15729
+ const fileContents = import_fs3.default.readFileSync(filePath, "utf8");
15617
15730
  if (fileContents.length === 0) {
15618
15731
  throw new Error(`Config file is empty at ${filePath}`);
15619
15732
  }
15620
- const fileExtension = import_path2.default.extname(filePath).toLowerCase();
15733
+ const fileExtension = import_path4.default.extname(filePath).toLowerCase();
15621
15734
  let parsed;
15622
15735
  try {
15623
15736
  if (fileExtension === ".json") {
@@ -15641,149 +15754,175 @@ ${end.comment}` : end.comment;
15641
15754
  return parsed;
15642
15755
  };
15643
15756
 
15757
+ // src/build-output-v3/read-config-file.ts
15758
+ var readConfigFile = async (configFilePath) => {
15759
+ if (!import_fs4.default.existsSync(configFilePath)) {
15760
+ return null;
15761
+ }
15762
+ const parsed = await parseRawConfig(configFilePath, { disableVersionCheck: true });
15763
+ return parsed;
15764
+ };
15765
+
15766
+ // src/build-output-v3/translate-vercel-region.ts
15767
+ var translateVercelRegion = (region) => {
15768
+ const regionMap = {
15769
+ arn1: "eu-north-1",
15770
+ bom1: "ap-south-1",
15771
+ cdg1: "eu-west-3",
15772
+ cle1: "us-east-2",
15773
+ cpt1: "af-south-1",
15774
+ dub1: "eu-west-1",
15775
+ fra1: "eu-central-1",
15776
+ gru1: "sa-east-1",
15777
+ hkg1: "ap-east-1",
15778
+ hnd1: "ap-northeast-1",
15779
+ iad1: "us-east-1",
15780
+ icn1: "ap-northeast-2",
15781
+ kix1: "ap-northeast-3",
15782
+ lhr1: "eu-west-2",
15783
+ pdx1: "us-west-2",
15784
+ sfo1: "us-west-1",
15785
+ sin1: "ap-southeast-1",
15786
+ syd1: "ap-southeast-2"
15787
+ };
15788
+ return regionMap[region.toLowerCase()] ?? "us-east-1";
15789
+ };
15790
+
15791
+ // src/build-output-v3/translate-vercel-runtime.ts
15792
+ var translateVercelRuntime = (runtime) => {
15793
+ switch (runtime) {
15794
+ case "nodejs12.x":
15795
+ case "nodejs14.x":
15796
+ case "nodejs16.x":
15797
+ case "nodejs18.x":
15798
+ return "node-18";
15799
+ case "nodejs20.x":
15800
+ case "nodejs22.x":
15801
+ return "node-20";
15802
+ default:
15803
+ return null;
15804
+ }
15805
+ };
15806
+
15644
15807
  // src/build-output-v3/parse.ts
15645
15808
  var configPath = ".vercel/output/config.json";
15646
- var functionConfigsPattern = ".vercel/output/functions/*.func/.vc-config.json";
15809
+ var functionsFolder = ".vercel/output/functions";
15810
+ var functionConfigsPattern = `${functionsFolder}/**/*.func/.vc-config.json`;
15647
15811
  var parseVercelBuildOutputV3 = async (parseResult, projectFolder) => {
15648
- const config = await readConfigFile(import_path3.default.join(projectFolder, configPath));
15812
+ const config = await readConfigFile(import_path5.default.join(projectFolder, configPath));
15649
15813
  if (!config || config.version < 3) {
15650
15814
  return parseResult;
15651
15815
  }
15652
- await loadFunctions(config, parseResult, projectFolder);
15653
- await loadAssetOverrides(config, parseResult);
15654
- return parseResult;
15816
+ const functionData = await loadFunctions(config, parseResult, projectFolder);
15817
+ const assetOverrides = await loadAssetOverrides(config, parseResult);
15818
+ return deepMerge(parseResult, functionData, assetOverrides);
15655
15819
  };
15656
15820
  var loadAssetOverrides = async (config, parseResult) => {
15657
- if (!parseResult.assets) {
15658
- parseResult.assets = {
15659
- paths: [],
15660
- prefixToStrip: ""
15661
- };
15662
- }
15663
- parseResult.assets.overrides = {
15664
- ...parseResult.assets.overrides ?? {},
15665
- ...config.overrides
15821
+ return {
15822
+ assets: {
15823
+ overrides: {
15824
+ ...parseResult.assets?.overrides ?? {},
15825
+ ...config.overrides
15826
+ }
15827
+ }
15666
15828
  };
15667
15829
  };
15668
15830
  var loadFunctions = async (config, parseResult, projectFolder) => {
15669
15831
  const functionConfigs = await getFilesForPattern(functionConfigsPattern, projectFolder);
15832
+ const result = {
15833
+ entrypoints: [],
15834
+ routes: [],
15835
+ regions: []
15836
+ };
15670
15837
  for (const functionConfigPath of functionConfigs) {
15671
- const functionConfig = await readConfigFile(import_path3.default.join(projectFolder, functionConfigPath));
15838
+ const functionConfig = await readConfigFile(import_path5.default.join(projectFolder, functionConfigPath));
15672
15839
  if (!functionConfig) {
15673
15840
  parseResult.errors.push(`Failed to read function config at ${functionConfigPath}`);
15674
15841
  continue;
15675
15842
  }
15676
- const functionName = import_path3.default.basename(import_path3.default.dirname(functionConfigPath)).replace(/\.func$/, "");
15843
+ const functionPathRelative = import_path5.default.dirname(functionConfigPath).replace(functionsFolder, "");
15844
+ const functionName = functionPathRelative.replace(/^\/|\.func$/g, "");
15677
15845
  const runtime = translateVercelRuntime(functionConfig.runtime);
15678
15846
  if (!runtime) {
15679
15847
  parseResult.errors.push(`Unsupported runtime for function ${functionName}: ${functionConfig.runtime}`);
15680
15848
  continue;
15681
15849
  }
15682
15850
  const functionDirectory = `.vercel/output/functions/${functionName}.func`;
15683
- const handler = functionConfig.handler;
15684
- const maxDuration = functionConfig.maxDuration;
15685
- const memory = functionConfig.memory;
15686
- parseResult.regions = Array.from(
15687
- /* @__PURE__ */ new Set([
15688
- ...parseResult.regions ?? [],
15689
- ...(functionConfig.regions ?? ["us-east-1"]).map((r) => translateVercelRegion(r))
15690
- ])
15691
- );
15851
+ const {
15852
+ handler,
15853
+ maxDuration,
15854
+ memory,
15855
+ regions = [],
15856
+ environment,
15857
+ filePathMap: configFilePathMap = {}
15858
+ } = functionConfig;
15859
+ const translatedRegions = regions.length > 0 ? regions.map(translateVercelRegion) : ["us-east-1"];
15860
+ result.regions = Array.from(/* @__PURE__ */ new Set([...parseResult.regions, ...translatedRegions]));
15692
15861
  const environmentVariables = {};
15693
- const functionEnv = functionConfig.environment;
15694
- if (functionEnv != null && typeof functionEnv === "object") {
15695
- for (const env of Object.values(functionEnv)) {
15696
- for (const [key, value] of Object.entries(env)) {
15697
- environmentVariables[key] = value;
15698
- }
15862
+ if (environment && typeof environment === "object") {
15863
+ for (const env of Object.values(environment)) {
15864
+ Object.assign(environmentVariables, env);
15699
15865
  }
15700
15866
  }
15701
- const streaming = runtime == null || runtime.startsWith("node-") || runtime.startsWith("bun-");
15702
- const filePathMap = {};
15703
- for (const [key, value] of Object.entries(functionConfig.filePathMap ?? {})) {
15704
- filePathMap[import_path3.default.join(projectFolder, key)] = value;
15867
+ const streaming = runtime.startsWith("node-") || runtime.startsWith("bun-");
15868
+ let filePathMap = {};
15869
+ for (const [key, value] of Object.entries(configFilePathMap)) {
15870
+ filePathMap[import_path5.default.join(projectFolder, key)] = value;
15871
+ }
15872
+ if (Object.keys(filePathMap).length === 0) {
15873
+ filePathMap = getDefaultPathMap(import_path5.default.join(projectFolder, functionDirectory));
15874
+ }
15875
+ if (!result.entrypoints) {
15876
+ result.entrypoints = [];
15705
15877
  }
15706
- parseResult.entrypoints.push({
15878
+ result.entrypoints.push({
15707
15879
  displayName: functionName,
15708
15880
  runtime,
15709
- path: handler,
15881
+ path: import_path5.default.join(functionDirectory, handler),
15710
15882
  memory: memory ?? 1024,
15711
15883
  maxDuration: maxDuration ?? 15,
15712
15884
  environmentVariables,
15713
15885
  streaming,
15714
15886
  package: {
15715
- rootOverwrite: import_path3.default.join(projectFolder, functionDirectory),
15716
15887
  filePathMap
15717
15888
  }
15718
15889
  });
15719
15890
  const handlerType = streaming ? "SERVERLESS_FUNCTION_STREAMING" : "SERVERLESS_FUNCTION";
15720
- [
15721
- {
15722
- path: `/${functionName}`,
15723
- methods: ["ANY"],
15724
- headers: {},
15725
- destination: handler,
15726
- handler: handlerType
15727
- },
15728
- ...config.routes?.filter((r) => r.dest === `/${functionName}`).map((r) => ({
15891
+ const defaultRoute = {
15892
+ path: `/${functionName}`,
15893
+ methods: ["ANY"],
15894
+ headers: {},
15895
+ destination: handler,
15896
+ handler: handlerType
15897
+ };
15898
+ const configRoutes = config.routes?.filter((r) => r.dest === `/${functionName}`).map(
15899
+ (r) => ({
15729
15900
  path: r.src ?? `/${functionName}`,
15730
15901
  methods: ["ANY"],
15731
15902
  headers: {},
15732
15903
  destination: handler,
15733
15904
  handler: handlerType
15734
- })) ?? []
15735
- ].forEach((route) => {
15736
- parseResult.routes.push(route);
15737
- });
15738
- }
15739
- };
15740
- var readConfigFile = async (configFilePath) => {
15741
- if (!import_fs3.default.existsSync(configFilePath)) {
15742
- return null;
15743
- }
15744
- const parsed = await parseRawConfig(configFilePath, { disableVersionCheck: true });
15745
- return parsed;
15746
- };
15747
- var translateVercelRuntime = (runtime) => {
15748
- switch (runtime) {
15749
- case "nodejs12.x":
15750
- case "nodejs14.x":
15751
- case "nodejs16.x":
15752
- case "nodejs18.x":
15753
- return "node-18";
15754
- case "nodejs20.x":
15755
- case "nodejs22.x":
15756
- return "node-20";
15757
- default:
15758
- return null;
15905
+ })
15906
+ ) ?? [];
15907
+ if (!result.routes) {
15908
+ result.routes = [];
15909
+ }
15910
+ result.routes.push(defaultRoute, ...configRoutes);
15759
15911
  }
15760
- };
15761
- var translateVercelRegion = (region) => {
15762
- const regionMap = {
15763
- arn1: "eu-north-1",
15764
- bom1: "ap-south-1",
15765
- cdg1: "eu-west-3",
15766
- cle1: "us-east-2",
15767
- cpt1: "af-south-1",
15768
- dub1: "eu-west-1",
15769
- fra1: "eu-central-1",
15770
- gru1: "sa-east-1",
15771
- hkg1: "ap-east-1",
15772
- hnd1: "ap-northeast-1",
15773
- iad1: "us-east-1",
15774
- icn1: "ap-northeast-2",
15775
- kix1: "ap-northeast-3",
15776
- lhr1: "eu-west-2",
15777
- pdx1: "us-west-2",
15778
- sfo1: "us-west-1",
15779
- sin1: "ap-southeast-1",
15780
- syd1: "ap-southeast-2"
15912
+ return {
15913
+ ...result,
15914
+ userArchive: {
15915
+ rootOverwrite: determineRepoRoot(projectFolder, result),
15916
+ fileWhitelist: [
15917
+ `${projectFolder}/*`,
15918
+ ...getMonorepoFiles(projectFolder, result.entrypoints?.map((e) => e.package?.filePathMap ?? {}) ?? [])
15919
+ ]
15920
+ }
15781
15921
  };
15782
- return regionMap[region.toLowerCase()] ?? "us-east-1";
15783
15922
  };
15784
15923
 
15785
15924
  // src/v4/parse.ts
15786
- var import_fs4 = __toESM(__require("fs"));
15925
+ var import_fs5 = __toESM(__require("fs"));
15787
15926
 
15788
15927
  // src/regions.ts
15789
15928
  var REGION_DEFINITIONS = [
@@ -15817,16 +15956,16 @@ ${end.comment}` : end.comment;
15817
15956
  const errors = [];
15818
15957
  const warnings = [];
15819
15958
  if (config.functions != null) {
15820
- for (const [path5, func] of Object.entries(config.functions)) {
15821
- const settings = getFunctionSettings(path5, config);
15959
+ for (const [path7, func] of Object.entries(config.functions)) {
15960
+ const settings = getFunctionSettings(path7, config);
15822
15961
  if (settings == null) {
15823
- throw new Error(`Settings invalid for function at path '${path5}'`);
15962
+ throw new Error(`Settings invalid for function at path '${path7}'`);
15824
15963
  }
15825
- (await getFilesForPattern(path5, projectFolder, func.excludeFiles)).forEach((file) => {
15964
+ (await getFilesForPattern(path7, projectFolder, func.excludeFiles)).forEach((file) => {
15826
15965
  if (entrypoints.find((entrypoint) => entrypoint.path === file)) {
15827
15966
  return;
15828
15967
  }
15829
- if (config.functions != null && Object.keys(config.functions).find((func2) => func2 === file && func2 !== path5)) {
15968
+ if (config.functions != null && Object.keys(config.functions).find((func2) => func2 === file && func2 !== path7)) {
15830
15969
  return;
15831
15970
  }
15832
15971
  entrypoints.push({
@@ -15844,11 +15983,11 @@ ${end.comment}` : end.comment;
15844
15983
  const assets = [];
15845
15984
  if (config.assets != null) {
15846
15985
  const assetsPath = `${projectFolder}/${config.assets}`;
15847
- if (import_fs4.default.existsSync(assetsPath) && import_fs4.default.statSync(assetsPath).isDirectory()) {
15848
- for (const asset of import_fs4.default.readdirSync(`${projectFolder}/${config.assets}`, {
15986
+ if (import_fs5.default.existsSync(assetsPath) && import_fs5.default.statSync(assetsPath).isDirectory()) {
15987
+ for (const asset of import_fs5.default.readdirSync(`${projectFolder}/${config.assets}`, {
15849
15988
  recursive: true
15850
15989
  })) {
15851
- if (import_fs4.default.statSync(`${projectFolder}/${config.assets}/${asset}`).isDirectory()) {
15990
+ if (import_fs5.default.statSync(`${projectFolder}/${config.assets}/${asset}`).isDirectory()) {
15852
15991
  continue;
15853
15992
  }
15854
15993
  const disallowedExtensions = [".htaccess", ".htpasswd"];
@@ -15889,10 +16028,10 @@ ${end.comment}` : end.comment;
15889
16028
  })
15890
16029
  };
15891
16030
  };
15892
- var getFunctionSettings = (path5, config) => {
16031
+ var getFunctionSettings = (path7, config) => {
15893
16032
  let functionSettings;
15894
16033
  for (const [key, value] of Object.entries(config.functions ?? {})) {
15895
- if (minimatch(path5, key) || new RegExp(key).test(path5)) {
16034
+ if (minimatch(path7, key) || new RegExp(key).test(path7)) {
15896
16035
  if (functionSettings == null) {
15897
16036
  functionSettings = {
15898
16037
  memory: 128,