typescript 5.0.0-dev.20221108 → 5.0.0-dev.20221110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/typescript.js CHANGED
@@ -117,7 +117,6 @@ var ts = (() => {
117
117
  LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
118
118
  ListFormat: () => ListFormat,
119
119
  LogLevel: () => LogLevel,
120
- Map: () => Map,
121
120
  MemberOverrideStatus: () => MemberOverrideStatus,
122
121
  ModifierFlags: () => ModifierFlags,
123
122
  ModuleDetectionKind: () => ModuleDetectionKind,
@@ -160,7 +159,6 @@ var ts = (() => {
160
159
  SemanticClassificationFormat: () => SemanticClassificationFormat,
161
160
  SemanticMeaning: () => SemanticMeaning,
162
161
  SemicolonPreference: () => SemicolonPreference,
163
- Set: () => Set,
164
162
  SignatureCheckMode: () => SignatureCheckMode,
165
163
  SignatureFlags: () => SignatureFlags,
166
164
  SignatureHelp: () => ts_SignatureHelp_exports,
@@ -2551,37 +2549,13 @@ var ts = (() => {
2551
2549
 
2552
2550
  // src/compiler/corePublic.ts
2553
2551
  var versionMajorMinor = "5.0";
2554
- var version = `${versionMajorMinor}.0-dev.20221108`;
2552
+ var version = `${versionMajorMinor}.0-dev.20221110`;
2555
2553
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2556
2554
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2557
2555
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
2558
2556
  Comparison3[Comparison3["GreaterThan"] = 1] = "GreaterThan";
2559
2557
  return Comparison3;
2560
2558
  })(Comparison || {});
2561
- var NativeCollections;
2562
- ((NativeCollections2) => {
2563
- const globals = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : void 0;
2564
- function tryGetNativeMap() {
2565
- const gMap = globals == null ? void 0 : globals.Map;
2566
- const constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : void 0;
2567
- if (!constructor) {
2568
- throw new Error("No compatible Map implementation found.");
2569
- }
2570
- return constructor;
2571
- }
2572
- NativeCollections2.tryGetNativeMap = tryGetNativeMap;
2573
- function tryGetNativeSet() {
2574
- const gSet = globals == null ? void 0 : globals.Set;
2575
- const constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : void 0;
2576
- if (!constructor) {
2577
- throw new Error("No compatible Set implementation found.");
2578
- }
2579
- return constructor;
2580
- }
2581
- NativeCollections2.tryGetNativeSet = tryGetNativeSet;
2582
- })(NativeCollections || (NativeCollections = {}));
2583
- var Map = NativeCollections.tryGetNativeMap();
2584
- var Set = NativeCollections.tryGetNativeSet();
2585
2559
 
2586
2560
  // src/compiler/core.ts
2587
2561
  function getIterator(iterable) {
@@ -2596,8 +2570,8 @@ var ts = (() => {
2596
2570
  }
2597
2571
  }
2598
2572
  var emptyArray = [];
2599
- var emptyMap = new Map();
2600
- var emptySet = new Set();
2573
+ var emptyMap = /* @__PURE__ */ new Map();
2574
+ var emptySet = /* @__PURE__ */ new Set();
2601
2575
  function length(array) {
2602
2576
  return array ? array.length : 0;
2603
2577
  }
@@ -2679,7 +2653,7 @@ var ts = (() => {
2679
2653
  }
2680
2654
  function zipToMap(keys, values) {
2681
2655
  Debug.assert(keys.length === values.length);
2682
- const map2 = new Map();
2656
+ const map2 = /* @__PURE__ */ new Map();
2683
2657
  for (let i = 0; i < keys.length; ++i) {
2684
2658
  map2.set(keys[i], values[i]);
2685
2659
  }
@@ -2994,7 +2968,7 @@ var ts = (() => {
2994
2968
  if (!map2) {
2995
2969
  return void 0;
2996
2970
  }
2997
- const result = new Map();
2971
+ const result = /* @__PURE__ */ new Map();
2998
2972
  map2.forEach((value, key) => {
2999
2973
  const entry = f(key, value);
3000
2974
  if (entry !== void 0) {
@@ -3008,7 +2982,7 @@ var ts = (() => {
3008
2982
  }
3009
2983
  function mapDefinedValues(set, f) {
3010
2984
  if (set) {
3011
- const result = new Set();
2985
+ const result = /* @__PURE__ */ new Set();
3012
2986
  set.forEach((value) => {
3013
2987
  const newValue = f(value);
3014
2988
  if (newValue !== void 0) {
@@ -3081,7 +3055,7 @@ var ts = (() => {
3081
3055
  if (!map2) {
3082
3056
  return void 0;
3083
3057
  }
3084
- const result = new Map();
3058
+ const result = /* @__PURE__ */ new Map();
3085
3059
  map2.forEach((value, key) => {
3086
3060
  const [newKey, newValue] = f(key, value);
3087
3061
  result.set(newKey, newValue);
@@ -3547,7 +3521,7 @@ var ts = (() => {
3547
3521
  return true;
3548
3522
  }
3549
3523
  function arrayToMap(array, makeKey, makeValue = identity) {
3550
- const result = new Map();
3524
+ const result = /* @__PURE__ */ new Map();
3551
3525
  for (const value of array) {
3552
3526
  const key = makeKey(value);
3553
3527
  if (key !== void 0)
@@ -3606,7 +3580,7 @@ var ts = (() => {
3606
3580
  return fn ? fn.bind(obj) : void 0;
3607
3581
  }
3608
3582
  function createMultiMap() {
3609
- const map2 = new Map();
3583
+ const map2 = /* @__PURE__ */ new Map();
3610
3584
  map2.add = multiMapAdd;
3611
3585
  map2.remove = multiMapRemove;
3612
3586
  return map2;
@@ -3663,12 +3637,12 @@ var ts = (() => {
3663
3637
  };
3664
3638
  }
3665
3639
  function createSet(getHashCode, equals) {
3666
- const multiMap = new Map();
3640
+ const multiMap = /* @__PURE__ */ new Map();
3667
3641
  let size = 0;
3668
3642
  function getElementIterator() {
3669
3643
  const valueIt = multiMap.values();
3670
3644
  let arrayIt;
3671
- return {
3645
+ const it = {
3672
3646
  next: () => {
3673
3647
  while (true) {
3674
3648
  if (arrayIt) {
@@ -3688,8 +3662,12 @@ var ts = (() => {
3688
3662
  arrayIt = arrayIterator(n.value);
3689
3663
  }
3690
3664
  }
3665
+ },
3666
+ [Symbol.iterator]: () => {
3667
+ return it;
3691
3668
  }
3692
3669
  };
3670
+ return it;
3693
3671
  }
3694
3672
  const set = {
3695
3673
  has(element) {
@@ -3768,11 +3746,11 @@ var ts = (() => {
3768
3746
  for (const elements of arrayFrom(multiMap.values())) {
3769
3747
  if (isArray(elements)) {
3770
3748
  for (const element of elements) {
3771
- action(element, element);
3749
+ action(element, element, set);
3772
3750
  }
3773
3751
  } else {
3774
3752
  const element = elements;
3775
- action(element, element);
3753
+ action(element, element, set);
3776
3754
  }
3777
3755
  }
3778
3756
  },
@@ -3784,13 +3762,19 @@ var ts = (() => {
3784
3762
  },
3785
3763
  entries() {
3786
3764
  const it = getElementIterator();
3787
- return {
3765
+ const it2 = {
3788
3766
  next: () => {
3789
3767
  const n = it.next();
3790
3768
  return n.done ? n : { value: [n.value, n.value] };
3791
- }
3769
+ },
3770
+ [Symbol.iterator]: () => it2
3792
3771
  };
3793
- }
3772
+ return it2;
3773
+ },
3774
+ [Symbol.iterator]: () => {
3775
+ return getElementIterator();
3776
+ },
3777
+ [Symbol.toStringTag]: multiMap[Symbol.toStringTag]
3794
3778
  };
3795
3779
  return set;
3796
3780
  }
@@ -3853,7 +3837,7 @@ var ts = (() => {
3853
3837
  };
3854
3838
  }
3855
3839
  function memoizeOne(callback) {
3856
- const map2 = new Map();
3840
+ const map2 = /* @__PURE__ */ new Map();
3857
3841
  return (arg) => {
3858
3842
  const key = `${typeof arg}:${arg}`;
3859
3843
  let value = map2.get(key);
@@ -4565,7 +4549,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
4565
4549
  return value.toString();
4566
4550
  }
4567
4551
  Debug2.formatEnum = formatEnum;
4568
- const enumMemberCache = new Map();
4552
+ const enumMemberCache = /* @__PURE__ */ new Map();
4569
4553
  function getEnumMembers(enumObject) {
4570
4554
  const existing = enumMemberCache.get(enumObject);
4571
4555
  if (existing) {
@@ -4971,7 +4955,7 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;
4971
4955
  const links = /* @__PURE__ */ Object.create(null);
4972
4956
  const nodes = [];
4973
4957
  const edges = [];
4974
- const root = buildGraphNode(flowNode, new Set());
4958
+ const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set());
4975
4959
  for (const node of nodes) {
4976
4960
  node.text = renderFlowNode(node.flowNode, node.circular);
4977
4961
  computeLevel(node);
@@ -5714,9 +5698,9 @@ ${lanes.join("\n")}
5714
5698
  var nullTimer = { enter: noop, exit: noop };
5715
5699
  var enabled = false;
5716
5700
  var timeorigin = timestamp();
5717
- var marks = new Map();
5718
- var counts = new Map();
5719
- var durations = new Map();
5701
+ var marks = /* @__PURE__ */ new Map();
5702
+ var counts = /* @__PURE__ */ new Map();
5703
+ var durations = /* @__PURE__ */ new Map();
5720
5704
  function mark(markName) {
5721
5705
  var _a2;
5722
5706
  if (enabled) {
@@ -5942,7 +5926,7 @@ ${lanes.join("\n")}
5942
5926
  mark("beginDumpTypes");
5943
5927
  const typesPath = legend[legend.length - 1].typesPath;
5944
5928
  const typesFd = fs.openSync(typesPath, "w");
5945
- const recursionIdentityMap = new Map();
5929
+ const recursionIdentityMap = /* @__PURE__ */ new Map();
5946
5930
  fs.writeSync(typesFd, "[");
5947
5931
  const numTypes = types.length;
5948
5932
  for (let i = 0; i < numTypes; i++) {
@@ -7929,7 +7913,7 @@ ${lanes.join("\n")}
7929
7913
  }
7930
7914
  function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
7931
7915
  const fileWatcherCallbacks = createMultiMap();
7932
- const dirWatchers = new Map();
7916
+ const dirWatchers = /* @__PURE__ */ new Map();
7933
7917
  const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);
7934
7918
  return nonPollingWatchFile;
7935
7919
  function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
@@ -8063,9 +8047,9 @@ ${lanes.join("\n")}
8063
8047
  setTimeout: setTimeout2,
8064
8048
  clearTimeout: clearTimeout2
8065
8049
  }) {
8066
- const cache = new Map();
8050
+ const cache = /* @__PURE__ */ new Map();
8067
8051
  const callbackCache = createMultiMap();
8068
- const cacheToUpdateChildWatches = new Map();
8052
+ const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
8069
8053
  let timerToUpdateChildWatches;
8070
8054
  const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);
8071
8055
  const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);
@@ -8167,7 +8151,7 @@ ${lanes.join("\n")}
8167
8151
  timerToUpdateChildWatches = void 0;
8168
8152
  sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);
8169
8153
  const start = timestamp();
8170
- const invokeMap = new Map();
8154
+ const invokeMap = /* @__PURE__ */ new Map();
8171
8155
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
8172
8156
  const result = cacheToUpdateChildWatches.entries().next();
8173
8157
  Debug.assert(!result.done);
@@ -8288,9 +8272,9 @@ ${lanes.join("\n")}
8288
8272
  inodeWatching,
8289
8273
  sysLog: sysLog2
8290
8274
  }) {
8291
- const pollingWatches = new Map();
8292
- const fsWatches = new Map();
8293
- const fsWatchesRecursive = new Map();
8275
+ const pollingWatches = /* @__PURE__ */ new Map();
8276
+ const fsWatches = /* @__PURE__ */ new Map();
8277
+ const fsWatchesRecursive = /* @__PURE__ */ new Map();
8294
8278
  let dynamicPollingWatchFile;
8295
8279
  let fixedChunkSizePollingWatchFile;
8296
8280
  let nonPollingWatchFile;
@@ -8744,7 +8728,7 @@ ${lanes.join("\n")}
8744
8728
  }
8745
8729
  function cleanupPaths(profile) {
8746
8730
  let externalFileCounter = 0;
8747
- const remappedPaths = new Map();
8731
+ const remappedPaths = /* @__PURE__ */ new Map();
8748
8732
  const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath));
8749
8733
  const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
8750
8734
  for (const node of profile.nodes) {
@@ -14617,7 +14601,7 @@ ${lanes.join("\n")}
14617
14601
  return filter(symbol.declarations || emptyArray, (d) => d.kind === kind);
14618
14602
  }
14619
14603
  function createSymbolTable(symbols) {
14620
- const result = new Map();
14604
+ const result = /* @__PURE__ */ new Map();
14621
14605
  if (symbols) {
14622
14606
  for (const symbol of symbols) {
14623
14607
  result.set(symbol.escapedName, symbol);
@@ -14909,7 +14893,7 @@ ${lanes.join("\n")}
14909
14893
  commentDirective
14910
14894
  ])
14911
14895
  );
14912
- const usedLines = new Map();
14896
+ const usedLines = /* @__PURE__ */ new Map();
14913
14897
  return { getUnusedExpectations, markUsed };
14914
14898
  function getUnusedExpectations() {
14915
14899
  return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 /* ExpectError */ && !usedLines.get(line)).map(([_, directive]) => directive);
@@ -17346,7 +17330,7 @@ ${lanes.join("\n")}
17346
17330
  function createDiagnosticCollection() {
17347
17331
  let nonFileDiagnostics = [];
17348
17332
  const filesWithDiagnostics = [];
17349
- const fileDiagnostics = new Map();
17333
+ const fileDiagnostics = /* @__PURE__ */ new Map();
17350
17334
  let hasReadNonFileDiagnostics = false;
17351
17335
  return {
17352
17336
  add,
@@ -19215,7 +19199,7 @@ ${lanes.join("\n")}
19215
19199
  getSymlinkedFiles: () => symlinkedFiles,
19216
19200
  getSymlinkedDirectories: () => symlinkedDirectories,
19217
19201
  getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,
19218
- setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = new Map())).set(path, real),
19202
+ setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real),
19219
19203
  setSymlinkedDirectory: (symlink, real) => {
19220
19204
  let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);
19221
19205
  if (!containsIgnoredPath(symlinkPath)) {
@@ -19223,7 +19207,7 @@ ${lanes.join("\n")}
19223
19207
  if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) {
19224
19208
  (symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(ensureTrailingDirectorySeparator(real.realPath), symlink);
19225
19209
  }
19226
- (symlinkedDirectories || (symlinkedDirectories = new Map())).set(symlinkPath, real);
19210
+ (symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real);
19227
19211
  }
19228
19212
  },
19229
19213
  setSymlinksFromResolutions(files, typeReferenceDirectives) {
@@ -19400,7 +19384,7 @@ ${lanes.join("\n")}
19400
19384
  const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);
19401
19385
  const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);
19402
19386
  const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
19403
- const visited = new Map();
19387
+ const visited = /* @__PURE__ */ new Map();
19404
19388
  const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);
19405
19389
  for (const basePath of patterns.basePaths) {
19406
19390
  visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
@@ -20120,7 +20104,7 @@ ${lanes.join("\n")}
20120
20104
  parenthesizeLeadingTypeArgument
20121
20105
  };
20122
20106
  function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {
20123
- binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = new Map());
20107
+ binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map());
20124
20108
  let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);
20125
20109
  if (!parenthesizerRule) {
20126
20110
  parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node);
@@ -20129,7 +20113,7 @@ ${lanes.join("\n")}
20129
20113
  return parenthesizerRule;
20130
20114
  }
20131
20115
  function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {
20132
- binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = new Map());
20116
+ binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map());
20133
20117
  let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);
20134
20118
  if (!parenthesizerRule) {
20135
20119
  parenthesizerRule = (node) => parenthesizeRightSideOfBinary(operatorKind, void 0, node);
@@ -24424,7 +24408,7 @@ ${lanes.join("\n")}
24424
24408
  if (leftStandardPrologueEnd === 0) {
24425
24409
  left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd));
24426
24410
  } else {
24427
- const leftPrologues = new Map();
24411
+ const leftPrologues = /* @__PURE__ */ new Map();
24428
24412
  for (let i = 0; i < leftStandardPrologueEnd; i++) {
24429
24413
  const leftPrologue = statements[i];
24430
24414
  leftPrologues.set(leftPrologue.expression.text, true);
@@ -24848,7 +24832,7 @@ ${lanes.join("\n")}
24848
24832
  node.declarationPath = declarationPath;
24849
24833
  node.declarationMapPath = declarationMapPath;
24850
24834
  node.buildInfoPath = buildInfoPath;
24851
- const cache = new Map();
24835
+ const cache = /* @__PURE__ */ new Map();
24852
24836
  const textGetter = (path) => {
24853
24837
  if (path === void 0)
24854
24838
  return void 0;
@@ -28199,8 +28183,8 @@ ${lanes.join("\n")}
28199
28183
  languageVariant = getLanguageVariant(_scriptKind);
28200
28184
  parseDiagnostics = [];
28201
28185
  parsingContext = 0;
28202
- identifiers = new Map();
28203
- privateIdentifiers = new Map();
28186
+ identifiers = /* @__PURE__ */ new Map();
28187
+ privateIdentifiers = /* @__PURE__ */ new Map();
28204
28188
  identifierCount = 0;
28205
28189
  nodeCount = 0;
28206
28190
  sourceFlags = 0;
@@ -30685,7 +30669,7 @@ ${lanes.join("\n")}
30685
30669
  }
30686
30670
  const result = parseParenthesizedArrowFunctionExpression(false, allowReturnTypeInArrowFunction);
30687
30671
  if (!result) {
30688
- (notParenthesizedArrow || (notParenthesizedArrow = new Set())).add(tokenPos);
30672
+ (notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos);
30689
30673
  }
30690
30674
  return result;
30691
30675
  }
@@ -34143,7 +34127,7 @@ ${lanes.join("\n")}
34143
34127
  const comment = sourceText.substring(range.pos, range.end);
34144
34128
  extractPragmas(pragmas, range, comment);
34145
34129
  }
34146
- context.pragmas = new Map();
34130
+ context.pragmas = /* @__PURE__ */ new Map();
34147
34131
  for (const pragma of pragmas) {
34148
34132
  if (context.pragmas.has(pragma.name)) {
34149
34133
  const currentValue = context.pragmas.get(pragma.name);
@@ -34230,7 +34214,7 @@ ${lanes.join("\n")}
34230
34214
  }
34231
34215
  });
34232
34216
  }
34233
- var namedArgRegExCache = new Map();
34217
+ var namedArgRegExCache = /* @__PURE__ */ new Map();
34234
34218
  function getNamedArgRegEx(name) {
34235
34219
  if (namedArgRegExCache.has(name)) {
34236
34220
  return namedArgRegExCache.get(name);
@@ -35693,8 +35677,8 @@ ${lanes.join("\n")}
35693
35677
  }
35694
35678
  ];
35695
35679
  function createOptionNameMap(optionDeclarations2) {
35696
- const optionsNameMap = new Map();
35697
- const shortOptionNames = new Map();
35680
+ const optionsNameMap = /* @__PURE__ */ new Map();
35681
+ const shortOptionNames = /* @__PURE__ */ new Map();
35698
35682
  forEach(optionDeclarations2, (option) => {
35699
35683
  optionsNameMap.set(option.name.toLowerCase(), option);
35700
35684
  if (option.shortName) {
@@ -36419,7 +36403,7 @@ ${lanes.join("\n")}
36419
36403
  return serializeOptionBaseObject(options, getWatchOptionsNameMap());
36420
36404
  }
36421
36405
  function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) {
36422
- const result = new Map();
36406
+ const result = /* @__PURE__ */ new Map();
36423
36407
  const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames);
36424
36408
  for (const name in options) {
36425
36409
  if (hasProperty(options, name)) {
@@ -36487,7 +36471,7 @@ ${lanes.join("\n")}
36487
36471
  return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));
36488
36472
  }
36489
36473
  function writeConfigurations() {
36490
- const categorizedOptions = new Map();
36474
+ const categorizedOptions = /* @__PURE__ */ new Map();
36491
36475
  categorizedOptions.set(Diagnostics.Projects, []);
36492
36476
  categorizedOptions.set(Diagnostics.Language_and_Environment, []);
36493
36477
  categorizedOptions.set(Diagnostics.Modules, []);
@@ -37062,9 +37046,9 @@ ${lanes.join("\n")}
37062
37046
  function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) {
37063
37047
  basePath = normalizePath(basePath);
37064
37048
  const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
37065
- const literalFileMap = new Map();
37066
- const wildcardFileMap = new Map();
37067
- const wildCardJsonFileMap = new Map();
37049
+ const literalFileMap = /* @__PURE__ */ new Map();
37050
+ const wildcardFileMap = /* @__PURE__ */ new Map();
37051
+ const wildCardJsonFileMap = /* @__PURE__ */ new Map();
37068
37052
  const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs;
37069
37053
  const supportedExtensions = getSupportedExtensions(options, extraFileExtensions);
37070
37054
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
@@ -37676,8 +37660,8 @@ ${lanes.join("\n")}
37676
37660
  return result;
37677
37661
  }
37678
37662
  function createCacheWithRedirects(options) {
37679
- let ownMap = new Map();
37680
- const redirectsMap = new Map();
37663
+ let ownMap = /* @__PURE__ */ new Map();
37664
+ const redirectsMap = /* @__PURE__ */ new Map();
37681
37665
  return {
37682
37666
  getOwnMap,
37683
37667
  redirectsMap,
@@ -37702,7 +37686,7 @@ ${lanes.join("\n")}
37702
37686
  const path = redirectedReference.sourceFile.path;
37703
37687
  let redirects = redirectsMap.get(path);
37704
37688
  if (!redirects) {
37705
- redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? new Map() : ownMap;
37689
+ redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? /* @__PURE__ */ new Map() : ownMap;
37706
37690
  redirectsMap.set(path, redirects);
37707
37691
  }
37708
37692
  return redirects;
@@ -37719,7 +37703,7 @@ ${lanes.join("\n")}
37719
37703
  return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName));
37720
37704
  }
37721
37705
  function setPackageJsonInfo(packageJsonPath, info) {
37722
- (cache || (cache = new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
37706
+ (cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
37723
37707
  }
37724
37708
  function clear2() {
37725
37709
  cache = void 0;
@@ -37780,8 +37764,8 @@ ${lanes.join("\n")}
37780
37764
  }
37781
37765
  }
37782
37766
  function createModeAwareCache() {
37783
- const underlying = new Map();
37784
- const memoizedReverseKeys = new Map();
37767
+ const underlying = /* @__PURE__ */ new Map();
37768
+ const memoizedReverseKeys = /* @__PURE__ */ new Map();
37785
37769
  const cache = {
37786
37770
  get(specifier, mode) {
37787
37771
  return underlying.get(getUnderlyingCacheKey(specifier, mode));
@@ -37858,7 +37842,7 @@ ${lanes.join("\n")}
37858
37842
  return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === void 0 ? nonRelativeModuleName : `${mode}|${nonRelativeModuleName}`, createPerModuleNameCache);
37859
37843
  }
37860
37844
  function createPerModuleNameCache() {
37861
- const directoryPathMap = new Map();
37845
+ const directoryPathMap = /* @__PURE__ */ new Map();
37862
37846
  return { get, set };
37863
37847
  function get(directory) {
37864
37848
  return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));
@@ -39285,7 +39269,7 @@ ${lanes.join("\n")}
39285
39269
  }
39286
39270
  return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */;
39287
39271
  }
39288
- function getModuleInstanceStateCached(node, visited = new Map()) {
39272
+ function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) {
39289
39273
  const nodeId = getNodeId(node);
39290
39274
  if (visited.has(nodeId)) {
39291
39275
  return visited.get(nodeId) || 0 /* NonInstantiated */;
@@ -39437,7 +39421,7 @@ ${lanes.join("\n")}
39437
39421
  options = opts;
39438
39422
  languageVersion = getEmitScriptTarget(options);
39439
39423
  inStrictMode = bindInStrictMode(file, opts);
39440
- classifiableNames = new Set();
39424
+ classifiableNames = /* @__PURE__ */ new Set();
39441
39425
  symbolCount = 0;
39442
39426
  Symbol46 = objectAllocator.getSymbolConstructor();
39443
39427
  Debug.attachFlowNodeDebugInfo(unreachableFlow);
@@ -41563,7 +41547,7 @@ ${lanes.join("\n")}
41563
41547
  }
41564
41548
  function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {
41565
41549
  if (symbol) {
41566
- (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = new Map())).set(getNodeId(node), node);
41550
+ (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node);
41567
41551
  }
41568
41552
  }
41569
41553
  function bindSpecialPropertyDeclaration(node) {
@@ -42392,7 +42376,7 @@ ${lanes.join("\n")}
42392
42376
  }
42393
42377
  function getAllModulePathsWorker(importingFileName, importedFileName, host) {
42394
42378
  const getCanonicalFileName = hostGetCanonicalFileName(host);
42395
- const allFileNames = new Map();
42379
+ const allFileNames = /* @__PURE__ */ new Map();
42396
42380
  let importedFileFromNodeModules = false;
42397
42381
  forEachFileNameOfModule(
42398
42382
  importingFileName,
@@ -42911,7 +42895,7 @@ ${lanes.join("\n")}
42911
42895
  }
42912
42896
  function createTypeChecker(host) {
42913
42897
  const getPackagesMap = memoize(() => {
42914
- const map2 = new Map();
42898
+ const map2 = /* @__PURE__ */ new Map();
42915
42899
  host.getSourceFiles().forEach((sf) => {
42916
42900
  if (!sf.resolvedModules)
42917
42901
  return;
@@ -43324,26 +43308,26 @@ ${lanes.join("\n")}
43324
43308
  apparentArgumentCount = void 0;
43325
43309
  return res;
43326
43310
  }
43327
- const tupleTypes = new Map();
43328
- const unionTypes = new Map();
43329
- const intersectionTypes = new Map();
43330
- const stringLiteralTypes = new Map();
43331
- const numberLiteralTypes = new Map();
43332
- const bigIntLiteralTypes = new Map();
43333
- const enumLiteralTypes = new Map();
43334
- const indexedAccessTypes = new Map();
43335
- const templateLiteralTypes = new Map();
43336
- const stringMappingTypes = new Map();
43337
- const substitutionTypes = new Map();
43338
- const subtypeReductionCache = new Map();
43339
- const cachedTypes = new Map();
43311
+ const tupleTypes = /* @__PURE__ */ new Map();
43312
+ const unionTypes = /* @__PURE__ */ new Map();
43313
+ const intersectionTypes = /* @__PURE__ */ new Map();
43314
+ const stringLiteralTypes = /* @__PURE__ */ new Map();
43315
+ const numberLiteralTypes = /* @__PURE__ */ new Map();
43316
+ const bigIntLiteralTypes = /* @__PURE__ */ new Map();
43317
+ const enumLiteralTypes = /* @__PURE__ */ new Map();
43318
+ const indexedAccessTypes = /* @__PURE__ */ new Map();
43319
+ const templateLiteralTypes = /* @__PURE__ */ new Map();
43320
+ const stringMappingTypes = /* @__PURE__ */ new Map();
43321
+ const substitutionTypes = /* @__PURE__ */ new Map();
43322
+ const subtypeReductionCache = /* @__PURE__ */ new Map();
43323
+ const cachedTypes = /* @__PURE__ */ new Map();
43340
43324
  const evolvingArrayTypes = [];
43341
- const undefinedProperties = new Map();
43342
- const markerTypes = new Set();
43325
+ const undefinedProperties = /* @__PURE__ */ new Map();
43326
+ const markerTypes = /* @__PURE__ */ new Set();
43343
43327
  const unknownSymbol = createSymbol(4 /* Property */, "unknown");
43344
43328
  const resolvingSymbol = createSymbol(0, "__resolving__" /* Resolving */);
43345
- const unresolvedSymbols = new Map();
43346
- const errorTypes = new Map();
43329
+ const unresolvedSymbols = /* @__PURE__ */ new Map();
43330
+ const errorTypes = /* @__PURE__ */ new Map();
43347
43331
  const anyType = createIntrinsicType(1 /* Any */, "any");
43348
43332
  const autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */);
43349
43333
  const wildcardType = createIntrinsicType(1 /* Any */, "any");
@@ -43414,7 +43398,7 @@ ${lanes.join("\n")}
43414
43398
  const unknownEmptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
43415
43399
  const unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
43416
43400
  const emptyGenericType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
43417
- emptyGenericType.instantiations = new Map();
43401
+ emptyGenericType.instantiations = /* @__PURE__ */ new Map();
43418
43402
  const anyFunctionType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
43419
43403
  anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
43420
43404
  const noConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
@@ -43433,7 +43417,7 @@ ${lanes.join("\n")}
43433
43417
  const resolvingSignature = createSignature(void 0, void 0, void 0, emptyArray, anyType, void 0, 0, 0 /* None */);
43434
43418
  const silentNeverSignature = createSignature(void 0, void 0, void 0, emptyArray, silentNeverType, void 0, 0, 0 /* None */);
43435
43419
  const enumNumberIndexInfo = createIndexInfo(numberType, stringType, true);
43436
- const iterationTypesCache = new Map();
43420
+ const iterationTypesCache = /* @__PURE__ */ new Map();
43437
43421
  const noIterationTypes = {
43438
43422
  get yieldType() {
43439
43423
  return Debug.fail("Not supported");
@@ -43475,7 +43459,7 @@ ${lanes.join("\n")}
43475
43459
  mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property
43476
43460
  };
43477
43461
  let amalgamatedDuplicates;
43478
- const reverseMappedCache = new Map();
43462
+ const reverseMappedCache = /* @__PURE__ */ new Map();
43479
43463
  let inInferTypeForHomomorphicMappedType = false;
43480
43464
  let ambientModulesCache;
43481
43465
  let patternAmbientModules;
@@ -43523,7 +43507,7 @@ ${lanes.join("\n")}
43523
43507
  let deferredGlobalBigIntType;
43524
43508
  let deferredGlobalNaNSymbol;
43525
43509
  let deferredGlobalRecordSymbol;
43526
- const allPotentiallyUnusedIdentifiers = new Map();
43510
+ const allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map();
43527
43511
  let flowLoopStart = 0;
43528
43512
  let flowLoopCount = 0;
43529
43513
  let sharedFlowCount = 0;
@@ -43562,12 +43546,12 @@ ${lanes.join("\n")}
43562
43546
  const typeofType = createTypeofType();
43563
43547
  let _jsxNamespace;
43564
43548
  let _jsxFactoryEntity;
43565
- const subtypeRelation = new Map();
43566
- const strictSubtypeRelation = new Map();
43567
- const assignableRelation = new Map();
43568
- const comparableRelation = new Map();
43569
- const identityRelation = new Map();
43570
- const enumRelation = new Map();
43549
+ const subtypeRelation = /* @__PURE__ */ new Map();
43550
+ const strictSubtypeRelation = /* @__PURE__ */ new Map();
43551
+ const assignableRelation = /* @__PURE__ */ new Map();
43552
+ const comparableRelation = /* @__PURE__ */ new Map();
43553
+ const identityRelation = /* @__PURE__ */ new Map();
43554
+ const enumRelation = /* @__PURE__ */ new Map();
43571
43555
  const builtinGlobals = createSymbolTable();
43572
43556
  builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
43573
43557
  const suggestedExtensions = [
@@ -43848,7 +43832,7 @@ ${lanes.join("\n")}
43848
43832
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
43849
43833
  const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile;
43850
43834
  const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
43851
- const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: new Map() }));
43835
+ const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() }));
43852
43836
  const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] }));
43853
43837
  if (!isSourcePlainJs)
43854
43838
  addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source);
@@ -43926,7 +43910,7 @@ ${lanes.join("\n")}
43926
43910
  if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) {
43927
43911
  const merged = mergeSymbol(moduleAugmentation.symbol, mainModule, true);
43928
43912
  if (!patternAmbientModuleAugmentations) {
43929
- patternAmbientModuleAugmentations = new Map();
43913
+ patternAmbientModuleAugmentations = /* @__PURE__ */ new Map();
43930
43914
  }
43931
43915
  patternAmbientModuleAugmentations.set(moduleName.text, merged);
43932
43916
  } else {
@@ -45245,7 +45229,7 @@ ${lanes.join("\n")}
45245
45229
  if (seenSymbols) {
45246
45230
  seenSymbols.add(target);
45247
45231
  } else {
45248
- seenSymbols = new Set([symbol, target]);
45232
+ seenSymbols = /* @__PURE__ */ new Set([symbol, target]);
45249
45233
  }
45250
45234
  }
45251
45235
  flags |= target.flags;
@@ -45851,7 +45835,7 @@ ${lanes.join("\n")}
45851
45835
  const exportStars = symbol.exports.get("__export" /* ExportStar */);
45852
45836
  if (exportStars) {
45853
45837
  const nestedSymbols = createSymbolTable();
45854
- const lookupTable = new Map();
45838
+ const lookupTable = /* @__PURE__ */ new Map();
45855
45839
  if (exportStars.declarations) {
45856
45840
  for (const node of exportStars.declarations) {
45857
45841
  const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
@@ -45913,7 +45897,7 @@ ${lanes.join("\n")}
45913
45897
  results = append(results, resolvedModule);
45914
45898
  }
45915
45899
  if (length(results)) {
45916
- (links.extendedContainersByFile || (links.extendedContainersByFile = new Map())).set(id, results);
45900
+ (links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results);
45917
45901
  return results;
45918
45902
  }
45919
45903
  }
@@ -46165,12 +46149,12 @@ ${lanes.join("\n")}
46165
46149
  function getQualifiedLeftMeaning(rightMeaning) {
46166
46150
  return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */;
46167
46151
  }
46168
- function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = new Map()) {
46152
+ function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) {
46169
46153
  if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) {
46170
46154
  return void 0;
46171
46155
  }
46172
46156
  const links = getSymbolLinks(symbol);
46173
- const cache = links.accessibleChainCache || (links.accessibleChainCache = new Map());
46157
+ const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map());
46174
46158
  const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node);
46175
46159
  const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`;
46176
46160
  if (cache.has(key)) {
@@ -46540,22 +46524,25 @@ ${lanes.join("\n")}
46540
46524
  const context = {
46541
46525
  enclosingDeclaration,
46542
46526
  flags: flags || 0 /* None */,
46543
- tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
46544
- getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
46545
- getCurrentDirectory: () => host.getCurrentDirectory(),
46546
- getSymlinkCache: maybeBind(host, host.getSymlinkCache),
46547
- getPackageJsonInfoCache: () => {
46548
- var _a3;
46549
- return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
46550
- },
46551
- useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
46552
- redirectTargetsMap: host.redirectTargetsMap,
46553
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
46554
- isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
46555
- fileExists: (fileName) => host.fileExists(fileName),
46556
- getFileIncludeReasons: () => host.getFileIncludeReasons(),
46557
- readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
46558
- } : void 0 },
46527
+ tracker: tracker && tracker.trackSymbol ? tracker : {
46528
+ trackSymbol: () => false,
46529
+ moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
46530
+ getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
46531
+ getCurrentDirectory: () => host.getCurrentDirectory(),
46532
+ getSymlinkCache: maybeBind(host, host.getSymlinkCache),
46533
+ getPackageJsonInfoCache: () => {
46534
+ var _a3;
46535
+ return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
46536
+ },
46537
+ useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
46538
+ redirectTargetsMap: host.redirectTargetsMap,
46539
+ getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
46540
+ isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
46541
+ fileExists: (fileName) => host.fileExists(fileName),
46542
+ getFileIncludeReasons: () => host.getFileIncludeReasons(),
46543
+ readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
46544
+ } : void 0
46545
+ },
46559
46546
  encounteredError: false,
46560
46547
  reportedDiagnostic: false,
46561
46548
  visitedTypes: void 0,
@@ -46967,15 +46954,15 @@ ${lanes.join("\n")}
46967
46954
  const isConstructorObject = getObjectFlags(type2) & 16 /* Anonymous */ && type2.symbol && type2.symbol.flags & 32 /* Class */;
46968
46955
  const id = getObjectFlags(type2) & 4 /* Reference */ && type2.node ? "N" + getNodeId(type2.node) : type2.flags & 16777216 /* Conditional */ ? "N" + getNodeId(type2.root.node) : type2.symbol ? (isConstructorObject ? "+" : "") + getSymbolId(type2.symbol) : void 0;
46969
46956
  if (!context.visitedTypes) {
46970
- context.visitedTypes = new Set();
46957
+ context.visitedTypes = /* @__PURE__ */ new Set();
46971
46958
  }
46972
46959
  if (id && !context.symbolDepth) {
46973
- context.symbolDepth = new Map();
46960
+ context.symbolDepth = /* @__PURE__ */ new Map();
46974
46961
  }
46975
46962
  const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
46976
46963
  const key = `${getTypeId(type2)}|${context.flags}`;
46977
46964
  if (links) {
46978
- links.serializedTypes || (links.serializedTypes = new Map());
46965
+ links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map());
46979
46966
  }
46980
46967
  const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
46981
46968
  if (cachedResult) {
@@ -47618,7 +47605,7 @@ ${lanes.join("\n")}
47618
47605
  if ((_a2 = context.typeParameterSymbolList) == null ? void 0 : _a2.has(symbolId)) {
47619
47606
  return void 0;
47620
47607
  }
47621
- (context.typeParameterSymbolList || (context.typeParameterSymbolList = new Set())).add(symbolId);
47608
+ (context.typeParameterSymbolList || (context.typeParameterSymbolList = /* @__PURE__ */ new Set())).add(symbolId);
47622
47609
  let typeParameterNodes;
47623
47610
  if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < chain.length - 1) {
47624
47611
  const parentSymbol = symbol;
@@ -47692,7 +47679,7 @@ ${lanes.join("\n")}
47692
47679
  },
47693
47680
  { overrideImportMode }
47694
47681
  ));
47695
- (_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = new Map();
47682
+ (_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = /* @__PURE__ */ new Map();
47696
47683
  links.specifierCache.set(cacheKey, specifier);
47697
47684
  }
47698
47685
  return specifier;
@@ -47868,9 +47855,9 @@ ${lanes.join("\n")}
47868
47855
  if (text !== rawtext) {
47869
47856
  result = factory.createIdentifier(text, result.typeArguments);
47870
47857
  }
47871
- (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = new Map())).set(rawtext, i);
47872
- (context.typeParameterNames || (context.typeParameterNames = new Map())).set(getTypeId(type), result);
47873
- (context.typeParameterNamesByText || (context.typeParameterNamesByText = new Set())).add(rawtext);
47858
+ (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = /* @__PURE__ */ new Map())).set(rawtext, i);
47859
+ (context.typeParameterNames || (context.typeParameterNames = /* @__PURE__ */ new Map())).set(getTypeId(type), result);
47860
+ (context.typeParameterNamesByText || (context.typeParameterNamesByText = /* @__PURE__ */ new Set())).add(rawtext);
47874
47861
  }
47875
47862
  return result;
47876
47863
  }
@@ -48220,13 +48207,13 @@ ${lanes.join("\n")}
48220
48207
  const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol((mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), 170 /* MethodSignature */, false);
48221
48208
  const enclosingDeclaration = context.enclosingDeclaration;
48222
48209
  let results = [];
48223
- const visitedSymbols = new Set();
48210
+ const visitedSymbols = /* @__PURE__ */ new Set();
48224
48211
  const deferredPrivatesStack = [];
48225
48212
  const oldcontext = context;
48226
48213
  context = {
48227
48214
  ...oldcontext,
48228
48215
  usedSymbolNames: new Set(oldcontext.usedSymbolNames),
48229
- remappedSymbolNames: new Map(),
48216
+ remappedSymbolNames: /* @__PURE__ */ new Map(),
48230
48217
  tracker: {
48231
48218
  ...oldcontext.tracker,
48232
48219
  trackSymbol: (sym, decl, meaning) => {
@@ -48387,7 +48374,7 @@ ${lanes.join("\n")}
48387
48374
  }
48388
48375
  function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) {
48389
48376
  if (!suppressNewPrivateContext) {
48390
- deferredPrivatesStack.push(new Map());
48377
+ deferredPrivatesStack.push(/* @__PURE__ */ new Map());
48391
48378
  }
48392
48379
  symbolTable2.forEach((symbol) => {
48393
48380
  serializeSymbol(symbol, false, !!propertyAsAlias);
@@ -49492,7 +49479,7 @@ ${lanes.join("\n")}
49492
49479
  let result;
49493
49480
  let visited;
49494
49481
  if (exportSymbol) {
49495
- visited = new Set();
49482
+ visited = /* @__PURE__ */ new Set();
49496
49483
  visited.add(getSymbolId(exportSymbol));
49497
49484
  buildVisibleNodeList(exportSymbol.declarations);
49498
49485
  }
@@ -50977,7 +50964,7 @@ ${lanes.join("\n")}
50977
50964
  type.typeParameters = concatenate(outerTypeParameters, localTypeParameters);
50978
50965
  type.outerTypeParameters = outerTypeParameters;
50979
50966
  type.localTypeParameters = localTypeParameters;
50980
- type.instantiations = new Map();
50967
+ type.instantiations = /* @__PURE__ */ new Map();
50981
50968
  type.instantiations.set(getTypeListId(type.typeParameters), type);
50982
50969
  type.target = type;
50983
50970
  type.resolvedTypeArguments = type.typeParameters;
@@ -51002,7 +50989,7 @@ ${lanes.join("\n")}
51002
50989
  const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
51003
50990
  if (typeParameters) {
51004
50991
  links.typeParameters = typeParameters;
51005
- links.instantiations = new Map();
50992
+ links.instantiations = /* @__PURE__ */ new Map();
51006
50993
  links.instantiations.set(getTypeListId(typeParameters), type);
51007
50994
  }
51008
50995
  } else {
@@ -51770,7 +51757,7 @@ ${lanes.join("\n")}
51770
51757
  if (symbol.exports) {
51771
51758
  members = getExportsOfSymbol(symbol);
51772
51759
  if (symbol === globalThisSymbol) {
51773
- const varsOnly = new Map();
51760
+ const varsOnly = /* @__PURE__ */ new Map();
51774
51761
  members.forEach((p) => {
51775
51762
  var _a2;
51776
51763
  if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a2 = p.declarations) == null ? void 0 : _a2.length) && every(p.declarations, isAmbientModule))) {
@@ -52414,7 +52401,7 @@ ${lanes.join("\n")}
52414
52401
  mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent));
52415
52402
  } else {
52416
52403
  if (!propSet) {
52417
- propSet = new Map();
52404
+ propSet = /* @__PURE__ */ new Map();
52418
52405
  propSet.set(getSymbolId(singleProp), singleProp);
52419
52406
  }
52420
52407
  const id = getSymbolId(prop);
@@ -53069,7 +53056,7 @@ ${lanes.join("\n")}
53069
53056
  return instantiatedSignature;
53070
53057
  }
53071
53058
  function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) {
53072
- const instantiations = signature.instantiations || (signature.instantiations = new Map());
53059
+ const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map());
53073
53060
  const id = getTypeListId(typeArguments);
53074
53061
  let instantiation = instantiations.get(id);
53075
53062
  if (!instantiation) {
@@ -53966,7 +53953,7 @@ ${lanes.join("\n")}
53966
53953
  type.typeParameters = typeParameters;
53967
53954
  type.outerTypeParameters = void 0;
53968
53955
  type.localTypeParameters = typeParameters;
53969
- type.instantiations = new Map();
53956
+ type.instantiations = /* @__PURE__ */ new Map();
53970
53957
  type.instantiations.set(getTypeListId(type.typeParameters), type);
53971
53958
  type.target = type;
53972
53959
  type.resolvedTypeArguments = type.typeParameters;
@@ -54479,7 +54466,7 @@ ${lanes.join("\n")}
54479
54466
  return result;
54480
54467
  }
54481
54468
  function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
54482
- const typeMembershipMap = new Map();
54469
+ const typeMembershipMap = /* @__PURE__ */ new Map();
54483
54470
  const includes = addTypesToIntersection(typeMembershipMap, 0, types);
54484
54471
  const typeSet = arrayFrom(typeMembershipMap.values());
54485
54472
  if (includes & 131072 /* Never */) {
@@ -55406,7 +55393,7 @@ ${lanes.join("\n")}
55406
55393
  };
55407
55394
  links.resolvedType = getConditionalType(root, void 0);
55408
55395
  if (outerTypeParameters) {
55409
- root.instantiations = new Map();
55396
+ root.instantiations = /* @__PURE__ */ new Map();
55410
55397
  root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);
55411
55398
  }
55412
55399
  }
@@ -55597,7 +55584,7 @@ ${lanes.join("\n")}
55597
55584
  return getIntersectionType([left, right]);
55598
55585
  }
55599
55586
  const members = createSymbolTable();
55600
- const skippedPrivateMembers = new Set();
55587
+ const skippedPrivateMembers = /* @__PURE__ */ new Set();
55601
55588
  const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]);
55602
55589
  for (const rightProp of getPropertiesOfType(right)) {
55603
55590
  if (getDeclarationModifierFlagsFromSymbol(rightProp) & (8 /* Private */ | 16 /* Protected */)) {
@@ -56044,7 +56031,7 @@ ${lanes.join("\n")}
56044
56031
  const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);
56045
56032
  const id = getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments);
56046
56033
  if (!target.instantiations) {
56047
- target.instantiations = new Map();
56034
+ target.instantiations = /* @__PURE__ */ new Map();
56048
56035
  target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target);
56049
56036
  }
56050
56037
  let result = target.instantiations.get(id);
@@ -58287,7 +58274,7 @@ ${lanes.join("\n")}
58287
58274
  }
58288
58275
  }
58289
58276
  const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length);
58290
- const excludedProperties = new Set();
58277
+ const excludedProperties = /* @__PURE__ */ new Set();
58291
58278
  for (let i = 0; i < sourcePropertiesFiltered.length; i++) {
58292
58279
  const sourceProperty = sourcePropertiesFiltered[i];
58293
58280
  const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty);
@@ -59522,7 +59509,7 @@ ${lanes.join("\n")}
59522
59509
  }
59523
59510
  function getPropertiesOfContext(context) {
59524
59511
  if (!context.resolvedProperties) {
59525
- const names = new Map();
59512
+ const names = /* @__PURE__ */ new Map();
59526
59513
  for (const t of getSiblingsOfContext(context)) {
59527
59514
  if (isObjectLiteralType2(t) && !(getObjectFlags(t) & 2097152 /* ContainsSpread */)) {
59528
59515
  for (const prop of getPropertiesOfType(t)) {
@@ -60257,7 +60244,7 @@ ${lanes.join("\n")}
60257
60244
  inferencePriority = Math.min(inferencePriority, status);
60258
60245
  return;
60259
60246
  }
60260
- (visited || (visited = new Map())).set(key, -1 /* Circularity */);
60247
+ (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
60261
60248
  const saveInferencePriority = inferencePriority;
60262
60249
  inferencePriority = 2048 /* MaxValue */;
60263
60250
  const saveExpandingFlags = expandingFlags;
@@ -60922,7 +60909,7 @@ ${lanes.join("\n")}
60922
60909
  return result;
60923
60910
  }
60924
60911
  function mapTypesByKeyProperty(types, name) {
60925
- const map2 = new Map();
60912
+ const map2 = /* @__PURE__ */ new Map();
60926
60913
  let count = 0;
60927
60914
  for (const type of types) {
60928
60915
  if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
@@ -61926,7 +61913,7 @@ ${lanes.join("\n")}
61926
61913
  }
61927
61914
  function getTypeAtFlowLoopLabel(flow) {
61928
61915
  const id = getFlowNodeId(flow);
61929
- const cache = flowLoopCaches[id] || (flowLoopCaches[id] = new Map());
61916
+ const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map());
61930
61917
  const key2 = getOrSetCacheKey();
61931
61918
  if (!key2) {
61932
61919
  return declaredType;
@@ -67064,7 +67051,7 @@ ${lanes.join("\n")}
67064
67051
  if ((_b = source.members) == null ? void 0 : _b.size) {
67065
67052
  mergeSymbolTable(inferred.members, source.members);
67066
67053
  }
67067
- (links.inferredClassSymbol || (links.inferredClassSymbol = new Map())).set(getSymbolId(inferred), inferred);
67054
+ (links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred);
67068
67055
  return inferred;
67069
67056
  }
67070
67057
  return links.inferredClassSymbol.get(getSymbolId(target));
@@ -69919,9 +69906,9 @@ ${lanes.join("\n")}
69919
69906
  }
69920
69907
  }
69921
69908
  function checkClassForDuplicateDeclarations(node) {
69922
- const instanceNames = new Map();
69923
- const staticNames = new Map();
69924
- const privateIdentifiers = new Map();
69909
+ const instanceNames = /* @__PURE__ */ new Map();
69910
+ const staticNames = /* @__PURE__ */ new Map();
69911
+ const privateIdentifiers = /* @__PURE__ */ new Map();
69925
69912
  for (const member of node.members) {
69926
69913
  if (member.kind === 173 /* Constructor */) {
69927
69914
  for (const param of member.parameters) {
@@ -70001,7 +69988,7 @@ ${lanes.join("\n")}
70001
69988
  }
70002
69989
  }
70003
69990
  function checkObjectTypeForDuplicateDeclarations(node) {
70004
- const names = new Map();
69991
+ const names = /* @__PURE__ */ new Map();
70005
69992
  for (const member of node.members) {
70006
69993
  if (member.kind === 168 /* PropertySignature */) {
70007
69994
  let memberName;
@@ -70035,7 +70022,7 @@ ${lanes.join("\n")}
70035
70022
  }
70036
70023
  const indexSymbol = getIndexSymbol(getSymbolOfNode(node));
70037
70024
  if (indexSymbol == null ? void 0 : indexSymbol.declarations) {
70038
- const indexSignatureMap = new Map();
70025
+ const indexSignatureMap = /* @__PURE__ */ new Map();
70039
70026
  for (const declaration of indexSymbol.declarations) {
70040
70027
  if (declaration.parameters.length === 1 && declaration.parameters[0].type) {
70041
70028
  forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => {
@@ -71419,7 +71406,7 @@ ${lanes.join("\n")}
71419
71406
  if (!declarations || last(declarations) !== node)
71420
71407
  return;
71421
71408
  const typeParameters = getEffectiveTypeParameterDeclarations(node);
71422
- const seenParentsWithEveryUnused = new Set();
71409
+ const seenParentsWithEveryUnused = /* @__PURE__ */ new Set();
71423
71410
  for (const typeParameter of typeParameters) {
71424
71411
  if (!isTypeParameterUnused(typeParameter))
71425
71412
  continue;
@@ -71464,9 +71451,9 @@ ${lanes.join("\n")}
71464
71451
  return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name);
71465
71452
  }
71466
71453
  function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) {
71467
- const unusedImports = new Map();
71468
- const unusedDestructures = new Map();
71469
- const unusedVariables = new Map();
71454
+ const unusedImports = /* @__PURE__ */ new Map();
71455
+ const unusedDestructures = /* @__PURE__ */ new Map();
71456
+ const unusedVariables = /* @__PURE__ */ new Map();
71470
71457
  nodeWithLocals.locals.forEach((local) => {
71471
71458
  if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) {
71472
71459
  return;
@@ -72919,8 +72906,8 @@ ${lanes.join("\n")}
72919
72906
  if (!length(jsdocParameters))
72920
72907
  return;
72921
72908
  const isJs = isInJSFile(node);
72922
- const parameters = new Set();
72923
- const excludedParameters = new Set();
72909
+ const parameters = /* @__PURE__ */ new Set();
72910
+ const excludedParameters = /* @__PURE__ */ new Set();
72924
72911
  forEach(node.parameters, ({ name }, index) => {
72925
72912
  if (isIdentifier(name)) {
72926
72913
  parameters.add(name.escapedText);
@@ -73456,7 +73443,7 @@ ${lanes.join("\n")}
73456
73443
  if (!length(baseTypes)) {
73457
73444
  return properties;
73458
73445
  }
73459
- const seen = new Map();
73446
+ const seen = /* @__PURE__ */ new Map();
73460
73447
  forEach(properties, (p) => {
73461
73448
  seen.set(p.escapedName, p);
73462
73449
  });
@@ -73476,7 +73463,7 @@ ${lanes.join("\n")}
73476
73463
  if (baseTypes.length < 2) {
73477
73464
  return true;
73478
73465
  }
73479
- const seen = new Map();
73466
+ const seen = /* @__PURE__ */ new Map();
73480
73467
  forEach(resolveDeclaredMembers(type).declaredProperties, (p) => {
73481
73468
  seen.set(p.escapedName, { prop: p, containingType: type });
73482
73469
  });
@@ -74683,7 +74670,7 @@ ${lanes.join("\n")}
74683
74670
  const enclosingFile = getSourceFileOfNode(node);
74684
74671
  const links = getNodeLinks(enclosingFile);
74685
74672
  if (!(links.flags & 1 /* TypeChecked */)) {
74686
- links.deferredNodes || (links.deferredNodes = new Set());
74673
+ links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
74687
74674
  links.deferredNodes.add(node);
74688
74675
  }
74689
74676
  }
@@ -75117,7 +75104,7 @@ ${lanes.join("\n")}
75117
75104
  const declarationList = mapDefined(infos, (i) => i.declaration);
75118
75105
  const nodeListId = map(declarationList, getNodeId).join(",");
75119
75106
  if (!symbolLinks2.filteredIndexSymbolCache) {
75120
- symbolLinks2.filteredIndexSymbolCache = new Map();
75107
+ symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map();
75121
75108
  }
75122
75109
  if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) {
75123
75110
  links.resolvedSymbol = symbolLinks2.filteredIndexSymbolCache.get(nodeListId);
@@ -75850,7 +75837,7 @@ ${lanes.join("\n")}
75850
75837
  const resolvedTypeReferenceDirectives = host.getResolvedTypeReferenceDirectives();
75851
75838
  let fileToDirective;
75852
75839
  if (resolvedTypeReferenceDirectives) {
75853
- fileToDirective = new Map();
75840
+ fileToDirective = /* @__PURE__ */ new Map();
75854
75841
  resolvedTypeReferenceDirectives.forEach((resolvedDirective, key, mode) => {
75855
75842
  if (!resolvedDirective || !resolvedDirective.resolvedFileName) {
75856
75843
  return;
@@ -76059,7 +76046,7 @@ ${lanes.join("\n")}
76059
76046
  for (const file of host.getSourceFiles()) {
76060
76047
  bindSourceFile(file, compilerOptions);
76061
76048
  }
76062
- amalgamatedDuplicates = new Map();
76049
+ amalgamatedDuplicates = /* @__PURE__ */ new Map();
76063
76050
  let augmentations;
76064
76051
  for (const file of host.getSourceFiles()) {
76065
76052
  if (file.redirectInfo) {
@@ -76823,7 +76810,7 @@ ${lanes.join("\n")}
76823
76810
  return !!exclamationToken && grammarErrorOnNode(exclamationToken, message);
76824
76811
  }
76825
76812
  function checkGrammarObjectLiteralExpression(node, inDestructuring) {
76826
- const seen = new Map();
76813
+ const seen = /* @__PURE__ */ new Map();
76827
76814
  for (const prop of node.properties) {
76828
76815
  if (prop.kind === 301 /* SpreadAssignment */) {
76829
76816
  if (inDestructuring) {
@@ -76907,7 +76894,7 @@ ${lanes.join("\n")}
76907
76894
  function checkGrammarJsxElement(node) {
76908
76895
  checkGrammarJsxName(node.tagName);
76909
76896
  checkGrammarTypeArguments(node, node.typeArguments);
76910
- const seen = new Map();
76897
+ const seen = /* @__PURE__ */ new Map();
76911
76898
  for (const attr of node.attributes.properties) {
76912
76899
  if (attr.kind === 290 /* JsxSpreadAttribute */) {
76913
76900
  continue;
@@ -78974,7 +78961,7 @@ ${lanes.join("\n")}
78974
78961
  const { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : nullTimer;
78975
78962
  const rawSources = [];
78976
78963
  const sources = [];
78977
- const sourceToSourceIndexMap = new Map();
78964
+ const sourceToSourceIndexMap = /* @__PURE__ */ new Map();
78978
78965
  let sourcesContent;
78979
78966
  const names = [];
78980
78967
  let nameToNameIndexMap;
@@ -79040,7 +79027,7 @@ ${lanes.join("\n")}
79040
79027
  function addName(name) {
79041
79028
  enter();
79042
79029
  if (!nameToNameIndexMap)
79043
- nameToNameIndexMap = new Map();
79030
+ nameToNameIndexMap = /* @__PURE__ */ new Map();
79044
79031
  let nameIndex = nameToNameIndexMap.get(name);
79045
79032
  if (nameIndex === void 0) {
79046
79033
  nameIndex = names.length;
@@ -79566,7 +79553,7 @@ ${lanes.join("\n")}
79566
79553
  const externalImports = [];
79567
79554
  const exportSpecifiers = createMultiMap();
79568
79555
  const exportedBindings = [];
79569
- const uniqueExports = new Map();
79556
+ const uniqueExports = /* @__PURE__ */ new Map();
79570
79557
  let exportedNames;
79571
79558
  let hasExportDefault = false;
79572
79559
  let exportEquals;
@@ -81333,7 +81320,7 @@ ${lanes.join("\n")}
81333
81320
  }
81334
81321
  function recordEmittedDeclarationInScope(node) {
81335
81322
  if (!currentScopeFirstDeclarationsOfName) {
81336
- currentScopeFirstDeclarationsOfName = new Map();
81323
+ currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map();
81337
81324
  }
81338
81325
  const name = declaredNameInScope(node);
81339
81326
  if (!currentScopeFirstDeclarationsOfName.has(name)) {
@@ -81824,7 +81811,7 @@ ${lanes.join("\n")}
81824
81811
  let pendingExpressions;
81825
81812
  let pendingStatements;
81826
81813
  const classLexicalEnvironmentStack = [];
81827
- const classLexicalEnvironmentMap = new Map();
81814
+ const classLexicalEnvironmentMap = /* @__PURE__ */ new Map();
81828
81815
  let currentClassLexicalEnvironment;
81829
81816
  let currentClassContainer;
81830
81817
  let currentComputedPropertyNameClassLexicalEnvironment;
@@ -83540,10 +83527,10 @@ ${lanes.join("\n")}
83540
83527
  function setPrivateIdentifier(privateEnv, name, info) {
83541
83528
  var _a2, _b;
83542
83529
  if (isGeneratedPrivateIdentifier(name)) {
83543
- (_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = new Map();
83530
+ (_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map();
83544
83531
  privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), info);
83545
83532
  } else {
83546
- (_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = new Map();
83533
+ (_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = /* @__PURE__ */ new Map();
83547
83534
  privateEnv.identifiers.set(name.escapedText, info);
83548
83535
  }
83549
83536
  }
@@ -84386,7 +84373,7 @@ ${lanes.join("\n")}
84386
84373
  return visitor(node);
84387
84374
  }
84388
84375
  function visitCatchClauseInAsyncBody(node) {
84389
- const catchClauseNames = new Set();
84376
+ const catchClauseNames = /* @__PURE__ */ new Set();
84390
84377
  recordDeclarationName(node.variableDeclaration, catchClauseNames);
84391
84378
  let catchClauseUnshadowedNames;
84392
84379
  catchClauseNames.forEach((_, escapedName) => {
@@ -84596,7 +84583,7 @@ ${lanes.join("\n")}
84596
84583
  Debug.assertIsDefined(node.body);
84597
84584
  const savedCapturedSuperProperties = capturedSuperProperties;
84598
84585
  const savedHasSuperElementAccess = hasSuperElementAccess;
84599
- capturedSuperProperties = new Set();
84586
+ capturedSuperProperties = /* @__PURE__ */ new Set();
84600
84587
  hasSuperElementAccess = false;
84601
84588
  let updated = visitFunctionBody(node.body, visitor, context);
84602
84589
  const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
@@ -84630,14 +84617,14 @@ ${lanes.join("\n")}
84630
84617
  const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
84631
84618
  const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
84632
84619
  const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
84633
- enclosingFunctionParameterNames = new Set();
84620
+ enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
84634
84621
  for (const parameter of node.parameters) {
84635
84622
  recordDeclarationName(parameter, enclosingFunctionParameterNames);
84636
84623
  }
84637
84624
  const savedCapturedSuperProperties = capturedSuperProperties;
84638
84625
  const savedHasSuperElementAccess = hasSuperElementAccess;
84639
84626
  if (!isArrowFunction2) {
84640
- capturedSuperProperties = new Set();
84627
+ capturedSuperProperties = /* @__PURE__ */ new Set();
84641
84628
  hasSuperElementAccess = false;
84642
84629
  }
84643
84630
  let result;
@@ -85613,7 +85600,7 @@ ${lanes.join("\n")}
85613
85600
  if (parameters) {
85614
85601
  parameters.add(parameter);
85615
85602
  } else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) {
85616
- parameters = new Set();
85603
+ parameters = /* @__PURE__ */ new Set();
85617
85604
  }
85618
85605
  }
85619
85606
  return parameters;
@@ -85749,7 +85736,7 @@ ${lanes.join("\n")}
85749
85736
  appendObjectRestAssignmentsIfNeeded(statements, node);
85750
85737
  const savedCapturedSuperProperties = capturedSuperProperties;
85751
85738
  const savedHasSuperElementAccess = hasSuperElementAccess;
85752
- capturedSuperProperties = new Set();
85739
+ capturedSuperProperties = /* @__PURE__ */ new Set();
85753
85740
  hasSuperElementAccess = false;
85754
85741
  const returnStatement = factory2.createReturnStatement(
85755
85742
  emitHelpers().createAsyncGeneratorHelper(
@@ -86351,11 +86338,11 @@ ${lanes.join("\n")}
86351
86338
  return existing.name;
86352
86339
  }
86353
86340
  if (!currentFileState.utilizedImplicitRuntimeImports) {
86354
- currentFileState.utilizedImplicitRuntimeImports = new Map();
86341
+ currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map();
86355
86342
  }
86356
86343
  let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource);
86357
86344
  if (!specifierSourceImports) {
86358
- specifierSourceImports = new Map();
86345
+ specifierSourceImports = /* @__PURE__ */ new Map();
86359
86346
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
86360
86347
  }
86361
86348
  const generatedName = factory2.createUniqueName(`_${name}`, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */);
@@ -88365,7 +88352,7 @@ ${lanes.join("\n")}
88365
88352
  }
88366
88353
  function visitLabeledStatement(node) {
88367
88354
  if (convertedLoopState && !convertedLoopState.labels) {
88368
- convertedLoopState.labels = new Map();
88355
+ convertedLoopState.labels = /* @__PURE__ */ new Map();
88369
88356
  }
88370
88357
  const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel);
88371
88358
  return isIterationStatement(statement, false) ? visitIterationStatement(statement, node) : factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node, convertedLoopState && resetLabel);
@@ -89124,12 +89111,12 @@ ${lanes.join("\n")}
89124
89111
  function setLabeledJump(state, isBreak, labelText, labelMarker) {
89125
89112
  if (isBreak) {
89126
89113
  if (!state.labeledNonLocalBreaks) {
89127
- state.labeledNonLocalBreaks = new Map();
89114
+ state.labeledNonLocalBreaks = /* @__PURE__ */ new Map();
89128
89115
  }
89129
89116
  state.labeledNonLocalBreaks.set(labelText, labelMarker);
89130
89117
  } else {
89131
89118
  if (!state.labeledNonLocalContinues) {
89132
- state.labeledNonLocalContinues = new Map();
89119
+ state.labeledNonLocalContinues = /* @__PURE__ */ new Map();
89133
89120
  }
89134
89121
  state.labeledNonLocalContinues.set(labelText, labelMarker);
89135
89122
  }
@@ -90978,7 +90965,7 @@ ${lanes.join("\n")}
90978
90965
  const text = idText(variable.name);
90979
90966
  name = declareLocal(text);
90980
90967
  if (!renamedCatchVariables) {
90981
- renamedCatchVariables = new Map();
90968
+ renamedCatchVariables = /* @__PURE__ */ new Map();
90982
90969
  renamedCatchVariableDeclarations = [];
90983
90970
  context.enableSubstitution(79 /* Identifier */);
90984
90971
  }
@@ -93140,7 +93127,7 @@ ${lanes.join("\n")}
93140
93127
  return updated;
93141
93128
  }
93142
93129
  function collectDependencyGroups(externalImports) {
93143
- const groupIndices = new Map();
93130
+ const groupIndices = /* @__PURE__ */ new Map();
93144
93131
  const dependencyGroups = [];
93145
93132
  for (const externalImport of externalImports) {
93146
93133
  const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions);
@@ -94390,7 +94377,7 @@ ${lanes.join("\n")}
94390
94377
  function onEmitNode(hint, node, emitCallback) {
94391
94378
  if (isSourceFile(node)) {
94392
94379
  if ((isExternalModule(node) || compilerOptions.isolatedModules) && compilerOptions.importHelpers) {
94393
- helperNameSubstitutions = new Map();
94380
+ helperNameSubstitutions = /* @__PURE__ */ new Map();
94394
94381
  }
94395
94382
  previousOnEmitNode(hint, node, emitCallback);
94396
94383
  helperNameSubstitutions = void 0;
@@ -94810,7 +94797,7 @@ ${lanes.join("\n")}
94810
94797
  if (!typeReferenceDirectives) {
94811
94798
  return;
94812
94799
  }
94813
- necessaryTypeReferences = necessaryTypeReferences || new Set();
94800
+ necessaryTypeReferences = necessaryTypeReferences || /* @__PURE__ */ new Set();
94814
94801
  for (const ref of typeReferenceDirectives) {
94815
94802
  necessaryTypeReferences.add(ref);
94816
94803
  }
@@ -94963,8 +94950,8 @@ ${lanes.join("\n")}
94963
94950
  }
94964
94951
  if (node.kind === 309 /* Bundle */) {
94965
94952
  isBundledEmit = true;
94966
- refs = new Map();
94967
- libs2 = new Map();
94953
+ refs = /* @__PURE__ */ new Map();
94954
+ libs2 = /* @__PURE__ */ new Map();
94968
94955
  let hasNoDefaultLib = false;
94969
94956
  const bundle = factory2.createBundle(map(
94970
94957
  node.sourceFiles,
@@ -94976,7 +94963,7 @@ ${lanes.join("\n")}
94976
94963
  enclosingDeclaration = sourceFile;
94977
94964
  lateMarkedStatements = void 0;
94978
94965
  suppressNewDiagnosticContexts = false;
94979
- lateStatementReplacementMap = new Map();
94966
+ lateStatementReplacementMap = /* @__PURE__ */ new Map();
94980
94967
  getSymbolAccessibilityDiagnostic = throwDiagnostic;
94981
94968
  needsScopeFixMarker = false;
94982
94969
  resultHasScopeMarker = false;
@@ -95027,10 +95014,10 @@ ${lanes.join("\n")}
95027
95014
  resultHasExternalModuleIndicator = false;
95028
95015
  suppressNewDiagnosticContexts = false;
95029
95016
  lateMarkedStatements = void 0;
95030
- lateStatementReplacementMap = new Map();
95017
+ lateStatementReplacementMap = /* @__PURE__ */ new Map();
95031
95018
  necessaryTypeReferences = void 0;
95032
- refs = collectReferences(currentSourceFile, new Map());
95033
- libs2 = collectLibs(currentSourceFile, new Map());
95019
+ refs = collectReferences(currentSourceFile, /* @__PURE__ */ new Map());
95020
+ libs2 = collectLibs(currentSourceFile, /* @__PURE__ */ new Map());
95034
95021
  const references = [];
95035
95022
  const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor(node, host, true).declarationFilePath));
95036
95023
  const referenceVisitor = mapReferencesIntoArray(references, outputFilePath);
@@ -97380,7 +97367,7 @@ ${lanes.join("\n")}
97380
97367
  const extendedDiagnostics = !!printerOptions.extendedDiagnostics;
97381
97368
  const newLine = getNewLineCharacter(printerOptions);
97382
97369
  const moduleKind = getEmitModuleKind(printerOptions);
97383
- const bundledHelpers = new Map();
97370
+ const bundledHelpers = /* @__PURE__ */ new Map();
97384
97371
  let currentSourceFile;
97385
97372
  let nodeIdToGeneratedName;
97386
97373
  let autoGeneratedIdToGeneratedName;
@@ -97634,9 +97621,9 @@ ${lanes.join("\n")}
97634
97621
  function reset2() {
97635
97622
  nodeIdToGeneratedName = [];
97636
97623
  autoGeneratedIdToGeneratedName = [];
97637
- generatedNames = new Set();
97624
+ generatedNames = /* @__PURE__ */ new Set();
97638
97625
  formattedNameTempFlagsStack = [];
97639
- formattedNameTempFlags = new Map();
97626
+ formattedNameTempFlags = /* @__PURE__ */ new Map();
97640
97627
  privateNameTempFlagsStack = [];
97641
97628
  privateNameTempFlags = TempFlags.Auto;
97642
97629
  tempFlagsStack = [];
@@ -98188,7 +98175,7 @@ ${lanes.join("\n")}
98188
98175
  if (moduleKind === 0 /* None */ || printerOptions.noEmitHelpers) {
98189
98176
  return void 0;
98190
98177
  }
98191
- const bundledHelpers2 = new Map();
98178
+ const bundledHelpers2 = /* @__PURE__ */ new Map();
98192
98179
  for (const sourceFile of bundle.sourceFiles) {
98193
98180
  const shouldSkip = getExternalHelpersModuleName(sourceFile) !== void 0;
98194
98181
  const helpers = getSortedEmitHelpers(sourceFile);
@@ -100038,7 +100025,7 @@ ${lanes.join("\n")}
100038
100025
  if (isSourceFile(sourceFileOrBundle)) {
100039
100026
  emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle);
100040
100027
  } else {
100041
- const seenPrologueDirectives = new Set();
100028
+ const seenPrologueDirectives = /* @__PURE__ */ new Set();
100042
100029
  for (const prepend of sourceFileOrBundle.prepends) {
100043
100030
  emitUnparsedPrologues(prepend.prologues, seenPrologueDirectives);
100044
100031
  }
@@ -100049,7 +100036,7 @@ ${lanes.join("\n")}
100049
100036
  }
100050
100037
  }
100051
100038
  function getPrologueDirectivesFromBundledSourceFiles(bundle) {
100052
- const seenPrologueDirectives = new Set();
100039
+ const seenPrologueDirectives = /* @__PURE__ */ new Set();
100053
100040
  let prologues;
100054
100041
  for (let index = 0; index < bundle.sourceFiles.length; index++) {
100055
100042
  const sourceFile = bundle.sourceFiles[index];
@@ -100709,7 +100696,7 @@ ${lanes.join("\n")}
100709
100696
  }
100710
100697
  function reserveNameInNestedScopes(name) {
100711
100698
  if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) {
100712
- reservedNames = new Set();
100699
+ reservedNames = /* @__PURE__ */ new Set();
100713
100700
  }
100714
100701
  reservedNames.add(name);
100715
100702
  }
@@ -100871,7 +100858,7 @@ ${lanes.join("\n")}
100871
100858
  privateNameTempFlags = flags;
100872
100859
  break;
100873
100860
  default:
100874
- formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = new Map();
100861
+ formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = /* @__PURE__ */ new Map();
100875
100862
  formattedNameTempFlags.set(formattedNameKey, flags);
100876
100863
  break;
100877
100864
  }
@@ -101474,7 +101461,7 @@ ${lanes.join("\n")}
101474
101461
  if (!host.getDirectories || !host.readDirectory) {
101475
101462
  return void 0;
101476
101463
  }
101477
- const cachedReadDirectoryResult = new Map();
101464
+ const cachedReadDirectoryResult = /* @__PURE__ */ new Map();
101478
101465
  const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
101479
101466
  return {
101480
101467
  useCaseSensitiveFileNames,
@@ -101688,7 +101675,7 @@ ${lanes.join("\n")}
101688
101675
  existing.projects.add(projectPath);
101689
101676
  } else {
101690
101677
  extendedConfigFilesMap.set(extendedConfigFilePath, {
101691
- projects: new Set([projectPath]),
101678
+ projects: /* @__PURE__ */ new Set([projectPath]),
101692
101679
  watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath),
101693
101680
  close: () => {
101694
101681
  const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath);
@@ -102001,7 +101988,7 @@ ${lanes.join("\n")}
102001
101988
  };
102002
101989
  }
102003
101990
  function createCompilerHostWorker(options, setParentNodes, system = sys) {
102004
- const existingDirectories = new Map();
101991
+ const existingDirectories = /* @__PURE__ */ new Map();
102005
101992
  const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);
102006
101993
  function directoryExists(directoryPath) {
102007
101994
  if (existingDirectories.has(directoryPath)) {
@@ -102050,10 +102037,10 @@ ${lanes.join("\n")}
102050
102037
  const originalDirectoryExists = host.directoryExists;
102051
102038
  const originalCreateDirectory = host.createDirectory;
102052
102039
  const originalWriteFile = host.writeFile;
102053
- const readFileCache = new Map();
102054
- const fileExistsCache = new Map();
102055
- const directoryExistsCache = new Map();
102056
- const sourceFileCache = new Map();
102040
+ const readFileCache = /* @__PURE__ */ new Map();
102041
+ const fileExistsCache = /* @__PURE__ */ new Map();
102042
+ const directoryExistsCache = /* @__PURE__ */ new Map();
102043
+ const sourceFileCache = /* @__PURE__ */ new Map();
102057
102044
  const readFileWithCache = (fileName) => {
102058
102045
  const key = toPath3(fileName);
102059
102046
  const value = readFileCache.get(key);
@@ -102085,7 +102072,7 @@ ${lanes.join("\n")}
102085
102072
  return value;
102086
102073
  const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
102087
102074
  if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */))) {
102088
- sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || new Map()).set(key, sourceFile));
102075
+ sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile));
102089
102076
  }
102090
102077
  return sourceFile;
102091
102078
  } : void 0;
@@ -102310,7 +102297,7 @@ ${lanes.join("\n")}
102310
102297
  return [];
102311
102298
  }
102312
102299
  const resolutions = [];
102313
- const cache = new Map();
102300
+ const cache = /* @__PURE__ */ new Map();
102314
102301
  for (const name of names) {
102315
102302
  let result;
102316
102303
  const mode = getModeForFileReference(name, containingFileMode);
@@ -102395,7 +102382,7 @@ ${lanes.join("\n")}
102395
102382
  return [];
102396
102383
  }
102397
102384
  const resolutions = [];
102398
- const cache = new Map();
102385
+ const cache = /* @__PURE__ */ new Map();
102399
102386
  let i = 0;
102400
102387
  for (const entry of resolutionInfo ? resolutionInfo.names : names) {
102401
102388
  let result;
@@ -102431,7 +102418,7 @@ ${lanes.join("\n")}
102431
102418
  const result = cbResolvedRef(resolvedRef, parent2, index);
102432
102419
  if (result || !resolvedRef)
102433
102420
  return result;
102434
- (seenResolvedRefs || (seenResolvedRefs = new Set())).add(resolvedRef.sourceFile.path);
102421
+ (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
102435
102422
  return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef);
102436
102423
  });
102437
102424
  }
@@ -102551,7 +102538,7 @@ ${lanes.join("\n")}
102551
102538
  return { impliedNodeFormat, packageJsonLocations, packageJsonScope };
102552
102539
  }
102553
102540
  }
102554
- var plainJSErrors = new Set([
102541
+ var plainJSErrors = /* @__PURE__ */ new Set([
102555
102542
  Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
102556
102543
  Diagnostics.A_module_cannot_have_multiple_default_exports.code,
102557
102544
  Diagnostics.Another_export_default_is_here.code,
@@ -102670,7 +102657,7 @@ ${lanes.join("\n")}
102670
102657
  let commonSourceDirectory;
102671
102658
  let typeChecker;
102672
102659
  let classifiableNames;
102673
- const ambientModuleNameToUnmodifiedFileName = new Map();
102660
+ const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map();
102674
102661
  let fileReasons = createMultiMap();
102675
102662
  const cachedBindAndCheckDiagnosticsForFile = {};
102676
102663
  const cachedDeclarationDiagnosticsForFile = {};
@@ -102678,8 +102665,8 @@ ${lanes.join("\n")}
102678
102665
  let fileProcessingDiagnostics;
102679
102666
  const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === "number" ? options.maxNodeModuleJsDepth : 0;
102680
102667
  let currentNodeModulesDepth = 0;
102681
- const modulesWithElidedImports = new Map();
102682
- const sourceFilesFoundSearchingNodeModules = new Map();
102668
+ const modulesWithElidedImports = /* @__PURE__ */ new Map();
102669
+ const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map();
102683
102670
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "createProgram", { configFilePath: options.configFilePath, rootDir: options.rootDir }, true);
102684
102671
  mark("beforeProgram");
102685
102672
  const host = createProgramOptions.host || createCompilerHost(options);
@@ -102691,7 +102678,7 @@ ${lanes.join("\n")}
102691
102678
  const currentDirectory = host.getCurrentDirectory();
102692
102679
  const supportedExtensions = getSupportedExtensions(options);
102693
102680
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
102694
- const hasEmitBlockingDiagnostics = new Map();
102681
+ const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map();
102695
102682
  let _compilerOptionsObjectLiteralSyntax;
102696
102683
  let moduleResolutionCache;
102697
102684
  let typeReferenceDirectiveResolutionCache;
@@ -102739,13 +102726,13 @@ ${lanes.join("\n")}
102739
102726
  ).resolvedTypeReferenceDirective;
102740
102727
  actualResolveTypeReferenceDirectiveNamesWorker = (typeReferenceDirectiveNames, containingFile, redirectedReference, containingFileMode) => loadWithTypeDirectiveCache(Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, containingFileMode, loader);
102741
102728
  }
102742
- const packageIdToSourceFile = new Map();
102743
- let sourceFileToPackageName = new Map();
102729
+ const packageIdToSourceFile = /* @__PURE__ */ new Map();
102730
+ let sourceFileToPackageName = /* @__PURE__ */ new Map();
102744
102731
  let redirectTargetsMap = createMultiMap();
102745
102732
  let usesUriStyleNodeCoreModules = false;
102746
- const filesByName = new Map();
102733
+ const filesByName = /* @__PURE__ */ new Map();
102747
102734
  let missingFilePaths;
102748
- const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new Map() : void 0;
102735
+ const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
102749
102736
  let resolvedProjectReferences;
102750
102737
  let projectReferenceRedirects;
102751
102738
  let mapFromFileToProjectReferenceRedirects;
@@ -103054,7 +103041,7 @@ ${lanes.join("\n")}
103054
103041
  var _a3;
103055
103042
  if (!classifiableNames) {
103056
103043
  getTypeChecker();
103057
- classifiableNames = new Set();
103044
+ classifiableNames = /* @__PURE__ */ new Set();
103058
103045
  for (const sourceFile of files) {
103059
103046
  (_a3 = sourceFile.classifiableNames) == null ? void 0 : _a3.forEach((value) => classifiableNames.add(value));
103060
103047
  }
@@ -103263,7 +103250,7 @@ ${lanes.join("\n")}
103263
103250
  SeenPackageName2[SeenPackageName2["Exists"] = 0] = "Exists";
103264
103251
  SeenPackageName2[SeenPackageName2["Modified"] = 1] = "Modified";
103265
103252
  })(SeenPackageName || (SeenPackageName = {}));
103266
- const seenPackageNames = new Map();
103253
+ const seenPackageNames = /* @__PURE__ */ new Map();
103267
103254
  for (const oldSourceFile of oldSourceFiles) {
103268
103255
  const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options);
103269
103256
  let newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat) : host.getSourceFile(oldSourceFile.fileName, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat);
@@ -103866,7 +103853,7 @@ ${lanes.join("\n")}
103866
103853
  }
103867
103854
  const result = getDiagnostics2(sourceFile, cancellationToken);
103868
103855
  if (sourceFile) {
103869
- (cache.perFile || (cache.perFile = new Map())).set(sourceFile.path, result);
103856
+ (cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result);
103870
103857
  } else {
103871
103858
  cache.allDiagnostics = result;
103872
103859
  }
@@ -104274,7 +104261,7 @@ ${lanes.join("\n")}
104274
104261
  }
104275
104262
  function getResolvedProjectReferenceToRedirect(fileName) {
104276
104263
  if (mapFromFileToProjectReferenceRedirects === void 0) {
104277
- mapFromFileToProjectReferenceRedirects = new Map();
104264
+ mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();
104278
104265
  forEachResolvedProjectReference2((referencedProject) => {
104279
104266
  if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {
104280
104267
  referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));
@@ -104291,7 +104278,7 @@ ${lanes.join("\n")}
104291
104278
  if (!isDeclarationFileName(path))
104292
104279
  return void 0;
104293
104280
  if (mapFromToProjectReferenceRedirectSource === void 0) {
104294
- mapFromToProjectReferenceRedirectSource = new Map();
104281
+ mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();
104295
104282
  forEachResolvedProjectReference2((resolvedRef) => {
104296
104283
  const out = outFile(resolvedRef.commandLine.options);
104297
104284
  if (out) {
@@ -104492,7 +104479,7 @@ ${lanes.join("\n")}
104492
104479
  }
104493
104480
  function parseProjectReferenceConfigFile(ref) {
104494
104481
  if (!projectReferenceRedirects) {
104495
- projectReferenceRedirects = new Map();
104482
+ projectReferenceRedirects = /* @__PURE__ */ new Map();
104496
104483
  }
104497
104484
  const refPath = resolveProjectReferencePath(ref);
104498
104485
  const sourceFilePath = toPath3(refPath);
@@ -104750,7 +104737,7 @@ ${lanes.join("\n")}
104750
104737
  }
104751
104738
  if (!options.noEmit && !options.suppressOutputPathCheck) {
104752
104739
  const emitHost = getEmitHost();
104753
- const emitFilesSeen = new Set();
104740
+ const emitFilesSeen = /* @__PURE__ */ new Set();
104754
104741
  forEachEmittedFile(emitHost, (emitFileNames) => {
104755
104742
  if (!options.emitDeclarationOnly) {
104756
104743
  verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen);
@@ -105106,7 +105093,7 @@ ${lanes.join("\n")}
105106
105093
  if (!host.getResolvedProjectReferences())
105107
105094
  return false;
105108
105095
  if (!setOfDeclarationDirectories) {
105109
- setOfDeclarationDirectories = new Set();
105096
+ setOfDeclarationDirectories = /* @__PURE__ */ new Set();
105110
105097
  host.forEachResolvedProjectReference((ref) => {
105111
105098
  const out = outFile(ref.commandLine.options);
105112
105099
  if (out) {
@@ -105345,7 +105332,7 @@ ${lanes.join("\n")}
105345
105332
  getValues: (k) => forward.get(k),
105346
105333
  keys: () => forward.keys(),
105347
105334
  deleteKey: (k) => {
105348
- (deleted || (deleted = new Set())).add(k);
105335
+ (deleted || (deleted = /* @__PURE__ */ new Set())).add(k);
105349
105336
  const set = forward.get(k);
105350
105337
  if (!set) {
105351
105338
  return false;
@@ -105373,13 +105360,13 @@ ${lanes.join("\n")}
105373
105360
  };
105374
105361
  return map2;
105375
105362
  }
105376
- return create2(new Map(), new Map(), void 0);
105363
+ return create2(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0);
105377
105364
  }
105378
105365
  BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
105379
105366
  function addToMultimap(map2, k, v) {
105380
105367
  let set = map2.get(k);
105381
105368
  if (!set) {
105382
- set = new Set();
105369
+ set = /* @__PURE__ */ new Set();
105383
105370
  map2.set(k, set);
105384
105371
  }
105385
105372
  set.add(v);
@@ -105462,7 +105449,7 @@ ${lanes.join("\n")}
105462
105449
  }
105463
105450
  }
105464
105451
  function addReferencedFile(referencedPath) {
105465
- (referencedFiles || (referencedFiles = new Set())).add(referencedPath);
105452
+ (referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath);
105466
105453
  }
105467
105454
  }
105468
105455
  function canReuseOldState(newReferencedMap, oldState) {
@@ -105471,7 +105458,7 @@ ${lanes.join("\n")}
105471
105458
  BuilderState2.canReuseOldState = canReuseOldState;
105472
105459
  function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
105473
105460
  var _a2, _b, _c;
105474
- const fileInfos = new Map();
105461
+ const fileInfos = /* @__PURE__ */ new Map();
105475
105462
  const options = newProgram.getCompilerOptions();
105476
105463
  const isOutFile = outFile(options);
105477
105464
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
@@ -105543,7 +105530,7 @@ ${lanes.join("\n")}
105543
105530
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
105544
105531
  function updateSignatureOfFile(state, signature, path) {
105545
105532
  state.fileInfos.get(path).signature = signature;
105546
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(path);
105533
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
105547
105534
  }
105548
105535
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
105549
105536
  function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
@@ -105578,7 +105565,7 @@ ${lanes.join("\n")}
105578
105565
  if (latestSignature === void 0) {
105579
105566
  latestSignature = sourceFile.version;
105580
105567
  if (state.exportedModulesMap && latestSignature !== prevSignature) {
105581
- (state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
105568
+ (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
105582
105569
  const references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : void 0;
105583
105570
  if (references) {
105584
105571
  state.exportedModulesMap.set(sourceFile.resolvedPath, references);
@@ -105587,8 +105574,8 @@ ${lanes.join("\n")}
105587
105574
  }
105588
105575
  }
105589
105576
  }
105590
- (state.oldSignatures || (state.oldSignatures = new Map())).set(sourceFile.resolvedPath, prevSignature || false);
105591
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(sourceFile.resolvedPath);
105577
+ (state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false);
105578
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath);
105592
105579
  info.signature = latestSignature;
105593
105580
  return latestSignature !== prevSignature;
105594
105581
  }
@@ -105596,7 +105583,7 @@ ${lanes.join("\n")}
105596
105583
  function updateExportedModules(state, sourceFile, exportedModulesFromDeclarationEmit) {
105597
105584
  if (!state.exportedModulesMap)
105598
105585
  return;
105599
- (state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
105586
+ (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
105600
105587
  if (!exportedModulesFromDeclarationEmit) {
105601
105588
  state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);
105602
105589
  return;
@@ -105611,7 +105598,7 @@ ${lanes.join("\n")}
105611
105598
  function addExportedModule(exportedModulePaths) {
105612
105599
  if (exportedModulePaths == null ? void 0 : exportedModulePaths.length) {
105613
105600
  if (!exportedModules) {
105614
- exportedModules = new Set();
105601
+ exportedModules = /* @__PURE__ */ new Set();
105615
105602
  }
105616
105603
  exportedModulePaths.forEach((path) => exportedModules.add(path));
105617
105604
  }
@@ -105626,7 +105613,7 @@ ${lanes.join("\n")}
105626
105613
  if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {
105627
105614
  return getAllFileNames(state, programOfThisState);
105628
105615
  }
105629
- const seenMap = new Set();
105616
+ const seenMap = /* @__PURE__ */ new Set();
105630
105617
  const queue = [sourceFile.resolvedPath];
105631
105618
  while (queue.length) {
105632
105619
  const path = queue.pop();
@@ -105709,7 +105696,7 @@ ${lanes.join("\n")}
105709
105696
  if (compilerOptions && (compilerOptions.isolatedModules || outFile(compilerOptions))) {
105710
105697
  return [sourceFileWithUpdatedShape];
105711
105698
  }
105712
- const seenFileNamesMap = new Map();
105699
+ const seenFileNamesMap = /* @__PURE__ */ new Map();
105713
105700
  seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);
105714
105701
  const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);
105715
105702
  while (queue.length > 0) {
@@ -105779,11 +105766,11 @@ ${lanes.join("\n")}
105779
105766
  state.compilerOptions = compilerOptions;
105780
105767
  const outFilePath = outFile(compilerOptions);
105781
105768
  if (!outFilePath) {
105782
- state.semanticDiagnosticsPerFile = new Map();
105769
+ state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map();
105783
105770
  } else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === outFile(oldState == null ? void 0 : oldState.compilerOptions)) {
105784
105771
  state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature);
105785
105772
  }
105786
- state.changedFilesSet = new Set();
105773
+ state.changedFilesSet = /* @__PURE__ */ new Set();
105787
105774
  state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0;
105788
105775
  const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState);
105789
105776
  const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0;
@@ -105793,7 +105780,7 @@ ${lanes.join("\n")}
105793
105780
  (_a2 = oldState.changedFilesSet) == null ? void 0 : _a2.forEach((value) => state.changedFilesSet.add(value));
105794
105781
  if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) {
105795
105782
  state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit);
105796
- state.seenAffectedFiles = new Set();
105783
+ state.seenAffectedFiles = /* @__PURE__ */ new Set();
105797
105784
  }
105798
105785
  state.programEmitPending = oldState.programEmitPending;
105799
105786
  } else {
@@ -105819,7 +105806,7 @@ ${lanes.join("\n")}
105819
105806
  if (diagnostics) {
105820
105807
  state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
105821
105808
  if (!state.semanticDiagnosticsFromOldState) {
105822
- state.semanticDiagnosticsFromOldState = new Set();
105809
+ state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
105823
105810
  }
105824
105811
  state.semanticDiagnosticsFromOldState.add(sourceFilePath);
105825
105812
  }
@@ -105827,11 +105814,18 @@ ${lanes.join("\n")}
105827
105814
  if (canCopyEmitSignatures) {
105828
105815
  const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath);
105829
105816
  if (oldEmitSignature) {
105830
- ((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
105817
+ ((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = /* @__PURE__ */ new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
105831
105818
  }
105832
105819
  }
105833
105820
  });
105834
- if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => (outFilePath || info.affectsGlobalScope) && !state.fileInfos.has(sourceFilePath))) {
105821
+ if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => {
105822
+ if (state.fileInfos.has(sourceFilePath))
105823
+ return false;
105824
+ if (outFilePath || info.affectsGlobalScope)
105825
+ return true;
105826
+ state.buildInfoEmitPending = true;
105827
+ return false;
105828
+ })) {
105835
105829
  BuilderState.getAllFilesExcludingDefaultLibraryFile(state, newProgram, void 0).forEach((file) => addFileToChangeSet(state, file.resolvedPath));
105836
105830
  } else if (oldCompilerOptions) {
105837
105831
  const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions);
@@ -105847,7 +105841,7 @@ ${lanes.join("\n")}
105847
105841
  }
105848
105842
  });
105849
105843
  Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size);
105850
- state.seenAffectedFiles = state.seenAffectedFiles || new Set();
105844
+ state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set();
105851
105845
  state.buildInfoEmitPending = true;
105852
105846
  } else {
105853
105847
  state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind;
@@ -105978,7 +105972,7 @@ ${lanes.join("\n")}
105978
105972
  state.currentChangedFilePath = nextKey.value;
105979
105973
  state.affectedFilesIndex = 0;
105980
105974
  if (!state.seenAffectedFiles)
105981
- state.seenAffectedFiles = new Set();
105975
+ state.seenAffectedFiles = /* @__PURE__ */ new Set();
105982
105976
  }
105983
105977
  }
105984
105978
  function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) {
@@ -106106,7 +106100,7 @@ ${lanes.join("\n")}
106106
106100
  if (!isChangedSignature(state, affectedFile.resolvedPath))
106107
106101
  return;
106108
106102
  if (state.compilerOptions.isolatedModules) {
106109
- const seenFileNamesMap = new Map();
106103
+ const seenFileNamesMap = /* @__PURE__ */ new Map();
106110
106104
  seenFileNamesMap.set(affectedFile.resolvedPath, true);
106111
106105
  const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath);
106112
106106
  while (queue.length > 0) {
@@ -106123,7 +106117,7 @@ ${lanes.join("\n")}
106123
106117
  }
106124
106118
  }
106125
106119
  }
106126
- const seenFileAndExportsOfFile = new Set();
106120
+ const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
106127
106121
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
106128
106122
  if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
106129
106123
  return true;
@@ -106201,7 +106195,7 @@ ${lanes.join("\n")}
106201
106195
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
106202
106196
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
106203
106197
  const fileNames = [];
106204
- const fileNameToFileId = new Map();
106198
+ const fileNameToFileId = /* @__PURE__ */ new Map();
106205
106199
  if (outFile(state.compilerOptions)) {
106206
106200
  const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
106207
106201
  toFileId(key);
@@ -106278,7 +106272,7 @@ ${lanes.join("\n")}
106278
106272
  let affectedFilesPendingEmit;
106279
106273
  if ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.size) {
106280
106274
  const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);
106281
- const seenFiles = new Set();
106275
+ const seenFiles = /* @__PURE__ */ new Set();
106282
106276
  for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
106283
106277
  if (tryAddToSet(seenFiles, path)) {
106284
106278
  const file = state.program.getSourceFileByPath(path);
@@ -106331,7 +106325,7 @@ ${lanes.join("\n")}
106331
106325
  let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key);
106332
106326
  if (fileIdListId === void 0) {
106333
106327
  (fileIdsList || (fileIdsList = [])).push(fileIds);
106334
- (fileNamesToFileIdListId || (fileNamesToFileIdListId = new Map())).set(key, fileIdListId = fileIdsList.length);
106328
+ (fileNamesToFileIdListId || (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length);
106335
106329
  }
106336
106330
  return fileIdListId;
106337
106331
  }
@@ -106537,11 +106531,11 @@ ${lanes.join("\n")}
106537
106531
  state.affectedFilesIndex++;
106538
106532
  state.buildInfoEmitPending = true;
106539
106533
  const existing = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedSourceFile.resolvedPath)) || 0 /* None */;
106540
- ((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
106534
+ ((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
106541
106535
  const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind;
106542
106536
  const pendingKind = getPendingEmitKind(existingPending, emitKind | existing);
106543
106537
  if (pendingKind)
106544
- ((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
106538
+ ((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
106545
106539
  else
106546
106540
  (_e = state.affectedFilesPendingEmit) == null ? void 0 : _e.delete(affectedSourceFile.resolvedPath);
106547
106541
  } else {
@@ -106573,13 +106567,13 @@ ${lanes.join("\n")}
106573
106567
  emitSignature = signature;
106574
106568
  if (signature !== file.version) {
106575
106569
  if (host.storeFilesChangingSignatureDuringEmit)
106576
- ((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = new Set()).add(file.resolvedPath);
106570
+ ((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = /* @__PURE__ */ new Set()).add(file.resolvedPath);
106577
106571
  if (state.exportedModulesMap)
106578
106572
  BuilderState.updateExportedModules(state, file, file.exportedModulesFromDeclarationEmit);
106579
106573
  if (state.affectedFiles) {
106580
106574
  const existing = (_c = state.oldSignatures) == null ? void 0 : _c.get(file.resolvedPath);
106581
106575
  if (existing === void 0)
106582
- ((_d = state.oldSignatures) != null ? _d : state.oldSignatures = new Map()).set(file.resolvedPath, info.signature || false);
106576
+ ((_d = state.oldSignatures) != null ? _d : state.oldSignatures = /* @__PURE__ */ new Map()).set(file.resolvedPath, info.signature || false);
106583
106577
  info.signature = signature;
106584
106578
  } else {
106585
106579
  info.signature = signature;
@@ -106593,7 +106587,7 @@ ${lanes.join("\n")}
106593
106587
  emitSignature = handleNewSignature((_f = state.emitSignatures) == null ? void 0 : _f.get(filePath), emitSignature);
106594
106588
  if (!emitSignature)
106595
106589
  return;
106596
- ((_g = state.emitSignatures) != null ? _g : state.emitSignatures = new Map()).set(filePath, emitSignature);
106590
+ ((_g = state.emitSignatures) != null ? _g : state.emitSignatures = /* @__PURE__ */ new Map()).set(filePath, emitSignature);
106597
106591
  }
106598
106592
  } else if (state.compilerOptions.composite) {
106599
106593
  const newSignature = handleNewSignature(state.outSignature, void 0);
@@ -106710,7 +106704,7 @@ ${lanes.join("\n")}
106710
106704
  function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) {
106711
106705
  var _a2, _b;
106712
106706
  const existingKind = ((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.get(affectedFilePendingEmit)) || 0 /* None */;
106713
- ((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = new Map()).set(affectedFilePendingEmit, existingKind | kind);
106707
+ ((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedFilePendingEmit, existingKind | kind);
106714
106708
  }
106715
106709
  function toBuilderStateFileInfoForMultiEmit(fileInfo) {
106716
106710
  return isString(fileInfo) ? { version: fileInfo, signature: fileInfo, affectsGlobalScope: void 0, impliedFormat: void 0 } : isString(fileInfo.signature) ? fileInfo : { version: fileInfo.version, signature: fileInfo.signature === false ? void 0 : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat };
@@ -106731,7 +106725,7 @@ ${lanes.join("\n")}
106731
106725
  let filePathsSetList;
106732
106726
  const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0;
106733
106727
  if (isProgramBundleEmitBuildInfo(program)) {
106734
- const fileInfos = new Map();
106728
+ const fileInfos = /* @__PURE__ */ new Map();
106735
106729
  program.fileInfos.forEach((fileInfo, index) => {
106736
106730
  const path = toFilePath(index + 1);
106737
106731
  fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);
@@ -106746,8 +106740,8 @@ ${lanes.join("\n")}
106746
106740
  };
106747
106741
  } else {
106748
106742
  filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));
106749
- const fileInfos = new Map();
106750
- const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? new Map() : void 0;
106743
+ const fileInfos = /* @__PURE__ */ new Map();
106744
+ const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? /* @__PURE__ */ new Map() : void 0;
106751
106745
  program.fileInfos.forEach((fileInfo, index) => {
106752
106746
  const path = toFilePath(index + 1);
106753
106747
  const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);
@@ -106831,7 +106825,7 @@ ${lanes.join("\n")}
106831
106825
  function getBuildInfoFileVersionMap(program, buildInfoPath, host) {
106832
106826
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
106833
106827
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
106834
- const fileInfos = new Map();
106828
+ const fileInfos = /* @__PURE__ */ new Map();
106835
106829
  program.fileInfos.forEach((fileInfo, index) => {
106836
106830
  const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
106837
106831
  const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
@@ -106923,7 +106917,7 @@ ${lanes.join("\n")}
106923
106917
  const resolutionsWithFailedLookups = [];
106924
106918
  const resolutionsWithOnlyAffectingLocations = [];
106925
106919
  const resolvedFileToResolution = createMultiMap();
106926
- const impliedFormatPackageJsons = new Map();
106920
+ const impliedFormatPackageJsons = /* @__PURE__ */ new Map();
106927
106921
  let hasChangedAutomaticTypeDirectiveNames = false;
106928
106922
  let affectingPathChecksForFile;
106929
106923
  let affectingPathChecks;
@@ -106932,7 +106926,7 @@ ${lanes.join("\n")}
106932
106926
  let isInDirectoryChecks;
106933
106927
  const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory());
106934
106928
  const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost();
106935
- const resolvedModuleNames = new Map();
106929
+ const resolvedModuleNames = /* @__PURE__ */ new Map();
106936
106930
  const perDirectoryResolvedModuleNames = createCacheWithRedirects();
106937
106931
  const nonRelativeModuleNameCache = createCacheWithRedirects();
106938
106932
  const moduleResolutionCache = createModuleResolutionCache(
@@ -106942,7 +106936,7 @@ ${lanes.join("\n")}
106942
106936
  perDirectoryResolvedModuleNames,
106943
106937
  nonRelativeModuleNameCache
106944
106938
  );
106945
- const resolvedTypeReferenceDirectives = new Map();
106939
+ const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map();
106946
106940
  const perDirectoryResolvedTypeReferenceDirectives = createCacheWithRedirects();
106947
106941
  const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(
106948
106942
  getCurrentDirectory(),
@@ -106952,13 +106946,13 @@ ${lanes.join("\n")}
106952
106946
  perDirectoryResolvedTypeReferenceDirectives
106953
106947
  );
106954
106948
  const failedLookupDefaultExtensions = [".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */, ".json" /* Json */];
106955
- const customFailedLookupPaths = new Map();
106956
- const directoryWatchesOfFailedLookups = new Map();
106957
- const fileWatchesOfAffectingLocations = new Map();
106949
+ const customFailedLookupPaths = /* @__PURE__ */ new Map();
106950
+ const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map();
106951
+ const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map();
106958
106952
  const rootDir = rootDirForResolution && removeTrailingDirectorySeparator(getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()));
106959
106953
  const rootPath = rootDir && resolutionHost.toPath(rootDir);
106960
106954
  const rootSplitLength = rootPath !== void 0 ? rootPath.split(directorySeparator).length : 0;
106961
- const typeRootsWatches = new Map();
106955
+ const typeRootsWatches = /* @__PURE__ */ new Map();
106962
106956
  return {
106963
106957
  getModuleResolutionCache: () => moduleResolutionCache,
106964
106958
  startRecordingFilesWithChangedResolutions,
@@ -107411,16 +107405,16 @@ ${lanes.join("\n")}
107411
107405
  }
107412
107406
  }
107413
107407
  }
107414
- const paths = new Set();
107408
+ const paths = /* @__PURE__ */ new Set();
107415
107409
  paths.add(locationToWatch);
107416
107410
  let actualWatcher = canWatchDirectoryOrFile(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => {
107417
107411
  cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind);
107418
107412
  const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();
107419
107413
  paths.forEach((path) => {
107420
107414
  if (watcher.resolutions)
107421
- (affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = new Set()).add(path);
107415
+ (affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = /* @__PURE__ */ new Set()).add(path);
107422
107416
  if (watcher.files)
107423
- (affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = new Set()).add(path);
107417
+ (affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = /* @__PURE__ */ new Set()).add(path);
107424
107418
  packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path));
107425
107419
  });
107426
107420
  resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
@@ -107548,7 +107542,7 @@ ${lanes.join("\n")}
107548
107542
  continue;
107549
107543
  resolution.isInvalidated = invalidated = true;
107550
107544
  for (const containingFilePath of Debug.checkDefined(resolution.files)) {
107551
- (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(containingFilePath);
107545
+ (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(containingFilePath);
107552
107546
  hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile);
107553
107547
  }
107554
107548
  }
@@ -107567,7 +107561,7 @@ ${lanes.join("\n")}
107567
107561
  }
107568
107562
  function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) {
107569
107563
  if (isCreatingWatchedDirectory) {
107570
- (isInDirectoryChecks || (isInDirectoryChecks = new Set())).add(fileOrDirectoryPath);
107564
+ (isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
107571
107565
  } else {
107572
107566
  const updatedPath = removeIgnoredPath(fileOrDirectoryPath);
107573
107567
  if (!updatedPath)
@@ -107578,8 +107572,8 @@ ${lanes.join("\n")}
107578
107572
  }
107579
107573
  const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath);
107580
107574
  if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) {
107581
- (failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
107582
- (startsWithPathChecks || (startsWithPathChecks = new Set())).add(fileOrDirectoryPath);
107575
+ (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
107576
+ (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
107583
107577
  } else {
107584
107578
  if (!isPathWithDefaultFailedLookupExtension(fileOrDirectoryPath) && !customFailedLookupPaths.has(fileOrDirectoryPath)) {
107585
107579
  return false;
@@ -107587,10 +107581,10 @@ ${lanes.join("\n")}
107587
107581
  if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {
107588
107582
  return false;
107589
107583
  }
107590
- (failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
107584
+ (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
107591
107585
  const packagePath = parseNodeModuleFromPath(fileOrDirectoryPath);
107592
107586
  if (packagePath)
107593
- (startsWithPathChecks || (startsWithPathChecks = new Set())).add(packagePath);
107587
+ (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath);
107594
107588
  }
107595
107589
  }
107596
107590
  resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
@@ -107601,7 +107595,7 @@ ${lanes.join("\n")}
107601
107595
  if (affectingPathChecksForFile) {
107602
107596
  (_a2 = resolutionHost.getCurrentProgram()) == null ? void 0 : _a2.getSourceFiles().forEach((f) => {
107603
107597
  if (some(f.packageJsonLocations, (location) => affectingPathChecksForFile.has(location))) {
107604
- (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(f.path);
107598
+ (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(f.path);
107605
107599
  invalidated = true;
107606
107600
  }
107607
107601
  });
@@ -107791,7 +107785,7 @@ ${lanes.join("\n")}
107791
107785
  if (errorCount === 0)
107792
107786
  return "";
107793
107787
  const nonNilFiles = filesInError.filter((fileInError) => fileInError !== void 0);
107794
- const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self2) => self2.indexOf(value) === index);
107788
+ const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self) => self.indexOf(value) === index);
107795
107789
  const firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
107796
107790
  const d = errorCount === 1 ? createCompilerDiagnostic(
107797
107791
  filesInError[0] !== void 0 ? Diagnostics.Found_1_error_in_1 : Diagnostics.Found_1_error,
@@ -107806,7 +107800,7 @@ ${lanes.join("\n")}
107806
107800
  return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}${suffix}`;
107807
107801
  }
107808
107802
  function createTabularErrorsDisplay(filesInError, host) {
107809
- const distinctFiles = filesInError.filter((value, index, self2) => index === self2.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));
107803
+ const distinctFiles = filesInError.filter((value, index, self) => index === self.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));
107810
107804
  if (distinctFiles.length === 0)
107811
107805
  return "";
107812
107806
  const numberLength = (num) => Math.log(num) * Math.LOG10E + 1;
@@ -108362,7 +108356,7 @@ ${lanes.join("\n")}
108362
108356
  let sharedExtendedConfigFileWatchers;
108363
108357
  let extendedConfigCache = host.extendedConfigCache;
108364
108358
  let reportFileChangeDetectedOnCreateProgram = false;
108365
- const sourceFilesCache = new Map();
108359
+ const sourceFilesCache = /* @__PURE__ */ new Map();
108366
108360
  let missingFilePathsRequestedForRelease;
108367
108361
  let hasChangedCompilerOptions = false;
108368
108362
  const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
@@ -108537,7 +108531,7 @@ ${lanes.join("\n")}
108537
108531
  const oldProgram = getCurrentProgram();
108538
108532
  builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
108539
108533
  resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram);
108540
- updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = new Map()), watchMissingFilePath);
108534
+ updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), watchMissingFilePath);
108541
108535
  if (needsUpdateInTypeRootWatch) {
108542
108536
  resolutionCache.updateTypeRootsWatch();
108543
108537
  }
@@ -108729,7 +108723,7 @@ ${lanes.join("\n")}
108729
108723
  configFileName,
108730
108724
  optionsToExtendForConfigFile,
108731
108725
  parseConfigFileHost,
108732
- extendedConfigCache || (extendedConfigCache = new Map()),
108726
+ extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
108733
108727
  watchOptionsToExtend,
108734
108728
  extraFileExtensions
108735
108729
  ));
@@ -108769,7 +108763,7 @@ ${lanes.join("\n")}
108769
108763
  config.parsedCommandLine = parsedCommandLine;
108770
108764
  config.reloadLevel = void 0;
108771
108765
  } else {
108772
- (parsedConfigs || (parsedConfigs = new Map())).set(configPath, config = { parsedCommandLine });
108766
+ (parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine });
108773
108767
  }
108774
108768
  watchReferencedProject(configFileName2, configPath, config);
108775
108769
  return parsedCommandLine;
@@ -108781,7 +108775,7 @@ ${lanes.join("\n")}
108781
108775
  configFileName2,
108782
108776
  void 0,
108783
108777
  parseConfigFileHost,
108784
- extendedConfigCache || (extendedConfigCache = new Map()),
108778
+ extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
108785
108779
  watchOptionsToExtend
108786
108780
  );
108787
108781
  parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic;
@@ -108830,7 +108824,7 @@ ${lanes.join("\n")}
108830
108824
  function watchConfigFileWildCardDirectories() {
108831
108825
  if (wildcardDirectories) {
108832
108826
  updateWatchingWildcardDirectories(
108833
- watchedWildcardDirectories || (watchedWildcardDirectories = new Map()),
108827
+ watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()),
108834
108828
  new Map(getEntries(wildcardDirectories)),
108835
108829
  watchWildcardDirectory
108836
108830
  );
@@ -108876,7 +108870,7 @@ ${lanes.join("\n")}
108876
108870
  updateSharedExtendedConfigFileWatcher(
108877
108871
  forProjectPath,
108878
108872
  options,
108879
- sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = new Map()),
108873
+ sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()),
108880
108874
  (extendedConfigFileName, extendedConfigFilePath) => watchFile2(
108881
108875
  extendedConfigFileName,
108882
108876
  (_fileName, eventKind) => {
@@ -108924,7 +108918,7 @@ ${lanes.join("\n")}
108924
108918
  ));
108925
108919
  if ((_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories) {
108926
108920
  updateWatchingWildcardDirectories(
108927
- commandLine.watchedDirectories || (commandLine.watchedDirectories = new Map()),
108921
+ commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()),
108928
108922
  new Map(getEntries((_c = commandLine.parsedCommandLine) == null ? void 0 : _c.wildcardDirectories)),
108929
108923
  (directory, flags) => {
108930
108924
  var _a3;
@@ -109017,7 +109011,7 @@ ${lanes.join("\n")}
109017
109011
  return existingValue || newValue;
109018
109012
  }
109019
109013
  function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) {
109020
- return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => new Map());
109014
+ return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map());
109021
109015
  }
109022
109016
  function getCurrentTime(host) {
109023
109017
  return host.now ? host.now() : new Date();
@@ -109106,16 +109100,16 @@ ${lanes.join("\n")}
109106
109100
  baseCompilerOptions,
109107
109101
  rootNames,
109108
109102
  baseWatchOptions,
109109
- resolvedConfigFilePaths: new Map(),
109110
- configFileCache: new Map(),
109111
- projectStatus: new Map(),
109112
- extendedConfigCache: new Map(),
109113
- buildInfoCache: new Map(),
109114
- outputTimeStamps: new Map(),
109115
- builderPrograms: new Map(),
109116
- diagnostics: new Map(),
109117
- projectPendingBuild: new Map(),
109118
- projectErrorsReported: new Map(),
109103
+ resolvedConfigFilePaths: /* @__PURE__ */ new Map(),
109104
+ configFileCache: /* @__PURE__ */ new Map(),
109105
+ projectStatus: /* @__PURE__ */ new Map(),
109106
+ extendedConfigCache: /* @__PURE__ */ new Map(),
109107
+ buildInfoCache: /* @__PURE__ */ new Map(),
109108
+ outputTimeStamps: /* @__PURE__ */ new Map(),
109109
+ builderPrograms: /* @__PURE__ */ new Map(),
109110
+ diagnostics: /* @__PURE__ */ new Map(),
109111
+ projectPendingBuild: /* @__PURE__ */ new Map(),
109112
+ projectErrorsReported: /* @__PURE__ */ new Map(),
109119
109113
  compilerHost,
109120
109114
  moduleResolutionCache,
109121
109115
  typeReferenceDirectiveResolutionCache,
@@ -109127,13 +109121,13 @@ ${lanes.join("\n")}
109127
109121
  needsSummary: true,
109128
109122
  watchAllProjectsPending: watch,
109129
109123
  watch,
109130
- allWatchedWildcardDirectories: new Map(),
109131
- allWatchedInputFiles: new Map(),
109132
- allWatchedConfigFiles: new Map(),
109133
- allWatchedExtendedConfigFiles: new Map(),
109134
- allWatchedPackageJsonFiles: new Map(),
109135
- filesWatched: new Map(),
109136
- lastCachedPackageJsonLookups: new Map(),
109124
+ allWatchedWildcardDirectories: /* @__PURE__ */ new Map(),
109125
+ allWatchedInputFiles: /* @__PURE__ */ new Map(),
109126
+ allWatchedConfigFiles: /* @__PURE__ */ new Map(),
109127
+ allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(),
109128
+ allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(),
109129
+ filesWatched: /* @__PURE__ */ new Map(),
109130
+ lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(),
109137
109131
  timerToBuildInvalidatedProject: void 0,
109138
109132
  reportFileChangeDetected: false,
109139
109133
  watchFile: watchFile2,
@@ -109189,8 +109183,8 @@ ${lanes.join("\n")}
109189
109183
  return resolveConfigFileProjectName(resolvePath(state.currentDirectory, name));
109190
109184
  }
109191
109185
  function createBuildOrder(state, roots) {
109192
- const temporaryMarks = new Map();
109193
- const permanentMarks = new Map();
109186
+ const temporaryMarks = /* @__PURE__ */ new Map();
109187
+ const permanentMarks = /* @__PURE__ */ new Map();
109194
109188
  const circularityReportStack = [];
109195
109189
  let buildOrder;
109196
109190
  let circularDiagnostics;
@@ -109609,7 +109603,7 @@ ${lanes.join("\n")}
109609
109603
  const { host, compilerHost } = state;
109610
109604
  const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */;
109611
109605
  const emitterDiagnostics = createDiagnosticCollection();
109612
- const emittedOutputs = new Map();
109606
+ const emittedOutputs = /* @__PURE__ */ new Map();
109613
109607
  const options = program.getCompilerOptions();
109614
109608
  const isIncremental = isIncrementalCompilation(options);
109615
109609
  let outputTimeStampMap;
@@ -109724,7 +109718,7 @@ ${lanes.join("\n")}
109724
109718
  }
109725
109719
  Debug.assert(!!outputFiles.length);
109726
109720
  const emitterDiagnostics = createDiagnosticCollection();
109727
- const emittedOutputs = new Map();
109721
+ const emittedOutputs = /* @__PURE__ */ new Map();
109728
109722
  let resultFlags = 2 /* DeclarationOutputUnchanged */;
109729
109723
  const existingBuildInfo = state.buildInfoCache.get(projectPath).buildInfo || void 0;
109730
109724
  outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => {
@@ -109996,7 +109990,7 @@ ${lanes.join("\n")}
109996
109990
  return void 0;
109997
109991
  let result = state.outputTimeStamps.get(resolvedConfigFilePath);
109998
109992
  if (!result)
109999
- state.outputTimeStamps.set(resolvedConfigFilePath, result = new Map());
109993
+ state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map());
110000
109994
  return result;
110001
109995
  }
110002
109996
  function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) {
@@ -110294,7 +110288,7 @@ ${lanes.join("\n")}
110294
110288
  const { host } = state;
110295
110289
  const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());
110296
110290
  const outputTimeStampMap = getOutputTimeStampMap(state, projectPath);
110297
- const modifiedOutputs = outputTimeStampMap ? new Set() : void 0;
110291
+ const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0;
110298
110292
  if (!skipOutputs || outputs.length !== skipOutputs.size) {
110299
110293
  let reportVerbose = !!state.options.verbose;
110300
110294
  for (const file of outputs) {
@@ -110963,7 +110957,7 @@ ${lanes.join("\n")}
110963
110957
  if (!typeAcquisition || !typeAcquisition.enable) {
110964
110958
  return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };
110965
110959
  }
110966
- const inferredTypings = new Map();
110960
+ const inferredTypings = /* @__PURE__ */ new Map();
110967
110961
  fileNames = mapDefined(fileNames, (fileName) => {
110968
110962
  const path = normalizePath(fileName);
110969
110963
  if (hasJSFileExtension(path)) {
@@ -113754,7 +113748,7 @@ ${lanes.join("\n")}
113754
113748
  if (!dependencies) {
113755
113749
  continue;
113756
113750
  }
113757
- const dependencyMap = new Map();
113751
+ const dependencyMap = /* @__PURE__ */ new Map();
113758
113752
  for (const packageName in dependencies) {
113759
113753
  dependencyMap.set(packageName, dependencies[packageName]);
113760
113754
  }
@@ -114052,8 +114046,8 @@ ${lanes.join("\n")}
114052
114046
  function createCacheableExportInfoMap(host) {
114053
114047
  let exportInfoId = 1;
114054
114048
  const exportInfo = createMultiMap();
114055
- const symbols = new Map();
114056
- const packages = new Map();
114049
+ const symbols = /* @__PURE__ */ new Map();
114050
+ const packages = /* @__PURE__ */ new Map();
114057
114051
  let usableByFileName;
114058
114052
  const cache = {
114059
114053
  isUsableByFile: (importingFile) => importingFile === usableByFileName,
@@ -114315,7 +114309,7 @@ ${lanes.join("\n")}
114315
114309
  forEachExternalModuleToImportFrom(program, host, preferences, true, (moduleSymbol, moduleFile, program2, isFromPackageJson) => {
114316
114310
  if (++moduleCount % 100 === 0)
114317
114311
  cancellationToken == null ? void 0 : cancellationToken.throwIfCancellationRequested();
114318
- const seenExports = new Map();
114312
+ const seenExports = /* @__PURE__ */ new Map();
114319
114313
  const checker = program2.getTypeChecker();
114320
114314
  const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);
114321
114315
  if (defaultInfo && isImportableSymbol(defaultInfo.symbol, checker)) {
@@ -115656,7 +115650,7 @@ ${lanes.join("\n")}
115656
115650
  return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory);
115657
115651
  }
115658
115652
  function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory = "", externalCache) {
115659
- const buckets = new Map();
115653
+ const buckets = /* @__PURE__ */ new Map();
115660
115654
  const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames);
115661
115655
  function reportStats() {
115662
115656
  const bucketInfoArray = arrayFrom(buckets.keys()).filter((name) => name && name.charAt(0) === "_").map((name) => {
@@ -115722,7 +115716,7 @@ ${lanes.join("\n")}
115722
115716
  sourceFileOptions.languageVersion = scriptTarget;
115723
115717
  const oldBucketCount = buckets.size;
115724
115718
  const keyWithMode = getDocumentRegistryBucketKeyWithMode(key, sourceFileOptions.impliedNodeFormat);
115725
- const bucket = getOrUpdate(buckets, keyWithMode, () => new Map());
115719
+ const bucket = getOrUpdate(buckets, keyWithMode, () => /* @__PURE__ */ new Map());
115726
115720
  if (tracing) {
115727
115721
  if (buckets.size > oldBucketCount) {
115728
115722
  tracing.instant(tracing.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: compilationSettings.configFilePath, key: keyWithMode });
@@ -115777,7 +115771,7 @@ ${lanes.join("\n")}
115777
115771
  if (!bucketEntry) {
115778
115772
  bucket.set(path, entry);
115779
115773
  } else if (isDocumentRegistryEntry(bucketEntry)) {
115780
- const scriptKindMap = new Map();
115774
+ const scriptKindMap = /* @__PURE__ */ new Map();
115781
115775
  scriptKindMap.set(bucketEntry.sourceFile.scriptKind, bucketEntry);
115782
115776
  scriptKindMap.set(scriptKind, entry);
115783
115777
  bucket.set(path, scriptKindMap);
@@ -116061,7 +116055,7 @@ ${lanes.join("\n")}
116061
116055
  };
116062
116056
  }
116063
116057
  function createPatternMatcher(pattern) {
116064
- const stringToWordSpans = new Map();
116058
+ const stringToWordSpans = /* @__PURE__ */ new Map();
116065
116059
  const dotSeparatedSegments = pattern.trim().split(".").map((p) => createSegment(p.trim()));
116066
116060
  if (dotSeparatedSegments.some((segment) => !segment.subWordTextChunks.length))
116067
116061
  return void 0;
@@ -116671,8 +116665,8 @@ ${lanes.join("\n")}
116671
116665
  function getSourceMapper(host) {
116672
116666
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
116673
116667
  const currentDirectory = host.getCurrentDirectory();
116674
- const sourceFileLike = new Map();
116675
- const documentPositionMappers = new Map();
116668
+ const sourceFileLike = /* @__PURE__ */ new Map();
116669
+ const documentPositionMappers = /* @__PURE__ */ new Map();
116676
116670
  return { tryGetSourcePosition, tryGetGeneratedPosition, toLineColumnOffset, clearCache };
116677
116671
  function toPath3(fileName) {
116678
116672
  return toPath(fileName, currentDirectory, getCanonicalFileName);
@@ -116808,7 +116802,7 @@ ${lanes.join("\n")}
116808
116802
  }
116809
116803
 
116810
116804
  // src/services/suggestionDiagnostics.ts
116811
- var visitedNestedConvertibleFunctions = new Map();
116805
+ var visitedNestedConvertibleFunctions = /* @__PURE__ */ new Map();
116812
116806
  function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) {
116813
116807
  program.getSemanticDiagnostics(sourceFile, cancellationToken);
116814
116808
  const diags = [];
@@ -117269,7 +117263,7 @@ ${lanes.join("\n")}
117269
117263
  }
117270
117264
  function addTrackedEs5Class(name) {
117271
117265
  if (!trackedEs5Classes) {
117272
- trackedEs5Classes = new Map();
117266
+ trackedEs5Classes = /* @__PURE__ */ new Map();
117273
117267
  }
117274
117268
  trackedEs5Classes.set(name, true);
117275
117269
  }
@@ -117541,7 +117535,7 @@ ${lanes.join("\n")}
117541
117535
  }
117542
117536
  }
117543
117537
  function mergeChildren(children, node) {
117544
- const nameToItems = new Map();
117538
+ const nameToItems = /* @__PURE__ */ new Map();
117545
117539
  filterMutate(children, (child, index) => {
117546
117540
  const declName = child.name || getNameOfDeclaration(child.node);
117547
117541
  const name = declName && nodeText(declName);
@@ -118375,7 +118369,7 @@ ${lanes.join("\n")}
118375
118369
  return emptyArray;
118376
118370
  let tags = ts_JsDoc_exports.getJsDocTagsFromDeclarations(declarations, checker);
118377
118371
  if (checker && (tags.length === 0 || declarations.some(hasJSDocInheritDocTag))) {
118378
- const seenSymbols = new Set();
118372
+ const seenSymbols = /* @__PURE__ */ new Set();
118379
118373
  for (const declaration of declarations) {
118380
118374
  const inheritedTags = findBaseOfDeclaration(checker, declaration, (symbol) => {
118381
118375
  var _a2;
@@ -118399,7 +118393,7 @@ ${lanes.join("\n")}
118399
118393
  return emptyArray;
118400
118394
  let doc = ts_JsDoc_exports.getJsDocCommentsFromDeclarations(declarations, checker);
118401
118395
  if (checker && (doc.length === 0 || declarations.some(hasJSDocInheritDocTag))) {
118402
- const seenSymbols = new Set();
118396
+ const seenSymbols = /* @__PURE__ */ new Set();
118403
118397
  for (const declaration of declarations) {
118404
118398
  const inheritedDocs = findBaseOfDeclaration(checker, declaration, (symbol) => {
118405
118399
  if (!seenSymbols.has(symbol)) {
@@ -118941,7 +118935,7 @@ ${lanes.join("\n")}
118941
118935
  if (existing !== void 0)
118942
118936
  return existing || void 0;
118943
118937
  const result = host.getParsedCommandLine ? host.getParsedCommandLine(fileName) : getParsedCommandLineOfConfigFileUsingSourceFile(fileName);
118944
- (parsedCommandLines || (parsedCommandLines = new Map())).set(path, result || false);
118938
+ (parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map())).set(path, result || false);
118945
118939
  return result;
118946
118940
  }
118947
118941
  function getParsedCommandLineOfConfigFileUsingSourceFile(configFileName) {
@@ -119502,7 +119496,7 @@ ${lanes.join("\n")}
119502
119496
  const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
119503
119497
  let isCommenting = insertComment || false;
119504
119498
  let leftMostPosition = Number.MAX_VALUE;
119505
- const lineTextStarts = new Map();
119499
+ const lineTextStarts = /* @__PURE__ */ new Map();
119506
119500
  const firstNonWhitespaceCharacterRegex = new RegExp(/\S/);
119507
119501
  const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);
119508
119502
  const openComment = isJsx ? "{/*" : "//";
@@ -119902,7 +119896,7 @@ ${lanes.join("\n")}
119902
119896
  return sourceFile.nameTable;
119903
119897
  }
119904
119898
  function initializeNameTable(sourceFile) {
119905
- const nameTable = sourceFile.nameTable = new Map();
119899
+ const nameTable = sourceFile.nameTable = /* @__PURE__ */ new Map();
119906
119900
  sourceFile.forEachChild(function walk(node) {
119907
119901
  if (isIdentifier(node) && !isTagName(node) && node.escapedText || isStringOrNumericLiteralLike(node) && literalIsName(node)) {
119908
119902
  const text = getEscapedTextOfIdentifierOrLiteral(node);
@@ -121949,7 +121943,7 @@ ${lanes.join("\n")}
121949
121943
  function isRightSideOfQualifiedNameOrPropertyAccess2(node) {
121950
121944
  return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node;
121951
121945
  }
121952
- var tokenFromDeclarationMapping = new Map([
121946
+ var tokenFromDeclarationMapping = /* @__PURE__ */ new Map([
121953
121947
  [257 /* VariableDeclaration */, 7 /* variable */],
121954
121948
  [166 /* Parameter */, 6 /* parameter */],
121955
121949
  [169 /* PropertyDeclaration */, 9 /* property */],
@@ -122017,7 +122011,7 @@ ${lanes.join("\n")}
122017
122011
 
122018
122012
  // src/services/codeFixProvider.ts
122019
122013
  var errorCodeToFixes = createMultiMap();
122020
- var fixIdToRegistration = new Map();
122014
+ var fixIdToRegistration = /* @__PURE__ */ new Map();
122021
122015
  function createCodeFixActionWithoutFixAll(fixName8, changes, description2) {
122022
122016
  return createCodeFixActionWorker(fixName8, diagnosticToString(description2), changes, void 0, void 0);
122023
122017
  }
@@ -122166,7 +122160,7 @@ ${lanes.join("\n")}
122166
122160
  },
122167
122161
  getAllCodeActions: (context) => {
122168
122162
  const { sourceFile } = context;
122169
- const fixedDeclarations = new Set();
122163
+ const fixedDeclarations = /* @__PURE__ */ new Set();
122170
122164
  return codeFixAll(context, errorCodes2, (t, diagnostic) => {
122171
122165
  const span = diagnostic.relatedInformation && find(diagnostic.relatedInformation, (r) => r.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);
122172
122166
  const decl = getFixableErrorSpanDeclaration(sourceFile, span);
@@ -122260,7 +122254,7 @@ ${lanes.join("\n")}
122260
122254
  getAllCodeActions: (context) => {
122261
122255
  const { sourceFile, program, cancellationToken } = context;
122262
122256
  const checker = context.program.getTypeChecker();
122263
- const fixedDeclarations = new Set();
122257
+ const fixedDeclarations = /* @__PURE__ */ new Set();
122264
122258
  return codeFixAll(context, errorCodes3, (t, diagnostic) => {
122265
122259
  const expression = getAwaitErrorSpanExpression(sourceFile, diagnostic.code, diagnostic, cancellationToken, program);
122266
122260
  if (!expression) {
@@ -122446,7 +122440,7 @@ ${lanes.join("\n")}
122446
122440
  },
122447
122441
  fixIds: [fixId4],
122448
122442
  getAllCodeActions: (context) => {
122449
- const fixedNodes = new Set();
122443
+ const fixedNodes = /* @__PURE__ */ new Set();
122450
122444
  return codeFixAll(context, errorCodes4, (changes, diag2) => makeChange4(changes, diag2.file, diag2.start, context.program, fixedNodes));
122451
122445
  }
122452
122446
  });
@@ -122537,7 +122531,7 @@ ${lanes.join("\n")}
122537
122531
  },
122538
122532
  fixIds: [fixId5],
122539
122533
  getAllCodeActions: (context) => {
122540
- const fixedNodes = new Set();
122534
+ const fixedNodes = /* @__PURE__ */ new Set();
122541
122535
  return codeFixAll(context, errorCodes5, (changes, diag2) => makeChange5(changes, diag2.file, diag2.start, fixedNodes));
122542
122536
  }
122543
122537
  });
@@ -123124,7 +123118,7 @@ ${lanes.join("\n")}
123124
123118
  if (!functionToConvert) {
123125
123119
  return;
123126
123120
  }
123127
- const synthNamesMap = new Map();
123121
+ const synthNamesMap = /* @__PURE__ */ new Map();
123128
123122
  const isInJavascript = isInJSFile(functionToConvert);
123129
123123
  const setOfExpressionsToReturn = getAllPromiseExpressionsToReturn(functionToConvert, checker);
123130
123124
  const functionToConvertRenamed = renameCollidingVarNames(functionToConvert, checker, synthNamesMap);
@@ -123168,9 +123162,9 @@ ${lanes.join("\n")}
123168
123162
  }
123169
123163
  function getAllPromiseExpressionsToReturn(func, checker) {
123170
123164
  if (!func.body) {
123171
- return new Set();
123165
+ return /* @__PURE__ */ new Set();
123172
123166
  }
123173
- const setOfExpressionsToReturn = new Set();
123167
+ const setOfExpressionsToReturn = /* @__PURE__ */ new Set();
123174
123168
  forEachChild(func.body, function visit(node) {
123175
123169
  if (isPromiseReturningCallExpression(node, checker, "then")) {
123176
123170
  setOfExpressionsToReturn.add(getNodeId(node));
@@ -123219,7 +123213,7 @@ ${lanes.join("\n")}
123219
123213
  return !!checker.getPromisedTypeOfPromise(checker.getTypeAtLocation(node));
123220
123214
  }
123221
123215
  function renameCollidingVarNames(nodeToRename, checker, synthNamesMap) {
123222
- const identsToRenameMap = new Map();
123216
+ const identsToRenameMap = /* @__PURE__ */ new Map();
123223
123217
  const collidingSymbolMap = createMultiMap();
123224
123218
  forEachChild(nodeToRename, function visit(node) {
123225
123219
  if (!isIdentifier(node)) {
@@ -123713,7 +123707,7 @@ ${lanes.join("\n")}
123713
123707
  }
123714
123708
  }
123715
123709
  function convertFileToEsModule(sourceFile, checker, changes, target, quotePreference) {
123716
- const identifiers = { original: collectFreeIdentifiers(sourceFile), additional: new Set() };
123710
+ const identifiers = { original: collectFreeIdentifiers(sourceFile), additional: /* @__PURE__ */ new Set() };
123717
123711
  const exports = collectExportRenames(sourceFile, checker, identifiers);
123718
123712
  convertExportsAccesses(sourceFile, exports, changes);
123719
123713
  let moduleExportsChangedToDefault = false;
@@ -123721,7 +123715,7 @@ ${lanes.join("\n")}
123721
123715
  for (const statement of filter(sourceFile.statements, isVariableStatement)) {
123722
123716
  const newUseSites = convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);
123723
123717
  if (newUseSites) {
123724
- copyEntries(newUseSites, useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map());
123718
+ copyEntries(newUseSites, useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map());
123725
123719
  }
123726
123720
  }
123727
123721
  for (const statement of filter(sourceFile.statements, (s) => !isVariableStatement(s))) {
@@ -123734,7 +123728,7 @@ ${lanes.join("\n")}
123734
123728
  return moduleExportsChangedToDefault;
123735
123729
  }
123736
123730
  function collectExportRenames(sourceFile, checker, identifiers) {
123737
- const res = new Map();
123731
+ const res = /* @__PURE__ */ new Map();
123738
123732
  forEachExportReference(sourceFile, (node) => {
123739
123733
  const { text, originalKeywordKind } = node.name;
123740
123734
  if (!res.has(text) && (originalKeywordKind !== void 0 && isNonContextualKeyword(originalKeywordKind) || checker.resolveName(text, node, 111551 /* Value */, true))) {
@@ -123809,7 +123803,7 @@ ${lanes.join("\n")}
123809
123803
  let combinedUseSites;
123810
123804
  forEach(converted, (c) => {
123811
123805
  if (c.useSitesToUnqualify) {
123812
- copyEntries(c.useSitesToUnqualify, combinedUseSites != null ? combinedUseSites : combinedUseSites = new Map());
123806
+ copyEntries(c.useSitesToUnqualify, combinedUseSites != null ? combinedUseSites : combinedUseSites = /* @__PURE__ */ new Map());
123813
123807
  }
123814
123808
  });
123815
123809
  return combinedUseSites;
@@ -123972,7 +123966,7 @@ ${lanes.join("\n")}
123972
123966
  }
123973
123967
  function convertSingleIdentifierImport(name, moduleSpecifier, checker, identifiers, quotePreference) {
123974
123968
  const nameSymbol = checker.getSymbolAtLocation(name);
123975
- const namedBindingsNames = new Map();
123969
+ const namedBindingsNames = /* @__PURE__ */ new Map();
123976
123970
  let needDefaultImport = false;
123977
123971
  let useSitesToUnqualify;
123978
123972
  for (const use of identifiers.original.get(name.text)) {
@@ -123985,7 +123979,7 @@ ${lanes.join("\n")}
123985
123979
  if (propertyName === "default") {
123986
123980
  needDefaultImport = true;
123987
123981
  const importDefaultName = use.getText();
123988
- (useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map()).set(parent2, factory.createIdentifier(importDefaultName));
123982
+ (useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(importDefaultName));
123989
123983
  } else {
123990
123984
  Debug.assert(parent2.expression === use, "Didn't expect expression === use");
123991
123985
  let idName = namedBindingsNames.get(propertyName);
@@ -123993,7 +123987,7 @@ ${lanes.join("\n")}
123993
123987
  idName = makeUniqueName(propertyName, identifiers);
123994
123988
  namedBindingsNames.set(propertyName, idName);
123995
123989
  }
123996
- (useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map()).set(parent2, factory.createIdentifier(idName));
123990
+ (useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(idName));
123997
123991
  }
123998
123992
  } else {
123999
123993
  needDefaultImport = true;
@@ -124136,7 +124130,7 @@ ${lanes.join("\n")}
124136
124130
  },
124137
124131
  fixIds: [fixId12],
124138
124132
  getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyExport(context) {
124139
- const fixedExportDeclarations = new Map();
124133
+ const fixedExportDeclarations = /* @__PURE__ */ new Map();
124140
124134
  return codeFixAll(context, errorCodes13, (changes, diag2) => {
124141
124135
  const exportSpecifier = getExportSpecifierForDiagnosticSpan(diag2, context.sourceFile);
124142
124136
  if (exportSpecifier && addToSeen(fixedExportDeclarations, getNodeId(exportSpecifier.parent.parent))) {
@@ -124308,7 +124302,7 @@ ${lanes.join("\n")}
124308
124302
  },
124309
124303
  fixIds: [fixId15],
124310
124304
  getAllCodeActions(context) {
124311
- const seenClassDeclarations = new Map();
124305
+ const seenClassDeclarations = /* @__PURE__ */ new Map();
124312
124306
  return codeFixAll(context, errorCodes16, (changes, diag2) => {
124313
124307
  const classDeclaration = getClass(diag2.file, diag2.start);
124314
124308
  if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
@@ -124412,8 +124406,8 @@ ${lanes.join("\n")}
124412
124406
  const compilerOptions = program.getCompilerOptions();
124413
124407
  const addToNamespace = [];
124414
124408
  const importType = [];
124415
- const addToExisting = new Map();
124416
- const newImports = new Map();
124409
+ const addToExisting = /* @__PURE__ */ new Map();
124410
+ const newImports = /* @__PURE__ */ new Map();
124417
124411
  return { addImportFromDiagnostic, addImportFromExportedSymbol, writeFixes, hasFixes };
124418
124412
  function addImportFromDiagnostic(diagnostic, context) {
124419
124413
  const info = getFixInfos(context, diagnostic.code, diagnostic.start, useAutoImportProvider);
@@ -124448,7 +124442,7 @@ ${lanes.join("\n")}
124448
124442
  const key = String(getNodeId(importClauseOrBindingPattern));
124449
124443
  let entry = addToExisting.get(key);
124450
124444
  if (!entry) {
124451
- addToExisting.set(key, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: new Map() });
124445
+ addToExisting.set(key, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: /* @__PURE__ */ new Map() });
124452
124446
  }
124453
124447
  if (importKind === 0 /* Named */) {
124454
124448
  const prevValue = entry == null ? void 0 : entry.namedImports.get(symbolName2);
@@ -124472,7 +124466,7 @@ ${lanes.join("\n")}
124472
124466
  entry.defaultImport = { name: symbolName2, addAsTypeOnly: reduceAddAsTypeOnlyValues((_b = entry.defaultImport) == null ? void 0 : _b.addAsTypeOnly, addAsTypeOnly) };
124473
124467
  break;
124474
124468
  case 0 /* Named */:
124475
- const prevValue = (entry.namedImports || (entry.namedImports = new Map())).get(symbolName2);
124469
+ const prevValue = (entry.namedImports || (entry.namedImports = /* @__PURE__ */ new Map())).get(symbolName2);
124476
124470
  entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly));
124477
124471
  break;
124478
124472
  case 3 /* CommonJS */:
@@ -125381,7 +125375,7 @@ ${lanes.join("\n")}
125381
125375
  fixIds: [fixId16],
125382
125376
  getAllCodeActions: (context) => {
125383
125377
  const { program, preferences, host } = context;
125384
- const seen = new Map();
125378
+ const seen = /* @__PURE__ */ new Map();
125385
125379
  return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
125386
125380
  eachDiagnostic(context, errorCodes18, (diag2) => {
125387
125381
  const info = getInfo3(program, diag2.file, createTextSpan(diag2.start, diag2.length));
@@ -125694,7 +125688,7 @@ ${lanes.join("\n")}
125694
125688
  getAllCodeActions(context) {
125695
125689
  const { program } = context;
125696
125690
  return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
125697
- const exports = new Map();
125691
+ const exports = /* @__PURE__ */ new Map();
125698
125692
  eachDiagnostic(context, errorCodes22, (diag2) => {
125699
125693
  const info = getInfo4(diag2.file, diag2.start, program);
125700
125694
  if (info === void 0)
@@ -126244,8 +126238,8 @@ ${lanes.join("\n")}
126244
126238
  getAllCodeActions: (context) => {
126245
126239
  const { program, fixId: fixId52 } = context;
126246
126240
  const checker = program.getTypeChecker();
126247
- const seen = new Map();
126248
- const typeDeclToMembers = new Map();
126241
+ const seen = /* @__PURE__ */ new Map();
126242
+ const typeDeclToMembers = /* @__PURE__ */ new Map();
126249
126243
  return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
126250
126244
  eachDiagnostic(context, errorCodes26, (diag2) => {
126251
126245
  const info = getInfo7(diag2.file, diag2.start, diag2.code, checker, context.program);
@@ -126679,7 +126673,7 @@ ${lanes.join("\n")}
126679
126673
  const targetProps = attrsType.getProperties();
126680
126674
  if (!length(targetProps))
126681
126675
  return emptyArray;
126682
- const seenNames = new Set();
126676
+ const seenNames = /* @__PURE__ */ new Set();
126683
126677
  for (const sourceProp of source.attributes.properties) {
126684
126678
  if (isJsxAttribute(sourceProp)) {
126685
126679
  seenNames.add(sourceProp.name.escapedText);
@@ -126813,7 +126807,7 @@ ${lanes.join("\n")}
126813
126807
  },
126814
126808
  fixIds: [fixId24],
126815
126809
  getAllCodeActions: function getAllCodeActionsToFixClassDoesntImplementInheritedAbstractMember(context) {
126816
- const seenClassDeclarations = new Map();
126810
+ const seenClassDeclarations = /* @__PURE__ */ new Map();
126817
126811
  return codeFixAll(context, errorCodes29, (changes, diag2) => {
126818
126812
  const classDeclaration = getClass2(diag2.file, diag2.start);
126819
126813
  if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
@@ -126857,7 +126851,7 @@ ${lanes.join("\n")}
126857
126851
  fixIds: [fixId25],
126858
126852
  getAllCodeActions(context) {
126859
126853
  const { sourceFile } = context;
126860
- const seenClasses = new Map();
126854
+ const seenClasses = /* @__PURE__ */ new Map();
126861
126855
  return codeFixAll(context, errorCodes30, (changes, diag2) => {
126862
126856
  const nodes = getNodes(diag2.file, diag2.start);
126863
126857
  if (!nodes)
@@ -127229,7 +127223,7 @@ ${lanes.join("\n")}
127229
127223
  return void 0;
127230
127224
  },
127231
127225
  getAllCodeActions: function getAllCodeActionsToFixUnmatchedParameter(context) {
127232
- const tagsToSignature = new Map();
127226
+ const tagsToSignature = /* @__PURE__ */ new Map();
127233
127227
  return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
127234
127228
  eachDiagnostic(context, errorCodes39, ({ file, start }) => {
127235
127229
  const info = getInfo10(file, start);
@@ -127261,7 +127255,7 @@ ${lanes.join("\n")}
127261
127255
  return void 0;
127262
127256
  const sourceFile = context.sourceFile;
127263
127257
  const tags = getJSDocTags(signature);
127264
- const names = new Set();
127258
+ const names = /* @__PURE__ */ new Set();
127265
127259
  for (const tag of tags) {
127266
127260
  if (isJSDocParameterTag(tag) && isIdentifier(tag.name)) {
127267
127261
  names.add(tag.name.escapedText);
@@ -127839,7 +127833,7 @@ ${lanes.join("\n")}
127839
127833
  },
127840
127834
  fixIds: [fixId36],
127841
127835
  getAllCodeActions: function getAllCodeActionsToFixAwaitInSyncFunction(context) {
127842
- const seen = new Map();
127836
+ const seen = /* @__PURE__ */ new Map();
127843
127837
  return codeFixAll(context, errorCodes46, (changes, diag2) => {
127844
127838
  const nodes = getNodes3(diag2.file, diag2.start);
127845
127839
  if (!nodes || !addToSeen(seen, getNodeId(nodes.insertBefore)))
@@ -128296,7 +128290,7 @@ ${lanes.join("\n")}
128296
128290
  };
128297
128291
  }
128298
128292
  function combineUsages(usages) {
128299
- const combinedProperties = new Map();
128293
+ const combinedProperties = /* @__PURE__ */ new Map();
128300
128294
  for (const u of usages) {
128301
128295
  if (u.properties) {
128302
128296
  u.properties.forEach((p, name) => {
@@ -128307,7 +128301,7 @@ ${lanes.join("\n")}
128307
128301
  });
128308
128302
  }
128309
128303
  }
128310
- const properties = new Map();
128304
+ const properties = /* @__PURE__ */ new Map();
128311
128305
  combinedProperties.forEach((ps, name) => {
128312
128306
  properties.set(name, combineUsages(ps));
128313
128307
  });
@@ -128554,7 +128548,7 @@ ${lanes.join("\n")}
128554
128548
  function inferTypeFromPropertyAccessExpression(parent2, usage) {
128555
128549
  const name = escapeLeadingUnderscores(parent2.name.text);
128556
128550
  if (!usage.properties) {
128557
- usage.properties = new Map();
128551
+ usage.properties = /* @__PURE__ */ new Map();
128558
128552
  }
128559
128553
  const propertyUsage = usage.properties.get(name) || createEmptyUsage();
128560
128554
  calculateUsageOfNode(parent2, propertyUsage);
@@ -128704,7 +128698,7 @@ ${lanes.join("\n")}
128704
128698
  return types;
128705
128699
  }
128706
128700
  function inferStructuralType(usage) {
128707
- const members = new Map();
128701
+ const members = /* @__PURE__ */ new Map();
128708
128702
  if (usage.properties) {
128709
128703
  usage.properties.forEach((u, name) => {
128710
128704
  const symbol = checker.createSymbol(4 /* Property */, name);
@@ -128922,7 +128916,7 @@ ${lanes.join("\n")}
128922
128916
  },
128923
128917
  fixIds: [fixId40],
128924
128918
  getAllCodeActions: (context) => {
128925
- const seenLines = new Set();
128919
+ const seenLines = /* @__PURE__ */ new Set();
128926
128920
  return codeFixAll(context, errorCodes50, (changes, diag2) => {
128927
128921
  if (ts_textChanges_exports.isValidLocationToAddComment(diag2.file, diag2.start)) {
128928
128922
  makeChange8(changes, diag2.file, diag2.start, seenLines);
@@ -129263,7 +129257,7 @@ ${lanes.join("\n")}
129263
129257
  }
129264
129258
  function getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, contextNode, scriptTarget, flags, tracker) {
129265
129259
  const argumentTypeNodes = [];
129266
- const argumentTypeParameters = new Map();
129260
+ const argumentTypeParameters = /* @__PURE__ */ new Map();
129267
129261
  for (let i = 0; i < instanceTypes.length; i += 1) {
129268
129262
  const instanceType = instanceTypes[i];
129269
129263
  if (instanceType.isUnionOrIntersection() && instanceType.types.some(typeContainsTypeParameter)) {
@@ -129303,7 +129297,7 @@ ${lanes.join("\n")}
129303
129297
  }
129304
129298
  function createDummyParameters(argCount, names, types, minArgumentCount, inJs) {
129305
129299
  const parameters = [];
129306
- const parameterNameCounts = new Map();
129300
+ const parameterNameCounts = /* @__PURE__ */ new Map();
129307
129301
  for (let i = 0; i < argCount; i++) {
129308
129302
  const parameterName = (names == null ? void 0 : names[i]) || `arg${i}`;
129309
129303
  const parameterNameCount = parameterNameCounts.get(parameterName);
@@ -130266,7 +130260,7 @@ ${lanes.join("\n")}
130266
130260
  },
130267
130261
  getAllCodeActions: (context) => {
130268
130262
  const { program } = context;
130269
- const seen = new Map();
130263
+ const seen = /* @__PURE__ */ new Map();
130270
130264
  return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
130271
130265
  eachDiagnostic(context, errorCodes61, (diag2) => {
130272
130266
  const info = getInfo17(diag2.file, diag2.start, program);
@@ -130352,7 +130346,7 @@ ${lanes.join("\n")}
130352
130346
  }
130353
130347
  },
130354
130348
  getAllCodeActions(context) {
130355
- return codeFixAll(context, errorCodes63, (changes, diag2) => makeChange11(changes, diag2.file, diag2, context.program, new Set()));
130349
+ return codeFixAll(context, errorCodes63, (changes, diag2) => makeChange11(changes, diag2.file, diag2, context.program, /* @__PURE__ */ new Set()));
130356
130350
  }
130357
130351
  });
130358
130352
  function makeChange11(changes, sourceFile, span, program, seen) {
@@ -131351,7 +131345,7 @@ ${lanes.join("\n")}
131351
131345
  const variableDeclaration = getVariableDeclaration(location);
131352
131346
  const useSemicolons = probablyUsesSemicolons(sourceFile);
131353
131347
  const typeChecker = program.getTypeChecker();
131354
- const uniques = new Map();
131348
+ const uniques = /* @__PURE__ */ new Map();
131355
131349
  for (let i = 0; i < symbols.length; i++) {
131356
131350
  const symbol = symbols[i];
131357
131351
  const origin = symbolToOriginInfoMap == null ? void 0 : symbolToOriginInfoMap[i];
@@ -131430,7 +131424,7 @@ ${lanes.join("\n")}
131430
131424
  }
131431
131425
  function getLabelStatementCompletions(node) {
131432
131426
  const entries = [];
131433
- const uniques = new Map();
131427
+ const uniques = /* @__PURE__ */ new Map();
131434
131428
  let current = node;
131435
131429
  while (current) {
131436
131430
  if (isFunctionLike(current)) {
@@ -131856,7 +131850,7 @@ ${lanes.join("\n")}
131856
131850
  let importSpecifierResolver;
131857
131851
  const symbolToOriginInfoMap = [];
131858
131852
  const symbolToSortTextMap = [];
131859
- const seenPropertySymbols = new Map();
131853
+ const seenPropertySymbols = /* @__PURE__ */ new Map();
131860
131854
  const isTypeOnlyLocation = isTypeOnlyCompletion();
131861
131855
  const getModuleSpecifierResolutionHost = memoizeOne((isFromPackageJson) => {
131862
131856
  return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);
@@ -132443,7 +132437,7 @@ ${lanes.join("\n")}
132443
132437
  const containerActualType = typeChecker.getTypeFromTypeNode(containerTypeNode);
132444
132438
  const members = getPropertiesForCompletion(containerExpectedType, typeChecker);
132445
132439
  const existingMembers = getPropertiesForCompletion(containerActualType, typeChecker);
132446
- const existingMemberEscapedNames = new Set();
132440
+ const existingMemberEscapedNames = /* @__PURE__ */ new Set();
132447
132441
  existingMembers.forEach((s) => existingMemberEscapedNames.add(s.escapedName));
132448
132442
  symbols = concatenate(symbols, filter(members, (s) => !existingMemberEscapedNames.has(s.escapedName)));
132449
132443
  completionKind = 0 /* ObjectPropertyDeclaration */;
@@ -132784,8 +132778,8 @@ ${lanes.join("\n")}
132784
132778
  if (existingMembers.length === 0) {
132785
132779
  return contextualMemberSymbols;
132786
132780
  }
132787
- const membersDeclaredBySpreadAssignment = new Set();
132788
- const existingMemberNames = new Set();
132781
+ const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();
132782
+ const existingMemberNames = /* @__PURE__ */ new Set();
132789
132783
  for (const m of existingMembers) {
132790
132784
  if (m.kind !== 299 /* PropertyAssignment */ && m.kind !== 300 /* ShorthandPropertyAssignment */ && m.kind !== 205 /* BindingElement */ && m.kind !== 171 /* MethodDeclaration */ && m.kind !== 174 /* GetAccessor */ && m.kind !== 175 /* SetAccessor */ && m.kind !== 301 /* SpreadAssignment */) {
132791
132785
  continue;
@@ -132864,7 +132858,7 @@ ${lanes.join("\n")}
132864
132858
  }
132865
132859
  }
132866
132860
  function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) {
132867
- const existingMemberNames = new Set();
132861
+ const existingMemberNames = /* @__PURE__ */ new Set();
132868
132862
  for (const m of existingMembers) {
132869
132863
  if (m.kind !== 169 /* PropertyDeclaration */ && m.kind !== 171 /* MethodDeclaration */ && m.kind !== 174 /* GetAccessor */ && m.kind !== 175 /* SetAccessor */) {
132870
132864
  continue;
@@ -132886,8 +132880,8 @@ ${lanes.join("\n")}
132886
132880
  return baseSymbols.filter((propertySymbol) => !existingMemberNames.has(propertySymbol.escapedName) && !!propertySymbol.declarations && !(getDeclarationModifierFlagsFromSymbol(propertySymbol) & 8 /* Private */) && !(propertySymbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(propertySymbol.valueDeclaration)));
132887
132881
  }
132888
132882
  function filterJsxAttributes(symbols2, attributes) {
132889
- const seenNames = new Set();
132890
- const membersDeclaredBySpreadAssignment = new Set();
132883
+ const seenNames = /* @__PURE__ */ new Set();
132884
+ const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();
132891
132885
  for (const attr of attributes) {
132892
132886
  if (isCurrentlyEditingNode(attr)) {
132893
132887
  continue;
@@ -133364,7 +133358,7 @@ ${lanes.join("\n")}
133364
133358
  function isArrowFunctionBody(node) {
133365
133359
  return node.parent && isArrowFunction(node.parent) && node.parent.body === node;
133366
133360
  }
133367
- function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = new Map()) {
133361
+ function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new Map()) {
133368
133362
  return nonAliasCanBeReferencedAtTypeLocation(symbol) || nonAliasCanBeReferencedAtTypeLocation(skipAlias(symbol.exportSymbol || symbol, checker));
133369
133363
  function nonAliasCanBeReferencedAtTypeLocation(symbol2) {
133370
133364
  return !!(symbol2.flags & 788968 /* Type */) || checker.isUnknownSymbol(symbol2) || !!(symbol2.flags & 1536 /* Module */) && addToSeen(seenModules, getSymbolId(symbol2)) && checker.getExportsOfModule(symbol2).some((e) => symbolCanBeReferencedAtTypeLocation(e, checker, seenModules));
@@ -133419,7 +133413,7 @@ ${lanes.join("\n")}
133419
133413
  ["external module name" /* externalModuleName */]: 2
133420
133414
  };
133421
133415
  function createNameAndKindSet() {
133422
- const map2 = new Map();
133416
+ const map2 = /* @__PURE__ */ new Map();
133423
133417
  function add(value) {
133424
133418
  const existing = map2.get(value.name);
133425
133419
  if (!existing || kindPrecedence[existing.kind] < kindPrecedence[value.kind]) {
@@ -133633,7 +133627,7 @@ ${lanes.join("\n")}
133633
133627
  }
133634
133628
  function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) {
133635
133629
  let isNewIdentifier = false;
133636
- const uniques = new Map();
133630
+ const uniques = /* @__PURE__ */ new Map();
133637
133631
  const candidates = [];
133638
133632
  const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg;
133639
133633
  checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates);
@@ -133676,7 +133670,7 @@ ${lanes.join("\n")}
133676
133670
  hasIndexSignature: hasIndexSignature(contextualType)
133677
133671
  };
133678
133672
  }
133679
- function getStringLiteralTypes(type, uniques = new Map()) {
133673
+ function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new Map()) {
133680
133674
  if (!type)
133681
133675
  return emptyArray;
133682
133676
  type = skipConstraint(type);
@@ -134048,7 +134042,7 @@ ${lanes.join("\n")}
134048
134042
  return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values()));
134049
134043
  }
134050
134044
  function getCompletionEntriesFromTypings(host, options, scriptPath, fragmentDirectory, extensionOptions, result = createNameAndKindSet()) {
134051
- const seen = new Map();
134045
+ const seen = /* @__PURE__ */ new Map();
134052
134046
  const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || emptyArray;
134053
134047
  for (const root of typeRoots) {
134054
134048
  getCompletionEntriesFromDirectories(root);
@@ -134430,7 +134424,7 @@ ${lanes.join("\n")}
134430
134424
  return refs;
134431
134425
  }
134432
134426
  function getDirectImportsMap(sourceFiles, checker, cancellationToken) {
134433
- const map2 = new Map();
134427
+ const map2 = /* @__PURE__ */ new Map();
134434
134428
  for (const sourceFile of sourceFiles) {
134435
134429
  if (cancellationToken)
134436
134430
  cancellationToken.throwIfCancellationRequested();
@@ -134779,7 +134773,7 @@ ${lanes.join("\n")}
134779
134773
  referenceEntries = entries && [...entries];
134780
134774
  } else if (entries) {
134781
134775
  const queue = createQueue(entries);
134782
- const seenNodes = new Map();
134776
+ const seenNodes = /* @__PURE__ */ new Map();
134783
134777
  while (!queue.isEmpty()) {
134784
134778
  const entry = queue.dequeue();
134785
134779
  if (!addToSeen(seenNodes, getNodeId(entry.node))) {
@@ -135422,7 +135416,7 @@ ${lanes.join("\n")}
135422
135416
  this.searchMeaning = searchMeaning;
135423
135417
  this.options = options;
135424
135418
  this.result = result;
135425
- this.inheritsFromCache = new Map();
135419
+ this.inheritsFromCache = /* @__PURE__ */ new Map();
135426
135420
  this.markSeenContainingTypeReference = nodeSeenTracker();
135427
135421
  this.markSeenReExportRHS = nodeSeenTracker();
135428
135422
  this.symbolIdToReferences = [];
@@ -135462,7 +135456,7 @@ ${lanes.join("\n")}
135462
135456
  }
135463
135457
  markSearchedSymbols(sourceFile, symbols) {
135464
135458
  const sourceId = getNodeId(sourceFile);
135465
- const seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = new Set());
135459
+ const seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = /* @__PURE__ */ new Set());
135466
135460
  let anyNewSymbols = false;
135467
135461
  for (const sym of symbols) {
135468
135462
  anyNewSymbols = tryAddToSet(seenSymbols, getSymbolId(sym)) || anyNewSymbols;
@@ -136248,7 +136242,7 @@ ${lanes.join("\n")}
136248
136242
  }
136249
136243
  }
136250
136244
  function getPropertySymbolsFromBaseTypes(symbol, propertyName, checker, cb) {
136251
- const seen = new Map();
136245
+ const seen = /* @__PURE__ */ new Map();
136252
136246
  return recur(symbol);
136253
136247
  function recur(symbol2) {
136254
136248
  if (!(symbol2.flags & (32 /* Class */ | 64 /* Interface */)) || !addToSeen(seen, getSymbolId(symbol2)))
@@ -138103,7 +138097,7 @@ ${lanes.join("\n")}
138103
138097
  });
138104
138098
 
138105
138099
  // src/services/refactorProvider.ts
138106
- var refactors = new Map();
138100
+ var refactors = /* @__PURE__ */ new Map();
138107
138101
  function registerRefactor(name, refactor) {
138108
138102
  refactors.set(name, refactor);
138109
138103
  }
@@ -138426,7 +138420,7 @@ ${lanes.join("\n")}
138426
138420
  function doChangeNamespaceToNamed(sourceFile, checker, changes, toConvert, allowSyntheticDefaultImports) {
138427
138421
  let usedAsNamespaceOrDefault = false;
138428
138422
  const nodesToReplace = [];
138429
- const conflictingNames = new Map();
138423
+ const conflictingNames = /* @__PURE__ */ new Map();
138430
138424
  ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(toConvert.name, checker, sourceFile, (id) => {
138431
138425
  if (!isPropertyAccessOrQualifiedName(id.parent)) {
138432
138426
  usedAsNamespaceOrDefault = true;
@@ -138439,7 +138433,7 @@ ${lanes.join("\n")}
138439
138433
  nodesToReplace.push(id.parent);
138440
138434
  }
138441
138435
  });
138442
- const exportNameToImportName = new Map();
138436
+ const exportNameToImportName = /* @__PURE__ */ new Map();
138443
138437
  for (const propertyAccessOrQualifiedName of nodesToReplace) {
138444
138438
  const exportName = getRightOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName).text;
138445
138439
  let importName = exportNameToImportName.get(exportName);
@@ -138469,7 +138463,7 @@ ${lanes.join("\n")}
138469
138463
  const checker = program.getTypeChecker();
138470
138464
  const importDecl = toConvert.parent.parent;
138471
138465
  const { moduleSpecifier } = importDecl;
138472
- const toConvertSymbols = new Set();
138466
+ const toConvertSymbols = /* @__PURE__ */ new Set();
138473
138467
  toConvert.elements.forEach((namedImport) => {
138474
138468
  const symbol = checker.getSymbolAtLocation(namedImport.name);
138475
138469
  if (symbol) {
@@ -138491,7 +138485,7 @@ ${lanes.join("\n")}
138491
138485
  }
138492
138486
  const namespaceNameConflicts = toConvert.elements.some(hasNamespaceNameConflict);
138493
138487
  const namespaceImportName = namespaceNameConflicts ? getUniqueName(preferredName, sourceFile) : preferredName;
138494
- const neededNamedImports = new Set();
138488
+ const neededNamedImports = /* @__PURE__ */ new Set();
138495
138489
  for (const element of toConvert.elements) {
138496
138490
  const propertyName = (element.propertyName || element.name).text;
138497
138491
  ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(element.name, checker, sourceFile, (id) => {
@@ -138621,7 +138615,7 @@ ${lanes.join("\n")}
138621
138615
  return void 0;
138622
138616
  if (isIntersectionTypeNode(node)) {
138623
138617
  const result = [];
138624
- const seen = new Map();
138618
+ const seen = /* @__PURE__ */ new Map();
138625
138619
  for (const type of node.types) {
138626
138620
  const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type);
138627
138621
  if (!flattenedTypeMembers || !flattenedTypeMembers.every((type2) => type2.name && addToSeen(seen, getNameFromPropertyName(type2.name)))) {
@@ -139273,7 +139267,7 @@ ${lanes.join("\n")}
139273
139267
  }
139274
139268
  var SymbolSet = class {
139275
139269
  constructor() {
139276
- this.map = new Map();
139270
+ this.map = /* @__PURE__ */ new Map();
139277
139271
  }
139278
139272
  add(symbol) {
139279
139273
  this.map.set(String(getSymbolId(symbol)), symbol);
@@ -140937,10 +140931,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
140937
140931
  return emptyArray;
140938
140932
  }
140939
140933
  const functionActions = [];
140940
- const usedFunctionNames = new Map();
140934
+ const usedFunctionNames = /* @__PURE__ */ new Map();
140941
140935
  let innermostErrorFunctionAction;
140942
140936
  const constantActions = [];
140943
- const usedConstantNames = new Map();
140937
+ const usedConstantNames = /* @__PURE__ */ new Map();
140944
140938
  let innermostErrorConstantAction;
140945
140939
  let i = 0;
140946
140940
  for (const { functionExtraction, constantExtraction } of extractions) {
@@ -142049,13 +142043,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
142049
142043
  return Usage2;
142050
142044
  })(Usage || {});
142051
142045
  function collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, checker, cancellationToken) {
142052
- const allTypeParameterUsages = new Map();
142046
+ const allTypeParameterUsages = /* @__PURE__ */ new Map();
142053
142047
  const usagesPerScope = [];
142054
142048
  const substitutionsPerScope = [];
142055
142049
  const functionErrorsPerScope = [];
142056
142050
  const constantErrorsPerScope = [];
142057
142051
  const visibleDeclarationsInExtractedRange = [];
142058
- const exposedVariableSymbolSet = new Map();
142052
+ const exposedVariableSymbolSet = /* @__PURE__ */ new Map();
142059
142053
  const exposedVariableDeclarations = [];
142060
142054
  let firstExposedNonVariableDeclaration;
142061
142055
  const expression = !isReadonlyArray(targetRange.range) ? targetRange.range : targetRange.range.length === 1 && isExpressionStatement(targetRange.range[0]) ? targetRange.range[0].expression : void 0;
@@ -142069,8 +142063,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
142069
142063
  expressionDiagnostic = createDiagnosticForNode(expression, Messages.uselessConstantType);
142070
142064
  }
142071
142065
  for (const scope of scopes) {
142072
- usagesPerScope.push({ usages: new Map(), typeParameterUsages: new Map(), substitutions: new Map() });
142073
- substitutionsPerScope.push(new Map());
142066
+ usagesPerScope.push({ usages: /* @__PURE__ */ new Map(), typeParameterUsages: /* @__PURE__ */ new Map(), substitutions: /* @__PURE__ */ new Map() });
142067
+ substitutionsPerScope.push(/* @__PURE__ */ new Map());
142074
142068
  functionErrorsPerScope.push([]);
142075
142069
  const constantErrors = [];
142076
142070
  if (expressionDiagnostic) {
@@ -142084,7 +142078,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
142084
142078
  }
142085
142079
  constantErrorsPerScope.push(constantErrors);
142086
142080
  }
142087
- const seenUsages = new Map();
142081
+ const seenUsages = /* @__PURE__ */ new Map();
142088
142082
  const target = isReadonlyArray(targetRange.range) ? factory.createBlock(targetRange.range) : targetRange.range;
142089
142083
  const unmodifiedNode = isReadonlyArray(targetRange.range) ? first(targetRange.range) : targetRange.range;
142090
142084
  const inGenericContext = isInGenericContext(unmodifiedNode);
@@ -142094,7 +142088,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
142094
142088
  recordTypeParameterUsages(contextualType);
142095
142089
  }
142096
142090
  if (allTypeParameterUsages.size > 0) {
142097
- const seenTypeParameterUsages = new Map();
142091
+ const seenTypeParameterUsages = /* @__PURE__ */ new Map();
142098
142092
  let i = 0;
142099
142093
  for (let curr = unmodifiedNode; curr !== void 0 && i < scopes.length; curr = curr.parent) {
142100
142094
  if (curr === scopes[i]) {
@@ -144112,7 +144106,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
144112
144106
  this.formatContext = formatContext;
144113
144107
  this.changes = [];
144114
144108
  this.newFiles = [];
144115
- this.classesWithNodesInsertedAtStart = new Map();
144109
+ this.classesWithNodesInsertedAtStart = /* @__PURE__ */ new Map();
144116
144110
  this.deletedNodes = [];
144117
144111
  }
144118
144112
  static fromContext(context) {
@@ -144561,7 +144555,7 @@ ${options.prefix}` : "\n" : options.prefix
144561
144555
  });
144562
144556
  }
144563
144557
  finishDeleteDeclarations() {
144564
- const deletedNodesInLists = new Set();
144558
+ const deletedNodesInLists = /* @__PURE__ */ new Set();
144565
144559
  for (const { sourceFile, node } of this.deletedNodes) {
144566
144560
  if (!this.deletedNodes.some((d) => d.sourceFile === sourceFile && rangeContainsRangeExclusive(d.node, node))) {
144567
144561
  if (isArray(node)) {