typescript 5.0.0-dev.20221109 → 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/tsc.js CHANGED
@@ -23,36 +23,11 @@ var __export = (target, all) => {
23
23
 
24
24
  // src/compiler/corePublic.ts
25
25
  var versionMajorMinor = "5.0";
26
- var version = `${versionMajorMinor}.0-dev.20221109`;
27
- var NativeCollections;
28
- ((NativeCollections2) => {
29
- const globals = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : void 0;
30
- function tryGetNativeMap() {
31
- const gMap = globals == null ? void 0 : globals.Map;
32
- const constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : void 0;
33
- if (!constructor) {
34
- throw new Error("No compatible Map implementation found.");
35
- }
36
- return constructor;
37
- }
38
- NativeCollections2.tryGetNativeMap = tryGetNativeMap;
39
- function tryGetNativeSet() {
40
- const gSet = globals == null ? void 0 : globals.Set;
41
- const constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : void 0;
42
- if (!constructor) {
43
- throw new Error("No compatible Set implementation found.");
44
- }
45
- return constructor;
46
- }
47
- NativeCollections2.tryGetNativeSet = tryGetNativeSet;
48
- })(NativeCollections || (NativeCollections = {}));
49
- var Map = NativeCollections.tryGetNativeMap();
50
- var Set = NativeCollections.tryGetNativeSet();
26
+ var version = `${versionMajorMinor}.0-dev.20221110`;
51
27
 
52
28
  // src/compiler/core.ts
53
29
  var emptyArray = [];
54
- var emptyMap = new Map();
55
- var emptySet = new Set();
30
+ var emptyMap = /* @__PURE__ */ new Map();
56
31
  function length(array) {
57
32
  return array ? array.length : 0;
58
33
  }
@@ -797,7 +772,7 @@ function equalOwnProperties(left, right, equalityComparer = equateValues) {
797
772
  return true;
798
773
  }
799
774
  function arrayToMap(array, makeKey, makeValue = identity) {
800
- const result = new Map();
775
+ const result = /* @__PURE__ */ new Map();
801
776
  for (const value of array) {
802
777
  const key = makeKey(value);
803
778
  if (key !== void 0)
@@ -849,7 +824,7 @@ function maybeBind(obj, fn) {
849
824
  return fn ? fn.bind(obj) : void 0;
850
825
  }
851
826
  function createMultiMap() {
852
- const map2 = new Map();
827
+ const map2 = /* @__PURE__ */ new Map();
853
828
  map2.add = multiMapAdd;
854
829
  map2.remove = multiMapRemove;
855
830
  return map2;
@@ -964,7 +939,7 @@ function memoize(callback) {
964
939
  };
965
940
  }
966
941
  function memoizeOne(callback) {
967
- const map2 = new Map();
942
+ const map2 = /* @__PURE__ */ new Map();
968
943
  return (arg) => {
969
944
  const key = `${typeof arg}:${arg}`;
970
945
  let value = map2.get(key);
@@ -1584,7 +1559,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
1584
1559
  return value.toString();
1585
1560
  }
1586
1561
  Debug2.formatEnum = formatEnum;
1587
- const enumMemberCache = new Map();
1562
+ const enumMemberCache = /* @__PURE__ */ new Map();
1588
1563
  function getEnumMembers(enumObject) {
1589
1564
  const existing = enumMemberCache.get(enumObject);
1590
1565
  if (existing) {
@@ -1990,7 +1965,7 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;
1990
1965
  const links = /* @__PURE__ */ Object.create(null);
1991
1966
  const nodes = [];
1992
1967
  const edges = [];
1993
- const root = buildGraphNode(flowNode, new Set());
1968
+ const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set());
1994
1969
  for (const node of nodes) {
1995
1970
  node.text = renderFlowNode(node.flowNode, node.circular);
1996
1971
  computeLevel(node);
@@ -2733,9 +2708,9 @@ function createTimer(measureName, startMarkName, endMarkName) {
2733
2708
  var nullTimer = { enter: noop, exit: noop };
2734
2709
  var enabled = false;
2735
2710
  var timeorigin = timestamp();
2736
- var marks = new Map();
2737
- var counts = new Map();
2738
- var durations = new Map();
2711
+ var marks = /* @__PURE__ */ new Map();
2712
+ var counts = /* @__PURE__ */ new Map();
2713
+ var durations = /* @__PURE__ */ new Map();
2739
2714
  function mark(markName) {
2740
2715
  var _a2;
2741
2716
  if (enabled) {
@@ -2961,7 +2936,7 @@ var tracingEnabled;
2961
2936
  mark("beginDumpTypes");
2962
2937
  const typesPath = legend[legend.length - 1].typesPath;
2963
2938
  const typesFd = fs.openSync(typesPath, "w");
2964
- const recursionIdentityMap = new Map();
2939
+ const recursionIdentityMap = /* @__PURE__ */ new Map();
2965
2940
  fs.writeSync(typesFd, "[");
2966
2941
  const numTypes = types.length;
2967
2942
  for (let i = 0; i < numTypes; i++) {
@@ -4186,7 +4161,7 @@ function createDynamicPriorityPollingWatchFile(host) {
4186
4161
  }
4187
4162
  function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
4188
4163
  const fileWatcherCallbacks = createMultiMap();
4189
- const dirWatchers = new Map();
4164
+ const dirWatchers = /* @__PURE__ */ new Map();
4190
4165
  const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);
4191
4166
  return nonPollingWatchFile;
4192
4167
  function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
@@ -4320,9 +4295,9 @@ function createDirectoryWatcherSupportingRecursive({
4320
4295
  setTimeout: setTimeout2,
4321
4296
  clearTimeout: clearTimeout2
4322
4297
  }) {
4323
- const cache = new Map();
4298
+ const cache = /* @__PURE__ */ new Map();
4324
4299
  const callbackCache = createMultiMap();
4325
- const cacheToUpdateChildWatches = new Map();
4300
+ const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
4326
4301
  let timerToUpdateChildWatches;
4327
4302
  const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);
4328
4303
  const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);
@@ -4424,7 +4399,7 @@ function createDirectoryWatcherSupportingRecursive({
4424
4399
  timerToUpdateChildWatches = void 0;
4425
4400
  sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);
4426
4401
  const start = timestamp();
4427
- const invokeMap = new Map();
4402
+ const invokeMap = /* @__PURE__ */ new Map();
4428
4403
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
4429
4404
  const result = cacheToUpdateChildWatches.entries().next();
4430
4405
  Debug.assert(!result.done);
@@ -4545,9 +4520,9 @@ function createSystemWatchFunctions({
4545
4520
  inodeWatching,
4546
4521
  sysLog: sysLog2
4547
4522
  }) {
4548
- const pollingWatches = new Map();
4549
- const fsWatches = new Map();
4550
- const fsWatchesRecursive = new Map();
4523
+ const pollingWatches = /* @__PURE__ */ new Map();
4524
+ const fsWatches = /* @__PURE__ */ new Map();
4525
+ const fsWatchesRecursive = /* @__PURE__ */ new Map();
4551
4526
  let dynamicPollingWatchFile;
4552
4527
  let fixedChunkSizePollingWatchFile;
4553
4528
  let nonPollingWatchFile;
@@ -5001,7 +4976,7 @@ var sys = (() => {
5001
4976
  }
5002
4977
  function cleanupPaths(profile) {
5003
4978
  let externalFileCounter = 0;
5004
- const remappedPaths = new Map();
4979
+ const remappedPaths = /* @__PURE__ */ new Map();
5005
4980
  const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath));
5006
4981
  const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
5007
4982
  for (const node of profile.nodes) {
@@ -10678,7 +10653,7 @@ function getDeclarationsOfKind(symbol, kind) {
10678
10653
  return filter(symbol.declarations || emptyArray, (d) => d.kind === kind);
10679
10654
  }
10680
10655
  function createSymbolTable(symbols) {
10681
- const result = new Map();
10656
+ const result = /* @__PURE__ */ new Map();
10682
10657
  if (symbols) {
10683
10658
  for (const symbol of symbols) {
10684
10659
  result.set(symbol.escapedName, symbol);
@@ -10946,7 +10921,7 @@ function createCommentDirectivesMap(sourceFile, commentDirectives) {
10946
10921
  commentDirective
10947
10922
  ])
10948
10923
  );
10949
- const usedLines = new Map();
10924
+ const usedLines = /* @__PURE__ */ new Map();
10950
10925
  return { getUnusedExpectations, markUsed };
10951
10926
  function getUnusedExpectations() {
10952
10927
  return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 /* ExpectError */ && !usedLines.get(line)).map(([_, directive]) => directive);
@@ -13171,7 +13146,7 @@ function getSemanticJsxChildren(children) {
13171
13146
  function createDiagnosticCollection() {
13172
13147
  let nonFileDiagnostics = [];
13173
13148
  const filesWithDiagnostics = [];
13174
- const fileDiagnostics = new Map();
13149
+ const fileDiagnostics = /* @__PURE__ */ new Map();
13175
13150
  let hasReadNonFileDiagnostics = false;
13176
13151
  return {
13177
13152
  add,
@@ -14887,7 +14862,7 @@ function createSymlinkCache(cwd, getCanonicalFileName) {
14887
14862
  getSymlinkedFiles: () => symlinkedFiles,
14888
14863
  getSymlinkedDirectories: () => symlinkedDirectories,
14889
14864
  getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,
14890
- setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = new Map())).set(path, real),
14865
+ setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real),
14891
14866
  setSymlinkedDirectory: (symlink, real) => {
14892
14867
  let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);
14893
14868
  if (!containsIgnoredPath(symlinkPath)) {
@@ -14895,7 +14870,7 @@ function createSymlinkCache(cwd, getCanonicalFileName) {
14895
14870
  if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) {
14896
14871
  (symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(ensureTrailingDirectorySeparator(real.realPath), symlink);
14897
14872
  }
14898
- (symlinkedDirectories || (symlinkedDirectories = new Map())).set(symlinkPath, real);
14873
+ (symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real);
14899
14874
  }
14900
14875
  },
14901
14876
  setSymlinksFromResolutions(files, typeReferenceDirectives) {
@@ -15059,7 +15034,7 @@ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNa
15059
15034
  const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);
15060
15035
  const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);
15061
15036
  const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
15062
- const visited = new Map();
15037
+ const visited = /* @__PURE__ */ new Map();
15063
15038
  const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);
15064
15039
  for (const basePath of patterns.basePaths) {
15065
15040
  visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
@@ -15769,7 +15744,7 @@ function createParenthesizerRules(factory2) {
15769
15744
  parenthesizeLeadingTypeArgument
15770
15745
  };
15771
15746
  function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {
15772
- binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = new Map());
15747
+ binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map());
15773
15748
  let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);
15774
15749
  if (!parenthesizerRule) {
15775
15750
  parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node);
@@ -15778,7 +15753,7 @@ function createParenthesizerRules(factory2) {
15778
15753
  return parenthesizerRule;
15779
15754
  }
15780
15755
  function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {
15781
- binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = new Map());
15756
+ binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map());
15782
15757
  let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);
15783
15758
  if (!parenthesizerRule) {
15784
15759
  parenthesizerRule = (node) => parenthesizeRightSideOfBinary(operatorKind, void 0, node);
@@ -20062,7 +20037,7 @@ function createNodeFactory(flags, baseFactory2) {
20062
20037
  if (leftStandardPrologueEnd === 0) {
20063
20038
  left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd));
20064
20039
  } else {
20065
- const leftPrologues = new Map();
20040
+ const leftPrologues = /* @__PURE__ */ new Map();
20066
20041
  for (let i = 0; i < leftStandardPrologueEnd; i++) {
20067
20042
  const leftPrologue = statements[i];
20068
20043
  leftPrologues.set(leftPrologue.expression.text, true);
@@ -20467,7 +20442,7 @@ function createInputFilesWithFilePaths(readFileText, javascriptPath, javascriptM
20467
20442
  node.declarationPath = declarationPath;
20468
20443
  node.declarationMapPath = declarationMapPath;
20469
20444
  node.buildInfoPath = buildInfoPath;
20470
- const cache = new Map();
20445
+ const cache = /* @__PURE__ */ new Map();
20471
20446
  const textGetter = (path) => {
20472
20447
  if (path === void 0)
20473
20448
  return void 0;
@@ -23661,8 +23636,8 @@ var Parser;
23661
23636
  languageVariant = getLanguageVariant(_scriptKind);
23662
23637
  parseDiagnostics = [];
23663
23638
  parsingContext = 0;
23664
- identifiers = new Map();
23665
- privateIdentifiers = new Map();
23639
+ identifiers = /* @__PURE__ */ new Map();
23640
+ privateIdentifiers = /* @__PURE__ */ new Map();
23666
23641
  identifierCount = 0;
23667
23642
  nodeCount = 0;
23668
23643
  sourceFlags = 0;
@@ -26147,7 +26122,7 @@ var Parser;
26147
26122
  }
26148
26123
  const result = parseParenthesizedArrowFunctionExpression(false, allowReturnTypeInArrowFunction);
26149
26124
  if (!result) {
26150
- (notParenthesizedArrow || (notParenthesizedArrow = new Set())).add(tokenPos);
26125
+ (notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos);
26151
26126
  }
26152
26127
  return result;
26153
26128
  }
@@ -29605,7 +29580,7 @@ function processCommentPragmas(context, sourceText) {
29605
29580
  const comment = sourceText.substring(range.pos, range.end);
29606
29581
  extractPragmas(pragmas, range, comment);
29607
29582
  }
29608
- context.pragmas = new Map();
29583
+ context.pragmas = /* @__PURE__ */ new Map();
29609
29584
  for (const pragma of pragmas) {
29610
29585
  if (context.pragmas.has(pragma.name)) {
29611
29586
  const currentValue = context.pragmas.get(pragma.name);
@@ -29692,7 +29667,7 @@ function processPragmasIntoFields(context, reportDiagnostic) {
29692
29667
  }
29693
29668
  });
29694
29669
  }
29695
- var namedArgRegExCache = new Map();
29670
+ var namedArgRegExCache = /* @__PURE__ */ new Map();
29696
29671
  function getNamedArgRegEx(name) {
29697
29672
  if (namedArgRegExCache.has(name)) {
29698
29673
  return namedArgRegExCache.get(name);
@@ -31155,8 +31130,8 @@ var typeAcquisitionDeclarations = [
31155
31130
  }
31156
31131
  ];
31157
31132
  function createOptionNameMap(optionDeclarations2) {
31158
- const optionsNameMap = new Map();
31159
- const shortOptionNames = new Map();
31133
+ const optionsNameMap = /* @__PURE__ */ new Map();
31134
+ const shortOptionNames = /* @__PURE__ */ new Map();
31160
31135
  forEach(optionDeclarations2, (option) => {
31161
31136
  optionsNameMap.set(option.name.toLowerCase(), option);
31162
31137
  if (option.shortName) {
@@ -31874,7 +31849,7 @@ function serializeWatchOptions(options) {
31874
31849
  return serializeOptionBaseObject(options, getWatchOptionsNameMap());
31875
31850
  }
31876
31851
  function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) {
31877
- const result = new Map();
31852
+ const result = /* @__PURE__ */ new Map();
31878
31853
  const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames);
31879
31854
  for (const name in options) {
31880
31855
  if (hasProperty(options, name)) {
@@ -31942,7 +31917,7 @@ function generateTSConfig(options, fileNames, newLine) {
31942
31917
  return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));
31943
31918
  }
31944
31919
  function writeConfigurations() {
31945
- const categorizedOptions = new Map();
31920
+ const categorizedOptions = /* @__PURE__ */ new Map();
31946
31921
  categorizedOptions.set(Diagnostics.Projects, []);
31947
31922
  categorizedOptions.set(Diagnostics.Language_and_Environment, []);
31948
31923
  categorizedOptions.set(Diagnostics.Modules, []);
@@ -32504,9 +32479,9 @@ var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
32504
32479
  function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) {
32505
32480
  basePath = normalizePath(basePath);
32506
32481
  const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
32507
- const literalFileMap = new Map();
32508
- const wildcardFileMap = new Map();
32509
- const wildCardJsonFileMap = new Map();
32482
+ const literalFileMap = /* @__PURE__ */ new Map();
32483
+ const wildcardFileMap = /* @__PURE__ */ new Map();
32484
+ const wildCardJsonFileMap = /* @__PURE__ */ new Map();
32510
32485
  const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs;
32511
32486
  const supportedExtensions = getSupportedExtensions(options, extraFileExtensions);
32512
32487
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
@@ -33075,8 +33050,8 @@ function getAutomaticTypeDirectiveNames(options, host) {
33075
33050
  return result;
33076
33051
  }
33077
33052
  function createCacheWithRedirects(options) {
33078
- let ownMap = new Map();
33079
- const redirectsMap = new Map();
33053
+ let ownMap = /* @__PURE__ */ new Map();
33054
+ const redirectsMap = /* @__PURE__ */ new Map();
33080
33055
  return {
33081
33056
  getOwnMap,
33082
33057
  redirectsMap,
@@ -33101,7 +33076,7 @@ function createCacheWithRedirects(options) {
33101
33076
  const path = redirectedReference.sourceFile.path;
33102
33077
  let redirects = redirectsMap.get(path);
33103
33078
  if (!redirects) {
33104
- redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? new Map() : ownMap;
33079
+ redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? /* @__PURE__ */ new Map() : ownMap;
33105
33080
  redirectsMap.set(path, redirects);
33106
33081
  }
33107
33082
  return redirects;
@@ -33118,7 +33093,7 @@ function createPackageJsonInfoCache(currentDirectory, getCanonicalFileName) {
33118
33093
  return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName));
33119
33094
  }
33120
33095
  function setPackageJsonInfo(packageJsonPath, info) {
33121
- (cache || (cache = new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
33096
+ (cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
33122
33097
  }
33123
33098
  function clear2() {
33124
33099
  cache = void 0;
@@ -33179,8 +33154,8 @@ function createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileNam
33179
33154
  }
33180
33155
  }
33181
33156
  function createModeAwareCache() {
33182
- const underlying = new Map();
33183
- const memoizedReverseKeys = new Map();
33157
+ const underlying = /* @__PURE__ */ new Map();
33158
+ const memoizedReverseKeys = /* @__PURE__ */ new Map();
33184
33159
  const cache = {
33185
33160
  get(specifier, mode) {
33186
33161
  return underlying.get(getUnderlyingCacheKey(specifier, mode));
@@ -33257,7 +33232,7 @@ function createModuleResolutionCache(currentDirectory, getCanonicalFileName, opt
33257
33232
  return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === void 0 ? nonRelativeModuleName : `${mode}|${nonRelativeModuleName}`, createPerModuleNameCache);
33258
33233
  }
33259
33234
  function createPerModuleNameCache() {
33260
- const directoryPathMap = new Map();
33235
+ const directoryPathMap = /* @__PURE__ */ new Map();
33261
33236
  return { get, set };
33262
33237
  function get(directory) {
33263
33238
  return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));
@@ -34596,7 +34571,7 @@ function getModuleInstanceState(node, visited) {
34596
34571
  }
34597
34572
  return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */;
34598
34573
  }
34599
- function getModuleInstanceStateCached(node, visited = new Map()) {
34574
+ function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) {
34600
34575
  const nodeId = getNodeId(node);
34601
34576
  if (visited.has(nodeId)) {
34602
34577
  return visited.get(nodeId) || 0 /* NonInstantiated */;
@@ -34748,7 +34723,7 @@ function createBinder() {
34748
34723
  options = opts;
34749
34724
  languageVersion = getEmitScriptTarget(options);
34750
34725
  inStrictMode = bindInStrictMode(file, opts);
34751
- classifiableNames = new Set();
34726
+ classifiableNames = /* @__PURE__ */ new Set();
34752
34727
  symbolCount = 0;
34753
34728
  Symbol12 = objectAllocator.getSymbolConstructor();
34754
34729
  Debug.attachFlowNodeDebugInfo(unreachableFlow);
@@ -36874,7 +36849,7 @@ function createBinder() {
36874
36849
  }
36875
36850
  function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {
36876
36851
  if (symbol) {
36877
- (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = new Map())).set(getNodeId(node), node);
36852
+ (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node);
36878
36853
  }
36879
36854
  }
36880
36855
  function bindSpecialPropertyDeclaration(node) {
@@ -37660,7 +37635,7 @@ function getAllModulePaths(importingFilePath, importedFileName, host, preference
37660
37635
  }
37661
37636
  function getAllModulePathsWorker(importingFileName, importedFileName, host) {
37662
37637
  const getCanonicalFileName = hostGetCanonicalFileName(host);
37663
- const allFileNames = new Map();
37638
+ const allFileNames = /* @__PURE__ */ new Map();
37664
37639
  let importedFileFromNodeModules = false;
37665
37640
  forEachFileNameOfModule(
37666
37641
  importingFileName,
@@ -38179,7 +38154,7 @@ function isInstantiatedModule(node, preserveConstEnums) {
38179
38154
  }
38180
38155
  function createTypeChecker(host) {
38181
38156
  const getPackagesMap = memoize(() => {
38182
- const map2 = new Map();
38157
+ const map2 = /* @__PURE__ */ new Map();
38183
38158
  host.getSourceFiles().forEach((sf) => {
38184
38159
  if (!sf.resolvedModules)
38185
38160
  return;
@@ -38592,26 +38567,26 @@ function createTypeChecker(host) {
38592
38567
  apparentArgumentCount = void 0;
38593
38568
  return res;
38594
38569
  }
38595
- const tupleTypes = new Map();
38596
- const unionTypes = new Map();
38597
- const intersectionTypes = new Map();
38598
- const stringLiteralTypes = new Map();
38599
- const numberLiteralTypes = new Map();
38600
- const bigIntLiteralTypes = new Map();
38601
- const enumLiteralTypes = new Map();
38602
- const indexedAccessTypes = new Map();
38603
- const templateLiteralTypes = new Map();
38604
- const stringMappingTypes = new Map();
38605
- const substitutionTypes = new Map();
38606
- const subtypeReductionCache = new Map();
38607
- const cachedTypes = new Map();
38570
+ const tupleTypes = /* @__PURE__ */ new Map();
38571
+ const unionTypes = /* @__PURE__ */ new Map();
38572
+ const intersectionTypes = /* @__PURE__ */ new Map();
38573
+ const stringLiteralTypes = /* @__PURE__ */ new Map();
38574
+ const numberLiteralTypes = /* @__PURE__ */ new Map();
38575
+ const bigIntLiteralTypes = /* @__PURE__ */ new Map();
38576
+ const enumLiteralTypes = /* @__PURE__ */ new Map();
38577
+ const indexedAccessTypes = /* @__PURE__ */ new Map();
38578
+ const templateLiteralTypes = /* @__PURE__ */ new Map();
38579
+ const stringMappingTypes = /* @__PURE__ */ new Map();
38580
+ const substitutionTypes = /* @__PURE__ */ new Map();
38581
+ const subtypeReductionCache = /* @__PURE__ */ new Map();
38582
+ const cachedTypes = /* @__PURE__ */ new Map();
38608
38583
  const evolvingArrayTypes = [];
38609
- const undefinedProperties = new Map();
38610
- const markerTypes = new Set();
38584
+ const undefinedProperties = /* @__PURE__ */ new Map();
38585
+ const markerTypes = /* @__PURE__ */ new Set();
38611
38586
  const unknownSymbol = createSymbol(4 /* Property */, "unknown");
38612
38587
  const resolvingSymbol = createSymbol(0, "__resolving__" /* Resolving */);
38613
- const unresolvedSymbols = new Map();
38614
- const errorTypes = new Map();
38588
+ const unresolvedSymbols = /* @__PURE__ */ new Map();
38589
+ const errorTypes = /* @__PURE__ */ new Map();
38615
38590
  const anyType = createIntrinsicType(1 /* Any */, "any");
38616
38591
  const autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */);
38617
38592
  const wildcardType = createIntrinsicType(1 /* Any */, "any");
@@ -38682,7 +38657,7 @@ function createTypeChecker(host) {
38682
38657
  const unknownEmptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
38683
38658
  const unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
38684
38659
  const emptyGenericType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
38685
- emptyGenericType.instantiations = new Map();
38660
+ emptyGenericType.instantiations = /* @__PURE__ */ new Map();
38686
38661
  const anyFunctionType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
38687
38662
  anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
38688
38663
  const noConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
@@ -38701,7 +38676,7 @@ function createTypeChecker(host) {
38701
38676
  const resolvingSignature = createSignature(void 0, void 0, void 0, emptyArray, anyType, void 0, 0, 0 /* None */);
38702
38677
  const silentNeverSignature = createSignature(void 0, void 0, void 0, emptyArray, silentNeverType, void 0, 0, 0 /* None */);
38703
38678
  const enumNumberIndexInfo = createIndexInfo(numberType, stringType, true);
38704
- const iterationTypesCache = new Map();
38679
+ const iterationTypesCache = /* @__PURE__ */ new Map();
38705
38680
  const noIterationTypes = {
38706
38681
  get yieldType() {
38707
38682
  return Debug.fail("Not supported");
@@ -38743,7 +38718,7 @@ function createTypeChecker(host) {
38743
38718
  mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property
38744
38719
  };
38745
38720
  let amalgamatedDuplicates;
38746
- const reverseMappedCache = new Map();
38721
+ const reverseMappedCache = /* @__PURE__ */ new Map();
38747
38722
  let inInferTypeForHomomorphicMappedType = false;
38748
38723
  let ambientModulesCache;
38749
38724
  let patternAmbientModules;
@@ -38791,7 +38766,7 @@ function createTypeChecker(host) {
38791
38766
  let deferredGlobalBigIntType;
38792
38767
  let deferredGlobalNaNSymbol;
38793
38768
  let deferredGlobalRecordSymbol;
38794
- const allPotentiallyUnusedIdentifiers = new Map();
38769
+ const allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map();
38795
38770
  let flowLoopStart = 0;
38796
38771
  let flowLoopCount = 0;
38797
38772
  let sharedFlowCount = 0;
@@ -38830,12 +38805,12 @@ function createTypeChecker(host) {
38830
38805
  const typeofType = createTypeofType();
38831
38806
  let _jsxNamespace;
38832
38807
  let _jsxFactoryEntity;
38833
- const subtypeRelation = new Map();
38834
- const strictSubtypeRelation = new Map();
38835
- const assignableRelation = new Map();
38836
- const comparableRelation = new Map();
38837
- const identityRelation = new Map();
38838
- const enumRelation = new Map();
38808
+ const subtypeRelation = /* @__PURE__ */ new Map();
38809
+ const strictSubtypeRelation = /* @__PURE__ */ new Map();
38810
+ const assignableRelation = /* @__PURE__ */ new Map();
38811
+ const comparableRelation = /* @__PURE__ */ new Map();
38812
+ const identityRelation = /* @__PURE__ */ new Map();
38813
+ const enumRelation = /* @__PURE__ */ new Map();
38839
38814
  const builtinGlobals = createSymbolTable();
38840
38815
  builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
38841
38816
  const suggestedExtensions = [
@@ -39116,7 +39091,7 @@ function createTypeChecker(host) {
39116
39091
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
39117
39092
  const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile;
39118
39093
  const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
39119
- const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: new Map() }));
39094
+ const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() }));
39120
39095
  const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] }));
39121
39096
  if (!isSourcePlainJs)
39122
39097
  addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source);
@@ -39194,7 +39169,7 @@ function createTypeChecker(host) {
39194
39169
  if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) {
39195
39170
  const merged = mergeSymbol(moduleAugmentation.symbol, mainModule, true);
39196
39171
  if (!patternAmbientModuleAugmentations) {
39197
- patternAmbientModuleAugmentations = new Map();
39172
+ patternAmbientModuleAugmentations = /* @__PURE__ */ new Map();
39198
39173
  }
39199
39174
  patternAmbientModuleAugmentations.set(moduleName.text, merged);
39200
39175
  } else {
@@ -40513,7 +40488,7 @@ function createTypeChecker(host) {
40513
40488
  if (seenSymbols) {
40514
40489
  seenSymbols.add(target);
40515
40490
  } else {
40516
- seenSymbols = new Set([symbol, target]);
40491
+ seenSymbols = /* @__PURE__ */ new Set([symbol, target]);
40517
40492
  }
40518
40493
  }
40519
40494
  flags |= target.flags;
@@ -41119,7 +41094,7 @@ function createTypeChecker(host) {
41119
41094
  const exportStars = symbol.exports.get("__export" /* ExportStar */);
41120
41095
  if (exportStars) {
41121
41096
  const nestedSymbols = createSymbolTable();
41122
- const lookupTable = new Map();
41097
+ const lookupTable = /* @__PURE__ */ new Map();
41123
41098
  if (exportStars.declarations) {
41124
41099
  for (const node of exportStars.declarations) {
41125
41100
  const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
@@ -41181,7 +41156,7 @@ function createTypeChecker(host) {
41181
41156
  results = append(results, resolvedModule);
41182
41157
  }
41183
41158
  if (length(results)) {
41184
- (links.extendedContainersByFile || (links.extendedContainersByFile = new Map())).set(id, results);
41159
+ (links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results);
41185
41160
  return results;
41186
41161
  }
41187
41162
  }
@@ -41433,12 +41408,12 @@ function createTypeChecker(host) {
41433
41408
  function getQualifiedLeftMeaning(rightMeaning) {
41434
41409
  return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */;
41435
41410
  }
41436
- function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = new Map()) {
41411
+ function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) {
41437
41412
  if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) {
41438
41413
  return void 0;
41439
41414
  }
41440
41415
  const links = getSymbolLinks(symbol);
41441
- const cache = links.accessibleChainCache || (links.accessibleChainCache = new Map());
41416
+ const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map());
41442
41417
  const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node);
41443
41418
  const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`;
41444
41419
  if (cache.has(key)) {
@@ -41808,22 +41783,25 @@ function createTypeChecker(host) {
41808
41783
  const context = {
41809
41784
  enclosingDeclaration,
41810
41785
  flags: flags || 0 /* None */,
41811
- tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
41812
- getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
41813
- getCurrentDirectory: () => host.getCurrentDirectory(),
41814
- getSymlinkCache: maybeBind(host, host.getSymlinkCache),
41815
- getPackageJsonInfoCache: () => {
41816
- var _a3;
41817
- return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
41818
- },
41819
- useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
41820
- redirectTargetsMap: host.redirectTargetsMap,
41821
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
41822
- isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
41823
- fileExists: (fileName) => host.fileExists(fileName),
41824
- getFileIncludeReasons: () => host.getFileIncludeReasons(),
41825
- readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
41826
- } : void 0 },
41786
+ tracker: tracker && tracker.trackSymbol ? tracker : {
41787
+ trackSymbol: () => false,
41788
+ moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
41789
+ getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
41790
+ getCurrentDirectory: () => host.getCurrentDirectory(),
41791
+ getSymlinkCache: maybeBind(host, host.getSymlinkCache),
41792
+ getPackageJsonInfoCache: () => {
41793
+ var _a3;
41794
+ return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
41795
+ },
41796
+ useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
41797
+ redirectTargetsMap: host.redirectTargetsMap,
41798
+ getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
41799
+ isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
41800
+ fileExists: (fileName) => host.fileExists(fileName),
41801
+ getFileIncludeReasons: () => host.getFileIncludeReasons(),
41802
+ readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
41803
+ } : void 0
41804
+ },
41827
41805
  encounteredError: false,
41828
41806
  reportedDiagnostic: false,
41829
41807
  visitedTypes: void 0,
@@ -42235,15 +42213,15 @@ function createTypeChecker(host) {
42235
42213
  const isConstructorObject = getObjectFlags(type2) & 16 /* Anonymous */ && type2.symbol && type2.symbol.flags & 32 /* Class */;
42236
42214
  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;
42237
42215
  if (!context.visitedTypes) {
42238
- context.visitedTypes = new Set();
42216
+ context.visitedTypes = /* @__PURE__ */ new Set();
42239
42217
  }
42240
42218
  if (id && !context.symbolDepth) {
42241
- context.symbolDepth = new Map();
42219
+ context.symbolDepth = /* @__PURE__ */ new Map();
42242
42220
  }
42243
42221
  const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
42244
42222
  const key = `${getTypeId(type2)}|${context.flags}`;
42245
42223
  if (links) {
42246
- links.serializedTypes || (links.serializedTypes = new Map());
42224
+ links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map());
42247
42225
  }
42248
42226
  const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
42249
42227
  if (cachedResult) {
@@ -42886,7 +42864,7 @@ function createTypeChecker(host) {
42886
42864
  if ((_a2 = context.typeParameterSymbolList) == null ? void 0 : _a2.has(symbolId)) {
42887
42865
  return void 0;
42888
42866
  }
42889
- (context.typeParameterSymbolList || (context.typeParameterSymbolList = new Set())).add(symbolId);
42867
+ (context.typeParameterSymbolList || (context.typeParameterSymbolList = /* @__PURE__ */ new Set())).add(symbolId);
42890
42868
  let typeParameterNodes;
42891
42869
  if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < chain.length - 1) {
42892
42870
  const parentSymbol = symbol;
@@ -42960,7 +42938,7 @@ function createTypeChecker(host) {
42960
42938
  },
42961
42939
  { overrideImportMode }
42962
42940
  ));
42963
- (_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = new Map();
42941
+ (_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = /* @__PURE__ */ new Map();
42964
42942
  links.specifierCache.set(cacheKey, specifier);
42965
42943
  }
42966
42944
  return specifier;
@@ -43136,9 +43114,9 @@ function createTypeChecker(host) {
43136
43114
  if (text !== rawtext) {
43137
43115
  result = factory.createIdentifier(text, result.typeArguments);
43138
43116
  }
43139
- (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = new Map())).set(rawtext, i);
43140
- (context.typeParameterNames || (context.typeParameterNames = new Map())).set(getTypeId(type), result);
43141
- (context.typeParameterNamesByText || (context.typeParameterNamesByText = new Set())).add(rawtext);
43117
+ (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = /* @__PURE__ */ new Map())).set(rawtext, i);
43118
+ (context.typeParameterNames || (context.typeParameterNames = /* @__PURE__ */ new Map())).set(getTypeId(type), result);
43119
+ (context.typeParameterNamesByText || (context.typeParameterNamesByText = /* @__PURE__ */ new Set())).add(rawtext);
43142
43120
  }
43143
43121
  return result;
43144
43122
  }
@@ -43488,13 +43466,13 @@ function createTypeChecker(host) {
43488
43466
  const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol((mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), 170 /* MethodSignature */, false);
43489
43467
  const enclosingDeclaration = context.enclosingDeclaration;
43490
43468
  let results = [];
43491
- const visitedSymbols = new Set();
43469
+ const visitedSymbols = /* @__PURE__ */ new Set();
43492
43470
  const deferredPrivatesStack = [];
43493
43471
  const oldcontext = context;
43494
43472
  context = {
43495
43473
  ...oldcontext,
43496
43474
  usedSymbolNames: new Set(oldcontext.usedSymbolNames),
43497
- remappedSymbolNames: new Map(),
43475
+ remappedSymbolNames: /* @__PURE__ */ new Map(),
43498
43476
  tracker: {
43499
43477
  ...oldcontext.tracker,
43500
43478
  trackSymbol: (sym, decl, meaning) => {
@@ -43655,7 +43633,7 @@ function createTypeChecker(host) {
43655
43633
  }
43656
43634
  function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) {
43657
43635
  if (!suppressNewPrivateContext) {
43658
- deferredPrivatesStack.push(new Map());
43636
+ deferredPrivatesStack.push(/* @__PURE__ */ new Map());
43659
43637
  }
43660
43638
  symbolTable2.forEach((symbol) => {
43661
43639
  serializeSymbol(symbol, false, !!propertyAsAlias);
@@ -44760,7 +44738,7 @@ function createTypeChecker(host) {
44760
44738
  let result;
44761
44739
  let visited;
44762
44740
  if (exportSymbol) {
44763
- visited = new Set();
44741
+ visited = /* @__PURE__ */ new Set();
44764
44742
  visited.add(getSymbolId(exportSymbol));
44765
44743
  buildVisibleNodeList(exportSymbol.declarations);
44766
44744
  }
@@ -46245,7 +46223,7 @@ function createTypeChecker(host) {
46245
46223
  type.typeParameters = concatenate(outerTypeParameters, localTypeParameters);
46246
46224
  type.outerTypeParameters = outerTypeParameters;
46247
46225
  type.localTypeParameters = localTypeParameters;
46248
- type.instantiations = new Map();
46226
+ type.instantiations = /* @__PURE__ */ new Map();
46249
46227
  type.instantiations.set(getTypeListId(type.typeParameters), type);
46250
46228
  type.target = type;
46251
46229
  type.resolvedTypeArguments = type.typeParameters;
@@ -46270,7 +46248,7 @@ function createTypeChecker(host) {
46270
46248
  const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
46271
46249
  if (typeParameters) {
46272
46250
  links.typeParameters = typeParameters;
46273
- links.instantiations = new Map();
46251
+ links.instantiations = /* @__PURE__ */ new Map();
46274
46252
  links.instantiations.set(getTypeListId(typeParameters), type);
46275
46253
  }
46276
46254
  } else {
@@ -47038,7 +47016,7 @@ function createTypeChecker(host) {
47038
47016
  if (symbol.exports) {
47039
47017
  members = getExportsOfSymbol(symbol);
47040
47018
  if (symbol === globalThisSymbol) {
47041
- const varsOnly = new Map();
47019
+ const varsOnly = /* @__PURE__ */ new Map();
47042
47020
  members.forEach((p) => {
47043
47021
  var _a2;
47044
47022
  if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a2 = p.declarations) == null ? void 0 : _a2.length) && every(p.declarations, isAmbientModule))) {
@@ -47682,7 +47660,7 @@ function createTypeChecker(host) {
47682
47660
  mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent));
47683
47661
  } else {
47684
47662
  if (!propSet) {
47685
- propSet = new Map();
47663
+ propSet = /* @__PURE__ */ new Map();
47686
47664
  propSet.set(getSymbolId(singleProp), singleProp);
47687
47665
  }
47688
47666
  const id = getSymbolId(prop);
@@ -48337,7 +48315,7 @@ function createTypeChecker(host) {
48337
48315
  return instantiatedSignature;
48338
48316
  }
48339
48317
  function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) {
48340
- const instantiations = signature.instantiations || (signature.instantiations = new Map());
48318
+ const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map());
48341
48319
  const id = getTypeListId(typeArguments);
48342
48320
  let instantiation = instantiations.get(id);
48343
48321
  if (!instantiation) {
@@ -49234,7 +49212,7 @@ function createTypeChecker(host) {
49234
49212
  type.typeParameters = typeParameters;
49235
49213
  type.outerTypeParameters = void 0;
49236
49214
  type.localTypeParameters = typeParameters;
49237
- type.instantiations = new Map();
49215
+ type.instantiations = /* @__PURE__ */ new Map();
49238
49216
  type.instantiations.set(getTypeListId(type.typeParameters), type);
49239
49217
  type.target = type;
49240
49218
  type.resolvedTypeArguments = type.typeParameters;
@@ -49747,7 +49725,7 @@ function createTypeChecker(host) {
49747
49725
  return result;
49748
49726
  }
49749
49727
  function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
49750
- const typeMembershipMap = new Map();
49728
+ const typeMembershipMap = /* @__PURE__ */ new Map();
49751
49729
  const includes = addTypesToIntersection(typeMembershipMap, 0, types);
49752
49730
  const typeSet = arrayFrom(typeMembershipMap.values());
49753
49731
  if (includes & 131072 /* Never */) {
@@ -50674,7 +50652,7 @@ function createTypeChecker(host) {
50674
50652
  };
50675
50653
  links.resolvedType = getConditionalType(root, void 0);
50676
50654
  if (outerTypeParameters) {
50677
- root.instantiations = new Map();
50655
+ root.instantiations = /* @__PURE__ */ new Map();
50678
50656
  root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);
50679
50657
  }
50680
50658
  }
@@ -50865,7 +50843,7 @@ function createTypeChecker(host) {
50865
50843
  return getIntersectionType([left, right]);
50866
50844
  }
50867
50845
  const members = createSymbolTable();
50868
- const skippedPrivateMembers = new Set();
50846
+ const skippedPrivateMembers = /* @__PURE__ */ new Set();
50869
50847
  const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]);
50870
50848
  for (const rightProp of getPropertiesOfType(right)) {
50871
50849
  if (getDeclarationModifierFlagsFromSymbol(rightProp) & (8 /* Private */ | 16 /* Protected */)) {
@@ -51312,7 +51290,7 @@ function createTypeChecker(host) {
51312
51290
  const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);
51313
51291
  const id = getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments);
51314
51292
  if (!target.instantiations) {
51315
- target.instantiations = new Map();
51293
+ target.instantiations = /* @__PURE__ */ new Map();
51316
51294
  target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target);
51317
51295
  }
51318
51296
  let result = target.instantiations.get(id);
@@ -53555,7 +53533,7 @@ function createTypeChecker(host) {
53555
53533
  }
53556
53534
  }
53557
53535
  const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length);
53558
- const excludedProperties = new Set();
53536
+ const excludedProperties = /* @__PURE__ */ new Set();
53559
53537
  for (let i = 0; i < sourcePropertiesFiltered.length; i++) {
53560
53538
  const sourceProperty = sourcePropertiesFiltered[i];
53561
53539
  const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty);
@@ -54790,7 +54768,7 @@ function createTypeChecker(host) {
54790
54768
  }
54791
54769
  function getPropertiesOfContext(context) {
54792
54770
  if (!context.resolvedProperties) {
54793
- const names = new Map();
54771
+ const names = /* @__PURE__ */ new Map();
54794
54772
  for (const t of getSiblingsOfContext(context)) {
54795
54773
  if (isObjectLiteralType(t) && !(getObjectFlags(t) & 2097152 /* ContainsSpread */)) {
54796
54774
  for (const prop of getPropertiesOfType(t)) {
@@ -55525,7 +55503,7 @@ function createTypeChecker(host) {
55525
55503
  inferencePriority = Math.min(inferencePriority, status);
55526
55504
  return;
55527
55505
  }
55528
- (visited || (visited = new Map())).set(key, -1 /* Circularity */);
55506
+ (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
55529
55507
  const saveInferencePriority = inferencePriority;
55530
55508
  inferencePriority = 2048 /* MaxValue */;
55531
55509
  const saveExpandingFlags = expandingFlags;
@@ -56190,7 +56168,7 @@ function createTypeChecker(host) {
56190
56168
  return result;
56191
56169
  }
56192
56170
  function mapTypesByKeyProperty(types, name) {
56193
- const map2 = new Map();
56171
+ const map2 = /* @__PURE__ */ new Map();
56194
56172
  let count = 0;
56195
56173
  for (const type of types) {
56196
56174
  if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
@@ -57194,7 +57172,7 @@ function createTypeChecker(host) {
57194
57172
  }
57195
57173
  function getTypeAtFlowLoopLabel(flow) {
57196
57174
  const id = getFlowNodeId(flow);
57197
- const cache = flowLoopCaches[id] || (flowLoopCaches[id] = new Map());
57175
+ const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map());
57198
57176
  const key2 = getOrSetCacheKey();
57199
57177
  if (!key2) {
57200
57178
  return declaredType;
@@ -62332,7 +62310,7 @@ function createTypeChecker(host) {
62332
62310
  if ((_b = source.members) == null ? void 0 : _b.size) {
62333
62311
  mergeSymbolTable(inferred.members, source.members);
62334
62312
  }
62335
- (links.inferredClassSymbol || (links.inferredClassSymbol = new Map())).set(getSymbolId(inferred), inferred);
62313
+ (links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred);
62336
62314
  return inferred;
62337
62315
  }
62338
62316
  return links.inferredClassSymbol.get(getSymbolId(target));
@@ -65187,9 +65165,9 @@ function createTypeChecker(host) {
65187
65165
  }
65188
65166
  }
65189
65167
  function checkClassForDuplicateDeclarations(node) {
65190
- const instanceNames = new Map();
65191
- const staticNames = new Map();
65192
- const privateIdentifiers = new Map();
65168
+ const instanceNames = /* @__PURE__ */ new Map();
65169
+ const staticNames = /* @__PURE__ */ new Map();
65170
+ const privateIdentifiers = /* @__PURE__ */ new Map();
65193
65171
  for (const member of node.members) {
65194
65172
  if (member.kind === 173 /* Constructor */) {
65195
65173
  for (const param of member.parameters) {
@@ -65269,7 +65247,7 @@ function createTypeChecker(host) {
65269
65247
  }
65270
65248
  }
65271
65249
  function checkObjectTypeForDuplicateDeclarations(node) {
65272
- const names = new Map();
65250
+ const names = /* @__PURE__ */ new Map();
65273
65251
  for (const member of node.members) {
65274
65252
  if (member.kind === 168 /* PropertySignature */) {
65275
65253
  let memberName;
@@ -65303,7 +65281,7 @@ function createTypeChecker(host) {
65303
65281
  }
65304
65282
  const indexSymbol = getIndexSymbol(getSymbolOfNode(node));
65305
65283
  if (indexSymbol == null ? void 0 : indexSymbol.declarations) {
65306
- const indexSignatureMap = new Map();
65284
+ const indexSignatureMap = /* @__PURE__ */ new Map();
65307
65285
  for (const declaration of indexSymbol.declarations) {
65308
65286
  if (declaration.parameters.length === 1 && declaration.parameters[0].type) {
65309
65287
  forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => {
@@ -66687,7 +66665,7 @@ function createTypeChecker(host) {
66687
66665
  if (!declarations || last(declarations) !== node)
66688
66666
  return;
66689
66667
  const typeParameters = getEffectiveTypeParameterDeclarations(node);
66690
- const seenParentsWithEveryUnused = new Set();
66668
+ const seenParentsWithEveryUnused = /* @__PURE__ */ new Set();
66691
66669
  for (const typeParameter of typeParameters) {
66692
66670
  if (!isTypeParameterUnused(typeParameter))
66693
66671
  continue;
@@ -66732,9 +66710,9 @@ function createTypeChecker(host) {
66732
66710
  return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name);
66733
66711
  }
66734
66712
  function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) {
66735
- const unusedImports = new Map();
66736
- const unusedDestructures = new Map();
66737
- const unusedVariables = new Map();
66713
+ const unusedImports = /* @__PURE__ */ new Map();
66714
+ const unusedDestructures = /* @__PURE__ */ new Map();
66715
+ const unusedVariables = /* @__PURE__ */ new Map();
66738
66716
  nodeWithLocals.locals.forEach((local) => {
66739
66717
  if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) {
66740
66718
  return;
@@ -68187,8 +68165,8 @@ function createTypeChecker(host) {
68187
68165
  if (!length(jsdocParameters))
68188
68166
  return;
68189
68167
  const isJs = isInJSFile(node);
68190
- const parameters = new Set();
68191
- const excludedParameters = new Set();
68168
+ const parameters = /* @__PURE__ */ new Set();
68169
+ const excludedParameters = /* @__PURE__ */ new Set();
68192
68170
  forEach(node.parameters, ({ name }, index) => {
68193
68171
  if (isIdentifier(name)) {
68194
68172
  parameters.add(name.escapedText);
@@ -68724,7 +68702,7 @@ function createTypeChecker(host) {
68724
68702
  if (!length(baseTypes)) {
68725
68703
  return properties;
68726
68704
  }
68727
- const seen = new Map();
68705
+ const seen = /* @__PURE__ */ new Map();
68728
68706
  forEach(properties, (p) => {
68729
68707
  seen.set(p.escapedName, p);
68730
68708
  });
@@ -68744,7 +68722,7 @@ function createTypeChecker(host) {
68744
68722
  if (baseTypes.length < 2) {
68745
68723
  return true;
68746
68724
  }
68747
- const seen = new Map();
68725
+ const seen = /* @__PURE__ */ new Map();
68748
68726
  forEach(resolveDeclaredMembers(type).declaredProperties, (p) => {
68749
68727
  seen.set(p.escapedName, { prop: p, containingType: type });
68750
68728
  });
@@ -69951,7 +69929,7 @@ function createTypeChecker(host) {
69951
69929
  const enclosingFile = getSourceFileOfNode(node);
69952
69930
  const links = getNodeLinks(enclosingFile);
69953
69931
  if (!(links.flags & 1 /* TypeChecked */)) {
69954
- links.deferredNodes || (links.deferredNodes = new Set());
69932
+ links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
69955
69933
  links.deferredNodes.add(node);
69956
69934
  }
69957
69935
  }
@@ -70385,7 +70363,7 @@ function createTypeChecker(host) {
70385
70363
  const declarationList = mapDefined(infos, (i) => i.declaration);
70386
70364
  const nodeListId = map(declarationList, getNodeId).join(",");
70387
70365
  if (!symbolLinks2.filteredIndexSymbolCache) {
70388
- symbolLinks2.filteredIndexSymbolCache = new Map();
70366
+ symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map();
70389
70367
  }
70390
70368
  if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) {
70391
70369
  links.resolvedSymbol = symbolLinks2.filteredIndexSymbolCache.get(nodeListId);
@@ -71118,7 +71096,7 @@ function createTypeChecker(host) {
71118
71096
  const resolvedTypeReferenceDirectives = host.getResolvedTypeReferenceDirectives();
71119
71097
  let fileToDirective;
71120
71098
  if (resolvedTypeReferenceDirectives) {
71121
- fileToDirective = new Map();
71099
+ fileToDirective = /* @__PURE__ */ new Map();
71122
71100
  resolvedTypeReferenceDirectives.forEach((resolvedDirective, key, mode) => {
71123
71101
  if (!resolvedDirective || !resolvedDirective.resolvedFileName) {
71124
71102
  return;
@@ -71327,7 +71305,7 @@ function createTypeChecker(host) {
71327
71305
  for (const file of host.getSourceFiles()) {
71328
71306
  bindSourceFile(file, compilerOptions);
71329
71307
  }
71330
- amalgamatedDuplicates = new Map();
71308
+ amalgamatedDuplicates = /* @__PURE__ */ new Map();
71331
71309
  let augmentations;
71332
71310
  for (const file of host.getSourceFiles()) {
71333
71311
  if (file.redirectInfo) {
@@ -72091,7 +72069,7 @@ function createTypeChecker(host) {
72091
72069
  return !!exclamationToken && grammarErrorOnNode(exclamationToken, message);
72092
72070
  }
72093
72071
  function checkGrammarObjectLiteralExpression(node, inDestructuring) {
72094
- const seen = new Map();
72072
+ const seen = /* @__PURE__ */ new Map();
72095
72073
  for (const prop of node.properties) {
72096
72074
  if (prop.kind === 301 /* SpreadAssignment */) {
72097
72075
  if (inDestructuring) {
@@ -72175,7 +72153,7 @@ function createTypeChecker(host) {
72175
72153
  function checkGrammarJsxElement(node) {
72176
72154
  checkGrammarJsxName(node.tagName);
72177
72155
  checkGrammarTypeArguments(node, node.typeArguments);
72178
- const seen = new Map();
72156
+ const seen = /* @__PURE__ */ new Map();
72179
72157
  for (const attr of node.attributes.properties) {
72180
72158
  if (attr.kind === 290 /* JsxSpreadAttribute */) {
72181
72159
  continue;
@@ -74242,7 +74220,7 @@ function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath,
74242
74220
  const { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : nullTimer;
74243
74221
  const rawSources = [];
74244
74222
  const sources = [];
74245
- const sourceToSourceIndexMap = new Map();
74223
+ const sourceToSourceIndexMap = /* @__PURE__ */ new Map();
74246
74224
  let sourcesContent;
74247
74225
  const names = [];
74248
74226
  let nameToNameIndexMap;
@@ -74308,7 +74286,7 @@ function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath,
74308
74286
  function addName(name) {
74309
74287
  enter();
74310
74288
  if (!nameToNameIndexMap)
74311
- nameToNameIndexMap = new Map();
74289
+ nameToNameIndexMap = /* @__PURE__ */ new Map();
74312
74290
  let nameIndex = nameToNameIndexMap.get(name);
74313
74291
  if (nameIndex === void 0) {
74314
74292
  nameIndex = names.length;
@@ -74685,7 +74663,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption
74685
74663
  const externalImports = [];
74686
74664
  const exportSpecifiers = createMultiMap();
74687
74665
  const exportedBindings = [];
74688
- const uniqueExports = new Map();
74666
+ const uniqueExports = /* @__PURE__ */ new Map();
74689
74667
  let exportedNames;
74690
74668
  let hasExportDefault = false;
74691
74669
  let exportEquals;
@@ -76442,7 +76420,7 @@ function transformTypeScript(context) {
76442
76420
  }
76443
76421
  function recordEmittedDeclarationInScope(node) {
76444
76422
  if (!currentScopeFirstDeclarationsOfName) {
76445
- currentScopeFirstDeclarationsOfName = new Map();
76423
+ currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map();
76446
76424
  }
76447
76425
  const name = declaredNameInScope(node);
76448
76426
  if (!currentScopeFirstDeclarationsOfName.has(name)) {
@@ -76927,7 +76905,7 @@ function transformClassFields(context) {
76927
76905
  let pendingExpressions;
76928
76906
  let pendingStatements;
76929
76907
  const classLexicalEnvironmentStack = [];
76930
- const classLexicalEnvironmentMap = new Map();
76908
+ const classLexicalEnvironmentMap = /* @__PURE__ */ new Map();
76931
76909
  let currentClassLexicalEnvironment;
76932
76910
  let currentClassContainer;
76933
76911
  let currentComputedPropertyNameClassLexicalEnvironment;
@@ -78643,10 +78621,10 @@ function getPrivateIdentifier(privateEnv, name) {
78643
78621
  function setPrivateIdentifier(privateEnv, name, info) {
78644
78622
  var _a2, _b;
78645
78623
  if (isGeneratedPrivateIdentifier(name)) {
78646
- (_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = new Map();
78624
+ (_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map();
78647
78625
  privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), info);
78648
78626
  } else {
78649
- (_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = new Map();
78627
+ (_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = /* @__PURE__ */ new Map();
78650
78628
  privateEnv.identifiers.set(name.escapedText, info);
78651
78629
  }
78652
78630
  }
@@ -79489,7 +79467,7 @@ function transformES2017(context) {
79489
79467
  return visitor(node);
79490
79468
  }
79491
79469
  function visitCatchClauseInAsyncBody(node) {
79492
- const catchClauseNames = new Set();
79470
+ const catchClauseNames = /* @__PURE__ */ new Set();
79493
79471
  recordDeclarationName(node.variableDeclaration, catchClauseNames);
79494
79472
  let catchClauseUnshadowedNames;
79495
79473
  catchClauseNames.forEach((_, escapedName) => {
@@ -79699,7 +79677,7 @@ function transformES2017(context) {
79699
79677
  Debug.assertIsDefined(node.body);
79700
79678
  const savedCapturedSuperProperties = capturedSuperProperties;
79701
79679
  const savedHasSuperElementAccess = hasSuperElementAccess;
79702
- capturedSuperProperties = new Set();
79680
+ capturedSuperProperties = /* @__PURE__ */ new Set();
79703
79681
  hasSuperElementAccess = false;
79704
79682
  let updated = visitFunctionBody(node.body, visitor, context);
79705
79683
  const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
@@ -79733,14 +79711,14 @@ function transformES2017(context) {
79733
79711
  const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
79734
79712
  const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
79735
79713
  const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
79736
- enclosingFunctionParameterNames = new Set();
79714
+ enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
79737
79715
  for (const parameter of node.parameters) {
79738
79716
  recordDeclarationName(parameter, enclosingFunctionParameterNames);
79739
79717
  }
79740
79718
  const savedCapturedSuperProperties = capturedSuperProperties;
79741
79719
  const savedHasSuperElementAccess = hasSuperElementAccess;
79742
79720
  if (!isArrowFunction2) {
79743
- capturedSuperProperties = new Set();
79721
+ capturedSuperProperties = /* @__PURE__ */ new Set();
79744
79722
  hasSuperElementAccess = false;
79745
79723
  }
79746
79724
  let result;
@@ -80716,7 +80694,7 @@ function transformES2018(context) {
80716
80694
  if (parameters) {
80717
80695
  parameters.add(parameter);
80718
80696
  } else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) {
80719
- parameters = new Set();
80697
+ parameters = /* @__PURE__ */ new Set();
80720
80698
  }
80721
80699
  }
80722
80700
  return parameters;
@@ -80852,7 +80830,7 @@ function transformES2018(context) {
80852
80830
  appendObjectRestAssignmentsIfNeeded(statements, node);
80853
80831
  const savedCapturedSuperProperties = capturedSuperProperties;
80854
80832
  const savedHasSuperElementAccess = hasSuperElementAccess;
80855
- capturedSuperProperties = new Set();
80833
+ capturedSuperProperties = /* @__PURE__ */ new Set();
80856
80834
  hasSuperElementAccess = false;
80857
80835
  const returnStatement = factory2.createReturnStatement(
80858
80836
  emitHelpers().createAsyncGeneratorHelper(
@@ -81454,11 +81432,11 @@ function transformJsx(context) {
81454
81432
  return existing.name;
81455
81433
  }
81456
81434
  if (!currentFileState.utilizedImplicitRuntimeImports) {
81457
- currentFileState.utilizedImplicitRuntimeImports = new Map();
81435
+ currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map();
81458
81436
  }
81459
81437
  let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource);
81460
81438
  if (!specifierSourceImports) {
81461
- specifierSourceImports = new Map();
81439
+ specifierSourceImports = /* @__PURE__ */ new Map();
81462
81440
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
81463
81441
  }
81464
81442
  const generatedName = factory2.createUniqueName(`_${name}`, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */);
@@ -83468,7 +83446,7 @@ function transformES2015(context) {
83468
83446
  }
83469
83447
  function visitLabeledStatement(node) {
83470
83448
  if (convertedLoopState && !convertedLoopState.labels) {
83471
- convertedLoopState.labels = new Map();
83449
+ convertedLoopState.labels = /* @__PURE__ */ new Map();
83472
83450
  }
83473
83451
  const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel);
83474
83452
  return isIterationStatement(statement, false) ? visitIterationStatement(statement, node) : factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node, convertedLoopState && resetLabel);
@@ -84227,12 +84205,12 @@ function transformES2015(context) {
84227
84205
  function setLabeledJump(state, isBreak, labelText, labelMarker) {
84228
84206
  if (isBreak) {
84229
84207
  if (!state.labeledNonLocalBreaks) {
84230
- state.labeledNonLocalBreaks = new Map();
84208
+ state.labeledNonLocalBreaks = /* @__PURE__ */ new Map();
84231
84209
  }
84232
84210
  state.labeledNonLocalBreaks.set(labelText, labelMarker);
84233
84211
  } else {
84234
84212
  if (!state.labeledNonLocalContinues) {
84235
- state.labeledNonLocalContinues = new Map();
84213
+ state.labeledNonLocalContinues = /* @__PURE__ */ new Map();
84236
84214
  }
84237
84215
  state.labeledNonLocalContinues.set(labelText, labelMarker);
84238
84216
  }
@@ -86081,7 +86059,7 @@ function transformGenerators(context) {
86081
86059
  const text = idText(variable.name);
86082
86060
  name = declareLocal(text);
86083
86061
  if (!renamedCatchVariables) {
86084
- renamedCatchVariables = new Map();
86062
+ renamedCatchVariables = /* @__PURE__ */ new Map();
86085
86063
  renamedCatchVariableDeclarations = [];
86086
86064
  context.enableSubstitution(79 /* Identifier */);
86087
86065
  }
@@ -88243,7 +88221,7 @@ function transformSystemModule(context) {
88243
88221
  return updated;
88244
88222
  }
88245
88223
  function collectDependencyGroups(externalImports) {
88246
- const groupIndices = new Map();
88224
+ const groupIndices = /* @__PURE__ */ new Map();
88247
88225
  const dependencyGroups = [];
88248
88226
  for (const externalImport of externalImports) {
88249
88227
  const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions);
@@ -89493,7 +89471,7 @@ function transformECMAScriptModule(context) {
89493
89471
  function onEmitNode(hint, node, emitCallback) {
89494
89472
  if (isSourceFile(node)) {
89495
89473
  if ((isExternalModule(node) || compilerOptions.isolatedModules) && compilerOptions.importHelpers) {
89496
- helperNameSubstitutions = new Map();
89474
+ helperNameSubstitutions = /* @__PURE__ */ new Map();
89497
89475
  }
89498
89476
  previousOnEmitNode(hint, node, emitCallback);
89499
89477
  helperNameSubstitutions = void 0;
@@ -89913,7 +89891,7 @@ function transformDeclarations(context) {
89913
89891
  if (!typeReferenceDirectives) {
89914
89892
  return;
89915
89893
  }
89916
- necessaryTypeReferences = necessaryTypeReferences || new Set();
89894
+ necessaryTypeReferences = necessaryTypeReferences || /* @__PURE__ */ new Set();
89917
89895
  for (const ref of typeReferenceDirectives) {
89918
89896
  necessaryTypeReferences.add(ref);
89919
89897
  }
@@ -90066,8 +90044,8 @@ function transformDeclarations(context) {
90066
90044
  }
90067
90045
  if (node.kind === 309 /* Bundle */) {
90068
90046
  isBundledEmit = true;
90069
- refs = new Map();
90070
- libs2 = new Map();
90047
+ refs = /* @__PURE__ */ new Map();
90048
+ libs2 = /* @__PURE__ */ new Map();
90071
90049
  let hasNoDefaultLib = false;
90072
90050
  const bundle = factory2.createBundle(map(
90073
90051
  node.sourceFiles,
@@ -90079,7 +90057,7 @@ function transformDeclarations(context) {
90079
90057
  enclosingDeclaration = sourceFile;
90080
90058
  lateMarkedStatements = void 0;
90081
90059
  suppressNewDiagnosticContexts = false;
90082
- lateStatementReplacementMap = new Map();
90060
+ lateStatementReplacementMap = /* @__PURE__ */ new Map();
90083
90061
  getSymbolAccessibilityDiagnostic = throwDiagnostic;
90084
90062
  needsScopeFixMarker = false;
90085
90063
  resultHasScopeMarker = false;
@@ -90130,10 +90108,10 @@ function transformDeclarations(context) {
90130
90108
  resultHasExternalModuleIndicator = false;
90131
90109
  suppressNewDiagnosticContexts = false;
90132
90110
  lateMarkedStatements = void 0;
90133
- lateStatementReplacementMap = new Map();
90111
+ lateStatementReplacementMap = /* @__PURE__ */ new Map();
90134
90112
  necessaryTypeReferences = void 0;
90135
- refs = collectReferences(currentSourceFile, new Map());
90136
- libs2 = collectLibs(currentSourceFile, new Map());
90113
+ refs = collectReferences(currentSourceFile, /* @__PURE__ */ new Map());
90114
+ libs2 = collectLibs(currentSourceFile, /* @__PURE__ */ new Map());
90137
90115
  const references = [];
90138
90116
  const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor(node, host, true).declarationFilePath));
90139
90117
  const referenceVisitor = mapReferencesIntoArray(references, outputFilePath);
@@ -92472,7 +92450,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
92472
92450
  const extendedDiagnostics = !!printerOptions.extendedDiagnostics;
92473
92451
  const newLine = getNewLineCharacter(printerOptions);
92474
92452
  const moduleKind = getEmitModuleKind(printerOptions);
92475
- const bundledHelpers = new Map();
92453
+ const bundledHelpers = /* @__PURE__ */ new Map();
92476
92454
  let currentSourceFile;
92477
92455
  let nodeIdToGeneratedName;
92478
92456
  let autoGeneratedIdToGeneratedName;
@@ -92726,9 +92704,9 @@ function createPrinter(printerOptions = {}, handlers = {}) {
92726
92704
  function reset() {
92727
92705
  nodeIdToGeneratedName = [];
92728
92706
  autoGeneratedIdToGeneratedName = [];
92729
- generatedNames = new Set();
92707
+ generatedNames = /* @__PURE__ */ new Set();
92730
92708
  formattedNameTempFlagsStack = [];
92731
- formattedNameTempFlags = new Map();
92709
+ formattedNameTempFlags = /* @__PURE__ */ new Map();
92732
92710
  privateNameTempFlagsStack = [];
92733
92711
  privateNameTempFlags = TempFlags.Auto;
92734
92712
  tempFlagsStack = [];
@@ -93280,7 +93258,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
93280
93258
  if (moduleKind === 0 /* None */ || printerOptions.noEmitHelpers) {
93281
93259
  return void 0;
93282
93260
  }
93283
- const bundledHelpers2 = new Map();
93261
+ const bundledHelpers2 = /* @__PURE__ */ new Map();
93284
93262
  for (const sourceFile of bundle.sourceFiles) {
93285
93263
  const shouldSkip = getExternalHelpersModuleName(sourceFile) !== void 0;
93286
93264
  const helpers = getSortedEmitHelpers(sourceFile);
@@ -95130,7 +95108,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95130
95108
  if (isSourceFile(sourceFileOrBundle)) {
95131
95109
  emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle);
95132
95110
  } else {
95133
- const seenPrologueDirectives = new Set();
95111
+ const seenPrologueDirectives = /* @__PURE__ */ new Set();
95134
95112
  for (const prepend of sourceFileOrBundle.prepends) {
95135
95113
  emitUnparsedPrologues(prepend.prologues, seenPrologueDirectives);
95136
95114
  }
@@ -95141,7 +95119,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95141
95119
  }
95142
95120
  }
95143
95121
  function getPrologueDirectivesFromBundledSourceFiles(bundle) {
95144
- const seenPrologueDirectives = new Set();
95122
+ const seenPrologueDirectives = /* @__PURE__ */ new Set();
95145
95123
  let prologues;
95146
95124
  for (let index = 0; index < bundle.sourceFiles.length; index++) {
95147
95125
  const sourceFile = bundle.sourceFiles[index];
@@ -95801,7 +95779,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95801
95779
  }
95802
95780
  function reserveNameInNestedScopes(name) {
95803
95781
  if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) {
95804
- reservedNames = new Set();
95782
+ reservedNames = /* @__PURE__ */ new Set();
95805
95783
  }
95806
95784
  reservedNames.add(name);
95807
95785
  }
@@ -95963,7 +95941,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95963
95941
  privateNameTempFlags = flags;
95964
95942
  break;
95965
95943
  default:
95966
- formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = new Map();
95944
+ formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = /* @__PURE__ */ new Map();
95967
95945
  formattedNameTempFlags.set(formattedNameKey, flags);
95968
95946
  break;
95969
95947
  }
@@ -96566,7 +96544,7 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi
96566
96544
  if (!host.getDirectories || !host.readDirectory) {
96567
96545
  return void 0;
96568
96546
  }
96569
- const cachedReadDirectoryResult = new Map();
96547
+ const cachedReadDirectoryResult = /* @__PURE__ */ new Map();
96570
96548
  const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
96571
96549
  return {
96572
96550
  useCaseSensitiveFileNames,
@@ -96774,7 +96752,7 @@ function updateSharedExtendedConfigFileWatcher(projectPath, options, extendedCon
96774
96752
  existing.projects.add(projectPath);
96775
96753
  } else {
96776
96754
  extendedConfigFilesMap.set(extendedConfigFilePath, {
96777
- projects: new Set([projectPath]),
96755
+ projects: /* @__PURE__ */ new Set([projectPath]),
96778
96756
  watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath),
96779
96757
  close: () => {
96780
96758
  const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath);
@@ -97070,7 +97048,7 @@ function createWriteFileMeasuringIO(actualWriteFile, createDirectory, directoryE
97070
97048
  };
97071
97049
  }
97072
97050
  function createCompilerHostWorker(options, setParentNodes, system = sys) {
97073
- const existingDirectories = new Map();
97051
+ const existingDirectories = /* @__PURE__ */ new Map();
97074
97052
  const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);
97075
97053
  function directoryExists(directoryPath) {
97076
97054
  if (existingDirectories.has(directoryPath)) {
@@ -97119,10 +97097,10 @@ function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) {
97119
97097
  const originalDirectoryExists = host.directoryExists;
97120
97098
  const originalCreateDirectory = host.createDirectory;
97121
97099
  const originalWriteFile = host.writeFile;
97122
- const readFileCache = new Map();
97123
- const fileExistsCache = new Map();
97124
- const directoryExistsCache = new Map();
97125
- const sourceFileCache = new Map();
97100
+ const readFileCache = /* @__PURE__ */ new Map();
97101
+ const fileExistsCache = /* @__PURE__ */ new Map();
97102
+ const directoryExistsCache = /* @__PURE__ */ new Map();
97103
+ const sourceFileCache = /* @__PURE__ */ new Map();
97126
97104
  const readFileWithCache = (fileName) => {
97127
97105
  const key = toPath3(fileName);
97128
97106
  const value = readFileCache.get(key);
@@ -97154,7 +97132,7 @@ function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) {
97154
97132
  return value;
97155
97133
  const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
97156
97134
  if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */))) {
97157
- sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || new Map()).set(key, sourceFile));
97135
+ sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile));
97158
97136
  }
97159
97137
  return sourceFile;
97160
97138
  } : void 0;
@@ -97352,7 +97330,7 @@ function loadWithTypeDirectiveCache(names, containingFile, redirectedReference,
97352
97330
  return [];
97353
97331
  }
97354
97332
  const resolutions = [];
97355
- const cache = new Map();
97333
+ const cache = /* @__PURE__ */ new Map();
97356
97334
  for (const name of names) {
97357
97335
  let result;
97358
97336
  const mode = getModeForFileReference(name, containingFileMode);
@@ -97437,7 +97415,7 @@ function loadWithModeAwareCache(names, containingFile, containingFileName, redir
97437
97415
  return [];
97438
97416
  }
97439
97417
  const resolutions = [];
97440
- const cache = new Map();
97418
+ const cache = /* @__PURE__ */ new Map();
97441
97419
  let i = 0;
97442
97420
  for (const entry of resolutionInfo ? resolutionInfo.names : names) {
97443
97421
  let result;
@@ -97473,7 +97451,7 @@ function forEachProjectReference(projectReferences, resolvedProjectReferences, c
97473
97451
  const result = cbResolvedRef(resolvedRef, parent, index);
97474
97452
  if (result || !resolvedRef)
97475
97453
  return result;
97476
- (seenResolvedRefs || (seenResolvedRefs = new Set())).add(resolvedRef.sourceFile.path);
97454
+ (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
97477
97455
  return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef);
97478
97456
  });
97479
97457
  }
@@ -97593,7 +97571,7 @@ function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host,
97593
97571
  return { impliedNodeFormat, packageJsonLocations, packageJsonScope };
97594
97572
  }
97595
97573
  }
97596
- var plainJSErrors = new Set([
97574
+ var plainJSErrors = /* @__PURE__ */ new Set([
97597
97575
  Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
97598
97576
  Diagnostics.A_module_cannot_have_multiple_default_exports.code,
97599
97577
  Diagnostics.Another_export_default_is_here.code,
@@ -97712,7 +97690,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97712
97690
  let commonSourceDirectory;
97713
97691
  let typeChecker;
97714
97692
  let classifiableNames;
97715
- const ambientModuleNameToUnmodifiedFileName = new Map();
97693
+ const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map();
97716
97694
  let fileReasons = createMultiMap();
97717
97695
  const cachedBindAndCheckDiagnosticsForFile = {};
97718
97696
  const cachedDeclarationDiagnosticsForFile = {};
@@ -97720,8 +97698,8 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97720
97698
  let fileProcessingDiagnostics;
97721
97699
  const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === "number" ? options.maxNodeModuleJsDepth : 0;
97722
97700
  let currentNodeModulesDepth = 0;
97723
- const modulesWithElidedImports = new Map();
97724
- const sourceFilesFoundSearchingNodeModules = new Map();
97701
+ const modulesWithElidedImports = /* @__PURE__ */ new Map();
97702
+ const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map();
97725
97703
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "createProgram", { configFilePath: options.configFilePath, rootDir: options.rootDir }, true);
97726
97704
  mark("beforeProgram");
97727
97705
  const host = createProgramOptions.host || createCompilerHost(options);
@@ -97733,7 +97711,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97733
97711
  const currentDirectory = host.getCurrentDirectory();
97734
97712
  const supportedExtensions = getSupportedExtensions(options);
97735
97713
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
97736
- const hasEmitBlockingDiagnostics = new Map();
97714
+ const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map();
97737
97715
  let _compilerOptionsObjectLiteralSyntax;
97738
97716
  let moduleResolutionCache;
97739
97717
  let typeReferenceDirectiveResolutionCache;
@@ -97781,13 +97759,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97781
97759
  ).resolvedTypeReferenceDirective;
97782
97760
  actualResolveTypeReferenceDirectiveNamesWorker = (typeReferenceDirectiveNames, containingFile, redirectedReference, containingFileMode) => loadWithTypeDirectiveCache(Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, containingFileMode, loader);
97783
97761
  }
97784
- const packageIdToSourceFile = new Map();
97785
- let sourceFileToPackageName = new Map();
97762
+ const packageIdToSourceFile = /* @__PURE__ */ new Map();
97763
+ let sourceFileToPackageName = /* @__PURE__ */ new Map();
97786
97764
  let redirectTargetsMap = createMultiMap();
97787
97765
  let usesUriStyleNodeCoreModules = false;
97788
- const filesByName = new Map();
97766
+ const filesByName = /* @__PURE__ */ new Map();
97789
97767
  let missingFilePaths;
97790
- const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new Map() : void 0;
97768
+ const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
97791
97769
  let resolvedProjectReferences;
97792
97770
  let projectReferenceRedirects;
97793
97771
  let mapFromFileToProjectReferenceRedirects;
@@ -98096,7 +98074,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
98096
98074
  var _a3;
98097
98075
  if (!classifiableNames) {
98098
98076
  getTypeChecker();
98099
- classifiableNames = new Set();
98077
+ classifiableNames = /* @__PURE__ */ new Set();
98100
98078
  for (const sourceFile of files) {
98101
98079
  (_a3 = sourceFile.classifiableNames) == null ? void 0 : _a3.forEach((value) => classifiableNames.add(value));
98102
98080
  }
@@ -98305,7 +98283,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
98305
98283
  SeenPackageName2[SeenPackageName2["Exists"] = 0] = "Exists";
98306
98284
  SeenPackageName2[SeenPackageName2["Modified"] = 1] = "Modified";
98307
98285
  })(SeenPackageName || (SeenPackageName = {}));
98308
- const seenPackageNames = new Map();
98286
+ const seenPackageNames = /* @__PURE__ */ new Map();
98309
98287
  for (const oldSourceFile of oldSourceFiles) {
98310
98288
  const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options);
98311
98289
  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);
@@ -98908,7 +98886,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
98908
98886
  }
98909
98887
  const result = getDiagnostics(sourceFile, cancellationToken);
98910
98888
  if (sourceFile) {
98911
- (cache.perFile || (cache.perFile = new Map())).set(sourceFile.path, result);
98889
+ (cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result);
98912
98890
  } else {
98913
98891
  cache.allDiagnostics = result;
98914
98892
  }
@@ -99316,7 +99294,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99316
99294
  }
99317
99295
  function getResolvedProjectReferenceToRedirect(fileName) {
99318
99296
  if (mapFromFileToProjectReferenceRedirects === void 0) {
99319
- mapFromFileToProjectReferenceRedirects = new Map();
99297
+ mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();
99320
99298
  forEachResolvedProjectReference2((referencedProject) => {
99321
99299
  if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {
99322
99300
  referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));
@@ -99333,7 +99311,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99333
99311
  if (!isDeclarationFileName(path))
99334
99312
  return void 0;
99335
99313
  if (mapFromToProjectReferenceRedirectSource === void 0) {
99336
- mapFromToProjectReferenceRedirectSource = new Map();
99314
+ mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();
99337
99315
  forEachResolvedProjectReference2((resolvedRef) => {
99338
99316
  const out = outFile(resolvedRef.commandLine.options);
99339
99317
  if (out) {
@@ -99534,7 +99512,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99534
99512
  }
99535
99513
  function parseProjectReferenceConfigFile(ref) {
99536
99514
  if (!projectReferenceRedirects) {
99537
- projectReferenceRedirects = new Map();
99515
+ projectReferenceRedirects = /* @__PURE__ */ new Map();
99538
99516
  }
99539
99517
  const refPath = resolveProjectReferencePath(ref);
99540
99518
  const sourceFilePath = toPath3(refPath);
@@ -99792,7 +99770,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99792
99770
  }
99793
99771
  if (!options.noEmit && !options.suppressOutputPathCheck) {
99794
99772
  const emitHost = getEmitHost();
99795
- const emitFilesSeen = new Set();
99773
+ const emitFilesSeen = /* @__PURE__ */ new Set();
99796
99774
  forEachEmittedFile(emitHost, (emitFileNames) => {
99797
99775
  if (!options.emitDeclarationOnly) {
99798
99776
  verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen);
@@ -100148,7 +100126,7 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) {
100148
100126
  if (!host.getResolvedProjectReferences())
100149
100127
  return false;
100150
100128
  if (!setOfDeclarationDirectories) {
100151
- setOfDeclarationDirectories = new Set();
100129
+ setOfDeclarationDirectories = /* @__PURE__ */ new Set();
100152
100130
  host.forEachResolvedProjectReference((ref) => {
100153
100131
  const out = outFile(ref.commandLine.options);
100154
100132
  if (out) {
@@ -100379,7 +100357,7 @@ var BuilderState;
100379
100357
  getValues: (k) => forward.get(k),
100380
100358
  keys: () => forward.keys(),
100381
100359
  deleteKey: (k) => {
100382
- (deleted || (deleted = new Set())).add(k);
100360
+ (deleted || (deleted = /* @__PURE__ */ new Set())).add(k);
100383
100361
  const set = forward.get(k);
100384
100362
  if (!set) {
100385
100363
  return false;
@@ -100407,13 +100385,13 @@ var BuilderState;
100407
100385
  };
100408
100386
  return map2;
100409
100387
  }
100410
- return create2(new Map(), new Map(), void 0);
100388
+ return create2(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0);
100411
100389
  }
100412
100390
  BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
100413
100391
  function addToMultimap(map2, k, v) {
100414
100392
  let set = map2.get(k);
100415
100393
  if (!set) {
100416
- set = new Set();
100394
+ set = /* @__PURE__ */ new Set();
100417
100395
  map2.set(k, set);
100418
100396
  }
100419
100397
  set.add(v);
@@ -100496,7 +100474,7 @@ var BuilderState;
100496
100474
  }
100497
100475
  }
100498
100476
  function addReferencedFile(referencedPath) {
100499
- (referencedFiles || (referencedFiles = new Set())).add(referencedPath);
100477
+ (referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath);
100500
100478
  }
100501
100479
  }
100502
100480
  function canReuseOldState(newReferencedMap, oldState) {
@@ -100505,7 +100483,7 @@ var BuilderState;
100505
100483
  BuilderState2.canReuseOldState = canReuseOldState;
100506
100484
  function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
100507
100485
  var _a2, _b, _c;
100508
- const fileInfos = new Map();
100486
+ const fileInfos = /* @__PURE__ */ new Map();
100509
100487
  const options = newProgram.getCompilerOptions();
100510
100488
  const isOutFile = outFile(options);
100511
100489
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
@@ -100577,7 +100555,7 @@ var BuilderState;
100577
100555
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
100578
100556
  function updateSignatureOfFile(state, signature, path) {
100579
100557
  state.fileInfos.get(path).signature = signature;
100580
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(path);
100558
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
100581
100559
  }
100582
100560
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
100583
100561
  function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
@@ -100612,7 +100590,7 @@ var BuilderState;
100612
100590
  if (latestSignature === void 0) {
100613
100591
  latestSignature = sourceFile.version;
100614
100592
  if (state.exportedModulesMap && latestSignature !== prevSignature) {
100615
- (state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100593
+ (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100616
100594
  const references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : void 0;
100617
100595
  if (references) {
100618
100596
  state.exportedModulesMap.set(sourceFile.resolvedPath, references);
@@ -100621,8 +100599,8 @@ var BuilderState;
100621
100599
  }
100622
100600
  }
100623
100601
  }
100624
- (state.oldSignatures || (state.oldSignatures = new Map())).set(sourceFile.resolvedPath, prevSignature || false);
100625
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(sourceFile.resolvedPath);
100602
+ (state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false);
100603
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath);
100626
100604
  info.signature = latestSignature;
100627
100605
  return latestSignature !== prevSignature;
100628
100606
  }
@@ -100630,7 +100608,7 @@ var BuilderState;
100630
100608
  function updateExportedModules(state, sourceFile, exportedModulesFromDeclarationEmit) {
100631
100609
  if (!state.exportedModulesMap)
100632
100610
  return;
100633
- (state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100611
+ (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100634
100612
  if (!exportedModulesFromDeclarationEmit) {
100635
100613
  state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);
100636
100614
  return;
@@ -100645,7 +100623,7 @@ var BuilderState;
100645
100623
  function addExportedModule(exportedModulePaths) {
100646
100624
  if (exportedModulePaths == null ? void 0 : exportedModulePaths.length) {
100647
100625
  if (!exportedModules) {
100648
- exportedModules = new Set();
100626
+ exportedModules = /* @__PURE__ */ new Set();
100649
100627
  }
100650
100628
  exportedModulePaths.forEach((path) => exportedModules.add(path));
100651
100629
  }
@@ -100660,7 +100638,7 @@ var BuilderState;
100660
100638
  if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {
100661
100639
  return getAllFileNames(state, programOfThisState);
100662
100640
  }
100663
- const seenMap = new Set();
100641
+ const seenMap = /* @__PURE__ */ new Set();
100664
100642
  const queue = [sourceFile.resolvedPath];
100665
100643
  while (queue.length) {
100666
100644
  const path = queue.pop();
@@ -100743,7 +100721,7 @@ var BuilderState;
100743
100721
  if (compilerOptions && (compilerOptions.isolatedModules || outFile(compilerOptions))) {
100744
100722
  return [sourceFileWithUpdatedShape];
100745
100723
  }
100746
- const seenFileNamesMap = new Map();
100724
+ const seenFileNamesMap = /* @__PURE__ */ new Map();
100747
100725
  seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);
100748
100726
  const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);
100749
100727
  while (queue.length > 0) {
@@ -100801,11 +100779,11 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100801
100779
  state.compilerOptions = compilerOptions;
100802
100780
  const outFilePath = outFile(compilerOptions);
100803
100781
  if (!outFilePath) {
100804
- state.semanticDiagnosticsPerFile = new Map();
100782
+ state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map();
100805
100783
  } else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === outFile(oldState == null ? void 0 : oldState.compilerOptions)) {
100806
100784
  state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature);
100807
100785
  }
100808
- state.changedFilesSet = new Set();
100786
+ state.changedFilesSet = /* @__PURE__ */ new Set();
100809
100787
  state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0;
100810
100788
  const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState);
100811
100789
  const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0;
@@ -100815,7 +100793,7 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100815
100793
  (_a2 = oldState.changedFilesSet) == null ? void 0 : _a2.forEach((value) => state.changedFilesSet.add(value));
100816
100794
  if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) {
100817
100795
  state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit);
100818
- state.seenAffectedFiles = new Set();
100796
+ state.seenAffectedFiles = /* @__PURE__ */ new Set();
100819
100797
  }
100820
100798
  state.programEmitPending = oldState.programEmitPending;
100821
100799
  } else {
@@ -100841,7 +100819,7 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100841
100819
  if (diagnostics) {
100842
100820
  state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
100843
100821
  if (!state.semanticDiagnosticsFromOldState) {
100844
- state.semanticDiagnosticsFromOldState = new Set();
100822
+ state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
100845
100823
  }
100846
100824
  state.semanticDiagnosticsFromOldState.add(sourceFilePath);
100847
100825
  }
@@ -100849,11 +100827,18 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100849
100827
  if (canCopyEmitSignatures) {
100850
100828
  const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath);
100851
100829
  if (oldEmitSignature) {
100852
- ((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
100830
+ ((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = /* @__PURE__ */ new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
100853
100831
  }
100854
100832
  }
100855
100833
  });
100856
- if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => (outFilePath || info.affectsGlobalScope) && !state.fileInfos.has(sourceFilePath))) {
100834
+ if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => {
100835
+ if (state.fileInfos.has(sourceFilePath))
100836
+ return false;
100837
+ if (outFilePath || info.affectsGlobalScope)
100838
+ return true;
100839
+ state.buildInfoEmitPending = true;
100840
+ return false;
100841
+ })) {
100857
100842
  BuilderState.getAllFilesExcludingDefaultLibraryFile(state, newProgram, void 0).forEach((file) => addFileToChangeSet(state, file.resolvedPath));
100858
100843
  } else if (oldCompilerOptions) {
100859
100844
  const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions);
@@ -100869,7 +100854,7 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100869
100854
  }
100870
100855
  });
100871
100856
  Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size);
100872
- state.seenAffectedFiles = state.seenAffectedFiles || new Set();
100857
+ state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set();
100873
100858
  state.buildInfoEmitPending = true;
100874
100859
  } else {
100875
100860
  state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind;
@@ -101000,7 +100985,7 @@ function getNextAffectedFile(state, cancellationToken, computeHash, getCanonical
101000
100985
  state.currentChangedFilePath = nextKey.value;
101001
100986
  state.affectedFilesIndex = 0;
101002
100987
  if (!state.seenAffectedFiles)
101003
- state.seenAffectedFiles = new Set();
100988
+ state.seenAffectedFiles = /* @__PURE__ */ new Set();
101004
100989
  }
101005
100990
  }
101006
100991
  function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) {
@@ -101128,7 +101113,7 @@ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile
101128
101113
  if (!isChangedSignature(state, affectedFile.resolvedPath))
101129
101114
  return;
101130
101115
  if (state.compilerOptions.isolatedModules) {
101131
- const seenFileNamesMap = new Map();
101116
+ const seenFileNamesMap = /* @__PURE__ */ new Map();
101132
101117
  seenFileNamesMap.set(affectedFile.resolvedPath, true);
101133
101118
  const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath);
101134
101119
  while (queue.length > 0) {
@@ -101145,7 +101130,7 @@ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile
101145
101130
  }
101146
101131
  }
101147
101132
  }
101148
- const seenFileAndExportsOfFile = new Set();
101133
+ const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
101149
101134
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
101150
101135
  if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
101151
101136
  return true;
@@ -101223,7 +101208,7 @@ function getBuildInfo2(state, getCanonicalFileName, bundle) {
101223
101208
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
101224
101209
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
101225
101210
  const fileNames = [];
101226
- const fileNameToFileId = new Map();
101211
+ const fileNameToFileId = /* @__PURE__ */ new Map();
101227
101212
  if (outFile(state.compilerOptions)) {
101228
101213
  const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
101229
101214
  toFileId(key);
@@ -101300,7 +101285,7 @@ function getBuildInfo2(state, getCanonicalFileName, bundle) {
101300
101285
  let affectedFilesPendingEmit;
101301
101286
  if ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.size) {
101302
101287
  const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);
101303
- const seenFiles = new Set();
101288
+ const seenFiles = /* @__PURE__ */ new Set();
101304
101289
  for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
101305
101290
  if (tryAddToSet(seenFiles, path)) {
101306
101291
  const file = state.program.getSourceFileByPath(path);
@@ -101353,7 +101338,7 @@ function getBuildInfo2(state, getCanonicalFileName, bundle) {
101353
101338
  let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key);
101354
101339
  if (fileIdListId === void 0) {
101355
101340
  (fileIdsList || (fileIdsList = [])).push(fileIds);
101356
- (fileNamesToFileIdListId || (fileNamesToFileIdListId = new Map())).set(key, fileIdListId = fileIdsList.length);
101341
+ (fileNamesToFileIdListId || (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length);
101357
101342
  }
101358
101343
  return fileIdListId;
101359
101344
  }
@@ -101554,11 +101539,11 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101554
101539
  state.affectedFilesIndex++;
101555
101540
  state.buildInfoEmitPending = true;
101556
101541
  const existing = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedSourceFile.resolvedPath)) || 0 /* None */;
101557
- ((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
101542
+ ((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
101558
101543
  const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind;
101559
101544
  const pendingKind = getPendingEmitKind(existingPending, emitKind | existing);
101560
101545
  if (pendingKind)
101561
- ((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
101546
+ ((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
101562
101547
  else
101563
101548
  (_e = state.affectedFilesPendingEmit) == null ? void 0 : _e.delete(affectedSourceFile.resolvedPath);
101564
101549
  } else {
@@ -101590,13 +101575,13 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101590
101575
  emitSignature = signature;
101591
101576
  if (signature !== file.version) {
101592
101577
  if (host.storeFilesChangingSignatureDuringEmit)
101593
- ((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = new Set()).add(file.resolvedPath);
101578
+ ((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = /* @__PURE__ */ new Set()).add(file.resolvedPath);
101594
101579
  if (state.exportedModulesMap)
101595
101580
  BuilderState.updateExportedModules(state, file, file.exportedModulesFromDeclarationEmit);
101596
101581
  if (state.affectedFiles) {
101597
101582
  const existing = (_c = state.oldSignatures) == null ? void 0 : _c.get(file.resolvedPath);
101598
101583
  if (existing === void 0)
101599
- ((_d = state.oldSignatures) != null ? _d : state.oldSignatures = new Map()).set(file.resolvedPath, info.signature || false);
101584
+ ((_d = state.oldSignatures) != null ? _d : state.oldSignatures = /* @__PURE__ */ new Map()).set(file.resolvedPath, info.signature || false);
101600
101585
  info.signature = signature;
101601
101586
  } else {
101602
101587
  info.signature = signature;
@@ -101610,7 +101595,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101610
101595
  emitSignature = handleNewSignature((_f = state.emitSignatures) == null ? void 0 : _f.get(filePath), emitSignature);
101611
101596
  if (!emitSignature)
101612
101597
  return;
101613
- ((_g = state.emitSignatures) != null ? _g : state.emitSignatures = new Map()).set(filePath, emitSignature);
101598
+ ((_g = state.emitSignatures) != null ? _g : state.emitSignatures = /* @__PURE__ */ new Map()).set(filePath, emitSignature);
101614
101599
  }
101615
101600
  } else if (state.compilerOptions.composite) {
101616
101601
  const newSignature = handleNewSignature(state.outSignature, void 0);
@@ -101727,7 +101712,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101727
101712
  function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) {
101728
101713
  var _a2, _b;
101729
101714
  const existingKind = ((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.get(affectedFilePendingEmit)) || 0 /* None */;
101730
- ((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = new Map()).set(affectedFilePendingEmit, existingKind | kind);
101715
+ ((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedFilePendingEmit, existingKind | kind);
101731
101716
  }
101732
101717
  function toBuilderStateFileInfoForMultiEmit(fileInfo) {
101733
101718
  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 };
@@ -101748,7 +101733,7 @@ function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, hos
101748
101733
  let filePathsSetList;
101749
101734
  const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0;
101750
101735
  if (isProgramBundleEmitBuildInfo(program)) {
101751
- const fileInfos = new Map();
101736
+ const fileInfos = /* @__PURE__ */ new Map();
101752
101737
  program.fileInfos.forEach((fileInfo, index) => {
101753
101738
  const path = toFilePath(index + 1);
101754
101739
  fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);
@@ -101763,8 +101748,8 @@ function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, hos
101763
101748
  };
101764
101749
  } else {
101765
101750
  filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));
101766
- const fileInfos = new Map();
101767
- const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? new Map() : void 0;
101751
+ const fileInfos = /* @__PURE__ */ new Map();
101752
+ const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? /* @__PURE__ */ new Map() : void 0;
101768
101753
  program.fileInfos.forEach((fileInfo, index) => {
101769
101754
  const path = toFilePath(index + 1);
101770
101755
  const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);
@@ -101848,7 +101833,7 @@ function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, hos
101848
101833
  function getBuildInfoFileVersionMap(program, buildInfoPath, host) {
101849
101834
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
101850
101835
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
101851
- const fileInfos = new Map();
101836
+ const fileInfos = /* @__PURE__ */ new Map();
101852
101837
  program.fileInfos.forEach((fileInfo, index) => {
101853
101838
  const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
101854
101839
  const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
@@ -101933,7 +101918,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101933
101918
  const resolutionsWithFailedLookups = [];
101934
101919
  const resolutionsWithOnlyAffectingLocations = [];
101935
101920
  const resolvedFileToResolution = createMultiMap();
101936
- const impliedFormatPackageJsons = new Map();
101921
+ const impliedFormatPackageJsons = /* @__PURE__ */ new Map();
101937
101922
  let hasChangedAutomaticTypeDirectiveNames = false;
101938
101923
  let affectingPathChecksForFile;
101939
101924
  let affectingPathChecks;
@@ -101942,7 +101927,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101942
101927
  let isInDirectoryChecks;
101943
101928
  const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory());
101944
101929
  const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost();
101945
- const resolvedModuleNames = new Map();
101930
+ const resolvedModuleNames = /* @__PURE__ */ new Map();
101946
101931
  const perDirectoryResolvedModuleNames = createCacheWithRedirects();
101947
101932
  const nonRelativeModuleNameCache = createCacheWithRedirects();
101948
101933
  const moduleResolutionCache = createModuleResolutionCache(
@@ -101952,7 +101937,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101952
101937
  perDirectoryResolvedModuleNames,
101953
101938
  nonRelativeModuleNameCache
101954
101939
  );
101955
- const resolvedTypeReferenceDirectives = new Map();
101940
+ const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map();
101956
101941
  const perDirectoryResolvedTypeReferenceDirectives = createCacheWithRedirects();
101957
101942
  const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(
101958
101943
  getCurrentDirectory(),
@@ -101962,13 +101947,13 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101962
101947
  perDirectoryResolvedTypeReferenceDirectives
101963
101948
  );
101964
101949
  const failedLookupDefaultExtensions = [".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */, ".json" /* Json */];
101965
- const customFailedLookupPaths = new Map();
101966
- const directoryWatchesOfFailedLookups = new Map();
101967
- const fileWatchesOfAffectingLocations = new Map();
101950
+ const customFailedLookupPaths = /* @__PURE__ */ new Map();
101951
+ const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map();
101952
+ const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map();
101968
101953
  const rootDir = rootDirForResolution && removeTrailingDirectorySeparator(getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()));
101969
101954
  const rootPath = rootDir && resolutionHost.toPath(rootDir);
101970
101955
  const rootSplitLength = rootPath !== void 0 ? rootPath.split(directorySeparator).length : 0;
101971
- const typeRootsWatches = new Map();
101956
+ const typeRootsWatches = /* @__PURE__ */ new Map();
101972
101957
  return {
101973
101958
  getModuleResolutionCache: () => moduleResolutionCache,
101974
101959
  startRecordingFilesWithChangedResolutions,
@@ -102421,16 +102406,16 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102421
102406
  }
102422
102407
  }
102423
102408
  }
102424
- const paths = new Set();
102409
+ const paths = /* @__PURE__ */ new Set();
102425
102410
  paths.add(locationToWatch);
102426
102411
  let actualWatcher = canWatchDirectoryOrFile(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => {
102427
102412
  cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind);
102428
102413
  const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();
102429
102414
  paths.forEach((path) => {
102430
102415
  if (watcher.resolutions)
102431
- (affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = new Set()).add(path);
102416
+ (affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = /* @__PURE__ */ new Set()).add(path);
102432
102417
  if (watcher.files)
102433
- (affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = new Set()).add(path);
102418
+ (affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = /* @__PURE__ */ new Set()).add(path);
102434
102419
  packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path));
102435
102420
  });
102436
102421
  resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
@@ -102558,7 +102543,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102558
102543
  continue;
102559
102544
  resolution.isInvalidated = invalidated = true;
102560
102545
  for (const containingFilePath of Debug.checkDefined(resolution.files)) {
102561
- (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(containingFilePath);
102546
+ (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(containingFilePath);
102562
102547
  hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile);
102563
102548
  }
102564
102549
  }
@@ -102577,7 +102562,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102577
102562
  }
102578
102563
  function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) {
102579
102564
  if (isCreatingWatchedDirectory) {
102580
- (isInDirectoryChecks || (isInDirectoryChecks = new Set())).add(fileOrDirectoryPath);
102565
+ (isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102581
102566
  } else {
102582
102567
  const updatedPath = removeIgnoredPath(fileOrDirectoryPath);
102583
102568
  if (!updatedPath)
@@ -102588,8 +102573,8 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102588
102573
  }
102589
102574
  const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath);
102590
102575
  if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) {
102591
- (failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
102592
- (startsWithPathChecks || (startsWithPathChecks = new Set())).add(fileOrDirectoryPath);
102576
+ (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102577
+ (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102593
102578
  } else {
102594
102579
  if (!isPathWithDefaultFailedLookupExtension(fileOrDirectoryPath) && !customFailedLookupPaths.has(fileOrDirectoryPath)) {
102595
102580
  return false;
@@ -102597,10 +102582,10 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102597
102582
  if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {
102598
102583
  return false;
102599
102584
  }
102600
- (failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
102585
+ (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102601
102586
  const packagePath = parseNodeModuleFromPath(fileOrDirectoryPath);
102602
102587
  if (packagePath)
102603
- (startsWithPathChecks || (startsWithPathChecks = new Set())).add(packagePath);
102588
+ (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath);
102604
102589
  }
102605
102590
  }
102606
102591
  resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
@@ -102611,7 +102596,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102611
102596
  if (affectingPathChecksForFile) {
102612
102597
  (_a2 = resolutionHost.getCurrentProgram()) == null ? void 0 : _a2.getSourceFiles().forEach((f) => {
102613
102598
  if (some(f.packageJsonLocations, (location) => affectingPathChecksForFile.has(location))) {
102614
- (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(f.path);
102599
+ (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(f.path);
102615
102600
  invalidated = true;
102616
102601
  }
102617
102602
  });
@@ -102801,7 +102786,7 @@ function getErrorSummaryText(errorCount, filesInError, newLine, host) {
102801
102786
  if (errorCount === 0)
102802
102787
  return "";
102803
102788
  const nonNilFiles = filesInError.filter((fileInError) => fileInError !== void 0);
102804
- const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self2) => self2.indexOf(value) === index);
102789
+ const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self) => self.indexOf(value) === index);
102805
102790
  const firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
102806
102791
  const d = errorCount === 1 ? createCompilerDiagnostic(
102807
102792
  filesInError[0] !== void 0 ? Diagnostics.Found_1_error_in_1 : Diagnostics.Found_1_error,
@@ -102816,7 +102801,7 @@ function getErrorSummaryText(errorCount, filesInError, newLine, host) {
102816
102801
  return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}${suffix}`;
102817
102802
  }
102818
102803
  function createTabularErrorsDisplay(filesInError, host) {
102819
- const distinctFiles = filesInError.filter((value, index, self2) => index === self2.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));
102804
+ const distinctFiles = filesInError.filter((value, index, self) => index === self.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));
102820
102805
  if (distinctFiles.length === 0)
102821
102806
  return "";
102822
102807
  const numberLength = (num) => Math.log(num) * Math.LOG10E + 1;
@@ -103347,7 +103332,7 @@ function createWatchProgram(host) {
103347
103332
  let sharedExtendedConfigFileWatchers;
103348
103333
  let extendedConfigCache = host.extendedConfigCache;
103349
103334
  let reportFileChangeDetectedOnCreateProgram = false;
103350
- const sourceFilesCache = new Map();
103335
+ const sourceFilesCache = /* @__PURE__ */ new Map();
103351
103336
  let missingFilePathsRequestedForRelease;
103352
103337
  let hasChangedCompilerOptions = false;
103353
103338
  const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
@@ -103522,7 +103507,7 @@ function createWatchProgram(host) {
103522
103507
  const oldProgram = getCurrentProgram();
103523
103508
  builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
103524
103509
  resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram);
103525
- updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = new Map()), watchMissingFilePath);
103510
+ updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), watchMissingFilePath);
103526
103511
  if (needsUpdateInTypeRootWatch) {
103527
103512
  resolutionCache.updateTypeRootsWatch();
103528
103513
  }
@@ -103714,7 +103699,7 @@ function createWatchProgram(host) {
103714
103699
  configFileName,
103715
103700
  optionsToExtendForConfigFile,
103716
103701
  parseConfigFileHost,
103717
- extendedConfigCache || (extendedConfigCache = new Map()),
103702
+ extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
103718
103703
  watchOptionsToExtend,
103719
103704
  extraFileExtensions
103720
103705
  ));
@@ -103754,7 +103739,7 @@ function createWatchProgram(host) {
103754
103739
  config.parsedCommandLine = parsedCommandLine;
103755
103740
  config.reloadLevel = void 0;
103756
103741
  } else {
103757
- (parsedConfigs || (parsedConfigs = new Map())).set(configPath, config = { parsedCommandLine });
103742
+ (parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine });
103758
103743
  }
103759
103744
  watchReferencedProject(configFileName2, configPath, config);
103760
103745
  return parsedCommandLine;
@@ -103766,7 +103751,7 @@ function createWatchProgram(host) {
103766
103751
  configFileName2,
103767
103752
  void 0,
103768
103753
  parseConfigFileHost,
103769
- extendedConfigCache || (extendedConfigCache = new Map()),
103754
+ extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
103770
103755
  watchOptionsToExtend
103771
103756
  );
103772
103757
  parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic;
@@ -103815,7 +103800,7 @@ function createWatchProgram(host) {
103815
103800
  function watchConfigFileWildCardDirectories() {
103816
103801
  if (wildcardDirectories) {
103817
103802
  updateWatchingWildcardDirectories(
103818
- watchedWildcardDirectories || (watchedWildcardDirectories = new Map()),
103803
+ watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()),
103819
103804
  new Map(getEntries(wildcardDirectories)),
103820
103805
  watchWildcardDirectory
103821
103806
  );
@@ -103861,7 +103846,7 @@ function createWatchProgram(host) {
103861
103846
  updateSharedExtendedConfigFileWatcher(
103862
103847
  forProjectPath,
103863
103848
  options,
103864
- sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = new Map()),
103849
+ sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()),
103865
103850
  (extendedConfigFileName, extendedConfigFilePath) => watchFile2(
103866
103851
  extendedConfigFileName,
103867
103852
  (_fileName, eventKind) => {
@@ -103909,7 +103894,7 @@ function createWatchProgram(host) {
103909
103894
  ));
103910
103895
  if ((_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories) {
103911
103896
  updateWatchingWildcardDirectories(
103912
- commandLine.watchedDirectories || (commandLine.watchedDirectories = new Map()),
103897
+ commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()),
103913
103898
  new Map(getEntries((_c = commandLine.parsedCommandLine) == null ? void 0 : _c.wildcardDirectories)),
103914
103899
  (directory, flags) => {
103915
103900
  var _a3;
@@ -103982,7 +103967,7 @@ function getOrCreateValueFromConfigFileMap(configFileMap, resolved, createT) {
103982
103967
  return existingValue || newValue;
103983
103968
  }
103984
103969
  function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) {
103985
- return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => new Map());
103970
+ return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map());
103986
103971
  }
103987
103972
  function getCurrentTime(host) {
103988
103973
  return host.now ? host.now() : new Date();
@@ -104071,16 +104056,16 @@ function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, optio
104071
104056
  baseCompilerOptions,
104072
104057
  rootNames,
104073
104058
  baseWatchOptions,
104074
- resolvedConfigFilePaths: new Map(),
104075
- configFileCache: new Map(),
104076
- projectStatus: new Map(),
104077
- extendedConfigCache: new Map(),
104078
- buildInfoCache: new Map(),
104079
- outputTimeStamps: new Map(),
104080
- builderPrograms: new Map(),
104081
- diagnostics: new Map(),
104082
- projectPendingBuild: new Map(),
104083
- projectErrorsReported: new Map(),
104059
+ resolvedConfigFilePaths: /* @__PURE__ */ new Map(),
104060
+ configFileCache: /* @__PURE__ */ new Map(),
104061
+ projectStatus: /* @__PURE__ */ new Map(),
104062
+ extendedConfigCache: /* @__PURE__ */ new Map(),
104063
+ buildInfoCache: /* @__PURE__ */ new Map(),
104064
+ outputTimeStamps: /* @__PURE__ */ new Map(),
104065
+ builderPrograms: /* @__PURE__ */ new Map(),
104066
+ diagnostics: /* @__PURE__ */ new Map(),
104067
+ projectPendingBuild: /* @__PURE__ */ new Map(),
104068
+ projectErrorsReported: /* @__PURE__ */ new Map(),
104084
104069
  compilerHost,
104085
104070
  moduleResolutionCache,
104086
104071
  typeReferenceDirectiveResolutionCache,
@@ -104092,13 +104077,13 @@ function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, optio
104092
104077
  needsSummary: true,
104093
104078
  watchAllProjectsPending: watch,
104094
104079
  watch,
104095
- allWatchedWildcardDirectories: new Map(),
104096
- allWatchedInputFiles: new Map(),
104097
- allWatchedConfigFiles: new Map(),
104098
- allWatchedExtendedConfigFiles: new Map(),
104099
- allWatchedPackageJsonFiles: new Map(),
104100
- filesWatched: new Map(),
104101
- lastCachedPackageJsonLookups: new Map(),
104080
+ allWatchedWildcardDirectories: /* @__PURE__ */ new Map(),
104081
+ allWatchedInputFiles: /* @__PURE__ */ new Map(),
104082
+ allWatchedConfigFiles: /* @__PURE__ */ new Map(),
104083
+ allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(),
104084
+ allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(),
104085
+ filesWatched: /* @__PURE__ */ new Map(),
104086
+ lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(),
104102
104087
  timerToBuildInvalidatedProject: void 0,
104103
104088
  reportFileChangeDetected: false,
104104
104089
  watchFile: watchFile2,
@@ -104154,8 +104139,8 @@ function resolveProjectName(state, name) {
104154
104139
  return resolveConfigFileProjectName(resolvePath(state.currentDirectory, name));
104155
104140
  }
104156
104141
  function createBuildOrder(state, roots) {
104157
- const temporaryMarks = new Map();
104158
- const permanentMarks = new Map();
104142
+ const temporaryMarks = /* @__PURE__ */ new Map();
104143
+ const permanentMarks = /* @__PURE__ */ new Map();
104159
104144
  const circularityReportStack = [];
104160
104145
  let buildOrder;
104161
104146
  let circularDiagnostics;
@@ -104568,7 +104553,7 @@ function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath,
104568
104553
  const { host, compilerHost } = state;
104569
104554
  const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */;
104570
104555
  const emitterDiagnostics = createDiagnosticCollection();
104571
- const emittedOutputs = new Map();
104556
+ const emittedOutputs = /* @__PURE__ */ new Map();
104572
104557
  const options = program.getCompilerOptions();
104573
104558
  const isIncremental = isIncrementalCompilation(options);
104574
104559
  let outputTimeStampMap;
@@ -104683,7 +104668,7 @@ function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath,
104683
104668
  }
104684
104669
  Debug.assert(!!outputFiles.length);
104685
104670
  const emitterDiagnostics = createDiagnosticCollection();
104686
- const emittedOutputs = new Map();
104671
+ const emittedOutputs = /* @__PURE__ */ new Map();
104687
104672
  let resultFlags = 2 /* DeclarationOutputUnchanged */;
104688
104673
  const existingBuildInfo = state.buildInfoCache.get(projectPath).buildInfo || void 0;
104689
104674
  outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => {
@@ -104955,7 +104940,7 @@ function getOutputTimeStampMap(state, resolvedConfigFilePath) {
104955
104940
  return void 0;
104956
104941
  let result = state.outputTimeStamps.get(resolvedConfigFilePath);
104957
104942
  if (!result)
104958
- state.outputTimeStamps.set(resolvedConfigFilePath, result = new Map());
104943
+ state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map());
104959
104944
  return result;
104960
104945
  }
104961
104946
  function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) {
@@ -105253,7 +105238,7 @@ function updateOutputTimestampsWorker(state, proj, projectPath, verboseMessage,
105253
105238
  const { host } = state;
105254
105239
  const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());
105255
105240
  const outputTimeStampMap = getOutputTimeStampMap(state, projectPath);
105256
- const modifiedOutputs = outputTimeStampMap ? new Set() : void 0;
105241
+ const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0;
105257
105242
  if (!skipOutputs || outputs.length !== skipOutputs.size) {
105258
105243
  let reportVerbose = !!state.options.verbose;
105259
105244
  for (const file of outputs) {
@@ -105842,7 +105827,7 @@ function countLines(program) {
105842
105827
  return counts2;
105843
105828
  }
105844
105829
  function getCountsMap() {
105845
- const counts2 = new Map();
105830
+ const counts2 = /* @__PURE__ */ new Map();
105846
105831
  counts2.set("Library", 0);
105847
105832
  counts2.set("Definitions", 0);
105848
105833
  counts2.set("TypeScript", 0);
@@ -106089,7 +106074,7 @@ function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, b
106089
106074
  }
106090
106075
  return res;
106091
106076
  }
106092
- const categoryMap = new Map();
106077
+ const categoryMap = /* @__PURE__ */ new Map();
106093
106078
  for (const option of options) {
106094
106079
  if (!option.category) {
106095
106080
  continue;
@@ -106247,7 +106232,7 @@ function executeCommandLineWorker(sys2, cb, commandLine) {
106247
106232
  (fileName) => getNormalizedAbsolutePath(fileName, currentDirectory)
106248
106233
  );
106249
106234
  if (configFileName) {
106250
- const extendedConfigCache = new Map();
106235
+ const extendedConfigCache = /* @__PURE__ */ new Map();
106251
106236
  const configParseResult = parseConfigFileWithSystem(configFileName, commandLineOptions, extendedConfigCache, commandLine.watchOptions, sys2, reportDiagnostic);
106252
106237
  if (commandLineOptions.showConfig) {
106253
106238
  if (configParseResult.errors.length !== 0) {
@@ -106578,7 +106563,7 @@ function createSolutionPerfomrance() {
106578
106563
  else
106579
106564
  existing.value += s.value;
106580
106565
  } else {
106581
- (statistics != null ? statistics : statistics = new Map()).set(s.name, s);
106566
+ (statistics != null ? statistics : statistics = /* @__PURE__ */ new Map()).set(s.name, s);
106582
106567
  }
106583
106568
  }
106584
106569
  function forEachAggreateStatistics(cb) {