typescript 4.7.0-dev.20220504 → 4.7.1-rc

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
@@ -22,7 +22,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
22
22
  ar[i] = from[i];
23
23
  }
24
24
  }
25
- return to.concat(ar || from);
25
+ return to.concat(ar || Array.prototype.slice.call(from));
26
26
  };
27
27
  var __assign = (this && this.__assign) || function () {
28
28
  __assign = Object.assign || function(t) {
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.7";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220504";
72
+ ts.version = "".concat(ts.versionMajorMinor, ".1-rc");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -94,7 +94,7 @@ var ts;
94
94
  var constructor = (_a = NativeCollections[nativeFactory]()) !== null && _a !== void 0 ? _a : ts.ShimCollections === null || ts.ShimCollections === void 0 ? void 0 : ts.ShimCollections[shimFactory](ts.getIterator);
95
95
  if (constructor)
96
96
  return constructor;
97
- throw new Error("TypeScript requires an environment that provides a compatible native " + name + " implementation.");
97
+ throw new Error("TypeScript requires an environment that provides a compatible native ".concat(name, " implementation."));
98
98
  }
99
99
  })(ts || (ts = {}));
100
100
  var ts;
@@ -1436,7 +1436,7 @@ var ts;
1436
1436
  function cast(value, test) {
1437
1437
  if (value !== undefined && test(value))
1438
1438
  return value;
1439
- return ts.Debug.fail("Invalid cast. The supplied value " + value + " did not pass the test '" + ts.Debug.getFunctionName(test) + "'.");
1439
+ return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'."));
1440
1440
  }
1441
1441
  ts.cast = cast;
1442
1442
  function noop(_) { }
@@ -1486,7 +1486,7 @@ var ts;
1486
1486
  function memoizeOne(callback) {
1487
1487
  var map = new ts.Map();
1488
1488
  return function (arg) {
1489
- var key = typeof arg + ":" + arg;
1489
+ var key = "".concat(typeof arg, ":").concat(arg);
1490
1490
  var value = map.get(key);
1491
1491
  if (value === undefined && !map.has(key)) {
1492
1492
  value = callback(arg);
@@ -1821,7 +1821,7 @@ var ts;
1821
1821
  ts.createGetCanonicalFileName = createGetCanonicalFileName;
1822
1822
  function patternText(_a) {
1823
1823
  var prefix = _a.prefix, suffix = _a.suffix;
1824
- return prefix + "*" + suffix;
1824
+ return "".concat(prefix, "*").concat(suffix);
1825
1825
  }
1826
1826
  ts.patternText = patternText;
1827
1827
  function matchedText(pattern, candidate) {
@@ -2092,7 +2092,7 @@ var ts;
2092
2092
  }
2093
2093
  function fail(message, stackCrawlMark) {
2094
2094
  debugger;
2095
- var e = new Error(message ? "Debug Failure. " + message : "Debug Failure.");
2095
+ var e = new Error(message ? "Debug Failure. ".concat(message) : "Debug Failure.");
2096
2096
  if (Error.captureStackTrace) {
2097
2097
  Error.captureStackTrace(e, stackCrawlMark || fail);
2098
2098
  }
@@ -2100,12 +2100,12 @@ var ts;
2100
2100
  }
2101
2101
  Debug.fail = fail;
2102
2102
  function failBadSyntaxKind(node, message, stackCrawlMark) {
2103
- return fail((message || "Unexpected node.") + "\r\nNode " + formatSyntaxKind(node.kind) + " was unexpected.", stackCrawlMark || failBadSyntaxKind);
2103
+ return fail("".concat(message || "Unexpected node.", "\r\nNode ").concat(formatSyntaxKind(node.kind), " was unexpected."), stackCrawlMark || failBadSyntaxKind);
2104
2104
  }
2105
2105
  Debug.failBadSyntaxKind = failBadSyntaxKind;
2106
2106
  function assert(expression, message, verboseDebugInfo, stackCrawlMark) {
2107
2107
  if (!expression) {
2108
- message = message ? "False expression: " + message : "False expression.";
2108
+ message = message ? "False expression: ".concat(message) : "False expression.";
2109
2109
  if (verboseDebugInfo) {
2110
2110
  message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo());
2111
2111
  }
@@ -2115,26 +2115,26 @@ var ts;
2115
2115
  Debug.assert = assert;
2116
2116
  function assertEqual(a, b, msg, msg2, stackCrawlMark) {
2117
2117
  if (a !== b) {
2118
- var message = msg ? msg2 ? msg + " " + msg2 : msg : "";
2119
- fail("Expected " + a + " === " + b + ". " + message, stackCrawlMark || assertEqual);
2118
+ var message = msg ? msg2 ? "".concat(msg, " ").concat(msg2) : msg : "";
2119
+ fail("Expected ".concat(a, " === ").concat(b, ". ").concat(message), stackCrawlMark || assertEqual);
2120
2120
  }
2121
2121
  }
2122
2122
  Debug.assertEqual = assertEqual;
2123
2123
  function assertLessThan(a, b, msg, stackCrawlMark) {
2124
2124
  if (a >= b) {
2125
- fail("Expected " + a + " < " + b + ". " + (msg || ""), stackCrawlMark || assertLessThan);
2125
+ fail("Expected ".concat(a, " < ").concat(b, ". ").concat(msg || ""), stackCrawlMark || assertLessThan);
2126
2126
  }
2127
2127
  }
2128
2128
  Debug.assertLessThan = assertLessThan;
2129
2129
  function assertLessThanOrEqual(a, b, stackCrawlMark) {
2130
2130
  if (a > b) {
2131
- fail("Expected " + a + " <= " + b, stackCrawlMark || assertLessThanOrEqual);
2131
+ fail("Expected ".concat(a, " <= ").concat(b), stackCrawlMark || assertLessThanOrEqual);
2132
2132
  }
2133
2133
  }
2134
2134
  Debug.assertLessThanOrEqual = assertLessThanOrEqual;
2135
2135
  function assertGreaterThanOrEqual(a, b, stackCrawlMark) {
2136
2136
  if (a < b) {
2137
- fail("Expected " + a + " >= " + b, stackCrawlMark || assertGreaterThanOrEqual);
2137
+ fail("Expected ".concat(a, " >= ").concat(b), stackCrawlMark || assertGreaterThanOrEqual);
2138
2138
  }
2139
2139
  }
2140
2140
  Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;
@@ -2164,42 +2164,42 @@ var ts;
2164
2164
  function assertNever(member, message, stackCrawlMark) {
2165
2165
  if (message === void 0) { message = "Illegal value:"; }
2166
2166
  var detail = typeof member === "object" && ts.hasProperty(member, "kind") && ts.hasProperty(member, "pos") ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member);
2167
- return fail(message + " " + detail, stackCrawlMark || assertNever);
2167
+ return fail("".concat(message, " ").concat(detail), stackCrawlMark || assertNever);
2168
2168
  }
2169
2169
  Debug.assertNever = assertNever;
2170
2170
  function assertEachNode(nodes, test, message, stackCrawlMark) {
2171
2171
  if (shouldAssertFunction(1, "assertEachNode")) {
2172
- assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertEachNode);
2172
+ assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
2173
2173
  }
2174
2174
  }
2175
2175
  Debug.assertEachNode = assertEachNode;
2176
2176
  function assertNode(node, test, message, stackCrawlMark) {
2177
2177
  if (shouldAssertFunction(1, "assertNode")) {
2178
- assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertNode);
2178
+ assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNode);
2179
2179
  }
2180
2180
  }
2181
2181
  Debug.assertNode = assertNode;
2182
2182
  function assertNotNode(node, test, message, stackCrawlMark) {
2183
2183
  if (shouldAssertFunction(1, "assertNotNode")) {
2184
- assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " should not have passed test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertNotNode);
2184
+ assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " should not have passed test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNotNode);
2185
2185
  }
2186
2186
  }
2187
2187
  Debug.assertNotNode = assertNotNode;
2188
2188
  function assertOptionalNode(node, test, message, stackCrawlMark) {
2189
2189
  if (shouldAssertFunction(1, "assertOptionalNode")) {
2190
- assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertOptionalNode);
2190
+ assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertOptionalNode);
2191
2191
  }
2192
2192
  }
2193
2193
  Debug.assertOptionalNode = assertOptionalNode;
2194
2194
  function assertOptionalToken(node, kind, message, stackCrawlMark) {
2195
2195
  if (shouldAssertFunction(1, "assertOptionalToken")) {
2196
- assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " was not a '" + formatSyntaxKind(kind) + "' token."; }, stackCrawlMark || assertOptionalToken);
2196
+ assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " was not a '").concat(formatSyntaxKind(kind), "' token."); }, stackCrawlMark || assertOptionalToken);
2197
2197
  }
2198
2198
  }
2199
2199
  Debug.assertOptionalToken = assertOptionalToken;
2200
2200
  function assertMissingNode(node, message, stackCrawlMark) {
2201
2201
  if (shouldAssertFunction(1, "assertMissingNode")) {
2202
- assert(node === undefined, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " was unexpected'."; }, stackCrawlMark || assertMissingNode);
2202
+ assert(node === undefined, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " was unexpected'."); }, stackCrawlMark || assertMissingNode);
2203
2203
  }
2204
2204
  }
2205
2205
  Debug.assertMissingNode = assertMissingNode;
@@ -2220,7 +2220,7 @@ var ts;
2220
2220
  }
2221
2221
  Debug.getFunctionName = getFunctionName;
2222
2222
  function formatSymbol(symbol) {
2223
- return "{ name: " + ts.unescapeLeadingUnderscores(symbol.escapedName) + "; flags: " + formatSymbolFlags(symbol.flags) + "; declarations: " + ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }) + " }";
2223
+ return "{ name: ".concat(ts.unescapeLeadingUnderscores(symbol.escapedName), "; flags: ").concat(formatSymbolFlags(symbol.flags), "; declarations: ").concat(ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }), " }");
2224
2224
  }
2225
2225
  Debug.formatSymbol = formatSymbol;
2226
2226
  function formatEnum(value, enumObject, isFlags) {
@@ -2238,7 +2238,7 @@ var ts;
2238
2238
  break;
2239
2239
  }
2240
2240
  if (enumValue !== 0 && enumValue & value) {
2241
- result = "" + result + (result ? "|" : "") + enumName;
2241
+ result = "".concat(result).concat(result ? "|" : "").concat(enumName);
2242
2242
  remainingFlags &= ~enumValue;
2243
2243
  }
2244
2244
  }
@@ -2347,7 +2347,7 @@ var ts;
2347
2347
  this.flags & 1 ? "FlowUnreachable" :
2348
2348
  "UnknownFlow";
2349
2349
  var remainingFlags = this.flags & ~(2048 - 1);
2350
- return "" + flowHeader + (remainingFlags ? " (" + formatFlowFlags(remainingFlags) + ")" : "");
2350
+ return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
2351
2351
  }
2352
2352
  },
2353
2353
  __debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, true); } },
@@ -2377,7 +2377,7 @@ var ts;
2377
2377
  __tsDebuggerDisplay: {
2378
2378
  value: function (defaultValue) {
2379
2379
  defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]");
2380
- return "NodeArray " + defaultValue;
2380
+ return "NodeArray ".concat(defaultValue);
2381
2381
  }
2382
2382
  }
2383
2383
  });
@@ -2423,7 +2423,7 @@ var ts;
2423
2423
  var symbolHeader = this.flags & 33554432 ? "TransientSymbol" :
2424
2424
  "Symbol";
2425
2425
  var remainingSymbolFlags = this.flags & ~33554432;
2426
- return symbolHeader + " '" + ts.symbolName(this) + "'" + (remainingSymbolFlags ? " (" + formatSymbolFlags(remainingSymbolFlags) + ")" : "");
2426
+ return "".concat(symbolHeader, " '").concat(ts.symbolName(this), "'").concat(remainingSymbolFlags ? " (".concat(formatSymbolFlags(remainingSymbolFlags), ")") : "");
2427
2427
  }
2428
2428
  },
2429
2429
  __debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }
@@ -2432,11 +2432,11 @@ var ts;
2432
2432
  __tsDebuggerDisplay: {
2433
2433
  value: function () {
2434
2434
  var typeHeader = this.flags & 98304 ? "NullableType" :
2435
- this.flags & 384 ? "LiteralType " + JSON.stringify(this.value) :
2436
- this.flags & 2048 ? "LiteralType " + (this.value.negative ? "-" : "") + this.value.base10Value + "n" :
2435
+ this.flags & 384 ? "LiteralType ".concat(JSON.stringify(this.value)) :
2436
+ this.flags & 2048 ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") :
2437
2437
  this.flags & 8192 ? "UniqueESSymbolType" :
2438
2438
  this.flags & 32 ? "EnumType" :
2439
- this.flags & 67359327 ? "IntrinsicType " + this.intrinsicName :
2439
+ this.flags & 67359327 ? "IntrinsicType ".concat(this.intrinsicName) :
2440
2440
  this.flags & 1048576 ? "UnionType" :
2441
2441
  this.flags & 2097152 ? "IntersectionType" :
2442
2442
  this.flags & 4194304 ? "IndexType" :
@@ -2455,7 +2455,7 @@ var ts;
2455
2455
  "ObjectType" :
2456
2456
  "Type";
2457
2457
  var remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
2458
- return "" + typeHeader + (this.symbol ? " '" + ts.symbolName(this.symbol) + "'" : "") + (remainingObjectFlags ? " (" + formatObjectFlags(remainingObjectFlags) + ")" : "");
2458
+ return "".concat(typeHeader).concat(this.symbol ? " '".concat(ts.symbolName(this.symbol), "'") : "").concat(remainingObjectFlags ? " (".concat(formatObjectFlags(remainingObjectFlags), ")") : "");
2459
2459
  }
2460
2460
  },
2461
2461
  __debugFlags: { get: function () { return formatTypeFlags(this.flags); } },
@@ -2489,11 +2489,11 @@ var ts;
2489
2489
  __tsDebuggerDisplay: {
2490
2490
  value: function () {
2491
2491
  var nodeHeader = ts.isGeneratedIdentifier(this) ? "GeneratedIdentifier" :
2492
- ts.isIdentifier(this) ? "Identifier '" + ts.idText(this) + "'" :
2493
- ts.isPrivateIdentifier(this) ? "PrivateIdentifier '" + ts.idText(this) + "'" :
2494
- ts.isStringLiteral(this) ? "StringLiteral " + JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...") :
2495
- ts.isNumericLiteral(this) ? "NumericLiteral " + this.text :
2496
- ts.isBigIntLiteral(this) ? "BigIntLiteral " + this.text + "n" :
2492
+ ts.isIdentifier(this) ? "Identifier '".concat(ts.idText(this), "'") :
2493
+ ts.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(ts.idText(this), "'") :
2494
+ ts.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) :
2495
+ ts.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) :
2496
+ ts.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") :
2497
2497
  ts.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" :
2498
2498
  ts.isParameter(this) ? "ParameterDeclaration" :
2499
2499
  ts.isConstructorDeclaration(this) ? "ConstructorDeclaration" :
@@ -2525,7 +2525,7 @@ var ts;
2525
2525
  ts.isNamedTupleMember(this) ? "NamedTupleMember" :
2526
2526
  ts.isImportTypeNode(this) ? "ImportTypeNode" :
2527
2527
  formatSyntaxKind(this.kind);
2528
- return "" + nodeHeader + (this.flags ? " (" + formatNodeFlags(this.flags) + ")" : "");
2528
+ return "".concat(nodeHeader).concat(this.flags ? " (".concat(formatNodeFlags(this.flags), ")") : "");
2529
2529
  }
2530
2530
  },
2531
2531
  __debugKind: { get: function () { return formatSyntaxKind(this.kind); } },
@@ -2569,10 +2569,10 @@ var ts;
2569
2569
  Debug.enableDebugInfo = enableDebugInfo;
2570
2570
  function formatDeprecationMessage(name, error, errorAfter, since, message) {
2571
2571
  var deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
2572
- deprecationMessage += "'" + name + "' ";
2573
- deprecationMessage += since ? "has been deprecated since v" + since : "is deprecated";
2574
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v" + errorAfter + "." : ".";
2575
- deprecationMessage += message ? " " + ts.formatStringFromArgs(message, [name], 0) : "";
2572
+ deprecationMessage += "'".concat(name, "' ");
2573
+ deprecationMessage += since ? "has been deprecated since v".concat(since) : "is deprecated";
2574
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v".concat(errorAfter, ".") : ".";
2575
+ deprecationMessage += message ? " ".concat(ts.formatStringFromArgs(message, [name], 0)) : "";
2576
2576
  return deprecationMessage;
2577
2577
  }
2578
2578
  function createErrorDeprecation(name, errorAfter, since, message) {
@@ -2669,11 +2669,11 @@ var ts;
2669
2669
  }
2670
2670
  };
2671
2671
  Version.prototype.toString = function () {
2672
- var result = this.major + "." + this.minor + "." + this.patch;
2672
+ var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
2673
2673
  if (ts.some(this.prerelease))
2674
- result += "-" + this.prerelease.join(".");
2674
+ result += "-".concat(this.prerelease.join("."));
2675
2675
  if (ts.some(this.build))
2676
- result += "+" + this.build.join(".");
2676
+ result += "+".concat(this.build.join("."));
2677
2677
  return result;
2678
2678
  };
2679
2679
  Version.zero = new Version(0, 0, 0);
@@ -2895,7 +2895,7 @@ var ts;
2895
2895
  return ts.map(comparators, formatComparator).join(" ");
2896
2896
  }
2897
2897
  function formatComparator(comparator) {
2898
- return "" + comparator.operator + comparator.operand;
2898
+ return "".concat(comparator.operator).concat(comparator.operand);
2899
2899
  }
2900
2900
  })(ts || (ts = {}));
2901
2901
  var ts;
@@ -3124,7 +3124,7 @@ var ts;
3124
3124
  fs = require("fs");
3125
3125
  }
3126
3126
  catch (e) {
3127
- throw new Error("tracing requires having fs\n(original error: " + (e.message || e) + ")");
3127
+ throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")"));
3128
3128
  }
3129
3129
  }
3130
3130
  mode = tracingMode;
@@ -3135,11 +3135,11 @@ var ts;
3135
3135
  if (!fs.existsSync(traceDir)) {
3136
3136
  fs.mkdirSync(traceDir, { recursive: true });
3137
3137
  }
3138
- var countPart = mode === "build" ? "." + process.pid + "-" + ++traceCount
3139
- : mode === "server" ? "." + process.pid
3138
+ var countPart = mode === "build" ? ".".concat(process.pid, "-").concat(++traceCount)
3139
+ : mode === "server" ? ".".concat(process.pid)
3140
3140
  : "";
3141
- var tracePath = ts.combinePaths(traceDir, "trace" + countPart + ".json");
3142
- var typesPath = ts.combinePaths(traceDir, "types" + countPart + ".json");
3141
+ var tracePath = ts.combinePaths(traceDir, "trace".concat(countPart, ".json"));
3142
+ var typesPath = ts.combinePaths(traceDir, "types".concat(countPart, ".json"));
3143
3143
  legend.push({
3144
3144
  configFilePath: configFilePath,
3145
3145
  tracePath: tracePath,
@@ -3207,7 +3207,7 @@ var ts;
3207
3207
  writeEvent("E", phase, name, args, undefined, endTime);
3208
3208
  }
3209
3209
  else if (sampleInterval - (time % sampleInterval) <= endTime - time) {
3210
- writeEvent("X", phase, name, args, "\"dur\":" + (endTime - time), time);
3210
+ writeEvent("X", phase, name, args, "\"dur\":".concat(endTime - time), time);
3211
3211
  }
3212
3212
  }
3213
3213
  function writeEvent(eventType, phase, name, args, extras, time) {
@@ -3215,11 +3215,11 @@ var ts;
3215
3215
  if (mode === "server" && phase === "checkTypes")
3216
3216
  return;
3217
3217
  ts.performance.mark("beginTracing");
3218
- fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"" + eventType + "\",\"cat\":\"" + phase + "\",\"ts\":" + time + ",\"name\":\"" + name + "\"");
3218
+ fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"".concat(eventType, "\",\"cat\":\"").concat(phase, "\",\"ts\":").concat(time, ",\"name\":\"").concat(name, "\""));
3219
3219
  if (extras)
3220
- fs.writeSync(traceFd, "," + extras);
3220
+ fs.writeSync(traceFd, ",".concat(extras));
3221
3221
  if (args)
3222
- fs.writeSync(traceFd, ",\"args\":" + JSON.stringify(args));
3222
+ fs.writeSync(traceFd, ",\"args\":".concat(JSON.stringify(args)));
3223
3223
  fs.writeSync(traceFd, "}");
3224
3224
  ts.performance.mark("endTracing");
3225
3225
  ts.performance.measure("Tracing", "beginTracing", "endTracing");
@@ -3546,7 +3546,7 @@ var ts;
3546
3546
  pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize;
3547
3547
  ts.unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || ts.unchangedPollThresholds;
3548
3548
  function getLevel(envVar, level) {
3549
- return system.getEnvironmentVariable(envVar + "_" + level.toUpperCase());
3549
+ return system.getEnvironmentVariable("".concat(envVar, "_").concat(level.toUpperCase()));
3550
3550
  }
3551
3551
  function getCustomLevels(baseVariable) {
3552
3552
  var customLevels;
@@ -3970,7 +3970,7 @@ var ts;
3970
3970
  }
3971
3971
  function onTimerToUpdateChildWatches() {
3972
3972
  timerToUpdateChildWatches = undefined;
3973
- sysLog("sysLog:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size);
3973
+ sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size));
3974
3974
  var start = ts.timestamp();
3975
3975
  var invokeMap = new ts.Map();
3976
3976
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
@@ -3981,7 +3981,7 @@ var ts;
3981
3981
  var hasChanges = updateChildWatches(dirName, dirPath, options);
3982
3982
  invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);
3983
3983
  }
3984
- sysLog("sysLog:: invokingWatchers:: Elapsed:: " + (ts.timestamp() - start) + "ms:: " + cacheToUpdateChildWatches.size);
3984
+ sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(ts.timestamp() - start, "ms:: ").concat(cacheToUpdateChildWatches.size));
3985
3985
  callbackCache.forEach(function (callbacks, rootDirName) {
3986
3986
  var existing = invokeMap.get(rootDirName);
3987
3987
  if (existing) {
@@ -3997,7 +3997,7 @@ var ts;
3997
3997
  }
3998
3998
  });
3999
3999
  var elapsed = ts.timestamp() - start;
4000
- sysLog("sysLog:: Elapsed:: " + elapsed + "ms:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size + " " + timerToUpdateChildWatches);
4000
+ sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
4001
4001
  }
4002
4002
  function removeChildWatches(parentWatcher) {
4003
4003
  if (!parentWatcher)
@@ -4389,7 +4389,7 @@ var ts;
4389
4389
  var externalFileCounter = 0;
4390
4390
  var remappedPaths = new ts.Map();
4391
4391
  var normalizedDir = ts.normalizeSlashes(__dirname);
4392
- var fileUrlRoot = "file://" + (ts.getRootLength(normalizedDir) === 1 ? "" : "/") + normalizedDir;
4392
+ var fileUrlRoot = "file://".concat(ts.getRootLength(normalizedDir) === 1 ? "" : "/").concat(normalizedDir);
4393
4393
  for (var _i = 0, _a = profile.nodes; _i < _a.length; _i++) {
4394
4394
  var node = _a[_i];
4395
4395
  if (node.callFrame.url) {
@@ -4398,7 +4398,7 @@ var ts;
4398
4398
  node.callFrame.url = ts.getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, ts.createGetCanonicalFileName(useCaseSensitiveFileNames), true);
4399
4399
  }
4400
4400
  else if (!nativePattern.test(url)) {
4401
- node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external" + externalFileCounter + ".js")).get(url);
4401
+ node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external".concat(externalFileCounter, ".js"))).get(url);
4402
4402
  externalFileCounter++;
4403
4403
  }
4404
4404
  }
@@ -4414,7 +4414,7 @@ var ts;
4414
4414
  if (!err) {
4415
4415
  try {
4416
4416
  if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
4417
- profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
4417
+ profilePath = _path.join(profilePath, "".concat((new Date()).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"));
4418
4418
  }
4419
4419
  }
4420
4420
  catch (_c) {
@@ -4499,7 +4499,7 @@ var ts;
4499
4499
  }
4500
4500
  };
4501
4501
  function invokeCallbackAndUpdateWatcher(createWatcher) {
4502
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing watcher to " + (createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing") + "FileSystemEntryWatcher");
4502
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing", "FileSystemEntryWatcher"));
4503
4503
  callback("rename", "");
4504
4504
  if (watcher) {
4505
4505
  watcher.close();
@@ -4516,7 +4516,7 @@ var ts;
4516
4516
  }
4517
4517
  }
4518
4518
  if (hitSystemWatcherLimit) {
4519
- sysLog("sysLog:: " + fileOrDirectory + ":: Defaulting to fsWatchFile");
4519
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to fsWatchFile"));
4520
4520
  return watchPresentFileSystemEntryWithFsWatchFile();
4521
4521
  }
4522
4522
  try {
@@ -4528,7 +4528,7 @@ var ts;
4528
4528
  }
4529
4529
  catch (e) {
4530
4530
  hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC");
4531
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing to fsWatchFile");
4531
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to fsWatchFile"));
4532
4532
  return watchPresentFileSystemEntryWithFsWatchFile();
4533
4533
  }
4534
4534
  }
@@ -5593,6 +5593,8 @@ var ts;
5593
5593
  Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag(2205, ts.DiagnosticCategory.Error, "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205", "Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.", undefined, true),
5594
5594
  The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement: diag(2206, ts.DiagnosticCategory.Error, "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206", "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),
5595
5595
  The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement: diag(2207, ts.DiagnosticCategory.Error, "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207", "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),
5596
+ The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate: diag(2209, ts.DiagnosticCategory.Error, "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209", "The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),
5597
+ The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate: diag(2210, ts.DiagnosticCategory.Error, "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210", "The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),
5596
5598
  Duplicate_identifier_0: diag(2300, ts.DiagnosticCategory.Error, "Duplicate_identifier_0_2300", "Duplicate identifier '{0}'."),
5597
5599
  Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2301, ts.DiagnosticCategory.Error, "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301", "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),
5598
5600
  Static_members_cannot_reference_class_type_parameters: diag(2302, ts.DiagnosticCategory.Error, "Static_members_cannot_reference_class_type_parameters_2302", "Static members cannot reference class type parameters."),
@@ -6182,6 +6184,7 @@ var ts;
6182
6184
  This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
6183
6185
  This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
6184
6186
  Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, ts.DiagnosticCategory.Error, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
6187
+ Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4125, ts.DiagnosticCategory.Error, "Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125", "Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
6185
6188
  The_current_host_does_not_support_the_0_option: diag(5001, ts.DiagnosticCategory.Error, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
6186
6189
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, ts.DiagnosticCategory.Error, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
6187
6190
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, ts.DiagnosticCategory.Error, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
@@ -7236,7 +7239,7 @@ var ts;
7236
7239
  line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;
7237
7240
  }
7238
7241
  else {
7239
- ts.Debug.fail("Bad line number. Line: " + line + ", lineStarts.length: " + lineStarts.length + " , line map is correct? " + (debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7242
+ ts.Debug.fail("Bad line number. Line: ".concat(line, ", lineStarts.length: ").concat(lineStarts.length, " , line map is correct? ").concat(debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7240
7243
  }
7241
7244
  }
7242
7245
  var res = lineStarts[line] + character;
@@ -9751,7 +9754,7 @@ var ts;
9751
9754
  : "linkplain";
9752
9755
  var name = link.name ? ts.entityNameToString(link.name) : "";
9753
9756
  var space = link.name && link.text.startsWith("://") ? "" : " ";
9754
- return "{@" + kind + " " + name + space + link.text + "}";
9757
+ return "{@".concat(kind, " ").concat(name).concat(space).concat(link.text, "}");
9755
9758
  }
9756
9759
  function getEffectiveTypeParameterDeclarations(node) {
9757
9760
  if (ts.isJSDocSignature(node)) {
@@ -10850,11 +10853,11 @@ var ts;
10850
10853
  }
10851
10854
  function packageIdToPackageName(_a) {
10852
10855
  var name = _a.name, subModuleName = _a.subModuleName;
10853
- return subModuleName ? name + "/" + subModuleName : name;
10856
+ return subModuleName ? "".concat(name, "/").concat(subModuleName) : name;
10854
10857
  }
10855
10858
  ts.packageIdToPackageName = packageIdToPackageName;
10856
10859
  function packageIdToString(packageId) {
10857
- return packageIdToPackageName(packageId) + "@" + packageId.version;
10860
+ return "".concat(packageIdToPackageName(packageId), "@").concat(packageId.version);
10858
10861
  }
10859
10862
  ts.packageIdToString = packageIdToString;
10860
10863
  function typeDirectiveIsEqualTo(oldResolution, newResolution) {
@@ -10931,7 +10934,7 @@ var ts;
10931
10934
  function nodePosToString(node) {
10932
10935
  var file = getSourceFileOfNode(node);
10933
10936
  var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
10934
- return file.fileName + "(" + (loc.line + 1) + "," + (loc.character + 1) + ")";
10937
+ return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
10935
10938
  }
10936
10939
  ts.nodePosToString = nodePosToString;
10937
10940
  function getEndLinePosition(line, sourceFile) {
@@ -11032,7 +11035,7 @@ var ts;
11032
11035
  ts.isPinnedComment = isPinnedComment;
11033
11036
  function createCommentDirectivesMap(sourceFile, commentDirectives) {
11034
11037
  var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([
11035
- "" + ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line,
11038
+ "".concat(ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line),
11036
11039
  commentDirective,
11037
11040
  ]); }));
11038
11041
  var usedLines = new ts.Map();
@@ -11049,10 +11052,10 @@ var ts;
11049
11052
  });
11050
11053
  }
11051
11054
  function markUsed(line) {
11052
- if (!directivesByLine.has("" + line)) {
11055
+ if (!directivesByLine.has("".concat(line))) {
11053
11056
  return false;
11054
11057
  }
11055
- usedLines.set("" + line, true);
11058
+ usedLines.set("".concat(line), true);
11056
11059
  return true;
11057
11060
  }
11058
11061
  }
@@ -11251,7 +11254,7 @@ var ts;
11251
11254
  }
11252
11255
  return node.text;
11253
11256
  }
11254
- return ts.Debug.fail("Literal kind '" + node.kind + "' not accounted for.");
11257
+ return ts.Debug.fail("Literal kind '".concat(node.kind, "' not accounted for."));
11255
11258
  }
11256
11259
  ts.getLiteralText = getLiteralText;
11257
11260
  function canUseOriginalText(node, flags) {
@@ -13615,11 +13618,11 @@ var ts;
13615
13618
  }
13616
13619
  ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;
13617
13620
  function getPropertyNameForUniqueESSymbol(symbol) {
13618
- return "__@" + ts.getSymbolId(symbol) + "@" + symbol.escapedName;
13621
+ return "__@".concat(ts.getSymbolId(symbol), "@").concat(symbol.escapedName);
13619
13622
  }
13620
13623
  ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;
13621
13624
  function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {
13622
- return "__#" + ts.getSymbolId(containingClassSymbol) + "@" + description;
13625
+ return "__#".concat(ts.getSymbolId(containingClassSymbol), "@").concat(description);
13623
13626
  }
13624
13627
  ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;
13625
13628
  function isKnownSymbol(symbol) {
@@ -14050,6 +14053,10 @@ var ts;
14050
14053
  return indentStrings[1].length;
14051
14054
  }
14052
14055
  ts.getIndentSize = getIndentSize;
14056
+ function isNightly() {
14057
+ return ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders");
14058
+ }
14059
+ ts.isNightly = isNightly;
14053
14060
  function createTextWriter(newLine) {
14054
14061
  var output;
14055
14062
  var indent;
@@ -14276,6 +14283,13 @@ var ts;
14276
14283
  ".d.ts";
14277
14284
  }
14278
14285
  ts.getDeclarationEmitExtensionForPath = getDeclarationEmitExtensionForPath;
14286
+ function getPossibleOriginalInputExtensionForExtension(path) {
14287
+ return ts.fileExtensionIsOneOf(path, [".d.mts", ".mjs", ".mts"]) ? [".mts", ".mjs"] :
14288
+ ts.fileExtensionIsOneOf(path, [".d.cts", ".cjs", ".cts"]) ? [".cts", ".cjs"] :
14289
+ ts.fileExtensionIsOneOf(path, [".json.d.ts"]) ? [".json"] :
14290
+ [".tsx", ".ts", ".jsx", ".js"];
14291
+ }
14292
+ ts.getPossibleOriginalInputExtensionForExtension = getPossibleOriginalInputExtensionForExtension;
14279
14293
  function outFile(options) {
14280
14294
  return options.outFile || options.out;
14281
14295
  }
@@ -15995,7 +16009,7 @@ var ts;
15995
16009
  }
15996
16010
  ts.getJSXImplicitImportBase = getJSXImplicitImportBase;
15997
16011
  function getJSXRuntimeImport(base, options) {
15998
- return base ? base + "/" + (options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
16012
+ return base ? "".concat(base, "/").concat(options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
15999
16013
  }
16000
16014
  ts.getJSXRuntimeImport = getJSXRuntimeImport;
16001
16015
  function hasZeroOrOneAsteriskCharacter(str) {
@@ -16093,15 +16107,15 @@ var ts;
16093
16107
  }
16094
16108
  var wildcardCharCodes = [42, 63];
16095
16109
  ts.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
16096
- var implicitExcludePathRegexPattern = "(?!(" + ts.commonPackageFolders.join("|") + ")(/|$))";
16110
+ var implicitExcludePathRegexPattern = "(?!(".concat(ts.commonPackageFolders.join("|"), ")(/|$))");
16097
16111
  var filesMatcher = {
16098
16112
  singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*",
16099
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
16113
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
16100
16114
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }
16101
16115
  };
16102
16116
  var directoriesMatcher = {
16103
16117
  singleAsteriskRegexFragment: "[^/]*",
16104
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
16118
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
16105
16119
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }
16106
16120
  };
16107
16121
  var excludeMatcher = {
@@ -16119,9 +16133,9 @@ var ts;
16119
16133
  if (!patterns || !patterns.length) {
16120
16134
  return undefined;
16121
16135
  }
16122
- var pattern = patterns.map(function (pattern) { return "(" + pattern + ")"; }).join("|");
16136
+ var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|");
16123
16137
  var terminator = usage === "exclude" ? "($|/)" : "$";
16124
- return "^(" + pattern + ")" + terminator;
16138
+ return "^(".concat(pattern, ")").concat(terminator);
16125
16139
  }
16126
16140
  ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
16127
16141
  function getRegularExpressionsForWildcards(specs, basePath, usage) {
@@ -16139,7 +16153,7 @@ var ts;
16139
16153
  ts.isImplicitGlob = isImplicitGlob;
16140
16154
  function getPatternFromSpec(spec, basePath, usage) {
16141
16155
  var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
16142
- return pattern && "^(" + pattern + ")" + (usage === "exclude" ? "($|/)" : "$");
16156
+ return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
16143
16157
  }
16144
16158
  ts.getPatternFromSpec = getPatternFromSpec;
16145
16159
  function getSubPatternFromSpec(spec, basePath, usage, _a) {
@@ -16205,7 +16219,7 @@ var ts;
16205
16219
  currentDirectory = ts.normalizePath(currentDirectory);
16206
16220
  var absolutePath = ts.combinePaths(currentDirectory, path);
16207
16221
  return {
16208
- includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^" + pattern + "$"; }),
16222
+ includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^".concat(pattern, "$"); }),
16209
16223
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
16210
16224
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
16211
16225
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
@@ -16451,7 +16465,7 @@ var ts;
16451
16465
  ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;
16452
16466
  function extensionFromPath(path) {
16453
16467
  var ext = tryGetExtensionFromPath(path);
16454
- return ext !== undefined ? ext : ts.Debug.fail("File " + path + " has unknown extension.");
16468
+ return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension."));
16455
16469
  }
16456
16470
  ts.extensionFromPath = extensionFromPath;
16457
16471
  function isAnySupportedFileExtension(path) {
@@ -21062,7 +21076,7 @@ var ts;
21062
21076
  return node;
21063
21077
  }
21064
21078
  function cloneSourceFileWithChanges(source, statements, isDeclarationFile, referencedFiles, typeReferences, hasNoDefaultLib, libReferences) {
21065
- var node = baseFactory.createBaseSourceFileNode(305);
21079
+ var node = (source.redirectInfo ? Object.create(source.redirectInfo.redirectTarget) : baseFactory.createBaseSourceFileNode(305));
21066
21080
  for (var p in source) {
21067
21081
  if (p === "emitNode" || ts.hasProperty(node, p) || !ts.hasProperty(source, p))
21068
21082
  continue;
@@ -21690,7 +21704,7 @@ var ts;
21690
21704
  case 328: return "augments";
21691
21705
  case 329: return "implements";
21692
21706
  default:
21693
- return ts.Debug.fail("Unsupported kind: " + ts.Debug.formatSyntaxKind(kind));
21707
+ return ts.Debug.fail("Unsupported kind: ".concat(ts.Debug.formatSyntaxKind(kind)));
21694
21708
  }
21695
21709
  }
21696
21710
  var rawTextScanner;
@@ -22017,7 +22031,7 @@ var ts;
22017
22031
  };
22018
22032
  var definedTextGetter_1 = function (path) {
22019
22033
  var result = textGetter_1(path);
22020
- return result !== undefined ? result : "/* Input file " + path + " was missing */\r\n";
22034
+ return result !== undefined ? result : "/* Input file ".concat(path, " was missing */\r\n");
22021
22035
  };
22022
22036
  var buildInfo_1;
22023
22037
  var getAndCacheBuildInfo_1 = function (getText) {
@@ -25174,7 +25188,7 @@ var ts;
25174
25188
  function parseIsolatedEntityName(content, languageVersion) {
25175
25189
  initializeState("", content, languageVersion, undefined, 1);
25176
25190
  nextToken();
25177
- var entityName = parseEntityName(true, false);
25191
+ var entityName = parseEntityName(true);
25178
25192
  var isInvalid = token() === 1 && !parseDiagnostics.length;
25179
25193
  clearState();
25180
25194
  return isInvalid ? entityName : undefined;
@@ -25746,7 +25760,7 @@ var ts;
25746
25760
  for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
25747
25761
  var keyword = viableKeywordSuggestions_1[_i];
25748
25762
  if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
25749
- return keyword + " " + expressionText.slice(keyword.length);
25763
+ return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
25750
25764
  }
25751
25765
  }
25752
25766
  return undefined;
@@ -26455,6 +26469,7 @@ var ts;
26455
26469
  var startPos = scanner.getStartPos();
26456
26470
  var result = parseListElement(kind, parseElement);
26457
26471
  if (!result) {
26472
+ parsingContext = saveParsingContext;
26458
26473
  return undefined;
26459
26474
  }
26460
26475
  list.push(result);
@@ -26504,7 +26519,7 @@ var ts;
26504
26519
  }
26505
26520
  return createMissingList();
26506
26521
  }
26507
- function parseEntityName(allowReservedWords, allowPrivateIdentifiers, diagnosticMessage) {
26522
+ function parseEntityName(allowReservedWords, diagnosticMessage) {
26508
26523
  var pos = getNodePos();
26509
26524
  var entity = allowReservedWords ? parseIdentifierName(diagnosticMessage) : parseIdentifier(diagnosticMessage);
26510
26525
  var dotPos = getNodePos();
@@ -26514,7 +26529,7 @@ var ts;
26514
26529
  break;
26515
26530
  }
26516
26531
  dotPos = getNodePos();
26517
- entity = finishNode(factory.createQualifiedName(entity, parseRightSideOfDot(allowReservedWords, allowPrivateIdentifiers)), pos);
26532
+ entity = finishNode(factory.createQualifiedName(entity, parseRightSideOfDot(allowReservedWords, false)), pos);
26518
26533
  }
26519
26534
  return entity;
26520
26535
  }
@@ -26617,7 +26632,7 @@ var ts;
26617
26632
  return finishNode(node, pos);
26618
26633
  }
26619
26634
  function parseEntityNameOfTypeReference() {
26620
- return parseEntityName(true, false, ts.Diagnostics.Type_expected);
26635
+ return parseEntityName(true, ts.Diagnostics.Type_expected);
26621
26636
  }
26622
26637
  function parseTypeArgumentsOfTypeReference() {
26623
26638
  if (!scanner.hasPrecedingLineBreak() && reScanLessThanToken() === 29) {
@@ -26731,7 +26746,7 @@ var ts;
26731
26746
  function parseTypeQuery() {
26732
26747
  var pos = getNodePos();
26733
26748
  parseExpected(112);
26734
- var entityName = parseEntityName(true, true);
26749
+ var entityName = parseEntityName(true);
26735
26750
  var typeArguments = !scanner.hasPrecedingLineBreak() ? tryParseTypeArguments() : undefined;
26736
26751
  return finishNode(factory.createTypeQueryNode(entityName, typeArguments), pos);
26737
26752
  }
@@ -27566,10 +27581,10 @@ var ts;
27566
27581
  setDecoratorContext(false);
27567
27582
  }
27568
27583
  var pos = getNodePos();
27569
- var expr = parseAssignmentExpressionOrHigher(false);
27584
+ var expr = parseAssignmentExpressionOrHigher();
27570
27585
  var operatorToken;
27571
27586
  while ((operatorToken = parseOptionalToken(27))) {
27572
- expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher(false), pos);
27587
+ expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher(), pos);
27573
27588
  }
27574
27589
  if (saveDecoratorContext) {
27575
27590
  setDecoratorContext(true);
@@ -27577,23 +27592,23 @@ var ts;
27577
27592
  return expr;
27578
27593
  }
27579
27594
  function parseInitializer() {
27580
- return parseOptional(63) ? parseAssignmentExpressionOrHigher(false) : undefined;
27595
+ return parseOptional(63) ? parseAssignmentExpressionOrHigher() : undefined;
27581
27596
  }
27582
- function parseAssignmentExpressionOrHigher(disallowReturnTypeInArrowFunction) {
27597
+ function parseAssignmentExpressionOrHigher() {
27583
27598
  if (isYieldExpression()) {
27584
27599
  return parseYieldExpression();
27585
27600
  }
27586
- var arrowExpression = tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) || tryParseAsyncSimpleArrowFunctionExpression(disallowReturnTypeInArrowFunction);
27601
+ var arrowExpression = tryParseParenthesizedArrowFunctionExpression() || tryParseAsyncSimpleArrowFunctionExpression();
27587
27602
  if (arrowExpression) {
27588
27603
  return arrowExpression;
27589
27604
  }
27590
27605
  var pos = getNodePos();
27591
27606
  var expr = parseBinaryExpressionOrHigher(0);
27592
27607
  if (expr.kind === 79 && token() === 38) {
27593
- return parseSimpleArrowFunctionExpression(pos, expr, disallowReturnTypeInArrowFunction, undefined);
27608
+ return parseSimpleArrowFunctionExpression(pos, expr, undefined);
27594
27609
  }
27595
27610
  if (ts.isLeftHandSideExpression(expr) && ts.isAssignmentOperator(reScanGreaterToken())) {
27596
- return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher(disallowReturnTypeInArrowFunction), pos);
27611
+ return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher(), pos);
27597
27612
  }
27598
27613
  return parseConditionalExpressionRest(expr, pos);
27599
27614
  }
@@ -27615,30 +27630,30 @@ var ts;
27615
27630
  nextToken();
27616
27631
  if (!scanner.hasPrecedingLineBreak() &&
27617
27632
  (token() === 41 || isStartOfExpression())) {
27618
- return finishNode(factory.createYieldExpression(parseOptionalToken(41), parseAssignmentExpressionOrHigher(false)), pos);
27633
+ return finishNode(factory.createYieldExpression(parseOptionalToken(41), parseAssignmentExpressionOrHigher()), pos);
27619
27634
  }
27620
27635
  else {
27621
27636
  return finishNode(factory.createYieldExpression(undefined, undefined), pos);
27622
27637
  }
27623
27638
  }
27624
- function parseSimpleArrowFunctionExpression(pos, identifier, disallowReturnTypeInArrowFunction, asyncModifier) {
27639
+ function parseSimpleArrowFunctionExpression(pos, identifier, asyncModifier) {
27625
27640
  ts.Debug.assert(token() === 38, "parseSimpleArrowFunctionExpression should only have been called if we had a =>");
27626
27641
  var parameter = factory.createParameterDeclaration(undefined, undefined, undefined, identifier, undefined, undefined, undefined);
27627
27642
  finishNode(parameter, identifier.pos);
27628
27643
  var parameters = createNodeArray([parameter], parameter.pos, parameter.end);
27629
27644
  var equalsGreaterThanToken = parseExpectedToken(38);
27630
- var body = parseArrowFunctionExpressionBody(!!asyncModifier, disallowReturnTypeInArrowFunction);
27645
+ var body = parseArrowFunctionExpressionBody(!!asyncModifier);
27631
27646
  var node = factory.createArrowFunction(asyncModifier, undefined, parameters, undefined, equalsGreaterThanToken, body);
27632
27647
  return addJSDocComment(finishNode(node, pos));
27633
27648
  }
27634
- function tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
27649
+ function tryParseParenthesizedArrowFunctionExpression() {
27635
27650
  var triState = isParenthesizedArrowFunctionExpression();
27636
27651
  if (triState === 0) {
27637
27652
  return undefined;
27638
27653
  }
27639
27654
  return triState === 1 ?
27640
- parseParenthesizedArrowFunctionExpression(true, false) :
27641
- tryParse(function () { return parsePossibleParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction); });
27655
+ parseParenthesizedArrowFunctionExpression(true) :
27656
+ tryParse(parsePossibleParenthesizedArrowFunctionExpression);
27642
27657
  }
27643
27658
  function isParenthesizedArrowFunctionExpression() {
27644
27659
  if (token() === 20 || token() === 29 || token() === 131) {
@@ -27680,6 +27695,9 @@ var ts;
27680
27695
  return 1;
27681
27696
  }
27682
27697
  if (ts.isModifierKind(second) && second !== 131 && lookAhead(nextTokenIsIdentifier)) {
27698
+ if (lookAhead(function () { return nextToken() === 127; })) {
27699
+ return 0;
27700
+ }
27683
27701
  return 1;
27684
27702
  }
27685
27703
  if (!isIdentifier() && second !== 108) {
@@ -27732,24 +27750,24 @@ var ts;
27732
27750
  return 2;
27733
27751
  }
27734
27752
  }
27735
- function parsePossibleParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
27753
+ function parsePossibleParenthesizedArrowFunctionExpression() {
27736
27754
  var tokenPos = scanner.getTokenPos();
27737
27755
  if (notParenthesizedArrow === null || notParenthesizedArrow === void 0 ? void 0 : notParenthesizedArrow.has(tokenPos)) {
27738
27756
  return undefined;
27739
27757
  }
27740
- var result = parseParenthesizedArrowFunctionExpression(false, disallowReturnTypeInArrowFunction);
27758
+ var result = parseParenthesizedArrowFunctionExpression(false);
27741
27759
  if (!result) {
27742
27760
  (notParenthesizedArrow || (notParenthesizedArrow = new ts.Set())).add(tokenPos);
27743
27761
  }
27744
27762
  return result;
27745
27763
  }
27746
- function tryParseAsyncSimpleArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
27764
+ function tryParseAsyncSimpleArrowFunctionExpression() {
27747
27765
  if (token() === 131) {
27748
27766
  if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1) {
27749
27767
  var pos = getNodePos();
27750
27768
  var asyncModifier = parseModifiersForArrowFunction();
27751
27769
  var expr = parseBinaryExpressionOrHigher(0);
27752
- return parseSimpleArrowFunctionExpression(pos, expr, disallowReturnTypeInArrowFunction, asyncModifier);
27770
+ return parseSimpleArrowFunctionExpression(pos, expr, asyncModifier);
27753
27771
  }
27754
27772
  }
27755
27773
  return undefined;
@@ -27767,7 +27785,7 @@ var ts;
27767
27785
  }
27768
27786
  return 0;
27769
27787
  }
27770
- function parseParenthesizedArrowFunctionExpression(allowAmbiguity, disallowReturnTypeInArrowFunction) {
27788
+ function parseParenthesizedArrowFunctionExpression(allowAmbiguity) {
27771
27789
  var pos = getNodePos();
27772
27790
  var hasJSDoc = hasPrecedingJSDocComment();
27773
27791
  var modifiers = parseModifiersForArrowFunction();
@@ -27795,9 +27813,6 @@ var ts;
27795
27813
  return undefined;
27796
27814
  }
27797
27815
  }
27798
- if (disallowReturnTypeInArrowFunction && token() === 58) {
27799
- return undefined;
27800
- }
27801
27816
  var type = parseReturnType(58, false);
27802
27817
  if (type && !allowAmbiguity && typeHasArrowFunctionBlockingParseError(type)) {
27803
27818
  return undefined;
@@ -27813,12 +27828,12 @@ var ts;
27813
27828
  var lastToken = token();
27814
27829
  var equalsGreaterThanToken = parseExpectedToken(38);
27815
27830
  var body = (lastToken === 38 || lastToken === 18)
27816
- ? parseArrowFunctionExpressionBody(ts.some(modifiers, ts.isAsyncModifier), disallowReturnTypeInArrowFunction)
27831
+ ? parseArrowFunctionExpressionBody(ts.some(modifiers, ts.isAsyncModifier))
27817
27832
  : parseIdentifier();
27818
27833
  var node = factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body);
27819
27834
  return withJSDoc(finishNode(node, pos), hasJSDoc);
27820
27835
  }
27821
- function parseArrowFunctionExpressionBody(isAsync, disallowReturnTypeInArrowFunction) {
27836
+ function parseArrowFunctionExpressionBody(isAsync) {
27822
27837
  if (token() === 18) {
27823
27838
  return parseFunctionBlock(isAsync ? 2 : 0);
27824
27839
  }
@@ -27832,8 +27847,8 @@ var ts;
27832
27847
  var savedTopLevel = topLevel;
27833
27848
  topLevel = false;
27834
27849
  var node = isAsync
27835
- ? doInAwaitContext(function () { return parseAssignmentExpressionOrHigher(disallowReturnTypeInArrowFunction); })
27836
- : doOutsideOfAwaitContext(function () { return parseAssignmentExpressionOrHigher(disallowReturnTypeInArrowFunction); });
27850
+ ? doInAwaitContext(parseAssignmentExpressionOrHigher)
27851
+ : doOutsideOfAwaitContext(parseAssignmentExpressionOrHigher);
27837
27852
  topLevel = savedTopLevel;
27838
27853
  return node;
27839
27854
  }
@@ -27843,8 +27858,8 @@ var ts;
27843
27858
  return leftOperand;
27844
27859
  }
27845
27860
  var colonToken;
27846
- return finishNode(factory.createConditionalExpression(leftOperand, questionToken, doOutsideOfContext(disallowInAndDecoratorContext, function () { return parseAssignmentExpressionOrHigher(true); }), colonToken = parseExpectedToken(58), ts.nodeIsPresent(colonToken)
27847
- ? parseAssignmentExpressionOrHigher(true)
27861
+ return finishNode(factory.createConditionalExpression(leftOperand, questionToken, doOutsideOfContext(disallowInAndDecoratorContext, parseAssignmentExpressionOrHigher), colonToken = parseExpectedToken(58), ts.nodeIsPresent(colonToken)
27862
+ ? parseAssignmentExpressionOrHigher()
27848
27863
  : createMissingNode(79, false, ts.Diagnostics._0_expected, ts.tokenToString(58))), pos);
27849
27864
  }
27850
27865
  function parseBinaryExpressionOrHigher(precedence) {
@@ -28495,13 +28510,13 @@ var ts;
28495
28510
  function parseSpreadElement() {
28496
28511
  var pos = getNodePos();
28497
28512
  parseExpected(25);
28498
- var expression = parseAssignmentExpressionOrHigher(false);
28513
+ var expression = parseAssignmentExpressionOrHigher();
28499
28514
  return finishNode(factory.createSpreadElement(expression), pos);
28500
28515
  }
28501
28516
  function parseArgumentOrArrayLiteralElement() {
28502
28517
  return token() === 25 ? parseSpreadElement() :
28503
28518
  token() === 27 ? finishNode(factory.createOmittedExpression(), getNodePos()) :
28504
- parseAssignmentExpressionOrHigher(false);
28519
+ parseAssignmentExpressionOrHigher();
28505
28520
  }
28506
28521
  function parseArgumentExpression() {
28507
28522
  return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement);
@@ -28519,7 +28534,7 @@ var ts;
28519
28534
  var pos = getNodePos();
28520
28535
  var hasJSDoc = hasPrecedingJSDocComment();
28521
28536
  if (parseOptionalToken(25)) {
28522
- var expression = parseAssignmentExpressionOrHigher(false);
28537
+ var expression = parseAssignmentExpressionOrHigher();
28523
28538
  return withJSDoc(finishNode(factory.createSpreadAssignment(expression), pos), hasJSDoc);
28524
28539
  }
28525
28540
  var decorators = parseDecorators();
@@ -28542,13 +28557,13 @@ var ts;
28542
28557
  var isShorthandPropertyAssignment = tokenIsIdentifier && (token() !== 58);
28543
28558
  if (isShorthandPropertyAssignment) {
28544
28559
  var equalsToken = parseOptionalToken(63);
28545
- var objectAssignmentInitializer = equalsToken ? allowInAnd(function () { return parseAssignmentExpressionOrHigher(false); }) : undefined;
28560
+ var objectAssignmentInitializer = equalsToken ? allowInAnd(parseAssignmentExpressionOrHigher) : undefined;
28546
28561
  node = factory.createShorthandPropertyAssignment(name, objectAssignmentInitializer);
28547
28562
  node.equalsToken = equalsToken;
28548
28563
  }
28549
28564
  else {
28550
28565
  parseExpected(58);
28551
- var initializer = allowInAnd(function () { return parseAssignmentExpressionOrHigher(false); });
28566
+ var initializer = allowInAnd(parseAssignmentExpressionOrHigher);
28552
28567
  node = factory.createPropertyAssignment(name, initializer);
28553
28568
  }
28554
28569
  node.decorators = decorators;
@@ -28708,7 +28723,7 @@ var ts;
28708
28723
  }
28709
28724
  var node;
28710
28725
  if (awaitToken ? parseExpected(160) : parseOptional(160)) {
28711
- var expression = allowInAnd(function () { return parseAssignmentExpressionOrHigher(false); });
28726
+ var expression = allowInAnd(parseAssignmentExpressionOrHigher);
28712
28727
  parseExpected(21);
28713
28728
  node = factory.createForOfStatement(awaitToken, initializer, expression, parseStatement());
28714
28729
  }
@@ -29746,7 +29761,7 @@ var ts;
29746
29761
  var pos = getNodePos();
29747
29762
  var name = ts.tokenIsIdentifierOrKeyword(token()) ? parseIdentifierName() : parseLiteralLikeNode(10);
29748
29763
  parseExpected(58);
29749
- var value = parseAssignmentExpressionOrHigher(false);
29764
+ var value = parseAssignmentExpressionOrHigher();
29750
29765
  return finishNode(factory.createAssertEntry(name, value), pos);
29751
29766
  }
29752
29767
  function parseAssertClause(skipAssertKeyword) {
@@ -29796,7 +29811,7 @@ var ts;
29796
29811
  function parseModuleReference() {
29797
29812
  return isExternalModuleReference()
29798
29813
  ? parseExternalModuleReference()
29799
- : parseEntityName(false, false);
29814
+ : parseEntityName(false);
29800
29815
  }
29801
29816
  function parseExternalModuleReference() {
29802
29817
  var pos = getNodePos();
@@ -29940,7 +29955,7 @@ var ts;
29940
29955
  else {
29941
29956
  parseExpected(88);
29942
29957
  }
29943
- var expression = parseAssignmentExpressionOrHigher(false);
29958
+ var expression = parseAssignmentExpressionOrHigher();
29944
29959
  parseSemicolon();
29945
29960
  setAwaitContext(savedAwaitContext);
29946
29961
  var node = factory.createExportAssignment(decorators, modifiers, isExportEquals, expression);
@@ -29978,7 +29993,7 @@ var ts;
29978
29993
  var pos = getNodePos();
29979
29994
  var hasBrace = parseOptional(18);
29980
29995
  var p2 = getNodePos();
29981
- var entityName = parseEntityName(false, false);
29996
+ var entityName = parseEntityName(false);
29982
29997
  while (token() === 80) {
29983
29998
  reScanHashToken();
29984
29999
  nextTokenJSDoc();
@@ -30380,7 +30395,7 @@ var ts;
30380
30395
  skipWhitespace();
30381
30396
  var p2 = getNodePos();
30382
30397
  var name = ts.tokenIsIdentifierOrKeyword(token())
30383
- ? parseEntityName(true, false)
30398
+ ? parseEntityName(true)
30384
30399
  : undefined;
30385
30400
  if (name) {
30386
30401
  while (token() === 80) {
@@ -31287,7 +31302,7 @@ var ts;
31287
31302
  if (namedArgRegExCache.has(name)) {
31288
31303
  return namedArgRegExCache.get(name);
31289
31304
  }
31290
- var result = new RegExp("(\\s" + name + "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))", "im");
31305
+ var result = new RegExp("(\\s".concat(name, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im");
31291
31306
  namedArgRegExCache.set(name, result);
31292
31307
  return result;
31293
31308
  }
@@ -31468,6 +31483,7 @@ var ts;
31468
31483
  ["es2021.intl", "lib.es2021.intl.d.ts"],
31469
31484
  ["es2022.array", "lib.es2022.array.d.ts"],
31470
31485
  ["es2022.error", "lib.es2022.error.d.ts"],
31486
+ ["es2022.intl", "lib.es2022.intl.d.ts"],
31471
31487
  ["es2022.object", "lib.es2022.object.d.ts"],
31472
31488
  ["es2022.string", "lib.es2022.string.d.ts"],
31473
31489
  ["esnext.array", "lib.es2022.array.d.ts"],
@@ -32724,8 +32740,8 @@ var ts;
32724
32740
  }
32725
32741
  ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;
32726
32742
  function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
32727
- var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'" + key + "'"; }).join(", ");
32728
- return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--" + opt.name, namesOfType);
32743
+ var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", ");
32744
+ return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType);
32729
32745
  }
32730
32746
  function parseCustomTypeOption(opt, value, errors) {
32731
32747
  return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors);
@@ -33442,10 +33458,10 @@ var ts;
33442
33458
  var newValue = compilerOptionsMap.get(cmd.name);
33443
33459
  var defaultValue = getDefaultValueForOption(cmd);
33444
33460
  if (newValue !== defaultValue) {
33445
- result.push("" + tab + cmd.name + ": " + newValue);
33461
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
33446
33462
  }
33447
33463
  else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
33448
- result.push("" + tab + cmd.name + ": " + defaultValue);
33464
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
33449
33465
  }
33450
33466
  });
33451
33467
  return result.join(newLine) + newLine;
@@ -33483,19 +33499,19 @@ var ts;
33483
33499
  if (entries.length !== 0) {
33484
33500
  entries.push({ value: "" });
33485
33501
  }
33486
- entries.push({ value: "/* " + category + " */" });
33502
+ entries.push({ value: "/* ".concat(category, " */") });
33487
33503
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
33488
33504
  var option = options_1[_i];
33489
33505
  var optionName = void 0;
33490
33506
  if (compilerOptionsMap.has(option.name)) {
33491
- optionName = "\"" + option.name + "\": " + JSON.stringify(compilerOptionsMap.get(option.name)) + ((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
33507
+ optionName = "\"".concat(option.name, "\": ").concat(JSON.stringify(compilerOptionsMap.get(option.name))).concat((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
33492
33508
  }
33493
33509
  else {
33494
- optionName = "// \"" + option.name + "\": " + JSON.stringify(getDefaultValueForOption(option)) + ",";
33510
+ optionName = "// \"".concat(option.name, "\": ").concat(JSON.stringify(getDefaultValueForOption(option)), ",");
33495
33511
  }
33496
33512
  entries.push({
33497
33513
  value: optionName,
33498
- description: "/* " + (option.description && ts.getLocaleSpecificMessage(option.description) || option.name) + " */"
33514
+ description: "/* ".concat(option.description && ts.getLocaleSpecificMessage(option.description) || option.name, " */")
33499
33515
  });
33500
33516
  marginLength = Math.max(optionName.length, marginLength);
33501
33517
  }
@@ -33503,24 +33519,24 @@ var ts;
33503
33519
  var tab = makePadding(2);
33504
33520
  var result = [];
33505
33521
  result.push("{");
33506
- result.push(tab + "\"compilerOptions\": {");
33507
- result.push("" + tab + tab + "/* " + ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file) + " */");
33522
+ result.push("".concat(tab, "\"compilerOptions\": {"));
33523
+ result.push("".concat(tab).concat(tab, "/* ").concat(ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file), " */"));
33508
33524
  result.push("");
33509
33525
  for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {
33510
33526
  var entry = entries_2[_a];
33511
33527
  var value = entry.value, _b = entry.description, description = _b === void 0 ? "" : _b;
33512
- result.push(value && "" + tab + tab + value + (description && (makePadding(marginLength - value.length + 2) + description)));
33528
+ result.push(value && "".concat(tab).concat(tab).concat(value).concat(description && (makePadding(marginLength - value.length + 2) + description)));
33513
33529
  }
33514
33530
  if (fileNames.length) {
33515
- result.push(tab + "},");
33516
- result.push(tab + "\"files\": [");
33531
+ result.push("".concat(tab, "},"));
33532
+ result.push("".concat(tab, "\"files\": ["));
33517
33533
  for (var i = 0; i < fileNames.length; i++) {
33518
- result.push("" + tab + tab + JSON.stringify(fileNames[i]) + (i === fileNames.length - 1 ? "" : ","));
33534
+ result.push("".concat(tab).concat(tab).concat(JSON.stringify(fileNames[i])).concat(i === fileNames.length - 1 ? "" : ","));
33519
33535
  }
33520
- result.push(tab + "]");
33536
+ result.push("".concat(tab, "]"));
33521
33537
  }
33522
33538
  else {
33523
- result.push(tab + "}");
33539
+ result.push("".concat(tab, "}"));
33524
33540
  }
33525
33541
  result.push("}");
33526
33542
  return result.join(newLine) + newLine;
@@ -33873,7 +33889,7 @@ var ts;
33873
33889
  if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, "./") || ts.startsWith(extendedConfig, "../")) {
33874
33890
  var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);
33875
33891
  if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json")) {
33876
- extendedConfigPath = extendedConfigPath + ".json";
33892
+ extendedConfigPath = "".concat(extendedConfigPath, ".json");
33877
33893
  if (!host.fileExists(extendedConfigPath)) {
33878
33894
  errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
33879
33895
  return undefined;
@@ -34069,7 +34085,7 @@ var ts;
34069
34085
  if (ts.fileExtensionIs(file, ".json")) {
34070
34086
  if (!jsonOnlyIncludeRegexes) {
34071
34087
  var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, ".json"); });
34072
- var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^" + pattern + "$"; });
34088
+ var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^".concat(pattern, "$"); });
34073
34089
  jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;
34074
34090
  }
34075
34091
  var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });
@@ -34297,7 +34313,7 @@ var ts;
34297
34313
  return true;
34298
34314
  case "string":
34299
34315
  var defaultValue = option.defaultValueDescription;
34300
- return option.isFilePath ? "./" + (defaultValue && typeof defaultValue === "string" ? defaultValue : "") : "";
34316
+ return option.isFilePath ? "./".concat(defaultValue && typeof defaultValue === "string" ? defaultValue : "") : "";
34301
34317
  case "list":
34302
34318
  return [];
34303
34319
  case "object":
@@ -34359,7 +34375,7 @@ var ts;
34359
34375
  ts.Debug.assert(ts.extensionIsTS(resolved.extension));
34360
34376
  return { fileName: resolved.path, packageId: resolved.packageId };
34361
34377
  }
34362
- function createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, resultFromCache) {
34378
+ function createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, diagnostics, resultFromCache) {
34363
34379
  var _a;
34364
34380
  if (resultFromCache) {
34365
34381
  (_a = resultFromCache.failedLookupLocations).push.apply(_a, failedLookupLocations);
@@ -34367,7 +34383,8 @@ var ts;
34367
34383
  }
34368
34384
  return {
34369
34385
  resolvedModule: resolved && { resolvedFileName: resolved.path, originalPath: resolved.originalPath === true ? undefined : resolved.originalPath, extension: resolved.extension, isExternalLibraryImport: isExternalLibraryImport, packageId: resolved.packageId },
34370
- failedLookupLocations: failedLookupLocations
34386
+ failedLookupLocations: failedLookupLocations,
34387
+ resolutionDiagnostics: diagnostics
34371
34388
  };
34372
34389
  }
34373
34390
  function readPackageJsonField(jsonContent, fieldName, typeOfTag, state) {
@@ -34443,7 +34460,7 @@ var ts;
34443
34460
  var bestVersionKey = result.version, bestVersionPaths = result.paths;
34444
34461
  if (typeof bestVersionPaths !== "object") {
34445
34462
  if (state.traceEnabled) {
34446
- trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['" + bestVersionKey + "']", "object", typeof bestVersionPaths);
34463
+ trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(bestVersionKey, "']"), "object", typeof bestVersionPaths);
34447
34464
  }
34448
34465
  return;
34449
34466
  }
@@ -34548,7 +34565,18 @@ var ts;
34548
34565
  features |= NodeResolutionFeatures.EsmMode;
34549
34566
  }
34550
34567
  var conditions = features & NodeResolutionFeatures.Exports ? features & NodeResolutionFeatures.EsmMode ? ["node", "import", "types"] : ["node", "require", "types"] : [];
34551
- var moduleResolutionState = { compilerOptions: options, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache, features: features, conditions: conditions };
34568
+ var diagnostics = [];
34569
+ var moduleResolutionState = {
34570
+ compilerOptions: options,
34571
+ host: host,
34572
+ traceEnabled: traceEnabled,
34573
+ failedLookupLocations: failedLookupLocations,
34574
+ packageJsonInfoCache: cache,
34575
+ features: features,
34576
+ conditions: conditions,
34577
+ requestContainingDirectory: containingDirectory,
34578
+ reportDiagnostic: function (diag) { return void diagnostics.push(diag); },
34579
+ };
34552
34580
  var resolved = primaryLookup();
34553
34581
  var primary = true;
34554
34582
  if (!resolved) {
@@ -34567,7 +34595,7 @@ var ts;
34567
34595
  isExternalLibraryImport: pathContainsNodeModules(fileName),
34568
34596
  };
34569
34597
  }
34570
- result = { resolvedTypeReferenceDirective: resolvedTypeReferenceDirective, failedLookupLocations: failedLookupLocations };
34598
+ result = { resolvedTypeReferenceDirective: resolvedTypeReferenceDirective, failedLookupLocations: failedLookupLocations, resolutionDiagnostics: diagnostics };
34571
34599
  perFolderCache === null || perFolderCache === void 0 ? void 0 : perFolderCache.set(typeReferenceDirectiveName, resolutionMode, result);
34572
34600
  if (traceEnabled)
34573
34601
  traceResult(result);
@@ -34644,6 +34672,8 @@ var ts;
34644
34672
  packageJsonInfoCache: cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(),
34645
34673
  conditions: ts.emptyArray,
34646
34674
  features: NodeResolutionFeatures.None,
34675
+ requestContainingDirectory: containingDirectory,
34676
+ reportDiagnostic: ts.noop
34647
34677
  };
34648
34678
  return ts.forEachAncestorDirectory(containingDirectory, function (ancestorDirectory) {
34649
34679
  if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
@@ -34817,7 +34847,7 @@ var ts;
34817
34847
  };
34818
34848
  return cache;
34819
34849
  function getUnderlyingCacheKey(specifier, mode) {
34820
- var result = mode === undefined ? specifier : mode + "|" + specifier;
34850
+ var result = mode === undefined ? specifier : "".concat(mode, "|").concat(specifier);
34821
34851
  memoizedReverseKeys.set(result, [specifier, mode]);
34822
34852
  return result;
34823
34853
  }
@@ -34850,7 +34880,7 @@ var ts;
34850
34880
  }
34851
34881
  function getOrCreateCacheForModuleName(nonRelativeModuleName, mode, redirectedReference) {
34852
34882
  ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));
34853
- return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : mode + "|" + nonRelativeModuleName, createPerModuleNameCache);
34883
+ return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : "".concat(mode, "|").concat(nonRelativeModuleName), createPerModuleNameCache);
34854
34884
  }
34855
34885
  function createPerModuleNameCache() {
34856
34886
  var directoryPathMap = new ts.Map();
@@ -34978,10 +35008,10 @@ var ts;
34978
35008
  result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
34979
35009
  break;
34980
35010
  default:
34981
- return ts.Debug.fail("Unexpected moduleResolution: " + moduleResolution);
35011
+ return ts.Debug.fail("Unexpected moduleResolution: ".concat(moduleResolution));
34982
35012
  }
34983
35013
  if (result && result.resolvedModule)
34984
- ts.perfLogger.logInfoEvent("Module \"" + moduleName + "\" resolved to \"" + result.resolvedModule.resolvedFileName + "\"");
35014
+ ts.perfLogger.logInfoEvent("Module \"".concat(moduleName, "\" resolved to \"").concat(result.resolvedModule.resolvedFileName, "\""));
34985
35015
  ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null");
34986
35016
  if (perFolderCache) {
34987
35017
  perFolderCache.set(moduleName, resolutionMode, result);
@@ -35111,7 +35141,7 @@ var ts;
35111
35141
  function resolveJSModule(moduleName, initialDir, host) {
35112
35142
  var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;
35113
35143
  if (!resolvedModule) {
35114
- throw new Error("Could not resolve JS module '" + moduleName + "' starting at '" + initialDir + "'. Looked in: " + failedLookupLocations.join(", "));
35144
+ throw new Error("Could not resolve JS module '".concat(moduleName, "' starting at '").concat(initialDir, "'. Looked in: ").concat(failedLookupLocations.join(", ")));
35115
35145
  }
35116
35146
  return resolvedModule.resolvedFileName;
35117
35147
  }
@@ -35172,6 +35202,7 @@ var ts;
35172
35202
  if (compilerOptions.noDtsResolution) {
35173
35203
  conditions.pop();
35174
35204
  }
35205
+ var diagnostics = [];
35175
35206
  var state = {
35176
35207
  compilerOptions: compilerOptions,
35177
35208
  host: host,
@@ -35180,9 +35211,11 @@ var ts;
35180
35211
  packageJsonInfoCache: cache,
35181
35212
  features: features,
35182
35213
  conditions: conditions,
35214
+ requestContainingDirectory: containingDirectory,
35215
+ reportDiagnostic: function (diag) { return void diagnostics.push(diag); },
35183
35216
  };
35184
35217
  var result = ts.forEach(extensions, function (ext) { return tryResolve(ext); });
35185
- return createResolvedModuleWithFailedLookupLocations((_a = result === null || result === void 0 ? void 0 : result.value) === null || _a === void 0 ? void 0 : _a.resolved, (_b = result === null || result === void 0 ? void 0 : result.value) === null || _b === void 0 ? void 0 : _b.isExternalLibraryImport, failedLookupLocations, state.resultFromCache);
35218
+ return createResolvedModuleWithFailedLookupLocations((_a = result === null || result === void 0 ? void 0 : result.value) === null || _a === void 0 ? void 0 : _a.resolved, (_b = result === null || result === void 0 ? void 0 : result.value) === null || _b === void 0 ? void 0 : _b.isExternalLibraryImport, failedLookupLocations, diagnostics, state.resultFromCache);
35186
35219
  function tryResolve(extensions) {
35187
35220
  var loader = function (extensions, candidate, onlyRecordFailures, state) { return nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, true); };
35188
35221
  var resolved = tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loader, state);
@@ -35235,7 +35268,7 @@ var ts;
35235
35268
  if (traceEnabled) {
35236
35269
  trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);
35237
35270
  }
35238
- ts.Debug.assert(host.fileExists(real), path + " linked to nonexistent file " + real);
35271
+ ts.Debug.assert(host.fileExists(real), "".concat(path, " linked to nonexistent file ").concat(real));
35239
35272
  return real;
35240
35273
  }
35241
35274
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -35324,9 +35357,9 @@ var ts;
35324
35357
  }
35325
35358
  }
35326
35359
  function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
35327
- if ((extensions === Extensions.TypeScript || extensions === Extensions.DtsOnly) && ts.isDeclarationFileName(candidate)) {
35360
+ if ((extensions === Extensions.TypeScript || extensions === Extensions.DtsOnly) && ts.fileExtensionIsOneOf(candidate, ts.supportedTSExtensionsFlat)) {
35328
35361
  var result = tryFile(candidate, onlyRecordFailures, state);
35329
- return result !== undefined ? { path: candidate, ext: ts.forEach(ts.supportedDeclarationExtensions, function (e) { return ts.fileExtensionIs(candidate, e) ? e : undefined; }) } : undefined;
35362
+ return result !== undefined ? { path: candidate, ext: ts.tryExtractTSExtension(candidate) } : undefined;
35330
35363
  }
35331
35364
  return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
35332
35365
  }
@@ -35443,6 +35476,8 @@ var ts;
35443
35476
  packageJsonInfoCache: cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(),
35444
35477
  conditions: ["node", "require", "types"],
35445
35478
  features: features,
35479
+ requestContainingDirectory: packageJsonInfo.packageDirectory,
35480
+ reportDiagnostic: ts.noop
35446
35481
  };
35447
35482
  var requireResolution = loadNodeModuleFromDirectoryWorker(extensions, packageJsonInfo.packageDirectory, false, requireState, packageJsonInfo.packageJsonContent, packageJsonInfo.versionPaths);
35448
35483
  entrypoints = ts.append(entrypoints, requireResolution === null || requireResolution === void 0 ? void 0 : requireResolution.path);
@@ -35522,6 +35557,8 @@ var ts;
35522
35557
  packageJsonInfoCache: packageJsonInfoCache,
35523
35558
  features: 0,
35524
35559
  conditions: [],
35560
+ requestContainingDirectory: undefined,
35561
+ reportDiagnostic: ts.noop
35525
35562
  };
35526
35563
  var parts = ts.getPathComponents(fileName);
35527
35564
  parts.pop();
@@ -35690,7 +35727,7 @@ var ts;
35690
35727
  return undefined;
35691
35728
  }
35692
35729
  var trailingParts = parts.slice(nameParts.length);
35693
- return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : "." + ts.directorySeparator + trailingParts.join(ts.directorySeparator), state, cache, redirectedReference);
35730
+ return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : ".".concat(ts.directorySeparator).concat(trailingParts.join(ts.directorySeparator)), state, cache, redirectedReference);
35694
35731
  }
35695
35732
  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
35696
35733
  if (!scope.packageJsonContent.exports) {
@@ -35796,7 +35833,6 @@ var ts;
35796
35833
  function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) {
35797
35834
  return loadModuleFromTargetImportOrExport;
35798
35835
  function loadModuleFromTargetImportOrExport(target, subpath, pattern) {
35799
- var _a, _b;
35800
35836
  if (typeof target === "string") {
35801
35837
  if (!pattern && subpath.length > 0 && !ts.endsWith(target, "/")) {
35802
35838
  if (state.traceEnabled) {
@@ -35831,13 +35867,16 @@ var ts;
35831
35867
  }
35832
35868
  return toSearchResult(undefined);
35833
35869
  }
35834
- var finalPath = ts.getNormalizedAbsolutePath(pattern ? resolvedTarget.replace(/\*/g, subpath) : resolvedTarget + subpath, (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a));
35870
+ var finalPath = toAbsolutePath(pattern ? resolvedTarget.replace(/\*/g, subpath) : resolvedTarget + subpath);
35871
+ var inputLink = tryLoadInputFileForPath(finalPath, subpath, ts.combinePaths(scope.packageDirectory, "package.json"), isImports);
35872
+ if (inputLink)
35873
+ return inputLink;
35835
35874
  return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, finalPath, false, state)));
35836
35875
  }
35837
35876
  else if (typeof target === "object" && target !== null) {
35838
35877
  if (!Array.isArray(target)) {
35839
- for (var _i = 0, _c = ts.getOwnKeys(target); _i < _c.length; _i++) {
35840
- var key = _c[_i];
35878
+ for (var _i = 0, _a = ts.getOwnKeys(target); _i < _a.length; _i++) {
35879
+ var key = _a[_i];
35841
35880
  if (key === "default" || state.conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(state.conditions, key)) {
35842
35881
  var subTarget = target[key];
35843
35882
  var result = loadModuleFromTargetImportOrExport(subTarget, subpath, pattern);
@@ -35855,8 +35894,8 @@ var ts;
35855
35894
  }
35856
35895
  return toSearchResult(undefined);
35857
35896
  }
35858
- for (var _d = 0, target_2 = target; _d < target_2.length; _d++) {
35859
- var elem = target_2[_d];
35897
+ for (var _b = 0, target_2 = target; _b < target_2.length; _b++) {
35898
+ var elem = target_2[_b];
35860
35899
  var result = loadModuleFromTargetImportOrExport(elem, subpath, pattern);
35861
35900
  if (result) {
35862
35901
  return result;
@@ -35874,6 +35913,94 @@ var ts;
35874
35913
  trace(state.host, ts.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);
35875
35914
  }
35876
35915
  return toSearchResult(undefined);
35916
+ function toAbsolutePath(path) {
35917
+ var _a, _b;
35918
+ if (path === undefined)
35919
+ return path;
35920
+ return ts.hostGetCanonicalFileName({ useCaseSensitiveFileNames: useCaseSensitiveFileNames })(ts.getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a)));
35921
+ }
35922
+ function combineDirectoryPath(root, dir) {
35923
+ return ts.ensureTrailingDirectorySeparator(ts.combinePaths(root, dir));
35924
+ }
35925
+ function useCaseSensitiveFileNames() {
35926
+ return !state.host.useCaseSensitiveFileNames ? true :
35927
+ typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames :
35928
+ state.host.useCaseSensitiveFileNames();
35929
+ }
35930
+ function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports) {
35931
+ var _a, _b, _c, _d;
35932
+ if ((extensions === Extensions.TypeScript || extensions === Extensions.JavaScript || extensions === Extensions.Json)
35933
+ && (state.compilerOptions.declarationDir || state.compilerOptions.outDir)
35934
+ && finalPath.indexOf("/node_modules/") === -1
35935
+ && (state.compilerOptions.configFile ? ts.startsWith(toAbsolutePath(state.compilerOptions.configFile.fileName), scope.packageDirectory) : true)) {
35936
+ var getCanonicalFileName = ts.hostGetCanonicalFileName({ useCaseSensitiveFileNames: useCaseSensitiveFileNames });
35937
+ var commonSourceDirGuesses = [];
35938
+ if (state.compilerOptions.rootDir || (state.compilerOptions.composite && state.compilerOptions.configFilePath)) {
35939
+ var commonDir = toAbsolutePath(ts.getCommonSourceDirectory(state.compilerOptions, function () { return []; }, ((_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
35940
+ commonSourceDirGuesses.push(commonDir);
35941
+ }
35942
+ else if (state.requestContainingDirectory) {
35943
+ var requestingFile_1 = toAbsolutePath(ts.combinePaths(state.requestContainingDirectory, "index.ts"));
35944
+ var commonDir = toAbsolutePath(ts.getCommonSourceDirectory(state.compilerOptions, function () { return [requestingFile_1, toAbsolutePath(packagePath)]; }, ((_d = (_c = state.host).getCurrentDirectory) === null || _d === void 0 ? void 0 : _d.call(_c)) || "", getCanonicalFileName));
35945
+ commonSourceDirGuesses.push(commonDir);
35946
+ var fragment = ts.ensureTrailingDirectorySeparator(commonDir);
35947
+ while (fragment && fragment.length > 1) {
35948
+ var parts = ts.getPathComponents(fragment);
35949
+ parts.pop();
35950
+ var commonDir_1 = ts.getPathFromPathComponents(parts);
35951
+ commonSourceDirGuesses.unshift(commonDir_1);
35952
+ fragment = ts.ensureTrailingDirectorySeparator(commonDir_1);
35953
+ }
35954
+ }
35955
+ if (commonSourceDirGuesses.length > 1) {
35956
+ state.reportDiagnostic(ts.createCompilerDiagnostic(isImports
35957
+ ? ts.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate
35958
+ : ts.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate, entry === "" ? "." : entry, packagePath));
35959
+ }
35960
+ for (var _i = 0, commonSourceDirGuesses_1 = commonSourceDirGuesses; _i < commonSourceDirGuesses_1.length; _i++) {
35961
+ var commonSourceDirGuess = commonSourceDirGuesses_1[_i];
35962
+ var candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess);
35963
+ for (var _e = 0, candidateDirectories_1 = candidateDirectories; _e < candidateDirectories_1.length; _e++) {
35964
+ var candidateDir = candidateDirectories_1[_e];
35965
+ if (ts.startsWith(finalPath, candidateDir)) {
35966
+ var pathFragment = finalPath.slice(candidateDir.length + 1);
35967
+ var possibleInputBase = ts.combinePaths(commonSourceDirGuess, pathFragment);
35968
+ var jsAndDtsExtensions = [".mjs", ".cjs", ".js", ".json", ".d.mts", ".d.cts", ".d.ts"];
35969
+ for (var _f = 0, jsAndDtsExtensions_1 = jsAndDtsExtensions; _f < jsAndDtsExtensions_1.length; _f++) {
35970
+ var ext = jsAndDtsExtensions_1[_f];
35971
+ if (ts.fileExtensionIs(possibleInputBase, ext)) {
35972
+ var inputExts = ts.getPossibleOriginalInputExtensionForExtension(possibleInputBase);
35973
+ for (var _g = 0, inputExts_1 = inputExts; _g < inputExts_1.length; _g++) {
35974
+ var possibleExt = inputExts_1[_g];
35975
+ var possibleInputWithInputExtension = ts.changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
35976
+ if ((extensions === Extensions.TypeScript && ts.hasJSFileExtension(possibleInputWithInputExtension)) ||
35977
+ (extensions === Extensions.JavaScript && ts.hasTSFileExtension(possibleInputWithInputExtension))) {
35978
+ continue;
35979
+ }
35980
+ if (state.host.fileExists(possibleInputWithInputExtension)) {
35981
+ return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
35982
+ }
35983
+ }
35984
+ }
35985
+ }
35986
+ }
35987
+ }
35988
+ }
35989
+ }
35990
+ return undefined;
35991
+ function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
35992
+ var _a, _b;
35993
+ var currentDir = state.compilerOptions.configFile ? ((_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a)) || "" : commonSourceDirGuess;
35994
+ var candidateDirectories = [];
35995
+ if (state.compilerOptions.declarationDir) {
35996
+ candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
35997
+ }
35998
+ if (state.compilerOptions.outDir && state.compilerOptions.outDir !== state.compilerOptions.declarationDir) {
35999
+ candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.outDir)));
36000
+ }
36001
+ return candidateDirectories;
36002
+ }
36003
+ }
35877
36004
  }
35878
36005
  }
35879
36006
  function isApplicableVersionedTypesKey(conditions, key) {
@@ -36008,7 +36135,7 @@ var ts;
36008
36135
  return mangled;
36009
36136
  }
36010
36137
  function getTypesPackageName(packageName) {
36011
- return "@types/" + mangleScopedPackageName(packageName);
36138
+ return "@types/".concat(mangleScopedPackageName(packageName));
36012
36139
  }
36013
36140
  ts.getTypesPackageName = getTypesPackageName;
36014
36141
  function mangleScopedPackageName(packageName) {
@@ -36048,10 +36175,11 @@ var ts;
36048
36175
  function classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference) {
36049
36176
  var traceEnabled = isTraceEnabled(compilerOptions, host);
36050
36177
  var failedLookupLocations = [];
36051
- var state = { compilerOptions: compilerOptions, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache, features: NodeResolutionFeatures.None, conditions: [] };
36052
36178
  var containingDirectory = ts.getDirectoryPath(containingFile);
36179
+ var diagnostics = [];
36180
+ var state = { compilerOptions: compilerOptions, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache, features: NodeResolutionFeatures.None, conditions: [], requestContainingDirectory: containingDirectory, reportDiagnostic: function (diag) { return void diagnostics.push(diag); } };
36053
36181
  var resolved = tryResolve(Extensions.TypeScript) || tryResolve(Extensions.JavaScript);
36054
- return createResolvedModuleWithFailedLookupLocations(resolved && resolved.value, false, failedLookupLocations, state.resultFromCache);
36182
+ return createResolvedModuleWithFailedLookupLocations(resolved && resolved.value, false, failedLookupLocations, diagnostics, state.resultFromCache);
36055
36183
  function tryResolve(extensions) {
36056
36184
  var resolvedUsingSettings = tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loadModuleFromFileNoPackageId, state);
36057
36185
  if (resolvedUsingSettings) {
@@ -36087,9 +36215,10 @@ var ts;
36087
36215
  trace(host, ts.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2, projectName, moduleName, globalCache);
36088
36216
  }
36089
36217
  var failedLookupLocations = [];
36090
- var state = { compilerOptions: compilerOptions, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: packageJsonInfoCache, features: NodeResolutionFeatures.None, conditions: [] };
36218
+ var diagnostics = [];
36219
+ var state = { compilerOptions: compilerOptions, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: packageJsonInfoCache, features: NodeResolutionFeatures.None, conditions: [], requestContainingDirectory: undefined, reportDiagnostic: function (diag) { return void diagnostics.push(diag); } };
36091
36220
  var resolved = loadModuleFromImmediateNodeModulesDirectory(Extensions.DtsOnly, moduleName, globalCache, state, false, undefined, undefined);
36092
- return createResolvedModuleWithFailedLookupLocations(resolved, true, failedLookupLocations, state.resultFromCache);
36221
+ return createResolvedModuleWithFailedLookupLocations(resolved, true, failedLookupLocations, diagnostics, state.resultFromCache);
36093
36222
  }
36094
36223
  ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;
36095
36224
  function toSearchResult(value) {
@@ -36334,7 +36463,7 @@ var ts;
36334
36463
  if (name) {
36335
36464
  if (ts.isAmbientModule(node)) {
36336
36465
  var moduleName = ts.getTextOfIdentifierOrLiteral(name);
36337
- return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"" + moduleName + "\"");
36466
+ return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"".concat(moduleName, "\""));
36338
36467
  }
36339
36468
  if (name.kind === 162) {
36340
36469
  var nameExpression = name.expression;
@@ -36383,7 +36512,7 @@ var ts;
36383
36512
  case 317:
36384
36513
  return (ts.isJSDocConstructSignature(node) ? "__new" : "__call");
36385
36514
  case 164:
36386
- ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; });
36515
+ ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: ".concat(ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind, ", expected JSDocFunctionType"); });
36387
36516
  var functionType = node.parent;
36388
36517
  var index = functionType.parameters.indexOf(node);
36389
36518
  return "arg" + index;
@@ -36449,7 +36578,7 @@ var ts;
36449
36578
  }
36450
36579
  var relatedInformation_1 = [];
36451
36580
  if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {
36452
- relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { " + ts.unescapeLeadingUnderscores(node.name.escapedText) + " }"));
36581
+ relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { ".concat(ts.unescapeLeadingUnderscores(node.name.escapedText), " }")));
36453
36582
  }
36454
36583
  var declarationName_1 = ts.getNameOfDeclaration(node) || node;
36455
36584
  ts.forEach(symbol.declarations, function (declaration, index) {
@@ -38273,7 +38402,7 @@ var ts;
38273
38402
  }
38274
38403
  }
38275
38404
  function bindSourceFileAsExternalModule() {
38276
- bindAnonymousDeclaration(file, 512, "\"" + ts.removeFileExtension(file.fileName) + "\"");
38405
+ bindAnonymousDeclaration(file, 512, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
38277
38406
  }
38278
38407
  function bindExportAssignment(node) {
38279
38408
  if (!container.symbol || !container.symbol.exports) {
@@ -40012,7 +40141,7 @@ var ts;
40012
40141
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
40013
40142
  var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;
40014
40143
  var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
40015
- var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path + "|" + secondFile_1.path, function () {
40144
+ var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, "".concat(firstFile_1.path, "|").concat(secondFile_1.path), function () {
40016
40145
  return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });
40017
40146
  });
40018
40147
  var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {
@@ -42314,7 +42443,7 @@ var ts;
42314
42443
  var links = getSymbolLinks(symbol);
42315
42444
  var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));
42316
42445
  var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });
42317
- var key = (useOnlyExternalAliasing ? 0 : 1) + "|" + (firstRelevantLocation && getNodeId(firstRelevantLocation)) + "|" + meaning;
42446
+ var key = "".concat(useOnlyExternalAliasing ? 0 : 1, "|").concat(firstRelevantLocation && getNodeId(firstRelevantLocation), "|").concat(meaning);
42318
42447
  if (cache.has(key)) {
42319
42448
  return cache.get(key);
42320
42449
  }
@@ -43118,7 +43247,7 @@ var ts;
43118
43247
  context.symbolDepth = new ts.Map();
43119
43248
  }
43120
43249
  var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
43121
- var key = getTypeId(type) + "|" + context.flags;
43250
+ var key = "".concat(getTypeId(type), "|").concat(context.flags);
43122
43251
  if (links) {
43123
43252
  links.serializedTypes || (links.serializedTypes = new ts.Map());
43124
43253
  }
@@ -43379,7 +43508,7 @@ var ts;
43379
43508
  }
43380
43509
  }
43381
43510
  if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {
43382
- typeElements.push(ts.factory.createPropertySignature(undefined, "... " + (properties.length - i) + " more ...", undefined, undefined));
43511
+ typeElements.push(ts.factory.createPropertySignature(undefined, "... ".concat(properties.length - i, " more ..."), undefined, undefined));
43383
43512
  addPropertyToElementList(properties[properties.length - 1], context, typeElements);
43384
43513
  break;
43385
43514
  }
@@ -43487,7 +43616,7 @@ var ts;
43487
43616
  else if (types.length > 2) {
43488
43617
  return [
43489
43618
  typeToTypeNodeHelper(types[0], context),
43490
- ts.factory.createTypeReferenceNode("... " + (types.length - 2) + " more ...", undefined),
43619
+ ts.factory.createTypeReferenceNode("... ".concat(types.length - 2, " more ..."), undefined),
43491
43620
  typeToTypeNodeHelper(types[types.length - 1], context)
43492
43621
  ];
43493
43622
  }
@@ -43500,7 +43629,7 @@ var ts;
43500
43629
  var type = types_2[_i];
43501
43630
  i++;
43502
43631
  if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
43503
- result_5.push(ts.factory.createTypeReferenceNode("... " + (types.length - i) + " more ...", undefined));
43632
+ result_5.push(ts.factory.createTypeReferenceNode("... ".concat(types.length - i, " more ..."), undefined));
43504
43633
  var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);
43505
43634
  if (typeNode_1) {
43506
43635
  result_5.push(typeNode_1);
@@ -43857,7 +43986,7 @@ var ts;
43857
43986
  }
43858
43987
  return specifier;
43859
43988
  function getSpecifierCacheKey(path, mode) {
43860
- return mode === undefined ? path : mode + "|" + path;
43989
+ return mode === undefined ? path : "".concat(mode, "|").concat(path);
43861
43990
  }
43862
43991
  }
43863
43992
  function symbolToEntityNameNode(symbol) {
@@ -44021,7 +44150,7 @@ var ts;
44021
44150
  var text = rawtext;
44022
44151
  while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {
44023
44152
  i++;
44024
- text = rawtext + "_" + i;
44153
+ text = "".concat(rawtext, "_").concat(i);
44025
44154
  }
44026
44155
  if (text !== rawtext) {
44027
44156
  result = ts.factory.createIdentifier(text, result.typeArguments);
@@ -44313,7 +44442,7 @@ var ts;
44313
44442
  function getNameForJSDocFunctionParameter(p, index) {
44314
44443
  return p.name && ts.isIdentifier(p.name) && p.name.escapedText === "this" ? "this"
44315
44444
  : getEffectiveDotDotDotForParameter(p) ? "args"
44316
- : "arg" + index;
44445
+ : "arg".concat(index);
44317
44446
  }
44318
44447
  function rewriteModuleSpecifier(parent, lit) {
44319
44448
  if (bundled) {
@@ -45126,7 +45255,7 @@ var ts;
45126
45255
  }
45127
45256
  return results_1;
45128
45257
  }
45129
- return ts.Debug.fail("Unhandled class member kind! " + (p.__debugFlags || p.flags));
45258
+ return ts.Debug.fail("Unhandled class member kind! ".concat(p.__debugFlags || p.flags));
45130
45259
  };
45131
45260
  }
45132
45261
  function serializePropertySymbolForInterface(p, baseType) {
@@ -45196,7 +45325,7 @@ var ts;
45196
45325
  if (ref) {
45197
45326
  return ref;
45198
45327
  }
45199
- var tempName = getUnusedName(rootName + "_base");
45328
+ var tempName = getUnusedName("".concat(rootName, "_base"));
45200
45329
  var statement = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([
45201
45330
  ts.factory.createVariableDeclaration(tempName, undefined, typeToTypeNodeHelper(staticType, context))
45202
45331
  ], 2));
@@ -45241,7 +45370,7 @@ var ts;
45241
45370
  var original = input;
45242
45371
  while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {
45243
45372
  i++;
45244
- input = original + "_" + i;
45373
+ input = "".concat(original, "_").concat(i);
45245
45374
  }
45246
45375
  (_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);
45247
45376
  if (id) {
@@ -45347,15 +45476,15 @@ var ts;
45347
45476
  if (nameType.flags & 384) {
45348
45477
  var name = "" + nameType.value;
45349
45478
  if (!ts.isIdentifierText(name, ts.getEmitScriptTarget(compilerOptions)) && !ts.isNumericLiteralName(name)) {
45350
- return "\"" + ts.escapeString(name, 34) + "\"";
45479
+ return "\"".concat(ts.escapeString(name, 34), "\"");
45351
45480
  }
45352
45481
  if (ts.isNumericLiteralName(name) && ts.startsWith(name, "-")) {
45353
- return "[" + name + "]";
45482
+ return "[".concat(name, "]");
45354
45483
  }
45355
45484
  return name;
45356
45485
  }
45357
45486
  if (nameType.flags & 8192) {
45358
- return "[" + getNameOfSymbolAsWritten(nameType.symbol, context) + "]";
45487
+ return "[".concat(getNameOfSymbolAsWritten(nameType.symbol, context), "]");
45359
45488
  }
45360
45489
  }
45361
45490
  }
@@ -47772,7 +47901,7 @@ var ts;
47772
47901
  !leftName ? rightName :
47773
47902
  !rightName ? leftName :
47774
47903
  undefined;
47775
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
47904
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
47776
47905
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
47777
47906
  params[i] = paramSymbol;
47778
47907
  }
@@ -47931,7 +48060,8 @@ var ts;
47931
48060
  if (symbol === globalThisSymbol) {
47932
48061
  var varsOnly_1 = new ts.Map();
47933
48062
  members.forEach(function (p) {
47934
- if (!(p.flags & 418)) {
48063
+ var _a;
48064
+ if (!(p.flags & 418) && !(p.flags & 512 && ((_a = p.declarations) === null || _a === void 0 ? void 0 : _a.length) && ts.every(p.declarations, ts.isAmbientModule))) {
47935
48065
  varsOnly_1.set(p.escapedName, p);
47936
48066
  }
47937
48067
  });
@@ -49497,7 +49627,7 @@ var ts;
49497
49627
  return result;
49498
49628
  }
49499
49629
  function getAliasId(aliasSymbol, aliasTypeArguments) {
49500
- return aliasSymbol ? "@" + getSymbolId(aliasSymbol) + (aliasTypeArguments ? ":" + getTypeListId(aliasTypeArguments) : "") : "";
49630
+ return aliasSymbol ? "@".concat(getSymbolId(aliasSymbol)) + (aliasTypeArguments ? ":".concat(getTypeListId(aliasTypeArguments)) : "") : "";
49501
49631
  }
49502
49632
  function getPropagatingFlagsOfTypes(types, excludeKinds) {
49503
49633
  var result = 0;
@@ -49660,7 +49790,7 @@ var ts;
49660
49790
  return undefined;
49661
49791
  }
49662
49792
  function getSymbolPath(symbol) {
49663
- return symbol.parent ? getSymbolPath(symbol.parent) + "." + symbol.escapedName : symbol.escapedName;
49793
+ return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
49664
49794
  }
49665
49795
  function getUnresolvedSymbolForEntityName(name) {
49666
49796
  var identifier = name.kind === 161 ? name.right :
@@ -49671,7 +49801,7 @@ var ts;
49671
49801
  var parentSymbol = name.kind === 161 ? getUnresolvedSymbolForEntityName(name.left) :
49672
49802
  name.kind === 206 ? getUnresolvedSymbolForEntityName(name.expression) :
49673
49803
  undefined;
49674
- var path = parentSymbol ? getSymbolPath(parentSymbol) + "." + text : text;
49804
+ var path = parentSymbol ? "".concat(getSymbolPath(parentSymbol), ".").concat(text) : text;
49675
49805
  var result = unresolvedSymbols.get(path);
49676
49806
  if (!result) {
49677
49807
  unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));
@@ -49737,7 +49867,7 @@ var ts;
49737
49867
  if (substitute.flags & 3 || substitute === baseType) {
49738
49868
  return baseType;
49739
49869
  }
49740
- var id = getTypeId(baseType) + ">" + getTypeId(substitute);
49870
+ var id = "".concat(getTypeId(baseType), ">").concat(getTypeId(substitute));
49741
49871
  var cached = substitutionTypes.get(id);
49742
49872
  if (cached) {
49743
49873
  return cached;
@@ -50596,9 +50726,9 @@ var ts;
50596
50726
  return types[0];
50597
50727
  }
50598
50728
  var typeKey = !origin ? getTypeListId(types) :
50599
- origin.flags & 1048576 ? "|" + getTypeListId(origin.types) :
50600
- origin.flags & 2097152 ? "&" + getTypeListId(origin.types) :
50601
- "#" + origin.type.id + "|" + getTypeListId(types);
50729
+ origin.flags & 1048576 ? "|".concat(getTypeListId(origin.types)) :
50730
+ origin.flags & 2097152 ? "&".concat(getTypeListId(origin.types)) :
50731
+ "#".concat(origin.type.id, "|").concat(getTypeListId(types));
50602
50732
  var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);
50603
50733
  var type = unionTypes.get(id);
50604
50734
  if (!type) {
@@ -51056,7 +51186,7 @@ var ts;
51056
51186
  if (ts.every(newTexts, function (t) { return t === ""; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4); })) {
51057
51187
  return stringType;
51058
51188
  }
51059
- var id = getTypeListId(newTypes) + "|" + ts.map(newTexts, function (t) { return t.length; }).join(",") + "|" + newTexts.join("");
51189
+ var id = "".concat(getTypeListId(newTypes), "|").concat(ts.map(newTexts, function (t) { return t.length; }).join(","), "|").concat(newTexts.join(""));
51060
51190
  var type = templateLiteralTypes.get(id);
51061
51191
  if (!type) {
51062
51192
  templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));
@@ -51127,7 +51257,7 @@ var ts;
51127
51257
  return str;
51128
51258
  }
51129
51259
  function getStringMappingTypeForGenericType(symbol, type) {
51130
- var id = getSymbolId(symbol) + "," + getTypeId(type);
51260
+ var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
51131
51261
  var result = stringMappingTypes.get(id);
51132
51262
  if (!result) {
51133
51263
  stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
@@ -52065,7 +52195,7 @@ var ts;
52065
52195
  function createUniqueESSymbolType(symbol) {
52066
52196
  var type = createType(8192);
52067
52197
  type.symbol = symbol;
52068
- type.escapedName = "__@" + type.symbol.escapedName + "@" + getSymbolId(type.symbol);
52198
+ type.escapedName = "__@".concat(type.symbol.escapedName, "@").concat(getSymbolId(type.symbol));
52069
52199
  return type;
52070
52200
  }
52071
52201
  function getESSymbolLikeTypeForNode(node) {
@@ -53594,20 +53724,20 @@ var ts;
53594
53724
  switch (msg.code) {
53595
53725
  case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {
53596
53726
  if (path.indexOf("new ") === 0) {
53597
- path = "(" + path + ")";
53727
+ path = "(".concat(path, ")");
53598
53728
  }
53599
53729
  var str = "" + args[0];
53600
53730
  if (path.length === 0) {
53601
- path = "" + str;
53731
+ path = "".concat(str);
53602
53732
  }
53603
53733
  else if (ts.isIdentifierText(str, ts.getEmitScriptTarget(compilerOptions))) {
53604
- path = path + "." + str;
53734
+ path = "".concat(path, ".").concat(str);
53605
53735
  }
53606
53736
  else if (str[0] === "[" && str[str.length - 1] === "]") {
53607
- path = "" + path + str;
53737
+ path = "".concat(path).concat(str);
53608
53738
  }
53609
53739
  else {
53610
- path = path + "[" + str + "]";
53740
+ path = "".concat(path, "[").concat(str, "]");
53611
53741
  }
53612
53742
  break;
53613
53743
  }
@@ -53634,7 +53764,7 @@ var ts;
53634
53764
  msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)
53635
53765
  ? ""
53636
53766
  : "...";
53637
- path = "" + prefix + path + "(" + params + ")";
53767
+ path = "".concat(prefix).concat(path, "(").concat(params, ")");
53638
53768
  }
53639
53769
  break;
53640
53770
  }
@@ -53647,7 +53777,7 @@ var ts;
53647
53777
  break;
53648
53778
  }
53649
53779
  default:
53650
- return ts.Debug.fail("Unhandled Diagnostic: " + msg.code);
53780
+ return ts.Debug.fail("Unhandled Diagnostic: ".concat(msg.code));
53651
53781
  }
53652
53782
  }
53653
53783
  if (path) {
@@ -55540,7 +55670,7 @@ var ts;
55540
55670
  var constraintMarker = "";
55541
55671
  var sourceId = getTypeReferenceId(source, 0);
55542
55672
  var targetId = getTypeReferenceId(target, 0);
55543
- return "" + constraintMarker + sourceId + "," + targetId + postFix;
55673
+ return "".concat(constraintMarker).concat(sourceId, ",").concat(targetId).concat(postFix);
55544
55674
  function getTypeReferenceId(type, depth) {
55545
55675
  if (depth === void 0) { depth = 0; }
55546
55676
  var result = "" + type.target.id;
@@ -55576,7 +55706,7 @@ var ts;
55576
55706
  var postFix = intersectionState ? ":" + intersectionState : "";
55577
55707
  return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ?
55578
55708
  getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) :
55579
- source.id + "," + target.id + postFix;
55709
+ "".concat(source.id, ",").concat(target.id).concat(postFix);
55580
55710
  }
55581
55711
  function forEachProperty(prop, callback) {
55582
55712
  if (ts.getCheckFlags(prop) & 6) {
@@ -57423,10 +57553,10 @@ var ts;
57423
57553
  case 79:
57424
57554
  if (!ts.isThisInTypeQuery(node)) {
57425
57555
  var symbol = getResolvedSymbol(node);
57426
- return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType) + "|" + getSymbolId(symbol) : undefined;
57556
+ return symbol !== unknownSymbol ? "".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType), "|").concat(getSymbolId(symbol)) : undefined;
57427
57557
  }
57428
57558
  case 108:
57429
- return "0|" + (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType);
57559
+ return "0|".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType));
57430
57560
  case 230:
57431
57561
  case 212:
57432
57562
  return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);
@@ -60787,7 +60917,7 @@ var ts;
60787
60917
  !leftName ? rightName :
60788
60918
  !rightName ? leftName :
60789
60919
  undefined;
60790
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
60920
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
60791
60921
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
60792
60922
  params[i] = paramSymbol;
60793
60923
  }
@@ -69437,7 +69567,7 @@ var ts;
69437
69567
  function getPropertyNameForKnownSymbolName(symbolName) {
69438
69568
  var ctorType = getGlobalESSymbolConstructorSymbol(false);
69439
69569
  var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
69440
- return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@" + symbolName;
69570
+ return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
69441
69571
  }
69442
69572
  function getIterationTypesOfIterableSlow(type, resolver, errorNode) {
69443
69573
  var _a;
@@ -71086,6 +71216,9 @@ var ts;
71086
71216
  var validForTypeAssertions = ts.isExclusivelyTypeOnlyImportOrExport(declaration);
71087
71217
  var override = ts.getResolutionModeOverrideForClause(declaration.assertClause, validForTypeAssertions ? grammarErrorOnNode : undefined);
71088
71218
  if (validForTypeAssertions && override) {
71219
+ if (!ts.isNightly()) {
71220
+ grammarErrorOnNode(declaration.assertClause, ts.Diagnostics.Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next);
71221
+ }
71089
71222
  if (ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.Node16 && ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.NodeNext) {
71090
71223
  return grammarErrorOnNode(declaration.assertClause, ts.Diagnostics.Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext);
71091
71224
  }
@@ -72292,7 +72425,7 @@ var ts;
72292
72425
  }
72293
72426
  if (ts.isDeclaration(node)) {
72294
72427
  var symbol = getSymbolOfNode(node);
72295
- return getTypeOfSymbol(symbol);
72428
+ return symbol ? getTypeOfSymbol(symbol) : errorType;
72296
72429
  }
72297
72430
  if (isDeclarationNameOrImportPropertyName(node)) {
72298
72431
  var symbol = getSymbolAtLocation(node);
@@ -75840,7 +75973,7 @@ var ts;
75840
75973
  value >= 52 && value < 62 ? 48 + value - 52 :
75841
75974
  value === 62 ? 43 :
75842
75975
  value === 63 ? 47 :
75843
- ts.Debug.fail(value + ": not a base64 value");
75976
+ ts.Debug.fail("".concat(value, ": not a base64 value"));
75844
75977
  }
75845
75978
  function base64FormatDecode(ch) {
75846
75979
  return ch >= 65 && ch <= 90 ? ch - 65 :
@@ -75913,7 +76046,7 @@ var ts;
75913
76046
  var mappings = ts.arrayFrom(decoder, processMapping);
75914
76047
  if (decoder.error !== undefined) {
75915
76048
  if (host.log) {
75916
- host.log("Encountered error while decoding sourcemap: " + decoder.error);
76049
+ host.log("Encountered error while decoding sourcemap: ".concat(decoder.error));
75917
76050
  }
75918
76051
  decodedMappings = ts.emptyArray;
75919
76052
  }
@@ -78362,7 +78495,7 @@ var ts;
78362
78495
  var substitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) : factory.createNumericLiteral(constantValue);
78363
78496
  if (!compilerOptions.removeComments) {
78364
78497
  var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
78365
- ts.addSyntheticTrailingComment(substitute, 3, " " + safeMultiLineComment(ts.getTextOfNode(originalNode)) + " ");
78498
+ ts.addSyntheticTrailingComment(substitute, 3, " ".concat(safeMultiLineComment(ts.getTextOfNode(originalNode)), " "));
78366
78499
  }
78367
78500
  return substitute;
78368
78501
  }
@@ -79613,8 +79746,8 @@ var ts;
79613
79746
  }
79614
79747
  function createHoistedVariableForClass(name, node) {
79615
79748
  var className = getPrivateIdentifierEnvironment().className;
79616
- var prefix = className ? "_" + className : "";
79617
- var identifier = factory.createUniqueName(prefix + "_" + name, 16);
79749
+ var prefix = className ? "_".concat(className) : "";
79750
+ var identifier = factory.createUniqueName("".concat(prefix, "_").concat(name), 16);
79618
79751
  if (resolver.getNodeCheckFlags(node) & 524288) {
79619
79752
  addBlockScopedVariable(identifier);
79620
79753
  }
@@ -81272,7 +81405,7 @@ var ts;
81272
81405
  specifierSourceImports = new ts.Map();
81273
81406
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
81274
81407
  }
81275
- var generatedName = factory.createUniqueName("_" + name, 16 | 32 | 64);
81408
+ var generatedName = factory.createUniqueName("_".concat(name), 16 | 32 | 64);
81276
81409
  var specifier = factory.createImportSpecifier(false, factory.createIdentifier(name), generatedName);
81277
81410
  generatedName.generatedImportReference = specifier;
81278
81411
  specifierSourceImports.set(name, specifier);
@@ -82213,11 +82346,11 @@ var ts;
82213
82346
  }
82214
82347
  else {
82215
82348
  if (node.kind === 246) {
82216
- labelMarker = "break-" + label.escapedText;
82349
+ labelMarker = "break-".concat(label.escapedText);
82217
82350
  setLabeledJump(convertedLoopState, true, ts.idText(label), labelMarker);
82218
82351
  }
82219
82352
  else {
82220
- labelMarker = "continue-" + label.escapedText;
82353
+ labelMarker = "continue-".concat(label.escapedText);
82221
82354
  setLabeledJump(convertedLoopState, false, ts.idText(label), labelMarker);
82222
82355
  }
82223
82356
  }
@@ -87872,7 +88005,7 @@ var ts;
87872
88005
  return getTypeAliasDeclarationVisibilityError;
87873
88006
  }
87874
88007
  else {
87875
- return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: " + ts.SyntaxKind[node.kind]);
88008
+ return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(ts.SyntaxKind[node.kind]));
87876
88009
  }
87877
88010
  function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {
87878
88011
  if (node.kind === 254 || node.kind === 203) {
@@ -88069,7 +88202,7 @@ var ts;
88069
88202
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :
88070
88203
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;
88071
88204
  default:
88072
- return ts.Debug.fail("Unknown parent for parameter: " + ts.SyntaxKind[node.parent.kind]);
88205
+ return ts.Debug.fail("Unknown parent for parameter: ".concat(ts.SyntaxKind[node.parent.kind]));
88073
88206
  }
88074
88207
  }
88075
88208
  function getTypeParameterConstraintVisibilityError() {
@@ -88735,29 +88868,39 @@ var ts;
88735
88868
  }
88736
88869
  function transformImportDeclaration(decl) {
88737
88870
  if (!decl.importClause) {
88738
- return factory.updateImportDeclaration(decl, undefined, decl.modifiers, decl.importClause, rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88871
+ return factory.updateImportDeclaration(decl, undefined, decl.modifiers, decl.importClause, rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88739
88872
  }
88740
88873
  var visibleDefaultBinding = decl.importClause && decl.importClause.name && resolver.isDeclarationVisible(decl.importClause) ? decl.importClause.name : undefined;
88741
88874
  if (!decl.importClause.namedBindings) {
88742
- return visibleDefaultBinding && factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88875
+ return visibleDefaultBinding && factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88743
88876
  }
88744
88877
  if (decl.importClause.namedBindings.kind === 268) {
88745
88878
  var namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : undefined;
88746
- return visibleDefaultBinding || namedBindings ? factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, namedBindings), rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined) : undefined;
88879
+ return visibleDefaultBinding || namedBindings ? factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, namedBindings), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause)) : undefined;
88747
88880
  }
88748
88881
  var bindingList = ts.mapDefined(decl.importClause.namedBindings.elements, function (b) { return resolver.isDeclarationVisible(b) ? b : undefined; });
88749
88882
  if ((bindingList && bindingList.length) || visibleDefaultBinding) {
88750
- return factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, bindingList && bindingList.length ? factory.updateNamedImports(decl.importClause.namedBindings, bindingList) : undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88883
+ return factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, bindingList && bindingList.length ? factory.updateNamedImports(decl.importClause.namedBindings, bindingList) : undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88751
88884
  }
88752
88885
  if (resolver.isImportRequiredByAugmentation(decl)) {
88753
- return factory.updateImportDeclaration(decl, undefined, decl.modifiers, undefined, rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88886
+ return factory.updateImportDeclaration(decl, undefined, decl.modifiers, undefined, rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88754
88887
  }
88755
88888
  }
88889
+ function getResolutionModeOverrideForClauseInNightly(assertClause) {
88890
+ var mode = ts.getResolutionModeOverrideForClause(assertClause);
88891
+ if (mode !== undefined) {
88892
+ if (!ts.isNightly()) {
88893
+ context.addDiagnostic(ts.createDiagnosticForNode(assertClause, ts.Diagnostics.Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next));
88894
+ }
88895
+ return assertClause;
88896
+ }
88897
+ return undefined;
88898
+ }
88756
88899
  function transformAndReplaceLatePaintedStatements(statements) {
88757
88900
  while (ts.length(lateMarkedStatements)) {
88758
88901
  var i = lateMarkedStatements.shift();
88759
88902
  if (!ts.isLateVisibilityPaintedStatement(i)) {
88760
- return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: " + (ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));
88903
+ return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));
88761
88904
  }
88762
88905
  var priorNeedsDeclare = needsDeclare;
88763
88906
  needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);
@@ -88922,7 +89065,7 @@ var ts;
88922
89065
  return cleanup(input);
88923
89066
  return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.assertions, input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));
88924
89067
  }
88925
- default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: " + ts.SyntaxKind[input.kind]);
89068
+ default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: ".concat(ts.SyntaxKind[input.kind]));
88926
89069
  }
88927
89070
  }
88928
89071
  if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {
@@ -89172,7 +89315,7 @@ var ts;
89172
89315
  var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);
89173
89316
  if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104) {
89174
89317
  var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : "default";
89175
- var newId_1 = factory.createUniqueName(oldId + "_base", 16);
89318
+ var newId_1 = factory.createUniqueName("".concat(oldId, "_base"), 16);
89176
89319
  getSymbolAccessibilityDiagnostic = function () { return ({
89177
89320
  diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
89178
89321
  errorNode: extendsClause_1,
@@ -89209,7 +89352,7 @@ var ts;
89209
89352
  }))));
89210
89353
  }
89211
89354
  }
89212
- return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: " + ts.SyntaxKind[input.kind]);
89355
+ return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: ".concat(ts.SyntaxKind[input.kind]));
89213
89356
  function cleanup(node) {
89214
89357
  if (isEnclosingDeclaration(input)) {
89215
89358
  enclosingDeclaration = previousEnclosingDeclaration;
@@ -89978,13 +90121,13 @@ var ts;
89978
90121
  if (ts.fileExtensionIs(inputFileName, ".json"))
89979
90122
  return;
89980
90123
  if (js && configFile.options.sourceMap) {
89981
- addOutput(js + ".map");
90124
+ addOutput("".concat(js, ".map"));
89982
90125
  }
89983
90126
  if (ts.getEmitDeclarations(configFile.options)) {
89984
90127
  var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);
89985
90128
  addOutput(dts);
89986
90129
  if (configFile.options.declarationMap) {
89987
- addOutput(dts + ".map");
90130
+ addOutput("".concat(dts, ".map"));
89988
90131
  }
89989
90132
  }
89990
90133
  }
@@ -90044,7 +90187,7 @@ var ts;
90044
90187
  function getFirstProjectOutput(configFile, ignoreCase) {
90045
90188
  if (ts.outFile(configFile.options)) {
90046
90189
  var jsFilePath = getOutputPathsForBundle(configFile.options, false).jsFilePath;
90047
- return ts.Debug.checkDefined(jsFilePath, "project " + configFile.options.configFilePath + " expected to have at least one output");
90190
+ return ts.Debug.checkDefined(jsFilePath, "project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
90048
90191
  }
90049
90192
  var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });
90050
90193
  for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {
@@ -90063,7 +90206,7 @@ var ts;
90063
90206
  var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);
90064
90207
  if (buildInfoPath)
90065
90208
  return buildInfoPath;
90066
- return ts.Debug.fail("project " + configFile.options.configFilePath + " expected to have at least one output");
90209
+ return ts.Debug.fail("project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
90067
90210
  }
90068
90211
  ts.getFirstProjectOutput = getFirstProjectOutput;
90069
90212
  function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {
@@ -90275,7 +90418,7 @@ var ts;
90275
90418
  if (!writer.isAtStartOfLine())
90276
90419
  writer.rawWrite(newLine);
90277
90420
  sourceMapUrlPos = writer.getTextPos();
90278
- writer.writeComment("//# " + "sourceMappingURL" + "=" + sourceMappingURL);
90421
+ writer.writeComment("//# ".concat("sourceMappingURL", "=").concat(sourceMappingURL));
90279
90422
  }
90280
90423
  if (sourceMapFilePath) {
90281
90424
  var sourceMap = sourceMapGenerator.toString();
@@ -90315,7 +90458,7 @@ var ts;
90315
90458
  if (mapOptions.inlineSourceMap) {
90316
90459
  var sourceMapText = sourceMapGenerator.toString();
90317
90460
  var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);
90318
- return "data:application/json;base64," + base64SourceMapText;
90461
+ return "data:application/json;base64,".concat(base64SourceMapText);
90319
90462
  }
90320
90463
  var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));
90321
90464
  if (mapOptions.mapRoot) {
@@ -90479,7 +90622,7 @@ var ts;
90479
90622
  return;
90480
90623
  break;
90481
90624
  default:
90482
- ts.Debug.fail("Unexpected path: " + name);
90625
+ ts.Debug.fail("Unexpected path: ".concat(name));
90483
90626
  }
90484
90627
  outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });
90485
90628
  },
@@ -91292,7 +91435,7 @@ var ts;
91292
91435
  return writeTokenNode(node, writeKeyword);
91293
91436
  if (ts.isTokenKind(node.kind))
91294
91437
  return writeTokenNode(node, writePunctuation);
91295
- ts.Debug.fail("Unhandled SyntaxKind: " + ts.Debug.formatSyntaxKind(node.kind) + ".");
91438
+ ts.Debug.fail("Unhandled SyntaxKind: ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
91296
91439
  }
91297
91440
  function emitMappedTypeParameter(node) {
91298
91441
  emit(node.name);
@@ -91432,14 +91575,14 @@ var ts;
91432
91575
  }
91433
91576
  }
91434
91577
  function emitPlaceholder(hint, node, snippet) {
91435
- nonEscapingWrite("${" + snippet.order + ":");
91578
+ nonEscapingWrite("${".concat(snippet.order, ":"));
91436
91579
  pipelineEmitWithHintWorker(hint, node, false);
91437
91580
  nonEscapingWrite("}");
91438
91581
  }
91439
91582
  function emitTabStop(hint, node, snippet) {
91440
- ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind " + ts.Debug.formatSyntaxKind(node.kind) + ".");
91583
+ ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
91441
91584
  ts.Debug.assert(hint !== 5, "A tab stop cannot be attached to an embedded statement.");
91442
- nonEscapingWrite("$" + snippet.order);
91585
+ nonEscapingWrite("$".concat(snippet.order));
91443
91586
  }
91444
91587
  function emitIdentifier(node) {
91445
91588
  var writeText = node.symbol ? writeSymbol : write;
@@ -93116,17 +93259,17 @@ var ts;
93116
93259
  writeLine();
93117
93260
  }
93118
93261
  if (currentSourceFile && currentSourceFile.moduleName) {
93119
- writeComment("/// <amd-module name=\"" + currentSourceFile.moduleName + "\" />");
93262
+ writeComment("/// <amd-module name=\"".concat(currentSourceFile.moduleName, "\" />"));
93120
93263
  writeLine();
93121
93264
  }
93122
93265
  if (currentSourceFile && currentSourceFile.amdDependencies) {
93123
93266
  for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {
93124
93267
  var dep = _b[_a];
93125
93268
  if (dep.name) {
93126
- writeComment("/// <amd-dependency name=\"" + dep.name + "\" path=\"" + dep.path + "\" />");
93269
+ writeComment("/// <amd-dependency name=\"".concat(dep.name, "\" path=\"").concat(dep.path, "\" />"));
93127
93270
  }
93128
93271
  else {
93129
- writeComment("/// <amd-dependency path=\"" + dep.path + "\" />");
93272
+ writeComment("/// <amd-dependency path=\"".concat(dep.path, "\" />"));
93130
93273
  }
93131
93274
  writeLine();
93132
93275
  }
@@ -93134,7 +93277,7 @@ var ts;
93134
93277
  for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {
93135
93278
  var directive = files_2[_c];
93136
93279
  var pos = writer.getTextPos();
93137
- writeComment("/// <reference path=\"" + directive.fileName + "\" />");
93280
+ writeComment("/// <reference path=\"".concat(directive.fileName, "\" />"));
93138
93281
  if (bundleFileInfo)
93139
93282
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
93140
93283
  writeLine();
@@ -93143,9 +93286,9 @@ var ts;
93143
93286
  var directive = types_24[_d];
93144
93287
  var pos = writer.getTextPos();
93145
93288
  var resolutionMode = directive.resolutionMode && directive.resolutionMode !== (currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.impliedNodeFormat)
93146
- ? "resolution-mode=\"" + (directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require") + "\""
93289
+ ? "resolution-mode=\"".concat(directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require", "\"")
93147
93290
  : "";
93148
- writeComment("/// <reference types=\"" + directive.fileName + "\" " + resolutionMode + "/>");
93291
+ writeComment("/// <reference types=\"".concat(directive.fileName, "\" ").concat(resolutionMode, "/>"));
93149
93292
  if (bundleFileInfo)
93150
93293
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: !directive.resolutionMode ? "type" : directive.resolutionMode === ts.ModuleKind.ESNext ? "type-import" : "type-require", data: directive.fileName });
93151
93294
  writeLine();
@@ -93153,7 +93296,7 @@ var ts;
93153
93296
  for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {
93154
93297
  var directive = libs_1[_e];
93155
93298
  var pos = writer.getTextPos();
93156
- writeComment("/// <reference lib=\"" + directive.fileName + "\" />");
93299
+ writeComment("/// <reference lib=\"".concat(directive.fileName, "\" />"));
93157
93300
  if (bundleFileInfo)
93158
93301
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "lib", data: directive.fileName });
93159
93302
  writeLine();
@@ -93855,9 +93998,9 @@ var ts;
93855
93998
  var textSourceNode = node.textSourceNode;
93856
93999
  if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {
93857
94000
  var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);
93858
- return jsxAttributeEscape ? "\"" + ts.escapeJsxAttributeString(text) + "\"" :
93859
- neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"" + ts.escapeString(text) + "\"" :
93860
- "\"" + ts.escapeNonAsciiString(text) + "\"";
94001
+ return jsxAttributeEscape ? "\"".concat(ts.escapeJsxAttributeString(text), "\"") :
94002
+ neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"".concat(ts.escapeString(text), "\"") :
94003
+ "\"".concat(ts.escapeNonAsciiString(text), "\"");
93861
94004
  }
93862
94005
  else {
93863
94006
  return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
@@ -94260,8 +94403,8 @@ var ts;
94260
94403
  }
94261
94404
  function formatSynthesizedComment(comment) {
94262
94405
  return comment.kind === 3
94263
- ? "/*" + comment.text + "*/"
94264
- : "//" + comment.text;
94406
+ ? "/*".concat(comment.text, "*/")
94407
+ : "//".concat(comment.text);
94265
94408
  }
94266
94409
  function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {
94267
94410
  enterComment();
@@ -94895,18 +95038,18 @@ var ts;
94895
95038
  var watchedDirPath = _a.watchedDirPath, fileOrDirectory = _a.fileOrDirectory, fileOrDirectoryPath = _a.fileOrDirectoryPath, configFileName = _a.configFileName, options = _a.options, program = _a.program, extraFileExtensions = _a.extraFileExtensions, currentDirectory = _a.currentDirectory, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, writeLog = _a.writeLog, toPath = _a.toPath;
94896
95039
  var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);
94897
95040
  if (!newPath) {
94898
- writeLog("Project: " + configFileName + " Detected ignored path: " + fileOrDirectory);
95041
+ writeLog("Project: ".concat(configFileName, " Detected ignored path: ").concat(fileOrDirectory));
94899
95042
  return true;
94900
95043
  }
94901
95044
  fileOrDirectoryPath = newPath;
94902
95045
  if (fileOrDirectoryPath === watchedDirPath)
94903
95046
  return false;
94904
95047
  if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
94905
- writeLog("Project: " + configFileName + " Detected file add/remove of non supported extension: " + fileOrDirectory);
95048
+ writeLog("Project: ".concat(configFileName, " Detected file add/remove of non supported extension: ").concat(fileOrDirectory));
94906
95049
  return true;
94907
95050
  }
94908
95051
  if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
94909
- writeLog("Project: " + configFileName + " Detected excluded file: " + fileOrDirectory);
95052
+ writeLog("Project: ".concat(configFileName, " Detected excluded file: ").concat(fileOrDirectory));
94910
95053
  return true;
94911
95054
  }
94912
95055
  if (!program)
@@ -94925,7 +95068,7 @@ var ts;
94925
95068
  var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;
94926
95069
  if (hasSourceFile((filePathWithoutExtension + ".ts")) ||
94927
95070
  hasSourceFile((filePathWithoutExtension + ".tsx"))) {
94928
- writeLog("Project: " + configFileName + " Detected output file: " + fileOrDirectory);
95071
+ writeLog("Project: ".concat(configFileName, " Detected output file: ").concat(fileOrDirectory));
94929
95072
  return true;
94930
95073
  }
94931
95074
  return false;
@@ -94993,36 +95136,36 @@ var ts;
94993
95136
  host.useCaseSensitiveFileNames();
94994
95137
  }
94995
95138
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
94996
- log("ExcludeWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95139
+ log("ExcludeWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
94997
95140
  return {
94998
- close: function () { return log("ExcludeWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)); }
95141
+ close: function () { return log("ExcludeWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo))); }
94999
95142
  };
95000
95143
  }
95001
95144
  function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
95002
- log("FileWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95145
+ log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
95003
95146
  var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
95004
95147
  return {
95005
95148
  close: function () {
95006
- log("FileWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95149
+ log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
95007
95150
  watcher.close();
95008
95151
  }
95009
95152
  };
95010
95153
  }
95011
95154
  function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
95012
- var watchInfo = "DirectoryWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
95155
+ var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95013
95156
  log(watchInfo);
95014
95157
  var start = ts.timestamp();
95015
95158
  var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
95016
95159
  var elapsed = ts.timestamp() - start;
95017
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
95160
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
95018
95161
  return {
95019
95162
  close: function () {
95020
- var watchInfo = "DirectoryWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
95163
+ var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95021
95164
  log(watchInfo);
95022
95165
  var start = ts.timestamp();
95023
95166
  watcher.close();
95024
95167
  var elapsed = ts.timestamp() - start;
95025
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
95168
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
95026
95169
  }
95027
95170
  };
95028
95171
  }
@@ -95032,16 +95175,16 @@ var ts;
95032
95175
  for (var _i = 0; _i < arguments.length; _i++) {
95033
95176
  args[_i] = arguments[_i];
95034
95177
  }
95035
- var triggerredInfo = (key === "watchFile" ? "FileWatcher" : "DirectoryWatcher") + ":: Triggered with " + args[0] + " " + (args[1] !== undefined ? args[1] : "") + ":: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
95178
+ var triggerredInfo = "".concat(key === "watchFile" ? "FileWatcher" : "DirectoryWatcher", ":: Triggered with ").concat(args[0], " ").concat(args[1] !== undefined ? args[1] : "", ":: ").concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95036
95179
  log(triggerredInfo);
95037
95180
  var start = ts.timestamp();
95038
95181
  cb.call.apply(cb, __spreadArray([undefined], args, false));
95039
95182
  var elapsed = ts.timestamp() - start;
95040
- log("Elapsed:: " + elapsed + "ms " + triggerredInfo);
95183
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
95041
95184
  }, flags, options, detailInfo1, detailInfo2); };
95042
95185
  }
95043
95186
  function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
95044
- return "WatchInfo: " + file + " " + flags + " " + JSON.stringify(options) + " " + (getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : detailInfo1 + " " + detailInfo2);
95187
+ return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
95045
95188
  }
95046
95189
  }
95047
95190
  ts.getWatchFactory = getWatchFactory;
@@ -95335,12 +95478,12 @@ var ts;
95335
95478
  }
95336
95479
  ts.formatDiagnostics = formatDiagnostics;
95337
95480
  function formatDiagnostic(diagnostic, host) {
95338
- var errorMessage = ts.diagnosticCategoryName(diagnostic) + " TS" + diagnostic.code + ": " + flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) + host.getNewLine();
95481
+ var errorMessage = "".concat(ts.diagnosticCategoryName(diagnostic), " TS").concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())).concat(host.getNewLine());
95339
95482
  if (diagnostic.file) {
95340
95483
  var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character;
95341
95484
  var fileName = diagnostic.file.fileName;
95342
95485
  var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });
95343
- return relativeFileName + "(" + (line + 1) + "," + (character + 1) + "): " + errorMessage;
95486
+ return "".concat(relativeFileName, "(").concat(line + 1, ",").concat(character + 1, "): ") + errorMessage;
95344
95487
  }
95345
95488
  return errorMessage;
95346
95489
  }
@@ -95418,9 +95561,9 @@ var ts;
95418
95561
  var output = "";
95419
95562
  output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);
95420
95563
  output += ":";
95421
- output += color("" + (firstLine + 1), ForegroundColorEscapeSequences.Yellow);
95564
+ output += color("".concat(firstLine + 1), ForegroundColorEscapeSequences.Yellow);
95422
95565
  output += ":";
95423
- output += color("" + (firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
95566
+ output += color("".concat(firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
95424
95567
  return output;
95425
95568
  }
95426
95569
  ts.formatLocation = formatLocation;
@@ -95434,7 +95577,7 @@ var ts;
95434
95577
  output += " - ";
95435
95578
  }
95436
95579
  output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
95437
- output += formatColorAndReset(" TS" + diagnostic.code + ": ", ForegroundColorEscapeSequences.Grey);
95580
+ output += formatColorAndReset(" TS".concat(diagnostic.code, ": "), ForegroundColorEscapeSequences.Grey);
95438
95581
  output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
95439
95582
  if (diagnostic.file) {
95440
95583
  output += host.getNewLine();
@@ -95495,7 +95638,7 @@ var ts;
95495
95638
  var result = void 0;
95496
95639
  var mode = getModeForFileReference(name, containingFileMode);
95497
95640
  var strName = ts.isString(name) ? name : name.fileName.toLowerCase();
95498
- var cacheKey = mode !== undefined ? mode + "|" + strName : strName;
95641
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(strName) : strName;
95499
95642
  if (cache.has(cacheKey)) {
95500
95643
  result = cache.get(cacheKey);
95501
95644
  }
@@ -95590,7 +95733,7 @@ var ts;
95590
95733
  var result = void 0;
95591
95734
  var mode = getModeForResolutionAtIndex(containingFile, i);
95592
95735
  i++;
95593
- var cacheKey = mode !== undefined ? mode + "|" + name : name;
95736
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(name) : name;
95594
95737
  if (cache.has(cacheKey)) {
95595
95738
  result = cache.get(cacheKey);
95596
95739
  }
@@ -95784,7 +95927,6 @@ var ts;
95784
95927
  ts.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,
95785
95928
  ts.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,
95786
95929
  ts.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,
95787
- ts.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body.code,
95788
95930
  ts.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,
95789
95931
  ts.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,
95790
95932
  ts.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,
@@ -96123,6 +96265,34 @@ var ts;
96123
96265
  ts.performance.measure("Program", "beforeProgram", "afterProgram");
96124
96266
  ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
96125
96267
  return program;
96268
+ function addResolutionDiagnostics(list) {
96269
+ if (!list)
96270
+ return;
96271
+ for (var _i = 0, list_3 = list; _i < list_3.length; _i++) {
96272
+ var elem = list_3[_i];
96273
+ programDiagnostics.add(elem);
96274
+ }
96275
+ }
96276
+ function pullDiagnosticsFromCache(names, containingFile) {
96277
+ var _a;
96278
+ if (!moduleResolutionCache)
96279
+ return;
96280
+ var containingFileName = ts.getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory);
96281
+ var containingFileMode = !ts.isString(containingFile) ? containingFile.impliedNodeFormat : undefined;
96282
+ var containingDir = ts.getDirectoryPath(containingFileName);
96283
+ var redirectedReference = getRedirectReferenceForResolution(containingFile);
96284
+ var i = 0;
96285
+ for (var _i = 0, names_4 = names; _i < names_4.length; _i++) {
96286
+ var n = names_4[_i];
96287
+ var mode = typeof n === "string" ? getModeForResolutionAtIndex(containingFile, i) : getModeForFileReference(n, containingFileMode);
96288
+ var name = typeof n === "string" ? n : n.fileName;
96289
+ i++;
96290
+ if (ts.isExternalModuleNameRelative(name))
96291
+ continue;
96292
+ var diags = (_a = moduleResolutionCache.getOrCreateCacheForModuleName(name, mode, redirectedReference).get(containingDir)) === null || _a === void 0 ? void 0 : _a.resolutionDiagnostics;
96293
+ addResolutionDiagnostics(diags);
96294
+ }
96295
+ }
96126
96296
  function resolveModuleNamesWorker(moduleNames, containingFile, reusedNames) {
96127
96297
  if (!moduleNames.length)
96128
96298
  return ts.emptyArray;
@@ -96134,6 +96304,7 @@ var ts;
96134
96304
  ts.performance.mark("afterResolveModule");
96135
96305
  ts.performance.measure("ResolveModule", "beforeResolveModule", "afterResolveModule");
96136
96306
  ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();
96307
+ pullDiagnosticsFromCache(moduleNames, containingFile);
96137
96308
  return result;
96138
96309
  }
96139
96310
  function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFile) {
@@ -97478,7 +97649,7 @@ var ts;
97478
97649
  path += (i === 2 ? "/" : "-") + components[i];
97479
97650
  i++;
97480
97651
  }
97481
- var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_" + libFileName + "__.ts");
97652
+ var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_".concat(libFileName, "__.ts"));
97482
97653
  var localOverrideModuleResult = ts.resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
97483
97654
  if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
97484
97655
  return localOverrideModuleResult.resolvedModule.resolvedFileName;
@@ -98232,10 +98403,10 @@ var ts;
98232
98403
  }
98233
98404
  function directoryExistsIfProjectReferenceDeclDir(dir) {
98234
98405
  var dirPath = host.toPath(dir);
98235
- var dirPathWithTrailingDirectorySeparator = "" + dirPath + ts.directorySeparator;
98406
+ var dirPathWithTrailingDirectorySeparator = "".concat(dirPath).concat(ts.directorySeparator);
98236
98407
  return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||
98237
98408
  ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||
98238
- ts.startsWith(dirPath, declDirPath + "/"); });
98409
+ ts.startsWith(dirPath, "".concat(declDirPath, "/")); });
98239
98410
  }
98240
98411
  function handleDirectoryCouldBeSymlink(directory) {
98241
98412
  var _a;
@@ -98283,7 +98454,7 @@ var ts;
98283
98454
  var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));
98284
98455
  if (isFile && result) {
98285
98456
  var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());
98286
- symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "" + symlinkedDirectory.real + absolutePath.replace(new RegExp(directoryPath, "i"), ""));
98457
+ symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "".concat(symlinkedDirectory.real).concat(absolutePath.replace(new RegExp(directoryPath, "i"), "")));
98287
98458
  }
98288
98459
  return result;
98289
98460
  }) || false;
@@ -98661,7 +98832,7 @@ var ts;
98661
98832
  var emitOutput_1 = getFileEmitOutput(programOfThisState, sourceFile, true, cancellationToken, undefined, true);
98662
98833
  var firstDts_1 = ts.firstOrUndefined(emitOutput_1.outputFiles);
98663
98834
  if (firstDts_1) {
98664
- ts.Debug.assert(ts.isDeclarationFileName(firstDts_1.name), "File extension for signature expected to be dts", function () { return "Found: " + ts.getAnyExtensionFromPath(firstDts_1.name) + " for " + firstDts_1.name + ":: All output files: " + JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; })); });
98835
+ ts.Debug.assert(ts.isDeclarationFileName(firstDts_1.name), "File extension for signature expected to be dts", function () { return "Found: ".concat(ts.getAnyExtensionFromPath(firstDts_1.name), " for ").concat(firstDts_1.name, ":: All output files: ").concat(JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; }))); });
98665
98836
  latestSignature = (computeHash || ts.generateDjb2Hash)(firstDts_1.text);
98666
98837
  if (exportedModulesMapCache && latestSignature !== prevSignature) {
98667
98838
  updateExportedModules(sourceFile, emitOutput_1.exportedModulesFromDeclarationEmit, exportedModulesMapCache);
@@ -99053,7 +99224,7 @@ var ts;
99053
99224
  ts.BuilderState.updateShapeSignature(state, ts.Debug.checkDefined(state.program), affectedFile, ts.Debug.checkDefined(state.currentAffectedFilesSignatures), cancellationToken, computeHash, state.currentAffectedFilesExportedModulesMap);
99054
99225
  return;
99055
99226
  }
99056
- ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: " + affectedFile.fileName);
99227
+ ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: ".concat(affectedFile.fileName));
99057
99228
  if (state.compilerOptions.assumeChangesOnlyAffectDirectDependencies)
99058
99229
  return;
99059
99230
  handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, host);
@@ -99936,8 +100107,8 @@ var ts;
99936
100107
  !!redirectedReference;
99937
100108
  var seenNamesInFile = ts.createModeAwareCache();
99938
100109
  var i = 0;
99939
- for (var _i = 0, names_4 = names; _i < names_4.length; _i++) {
99940
- var entry = names_4[_i];
100110
+ for (var _i = 0, names_5 = names; _i < names_5.length; _i++) {
100111
+ var entry = names_5[_i];
99941
100112
  var name = ts.isString(entry) ? entry : entry.fileName.toLowerCase();
99942
100113
  var mode = !ts.isString(entry) ? ts.getModeForFileReference(entry, containingSourceFileMode) :
99943
100114
  containingSourceFile ? ts.getModeForResolutionAtIndex(containingSourceFile, i) : undefined;
@@ -100071,7 +100242,7 @@ var ts;
100071
100242
  failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
100072
100243
  var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);
100073
100244
  var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);
100074
- ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: " + failedLookupLocation + " failedLookupLocationPath: " + failedLookupLocationPath);
100245
+ ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: ".concat(failedLookupLocation, " failedLookupLocationPath: ").concat(failedLookupLocationPath));
100075
100246
  if (failedLookupPathSplit.length > rootSplitLength + 1) {
100076
100247
  return {
100077
100248
  dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),
@@ -100463,14 +100634,14 @@ var ts;
100463
100634
  if (options === void 0) { options = {}; }
100464
100635
  var info = getInfo(importingSourceFile.path, host);
100465
100636
  var modulePaths = getAllModulePaths(importingSourceFile.path, nodeModulesFileName, host, preferences, options);
100466
- return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, true, options.overrideImportMode); });
100637
+ return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, preferences, true, options.overrideImportMode); });
100467
100638
  }
100468
100639
  moduleSpecifiers_1.getNodeModulesPackageName = getNodeModulesPackageName;
100469
100640
  function getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, preferences, userPreferences, options) {
100470
100641
  if (options === void 0) { options = {}; }
100471
100642
  var info = getInfo(importingSourceFileName, host);
100472
100643
  var modulePaths = getAllModulePaths(importingSourceFileName, toFileName, host, userPreferences, options);
100473
- return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, undefined, options.overrideImportMode); }) ||
100644
+ return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, undefined, options.overrideImportMode); }) ||
100474
100645
  getLocalModuleSpecifier(toFileName, info, compilerOptions, host, preferences);
100475
100646
  }
100476
100647
  function tryGetModuleSpecifiersFromCache(moduleSymbol, importingSourceFile, host, userPreferences, options) {
@@ -100536,7 +100707,7 @@ var ts;
100536
100707
  var relativeSpecifiers;
100537
100708
  for (var _i = 0, modulePaths_1 = modulePaths; _i < modulePaths_1.length; _i++) {
100538
100709
  var modulePath = modulePaths_1[_i];
100539
- var specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, undefined, options.overrideImportMode);
100710
+ var specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, undefined, options.overrideImportMode);
100540
100711
  nodeModulesSpecifiers = ts.append(nodeModulesSpecifiers, specifier);
100541
100712
  if (specifier && modulePath.isRedirect) {
100542
100713
  return nodeModulesSpecifiers;
@@ -100867,7 +101038,7 @@ var ts;
100867
101038
  ? removeExtensionAndIndexPostFix(relativePath, ending, compilerOptions)
100868
101039
  : ts.removeFileExtension(relativePath);
100869
101040
  }
100870
- function tryGetModuleNameAsNodeModule(_a, _b, importingSourceFile, host, options, packageNameOnly, overrideMode) {
101041
+ function tryGetModuleNameAsNodeModule(_a, _b, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {
100871
101042
  var path = _a.path, isRedirect = _a.isRedirect;
100872
101043
  var getCanonicalFileName = _b.getCanonicalFileName, sourceDirectory = _b.sourceDirectory;
100873
101044
  if (!host.fileExists || !host.readFile) {
@@ -100880,8 +101051,9 @@ var ts;
100880
101051
  var moduleSpecifier = path;
100881
101052
  var isPackageRootPath = false;
100882
101053
  if (!packageNameOnly) {
101054
+ var preferences = getPreferences(host, userPreferences, options, importingSourceFile);
100883
101055
  var packageRootIndex = parts.packageRootIndex;
100884
- var moduleFileNameForExtensionless = void 0;
101056
+ var moduleFileName = void 0;
100885
101057
  while (true) {
100886
101058
  var _c = tryDirectoryWithPackageJson(packageRootIndex), moduleFileToTry = _c.moduleFileToTry, packageRootPath = _c.packageRootPath, blockedByExports = _c.blockedByExports, verbatimFromExports = _c.verbatimFromExports;
100887
101059
  if (ts.getEmitModuleResolutionKind(options) !== ts.ModuleResolutionKind.Classic) {
@@ -100897,11 +101069,11 @@ var ts;
100897
101069
  isPackageRootPath = true;
100898
101070
  break;
100899
101071
  }
100900
- if (!moduleFileNameForExtensionless)
100901
- moduleFileNameForExtensionless = moduleFileToTry;
101072
+ if (!moduleFileName)
101073
+ moduleFileName = moduleFileToTry;
100902
101074
  packageRootIndex = path.indexOf(ts.directorySeparator, packageRootIndex + 1);
100903
101075
  if (packageRootIndex === -1) {
100904
- moduleSpecifier = getExtensionlessFileName(moduleFileNameForExtensionless);
101076
+ moduleSpecifier = removeExtensionAndIndexPostFix(moduleFileName, preferences.ending, options, host);
100905
101077
  break;
100906
101078
  }
100907
101079
  }
@@ -100950,7 +101122,7 @@ var ts;
100950
101122
  moduleFileToTry = ts.combinePaths(packageRootPath, fromPaths);
100951
101123
  }
100952
101124
  }
100953
- var mainFileRelative = packageJsonContent.typings || packageJsonContent.types || packageJsonContent.main;
101125
+ var mainFileRelative = packageJsonContent.typings || packageJsonContent.types || packageJsonContent.main || "index.js";
100954
101126
  if (ts.isString(mainFileRelative)) {
100955
101127
  var mainExportFile = ts.toPath(mainFileRelative, packageRootPath, getCanonicalFileName);
100956
101128
  if (ts.removeFileExtension(mainExportFile) === ts.removeFileExtension(getCanonicalFileName(moduleFileToTry))) {
@@ -100958,14 +101130,13 @@ var ts;
100958
101130
  }
100959
101131
  }
100960
101132
  }
100961
- return { moduleFileToTry: moduleFileToTry };
100962
- }
100963
- function getExtensionlessFileName(path) {
100964
- var fullModulePathWithoutExtension = ts.removeFileExtension(path);
100965
- if (getCanonicalFileName(fullModulePathWithoutExtension.substring(parts.fileNameIndex)) === "/index" && !tryGetAnyFileFromPath(host, fullModulePathWithoutExtension.substring(0, parts.fileNameIndex))) {
100966
- return fullModulePathWithoutExtension.substring(0, parts.fileNameIndex);
101133
+ else {
101134
+ var fileName = getCanonicalFileName(moduleFileToTry.substring(parts.packageRootIndex + 1));
101135
+ if (fileName === "index.d.ts" || fileName === "index.js" || fileName === "index.ts" || fileName === "index.tsx") {
101136
+ return { moduleFileToTry: moduleFileToTry, packageRootPath: packageRootPath };
101137
+ }
100967
101138
  }
100968
- return fullModulePathWithoutExtension;
101139
+ return { moduleFileToTry: moduleFileToTry };
100969
101140
  }
100970
101141
  }
100971
101142
  function tryGetAnyFileFromPath(host, path) {
@@ -100986,15 +101157,21 @@ var ts;
100986
101157
  return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
100987
101158
  });
100988
101159
  }
100989
- function removeExtensionAndIndexPostFix(fileName, ending, options) {
101160
+ function removeExtensionAndIndexPostFix(fileName, ending, options, host) {
100990
101161
  if (ts.fileExtensionIsOneOf(fileName, [".json", ".mjs", ".cjs"]))
100991
101162
  return fileName;
100992
101163
  var noExtension = ts.removeFileExtension(fileName);
101164
+ if (fileName === noExtension)
101165
+ return fileName;
100993
101166
  if (ts.fileExtensionIsOneOf(fileName, [".d.mts", ".mts", ".d.cts", ".cts"]))
100994
101167
  return noExtension + getJSExtensionForFile(fileName, options);
100995
101168
  switch (ending) {
100996
101169
  case 0:
100997
- return ts.removeSuffix(noExtension, "/index");
101170
+ var withoutIndex = ts.removeSuffix(noExtension, "/index");
101171
+ if (host && withoutIndex !== noExtension && tryGetAnyFileFromPath(host, withoutIndex)) {
101172
+ return noExtension;
101173
+ }
101174
+ return withoutIndex;
100998
101175
  case 1:
100999
101176
  return noExtension;
101000
101177
  case 2:
@@ -101005,7 +101182,7 @@ var ts;
101005
101182
  }
101006
101183
  function getJSExtensionForFile(fileName, options) {
101007
101184
  var _a;
101008
- return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension " + ts.extensionFromPath(fileName) + " is unsupported:: FileName:: " + fileName);
101185
+ return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
101009
101186
  }
101010
101187
  function tryGetJSExtensionForFile(fileName, options) {
101011
101188
  var ext = ts.tryGetExtensionFromPath(fileName);
@@ -101095,8 +101272,8 @@ var ts;
101095
101272
  return pretty ?
101096
101273
  function (diagnostic, newLine, options) {
101097
101274
  clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
101098
- var output = "[" + ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] ";
101099
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (newLine + newLine);
101275
+ var output = "[".concat(ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ");
101276
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(newLine + newLine);
101100
101277
  system.write(output);
101101
101278
  } :
101102
101279
  function (diagnostic, newLine, options) {
@@ -101104,8 +101281,8 @@ var ts;
101104
101281
  if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
101105
101282
  output += newLine;
101106
101283
  }
101107
- output += getLocaleTimeString(system) + " - ";
101108
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + getPlainDiagnosticFollowingNewLines(diagnostic, newLine);
101284
+ output += "".concat(getLocaleTimeString(system), " - ");
101285
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(getPlainDiagnosticFollowingNewLines(diagnostic, newLine));
101109
101286
  system.write(output);
101110
101287
  };
101111
101288
  }
@@ -101127,7 +101304,7 @@ var ts;
101127
101304
  .map(function (errorDiagnostic) {
101128
101305
  if (errorDiagnostic.file === undefined)
101129
101306
  return;
101130
- return "" + errorDiagnostic.file.fileName;
101307
+ return "".concat(errorDiagnostic.file.fileName);
101131
101308
  });
101132
101309
  return filesInError.map(function (fileName) {
101133
101310
  var diagnosticForFileName = ts.find(diagnostics, function (diagnostic) {
@@ -101160,7 +101337,7 @@ var ts;
101160
101337
  if (errorCount === 0)
101161
101338
  return "";
101162
101339
  var nonNilFiles = filesInError.filter(function (fileInError) { return fileInError !== undefined; });
101163
- var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return fileInError.fileName + ":" + fileInError.line; })
101340
+ var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return "".concat(fileInError.fileName, ":").concat(fileInError.line); })
101164
101341
  .filter(function (value, index, self) { return self.indexOf(value) === index; });
101165
101342
  var firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
101166
101343
  var d = errorCount === 1 ?
@@ -101173,7 +101350,7 @@ var ts;
101173
101350
  ts.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 :
101174
101351
  ts.Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length === 1 ? firstFileReference : distinctFileNamesWithLines.length);
101175
101352
  var suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : "";
101176
- return "" + newLine + ts.flattenDiagnosticMessageText(d.messageText, newLine) + newLine + newLine + suffix;
101353
+ return "".concat(newLine).concat(ts.flattenDiagnosticMessageText(d.messageText, newLine)).concat(newLine).concat(newLine).concat(suffix);
101177
101354
  }
101178
101355
  ts.getErrorSummaryText = getErrorSummaryText;
101179
101356
  function createTabularErrorsDisplay(filesInError, host) {
@@ -101196,7 +101373,7 @@ var ts;
101196
101373
  " ".repeat(leftPaddingGoal - errorCountDigitsLength)
101197
101374
  : "";
101198
101375
  var fileRef = prettyPathForFileError(file, host.getCurrentDirectory());
101199
- tabularData += "" + leftPadding + errorCount + " " + fileRef + "\n";
101376
+ tabularData += "".concat(leftPadding).concat(errorCount, " ").concat(fileRef, "\n");
101200
101377
  });
101201
101378
  return tabularData;
101202
101379
  }
@@ -101223,9 +101400,9 @@ var ts;
101223
101400
  var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };
101224
101401
  for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {
101225
101402
  var file = _c[_i];
101226
- write("" + toFileName(file, relativeFileName));
101227
- (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" " + fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText); });
101228
- (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" " + d.messageText); });
101403
+ write("".concat(toFileName(file, relativeFileName)));
101404
+ (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" ".concat(fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText)); });
101405
+ (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" ".concat(d.messageText)); });
101229
101406
  }
101230
101407
  }
101231
101408
  ts.explainFiles = explainFiles;
@@ -101263,7 +101440,7 @@ var ts;
101263
101440
  if (isJsonFile && !ts.endsWith(includeSpec, ".json"))
101264
101441
  return false;
101265
101442
  var pattern = ts.getPatternFromSpec(includeSpec, basePath, "files");
101266
- return !!pattern && ts.getRegexFromPattern("(" + pattern + ")$", useCaseSensitiveFileNames).test(fileName);
101443
+ return !!pattern && ts.getRegexFromPattern("(".concat(pattern, ")$"), useCaseSensitiveFileNames).test(fileName);
101267
101444
  });
101268
101445
  }
101269
101446
  ts.getMatchedIncludeSpec = getMatchedIncludeSpec;
@@ -101272,7 +101449,7 @@ var ts;
101272
101449
  var options = program.getCompilerOptions();
101273
101450
  if (ts.isReferencedFile(reason)) {
101274
101451
  var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);
101275
- var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"" + referenceLocation.text + "\"";
101452
+ var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"".concat(referenceLocation.text, "\"");
101276
101453
  var message = void 0;
101277
101454
  ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, "Only synthetic references are imports");
101278
101455
  switch (reason.kind) {
@@ -101383,7 +101560,7 @@ var ts;
101383
101560
  var currentDir_1 = program.getCurrentDirectory();
101384
101561
  ts.forEach(emittedFiles, function (file) {
101385
101562
  var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);
101386
- write("TSFILE: " + filepath);
101563
+ write("TSFILE: ".concat(filepath));
101387
101564
  });
101388
101565
  listFiles(program, write);
101389
101566
  }
@@ -101693,7 +101870,7 @@ var ts;
101693
101870
  }
101694
101871
  var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;
101695
101872
  var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
101696
- writeLog("Current directory: " + currentDirectory + " CaseSensitiveFileNames: " + useCaseSensitiveFileNames);
101873
+ writeLog("Current directory: ".concat(currentDirectory, " CaseSensitiveFileNames: ").concat(useCaseSensitiveFileNames));
101697
101874
  var configFileWatcher;
101698
101875
  if (configFileName) {
101699
101876
  configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);
@@ -101840,10 +102017,10 @@ var ts;
101840
102017
  }
101841
102018
  function createNewProgram(hasInvalidatedResolution) {
101842
102019
  writeLog("CreatingProgramWith::");
101843
- writeLog(" roots: " + JSON.stringify(rootFileNames));
101844
- writeLog(" options: " + JSON.stringify(compilerOptions));
102020
+ writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
102021
+ writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
101845
102022
  if (projectReferences)
101846
- writeLog(" projectReferences: " + JSON.stringify(projectReferences));
102023
+ writeLog(" projectReferences: ".concat(JSON.stringify(projectReferences)));
101847
102024
  var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();
101848
102025
  hasChangedCompilerOptions = false;
101849
102026
  hasChangedConfigFileParsingErrors = false;
@@ -101985,7 +102162,7 @@ var ts;
101985
102162
  return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
101986
102163
  }
101987
102164
  var pending = clearInvalidateResolutionsOfFailedLookupLocations();
101988
- writeLog("Scheduling invalidateFailedLookup" + (pending ? ", Cancelled earlier one" : ""));
102165
+ writeLog("Scheduling invalidateFailedLookup".concat(pending ? ", Cancelled earlier one" : ""));
101989
102166
  timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
101990
102167
  }
101991
102168
  function invalidateResolutionsOfFailedLookup() {
@@ -102041,7 +102218,7 @@ var ts;
102041
102218
  synchronizeProgram();
102042
102219
  }
102043
102220
  function reloadConfigFile() {
102044
- writeLog("Reloading config file: " + configFileName);
102221
+ writeLog("Reloading config file: ".concat(configFileName));
102045
102222
  reloadLevel = ts.ConfigFileProgramReloadLevel.None;
102046
102223
  if (cachedDirectoryStructureHost) {
102047
102224
  cachedDirectoryStructureHost.clearCache();
@@ -102079,7 +102256,7 @@ var ts;
102079
102256
  return config.parsedCommandLine;
102080
102257
  }
102081
102258
  }
102082
- writeLog("Loading config file: " + configFileName);
102259
+ writeLog("Loading config file: ".concat(configFileName));
102083
102260
  var parsedCommandLine = host.getParsedCommandLine ?
102084
102261
  host.getParsedCommandLine(configFileName) :
102085
102262
  getParsedCommandLineFromConfigFileHost(configFileName);
@@ -102329,8 +102506,8 @@ var ts;
102329
102506
  ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;
102330
102507
  function createBuilderStatusReporter(system, pretty) {
102331
102508
  return function (diagnostic) {
102332
- var output = pretty ? "[" + ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] " : ts.getLocaleTimeString(system) + " - ";
102333
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (system.newLine + system.newLine);
102509
+ var output = pretty ? "[".concat(ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(ts.getLocaleTimeString(system), " - ");
102510
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(system.newLine + system.newLine);
102334
102511
  system.write(output);
102335
102512
  };
102336
102513
  }
@@ -103073,7 +103250,7 @@ var ts;
103073
103250
  function listEmittedFile(_a, proj, file) {
103074
103251
  var write = _a.write;
103075
103252
  if (write && proj.options.listEmittedFiles) {
103076
- write("TSFILE: " + file);
103253
+ write("TSFILE: ".concat(file));
103077
103254
  }
103078
103255
  }
103079
103256
  function getOldProgram(_a, proj, parsed) {
@@ -103102,7 +103279,7 @@ var ts;
103102
103279
  function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {
103103
103280
  var canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !ts.outFile(program.getCompilerOptions());
103104
103281
  reportAndStoreErrors(state, resolvedPath, diagnostics);
103105
- state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType + " errors" });
103282
+ state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: "".concat(errorType, " errors") });
103106
103283
  if (canEmitBuildInfo)
103107
103284
  return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };
103108
103285
  afterProgramDone(state, program, config);
@@ -103128,7 +103305,7 @@ var ts;
103128
103305
  if (!host.fileExists(inputFile)) {
103129
103306
  return {
103130
103307
  type: ts.UpToDateStatusType.Unbuildable,
103131
- reason: inputFile + " does not exist"
103308
+ reason: "".concat(inputFile, " does not exist")
103132
103309
  };
103133
103310
  }
103134
103311
  if (!force) {
@@ -103453,7 +103630,7 @@ var ts;
103453
103630
  }
103454
103631
  }
103455
103632
  if (filesToDelete) {
103456
- reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * " + f; }).join(""));
103633
+ reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * ".concat(f); }).join(""));
103457
103634
  }
103458
103635
  return ts.ExitStatus.Success;
103459
103636
  }
@@ -103803,7 +103980,7 @@ var ts;
103803
103980
  };
103804
103981
  }
103805
103982
  function bold(str) {
103806
- return "\u001B[1m" + str + "\u001B[22m";
103983
+ return "\u001B[1m".concat(str, "\u001B[22m");
103807
103984
  }
103808
103985
  var isWindows = sys.getEnvironmentVariable("OS") && ts.stringContains(sys.getEnvironmentVariable("OS").toLowerCase(), "windows");
103809
103986
  var isWindowsTerminal = sys.getEnvironmentVariable("WT_SESSION");
@@ -103812,19 +103989,19 @@ var ts;
103812
103989
  if (isWindows && !isWindowsTerminal && !isVSCode) {
103813
103990
  return brightWhite(str);
103814
103991
  }
103815
- return "\u001B[94m" + str + "\u001B[39m";
103992
+ return "\u001B[94m".concat(str, "\u001B[39m");
103816
103993
  }
103817
103994
  var supportsRicherColors = sys.getEnvironmentVariable("COLORTERM") === "truecolor" || sys.getEnvironmentVariable("TERM") === "xterm-256color";
103818
103995
  function blueBackground(str) {
103819
103996
  if (supportsRicherColors) {
103820
- return "\u001B[48;5;68m" + str + "\u001B[39;49m";
103997
+ return "\u001B[48;5;68m".concat(str, "\u001B[39;49m");
103821
103998
  }
103822
103999
  else {
103823
- return "\u001B[44m" + str + "\u001B[39;49m";
104000
+ return "\u001B[44m".concat(str, "\u001B[39;49m");
103824
104001
  }
103825
104002
  }
103826
104003
  function brightWhite(str) {
103827
- return "\u001B[97m" + str + "\u001B[39m";
104004
+ return "\u001B[97m".concat(str, "\u001B[39m");
103828
104005
  }
103829
104006
  return {
103830
104007
  bold: bold,
@@ -103834,7 +104011,7 @@ var ts;
103834
104011
  };
103835
104012
  }
103836
104013
  function getDisplayNameTextOfOption(option) {
103837
- return "--" + option.name + (option.shortName ? ", -" + option.shortName : "");
104014
+ return "--".concat(option.name).concat(option.shortName ? ", -".concat(option.shortName) : "");
103838
104015
  }
103839
104016
  function generateOptionOutput(sys, option, rightAlignOfLeft, leftAlignOfRight) {
103840
104017
  var _a, _b;
@@ -103871,13 +104048,13 @@ var ts;
103871
104048
  text.push(sys.newLine);
103872
104049
  if (showAdditionalInfoOutput(valueCandidates, option)) {
103873
104050
  if (valueCandidates) {
103874
- text.push(valueCandidates.valueType + " " + valueCandidates.possibleValues);
104051
+ text.push("".concat(valueCandidates.valueType, " ").concat(valueCandidates.possibleValues));
103875
104052
  }
103876
104053
  if (defaultValueDescription) {
103877
104054
  if (valueCandidates)
103878
104055
  text.push(sys.newLine);
103879
104056
  var diagType = ts.getDiagnosticText(ts.Diagnostics.default_Colon);
103880
- text.push(diagType + " " + defaultValueDescription);
104057
+ text.push("".concat(diagType, " ").concat(defaultValueDescription));
103881
104058
  }
103882
104059
  text.push(sys.newLine);
103883
104060
  }
@@ -103926,7 +104103,7 @@ var ts;
103926
104103
  }
103927
104104
  var curRight = remainRight.substr(0, rightCharacterNumber);
103928
104105
  remainRight = remainRight.slice(rightCharacterNumber);
103929
- res.push("" + curLeft + curRight);
104106
+ res.push("".concat(curLeft).concat(curRight));
103930
104107
  isFirstLine = false;
103931
104108
  }
103932
104109
  return res;
@@ -104027,7 +104204,7 @@ var ts;
104027
104204
  categoryMap.set(curCategory, optionsOfCurCategory);
104028
104205
  }
104029
104206
  categoryMap.forEach(function (value, key) {
104030
- res.push("### " + key + sys.newLine + sys.newLine);
104207
+ res.push("### ".concat(key).concat(sys.newLine).concat(sys.newLine));
104031
104208
  res = __spreadArray(__spreadArray([], res, true), generateGroupOptionOutput(sys, value), true);
104032
104209
  });
104033
104210
  if (afterOptionsDescription) {
@@ -104037,7 +104214,7 @@ var ts;
104037
104214
  }
104038
104215
  function printEasyHelp(sys, simpleOptions) {
104039
104216
  var colors = createColors(sys);
104040
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
104217
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
104041
104218
  output.push(colors.bold(ts.getDiagnosticText(ts.Diagnostics.COMMON_COMMANDS)) + sys.newLine + sys.newLine);
104042
104219
  example("tsc", ts.Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
104043
104220
  example("tsc app.ts util.ts", ts.Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
@@ -104063,7 +104240,7 @@ var ts;
104063
104240
  }
104064
104241
  }
104065
104242
  function printAllHelp(sys, compilerOptions, buildOptions, watchOptions) {
104066
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
104243
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
104067
104244
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.ALL_COMPILER_OPTIONS), compilerOptions, true, undefined, ts.formatMessage(undefined, ts.Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc")), true);
104068
104245
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.WATCH_OPTIONS), watchOptions, false, ts.getDiagnosticText(ts.Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon)), true);
104069
104246
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
@@ -104073,7 +104250,7 @@ var ts;
104073
104250
  }
104074
104251
  }
104075
104252
  function printBuildHelp(sys, buildOptions) {
104076
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
104253
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
104077
104254
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
104078
104255
  for (var _i = 0, output_3 = output; _i < output_3.length; _i++) {
104079
104256
  var line = output_3[_i];
@@ -104454,7 +104631,7 @@ var ts;
104454
104631
  reportCountStatistic("Subtype cache size", caches.subtype);
104455
104632
  reportCountStatistic("Strict subtype cache size", caches.strictSubtype);
104456
104633
  if (isPerformanceEnabled) {
104457
- ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic(name + " time", duration); });
104634
+ ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic("".concat(name, " time"), duration); });
104458
104635
  }
104459
104636
  }
104460
104637
  else if (isPerformanceEnabled) {
@@ -104525,7 +104702,7 @@ var ts;
104525
104702
  // This file actually uses arguments passed on commandline and executes it
104526
104703
  ts.Debug.loggingHost = {
104527
104704
  log: function (_level, s) {
104528
- ts.sys.write("" + (s || "") + ts.sys.newLine);
104705
+ ts.sys.write("".concat(s || "").concat(ts.sys.newLine));
104529
104706
  }
104530
104707
  };
104531
104708
  if (ts.Debug.isDebugging) {