@telepath-computer/television 0.1.205 → 0.1.206

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.cjs CHANGED
@@ -6173,9 +6173,8 @@ var require_side_channel_list = __commonJS({
6173
6173
  }
6174
6174
  },
6175
6175
  "delete": function(key) {
6176
- var root = $o && $o.next;
6177
6176
  var deletedNode = listDelete($o, key);
6178
- if (deletedNode && root && root === deletedNode) {
6177
+ if (deletedNode && $o && !$o.next) {
6179
6178
  $o = void 0;
6180
6179
  }
6181
6180
  return !!deletedNode;
@@ -6349,7 +6348,8 @@ var require_side_channel = __commonJS({
6349
6348
  var channel = {
6350
6349
  assert: function(key) {
6351
6350
  if (!channel.has(key)) {
6352
- throw new $TypeError("Side channel does not contain " + inspect(key));
6351
+ var keyDesc = key && Object(key) === key ? "the given object key" : inspect(key);
6352
+ throw new $TypeError("Side channel does not contain " + keyDesc);
6353
6353
  }
6354
6354
  },
6355
6355
  "delete": function(key) {
@@ -21636,12 +21636,15 @@ var require_json = __commonJS({
21636
21636
  var JSON_SYNTAX_REGEXP = /#+/g;
21637
21637
  function json2(options) {
21638
21638
  var opts = options || {};
21639
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
21639
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
21640
21640
  var inflate = opts.inflate !== false;
21641
21641
  var reviver = opts.reviver;
21642
21642
  var strict = opts.strict !== false;
21643
21643
  var type = opts.type || "application/json";
21644
21644
  var verify = opts.verify || false;
21645
+ if (limit === null) {
21646
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
21647
+ }
21645
21648
  if (verify !== false && typeof verify !== "function") {
21646
21649
  throw new TypeError("option verify must be function");
21647
21650
  }
@@ -21706,10 +21709,7 @@ var require_json = __commonJS({
21706
21709
  var index = str.indexOf(char);
21707
21710
  var partial2 = "";
21708
21711
  if (index !== -1) {
21709
- partial2 = str.substring(0, index) + JSON_SYNTAX_CHAR;
21710
- for (var i = index + 1; i < str.length; i++) {
21711
- partial2 += JSON_SYNTAX_CHAR;
21712
- }
21712
+ partial2 = str.substring(0, index) + new Array(str.length - index + 1).join(JSON_SYNTAX_CHAR);
21713
21713
  }
21714
21714
  try {
21715
21715
  JSON.parse(partial2);
@@ -21766,9 +21766,12 @@ var require_raw = __commonJS({
21766
21766
  function raw(options) {
21767
21767
  var opts = options || {};
21768
21768
  var inflate = opts.inflate !== false;
21769
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
21769
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
21770
21770
  var type = opts.type || "application/octet-stream";
21771
21771
  var verify = opts.verify || false;
21772
+ if (limit === null) {
21773
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
21774
+ }
21772
21775
  if (verify !== false && typeof verify !== "function") {
21773
21776
  throw new TypeError("option verify must be function");
21774
21777
  }
@@ -21824,9 +21827,12 @@ var require_text = __commonJS({
21824
21827
  var opts = options || {};
21825
21828
  var defaultCharset = opts.defaultCharset || "utf-8";
21826
21829
  var inflate = opts.inflate !== false;
21827
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
21830
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
21828
21831
  var type = opts.type || "text/plain";
21829
21832
  var verify = opts.verify || false;
21833
+ if (limit === null) {
21834
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
21835
+ }
21830
21836
  if (verify !== false && typeof verify !== "function") {
21831
21837
  throw new TypeError("option verify must be function");
21832
21838
  }
@@ -21876,9 +21882,9 @@ var require_text = __commonJS({
21876
21882
  }
21877
21883
  });
21878
21884
 
21879
- // ../../node_modules/qs/lib/formats.js
21885
+ // ../../node_modules/body-parser/node_modules/qs/lib/formats.js
21880
21886
  var require_formats = __commonJS({
21881
- "../../node_modules/qs/lib/formats.js"(exports2, module2) {
21887
+ "../../node_modules/body-parser/node_modules/qs/lib/formats.js"(exports2, module2) {
21882
21888
  "use strict";
21883
21889
  var replace = String.prototype.replace;
21884
21890
  var percentTwenties = /%20/g;
@@ -21902,12 +21908,13 @@ var require_formats = __commonJS({
21902
21908
  }
21903
21909
  });
21904
21910
 
21905
- // ../../node_modules/qs/lib/utils.js
21911
+ // ../../node_modules/body-parser/node_modules/qs/lib/utils.js
21906
21912
  var require_utils = __commonJS({
21907
- "../../node_modules/qs/lib/utils.js"(exports2, module2) {
21913
+ "../../node_modules/body-parser/node_modules/qs/lib/utils.js"(exports2, module2) {
21908
21914
  "use strict";
21909
21915
  var formats = require_formats();
21910
21916
  var getSideChannel = require_side_channel();
21917
+ var defineProperty = require_es_define_property();
21911
21918
  var has = Object.prototype.hasOwnProperty;
21912
21919
  var isArray = Array.isArray;
21913
21920
  var overflowChannel = getSideChannel();
@@ -21955,6 +21962,18 @@ var require_utils = __commonJS({
21955
21962
  }
21956
21963
  return obj;
21957
21964
  };
21965
+ var setProperty = function setProperty2(obj, key, value) {
21966
+ if (key === "__proto__" && defineProperty) {
21967
+ defineProperty(obj, key, {
21968
+ configurable: true,
21969
+ enumerable: true,
21970
+ value,
21971
+ writable: true
21972
+ });
21973
+ } else {
21974
+ obj[key] = value;
21975
+ }
21976
+ };
21958
21977
  var merge2 = function merge3(target, source, options) {
21959
21978
  if (!source) {
21960
21979
  return target;
@@ -21962,7 +21981,10 @@ var require_utils = __commonJS({
21962
21981
  if (typeof source !== "object" && typeof source !== "function") {
21963
21982
  if (isArray(target)) {
21964
21983
  var nextIndex = target.length;
21965
- if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
21984
+ if (options && typeof options.arrayLimit === "number" && nextIndex >= options.arrayLimit) {
21985
+ if (options.throwOnLimitExceeded) {
21986
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
21987
+ }
21966
21988
  return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
21967
21989
  }
21968
21990
  target[nextIndex] = source;
@@ -21971,6 +21993,8 @@ var require_utils = __commonJS({
21971
21993
  var newIndex = getMaxIndex(target) + 1;
21972
21994
  target[newIndex] = source;
21973
21995
  setMaxIndex(target, newIndex);
21996
+ } else if (options && options.strictMerge) {
21997
+ return [target, source];
21974
21998
  } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
21975
21999
  target[source] = true;
21976
22000
  }
@@ -21991,6 +22015,9 @@ var require_utils = __commonJS({
21991
22015
  }
21992
22016
  var combined = [target].concat(source);
21993
22017
  if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
22018
+ if (options.throwOnLimitExceeded) {
22019
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
22020
+ }
21994
22021
  return markOverflow(arrayToObject(combined, options), combined.length - 1);
21995
22022
  }
21996
22023
  return combined;
@@ -22012,14 +22039,20 @@ var require_utils = __commonJS({
22012
22039
  target[i] = item;
22013
22040
  }
22014
22041
  });
22042
+ if (options && typeof options.arrayLimit === "number" && target.length > options.arrayLimit) {
22043
+ if (options.throwOnLimitExceeded) {
22044
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
22045
+ }
22046
+ return markOverflow(arrayToObject(target, options), target.length - 1);
22047
+ }
22015
22048
  return target;
22016
22049
  }
22017
22050
  return Object.keys(source).reduce(function(acc, key) {
22018
22051
  var value = source[key];
22019
22052
  if (has.call(acc, key)) {
22020
- acc[key] = merge3(acc[key], value, options);
22053
+ setProperty(acc, key, merge3(acc[key], value, options));
22021
22054
  } else {
22022
- acc[key] = value;
22055
+ setProperty(acc, key, value);
22023
22056
  }
22024
22057
  if (isOverflow(source) && !isOverflow(acc)) {
22025
22058
  markOverflow(acc, getMaxIndex(source));
@@ -22035,7 +22068,7 @@ var require_utils = __commonJS({
22035
22068
  };
22036
22069
  var assign = function assignSingleSource(target, source) {
22037
22070
  return Object.keys(source).reduce(function(acc, key) {
22038
- acc[key] = source[key];
22071
+ setProperty(acc, key, source[key]);
22039
22072
  return acc;
22040
22073
  }, target);
22041
22074
  };
@@ -22069,6 +22102,13 @@ var require_utils = __commonJS({
22069
22102
  var out = "";
22070
22103
  for (var j2 = 0; j2 < string4.length; j2 += limit) {
22071
22104
  var segment = string4.length >= limit ? string4.slice(j2, j2 + limit) : string4;
22105
+ if (j2 + limit < string4.length) {
22106
+ var last = segment.charCodeAt(segment.length - 1);
22107
+ if (last >= 55296 && last <= 56319) {
22108
+ segment = segment.slice(0, -1);
22109
+ j2 -= 1;
22110
+ }
22111
+ }
22072
22112
  var arr = [];
22073
22113
  for (var i = 0; i < segment.length; ++i) {
22074
22114
  var c = segment.charCodeAt(i);
@@ -22098,7 +22138,7 @@ var require_utils = __commonJS({
22098
22138
  };
22099
22139
  var compact = function compact2(value) {
22100
22140
  var queue = [{ obj: { o: value }, prop: "o" }];
22101
- var refs = [];
22141
+ var refs = getSideChannel();
22102
22142
  for (var i = 0; i < queue.length; ++i) {
22103
22143
  var item = queue[i];
22104
22144
  var obj = item.obj[item.prop];
@@ -22106,9 +22146,9 @@ var require_utils = __commonJS({
22106
22146
  for (var j2 = 0; j2 < keys.length; ++j2) {
22107
22147
  var key = keys[j2];
22108
22148
  var val = obj[key];
22109
- if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
22149
+ if (typeof val === "object" && val !== null && !refs.has(val)) {
22110
22150
  queue[queue.length] = { obj, prop: key };
22111
- refs[refs.length] = val;
22151
+ refs.set(val, true);
22112
22152
  }
22113
22153
  }
22114
22154
  }
@@ -22124,8 +22164,11 @@ var require_utils = __commonJS({
22124
22164
  }
22125
22165
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
22126
22166
  };
22127
- var combine = function combine2(a, b2, arrayLimit, plainObjects) {
22167
+ var combine = function combine2(a, b2, arrayLimit, plainObjects, throwOnLimitExceeded) {
22128
22168
  if (isOverflow(a)) {
22169
+ if (throwOnLimitExceeded) {
22170
+ throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
22171
+ }
22129
22172
  var newIndex = getMaxIndex(a) + 1;
22130
22173
  a[newIndex] = b2;
22131
22174
  setMaxIndex(a, newIndex);
@@ -22133,6 +22176,9 @@ var require_utils = __commonJS({
22133
22176
  }
22134
22177
  var result = [].concat(a, b2);
22135
22178
  if (result.length > arrayLimit) {
22179
+ if (throwOnLimitExceeded) {
22180
+ throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
22181
+ }
22136
22182
  return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
22137
22183
  }
22138
22184
  return result;
@@ -22164,9 +22210,9 @@ var require_utils = __commonJS({
22164
22210
  }
22165
22211
  });
22166
22212
 
22167
- // ../../node_modules/qs/lib/stringify.js
22213
+ // ../../node_modules/body-parser/node_modules/qs/lib/stringify.js
22168
22214
  var require_stringify = __commonJS({
22169
- "../../node_modules/qs/lib/stringify.js"(exports2, module2) {
22215
+ "../../node_modules/body-parser/node_modules/qs/lib/stringify.js"(exports2, module2) {
22170
22216
  "use strict";
22171
22217
  var getSideChannel = require_side_channel();
22172
22218
  var utils = require_utils();
@@ -22252,7 +22298,7 @@ var require_stringify = __commonJS({
22252
22298
  }
22253
22299
  if (obj === null) {
22254
22300
  if (strictNullHandling) {
22255
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
22301
+ return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
22256
22302
  }
22257
22303
  obj = "";
22258
22304
  }
@@ -22270,7 +22316,9 @@ var require_stringify = __commonJS({
22270
22316
  var objKeys;
22271
22317
  if (generateArrayPrefix === "comma" && isArray(obj)) {
22272
22318
  if (encodeValuesOnly && encoder) {
22273
- obj = utils.maybeMap(obj, encoder);
22319
+ obj = utils.maybeMap(obj, function(v2) {
22320
+ return v2 == null ? v2 : encoder(v2);
22321
+ });
22274
22322
  }
22275
22323
  objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
22276
22324
  } else if (isArray(filter)) {
@@ -22408,6 +22456,9 @@ var require_stringify = __commonJS({
22408
22456
  var sideChannel = getSideChannel();
22409
22457
  for (var i = 0; i < objKeys.length; ++i) {
22410
22458
  var key = objKeys[i];
22459
+ if (typeof key === "undefined" || key === null) {
22460
+ continue;
22461
+ }
22411
22462
  var value = obj[key];
22412
22463
  if (options.skipNulls && value === null) {
22413
22464
  continue;
@@ -22437,9 +22488,9 @@ var require_stringify = __commonJS({
22437
22488
  var prefix = options.addQueryPrefix === true ? "?" : "";
22438
22489
  if (options.charsetSentinel) {
22439
22490
  if (options.charset === "iso-8859-1") {
22440
- prefix += "utf8=%26%2310003%3B&";
22491
+ prefix += "utf8=%26%2310003%3B" + options.delimiter;
22441
22492
  } else {
22442
- prefix += "utf8=%E2%9C%93&";
22493
+ prefix += "utf8=%E2%9C%93" + options.delimiter;
22443
22494
  }
22444
22495
  }
22445
22496
  return joined.length > 0 ? prefix + joined : "";
@@ -22447,9 +22498,9 @@ var require_stringify = __commonJS({
22447
22498
  }
22448
22499
  });
22449
22500
 
22450
- // ../../node_modules/qs/lib/parse.js
22501
+ // ../../node_modules/body-parser/node_modules/qs/lib/parse.js
22451
22502
  var require_parse = __commonJS({
22452
- "../../node_modules/qs/lib/parse.js"(exports2, module2) {
22503
+ "../../node_modules/body-parser/node_modules/qs/lib/parse.js"(exports2, module2) {
22453
22504
  "use strict";
22454
22505
  var utils = require_utils();
22455
22506
  var has = Object.prototype.hasOwnProperty;
@@ -22474,6 +22525,7 @@ var require_parse = __commonJS({
22474
22525
  parseArrays: true,
22475
22526
  plainObjects: false,
22476
22527
  strictDepth: false,
22528
+ strictMerge: true,
22477
22529
  strictNullHandling: false,
22478
22530
  throwOnLimitExceeded: false
22479
22531
  };
@@ -22482,8 +22534,19 @@ var require_parse = __commonJS({
22482
22534
  return String.fromCharCode(parseInt(numberStr, 10));
22483
22535
  });
22484
22536
  };
22485
- var parseArrayValue = function(val, options, currentArrayLength) {
22537
+ var parseArrayValue = function(val, options, currentArrayLength, isFlatArrayValue) {
22486
22538
  if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
22539
+ if (isFlatArrayValue && options.throwOnLimitExceeded) {
22540
+ var commaCount = 0;
22541
+ var commaIndex = val.indexOf(",");
22542
+ while (commaIndex > -1) {
22543
+ commaCount += 1;
22544
+ if (commaCount >= options.arrayLimit) {
22545
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
22546
+ }
22547
+ commaIndex = val.indexOf(",", commaIndex + 1);
22548
+ }
22549
+ }
22487
22550
  return val.split(",");
22488
22551
  }
22489
22552
  if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
@@ -22500,9 +22563,9 @@ var require_parse = __commonJS({
22500
22563
  var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
22501
22564
  var parts = cleanStr.split(
22502
22565
  options.delimiter,
22503
- options.throwOnLimitExceeded ? limit + 1 : limit
22566
+ options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit
22504
22567
  );
22505
- if (options.throwOnLimitExceeded && parts.length > limit) {
22568
+ if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
22506
22569
  throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
22507
22570
  }
22508
22571
  var skipIndex = -1;
@@ -22540,7 +22603,8 @@ var require_parse = __commonJS({
22540
22603
  parseArrayValue(
22541
22604
  part.slice(pos + 1),
22542
22605
  options,
22543
- isArray(obj[key]) ? obj[key].length : 0
22606
+ isArray(obj[key]) ? obj[key].length : 0,
22607
+ part.indexOf("[]=") === -1
22544
22608
  ),
22545
22609
  function(encodedVal) {
22546
22610
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
@@ -22555,19 +22619,17 @@ var require_parse = __commonJS({
22555
22619
  val = isArray(val) ? [val] : val;
22556
22620
  }
22557
22621
  if (options.comma && isArray(val) && val.length > options.arrayLimit) {
22558
- if (options.throwOnLimitExceeded) {
22559
- throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
22560
- }
22561
- val = utils.combine([], val, options.arrayLimit, options.plainObjects);
22622
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
22562
22623
  }
22563
22624
  if (key !== null) {
22564
22625
  var existing = has.call(obj, key);
22565
- if (existing && options.duplicates === "combine") {
22626
+ if (existing && (options.duplicates === "combine" || part.indexOf("[]=") > -1)) {
22566
22627
  obj[key] = utils.combine(
22567
22628
  obj[key],
22568
22629
  val,
22569
22630
  options.arrayLimit,
22570
- options.plainObjects
22631
+ options.plainObjects,
22632
+ options.throwOnLimitExceeded
22571
22633
  );
22572
22634
  } else if (!existing || options.duplicates === "last") {
22573
22635
  obj[key] = val;
@@ -22594,7 +22656,8 @@ var require_parse = __commonJS({
22594
22656
  [],
22595
22657
  leaf,
22596
22658
  options.arrayLimit,
22597
- options.plainObjects
22659
+ options.plainObjects,
22660
+ options.throwOnLimitExceeded
22598
22661
  );
22599
22662
  }
22600
22663
  } else {
@@ -22621,8 +22684,8 @@ var require_parse = __commonJS({
22621
22684
  }
22622
22685
  return leaf;
22623
22686
  };
22624
- var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) {
22625
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
22687
+ var splitKeyIntoSegments = function splitKeyIntoSegments2(originalKey, options) {
22688
+ var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
22626
22689
  if (options.depth <= 0) {
22627
22690
  if (!options.plainObjects && has.call(Object.prototype, key)) {
22628
22691
  if (!options.allowPrototypes) {
@@ -22631,37 +22694,56 @@ var require_parse = __commonJS({
22631
22694
  }
22632
22695
  return [key];
22633
22696
  }
22634
- var brackets = /(\[[^[\]]*])/;
22635
- var child = /(\[[^[\]]*])/g;
22636
- var segment = brackets.exec(key);
22637
- var parent = segment ? key.slice(0, segment.index) : key;
22638
- var keys = [];
22697
+ var segments = [];
22698
+ var first = key.indexOf("[");
22699
+ var parent = first >= 0 ? key.slice(0, first) : key;
22639
22700
  if (parent) {
22640
22701
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
22641
22702
  if (!options.allowPrototypes) {
22642
22703
  return;
22643
22704
  }
22644
22705
  }
22645
- keys[keys.length] = parent;
22646
- }
22647
- var i = 0;
22648
- while ((segment = child.exec(key)) !== null && i < options.depth) {
22649
- i += 1;
22650
- var segmentContent = segment[1].slice(1, -1);
22651
- if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
22652
- if (!options.allowPrototypes) {
22653
- return;
22706
+ segments[segments.length] = parent;
22707
+ }
22708
+ var n = key.length;
22709
+ var open = first;
22710
+ var collected = 0;
22711
+ while (open >= 0 && collected < options.depth) {
22712
+ var level = 1;
22713
+ var i = open + 1;
22714
+ var close = -1;
22715
+ while (i < n && close < 0) {
22716
+ var cu = key.charCodeAt(i);
22717
+ if (cu === 91) {
22718
+ level += 1;
22719
+ } else if (cu === 93) {
22720
+ level -= 1;
22721
+ if (level === 0) {
22722
+ close = i;
22723
+ }
22654
22724
  }
22725
+ i += 1;
22655
22726
  }
22656
- keys[keys.length] = segment[1];
22727
+ if (close < 0) {
22728
+ segments[segments.length] = "[" + key.slice(open) + "]";
22729
+ return segments;
22730
+ }
22731
+ var seg = key.slice(open, close + 1);
22732
+ var content = seg.slice(1, -1);
22733
+ if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
22734
+ return;
22735
+ }
22736
+ segments[segments.length] = seg;
22737
+ collected += 1;
22738
+ open = key.indexOf("[", close + 1);
22657
22739
  }
22658
- if (segment) {
22740
+ if (open >= 0) {
22659
22741
  if (options.strictDepth === true) {
22660
22742
  throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
22661
22743
  }
22662
- keys[keys.length] = "[" + key.slice(segment.index) + "]";
22744
+ segments[segments.length] = "[" + key.slice(open) + "]";
22663
22745
  }
22664
- return keys;
22746
+ return segments;
22665
22747
  };
22666
22748
  var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
22667
22749
  if (!givenKey) {
@@ -22719,6 +22801,7 @@ var require_parse = __commonJS({
22719
22801
  parseArrays: opts.parseArrays !== false,
22720
22802
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
22721
22803
  strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
22804
+ strictMerge: typeof opts.strictMerge === "boolean" ? !!opts.strictMerge : defaults.strictMerge,
22722
22805
  strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
22723
22806
  throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
22724
22807
  };
@@ -22744,9 +22827,9 @@ var require_parse = __commonJS({
22744
22827
  }
22745
22828
  });
22746
22829
 
22747
- // ../../node_modules/qs/lib/index.js
22830
+ // ../../node_modules/body-parser/node_modules/qs/lib/index.js
22748
22831
  var require_lib2 = __commonJS({
22749
- "../../node_modules/qs/lib/index.js"(exports2, module2) {
22832
+ "../../node_modules/body-parser/node_modules/qs/lib/index.js"(exports2, module2) {
22750
22833
  "use strict";
22751
22834
  var stringify = require_stringify();
22752
22835
  var parse3 = require_parse();
@@ -22779,9 +22862,12 @@ var require_urlencoded = __commonJS({
22779
22862
  }
22780
22863
  var extended = opts.extended !== false;
22781
22864
  var inflate = opts.inflate !== false;
22782
- var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
22865
+ var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
22783
22866
  var type = opts.type || "application/x-www-form-urlencoded";
22784
22867
  var verify = opts.verify || false;
22868
+ if (limit === null) {
22869
+ throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
22870
+ }
22785
22871
  if (verify !== false && typeof verify !== "function") {
22786
22872
  throw new TypeError("option verify must be function");
22787
22873
  }
@@ -22877,14 +22963,14 @@ var require_urlencoded = __commonJS({
22877
22963
  }
22878
22964
  function parameterCount(body, limit) {
22879
22965
  var count = 0;
22880
- var index = 0;
22881
- while ((index = body.indexOf("&", index)) !== -1) {
22966
+ var index = -1;
22967
+ do {
22882
22968
  count++;
22883
- index++;
22884
- if (count === limit) {
22969
+ if (count > limit) {
22885
22970
  return void 0;
22886
22971
  }
22887
- }
22972
+ index = body.indexOf("&", index + 1);
22973
+ } while (index !== -1);
22888
22974
  return count;
22889
22975
  }
22890
22976
  function parser(name) {
@@ -24993,13 +25079,896 @@ var require_init = __commonJS({
24993
25079
  }
24994
25080
  });
24995
25081
 
25082
+ // ../../node_modules/qs/lib/formats.js
25083
+ var require_formats2 = __commonJS({
25084
+ "../../node_modules/qs/lib/formats.js"(exports2, module2) {
25085
+ "use strict";
25086
+ var replace = String.prototype.replace;
25087
+ var percentTwenties = /%20/g;
25088
+ var Format = {
25089
+ RFC1738: "RFC1738",
25090
+ RFC3986: "RFC3986"
25091
+ };
25092
+ module2.exports = {
25093
+ "default": Format.RFC3986,
25094
+ formatters: {
25095
+ RFC1738: function(value) {
25096
+ return replace.call(value, percentTwenties, "+");
25097
+ },
25098
+ RFC3986: function(value) {
25099
+ return String(value);
25100
+ }
25101
+ },
25102
+ RFC1738: Format.RFC1738,
25103
+ RFC3986: Format.RFC3986
25104
+ };
25105
+ }
25106
+ });
25107
+
25108
+ // ../../node_modules/qs/lib/utils.js
25109
+ var require_utils2 = __commonJS({
25110
+ "../../node_modules/qs/lib/utils.js"(exports2, module2) {
25111
+ "use strict";
25112
+ var formats = require_formats2();
25113
+ var getSideChannel = require_side_channel();
25114
+ var has = Object.prototype.hasOwnProperty;
25115
+ var isArray = Array.isArray;
25116
+ var overflowChannel = getSideChannel();
25117
+ var markOverflow = function markOverflow2(obj, maxIndex) {
25118
+ overflowChannel.set(obj, maxIndex);
25119
+ return obj;
25120
+ };
25121
+ var isOverflow = function isOverflow2(obj) {
25122
+ return overflowChannel.has(obj);
25123
+ };
25124
+ var getMaxIndex = function getMaxIndex2(obj) {
25125
+ return overflowChannel.get(obj);
25126
+ };
25127
+ var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
25128
+ overflowChannel.set(obj, maxIndex);
25129
+ };
25130
+ var hexTable = function() {
25131
+ var array2 = [];
25132
+ for (var i = 0; i < 256; ++i) {
25133
+ array2[array2.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
25134
+ }
25135
+ return array2;
25136
+ }();
25137
+ var compactQueue = function compactQueue2(queue) {
25138
+ while (queue.length > 1) {
25139
+ var item = queue.pop();
25140
+ var obj = item.obj[item.prop];
25141
+ if (isArray(obj)) {
25142
+ var compacted = [];
25143
+ for (var j2 = 0; j2 < obj.length; ++j2) {
25144
+ if (typeof obj[j2] !== "undefined") {
25145
+ compacted[compacted.length] = obj[j2];
25146
+ }
25147
+ }
25148
+ item.obj[item.prop] = compacted;
25149
+ }
25150
+ }
25151
+ };
25152
+ var arrayToObject = function arrayToObject2(source, options) {
25153
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
25154
+ for (var i = 0; i < source.length; ++i) {
25155
+ if (typeof source[i] !== "undefined") {
25156
+ obj[i] = source[i];
25157
+ }
25158
+ }
25159
+ return obj;
25160
+ };
25161
+ var merge2 = function merge3(target, source, options) {
25162
+ if (!source) {
25163
+ return target;
25164
+ }
25165
+ if (typeof source !== "object" && typeof source !== "function") {
25166
+ if (isArray(target)) {
25167
+ var nextIndex = target.length;
25168
+ if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
25169
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
25170
+ }
25171
+ target[nextIndex] = source;
25172
+ } else if (target && typeof target === "object") {
25173
+ if (isOverflow(target)) {
25174
+ var newIndex = getMaxIndex(target) + 1;
25175
+ target[newIndex] = source;
25176
+ setMaxIndex(target, newIndex);
25177
+ } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
25178
+ target[source] = true;
25179
+ }
25180
+ } else {
25181
+ return [target, source];
25182
+ }
25183
+ return target;
25184
+ }
25185
+ if (!target || typeof target !== "object") {
25186
+ if (isOverflow(source)) {
25187
+ var sourceKeys = Object.keys(source);
25188
+ var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
25189
+ for (var m2 = 0; m2 < sourceKeys.length; m2++) {
25190
+ var oldKey = parseInt(sourceKeys[m2], 10);
25191
+ result[oldKey + 1] = source[sourceKeys[m2]];
25192
+ }
25193
+ return markOverflow(result, getMaxIndex(source) + 1);
25194
+ }
25195
+ var combined = [target].concat(source);
25196
+ if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
25197
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
25198
+ }
25199
+ return combined;
25200
+ }
25201
+ var mergeTarget = target;
25202
+ if (isArray(target) && !isArray(source)) {
25203
+ mergeTarget = arrayToObject(target, options);
25204
+ }
25205
+ if (isArray(target) && isArray(source)) {
25206
+ source.forEach(function(item, i) {
25207
+ if (has.call(target, i)) {
25208
+ var targetItem = target[i];
25209
+ if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
25210
+ target[i] = merge3(targetItem, item, options);
25211
+ } else {
25212
+ target[target.length] = item;
25213
+ }
25214
+ } else {
25215
+ target[i] = item;
25216
+ }
25217
+ });
25218
+ return target;
25219
+ }
25220
+ return Object.keys(source).reduce(function(acc, key) {
25221
+ var value = source[key];
25222
+ if (has.call(acc, key)) {
25223
+ acc[key] = merge3(acc[key], value, options);
25224
+ } else {
25225
+ acc[key] = value;
25226
+ }
25227
+ if (isOverflow(source) && !isOverflow(acc)) {
25228
+ markOverflow(acc, getMaxIndex(source));
25229
+ }
25230
+ if (isOverflow(acc)) {
25231
+ var keyNum = parseInt(key, 10);
25232
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
25233
+ setMaxIndex(acc, keyNum);
25234
+ }
25235
+ }
25236
+ return acc;
25237
+ }, mergeTarget);
25238
+ };
25239
+ var assign = function assignSingleSource(target, source) {
25240
+ return Object.keys(source).reduce(function(acc, key) {
25241
+ acc[key] = source[key];
25242
+ return acc;
25243
+ }, target);
25244
+ };
25245
+ var decode3 = function(str, defaultDecoder, charset) {
25246
+ var strWithoutPlus = str.replace(/\+/g, " ");
25247
+ if (charset === "iso-8859-1") {
25248
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
25249
+ }
25250
+ try {
25251
+ return decodeURIComponent(strWithoutPlus);
25252
+ } catch (e) {
25253
+ return strWithoutPlus;
25254
+ }
25255
+ };
25256
+ var limit = 1024;
25257
+ var encode3 = function encode4(str, defaultEncoder, charset, kind, format) {
25258
+ if (str.length === 0) {
25259
+ return str;
25260
+ }
25261
+ var string4 = str;
25262
+ if (typeof str === "symbol") {
25263
+ string4 = Symbol.prototype.toString.call(str);
25264
+ } else if (typeof str !== "string") {
25265
+ string4 = String(str);
25266
+ }
25267
+ if (charset === "iso-8859-1") {
25268
+ return escape(string4).replace(/%u[0-9a-f]{4}/gi, function($0) {
25269
+ return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
25270
+ });
25271
+ }
25272
+ var out = "";
25273
+ for (var j2 = 0; j2 < string4.length; j2 += limit) {
25274
+ var segment = string4.length >= limit ? string4.slice(j2, j2 + limit) : string4;
25275
+ var arr = [];
25276
+ for (var i = 0; i < segment.length; ++i) {
25277
+ var c = segment.charCodeAt(i);
25278
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
25279
+ arr[arr.length] = segment.charAt(i);
25280
+ continue;
25281
+ }
25282
+ if (c < 128) {
25283
+ arr[arr.length] = hexTable[c];
25284
+ continue;
25285
+ }
25286
+ if (c < 2048) {
25287
+ arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
25288
+ continue;
25289
+ }
25290
+ if (c < 55296 || c >= 57344) {
25291
+ arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
25292
+ continue;
25293
+ }
25294
+ i += 1;
25295
+ c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
25296
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
25297
+ }
25298
+ out += arr.join("");
25299
+ }
25300
+ return out;
25301
+ };
25302
+ var compact = function compact2(value) {
25303
+ var queue = [{ obj: { o: value }, prop: "o" }];
25304
+ var refs = [];
25305
+ for (var i = 0; i < queue.length; ++i) {
25306
+ var item = queue[i];
25307
+ var obj = item.obj[item.prop];
25308
+ var keys = Object.keys(obj);
25309
+ for (var j2 = 0; j2 < keys.length; ++j2) {
25310
+ var key = keys[j2];
25311
+ var val = obj[key];
25312
+ if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
25313
+ queue[queue.length] = { obj, prop: key };
25314
+ refs[refs.length] = val;
25315
+ }
25316
+ }
25317
+ }
25318
+ compactQueue(queue);
25319
+ return value;
25320
+ };
25321
+ var isRegExp = function isRegExp2(obj) {
25322
+ return Object.prototype.toString.call(obj) === "[object RegExp]";
25323
+ };
25324
+ var isBuffer = function isBuffer2(obj) {
25325
+ if (!obj || typeof obj !== "object") {
25326
+ return false;
25327
+ }
25328
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
25329
+ };
25330
+ var combine = function combine2(a, b2, arrayLimit, plainObjects) {
25331
+ if (isOverflow(a)) {
25332
+ var newIndex = getMaxIndex(a) + 1;
25333
+ a[newIndex] = b2;
25334
+ setMaxIndex(a, newIndex);
25335
+ return a;
25336
+ }
25337
+ var result = [].concat(a, b2);
25338
+ if (result.length > arrayLimit) {
25339
+ return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
25340
+ }
25341
+ return result;
25342
+ };
25343
+ var maybeMap = function maybeMap2(val, fn) {
25344
+ if (isArray(val)) {
25345
+ var mapped = [];
25346
+ for (var i = 0; i < val.length; i += 1) {
25347
+ mapped[mapped.length] = fn(val[i]);
25348
+ }
25349
+ return mapped;
25350
+ }
25351
+ return fn(val);
25352
+ };
25353
+ module2.exports = {
25354
+ arrayToObject,
25355
+ assign,
25356
+ combine,
25357
+ compact,
25358
+ decode: decode3,
25359
+ encode: encode3,
25360
+ isBuffer,
25361
+ isOverflow,
25362
+ isRegExp,
25363
+ markOverflow,
25364
+ maybeMap,
25365
+ merge: merge2
25366
+ };
25367
+ }
25368
+ });
25369
+
25370
+ // ../../node_modules/qs/lib/stringify.js
25371
+ var require_stringify2 = __commonJS({
25372
+ "../../node_modules/qs/lib/stringify.js"(exports2, module2) {
25373
+ "use strict";
25374
+ var getSideChannel = require_side_channel();
25375
+ var utils = require_utils2();
25376
+ var formats = require_formats2();
25377
+ var has = Object.prototype.hasOwnProperty;
25378
+ var arrayPrefixGenerators = {
25379
+ brackets: function brackets(prefix) {
25380
+ return prefix + "[]";
25381
+ },
25382
+ comma: "comma",
25383
+ indices: function indices(prefix, key) {
25384
+ return prefix + "[" + key + "]";
25385
+ },
25386
+ repeat: function repeat(prefix) {
25387
+ return prefix;
25388
+ }
25389
+ };
25390
+ var isArray = Array.isArray;
25391
+ var push = Array.prototype.push;
25392
+ var pushToArray = function(arr, valueOrArray) {
25393
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
25394
+ };
25395
+ var toISO = Date.prototype.toISOString;
25396
+ var defaultFormat = formats["default"];
25397
+ var defaults = {
25398
+ addQueryPrefix: false,
25399
+ allowDots: false,
25400
+ allowEmptyArrays: false,
25401
+ arrayFormat: "indices",
25402
+ charset: "utf-8",
25403
+ charsetSentinel: false,
25404
+ commaRoundTrip: false,
25405
+ delimiter: "&",
25406
+ encode: true,
25407
+ encodeDotInKeys: false,
25408
+ encoder: utils.encode,
25409
+ encodeValuesOnly: false,
25410
+ filter: void 0,
25411
+ format: defaultFormat,
25412
+ formatter: formats.formatters[defaultFormat],
25413
+ // deprecated
25414
+ indices: false,
25415
+ serializeDate: function serializeDate(date5) {
25416
+ return toISO.call(date5);
25417
+ },
25418
+ skipNulls: false,
25419
+ strictNullHandling: false
25420
+ };
25421
+ var isNonNullishPrimitive = function isNonNullishPrimitive2(v2) {
25422
+ return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
25423
+ };
25424
+ var sentinel = {};
25425
+ var stringify = function stringify2(object2, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
25426
+ var obj = object2;
25427
+ var tmpSc = sideChannel;
25428
+ var step = 0;
25429
+ var findFlag = false;
25430
+ while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
25431
+ var pos = tmpSc.get(object2);
25432
+ step += 1;
25433
+ if (typeof pos !== "undefined") {
25434
+ if (pos === step) {
25435
+ throw new RangeError("Cyclic object value");
25436
+ } else {
25437
+ findFlag = true;
25438
+ }
25439
+ }
25440
+ if (typeof tmpSc.get(sentinel) === "undefined") {
25441
+ step = 0;
25442
+ }
25443
+ }
25444
+ if (typeof filter === "function") {
25445
+ obj = filter(prefix, obj);
25446
+ } else if (obj instanceof Date) {
25447
+ obj = serializeDate(obj);
25448
+ } else if (generateArrayPrefix === "comma" && isArray(obj)) {
25449
+ obj = utils.maybeMap(obj, function(value2) {
25450
+ if (value2 instanceof Date) {
25451
+ return serializeDate(value2);
25452
+ }
25453
+ return value2;
25454
+ });
25455
+ }
25456
+ if (obj === null) {
25457
+ if (strictNullHandling) {
25458
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
25459
+ }
25460
+ obj = "";
25461
+ }
25462
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
25463
+ if (encoder) {
25464
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
25465
+ return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
25466
+ }
25467
+ return [formatter(prefix) + "=" + formatter(String(obj))];
25468
+ }
25469
+ var values = [];
25470
+ if (typeof obj === "undefined") {
25471
+ return values;
25472
+ }
25473
+ var objKeys;
25474
+ if (generateArrayPrefix === "comma" && isArray(obj)) {
25475
+ if (encodeValuesOnly && encoder) {
25476
+ obj = utils.maybeMap(obj, encoder);
25477
+ }
25478
+ objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
25479
+ } else if (isArray(filter)) {
25480
+ objKeys = filter;
25481
+ } else {
25482
+ var keys = Object.keys(obj);
25483
+ objKeys = sort ? keys.sort(sort) : keys;
25484
+ }
25485
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
25486
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
25487
+ if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
25488
+ return adjustedPrefix + "[]";
25489
+ }
25490
+ for (var j2 = 0; j2 < objKeys.length; ++j2) {
25491
+ var key = objKeys[j2];
25492
+ var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
25493
+ if (skipNulls && value === null) {
25494
+ continue;
25495
+ }
25496
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
25497
+ var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
25498
+ sideChannel.set(object2, step);
25499
+ var valueSideChannel = getSideChannel();
25500
+ valueSideChannel.set(sentinel, sideChannel);
25501
+ pushToArray(values, stringify2(
25502
+ value,
25503
+ keyPrefix,
25504
+ generateArrayPrefix,
25505
+ commaRoundTrip,
25506
+ allowEmptyArrays,
25507
+ strictNullHandling,
25508
+ skipNulls,
25509
+ encodeDotInKeys,
25510
+ generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
25511
+ filter,
25512
+ sort,
25513
+ allowDots,
25514
+ serializeDate,
25515
+ format,
25516
+ formatter,
25517
+ encodeValuesOnly,
25518
+ charset,
25519
+ valueSideChannel
25520
+ ));
25521
+ }
25522
+ return values;
25523
+ };
25524
+ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
25525
+ if (!opts) {
25526
+ return defaults;
25527
+ }
25528
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
25529
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
25530
+ }
25531
+ if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
25532
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
25533
+ }
25534
+ if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
25535
+ throw new TypeError("Encoder has to be a function.");
25536
+ }
25537
+ var charset = opts.charset || defaults.charset;
25538
+ if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
25539
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
25540
+ }
25541
+ var format = formats["default"];
25542
+ if (typeof opts.format !== "undefined") {
25543
+ if (!has.call(formats.formatters, opts.format)) {
25544
+ throw new TypeError("Unknown format option provided.");
25545
+ }
25546
+ format = opts.format;
25547
+ }
25548
+ var formatter = formats.formatters[format];
25549
+ var filter = defaults.filter;
25550
+ if (typeof opts.filter === "function" || isArray(opts.filter)) {
25551
+ filter = opts.filter;
25552
+ }
25553
+ var arrayFormat;
25554
+ if (opts.arrayFormat in arrayPrefixGenerators) {
25555
+ arrayFormat = opts.arrayFormat;
25556
+ } else if ("indices" in opts) {
25557
+ arrayFormat = opts.indices ? "indices" : "repeat";
25558
+ } else {
25559
+ arrayFormat = defaults.arrayFormat;
25560
+ }
25561
+ if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
25562
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
25563
+ }
25564
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
25565
+ return {
25566
+ addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
25567
+ allowDots,
25568
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
25569
+ arrayFormat,
25570
+ charset,
25571
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
25572
+ commaRoundTrip: !!opts.commaRoundTrip,
25573
+ delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
25574
+ encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
25575
+ encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
25576
+ encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
25577
+ encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
25578
+ filter,
25579
+ format,
25580
+ formatter,
25581
+ serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
25582
+ skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
25583
+ sort: typeof opts.sort === "function" ? opts.sort : null,
25584
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
25585
+ };
25586
+ };
25587
+ module2.exports = function(object2, opts) {
25588
+ var obj = object2;
25589
+ var options = normalizeStringifyOptions(opts);
25590
+ var objKeys;
25591
+ var filter;
25592
+ if (typeof options.filter === "function") {
25593
+ filter = options.filter;
25594
+ obj = filter("", obj);
25595
+ } else if (isArray(options.filter)) {
25596
+ filter = options.filter;
25597
+ objKeys = filter;
25598
+ }
25599
+ var keys = [];
25600
+ if (typeof obj !== "object" || obj === null) {
25601
+ return "";
25602
+ }
25603
+ var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
25604
+ var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
25605
+ if (!objKeys) {
25606
+ objKeys = Object.keys(obj);
25607
+ }
25608
+ if (options.sort) {
25609
+ objKeys.sort(options.sort);
25610
+ }
25611
+ var sideChannel = getSideChannel();
25612
+ for (var i = 0; i < objKeys.length; ++i) {
25613
+ var key = objKeys[i];
25614
+ var value = obj[key];
25615
+ if (options.skipNulls && value === null) {
25616
+ continue;
25617
+ }
25618
+ pushToArray(keys, stringify(
25619
+ value,
25620
+ key,
25621
+ generateArrayPrefix,
25622
+ commaRoundTrip,
25623
+ options.allowEmptyArrays,
25624
+ options.strictNullHandling,
25625
+ options.skipNulls,
25626
+ options.encodeDotInKeys,
25627
+ options.encode ? options.encoder : null,
25628
+ options.filter,
25629
+ options.sort,
25630
+ options.allowDots,
25631
+ options.serializeDate,
25632
+ options.format,
25633
+ options.formatter,
25634
+ options.encodeValuesOnly,
25635
+ options.charset,
25636
+ sideChannel
25637
+ ));
25638
+ }
25639
+ var joined = keys.join(options.delimiter);
25640
+ var prefix = options.addQueryPrefix === true ? "?" : "";
25641
+ if (options.charsetSentinel) {
25642
+ if (options.charset === "iso-8859-1") {
25643
+ prefix += "utf8=%26%2310003%3B&";
25644
+ } else {
25645
+ prefix += "utf8=%E2%9C%93&";
25646
+ }
25647
+ }
25648
+ return joined.length > 0 ? prefix + joined : "";
25649
+ };
25650
+ }
25651
+ });
25652
+
25653
+ // ../../node_modules/qs/lib/parse.js
25654
+ var require_parse2 = __commonJS({
25655
+ "../../node_modules/qs/lib/parse.js"(exports2, module2) {
25656
+ "use strict";
25657
+ var utils = require_utils2();
25658
+ var has = Object.prototype.hasOwnProperty;
25659
+ var isArray = Array.isArray;
25660
+ var defaults = {
25661
+ allowDots: false,
25662
+ allowEmptyArrays: false,
25663
+ allowPrototypes: false,
25664
+ allowSparse: false,
25665
+ arrayLimit: 20,
25666
+ charset: "utf-8",
25667
+ charsetSentinel: false,
25668
+ comma: false,
25669
+ decodeDotInKeys: false,
25670
+ decoder: utils.decode,
25671
+ delimiter: "&",
25672
+ depth: 5,
25673
+ duplicates: "combine",
25674
+ ignoreQueryPrefix: false,
25675
+ interpretNumericEntities: false,
25676
+ parameterLimit: 1e3,
25677
+ parseArrays: true,
25678
+ plainObjects: false,
25679
+ strictDepth: false,
25680
+ strictNullHandling: false,
25681
+ throwOnLimitExceeded: false
25682
+ };
25683
+ var interpretNumericEntities = function(str) {
25684
+ return str.replace(/&#(\d+);/g, function($0, numberStr) {
25685
+ return String.fromCharCode(parseInt(numberStr, 10));
25686
+ });
25687
+ };
25688
+ var parseArrayValue = function(val, options, currentArrayLength) {
25689
+ if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
25690
+ return val.split(",");
25691
+ }
25692
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
25693
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
25694
+ }
25695
+ return val;
25696
+ };
25697
+ var isoSentinel = "utf8=%26%2310003%3B";
25698
+ var charsetSentinel = "utf8=%E2%9C%93";
25699
+ var parseValues = function parseQueryStringValues(str, options) {
25700
+ var obj = { __proto__: null };
25701
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
25702
+ cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
25703
+ var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
25704
+ var parts = cleanStr.split(
25705
+ options.delimiter,
25706
+ options.throwOnLimitExceeded ? limit + 1 : limit
25707
+ );
25708
+ if (options.throwOnLimitExceeded && parts.length > limit) {
25709
+ throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
25710
+ }
25711
+ var skipIndex = -1;
25712
+ var i;
25713
+ var charset = options.charset;
25714
+ if (options.charsetSentinel) {
25715
+ for (i = 0; i < parts.length; ++i) {
25716
+ if (parts[i].indexOf("utf8=") === 0) {
25717
+ if (parts[i] === charsetSentinel) {
25718
+ charset = "utf-8";
25719
+ } else if (parts[i] === isoSentinel) {
25720
+ charset = "iso-8859-1";
25721
+ }
25722
+ skipIndex = i;
25723
+ i = parts.length;
25724
+ }
25725
+ }
25726
+ }
25727
+ for (i = 0; i < parts.length; ++i) {
25728
+ if (i === skipIndex) {
25729
+ continue;
25730
+ }
25731
+ var part = parts[i];
25732
+ var bracketEqualsPos = part.indexOf("]=");
25733
+ var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
25734
+ var key;
25735
+ var val;
25736
+ if (pos === -1) {
25737
+ key = options.decoder(part, defaults.decoder, charset, "key");
25738
+ val = options.strictNullHandling ? null : "";
25739
+ } else {
25740
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
25741
+ if (key !== null) {
25742
+ val = utils.maybeMap(
25743
+ parseArrayValue(
25744
+ part.slice(pos + 1),
25745
+ options,
25746
+ isArray(obj[key]) ? obj[key].length : 0
25747
+ ),
25748
+ function(encodedVal) {
25749
+ return options.decoder(encodedVal, defaults.decoder, charset, "value");
25750
+ }
25751
+ );
25752
+ }
25753
+ }
25754
+ if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
25755
+ val = interpretNumericEntities(String(val));
25756
+ }
25757
+ if (part.indexOf("[]=") > -1) {
25758
+ val = isArray(val) ? [val] : val;
25759
+ }
25760
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
25761
+ if (options.throwOnLimitExceeded) {
25762
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
25763
+ }
25764
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
25765
+ }
25766
+ if (key !== null) {
25767
+ var existing = has.call(obj, key);
25768
+ if (existing && options.duplicates === "combine") {
25769
+ obj[key] = utils.combine(
25770
+ obj[key],
25771
+ val,
25772
+ options.arrayLimit,
25773
+ options.plainObjects
25774
+ );
25775
+ } else if (!existing || options.duplicates === "last") {
25776
+ obj[key] = val;
25777
+ }
25778
+ }
25779
+ }
25780
+ return obj;
25781
+ };
25782
+ var parseObject = function(chain, val, options, valuesParsed) {
25783
+ var currentArrayLength = 0;
25784
+ if (chain.length > 0 && chain[chain.length - 1] === "[]") {
25785
+ var parentKey = chain.slice(0, -1).join("");
25786
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
25787
+ }
25788
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
25789
+ for (var i = chain.length - 1; i >= 0; --i) {
25790
+ var obj;
25791
+ var root = chain[i];
25792
+ if (root === "[]" && options.parseArrays) {
25793
+ if (utils.isOverflow(leaf)) {
25794
+ obj = leaf;
25795
+ } else {
25796
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine(
25797
+ [],
25798
+ leaf,
25799
+ options.arrayLimit,
25800
+ options.plainObjects
25801
+ );
25802
+ }
25803
+ } else {
25804
+ obj = options.plainObjects ? { __proto__: null } : {};
25805
+ var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
25806
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
25807
+ var index = parseInt(decodedRoot, 10);
25808
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
25809
+ if (!options.parseArrays && decodedRoot === "") {
25810
+ obj = { 0: leaf };
25811
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
25812
+ obj = [];
25813
+ obj[index] = leaf;
25814
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
25815
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
25816
+ } else if (isValidArrayIndex) {
25817
+ obj[index] = leaf;
25818
+ utils.markOverflow(obj, index);
25819
+ } else if (decodedRoot !== "__proto__") {
25820
+ obj[decodedRoot] = leaf;
25821
+ }
25822
+ }
25823
+ leaf = obj;
25824
+ }
25825
+ return leaf;
25826
+ };
25827
+ var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) {
25828
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
25829
+ if (options.depth <= 0) {
25830
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
25831
+ if (!options.allowPrototypes) {
25832
+ return;
25833
+ }
25834
+ }
25835
+ return [key];
25836
+ }
25837
+ var brackets = /(\[[^[\]]*])/;
25838
+ var child = /(\[[^[\]]*])/g;
25839
+ var segment = brackets.exec(key);
25840
+ var parent = segment ? key.slice(0, segment.index) : key;
25841
+ var keys = [];
25842
+ if (parent) {
25843
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
25844
+ if (!options.allowPrototypes) {
25845
+ return;
25846
+ }
25847
+ }
25848
+ keys[keys.length] = parent;
25849
+ }
25850
+ var i = 0;
25851
+ while ((segment = child.exec(key)) !== null && i < options.depth) {
25852
+ i += 1;
25853
+ var segmentContent = segment[1].slice(1, -1);
25854
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
25855
+ if (!options.allowPrototypes) {
25856
+ return;
25857
+ }
25858
+ }
25859
+ keys[keys.length] = segment[1];
25860
+ }
25861
+ if (segment) {
25862
+ if (options.strictDepth === true) {
25863
+ throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
25864
+ }
25865
+ keys[keys.length] = "[" + key.slice(segment.index) + "]";
25866
+ }
25867
+ return keys;
25868
+ };
25869
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
25870
+ if (!givenKey) {
25871
+ return;
25872
+ }
25873
+ var keys = splitKeyIntoSegments(givenKey, options);
25874
+ if (!keys) {
25875
+ return;
25876
+ }
25877
+ return parseObject(keys, val, options, valuesParsed);
25878
+ };
25879
+ var normalizeParseOptions = function normalizeParseOptions2(opts) {
25880
+ if (!opts) {
25881
+ return defaults;
25882
+ }
25883
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
25884
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
25885
+ }
25886
+ if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
25887
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
25888
+ }
25889
+ if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
25890
+ throw new TypeError("Decoder has to be a function.");
25891
+ }
25892
+ if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
25893
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
25894
+ }
25895
+ if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
25896
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
25897
+ }
25898
+ var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
25899
+ var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
25900
+ if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
25901
+ throw new TypeError("The duplicates option must be either combine, first, or last");
25902
+ }
25903
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
25904
+ return {
25905
+ allowDots,
25906
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
25907
+ allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
25908
+ allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
25909
+ arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
25910
+ charset,
25911
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
25912
+ comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
25913
+ decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
25914
+ decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
25915
+ delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
25916
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
25917
+ depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
25918
+ duplicates,
25919
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
25920
+ interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
25921
+ parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
25922
+ parseArrays: opts.parseArrays !== false,
25923
+ plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
25924
+ strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
25925
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
25926
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
25927
+ };
25928
+ };
25929
+ module2.exports = function(str, opts) {
25930
+ var options = normalizeParseOptions(opts);
25931
+ if (str === "" || str === null || typeof str === "undefined") {
25932
+ return options.plainObjects ? { __proto__: null } : {};
25933
+ }
25934
+ var tempObj = typeof str === "string" ? parseValues(str, options) : str;
25935
+ var obj = options.plainObjects ? { __proto__: null } : {};
25936
+ var keys = Object.keys(tempObj);
25937
+ for (var i = 0; i < keys.length; ++i) {
25938
+ var key = keys[i];
25939
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
25940
+ obj = utils.merge(obj, newObj, options);
25941
+ }
25942
+ if (options.allowSparse === true) {
25943
+ return obj;
25944
+ }
25945
+ return utils.compact(obj);
25946
+ };
25947
+ }
25948
+ });
25949
+
25950
+ // ../../node_modules/qs/lib/index.js
25951
+ var require_lib3 = __commonJS({
25952
+ "../../node_modules/qs/lib/index.js"(exports2, module2) {
25953
+ "use strict";
25954
+ var stringify = require_stringify2();
25955
+ var parse3 = require_parse2();
25956
+ var formats = require_formats2();
25957
+ module2.exports = {
25958
+ formats,
25959
+ parse: parse3,
25960
+ stringify
25961
+ };
25962
+ }
25963
+ });
25964
+
24996
25965
  // ../../node_modules/express/lib/middleware/query.js
24997
25966
  var require_query = __commonJS({
24998
25967
  "../../node_modules/express/lib/middleware/query.js"(exports2, module2) {
24999
25968
  "use strict";
25000
25969
  var merge2 = require_utils_merge();
25001
25970
  var parseUrl = require_parseurl();
25002
- var qs = require_lib2();
25971
+ var qs = require_lib3();
25003
25972
  module2.exports = function query(options) {
25004
25973
  var opts = merge2({}, options);
25005
25974
  var queryparse = qs.parse;
@@ -27493,7 +28462,7 @@ var require_proxy_addr = __commonJS({
27493
28462
  });
27494
28463
 
27495
28464
  // ../../node_modules/express/lib/utils.js
27496
- var require_utils2 = __commonJS({
28465
+ var require_utils3 = __commonJS({
27497
28466
  "../../node_modules/express/lib/utils.js"(exports2) {
27498
28467
  "use strict";
27499
28468
  var Buffer2 = require_safe_buffer().Buffer;
@@ -27504,7 +28473,7 @@ var require_utils2 = __commonJS({
27504
28473
  var mime = require_send().mime;
27505
28474
  var etag = require_etag();
27506
28475
  var proxyaddr = require_proxy_addr();
27507
- var qs = require_lib2();
28476
+ var qs = require_lib3();
27508
28477
  var querystring = require("querystring");
27509
28478
  exports2.etag = createETagGenerator({ weak: false });
27510
28479
  exports2.wetag = createETagGenerator({ weak: true });
@@ -27641,9 +28610,9 @@ var require_application = __commonJS({
27641
28610
  var debug = require_src3()("express:application");
27642
28611
  var View = require_view();
27643
28612
  var http2 = require("http");
27644
- var compileETag = require_utils2().compileETag;
27645
- var compileQueryParser = require_utils2().compileQueryParser;
27646
- var compileTrust = require_utils2().compileTrust;
28613
+ var compileETag = require_utils3().compileETag;
28614
+ var compileQueryParser = require_utils3().compileQueryParser;
28615
+ var compileTrust = require_utils3().compileTrust;
27647
28616
  var deprecate = require_depd()("express");
27648
28617
  var flatten = require_array_flatten();
27649
28618
  var merge2 = require_utils_merge();
@@ -28918,15 +29887,15 @@ var require_response = __commonJS({
28918
29887
  var encodeUrl = require_encodeurl();
28919
29888
  var escapeHtml = require_escape_html();
28920
29889
  var http2 = require("http");
28921
- var isAbsolute = require_utils2().isAbsolute;
29890
+ var isAbsolute = require_utils3().isAbsolute;
28922
29891
  var onFinished = require_on_finished();
28923
29892
  var path17 = require("path");
28924
29893
  var statuses = require_statuses();
28925
29894
  var merge2 = require_utils_merge();
28926
29895
  var sign = require_cookie_signature().sign;
28927
- var normalizeType = require_utils2().normalizeType;
28928
- var normalizeTypes = require_utils2().normalizeTypes;
28929
- var setCharset = require_utils2().setCharset;
29896
+ var normalizeType = require_utils3().normalizeType;
29897
+ var normalizeTypes = require_utils3().normalizeTypes;
29898
+ var setCharset = require_utils3().setCharset;
28930
29899
  var cookie = require_cookie();
28931
29900
  var send2 = require_send();
28932
29901
  var extname = path17.extname;
@@ -52569,7 +53538,7 @@ function disabledTelemetryRuntime() {
52569
53538
 
52570
53539
  // ../server/src/updates/version.ts
52571
53540
  function readVersionStamp() {
52572
- if ("0.1.205".length > 0) return "0.1.205";
53541
+ if ("0.1.206".length > 0) return "0.1.206";
52573
53542
  return void 0;
52574
53543
  }
52575
53544
  function resolveUpdateReleaseVersion(env = process.env, stamp = readVersionStamp()) {
@@ -53069,8 +54038,8 @@ var Server = class {
53069
54038
  };
53070
54039
  };
53071
54040
  function readServerPackageVersion() {
53072
- if ("0.1.205".length > 0) {
53073
- return telemetryVersion("0.1.205");
54041
+ if ("0.1.206".length > 0) {
54042
+ return telemetryVersion("0.1.206");
53074
54043
  }
53075
54044
  const packageJsonPath = import_node_path11.default.resolve(import_node_path11.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)), "..", "package.json");
53076
54045
  if (!(0, import_node_fs9.existsSync)(packageJsonPath)) return telemetryVersion("0.0.0");
@@ -54649,8 +55618,8 @@ function resolveVercelSkillsInstallerBin() {
54649
55618
  return localRequire.resolve("skills/bin/cli.mjs");
54650
55619
  }
54651
55620
  function readCLIVersion() {
54652
- if ("0.1.205".length > 0) {
54653
- return "0.1.205";
55621
+ if ("0.1.206".length > 0) {
55622
+ return "0.1.206";
54654
55623
  }
54655
55624
  const devPackageJsonPath = import_node_path17.default.join(getDevPackageDir(), "package.json");
54656
55625
  if (!(0, import_node_fs14.existsSync)(devPackageJsonPath)) {
@@ -54995,6 +55964,9 @@ function createEnvironment(environment) {
54995
55964
  return new Daemon({
54996
55965
  name: DAEMON_NAME,
54997
55966
  description: "Television server \u2014 virtual display for agents",
55967
+ // Persist the exact Node used at install time because a service does
55968
+ // not boot through the operator's interactive nvm shell. Reinstalling
55969
+ // the service is how a later Node selection takes effect.
54998
55970
  command: process.execPath,
54999
55971
  args,
55000
55972
  env: options.env