@rindo/core 4.18.2 → 4.18.3-dev.1734304270.ca7046f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/cli/index.cjs +27 -12
  2. package/cli/index.js +27 -12
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/rindo.js +939 -679
  6. package/dev-server/client/index.js +1 -1
  7. package/dev-server/client/package.json +1 -1
  8. package/dev-server/connector.html +2 -2
  9. package/dev-server/index.js +1 -1
  10. package/dev-server/package.json +1 -1
  11. package/dev-server/server-process.js +52 -40
  12. package/dev-server/ws.js +1 -1
  13. package/internal/app-data/package.json +1 -1
  14. package/internal/client/index.js +38 -17
  15. package/internal/client/package.json +1 -1
  16. package/internal/client/patch-browser.js +1 -1
  17. package/internal/hydrate/index.js +36 -17
  18. package/internal/hydrate/package.json +1 -1
  19. package/internal/hydrate/runner.js +70 -60
  20. package/internal/package.json +1 -1
  21. package/internal/rindo-private.d.ts +13 -7
  22. package/internal/rindo-public-compiler.d.ts +10 -3
  23. package/internal/testing/index.js +35 -16
  24. package/internal/testing/package.json +1 -1
  25. package/mock-doc/index.cjs +70 -60
  26. package/mock-doc/index.d.ts +36 -30
  27. package/mock-doc/index.js +70 -60
  28. package/mock-doc/package.json +1 -1
  29. package/package.json +18 -21
  30. package/screenshot/index.js +1 -1
  31. package/screenshot/package.json +1 -1
  32. package/screenshot/pixel-match.js +4 -1
  33. package/sys/node/autoprefixer.js +2 -2
  34. package/sys/node/glob.js +1 -1
  35. package/sys/node/index.js +2 -2
  36. package/sys/node/node-fetch.js +10 -2
  37. package/sys/node/package.json +1 -1
  38. package/sys/node/worker.js +1 -1
  39. package/testing/index.js +33 -15
  40. package/testing/mock-fetch.d.ts +4 -4
  41. package/testing/mocks.d.ts +9 -9
  42. package/testing/package.json +1 -1
package/compiler/rindo.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Compiler v4.18.2 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Compiler v4.18.3-dev.1734304270.ca7046f | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1466,11 +1466,11 @@ var require_source_map_consumer = __commonJS({
1466
1466
  if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) {
1467
1467
  continue;
1468
1468
  }
1469
- var generatedPosition = section.consumer.generatedPositionFor(aArgs);
1470
- if (generatedPosition) {
1469
+ var generatedPosition2 = section.consumer.generatedPositionFor(aArgs);
1470
+ if (generatedPosition2) {
1471
1471
  var ret = {
1472
- line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
1473
- column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
1472
+ line: generatedPosition2.line + (section.generatedOffset.generatedLine - 1),
1473
+ column: generatedPosition2.column + (section.generatedOffset.generatedLine === generatedPosition2.line ? section.generatedOffset.generatedColumn - 1 : 0)
1474
1474
  };
1475
1475
  return ret;
1476
1476
  }
@@ -2698,9 +2698,9 @@ var require_constants = __commonJS({
2698
2698
  /**
2699
2699
  * Create EXTGLOB_CHARS
2700
2700
  */
2701
- extglobChars(chars4) {
2701
+ extglobChars(chars3) {
2702
2702
  return {
2703
- "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars4.STAR})` },
2703
+ "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars3.STAR})` },
2704
2704
  "?": { type: "qmark", open: "(?:", close: ")?" },
2705
2705
  "+": { type: "plus", open: "(?:", close: ")+" },
2706
2706
  "*": { type: "star", open: "(?:", close: ")*" },
@@ -3137,7 +3137,7 @@ var require_parse = __commonJS({
3137
3137
  var syntaxError = (type, char) => {
3138
3138
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
3139
3139
  };
3140
- var parse4 = (input, options) => {
3140
+ var parse5 = (input, options) => {
3141
3141
  if (typeof input !== "string") {
3142
3142
  throw new TypeError("Expected a string");
3143
3143
  }
@@ -3286,7 +3286,7 @@ var require_parse = __commonJS({
3286
3286
  output = token.close = `)$))${extglobStar}`;
3287
3287
  }
3288
3288
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
3289
- const expression = parse4(rest, { ...options, fastpaths: false }).output;
3289
+ const expression = parse5(rest, { ...options, fastpaths: false }).output;
3290
3290
  output = token.close = `)${expression})${extglobStar})`;
3291
3291
  }
3292
3292
  if (token.prev.type === "bos") {
@@ -3298,7 +3298,7 @@ var require_parse = __commonJS({
3298
3298
  };
3299
3299
  if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
3300
3300
  let backslashes = false;
3301
- let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars4, first, rest, index2) => {
3301
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars3, first, rest, index2) => {
3302
3302
  if (first === "\\") {
3303
3303
  backslashes = true;
3304
3304
  return m;
@@ -3310,10 +3310,10 @@ var require_parse = __commonJS({
3310
3310
  if (index2 === 0) {
3311
3311
  return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
3312
3312
  }
3313
- return QMARK.repeat(chars4.length);
3313
+ return QMARK.repeat(chars3.length);
3314
3314
  }
3315
3315
  if (first === ".") {
3316
- return DOT_LITERAL.repeat(chars4.length);
3316
+ return DOT_LITERAL.repeat(chars3.length);
3317
3317
  }
3318
3318
  if (first === "*") {
3319
3319
  if (esc) {
@@ -3811,7 +3811,7 @@ var require_parse = __commonJS({
3811
3811
  }
3812
3812
  return state;
3813
3813
  };
3814
- parse4.fastpaths = (input, options) => {
3814
+ parse5.fastpaths = (input, options) => {
3815
3815
  const opts = { ...options };
3816
3816
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
3817
3817
  const len = input.length;
@@ -3877,7 +3877,7 @@ var require_parse = __commonJS({
3877
3877
  }
3878
3878
  return source;
3879
3879
  };
3880
- module2.exports = parse4;
3880
+ module2.exports = parse5;
3881
3881
  }
3882
3882
  });
3883
3883
 
@@ -3887,7 +3887,7 @@ var require_picomatch = __commonJS({
3887
3887
  "use strict";
3888
3888
  var path6 = require("path");
3889
3889
  var scan = require_scan();
3890
- var parse4 = require_parse();
3890
+ var parse5 = require_parse();
3891
3891
  var utils = require_utils();
3892
3892
  var constants = require_constants();
3893
3893
  var isObject4 = (val) => val && typeof val === "object" && !Array.isArray(val);
@@ -3975,7 +3975,7 @@ var require_picomatch = __commonJS({
3975
3975
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
3976
3976
  picomatch.parse = (pattern, options) => {
3977
3977
  if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
3978
- return parse4(pattern, { ...options, fastpaths: false });
3978
+ return parse5(pattern, { ...options, fastpaths: false });
3979
3979
  };
3980
3980
  picomatch.scan = (input, options) => scan(input, options);
3981
3981
  picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -4001,10 +4001,10 @@ var require_picomatch = __commonJS({
4001
4001
  }
4002
4002
  let parsed = { negated: false, fastpaths: true };
4003
4003
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
4004
- parsed.output = parse4.fastpaths(input, options);
4004
+ parsed.output = parse5.fastpaths(input, options);
4005
4005
  }
4006
4006
  if (!parsed.output) {
4007
- parsed = parse4(input, options);
4007
+ parsed = parse5(input, options);
4008
4008
  }
4009
4009
  return picomatch.compileRe(parsed, options, returnOutput, returnState);
4010
4010
  };
@@ -4066,7 +4066,7 @@ var require_cjs = __commonJS({
4066
4066
  }
4067
4067
  }
4068
4068
  }
4069
- function remove3(parent, prop, index3) {
4069
+ function remove4(parent, prop, index3) {
4070
4070
  if (parent) {
4071
4071
  if (index3 !== null) {
4072
4072
  parent[prop].splice(index3, 1);
@@ -4090,7 +4090,7 @@ var require_cjs = __commonJS({
4090
4090
  replace2(parent, prop, index3, node);
4091
4091
  }
4092
4092
  if (should_remove) {
4093
- remove3(parent, prop, index3);
4093
+ remove4(parent, prop, index3);
4094
4094
  }
4095
4095
  const skipped = should_skip;
4096
4096
  const removed = should_remove;
@@ -4127,7 +4127,7 @@ var require_cjs = __commonJS({
4127
4127
  replace2(parent, prop, index3, node);
4128
4128
  }
4129
4129
  if (should_remove) {
4130
- remove3(parent, prop, index3);
4130
+ remove4(parent, prop, index3);
4131
4131
  }
4132
4132
  const removed = should_remove;
4133
4133
  replacement = _replacement;
@@ -4670,10 +4670,10 @@ var require_sourcemap_codec_umd = __commonJS({
4670
4670
  typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = global2 || self, factory(global2.sourcemapCodec = {}));
4671
4671
  })(exports2, function(exports3) {
4672
4672
  "use strict";
4673
- var charToInteger3 = {};
4674
- var chars4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
4675
- for (var i = 0; i < chars4.length; i++) {
4676
- charToInteger3[chars4.charCodeAt(i)] = i;
4673
+ var charToInteger2 = {};
4674
+ var chars3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
4675
+ for (var i = 0; i < chars3.length; i++) {
4676
+ charToInteger2[chars3.charCodeAt(i)] = i;
4677
4677
  }
4678
4678
  function decode3(mappings) {
4679
4679
  var decoded = [];
@@ -4698,7 +4698,7 @@ var require_sourcemap_codec_umd = __commonJS({
4698
4698
  line = [];
4699
4699
  segment[0] = 0;
4700
4700
  } else {
4701
- var integer = charToInteger3[c];
4701
+ var integer = charToInteger2[c];
4702
4702
  if (integer === void 0) {
4703
4703
  throw new Error("Invalid character (" + String.fromCharCode(c) + ")");
4704
4704
  }
@@ -4731,7 +4731,7 @@ var require_sourcemap_codec_umd = __commonJS({
4731
4731
  else if (j === 1)
4732
4732
  line.push([segment[0]]);
4733
4733
  }
4734
- function encode4(decoded) {
4734
+ function encode3(decoded) {
4735
4735
  var sourceFileIndex = 0;
4736
4736
  var sourceCodeLine = 0;
4737
4737
  var sourceCodeColumn = 0;
@@ -4747,16 +4747,16 @@ var require_sourcemap_codec_umd = __commonJS({
4747
4747
  var lineMappings = [];
4748
4748
  for (var _i = 0, line_1 = line; _i < line_1.length; _i++) {
4749
4749
  var segment = line_1[_i];
4750
- var segmentMappings = encodeInteger4(segment[0] - generatedCodeColumn);
4750
+ var segmentMappings = encodeInteger3(segment[0] - generatedCodeColumn);
4751
4751
  generatedCodeColumn = segment[0];
4752
4752
  if (segment.length > 1) {
4753
- segmentMappings += encodeInteger4(segment[1] - sourceFileIndex) + encodeInteger4(segment[2] - sourceCodeLine) + encodeInteger4(segment[3] - sourceCodeColumn);
4753
+ segmentMappings += encodeInteger3(segment[1] - sourceFileIndex) + encodeInteger3(segment[2] - sourceCodeLine) + encodeInteger3(segment[3] - sourceCodeColumn);
4754
4754
  sourceFileIndex = segment[1];
4755
4755
  sourceCodeLine = segment[2];
4756
4756
  sourceCodeColumn = segment[3];
4757
4757
  }
4758
4758
  if (segment.length === 5) {
4759
- segmentMappings += encodeInteger4(segment[4] - nameIndex);
4759
+ segmentMappings += encodeInteger3(segment[4] - nameIndex);
4760
4760
  nameIndex = segment[4];
4761
4761
  }
4762
4762
  lineMappings.push(segmentMappings);
@@ -4765,7 +4765,7 @@ var require_sourcemap_codec_umd = __commonJS({
4765
4765
  }
4766
4766
  return mappings;
4767
4767
  }
4768
- function encodeInteger4(num) {
4768
+ function encodeInteger3(num) {
4769
4769
  var result2 = "";
4770
4770
  num = num < 0 ? -num << 1 | 1 : num << 1;
4771
4771
  do {
@@ -4774,12 +4774,12 @@ var require_sourcemap_codec_umd = __commonJS({
4774
4774
  if (num > 0) {
4775
4775
  clamped |= 32;
4776
4776
  }
4777
- result2 += chars4[clamped];
4777
+ result2 += chars3[clamped];
4778
4778
  } while (num > 0);
4779
4779
  return result2;
4780
4780
  }
4781
4781
  exports3.decode = decode3;
4782
- exports3.encode = encode4;
4782
+ exports3.encode = encode3;
4783
4783
  Object.defineProperty(exports3, "__esModule", { value: true });
4784
4784
  });
4785
4785
  }
@@ -4819,7 +4819,7 @@ var require_magic_string_cjs = __commonJS({
4819
4819
  Chunk4.prototype.appendRight = function appendRight3(content) {
4820
4820
  this.intro = this.intro + content;
4821
4821
  };
4822
- Chunk4.prototype.clone = function clone4() {
4822
+ Chunk4.prototype.clone = function clone5() {
4823
4823
  var chunk = new Chunk4(this.start, this.end, this.original);
4824
4824
  chunk.intro = this.intro;
4825
4825
  chunk.outro = this.outro;
@@ -5023,9 +5023,9 @@ var require_magic_string_cjs = __commonJS({
5023
5023
  this.rawSegments = this.raw[this.generatedCodeLine] = [];
5024
5024
  this.pending = null;
5025
5025
  };
5026
- Mappings4.prototype.addEdit = function addEdit2(sourceIndex, content, loc, nameIndex) {
5026
+ Mappings4.prototype.addEdit = function addEdit2(sourceIndex2, content, loc, nameIndex) {
5027
5027
  if (content.length) {
5028
- var segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
5028
+ var segment = [this.generatedCodeColumn, sourceIndex2, loc.line, loc.column];
5029
5029
  if (nameIndex >= 0) {
5030
5030
  segment.push(nameIndex);
5031
5031
  }
@@ -5036,12 +5036,12 @@ var require_magic_string_cjs = __commonJS({
5036
5036
  this.advance(content);
5037
5037
  this.pending = null;
5038
5038
  };
5039
- Mappings4.prototype.addUneditedChunk = function addUneditedChunk2(sourceIndex, chunk, original, loc, sourcemapLocations) {
5039
+ Mappings4.prototype.addUneditedChunk = function addUneditedChunk2(sourceIndex2, chunk, original, loc, sourcemapLocations) {
5040
5040
  var originalCharIndex = chunk.start;
5041
5041
  var first = true;
5042
5042
  while (originalCharIndex < chunk.end) {
5043
5043
  if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
5044
- this.rawSegments.push([this.generatedCodeColumn, sourceIndex, loc.line, loc.column]);
5044
+ this.rawSegments.push([this.generatedCodeColumn, sourceIndex2, loc.line, loc.column]);
5045
5045
  }
5046
5046
  if (original[originalCharIndex] === "\n") {
5047
5047
  loc.line += 1;
@@ -5136,7 +5136,7 @@ var require_magic_string_cjs = __commonJS({
5136
5136
  }
5137
5137
  return this;
5138
5138
  };
5139
- MagicString4.prototype.clone = function clone4() {
5139
+ MagicString4.prototype.clone = function clone5() {
5140
5140
  var cloned = new MagicString4(this.original, { filename: this.filename });
5141
5141
  var originalChunk = this.firstChunk;
5142
5142
  var clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone();
@@ -5164,7 +5164,7 @@ var require_magic_string_cjs = __commonJS({
5164
5164
  MagicString4.prototype.generateDecodedMap = function generateDecodedMap3(options) {
5165
5165
  var this$1$1 = this;
5166
5166
  options = options || {};
5167
- var sourceIndex = 0;
5167
+ var sourceIndex2 = 0;
5168
5168
  var names = Object.keys(this.storedNames);
5169
5169
  var mappings = new Mappings4(options.hires);
5170
5170
  var locate2 = getLocator3(this.original);
@@ -5178,13 +5178,13 @@ var require_magic_string_cjs = __commonJS({
5178
5178
  }
5179
5179
  if (chunk.edited) {
5180
5180
  mappings.addEdit(
5181
- sourceIndex,
5181
+ sourceIndex2,
5182
5182
  chunk.content,
5183
5183
  loc,
5184
5184
  chunk.storeName ? names.indexOf(chunk.original) : -1
5185
5185
  );
5186
5186
  } else {
5187
- mappings.addUneditedChunk(sourceIndex, chunk, this$1$1.original, loc, this$1$1.sourcemapLocations);
5187
+ mappings.addUneditedChunk(sourceIndex2, chunk, this$1$1.original, loc, this$1$1.sourcemapLocations);
5188
5188
  }
5189
5189
  if (chunk.outro.length) {
5190
5190
  mappings.advance(chunk.outro);
@@ -5271,7 +5271,7 @@ var require_magic_string_cjs = __commonJS({
5271
5271
  this.outro = this.outro.replace(pattern, replacer);
5272
5272
  return this;
5273
5273
  };
5274
- MagicString4.prototype.insert = function insert3() {
5274
+ MagicString4.prototype.insert = function insert4() {
5275
5275
  throw new Error(
5276
5276
  "magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"
5277
5277
  );
@@ -5426,7 +5426,7 @@ var require_magic_string_cjs = __commonJS({
5426
5426
  }
5427
5427
  return this;
5428
5428
  };
5429
- MagicString4.prototype.remove = function remove3(start, end) {
5429
+ MagicString4.prototype.remove = function remove4(start, end) {
5430
5430
  while (start < 0) {
5431
5431
  start += this.original.length;
5432
5432
  }
@@ -5553,10 +5553,10 @@ var require_magic_string_cjs = __commonJS({
5553
5553
  return result2;
5554
5554
  };
5555
5555
  MagicString4.prototype.snip = function snip2(start, end) {
5556
- var clone4 = this.clone();
5557
- clone4.remove(0, start);
5558
- clone4.remove(end, clone4.original.length);
5559
- return clone4;
5556
+ var clone5 = this.clone();
5557
+ clone5.remove(0, start);
5558
+ clone5.remove(end, clone5.original.length);
5559
+ return clone5;
5560
5560
  };
5561
5561
  MagicString4.prototype._split = function _split2(index2) {
5562
5562
  if (this.byStart[index2] || this.byEnd[index2]) {
@@ -5729,7 +5729,7 @@ var require_magic_string_cjs = __commonJS({
5729
5729
  });
5730
5730
  return this;
5731
5731
  };
5732
- Bundle3.prototype.clone = function clone4() {
5732
+ Bundle3.prototype.clone = function clone5() {
5733
5733
  var bundle = new Bundle3({
5734
5734
  intro: this.intro,
5735
5735
  separator: this.separator
@@ -5762,7 +5762,7 @@ var require_magic_string_cjs = __commonJS({
5762
5762
  if (i > 0) {
5763
5763
  mappings.advance(this$1$1.separator);
5764
5764
  }
5765
- var sourceIndex = source.filename ? this$1$1.uniqueSourceIndexByFilename[source.filename] : -1;
5765
+ var sourceIndex2 = source.filename ? this$1$1.uniqueSourceIndexByFilename[source.filename] : -1;
5766
5766
  var magicString = source.content;
5767
5767
  var locate2 = getLocator3(magicString.original);
5768
5768
  if (magicString.intro) {
@@ -5776,14 +5776,14 @@ var require_magic_string_cjs = __commonJS({
5776
5776
  if (source.filename) {
5777
5777
  if (chunk.edited) {
5778
5778
  mappings.addEdit(
5779
- sourceIndex,
5779
+ sourceIndex2,
5780
5780
  chunk.content,
5781
5781
  loc,
5782
5782
  chunk.storeName ? names.indexOf(chunk.original) : -1
5783
5783
  );
5784
5784
  } else {
5785
5785
  mappings.addUneditedChunk(
5786
- sourceIndex,
5786
+ sourceIndex2,
5787
5787
  chunk,
5788
5788
  magicString.original,
5789
5789
  loc,
@@ -6073,7 +6073,7 @@ var require_path_parse = __commonJS({
6073
6073
  var require_node_modules_paths = __commonJS({
6074
6074
  "node_modules/resolve/lib/node-modules-paths.js"(exports2, module2) {
6075
6075
  var path6 = require("path");
6076
- var parse4 = path6.parse || require_path_parse();
6076
+ var parse5 = path6.parse || require_path_parse();
6077
6077
  var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
6078
6078
  var prefix = "/";
6079
6079
  if (/^([A-Za-z]:)/.test(absoluteStart)) {
@@ -6082,10 +6082,10 @@ var require_node_modules_paths = __commonJS({
6082
6082
  prefix = "\\\\";
6083
6083
  }
6084
6084
  var paths = [absoluteStart];
6085
- var parsed = parse4(absoluteStart);
6085
+ var parsed = parse5(absoluteStart);
6086
6086
  while (parsed.dir !== paths[paths.length - 1]) {
6087
6087
  paths.push(parsed.dir);
6088
- parsed = parse4(parsed.dir);
6088
+ parsed = parse5(parsed.dir);
6089
6089
  }
6090
6090
  return paths.reduce(function(dirs, aPath) {
6091
6091
  return dirs.concat(modules.map(function(moduleDir) {
@@ -6512,7 +6512,7 @@ var require_async = __commonJS({
6512
6512
  }
6513
6513
  return dirs;
6514
6514
  };
6515
- module2.exports = function resolve8(x, options, callback) {
6515
+ module2.exports = function resolve9(x, options, callback) {
6516
6516
  var cb = callback;
6517
6517
  var opts = options;
6518
6518
  if (typeof options === "function") {
@@ -7145,7 +7145,7 @@ var require_dist = __commonJS({
7145
7145
  var estreeWalker = require_estree_walker();
7146
7146
  var MagicString4 = require_magic_string_cjs();
7147
7147
  var isReference = require_is_reference();
7148
- var resolve8 = require_resolve();
7148
+ var resolve9 = require_resolve();
7149
7149
  function _interopDefaultLegacy(e) {
7150
7150
  return e && typeof e === "object" && "default" in e ? e : { "default": e };
7151
7151
  }
@@ -7156,9 +7156,9 @@ var require_dist = __commonJS({
7156
7156
  var peerDependencies = {
7157
7157
  rollup: "^2.38.3"
7158
7158
  };
7159
- function tryParse(parse4, code, id) {
7159
+ function tryParse(parse5, code, id) {
7160
7160
  try {
7161
- return parse4(code, { allowReturnOutsideFunction: true });
7161
+ return parse5(code, { allowReturnOutsideFunction: true });
7162
7162
  } catch (err2) {
7163
7163
  err2.message += ` in ${id}`;
7164
7164
  throw err2;
@@ -7170,8 +7170,8 @@ var require_dist = __commonJS({
7170
7170
  const firstpass = ignoreGlobal ? firstpassNoGlobal : firstpassGlobal;
7171
7171
  return firstpass.test(code);
7172
7172
  }
7173
- function analyzeTopLevelStatements(parse4, code, id) {
7174
- const ast = tryParse(parse4, code, id);
7173
+ function analyzeTopLevelStatements(parse5, code, id) {
7174
+ const ast = tryParse(parse5, code, id);
7175
7175
  let isEsModule = false;
7176
7176
  let hasDefaultExport = false;
7177
7177
  let hasNamedExports = false;
@@ -7551,9 +7551,9 @@ commonjsRegisterOrShort(${JSON.stringify(
7551
7551
  function getCommonJSMetaPromise(commonJSMetaPromises, id) {
7552
7552
  let commonJSMetaPromise = commonJSMetaPromises.get(id);
7553
7553
  if (commonJSMetaPromise) return commonJSMetaPromise.promise;
7554
- const promise = new Promise((resolve9) => {
7554
+ const promise = new Promise((resolve10) => {
7555
7555
  commonJSMetaPromise = {
7556
- resolve: resolve9,
7556
+ resolve: resolve10,
7557
7557
  promise: null
7558
7558
  };
7559
7559
  commonJSMetaPromises.set(id, commonJSMetaPromise);
@@ -7939,7 +7939,7 @@ ${exportDeclarations.join("\n")}`;
7939
7939
  function hasDynamicModuleForPath(source, id, dynamicRequireModuleSet) {
7940
7940
  if (!/^(?:\.{0,2}[/\\]|[A-Za-z]:[/\\])/.test(source)) {
7941
7941
  try {
7942
- const resolvedPath = normalizePathSlashes(resolve8.sync(source, { basedir: path6.dirname(id) }));
7942
+ const resolvedPath = normalizePathSlashes(resolve9.sync(source, { basedir: path6.dirname(id) }));
7943
7943
  if (dynamicRequireModuleSet.has(resolvedPath)) {
7944
7944
  return true;
7945
7945
  }
@@ -8041,8 +8041,8 @@ ${exportDeclarations.join("\n")}`;
8041
8041
  }
8042
8042
  var exportsPattern = /^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;
8043
8043
  var functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;
8044
- function transformCommonjs(parse4, code, id, isEsModule, ignoreGlobal, ignoreRequire, ignoreDynamicRequires, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModuleSet, disableWrap, commonDir, astCache, defaultIsModuleExports) {
8045
- const ast = astCache || tryParse(parse4, code, id);
8044
+ function transformCommonjs(parse5, code, id, isEsModule, ignoreGlobal, ignoreRequire, ignoreDynamicRequires, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModuleSet, disableWrap, commonDir, astCache, defaultIsModuleExports) {
8045
+ const ast = astCache || tryParse(parse5, code, id);
8046
8046
  const magicString = new MagicString__default["default"](code);
8047
8047
  const uses = {
8048
8048
  module: false,
@@ -8726,7 +8726,7 @@ var require_is_module = __commonJS({
8726
8726
  });
8727
8727
 
8728
8728
  // node_modules/rollup/dist/es/shared/rollup.js
8729
- function decode(mappings) {
8729
+ function decode2(mappings) {
8730
8730
  var decoded = [];
8731
8731
  var line = [];
8732
8732
  var segment = [
@@ -10956,7 +10956,7 @@ function decodedSourcemap(map2) {
10956
10956
  }
10957
10957
  let mappings;
10958
10958
  if (typeof map2.mappings === "string") {
10959
- mappings = decode(map2.mappings);
10959
+ mappings = decode2(map2.mappings);
10960
10960
  } else {
10961
10961
  mappings = map2.mappings;
10962
10962
  }
@@ -12529,9 +12529,9 @@ var init_rollup = __esm({
12529
12529
  this.rawSegments = this.raw[this.generatedCodeLine] = [];
12530
12530
  this.pending = null;
12531
12531
  };
12532
- Mappings2.prototype.addEdit = function addEdit(sourceIndex, content, loc, nameIndex) {
12532
+ Mappings2.prototype.addEdit = function addEdit(sourceIndex2, content, loc, nameIndex) {
12533
12533
  if (content.length) {
12534
- var segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
12534
+ var segment = [this.generatedCodeColumn, sourceIndex2, loc.line, loc.column];
12535
12535
  if (nameIndex >= 0) {
12536
12536
  segment.push(nameIndex);
12537
12537
  }
@@ -12542,12 +12542,12 @@ var init_rollup = __esm({
12542
12542
  this.advance(content);
12543
12543
  this.pending = null;
12544
12544
  };
12545
- Mappings2.prototype.addUneditedChunk = function addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
12545
+ Mappings2.prototype.addUneditedChunk = function addUneditedChunk(sourceIndex2, chunk, original, loc, sourcemapLocations) {
12546
12546
  var originalCharIndex = chunk.start;
12547
12547
  var first = true;
12548
12548
  while (originalCharIndex < chunk.end) {
12549
12549
  if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
12550
- this.rawSegments.push([this.generatedCodeColumn, sourceIndex, loc.line, loc.column]);
12550
+ this.rawSegments.push([this.generatedCodeColumn, sourceIndex2, loc.line, loc.column]);
12551
12551
  }
12552
12552
  if (original[originalCharIndex] === "\n") {
12553
12553
  loc.line += 1;
@@ -12670,7 +12670,7 @@ var init_rollup = __esm({
12670
12670
  MagicString2.prototype.generateDecodedMap = function generateDecodedMap(options) {
12671
12671
  var this$1$1 = this;
12672
12672
  options = options || {};
12673
- var sourceIndex = 0;
12673
+ var sourceIndex2 = 0;
12674
12674
  var names = Object.keys(this.storedNames);
12675
12675
  var mappings = new Mappings2(options.hires);
12676
12676
  var locate2 = getLocator$1(this.original);
@@ -12684,13 +12684,13 @@ var init_rollup = __esm({
12684
12684
  }
12685
12685
  if (chunk.edited) {
12686
12686
  mappings.addEdit(
12687
- sourceIndex,
12687
+ sourceIndex2,
12688
12688
  chunk.content,
12689
12689
  loc,
12690
12690
  chunk.storeName ? names.indexOf(chunk.original) : -1
12691
12691
  );
12692
12692
  } else {
12693
- mappings.addUneditedChunk(sourceIndex, chunk, this$1$1.original, loc, this$1$1.sourcemapLocations);
12693
+ mappings.addUneditedChunk(sourceIndex2, chunk, this$1$1.original, loc, this$1$1.sourcemapLocations);
12694
12694
  }
12695
12695
  if (chunk.outro.length) {
12696
12696
  mappings.advance(chunk.outro);
@@ -13052,10 +13052,10 @@ var init_rollup = __esm({
13052
13052
  return result2;
13053
13053
  };
13054
13054
  MagicString2.prototype.snip = function snip(start, end) {
13055
- var clone4 = this.clone();
13056
- clone4.remove(0, start);
13057
- clone4.remove(end, clone4.original.length);
13058
- return clone4;
13055
+ var clone5 = this.clone();
13056
+ clone5.remove(0, start);
13057
+ clone5.remove(end, clone5.original.length);
13058
+ return clone5;
13059
13059
  };
13060
13060
  MagicString2.prototype._split = function _split(index2) {
13061
13061
  if (this.byStart[index2] || this.byEnd[index2]) {
@@ -13259,7 +13259,7 @@ var init_rollup = __esm({
13259
13259
  if (i > 0) {
13260
13260
  mappings.advance(this$1$1.separator);
13261
13261
  }
13262
- var sourceIndex = source.filename ? this$1$1.uniqueSourceIndexByFilename[source.filename] : -1;
13262
+ var sourceIndex2 = source.filename ? this$1$1.uniqueSourceIndexByFilename[source.filename] : -1;
13263
13263
  var magicString = source.content;
13264
13264
  var locate2 = getLocator$1(magicString.original);
13265
13265
  if (magicString.intro) {
@@ -13273,14 +13273,14 @@ var init_rollup = __esm({
13273
13273
  if (source.filename) {
13274
13274
  if (chunk.edited) {
13275
13275
  mappings.addEdit(
13276
- sourceIndex,
13276
+ sourceIndex2,
13277
13277
  chunk.content,
13278
13278
  loc,
13279
13279
  chunk.storeName ? names.indexOf(chunk.original) : -1
13280
13280
  );
13281
13281
  } else {
13282
13282
  mappings.addUneditedChunk(
13283
- sourceIndex,
13283
+ sourceIndex2,
13284
13284
  chunk,
13285
13285
  magicString.original,
13286
13286
  loc,
@@ -18669,14 +18669,14 @@ var init_rollup = __esm({
18669
18669
  }
18670
18670
  case "amd": {
18671
18671
  const _ = options.compact ? "" : " ";
18672
- const resolve8 = options.compact ? "c" : "resolve";
18672
+ const resolve9 = options.compact ? "c" : "resolve";
18673
18673
  const reject = options.compact ? "e" : "reject";
18674
18674
  const helper = getInteropHelper(resolution, exportMode, options.interop);
18675
- const resolveNamespace = helper ? `function${_}(m)${_}{${_}${resolve8}(/*#__PURE__*/${helper}(m));${_}}` : resolve8;
18675
+ const resolveNamespace = helper ? `function${_}(m)${_}{${_}${resolve9}(/*#__PURE__*/${helper}(m));${_}}` : resolve9;
18676
18676
  return {
18677
18677
  helper,
18678
18678
  mechanism: {
18679
- left: `new Promise(function${_}(${resolve8},${_}${reject})${_}{${_}require([`,
18679
+ left: `new Promise(function${_}(${resolve9},${_}${reject})${_}{${_}require([`,
18680
18680
  right: `],${_}${resolveNamespace},${_}${reject})${_}})`
18681
18681
  }
18682
18682
  };
@@ -20872,21 +20872,21 @@ var init_rollup = __esm({
20872
20872
  continue;
20873
20873
  const traced = source.traceSegment(segment[2], segment[3], segment.length === 5 ? this.names[segment[4]] : "");
20874
20874
  if (traced) {
20875
- let sourceIndex = sources.lastIndexOf(traced.source.filename);
20876
- if (sourceIndex === -1) {
20877
- sourceIndex = sources.length;
20875
+ let sourceIndex2 = sources.lastIndexOf(traced.source.filename);
20876
+ if (sourceIndex2 === -1) {
20877
+ sourceIndex2 = sources.length;
20878
20878
  sources.push(traced.source.filename);
20879
- sourcesContent[sourceIndex] = traced.source.content;
20880
- } else if (sourcesContent[sourceIndex] == null) {
20881
- sourcesContent[sourceIndex] = traced.source.content;
20882
- } else if (traced.source.content != null && sourcesContent[sourceIndex] !== traced.source.content) {
20879
+ sourcesContent[sourceIndex2] = traced.source.content;
20880
+ } else if (sourcesContent[sourceIndex2] == null) {
20881
+ sourcesContent[sourceIndex2] = traced.source.content;
20882
+ } else if (traced.source.content != null && sourcesContent[sourceIndex2] !== traced.source.content) {
20883
20883
  return error({
20884
20884
  message: `Multiple conflicting contents for sourcemap source ${traced.source.filename}`
20885
20885
  });
20886
20886
  }
20887
20887
  const tracedSegment = [
20888
20888
  segment[0],
20889
- sourceIndex,
20889
+ sourceIndex2,
20890
20890
  traced.line,
20891
20891
  traced.column
20892
20892
  ];
@@ -26793,8 +26793,8 @@ ${next}` : out;
26793
26793
  this.workerCount = 0;
26794
26794
  }
26795
26795
  run(task) {
26796
- return new Promise((resolve8, reject) => {
26797
- this.queue.push({ reject, resolve: resolve8, task });
26796
+ return new Promise((resolve9, reject) => {
26797
+ this.queue.push({ reject, resolve: resolve9, task });
26798
26798
  this.work();
26799
26799
  });
26800
26800
  }
@@ -26804,10 +26804,10 @@ ${next}` : out;
26804
26804
  this.workerCount++;
26805
26805
  let entry;
26806
26806
  while (entry = this.queue.shift()) {
26807
- const { reject, resolve: resolve8, task } = entry;
26807
+ const { reject, resolve: resolve9, task } = entry;
26808
26808
  try {
26809
26809
  const result2 = await task();
26810
- resolve8(result2);
26810
+ resolve9(result2);
26811
26811
  } catch (err2) {
26812
26812
  reject(err2);
26813
26813
  }
@@ -28549,18 +28549,18 @@ var ts = (() => {
28549
28549
  function createSortedArray() {
28550
28550
  return [];
28551
28551
  }
28552
- function insertSorted(array, insert3, compare, allowDuplicates) {
28552
+ function insertSorted(array, insert4, compare, allowDuplicates) {
28553
28553
  if (array.length === 0) {
28554
- array.push(insert3);
28554
+ array.push(insert4);
28555
28555
  return true;
28556
28556
  }
28557
- const insertIndex = binarySearch2(array, insert3, identity, compare);
28557
+ const insertIndex = binarySearch2(array, insert4, identity, compare);
28558
28558
  if (insertIndex < 0) {
28559
- array.splice(~insertIndex, 0, insert3);
28559
+ array.splice(~insertIndex, 0, insert4);
28560
28560
  return true;
28561
28561
  }
28562
28562
  if (allowDuplicates) {
28563
- array.splice(insertIndex, 0, insert3);
28563
+ array.splice(insertIndex, 0, insert4);
28564
28564
  return true;
28565
28565
  }
28566
28566
  return false;
@@ -28946,7 +28946,7 @@ var ts = (() => {
28946
28946
  }
28947
28947
  return result2;
28948
28948
  }
28949
- function clone4(object) {
28949
+ function clone5(object) {
28950
28950
  const result2 = {};
28951
28951
  for (const id in object) {
28952
28952
  if (hasOwnProperty2.call(object, id)) {
@@ -29168,7 +29168,7 @@ var ts = (() => {
29168
29168
  function tryCast(value, test) {
29169
29169
  return value !== void 0 && test(value) ? value : void 0;
29170
29170
  }
29171
- function cast(value, test) {
29171
+ function cast4(value, test) {
29172
29172
  if (value !== void 0 && test(value))
29173
29173
  return value;
29174
29174
  return Debug.fail(`Invalid cast. The supplied value ${value} did not pass the test '${Debug.getFunctionName(test)}'.`);
@@ -48778,27 +48778,27 @@ ${lanes.join("\n")}
48778
48778
  parenthesizeConditionOfConditionalExpression: identity,
48779
48779
  parenthesizeBranchOfConditionalExpression: identity,
48780
48780
  parenthesizeExpressionOfExportDefault: identity,
48781
- parenthesizeExpressionOfNew: (expression) => cast(expression, isLeftHandSideExpression),
48782
- parenthesizeLeftSideOfAccess: (expression) => cast(expression, isLeftHandSideExpression),
48783
- parenthesizeOperandOfPostfixUnary: (operand) => cast(operand, isLeftHandSideExpression),
48784
- parenthesizeOperandOfPrefixUnary: (operand) => cast(operand, isUnaryExpression),
48785
- parenthesizeExpressionsOfCommaDelimitedList: (nodes) => cast(nodes, isNodeArray),
48781
+ parenthesizeExpressionOfNew: (expression) => cast4(expression, isLeftHandSideExpression),
48782
+ parenthesizeLeftSideOfAccess: (expression) => cast4(expression, isLeftHandSideExpression),
48783
+ parenthesizeOperandOfPostfixUnary: (operand) => cast4(operand, isLeftHandSideExpression),
48784
+ parenthesizeOperandOfPrefixUnary: (operand) => cast4(operand, isUnaryExpression),
48785
+ parenthesizeExpressionsOfCommaDelimitedList: (nodes) => cast4(nodes, isNodeArray),
48786
48786
  parenthesizeExpressionForDisallowedComma: identity,
48787
48787
  parenthesizeExpressionOfExpressionStatement: identity,
48788
48788
  parenthesizeConciseBodyOfArrowFunction: identity,
48789
48789
  parenthesizeCheckTypeOfConditionalType: identity,
48790
48790
  parenthesizeExtendsTypeOfConditionalType: identity,
48791
- parenthesizeConstituentTypesOfUnionType: (nodes) => cast(nodes, isNodeArray),
48791
+ parenthesizeConstituentTypesOfUnionType: (nodes) => cast4(nodes, isNodeArray),
48792
48792
  parenthesizeConstituentTypeOfUnionType: identity,
48793
- parenthesizeConstituentTypesOfIntersectionType: (nodes) => cast(nodes, isNodeArray),
48793
+ parenthesizeConstituentTypesOfIntersectionType: (nodes) => cast4(nodes, isNodeArray),
48794
48794
  parenthesizeConstituentTypeOfIntersectionType: identity,
48795
48795
  parenthesizeOperandOfTypeOperator: identity,
48796
48796
  parenthesizeOperandOfReadonlyTypeOperator: identity,
48797
48797
  parenthesizeNonArrayTypeOfPostfixType: identity,
48798
- parenthesizeElementTypesOfTupleType: (nodes) => cast(nodes, isNodeArray),
48798
+ parenthesizeElementTypesOfTupleType: (nodes) => cast4(nodes, isNodeArray),
48799
48799
  parenthesizeElementTypeOfTupleType: identity,
48800
48800
  parenthesizeTypeOfOptionalType: identity,
48801
- parenthesizeTypeArguments: (nodes) => nodes && cast(nodes, isNodeArray),
48801
+ parenthesizeTypeArguments: (nodes) => nodes && cast4(nodes, isNodeArray),
48802
48802
  parenthesizeLeadingTypeArgument: identity
48803
48803
  };
48804
48804
  }
@@ -48883,7 +48883,7 @@ ${lanes.join("\n")}
48883
48883
  element
48884
48884
  ) : expression;
48885
48885
  }
48886
- return cast(element, isExpression);
48886
+ return cast4(element, isExpression);
48887
48887
  }
48888
48888
  function convertToObjectAssignmentElement(element) {
48889
48889
  if (isBindingElement(element)) {
@@ -48898,7 +48898,7 @@ ${lanes.join("\n")}
48898
48898
  Debug.assertNode(element.name, isIdentifier);
48899
48899
  return setOriginalNode(setTextRange(factory2.createShorthandPropertyAssignment(element.name, element.initializer), element), element);
48900
48900
  }
48901
- return cast(element, isObjectLiteralElementLike);
48901
+ return cast4(element, isObjectLiteralElementLike);
48902
48902
  }
48903
48903
  function convertToAssignmentPattern(node) {
48904
48904
  switch (node.kind) {
@@ -48920,7 +48920,7 @@ ${lanes.join("\n")}
48920
48920
  node
48921
48921
  );
48922
48922
  }
48923
- return cast(node, isObjectLiteralExpression);
48923
+ return cast4(node, isObjectLiteralExpression);
48924
48924
  }
48925
48925
  function convertToArrayAssignmentPattern(node) {
48926
48926
  if (isArrayBindingPattern(node)) {
@@ -48932,13 +48932,13 @@ ${lanes.join("\n")}
48932
48932
  node
48933
48933
  );
48934
48934
  }
48935
- return cast(node, isArrayLiteralExpression);
48935
+ return cast4(node, isArrayLiteralExpression);
48936
48936
  }
48937
48937
  function convertToAssignmentElementTarget(node) {
48938
48938
  if (isBindingPattern(node)) {
48939
48939
  return convertToAssignmentPattern(node);
48940
48940
  }
48941
- return cast(node, isExpression);
48941
+ return cast4(node, isExpression);
48942
48942
  }
48943
48943
  }
48944
48944
  var nullNodeConverters;
@@ -51101,7 +51101,7 @@ ${lanes.join("\n")}
51101
51101
  }
51102
51102
  function updatePropertyAccessExpression(node, expression, name) {
51103
51103
  if (isPropertyAccessChain(node)) {
51104
- return updatePropertyAccessChain(node, expression, node.questionDotToken, cast(name, isIdentifier));
51104
+ return updatePropertyAccessChain(node, expression, node.questionDotToken, cast4(name, isIdentifier));
51105
51105
  }
51106
51106
  return node.expression !== expression || node.name !== name ? update(createPropertyAccessExpression(expression, name), node) : node;
51107
51107
  }
@@ -67581,7 +67581,7 @@ ${lanes.join("\n")}
67581
67581
  return { buildOptions, watchOptions, projects, errors };
67582
67582
  }
67583
67583
  function getDiagnosticText(message, ...args) {
67584
- return cast(createCompilerDiagnostic(message, ...args).messageText, isString3);
67584
+ return cast4(createCompilerDiagnostic(message, ...args).messageText, isString3);
67585
67585
  }
67586
67586
  function getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend, extraFileExtensions) {
67587
67587
  const configFileText = tryReadFile(configFileName, (fileName) => host.readFile(fileName));
@@ -76012,7 +76012,7 @@ ${lanes.join("\n")}
76012
76012
  );
76013
76013
  addLateBoundAssignmentDeclarationToSymbol(node, sym);
76014
76014
  } else {
76015
- bindStaticPropertyAssignment(cast(node.left, isBindableStaticNameExpression));
76015
+ bindStaticPropertyAssignment(cast4(node.left, isBindableStaticNameExpression));
76016
76016
  }
76017
76017
  }
76018
76018
  function bindStaticPropertyAssignment(node) {
@@ -83874,7 +83874,7 @@ ${lanes.join("\n")}
83874
83874
  modifiers,
83875
83875
  /*asteriskToken*/
83876
83876
  void 0,
83877
- (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(""),
83877
+ (options == null ? void 0 : options.name) ? cast4(options.name, isIdentifier) : factory.createIdentifier(""),
83878
83878
  typeParameters,
83879
83879
  parameters,
83880
83880
  returnTypeNode,
@@ -83884,7 +83884,7 @@ ${lanes.join("\n")}
83884
83884
  modifiers,
83885
83885
  /*asteriskToken*/
83886
83886
  void 0,
83887
- (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(""),
83887
+ (options == null ? void 0 : options.name) ? cast4(options.name, isIdentifier) : factory.createIdentifier(""),
83888
83888
  typeParameters,
83889
83889
  parameters,
83890
83890
  returnTypeNode,
@@ -85082,7 +85082,7 @@ ${lanes.join("\n")}
85082
85082
  void 0,
85083
85083
  /*isTypeOnly*/
85084
85084
  false,
85085
- factory.createNamedExports(flatMap(exports2, (e) => cast(e.exportClause, isNamedExports).elements)),
85085
+ factory.createNamedExports(flatMap(exports2, (e) => cast4(e.exportClause, isNamedExports).elements)),
85086
85086
  /*moduleSpecifier*/
85087
85087
  void 0
85088
85088
  )
@@ -85101,7 +85101,7 @@ ${lanes.join("\n")}
85101
85101
  void 0,
85102
85102
  /*isTypeOnly*/
85103
85103
  false,
85104
- factory.createNamedExports(flatMap(group2, (e) => cast(e.exportClause, isNamedExports).elements)),
85104
+ factory.createNamedExports(flatMap(group2, (e) => cast4(e.exportClause, isNamedExports).elements)),
85105
85105
  group2[0].moduleSpecifier
85106
85106
  )
85107
85107
  ];
@@ -89081,9 +89081,9 @@ ${lanes.join("\n")}
89081
89081
  if (baseTypes.length) {
89082
89082
  if (source.symbol && members === getMembersOfSymbol(source.symbol)) {
89083
89083
  const symbolTable = createSymbolTable(source.declaredProperties);
89084
- const sourceIndex = getIndexSymbol(source.symbol);
89085
- if (sourceIndex) {
89086
- symbolTable.set("__index", sourceIndex);
89084
+ const sourceIndex2 = getIndexSymbol(source.symbol);
89085
+ if (sourceIndex2) {
89086
+ symbolTable.set("__index", sourceIndex2);
89087
89087
  }
89088
89088
  members = symbolTable;
89089
89089
  }
@@ -92775,8 +92775,8 @@ ${lanes.join("\n")}
92775
92775
  i--;
92776
92776
  const t = types3[i];
92777
92777
  const flags = t.flags;
92778
- const remove3 = flags & (128 | 134217728 | 268435456) && includes & 4 || flags & 256 && includes & 8 || flags & 2048 && includes & 64 || flags & 8192 && includes & 4096 || reduceVoidUndefined && flags & 32768 && includes & 16384 || isFreshLiteralType(t) && containsType(types3, t.regularType);
92779
- if (remove3) {
92778
+ const remove4 = flags & (128 | 134217728 | 268435456) && includes & 4 || flags & 256 && includes & 8 || flags & 2048 && includes & 64 || flags & 8192 && includes & 4096 || reduceVoidUndefined && flags & 32768 && includes & 16384 || isFreshLiteralType(t) && containsType(types3, t.regularType);
92779
+ if (remove4) {
92780
92780
  orderedRemoveItemAt(types3, i);
92781
92781
  }
92782
92782
  }
@@ -93042,8 +93042,8 @@ ${lanes.join("\n")}
93042
93042
  while (i > 0) {
93043
93043
  i--;
93044
93044
  const t = types3[i];
93045
- const remove3 = t.flags & 4 && includes & (128 | 134217728 | 268435456) || t.flags & 8 && includes & 256 || t.flags & 64 && includes & 2048 || t.flags & 4096 && includes & 8192 || t.flags & 16384 && includes & 32768 || isEmptyAnonymousObjectType(t) && includes & 470302716;
93046
- if (remove3) {
93045
+ const remove4 = t.flags & 4 && includes & (128 | 134217728 | 268435456) || t.flags & 8 && includes & 256 || t.flags & 64 && includes & 2048 || t.flags & 4096 && includes & 8192 || t.flags & 16384 && includes & 32768 || isEmptyAnonymousObjectType(t) && includes & 470302716;
93046
+ if (remove4) {
93047
93047
  orderedRemoveItemAt(types3, i);
93048
93048
  }
93049
93049
  }
@@ -100846,8 +100846,8 @@ ${lanes.join("\n")}
100846
100846
  const targetSignatures = getSignaturesOfType(target, kind);
100847
100847
  const targetLen = targetSignatures.length;
100848
100848
  for (let i = 0; i < targetLen; i++) {
100849
- const sourceIndex = Math.max(sourceLen - targetLen + i, 0);
100850
- inferFromSignature(getBaseSignature(sourceSignatures[sourceIndex]), getErasedSignature(targetSignatures[i]));
100849
+ const sourceIndex2 = Math.max(sourceLen - targetLen + i, 0);
100850
+ inferFromSignature(getBaseSignature(sourceSignatures[sourceIndex2]), getErasedSignature(targetSignatures[i]));
100851
100851
  }
100852
100852
  }
100853
100853
  }
@@ -104555,7 +104555,7 @@ ${lanes.join("\n")}
104555
104555
  if (!decl2) {
104556
104556
  return void 0;
104557
104557
  }
104558
- const lhs = cast(binaryExpression.left, isAccessExpression);
104558
+ const lhs = cast4(binaryExpression.left, isAccessExpression);
104559
104559
  const overallAnnotation = getEffectiveTypeAnnotationNode(decl2);
104560
104560
  if (overallAnnotation) {
104561
104561
  return getTypeFromTypeNode(overallAnnotation);
@@ -104638,7 +104638,7 @@ ${lanes.join("\n")}
104638
104638
  }
104639
104639
  }
104640
104640
  }
104641
- const thisAccess = cast(binaryExpression.left, isAccessExpression);
104641
+ const thisAccess = cast4(binaryExpression.left, isAccessExpression);
104642
104642
  if (!isObjectLiteralMethod(getThisContainer(
104643
104643
  thisAccess.expression,
104644
104644
  /*includeArrowFunctions*/
@@ -115177,7 +115177,7 @@ ${lanes.join("\n")}
115177
115177
  return idText(name);
115178
115178
  case 207:
115179
115179
  case 206:
115180
- return bindingNameText(cast(first(name.elements), isBindingElement).name);
115180
+ return bindingNameText(cast4(first(name.elements), isBindingElement).name);
115181
115181
  default:
115182
115182
  return Debug.assertNever(name);
115183
115183
  }
@@ -119772,18 +119772,18 @@ ${lanes.join("\n")}
119772
119772
  return checkDestructuringAssignment(expr, iteratedType || errorType);
119773
119773
  }
119774
119774
  if (expr.parent.kind === 303) {
119775
- const node2 = cast(expr.parent.parent, isObjectLiteralExpression);
119775
+ const node2 = cast4(expr.parent.parent, isObjectLiteralExpression);
119776
119776
  const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType;
119777
119777
  const propertyIndex = indexOfNode(node2.properties, expr.parent);
119778
119778
  return checkObjectLiteralDestructuringPropertyAssignment(node2, typeOfParentObjectLiteral, propertyIndex);
119779
119779
  }
119780
- const node = cast(expr.parent, isArrayLiteralExpression);
119780
+ const node = cast4(expr.parent, isArrayLiteralExpression);
119781
119781
  const typeOfArrayLiteral = getTypeOfAssignmentPattern(node) || errorType;
119782
119782
  const elementType = checkIteratedTypeOrElementType(65, typeOfArrayLiteral, undefinedType, expr.parent) || errorType;
119783
119783
  return checkArrayLiteralDestructuringElementAssignment(node, typeOfArrayLiteral, node.elements.indexOf(expr), elementType);
119784
119784
  }
119785
119785
  function getPropertySymbolOfDestructuringAssignment(location) {
119786
- const typeOfObjectLiteral = getTypeOfAssignmentPattern(cast(location.parent.parent, isAssignmentPattern));
119786
+ const typeOfObjectLiteral = getTypeOfAssignmentPattern(cast4(location.parent.parent, isAssignmentPattern));
119787
119787
  return typeOfObjectLiteral && getPropertyOfType(typeOfObjectLiteral, location.escapedText);
119788
119788
  }
119789
119789
  function getRegularTypeOfExpression(expr) {
@@ -124646,25 +124646,25 @@ ${lanes.join("\n")}
124646
124646
  /*isAbsolutePathAnUrl*/
124647
124647
  true
124648
124648
  );
124649
- let sourceIndex = sourceToSourceIndexMap.get(source);
124650
- if (sourceIndex === void 0) {
124651
- sourceIndex = sources.length;
124649
+ let sourceIndex2 = sourceToSourceIndexMap.get(source);
124650
+ if (sourceIndex2 === void 0) {
124651
+ sourceIndex2 = sources.length;
124652
124652
  sources.push(source);
124653
124653
  rawSources.push(fileName);
124654
- sourceToSourceIndexMap.set(source, sourceIndex);
124654
+ sourceToSourceIndexMap.set(source, sourceIndex2);
124655
124655
  }
124656
124656
  exit();
124657
- return sourceIndex;
124657
+ return sourceIndex2;
124658
124658
  }
124659
- function setSourceContent2(sourceIndex, content) {
124659
+ function setSourceContent2(sourceIndex2, content) {
124660
124660
  enter();
124661
124661
  if (content !== null) {
124662
124662
  if (!sourcesContent)
124663
124663
  sourcesContent = [];
124664
- while (sourcesContent.length < sourceIndex) {
124664
+ while (sourcesContent.length < sourceIndex2) {
124665
124665
  sourcesContent.push(null);
124666
124666
  }
124667
- sourcesContent[sourceIndex] = content;
124667
+ sourcesContent[sourceIndex2] = content;
124668
124668
  }
124669
124669
  exit();
124670
124670
  }
@@ -124684,17 +124684,17 @@ ${lanes.join("\n")}
124684
124684
  function isNewGeneratedPosition(generatedLine, generatedCharacter) {
124685
124685
  return !hasPending || pendingGeneratedLine !== generatedLine || pendingGeneratedCharacter !== generatedCharacter;
124686
124686
  }
124687
- function isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter) {
124688
- return sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0 && pendingSourceIndex === sourceIndex && (pendingSourceLine > sourceLine || pendingSourceLine === sourceLine && pendingSourceCharacter > sourceCharacter);
124687
+ function isBacktrackingSourcePosition(sourceIndex2, sourceLine, sourceCharacter) {
124688
+ return sourceIndex2 !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0 && pendingSourceIndex === sourceIndex2 && (pendingSourceLine > sourceLine || pendingSourceLine === sourceLine && pendingSourceCharacter > sourceCharacter);
124689
124689
  }
124690
- function addMapping(generatedLine, generatedCharacter, sourceIndex, sourceLine, sourceCharacter, nameIndex) {
124690
+ function addMapping(generatedLine, generatedCharacter, sourceIndex2, sourceLine, sourceCharacter, nameIndex) {
124691
124691
  Debug.assert(generatedLine >= pendingGeneratedLine, "generatedLine cannot backtrack");
124692
124692
  Debug.assert(generatedCharacter >= 0, "generatedCharacter cannot be negative");
124693
- Debug.assert(sourceIndex === void 0 || sourceIndex >= 0, "sourceIndex cannot be negative");
124693
+ Debug.assert(sourceIndex2 === void 0 || sourceIndex2 >= 0, "sourceIndex cannot be negative");
124694
124694
  Debug.assert(sourceLine === void 0 || sourceLine >= 0, "sourceLine cannot be negative");
124695
124695
  Debug.assert(sourceCharacter === void 0 || sourceCharacter >= 0, "sourceCharacter cannot be negative");
124696
124696
  enter();
124697
- if (isNewGeneratedPosition(generatedLine, generatedCharacter) || isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter)) {
124697
+ if (isNewGeneratedPosition(generatedLine, generatedCharacter) || isBacktrackingSourcePosition(sourceIndex2, sourceLine, sourceCharacter)) {
124698
124698
  commitPendingMapping();
124699
124699
  pendingGeneratedLine = generatedLine;
124700
124700
  pendingGeneratedCharacter = generatedCharacter;
@@ -124702,8 +124702,8 @@ ${lanes.join("\n")}
124702
124702
  hasPendingName = false;
124703
124703
  hasPending = true;
124704
124704
  }
124705
- if (sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0) {
124706
- pendingSourceIndex = sourceIndex;
124705
+ if (sourceIndex2 !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0) {
124706
+ pendingSourceIndex = sourceIndex2;
124707
124707
  pendingSourceLine = sourceLine;
124708
124708
  pendingSourceCharacter = sourceCharacter;
124709
124709
  hasPendingSource = true;
@@ -124884,7 +124884,7 @@ ${lanes.join("\n")}
124884
124884
  let pos = 0;
124885
124885
  let generatedLine = 0;
124886
124886
  let generatedCharacter = 0;
124887
- let sourceIndex = 0;
124887
+ let sourceIndex2 = 0;
124888
124888
  let sourceLine = 0;
124889
124889
  let sourceCharacter = 0;
124890
124890
  let nameIndex = 0;
@@ -124926,10 +124926,10 @@ ${lanes.join("\n")}
124926
124926
  return setErrorAndStopIterating("Invalid generatedCharacter found");
124927
124927
  if (!isSourceMappingSegmentEnd()) {
124928
124928
  hasSource = true;
124929
- sourceIndex += base64VLQFormatDecode();
124929
+ sourceIndex2 += base64VLQFormatDecode();
124930
124930
  if (hasReportedError())
124931
124931
  return stopIterating();
124932
- if (sourceIndex < 0)
124932
+ if (sourceIndex2 < 0)
124933
124933
  return setErrorAndStopIterating("Invalid sourceIndex found");
124934
124934
  if (isSourceMappingSegmentEnd())
124935
124935
  return setErrorAndStopIterating("Unsupported Format: No entries after sourceIndex");
@@ -124968,7 +124968,7 @@ ${lanes.join("\n")}
124968
124968
  return {
124969
124969
  generatedLine,
124970
124970
  generatedCharacter,
124971
- sourceIndex: hasSource ? sourceIndex : void 0,
124971
+ sourceIndex: hasSource ? sourceIndex2 : void 0,
124972
124972
  sourceLine: hasSource ? sourceLine : void 0,
124973
124973
  sourceCharacter: hasSource ? sourceCharacter : void 0,
124974
124974
  nameIndex: hasName ? nameIndex : void 0
@@ -125062,7 +125062,7 @@ ${lanes.join("\n")}
125062
125062
  getGeneratedPosition
125063
125063
  };
125064
125064
  function processMapping(mapping) {
125065
- const generatedPosition = generatedFile !== void 0 ? getPositionOfLineAndCharacter(
125065
+ const generatedPosition2 = generatedFile !== void 0 ? getPositionOfLineAndCharacter(
125066
125066
  generatedFile,
125067
125067
  mapping.generatedLine,
125068
125068
  mapping.generatedCharacter,
@@ -125083,7 +125083,7 @@ ${lanes.join("\n")}
125083
125083
  ) : -1;
125084
125084
  }
125085
125085
  return {
125086
- generatedPosition,
125086
+ generatedPosition: generatedPosition2,
125087
125087
  source,
125088
125088
  sourceIndex: mapping.sourceIndex,
125089
125089
  sourcePosition,
@@ -125105,7 +125105,7 @@ ${lanes.join("\n")}
125105
125105
  }
125106
125106
  return decodedMappings2;
125107
125107
  }
125108
- function getSourceMappings(sourceIndex) {
125108
+ function getSourceMappings(sourceIndex2) {
125109
125109
  if (sourceMappings === void 0) {
125110
125110
  const lists = [];
125111
125111
  for (const mapping of getDecodedMappings()) {
@@ -125118,7 +125118,7 @@ ${lanes.join("\n")}
125118
125118
  }
125119
125119
  sourceMappings = lists.map((list) => sortAndDeduplicate(list, compareSourcePositions, sameMappedPosition));
125120
125120
  }
125121
- return sourceMappings[sourceIndex];
125121
+ return sourceMappings[sourceIndex2];
125122
125122
  }
125123
125123
  function getGeneratedMappings() {
125124
125124
  if (generatedMappings === void 0) {
@@ -125131,10 +125131,10 @@ ${lanes.join("\n")}
125131
125131
  return generatedMappings;
125132
125132
  }
125133
125133
  function getGeneratedPosition(loc) {
125134
- const sourceIndex = sourceToSourceIndexMap.get(host.getCanonicalFileName(loc.fileName));
125135
- if (sourceIndex === void 0)
125134
+ const sourceIndex2 = sourceToSourceIndexMap.get(host.getCanonicalFileName(loc.fileName));
125135
+ if (sourceIndex2 === void 0)
125136
125136
  return loc;
125137
- const sourceMappings2 = getSourceMappings(sourceIndex);
125137
+ const sourceMappings2 = getSourceMappings(sourceIndex2);
125138
125138
  if (!some(sourceMappings2))
125139
125139
  return loc;
125140
125140
  let targetIndex = binarySearchKey(sourceMappings2, loc.pos, getSourcePositionOfMapping, compareValues);
@@ -125142,7 +125142,7 @@ ${lanes.join("\n")}
125142
125142
  targetIndex = ~targetIndex;
125143
125143
  }
125144
125144
  const mapping = sourceMappings2[targetIndex];
125145
- if (mapping === void 0 || mapping.sourceIndex !== sourceIndex) {
125145
+ if (mapping === void 0 || mapping.sourceIndex !== sourceIndex2) {
125146
125146
  return loc;
125147
125147
  }
125148
125148
  return { fileName: generatedAbsoluteFilePath, pos: mapping.generatedPosition };
@@ -125350,7 +125350,7 @@ ${lanes.join("\n")}
125350
125350
  }
125351
125351
  return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, externalHelpersImportDeclaration };
125352
125352
  function addExportedNamesForExportDeclaration(node) {
125353
- for (const specifier of cast(node.exportClause, isNamedExports).elements) {
125353
+ for (const specifier of cast4(node.exportClause, isNamedExports).elements) {
125354
125354
  if (!uniqueExports.get(idText(specifier.name))) {
125355
125355
  const name = specifier.propertyName || specifier.name;
125356
125356
  if (!node.moduleSpecifier) {
@@ -126315,7 +126315,7 @@ ${lanes.join("\n")}
126315
126315
  }
126316
126316
  const { factory: factory2 } = context;
126317
126317
  const innerExpression = skipOuterExpressions(expression);
126318
- const updatedExpression = isClassExpression(innerExpression) ? cast(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName);
126318
+ const updatedExpression = isClassExpression(innerExpression) ? cast4(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName);
126319
126319
  return factory2.restoreOuterExpressions(expression, updatedExpression);
126320
126320
  }
126321
126321
  function transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) {
@@ -136132,7 +136132,7 @@ ${lanes.join("\n")}
136132
136132
  Debug.assertNotNode(chain, isNonNullChain);
136133
136133
  const links = [chain];
136134
136134
  while (!chain.questionDotToken && !isTaggedTemplateExpression(chain)) {
136135
- chain = cast(skipPartiallyEmittedExpressions(chain.expression), isOptionalChain);
136135
+ chain = cast4(skipPartiallyEmittedExpressions(chain.expression), isOptionalChain);
136136
136136
  Debug.assertNotNode(chain, isNonNullChain);
136137
136137
  links.unshift(chain);
136138
136138
  }
@@ -141329,7 +141329,7 @@ ${lanes.join("\n")}
141329
141329
  );
141330
141330
  }
141331
141331
  function visitTypeScriptClassWrapper(node) {
141332
- const body = cast(cast(skipOuterExpressions(node.expression), isArrowFunction).body, isBlock);
141332
+ const body = cast4(cast4(skipOuterExpressions(node.expression), isArrowFunction).body, isBlock);
141333
141333
  const isVariableStatementWithInitializer = (stmt) => isVariableStatement(stmt) && !!first(stmt.declarationList.declarations).initializer;
141334
141334
  const savedConvertedLoopState = convertedLoopState;
141335
141335
  convertedLoopState = void 0;
@@ -141337,15 +141337,15 @@ ${lanes.join("\n")}
141337
141337
  convertedLoopState = savedConvertedLoopState;
141338
141338
  const classStatements = filter2(bodyStatements, isVariableStatementWithInitializer);
141339
141339
  const remainingStatements = filter2(bodyStatements, (stmt) => !isVariableStatementWithInitializer(stmt));
141340
- const varStatement = cast(first(classStatements), isVariableStatement);
141340
+ const varStatement = cast4(first(classStatements), isVariableStatement);
141341
141341
  const variable = varStatement.declarationList.declarations[0];
141342
141342
  const initializer = skipOuterExpressions(variable.initializer);
141343
141343
  let aliasAssignment = tryCast(initializer, isAssignmentExpression);
141344
141344
  if (!aliasAssignment && isBinaryExpression(initializer) && initializer.operatorToken.kind === 28) {
141345
141345
  aliasAssignment = tryCast(initializer.left, isAssignmentExpression);
141346
141346
  }
141347
- const call = cast(aliasAssignment ? skipOuterExpressions(aliasAssignment.right) : initializer, isCallExpression);
141348
- const func = cast(skipOuterExpressions(call.expression), isFunctionExpression);
141347
+ const call = cast4(aliasAssignment ? skipOuterExpressions(aliasAssignment.right) : initializer, isCallExpression);
141348
+ const func = cast4(skipOuterExpressions(call.expression), isFunctionExpression);
141349
141349
  const funcStatements = func.body.statements;
141350
141350
  let classBodyStart = 0;
141351
141351
  let classBodyEnd = -1;
@@ -141362,7 +141362,7 @@ ${lanes.join("\n")}
141362
141362
  factory2.createExpressionStatement(
141363
141363
  factory2.createAssignment(
141364
141364
  aliasAssignment.left,
141365
- cast(variable.name, isIdentifier)
141365
+ cast4(variable.name, isIdentifier)
141366
141366
  )
141367
141367
  )
141368
141368
  );
@@ -144866,7 +144866,7 @@ ${lanes.join("\n")}
144866
144866
  }
144867
144867
  }
144868
144868
  function createImportCallExpressionAMD(arg, containsLexicalThis) {
144869
- const resolve8 = factory2.createUniqueName("resolve");
144869
+ const resolve9 = factory2.createUniqueName("resolve");
144870
144870
  const reject = factory2.createUniqueName("reject");
144871
144871
  const parameters = [
144872
144872
  factory2.createParameterDeclaration(
@@ -144875,7 +144875,7 @@ ${lanes.join("\n")}
144875
144875
  /*dotDotDotToken*/
144876
144876
  void 0,
144877
144877
  /*name*/
144878
- resolve8
144878
+ resolve9
144879
144879
  ),
144880
144880
  factory2.createParameterDeclaration(
144881
144881
  /*modifiers*/
@@ -144892,7 +144892,7 @@ ${lanes.join("\n")}
144892
144892
  factory2.createIdentifier("require"),
144893
144893
  /*typeArguments*/
144894
144894
  void 0,
144895
- [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve8, reject]
144895
+ [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve9, reject]
144896
144896
  )
144897
144897
  )
144898
144898
  ]);
@@ -151566,19 +151566,19 @@ ${lanes.join("\n")}
151566
151566
  }
151567
151567
  }
151568
151568
  if (hint === 0)
151569
- return emitSourceFile(cast(node, isSourceFile));
151569
+ return emitSourceFile(cast4(node, isSourceFile));
151570
151570
  if (hint === 2)
151571
- return emitIdentifier(cast(node, isIdentifier));
151571
+ return emitIdentifier(cast4(node, isIdentifier));
151572
151572
  if (hint === 6)
151573
151573
  return emitLiteral(
151574
- cast(node, isStringLiteral),
151574
+ cast4(node, isStringLiteral),
151575
151575
  /*jsxAttributeEscape*/
151576
151576
  true
151577
151577
  );
151578
151578
  if (hint === 3)
151579
- return emitMappedTypeParameter(cast(node, isTypeParameterDeclaration));
151579
+ return emitMappedTypeParameter(cast4(node, isTypeParameterDeclaration));
151580
151580
  if (hint === 7)
151581
- return emitImportTypeNodeAttributes(cast(node, isImportAttributes));
151581
+ return emitImportTypeNodeAttributes(cast4(node, isImportAttributes));
151582
151582
  if (hint === 5) {
151583
151583
  Debug.assertNode(node, isEmptyStatement);
151584
151584
  return emitEmptyStatement(
@@ -152133,7 +152133,7 @@ ${lanes.join("\n")}
152133
152133
  const pos = getTextPosWithWriteLine();
152134
152134
  writeUnparsedNode(unparsed);
152135
152135
  if (bundleFileInfo) {
152136
- const section = clone4(unparsed.section);
152136
+ const section = clone5(unparsed.section);
152137
152137
  section.pos = pos;
152138
152138
  section.end = writer.getTextPos();
152139
152139
  bundleFileInfo.sections.push(section);
@@ -152895,7 +152895,7 @@ ${lanes.join("\n")}
152895
152895
  let pipelinePhase = getPipelinePhase(0, 1, next);
152896
152896
  if (pipelinePhase === pipelineEmitWithSubstitution) {
152897
152897
  Debug.assertIsDefined(lastSubstitution);
152898
- next = parenthesizerRule(cast(lastSubstitution, isExpression));
152898
+ next = parenthesizerRule(cast4(lastSubstitution, isExpression));
152899
152899
  pipelinePhase = getNextPipelinePhase(1, 1, next);
152900
152900
  lastSubstitution = void 0;
152901
152901
  }
@@ -155993,9 +155993,9 @@ ${lanes.join("\n")}
155993
155993
  mostRecentlyAddedSourceMapSource = source;
155994
155994
  mostRecentlyAddedSourceMapSourceIndex = sourceMapSourceIndex;
155995
155995
  }
155996
- function resetSourceMapSource(source, sourceIndex) {
155996
+ function resetSourceMapSource(source, sourceIndex2) {
155997
155997
  sourceMapSource = source;
155998
- sourceMapSourceIndex = sourceIndex;
155998
+ sourceMapSourceIndex = sourceIndex2;
155999
155999
  }
156000
156000
  function isJsonSourceMapSource(sourceFile) {
156001
156001
  return fileExtensionIs(
@@ -169389,7 +169389,7 @@ ${lanes.join("\n")}
169389
169389
  return false;
169390
169390
  }
169391
169391
  function cloneCompilerOptions(options) {
169392
- const result2 = clone4(options);
169392
+ const result2 = clone5(options);
169393
169393
  setConfigFileInOptions(result2, options && options.configFile);
169394
169394
  return result2;
169395
169395
  }
@@ -169671,7 +169671,7 @@ ${lanes.join("\n")}
169671
169671
  }
169672
169672
  function getTypeKeywordOfTypeOnlyImport(importClause, sourceFile) {
169673
169673
  Debug.assert(importClause.isTypeOnly);
169674
- return cast(importClause.getChildAt(0, sourceFile), isTypeKeywordToken);
169674
+ return cast4(importClause.getChildAt(0, sourceFile), isTypeKeywordToken);
169675
169675
  }
169676
169676
  function textSpansEqual(a, b) {
169677
169677
  return !!a && !!b && a.start === b.start && a.length === b.length;
@@ -170713,7 +170713,7 @@ ${lanes.join("\n")}
170713
170713
  if (index2 >= 0) {
170714
170714
  const diagnostic = sortedFileDiagnostics[index2];
170715
170715
  Debug.assertEqual(diagnostic.file, node.getSourceFile(), "Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile");
170716
- return cast(diagnostic, isDiagnosticWithLocation);
170716
+ return cast4(diagnostic, isDiagnosticWithLocation);
170717
170717
  }
170718
170718
  }
170719
170719
  function getDiagnosticsWithinSpan(span, sortedFileDiagnostics) {
@@ -172811,7 +172811,7 @@ ${lanes.join("\n")}
172811
172811
  return void 0;
172812
172812
  }
172813
172813
  const keywords2 = [];
172814
- forEachReturnStatement(cast(func.body, isBlock), (returnStatement2) => {
172814
+ forEachReturnStatement(cast4(func.body, isBlock), (returnStatement2) => {
172815
172815
  keywords2.push(findChildOfKind(returnStatement2, 107, sourceFile));
172816
172816
  });
172817
172817
  forEach(aggregateOwnedThrowStatements(func.body), (throwStatement) => {
@@ -176261,7 +176261,7 @@ ${lanes.join("\n")}
176261
176261
  );
176262
176262
  const template = factory.createJSDocTemplateTag(
176263
176263
  factory.createIdentifier("template"),
176264
- constraint && cast(constraint, isJSDocTypeExpression),
176264
+ constraint && cast4(constraint, isJSDocTypeExpression),
176265
176265
  [parameter]
176266
176266
  );
176267
176267
  templates.push(template);
@@ -176461,7 +176461,7 @@ ${lanes.join("\n")}
176461
176461
  return { error: getLocaleSpecificMessage(Diagnostics.Could_not_find_variable_to_inline) };
176462
176462
  }
176463
176463
  function isDeclarationExported(declaration) {
176464
- const variableStatement = cast(declaration.parent.parent, isVariableStatement);
176464
+ const variableStatement = cast4(declaration.parent.parent, isVariableStatement);
176465
176465
  return some(variableStatement.modifiers, isExportModifier);
176466
176466
  }
176467
176467
  function getReferenceNodes(declaration, checker, file) {
@@ -177282,7 +177282,7 @@ ${lanes.join("\n")}
177282
177282
  return d.parent.parent;
177283
177283
  case 208:
177284
177284
  return getTopLevelDeclarationStatement(
177285
- cast(d.parent.parent, (p) => isVariableDeclaration(p) || isBindingElement(p))
177285
+ cast4(d.parent.parent, (p) => isVariableDeclaration(p) || isBindingElement(p))
177286
177286
  );
177287
177287
  default:
177288
177288
  return d;
@@ -177524,7 +177524,7 @@ ${lanes.join("\n")}
177524
177524
  function forEachTopLevelDeclarationInBindingName(name, cb) {
177525
177525
  switch (name.kind) {
177526
177526
  case 80:
177527
- return cb(cast(name.parent, (x) => isVariableDeclaration(x) || isBindingElement(x)));
177527
+ return cb(cast4(name.parent, (x) => isVariableDeclaration(x) || isBindingElement(x)));
177528
177528
  case 207:
177529
177529
  case 206:
177530
177530
  return firstDefined(name.elements, (em) => isOmittedExpression(em) ? void 0 : forEachTopLevelDeclarationInBindingName(em.name, cb));
@@ -184918,7 +184918,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
184918
184918
  return flatMap(registrations, (f) => map2(f.getCodeActions(context), removeFixIdIfFixAllUnavailable(f, diagnostics)));
184919
184919
  }
184920
184920
  function getAllFixes(context) {
184921
- return fixIdToRegistration.get(cast(context.fixId, isString3)).getAllCodeActions(context);
184921
+ return fixIdToRegistration.get(cast4(context.fixId, isString3)).getAllCodeActions(context);
184922
184922
  }
184923
184923
  function createCombinedCodeActions(changes, commands) {
184924
184924
  return { changes, commands };
@@ -187998,10 +187998,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
187998
187998
  function getInfo5(sourceFile, pos) {
187999
187999
  const token = getTokenAtPosition(sourceFile, pos);
188000
188000
  if (isIdentifier(token)) {
188001
- const propertySignature = cast(token.parent.parent, isPropertySignature);
188001
+ const propertySignature = cast4(token.parent.parent, isPropertySignature);
188002
188002
  const propertyName = token.getText(sourceFile);
188003
188003
  return {
188004
- container: cast(propertySignature.parent, isTypeLiteralNode),
188004
+ container: cast4(propertySignature.parent, isTypeLiteralNode),
188005
188005
  typeNode: propertySignature.type,
188006
188006
  constraint: propertyName,
188007
188007
  name: propertyName === "K" ? "P" : "K"
@@ -189080,7 +189080,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
189080
189080
  }
189081
189081
  function getModuleSpecifierText(promotedDeclaration) {
189082
189082
  var _a, _b;
189083
- return promotedDeclaration.kind === 271 ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text;
189083
+ return promotedDeclaration.kind === 271 ? ((_b = tryCast((_a = tryCast(promotedDeclaration.moduleReference, isExternalModuleReference)) == null ? void 0 : _a.expression, isStringLiteralLike)) == null ? void 0 : _b.text) || promotedDeclaration.moduleReference.getText() : cast4(promotedDeclaration.parent.moduleSpecifier, isStringLiteral).text;
189084
189084
  }
189085
189085
  function promoteFromTypeOnly(changes, aliasDeclaration, program, sourceFile, preferences) {
189086
189086
  var _a;
@@ -189768,7 +189768,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
189768
189768
  );
189769
189769
  }
189770
189770
  function getPropertyAccessExpression(sourceFile, pos) {
189771
- return cast(getTokenAtPosition(sourceFile, pos).parent, isPropertyAccessExpression);
189771
+ return cast4(getTokenAtPosition(sourceFile, pos).parent, isPropertyAccessExpression);
189772
189772
  }
189773
189773
  var fixId18, errorCodes21;
189774
189774
  var init_fixNoPropertyAccessFromIndexSignature = __esm2({
@@ -191196,7 +191196,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191196
191196
  }
191197
191197
  });
191198
191198
  function addMissingNewOperator(changes, sourceFile, span) {
191199
- const call = cast(findAncestorMatchingSpan2(sourceFile, span), isCallExpression);
191199
+ const call = cast4(findAncestorMatchingSpan2(sourceFile, span), isCallExpression);
191200
191200
  const newExpression = factory.createNewExpression(call.expression, call.typeArguments, call.arguments);
191201
191201
  changes.replaceNode(sourceFile, call, newExpression);
191202
191202
  }
@@ -191545,7 +191545,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191545
191545
  });
191546
191546
  function getClass2(sourceFile, pos) {
191547
191547
  const token = getTokenAtPosition(sourceFile, pos);
191548
- return cast(token.parent, isClassLike);
191548
+ return cast4(token.parent, isClassLike);
191549
191549
  }
191550
191550
  function addMissingMembers(classDeclaration, sourceFile, context, changeTracker, preferences) {
191551
191551
  const extendsNode = getEffectiveBaseTypeNode(classDeclaration);
@@ -191827,7 +191827,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191827
191827
  changes.replaceNode(sourceFile, node, factory.createPropertyAssignment(node.name, node.objectAssignmentInitializer));
191828
191828
  }
191829
191829
  function getProperty2(sourceFile, pos) {
191830
- return cast(getTokenAtPosition(sourceFile, pos).parent, isShorthandPropertyAssignment);
191830
+ return cast4(getTokenAtPosition(sourceFile, pos).parent, isShorthandPropertyAssignment);
191831
191831
  }
191832
191832
  var fixId29, errorCodes36;
191833
191833
  var init_fixPropertyAssignment = __esm2({
@@ -192170,7 +192170,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
192170
192170
  return createCodeFixAction(fixName3, changes, diag2, fixIdDelete, Diagnostics.Delete_all_unused_declarations);
192171
192171
  }
192172
192172
  function deleteTypeParameters(changes, sourceFile, token) {
192173
- changes.delete(sourceFile, Debug.checkDefined(cast(token.parent, isDeclarationWithTypeParameterChildren).typeParameters, "The type parameter to delete should exist"));
192173
+ changes.delete(sourceFile, Debug.checkDefined(cast4(token.parent, isDeclarationWithTypeParameterChildren).typeParameters, "The type parameter to delete should exist"));
192174
192174
  }
192175
192175
  function isImport(token) {
192176
192176
  return token.kind === 102 || token.kind === 80 && (token.parent.kind === 276 || token.parent.kind === 273);
@@ -192209,7 +192209,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
192209
192209
  if (errorCode === Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)
192210
192210
  return;
192211
192211
  if (token.kind === 140) {
192212
- token = cast(token.parent, isInferTypeNode).typeParameter.name;
192212
+ token = cast4(token.parent, isInferTypeNode).typeParameter.name;
192213
192213
  }
192214
192214
  if (isIdentifier(token) && canPrefix(token)) {
192215
192215
  changes.replaceNode(sourceFile, token, factory.createIdentifier(`_${token.text}`));
@@ -192405,7 +192405,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
192405
192405
  const result2 = [];
192406
192406
  if (token.kind === 140) {
192407
192407
  const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => changeInferToUnknown(t, sourceFile, token));
192408
- const name = cast(token.parent, isInferTypeNode).typeParameter.name.text;
192408
+ const name = cast4(token.parent, isInferTypeNode).typeParameter.name.text;
192409
192409
  result2.push(createCodeFixAction(fixName3, changes, [Diagnostics.Replace_infer_0_with_unknown, name], fixIdInfer, Diagnostics.Replace_all_unused_infer_with_unknown));
192410
192410
  } else {
192411
192411
  const deletion = ts_textChanges_exports.ChangeTracker.with(context, (t) => tryDeleteDeclaration(
@@ -192577,7 +192577,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
192577
192577
  });
192578
192578
  function doChange28(changes, sourceFile, start) {
192579
192579
  const token = getTokenAtPosition(sourceFile, start);
192580
- const labeledStatement = cast(token.parent, isLabeledStatement);
192580
+ const labeledStatement = cast4(token.parent, isLabeledStatement);
192581
192581
  const pos = token.getStart(sourceFile);
192582
192582
  const statementPos = labeledStatement.statement.getStart(sourceFile);
192583
192583
  const end = positionsAreOnSameLine(pos, statementPos, sourceFile) ? statementPos : skipTrivia(
@@ -192954,7 +192954,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
192954
192954
  /*comment*/
192955
192955
  void 0
192956
192956
  );
192957
- changes.addJSDocTags(sourceFile, cast(parent2.parent.parent, isExpressionStatement), [typeTag]);
192957
+ changes.addJSDocTags(sourceFile, cast4(parent2.parent.parent, isExpressionStatement), [typeTag]);
192958
192958
  }
192959
192959
  importAdder.writeFixes(changes);
192960
192960
  return parent2;
@@ -192984,7 +192984,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
192984
192984
  }
192985
192985
  case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:
192986
192986
  if (markSeen(containingFunction)) {
192987
- const param = cast(parent2, isParameter);
192987
+ const param = cast4(parent2, isParameter);
192988
192988
  annotateParameters(changes, importAdder, sourceFile, param, containingFunction, program, host, cancellationToken);
192989
192989
  declaration = param;
192990
192990
  }
@@ -194954,7 +194954,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
194954
194954
  } else if (isPropertyAssignment(declaration)) {
194955
194955
  updatePropertyAssignmentDeclaration(changeTracker, file, declaration, fieldName);
194956
194956
  } else {
194957
- changeTracker.replaceNode(file, declaration, factory.updateParameterDeclaration(declaration, modifiers, declaration.dotDotDotToken, cast(fieldName, isIdentifier), declaration.questionToken, declaration.type, declaration.initializer));
194957
+ changeTracker.replaceNode(file, declaration, factory.updateParameterDeclaration(declaration, modifiers, declaration.dotDotDotToken, cast4(fieldName, isIdentifier), declaration.questionToken, declaration.type, declaration.initializer));
194958
194958
  }
194959
194959
  }
194960
194960
  function insertAccessor(changeTracker, file, accessor, declaration, container) {
@@ -195314,7 +195314,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
195314
195314
  )) {
195315
195315
  Debug.failBadSyntaxKind(parent2);
195316
195316
  }
195317
- const decl = cast(parent2.parent, isVariableDeclaration);
195317
+ const decl = cast4(parent2.parent, isVariableDeclaration);
195318
195318
  const defaultImportName = tryCast(decl.name, isIdentifier);
195319
195319
  const namedImports = isObjectBindingPattern(decl.name) ? tryCreateNamedImportsFromObjectBindingPattern(decl.name) : void 0;
195320
195320
  if (defaultImportName || namedImports) {
@@ -195322,7 +195322,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
195322
195322
  allowSyntheticDefaults: getAllowSyntheticDefaultImports(program.getCompilerOptions()),
195323
195323
  defaultImportName,
195324
195324
  namedImports,
195325
- statement: cast(decl.parent.parent, isVariableStatement),
195325
+ statement: cast4(decl.parent.parent, isVariableStatement),
195326
195326
  required: first(parent2.arguments)
195327
195327
  };
195328
195328
  }
@@ -195577,7 +195577,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
195577
195577
  const mappedTypeParameter = factory.createTypeParameterDeclaration(
195578
195578
  /*modifiers*/
195579
195579
  void 0,
195580
- cast(parameter.name, isIdentifier),
195580
+ cast4(parameter.name, isIdentifier),
195581
195581
  parameter.type
195582
195582
  );
195583
195583
  const mappedIntersectionType = factory.createMappedTypeNode(
@@ -199689,7 +199689,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
199689
199689
  case 358:
199690
199690
  return tryCast(location.parent, isObjectTypeDeclaration);
199691
199691
  case 1:
199692
- const cls = tryCast(lastOrUndefined(cast(location.parent, isSourceFile).statements), isObjectTypeDeclaration);
199692
+ const cls = tryCast(lastOrUndefined(cast4(location.parent, isSourceFile).statements), isObjectTypeDeclaration);
199693
199693
  if (cls && !findChildOfKind(cls, 20, sourceFile)) {
199694
199694
  return cls;
199695
199695
  }
@@ -201518,7 +201518,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
201518
201518
  default:
201519
201519
  return void 0;
201520
201520
  }
201521
- const sym = useLhsSymbol ? checker.getSymbolAtLocation(getNameOfAccessExpression(cast(node2.left, isAccessExpression))) : symbol;
201521
+ const sym = useLhsSymbol ? checker.getSymbolAtLocation(getNameOfAccessExpression(cast4(node2.left, isAccessExpression))) : symbol;
201522
201522
  return sym && exportInfo(sym, kind);
201523
201523
  }
201524
201524
  }
@@ -201628,7 +201628,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
201628
201628
  parent2.kind === 268
201629
201629
  /* ModuleBlock */
201630
201630
  );
201631
- return cast(parent2.parent, isAmbientModuleDeclaration);
201631
+ return cast4(parent2.parent, isAmbientModuleDeclaration);
201632
201632
  }
201633
201633
  function isAmbientModuleDeclaration(node) {
201634
201634
  return node.kind === 267 && node.name.kind === 11;
@@ -202367,7 +202367,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
202367
202367
  if (reference.kind === "import") {
202368
202368
  const parent2 = reference.literal.parent;
202369
202369
  if (isLiteralTypeNode(parent2)) {
202370
- const importType = cast(parent2.parent, isImportTypeNode);
202370
+ const importType = cast4(parent2.parent, isImportTypeNode);
202371
202371
  if (excludeImportTypeOfExportEquals && !importType.qualifier) {
202372
202372
  return void 0;
202373
202373
  }
@@ -203528,7 +203528,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
203528
203528
  if (res)
203529
203529
  return res;
203530
203530
  if (symbol.valueDeclaration && isParameterPropertyDeclaration(symbol.valueDeclaration, symbol.valueDeclaration.parent)) {
203531
- const paramProps = checker.getSymbolsOfParameterPropertyDeclaration(cast(symbol.valueDeclaration, isParameter), symbol.name);
203531
+ const paramProps = checker.getSymbolsOfParameterPropertyDeclaration(cast4(symbol.valueDeclaration, isParameter), symbol.name);
203532
203532
  Debug.assert(paramProps.length === 2 && !!(paramProps[0].flags & 1) && !!(paramProps[1].flags & 4));
203533
203533
  return fromRoot(symbol.flags & 1 ? paramProps[1] : paramProps[0]);
203534
203534
  }
@@ -208924,7 +208924,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
208924
208924
  function getTextPos() {
208925
208925
  return writer.getTextPos();
208926
208926
  }
208927
- function getLine2() {
208927
+ function getLine3() {
208928
208928
  return writer.getLine();
208929
208929
  }
208930
208930
  function getColumn() {
@@ -208965,7 +208965,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
208965
208965
  rawWrite,
208966
208966
  writeLiteral,
208967
208967
  getTextPos,
208968
- getLine: getLine2,
208968
+ getLine: getLine3,
208969
208969
  getColumn,
208970
208970
  getIndent: getIndent2,
208971
208971
  isAtStartOfLine,
@@ -209216,28 +209216,28 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
209216
209216
  insertNodesAtTopOfFile(sourceFile, newNodes, blankLineBetween) {
209217
209217
  this.insertAtTopOfFile(sourceFile, newNodes, blankLineBetween);
209218
209218
  }
209219
- insertAtTopOfFile(sourceFile, insert3, blankLineBetween) {
209219
+ insertAtTopOfFile(sourceFile, insert4, blankLineBetween) {
209220
209220
  const pos = getInsertionPositionAtSourceFileTop(sourceFile);
209221
209221
  const options = {
209222
209222
  prefix: pos === 0 ? void 0 : this.newLineCharacter,
209223
209223
  suffix: (isLineBreak(sourceFile.text.charCodeAt(pos)) ? "" : this.newLineCharacter) + (blankLineBetween ? this.newLineCharacter : "")
209224
209224
  };
209225
- if (isArray4(insert3)) {
209226
- this.insertNodesAt(sourceFile, pos, insert3, options);
209225
+ if (isArray4(insert4)) {
209226
+ this.insertNodesAt(sourceFile, pos, insert4, options);
209227
209227
  } else {
209228
- this.insertNodeAt(sourceFile, pos, insert3, options);
209228
+ this.insertNodeAt(sourceFile, pos, insert4, options);
209229
209229
  }
209230
209230
  }
209231
209231
  insertNodesAtEndOfFile(sourceFile, newNodes, blankLineBetween) {
209232
209232
  this.insertAtEndOfFile(sourceFile, newNodes, blankLineBetween);
209233
209233
  }
209234
- insertAtEndOfFile(sourceFile, insert3, blankLineBetween) {
209234
+ insertAtEndOfFile(sourceFile, insert4, blankLineBetween) {
209235
209235
  const pos = sourceFile.end + 1;
209236
209236
  const options = {
209237
209237
  prefix: this.newLineCharacter,
209238
209238
  suffix: this.newLineCharacter + (blankLineBetween ? this.newLineCharacter : "")
209239
209239
  };
209240
- this.insertNodesAt(sourceFile, pos, insert3, options);
209240
+ this.insertNodesAt(sourceFile, pos, insert4, options);
209241
209241
  }
209242
209242
  insertStatementsInNewFile(fileName, statements, oldFile) {
209243
209243
  if (!this.newFileChanges) {
@@ -212262,9 +212262,9 @@ ${options.prefix}` : "\n" : options.prefix
212262
212262
  );
212263
212263
  }
212264
212264
  function formatOnSemicolon(position, sourceFile, formatContext) {
212265
- const semicolon3 = findImmediatelyPrecedingTokenOfKind(position, 27, sourceFile);
212265
+ const semicolon2 = findImmediatelyPrecedingTokenOfKind(position, 27, sourceFile);
212266
212266
  return formatNodeLines(
212267
- findOutermostNodeWithinListLevel(semicolon3),
212267
+ findOutermostNodeWithinListLevel(semicolon2),
212268
212268
  sourceFile,
212269
212269
  formatContext,
212270
212270
  3
@@ -214612,15 +214612,15 @@ ${options.prefix}` : "\n" : options.prefix
214612
214612
  const base2 = getBaseFileName(configFilePath);
214613
214613
  return base2 === "tsconfig.json" || base2 === "jsconfig.json" ? base2 : void 0;
214614
214614
  }
214615
- function removeSorted(array, remove3, compare) {
214615
+ function removeSorted(array, remove4, compare) {
214616
214616
  if (!array || array.length === 0) {
214617
214617
  return;
214618
214618
  }
214619
- if (array[0] === remove3) {
214619
+ if (array[0] === remove4) {
214620
214620
  array.splice(0, 1);
214621
214621
  return;
214622
214622
  }
214623
- const removeIndex = binarySearch2(array, remove3, identity, compare);
214623
+ const removeIndex = binarySearch2(array, remove4, identity, compare);
214624
214624
  if (removeIndex >= 0) {
214625
214625
  array.splice(removeIndex, 1);
214626
214626
  }
@@ -224436,7 +224436,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
224436
224436
  const useDisplayParts = !!this.getPreferences(file).displayPartsForJSDoc;
224437
224437
  const result2 = mapDefined(args.entryNames, (entryName) => {
224438
224438
  const { name, source, data: data2 } = typeof entryName === "string" ? { name: entryName, source: void 0, data: void 0 } : entryName;
224439
- return project.getLanguageService().getCompletionEntryDetails(file, position, name, formattingOptions, source, this.getPreferences(file), data2 ? cast(data2, isCompletionEntryData) : void 0);
224439
+ return project.getLanguageService().getCompletionEntryDetails(file, position, name, formattingOptions, source, this.getPreferences(file), data2 ? cast4(data2, isCompletionEntryData) : void 0);
224440
224440
  });
224441
224441
  return fullResult ? useDisplayParts ? result2 : result2.map((details) => ({ ...details, tags: this.mapJSDocTagInfo(
224442
224442
  details.tags,
@@ -226055,9 +226055,9 @@ ${e.message}`;
226055
226055
  installPackage(options) {
226056
226056
  this.packageInstallId++;
226057
226057
  const request = { kind: "installPackage", ...options, id: this.packageInstallId };
226058
- const promise = new Promise((resolve8, reject) => {
226058
+ const promise = new Promise((resolve9, reject) => {
226059
226059
  var _a;
226060
- ((_a = this.packageInstalledPromise) != null ? _a : this.packageInstalledPromise = /* @__PURE__ */ new Map()).set(this.packageInstallId, { resolve: resolve8, reject });
226060
+ ((_a = this.packageInstalledPromise) != null ? _a : this.packageInstalledPromise = /* @__PURE__ */ new Map()).set(this.packageInstallId, { resolve: resolve9, reject });
226061
226061
  });
226062
226062
  this.installer.send(request);
226063
226063
  return promise;
@@ -226563,7 +226563,7 @@ ${e.message}`;
226563
226563
  canWatchAtTypes: () => canWatchAtTypes,
226564
226564
  canWatchDirectoryOrFile: () => canWatchDirectoryOrFile,
226565
226565
  cartesianProduct: () => cartesianProduct,
226566
- cast: () => cast,
226566
+ cast: () => cast4,
226567
226567
  chainBundle: () => chainBundle,
226568
226568
  chainDiagnosticMessages: () => chainDiagnosticMessages,
226569
226569
  changeAnyExtension: () => changeAnyExtension,
@@ -226589,7 +226589,7 @@ ${e.message}`;
226589
226589
  clearSharedExtendedConfigFileWatcher: () => clearSharedExtendedConfigFileWatcher,
226590
226590
  climbPastPropertyAccess: () => climbPastPropertyAccess,
226591
226591
  climbPastPropertyOrElementAccess: () => climbPastPropertyOrElementAccess,
226592
- clone: () => clone4,
226592
+ clone: () => clone5,
226593
226593
  cloneCompilerOptions: () => cloneCompilerOptions,
226594
226594
  closeFileWatcher: () => closeFileWatcher,
226595
226595
  closeFileWatcherOf: () => closeFileWatcherOf,
@@ -228980,7 +228980,7 @@ ${e.message}`;
228980
228980
  canWatchAtTypes: () => canWatchAtTypes,
228981
228981
  canWatchDirectoryOrFile: () => canWatchDirectoryOrFile,
228982
228982
  cartesianProduct: () => cartesianProduct,
228983
- cast: () => cast,
228983
+ cast: () => cast4,
228984
228984
  chainBundle: () => chainBundle,
228985
228985
  chainDiagnosticMessages: () => chainDiagnosticMessages,
228986
228986
  changeAnyExtension: () => changeAnyExtension,
@@ -229006,7 +229006,7 @@ ${e.message}`;
229006
229006
  clearSharedExtendedConfigFileWatcher: () => clearSharedExtendedConfigFileWatcher,
229007
229007
  climbPastPropertyAccess: () => climbPastPropertyAccess,
229008
229008
  climbPastPropertyOrElementAccess: () => climbPastPropertyOrElementAccess,
229009
- clone: () => clone4,
229009
+ clone: () => clone5,
229010
229010
  cloneCompilerOptions: () => cloneCompilerOptions,
229011
229011
  closeFileWatcher: () => closeFileWatcher,
229012
229012
  closeFileWatcherOf: () => closeFileWatcherOf,
@@ -231091,16 +231091,16 @@ ${e.message}`;
231091
231091
  var typescript_5_4_5_bundle_cache_min_default = ts;
231092
231092
 
231093
231093
  // src/version.ts
231094
- var buildId = "1733068356";
231095
- var minfyJsId = "terser5.31.0_7";
231094
+ var buildId = "1734304270";
231095
+ var minfyJsId = "terser5.31.1_7";
231096
231096
  var optimizeCssId = "autoprefixer10.4.19_postcss8.4.38_7";
231097
231097
  var parse5Version = "7.1.2";
231098
231098
  var rollupVersion = "2.56.3";
231099
231099
  var jqueryVersion = "4.0.0-pre";
231100
- var terserVersion = "5.31.0";
231100
+ var terserVersion = "5.31.1";
231101
231101
  var typescriptVersion = "5.4.5";
231102
- var vermoji = "\u{1F336}";
231103
- var version = "4.18.2";
231102
+ var vermoji = "\u{1F3C6}";
231103
+ var version = "4.18.3-dev.1734304270.ca7046f";
231104
231104
  var versions = {
231105
231105
  rindo: version,
231106
231106
  parse5: parse5Version,
@@ -231396,7 +231396,7 @@ var isPromise = (v) => !!v && (typeof v === "object" || typeof v === "function")
231396
231396
 
231397
231397
  // src/utils/is-glob.ts
231398
231398
  var isGlob = (str) => {
231399
- const chars4 = { "{": "}", "(": ")", "[": "]" };
231399
+ const chars3 = { "{": "}", "(": ")", "[": "]" };
231400
231400
  const regex = /\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
231401
231401
  if (str === "") {
231402
231402
  return false;
@@ -231406,7 +231406,7 @@ var isGlob = (str) => {
231406
231406
  if (match2[2]) return true;
231407
231407
  let idx = match2.index + match2[0].length;
231408
231408
  const open = match2[1];
231409
- const close = open ? chars4[open] : null;
231409
+ const close = open ? chars3[open] : null;
231410
231410
  if (open && close) {
231411
231411
  const n3 = str.indexOf(close, idx);
231412
231412
  if (n3 !== -1) {
@@ -235910,6 +235910,78 @@ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder()
235910
235910
  return out;
235911
235911
  }
235912
235912
  };
235913
+ function decode(mappings) {
235914
+ const state = new Int32Array(5);
235915
+ const decoded = [];
235916
+ let index2 = 0;
235917
+ do {
235918
+ const semi = indexOf(mappings, index2);
235919
+ const line = [];
235920
+ let sorted = true;
235921
+ let lastCol = 0;
235922
+ state[0] = 0;
235923
+ for (let i = index2; i < semi; i++) {
235924
+ let seg;
235925
+ i = decodeInteger(mappings, i, state, 0);
235926
+ const col = state[0];
235927
+ if (col < lastCol)
235928
+ sorted = false;
235929
+ lastCol = col;
235930
+ if (hasMoreVlq(mappings, i, semi)) {
235931
+ i = decodeInteger(mappings, i, state, 1);
235932
+ i = decodeInteger(mappings, i, state, 2);
235933
+ i = decodeInteger(mappings, i, state, 3);
235934
+ if (hasMoreVlq(mappings, i, semi)) {
235935
+ i = decodeInteger(mappings, i, state, 4);
235936
+ seg = [col, state[1], state[2], state[3], state[4]];
235937
+ } else {
235938
+ seg = [col, state[1], state[2], state[3]];
235939
+ }
235940
+ } else {
235941
+ seg = [col];
235942
+ }
235943
+ line.push(seg);
235944
+ }
235945
+ if (!sorted)
235946
+ sort(line);
235947
+ decoded.push(line);
235948
+ index2 = semi + 1;
235949
+ } while (index2 <= mappings.length);
235950
+ return decoded;
235951
+ }
235952
+ function indexOf(mappings, index2) {
235953
+ const idx = mappings.indexOf(";", index2);
235954
+ return idx === -1 ? mappings.length : idx;
235955
+ }
235956
+ function decodeInteger(mappings, pos, state, j) {
235957
+ let value = 0;
235958
+ let shift = 0;
235959
+ let integer = 0;
235960
+ do {
235961
+ const c = mappings.charCodeAt(pos++);
235962
+ integer = charToInt[c];
235963
+ value |= (integer & 31) << shift;
235964
+ shift += 5;
235965
+ } while (integer & 32);
235966
+ const shouldNegate = value & 1;
235967
+ value >>>= 1;
235968
+ if (shouldNegate) {
235969
+ value = -2147483648 | -value;
235970
+ }
235971
+ state[j] += value;
235972
+ return pos;
235973
+ }
235974
+ function hasMoreVlq(mappings, i, length3) {
235975
+ if (i >= length3)
235976
+ return false;
235977
+ return mappings.charCodeAt(i) !== comma;
235978
+ }
235979
+ function sort(line) {
235980
+ line.sort(sortComparator);
235981
+ }
235982
+ function sortComparator(a, b) {
235983
+ return a[0] - b[0];
235984
+ }
235913
235985
  function encode(decoded) {
235914
235986
  const state = new Int32Array(5);
235915
235987
  const bufLength = 1024 * 16;
@@ -236211,13 +236283,13 @@ var Mappings = class {
236211
236283
  this.rawSegments = this.raw[this.generatedCodeLine] = [];
236212
236284
  this.pending = null;
236213
236285
  }
236214
- addEdit(sourceIndex, content, loc, nameIndex) {
236286
+ addEdit(sourceIndex2, content, loc, nameIndex) {
236215
236287
  if (content.length) {
236216
236288
  const contentLengthMinusOne = content.length - 1;
236217
236289
  let contentLineEnd = content.indexOf("\n", 0);
236218
236290
  let previousContentLineEnd = -1;
236219
236291
  while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
236220
- const segment2 = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
236292
+ const segment2 = [this.generatedCodeColumn, sourceIndex2, loc.line, loc.column];
236221
236293
  if (nameIndex >= 0) {
236222
236294
  segment2.push(nameIndex);
236223
236295
  }
@@ -236228,7 +236300,7 @@ var Mappings = class {
236228
236300
  previousContentLineEnd = contentLineEnd;
236229
236301
  contentLineEnd = content.indexOf("\n", contentLineEnd + 1);
236230
236302
  }
236231
- const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
236303
+ const segment = [this.generatedCodeColumn, sourceIndex2, loc.line, loc.column];
236232
236304
  if (nameIndex >= 0) {
236233
236305
  segment.push(nameIndex);
236234
236306
  }
@@ -236240,13 +236312,13 @@ var Mappings = class {
236240
236312
  }
236241
236313
  this.pending = null;
236242
236314
  }
236243
- addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
236315
+ addUneditedChunk(sourceIndex2, chunk, original, loc, sourcemapLocations) {
236244
236316
  let originalCharIndex = chunk.start;
236245
236317
  let first = true;
236246
236318
  let charInHiresBoundary = false;
236247
236319
  while (originalCharIndex < chunk.end) {
236248
236320
  if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
236249
- const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
236321
+ const segment = [this.generatedCodeColumn, sourceIndex2, loc.line, loc.column];
236250
236322
  if (this.hires === "boundary") {
236251
236323
  if (wordRegex.test(original[originalCharIndex])) {
236252
236324
  if (!charInHiresBoundary) {
@@ -236375,7 +236447,7 @@ var MagicString = class _MagicString {
236375
236447
  }
236376
236448
  generateDecodedMap(options) {
236377
236449
  options = options || {};
236378
- const sourceIndex = 0;
236450
+ const sourceIndex2 = 0;
236379
236451
  const names = Object.keys(this.storedNames);
236380
236452
  const mappings = new Mappings(options.hires);
236381
236453
  const locate2 = getLocator(this.original);
@@ -236387,13 +236459,13 @@ var MagicString = class _MagicString {
236387
236459
  if (chunk.intro.length) mappings.advance(chunk.intro);
236388
236460
  if (chunk.edited) {
236389
236461
  mappings.addEdit(
236390
- sourceIndex,
236462
+ sourceIndex2,
236391
236463
  chunk.content,
236392
236464
  loc,
236393
236465
  chunk.storeName ? names.indexOf(chunk.original) : -1
236394
236466
  );
236395
236467
  } else {
236396
- mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);
236468
+ mappings.addUneditedChunk(sourceIndex2, chunk, this.original, loc, this.sourcemapLocations);
236397
236469
  }
236398
236470
  if (chunk.outro.length) mappings.advance(chunk.outro);
236399
236471
  });
@@ -236405,7 +236477,7 @@ var MagicString = class _MagicString {
236405
236477
  sourcesContent: options.includeContent ? [this.original] : void 0,
236406
236478
  names,
236407
236479
  mappings: mappings.raw,
236408
- x_google_ignoreList: this.ignoreList ? [sourceIndex] : void 0
236480
+ x_google_ignoreList: this.ignoreList ? [sourceIndex2] : void 0
236409
236481
  };
236410
236482
  }
236411
236483
  generateMap(options) {
@@ -236725,10 +236797,10 @@ var MagicString = class _MagicString {
236725
236797
  }
236726
236798
  // TODO deprecate this? not really very useful
236727
236799
  snip(start, end) {
236728
- const clone4 = this.clone();
236729
- clone4.remove(0, start);
236730
- clone4.remove(end, clone4.original.length);
236731
- return clone4;
236800
+ const clone5 = this.clone();
236801
+ clone5.remove(0, start);
236802
+ clone5.remove(end, clone5.original.length);
236803
+ return clone5;
236732
236804
  }
236733
236805
  _split(index2) {
236734
236806
  if (this.byStart[index2] || this.byEnd[index2]) return;
@@ -236995,9 +237067,10 @@ function replace(options) {
236995
237067
  }
236996
237068
  var functionValues = mapToFunctions(replacements);
236997
237069
  var keys2 = Object.keys(functionValues).sort(longest).map(escape3);
236998
- var lookahead2 = preventAssignment ? "(?!\\s*(=[^=]|:[^:]))" : "";
237070
+ var lookbehind = preventAssignment ? "(?<!\\b(?:const|let|var)\\s*)" : "";
237071
+ var lookahead2 = preventAssignment ? "(?!\\s*=[^=])" : "";
236999
237072
  var pattern = new RegExp(
237000
- delimiters[0] + "(" + keys2.join("|") + ")" + delimiters[1] + lookahead2,
237073
+ "" + lookbehind + delimiters[0] + "(" + keys2.join("|") + ")" + delimiters[1] + lookahead2,
237001
237074
  "g"
237002
237075
  );
237003
237076
  return {
@@ -238983,162 +239056,10 @@ var userIndexPlugin = (config, compilerCtx) => {
238983
239056
  // src/compiler/optimize/optimize-module.ts
238984
239057
  var import_merge_source_map = __toESM(require_merge_source_map());
238985
239058
 
238986
- // node_modules/@jridgewell/source-map/dist/source-map.mjs
238987
- var comma2 = ",".charCodeAt(0);
238988
- var semicolon2 = ";".charCodeAt(0);
238989
- var chars3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
238990
- var intToChar2 = new Uint8Array(64);
238991
- var charToInteger2 = new Uint8Array(128);
238992
- for (let i = 0; i < chars3.length; i++) {
238993
- const c = chars3.charCodeAt(i);
238994
- charToInteger2[c] = i;
238995
- intToChar2[i] = c;
238996
- }
238997
- var td2 = typeof TextDecoder !== "undefined" ? new TextDecoder() : typeof Buffer !== "undefined" ? {
238998
- decode(buf) {
238999
- const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
239000
- return out.toString();
239001
- }
239002
- } : {
239003
- decode(buf) {
239004
- let out = "";
239005
- for (let i = 0; i < buf.length; i++) {
239006
- out += String.fromCharCode(buf[i]);
239007
- }
239008
- return out;
239009
- }
239010
- };
239011
- function decode2(mappings) {
239012
- const state = new Int32Array(5);
239013
- const decoded = [];
239014
- let line = [];
239015
- let sorted = true;
239016
- let lastCol = 0;
239017
- for (let i = 0; i < mappings.length; ) {
239018
- const c = mappings.charCodeAt(i);
239019
- if (c === comma2) {
239020
- i++;
239021
- } else if (c === semicolon2) {
239022
- state[0] = lastCol = 0;
239023
- if (!sorted)
239024
- sort(line);
239025
- sorted = true;
239026
- decoded.push(line);
239027
- line = [];
239028
- i++;
239029
- } else {
239030
- i = decodeInteger(mappings, i, state, 0);
239031
- const col = state[0];
239032
- if (col < lastCol)
239033
- sorted = false;
239034
- lastCol = col;
239035
- if (!hasMoreSegments(mappings, i)) {
239036
- line.push([col]);
239037
- continue;
239038
- }
239039
- i = decodeInteger(mappings, i, state, 1);
239040
- i = decodeInteger(mappings, i, state, 2);
239041
- i = decodeInteger(mappings, i, state, 3);
239042
- if (!hasMoreSegments(mappings, i)) {
239043
- line.push([col, state[1], state[2], state[3]]);
239044
- continue;
239045
- }
239046
- i = decodeInteger(mappings, i, state, 4);
239047
- line.push([col, state[1], state[2], state[3], state[4]]);
239048
- }
239049
- }
239050
- if (!sorted)
239051
- sort(line);
239052
- decoded.push(line);
239053
- return decoded;
239054
- }
239055
- function decodeInteger(mappings, pos, state, j) {
239056
- let value = 0;
239057
- let shift = 0;
239058
- let integer = 0;
239059
- do {
239060
- const c = mappings.charCodeAt(pos++);
239061
- integer = charToInteger2[c];
239062
- value |= (integer & 31) << shift;
239063
- shift += 5;
239064
- } while (integer & 32);
239065
- const shouldNegate = value & 1;
239066
- value >>>= 1;
239067
- if (shouldNegate) {
239068
- value = -2147483648 | -value;
239069
- }
239070
- state[j] += value;
239071
- return pos;
239072
- }
239073
- function hasMoreSegments(mappings, i) {
239074
- if (i >= mappings.length)
239075
- return false;
239076
- const c = mappings.charCodeAt(i);
239077
- if (c === comma2 || c === semicolon2)
239078
- return false;
239079
- return true;
239080
- }
239081
- function sort(line) {
239082
- line.sort(sortComparator$1);
239083
- }
239084
- function sortComparator$1(a, b) {
239085
- return a[0] - b[0];
239086
- }
239087
- function encode3(decoded) {
239088
- const state = new Int32Array(5);
239089
- let buf = new Uint8Array(1024);
239090
- let pos = 0;
239091
- for (let i = 0; i < decoded.length; i++) {
239092
- const line = decoded[i];
239093
- if (i > 0) {
239094
- buf = reserve(buf, pos, 1);
239095
- buf[pos++] = semicolon2;
239096
- }
239097
- if (line.length === 0)
239098
- continue;
239099
- state[0] = 0;
239100
- for (let j = 0; j < line.length; j++) {
239101
- const segment = line[j];
239102
- buf = reserve(buf, pos, 36);
239103
- if (j > 0)
239104
- buf[pos++] = comma2;
239105
- pos = encodeInteger3(buf, pos, state, segment, 0);
239106
- if (segment.length === 1)
239107
- continue;
239108
- pos = encodeInteger3(buf, pos, state, segment, 1);
239109
- pos = encodeInteger3(buf, pos, state, segment, 2);
239110
- pos = encodeInteger3(buf, pos, state, segment, 3);
239111
- if (segment.length === 4)
239112
- continue;
239113
- pos = encodeInteger3(buf, pos, state, segment, 4);
239114
- }
239115
- }
239116
- return td2.decode(buf.subarray(0, pos));
239117
- }
239118
- function reserve(buf, pos, count) {
239119
- if (buf.length > pos + count)
239120
- return buf;
239121
- const swap = new Uint8Array(buf.length * 2);
239122
- swap.set(buf);
239123
- return swap;
239124
- }
239125
- function encodeInteger3(buf, pos, state, segment, j) {
239126
- const next = segment[j];
239127
- let num = next - state[j];
239128
- state[j] = next;
239129
- num = num < 0 ? -num << 1 | 1 : num << 1;
239130
- do {
239131
- let clamped = num & 31;
239132
- num >>>= 5;
239133
- if (num > 0)
239134
- clamped |= 32;
239135
- buf[pos++] = intToChar2[clamped];
239136
- } while (num > 0);
239137
- return pos;
239138
- }
239059
+ // node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
239139
239060
  var schemeRegex = /^[\w+.-]+:\/\//;
239140
- var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/;
239141
- var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/]*)?)?(\/?.*)/i;
239061
+ var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
239062
+ var fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
239142
239063
  function isAbsoluteUrl(input) {
239143
239064
  return schemeRegex.test(input);
239144
239065
  }
@@ -239151,35 +239072,42 @@ function isAbsolutePath(input) {
239151
239072
  function isFileUrl(input) {
239152
239073
  return input.startsWith("file:");
239153
239074
  }
239075
+ function isRelative2(input) {
239076
+ return /^[.?#]/.test(input);
239077
+ }
239154
239078
  function parseAbsoluteUrl(input) {
239155
239079
  const match2 = urlRegex.exec(input);
239156
- return makeUrl(match2[1], match2[2] || "", match2[3], match2[4] || "", match2[5] || "/");
239080
+ return makeUrl(match2[1], match2[2] || "", match2[3], match2[4] || "", match2[5] || "/", match2[6] || "", match2[7] || "");
239157
239081
  }
239158
239082
  function parseFileUrl(input) {
239159
239083
  const match2 = fileRegex.exec(input);
239160
239084
  const path6 = match2[2];
239161
- return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(path6) ? path6 : "/" + path6);
239085
+ return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(path6) ? path6 : "/" + path6, match2[3] || "", match2[4] || "");
239162
239086
  }
239163
- function makeUrl(scheme, user, host, port, path6) {
239087
+ function makeUrl(scheme, user, host, port, path6, query, hash) {
239164
239088
  return {
239165
239089
  scheme,
239166
239090
  user,
239167
239091
  host,
239168
239092
  port,
239169
239093
  path: path6,
239170
- relativePath: false
239094
+ query,
239095
+ hash,
239096
+ type: 7
239171
239097
  };
239172
239098
  }
239173
239099
  function parseUrl(input) {
239174
239100
  if (isSchemeRelativeUrl(input)) {
239175
239101
  const url2 = parseAbsoluteUrl("http:" + input);
239176
239102
  url2.scheme = "";
239103
+ url2.type = 6;
239177
239104
  return url2;
239178
239105
  }
239179
239106
  if (isAbsolutePath(input)) {
239180
239107
  const url2 = parseAbsoluteUrl("http://foo.com" + input);
239181
239108
  url2.scheme = "";
239182
239109
  url2.host = "";
239110
+ url2.type = 5;
239183
239111
  return url2;
239184
239112
  }
239185
239113
  if (isFileUrl(input))
@@ -239189,7 +239117,7 @@ function parseUrl(input) {
239189
239117
  const url = parseAbsoluteUrl("http://foo.com/" + input);
239190
239118
  url.scheme = "";
239191
239119
  url.host = "";
239192
- url.relativePath = true;
239120
+ url.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1;
239193
239121
  return url;
239194
239122
  }
239195
239123
  function stripPathFilename(path6) {
@@ -239199,18 +239127,15 @@ function stripPathFilename(path6) {
239199
239127
  return path6.slice(0, index2 + 1);
239200
239128
  }
239201
239129
  function mergePaths(url, base2) {
239202
- if (!url.relativePath)
239203
- return;
239204
- normalizePath4(base2);
239130
+ normalizePath4(base2, base2.type);
239205
239131
  if (url.path === "/") {
239206
239132
  url.path = base2.path;
239207
239133
  } else {
239208
239134
  url.path = stripPathFilename(base2.path) + url.path;
239209
239135
  }
239210
- url.relativePath = base2.relativePath;
239211
239136
  }
239212
- function normalizePath4(url) {
239213
- const { relativePath: relativePath3 } = url;
239137
+ function normalizePath4(url, type) {
239138
+ const rel = type <= 4;
239214
239139
  const pieces = url.path.split("/");
239215
239140
  let pointer = 1;
239216
239141
  let positive = 0;
@@ -239229,7 +239154,7 @@ function normalizePath4(url) {
239229
239154
  addTrailingSlash = true;
239230
239155
  positive--;
239231
239156
  pointer--;
239232
- } else if (relativePath3) {
239157
+ } else if (rel) {
239233
239158
  pieces[pointer++] = piece;
239234
239159
  }
239235
239160
  continue;
@@ -239246,36 +239171,59 @@ function normalizePath4(url) {
239246
239171
  }
239247
239172
  url.path = path6;
239248
239173
  }
239249
- function resolve$1(input, base2) {
239174
+ function resolve7(input, base2) {
239250
239175
  if (!input && !base2)
239251
239176
  return "";
239252
239177
  const url = parseUrl(input);
239253
- if (base2 && !url.scheme) {
239178
+ let inputType = url.type;
239179
+ if (base2 && inputType !== 7) {
239254
239180
  const baseUrl = parseUrl(base2);
239255
- url.scheme = baseUrl.scheme;
239256
- if (!url.host) {
239257
- url.user = baseUrl.user;
239258
- url.host = baseUrl.host;
239259
- url.port = baseUrl.port;
239181
+ const baseType = baseUrl.type;
239182
+ switch (inputType) {
239183
+ case 1:
239184
+ url.hash = baseUrl.hash;
239185
+ case 2:
239186
+ url.query = baseUrl.query;
239187
+ case 3:
239188
+ case 4:
239189
+ mergePaths(url, baseUrl);
239190
+ case 5:
239191
+ url.user = baseUrl.user;
239192
+ url.host = baseUrl.host;
239193
+ url.port = baseUrl.port;
239194
+ case 6:
239195
+ url.scheme = baseUrl.scheme;
239260
239196
  }
239261
- mergePaths(url, baseUrl);
239197
+ if (baseType > inputType)
239198
+ inputType = baseType;
239262
239199
  }
239263
- normalizePath4(url);
239264
- if (url.relativePath) {
239265
- const path6 = url.path.slice(1);
239266
- if (!path6)
239267
- return ".";
239268
- const keepRelative = (base2 || input).startsWith(".");
239269
- return !keepRelative || path6.startsWith(".") ? path6 : "./" + path6;
239200
+ normalizePath4(url, inputType);
239201
+ const queryHash = url.query + url.hash;
239202
+ switch (inputType) {
239203
+ case 2:
239204
+ case 3:
239205
+ return queryHash;
239206
+ case 4: {
239207
+ const path6 = url.path.slice(1);
239208
+ if (!path6)
239209
+ return queryHash || ".";
239210
+ if (isRelative2(base2 || input) && !isRelative2(path6)) {
239211
+ return "./" + path6 + queryHash;
239212
+ }
239213
+ return path6 + queryHash;
239214
+ }
239215
+ case 5:
239216
+ return url.path + queryHash;
239217
+ default:
239218
+ return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
239270
239219
  }
239271
- if (!url.scheme && !url.host)
239272
- return url.path;
239273
- return `${url.scheme}//${url.user}${url.host}${url.port}${url.path}`;
239274
239220
  }
239275
- function resolve7(input, base2) {
239221
+
239222
+ // node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
239223
+ function resolve8(input, base2) {
239276
239224
  if (base2 && !base2.endsWith("/"))
239277
239225
  base2 += "/";
239278
- return resolve$1(input, base2);
239226
+ return resolve7(input, base2);
239279
239227
  }
239280
239228
  function stripFilename(path6) {
239281
239229
  if (!path6)
@@ -239283,11 +239231,13 @@ function stripFilename(path6) {
239283
239231
  const index2 = path6.lastIndexOf("/");
239284
239232
  return path6.slice(0, index2 + 1);
239285
239233
  }
239286
- var COLUMN$1 = 0;
239287
- var SOURCES_INDEX$1 = 1;
239288
- var SOURCE_LINE$1 = 2;
239289
- var SOURCE_COLUMN$1 = 3;
239290
- var NAMES_INDEX$1 = 4;
239234
+ var COLUMN = 0;
239235
+ var SOURCES_INDEX = 1;
239236
+ var SOURCE_LINE = 2;
239237
+ var SOURCE_COLUMN = 3;
239238
+ var NAMES_INDEX = 4;
239239
+ var REV_GENERATED_LINE = 1;
239240
+ var REV_GENERATED_COLUMN = 2;
239291
239241
  function maybeSort(mappings, owned) {
239292
239242
  const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
239293
239243
  if (unsortedIndex === mappings.length)
@@ -239308,7 +239258,7 @@ function nextUnsortedSegmentLine(mappings, start) {
239308
239258
  }
239309
239259
  function isSorted(line) {
239310
239260
  for (let j = 1; j < line.length; j++) {
239311
- if (line[j][COLUMN$1] < line[j - 1][COLUMN$1]) {
239261
+ if (line[j][COLUMN] < line[j - 1][COLUMN]) {
239312
239262
  return false;
239313
239263
  }
239314
239264
  }
@@ -239317,16 +239267,16 @@ function isSorted(line) {
239317
239267
  function sortSegments(line, owned) {
239318
239268
  if (!owned)
239319
239269
  line = line.slice();
239320
- return line.sort(sortComparator);
239270
+ return line.sort(sortComparator2);
239321
239271
  }
239322
- function sortComparator(a, b) {
239323
- return a[COLUMN$1] - b[COLUMN$1];
239272
+ function sortComparator2(a, b) {
239273
+ return a[COLUMN] - b[COLUMN];
239324
239274
  }
239325
239275
  var found = false;
239326
239276
  function binarySearch(haystack, needle, low, high) {
239327
239277
  while (low <= high) {
239328
239278
  const mid = low + (high - low >> 1);
239329
- const cmp = haystack[mid][COLUMN$1] - needle;
239279
+ const cmp = haystack[mid][COLUMN] - needle;
239330
239280
  if (cmp === 0) {
239331
239281
  found = true;
239332
239282
  return mid;
@@ -239341,15 +239291,15 @@ function binarySearch(haystack, needle, low, high) {
239341
239291
  return low - 1;
239342
239292
  }
239343
239293
  function upperBound(haystack, needle, index2) {
239344
- for (let i = index2 + 1; i < haystack.length; i++, index2++) {
239345
- if (haystack[i][COLUMN$1] !== needle)
239294
+ for (let i = index2 + 1; i < haystack.length; index2 = i++) {
239295
+ if (haystack[i][COLUMN] !== needle)
239346
239296
  break;
239347
239297
  }
239348
239298
  return index2;
239349
239299
  }
239350
239300
  function lowerBound(haystack, needle, index2) {
239351
- for (let i = index2 - 1; i >= 0; i--, index2--) {
239352
- if (haystack[i][COLUMN$1] !== needle)
239301
+ for (let i = index2 - 1; i >= 0; index2 = i--) {
239302
+ if (haystack[i][COLUMN] !== needle)
239353
239303
  break;
239354
239304
  }
239355
239305
  return index2;
@@ -239367,7 +239317,7 @@ function memoizedBinarySearch(haystack, needle, state, key) {
239367
239317
  let high = haystack.length - 1;
239368
239318
  if (key === lastKey) {
239369
239319
  if (needle === lastNeedle) {
239370
- found = lastIndex !== -1 && haystack[lastIndex][COLUMN$1] === needle;
239320
+ found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
239371
239321
  return lastIndex;
239372
239322
  }
239373
239323
  if (needle >= lastNeedle) {
@@ -239380,68 +239330,118 @@ function memoizedBinarySearch(haystack, needle, state, key) {
239380
239330
  state.lastNeedle = needle;
239381
239331
  return state.lastIndex = binarySearch(haystack, needle, low, high);
239382
239332
  }
239333
+ function buildBySources(decoded, memos) {
239334
+ const sources = memos.map(buildNullArray);
239335
+ for (let i = 0; i < decoded.length; i++) {
239336
+ const line = decoded[i];
239337
+ for (let j = 0; j < line.length; j++) {
239338
+ const seg = line[j];
239339
+ if (seg.length === 1)
239340
+ continue;
239341
+ const sourceIndex2 = seg[SOURCES_INDEX];
239342
+ const sourceLine = seg[SOURCE_LINE];
239343
+ const sourceColumn = seg[SOURCE_COLUMN];
239344
+ const originalSource = sources[sourceIndex2];
239345
+ const originalLine = originalSource[sourceLine] || (originalSource[sourceLine] = []);
239346
+ const memo = memos[sourceIndex2];
239347
+ let index2 = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));
239348
+ memo.lastIndex = ++index2;
239349
+ insert2(originalLine, index2, [sourceColumn, i, seg[COLUMN]]);
239350
+ }
239351
+ }
239352
+ return sources;
239353
+ }
239354
+ function insert2(array, index2, value) {
239355
+ for (let i = array.length; i > index2; i--) {
239356
+ array[i] = array[i - 1];
239357
+ }
239358
+ array[index2] = value;
239359
+ }
239360
+ function buildNullArray() {
239361
+ return { __proto__: null };
239362
+ }
239383
239363
  var AnyMap = function(map2, mapUrl) {
239384
- const parsed = typeof map2 === "string" ? JSON.parse(map2) : map2;
239385
- if (!("sections" in parsed))
239364
+ const parsed = parse3(map2);
239365
+ if (!("sections" in parsed)) {
239386
239366
  return new TraceMap(parsed, mapUrl);
239367
+ }
239387
239368
  const mappings = [];
239388
239369
  const sources = [];
239389
239370
  const sourcesContent = [];
239390
239371
  const names = [];
239391
- const { sections } = parsed;
239392
- let i = 0;
239393
- for (; i < sections.length - 1; i++) {
239394
- const no = sections[i + 1].offset;
239395
- addSection(sections[i], mapUrl, mappings, sources, sourcesContent, names, no.line, no.column);
239396
- }
239397
- if (sections.length > 0) {
239398
- addSection(sections[i], mapUrl, mappings, sources, sourcesContent, names, Infinity, Infinity);
239399
- }
239372
+ const ignoreList = [];
239373
+ recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, Infinity, Infinity);
239400
239374
  const joined = {
239401
239375
  version: 3,
239402
239376
  file: parsed.file,
239403
239377
  names,
239404
239378
  sources,
239405
239379
  sourcesContent,
239406
- mappings
239380
+ mappings,
239381
+ ignoreList
239407
239382
  };
239408
239383
  return presortedDecodedMap(joined);
239409
239384
  };
239410
- function addSection(section, mapUrl, mappings, sources, sourcesContent, names, stopLine, stopColumn) {
239411
- const map2 = AnyMap(section.map, mapUrl);
239412
- const { line: lineOffset, column: columnOffset } = section.offset;
239385
+ function parse3(map2) {
239386
+ return typeof map2 === "string" ? JSON.parse(map2) : map2;
239387
+ }
239388
+ function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
239389
+ const { sections } = input;
239390
+ for (let i = 0; i < sections.length; i++) {
239391
+ const { map: map2, offset: offset2 } = sections[i];
239392
+ let sl = stopLine;
239393
+ let sc = stopColumn;
239394
+ if (i + 1 < sections.length) {
239395
+ const nextOffset = sections[i + 1].offset;
239396
+ sl = Math.min(stopLine, lineOffset + nextOffset.line);
239397
+ if (sl === stopLine) {
239398
+ sc = Math.min(stopColumn, columnOffset + nextOffset.column);
239399
+ } else if (sl < stopLine) {
239400
+ sc = columnOffset + nextOffset.column;
239401
+ }
239402
+ }
239403
+ addSection(map2, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset + offset2.line, columnOffset + offset2.column, sl, sc);
239404
+ }
239405
+ }
239406
+ function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
239407
+ const parsed = parse3(input);
239408
+ if ("sections" in parsed)
239409
+ return recurse(...arguments);
239410
+ const map2 = new TraceMap(parsed, mapUrl);
239413
239411
  const sourcesOffset = sources.length;
239414
239412
  const namesOffset = names.length;
239415
239413
  const decoded = decodedMappings(map2);
239416
- const { resolvedSources } = map2;
239414
+ const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map2;
239417
239415
  append3(sources, resolvedSources);
239418
- append3(sourcesContent, map2.sourcesContent || fillSourcesContent(resolvedSources.length));
239419
239416
  append3(names, map2.names);
239420
- for (let i = mappings.length; i <= lineOffset; i++)
239421
- mappings.push([]);
239422
- const stopI = stopLine - lineOffset;
239423
- const len = Math.min(decoded.length, stopI + 1);
239424
- for (let i = 0; i < len; i++) {
239425
- const line = decoded[i];
239426
- const out = i === 0 ? mappings[lineOffset] : mappings[lineOffset + i] = [];
239417
+ if (contents)
239418
+ append3(sourcesContent, contents);
239419
+ else
239420
+ for (let i = 0; i < resolvedSources.length; i++)
239421
+ sourcesContent.push(null);
239422
+ if (ignores)
239423
+ for (let i = 0; i < ignores.length; i++)
239424
+ ignoreList.push(ignores[i] + sourcesOffset);
239425
+ for (let i = 0; i < decoded.length; i++) {
239426
+ const lineI = lineOffset + i;
239427
+ if (lineI > stopLine)
239428
+ return;
239429
+ const out = getLine(mappings, lineI);
239427
239430
  const cOffset = i === 0 ? columnOffset : 0;
239431
+ const line = decoded[i];
239428
239432
  for (let j = 0; j < line.length; j++) {
239429
239433
  const seg = line[j];
239430
- const column = cOffset + seg[COLUMN$1];
239431
- if (i === stopI && column >= stopColumn)
239432
- break;
239434
+ const column = cOffset + seg[COLUMN];
239435
+ if (lineI === stopLine && column >= stopColumn)
239436
+ return;
239433
239437
  if (seg.length === 1) {
239434
239438
  out.push([column]);
239435
239439
  continue;
239436
239440
  }
239437
- const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX$1];
239438
- const sourceLine = seg[SOURCE_LINE$1];
239439
- const sourceColumn = seg[SOURCE_COLUMN$1];
239440
- if (seg.length === 4) {
239441
- out.push([column, sourcesIndex, sourceLine, sourceColumn]);
239442
- continue;
239443
- }
239444
- out.push([column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX$1]]);
239441
+ const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];
239442
+ const sourceLine = seg[SOURCE_LINE];
239443
+ const sourceColumn = seg[SOURCE_COLUMN];
239444
+ out.push(seg.length === 4 ? [column, sourcesIndex, sourceLine, sourceColumn] : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]);
239445
239445
  }
239446
239446
  }
239447
239447
  }
@@ -239449,51 +239449,31 @@ function append3(arr, other) {
239449
239449
  for (let i = 0; i < other.length; i++)
239450
239450
  arr.push(other[i]);
239451
239451
  }
239452
- function fillSourcesContent(len) {
239453
- const sourcesContent = [];
239454
- for (let i = 0; i < len; i++)
239455
- sourcesContent[i] = null;
239456
- return sourcesContent;
239452
+ function getLine(arr, index2) {
239453
+ for (let i = arr.length; i <= index2; i++)
239454
+ arr[i] = [];
239455
+ return arr[index2];
239457
239456
  }
239458
- var INVALID_ORIGINAL_MAPPING = Object.freeze({
239459
- source: null,
239460
- line: null,
239461
- column: null,
239462
- name: null
239463
- });
239464
- Object.freeze({
239465
- line: null,
239466
- column: null
239467
- });
239468
239457
  var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
239469
239458
  var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
239470
239459
  var LEAST_UPPER_BOUND = -1;
239471
239460
  var GREATEST_LOWER_BOUND = 1;
239472
- var decodedMappings;
239473
- var originalPositionFor;
239474
- var presortedDecodedMap;
239475
- var TraceMap = class _TraceMap {
239461
+ var TraceMap = class {
239476
239462
  constructor(map2, mapUrl) {
239477
- this._decodedMemo = memoizedState();
239478
- this._bySources = void 0;
239479
- this._bySourceMemos = void 0;
239480
239463
  const isString3 = typeof map2 === "string";
239481
- if (!isString3 && map2.constructor === _TraceMap)
239464
+ if (!isString3 && map2._decodedMemo)
239482
239465
  return map2;
239483
239466
  const parsed = isString3 ? JSON.parse(map2) : map2;
239484
239467
  const { version: version3, file, names, sourceRoot, sources, sourcesContent } = parsed;
239485
239468
  this.version = version3;
239486
239469
  this.file = file;
239487
- this.names = names;
239470
+ this.names = names || [];
239488
239471
  this.sourceRoot = sourceRoot;
239489
239472
  this.sources = sources;
239490
239473
  this.sourcesContent = sourcesContent;
239491
- if (sourceRoot || mapUrl) {
239492
- const from = resolve7(sourceRoot || "", stripFilename(mapUrl));
239493
- this.resolvedSources = sources.map((s) => resolve7(s || "", from));
239494
- } else {
239495
- this.resolvedSources = sources.map((s) => s || "");
239496
- }
239474
+ this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
239475
+ const from = resolve8(sourceRoot || "", stripFilename(mapUrl));
239476
+ this.resolvedSources = sources.map((s) => resolve8(s || "", from));
239497
239477
  const { mappings } = parsed;
239498
239478
  if (typeof mappings === "string") {
239499
239479
  this._encoded = mappings;
@@ -239502,42 +239482,119 @@ var TraceMap = class _TraceMap {
239502
239482
  this._encoded = void 0;
239503
239483
  this._decoded = maybeSort(mappings, isString3);
239504
239484
  }
239485
+ this._decodedMemo = memoizedState();
239486
+ this._bySources = void 0;
239487
+ this._bySourceMemos = void 0;
239505
239488
  }
239506
239489
  };
239507
- (() => {
239508
- decodedMappings = (map2) => {
239509
- return map2._decoded || (map2._decoded = decode2(map2._encoded));
239510
- };
239511
- originalPositionFor = (map2, { line, column, bias }) => {
239512
- line--;
239513
- if (line < 0)
239514
- throw new Error(LINE_GTR_ZERO);
239515
- if (column < 0)
239516
- throw new Error(COL_GTR_EQ_ZERO);
239517
- const decoded = decodedMappings(map2);
239518
- if (line >= decoded.length)
239519
- return INVALID_ORIGINAL_MAPPING;
239520
- const segment = traceSegmentInternal(decoded[line], map2._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
239521
- if (segment == null)
239522
- return INVALID_ORIGINAL_MAPPING;
239523
- if (segment.length == 1)
239524
- return INVALID_ORIGINAL_MAPPING;
239525
- const { names, resolvedSources } = map2;
239526
- return {
239527
- source: resolvedSources[segment[SOURCES_INDEX$1]],
239528
- line: segment[SOURCE_LINE$1] + 1,
239529
- column: segment[SOURCE_COLUMN$1],
239530
- name: segment.length === 5 ? names[segment[NAMES_INDEX$1]] : null
239531
- };
239532
- };
239533
- presortedDecodedMap = (map2, mapUrl) => {
239534
- const clone4 = Object.assign({}, map2);
239535
- clone4.mappings = [];
239536
- const tracer = new TraceMap(clone4, mapUrl);
239537
- tracer._decoded = map2.mappings;
239538
- return tracer;
239490
+ function cast(map2) {
239491
+ return map2;
239492
+ }
239493
+ function encodedMappings(map2) {
239494
+ var _a;
239495
+ var _b;
239496
+ return (_a = (_b = cast(map2))._encoded) !== null && _a !== void 0 ? _a : _b._encoded = encode(cast(map2)._decoded);
239497
+ }
239498
+ function decodedMappings(map2) {
239499
+ var _a;
239500
+ return (_a = cast(map2))._decoded || (_a._decoded = decode(cast(map2)._encoded));
239501
+ }
239502
+ function originalPositionFor(map2, needle) {
239503
+ let { line, column, bias } = needle;
239504
+ line--;
239505
+ if (line < 0)
239506
+ throw new Error(LINE_GTR_ZERO);
239507
+ if (column < 0)
239508
+ throw new Error(COL_GTR_EQ_ZERO);
239509
+ const decoded = decodedMappings(map2);
239510
+ if (line >= decoded.length)
239511
+ return OMapping(null, null, null, null);
239512
+ const segments = decoded[line];
239513
+ const index2 = traceSegmentInternal(segments, cast(map2)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
239514
+ if (index2 === -1)
239515
+ return OMapping(null, null, null, null);
239516
+ const segment = segments[index2];
239517
+ if (segment.length === 1)
239518
+ return OMapping(null, null, null, null);
239519
+ const { names, resolvedSources } = map2;
239520
+ return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
239521
+ }
239522
+ function generatedPositionFor(map2, needle) {
239523
+ const { source, line, column, bias } = needle;
239524
+ return generatedPosition(map2, source, line, column, bias || GREATEST_LOWER_BOUND, false);
239525
+ }
239526
+ function allGeneratedPositionsFor(map2, needle) {
239527
+ const { source, line, column, bias } = needle;
239528
+ return generatedPosition(map2, source, line, column, bias || LEAST_UPPER_BOUND, true);
239529
+ }
239530
+ function eachMapping(map2, cb) {
239531
+ const decoded = decodedMappings(map2);
239532
+ const { names, resolvedSources } = map2;
239533
+ for (let i = 0; i < decoded.length; i++) {
239534
+ const line = decoded[i];
239535
+ for (let j = 0; j < line.length; j++) {
239536
+ const seg = line[j];
239537
+ const generatedLine = i + 1;
239538
+ const generatedColumn = seg[0];
239539
+ let source = null;
239540
+ let originalLine = null;
239541
+ let originalColumn = null;
239542
+ let name = null;
239543
+ if (seg.length !== 1) {
239544
+ source = resolvedSources[seg[1]];
239545
+ originalLine = seg[2] + 1;
239546
+ originalColumn = seg[3];
239547
+ }
239548
+ if (seg.length === 5)
239549
+ name = names[seg[4]];
239550
+ cb({
239551
+ generatedLine,
239552
+ generatedColumn,
239553
+ source,
239554
+ originalLine,
239555
+ originalColumn,
239556
+ name
239557
+ });
239558
+ }
239559
+ }
239560
+ }
239561
+ function sourceIndex(map2, source) {
239562
+ const { sources, resolvedSources } = map2;
239563
+ let index2 = sources.indexOf(source);
239564
+ if (index2 === -1)
239565
+ index2 = resolvedSources.indexOf(source);
239566
+ return index2;
239567
+ }
239568
+ function sourceContentFor(map2, source) {
239569
+ const { sourcesContent } = map2;
239570
+ if (sourcesContent == null)
239571
+ return null;
239572
+ const index2 = sourceIndex(map2, source);
239573
+ return index2 === -1 ? null : sourcesContent[index2];
239574
+ }
239575
+ function presortedDecodedMap(map2, mapUrl) {
239576
+ const tracer = new TraceMap(clone4(map2, []), mapUrl);
239577
+ cast(tracer)._decoded = map2.mappings;
239578
+ return tracer;
239579
+ }
239580
+ function clone4(map2, mappings) {
239581
+ return {
239582
+ version: map2.version,
239583
+ file: map2.file,
239584
+ names: map2.names,
239585
+ sourceRoot: map2.sourceRoot,
239586
+ sources: map2.sources,
239587
+ sourcesContent: map2.sourcesContent,
239588
+ mappings,
239589
+ ignoreList: map2.ignoreList || map2.x_google_ignoreList
239539
239590
  };
239540
- })();
239591
+ }
239592
+ function OMapping(source, line, column, name) {
239593
+ return { source, line, column, name };
239594
+ }
239595
+ function GMapping(line, column) {
239596
+ return { line, column };
239597
+ }
239541
239598
  function traceSegmentInternal(segments, memo, line, column, bias) {
239542
239599
  let index2 = memoizedBinarySearch(segments, column, memo, line);
239543
239600
  if (found) {
@@ -239545,38 +239602,82 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
239545
239602
  } else if (bias === LEAST_UPPER_BOUND)
239546
239603
  index2++;
239547
239604
  if (index2 === -1 || index2 === segments.length)
239548
- return null;
239549
- return segments[index2];
239605
+ return -1;
239606
+ return index2;
239550
239607
  }
239551
- var get;
239552
- var put;
239608
+ function sliceGeneratedPositions(segments, memo, line, column, bias) {
239609
+ let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);
239610
+ if (!found && bias === LEAST_UPPER_BOUND)
239611
+ min++;
239612
+ if (min === -1 || min === segments.length)
239613
+ return [];
239614
+ const matchedColumn = found ? column : segments[min][COLUMN];
239615
+ if (!found)
239616
+ min = lowerBound(segments, matchedColumn, min);
239617
+ const max = upperBound(segments, matchedColumn, min);
239618
+ const result2 = [];
239619
+ for (; min <= max; min++) {
239620
+ const segment = segments[min];
239621
+ result2.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));
239622
+ }
239623
+ return result2;
239624
+ }
239625
+ function generatedPosition(map2, source, line, column, bias, all) {
239626
+ var _a;
239627
+ line--;
239628
+ if (line < 0)
239629
+ throw new Error(LINE_GTR_ZERO);
239630
+ if (column < 0)
239631
+ throw new Error(COL_GTR_EQ_ZERO);
239632
+ const { sources, resolvedSources } = map2;
239633
+ let sourceIndex2 = sources.indexOf(source);
239634
+ if (sourceIndex2 === -1)
239635
+ sourceIndex2 = resolvedSources.indexOf(source);
239636
+ if (sourceIndex2 === -1)
239637
+ return all ? [] : GMapping(null, null);
239638
+ const generated = (_a = cast(map2))._bySources || (_a._bySources = buildBySources(decodedMappings(map2), cast(map2)._bySourceMemos = sources.map(memoizedState)));
239639
+ const segments = generated[sourceIndex2][line];
239640
+ if (segments == null)
239641
+ return all ? [] : GMapping(null, null);
239642
+ const memo = cast(map2)._bySourceMemos[sourceIndex2];
239643
+ if (all)
239644
+ return sliceGeneratedPositions(segments, memo, line, column, bias);
239645
+ const index2 = traceSegmentInternal(segments, memo, line, column, bias);
239646
+ if (index2 === -1)
239647
+ return GMapping(null, null);
239648
+ const segment = segments[index2];
239649
+ return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);
239650
+ }
239651
+
239652
+ // node_modules/@jridgewell/set-array/dist/set-array.mjs
239553
239653
  var SetArray = class {
239554
239654
  constructor() {
239555
239655
  this._indexes = { __proto__: null };
239556
239656
  this.array = [];
239557
239657
  }
239558
239658
  };
239559
- (() => {
239560
- get = (strarr, key) => strarr._indexes[key];
239561
- put = (strarr, key) => {
239562
- const index2 = get(strarr, key);
239563
- if (index2 !== void 0)
239564
- return index2;
239565
- const { array, _indexes: indexes } = strarr;
239566
- return indexes[key] = array.push(key) - 1;
239567
- };
239568
- })();
239569
- var COLUMN = 0;
239570
- var SOURCES_INDEX = 1;
239571
- var SOURCE_LINE = 2;
239572
- var SOURCE_COLUMN = 3;
239573
- var NAMES_INDEX = 4;
239659
+ function cast2(set) {
239660
+ return set;
239661
+ }
239662
+ function get(setarr, key) {
239663
+ return cast2(setarr)._indexes[key];
239664
+ }
239665
+ function put(setarr, key) {
239666
+ const index2 = get(setarr, key);
239667
+ if (index2 !== void 0)
239668
+ return index2;
239669
+ const { array, _indexes: indexes } = cast2(setarr);
239670
+ const length3 = array.push(key);
239671
+ return indexes[key] = length3 - 1;
239672
+ }
239673
+
239674
+ // node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
239675
+ var COLUMN2 = 0;
239676
+ var SOURCES_INDEX2 = 1;
239677
+ var SOURCE_LINE2 = 2;
239678
+ var SOURCE_COLUMN2 = 3;
239679
+ var NAMES_INDEX2 = 4;
239574
239680
  var NO_NAME = -1;
239575
- var maybeAddMapping;
239576
- var setSourceContent;
239577
- var toDecodedMap;
239578
- var toEncodedMap;
239579
- var addSegmentInternal;
239580
239681
  var GenMapping = class {
239581
239682
  constructor({ file, sourceRoot } = {}) {
239582
239683
  this._names = new SetArray();
@@ -239585,53 +239686,68 @@ var GenMapping = class {
239585
239686
  this._mappings = [];
239586
239687
  this.file = file;
239587
239688
  this.sourceRoot = sourceRoot;
239689
+ this._ignoreList = new SetArray();
239588
239690
  }
239589
239691
  };
239590
- (() => {
239591
- maybeAddMapping = (map2, mapping) => {
239592
- return addMappingInternal(true, map2, mapping);
239593
- };
239594
- setSourceContent = (map2, source, content) => {
239595
- const { _sources: sources, _sourcesContent: sourcesContent } = map2;
239596
- sourcesContent[put(sources, source)] = content;
239597
- };
239598
- toDecodedMap = (map2) => {
239599
- const { file, sourceRoot, _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = map2;
239600
- removeEmptyFinalLines(mappings);
239601
- return {
239602
- version: 3,
239603
- file: file || void 0,
239604
- names: names.array,
239605
- sourceRoot: sourceRoot || void 0,
239606
- sources: sources.array,
239607
- sourcesContent,
239608
- mappings
239609
- };
239610
- };
239611
- toEncodedMap = (map2) => {
239612
- const decoded = toDecodedMap(map2);
239613
- return Object.assign(Object.assign({}, decoded), { mappings: encode3(decoded.mappings) });
239692
+ function cast3(map2) {
239693
+ return map2;
239694
+ }
239695
+ var maybeAddMapping = (map2, mapping) => {
239696
+ return addMappingInternal(true, map2, mapping);
239697
+ };
239698
+ function setSourceContent(map2, source, content) {
239699
+ const { _sources: sources, _sourcesContent: sourcesContent } = cast3(map2);
239700
+ const index2 = put(sources, source);
239701
+ sourcesContent[index2] = content;
239702
+ }
239703
+ function toDecodedMap(map2) {
239704
+ const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList } = cast3(map2);
239705
+ removeEmptyFinalLines(mappings);
239706
+ return {
239707
+ version: 3,
239708
+ file: map2.file || void 0,
239709
+ names: names.array,
239710
+ sourceRoot: map2.sourceRoot || void 0,
239711
+ sources: sources.array,
239712
+ sourcesContent,
239713
+ mappings,
239714
+ ignoreList: ignoreList.array
239614
239715
  };
239615
- addSegmentInternal = (skipable, map2, genLine, genColumn, source, sourceLine, sourceColumn, name) => {
239616
- const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = map2;
239617
- const line = getLine(mappings, genLine);
239618
- const index2 = getColumnIndex(line, genColumn);
239619
- if (!source) {
239620
- if (skipable && skipSourceless(line, index2))
239621
- return;
239622
- return insert2(line, index2, [genColumn]);
239623
- }
239624
- const sourcesIndex = put(sources, source);
239625
- const namesIndex = name ? put(names, name) : NO_NAME;
239626
- if (sourcesIndex === sourcesContent.length)
239627
- sourcesContent[sourcesIndex] = null;
239628
- if (skipable && skipSource(line, index2, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {
239716
+ }
239717
+ function toEncodedMap(map2) {
239718
+ const decoded = toDecodedMap(map2);
239719
+ return Object.assign(Object.assign({}, decoded), { mappings: encode(decoded.mappings) });
239720
+ }
239721
+ function fromMap(input) {
239722
+ const map2 = new TraceMap(input);
239723
+ const gen = new GenMapping({ file: map2.file, sourceRoot: map2.sourceRoot });
239724
+ putAll(cast3(gen)._names, map2.names);
239725
+ putAll(cast3(gen)._sources, map2.sources);
239726
+ cast3(gen)._sourcesContent = map2.sourcesContent || map2.sources.map(() => null);
239727
+ cast3(gen)._mappings = decodedMappings(map2);
239728
+ if (map2.ignoreList)
239729
+ putAll(cast3(gen)._ignoreList, map2.ignoreList);
239730
+ return gen;
239731
+ }
239732
+ function addSegmentInternal(skipable, map2, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
239733
+ const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast3(map2);
239734
+ const line = getLine2(mappings, genLine);
239735
+ const index2 = getColumnIndex(line, genColumn);
239736
+ if (!source) {
239737
+ if (skipable && skipSourceless(line, index2))
239629
239738
  return;
239630
- }
239631
- return insert2(line, index2, name ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] : [genColumn, sourcesIndex, sourceLine, sourceColumn]);
239632
- };
239633
- })();
239634
- function getLine(mappings, index2) {
239739
+ return insert3(line, index2, [genColumn]);
239740
+ }
239741
+ const sourcesIndex = put(sources, source);
239742
+ const namesIndex = name ? put(names, name) : NO_NAME;
239743
+ if (sourcesIndex === sourcesContent.length)
239744
+ sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null;
239745
+ if (skipable && skipSource(line, index2, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {
239746
+ return;
239747
+ }
239748
+ return insert3(line, index2, name ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] : [genColumn, sourcesIndex, sourceLine, sourceColumn]);
239749
+ }
239750
+ function getLine2(mappings, index2) {
239635
239751
  for (let i = mappings.length; i <= index2; i++) {
239636
239752
  mappings[i] = [];
239637
239753
  }
@@ -239641,12 +239757,12 @@ function getColumnIndex(line, genColumn) {
239641
239757
  let index2 = line.length;
239642
239758
  for (let i = index2 - 1; i >= 0; index2 = i--) {
239643
239759
  const current2 = line[i];
239644
- if (genColumn >= current2[COLUMN])
239760
+ if (genColumn >= current2[COLUMN2])
239645
239761
  break;
239646
239762
  }
239647
239763
  return index2;
239648
239764
  }
239649
- function insert2(array, index2, value) {
239765
+ function insert3(array, index2, value) {
239650
239766
  for (let i = array.length; i > index2; i--) {
239651
239767
  array[i] = array[i - 1];
239652
239768
  }
@@ -239662,6 +239778,10 @@ function removeEmptyFinalLines(mappings) {
239662
239778
  if (len < length3)
239663
239779
  mappings.length = len;
239664
239780
  }
239781
+ function putAll(setarr, array) {
239782
+ for (let i = 0; i < array.length; i++)
239783
+ put(setarr, array[i]);
239784
+ }
239665
239785
  function skipSourceless(line, index2) {
239666
239786
  if (index2 === 0)
239667
239787
  return true;
@@ -239674,17 +239794,18 @@ function skipSource(line, index2, sourcesIndex, sourceLine, sourceColumn, namesI
239674
239794
  const prev = line[index2 - 1];
239675
239795
  if (prev.length === 1)
239676
239796
  return false;
239677
- return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME);
239797
+ return sourcesIndex === prev[SOURCES_INDEX2] && sourceLine === prev[SOURCE_LINE2] && sourceColumn === prev[SOURCE_COLUMN2] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX2] : NO_NAME);
239678
239798
  }
239679
239799
  function addMappingInternal(skipable, map2, mapping) {
239680
- const { generated, source, original, name } = mapping;
239800
+ const { generated, source, original, name, content } = mapping;
239681
239801
  if (!source) {
239682
- return addSegmentInternal(skipable, map2, generated.line - 1, generated.column, null, null, null, null);
239802
+ return addSegmentInternal(skipable, map2, generated.line - 1, generated.column, null, null, null, null, null);
239683
239803
  }
239684
- const s = source;
239685
- return addSegmentInternal(skipable, map2, generated.line - 1, generated.column, s, original.line - 1, original.column, name);
239804
+ return addSegmentInternal(skipable, map2, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
239686
239805
  }
239687
- var SourceMapConsumer = class {
239806
+
239807
+ // node_modules/@jridgewell/source-map/dist/source-map.mjs
239808
+ var SourceMapConsumer = class _SourceMapConsumer {
239688
239809
  constructor(map2, mapUrl) {
239689
239810
  const trace = this._map = new AnyMap(map2, mapUrl);
239690
239811
  this.file = trace.file;
@@ -239692,16 +239813,59 @@ var SourceMapConsumer = class {
239692
239813
  this.sourceRoot = trace.sourceRoot;
239693
239814
  this.sources = trace.resolvedSources;
239694
239815
  this.sourcesContent = trace.sourcesContent;
239816
+ this.version = trace.version;
239817
+ }
239818
+ static fromSourceMap(map2, mapUrl) {
239819
+ if (map2.toDecodedMap) {
239820
+ return new _SourceMapConsumer(map2.toDecodedMap(), mapUrl);
239821
+ }
239822
+ return new _SourceMapConsumer(map2.toJSON(), mapUrl);
239823
+ }
239824
+ get mappings() {
239825
+ return encodedMappings(this._map);
239695
239826
  }
239696
239827
  originalPositionFor(needle) {
239697
239828
  return originalPositionFor(this._map, needle);
239698
239829
  }
239830
+ generatedPositionFor(originalPosition) {
239831
+ return generatedPositionFor(this._map, originalPosition);
239832
+ }
239833
+ allGeneratedPositionsFor(originalPosition) {
239834
+ return allGeneratedPositionsFor(this._map, originalPosition);
239835
+ }
239836
+ hasContentsOfAllSources() {
239837
+ if (!this.sourcesContent || this.sourcesContent.length !== this.sources.length) {
239838
+ return false;
239839
+ }
239840
+ for (const content of this.sourcesContent) {
239841
+ if (content == null) {
239842
+ return false;
239843
+ }
239844
+ }
239845
+ return true;
239846
+ }
239847
+ sourceContentFor(source, nullOnMissing) {
239848
+ const sourceContent = sourceContentFor(this._map, source);
239849
+ if (sourceContent != null) {
239850
+ return sourceContent;
239851
+ }
239852
+ if (nullOnMissing) {
239853
+ return null;
239854
+ }
239855
+ throw new Error(`"${source}" is not in the SourceMap.`);
239856
+ }
239857
+ eachMapping(callback, context) {
239858
+ eachMapping(this._map, context ? callback.bind(context) : callback);
239859
+ }
239699
239860
  destroy() {
239700
239861
  }
239701
239862
  };
239702
- var SourceMapGenerator = class {
239863
+ var SourceMapGenerator = class _SourceMapGenerator {
239703
239864
  constructor(opts) {
239704
- this._map = new GenMapping(opts);
239865
+ this._map = opts instanceof GenMapping ? opts : new GenMapping(opts);
239866
+ }
239867
+ static fromSourceMap(consumer) {
239868
+ return new _SourceMapGenerator(fromMap(consumer));
239705
239869
  }
239706
239870
  addMapping(mapping) {
239707
239871
  maybeAddMapping(this._map, mapping);
@@ -239712,12 +239876,15 @@ var SourceMapGenerator = class {
239712
239876
  toJSON() {
239713
239877
  return toEncodedMap(this._map);
239714
239878
  }
239879
+ toString() {
239880
+ return JSON.stringify(this.toJSON());
239881
+ }
239715
239882
  toDecodedMap() {
239716
239883
  return toDecodedMap(this._map);
239717
239884
  }
239718
239885
  };
239719
239886
 
239720
- // scripts/build/terser-5_31_0-bundle-cache.min.js
239887
+ // scripts/build/terser-5_31_1-bundle-cache.min.js
239721
239888
  function characters(e) {
239722
239889
  return e.split("");
239723
239890
  }
@@ -239783,7 +239950,7 @@ function string_template(e, t) {
239783
239950
  return t && t[n3];
239784
239951
  });
239785
239952
  }
239786
- function remove2(e, t) {
239953
+ function remove3(e, t) {
239787
239954
  for (var n3 = e.length; --n3 >= 0; ) e[n3] === t && e.splice(n3, 1);
239788
239955
  }
239789
239956
  function mergeSort(e, t) {
@@ -240223,7 +240390,7 @@ var PRECEDENCE = function(e, t) {
240223
240390
  return t;
240224
240391
  }([["||"], ["??"], ["&&"], ["|"], ["^"], ["&"], ["==", "===", "!=", "!=="], ["<", ">", "<=", ">=", "in", "instanceof"], [">>", "<<", ">>>"], ["+", "-"], ["*", "/", "%"], ["**"]], {});
240225
240392
  var ATOMIC_START_TOKEN = makePredicate(["atom", "num", "big_int", "string", "regexp", "name"]);
240226
- function parse3(e, t) {
240393
+ function parse4(e, t) {
240227
240394
  const n3 = /* @__PURE__ */ new WeakMap();
240228
240395
  t = defaults3(t, { bare_returns: false, ecma: null, expression: false, filename: null, html5_comments: true, module: false, shebang: true, strict: false, toplevel: null }, true);
240229
240396
  var i = { input: "string" == typeof e ? tokenizer2(e, t.filename, t.html5_comments, t.shebang) : e, token: null, prev: null, peeked: null, in_function: 0, in_async: -1, in_generator: -1, in_directives: true, in_loop: 0, labels: [] };
@@ -241195,7 +241362,7 @@ var AST_Toplevel = DEFNODE("Toplevel", "globals", function(e) {
241195
241362
  e && (this.globals = e.globals, this.variables = e.variables, this.uses_with = e.uses_with, this.uses_eval = e.uses_eval, this.parent_scope = e.parent_scope, this.enclosed = e.enclosed, this.cname = e.cname, this.body = e.body, this.block_scope = e.block_scope, this.start = e.start, this.end = e.end), this.flags = 0;
241196
241363
  }, { $documentation: "The toplevel scope", $propdoc: { globals: "[Map/S] a map of name -> SymbolDef for all undeclared names" }, wrap_commonjs: function(e) {
241197
241364
  var t = this.body, n3 = "(function(exports){'$ORIG';})(typeof " + e + "=='undefined'?(" + e + "={}):" + e + ");";
241198
- return (n3 = parse3(n3)).transform(new TreeTransformer(function(e2) {
241365
+ return (n3 = parse4(n3)).transform(new TreeTransformer(function(e2) {
241199
241366
  if (e2 instanceof AST_Directive && "$ORIG" == e2.value) return MAP.splice(t);
241200
241367
  }));
241201
241368
  }, wrap_enclose: function(e) {
@@ -241203,7 +241370,7 @@ var AST_Toplevel = DEFNODE("Toplevel", "globals", function(e) {
241203
241370
  var t = e.indexOf(":");
241204
241371
  t < 0 && (t = e.length);
241205
241372
  var n3 = this.body;
241206
- return parse3(["(function(", e.slice(0, t), '){"$ORIG"})(', e.slice(t + 1), ")"].join("")).transform(new TreeTransformer(function(e2) {
241373
+ return parse4(["(function(", e.slice(0, t), '){"$ORIG"})(', e.slice(t + 1), ")"].join("")).transform(new TreeTransformer(function(e2) {
241207
241374
  if (e2 instanceof AST_Directive && "$ORIG" == e2.value) return MAP.splice(n3);
241208
241375
  }));
241209
241376
  } }, AST_Scope);
@@ -242411,7 +242578,7 @@ def_transform(AST_Node, noop2), def_transform(AST_LabeledStatement, function(e,
242411
242578
  }
242412
242579
  function u(e2, t2) {
242413
242580
  e2.DEFMETHOD("to_mozilla_ast", function(e3) {
242414
- return this, n4 = t2(this, e3), i2 = this.start, o2 = this.end, i2 && o2 ? (null != i2.pos && null != o2.endpos && (n4.range = [i2.pos, o2.endpos]), i2.line && (n4.loc = { start: { line: i2.line, column: i2.col }, end: o2.endline ? { line: o2.endline, column: o2.endcol } : null }, i2.file && (n4.loc.source = i2.file)), n4) : n4;
242581
+ return n4 = t2(this, e3), i2 = this.start, o2 = this.end, i2 && o2 ? (null != i2.pos && null != o2.endpos && (n4.range = [i2.pos, o2.endpos]), i2.line && (n4.loc = { start: { line: i2.line, column: i2.col }, end: o2.endline ? { line: o2.endline, column: o2.endcol } : null }, i2.file && (n4.loc.source = i2.file)), n4) : n4;
242415
242582
  var n4, i2, o2;
242416
242583
  });
242417
242584
  }
@@ -243819,7 +243986,10 @@ function has_break_or_continue(e, t) {
243819
243986
  return t instanceof AST_LabeledStatement && i.push(t), i.push(e), e.body.walk(i), n3;
243820
243987
  }
243821
243988
  function maintain_this_binding(e, t, n3) {
243822
- return e instanceof AST_UnaryPrefix && "delete" == e.operator || e instanceof AST_Call && e.expression === t && (n3 instanceof AST_Chain || n3 instanceof AST_PropAccess || n3 instanceof AST_SymbolRef && "eval" == n3.name) ? make_sequence(t, [make_node(AST_Number, t, { value: 0 }), n3]) : n3;
243989
+ return requires_sequence_to_maintain_binding(e, t, n3) ? make_sequence(t, [make_node(AST_Number, t, { value: 0 }), n3]) : n3;
243990
+ }
243991
+ function requires_sequence_to_maintain_binding(e, t, n3) {
243992
+ return e instanceof AST_UnaryPrefix && "delete" == e.operator || e instanceof AST_Call && e.expression === t && (n3 instanceof AST_Chain || n3 instanceof AST_PropAccess || n3 instanceof AST_SymbolRef && "eval" == n3.name);
243823
243993
  }
243824
243994
  function is_func_expr(e) {
243825
243995
  return e instanceof AST_Arrow || e instanceof AST_Function;
@@ -244671,6 +244841,23 @@ def_eval(AST_PropAccess, function(e, t) {
244671
244841
  return t && make_sequence(this, t);
244672
244842
  });
244673
244843
  var r_keep_assign = /keep_assign/;
244844
+ function is_used_in_expression(e) {
244845
+ for (let t, n3, i = -1; t = e.parent(i), n3 = e.parent(i + 1); i++) {
244846
+ if (!(n3 instanceof AST_Sequence)) {
244847
+ if (n3 instanceof AST_Unary) {
244848
+ const e2 = n3.operator;
244849
+ if ("void" === e2) return false;
244850
+ if ("typeof" === e2 || "+" === e2 || "-" === e2 || "!" === e2 || "~" === e2) continue;
244851
+ }
244852
+ return true;
244853
+ }
244854
+ if (n3.expressions.indexOf(t) !== n3.expressions.length - 1) {
244855
+ const t2 = e.parent(i + 2);
244856
+ return !(n3.expressions.length > 2 || 1 === n3.expressions.length || !requires_sequence_to_maintain_binding(t2, n3, n3.expressions[1]));
244857
+ }
244858
+ }
244859
+ return true;
244860
+ }
244674
244861
  function def_reduce_vars(e, t) {
244675
244862
  e.DEFMETHOD("reduce_vars", t);
244676
244863
  }
@@ -244786,11 +244973,14 @@ AST_Scope.DEFMETHOD("drop_unused", function(e) {
244786
244973
  var f = new TreeTransformer(function(u2, c2, _2) {
244787
244974
  var p2 = f.parent();
244788
244975
  if (i) {
244789
- const e2 = o(u2);
244790
- if (e2 instanceof AST_SymbolRef) {
244791
- var d = e2.definition(), m = r.has(d.id);
244976
+ const t2 = o(u2);
244977
+ if (t2 instanceof AST_SymbolRef) {
244978
+ var d = t2.definition(), m = r.has(d.id);
244792
244979
  if (u2 instanceof AST_Assign) {
244793
- if (!m || a.has(d.id) && a.get(d.id) !== u2) return maintain_this_binding(p2, u2, u2.right.transform(f));
244980
+ if (!m || a.has(d.id) && a.get(d.id) !== u2) {
244981
+ const t3 = u2.right.transform(f);
244982
+ return m || t3.has_side_effects(e) || is_used_in_expression(f) ? maintain_this_binding(p2, u2, t3) : _2 ? MAP.skip : make_node(AST_Number, u2, { value: 0 });
244983
+ }
244794
244984
  } else if (!m) return _2 ? MAP.skip : make_node(AST_Number, u2, { value: 0 });
244795
244985
  }
244796
244986
  }
@@ -244827,7 +245017,7 @@ AST_Scope.DEFMETHOD("drop_unused", function(e) {
244827
245017
  var _3 = make_node(AST_Assign, t2, { operator: "=", logical: false, left: l2, right: t2.value });
244828
245018
  a.get(o2.id) === t2 && a.set(o2.id, _3), D.push(_3.transform(f));
244829
245019
  }
244830
- return remove2(c3, t2), void o2.eliminated++;
245020
+ return remove3(c3, t2), void o2.eliminated++;
244831
245021
  }
244832
245022
  }
244833
245023
  t2.value ? (D.length > 0 && (y.length > 0 ? (D.push(t2.value), t2.value = make_sequence(t2.value, D)) : g.push(make_node(AST_SimpleStatement, u2, { body: make_sequence(u2, D) })), D = []), y.push(t2)) : b.push(t2);
@@ -244859,6 +245049,13 @@ AST_Scope.DEFMETHOD("drop_unused", function(e) {
244859
245049
  return l = u2, c2(u2, this), l = e2, u2;
244860
245050
  }
244861
245051
  }
245052
+ }, function(e2, t2) {
245053
+ if (e2 instanceof AST_Sequence) switch (e2.expressions.length) {
245054
+ case 0:
245055
+ return t2 ? MAP.skip : make_node(AST_Number, e2, { value: 0 });
245056
+ case 1:
245057
+ return e2.expressions[0];
245058
+ }
244862
245059
  });
244863
245060
  function p(e2, n4) {
244864
245061
  var i2;
@@ -245243,11 +245440,11 @@ function tighten_body(e, t) {
245243
245440
  if (s2 instanceof AST_If) {
245244
245441
  let n5, i3;
245245
245442
  if (n5 = aborts(s2.body), p2(n5) && (i3 = m2(s2.body, n5))) {
245246
- n5.label && remove2(n5.label.thedef.references, n5), a = true, (s2 = s2.clone()).condition = s2.condition.negate(t2), s2.body = make_node(AST_BlockStatement, s2, { body: as_statement_array(s2.alternative).concat(d2()) }), s2.alternative = make_node(AST_BlockStatement, s2, { body: i3 }), e2[r2] = s2.transform(t2);
245443
+ n5.label && remove3(n5.label.thedef.references, n5), a = true, (s2 = s2.clone()).condition = s2.condition.negate(t2), s2.body = make_node(AST_BlockStatement, s2, { body: as_statement_array(s2.alternative).concat(d2()) }), s2.alternative = make_node(AST_BlockStatement, s2, { body: i3 }), e2[r2] = s2.transform(t2);
245247
245444
  continue;
245248
245445
  }
245249
245446
  if (n5 = aborts(s2.alternative), p2(n5) && (i3 = m2(s2.alternative, n5))) {
245250
- n5.label && remove2(n5.label.thedef.references, n5), a = true, (s2 = s2.clone()).body = make_node(AST_BlockStatement, s2.body, { body: as_statement_array(s2.body).concat(d2()) }), s2.alternative = make_node(AST_BlockStatement, s2.alternative, { body: i3 }), e2[r2] = s2.transform(t2);
245447
+ n5.label && remove3(n5.label.thedef.references, n5), a = true, (s2 = s2.clone()).body = make_node(AST_BlockStatement, s2.body, { body: as_statement_array(s2.body).concat(d2()) }), s2.alternative = make_node(AST_BlockStatement, s2.alternative, { body: i3 }), e2[r2] = s2.transform(t2);
245251
245448
  continue;
245252
245449
  }
245253
245450
  }
@@ -245313,7 +245510,7 @@ function tighten_body(e, t) {
245313
245510
  var u2 = e2[o2];
245314
245511
  if (u2 instanceof AST_LoopControl) {
245315
245512
  var c2 = t2.loopcontrol_target(u2);
245316
- u2 instanceof AST_Break && !(c2 instanceof AST_IterationStatement) && loop_body(c2) === i2 || u2 instanceof AST_Continue && loop_body(c2) === i2 ? u2.label && remove2(u2.label.thedef.references, u2) : e2[r2++] = u2;
245513
+ u2 instanceof AST_Break && !(c2 instanceof AST_IterationStatement) && loop_body(c2) === i2 || u2 instanceof AST_Continue && loop_body(c2) === i2 ? u2.label && remove3(u2.label.thedef.references, u2) : e2[r2++] = u2;
245317
245514
  } else e2[r2++] = u2;
245318
245515
  if (aborts(u2)) {
245319
245516
  n4 = e2.slice(o2 + 1);
@@ -245778,7 +245975,7 @@ var Compressor = class extends TreeWalker {
245778
245975
  constructor(e, { false_by_default: t = false, mangle_options: n3 = false }) {
245779
245976
  super(), void 0 === e.defaults || e.defaults || (t = true), this.options = defaults3(e, { arguments: false, arrows: !t, booleans: !t, booleans_as_integers: false, collapse_vars: !t, comparisons: !t, computed_props: !t, conditionals: !t, dead_code: !t, defaults: true, directives: !t, drop_console: false, drop_debugger: !t, ecma: 5, evaluate: !t, expression: false, global_defs: false, hoist_funs: false, hoist_props: !t, hoist_vars: false, ie8: false, if_return: !t, inline: !t, join_vars: !t, keep_classnames: false, keep_fargs: true, keep_fnames: false, keep_infinity: false, lhs_constants: !t, loops: !t, module: false, negate_iife: !t, passes: 1, properties: !t, pure_getters: !t && "strict", pure_funcs: null, pure_new: false, reduce_funcs: !t, reduce_vars: !t, sequences: !t, side_effects: !t, switches: !t, top_retain: null, toplevel: !(!e || !e.top_retain), typeofs: !t, unsafe: false, unsafe_arrows: false, unsafe_comps: false, unsafe_Function: false, unsafe_math: false, unsafe_symbols: false, unsafe_methods: false, unsafe_proto: false, unsafe_regexp: false, unsafe_undefined: false, unused: !t, warnings: false }, true);
245780
245977
  var i = this.options.global_defs;
245781
- if ("object" == typeof i) for (var o in i) "@" === o[0] && HOP(i, o) && (i[o.slice(1)] = parse3(i[o], { expression: true }));
245978
+ if ("object" == typeof i) for (var o in i) "@" === o[0] && HOP(i, o) && (i[o.slice(1)] = parse4(i[o], { expression: true }));
245782
245979
  true === this.options.inline && (this.options.inline = 3);
245783
245980
  var r = this.options.pure_funcs;
245784
245981
  this.pure_funcs = "function" == typeof r ? r : r ? function(e2) {
@@ -246001,13 +246198,13 @@ def_optimize(AST_Directive, function(e, t) {
246001
246198
  var _, f, p = t.body[0].body;
246002
246199
  if (p instanceof AST_Assign && "=" == p.operator && (_ = p.left) instanceof AST_Symbol && a.has(_.name)) {
246003
246200
  if ((d = a.get(_.name)).value) break;
246004
- d.value = p.right, remove2(l, d), l.push(d), t.body.splice(0, 1);
246201
+ d.value = p.right, remove3(l, d), l.push(d), t.body.splice(0, 1);
246005
246202
  continue;
246006
246203
  }
246007
246204
  if (p instanceof AST_Sequence && (f = p.expressions[0]) instanceof AST_Assign && "=" == f.operator && (_ = f.left) instanceof AST_Symbol && a.has(_.name)) {
246008
246205
  var d;
246009
246206
  if ((d = a.get(_.name)).value) break;
246010
- d.value = f.right, remove2(l, d), l.push(d), t.body[0].body = make_sequence(p, p.expressions.slice(1));
246207
+ d.value = f.right, remove3(l, d), l.push(d), t.body[0].body = make_sequence(p, p.expressions.slice(1));
246011
246208
  continue;
246012
246209
  }
246013
246210
  }
@@ -246392,7 +246589,7 @@ def_optimize(AST_Directive, function(e, t) {
246392
246589
  if (e.args.every((e2) => e2 instanceof AST_String)) try {
246393
246590
  var y = "n(function(" + e.args.slice(0, -1).map(function(e2) {
246394
246591
  return e2.value;
246395
- }).join(",") + "){" + e.args[e.args.length - 1].value + "})", D = parse3(y), v = t.mangle_options();
246592
+ }).join(",") + "){" + e.args[e.args.length - 1].value + "})", D = parse4(y), v = t.mangle_options();
246396
246593
  D.figure_out_scope(v);
246397
246594
  var C2, k = new Compressor(t.options, { mangle_options: t._mangle_options });
246398
246595
  return (D = D.transform(k)).figure_out_scope(v), D.compute_char_frequency(v), D.mangle_names(v), walk2(D, (e2) => {
@@ -247172,7 +247369,7 @@ function* minify_sync_or_async(e, t, n3) {
247172
247369
  if (("string" == typeof e || t.parse.spidermonkey && !Array.isArray(e)) && (e = [e]), t.parse = t.parse || {}, t.parse.toplevel = null, t.parse.spidermonkey) t.parse.toplevel = AST_Node.from_mozilla_ast(Object.keys(e).reduce(function(t2, n4) {
247173
247370
  return t2 ? (t2.body = t2.body.concat(e[n4].body), t2) : e[n4];
247174
247371
  }, null));
247175
- else for (var s in delete t.parse.spidermonkey, e) if (HOP(e, s) && (t.parse.filename = s, t.parse.toplevel = parse3(e[s], t.parse), t.sourceMap && "inline" == t.sourceMap.content)) {
247372
+ else for (var s in delete t.parse.spidermonkey, e) if (HOP(e, s) && (t.parse.filename = s, t.parse.toplevel = parse4(e[s], t.parse), t.sourceMap && "inline" == t.sourceMap.content)) {
247176
247373
  if (Object.keys(e).length > 1) throw new Error("inline source map only works with singular input");
247177
247374
  t.sourceMap.content = read_source_map(e[s]);
247178
247375
  }
@@ -252683,6 +252880,7 @@ var validateConfig = (userConfig = {}, bootstrapConfig) => {
252683
252880
  devMode,
252684
252881
  extras: config.extras || {},
252685
252882
  flags,
252883
+ generateExportMaps: isBoolean(config.generateExportMaps) ? config.generateExportMaps : false,
252686
252884
  hashFileNames,
252687
252885
  hashedFileNameLength: (_c = config.hashedFileNameLength) != null ? _c : DEFAULT_HASHED_FILENAME_LENGTH,
252688
252886
  hydratedFlag: validateHydrated(config),
@@ -253433,8 +253631,8 @@ var createTable = (rows) => {
253433
253631
  content.push(createBorder(th));
253434
253632
  }
253435
253633
  const tds = rows.filter((r) => !r.isHeader);
253436
- tds.forEach((td3) => {
253437
- content.push(createRow(td3));
253634
+ tds.forEach((td2) => {
253635
+ content.push(createRow(td2));
253438
253636
  });
253439
253637
  return content;
253440
253638
  };
@@ -254545,11 +254743,11 @@ var generateComponentTypesFile = (config, buildCtx, areTypesInternal) => {
254545
254743
  if ((0, import_path42.isAbsolute)(filePath)) {
254546
254744
  importFilePath = normalizePath("./" + relative(config.srcDir, filePath)).replace(/\.(tsx|ts)$/, "");
254547
254745
  }
254548
- return `{ ${typeData.sort(sortImportNames).map((td3) => {
254549
- if (td3.localName === td3.importName) {
254550
- return `${td3.importName}`;
254746
+ return `{ ${typeData.sort(sortImportNames).map((td2) => {
254747
+ if (td2.localName === td2.importName) {
254748
+ return `${td2.importName}`;
254551
254749
  } else {
254552
- return `${td3.localName} as ${td3.importName}`;
254750
+ return `${td2.localName} as ${td2.importName}`;
254553
254751
  }
254554
254752
  }).join(`, `)} } from "${importFilePath}";`;
254555
254753
  });
@@ -257950,10 +258148,11 @@ var runTsProgram = async (config, compilerCtx, buildCtx, tsBuilder) => {
257950
258148
  const typesOutputTarget = config.outputTargets.filter(isOutputTargetDistTypes);
257951
258149
  const emittedDts = [];
257952
258150
  const emitCallback = (emitFilePath, data2, _w, _e, tsSourceFiles) => {
258151
+ if (emitFilePath.includes("e2e.") || emitFilePath.includes("spec.") || emitFilePath.endsWith("e2e.d.ts") || emitFilePath.endsWith("spec.d.ts")) {
258152
+ return;
258153
+ }
257953
258154
  if (emitFilePath.endsWith(".js") || emitFilePath.endsWith("js.map")) {
257954
258155
  updateModule(config, compilerCtx, buildCtx, tsSourceFiles[0], data2, emitFilePath, tsTypeChecker, null);
257955
- } else if (emitFilePath.endsWith(".e2e.d.ts") || emitFilePath.endsWith(".spec.d.ts") || emitFilePath === "e2e.d.ts" || emitFilePath === "spec.d.ts") {
257956
- return;
257957
258156
  } else if (emitFilePath.endsWith(".d.ts")) {
257958
258157
  const srcDtsPath = normalizePath(tsSourceFiles[0].fileName);
257959
258158
  const relativeEmitFilepath = getRelativeDts(config, srcDtsPath, emitFilePath);
@@ -258591,19 +258790,25 @@ var packageJsonWarn = (config, compilerCtx, buildCtx, msg, jsonField) => {
258591
258790
  var PRIMARY_PACKAGE_TARGET_CONFIGS = {
258592
258791
  dist: {
258593
258792
  getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js"))),
258594
- getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts")))
258793
+ getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts"))),
258794
+ getMainPath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.cjs.js")))
258595
258795
  },
258596
258796
  "dist-collection": {
258597
- getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js")))
258797
+ getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js"))),
258798
+ getTypesPath: () => null,
258799
+ getMainPath: () => null
258598
258800
  },
258599
258801
  "dist-custom-elements": {
258600
258802
  getModulePath: (rootDir, outputTargetDir) => normalizePath(relative(rootDir, join(outputTargetDir, "index.js"))),
258601
258803
  getTypesPath: (rootDir, outputTargetConfig) => {
258602
258804
  return outputTargetConfig.generateTypeDeclarations ? normalizePath(relative(rootDir, join(outputTargetConfig.dir, "index.d.ts"))) : null;
258603
- }
258805
+ },
258806
+ getMainPath: () => null
258604
258807
  },
258605
258808
  "dist-types": {
258606
- getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts")))
258809
+ getModulePath: () => null,
258810
+ getTypesPath: (rootDir, outputTargetConfig) => normalizePath(relative(rootDir, join(outputTargetConfig.typesDir, "index.d.ts"))),
258811
+ getMainPath: () => null
258607
258812
  }
258608
258813
  };
258609
258814
  var validatePrimaryPackageOutputTarget = (config, compilerCtx, buildCtx) => {
@@ -258793,6 +258998,58 @@ var validateBuildFiles = (config, compilerCtx, buildCtx) => {
258793
258998
  ]);
258794
258999
  };
258795
259000
 
259001
+ // src/compiler/build/write-export-maps.ts
259002
+ var import_child_process = require("child_process");
259003
+ var writeExportMaps = (config, buildCtx) => {
259004
+ var _a;
259005
+ const eligiblePrimaryTargets = config.outputTargets.filter(isEligiblePrimaryPackageOutputTarget);
259006
+ if (eligiblePrimaryTargets.length > 0) {
259007
+ const primaryTarget = (_a = eligiblePrimaryTargets.find((o) => o.isPrimaryPackageOutputTarget)) != null ? _a : eligiblePrimaryTargets[0];
259008
+ const outputTargetConfig = PRIMARY_PACKAGE_TARGET_CONFIGS[primaryTarget.type];
259009
+ if (outputTargetConfig.getModulePath) {
259010
+ const importPath = outputTargetConfig.getModulePath(config.rootDir, primaryTarget.dir);
259011
+ if (importPath) {
259012
+ (0, import_child_process.execSync)(`npm pkg set "exports[.][import]"="${importPath}"`);
259013
+ }
259014
+ }
259015
+ if (outputTargetConfig.getMainPath) {
259016
+ const requirePath = outputTargetConfig.getMainPath(config.rootDir, primaryTarget.dir);
259017
+ if (requirePath) {
259018
+ (0, import_child_process.execSync)(`npm pkg set "exports[.][require]"="${requirePath}"`);
259019
+ }
259020
+ }
259021
+ if (outputTargetConfig.getTypesPath) {
259022
+ const typesPath = outputTargetConfig.getTypesPath(config.rootDir, primaryTarget);
259023
+ if (typesPath) {
259024
+ (0, import_child_process.execSync)(`npm pkg set "exports[.][types]"="${typesPath}"`);
259025
+ }
259026
+ }
259027
+ }
259028
+ const distLazyLoader = config.outputTargets.find(isOutputTargetDistLazyLoader);
259029
+ if (distLazyLoader != null) {
259030
+ let outDir = relative(config.rootDir, distLazyLoader.dir);
259031
+ if (!outDir.startsWith(".")) {
259032
+ outDir = "./" + outDir;
259033
+ }
259034
+ (0, import_child_process.execSync)(`npm pkg set "exports[./loader][import]"="${outDir}/index.js"`);
259035
+ (0, import_child_process.execSync)(`npm pkg set "exports[./loader][require]"="${outDir}/index.cjs"`);
259036
+ (0, import_child_process.execSync)(`npm pkg set "exports[./loader][types]"="${outDir}/index.d.ts"`);
259037
+ }
259038
+ const distCustomElements = config.outputTargets.find(isOutputTargetDistCustomElements);
259039
+ if (distCustomElements != null) {
259040
+ let outDir = relative(config.rootDir, distCustomElements.dir);
259041
+ if (!outDir.startsWith(".")) {
259042
+ outDir = "./" + outDir;
259043
+ }
259044
+ buildCtx.components.forEach((cmp) => {
259045
+ (0, import_child_process.execSync)(`npm pkg set "exports[./${cmp.tagName}][import]"="${outDir}/${cmp.tagName}.js"`);
259046
+ if (distCustomElements.generateTypeDeclarations) {
259047
+ (0, import_child_process.execSync)(`npm pkg set "exports[./${cmp.tagName}][types]"="${outDir}/${cmp.tagName}.d.ts"`);
259048
+ }
259049
+ });
259050
+ }
259051
+ };
259052
+
258796
259053
  // src/compiler/build/write-build.ts
258797
259054
  var writeBuild = async (config, compilerCtx, buildCtx) => {
258798
259055
  const timeSpan = buildCtx.createTimeSpan(`writeBuildFiles started`, true);
@@ -258807,6 +259064,9 @@ var writeBuild = async (config, compilerCtx, buildCtx) => {
258807
259064
  await compilerCtx.cache.commit();
258808
259065
  buildCtx.debug(`in-memory-fs: ${compilerCtx.fs.getMemoryStats()}`);
258809
259066
  buildCtx.debug(`cache: ${compilerCtx.cache.getMemoryStats()}`);
259067
+ if (config.generateExportMaps) {
259068
+ writeExportMaps(config, buildCtx);
259069
+ }
258810
259070
  await outputServiceWorkers(config, buildCtx);
258811
259071
  await validateBuildFiles(config, compilerCtx, buildCtx);
258812
259072
  } catch (e) {
@@ -258851,7 +259111,7 @@ var build = async (config, compilerCtx, buildCtx, tsBuilder) => {
258851
259111
 
258852
259112
  // src/compiler/build/full-build.ts
258853
259113
  var createFullBuild = async (config, compilerCtx) => {
258854
- return new Promise((resolve8) => {
259114
+ return new Promise((resolve9) => {
258855
259115
  let tsWatchProgram = null;
258856
259116
  compilerCtx.events.on("fileUpdate", (p) => {
258857
259117
  config.logger.debug(`fileUpdate: ${p}`);
@@ -258868,7 +259128,7 @@ var createFullBuild = async (config, compilerCtx) => {
258868
259128
  tsWatchProgram.close();
258869
259129
  tsWatchProgram = null;
258870
259130
  }
258871
- resolve8(result2);
259131
+ resolve9(result2);
258872
259132
  }
258873
259133
  };
258874
259134
  createTsBuildProgram(config, onBuild).then((program) => {
@@ -259172,7 +259432,7 @@ var createWatchBuild = async (config, compilerCtx) => {
259172
259432
  let isRebuild = false;
259173
259433
  let tsWatchProgram;
259174
259434
  let closeResolver;
259175
- const watchWaiter = new Promise((resolve8) => closeResolver = resolve8);
259435
+ const watchWaiter = new Promise((resolve9) => closeResolver = resolve9);
259176
259436
  const dirsAdded = /* @__PURE__ */ new Set();
259177
259437
  const dirsDeleted = /* @__PURE__ */ new Set();
259178
259438
  const filesAdded = /* @__PURE__ */ new Set();
@@ -259716,7 +259976,7 @@ var createInMemoryFs = (sys) => {
259716
259976
  }
259717
259977
  return fileText;
259718
259978
  };
259719
- const remove3 = async (itemPath) => {
259979
+ const remove4 = async (itemPath) => {
259720
259980
  const stats = await stat2(itemPath);
259721
259981
  if (stats.isDirectory === true) {
259722
259982
  await removeDir(itemPath);
@@ -260091,7 +260351,7 @@ var createInMemoryFs = (sys) => {
260091
260351
  readFile: readFile3,
260092
260352
  readFileSync,
260093
260353
  readdir,
260094
- remove: remove3,
260354
+ remove: remove4,
260095
260355
  stat: stat2,
260096
260356
  statSync,
260097
260357
  sys,
@@ -262286,13 +262546,13 @@ var import_path65 = require("path");
262286
262546
 
262287
262547
  // src/hydrate/runner/render-utils.ts
262288
262548
  var createHydrateBuildId = () => {
262289
- let chars4 = "abcdefghijklmnopqrstuvwxyz";
262549
+ let chars3 = "abcdefghijklmnopqrstuvwxyz";
262290
262550
  let buildId2 = "";
262291
262551
  while (buildId2.length < 8) {
262292
- const char = chars4[Math.floor(Math.random() * chars4.length)];
262552
+ const char = chars3[Math.floor(Math.random() * chars3.length)];
262293
262553
  buildId2 += char;
262294
262554
  if (buildId2.length === 1) {
262295
- chars4 += "0123456789";
262555
+ chars3 += "0123456789";
262296
262556
  }
262297
262557
  }
262298
262558
  return buildId2;
@@ -262824,8 +263084,8 @@ var runPrerenderOutputTarget = async (workerCtx, results, diagnostics, config, d
262824
263084
  manager.templateId = await createPrerenderTemplate(config, templateData.html);
262825
263085
  manager.staticSite = templateData.staticSite;
262826
263086
  manager.componentGraphPath = await createComponentGraphPath(config, componentGraph, outputTarget);
262827
- await new Promise((resolve8) => {
262828
- manager.resolve = resolve8;
263087
+ await new Promise((resolve9) => {
263088
+ manager.resolve = resolve9;
262829
263089
  config.sys.nextTick(() => drainPrerenderQueue(results, manager));
262830
263090
  });
262831
263091
  if (manager.isDebug) {