wp-typia 0.23.1 → 0.24.0

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.
@@ -159,16 +159,16 @@ var require_util = __commonJS((exports) => {
159
159
  }
160
160
  exports.urlGenerate = urlGenerate;
161
161
  function normalize(aPath) {
162
- var path4 = aPath;
162
+ var path5 = aPath;
163
163
  var url = urlParse(aPath);
164
164
  if (url) {
165
165
  if (!url.path) {
166
166
  return aPath;
167
167
  }
168
- path4 = url.path;
168
+ path5 = url.path;
169
169
  }
170
- var isAbsolute = exports.isAbsolute(path4);
171
- var parts = path4.split(/\/+/);
170
+ var isAbsolute = exports.isAbsolute(path5);
171
+ var parts = path5.split(/\/+/);
172
172
  for (var part, up = 0, i = parts.length - 1;i >= 0; i--) {
173
173
  part = parts[i];
174
174
  if (part === ".") {
@@ -185,15 +185,15 @@ var require_util = __commonJS((exports) => {
185
185
  }
186
186
  }
187
187
  }
188
- path4 = parts.join("/");
189
- if (path4 === "") {
190
- path4 = isAbsolute ? "/" : ".";
188
+ path5 = parts.join("/");
189
+ if (path5 === "") {
190
+ path5 = isAbsolute ? "/" : ".";
191
191
  }
192
192
  if (url) {
193
- url.path = path4;
193
+ url.path = path5;
194
194
  return urlGenerate(url);
195
195
  }
196
- return path4;
196
+ return path5;
197
197
  }
198
198
  exports.normalize = normalize;
199
199
  function join(aRoot, aPath) {
@@ -1743,12 +1743,12 @@ var require_buffer_from = __commonJS((exports, module) => {
1743
1743
  // ../../node_modules/.bun/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js
1744
1744
  var require_source_map_support = __commonJS((exports, module) => {
1745
1745
  var SourceMapConsumer = require_source_map().SourceMapConsumer;
1746
- var path4 = __require("path");
1747
- var fs2;
1746
+ var path5 = __require("path");
1747
+ var fs3;
1748
1748
  try {
1749
- fs2 = __require("fs");
1750
- if (!fs2.existsSync || !fs2.readFileSync) {
1751
- fs2 = null;
1749
+ fs3 = __require("fs");
1750
+ if (!fs3.existsSync || !fs3.readFileSync) {
1751
+ fs3 = null;
1752
1752
  }
1753
1753
  } catch (err) {}
1754
1754
  var bufferFrom = require_buffer_from();
@@ -1803,43 +1803,43 @@ var require_source_map_support = __commonJS((exports, module) => {
1803
1803
  };
1804
1804
  }
1805
1805
  var retrieveFile = handlerExec(retrieveFileHandlers);
1806
- retrieveFileHandlers.push(function(path5) {
1807
- path5 = path5.trim();
1808
- if (/^file:/.test(path5)) {
1809
- path5 = path5.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
1806
+ retrieveFileHandlers.push(function(path6) {
1807
+ path6 = path6.trim();
1808
+ if (/^file:/.test(path6)) {
1809
+ path6 = path6.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
1810
1810
  return drive ? "" : "/";
1811
1811
  });
1812
1812
  }
1813
- if (path5 in fileContentsCache) {
1814
- return fileContentsCache[path5];
1813
+ if (path6 in fileContentsCache) {
1814
+ return fileContentsCache[path6];
1815
1815
  }
1816
1816
  var contents = "";
1817
1817
  try {
1818
- if (!fs2) {
1818
+ if (!fs3) {
1819
1819
  var xhr = new XMLHttpRequest;
1820
- xhr.open("GET", path5, false);
1820
+ xhr.open("GET", path6, false);
1821
1821
  xhr.send(null);
1822
1822
  if (xhr.readyState === 4 && xhr.status === 200) {
1823
1823
  contents = xhr.responseText;
1824
1824
  }
1825
- } else if (fs2.existsSync(path5)) {
1826
- contents = fs2.readFileSync(path5, "utf8");
1825
+ } else if (fs3.existsSync(path6)) {
1826
+ contents = fs3.readFileSync(path6, "utf8");
1827
1827
  }
1828
1828
  } catch (er) {}
1829
- return fileContentsCache[path5] = contents;
1829
+ return fileContentsCache[path6] = contents;
1830
1830
  });
1831
1831
  function supportRelativeURL(file, url) {
1832
1832
  if (!file)
1833
1833
  return url;
1834
- var dir = path4.dirname(file);
1834
+ var dir = path5.dirname(file);
1835
1835
  var match = /^\w+:\/\/[^\/]*/.exec(dir);
1836
1836
  var protocol = match ? match[0] : "";
1837
1837
  var startPath = dir.slice(protocol.length);
1838
1838
  if (protocol && /^\/\w\:/.test(startPath)) {
1839
1839
  protocol += "/";
1840
- return protocol + path4.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
1840
+ return protocol + path5.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
1841
1841
  }
1842
- return protocol + path4.resolve(dir.slice(protocol.length), url);
1842
+ return protocol + path5.resolve(dir.slice(protocol.length), url);
1843
1843
  }
1844
1844
  function retrieveSourceMapURL(source) {
1845
1845
  var fileData;
@@ -2087,9 +2087,9 @@ var require_source_map_support = __commonJS((exports, module) => {
2087
2087
  var line = +match[2];
2088
2088
  var column = +match[3];
2089
2089
  var contents = fileContentsCache[source];
2090
- if (!contents && fs2 && fs2.existsSync(source)) {
2090
+ if (!contents && fs3 && fs3.existsSync(source)) {
2091
2091
  try {
2092
- contents = fs2.readFileSync(source, "utf8");
2092
+ contents = fs3.readFileSync(source, "utf8");
2093
2093
  } catch (er) {
2094
2094
  contents = "";
2095
2095
  }
@@ -5885,10 +5885,10 @@ var require_typescript = __commonJS((exports, module) => {
5885
5885
  function and(f, g) {
5886
5886
  return (arg) => f(arg) && g(arg);
5887
5887
  }
5888
- function or(...fs2) {
5888
+ function or(...fs3) {
5889
5889
  return (...args) => {
5890
5890
  let lastResult;
5891
- for (const f of fs2) {
5891
+ for (const f of fs3) {
5892
5892
  lastResult = f(...args);
5893
5893
  if (lastResult) {
5894
5894
  return lastResult;
@@ -7342,7 +7342,7 @@ ${lanes.join(`
7342
7342
  var tracing;
7343
7343
  var tracingEnabled;
7344
7344
  ((tracingEnabled2) => {
7345
- let fs2;
7345
+ let fs3;
7346
7346
  let traceCount = 0;
7347
7347
  let traceFd = 0;
7348
7348
  let mode;
@@ -7351,9 +7351,9 @@ ${lanes.join(`
7351
7351
  const legend = [];
7352
7352
  function startTracing2(tracingMode, traceDir, configFilePath) {
7353
7353
  Debug.assert(!tracing, "Tracing already started");
7354
- if (fs2 === undefined) {
7354
+ if (fs3 === undefined) {
7355
7355
  try {
7356
- fs2 = __require("fs");
7356
+ fs3 = __require("fs");
7357
7357
  } catch (e) {
7358
7358
  throw new Error(`tracing requires having fs
7359
7359
  (original error: ${e.message || e})`);
@@ -7364,8 +7364,8 @@ ${lanes.join(`
7364
7364
  if (legendPath === undefined) {
7365
7365
  legendPath = combinePaths(traceDir, "legend.json");
7366
7366
  }
7367
- if (!fs2.existsSync(traceDir)) {
7368
- fs2.mkdirSync(traceDir, { recursive: true });
7367
+ if (!fs3.existsSync(traceDir)) {
7368
+ fs3.mkdirSync(traceDir, { recursive: true });
7369
7369
  }
7370
7370
  const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``;
7371
7371
  const tracePath = combinePaths(traceDir, `trace${countPart}.json`);
@@ -7375,10 +7375,10 @@ ${lanes.join(`
7375
7375
  tracePath,
7376
7376
  typesPath
7377
7377
  });
7378
- traceFd = fs2.openSync(tracePath, "w");
7378
+ traceFd = fs3.openSync(tracePath, "w");
7379
7379
  tracing = tracingEnabled2;
7380
7380
  const meta = { cat: "__metadata", ph: "M", ts: 1000 * timestamp(), pid: 1, tid: 1 };
7381
- fs2.writeSync(traceFd, `[
7381
+ fs3.writeSync(traceFd, `[
7382
7382
  ` + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(`,
7383
7383
  `));
7384
7384
  }
@@ -7386,10 +7386,10 @@ ${lanes.join(`
7386
7386
  function stopTracing() {
7387
7387
  Debug.assert(tracing, "Tracing is not in progress");
7388
7388
  Debug.assert(!!typeCatalog.length === (mode !== "server"));
7389
- fs2.writeSync(traceFd, `
7389
+ fs3.writeSync(traceFd, `
7390
7390
  ]
7391
7391
  `);
7392
- fs2.closeSync(traceFd);
7392
+ fs3.closeSync(traceFd);
7393
7393
  tracing = undefined;
7394
7394
  if (typeCatalog.length) {
7395
7395
  dumpTypes(typeCatalog);
@@ -7454,13 +7454,13 @@ ${lanes.join(`
7454
7454
  if (mode === "server" && phase === "checkTypes")
7455
7455
  return;
7456
7456
  mark("beginTracing");
7457
- fs2.writeSync(traceFd, `,
7457
+ fs3.writeSync(traceFd, `,
7458
7458
  {"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`);
7459
7459
  if (extras)
7460
- fs2.writeSync(traceFd, `,${extras}`);
7460
+ fs3.writeSync(traceFd, `,${extras}`);
7461
7461
  if (args)
7462
- fs2.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
7463
- fs2.writeSync(traceFd, `}`);
7462
+ fs3.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
7463
+ fs3.writeSync(traceFd, `}`);
7464
7464
  mark("endTracing");
7465
7465
  measure("Tracing", "beginTracing", "endTracing");
7466
7466
  }
@@ -7482,9 +7482,9 @@ ${lanes.join(`
7482
7482
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
7483
7483
  mark("beginDumpTypes");
7484
7484
  const typesPath = legend[legend.length - 1].typesPath;
7485
- const typesFd = fs2.openSync(typesPath, "w");
7485
+ const typesFd = fs3.openSync(typesPath, "w");
7486
7486
  const recursionIdentityMap = /* @__PURE__ */ new Map;
7487
- fs2.writeSync(typesFd, "[");
7487
+ fs3.writeSync(typesFd, "[");
7488
7488
  const numTypes = types.length;
7489
7489
  for (let i = 0;i < numTypes; i++) {
7490
7490
  const type = types[i];
@@ -7580,15 +7580,15 @@ ${lanes.join(`
7580
7580
  flags: Debug.formatTypeFlags(type.flags).split("|"),
7581
7581
  display
7582
7582
  };
7583
- fs2.writeSync(typesFd, JSON.stringify(descriptor));
7583
+ fs3.writeSync(typesFd, JSON.stringify(descriptor));
7584
7584
  if (i < numTypes - 1) {
7585
- fs2.writeSync(typesFd, `,
7585
+ fs3.writeSync(typesFd, `,
7586
7586
  `);
7587
7587
  }
7588
7588
  }
7589
- fs2.writeSync(typesFd, `]
7589
+ fs3.writeSync(typesFd, `]
7590
7590
  `);
7591
- fs2.closeSync(typesFd);
7591
+ fs3.closeSync(typesFd);
7592
7592
  mark("endDumpTypes");
7593
7593
  measure("Dump types", "beginDumpTypes", "endDumpTypes");
7594
7594
  }
@@ -7596,7 +7596,7 @@ ${lanes.join(`
7596
7596
  if (!legendPath) {
7597
7597
  return;
7598
7598
  }
7599
- fs2.writeFileSync(legendPath, JSON.stringify(legend));
7599
+ fs3.writeFileSync(legendPath, JSON.stringify(legend));
7600
7600
  }
7601
7601
  tracingEnabled2.dumpLegend = dumpLegend;
7602
7602
  })(tracingEnabled || (tracingEnabled = {}));
@@ -9681,27 +9681,27 @@ ${lanes.join(`
9681
9681
  }
9682
9682
  function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) {
9683
9683
  const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
9684
- const path4 = toCanonicalFileName(name);
9685
- const existing = cache.get(path4);
9684
+ const path5 = toCanonicalFileName(name);
9685
+ const existing = cache.get(path5);
9686
9686
  if (existing) {
9687
9687
  existing.callbacks.push(callback);
9688
9688
  } else {
9689
- cache.set(path4, {
9689
+ cache.set(path5, {
9690
9690
  watcher: createWatcher((param1, param2, param3) => {
9691
9691
  var _a;
9692
- return (_a = cache.get(path4)) == null ? undefined : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
9692
+ return (_a = cache.get(path5)) == null ? undefined : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
9693
9693
  }),
9694
9694
  callbacks: [callback]
9695
9695
  });
9696
9696
  }
9697
9697
  return {
9698
9698
  close: () => {
9699
- const watcher = cache.get(path4);
9699
+ const watcher = cache.get(path5);
9700
9700
  if (!watcher)
9701
9701
  return;
9702
9702
  if (!orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length)
9703
9703
  return;
9704
- cache.delete(path4);
9704
+ cache.delete(path5);
9705
9705
  closeFileWatcherOf(watcher);
9706
9706
  }
9707
9707
  };
@@ -9936,15 +9936,15 @@ ${lanes.join(`
9936
9936
  (newChildWatches || (newChildWatches = [])).push(childWatcher);
9937
9937
  }
9938
9938
  }
9939
- function isIgnoredPath(path4, options) {
9940
- return some(ignoredPaths, (searchPath) => isInPath(path4, searchPath)) || isIgnoredByWatchOptions(path4, options, useCaseSensitiveFileNames2, getCurrentDirectory);
9939
+ function isIgnoredPath(path5, options) {
9940
+ return some(ignoredPaths, (searchPath) => isInPath(path5, searchPath)) || isIgnoredByWatchOptions(path5, options, useCaseSensitiveFileNames2, getCurrentDirectory);
9941
9941
  }
9942
- function isInPath(path4, searchPath) {
9943
- if (path4.includes(searchPath))
9942
+ function isInPath(path5, searchPath) {
9943
+ if (path5.includes(searchPath))
9944
9944
  return true;
9945
9945
  if (useCaseSensitiveFileNames2)
9946
9946
  return false;
9947
- return toCanonicalFilePath(path4).includes(searchPath);
9947
+ return toCanonicalFilePath(path5).includes(searchPath);
9948
9948
  }
9949
9949
  }
9950
9950
  var FileSystemEntryKind = /* @__PURE__ */ ((FileSystemEntryKind2) => {
@@ -10213,7 +10213,7 @@ ${lanes.join(`
10213
10213
  }
10214
10214
  function patchWriteFileEnsuringDirectory(sys2) {
10215
10215
  const originalWriteFile = sys2.writeFile;
10216
- sys2.writeFile = (path4, data, writeBom) => writeFileEnsuringDirectories(path4, data, !!writeBom, (path22, data2, writeByteOrderMark) => originalWriteFile.call(sys2, path22, data2, writeByteOrderMark), (path22) => sys2.createDirectory(path22), (path22) => sys2.directoryExists(path22));
10216
+ sys2.writeFile = (path5, data, writeBom) => writeFileEnsuringDirectories(path5, data, !!writeBom, (path22, data2, writeByteOrderMark) => originalWriteFile.call(sys2, path22, data2, writeByteOrderMark), (path22) => sys2.createDirectory(path22), (path22) => sys2.directoryExists(path22));
10217
10217
  }
10218
10218
  var sys = (() => {
10219
10219
  const byteOrderMarkIndicator = "\uFEFF";
@@ -10249,7 +10249,7 @@ ${lanes.join(`
10249
10249
  getCurrentDirectory,
10250
10250
  fileSystemEntryExists,
10251
10251
  fsSupportsRecursiveFsWatch,
10252
- getAccessibleSortedChildDirectories: (path4) => getAccessibleFileSystemEntries(path4).directories,
10252
+ getAccessibleSortedChildDirectories: (path5) => getAccessibleFileSystemEntries(path5).directories,
10253
10253
  realpath,
10254
10254
  tscWatchFile: process.env.TSC_WATCHFILE,
10255
10255
  useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
@@ -10276,7 +10276,7 @@ ${lanes.join(`
10276
10276
  watchFile: watchFile2,
10277
10277
  watchDirectory,
10278
10278
  preferNonRecursiveWatch: !fsSupportsRecursiveFsWatch,
10279
- resolvePath: (path4) => _path.resolve(path4),
10279
+ resolvePath: (path5) => _path.resolve(path5),
10280
10280
  fileExists,
10281
10281
  directoryExists,
10282
10282
  getAccessibleFileSystemEntries,
@@ -10311,8 +10311,8 @@ ${lanes.join(`
10311
10311
  }
10312
10312
  return process.memoryUsage().heapUsed;
10313
10313
  },
10314
- getFileSize(path4) {
10315
- const stat = statSync(path4);
10314
+ getFileSize(path5) {
10315
+ const stat = statSync(path5);
10316
10316
  if (stat == null ? undefined : stat.isFile()) {
10317
10317
  return stat.size;
10318
10318
  }
@@ -10355,14 +10355,14 @@ ${lanes.join(`
10355
10355
  }
10356
10356
  };
10357
10357
  return nodeSystem;
10358
- function statSync(path4) {
10358
+ function statSync(path5) {
10359
10359
  try {
10360
- return _fs.statSync(path4, statSyncOptions);
10360
+ return _fs.statSync(path5, statSyncOptions);
10361
10361
  } catch {
10362
10362
  return;
10363
10363
  }
10364
10364
  }
10365
- function enableCPUProfiler(path4, cb) {
10365
+ function enableCPUProfiler(path5, cb) {
10366
10366
  if (activeSession) {
10367
10367
  cb();
10368
10368
  return false;
@@ -10377,7 +10377,7 @@ ${lanes.join(`
10377
10377
  session.post("Profiler.enable", () => {
10378
10378
  session.post("Profiler.start", () => {
10379
10379
  activeSession = session;
10380
- profilePath = path4;
10380
+ profilePath = path5;
10381
10381
  cb();
10382
10382
  });
10383
10383
  });
@@ -10503,9 +10503,9 @@ ${lanes.join(`
10503
10503
  }
10504
10504
  }
10505
10505
  }
10506
- function getAccessibleFileSystemEntries(path4) {
10506
+ function getAccessibleFileSystemEntries(path5) {
10507
10507
  try {
10508
- const entries = _fs.readdirSync(path4 || ".", { withFileTypes: true });
10508
+ const entries = _fs.readdirSync(path5 || ".", { withFileTypes: true });
10509
10509
  const files = [];
10510
10510
  const directories = [];
10511
10511
  for (const dirent of entries) {
@@ -10515,7 +10515,7 @@ ${lanes.join(`
10515
10515
  }
10516
10516
  let stat;
10517
10517
  if (typeof dirent === "string" || dirent.isSymbolicLink()) {
10518
- const name = combinePaths(path4, entry);
10518
+ const name = combinePaths(path5, entry);
10519
10519
  stat = statSync(name);
10520
10520
  if (!stat) {
10521
10521
  continue;
@@ -10536,11 +10536,11 @@ ${lanes.join(`
10536
10536
  return emptyFileSystemEntries;
10537
10537
  }
10538
10538
  }
10539
- function readDirectory(path4, extensions, excludes, includes, depth) {
10540
- return matchFiles(path4, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
10539
+ function readDirectory(path5, extensions, excludes, includes, depth) {
10540
+ return matchFiles(path5, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
10541
10541
  }
10542
- function fileSystemEntryExists(path4, entryKind) {
10543
- const stat = statSync(path4);
10542
+ function fileSystemEntryExists(path5, entryKind) {
10543
+ const stat = statSync(path5);
10544
10544
  if (!stat) {
10545
10545
  return false;
10546
10546
  }
@@ -10553,39 +10553,39 @@ ${lanes.join(`
10553
10553
  return false;
10554
10554
  }
10555
10555
  }
10556
- function fileExists(path4) {
10557
- return fileSystemEntryExists(path4, 0);
10556
+ function fileExists(path5) {
10557
+ return fileSystemEntryExists(path5, 0);
10558
10558
  }
10559
- function directoryExists(path4) {
10560
- return fileSystemEntryExists(path4, 1);
10559
+ function directoryExists(path5) {
10560
+ return fileSystemEntryExists(path5, 1);
10561
10561
  }
10562
- function getDirectories(path4) {
10563
- return getAccessibleFileSystemEntries(path4).directories.slice();
10562
+ function getDirectories(path5) {
10563
+ return getAccessibleFileSystemEntries(path5).directories.slice();
10564
10564
  }
10565
- function fsRealPathHandlingLongPath(path4) {
10566
- return path4.length < 260 ? _fs.realpathSync.native(path4) : _fs.realpathSync(path4);
10565
+ function fsRealPathHandlingLongPath(path5) {
10566
+ return path5.length < 260 ? _fs.realpathSync.native(path5) : _fs.realpathSync(path5);
10567
10567
  }
10568
- function realpath(path4) {
10568
+ function realpath(path5) {
10569
10569
  try {
10570
- return fsRealpath(path4);
10570
+ return fsRealpath(path5);
10571
10571
  } catch {
10572
- return path4;
10572
+ return path5;
10573
10573
  }
10574
10574
  }
10575
- function getModifiedTime3(path4) {
10575
+ function getModifiedTime3(path5) {
10576
10576
  var _a;
10577
- return (_a = statSync(path4)) == null ? undefined : _a.mtime;
10577
+ return (_a = statSync(path5)) == null ? undefined : _a.mtime;
10578
10578
  }
10579
- function setModifiedTime(path4, time) {
10579
+ function setModifiedTime(path5, time) {
10580
10580
  try {
10581
- _fs.utimesSync(path4, time, time);
10581
+ _fs.utimesSync(path5, time, time);
10582
10582
  } catch {
10583
10583
  return;
10584
10584
  }
10585
10585
  }
10586
- function deleteFile(path4) {
10586
+ function deleteFile(path5) {
10587
10587
  try {
10588
- return _fs.unlinkSync(path4);
10588
+ return _fs.unlinkSync(path5);
10589
10589
  } catch {
10590
10590
  return;
10591
10591
  }
@@ -10622,41 +10622,41 @@ ${lanes.join(`
10622
10622
  function isAnyDirectorySeparator(charCode) {
10623
10623
  return charCode === 47 || charCode === 92;
10624
10624
  }
10625
- function isUrl(path4) {
10626
- return getEncodedRootLength(path4) < 0;
10625
+ function isUrl(path5) {
10626
+ return getEncodedRootLength(path5) < 0;
10627
10627
  }
10628
- function isRootedDiskPath(path4) {
10629
- return getEncodedRootLength(path4) > 0;
10628
+ function isRootedDiskPath(path5) {
10629
+ return getEncodedRootLength(path5) > 0;
10630
10630
  }
10631
- function isDiskPathRoot(path4) {
10632
- const rootLength = getEncodedRootLength(path4);
10633
- return rootLength > 0 && rootLength === path4.length;
10631
+ function isDiskPathRoot(path5) {
10632
+ const rootLength = getEncodedRootLength(path5);
10633
+ return rootLength > 0 && rootLength === path5.length;
10634
10634
  }
10635
- function pathIsAbsolute(path4) {
10636
- return getEncodedRootLength(path4) !== 0;
10635
+ function pathIsAbsolute(path5) {
10636
+ return getEncodedRootLength(path5) !== 0;
10637
10637
  }
10638
- function pathIsRelative(path4) {
10639
- return /^\.\.?(?:$|[\\/])/.test(path4);
10638
+ function pathIsRelative(path5) {
10639
+ return /^\.\.?(?:$|[\\/])/.test(path5);
10640
10640
  }
10641
- function pathIsBareSpecifier(path4) {
10642
- return !pathIsAbsolute(path4) && !pathIsRelative(path4);
10641
+ function pathIsBareSpecifier(path5) {
10642
+ return !pathIsAbsolute(path5) && !pathIsRelative(path5);
10643
10643
  }
10644
10644
  function hasExtension(fileName) {
10645
10645
  return getBaseFileName(fileName).includes(".");
10646
10646
  }
10647
- function fileExtensionIs(path4, extension) {
10648
- return path4.length > extension.length && endsWith(path4, extension);
10647
+ function fileExtensionIs(path5, extension) {
10648
+ return path5.length > extension.length && endsWith(path5, extension);
10649
10649
  }
10650
- function fileExtensionIsOneOf(path4, extensions) {
10650
+ function fileExtensionIsOneOf(path5, extensions) {
10651
10651
  for (const extension of extensions) {
10652
- if (fileExtensionIs(path4, extension)) {
10652
+ if (fileExtensionIs(path5, extension)) {
10653
10653
  return true;
10654
10654
  }
10655
10655
  }
10656
10656
  return false;
10657
10657
  }
10658
- function hasTrailingDirectorySeparator(path4) {
10659
- return path4.length > 0 && isAnyDirectorySeparator(path4.charCodeAt(path4.length - 1));
10658
+ function hasTrailingDirectorySeparator(path5) {
10659
+ return path5.length > 0 && isAnyDirectorySeparator(path5.charCodeAt(path5.length - 1));
10660
10660
  }
10661
10661
  function isVolumeCharacter(charCode) {
10662
10662
  return charCode >= 97 && charCode <= 122 || charCode >= 65 && charCode <= 90;
@@ -10672,113 +10672,113 @@ ${lanes.join(`
10672
10672
  }
10673
10673
  return -1;
10674
10674
  }
10675
- function getEncodedRootLength(path4) {
10676
- if (!path4)
10675
+ function getEncodedRootLength(path5) {
10676
+ if (!path5)
10677
10677
  return 0;
10678
- const ch0 = path4.charCodeAt(0);
10678
+ const ch0 = path5.charCodeAt(0);
10679
10679
  if (ch0 === 47 || ch0 === 92) {
10680
- if (path4.charCodeAt(1) !== ch0)
10680
+ if (path5.charCodeAt(1) !== ch0)
10681
10681
  return 1;
10682
- const p1 = path4.indexOf(ch0 === 47 ? directorySeparator : altDirectorySeparator, 2);
10682
+ const p1 = path5.indexOf(ch0 === 47 ? directorySeparator : altDirectorySeparator, 2);
10683
10683
  if (p1 < 0)
10684
- return path4.length;
10684
+ return path5.length;
10685
10685
  return p1 + 1;
10686
10686
  }
10687
- if (isVolumeCharacter(ch0) && path4.charCodeAt(1) === 58) {
10688
- const ch2 = path4.charCodeAt(2);
10687
+ if (isVolumeCharacter(ch0) && path5.charCodeAt(1) === 58) {
10688
+ const ch2 = path5.charCodeAt(2);
10689
10689
  if (ch2 === 47 || ch2 === 92)
10690
10690
  return 3;
10691
- if (path4.length === 2)
10691
+ if (path5.length === 2)
10692
10692
  return 2;
10693
10693
  }
10694
- const schemeEnd = path4.indexOf(urlSchemeSeparator);
10694
+ const schemeEnd = path5.indexOf(urlSchemeSeparator);
10695
10695
  if (schemeEnd !== -1) {
10696
10696
  const authorityStart = schemeEnd + urlSchemeSeparator.length;
10697
- const authorityEnd = path4.indexOf(directorySeparator, authorityStart);
10697
+ const authorityEnd = path5.indexOf(directorySeparator, authorityStart);
10698
10698
  if (authorityEnd !== -1) {
10699
- const scheme = path4.slice(0, schemeEnd);
10700
- const authority = path4.slice(authorityStart, authorityEnd);
10701
- if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path4.charCodeAt(authorityEnd + 1))) {
10702
- const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path4, authorityEnd + 2);
10699
+ const scheme = path5.slice(0, schemeEnd);
10700
+ const authority = path5.slice(authorityStart, authorityEnd);
10701
+ if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path5.charCodeAt(authorityEnd + 1))) {
10702
+ const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path5, authorityEnd + 2);
10703
10703
  if (volumeSeparatorEnd !== -1) {
10704
- if (path4.charCodeAt(volumeSeparatorEnd) === 47) {
10704
+ if (path5.charCodeAt(volumeSeparatorEnd) === 47) {
10705
10705
  return ~(volumeSeparatorEnd + 1);
10706
10706
  }
10707
- if (volumeSeparatorEnd === path4.length) {
10707
+ if (volumeSeparatorEnd === path5.length) {
10708
10708
  return ~volumeSeparatorEnd;
10709
10709
  }
10710
10710
  }
10711
10711
  }
10712
10712
  return ~(authorityEnd + 1);
10713
10713
  }
10714
- return ~path4.length;
10714
+ return ~path5.length;
10715
10715
  }
10716
10716
  return 0;
10717
10717
  }
10718
- function getRootLength(path4) {
10719
- const rootLength = getEncodedRootLength(path4);
10718
+ function getRootLength(path5) {
10719
+ const rootLength = getEncodedRootLength(path5);
10720
10720
  return rootLength < 0 ? ~rootLength : rootLength;
10721
10721
  }
10722
- function getDirectoryPath(path4) {
10723
- path4 = normalizeSlashes(path4);
10724
- const rootLength = getRootLength(path4);
10725
- if (rootLength === path4.length)
10726
- return path4;
10727
- path4 = removeTrailingDirectorySeparator(path4);
10728
- return path4.slice(0, Math.max(rootLength, path4.lastIndexOf(directorySeparator)));
10729
- }
10730
- function getBaseFileName(path4, extensions, ignoreCase) {
10731
- path4 = normalizeSlashes(path4);
10732
- const rootLength = getRootLength(path4);
10733
- if (rootLength === path4.length)
10722
+ function getDirectoryPath(path5) {
10723
+ path5 = normalizeSlashes(path5);
10724
+ const rootLength = getRootLength(path5);
10725
+ if (rootLength === path5.length)
10726
+ return path5;
10727
+ path5 = removeTrailingDirectorySeparator(path5);
10728
+ return path5.slice(0, Math.max(rootLength, path5.lastIndexOf(directorySeparator)));
10729
+ }
10730
+ function getBaseFileName(path5, extensions, ignoreCase) {
10731
+ path5 = normalizeSlashes(path5);
10732
+ const rootLength = getRootLength(path5);
10733
+ if (rootLength === path5.length)
10734
10734
  return "";
10735
- path4 = removeTrailingDirectorySeparator(path4);
10736
- const name = path4.slice(Math.max(getRootLength(path4), path4.lastIndexOf(directorySeparator) + 1));
10735
+ path5 = removeTrailingDirectorySeparator(path5);
10736
+ const name = path5.slice(Math.max(getRootLength(path5), path5.lastIndexOf(directorySeparator) + 1));
10737
10737
  const extension = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(name, extensions, ignoreCase) : undefined;
10738
10738
  return extension ? name.slice(0, name.length - extension.length) : name;
10739
10739
  }
10740
- function tryGetExtensionFromPath(path4, extension, stringEqualityComparer) {
10740
+ function tryGetExtensionFromPath(path5, extension, stringEqualityComparer) {
10741
10741
  if (!startsWith(extension, "."))
10742
10742
  extension = "." + extension;
10743
- if (path4.length >= extension.length && path4.charCodeAt(path4.length - extension.length) === 46) {
10744
- const pathExtension = path4.slice(path4.length - extension.length);
10743
+ if (path5.length >= extension.length && path5.charCodeAt(path5.length - extension.length) === 46) {
10744
+ const pathExtension = path5.slice(path5.length - extension.length);
10745
10745
  if (stringEqualityComparer(pathExtension, extension)) {
10746
10746
  return pathExtension;
10747
10747
  }
10748
10748
  }
10749
10749
  }
10750
- function getAnyExtensionFromPathWorker(path4, extensions, stringEqualityComparer) {
10750
+ function getAnyExtensionFromPathWorker(path5, extensions, stringEqualityComparer) {
10751
10751
  if (typeof extensions === "string") {
10752
- return tryGetExtensionFromPath(path4, extensions, stringEqualityComparer) || "";
10752
+ return tryGetExtensionFromPath(path5, extensions, stringEqualityComparer) || "";
10753
10753
  }
10754
10754
  for (const extension of extensions) {
10755
- const result = tryGetExtensionFromPath(path4, extension, stringEqualityComparer);
10755
+ const result = tryGetExtensionFromPath(path5, extension, stringEqualityComparer);
10756
10756
  if (result)
10757
10757
  return result;
10758
10758
  }
10759
10759
  return "";
10760
10760
  }
10761
- function getAnyExtensionFromPath(path4, extensions, ignoreCase) {
10761
+ function getAnyExtensionFromPath(path5, extensions, ignoreCase) {
10762
10762
  if (extensions) {
10763
- return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path4), extensions, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive);
10763
+ return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path5), extensions, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive);
10764
10764
  }
10765
- const baseFileName = getBaseFileName(path4);
10765
+ const baseFileName = getBaseFileName(path5);
10766
10766
  const extensionIndex = baseFileName.lastIndexOf(".");
10767
10767
  if (extensionIndex >= 0) {
10768
10768
  return baseFileName.substring(extensionIndex);
10769
10769
  }
10770
10770
  return "";
10771
10771
  }
10772
- function pathComponents(path4, rootLength) {
10773
- const root = path4.substring(0, rootLength);
10774
- const rest = path4.substring(rootLength).split(directorySeparator);
10772
+ function pathComponents(path5, rootLength) {
10773
+ const root = path5.substring(0, rootLength);
10774
+ const rest = path5.substring(rootLength).split(directorySeparator);
10775
10775
  if (rest.length && !lastOrUndefined(rest))
10776
10776
  rest.pop();
10777
10777
  return [root, ...rest];
10778
10778
  }
10779
- function getPathComponents(path4, currentDirectory = "") {
10780
- path4 = combinePaths(currentDirectory, path4);
10781
- return pathComponents(path4, getRootLength(path4));
10779
+ function getPathComponents(path5, currentDirectory = "") {
10780
+ path5 = combinePaths(currentDirectory, path5);
10781
+ return pathComponents(path5, getRootLength(path5));
10782
10782
  }
10783
10783
  function getPathFromPathComponents(pathComponents2, length2) {
10784
10784
  if (pathComponents2.length === 0)
@@ -10786,8 +10786,8 @@ ${lanes.join(`
10786
10786
  const root = pathComponents2[0] && ensureTrailingDirectorySeparator(pathComponents2[0]);
10787
10787
  return root + pathComponents2.slice(1, length2).join(directorySeparator);
10788
10788
  }
10789
- function normalizeSlashes(path4) {
10790
- return path4.includes("\\") ? path4.replace(backslashRegExp, directorySeparator) : path4;
10789
+ function normalizeSlashes(path5) {
10790
+ return path5.includes("\\") ? path5.replace(backslashRegExp, directorySeparator) : path5;
10791
10791
  }
10792
10792
  function reducePathComponents(components) {
10793
10793
  if (!some(components))
@@ -10812,41 +10812,41 @@ ${lanes.join(`
10812
10812
  }
10813
10813
  return reduced;
10814
10814
  }
10815
- function combinePaths(path4, ...paths) {
10816
- if (path4)
10817
- path4 = normalizeSlashes(path4);
10815
+ function combinePaths(path5, ...paths) {
10816
+ if (path5)
10817
+ path5 = normalizeSlashes(path5);
10818
10818
  for (let relativePath of paths) {
10819
10819
  if (!relativePath)
10820
10820
  continue;
10821
10821
  relativePath = normalizeSlashes(relativePath);
10822
- if (!path4 || getRootLength(relativePath) !== 0) {
10823
- path4 = relativePath;
10822
+ if (!path5 || getRootLength(relativePath) !== 0) {
10823
+ path5 = relativePath;
10824
10824
  } else {
10825
- path4 = ensureTrailingDirectorySeparator(path4) + relativePath;
10825
+ path5 = ensureTrailingDirectorySeparator(path5) + relativePath;
10826
10826
  }
10827
10827
  }
10828
- return path4;
10828
+ return path5;
10829
10829
  }
10830
- function resolvePath(path4, ...paths) {
10831
- return normalizePath(some(paths) ? combinePaths(path4, ...paths) : normalizeSlashes(path4));
10830
+ function resolvePath(path5, ...paths) {
10831
+ return normalizePath(some(paths) ? combinePaths(path5, ...paths) : normalizeSlashes(path5));
10832
10832
  }
10833
- function getNormalizedPathComponents(path4, currentDirectory) {
10834
- return reducePathComponents(getPathComponents(path4, currentDirectory));
10833
+ function getNormalizedPathComponents(path5, currentDirectory) {
10834
+ return reducePathComponents(getPathComponents(path5, currentDirectory));
10835
10835
  }
10836
- function getNormalizedAbsolutePath(path4, currentDirectory) {
10837
- let rootLength = getRootLength(path4);
10836
+ function getNormalizedAbsolutePath(path5, currentDirectory) {
10837
+ let rootLength = getRootLength(path5);
10838
10838
  if (rootLength === 0 && currentDirectory) {
10839
- path4 = combinePaths(currentDirectory, path4);
10840
- rootLength = getRootLength(path4);
10839
+ path5 = combinePaths(currentDirectory, path5);
10840
+ rootLength = getRootLength(path5);
10841
10841
  } else {
10842
- path4 = normalizeSlashes(path4);
10842
+ path5 = normalizeSlashes(path5);
10843
10843
  }
10844
- const simpleNormalized = simpleNormalizePath(path4);
10844
+ const simpleNormalized = simpleNormalizePath(path5);
10845
10845
  if (simpleNormalized !== undefined) {
10846
10846
  return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized;
10847
10847
  }
10848
- const length2 = path4.length;
10849
- const root = path4.substring(0, rootLength);
10848
+ const length2 = path5.length;
10849
+ const root = path5.substring(0, rootLength);
10850
10850
  let normalized;
10851
10851
  let index = rootLength;
10852
10852
  let segmentStart = index;
@@ -10854,23 +10854,23 @@ ${lanes.join(`
10854
10854
  let seenNonDotDotSegment = rootLength !== 0;
10855
10855
  while (index < length2) {
10856
10856
  segmentStart = index;
10857
- let ch = path4.charCodeAt(index);
10857
+ let ch = path5.charCodeAt(index);
10858
10858
  while (ch === 47 && index + 1 < length2) {
10859
10859
  index++;
10860
- ch = path4.charCodeAt(index);
10860
+ ch = path5.charCodeAt(index);
10861
10861
  }
10862
10862
  if (index > segmentStart) {
10863
- normalized ?? (normalized = path4.substring(0, segmentStart - 1));
10863
+ normalized ?? (normalized = path5.substring(0, segmentStart - 1));
10864
10864
  segmentStart = index;
10865
10865
  }
10866
- let segmentEnd = path4.indexOf(directorySeparator, index + 1);
10866
+ let segmentEnd = path5.indexOf(directorySeparator, index + 1);
10867
10867
  if (segmentEnd === -1) {
10868
10868
  segmentEnd = length2;
10869
10869
  }
10870
10870
  const segmentLength = segmentEnd - segmentStart;
10871
- if (segmentLength === 1 && path4.charCodeAt(index) === 46) {
10872
- normalized ?? (normalized = path4.substring(0, normalizedUpTo));
10873
- } else if (segmentLength === 2 && path4.charCodeAt(index) === 46 && path4.charCodeAt(index + 1) === 46) {
10871
+ if (segmentLength === 1 && path5.charCodeAt(index) === 46) {
10872
+ normalized ?? (normalized = path5.substring(0, normalizedUpTo));
10873
+ } else if (segmentLength === 2 && path5.charCodeAt(index) === 46 && path5.charCodeAt(index + 1) === 46) {
10874
10874
  if (!seenNonDotDotSegment) {
10875
10875
  if (normalized !== undefined) {
10876
10876
  normalized += normalized.length === rootLength ? ".." : "/..";
@@ -10879,9 +10879,9 @@ ${lanes.join(`
10879
10879
  }
10880
10880
  } else if (normalized === undefined) {
10881
10881
  if (normalizedUpTo - 2 >= 0) {
10882
- normalized = path4.substring(0, Math.max(rootLength, path4.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
10882
+ normalized = path5.substring(0, Math.max(rootLength, path5.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
10883
10883
  } else {
10884
- normalized = path4.substring(0, normalizedUpTo);
10884
+ normalized = path5.substring(0, normalizedUpTo);
10885
10885
  }
10886
10886
  } else {
10887
10887
  const lastSlash = normalized.lastIndexOf(directorySeparator);
@@ -10899,36 +10899,36 @@ ${lanes.join(`
10899
10899
  normalized += directorySeparator;
10900
10900
  }
10901
10901
  seenNonDotDotSegment = true;
10902
- normalized += path4.substring(segmentStart, segmentEnd);
10902
+ normalized += path5.substring(segmentStart, segmentEnd);
10903
10903
  } else {
10904
10904
  seenNonDotDotSegment = true;
10905
10905
  normalizedUpTo = segmentEnd;
10906
10906
  }
10907
10907
  index = segmentEnd + 1;
10908
10908
  }
10909
- return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path4) : path4);
10909
+ return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path5) : path5);
10910
10910
  }
10911
- function normalizePath(path4) {
10912
- path4 = normalizeSlashes(path4);
10913
- let normalized = simpleNormalizePath(path4);
10911
+ function normalizePath(path5) {
10912
+ path5 = normalizeSlashes(path5);
10913
+ let normalized = simpleNormalizePath(path5);
10914
10914
  if (normalized !== undefined) {
10915
10915
  return normalized;
10916
10916
  }
10917
- normalized = getNormalizedAbsolutePath(path4, "");
10918
- return normalized && hasTrailingDirectorySeparator(path4) ? ensureTrailingDirectorySeparator(normalized) : normalized;
10917
+ normalized = getNormalizedAbsolutePath(path5, "");
10918
+ return normalized && hasTrailingDirectorySeparator(path5) ? ensureTrailingDirectorySeparator(normalized) : normalized;
10919
10919
  }
10920
- function simpleNormalizePath(path4) {
10921
- if (!relativePathSegmentRegExp.test(path4)) {
10922
- return path4;
10920
+ function simpleNormalizePath(path5) {
10921
+ if (!relativePathSegmentRegExp.test(path5)) {
10922
+ return path5;
10923
10923
  }
10924
- let simplified = path4.replace(/\/\.\//g, "/");
10924
+ let simplified = path5.replace(/\/\.\//g, "/");
10925
10925
  if (simplified.startsWith("./")) {
10926
10926
  simplified = simplified.slice(2);
10927
10927
  }
10928
- if (simplified !== path4) {
10929
- path4 = simplified;
10930
- if (!relativePathSegmentRegExp.test(path4)) {
10931
- return path4;
10928
+ if (simplified !== path5) {
10929
+ path5 = simplified;
10930
+ if (!relativePathSegmentRegExp.test(path5)) {
10931
+ return path5;
10932
10932
  }
10933
10933
  }
10934
10934
  return;
@@ -10945,31 +10945,31 @@ ${lanes.join(`
10945
10945
  const nonCanonicalizedPath = isRootedDiskPath(fileName) ? normalizePath(fileName) : getNormalizedAbsolutePath(fileName, basePath);
10946
10946
  return getCanonicalFileName(nonCanonicalizedPath);
10947
10947
  }
10948
- function removeTrailingDirectorySeparator(path4) {
10949
- if (hasTrailingDirectorySeparator(path4)) {
10950
- return path4.substr(0, path4.length - 1);
10948
+ function removeTrailingDirectorySeparator(path5) {
10949
+ if (hasTrailingDirectorySeparator(path5)) {
10950
+ return path5.substr(0, path5.length - 1);
10951
10951
  }
10952
- return path4;
10952
+ return path5;
10953
10953
  }
10954
- function ensureTrailingDirectorySeparator(path4) {
10955
- if (!hasTrailingDirectorySeparator(path4)) {
10956
- return path4 + directorySeparator;
10954
+ function ensureTrailingDirectorySeparator(path5) {
10955
+ if (!hasTrailingDirectorySeparator(path5)) {
10956
+ return path5 + directorySeparator;
10957
10957
  }
10958
- return path4;
10958
+ return path5;
10959
10959
  }
10960
- function ensurePathIsNonModuleName(path4) {
10961
- return !pathIsAbsolute(path4) && !pathIsRelative(path4) ? "./" + path4 : path4;
10960
+ function ensurePathIsNonModuleName(path5) {
10961
+ return !pathIsAbsolute(path5) && !pathIsRelative(path5) ? "./" + path5 : path5;
10962
10962
  }
10963
- function changeAnyExtension(path4, ext, extensions, ignoreCase) {
10964
- const pathext = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(path4, extensions, ignoreCase) : getAnyExtensionFromPath(path4);
10965
- return pathext ? path4.slice(0, path4.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path4;
10963
+ function changeAnyExtension(path5, ext, extensions, ignoreCase) {
10964
+ const pathext = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(path5, extensions, ignoreCase) : getAnyExtensionFromPath(path5);
10965
+ return pathext ? path5.slice(0, path5.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path5;
10966
10966
  }
10967
- function changeFullExtension(path4, newExtension) {
10968
- const declarationExtension = getDeclarationFileExtension(path4);
10967
+ function changeFullExtension(path5, newExtension) {
10968
+ const declarationExtension = getDeclarationFileExtension(path5);
10969
10969
  if (declarationExtension) {
10970
- return path4.slice(0, path4.length - declarationExtension.length) + (startsWith(newExtension, ".") ? newExtension : "." + newExtension);
10970
+ return path5.slice(0, path5.length - declarationExtension.length) + (startsWith(newExtension, ".") ? newExtension : "." + newExtension);
10971
10971
  }
10972
- return changeAnyExtension(path4, newExtension);
10972
+ return changeAnyExtension(path5, newExtension);
10973
10973
  }
10974
10974
  var relativePathSegmentRegExp = /\/\/|(?:^|\/)\.\.?(?:$|\/)/;
10975
10975
  function comparePathsWorker(a, b, componentComparer) {
@@ -21684,8 +21684,8 @@ ${lanes.join(`
21684
21684
  function getResolvedExternalModuleName(host, file, referenceFile) {
21685
21685
  return file.moduleName || getExternalModuleNameFromPath(host, file.fileName, referenceFile && referenceFile.fileName);
21686
21686
  }
21687
- function getCanonicalAbsolutePath(host, path4) {
21688
- return host.getCanonicalFileName(getNormalizedAbsolutePath(path4, host.getCurrentDirectory()));
21687
+ function getCanonicalAbsolutePath(host, path5) {
21688
+ return host.getCanonicalFileName(getNormalizedAbsolutePath(path5, host.getCurrentDirectory()));
21689
21689
  }
21690
21690
  function getExternalModuleNameFromDeclaration(host, resolver, declaration) {
21691
21691
  const file = resolver.getExternalModuleFileFromDeclaration(declaration);
@@ -21721,15 +21721,15 @@ ${lanes.join(`
21721
21721
  }
21722
21722
  function getDeclarationEmitOutputFilePathWorker(fileName, options, host) {
21723
21723
  const outputDir = options.declarationDir || options.outDir;
21724
- const path4 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
21725
- const declarationExtension = getDeclarationEmitExtensionForPath(path4);
21726
- return removeFileExtension(path4) + declarationExtension;
21724
+ const path5 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
21725
+ const declarationExtension = getDeclarationEmitExtensionForPath(path5);
21726
+ return removeFileExtension(path5) + declarationExtension;
21727
21727
  }
21728
- function getDeclarationEmitExtensionForPath(path4) {
21729
- return fileExtensionIsOneOf(path4, [".mjs", ".mts"]) ? ".d.mts" : fileExtensionIsOneOf(path4, [".cjs", ".cts"]) ? ".d.cts" : fileExtensionIsOneOf(path4, [".json"]) ? `.d.json.ts` : ".d.ts";
21728
+ function getDeclarationEmitExtensionForPath(path5) {
21729
+ return fileExtensionIsOneOf(path5, [".mjs", ".mts"]) ? ".d.mts" : fileExtensionIsOneOf(path5, [".cjs", ".cts"]) ? ".d.cts" : fileExtensionIsOneOf(path5, [".json"]) ? `.d.json.ts` : ".d.ts";
21730
21730
  }
21731
- function getPossibleOriginalInputExtensionForExtension(path4) {
21732
- return fileExtensionIsOneOf(path4, [".d.mts", ".mjs", ".mts"]) ? [".mts", ".mjs"] : fileExtensionIsOneOf(path4, [".d.cts", ".cjs", ".cts"]) ? [".cts", ".cjs"] : fileExtensionIsOneOf(path4, [`.d.json.ts`]) ? [".json"] : [".tsx", ".ts", ".jsx", ".js"];
21731
+ function getPossibleOriginalInputExtensionForExtension(path5) {
21732
+ return fileExtensionIsOneOf(path5, [".d.mts", ".mjs", ".mts"]) ? [".mts", ".mjs"] : fileExtensionIsOneOf(path5, [".d.cts", ".cjs", ".cts"]) ? [".cts", ".cjs"] : fileExtensionIsOneOf(path5, [`.d.json.ts`]) ? [".json"] : [".tsx", ".ts", ".jsx", ".js"];
21733
21733
  }
21734
21734
  function getPossibleOriginalInputPathWithoutChangingExt(filePath, ignoreCase, outputDir, getCommonSourceDirectory2) {
21735
21735
  return outputDir ? resolvePath(getCommonSourceDirectory2(), getRelativePathFromDirectory(outputDir, filePath, ignoreCase)) : filePath;
@@ -21800,12 +21800,12 @@ ${lanes.join(`
21800
21800
  createDirectory(directoryPath);
21801
21801
  }
21802
21802
  }
21803
- function writeFileEnsuringDirectories(path4, data, writeByteOrderMark, writeFile2, createDirectory, directoryExists) {
21803
+ function writeFileEnsuringDirectories(path5, data, writeByteOrderMark, writeFile2, createDirectory, directoryExists) {
21804
21804
  try {
21805
- writeFile2(path4, data, writeByteOrderMark);
21805
+ writeFile2(path5, data, writeByteOrderMark);
21806
21806
  } catch {
21807
- ensureDirectoriesExist(getDirectoryPath(normalizePath(path4)), createDirectory, directoryExists);
21808
- writeFile2(path4, data, writeByteOrderMark);
21807
+ ensureDirectoriesExist(getDirectoryPath(normalizePath(path5)), createDirectory, directoryExists);
21808
+ writeFile2(path5, data, writeByteOrderMark);
21809
21809
  }
21810
21810
  }
21811
21811
  function getLineOfLocalPosition(sourceFile, pos) {
@@ -22448,21 +22448,21 @@ ${lanes.join(`
22448
22448
  }
22449
22449
  return getStringFromExpandedCharCodes(expandedCharCodes);
22450
22450
  }
22451
- function readJsonOrUndefined(path4, hostOrText) {
22452
- const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path4);
22451
+ function readJsonOrUndefined(path5, hostOrText) {
22452
+ const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path5);
22453
22453
  if (!jsonText)
22454
22454
  return;
22455
22455
  let result = tryParseJson(jsonText);
22456
22456
  if (result === undefined) {
22457
- const looseResult = parseConfigFileTextToJson(path4, jsonText);
22457
+ const looseResult = parseConfigFileTextToJson(path5, jsonText);
22458
22458
  if (!looseResult.error) {
22459
22459
  result = looseResult.config;
22460
22460
  }
22461
22461
  }
22462
22462
  return result;
22463
22463
  }
22464
- function readJson(path4, host) {
22465
- return readJsonOrUndefined(path4, host) || {};
22464
+ function readJson(path5, host) {
22465
+ return readJsonOrUndefined(path5, host) || {};
22466
22466
  }
22467
22467
  function tryParseJson(text) {
22468
22468
  try {
@@ -23557,7 +23557,7 @@ ${lanes.join(`
23557
23557
  getSymlinkedFiles: () => symlinkedFiles,
23558
23558
  getSymlinkedDirectories: () => symlinkedDirectories,
23559
23559
  getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,
23560
- setSymlinkedFile: (path4, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map)).set(path4, real),
23560
+ setSymlinkedFile: (path5, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map)).set(path5, real),
23561
23561
  setSymlinkedDirectory: (symlink, real) => {
23562
23562
  let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);
23563
23563
  if (!containsIgnoredPath(symlinkPath)) {
@@ -23615,8 +23615,8 @@ ${lanes.join(`
23615
23615
  function stripLeadingDirectorySeparator(s) {
23616
23616
  return isAnyDirectorySeparator(s.charCodeAt(0)) ? s.slice(1) : undefined;
23617
23617
  }
23618
- function tryRemoveDirectoryPrefix(path4, dirPath, getCanonicalFileName) {
23619
- const withoutPrefix = tryRemovePrefix(path4, dirPath, getCanonicalFileName);
23618
+ function tryRemoveDirectoryPrefix(path5, dirPath, getCanonicalFileName) {
23619
+ const withoutPrefix = tryRemovePrefix(path5, dirPath, getCanonicalFileName);
23620
23620
  return withoutPrefix === undefined ? undefined : stripLeadingDirectorySeparator(withoutPrefix);
23621
23621
  }
23622
23622
  var reservedCharacterPattern = /[^\w\s/]/g;
@@ -23724,25 +23724,25 @@ ${lanes.join(`
23724
23724
  function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {
23725
23725
  return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match;
23726
23726
  }
23727
- function getFileMatcherPatterns(path4, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) {
23728
- path4 = normalizePath(path4);
23727
+ function getFileMatcherPatterns(path5, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) {
23728
+ path5 = normalizePath(path5);
23729
23729
  currentDirectory = normalizePath(currentDirectory);
23730
- const absolutePath = combinePaths(currentDirectory, path4);
23730
+ const absolutePath = combinePaths(currentDirectory, path5);
23731
23731
  return {
23732
23732
  includeFilePatterns: map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), (pattern) => `^${pattern}$`),
23733
23733
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
23734
23734
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
23735
23735
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
23736
- basePaths: getBasePaths(path4, includes, useCaseSensitiveFileNames2)
23736
+ basePaths: getBasePaths(path5, includes, useCaseSensitiveFileNames2)
23737
23737
  };
23738
23738
  }
23739
23739
  function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) {
23740
23740
  return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i");
23741
23741
  }
23742
- function matchFiles(path4, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) {
23743
- path4 = normalizePath(path4);
23742
+ function matchFiles(path5, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) {
23743
+ path5 = normalizePath(path5);
23744
23744
  currentDirectory = normalizePath(currentDirectory);
23745
- const patterns = getFileMatcherPatterns(path4, excludes, includes, useCaseSensitiveFileNames2, currentDirectory);
23745
+ const patterns = getFileMatcherPatterns(path5, excludes, includes, useCaseSensitiveFileNames2, currentDirectory);
23746
23746
  const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2));
23747
23747
  const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2);
23748
23748
  const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2);
@@ -23790,17 +23790,17 @@ ${lanes.join(`
23790
23790
  }
23791
23791
  }
23792
23792
  }
23793
- function getBasePaths(path4, includes, useCaseSensitiveFileNames2) {
23794
- const basePaths = [path4];
23793
+ function getBasePaths(path5, includes, useCaseSensitiveFileNames2) {
23794
+ const basePaths = [path5];
23795
23795
  if (includes) {
23796
23796
  const includeBasePaths = [];
23797
23797
  for (const include of includes) {
23798
- const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path4, include));
23798
+ const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path5, include));
23799
23799
  includeBasePaths.push(getIncludeBasePath(absolute));
23800
23800
  }
23801
23801
  includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2));
23802
23802
  for (const includeBasePath of includeBasePaths) {
23803
- if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path4, !useCaseSensitiveFileNames2))) {
23803
+ if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path5, !useCaseSensitiveFileNames2))) {
23804
23804
  basePaths.push(includeBasePath);
23805
23805
  }
23806
23806
  }
@@ -23970,23 +23970,23 @@ ${lanes.join(`
23970
23970
  return compareValues(numberOfDirectorySeparators(path1), numberOfDirectorySeparators(path22));
23971
23971
  }
23972
23972
  var extensionsToRemove = [".d.ts", ".d.mts", ".d.cts", ".mjs", ".mts", ".cjs", ".cts", ".ts", ".js", ".tsx", ".jsx", ".json"];
23973
- function removeFileExtension(path4) {
23973
+ function removeFileExtension(path5) {
23974
23974
  for (const ext of extensionsToRemove) {
23975
- const extensionless = tryRemoveExtension(path4, ext);
23975
+ const extensionless = tryRemoveExtension(path5, ext);
23976
23976
  if (extensionless !== undefined) {
23977
23977
  return extensionless;
23978
23978
  }
23979
23979
  }
23980
- return path4;
23980
+ return path5;
23981
23981
  }
23982
- function tryRemoveExtension(path4, extension) {
23983
- return fileExtensionIs(path4, extension) ? removeExtension(path4, extension) : undefined;
23982
+ function tryRemoveExtension(path5, extension) {
23983
+ return fileExtensionIs(path5, extension) ? removeExtension(path5, extension) : undefined;
23984
23984
  }
23985
- function removeExtension(path4, extension) {
23986
- return path4.substring(0, path4.length - extension.length);
23985
+ function removeExtension(path5, extension) {
23986
+ return path5.substring(0, path5.length - extension.length);
23987
23987
  }
23988
- function changeExtension(path4, newExtension) {
23989
- return changeAnyExtension(path4, newExtension, extensionsToRemove, false);
23988
+ function changeExtension(path5, newExtension) {
23989
+ return changeAnyExtension(path5, newExtension, extensionsToRemove, false);
23990
23990
  }
23991
23991
  function tryParsePattern(pattern) {
23992
23992
  const indexOfStar = pattern.indexOf("*");
@@ -24007,8 +24007,8 @@ ${lanes.join(`
24007
24007
  let matchableStringSet;
24008
24008
  let patterns;
24009
24009
  const pathList = getOwnKeys(paths);
24010
- for (const path4 of pathList) {
24011
- const patternOrStr = tryParsePattern(path4);
24010
+ for (const path5 of pathList) {
24011
+ const patternOrStr = tryParsePattern(path5);
24012
24012
  if (patternOrStr === undefined) {
24013
24013
  continue;
24014
24014
  } else if (typeof patternOrStr === "string") {
@@ -24032,15 +24032,15 @@ ${lanes.join(`
24032
24032
  function resolutionExtensionIsTSOrJson(ext) {
24033
24033
  return extensionIsTS(ext) || ext === ".json";
24034
24034
  }
24035
- function extensionFromPath(path4) {
24036
- const ext = tryGetExtensionFromPath2(path4);
24037
- return ext !== undefined ? ext : Debug.fail(`File ${path4} has unknown extension.`);
24035
+ function extensionFromPath(path5) {
24036
+ const ext = tryGetExtensionFromPath2(path5);
24037
+ return ext !== undefined ? ext : Debug.fail(`File ${path5} has unknown extension.`);
24038
24038
  }
24039
- function isAnySupportedFileExtension(path4) {
24040
- return tryGetExtensionFromPath2(path4) !== undefined;
24039
+ function isAnySupportedFileExtension(path5) {
24040
+ return tryGetExtensionFromPath2(path5) !== undefined;
24041
24041
  }
24042
- function tryGetExtensionFromPath2(path4) {
24043
- return find(extensionsToRemove, (e) => fileExtensionIs(path4, e));
24042
+ function tryGetExtensionFromPath2(path5) {
24043
+ return find(extensionsToRemove, (e) => fileExtensionIs(path5, e));
24044
24044
  }
24045
24045
  function isCheckJsEnabledForFile(sourceFile, compilerOptions) {
24046
24046
  return sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : compilerOptions.checkJs;
@@ -24334,8 +24334,8 @@ ${lanes.join(`
24334
24334
  return false;
24335
24335
  }
24336
24336
  }
24337
- function containsIgnoredPath(path4) {
24338
- return some(ignoredPaths, (p) => path4.includes(p));
24337
+ function containsIgnoredPath(path5) {
24338
+ return some(ignoredPaths, (p) => path5.includes(p));
24339
24339
  }
24340
24340
  function getContainingNodeArray(node) {
24341
24341
  if (!node.parent)
@@ -39631,7 +39631,7 @@ ${lanes.join(`
39631
39631
  const typeReferenceDirectives = context.typeReferenceDirectives;
39632
39632
  const libReferenceDirectives = context.libReferenceDirectives;
39633
39633
  forEach(toArray(entryOrList), (arg) => {
39634
- const { types, lib, path: path4, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments;
39634
+ const { types, lib, path: path5, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments;
39635
39635
  const preserve = _preserve === "true" ? true : undefined;
39636
39636
  if (arg.arguments["no-default-lib"] === "true") {
39637
39637
  context.hasNoDefaultLib = true;
@@ -39640,8 +39640,8 @@ ${lanes.join(`
39640
39640
  typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {}, ...preserve ? { preserve } : {} });
39641
39641
  } else if (lib) {
39642
39642
  libReferenceDirectives.push({ pos: lib.pos, end: lib.end, fileName: lib.value, ...preserve ? { preserve } : {} });
39643
- } else if (path4) {
39644
- referencedFiles.push({ pos: path4.pos, end: path4.end, fileName: path4.value, ...preserve ? { preserve } : {} });
39643
+ } else if (path5) {
39644
+ referencedFiles.push({ pos: path5.pos, end: path5.end, fileName: path5.value, ...preserve ? { preserve } : {} });
39645
39645
  } else {
39646
39646
  reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, Diagnostics.Invalid_reference_directive_syntax);
39647
39647
  }
@@ -41939,10 +41939,10 @@ ${lanes.join(`
41939
41939
  return;
41940
41940
  return specs;
41941
41941
  }
41942
- function matchesSpecs(path4, includeSpecs, excludeSpecs, host) {
41942
+ function matchesSpecs(path5, includeSpecs, excludeSpecs, host) {
41943
41943
  if (!includeSpecs)
41944
41944
  return returnTrue;
41945
- const patterns = getFileMatcherPatterns(path4, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory());
41945
+ const patterns = getFileMatcherPatterns(path5, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory());
41946
41946
  const excludeRe = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, host.useCaseSensitiveFileNames);
41947
41947
  const includeRe = patterns.includeFilePattern && getRegexFromPattern(patterns.includeFilePattern, host.useCaseSensitiveFileNames);
41948
41948
  if (includeRe) {
@@ -42444,7 +42444,7 @@ ${lanes.join(`
42444
42444
  if (ownConfig.raw[propertyName])
42445
42445
  return;
42446
42446
  if (extendsRaw[propertyName]) {
42447
- result[propertyName] = map(extendsRaw[propertyName], (path4) => startsWithConfigDirTemplate(path4) || isRootedDiskPath(path4) ? path4 : combinePaths(relativeDifference || (relativeDifference = convertToRelativePath(getDirectoryPath(extendedConfigPath), basePath, createGetCanonicalFileName(host.useCaseSensitiveFileNames))), path4));
42447
+ result[propertyName] = map(extendsRaw[propertyName], (path5) => startsWithConfigDirTemplate(path5) || isRootedDiskPath(path5) ? path5 : combinePaths(relativeDifference || (relativeDifference = convertToRelativePath(getDirectoryPath(extendedConfigPath), basePath, createGetCanonicalFileName(host.useCaseSensitiveFileNames))), path5));
42448
42448
  }
42449
42449
  };
42450
42450
  setPropertyInResultIfNotUndefined("include");
@@ -42571,11 +42571,11 @@ ${lanes.join(`
42571
42571
  return;
42572
42572
  }
42573
42573
  function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result) {
42574
- const path4 = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath);
42574
+ const path5 = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath);
42575
42575
  let value;
42576
42576
  let extendedResult;
42577
42577
  let extendedConfig;
42578
- if (extendedConfigCache && (value = extendedConfigCache.get(path4))) {
42578
+ if (extendedConfigCache && (value = extendedConfigCache.get(path5))) {
42579
42579
  ({ extendedResult, extendedConfig } = value);
42580
42580
  } else {
42581
42581
  extendedResult = readJsonConfigFile(extendedConfigPath, (path22) => host.readFile(path22));
@@ -42583,7 +42583,7 @@ ${lanes.join(`
42583
42583
  extendedConfig = parseConfig(undefined, extendedResult, host, getDirectoryPath(extendedConfigPath), getBaseFileName(extendedConfigPath), resolutionStack, errors, extendedConfigCache);
42584
42584
  }
42585
42585
  if (extendedConfigCache) {
42586
- extendedConfigCache.set(path4, { extendedResult, extendedConfig });
42586
+ extendedConfigCache.set(path5, { extendedResult, extendedConfig });
42587
42587
  }
42588
42588
  }
42589
42589
  if (sourceFile) {
@@ -42831,25 +42831,25 @@ ${lanes.join(`
42831
42831
  }
42832
42832
  const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2);
42833
42833
  if (match) {
42834
- const { key, path: path4, flags } = match;
42834
+ const { key, path: path5, flags } = match;
42835
42835
  const existingPath = wildCardKeyToPath.get(key);
42836
42836
  const existingFlags = existingPath !== undefined ? wildcardDirectories[existingPath] : undefined;
42837
42837
  if (existingFlags === undefined || existingFlags < flags) {
42838
- wildcardDirectories[existingPath !== undefined ? existingPath : path4] = flags;
42838
+ wildcardDirectories[existingPath !== undefined ? existingPath : path5] = flags;
42839
42839
  if (existingPath === undefined)
42840
- wildCardKeyToPath.set(key, path4);
42840
+ wildCardKeyToPath.set(key, path5);
42841
42841
  if (flags === 1) {
42842
42842
  recursiveKeys.push(key);
42843
42843
  }
42844
42844
  }
42845
42845
  }
42846
42846
  }
42847
- for (const path4 in wildcardDirectories) {
42848
- if (hasProperty(wildcardDirectories, path4)) {
42847
+ for (const path5 in wildcardDirectories) {
42848
+ if (hasProperty(wildcardDirectories, path5)) {
42849
42849
  for (const recursiveKey of recursiveKeys) {
42850
- const key = toCanonicalKey(path4, useCaseSensitiveFileNames2);
42850
+ const key = toCanonicalKey(path5, useCaseSensitiveFileNames2);
42851
42851
  if (key !== recursiveKey && containsPath(recursiveKey, key, basePath, !useCaseSensitiveFileNames2)) {
42852
- delete wildcardDirectories[path4];
42852
+ delete wildcardDirectories[path5];
42853
42853
  }
42854
42854
  }
42855
42855
  }
@@ -42857,8 +42857,8 @@ ${lanes.join(`
42857
42857
  }
42858
42858
  return wildcardDirectories;
42859
42859
  }
42860
- function toCanonicalKey(path4, useCaseSensitiveFileNames2) {
42861
- return useCaseSensitiveFileNames2 ? path4 : toFileNameLowerCase(path4);
42860
+ function toCanonicalKey(path5, useCaseSensitiveFileNames2) {
42861
+ return useCaseSensitiveFileNames2 ? path5 : toFileNameLowerCase(path5);
42862
42862
  }
42863
42863
  function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) {
42864
42864
  const match = wildcardDirectoryPattern.exec(spec);
@@ -42873,10 +42873,10 @@ ${lanes.join(`
42873
42873
  };
42874
42874
  }
42875
42875
  if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {
42876
- const path4 = removeTrailingDirectorySeparator(spec);
42876
+ const path5 = removeTrailingDirectorySeparator(spec);
42877
42877
  return {
42878
- key: toCanonicalKey(path4, useCaseSensitiveFileNames2),
42879
- path: path4,
42878
+ key: toCanonicalKey(path5, useCaseSensitiveFileNames2),
42879
+ path: path5,
42880
42880
  flags: 1
42881
42881
  };
42882
42882
  }
@@ -43098,11 +43098,11 @@ ${lanes.join(`
43098
43098
  }
43099
43099
  return;
43100
43100
  }
43101
- const path4 = normalizePath(combinePaths(baseDirectory, fileName));
43101
+ const path5 = normalizePath(combinePaths(baseDirectory, fileName));
43102
43102
  if (state.traceEnabled) {
43103
- trace(state.host, Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path4);
43103
+ trace(state.host, Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path5);
43104
43104
  }
43105
- return path4;
43105
+ return path5;
43106
43106
  }
43107
43107
  function readPackageJsonTypesFields(jsonContent, baseDirectory, state) {
43108
43108
  return readPackageJsonPathField(jsonContent, "typings", baseDirectory, state) || readPackageJsonPathField(jsonContent, "types", baseDirectory, state);
@@ -43586,13 +43586,13 @@ ${lanes.join(`
43586
43586
  directoryToModuleNameMap.update(options2);
43587
43587
  }
43588
43588
  function getOrCreateCacheForDirectory(directoryName, redirectedReference) {
43589
- const path4 = toPath(directoryName, currentDirectory, getCanonicalFileName);
43590
- return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path4, () => createModeAwareCache());
43589
+ const path5 = toPath(directoryName, currentDirectory, getCanonicalFileName);
43590
+ return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path5, () => createModeAwareCache());
43591
43591
  }
43592
43592
  function getFromDirectoryCache(name, mode, directoryName, redirectedReference) {
43593
43593
  var _a, _b;
43594
- const path4 = toPath(directoryName, currentDirectory, getCanonicalFileName);
43595
- return (_b = (_a = directoryToModuleNameMap.getMapOfCacheRedirects(redirectedReference)) == null ? undefined : _a.get(path4)) == null ? undefined : _b.get(name, mode);
43594
+ const path5 = toPath(directoryName, currentDirectory, getCanonicalFileName);
43595
+ return (_b = (_a = directoryToModuleNameMap.getMapOfCacheRedirects(redirectedReference)) == null ? undefined : _a.get(path5)) == null ? undefined : _b.get(name, mode);
43596
43596
  }
43597
43597
  }
43598
43598
  function createModeAwareCacheKey(specifier, mode) {
@@ -43669,14 +43669,14 @@ ${lanes.join(`
43669
43669
  return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));
43670
43670
  }
43671
43671
  function set(directory, result) {
43672
- const path4 = toPath(directory, currentDirectory, getCanonicalFileName);
43673
- if (directoryPathMap.has(path4)) {
43672
+ const path5 = toPath(directory, currentDirectory, getCanonicalFileName);
43673
+ if (directoryPathMap.has(path5)) {
43674
43674
  return;
43675
43675
  }
43676
- directoryPathMap.set(path4, result);
43676
+ directoryPathMap.set(path5, result);
43677
43677
  const resolvedFileName = getResolvedFileName(result);
43678
- const commonPrefix = resolvedFileName && getCommonPrefix(path4, resolvedFileName);
43679
- let current = path4;
43678
+ const commonPrefix = resolvedFileName && getCommonPrefix(path5, resolvedFileName);
43679
+ let current = path5;
43680
43680
  while (current !== commonPrefix) {
43681
43681
  const parent2 = getDirectoryPath(current);
43682
43682
  if (parent2 === current || directoryPathMap.has(parent2)) {
@@ -44090,16 +44090,16 @@ ${lanes.join(`
44090
44090
  const combined = combinePaths(containingDirectory, moduleName);
44091
44091
  const parts = getPathComponents(combined);
44092
44092
  const lastPart = lastOrUndefined(parts);
44093
- const path4 = lastPart === "." || lastPart === ".." ? ensureTrailingDirectorySeparator(normalizePath(combined)) : normalizePath(combined);
44094
- return { path: path4, parts };
44093
+ const path5 = lastPart === "." || lastPart === ".." ? ensureTrailingDirectorySeparator(normalizePath(combined)) : normalizePath(combined);
44094
+ return { path: path5, parts };
44095
44095
  }
44096
- function realPath(path4, host, traceEnabled) {
44096
+ function realPath(path5, host, traceEnabled) {
44097
44097
  if (!host.realpath) {
44098
- return path4;
44098
+ return path5;
44099
44099
  }
44100
- const real = normalizePath(host.realpath(path4));
44100
+ const real = normalizePath(host.realpath(path5));
44101
44101
  if (traceEnabled) {
44102
- trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path4, real);
44102
+ trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path5, real);
44103
44103
  }
44104
44104
  return real;
44105
44105
  }
@@ -44139,25 +44139,25 @@ ${lanes.join(`
44139
44139
  return;
44140
44140
  }
44141
44141
  var nodeModulesPathPart = "/node_modules/";
44142
- function pathContainsNodeModules(path4) {
44143
- return path4.includes(nodeModulesPathPart);
44142
+ function pathContainsNodeModules(path5) {
44143
+ return path5.includes(nodeModulesPathPart);
44144
44144
  }
44145
44145
  function parseNodeModuleFromPath(resolved, isFolder) {
44146
- const path4 = normalizePath(resolved);
44147
- const idx = path4.lastIndexOf(nodeModulesPathPart);
44146
+ const path5 = normalizePath(resolved);
44147
+ const idx = path5.lastIndexOf(nodeModulesPathPart);
44148
44148
  if (idx === -1) {
44149
44149
  return;
44150
44150
  }
44151
44151
  const indexAfterNodeModules = idx + nodeModulesPathPart.length;
44152
- let indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path4, indexAfterNodeModules, isFolder);
44153
- if (path4.charCodeAt(indexAfterNodeModules) === 64) {
44154
- indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path4, indexAfterPackageName, isFolder);
44152
+ let indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path5, indexAfterNodeModules, isFolder);
44153
+ if (path5.charCodeAt(indexAfterNodeModules) === 64) {
44154
+ indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path5, indexAfterPackageName, isFolder);
44155
44155
  }
44156
- return path4.slice(0, indexAfterPackageName);
44156
+ return path5.slice(0, indexAfterPackageName);
44157
44157
  }
44158
- function moveToNextDirectorySeparatorIfAvailable(path4, prevSeparatorIndex, isFolder) {
44159
- const nextSeparatorIndex = path4.indexOf(directorySeparator, prevSeparatorIndex + 1);
44160
- return nextSeparatorIndex === -1 ? isFolder ? path4.length : prevSeparatorIndex : nextSeparatorIndex;
44158
+ function moveToNextDirectorySeparatorIfAvailable(path5, prevSeparatorIndex, isFolder) {
44159
+ const nextSeparatorIndex = path5.indexOf(directorySeparator, prevSeparatorIndex + 1);
44160
+ return nextSeparatorIndex === -1 ? isFolder ? path5.length : prevSeparatorIndex : nextSeparatorIndex;
44161
44161
  }
44162
44162
  function loadModuleFromFileNoPackageId(extensions, candidate, onlyRecordFailures, state) {
44163
44163
  return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
@@ -44231,8 +44231,8 @@ ${lanes.join(`
44231
44231
  return extensions & 4 && !isDeclarationFileName(candidate + originalExtension) && tryExtension(`.d${originalExtension}.ts`) || undefined;
44232
44232
  }
44233
44233
  function tryExtension(ext, resolvedUsingTsExtension) {
44234
- const path4 = tryFile(candidate + ext, onlyRecordFailures, state);
44235
- return path4 === undefined ? undefined : { path: path4, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension };
44234
+ const path5 = tryFile(candidate + ext, onlyRecordFailures, state);
44235
+ return path5 === undefined ? undefined : { path: path5, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension };
44236
44236
  }
44237
44237
  }
44238
44238
  function tryFile(fileName, onlyRecordFailures, state) {
@@ -44757,11 +44757,11 @@ ${lanes.join(`
44757
44757
  trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);
44758
44758
  }
44759
44759
  return toSearchResult(undefined);
44760
- function toAbsolutePath(path4) {
44760
+ function toAbsolutePath(path5) {
44761
44761
  var _a2, _b2;
44762
- if (path4 === undefined)
44763
- return path4;
44764
- return getNormalizedAbsolutePath(path4, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? undefined : _b2.call(_a2));
44762
+ if (path5 === undefined)
44763
+ return path5;
44764
+ return getNormalizedAbsolutePath(path5, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? undefined : _b2.call(_a2));
44765
44765
  }
44766
44766
  function combineDirectoryPath(root, dir) {
44767
44767
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
@@ -44961,10 +44961,10 @@ ${lanes.join(`
44961
44961
  trace(state.host, Diagnostics.Module_name_0_matched_pattern_1, moduleName, matchedPatternText);
44962
44962
  }
44963
44963
  const resolved = forEach(paths[matchedPatternText], (subst) => {
44964
- const path4 = matchedStar ? replaceFirstStar(subst, matchedStar) : subst;
44965
- const candidate = normalizePath(combinePaths(baseDirectory, path4));
44964
+ const path5 = matchedStar ? replaceFirstStar(subst, matchedStar) : subst;
44965
+ const candidate = normalizePath(combinePaths(baseDirectory, path5));
44966
44966
  if (state.traceEnabled) {
44967
- trace(state.host, Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path4);
44967
+ trace(state.host, Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path5);
44968
44968
  }
44969
44969
  const extension = tryGetExtensionFromPath2(subst);
44970
44970
  if (extension !== undefined) {
@@ -48316,10 +48316,10 @@ ${lanes.join(`
48316
48316
  return false;
48317
48317
  return comparePaths(a, b, ignoreCase) === 0;
48318
48318
  }
48319
- function countPathComponents(path4) {
48319
+ function countPathComponents(path5) {
48320
48320
  let count = 0;
48321
- for (let i = startsWith(path4, "./") ? 2 : 0;i < path4.length; i++) {
48322
- if (path4.charCodeAt(i) === 47)
48321
+ for (let i = startsWith(path5, "./") ? 2 : 0;i < path5.length; i++) {
48322
+ if (path5.charCodeAt(i) === 47)
48323
48323
  count++;
48324
48324
  }
48325
48325
  return count;
@@ -48418,17 +48418,17 @@ ${lanes.join(`
48418
48418
  }
48419
48419
  const allFileNames = /* @__PURE__ */ new Map;
48420
48420
  let importedFileFromNodeModules = false;
48421
- forEachFileNameOfModule(info.importingSourceFileName, importedFileName, host, true, (path4, isRedirect) => {
48422
- const isInNodeModules = pathContainsNodeModules(path4);
48423
- allFileNames.set(path4, { path: info.getCanonicalFileName(path4), isRedirect, isInNodeModules });
48421
+ forEachFileNameOfModule(info.importingSourceFileName, importedFileName, host, true, (path5, isRedirect) => {
48422
+ const isInNodeModules = pathContainsNodeModules(path5);
48423
+ allFileNames.set(path5, { path: info.getCanonicalFileName(path5), isRedirect, isInNodeModules });
48424
48424
  importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules;
48425
48425
  });
48426
48426
  const sortedPaths = [];
48427
48427
  for (let directory = info.canonicalSourceDirectory;allFileNames.size !== 0; ) {
48428
48428
  const directoryStart = ensureTrailingDirectorySeparator(directory);
48429
48429
  let pathsInDirectory;
48430
- allFileNames.forEach(({ path: path4, isRedirect, isInNodeModules }, fileName) => {
48431
- if (startsWith(path4, directoryStart)) {
48430
+ allFileNames.forEach(({ path: path5, isRedirect, isInNodeModules }, fileName) => {
48431
+ if (startsWith(path5, directoryStart)) {
48432
48432
  (pathsInDirectory || (pathsInDirectory = [])).push({ path: fileName, isRedirect, isInNodeModules });
48433
48433
  allFileNames.delete(fileName);
48434
48434
  }
@@ -48651,17 +48651,17 @@ ${lanes.join(`
48651
48651
  }
48652
48652
  return processEnding(shortest, allowedEndings, compilerOptions);
48653
48653
  }
48654
- function tryGetModuleNameAsNodeModule({ path: path4, isRedirect }, { getCanonicalFileName, canonicalSourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {
48654
+ function tryGetModuleNameAsNodeModule({ path: path5, isRedirect }, { getCanonicalFileName, canonicalSourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {
48655
48655
  if (!host.fileExists || !host.readFile) {
48656
48656
  return;
48657
48657
  }
48658
- const parts = getNodeModulePathParts(path4);
48658
+ const parts = getNodeModulePathParts(path5);
48659
48659
  if (!parts) {
48660
48660
  return;
48661
48661
  }
48662
48662
  const preferences = getModuleSpecifierPreferences(userPreferences, host, options, importingSourceFile);
48663
48663
  const allowedEndings = preferences.getAllowedEndingsInPreferredOrder();
48664
- let moduleSpecifier = path4;
48664
+ let moduleSpecifier = path5;
48665
48665
  let isPackageRootPath = false;
48666
48666
  if (!packageNameOnly) {
48667
48667
  let packageRootIndex = parts.packageRootIndex;
@@ -48683,7 +48683,7 @@ ${lanes.join(`
48683
48683
  }
48684
48684
  if (!moduleFileName)
48685
48685
  moduleFileName = moduleFileToTry;
48686
- packageRootIndex = path4.indexOf(directorySeparator, packageRootIndex + 1);
48686
+ packageRootIndex = path5.indexOf(directorySeparator, packageRootIndex + 1);
48687
48687
  if (packageRootIndex === -1) {
48688
48688
  moduleSpecifier = processEnding(moduleFileName, allowedEndings, options, host);
48689
48689
  break;
@@ -48703,9 +48703,9 @@ ${lanes.join(`
48703
48703
  return getEmitModuleResolutionKind(options) === 1 && packageName === nodeModulesDirectoryName ? undefined : packageName;
48704
48704
  function tryDirectoryWithPackageJson(packageRootIndex) {
48705
48705
  var _a, _b;
48706
- const packageRootPath = path4.substring(0, packageRootIndex);
48706
+ const packageRootPath = path5.substring(0, packageRootIndex);
48707
48707
  const packageJsonPath = combinePaths(packageRootPath, "package.json");
48708
- let moduleFileToTry = path4;
48708
+ let moduleFileToTry = path5;
48709
48709
  let maybeBlockedByTypesVersions = false;
48710
48710
  const cachedPackageJson = (_b = (_a = host.getPackageJsonInfoCache) == null ? undefined : _a.call(host)) == null ? undefined : _b.getPackageJsonInfo(packageJsonPath);
48711
48711
  if (isPackageJsonInfo(cachedPackageJson) || cachedPackageJson === undefined && host.fileExists(packageJsonPath)) {
@@ -48715,17 +48715,17 @@ ${lanes.join(`
48715
48715
  const nodeModulesDirectoryName2 = packageRootPath.substring(parts.topLevelPackageNameIndex + 1);
48716
48716
  const packageName2 = getPackageNameFromTypesPackageName(nodeModulesDirectoryName2);
48717
48717
  const conditions = getConditions(options, importMode);
48718
- const fromExports = (packageJsonContent == null ? undefined : packageJsonContent.exports) ? tryGetModuleNameFromExports(options, host, path4, packageRootPath, packageName2, packageJsonContent.exports, conditions) : undefined;
48718
+ const fromExports = (packageJsonContent == null ? undefined : packageJsonContent.exports) ? tryGetModuleNameFromExports(options, host, path5, packageRootPath, packageName2, packageJsonContent.exports, conditions) : undefined;
48719
48719
  if (fromExports) {
48720
48720
  return { ...fromExports, verbatimFromExports: true };
48721
48721
  }
48722
48722
  if (packageJsonContent == null ? undefined : packageJsonContent.exports) {
48723
- return { moduleFileToTry: path4, blockedByExports: true };
48723
+ return { moduleFileToTry: path5, blockedByExports: true };
48724
48724
  }
48725
48725
  }
48726
48726
  const versionPaths = (packageJsonContent == null ? undefined : packageJsonContent.typesVersions) ? getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions) : undefined;
48727
48727
  if (versionPaths) {
48728
- const subModuleName = path4.slice(packageRootPath.length + 1);
48728
+ const subModuleName = path5.slice(packageRootPath.length + 1);
48729
48729
  const fromPaths = tryGetModuleNameFromPaths(subModuleName, versionPaths.paths, allowedEndings, packageRootPath, getCanonicalFileName, host, options);
48730
48730
  if (fromPaths === undefined) {
48731
48731
  maybeBlockedByTypesVersions = true;
@@ -48752,20 +48752,20 @@ ${lanes.join(`
48752
48752
  return { moduleFileToTry };
48753
48753
  }
48754
48754
  }
48755
- function tryGetAnyFileFromPath(host, path4) {
48755
+ function tryGetAnyFileFromPath(host, path5) {
48756
48756
  if (!host.fileExists)
48757
48757
  return;
48758
48758
  const extensions = flatten(getSupportedExtensions({ allowJs: true }, [{ extension: "node", isMixedContent: false }, { extension: "json", isMixedContent: false, scriptKind: 6 }]));
48759
48759
  for (const e of extensions) {
48760
- const fullPath = path4 + e;
48760
+ const fullPath = path5 + e;
48761
48761
  if (host.fileExists(fullPath)) {
48762
48762
  return fullPath;
48763
48763
  }
48764
48764
  }
48765
48765
  }
48766
- function getPathsRelativeToRootDirs(path4, rootDirs, getCanonicalFileName) {
48766
+ function getPathsRelativeToRootDirs(path5, rootDirs, getCanonicalFileName) {
48767
48767
  return mapDefined(rootDirs, (rootDir) => {
48768
- const relativePath = getRelativePathIfInSameVolume(path4, rootDir, getCanonicalFileName);
48768
+ const relativePath = getRelativePathIfInSameVolume(path5, rootDir, getCanonicalFileName);
48769
48769
  return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
48770
48770
  });
48771
48771
  }
@@ -48842,12 +48842,12 @@ ${lanes.join(`
48842
48842
  return;
48843
48843
  }
48844
48844
  }
48845
- function getRelativePathIfInSameVolume(path4, directoryPath, getCanonicalFileName) {
48846
- const relativePath = getRelativePathToDirectoryOrUrl(directoryPath, path4, directoryPath, getCanonicalFileName, false);
48845
+ function getRelativePathIfInSameVolume(path5, directoryPath, getCanonicalFileName) {
48846
+ const relativePath = getRelativePathToDirectoryOrUrl(directoryPath, path5, directoryPath, getCanonicalFileName, false);
48847
48847
  return isRootedDiskPath(relativePath) ? undefined : relativePath;
48848
48848
  }
48849
- function isPathRelativeToParent(path4) {
48850
- return startsWith(path4, "..");
48849
+ function isPathRelativeToParent(path5) {
48850
+ return startsWith(path5, "..");
48851
48851
  }
48852
48852
  function getDefaultResolutionModeForFile(file, host, compilerOptions) {
48853
48853
  return isFullSourceFile(file) ? host.getDefaultResolutionModeForFile(file) : getDefaultResolutionModeForFileWorker(file, compilerOptions);
@@ -60278,10 +60278,10 @@ ${lanes.join(`
60278
60278
  const text = identifier.escapedText;
60279
60279
  if (text) {
60280
60280
  const parentSymbol = name.kind === 167 ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 212 ? getUnresolvedSymbolForEntityName(name.expression) : undefined;
60281
- const path4 = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text;
60282
- let result = unresolvedSymbols.get(path4);
60281
+ const path5 = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text;
60282
+ let result = unresolvedSymbols.get(path5);
60283
60283
  if (!result) {
60284
- unresolvedSymbols.set(path4, result = createSymbol(524288, text, 1048576));
60284
+ unresolvedSymbols.set(path5, result = createSymbol(524288, text, 1048576));
60285
60285
  result.parent = parentSymbol;
60286
60286
  result.links.declaredType = unresolvedType;
60287
60287
  }
@@ -64249,24 +64249,24 @@ ${lanes.join(`
64249
64249
  }
64250
64250
  return;
64251
64251
  }
64252
- let path4 = "";
64252
+ let path5 = "";
64253
64253
  const secondaryRootErrors = [];
64254
64254
  while (stack.length) {
64255
64255
  const [msg, ...args] = stack.pop();
64256
64256
  switch (msg.code) {
64257
64257
  case Diagnostics.Types_of_property_0_are_incompatible.code: {
64258
- if (path4.indexOf("new ") === 0) {
64259
- path4 = `(${path4})`;
64258
+ if (path5.indexOf("new ") === 0) {
64259
+ path5 = `(${path5})`;
64260
64260
  }
64261
64261
  const str = "" + args[0];
64262
- if (path4.length === 0) {
64263
- path4 = `${str}`;
64262
+ if (path5.length === 0) {
64263
+ path5 = `${str}`;
64264
64264
  } else if (isIdentifierText(str, getEmitScriptTarget(compilerOptions))) {
64265
- path4 = `${path4}.${str}`;
64265
+ path5 = `${path5}.${str}`;
64266
64266
  } else if (str[0] === "[" && str[str.length - 1] === "]") {
64267
- path4 = `${path4}${str}`;
64267
+ path5 = `${path5}${str}`;
64268
64268
  } else {
64269
- path4 = `${path4}[${str}]`;
64269
+ path5 = `${path5}[${str}]`;
64270
64270
  }
64271
64271
  break;
64272
64272
  }
@@ -64274,7 +64274,7 @@ ${lanes.join(`
64274
64274
  case Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:
64275
64275
  case Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:
64276
64276
  case Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: {
64277
- if (path4.length === 0) {
64277
+ if (path5.length === 0) {
64278
64278
  let mappedMsg = msg;
64279
64279
  if (msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) {
64280
64280
  mappedMsg = Diagnostics.Call_signature_return_types_0_and_1_are_incompatible;
@@ -64285,7 +64285,7 @@ ${lanes.join(`
64285
64285
  } else {
64286
64286
  const prefix = msg.code === Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "new " : "";
64287
64287
  const params = msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "" : "...";
64288
- path4 = `${prefix}${path4}(${params})`;
64288
+ path5 = `${prefix}${path5}(${params})`;
64289
64289
  }
64290
64290
  break;
64291
64291
  }
@@ -64301,8 +64301,8 @@ ${lanes.join(`
64301
64301
  return Debug.fail(`Unhandled Diagnostic: ${msg.code}`);
64302
64302
  }
64303
64303
  }
64304
- if (path4) {
64305
- reportError(path4[path4.length - 1] === ")" ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : Diagnostics.The_types_of_0_are_incompatible_between_these_types, path4);
64304
+ if (path5) {
64305
+ reportError(path5[path5.length - 1] === ")" ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : Diagnostics.The_types_of_0_are_incompatible_between_these_types, path5);
64306
64306
  } else {
64307
64307
  secondaryRootErrors.shift();
64308
64308
  }
@@ -104240,9 +104240,9 @@ ${lanes.join(`
104240
104240
  function createAddOutput() {
104241
104241
  let outputs;
104242
104242
  return { addOutput, getOutputs };
104243
- function addOutput(path4) {
104244
- if (path4) {
104245
- (outputs || (outputs = [])).push(path4);
104243
+ function addOutput(path5) {
104244
+ if (path5) {
104245
+ (outputs || (outputs = [])).push(path5);
104246
104246
  }
104247
104247
  }
104248
104248
  function getOutputs() {
@@ -108582,7 +108582,7 @@ ${lanes.join(`
108582
108582
  return {
108583
108583
  useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
108584
108584
  fileExists,
108585
- readFile: (path4, encoding) => host.readFile(path4, encoding),
108585
+ readFile: (path5, encoding) => host.readFile(path5, encoding),
108586
108586
  directoryExists: host.directoryExists && directoryExists,
108587
108587
  getDirectories,
108588
108588
  readDirectory,
@@ -108599,8 +108599,8 @@ ${lanes.join(`
108599
108599
  function getCachedFileSystemEntries(rootDirPath) {
108600
108600
  return cachedReadDirectoryResult.get(ensureTrailingDirectorySeparator(rootDirPath));
108601
108601
  }
108602
- function getCachedFileSystemEntriesForBaseDir(path4) {
108603
- const entries = getCachedFileSystemEntries(getDirectoryPath(path4));
108602
+ function getCachedFileSystemEntriesForBaseDir(path5) {
108603
+ const entries = getCachedFileSystemEntries(getDirectoryPath(path5));
108604
108604
  if (!entries) {
108605
108605
  return entries;
108606
108606
  }
@@ -108647,25 +108647,25 @@ ${lanes.join(`
108647
108647
  return index >= 0;
108648
108648
  }
108649
108649
  function writeFile2(fileName, data, writeByteOrderMark) {
108650
- const path4 = toPath3(fileName);
108651
- const result = getCachedFileSystemEntriesForBaseDir(path4);
108650
+ const path5 = toPath3(fileName);
108651
+ const result = getCachedFileSystemEntriesForBaseDir(path5);
108652
108652
  if (result) {
108653
108653
  updateFilesOfFileSystemEntry(result, getBaseNameOfFileName(fileName), true);
108654
108654
  }
108655
108655
  return host.writeFile(fileName, data, writeByteOrderMark);
108656
108656
  }
108657
108657
  function fileExists(fileName) {
108658
- const path4 = toPath3(fileName);
108659
- const result = getCachedFileSystemEntriesForBaseDir(path4);
108658
+ const path5 = toPath3(fileName);
108659
+ const result = getCachedFileSystemEntriesForBaseDir(path5);
108660
108660
  return result && hasEntry(result.sortedAndCanonicalizedFiles, getCanonicalFileName(getBaseNameOfFileName(fileName))) || host.fileExists(fileName);
108661
108661
  }
108662
108662
  function directoryExists(dirPath) {
108663
- const path4 = toPath3(dirPath);
108664
- return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path4)) || host.directoryExists(dirPath);
108663
+ const path5 = toPath3(dirPath);
108664
+ return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path5)) || host.directoryExists(dirPath);
108665
108665
  }
108666
108666
  function createDirectory(dirPath) {
108667
- const path4 = toPath3(dirPath);
108668
- const result = getCachedFileSystemEntriesForBaseDir(path4);
108667
+ const path5 = toPath3(dirPath);
108668
+ const result = getCachedFileSystemEntriesForBaseDir(path5);
108669
108669
  if (result) {
108670
108670
  const baseName = getBaseNameOfFileName(dirPath);
108671
108671
  const canonicalizedBaseName = getCanonicalFileName(baseName);
@@ -108693,21 +108693,21 @@ ${lanes.join(`
108693
108693
  }
108694
108694
  return host.readDirectory(rootDir, extensions, excludes, includes, depth);
108695
108695
  function getFileSystemEntries(dir) {
108696
- const path4 = toPath3(dir);
108697
- if (path4 === rootDirPath) {
108698
- return rootResult || getFileSystemEntriesFromHost(dir, path4);
108696
+ const path5 = toPath3(dir);
108697
+ if (path5 === rootDirPath) {
108698
+ return rootResult || getFileSystemEntriesFromHost(dir, path5);
108699
108699
  }
108700
- const result = tryReadDirectory2(dir, path4);
108701
- return result !== undefined ? result || getFileSystemEntriesFromHost(dir, path4) : emptyFileSystemEntries;
108700
+ const result = tryReadDirectory2(dir, path5);
108701
+ return result !== undefined ? result || getFileSystemEntriesFromHost(dir, path5) : emptyFileSystemEntries;
108702
108702
  }
108703
- function getFileSystemEntriesFromHost(dir, path4) {
108704
- if (rootSymLinkResult && path4 === rootDirPath)
108703
+ function getFileSystemEntriesFromHost(dir, path5) {
108704
+ if (rootSymLinkResult && path5 === rootDirPath)
108705
108705
  return rootSymLinkResult;
108706
108706
  const result = {
108707
108707
  files: map(host.readDirectory(dir, undefined, undefined, ["*.*"]), getBaseNameOfFileName) || emptyArray,
108708
108708
  directories: host.getDirectories(dir) || emptyArray
108709
108709
  };
108710
- if (path4 === rootDirPath)
108710
+ if (path5 === rootDirPath)
108711
108711
  rootSymLinkResult = result;
108712
108712
  return result;
108713
108713
  }
@@ -109117,12 +109117,12 @@ ${lanes.join(`
109117
109117
  return getDirectoryPath(normalizePath(system.getExecutingFilePath()));
109118
109118
  }
109119
109119
  const newLine = getNewLineCharacter(options);
109120
- const realpath = system.realpath && ((path4) => system.realpath(path4));
109120
+ const realpath = system.realpath && ((path5) => system.realpath(path5));
109121
109121
  const compilerHost = {
109122
109122
  getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), setParentNodes),
109123
109123
  getDefaultLibLocation,
109124
109124
  getDefaultLibFileName: (options2) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options2)),
109125
- writeFile: createWriteFileMeasuringIO((path4, data, writeByteOrderMark) => system.writeFile(path4, data, writeByteOrderMark), (path4) => (compilerHost.createDirectory || system.createDirectory)(path4), (path4) => directoryExists(path4)),
109125
+ writeFile: createWriteFileMeasuringIO((path5, data, writeByteOrderMark) => system.writeFile(path5, data, writeByteOrderMark), (path5) => (compilerHost.createDirectory || system.createDirectory)(path5), (path5) => directoryExists(path5)),
109126
109126
  getCurrentDirectory: memoize(() => system.getCurrentDirectory()),
109127
109127
  useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames,
109128
109128
  getCanonicalFileName,
@@ -109132,9 +109132,9 @@ ${lanes.join(`
109132
109132
  trace: (s) => system.write(s + newLine),
109133
109133
  directoryExists: (directoryName) => system.directoryExists(directoryName),
109134
109134
  getEnvironmentVariable: (name) => system.getEnvironmentVariable ? system.getEnvironmentVariable(name) : "",
109135
- getDirectories: (path4) => system.getDirectories(path4),
109135
+ getDirectories: (path5) => system.getDirectories(path5),
109136
109136
  realpath,
109137
- readDirectory: (path4, extensions, include, exclude, depth) => system.readDirectory(path4, extensions, include, exclude, depth),
109137
+ readDirectory: (path5, extensions, include, exclude, depth) => system.readDirectory(path5, extensions, include, exclude, depth),
109138
109138
  createDirectory: (d) => system.createDirectory(d),
109139
109139
  createHash: maybeBind(system, system.createHash)
109140
109140
  };
@@ -109532,13 +109532,13 @@ ${lanes.join(`
109532
109532
  }
109533
109533
  function getLibraryNameFromLibFileName(libFileName) {
109534
109534
  const components = libFileName.split(".");
109535
- let path4 = components[1];
109535
+ let path5 = components[1];
109536
109536
  let i = 2;
109537
109537
  while (components[i] && components[i] !== "d") {
109538
- path4 += (i === 2 ? "/" : "-") + components[i];
109538
+ path5 += (i === 2 ? "/" : "-") + components[i];
109539
109539
  i++;
109540
109540
  }
109541
- return "@typescript/lib-" + path4;
109541
+ return "@typescript/lib-" + path5;
109542
109542
  }
109543
109543
  function isReferencedFile(reason) {
109544
109544
  switch (reason == null ? undefined : reason.kind) {
@@ -110445,18 +110445,18 @@ ${lanes.join(`
110445
110445
  filesByName.set(newSourceFile.path, newSourceFile);
110446
110446
  }
110447
110447
  const oldFilesByNameMap = oldProgram.getFilesByNameMap();
110448
- oldFilesByNameMap.forEach((oldFile, path4) => {
110448
+ oldFilesByNameMap.forEach((oldFile, path5) => {
110449
110449
  if (!oldFile) {
110450
- filesByName.set(path4, oldFile);
110450
+ filesByName.set(path5, oldFile);
110451
110451
  return;
110452
110452
  }
110453
- if (oldFile.path === path4) {
110453
+ if (oldFile.path === path5) {
110454
110454
  if (oldProgram.isSourceFileFromExternalLibrary(oldFile)) {
110455
110455
  sourceFilesFoundSearchingNodeModules.set(oldFile.path, true);
110456
110456
  }
110457
110457
  return;
110458
110458
  }
110459
- filesByName.set(path4, filesByName.get(oldFile.path));
110459
+ filesByName.set(path5, filesByName.get(oldFile.path));
110460
110460
  });
110461
110461
  const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations);
110462
110462
  programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical);
@@ -110494,10 +110494,10 @@ ${lanes.join(`
110494
110494
  getModeForResolutionAtIndex: getModeForResolutionAtIndex2,
110495
110495
  readFile: (f) => host.readFile(f),
110496
110496
  fileExists: (f) => {
110497
- const path4 = toPath3(f);
110498
- if (getSourceFileByPath(path4))
110497
+ const path5 = toPath3(f);
110498
+ if (getSourceFileByPath(path5))
110499
110499
  return true;
110500
- if (missingFileNames.has(path4))
110500
+ if (missingFileNames.has(path5))
110501
110501
  return false;
110502
110502
  return host.fileExists(f);
110503
110503
  },
@@ -110588,8 +110588,8 @@ ${lanes.join(`
110588
110588
  function getSourceFile(fileName) {
110589
110589
  return getSourceFileByPath(toPath3(fileName));
110590
110590
  }
110591
- function getSourceFileByPath(path4) {
110592
- return filesByName.get(path4) || undefined;
110591
+ function getSourceFileByPath(path5) {
110592
+ return filesByName.get(path5) || undefined;
110593
110593
  }
110594
110594
  function getDiagnosticsHelper(sourceFile, getDiagnostics2, cancellationToken) {
110595
110595
  if (sourceFile) {
@@ -111118,16 +111118,16 @@ ${lanes.join(`
111118
111118
  addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [fileName, existingFile.fileName]);
111119
111119
  }
111120
111120
  }
111121
- function createRedirectedSourceFile(redirectTarget, unredirected, fileName, path4, resolvedPath, originalFileName, sourceFileOptions) {
111121
+ function createRedirectedSourceFile(redirectTarget, unredirected, fileName, path5, resolvedPath, originalFileName, sourceFileOptions) {
111122
111122
  var _a2;
111123
111123
  const redirect = parseNodeFactory.createRedirectedSourceFile({ redirectTarget, unredirected });
111124
111124
  redirect.fileName = fileName;
111125
- redirect.path = path4;
111125
+ redirect.path = path5;
111126
111126
  redirect.resolvedPath = resolvedPath;
111127
111127
  redirect.originalFileName = originalFileName;
111128
111128
  redirect.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? undefined : _a2.length) ? sourceFileOptions.packageJsonLocations : undefined;
111129
111129
  redirect.packageJsonScope = sourceFileOptions.packageJsonScope;
111130
- sourceFilesFoundSearchingNodeModules.set(path4, currentNodeModulesDepth > 0);
111130
+ sourceFilesFoundSearchingNodeModules.set(path5, currentNodeModulesDepth > 0);
111131
111131
  return redirect;
111132
111132
  }
111133
111133
  function findSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {
@@ -111149,24 +111149,24 @@ ${lanes.join(`
111149
111149
  }
111150
111150
  function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {
111151
111151
  var _a2, _b2;
111152
- const path4 = toPath3(fileName);
111152
+ const path5 = toPath3(fileName);
111153
111153
  if (useSourceOfProjectReferenceRedirect) {
111154
- let source = getRedirectFromOutput(path4);
111154
+ let source = getRedirectFromOutput(path5);
111155
111155
  if (!source && host.realpath && options.preserveSymlinks && isDeclarationFileName(fileName) && fileName.includes(nodeModulesPathPart)) {
111156
111156
  const realPath2 = toPath3(host.realpath(fileName));
111157
- if (realPath2 !== path4)
111157
+ if (realPath2 !== path5)
111158
111158
  source = getRedirectFromOutput(realPath2);
111159
111159
  }
111160
111160
  if (source == null ? undefined : source.source) {
111161
111161
  const file2 = findSourceFile(source.source, isDefaultLib, ignoreNoDefaultLib, reason, packageId);
111162
111162
  if (file2)
111163
- addFileToFilesByName(file2, path4, fileName, undefined);
111163
+ addFileToFilesByName(file2, path5, fileName, undefined);
111164
111164
  return file2;
111165
111165
  }
111166
111166
  }
111167
111167
  const originalFileName = fileName;
111168
- if (filesByName.has(path4)) {
111169
- const file2 = filesByName.get(path4);
111168
+ if (filesByName.has(path5)) {
111169
+ const file2 = filesByName.get(path5);
111170
111170
  const addedReason = addFileIncludeReason(file2 || undefined, reason, true);
111171
111171
  if (file2 && addedReason && !(options.forceConsistentCasingInFileNames === false)) {
111172
111172
  const checkedName = file2.fileName;
@@ -111216,30 +111216,30 @@ ${lanes.join(`
111216
111216
  const packageIdKey = packageIdToString(packageId);
111217
111217
  const fileFromPackageId = packageIdToSourceFile.get(packageIdKey);
111218
111218
  if (fileFromPackageId) {
111219
- const dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path4, toPath3(fileName), originalFileName, sourceFileOptions);
111219
+ const dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path5, toPath3(fileName), originalFileName, sourceFileOptions);
111220
111220
  redirectTargetsMap.add(fileFromPackageId.path, fileName);
111221
- addFileToFilesByName(dupFile, path4, fileName, redirectedPath);
111221
+ addFileToFilesByName(dupFile, path5, fileName, redirectedPath);
111222
111222
  addFileIncludeReason(dupFile, reason, false);
111223
- sourceFileToPackageName.set(path4, packageIdToPackageName(packageId));
111223
+ sourceFileToPackageName.set(path5, packageIdToPackageName(packageId));
111224
111224
  processingOtherFiles.push(dupFile);
111225
111225
  return dupFile;
111226
111226
  } else if (file) {
111227
111227
  packageIdToSourceFile.set(packageIdKey, file);
111228
- sourceFileToPackageName.set(path4, packageIdToPackageName(packageId));
111228
+ sourceFileToPackageName.set(path5, packageIdToPackageName(packageId));
111229
111229
  }
111230
111230
  }
111231
- addFileToFilesByName(file, path4, fileName, redirectedPath);
111231
+ addFileToFilesByName(file, path5, fileName, redirectedPath);
111232
111232
  if (file) {
111233
- sourceFilesFoundSearchingNodeModules.set(path4, currentNodeModulesDepth > 0);
111233
+ sourceFilesFoundSearchingNodeModules.set(path5, currentNodeModulesDepth > 0);
111234
111234
  file.fileName = fileName;
111235
- file.path = path4;
111235
+ file.path = path5;
111236
111236
  file.resolvedPath = toPath3(fileName);
111237
111237
  file.originalFileName = originalFileName;
111238
111238
  file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? undefined : _b2.length) ? sourceFileOptions.packageJsonLocations : undefined;
111239
111239
  file.packageJsonScope = sourceFileOptions.packageJsonScope;
111240
111240
  addFileIncludeReason(file, reason, false);
111241
111241
  if (host.useCaseSensitiveFileNames()) {
111242
- const pathLowerCase = toFileNameLowerCase(path4);
111242
+ const pathLowerCase = toFileNameLowerCase(path5);
111243
111243
  const existingFile = filesByNameIgnoreCase.get(pathLowerCase);
111244
111244
  if (existingFile) {
111245
111245
  reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason);
@@ -111272,20 +111272,20 @@ ${lanes.join(`
111272
111272
  }
111273
111273
  return false;
111274
111274
  }
111275
- function addFileToFilesByName(file, path4, fileName, redirectedPath) {
111275
+ function addFileToFilesByName(file, path5, fileName, redirectedPath) {
111276
111276
  if (redirectedPath) {
111277
111277
  updateFilesByNameMap(fileName, redirectedPath, file);
111278
- updateFilesByNameMap(fileName, path4, file || false);
111278
+ updateFilesByNameMap(fileName, path5, file || false);
111279
111279
  } else {
111280
- updateFilesByNameMap(fileName, path4, file);
111280
+ updateFilesByNameMap(fileName, path5, file);
111281
111281
  }
111282
111282
  }
111283
- function updateFilesByNameMap(fileName, path4, file) {
111284
- filesByName.set(path4, file);
111283
+ function updateFilesByNameMap(fileName, path5, file) {
111284
+ filesByName.set(path5, file);
111285
111285
  if (file !== undefined)
111286
- missingFileNames.delete(path4);
111286
+ missingFileNames.delete(path5);
111287
111287
  else
111288
- missingFileNames.set(path4, fileName);
111288
+ missingFileNames.set(path5, fileName);
111289
111289
  }
111290
111290
  function getRedirectFromSourceFile(fileName) {
111291
111291
  return mapSourceFileToResolvedRef == null ? undefined : mapSourceFileToResolvedRef.get(toPath3(fileName));
@@ -111293,8 +111293,8 @@ ${lanes.join(`
111293
111293
  function forEachResolvedProjectReference2(cb) {
111294
111294
  return forEachResolvedProjectReference(resolvedProjectReferences, cb);
111295
111295
  }
111296
- function getRedirectFromOutput(path4) {
111297
- return mapOutputFileToResolvedRef == null ? undefined : mapOutputFileToResolvedRef.get(path4);
111296
+ function getRedirectFromOutput(path5) {
111297
+ return mapOutputFileToResolvedRef == null ? undefined : mapOutputFileToResolvedRef.get(path5);
111298
111298
  }
111299
111299
  function isSourceOfProjectReferenceRedirect(fileName) {
111300
111300
  return useSourceOfProjectReferenceRedirect && !!getRedirectFromSourceFile(fileName);
@@ -111515,7 +111515,7 @@ ${lanes.join(`
111515
111515
  }
111516
111516
  const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
111517
111517
  commandLine.fileNames.forEach((fileName) => {
111518
- const path4 = toPath3(fileName);
111518
+ const path5 = toPath3(fileName);
111519
111519
  let outputDts;
111520
111520
  if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json")) {
111521
111521
  if (!commandLine.options.outFile) {
@@ -111525,7 +111525,7 @@ ${lanes.join(`
111525
111525
  outputDts = outDts;
111526
111526
  }
111527
111527
  }
111528
- mapSourceFileToResolvedRef.set(path4, { resolvedRef, outputDts });
111528
+ mapSourceFileToResolvedRef.set(path5, { resolvedRef, outputDts });
111529
111529
  });
111530
111530
  }
111531
111531
  if (commandLine.projectReferences) {
@@ -112099,9 +112099,9 @@ ${lanes.join(`
112099
112099
  host.compilerHost.fileExists = fileExists;
112100
112100
  let directoryExists;
112101
112101
  if (originalDirectoryExists) {
112102
- directoryExists = host.compilerHost.directoryExists = (path4) => {
112103
- if (originalDirectoryExists.call(host.compilerHost, path4)) {
112104
- handleDirectoryCouldBeSymlink(path4);
112102
+ directoryExists = host.compilerHost.directoryExists = (path5) => {
112103
+ if (originalDirectoryExists.call(host.compilerHost, path5)) {
112104
+ handleDirectoryCouldBeSymlink(path5);
112105
112105
  return true;
112106
112106
  }
112107
112107
  if (!host.getResolvedProjectReferences())
@@ -112120,11 +112120,11 @@ ${lanes.join(`
112120
112120
  }
112121
112121
  });
112122
112122
  }
112123
- return fileOrDirectoryExistsUsingSource(path4, false);
112123
+ return fileOrDirectoryExistsUsingSource(path5, false);
112124
112124
  };
112125
112125
  }
112126
112126
  if (originalGetDirectories) {
112127
- host.compilerHost.getDirectories = (path4) => !host.getResolvedProjectReferences() || originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path4) ? originalGetDirectories.call(host.compilerHost, path4) : [];
112127
+ host.compilerHost.getDirectories = (path5) => !host.getResolvedProjectReferences() || originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path5) ? originalGetDirectories.call(host.compilerHost, path5) : [];
112128
112128
  }
112129
112129
  if (originalRealpath) {
112130
112130
  host.compilerHost.realpath = (s) => {
@@ -112748,15 +112748,15 @@ ${lanes.join(`
112748
112748
  state.allFileNames = undefined;
112749
112749
  }
112750
112750
  BuilderState2.releaseCache = releaseCache2;
112751
- function getFilesAffectedBy(state, programOfThisState, path4, cancellationToken, host) {
112751
+ function getFilesAffectedBy(state, programOfThisState, path5, cancellationToken, host) {
112752
112752
  var _a;
112753
- const result = getFilesAffectedByWithOldState(state, programOfThisState, path4, cancellationToken, host);
112753
+ const result = getFilesAffectedByWithOldState(state, programOfThisState, path5, cancellationToken, host);
112754
112754
  (_a = state.oldSignatures) == null || _a.clear();
112755
112755
  return result;
112756
112756
  }
112757
112757
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
112758
- function getFilesAffectedByWithOldState(state, programOfThisState, path4, cancellationToken, host) {
112759
- const sourceFile = programOfThisState.getSourceFileByPath(path4);
112758
+ function getFilesAffectedByWithOldState(state, programOfThisState, path5, cancellationToken, host) {
112759
+ const sourceFile = programOfThisState.getSourceFileByPath(path5);
112760
112760
  if (!sourceFile) {
112761
112761
  return emptyArray;
112762
112762
  }
@@ -112766,9 +112766,9 @@ ${lanes.join(`
112766
112766
  return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
112767
112767
  }
112768
112768
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
112769
- function updateSignatureOfFile(state, signature, path4) {
112770
- state.fileInfos.get(path4).signature = signature;
112771
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set)).add(path4);
112769
+ function updateSignatureOfFile(state, signature, path5) {
112770
+ state.fileInfos.get(path5).signature = signature;
112771
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set)).add(path5);
112772
112772
  }
112773
112773
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
112774
112774
  function computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, onNewSignature) {
@@ -112814,10 +112814,10 @@ ${lanes.join(`
112814
112814
  const seenMap = /* @__PURE__ */ new Set;
112815
112815
  const queue = [sourceFile.resolvedPath];
112816
112816
  while (queue.length) {
112817
- const path4 = queue.pop();
112818
- if (!seenMap.has(path4)) {
112819
- seenMap.add(path4);
112820
- const references = state.referencedMap.getValues(path4);
112817
+ const path5 = queue.pop();
112818
+ if (!seenMap.has(path5)) {
112819
+ seenMap.add(path5);
112820
+ const references = state.referencedMap.getValues(path5);
112821
112821
  if (references) {
112822
112822
  for (const key of references.keys()) {
112823
112823
  queue.push(key);
@@ -112825,9 +112825,9 @@ ${lanes.join(`
112825
112825
  }
112826
112826
  }
112827
112827
  }
112828
- return arrayFrom(mapDefinedIterator(seenMap.keys(), (path4) => {
112828
+ return arrayFrom(mapDefinedIterator(seenMap.keys(), (path5) => {
112829
112829
  var _a;
112830
- return ((_a = programOfThisState.getSourceFileByPath(path4)) == null ? undefined : _a.fileName) ?? path4;
112830
+ return ((_a = programOfThisState.getSourceFileByPath(path5)) == null ? undefined : _a.fileName) ?? path5;
112831
112831
  }));
112832
112832
  }
112833
112833
  BuilderState2.getAllDependencies = getAllDependencies;
@@ -113007,7 +113007,7 @@ ${lanes.join(`
113007
113007
  var _a2;
113008
113008
  let oldInfo;
113009
113009
  let newReferences;
113010
- if (!useOldState || !(oldInfo = oldState.fileInfos.get(sourceFilePath)) || oldInfo.version !== info.version || oldInfo.impliedFormat !== info.impliedFormat || !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) || newReferences && forEachKey(newReferences, (path4) => !state.fileInfos.has(path4) && oldState.fileInfos.has(path4))) {
113010
+ if (!useOldState || !(oldInfo = oldState.fileInfos.get(sourceFilePath)) || oldInfo.version !== info.version || oldInfo.impliedFormat !== info.impliedFormat || !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) || newReferences && forEachKey(newReferences, (path5) => !state.fileInfos.has(path5) && oldState.fileInfos.has(path5))) {
113011
113011
  addFileToChangeSet(sourceFilePath);
113012
113012
  } else {
113013
113013
  const sourceFile = newProgram.getSourceFileByPath(sourceFilePath);
@@ -113063,8 +113063,8 @@ ${lanes.join(`
113063
113063
  if (useOldState && state.semanticDiagnosticsPerFile.size !== state.fileInfos.size && oldState.checkPending !== state.checkPending)
113064
113064
  state.buildInfoEmitPending = true;
113065
113065
  return state;
113066
- function addFileToChangeSet(path4) {
113067
- state.changedFilesSet.add(path4);
113066
+ function addFileToChangeSet(path5) {
113067
+ state.changedFilesSet.add(path5);
113068
113068
  if (outFilePath) {
113069
113069
  canCopySemanticDiagnostics = false;
113070
113070
  canCopyEmitDiagnostics = false;
@@ -113125,9 +113125,9 @@ ${lanes.join(`
113125
113125
  result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToDiagnosticRelatedInformation(r, diagnosticFilePath, newProgram, toPathInBuildInfoDirectory)) : [] : undefined;
113126
113126
  return result;
113127
113127
  });
113128
- function toPathInBuildInfoDirectory(path4) {
113128
+ function toPathInBuildInfoDirectory(path5) {
113129
113129
  buildInfoDirectory ?? (buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory())));
113130
- return toPath(path4, buildInfoDirectory, newProgram.getCanonicalFileName);
113130
+ return toPath(path5, buildInfoDirectory, newProgram.getCanonicalFileName);
113131
113131
  }
113132
113132
  }
113133
113133
  function convertToDiagnosticRelatedInformation(diagnostic, diagnosticFilePath, newProgram, toPath3) {
@@ -113190,12 +113190,12 @@ ${lanes.join(`
113190
113190
  state.affectedFilesPendingEmit = undefined;
113191
113191
  state.programEmitPending = undefined;
113192
113192
  }
113193
- (_b = state.affectedFilesPendingEmit) == null || _b.forEach((emitKind, path4) => {
113193
+ (_b = state.affectedFilesPendingEmit) == null || _b.forEach((emitKind, path5) => {
113194
113194
  const pending = !isForDtsErrors ? emitKind & 7 : emitKind & (7 | 48);
113195
113195
  if (!pending)
113196
- state.affectedFilesPendingEmit.delete(path4);
113196
+ state.affectedFilesPendingEmit.delete(path5);
113197
113197
  else
113198
- state.affectedFilesPendingEmit.set(path4, pending);
113198
+ state.affectedFilesPendingEmit.set(path5, pending);
113199
113199
  });
113200
113200
  if (state.programEmitPending) {
113201
113201
  const pending = !isForDtsErrors ? state.programEmitPending & 7 : state.programEmitPending & (7 | 48);
@@ -113220,11 +113220,11 @@ ${lanes.join(`
113220
113220
  var _a;
113221
113221
  if (!((_a = state.affectedFilesPendingEmit) == null ? undefined : _a.size))
113222
113222
  return;
113223
- return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path4) => {
113223
+ return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path5) => {
113224
113224
  var _a2;
113225
- const affectedFile = state.program.getSourceFileByPath(path4);
113225
+ const affectedFile = state.program.getSourceFileByPath(path5);
113226
113226
  if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) {
113227
- state.affectedFilesPendingEmit.delete(path4);
113227
+ state.affectedFilesPendingEmit.delete(path5);
113228
113228
  return;
113229
113229
  }
113230
113230
  const seenKind = (_a2 = state.seenEmittedFiles) == null ? undefined : _a2.get(affectedFile.resolvedPath);
@@ -113237,11 +113237,11 @@ ${lanes.join(`
113237
113237
  var _a;
113238
113238
  if (!((_a = state.emitDiagnosticsPerFile) == null ? undefined : _a.size))
113239
113239
  return;
113240
- return forEachEntry(state.emitDiagnosticsPerFile, (diagnostics, path4) => {
113240
+ return forEachEntry(state.emitDiagnosticsPerFile, (diagnostics, path5) => {
113241
113241
  var _a2;
113242
- const affectedFile = state.program.getSourceFileByPath(path4);
113242
+ const affectedFile = state.program.getSourceFileByPath(path5);
113243
113243
  if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) {
113244
- state.emitDiagnosticsPerFile.delete(path4);
113244
+ state.emitDiagnosticsPerFile.delete(path5);
113245
113245
  return;
113246
113246
  }
113247
113247
  const seenKind = ((_a2 = state.seenEmittedFiles) == null ? undefined : _a2.get(affectedFile.resolvedPath)) || 0;
@@ -113267,31 +113267,31 @@ ${lanes.join(`
113267
113267
  return;
113268
113268
  handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host);
113269
113269
  }
113270
- function handleDtsMayChangeOf(state, path4, invalidateJsFiles, cancellationToken, host) {
113271
- removeSemanticDiagnosticsOf(state, path4);
113272
- if (!state.changedFilesSet.has(path4)) {
113273
- const sourceFile = state.program.getSourceFileByPath(path4);
113270
+ function handleDtsMayChangeOf(state, path5, invalidateJsFiles, cancellationToken, host) {
113271
+ removeSemanticDiagnosticsOf(state, path5);
113272
+ if (!state.changedFilesSet.has(path5)) {
113273
+ const sourceFile = state.program.getSourceFileByPath(path5);
113274
113274
  if (sourceFile) {
113275
113275
  BuilderState.updateShapeSignature(state, state.program, sourceFile, cancellationToken, host, true);
113276
113276
  if (invalidateJsFiles) {
113277
- addToAffectedFilesPendingEmit(state, path4, getBuilderFileEmit(state.compilerOptions));
113277
+ addToAffectedFilesPendingEmit(state, path5, getBuilderFileEmit(state.compilerOptions));
113278
113278
  } else if (getEmitDeclarations(state.compilerOptions)) {
113279
- addToAffectedFilesPendingEmit(state, path4, state.compilerOptions.declarationMap ? 56 : 24);
113279
+ addToAffectedFilesPendingEmit(state, path5, state.compilerOptions.declarationMap ? 56 : 24);
113280
113280
  }
113281
113281
  }
113282
113282
  }
113283
113283
  }
113284
- function removeSemanticDiagnosticsOf(state, path4) {
113284
+ function removeSemanticDiagnosticsOf(state, path5) {
113285
113285
  if (!state.semanticDiagnosticsFromOldState) {
113286
113286
  return true;
113287
113287
  }
113288
- state.semanticDiagnosticsFromOldState.delete(path4);
113289
- state.semanticDiagnosticsPerFile.delete(path4);
113288
+ state.semanticDiagnosticsFromOldState.delete(path5);
113289
+ state.semanticDiagnosticsPerFile.delete(path5);
113290
113290
  return !state.semanticDiagnosticsFromOldState.size;
113291
113291
  }
113292
- function isChangedSignature(state, path4) {
113293
- const oldSignature = Debug.checkDefined(state.oldSignatures).get(path4) || undefined;
113294
- const newSignature = Debug.checkDefined(state.fileInfos.get(path4)).signature;
113292
+ function isChangedSignature(state, path5) {
113293
+ const oldSignature = Debug.checkDefined(state.oldSignatures).get(path5) || undefined;
113294
+ const newSignature = Debug.checkDefined(state.fileInfos.get(path5)).signature;
113295
113295
  return newSignature !== oldSignature;
113296
113296
  }
113297
113297
  function handleDtsMayChangeOfGlobalScope(state, filePath, invalidateJsFiles, cancellationToken, host) {
@@ -113359,13 +113359,13 @@ ${lanes.join(`
113359
113359
  }
113360
113360
  function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile) {
113361
113361
  semanticDiagnosticsPerFile ?? (semanticDiagnosticsPerFile = state.semanticDiagnosticsPerFile);
113362
- const path4 = sourceFile.resolvedPath;
113363
- const cachedDiagnostics = semanticDiagnosticsPerFile.get(path4);
113362
+ const path5 = sourceFile.resolvedPath;
113363
+ const cachedDiagnostics = semanticDiagnosticsPerFile.get(path5);
113364
113364
  if (cachedDiagnostics) {
113365
113365
  return filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions);
113366
113366
  }
113367
113367
  const diagnostics = state.program.getBindAndCheckDiagnostics(sourceFile, cancellationToken);
113368
- semanticDiagnosticsPerFile.set(path4, diagnostics);
113368
+ semanticDiagnosticsPerFile.set(path5, diagnostics);
113369
113369
  state.buildInfoEmitPending = true;
113370
113370
  return filterSemanticDiagnostics(diagnostics, state.compilerOptions);
113371
113371
  }
@@ -113479,12 +113479,12 @@ ${lanes.join(`
113479
113479
  if ((_b = state.affectedFilesPendingEmit) == null ? undefined : _b.size) {
113480
113480
  const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);
113481
113481
  const seenFiles = /* @__PURE__ */ new Set;
113482
- for (const path4 of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
113483
- if (tryAddToSet(seenFiles, path4)) {
113484
- const file = state.program.getSourceFileByPath(path4);
113482
+ for (const path5 of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
113483
+ if (tryAddToSet(seenFiles, path5)) {
113484
+ const file = state.program.getSourceFileByPath(path5);
113485
113485
  if (!file || !sourceFileMayBeEmitted(file, state.program))
113486
113486
  continue;
113487
- const fileId = toFileId(path4), pendingEmit = state.affectedFilesPendingEmit.get(path4);
113487
+ const fileId = toFileId(path5), pendingEmit = state.affectedFilesPendingEmit.get(path5);
113488
113488
  affectedFilesPendingEmit = append(affectedFilesPendingEmit, pendingEmit === fullEmitForOptions ? fileId : pendingEmit === 24 ? [fileId] : [fileId, pendingEmit]);
113489
113489
  }
113490
113490
  }
@@ -113508,17 +113508,17 @@ ${lanes.join(`
113508
113508
  version
113509
113509
  };
113510
113510
  return buildInfo;
113511
- function relativeToBuildInfoEnsuringAbsolutePath(path4) {
113512
- return relativeToBuildInfo(getNormalizedAbsolutePath(path4, currentDirectory));
113511
+ function relativeToBuildInfoEnsuringAbsolutePath(path5) {
113512
+ return relativeToBuildInfo(getNormalizedAbsolutePath(path5, currentDirectory));
113513
113513
  }
113514
- function relativeToBuildInfo(path4) {
113515
- return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path4, state.program.getCanonicalFileName));
113514
+ function relativeToBuildInfo(path5) {
113515
+ return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path5, state.program.getCanonicalFileName));
113516
113516
  }
113517
- function toFileId(path4) {
113518
- let fileId = fileNameToFileId.get(path4);
113517
+ function toFileId(path5) {
113518
+ let fileId = fileNameToFileId.get(path5);
113519
113519
  if (fileId === undefined) {
113520
- fileNames.push(relativeToBuildInfo(path4));
113521
- fileNameToFileId.set(path4, fileId = fileNames.length);
113520
+ fileNames.push(relativeToBuildInfo(path5));
113521
+ fileNameToFileId.set(path5, fileId = fileNames.length);
113522
113522
  }
113523
113523
  return fileId;
113524
113524
  }
@@ -113532,8 +113532,8 @@ ${lanes.join(`
113532
113532
  }
113533
113533
  return fileIdListId;
113534
113534
  }
113535
- function tryAddRoot(path4, fileId) {
113536
- const file = state.program.getSourceFile(path4);
113535
+ function tryAddRoot(path5, fileId) {
113536
+ const file = state.program.getSourceFile(path5);
113537
113537
  if (!state.program.getFileIncludeReasons().get(file.path).some((r) => r.kind === 0))
113538
113538
  return;
113539
113539
  if (!root.length)
@@ -113552,10 +113552,10 @@ ${lanes.join(`
113552
113552
  }
113553
113553
  function toResolvedRoot() {
113554
113554
  let result;
113555
- rootFileNames.forEach((path4) => {
113556
- const file = state.program.getSourceFileByPath(path4);
113557
- if (file && path4 !== file.resolvedPath) {
113558
- result = append(result, [toFileId(file.resolvedPath), toFileId(path4)]);
113555
+ rootFileNames.forEach((path5) => {
113556
+ const file = state.program.getSourceFileByPath(path5);
113557
+ if (file && path5 !== file.resolvedPath) {
113558
+ result = append(result, [toFileId(file.resolvedPath), toFileId(path5)]);
113559
113559
  }
113560
113560
  });
113561
113561
  return result;
@@ -113664,8 +113664,8 @@ ${lanes.join(`
113664
113664
  function toChangeFileSet() {
113665
113665
  let changeFileSet;
113666
113666
  if (state.changedFilesSet.size) {
113667
- for (const path4 of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) {
113668
- changeFileSet = append(changeFileSet, toFileId(path4));
113667
+ for (const path5 of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) {
113668
+ changeFileSet = append(changeFileSet, toFileId(path5));
113669
113669
  }
113670
113670
  }
113671
113671
  return changeFileSet;
@@ -114085,8 +114085,8 @@ ${lanes.join(`
114085
114085
  const changedFilesSet = new Set(map(buildInfo.changeFileSet, toFilePath));
114086
114086
  if (isIncrementalBundleEmitBuildInfo(buildInfo)) {
114087
114087
  buildInfo.fileInfos.forEach((fileInfo, index) => {
114088
- const path4 = toFilePath(index + 1);
114089
- fileInfos.set(path4, isString(fileInfo) ? { version: fileInfo, signature: undefined, affectsGlobalScope: undefined, impliedFormat: undefined } : fileInfo);
114088
+ const path5 = toFilePath(index + 1);
114089
+ fileInfos.set(path5, isString(fileInfo) ? { version: fileInfo, signature: undefined, affectsGlobalScope: undefined, impliedFormat: undefined } : fileInfo);
114090
114090
  });
114091
114091
  state = {
114092
114092
  fileInfos,
@@ -114105,11 +114105,11 @@ ${lanes.join(`
114105
114105
  filePathsSetList = (_b = buildInfo.fileIdsList) == null ? undefined : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));
114106
114106
  const emitSignatures = ((_c = buildInfo.options) == null ? undefined : _c.composite) && !buildInfo.options.outFile ? /* @__PURE__ */ new Map : undefined;
114107
114107
  buildInfo.fileInfos.forEach((fileInfo, index) => {
114108
- const path4 = toFilePath(index + 1);
114108
+ const path5 = toFilePath(index + 1);
114109
114109
  const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);
114110
- fileInfos.set(path4, stateFileInfo);
114110
+ fileInfos.set(path5, stateFileInfo);
114111
114111
  if (emitSignatures && stateFileInfo.signature)
114112
- emitSignatures.set(path4, stateFileInfo.signature);
114112
+ emitSignatures.set(path5, stateFileInfo.signature);
114113
114113
  });
114114
114114
  (_d = buildInfo.emitSignatures) == null || _d.forEach((value) => {
114115
114115
  if (isNumber(value))
@@ -114158,11 +114158,11 @@ ${lanes.join(`
114158
114158
  close: noop,
114159
114159
  hasChangedEmitSignature: returnFalse
114160
114160
  };
114161
- function toPathInBuildInfoDirectory(path4) {
114162
- return toPath(path4, buildInfoDirectory, getCanonicalFileName);
114161
+ function toPathInBuildInfoDirectory(path5) {
114162
+ return toPath(path5, buildInfoDirectory, getCanonicalFileName);
114163
114163
  }
114164
- function toAbsolutePath(path4) {
114165
- return getNormalizedAbsolutePath(path4, buildInfoDirectory);
114164
+ function toAbsolutePath(path5) {
114165
+ return getNormalizedAbsolutePath(path5, buildInfoDirectory);
114166
114166
  }
114167
114167
  function toFilePath(fileId) {
114168
114168
  return filePaths[fileId - 1];
@@ -114199,31 +114199,31 @@ ${lanes.join(`
114199
114199
  const roots = /* @__PURE__ */ new Map;
114200
114200
  const resolvedRoots = new Map(program.resolvedRoot);
114201
114201
  program.fileInfos.forEach((fileInfo, index) => {
114202
- const path4 = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
114202
+ const path5 = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
114203
114203
  const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
114204
- fileInfos.set(path4, version2);
114204
+ fileInfos.set(path5, version2);
114205
114205
  if (rootIndex < program.root.length) {
114206
114206
  const current = program.root[rootIndex];
114207
114207
  const fileId = index + 1;
114208
114208
  if (isArray(current)) {
114209
114209
  if (current[0] <= fileId && fileId <= current[1]) {
114210
- addRoot(fileId, path4);
114210
+ addRoot(fileId, path5);
114211
114211
  if (current[1] === fileId)
114212
114212
  rootIndex++;
114213
114213
  }
114214
114214
  } else if (current === fileId) {
114215
- addRoot(fileId, path4);
114215
+ addRoot(fileId, path5);
114216
114216
  rootIndex++;
114217
114217
  }
114218
114218
  }
114219
114219
  });
114220
114220
  return { fileInfos, roots };
114221
- function addRoot(fileId, path4) {
114221
+ function addRoot(fileId, path5) {
114222
114222
  const root = resolvedRoots.get(fileId);
114223
114223
  if (root) {
114224
- roots.set(toPath(program.fileNames[root - 1], buildInfoDirectory, getCanonicalFileName), path4);
114224
+ roots.set(toPath(program.fileNames[root - 1], buildInfoDirectory, getCanonicalFileName), path5);
114225
114225
  } else {
114226
- roots.set(path4, undefined);
114226
+ roots.set(path5, undefined);
114227
114227
  }
114228
114228
  }
114229
114229
  }
@@ -114269,11 +114269,11 @@ ${lanes.join(`
114269
114269
  const { newProgram, configFileParsingDiagnostics: newConfigFileParsingDiagnostics } = getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences);
114270
114270
  return createRedirectedBuilderProgram({ program: newProgram, compilerOptions: newProgram.getCompilerOptions() }, newConfigFileParsingDiagnostics);
114271
114271
  }
114272
- function removeIgnoredPath(path4) {
114273
- if (endsWith(path4, "/node_modules/.staging")) {
114274
- return removeSuffix(path4, "/.staging");
114272
+ function removeIgnoredPath(path5) {
114273
+ if (endsWith(path5, "/node_modules/.staging")) {
114274
+ return removeSuffix(path5, "/.staging");
114275
114275
  }
114276
- return some(ignoredPaths, (searchPath) => path4.includes(searchPath)) ? undefined : path4;
114276
+ return some(ignoredPaths, (searchPath) => path5.includes(searchPath)) ? undefined : path5;
114277
114277
  }
114278
114278
  function perceivedOsRootLengthForWatching(pathComponents2, length2) {
114279
114279
  if (length2 <= 1)
@@ -114302,8 +114302,8 @@ ${lanes.join(`
114302
114302
  const perceivedOsRootLength = perceivedOsRootLengthForWatching(pathComponents2, length2);
114303
114303
  return length2 > perceivedOsRootLength + 1;
114304
114304
  }
114305
- function canWatchDirectoryOrFilePath(path4) {
114306
- return canWatchDirectoryOrFile(getPathComponents(path4));
114305
+ function canWatchDirectoryOrFilePath(path5) {
114306
+ return canWatchDirectoryOrFile(getPathComponents(path5));
114307
114307
  }
114308
114308
  function canWatchAtTypes(atTypes) {
114309
114309
  return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(getDirectoryPath(atTypes));
@@ -114535,11 +114535,11 @@ ${lanes.join(`
114535
114535
  filesWithChangedSetOfUnresolvedImports = undefined;
114536
114536
  return collected;
114537
114537
  }
114538
- function isFileWithInvalidatedNonRelativeUnresolvedImports(path4) {
114538
+ function isFileWithInvalidatedNonRelativeUnresolvedImports(path5) {
114539
114539
  if (!filesWithInvalidatedNonRelativeUnresolvedImports) {
114540
114540
  return false;
114541
114541
  }
114542
- const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path4);
114542
+ const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path5);
114543
114543
  return !!value && !!value.length;
114544
114544
  }
114545
114545
  function createHasInvalidatedResolutions(customHasInvalidatedResolutions, customHasInvalidatedLibResolutions) {
@@ -114547,7 +114547,7 @@ ${lanes.join(`
114547
114547
  const collected = filesWithInvalidatedResolutions;
114548
114548
  filesWithInvalidatedResolutions = undefined;
114549
114549
  return {
114550
- hasInvalidatedResolutions: (path4) => customHasInvalidatedResolutions(path4) || allModuleAndTypeResolutionsAreInvalidated || !!(collected == null ? undefined : collected.has(path4)) || isFileWithInvalidatedNonRelativeUnresolvedImports(path4),
114550
+ hasInvalidatedResolutions: (path5) => customHasInvalidatedResolutions(path5) || allModuleAndTypeResolutionsAreInvalidated || !!(collected == null ? undefined : collected.has(path5)) || isFileWithInvalidatedNonRelativeUnresolvedImports(path5),
114551
114551
  hasInvalidatedLibResolutions: (libFileName) => {
114552
114552
  var _a;
114553
114553
  return customHasInvalidatedLibResolutions(libFileName) || !!((_a = resolvedLibraries == null ? undefined : resolvedLibraries.get(libFileName)) == null ? undefined : _a.isInvalidated);
@@ -114597,11 +114597,11 @@ ${lanes.join(`
114597
114597
  else
114598
114598
  impliedFormatPackageJsons.delete(newFile.resolvedPath);
114599
114599
  });
114600
- impliedFormatPackageJsons.forEach((existing, path4) => {
114601
- const newFile = newProgram == null ? undefined : newProgram.getSourceFileByPath(path4);
114602
- if (!newFile || newFile.resolvedPath !== path4) {
114600
+ impliedFormatPackageJsons.forEach((existing, path5) => {
114601
+ const newFile = newProgram == null ? undefined : newProgram.getSourceFileByPath(path5);
114602
+ if (!newFile || newFile.resolvedPath !== path5) {
114603
114603
  existing.forEach((location) => fileWatchesOfAffectingLocations.get(location).files--);
114604
- impliedFormatPackageJsons.delete(path4);
114604
+ impliedFormatPackageJsons.delete(path5);
114605
114605
  }
114606
114606
  });
114607
114607
  }
@@ -114620,16 +114620,16 @@ ${lanes.join(`
114620
114620
  packageDirWatchers.delete(packageDirPath);
114621
114621
  }
114622
114622
  }
114623
- function closeDirectoryWatchesOfFailedLookup(watcher, path4) {
114623
+ function closeDirectoryWatchesOfFailedLookup(watcher, path5) {
114624
114624
  if (watcher.refCount === 0) {
114625
- directoryWatchesOfFailedLookups.delete(path4);
114625
+ directoryWatchesOfFailedLookups.delete(path5);
114626
114626
  watcher.watcher.close();
114627
114627
  }
114628
114628
  }
114629
- function closeFileWatcherOfAffectingLocation(watcher, path4) {
114629
+ function closeFileWatcherOfAffectingLocation(watcher, path5) {
114630
114630
  var _a;
114631
114631
  if (watcher.files === 0 && watcher.resolutions === 0 && !((_a = watcher.symlinks) == null ? undefined : _a.size)) {
114632
- fileWatchesOfAffectingLocations.delete(path4);
114632
+ fileWatchesOfAffectingLocations.delete(path5);
114633
114633
  watcher.watcher.close();
114634
114634
  }
114635
114635
  }
@@ -114648,10 +114648,10 @@ ${lanes.join(`
114648
114648
  logChanges
114649
114649
  }) {
114650
114650
  var _a;
114651
- const path4 = resolutionHost.toPath(containingFile);
114652
- const resolutionsInFile = perFileCache.get(path4) || perFileCache.set(path4, createModeAwareCache()).get(path4);
114651
+ const path5 = resolutionHost.toPath(containingFile);
114652
+ const resolutionsInFile = perFileCache.get(path5) || perFileCache.set(path5, createModeAwareCache()).get(path5);
114653
114653
  const resolvedModules = [];
114654
- const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path4);
114654
+ const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path5);
114655
114655
  const program = resolutionHost.getCurrentProgram();
114656
114656
  const oldRedirect = program && ((_a = program.getRedirectFromSourceFile(containingFile)) == null ? undefined : _a.resolvedRef);
114657
114657
  const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : !!redirectedReference;
@@ -114668,13 +114668,13 @@ ${lanes.join(`
114668
114668
  }
114669
114669
  resolutionsInFile.set(name, mode, resolution);
114670
114670
  if (resolution !== existingResolution) {
114671
- watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path4, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
114671
+ watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path5, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
114672
114672
  if (existingResolution) {
114673
- stopWatchFailedLookupLocationOfResolution(existingResolution, path4, getResolutionWithResolvedFileName);
114673
+ stopWatchFailedLookupLocationOfResolution(existingResolution, path5, getResolutionWithResolvedFileName);
114674
114674
  }
114675
114675
  }
114676
114676
  if (logChanges && filesWithChangedSetOfUnresolvedImports && !resolutionIsEqualTo(existingResolution, resolution)) {
114677
- filesWithChangedSetOfUnresolvedImports.push(path4);
114677
+ filesWithChangedSetOfUnresolvedImports.push(path5);
114678
114678
  logChanges = false;
114679
114679
  }
114680
114680
  } else {
@@ -114692,7 +114692,7 @@ ${lanes.join(`
114692
114692
  if (resolutionsInFile.size() !== seenNamesInFile.size()) {
114693
114693
  resolutionsInFile.forEach((resolution, name, mode) => {
114694
114694
  if (!seenNamesInFile.has(name, mode)) {
114695
- stopWatchFailedLookupLocationOfResolution(resolution, path4, getResolutionWithResolvedFileName);
114695
+ stopWatchFailedLookupLocationOfResolution(resolution, path5, getResolutionWithResolvedFileName);
114696
114696
  resolutionsInFile.delete(name, mode);
114697
114697
  }
114698
114698
  });
@@ -114753,11 +114753,11 @@ ${lanes.join(`
114753
114753
  if (!resolution || resolution.isInvalidated) {
114754
114754
  const existingResolution = resolution;
114755
114755
  resolution = resolveLibrary(libraryName, resolveFrom, options, host, libraryResolutionCache);
114756
- const path4 = resolutionHost.toPath(resolveFrom);
114757
- watchFailedLookupLocationsOfExternalModuleResolutions(libraryName, resolution, path4, getResolvedModuleFromResolution, false);
114756
+ const path5 = resolutionHost.toPath(resolveFrom);
114757
+ watchFailedLookupLocationsOfExternalModuleResolutions(libraryName, resolution, path5, getResolvedModuleFromResolution, false);
114758
114758
  resolvedLibraries.set(libFileName, resolution);
114759
114759
  if (existingResolution) {
114760
- stopWatchFailedLookupLocationOfResolution(existingResolution, path4, getResolvedModuleFromResolution);
114760
+ stopWatchFailedLookupLocationOfResolution(existingResolution, path5, getResolvedModuleFromResolution);
114761
114761
  }
114762
114762
  } else {
114763
114763
  if (isTraceEnabled(options, host)) {
@@ -114769,8 +114769,8 @@ ${lanes.join(`
114769
114769
  }
114770
114770
  function resolveSingleModuleNameWithoutWatching(moduleName, containingFile) {
114771
114771
  var _a, _b;
114772
- const path4 = resolutionHost.toPath(containingFile);
114773
- const resolutionsInFile = resolvedModuleNames.get(path4);
114772
+ const path5 = resolutionHost.toPath(containingFile);
114773
+ const resolutionsInFile = resolvedModuleNames.get(path5);
114774
114774
  const resolution = resolutionsInFile == null ? undefined : resolutionsInFile.get(moduleName, undefined);
114775
114775
  if (resolution && !resolution.isInvalidated)
114776
114776
  return resolution;
@@ -114906,15 +114906,15 @@ ${lanes.join(`
114906
114906
  (symlinkWatcher.symlinks ?? (symlinkWatcher.symlinks = /* @__PURE__ */ new Set)).add(affectingLocation);
114907
114907
  }
114908
114908
  }
114909
- function invalidateAffectingFileWatcher(path4, packageJsonMap) {
114909
+ function invalidateAffectingFileWatcher(path5, packageJsonMap) {
114910
114910
  var _a;
114911
- const watcher = fileWatchesOfAffectingLocations.get(path4);
114911
+ const watcher = fileWatchesOfAffectingLocations.get(path5);
114912
114912
  if (watcher == null ? undefined : watcher.resolutions)
114913
- (affectingPathChecks ?? (affectingPathChecks = /* @__PURE__ */ new Set)).add(path4);
114913
+ (affectingPathChecks ?? (affectingPathChecks = /* @__PURE__ */ new Set)).add(path5);
114914
114914
  if (watcher == null ? undefined : watcher.files)
114915
- (affectingPathChecksForFile ?? (affectingPathChecksForFile = /* @__PURE__ */ new Set)).add(path4);
114915
+ (affectingPathChecksForFile ?? (affectingPathChecksForFile = /* @__PURE__ */ new Set)).add(path5);
114916
114916
  (_a = watcher == null ? undefined : watcher.symlinks) == null || _a.forEach((path22) => invalidateAffectingFileWatcher(path22, packageJsonMap));
114917
- packageJsonMap == null || packageJsonMap.delete(resolutionHost.toPath(path4));
114917
+ packageJsonMap == null || packageJsonMap.delete(resolutionHost.toPath(path5));
114918
114918
  }
114919
114919
  function watchFailedLookupLocationOfNonRelativeModuleResolutions() {
114920
114920
  nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfResolution);
@@ -115134,7 +115134,7 @@ ${lanes.join(`
115134
115134
  function invalidatePackageJsonMap() {
115135
115135
  const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();
115136
115136
  if (packageJsonMap && (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks)) {
115137
- packageJsonMap.forEach((_value, path4) => isInvalidatedFailedLookup(path4) ? packageJsonMap.delete(path4) : undefined);
115137
+ packageJsonMap.forEach((_value, path5) => isInvalidatedFailedLookup(path5) ? packageJsonMap.delete(path5) : undefined);
115138
115138
  }
115139
115139
  }
115140
115140
  function invalidateResolutionsOfFailedLookupLocations() {
@@ -115606,7 +115606,7 @@ ${lanes.join(`
115606
115606
  getSourceFile: createGetSourceFile((fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), undefined),
115607
115607
  getDefaultLibLocation: maybeBind(host, host.getDefaultLibLocation),
115608
115608
  getDefaultLibFileName: (options) => host.getDefaultLibFileName(options),
115609
- writeFile: createWriteFileMeasuringIO((path4, data, writeByteOrderMark) => host.writeFile(path4, data, writeByteOrderMark), (path4) => host.createDirectory(path4), (path4) => host.directoryExists(path4)),
115609
+ writeFile: createWriteFileMeasuringIO((path5, data, writeByteOrderMark) => host.writeFile(path5, data, writeByteOrderMark), (path5) => host.createDirectory(path5), (path5) => host.directoryExists(path5)),
115610
115610
  getCurrentDirectory: memoize(() => host.getCurrentDirectory()),
115611
115611
  useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2,
115612
115612
  getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2),
@@ -115675,16 +115675,16 @@ ${lanes.join(`
115675
115675
  getCurrentDirectory: memoize(() => system.getCurrentDirectory()),
115676
115676
  getDefaultLibLocation,
115677
115677
  getDefaultLibFileName: (options) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options)),
115678
- fileExists: (path4) => system.fileExists(path4),
115679
- readFile: (path4, encoding) => system.readFile(path4, encoding),
115680
- directoryExists: (path4) => system.directoryExists(path4),
115681
- getDirectories: (path4) => system.getDirectories(path4),
115682
- readDirectory: (path4, extensions, exclude, include, depth) => system.readDirectory(path4, extensions, exclude, include, depth),
115678
+ fileExists: (path5) => system.fileExists(path5),
115679
+ readFile: (path5, encoding) => system.readFile(path5, encoding),
115680
+ directoryExists: (path5) => system.directoryExists(path5),
115681
+ getDirectories: (path5) => system.getDirectories(path5),
115682
+ readDirectory: (path5, extensions, exclude, include, depth) => system.readDirectory(path5, extensions, exclude, include, depth),
115683
115683
  realpath: maybeBind(system, system.realpath),
115684
115684
  getEnvironmentVariable: maybeBind(system, system.getEnvironmentVariable),
115685
115685
  trace: (s) => system.write(s + system.newLine),
115686
- createDirectory: (path4) => system.createDirectory(path4),
115687
- writeFile: (path4, data, writeByteOrderMark) => system.writeFile(path4, data, writeByteOrderMark),
115686
+ createDirectory: (path5) => system.createDirectory(path5),
115687
+ writeFile: (path5, data, writeByteOrderMark) => system.writeFile(path5, data, writeByteOrderMark),
115688
115688
  createHash: maybeBind(system, system.createHash),
115689
115689
  createProgram: createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram,
115690
115690
  storeSignatureInfo: system.storeSignatureInfo,
@@ -115974,7 +115974,7 @@ ${lanes.join(`
115974
115974
  originalWriteFile,
115975
115975
  readFileWithCache
115976
115976
  } = changeCompilerHostLikeToUseCache(compilerHost, toPath3);
115977
- if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, (path4) => getSourceVersion(path4, readFileWithCache), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
115977
+ if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, (path5) => getSourceVersion(path5, readFileWithCache), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
115978
115978
  if (hasChangedConfigFileParsingErrors) {
115979
115979
  if (reportFileChangeDetectedOnCreateProgram) {
115980
115980
  reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation);
@@ -116058,14 +116058,14 @@ ${lanes.join(`
116058
116058
  return typeof hostSourceFile.version === "boolean";
116059
116059
  }
116060
116060
  function fileExists(fileName) {
116061
- const path4 = toPath3(fileName);
116062
- if (isFileMissingOnHost(sourceFilesCache.get(path4))) {
116061
+ const path5 = toPath3(fileName);
116062
+ if (isFileMissingOnHost(sourceFilesCache.get(path5))) {
116063
116063
  return false;
116064
116064
  }
116065
116065
  return directoryStructureHost.fileExists(fileName);
116066
116066
  }
116067
- function getVersionedSourceFileByPath(fileName, path4, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
116068
- const hostSourceFile = sourceFilesCache.get(path4);
116067
+ function getVersionedSourceFileByPath(fileName, path5, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
116068
+ const hostSourceFile = sourceFilesCache.get(path5);
116069
116069
  if (isFileMissingOnHost(hostSourceFile)) {
116070
116070
  return;
116071
116071
  }
@@ -116077,43 +116077,43 @@ ${lanes.join(`
116077
116077
  hostSourceFile.sourceFile = sourceFile;
116078
116078
  hostSourceFile.version = sourceFile.version;
116079
116079
  if (!hostSourceFile.fileWatcher) {
116080
- hostSourceFile.fileWatcher = watchFilePath(path4, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
116080
+ hostSourceFile.fileWatcher = watchFilePath(path5, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
116081
116081
  }
116082
116082
  } else {
116083
116083
  if (hostSourceFile.fileWatcher) {
116084
116084
  hostSourceFile.fileWatcher.close();
116085
116085
  }
116086
- sourceFilesCache.set(path4, false);
116086
+ sourceFilesCache.set(path5, false);
116087
116087
  }
116088
116088
  } else {
116089
116089
  if (sourceFile) {
116090
- const fileWatcher = watchFilePath(path4, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
116091
- sourceFilesCache.set(path4, { sourceFile, version: sourceFile.version, fileWatcher });
116090
+ const fileWatcher = watchFilePath(path5, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
116091
+ sourceFilesCache.set(path5, { sourceFile, version: sourceFile.version, fileWatcher });
116092
116092
  } else {
116093
- sourceFilesCache.set(path4, false);
116093
+ sourceFilesCache.set(path5, false);
116094
116094
  }
116095
116095
  }
116096
116096
  return sourceFile;
116097
116097
  }
116098
116098
  return hostSourceFile.sourceFile;
116099
116099
  }
116100
- function nextSourceFileVersion(path4) {
116101
- const hostSourceFile = sourceFilesCache.get(path4);
116100
+ function nextSourceFileVersion(path5) {
116101
+ const hostSourceFile = sourceFilesCache.get(path5);
116102
116102
  if (hostSourceFile !== undefined) {
116103
116103
  if (isFileMissingOnHost(hostSourceFile)) {
116104
- sourceFilesCache.set(path4, { version: false });
116104
+ sourceFilesCache.set(path5, { version: false });
116105
116105
  } else {
116106
116106
  hostSourceFile.version = false;
116107
116107
  }
116108
116108
  }
116109
116109
  }
116110
- function getSourceVersion(path4, readFileWithCache) {
116111
- const hostSourceFile = sourceFilesCache.get(path4);
116110
+ function getSourceVersion(path5, readFileWithCache) {
116111
+ const hostSourceFile = sourceFilesCache.get(path5);
116112
116112
  if (!hostSourceFile)
116113
116113
  return;
116114
116114
  if (hostSourceFile.version)
116115
116115
  return hostSourceFile.version;
116116
- const text = readFileWithCache(path4);
116116
+ const text = readFileWithCache(path5);
116117
116117
  return text !== undefined ? getSourceFileVersionAsHashFromText(compilerHost, text) : undefined;
116118
116118
  }
116119
116119
  function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {
@@ -116267,30 +116267,30 @@ ${lanes.join(`
116267
116267
  }
116268
116268
  function onReleaseParsedCommandLine(fileName) {
116269
116269
  var _a;
116270
- const path4 = toPath3(fileName);
116271
- const config = parsedConfigs == null ? undefined : parsedConfigs.get(path4);
116270
+ const path5 = toPath3(fileName);
116271
+ const config = parsedConfigs == null ? undefined : parsedConfigs.get(path5);
116272
116272
  if (!config)
116273
116273
  return;
116274
- parsedConfigs.delete(path4);
116274
+ parsedConfigs.delete(path5);
116275
116275
  if (config.watchedDirectories)
116276
116276
  clearMap(config.watchedDirectories, closeFileWatcherOf);
116277
116277
  (_a = config.watcher) == null || _a.close();
116278
- clearSharedExtendedConfigFileWatcher(path4, sharedExtendedConfigFileWatchers);
116278
+ clearSharedExtendedConfigFileWatcher(path5, sharedExtendedConfigFileWatchers);
116279
116279
  }
116280
- function watchFilePath(path4, file, callback, pollingInterval, options, watchType) {
116281
- return watchFile2(file, (fileName, eventKind) => callback(fileName, eventKind, path4), pollingInterval, options, watchType);
116280
+ function watchFilePath(path5, file, callback, pollingInterval, options, watchType) {
116281
+ return watchFile2(file, (fileName, eventKind) => callback(fileName, eventKind, path5), pollingInterval, options, watchType);
116282
116282
  }
116283
- function onSourceFileChange(fileName, eventKind, path4) {
116284
- updateCachedSystemWithFile(fileName, path4, eventKind);
116285
- if (eventKind === 2 && sourceFilesCache.has(path4)) {
116286
- resolutionCache.invalidateResolutionOfFile(path4);
116283
+ function onSourceFileChange(fileName, eventKind, path5) {
116284
+ updateCachedSystemWithFile(fileName, path5, eventKind);
116285
+ if (eventKind === 2 && sourceFilesCache.has(path5)) {
116286
+ resolutionCache.invalidateResolutionOfFile(path5);
116287
116287
  }
116288
- nextSourceFileVersion(path4);
116288
+ nextSourceFileVersion(path5);
116289
116289
  scheduleProgramUpdate();
116290
116290
  }
116291
- function updateCachedSystemWithFile(fileName, path4, eventKind) {
116291
+ function updateCachedSystemWithFile(fileName, path5, eventKind) {
116292
116292
  if (cachedDirectoryStructureHost) {
116293
- cachedDirectoryStructureHost.addOrDeleteFile(fileName, path4, eventKind);
116293
+ cachedDirectoryStructureHost.addOrDeleteFile(fileName, path5, eventKind);
116294
116294
  }
116295
116295
  }
116296
116296
  function watchMissingFilePath(missingFilePath, missingFileName) {
@@ -116460,9 +116460,9 @@ ${lanes.join(`
116460
116460
  }
116461
116461
  function createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus) {
116462
116462
  const host = createProgramHost(system, createProgram2);
116463
- host.getModifiedTime = system.getModifiedTime ? (path4) => system.getModifiedTime(path4) : returnUndefined;
116464
- host.setModifiedTime = system.setModifiedTime ? (path4, date) => system.setModifiedTime(path4, date) : noop;
116465
- host.deleteFile = system.deleteFile ? (path4) => system.deleteFile(path4) : noop;
116463
+ host.getModifiedTime = system.getModifiedTime ? (path5) => system.getModifiedTime(path5) : returnUndefined;
116464
+ host.setModifiedTime = system.setModifiedTime ? (path5, date) => system.setModifiedTime(path5, date) : noop;
116465
+ host.deleteFile = system.deleteFile ? (path5) => system.deleteFile(path5) : noop;
116466
116466
  host.reportDiagnostic = reportDiagnostic || createDiagnosticReporter(system);
116467
116467
  host.reportSolutionBuilderStatus = reportSolutionBuilderStatus || createBuilderStatusReporter(system);
116468
116468
  host.now = maybeBind(system, system.now);
@@ -116575,9 +116575,9 @@ ${lanes.join(`
116575
116575
  }
116576
116576
  function toResolvedConfigFilePath(state, fileName) {
116577
116577
  const { resolvedConfigFilePaths } = state;
116578
- const path4 = resolvedConfigFilePaths.get(fileName);
116579
- if (path4 !== undefined)
116580
- return path4;
116578
+ const path5 = resolvedConfigFilePaths.get(fileName);
116579
+ if (path5 !== undefined)
116580
+ return path5;
116581
116581
  const resolvedPath = toPath2(state, fileName);
116582
116582
  resolvedConfigFilePaths.set(fileName, resolvedPath);
116583
116583
  return resolvedPath;
@@ -116889,7 +116889,7 @@ ${lanes.join(`
116889
116889
  let now;
116890
116890
  const { emitResult, diagnostics } = emitFilesAndReportErrors(program, (d) => host.reportDiagnostic(d), state.write, undefined, (name, text, writeByteOrderMark, onError, sourceFiles, data) => {
116891
116891
  var _a2;
116892
- const path4 = toPath2(state, name);
116892
+ const path5 = toPath2(state, name);
116893
116893
  emittedOutputs.set(toPath2(state, name), name);
116894
116894
  if (data == null ? undefined : data.buildInfo) {
116895
116895
  now || (now = getCurrentTime(state.host));
@@ -116914,7 +116914,7 @@ ${lanes.join(`
116914
116914
  if (data == null ? undefined : data.differsOnlyInMap)
116915
116915
  state.host.setModifiedTime(name, modifiedTime);
116916
116916
  else if (!isIncremental && state.watch) {
116917
- (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path4, now || (now = getCurrentTime(state.host)));
116917
+ (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path5, now || (now = getCurrentTime(state.host)));
116918
116918
  }
116919
116919
  }, cancellationToken, undefined, customTransformers || ((_b = (_a = state.host).getCustomTransformers) == null ? undefined : _b.call(_a, project)));
116920
116920
  if ((!options.noEmitOnError || !diagnostics.length) && (emittedOutputs.size || status.type !== 8)) {
@@ -117073,8 +117073,8 @@ ${lanes.join(`
117073
117073
  return !!value.watcher;
117074
117074
  }
117075
117075
  function getModifiedTime2(state, fileName) {
117076
- const path4 = toPath2(state, fileName);
117077
- const existing = state.filesWatched.get(path4);
117076
+ const path5 = toPath2(state, fileName);
117077
+ const existing = state.filesWatched.get(path5);
117078
117078
  if (state.watch && !!existing) {
117079
117079
  if (!isFileWatcherWithModifiedTime(existing))
117080
117080
  return existing;
@@ -117086,30 +117086,30 @@ ${lanes.join(`
117086
117086
  if (existing)
117087
117087
  existing.modifiedTime = result;
117088
117088
  else
117089
- state.filesWatched.set(path4, result);
117089
+ state.filesWatched.set(path5, result);
117090
117090
  }
117091
117091
  return result;
117092
117092
  }
117093
117093
  function watchFile(state, file, callback, pollingInterval, options, watchType, project) {
117094
- const path4 = toPath2(state, file);
117095
- const existing = state.filesWatched.get(path4);
117094
+ const path5 = toPath2(state, file);
117095
+ const existing = state.filesWatched.get(path5);
117096
117096
  if (existing && isFileWatcherWithModifiedTime(existing)) {
117097
117097
  existing.callbacks.push(callback);
117098
117098
  } else {
117099
117099
  const watcher = state.watchFile(file, (fileName, eventKind, modifiedTime) => {
117100
- const existing2 = Debug.checkDefined(state.filesWatched.get(path4));
117100
+ const existing2 = Debug.checkDefined(state.filesWatched.get(path5));
117101
117101
  Debug.assert(isFileWatcherWithModifiedTime(existing2));
117102
117102
  existing2.modifiedTime = modifiedTime;
117103
117103
  existing2.callbacks.forEach((cb) => cb(fileName, eventKind, modifiedTime));
117104
117104
  }, pollingInterval, options, watchType, project);
117105
- state.filesWatched.set(path4, { callbacks: [callback], watcher, modifiedTime: existing });
117105
+ state.filesWatched.set(path5, { callbacks: [callback], watcher, modifiedTime: existing });
117106
117106
  }
117107
117107
  return {
117108
117108
  close: () => {
117109
- const existing2 = Debug.checkDefined(state.filesWatched.get(path4));
117109
+ const existing2 = Debug.checkDefined(state.filesWatched.get(path5));
117110
117110
  Debug.assert(isFileWatcherWithModifiedTime(existing2));
117111
117111
  if (existing2.callbacks.length === 1) {
117112
- state.filesWatched.delete(path4);
117112
+ state.filesWatched.delete(path5);
117113
117113
  closeFileWatcherOf(existing2);
117114
117114
  } else {
117115
117115
  unorderedRemoveItem(existing2.callbacks, callback);
@@ -117126,19 +117126,19 @@ ${lanes.join(`
117126
117126
  return result;
117127
117127
  }
117128
117128
  function getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath) {
117129
- const path4 = toPath2(state, buildInfoPath);
117129
+ const path5 = toPath2(state, buildInfoPath);
117130
117130
  const existing = state.buildInfoCache.get(resolvedConfigPath);
117131
- return (existing == null ? undefined : existing.path) === path4 ? existing : undefined;
117131
+ return (existing == null ? undefined : existing.path) === path5 ? existing : undefined;
117132
117132
  }
117133
117133
  function getBuildInfo3(state, buildInfoPath, resolvedConfigPath, modifiedTime) {
117134
- const path4 = toPath2(state, buildInfoPath);
117134
+ const path5 = toPath2(state, buildInfoPath);
117135
117135
  const existing = state.buildInfoCache.get(resolvedConfigPath);
117136
- if (existing !== undefined && existing.path === path4) {
117136
+ if (existing !== undefined && existing.path === path5) {
117137
117137
  return existing.buildInfo || undefined;
117138
117138
  }
117139
117139
  const value = state.readFileWithCache(buildInfoPath);
117140
117140
  const buildInfo = value ? getBuildInfo(buildInfoPath, value) : undefined;
117141
- state.buildInfoCache.set(resolvedConfigPath, { path: path4, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime });
117141
+ state.buildInfoCache.set(resolvedConfigPath, { path: path5, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime });
117142
117142
  return buildInfo;
117143
117143
  }
117144
117144
  function checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName) {
@@ -117302,11 +117302,11 @@ ${lanes.join(`
117302
117302
  for (const output of outputs) {
117303
117303
  if (output === buildInfoPath)
117304
117304
  continue;
117305
- const path4 = toPath2(state, output);
117306
- let outputTime = outputTimeStampMap == null ? undefined : outputTimeStampMap.get(path4);
117305
+ const path5 = toPath2(state, output);
117306
+ let outputTime = outputTimeStampMap == null ? undefined : outputTimeStampMap.get(path5);
117307
117307
  if (!outputTime) {
117308
117308
  outputTime = getModifiedTime(state.host, output);
117309
- outputTimeStampMap == null || outputTimeStampMap.set(path4, outputTime);
117309
+ outputTimeStampMap == null || outputTimeStampMap.set(path5, outputTime);
117310
117310
  }
117311
117311
  if (outputTime === missingFileModifiedTime) {
117312
117312
  return {
@@ -117360,7 +117360,7 @@ ${lanes.join(`
117360
117360
  if (extendedConfigStatus)
117361
117361
  return extendedConfigStatus;
117362
117362
  const packageJsonLookups = state.lastCachedPackageJsonLookups.get(resolvedPath);
117363
- const dependentPackageFileStatus = packageJsonLookups && forEachKey(packageJsonLookups, (path4) => checkConfigFileUpToDateStatus(state, path4, oldestOutputFileTime, oldestOutputFileName));
117363
+ const dependentPackageFileStatus = packageJsonLookups && forEachKey(packageJsonLookups, (path5) => checkConfigFileUpToDateStatus(state, path5, oldestOutputFileTime, oldestOutputFileName));
117364
117364
  if (dependentPackageFileStatus)
117365
117365
  return dependentPackageFileStatus;
117366
117366
  return {
@@ -117412,8 +117412,8 @@ ${lanes.join(`
117412
117412
  if (!skipOutputs || outputs.length !== skipOutputs.size) {
117413
117413
  let reportVerbose = !!state.options.verbose;
117414
117414
  for (const file of outputs) {
117415
- const path4 = toPath2(state, file);
117416
- if (skipOutputs == null ? undefined : skipOutputs.has(path4))
117415
+ const path5 = toPath2(state, file);
117416
+ if (skipOutputs == null ? undefined : skipOutputs.has(path5))
117417
117417
  continue;
117418
117418
  if (reportVerbose) {
117419
117419
  reportVerbose = false;
@@ -117423,8 +117423,8 @@ ${lanes.join(`
117423
117423
  if (file === buildInfoPath)
117424
117424
  getBuildInfoCacheEntry(state, buildInfoPath, projectPath).modifiedTime = now;
117425
117425
  else if (outputTimeStampMap) {
117426
- outputTimeStampMap.set(path4, now);
117427
- modifiedOutputs.add(path4);
117426
+ outputTimeStampMap.set(path5, now);
117427
+ modifiedOutputs.add(path5);
117428
117428
  }
117429
117429
  }
117430
117430
  }
@@ -117738,8 +117738,8 @@ ${lanes.join(`
117738
117738
  close: () => stopWatching(state)
117739
117739
  };
117740
117740
  }
117741
- function relName(state, path4) {
117742
- return convertToRelativePath(path4, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName);
117741
+ function relName(state, path5) {
117742
+ return convertToRelativePath(path5, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName);
117743
117743
  }
117744
117744
  function reportStatus(state, message, ...args) {
117745
117745
  state.host.reportSolutionBuilderStatus(createCompilerDiagnostic(message, ...args));
@@ -117880,12 +117880,12 @@ ${lanes.join(`
117880
117880
  } else if (file.isDeclarationFile) {
117881
117881
  return "Definitions";
117882
117882
  }
117883
- const path4 = file.path;
117884
- if (fileExtensionIsOneOf(path4, supportedTSExtensionsFlat)) {
117883
+ const path5 = file.path;
117884
+ if (fileExtensionIsOneOf(path5, supportedTSExtensionsFlat)) {
117885
117885
  return "TypeScript";
117886
- } else if (fileExtensionIsOneOf(path4, supportedJSExtensionsFlat)) {
117886
+ } else if (fileExtensionIsOneOf(path5, supportedJSExtensionsFlat)) {
117887
117887
  return "JavaScript";
117888
- } else if (fileExtensionIs(path4, ".json")) {
117888
+ } else if (fileExtensionIs(path5, ".json")) {
117889
117889
  return "JSON";
117890
117890
  } else {
117891
117891
  return "Other";
@@ -118318,7 +118318,7 @@ ${lanes.join(`
118318
118318
  return performBuild(system, cb, buildOptions, watchOptions, projects, errors);
118319
118319
  }
118320
118320
  }
118321
- const commandLine = parseCommandLine(commandLineArgs, (path4) => system.readFile(path4));
118321
+ const commandLine = parseCommandLine(commandLineArgs, (path5) => system.readFile(path5));
118322
118322
  if (commandLine.options.generateCpuProfile && system.enableCPUProfiler) {
118323
118323
  system.enableCPUProfiler(commandLine.options.generateCpuProfile, () => executeCommandLineWorker(system, cb, commandLine));
118324
118324
  } else {
@@ -119647,12 +119647,12 @@ ${lanes.join(`
119647
119647
  return nodeCoreModules.has(moduleName) ? "node" : moduleName;
119648
119648
  }
119649
119649
  function loadSafeList(host, safeListPath) {
119650
- const result = readConfigFile(safeListPath, (path4) => host.readFile(path4));
119650
+ const result = readConfigFile(safeListPath, (path5) => host.readFile(path5));
119651
119651
  return new Map(Object.entries(result.config));
119652
119652
  }
119653
119653
  function loadTypesMap(host, typesMapPath) {
119654
119654
  var _a;
119655
- const result = readConfigFile(typesMapPath, (path4) => host.readFile(path4));
119655
+ const result = readConfigFile(typesMapPath, (path5) => host.readFile(path5));
119656
119656
  if ((_a = result.config) == null ? undefined : _a.simpleMap) {
119657
119657
  return new Map(Object.entries(result.config.simpleMap));
119658
119658
  }
@@ -119664,9 +119664,9 @@ ${lanes.join(`
119664
119664
  }
119665
119665
  const inferredTypings = /* @__PURE__ */ new Map;
119666
119666
  fileNames = mapDefined(fileNames, (fileName) => {
119667
- const path4 = normalizePath(fileName);
119668
- if (hasJSFileExtension(path4)) {
119669
- return path4;
119667
+ const path5 = normalizePath(fileName);
119668
+ if (hasJSFileExtension(path5)) {
119669
+ return path5;
119670
119670
  }
119671
119671
  });
119672
119672
  const filesToWatch = [];
@@ -119728,7 +119728,7 @@ ${lanes.join(`
119728
119728
  let manifestTypingNames;
119729
119729
  if (host.fileExists(manifestPath)) {
119730
119730
  filesToWatch2.push(manifestPath);
119731
- manifest = readConfigFile(manifestPath, (path4) => host.readFile(path4)).config;
119731
+ manifest = readConfigFile(manifestPath, (path5) => host.readFile(path5)).config;
119732
119732
  manifestTypingNames = flatMap([manifest.dependencies, manifest.devDependencies, manifest.optionalDependencies, manifest.peerDependencies], getOwnKeys);
119733
119733
  addInferredTypings(manifestTypingNames, `Typing names in '${manifestPath}' dependencies`);
119734
119734
  }
@@ -119750,7 +119750,7 @@ ${lanes.join(`
119750
119750
  log(`Searching for typing names in ${packagesFolderPath}; all files: ${JSON.stringify(dependencyManifestNames)}`);
119751
119751
  for (const manifestPath2 of dependencyManifestNames) {
119752
119752
  const normalizedFileName = normalizePath(manifestPath2);
119753
- const result2 = readConfigFile(normalizedFileName, (path4) => host.readFile(path4));
119753
+ const result2 = readConfigFile(normalizedFileName, (path5) => host.readFile(path5));
119754
119754
  const manifest2 = result2.config;
119755
119755
  if (!manifest2.name) {
119756
119756
  continue;
@@ -122287,14 +122287,14 @@ ${lanes.join(`
122287
122287
  function tryGetDirectories(host, directoryName) {
122288
122288
  return tryIOAndConsumeErrors(host, host.getDirectories, directoryName) || [];
122289
122289
  }
122290
- function tryReadDirectory(host, path4, extensions, exclude, include) {
122291
- return tryIOAndConsumeErrors(host, host.readDirectory, path4, extensions, exclude, include) || emptyArray;
122290
+ function tryReadDirectory(host, path5, extensions, exclude, include) {
122291
+ return tryIOAndConsumeErrors(host, host.readDirectory, path5, extensions, exclude, include) || emptyArray;
122292
122292
  }
122293
- function tryFileExists(host, path4) {
122294
- return tryIOAndConsumeErrors(host, host.fileExists, path4);
122293
+ function tryFileExists(host, path5) {
122294
+ return tryIOAndConsumeErrors(host, host.fileExists, path5);
122295
122295
  }
122296
- function tryDirectoryExists(host, path4) {
122297
- return tryAndIgnoreErrors(() => directoryProbablyExists(path4, host)) || false;
122296
+ function tryDirectoryExists(host, path5) {
122297
+ return tryAndIgnoreErrors(() => directoryProbablyExists(path5, host)) || false;
122298
122298
  }
122299
122299
  function tryAndIgnoreErrors(cb) {
122300
122300
  try {
@@ -123070,12 +123070,12 @@ ${lanes.join(`
123070
123070
  function getIsExcluded(excludePatterns, host) {
123071
123071
  var _a;
123072
123072
  const realpathsWithSymlinks = (_a = host.getSymlinkCache) == null ? undefined : _a.call(host).getSymlinkedDirectoriesByRealpath();
123073
- return ({ fileName, path: path4 }) => {
123073
+ return ({ fileName, path: path5 }) => {
123074
123074
  if (excludePatterns.some((p) => p.test(fileName)))
123075
123075
  return true;
123076
123076
  if ((realpathsWithSymlinks == null ? undefined : realpathsWithSymlinks.size) && pathContainsNodeModules(fileName)) {
123077
123077
  let dir = getDirectoryPath(fileName);
123078
- return forEachAncestorDirectoryStoppingAtGlobalCache(host, getDirectoryPath(path4), (dirPath) => {
123078
+ return forEachAncestorDirectoryStoppingAtGlobalCache(host, getDirectoryPath(path5), (dirPath) => {
123079
123079
  const symlinks = realpathsWithSymlinks.get(ensureTrailingDirectorySeparator(dirPath));
123080
123080
  if (symlinks) {
123081
123081
  return symlinks.some((s) => excludePatterns.some((p) => p.test(fileName.replace(dir, s))));
@@ -124475,27 +124475,27 @@ ${lanes.join(`
124475
124475
  return settingsOrHost;
124476
124476
  }
124477
124477
  function acquireDocument(fileName, compilationSettings, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
124478
- const path4 = toPath(fileName, currentDirectory, getCanonicalFileName);
124478
+ const path5 = toPath(fileName, currentDirectory, getCanonicalFileName);
124479
124479
  const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings));
124480
- return acquireDocumentWithKey(fileName, path4, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
124480
+ return acquireDocumentWithKey(fileName, path5, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
124481
124481
  }
124482
- function acquireDocumentWithKey(fileName, path4, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
124483
- return acquireOrUpdateDocument(fileName, path4, compilationSettings, key, scriptSnapshot, version2, true, scriptKind, languageVersionOrOptions);
124482
+ function acquireDocumentWithKey(fileName, path5, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
124483
+ return acquireOrUpdateDocument(fileName, path5, compilationSettings, key, scriptSnapshot, version2, true, scriptKind, languageVersionOrOptions);
124484
124484
  }
124485
124485
  function updateDocument(fileName, compilationSettings, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
124486
- const path4 = toPath(fileName, currentDirectory, getCanonicalFileName);
124486
+ const path5 = toPath(fileName, currentDirectory, getCanonicalFileName);
124487
124487
  const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings));
124488
- return updateDocumentWithKey(fileName, path4, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
124488
+ return updateDocumentWithKey(fileName, path5, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
124489
124489
  }
124490
- function updateDocumentWithKey(fileName, path4, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
124491
- return acquireOrUpdateDocument(fileName, path4, getCompilationSettings(compilationSettings), key, scriptSnapshot, version2, false, scriptKind, languageVersionOrOptions);
124490
+ function updateDocumentWithKey(fileName, path5, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
124491
+ return acquireOrUpdateDocument(fileName, path5, getCompilationSettings(compilationSettings), key, scriptSnapshot, version2, false, scriptKind, languageVersionOrOptions);
124492
124492
  }
124493
124493
  function getDocumentRegistryEntry(bucketEntry, scriptKind) {
124494
124494
  const entry = isDocumentRegistryEntry(bucketEntry) ? bucketEntry : bucketEntry.get(Debug.checkDefined(scriptKind, "If there are more than one scriptKind's for same document the scriptKind should be provided"));
124495
124495
  Debug.assert(scriptKind === undefined || !entry || entry.sourceFile.scriptKind === scriptKind, `Script kind should match provided ScriptKind:${scriptKind} and sourceFile.scriptKind: ${entry == null ? undefined : entry.sourceFile.scriptKind}, !entry: ${!entry}`);
124496
124496
  return entry;
124497
124497
  }
124498
- function acquireOrUpdateDocument(fileName, path4, compilationSettingsOrHost, key, scriptSnapshot, version2, acquiring, scriptKind, languageVersionOrOptions) {
124498
+ function acquireOrUpdateDocument(fileName, path5, compilationSettingsOrHost, key, scriptSnapshot, version2, acquiring, scriptKind, languageVersionOrOptions) {
124499
124499
  var _a, _b, _c, _d;
124500
124500
  scriptKind = ensureScriptKind(fileName, scriptKind);
124501
124501
  const compilationSettings = getCompilationSettings(compilationSettingsOrHost);
@@ -124503,7 +124503,7 @@ ${lanes.join(`
124503
124503
  const scriptTarget = scriptKind === 6 ? 100 : getEmitScriptTarget(compilationSettings);
124504
124504
  const sourceFileOptions = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions : {
124505
124505
  languageVersion: scriptTarget,
124506
- impliedNodeFormat: host && getImpliedNodeFormatForFile(path4, (_d = (_c = (_b = (_a = host.getCompilerHost) == null ? undefined : _a.call(host)) == null ? undefined : _b.getModuleResolutionCache) == null ? undefined : _c.call(_b)) == null ? undefined : _d.getPackageJsonInfoCache(), host, compilationSettings),
124506
+ impliedNodeFormat: host && getImpliedNodeFormatForFile(path5, (_d = (_c = (_b = (_a = host.getCompilerHost) == null ? undefined : _a.call(host)) == null ? undefined : _b.getModuleResolutionCache) == null ? undefined : _c.call(_b)) == null ? undefined : _d.getPackageJsonInfoCache(), host, compilationSettings),
124507
124507
  setExternalModuleIndicator: getSetExternalModuleIndicator(compilationSettings),
124508
124508
  jsDocParsingMode
124509
124509
  };
@@ -124516,15 +124516,15 @@ ${lanes.join(`
124516
124516
  if (buckets.size > oldBucketCount) {
124517
124517
  tracing.instant(tracing.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: compilationSettings.configFilePath, key: keyWithMode });
124518
124518
  }
124519
- const otherBucketKey = !isDeclarationFileName(path4) && forEachEntry(buckets, (bucket2, bucketKey) => bucketKey !== keyWithMode && bucket2.has(path4) && bucketKey);
124519
+ const otherBucketKey = !isDeclarationFileName(path5) && forEachEntry(buckets, (bucket2, bucketKey) => bucketKey !== keyWithMode && bucket2.has(path5) && bucketKey);
124520
124520
  if (otherBucketKey) {
124521
- tracing.instant(tracing.Phase.Session, "documentRegistryBucketOverlap", { path: path4, key1: otherBucketKey, key2: keyWithMode });
124521
+ tracing.instant(tracing.Phase.Session, "documentRegistryBucketOverlap", { path: path5, key1: otherBucketKey, key2: keyWithMode });
124522
124522
  }
124523
124523
  }
124524
- const bucketEntry = bucket.get(path4);
124524
+ const bucketEntry = bucket.get(path5);
124525
124525
  let entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind);
124526
124526
  if (!entry && externalCache) {
124527
- const sourceFile = externalCache.getDocument(keyWithMode, path4);
124527
+ const sourceFile = externalCache.getDocument(keyWithMode, path5);
124528
124528
  if (sourceFile && sourceFile.scriptKind === scriptKind && sourceFile.text === getSnapshotText(scriptSnapshot)) {
124529
124529
  Debug.assert(acquiring);
124530
124530
  entry = {
@@ -124537,7 +124537,7 @@ ${lanes.join(`
124537
124537
  if (!entry) {
124538
124538
  const sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, sourceFileOptions, version2, false, scriptKind);
124539
124539
  if (externalCache) {
124540
- externalCache.setDocument(keyWithMode, path4, sourceFile);
124540
+ externalCache.setDocument(keyWithMode, path5, sourceFile);
124541
124541
  }
124542
124542
  entry = {
124543
124543
  sourceFile,
@@ -124548,7 +124548,7 @@ ${lanes.join(`
124548
124548
  if (entry.sourceFile.version !== version2) {
124549
124549
  entry.sourceFile = updateLanguageServiceSourceFile(entry.sourceFile, scriptSnapshot, version2, scriptSnapshot.getChangeRange(entry.sourceFile.scriptSnapshot));
124550
124550
  if (externalCache) {
124551
- externalCache.setDocument(keyWithMode, path4, entry.sourceFile);
124551
+ externalCache.setDocument(keyWithMode, path5, entry.sourceFile);
124552
124552
  }
124553
124553
  }
124554
124554
  if (acquiring) {
@@ -124559,35 +124559,35 @@ ${lanes.join(`
124559
124559
  return entry.sourceFile;
124560
124560
  function setBucketEntry() {
124561
124561
  if (!bucketEntry) {
124562
- bucket.set(path4, entry);
124562
+ bucket.set(path5, entry);
124563
124563
  } else if (isDocumentRegistryEntry(bucketEntry)) {
124564
124564
  const scriptKindMap = /* @__PURE__ */ new Map;
124565
124565
  scriptKindMap.set(bucketEntry.sourceFile.scriptKind, bucketEntry);
124566
124566
  scriptKindMap.set(scriptKind, entry);
124567
- bucket.set(path4, scriptKindMap);
124567
+ bucket.set(path5, scriptKindMap);
124568
124568
  } else {
124569
124569
  bucketEntry.set(scriptKind, entry);
124570
124570
  }
124571
124571
  }
124572
124572
  }
124573
124573
  function releaseDocument(fileName, compilationSettings, scriptKind, impliedNodeFormat) {
124574
- const path4 = toPath(fileName, currentDirectory, getCanonicalFileName);
124574
+ const path5 = toPath(fileName, currentDirectory, getCanonicalFileName);
124575
124575
  const key = getKeyForCompilationSettings(compilationSettings);
124576
- return releaseDocumentWithKey(path4, key, scriptKind, impliedNodeFormat);
124576
+ return releaseDocumentWithKey(path5, key, scriptKind, impliedNodeFormat);
124577
124577
  }
124578
- function releaseDocumentWithKey(path4, key, scriptKind, impliedNodeFormat) {
124578
+ function releaseDocumentWithKey(path5, key, scriptKind, impliedNodeFormat) {
124579
124579
  const bucket = Debug.checkDefined(buckets.get(getDocumentRegistryBucketKeyWithMode(key, impliedNodeFormat)));
124580
- const bucketEntry = bucket.get(path4);
124580
+ const bucketEntry = bucket.get(path5);
124581
124581
  const entry = getDocumentRegistryEntry(bucketEntry, scriptKind);
124582
124582
  entry.languageServiceRefCount--;
124583
124583
  Debug.assert(entry.languageServiceRefCount >= 0);
124584
124584
  if (entry.languageServiceRefCount === 0) {
124585
124585
  if (isDocumentRegistryEntry(bucketEntry)) {
124586
- bucket.delete(path4);
124586
+ bucket.delete(path5);
124587
124587
  } else {
124588
124588
  bucketEntry.delete(scriptKind);
124589
124589
  if (bucketEntry.size === 1) {
124590
- bucket.set(path4, firstDefinedIterator(bucketEntry.values(), identity));
124590
+ bucket.set(path5, firstDefinedIterator(bucketEntry.values(), identity));
124591
124591
  }
124592
124592
  }
124593
124593
  }
@@ -124623,10 +124623,10 @@ ${lanes.join(`
124623
124623
  }
124624
124624
  function getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper) {
124625
124625
  const canonicalOldPath = getCanonicalFileName(oldFileOrDirPath);
124626
- return (path4) => {
124627
- const originalPath = sourceMapper && sourceMapper.tryGetSourcePosition({ fileName: path4, pos: 0 });
124628
- const updatedPath = getUpdatedPath(originalPath ? originalPath.fileName : path4);
124629
- return originalPath ? updatedPath === undefined ? undefined : makeCorrespondingRelativeChange(originalPath.fileName, updatedPath, path4, getCanonicalFileName) : updatedPath;
124626
+ return (path5) => {
124627
+ const originalPath = sourceMapper && sourceMapper.tryGetSourcePosition({ fileName: path5, pos: 0 });
124628
+ const updatedPath = getUpdatedPath(originalPath ? originalPath.fileName : path5);
124629
+ return originalPath ? updatedPath === undefined ? undefined : makeCorrespondingRelativeChange(originalPath.fileName, updatedPath, path5, getCanonicalFileName) : updatedPath;
124630
124630
  };
124631
124631
  function getUpdatedPath(pathToUpdate) {
124632
124632
  if (getCanonicalFileName(pathToUpdate) === canonicalOldPath)
@@ -124702,8 +124702,8 @@ ${lanes.join(`
124702
124702
  }
124703
124703
  return false;
124704
124704
  }
124705
- function relativePath(path4) {
124706
- return getRelativePathFromDirectory(configDir, path4, !useCaseSensitiveFileNames2);
124705
+ function relativePath(path5) {
124706
+ return getRelativePathFromDirectory(configDir, path5, !useCaseSensitiveFileNames2);
124707
124707
  }
124708
124708
  }
124709
124709
  function updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName) {
@@ -125436,8 +125436,8 @@ ${lanes.join(`
125436
125436
  return toPath(fileName, currentDirectory, getCanonicalFileName);
125437
125437
  }
125438
125438
  function getDocumentPositionMapper2(generatedFileName, sourceFileName) {
125439
- const path4 = toPath3(generatedFileName);
125440
- const value = documentPositionMappers.get(path4);
125439
+ const path5 = toPath3(generatedFileName);
125440
+ const value = documentPositionMappers.get(path5);
125441
125441
  if (value)
125442
125442
  return value;
125443
125443
  let mapper;
@@ -125447,7 +125447,7 @@ ${lanes.join(`
125447
125447
  const file = getSourceFileLike(generatedFileName);
125448
125448
  mapper = file && getDocumentPositionMapper({ getSourceFileLike, getCanonicalFileName, log: (s) => host.log(s) }, generatedFileName, getLineInfo(file.text, getLineStarts(file)), (f) => !host.fileExists || host.fileExists(f) ? host.readFile(f) : undefined);
125449
125449
  }
125450
- documentPositionMappers.set(path4, mapper || identitySourceMapConsumer);
125450
+ documentPositionMappers.set(path5, mapper || identitySourceMapConsumer);
125451
125451
  return mapper || identitySourceMapConsumer;
125452
125452
  }
125453
125453
  function tryGetSourcePosition(info) {
@@ -125481,22 +125481,22 @@ ${lanes.join(`
125481
125481
  const program = host.getProgram();
125482
125482
  if (!program)
125483
125483
  return;
125484
- const path4 = toPath3(fileName);
125485
- const file = program.getSourceFileByPath(path4);
125486
- return file && file.resolvedPath === path4 ? file : undefined;
125484
+ const path5 = toPath3(fileName);
125485
+ const file = program.getSourceFileByPath(path5);
125486
+ return file && file.resolvedPath === path5 ? file : undefined;
125487
125487
  }
125488
125488
  function getOrCreateSourceFileLike(fileName) {
125489
- const path4 = toPath3(fileName);
125490
- const fileFromCache = sourceFileLike.get(path4);
125489
+ const path5 = toPath3(fileName);
125490
+ const fileFromCache = sourceFileLike.get(path5);
125491
125491
  if (fileFromCache !== undefined)
125492
125492
  return fileFromCache ? fileFromCache : undefined;
125493
125493
  if (!host.readFile || host.fileExists && !host.fileExists(fileName)) {
125494
- sourceFileLike.set(path4, false);
125494
+ sourceFileLike.set(path5, false);
125495
125495
  return;
125496
125496
  }
125497
125497
  const text = host.readFile(fileName);
125498
125498
  const file = text ? createSourceFileLike(text) : false;
125499
- sourceFileLike.set(path4, file);
125499
+ sourceFileLike.set(path5, file);
125500
125500
  return file ? file : undefined;
125501
125501
  }
125502
125502
  function getSourceFileLike(fileName) {
@@ -132373,12 +132373,12 @@ ${newComment.split(`
132373
132373
  directoryExists: (directoryName) => {
132374
132374
  return directoryProbablyExists(directoryName, host);
132375
132375
  },
132376
- getDirectories: (path4) => {
132377
- return host.getDirectories ? host.getDirectories(path4) : [];
132376
+ getDirectories: (path5) => {
132377
+ return host.getDirectories ? host.getDirectories(path5) : [];
132378
132378
  },
132379
- readDirectory: (path4, extensions, exclude, include, depth) => {
132379
+ readDirectory: (path5, extensions, exclude, include, depth) => {
132380
132380
  Debug.checkDefined(host.readDirectory, "'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'");
132381
- return host.readDirectory(path4, extensions, exclude, include, depth);
132381
+ return host.readDirectory(path5, extensions, exclude, include, depth);
132382
132382
  },
132383
132383
  onReleaseOldSourceFile,
132384
132384
  onReleaseParsedCommandLine,
@@ -132437,12 +132437,12 @@ ${newComment.split(`
132437
132437
  program.getTypeChecker();
132438
132438
  return;
132439
132439
  function getParsedCommandLine(fileName) {
132440
- const path4 = toPath(fileName, currentDirectory, getCanonicalFileName);
132441
- const existing = parsedCommandLines == null ? undefined : parsedCommandLines.get(path4);
132440
+ const path5 = toPath(fileName, currentDirectory, getCanonicalFileName);
132441
+ const existing = parsedCommandLines == null ? undefined : parsedCommandLines.get(path5);
132442
132442
  if (existing !== undefined)
132443
132443
  return existing || undefined;
132444
132444
  const result = host.getParsedCommandLine ? host.getParsedCommandLine(fileName) : getParsedCommandLineOfConfigFileUsingSourceFile(fileName);
132445
- (parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map)).set(path4, result || false);
132445
+ (parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map)).set(path5, result || false);
132446
132446
  return result;
132447
132447
  }
132448
132448
  function getParsedCommandLineOfConfigFileUsingSourceFile(configFileName) {
@@ -132474,7 +132474,7 @@ ${newComment.split(`
132474
132474
  function getOrCreateSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
132475
132475
  return getOrCreateSourceFileByPath(fileName, toPath(fileName, currentDirectory, getCanonicalFileName), languageVersionOrOptions, onError, shouldCreateNewSourceFile);
132476
132476
  }
132477
- function getOrCreateSourceFileByPath(fileName, path4, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
132477
+ function getOrCreateSourceFileByPath(fileName, path5, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
132478
132478
  Debug.assert(compilerHost, "getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");
132479
132479
  const scriptSnapshot = host.getScriptSnapshot(fileName);
132480
132480
  if (!scriptSnapshot) {
@@ -132483,17 +132483,17 @@ ${newComment.split(`
132483
132483
  const scriptKind = getScriptKind(fileName, host);
132484
132484
  const scriptVersion = host.getScriptVersion(fileName);
132485
132485
  if (!shouldCreateNewSourceFile) {
132486
- const oldSourceFile = program && program.getSourceFileByPath(path4);
132486
+ const oldSourceFile = program && program.getSourceFileByPath(path5);
132487
132487
  if (oldSourceFile) {
132488
132488
  if (scriptKind === oldSourceFile.scriptKind || releasedScriptKinds.has(oldSourceFile.resolvedPath)) {
132489
- return documentRegistry.updateDocumentWithKey(fileName, path4, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
132489
+ return documentRegistry.updateDocumentWithKey(fileName, path5, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
132490
132490
  } else {
132491
132491
  documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()), oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat);
132492
132492
  releasedScriptKinds.add(oldSourceFile.resolvedPath);
132493
132493
  }
132494
132494
  }
132495
132495
  }
132496
- return documentRegistry.acquireDocumentWithKey(fileName, path4, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
132496
+ return documentRegistry.acquireDocumentWithKey(fileName, path5, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
132497
132497
  }
132498
132498
  }
132499
132499
  function getProgram() {
@@ -133027,7 +133027,7 @@ ${newComment.split(`
133027
133027
  return isArray(action) ? Promise.all(action.map((a) => applySingleCodeActionCommand(a))) : applySingleCodeActionCommand(action);
133028
133028
  }
133029
133029
  function applySingleCodeActionCommand(action) {
133030
- const getPath = (path4) => toPath(path4, currentDirectory, getCanonicalFileName);
133030
+ const getPath = (path5) => toPath(path5, currentDirectory, getCanonicalFileName);
133031
133031
  Debug.assertEqual(action.type, "install package");
133032
133032
  return host.installPackage ? host.installPackage({ fileName: getPath(action.file), packageName: action.packageName }) : Promise.reject("Host does not implement `installPackage`");
133033
133033
  }
@@ -133342,7 +133342,7 @@ ${newComment.split(`
133342
133342
  }
133343
133343
  }
133344
133344
  return result;
133345
- function escapeRegExp(str) {
133345
+ function escapeRegExp2(str) {
133346
133346
  return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
133347
133347
  }
133348
133348
  function getTodoCommentsRegExp() {
@@ -133350,7 +133350,7 @@ ${newComment.split(`
133350
133350
  const multiLineCommentStart = /(?:\/\*+\s*)/.source;
133351
133351
  const anyNumberOfSpacesAndAsterisksAtStartOfLine = /(?:^(?:\s|\*)*)/.source;
133352
133352
  const preamble = "(" + anyNumberOfSpacesAndAsterisksAtStartOfLine + "|" + singleLineCommentStart + "|" + multiLineCommentStart + ")";
133353
- const literals = "(?:" + map(descriptors, (d) => "(" + escapeRegExp(d.text) + ")").join("|") + ")";
133353
+ const literals = "(?:" + map(descriptors, (d) => "(" + escapeRegExp2(d.text) + ")").join("|") + ")";
133354
133354
  const endOfLineOrEndOfComment = /(?:$|\*\/)/.source;
133355
133355
  const messageRemainder = /(?:.*?)/.source;
133356
133356
  const messagePortion = "(" + literals + messageRemainder + ")";
@@ -133360,8 +133360,8 @@ ${newComment.split(`
133360
133360
  function isLetterOrDigit(char) {
133361
133361
  return char >= 97 && char <= 122 || char >= 65 && char <= 90 || char >= 48 && char <= 57;
133362
133362
  }
133363
- function isNodeModulesFile(path4) {
133364
- return path4.includes("/node_modules/");
133363
+ function isNodeModulesFile(path5) {
133364
+ return path5.includes("/node_modules/");
133365
133365
  }
133366
133366
  }
133367
133367
  function getRenameInfo2(fileName, position, preferences) {
@@ -144073,13 +144073,13 @@ ${newComment.split(`
144073
144073
  }
144074
144074
  });
144075
144075
  }
144076
- function generateJSDocParamTagsForDestructuring(path4, pattern, initializer, dotDotDotToken, isJs, isSnippet, checker, options, preferences) {
144076
+ function generateJSDocParamTagsForDestructuring(path5, pattern, initializer, dotDotDotToken, isJs, isSnippet, checker, options, preferences) {
144077
144077
  if (!isJs) {
144078
144078
  return [
144079
- getJSDocParamAnnotation(path4, initializer, dotDotDotToken, isJs, false, isSnippet, checker, options, preferences, { tabstop: 1 })
144079
+ getJSDocParamAnnotation(path5, initializer, dotDotDotToken, isJs, false, isSnippet, checker, options, preferences, { tabstop: 1 })
144080
144080
  ];
144081
144081
  }
144082
- return patternWorker(path4, pattern, initializer, dotDotDotToken, { tabstop: 1 });
144082
+ return patternWorker(path5, pattern, initializer, dotDotDotToken, { tabstop: 1 });
144083
144083
  function patternWorker(path22, pattern2, initializer2, dotDotDotToken2, counter) {
144084
144084
  if (isObjectBindingPattern(pattern2) && !dotDotDotToken2) {
144085
144085
  const oldTabstop = counter.tabstop;
@@ -147888,17 +147888,17 @@ ${newComment.split(`
147888
147888
  function getFragmentDirectory(fragment) {
147889
147889
  return containsSlash(fragment) ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : undefined;
147890
147890
  }
147891
- function getCompletionsForPathMapping(path4, patterns, fragment, packageDirectory, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost) {
147892
- const parsedPath = tryParsePattern(path4);
147891
+ function getCompletionsForPathMapping(path5, patterns, fragment, packageDirectory, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost) {
147892
+ const parsedPath = tryParsePattern(path5);
147893
147893
  if (!parsedPath) {
147894
147894
  return emptyArray;
147895
147895
  }
147896
147896
  if (typeof parsedPath === "string") {
147897
- return justPathMappingName(path4, "script");
147897
+ return justPathMappingName(path5, "script");
147898
147898
  }
147899
147899
  const remainingFragment = tryRemovePrefix(fragment, parsedPath.prefix);
147900
147900
  if (remainingFragment === undefined) {
147901
- const starIsFullPathComponent = endsWith(path4, "/*");
147901
+ const starIsFullPathComponent = endsWith(path5, "/*");
147902
147902
  return starIsFullPathComponent ? justPathMappingName(parsedPath.prefix, "directory") : flatMap(patterns, (pattern) => {
147903
147903
  var _a;
147904
147904
  return (_a = getModulesForPathsPattern("", packageDirectory, pattern, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost)) == null ? undefined : _a.map(({ name, ...rest }) => ({ name: parsedPath.prefix + name + parsedPath.suffix, ...rest }));
@@ -147973,9 +147973,9 @@ ${newComment.split(`
147973
147973
  function getDirectoryMatches(directoryName) {
147974
147974
  return mapDefined(tryGetDirectories(host, directoryName), (dir) => dir === "node_modules" ? undefined : directoryResult(dir));
147975
147975
  }
147976
- function trimPrefixAndSuffix(path4, prefix) {
147976
+ function trimPrefixAndSuffix(path5, prefix) {
147977
147977
  return firstDefined(matchingSuffixes, (suffix) => {
147978
- const inner = withoutStartAndEnd(normalizePath(path4), prefix, suffix);
147978
+ const inner = withoutStartAndEnd(normalizePath(path5), prefix, suffix);
147979
147979
  return inner === undefined ? undefined : removeLeadingDirectorySeparator(inner);
147980
147980
  });
147981
147981
  }
@@ -147983,8 +147983,8 @@ ${newComment.split(`
147983
147983
  function withoutStartAndEnd(s, start, end) {
147984
147984
  return startsWith(s, start) && endsWith(s, end) ? s.slice(start.length, s.length - end.length) : undefined;
147985
147985
  }
147986
- function removeLeadingDirectorySeparator(path4) {
147987
- return path4[0] === directorySeparator ? path4.slice(1) : path4;
147986
+ function removeLeadingDirectorySeparator(path5) {
147987
+ return path5[0] === directorySeparator ? path5.slice(1) : path5;
147988
147988
  }
147989
147989
  function getAmbientModuleCompletions(fragment, fragmentDirectory, checker) {
147990
147990
  const ambientModules = checker.getAmbientModules().map((sym) => stripQuotes(sym.name));
@@ -148072,10 +148072,10 @@ ${newComment.split(`
148072
148072
  const length2 = text.length - offset;
148073
148073
  return length2 === 0 || isIdentifierText(text.substr(offset, length2), 99) ? undefined : createTextSpan(textStart + offset, length2);
148074
148074
  }
148075
- function isPathRelativeToScript(path4) {
148076
- if (path4 && path4.length >= 2 && path4.charCodeAt(0) === 46) {
148077
- const slashIndex = path4.length >= 3 && path4.charCodeAt(1) === 46 ? 2 : 1;
148078
- const slashCharCode = path4.charCodeAt(slashIndex);
148075
+ function isPathRelativeToScript(path5) {
148076
+ if (path5 && path5.length >= 2 && path5.charCodeAt(0) === 46) {
148077
+ const slashIndex = path5.length >= 3 && path5.charCodeAt(1) === 46 ? 2 : 1;
148078
+ const slashCharCode = path5.charCodeAt(slashIndex);
148079
148079
  return slashCharCode === 47 || slashCharCode === 92;
148080
148080
  }
148081
148081
  return false;
@@ -161123,17 +161123,17 @@ ${options.prefix}` : `
161123
161123
  function createNormalizedPathMap() {
161124
161124
  const map2 = /* @__PURE__ */ new Map;
161125
161125
  return {
161126
- get(path4) {
161127
- return map2.get(path4);
161126
+ get(path5) {
161127
+ return map2.get(path5);
161128
161128
  },
161129
- set(path4, value) {
161130
- map2.set(path4, value);
161129
+ set(path5, value) {
161130
+ map2.set(path5, value);
161131
161131
  },
161132
- contains(path4) {
161133
- return map2.has(path4);
161132
+ contains(path5) {
161133
+ return map2.has(path5);
161134
161134
  },
161135
- remove(path4) {
161136
- map2.delete(path4);
161135
+ remove(path5) {
161136
+ map2.delete(path5);
161137
161137
  }
161138
161138
  };
161139
161139
  }
@@ -161609,12 +161609,12 @@ ${options.prefix}` : `
161609
161609
  return fileName[0] === "^" || (fileName.includes("walkThroughSnippet:/") || fileName.includes("untitled:/")) && getBaseFileName(fileName)[0] === "^" || fileName.includes(":^") && !fileName.includes(directorySeparator);
161610
161610
  }
161611
161611
  var ScriptInfo = class {
161612
- constructor(host, fileName, scriptKind, hasMixedContent, path4, initialVersion) {
161612
+ constructor(host, fileName, scriptKind, hasMixedContent, path5, initialVersion) {
161613
161613
  this.host = host;
161614
161614
  this.fileName = fileName;
161615
161615
  this.scriptKind = scriptKind;
161616
161616
  this.hasMixedContent = hasMixedContent;
161617
- this.path = path4;
161617
+ this.path = path5;
161618
161618
  this.containingProjects = [];
161619
161619
  this.isDynamic = isDynamicFileName(fileName);
161620
161620
  this.textStorage = new TextStorage(host, this, initialVersion);
@@ -162182,8 +162182,8 @@ ${options.prefix}` : `
162182
162182
  useCaseSensitiveFileNames() {
162183
162183
  return this.projectService.host.useCaseSensitiveFileNames;
162184
162184
  }
162185
- readDirectory(path4, extensions, exclude, include, depth) {
162186
- return this.directoryStructureHost.readDirectory(path4, extensions, exclude, include, depth);
162185
+ readDirectory(path5, extensions, exclude, include, depth) {
162186
+ return this.directoryStructureHost.readDirectory(path5, extensions, exclude, include, depth);
162187
162187
  }
162188
162188
  readFile(fileName) {
162189
162189
  return this.projectService.host.readFile(fileName);
@@ -162192,8 +162192,8 @@ ${options.prefix}` : `
162192
162192
  return this.projectService.host.writeFile(fileName, content);
162193
162193
  }
162194
162194
  fileExists(file) {
162195
- const path4 = this.toPath(file);
162196
- return !!this.projectService.getScriptInfoForPath(path4) || !this.isWatchedMissingFile(path4) && this.directoryStructureHost.fileExists(file);
162195
+ const path5 = this.toPath(file);
162196
+ return !!this.projectService.getScriptInfoForPath(path5) || !this.isWatchedMissingFile(path5) && this.directoryStructureHost.fileExists(file);
162197
162197
  }
162198
162198
  resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) {
162199
162199
  return this.resolutionCache.resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames);
@@ -162207,11 +162207,11 @@ ${options.prefix}` : `
162207
162207
  resolveLibrary(libraryName, resolveFrom, options, libFileName) {
162208
162208
  return this.resolutionCache.resolveLibrary(libraryName, resolveFrom, options, libFileName);
162209
162209
  }
162210
- directoryExists(path4) {
162211
- return this.directoryStructureHost.directoryExists(path4);
162210
+ directoryExists(path5) {
162211
+ return this.directoryStructureHost.directoryExists(path5);
162212
162212
  }
162213
- getDirectories(path4) {
162214
- return this.directoryStructureHost.getDirectories(path4);
162213
+ getDirectories(path5) {
162214
+ return this.directoryStructureHost.getDirectories(path5);
162215
162215
  }
162216
162216
  getCachedDirectoryStructureHost() {
162217
162217
  return;
@@ -162388,15 +162388,15 @@ ${options.prefix}` : `
162388
162388
  }
162389
162389
  }));
162390
162390
  }
162391
- getSourceFile(path4) {
162391
+ getSourceFile(path5) {
162392
162392
  if (!this.program) {
162393
162393
  return;
162394
162394
  }
162395
- return this.program.getSourceFileByPath(path4);
162395
+ return this.program.getSourceFileByPath(path5);
162396
162396
  }
162397
- getSourceFileOrConfigFile(path4) {
162397
+ getSourceFileOrConfigFile(path5) {
162398
162398
  const options = this.program.getCompilerOptions();
162399
- return path4 === options.configFilePath ? options.configFile : this.getSourceFile(path4);
162399
+ return path5 === options.configFilePath ? options.configFile : this.getSourceFile(path5);
162400
162400
  }
162401
162401
  close() {
162402
162402
  var _a;
@@ -162571,8 +162571,8 @@ ${options.prefix}` : `
162571
162571
  this.markAsDirty();
162572
162572
  }
162573
162573
  addMissingFileRoot(fileName) {
162574
- const path4 = this.projectService.toPath(fileName);
162575
- this.rootFilesMap.set(path4, { fileName });
162574
+ const path5 = this.projectService.toPath(fileName);
162575
+ this.rootFilesMap.set(path5, { fileName });
162576
162576
  this.markAsDirty();
162577
162577
  }
162578
162578
  removeFile(info, fileExists, detachFromProject) {
@@ -162718,12 +162718,12 @@ ${options.prefix}` : `
162718
162718
  if (!this.typingWatchers)
162719
162719
  this.typingWatchers = /* @__PURE__ */ new Map;
162720
162720
  this.typingWatchers.isInvoked = false;
162721
- const createProjectWatcher = (path4, typingsWatcherType) => {
162722
- const canonicalPath = this.toPath(path4);
162721
+ const createProjectWatcher = (path5, typingsWatcherType) => {
162722
+ const canonicalPath = this.toPath(path5);
162723
162723
  toRemove.delete(canonicalPath);
162724
162724
  if (!this.typingWatchers.has(canonicalPath)) {
162725
162725
  const watchType = typingsWatcherType === "FileWatcher" ? WatchType.TypingInstallerLocationFile : WatchType.TypingInstallerLocationDirectory;
162726
- this.typingWatchers.set(canonicalPath, canWatchDirectoryOrFilePath(canonicalPath) ? typingsWatcherType === "FileWatcher" ? this.projectService.watchFactory.watchFile(path4, () => !this.typingWatchers.isInvoked ? this.onTypingInstallerWatchInvoke() : this.writeLog(`TypingWatchers already invoked`), 2000, this.projectService.getWatchOptions(this), watchType, this) : this.projectService.watchFactory.watchDirectory(path4, (f) => {
162726
+ this.typingWatchers.set(canonicalPath, canWatchDirectoryOrFilePath(canonicalPath) ? typingsWatcherType === "FileWatcher" ? this.projectService.watchFactory.watchFile(path5, () => !this.typingWatchers.isInvoked ? this.onTypingInstallerWatchInvoke() : this.writeLog(`TypingWatchers already invoked`), 2000, this.projectService.getWatchOptions(this), watchType, this) : this.projectService.watchFactory.watchDirectory(path5, (f) => {
162727
162727
  if (this.typingWatchers.isInvoked)
162728
162728
  return this.writeLog(`TypingWatchers already invoked`);
162729
162729
  if (!fileExtensionIs(f, ".json"))
@@ -162731,7 +162731,7 @@ ${options.prefix}` : `
162731
162731
  if (comparePaths(f, combinePaths(this.projectService.typingsInstaller.globalTypingsCacheLocation, "package.json"), !this.useCaseSensitiveFileNames()))
162732
162732
  return this.writeLog(`Ignoring package.json change at global typings location`);
162733
162733
  this.onTypingInstallerWatchInvoke();
162734
- }, 1, this.projectService.getWatchOptions(this), watchType, this) : (this.writeLog(`Skipping watcher creation at ${path4}:: ${getDetailWatchInfo(watchType, this)}`), noopFileWatcher));
162734
+ }, 1, this.projectService.getWatchOptions(this), watchType, this) : (this.writeLog(`Skipping watcher creation at ${path5}:: ${getDetailWatchInfo(watchType, this)}`), noopFileWatcher));
162735
162735
  }
162736
162736
  };
162737
162737
  for (const file of files) {
@@ -162755,9 +162755,9 @@ ${options.prefix}` : `
162755
162755
  }
162756
162756
  createProjectWatcher(file, "DirectoryWatcher");
162757
162757
  }
162758
- toRemove.forEach((watch, path4) => {
162758
+ toRemove.forEach((watch, path5) => {
162759
162759
  watch.close();
162760
- this.typingWatchers.delete(path4);
162760
+ this.typingWatchers.delete(path5);
162761
162761
  });
162762
162762
  }
162763
162763
  getCurrentProgram() {
@@ -162791,9 +162791,9 @@ ${options.prefix}` : `
162791
162791
  let hasNewProgram = false;
162792
162792
  if (this.program && (!oldProgram || this.program !== oldProgram && this.program.structureIsReused !== 2)) {
162793
162793
  hasNewProgram = true;
162794
- this.rootFilesMap.forEach((value, path4) => {
162794
+ this.rootFilesMap.forEach((value, path5) => {
162795
162795
  var _a2;
162796
- const file = this.program.getSourceFileByPath(path4);
162796
+ const file = this.program.getSourceFileByPath(path5);
162797
162797
  const info = value.info;
162798
162798
  if (!file || ((_a2 = value.info) == null ? undefined : _a2.path) === file.resolvedPath)
162799
162799
  return;
@@ -162904,8 +162904,8 @@ ${options.prefix}` : `
162904
162904
  }, 500, this.projectService.getWatchOptions(this), WatchType.MissingFile, this);
162905
162905
  return fileWatcher;
162906
162906
  }
162907
- isWatchedMissingFile(path4) {
162908
- return !!this.missingFilesMap && this.missingFilesMap.has(path4);
162907
+ isWatchedMissingFile(path5) {
162908
+ return !!this.missingFilesMap && this.missingFilesMap.has(path5);
162909
162909
  }
162910
162910
  addGeneratedFileWatch(generatedFile, sourceFile) {
162911
162911
  if (this.compilerOptions.outFile) {
@@ -162913,18 +162913,18 @@ ${options.prefix}` : `
162913
162913
  this.generatedFilesMap = this.createGeneratedFileWatcher(generatedFile);
162914
162914
  }
162915
162915
  } else {
162916
- const path4 = this.toPath(sourceFile);
162916
+ const path5 = this.toPath(sourceFile);
162917
162917
  if (this.generatedFilesMap) {
162918
162918
  if (isGeneratedFileWatcher(this.generatedFilesMap)) {
162919
162919
  Debug.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);
162920
162920
  return;
162921
162921
  }
162922
- if (this.generatedFilesMap.has(path4))
162922
+ if (this.generatedFilesMap.has(path5))
162923
162923
  return;
162924
162924
  } else {
162925
162925
  this.generatedFilesMap = /* @__PURE__ */ new Map;
162926
162926
  }
162927
- this.generatedFilesMap.set(path4, this.createGeneratedFileWatcher(generatedFile));
162927
+ this.generatedFilesMap.set(path5, this.createGeneratedFileWatcher(generatedFile));
162928
162928
  }
162929
162929
  }
162930
162930
  createGeneratedFileWatcher(generatedFile) {
@@ -163259,7 +163259,7 @@ ${options.prefix}` : `
163259
163259
  }
163260
163260
  }
163261
163261
  isDefaultProjectForOpenFiles() {
163262
- return !!forEachEntry(this.projectService.openFiles, (_projectRootPath, path4) => this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(path4)) === this);
163262
+ return !!forEachEntry(this.projectService.openFiles, (_projectRootPath, path5) => this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(path5)) === this);
163263
163263
  }
163264
163264
  watchNodeModulesForPackageJsonChanges(directoryPath) {
163265
163265
  return this.projectService.watchPackageJsonsInNodeModules(directoryPath, this);
@@ -164175,22 +164175,22 @@ ${options.prefix}` : `
164175
164175
  getCurrentDirectory: () => service.host.getCurrentDirectory(),
164176
164176
  useCaseSensitiveFileNames: service.host.useCaseSensitiveFileNames
164177
164177
  };
164178
- function watchFile2(path4, callback) {
164179
- return getOrCreateFileWatcher(watchedFiles, path4, callback, (id) => ({ eventName: CreateFileWatcherEvent, data: { id, path: path4 } }));
164178
+ function watchFile2(path5, callback) {
164179
+ return getOrCreateFileWatcher(watchedFiles, path5, callback, (id) => ({ eventName: CreateFileWatcherEvent, data: { id, path: path5 } }));
164180
164180
  }
164181
- function watchDirectory(path4, callback, recursive) {
164182
- return getOrCreateFileWatcher(recursive ? watchedDirectoriesRecursive : watchedDirectories, path4, callback, (id) => ({
164181
+ function watchDirectory(path5, callback, recursive) {
164182
+ return getOrCreateFileWatcher(recursive ? watchedDirectoriesRecursive : watchedDirectories, path5, callback, (id) => ({
164183
164183
  eventName: CreateDirectoryWatcherEvent,
164184
164184
  data: {
164185
164185
  id,
164186
- path: path4,
164186
+ path: path5,
164187
164187
  recursive: !!recursive,
164188
- ignoreUpdate: !path4.endsWith("/node_modules") ? true : undefined
164188
+ ignoreUpdate: !path5.endsWith("/node_modules") ? true : undefined
164189
164189
  }
164190
164190
  }));
164191
164191
  }
164192
- function getOrCreateFileWatcher({ pathToId, idToCallbacks }, path4, callback, event) {
164193
- const key = service.toPath(path4);
164192
+ function getOrCreateFileWatcher({ pathToId, idToCallbacks }, path5, callback, event) {
164193
+ const key = service.toPath(path5);
164194
164194
  let id = pathToId.get(key);
164195
164195
  if (!id)
164196
164196
  pathToId.set(key, id = ids++);
@@ -164334,12 +164334,12 @@ ${options.prefix}` : `
164334
164334
  getNormalizedAbsolutePath(fileName) {
164335
164335
  return getNormalizedAbsolutePath(fileName, this.host.getCurrentDirectory());
164336
164336
  }
164337
- setDocument(key, path4, sourceFile) {
164338
- const info = Debug.checkDefined(this.getScriptInfoForPath(path4));
164337
+ setDocument(key, path5, sourceFile) {
164338
+ const info = Debug.checkDefined(this.getScriptInfoForPath(path5));
164339
164339
  info.cacheSourceFile = { key, sourceFile };
164340
164340
  }
164341
- getDocument(key, path4) {
164342
- const info = this.getScriptInfoForPath(path4);
164341
+ getDocument(key, path5) {
164342
+ const info = this.getScriptInfoForPath(path5);
164343
164343
  return info && info.cacheSourceFile && info.cacheSourceFile.key === key ? info.cacheSourceFile.sourceFile : undefined;
164344
164344
  }
164345
164345
  ensureInferredProjectsUpToDate_TestOnly() {
@@ -164438,7 +164438,7 @@ ${options.prefix}` : `
164438
164438
  const event = {
164439
164439
  eventName: ProjectsUpdatedInBackgroundEvent,
164440
164440
  data: {
164441
- openFiles: arrayFrom(this.openFiles.keys(), (path4) => this.getScriptInfoForPath(path4).fileName)
164441
+ openFiles: arrayFrom(this.openFiles.keys(), (path5) => this.getScriptInfoForPath(path5).fileName)
164442
164442
  }
164443
164443
  };
164444
164444
  this.eventHandler(event);
@@ -164631,11 +164631,11 @@ ${options.prefix}` : `
164631
164631
  }
164632
164632
  delayUpdateSourceInfoProjects(sourceInfos) {
164633
164633
  if (sourceInfos) {
164634
- sourceInfos.forEach((_value, path4) => this.delayUpdateProjectsOfScriptInfoPath(path4));
164634
+ sourceInfos.forEach((_value, path5) => this.delayUpdateProjectsOfScriptInfoPath(path5));
164635
164635
  }
164636
164636
  }
164637
- delayUpdateProjectsOfScriptInfoPath(path4) {
164638
- const info = this.getScriptInfoForPath(path4);
164637
+ delayUpdateProjectsOfScriptInfoPath(path5) {
164638
+ const info = this.getScriptInfoForPath(path5);
164639
164639
  if (info) {
164640
164640
  this.delayUpdateProjectGraphs(info.containingProjects, true);
164641
164641
  }
@@ -164709,8 +164709,8 @@ ${options.prefix}` : `
164709
164709
  if (!project)
164710
164710
  return;
164711
164711
  if (configuredProjectForConfig !== project && this.getHostPreferences().includeCompletionsForModuleExports) {
164712
- const path4 = this.toPath(configFileName);
164713
- if (find((_a = project.getCurrentProgram()) == null ? undefined : _a.getResolvedProjectReferences(), (ref) => (ref == null ? undefined : ref.sourceFile.path) === path4)) {
164712
+ const path5 = this.toPath(configFileName);
164713
+ if (find((_a = project.getCurrentProgram()) == null ? undefined : _a.getResolvedProjectReferences(), (ref) => (ref == null ? undefined : ref.sourceFile.path) === path5)) {
164714
164714
  project.markAutoImportProviderAsDirty();
164715
164715
  }
164716
164716
  }
@@ -164762,10 +164762,10 @@ ${options.prefix}` : `
164762
164762
  });
164763
164763
  return;
164764
164764
  }
164765
- const path4 = this.toPath(canonicalConfigFilePath);
164766
- project.resolutionCache.removeResolutionsFromProjectReferenceRedirects(path4);
164765
+ const path5 = this.toPath(canonicalConfigFilePath);
164766
+ project.resolutionCache.removeResolutionsFromProjectReferenceRedirects(path5);
164767
164767
  this.delayUpdateProjectGraph(project);
164768
- if (this.getHostPreferences().includeCompletionsForModuleExports && find((_c = project.getCurrentProgram()) == null ? undefined : _c.getResolvedProjectReferences(), (ref) => (ref == null ? undefined : ref.sourceFile.path) === path4)) {
164768
+ if (this.getHostPreferences().includeCompletionsForModuleExports && find((_c = project.getCurrentProgram()) == null ? undefined : _c.getResolvedProjectReferences(), (ref) => (ref == null ? undefined : ref.sourceFile.path) === path5)) {
164769
164769
  project.markAutoImportProviderAsDirty();
164770
164770
  }
164771
164771
  }
@@ -164788,18 +164788,18 @@ ${options.prefix}` : `
164788
164788
  }
164789
164789
  }
164790
164790
  this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(canonicalConfigFilePath, "Change in config file detected");
164791
- this.openFiles.forEach((_projectRootPath, path4) => {
164791
+ this.openFiles.forEach((_projectRootPath, path5) => {
164792
164792
  var _a, _b;
164793
- const configFileForOpenFile = this.configFileForOpenFiles.get(path4);
164794
- if (!((_a = configFileExistenceInfo.openFilesImpactedByConfigFile) == null ? undefined : _a.has(path4)))
164793
+ const configFileForOpenFile = this.configFileForOpenFiles.get(path5);
164794
+ if (!((_a = configFileExistenceInfo.openFilesImpactedByConfigFile) == null ? undefined : _a.has(path5)))
164795
164795
  return;
164796
- this.configFileForOpenFiles.delete(path4);
164797
- const info = this.getScriptInfoForPath(path4);
164796
+ this.configFileForOpenFiles.delete(path5);
164797
+ const info = this.getScriptInfoForPath(path5);
164798
164798
  const newConfigFileNameForInfo = this.getConfigFileNameForFile(info, false);
164799
164799
  if (!newConfigFileNameForInfo)
164800
164800
  return;
164801
- if (!((_b = this.pendingOpenFileProjectUpdates) == null ? undefined : _b.has(path4))) {
164802
- (this.pendingOpenFileProjectUpdates ?? (this.pendingOpenFileProjectUpdates = /* @__PURE__ */ new Map)).set(path4, configFileForOpenFile);
164801
+ if (!((_b = this.pendingOpenFileProjectUpdates) == null ? undefined : _b.has(path5))) {
164802
+ (this.pendingOpenFileProjectUpdates ?? (this.pendingOpenFileProjectUpdates = /* @__PURE__ */ new Map)).set(path5, configFileForOpenFile);
164803
164803
  }
164804
164804
  });
164805
164805
  this.delayEnsureProjectForOpenFiles();
@@ -164854,8 +164854,8 @@ ${options.prefix}` : `
164854
164854
  return project;
164855
164855
  }
164856
164856
  assignOrphanScriptInfosToInferredProject() {
164857
- this.openFiles.forEach((projectRootPath, path4) => {
164858
- const info = this.getScriptInfoForPath(path4);
164857
+ this.openFiles.forEach((projectRootPath, path5) => {
164858
+ const info = this.getScriptInfoForPath(path5);
164859
164859
  if (info.isOrphan()) {
164860
164860
  this.assignOrphanScriptInfoToInferredProject(info, projectRootPath);
164861
164861
  }
@@ -165114,8 +165114,8 @@ ${options.prefix}` : `
165114
165114
  this.configuredProjects.forEach(printProjectWithoutFileNames);
165115
165115
  this.inferredProjects.forEach(printProjectWithoutFileNames);
165116
165116
  this.logger.info("Open files: ");
165117
- this.openFiles.forEach((projectRootPath, path4) => {
165118
- const info = this.getScriptInfoForPath(path4);
165117
+ this.openFiles.forEach((projectRootPath, path5) => {
165118
+ const info = this.getScriptInfoForPath(path5);
165119
165119
  this.logger.info(` FileName: ${info.fileName} ProjectRootPath: ${projectRootPath}`);
165120
165120
  this.logger.info(` Projects: ${info.containingProjects.map((p) => p.getProjectName())}`);
165121
165121
  });
@@ -165364,25 +165364,25 @@ ${options.prefix}` : `
165364
165364
  const newRootFile = propertyReader.getFileName(f);
165365
165365
  const fileName = toNormalizedPath(newRootFile);
165366
165366
  const isDynamic = isDynamicFileName(fileName);
165367
- let path4;
165367
+ let path5;
165368
165368
  if (!isDynamic && !project.fileExists(newRootFile)) {
165369
- path4 = normalizedPathToPath(fileName, this.currentDirectory, this.toCanonicalFileName);
165370
- const existingValue = projectRootFilesMap.get(path4);
165369
+ path5 = normalizedPathToPath(fileName, this.currentDirectory, this.toCanonicalFileName);
165370
+ const existingValue = projectRootFilesMap.get(path5);
165371
165371
  if (existingValue) {
165372
- if (((_a = existingValue.info) == null ? undefined : _a.path) === path4) {
165372
+ if (((_a = existingValue.info) == null ? undefined : _a.path) === path5) {
165373
165373
  project.removeFile(existingValue.info, false, true);
165374
165374
  existingValue.info = undefined;
165375
165375
  }
165376
165376
  existingValue.fileName = fileName;
165377
165377
  } else {
165378
- projectRootFilesMap.set(path4, { fileName });
165378
+ projectRootFilesMap.set(path5, { fileName });
165379
165379
  }
165380
165380
  } else {
165381
165381
  const scriptKind = propertyReader.getScriptKind(f, this.hostConfiguration.extraFileExtensions);
165382
165382
  const hasMixedContent = propertyReader.hasMixedContent(f, this.hostConfiguration.extraFileExtensions);
165383
165383
  const scriptInfo = Debug.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(fileName, project.currentDirectory, scriptKind, hasMixedContent, project.directoryStructureHost, false));
165384
- path4 = scriptInfo.path;
165385
- const existingValue = projectRootFilesMap.get(path4);
165384
+ path5 = scriptInfo.path;
165385
+ const existingValue = projectRootFilesMap.get(path5);
165386
165386
  if (!existingValue || existingValue.info !== scriptInfo) {
165387
165387
  project.addRoot(scriptInfo, fileName);
165388
165388
  if (scriptInfo.isScriptOpen()) {
@@ -165392,15 +165392,15 @@ ${options.prefix}` : `
165392
165392
  existingValue.fileName = fileName;
165393
165393
  }
165394
165394
  }
165395
- newRootScriptInfoMap.set(path4, true);
165395
+ newRootScriptInfoMap.set(path5, true);
165396
165396
  }
165397
165397
  if (projectRootFilesMap.size > newRootScriptInfoMap.size) {
165398
- projectRootFilesMap.forEach((value, path4) => {
165399
- if (!newRootScriptInfoMap.has(path4)) {
165398
+ projectRootFilesMap.forEach((value, path5) => {
165399
+ if (!newRootScriptInfoMap.has(path5)) {
165400
165400
  if (value.info) {
165401
165401
  project.removeFile(value.info, project.fileExists(value.info.fileName), true);
165402
165402
  } else {
165403
- projectRootFilesMap.delete(path4);
165403
+ projectRootFilesMap.delete(path5);
165404
165404
  }
165405
165405
  }
165406
165406
  });
@@ -165558,15 +165558,15 @@ ${options.prefix}` : `
165558
165558
  return this.getScriptInfoForNormalizedPath(toNormalizedPath(uncheckedFileName));
165559
165559
  }
165560
165560
  getScriptInfoOrConfig(uncheckedFileName) {
165561
- const path4 = toNormalizedPath(uncheckedFileName);
165562
- const info = this.getScriptInfoForNormalizedPath(path4);
165561
+ const path5 = toNormalizedPath(uncheckedFileName);
165562
+ const info = this.getScriptInfoForNormalizedPath(path5);
165563
165563
  if (info)
165564
165564
  return info;
165565
165565
  const configProject = this.configuredProjects.get(this.toPath(uncheckedFileName));
165566
165566
  return configProject && configProject.getCompilerOptions().configFile;
165567
165567
  }
165568
165568
  logErrorForScriptInfoNotFound(fileName) {
165569
- const names = arrayFrom(mapDefinedIterator(this.filenameToScriptInfo.entries(), (entry) => entry[1].deferredDelete ? undefined : entry), ([path4, scriptInfo]) => ({ path: path4, fileName: scriptInfo.fileName }));
165569
+ const names = arrayFrom(mapDefinedIterator(this.filenameToScriptInfo.entries(), (entry) => entry[1].deferredDelete ? undefined : entry), ([path5, scriptInfo]) => ({ path: path5, fileName: scriptInfo.fileName }));
165570
165570
  this.logger.msg(`Could not find file ${JSON.stringify(fileName)}.
165571
165571
  All files are: ${JSON.stringify(names)}`, "Err");
165572
165572
  }
@@ -165587,7 +165587,7 @@ All files are: ${JSON.stringify(names)}`, "Err");
165587
165587
  if (!projects) {
165588
165588
  projects = createMultiMap();
165589
165589
  projects.add(toAddInfo.path, project);
165590
- } else if (!forEachEntry(projects, (projs, path4) => path4 === toAddInfo.path ? false : contains(projs, project))) {
165590
+ } else if (!forEachEntry(projects, (projs, path5) => path5 === toAddInfo.path ? false : contains(projs, project))) {
165591
165591
  projects.add(toAddInfo.path, project);
165592
165592
  }
165593
165593
  }
@@ -165716,8 +165716,8 @@ All files are: ${JSON.stringify(names)}`, "Err");
165716
165716
  }
165717
165717
  getOrCreateScriptInfoWorker(fileName, currentDirectory, openedByClient, fileContent, scriptKind, hasMixedContent, hostToQueryFileExistsOn, deferredDeleteOk) {
165718
165718
  Debug.assert(fileContent === undefined || openedByClient, "ScriptInfo needs to be opened by client to be able to set its user defined content");
165719
- const path4 = normalizedPathToPath(fileName, currentDirectory, this.toCanonicalFileName);
165720
- let info = this.filenameToScriptInfo.get(path4);
165719
+ const path5 = normalizedPathToPath(fileName, currentDirectory, this.toCanonicalFileName);
165720
+ let info = this.filenameToScriptInfo.get(path5);
165721
165721
  if (!info) {
165722
165722
  const isDynamic = isDynamicFileName(fileName);
165723
165723
  Debug.assert(isRootedDiskPath(fileName) || isDynamic || openedByClient, "", () => `${JSON.stringify({ fileName, currentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWithNonRootedDiskPath.keys()) })}
@@ -165729,7 +165729,7 @@ Dynamic files must always be opened with service's current directory or service
165729
165729
  if (!openedByClient && !isDynamic && !(hostToQueryFileExistsOn || this.host).fileExists(fileName)) {
165730
165730
  return;
165731
165731
  }
165732
- info = new ScriptInfo(this.host, fileName, scriptKind, hasMixedContent, path4, this.filenameToScriptInfoVersion.get(path4));
165732
+ info = new ScriptInfo(this.host, fileName, scriptKind, hasMixedContent, path5, this.filenameToScriptInfoVersion.get(path5));
165733
165733
  this.filenameToScriptInfo.set(info.path, info);
165734
165734
  this.filenameToScriptInfoVersion.delete(info.path);
165735
165735
  if (!openedByClient) {
@@ -165838,9 +165838,9 @@ Dynamic files must always be opened with service's current directory or service
165838
165838
  getSourceFileLike(fileName, projectNameOrProject, declarationInfo) {
165839
165839
  const project = projectNameOrProject.projectName ? projectNameOrProject : this.findProject(projectNameOrProject);
165840
165840
  if (project) {
165841
- const path4 = project.toPath(fileName);
165842
- const sourceFile = project.getSourceFile(path4);
165843
- if (sourceFile && sourceFile.resolvedPath === path4)
165841
+ const path5 = project.toPath(fileName);
165842
+ const sourceFile = project.getSourceFile(path5);
165843
+ if (sourceFile && sourceFile.resolvedPath === path5)
165844
165844
  return sourceFile;
165845
165845
  }
165846
165846
  const info = this.getOrCreateScriptInfoNotOpenedByClient(fileName, (project || this).currentDirectory, project ? project.directoryStructureHost : this.host, false);
@@ -165983,8 +165983,8 @@ Dynamic files must always be opened with service's current directory or service
165983
165983
  }
165984
165984
  });
165985
165985
  });
165986
- this.openFiles.forEach((_projectRootPath, path4) => {
165987
- const info = this.getScriptInfoForPath(path4);
165986
+ this.openFiles.forEach((_projectRootPath, path5) => {
165987
+ const info = this.getScriptInfoForPath(path5);
165988
165988
  if (find(info.containingProjects, isExternalProject))
165989
165989
  return;
165990
165990
  this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(info, 7, reloadedConfiguredProjects, delayReloadedConfiguredProjects);
@@ -166008,9 +166008,9 @@ Dynamic files must always be opened with service's current directory or service
166008
166008
  this.printProjects();
166009
166009
  const pendingOpenFileProjectUpdates = this.pendingOpenFileProjectUpdates;
166010
166010
  this.pendingOpenFileProjectUpdates = undefined;
166011
- pendingOpenFileProjectUpdates == null || pendingOpenFileProjectUpdates.forEach((_config, path4) => this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(path4), 5));
166012
- this.openFiles.forEach((projectRootPath, path4) => {
166013
- const info = this.getScriptInfoForPath(path4);
166011
+ pendingOpenFileProjectUpdates == null || pendingOpenFileProjectUpdates.forEach((_config, path5) => this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(path5), 5));
166012
+ this.openFiles.forEach((projectRootPath, path5) => {
166013
+ const info = this.getScriptInfoForPath(path5);
166014
166014
  if (info.isOrphan()) {
166015
166015
  this.assignOrphanScriptInfoToInferredProject(info, projectRootPath);
166016
166016
  } else {
@@ -166356,10 +166356,10 @@ Dynamic files must always be opened with service's current directory or service
166356
166356
  });
166357
166357
  if (!toRemoveConfiguredProjects.size)
166358
166358
  return toRemoveConfiguredProjects;
166359
- forEachEntry(this.openFiles, (_projectRootPath, path4) => {
166360
- if (openFilesWithRetainedConfiguredProject == null ? undefined : openFilesWithRetainedConfiguredProject.has(path4))
166359
+ forEachEntry(this.openFiles, (_projectRootPath, path5) => {
166360
+ if (openFilesWithRetainedConfiguredProject == null ? undefined : openFilesWithRetainedConfiguredProject.has(path5))
166361
166361
  return;
166362
- const info = this.getScriptInfoForPath(path4);
166362
+ const info = this.getScriptInfoForPath(path5);
166363
166363
  if (find(info.containingProjects, isExternalProject))
166364
166364
  return;
166365
166365
  const result = this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(info, 1);
@@ -166412,8 +166412,8 @@ Dynamic files must always be opened with service's current directory or service
166412
166412
  }
166413
166413
  if (!sourceInfos)
166414
166414
  return;
166415
- if (!forEachKey(sourceInfos, (path4) => {
166416
- const info2 = this.getScriptInfoForPath(path4);
166415
+ if (!forEachKey(sourceInfos, (path5) => {
166416
+ const info2 = this.getScriptInfoForPath(path5);
166417
166417
  return !!info2 && (info2.isScriptOpen() || !info2.isOrphan());
166418
166418
  })) {
166419
166419
  return;
@@ -166437,7 +166437,7 @@ Dynamic files must always be opened with service's current directory or service
166437
166437
  sourceInfos = info.sourceMapFilePath.sourceInfos;
166438
166438
  }
166439
166439
  if (sourceInfos) {
166440
- sourceInfos.forEach((_value, path4) => toRemoveScriptInfos.delete(path4));
166440
+ sourceInfos.forEach((_value, path5) => toRemoveScriptInfos.delete(path5));
166441
166441
  }
166442
166442
  }
166443
166443
  });
@@ -166839,19 +166839,19 @@ Dynamic files must always be opened with service's current directory or service
166839
166839
  }
166840
166840
  });
166841
166841
  }
166842
- watchPackageJsonFile(file, path4, project) {
166842
+ watchPackageJsonFile(file, path5, project) {
166843
166843
  Debug.assert(project !== undefined);
166844
- let result = (this.packageJsonFilesMap ?? (this.packageJsonFilesMap = /* @__PURE__ */ new Map)).get(path4);
166844
+ let result = (this.packageJsonFilesMap ?? (this.packageJsonFilesMap = /* @__PURE__ */ new Map)).get(path5);
166845
166845
  if (!result) {
166846
166846
  let watcher = this.watchFactory.watchFile(file, (fileName, eventKind) => {
166847
166847
  switch (eventKind) {
166848
166848
  case 0:
166849
166849
  case 1:
166850
- this.packageJsonCache.addOrUpdate(fileName, path4);
166850
+ this.packageJsonCache.addOrUpdate(fileName, path5);
166851
166851
  this.onPackageJsonChange(result);
166852
166852
  break;
166853
166853
  case 2:
166854
- this.packageJsonCache.delete(path4);
166854
+ this.packageJsonCache.delete(path5);
166855
166855
  this.onPackageJsonChange(result);
166856
166856
  result.projects.clear();
166857
166857
  result.close();
@@ -166865,11 +166865,11 @@ Dynamic files must always be opened with service's current directory or service
166865
166865
  return;
166866
166866
  watcher.close();
166867
166867
  watcher = undefined;
166868
- (_a = this.packageJsonFilesMap) == null || _a.delete(path4);
166869
- this.packageJsonCache.invalidate(path4);
166868
+ (_a = this.packageJsonFilesMap) == null || _a.delete(path5);
166869
+ this.packageJsonCache.invalidate(path5);
166870
166870
  }
166871
166871
  };
166872
- this.packageJsonFilesMap.set(path4, result);
166872
+ this.packageJsonFilesMap.set(path5, result);
166873
166873
  }
166874
166874
  result.projects.add(project);
166875
166875
  (project.packageJsonWatches ?? (project.packageJsonWatches = /* @__PURE__ */ new Set)).add(result);
@@ -167017,14 +167017,14 @@ Dynamic files must always be opened with service's current directory or service
167017
167017
  });
167018
167018
  }
167019
167019
  };
167020
- function addOrUpdate(fileName, path4) {
167020
+ function addOrUpdate(fileName, path5) {
167021
167021
  const packageJsonInfo = Debug.checkDefined(createPackageJsonInfo(fileName, host.host));
167022
- packageJsons.set(path4, packageJsonInfo);
167023
- directoriesWithoutPackageJson.delete(getDirectoryPath(path4));
167022
+ packageJsons.set(path5, packageJsonInfo);
167023
+ directoriesWithoutPackageJson.delete(getDirectoryPath(path5));
167024
167024
  }
167025
- function invalidate(path4) {
167026
- packageJsons.delete(path4);
167027
- directoriesWithoutPackageJson.delete(getDirectoryPath(path4));
167025
+ function invalidate(path5) {
167026
+ packageJsons.delete(path5);
167027
+ directoriesWithoutPackageJson.delete(getDirectoryPath(path5));
167028
167028
  }
167029
167029
  function directoryHasPackageJson(directory) {
167030
167030
  return packageJsons.has(combinePaths(directory, "package.json")) ? -1 : directoriesWithoutPackageJson.has(directory) ? 0 : 3;
@@ -167216,8 +167216,8 @@ ${json}${newLine}`;
167216
167216
  function combineProjectOutput(defaultValue, getValue, projects, action) {
167217
167217
  const outputs = flatMapToMutable(isArray(projects) ? projects : projects.projects, (project) => action(project, defaultValue));
167218
167218
  if (!isArray(projects) && projects.symLinkedProjects) {
167219
- projects.symLinkedProjects.forEach((projects2, path4) => {
167220
- const value = getValue(path4);
167219
+ projects.symLinkedProjects.forEach((projects2, path5) => {
167220
+ const value = getValue(path5);
167221
167221
  outputs.push(...flatMap(projects2, (project) => action(project, value)));
167222
167222
  });
167223
167223
  }
@@ -167332,9 +167332,9 @@ ${json}${newLine}`;
167332
167332
  });
167333
167333
  return results.filter((o) => o.references.length !== 0);
167334
167334
  }
167335
- function forEachProjectInProjects(projects, path4, cb) {
167335
+ function forEachProjectInProjects(projects, path5, cb) {
167336
167336
  for (const project of isArray(projects) ? projects : projects.projects) {
167337
- cb(project, path4);
167337
+ cb(project, path5);
167338
167338
  }
167339
167339
  if (!isArray(projects) && projects.symLinkedProjects) {
167340
167340
  projects.symLinkedProjects.forEach((symlinkedProjects, symlinkedPath) => {
@@ -167348,8 +167348,8 @@ ${json}${newLine}`;
167348
167348
  const resultsMap = /* @__PURE__ */ new Map;
167349
167349
  const queue = createQueue();
167350
167350
  queue.enqueue({ project: defaultProject, location: initialLocation });
167351
- forEachProjectInProjects(projects, initialLocation.fileName, (project, path4) => {
167352
- const location = { fileName: path4, pos: initialLocation.pos };
167351
+ forEachProjectInProjects(projects, initialLocation.fileName, (project, path5) => {
167352
+ const location = { fileName: path5, pos: initialLocation.pos };
167353
167353
  queue.enqueue({ project, location });
167354
167354
  });
167355
167355
  const projectService = defaultProject.projectService;
@@ -168500,8 +168500,8 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
168500
168500
  const entrypoints = getEntrypointsFromPackageJsonInfo(packageJson, { moduleResolution: 2 }, project, project.getModuleResolutionCache());
168501
168501
  const packageNamePathPart = fileName.substring(nodeModulesPathParts.topLevelPackageNameIndex + 1, nodeModulesPathParts.packageRootIndex);
168502
168502
  const packageName = getPackageNameFromTypesPackageName(unmangleScopedPackageName(packageNamePathPart));
168503
- const path4 = project.toPath(fileName);
168504
- if (entrypoints && some(entrypoints, (e) => project.toPath(e) === path4)) {
168503
+ const path5 = project.toPath(fileName);
168504
+ if (entrypoints && some(entrypoints, (e) => project.toPath(e) === path5)) {
168505
168505
  return (_b = auxiliaryProject.resolutionCache.resolveSingleModuleNameWithoutWatching(packageName, resolveFromFile).resolvedModule) == null ? undefined : _b.resolvedFileName;
168506
168506
  } else {
168507
168507
  const pathToFileInPackage = fileName.substring(nodeModulesPathParts.packageRootIndex + 1);
@@ -169166,7 +169166,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
169166
169166
  if (!info) {
169167
169167
  return emptyArray2;
169168
169168
  }
169169
- return combineProjectOutput(info, (path4) => this.projectService.getScriptInfoForPath(path4), projects, (project, info2) => {
169169
+ return combineProjectOutput(info, (path5) => this.projectService.getScriptInfoForPath(path5), projects, (project, info2) => {
169170
169170
  if (!project.compileOnSaveEnabled || !project.languageServiceEnabled || project.isOrphan()) {
169171
169171
  return;
169172
169172
  }
@@ -169190,7 +169190,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
169190
169190
  return args.richResponse ? { emitSkipped: true, diagnostics: [] } : false;
169191
169191
  }
169192
169192
  const scriptInfo = project.getScriptInfo(file);
169193
- const { emitSkipped, diagnostics } = project.emitFile(scriptInfo, (path4, data, writeByteOrderMark) => this.host.writeFile(path4, data, writeByteOrderMark));
169193
+ const { emitSkipped, diagnostics } = project.emitFile(scriptInfo, (path5, data, writeByteOrderMark) => this.host.writeFile(path5, data, writeByteOrderMark));
169194
169194
  return args.richResponse ? {
169195
169195
  emitSkipped,
169196
169196
  diagnostics: args.includeLinePosition ? this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(diagnostics) : diagnostics.map((d) => formatDiagnosticToProtocol(d, true))
@@ -170921,6 +170921,404 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
170921
170921
  } });
170922
170922
  });
170923
170923
 
170924
+ // ../wp-typia-project-tools/src/runtime/pattern-catalog.ts
170925
+ import fs from "fs";
170926
+ import path from "path";
170927
+ import {
170928
+ validateBlockPatternContentNesting
170929
+ } from "@wp-typia/block-runtime/metadata-core";
170930
+ var PATTERN_CATALOG_SCOPE_IDS = ["full", "section"];
170931
+ var PATTERN_SLUG_PATTERN = /^[a-z][a-z0-9-]*$/u;
170932
+ var PATTERN_SECTION_ROLE_PATTERN = PATTERN_SLUG_PATTERN;
170933
+ var PATTERN_TAG_PATTERN = /^[a-z0-9][a-z0-9-]*$/u;
170934
+ var PATTERN_CONTENT_FILE_ROOT = "src/patterns/";
170935
+ var DEFAULT_SECTION_ROLE_CONVENTION = {
170936
+ baseClassName: "section",
170937
+ requireUniqueFullPatternRoles: false,
170938
+ roleAttributePaths: ["metadata.sectionRole"],
170939
+ roleClassNamePattern: "section--{role}",
170940
+ wrapperBlockName: "core/group"
170941
+ };
170942
+ function createPatternCatalogDiagnostic(diagnostic) {
170943
+ return diagnostic;
170944
+ }
170945
+ function isPatternCatalogScope(value) {
170946
+ return PATTERN_CATALOG_SCOPE_IDS.includes(value);
170947
+ }
170948
+ function isSafeRelativePath(value) {
170949
+ return value.length > 0 && !path.isAbsolute(value) && !value.includes("\\") && !value.split(/[\\/]+/u).includes("..") && !/[<>:"|?*\u0000-\u001F]/u.test(value);
170950
+ }
170951
+ function isPatternContentFilePath(value) {
170952
+ if (!isSafeRelativePath(value) || !value.startsWith(PATTERN_CONTENT_FILE_ROOT) || !value.endsWith(".php")) {
170953
+ return false;
170954
+ }
170955
+ const patternRelativePath = value.slice(PATTERN_CONTENT_FILE_ROOT.length);
170956
+ const segments = patternRelativePath.split("/");
170957
+ return (segments.length === 1 || segments.length === 2) && segments.every((segment) => segment.length > 0);
170958
+ }
170959
+ function normalizeSectionRoleConventionInput(convention = {}) {
170960
+ return {
170961
+ baseClassName: convention.baseClassName ?? DEFAULT_SECTION_ROLE_CONVENTION.baseClassName,
170962
+ requireUniqueFullPatternRoles: convention.requireUniqueFullPatternRoles ?? DEFAULT_SECTION_ROLE_CONVENTION.requireUniqueFullPatternRoles,
170963
+ roleAttributePaths: convention.roleAttributePaths ?? DEFAULT_SECTION_ROLE_CONVENTION.roleAttributePaths,
170964
+ roleClassNamePattern: convention.roleClassNamePattern ?? DEFAULT_SECTION_ROLE_CONVENTION.roleClassNamePattern,
170965
+ wrapperBlockName: convention.wrapperBlockName ?? DEFAULT_SECTION_ROLE_CONVENTION.wrapperBlockName
170966
+ };
170967
+ }
170968
+ function escapeRegExp(value) {
170969
+ return value.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
170970
+ }
170971
+ function createRoleClassNamePattern(pattern) {
170972
+ const parts = pattern.split("{role}");
170973
+ if (parts.length !== 2) {
170974
+ throw new Error(`roleClassNamePattern must contain exactly one "{role}" placeholder.`);
170975
+ }
170976
+ return new RegExp(`^${escapeRegExp(parts[0] ?? "")}(?<role>\\S*)${escapeRegExp(parts[1] ?? "")}$`, "u");
170977
+ }
170978
+ function normalizeSectionRoleConvention(convention = {}) {
170979
+ const normalized = normalizeSectionRoleConventionInput(convention);
170980
+ return {
170981
+ ...normalized,
170982
+ roleClassNamePatternRegExp: createRoleClassNamePattern(normalized.roleClassNamePattern)
170983
+ };
170984
+ }
170985
+ function getClassNameTokens(attributes) {
170986
+ const className = attributes.className;
170987
+ if (typeof className !== "string") {
170988
+ return [];
170989
+ }
170990
+ return className.split(/\s+/u).filter((token) => token.length > 0);
170991
+ }
170992
+ function getAttributePathValue(attributes, pathName) {
170993
+ return pathName.split(".").reduce((current, segment) => {
170994
+ if (current !== null && typeof current === "object" && !Array.isArray(current) && Object.prototype.hasOwnProperty.call(current, segment)) {
170995
+ return current[segment];
170996
+ }
170997
+ return;
170998
+ }, attributes);
170999
+ }
171000
+ function collectStringValues(value) {
171001
+ if (typeof value === "string") {
171002
+ return [value];
171003
+ }
171004
+ if (Array.isArray(value)) {
171005
+ return value.filter((item) => typeof item === "string");
171006
+ }
171007
+ return [];
171008
+ }
171009
+ function uniqueValues(values) {
171010
+ return [...new Set(values)];
171011
+ }
171012
+ function formatRoleList(roles) {
171013
+ if (roles.length === 0) {
171014
+ return "none";
171015
+ }
171016
+ return roles.map((role) => `"${role}"`).join(", ");
171017
+ }
171018
+ function formatBlockPaths(paths) {
171019
+ return paths.map((blockPath) => `at ${blockPath}`).join(", ");
171020
+ }
171021
+ function describeRoleMarkerConvention(convention) {
171022
+ return `${convention.wrapperBlockName} wrappers with class "${convention.roleClassNamePattern}" or attributes ${convention.roleAttributePaths.join(", ")}`;
171023
+ }
171024
+ function isSectionWrapperCandidate(block, roles, convention) {
171025
+ if (block.blockName !== convention.wrapperBlockName) {
171026
+ return false;
171027
+ }
171028
+ if (roles.length > 0) {
171029
+ return true;
171030
+ }
171031
+ return getClassNameTokens(block.attributes).includes(convention.baseClassName);
171032
+ }
171033
+ function collectSectionRoleMatches(blocks, convention, pathSegments = []) {
171034
+ return blocks.flatMap((block, index) => {
171035
+ const blockPathSegments = [
171036
+ ...pathSegments,
171037
+ `${block.blockName}[${index}]`
171038
+ ];
171039
+ const blockPath = blockPathSegments.join(" > ");
171040
+ const roles = extractPatternSectionRolesFromAttributes(block.attributes, convention);
171041
+ const matches = isSectionWrapperCandidate(block, roles, convention) ? [
171042
+ {
171043
+ blockName: block.blockName,
171044
+ blockPath,
171045
+ roles
171046
+ }
171047
+ ] : [];
171048
+ return [
171049
+ ...matches,
171050
+ ...collectSectionRoleMatches(block.innerBlocks, convention, blockPathSegments)
171051
+ ];
171052
+ });
171053
+ }
171054
+ function unescapeSerializedBlockCommentJsonQuotes(content) {
171055
+ return content.replace(/<!--([\s\S]*?)-->/gu, (comment, body) => {
171056
+ const source = body.trim();
171057
+ if (!source.startsWith("wp:") && !source.startsWith("/wp:")) {
171058
+ return comment;
171059
+ }
171060
+ return `<!--${body.replace(/\\"/gu, '"')}-->`;
171061
+ });
171062
+ }
171063
+ function extractPatternSectionRolesFromAttributes(attributes, convention = {}) {
171064
+ const normalized = normalizeSectionRoleConvention(convention);
171065
+ const classRoles = getClassNameTokens(attributes).map((token) => normalized.roleClassNamePatternRegExp.exec(token)?.groups?.role).filter((role) => typeof role === "string");
171066
+ const attributeRoles = normalized.roleAttributePaths.flatMap((pathName) => collectStringValues(getAttributePathValue(attributes, pathName)));
171067
+ return uniqueValues([...classRoles, ...attributeRoles]);
171068
+ }
171069
+ function isValidPatternThumbnailUrl(value) {
171070
+ if (value.length === 0) {
171071
+ return false;
171072
+ }
171073
+ try {
171074
+ const url = new URL(value);
171075
+ return url.protocol === "http:" || url.protocol === "https:";
171076
+ } catch {
171077
+ return isSafeRelativePath(value);
171078
+ }
171079
+ }
171080
+ function resolvePatternCatalogContentFile(pattern) {
171081
+ return pattern.contentFile ?? pattern.file;
171082
+ }
171083
+ function createKnownSectionRoleSet(patterns) {
171084
+ return new Set(patterns.map((pattern) => pattern.sectionRole).filter((sectionRole) => typeof sectionRole === "string" && PATTERN_SECTION_ROLE_PATTERN.test(sectionRole)));
171085
+ }
171086
+ function validatePatternContentSectionRoles({
171087
+ content,
171088
+ contentFile,
171089
+ convention,
171090
+ knownSectionRoles,
171091
+ label,
171092
+ pattern
171093
+ }) {
171094
+ const diagnostics = [];
171095
+ const parsed = validateBlockPatternContentNesting(content, {
171096
+ allowExternalBlockNames: true,
171097
+ nesting: {},
171098
+ patternFile: contentFile
171099
+ });
171100
+ let matches = collectSectionRoleMatches(parsed.blocks, convention);
171101
+ const unescapedContent = unescapeSerializedBlockCommentJsonQuotes(content);
171102
+ if (unescapedContent !== content) {
171103
+ const unescapedParsed = validateBlockPatternContentNesting(unescapedContent, {
171104
+ allowExternalBlockNames: true,
171105
+ nesting: {},
171106
+ patternFile: contentFile
171107
+ });
171108
+ const unescapedMatches = collectSectionRoleMatches(unescapedParsed.blocks, convention);
171109
+ if (unescapedMatches.some((match) => match.roles.length > 0) || matches.length === 0) {
171110
+ matches = unescapedMatches;
171111
+ }
171112
+ }
171113
+ const locatedRoles = matches.flatMap((match) => match.roles.map((role) => ({
171114
+ blockPath: match.blockPath,
171115
+ role
171116
+ })));
171117
+ const invalidRoles = locatedRoles.filter(({ role }) => !PATTERN_SECTION_ROLE_PATTERN.test(role));
171118
+ for (const invalidRole of uniqueValues(invalidRoles.map(({ role }) => role))) {
171119
+ const paths = invalidRoles.filter(({ role }) => role === invalidRole).map(({ blockPath }) => blockPath);
171120
+ diagnostics.push(createPatternCatalogDiagnostic({
171121
+ code: "invalid-pattern-section-role-marker",
171122
+ message: `${label}: section role marker "${invalidRole}" in ${contentFile} must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens (${formatBlockPaths(paths)}).`,
171123
+ patternSlug: pattern.slug,
171124
+ severity: "error"
171125
+ }));
171126
+ }
171127
+ const validLocatedRoles = locatedRoles.filter(({ role }) => PATTERN_SECTION_ROLE_PATTERN.test(role));
171128
+ const validRoles = validLocatedRoles.map(({ role }) => role);
171129
+ const uniqueValidRoles = uniqueValues(validRoles);
171130
+ const unknownRoles = uniqueValidRoles.filter((role) => !knownSectionRoles.has(role));
171131
+ for (const unknownRole of unknownRoles) {
171132
+ const paths = validLocatedRoles.filter(({ role }) => role === unknownRole).map(({ blockPath }) => blockPath);
171133
+ diagnostics.push(createPatternCatalogDiagnostic({
171134
+ code: "unknown-pattern-section-role-marker",
171135
+ message: `${label}: section role marker "${unknownRole}" in ${contentFile} is not declared by any PATTERNS sectionRole (${formatBlockPaths(paths)}).`,
171136
+ patternSlug: pattern.slug,
171137
+ severity: "warning"
171138
+ }));
171139
+ }
171140
+ const scope = pattern.scope ?? "full";
171141
+ const expectedSectionRole = typeof pattern.sectionRole === "string" && PATTERN_SECTION_ROLE_PATTERN.test(pattern.sectionRole) ? pattern.sectionRole : undefined;
171142
+ if (scope === "section" && expectedSectionRole) {
171143
+ if (validRoles.length === 0) {
171144
+ diagnostics.push(createPatternCatalogDiagnostic({
171145
+ code: "missing-pattern-section-role-marker",
171146
+ message: `${label}: section-scoped pattern content in ${contentFile} must include section role marker "${expectedSectionRole}" using ${describeRoleMarkerConvention(convention)}.`,
171147
+ patternSlug: pattern.slug,
171148
+ severity: "error"
171149
+ }));
171150
+ } else if (!validRoles.includes(expectedSectionRole)) {
171151
+ diagnostics.push(createPatternCatalogDiagnostic({
171152
+ code: "mismatched-pattern-section-role",
171153
+ message: `${label}: manifest sectionRole "${expectedSectionRole}" was not found in ${contentFile}; found ${formatRoleList(uniqueValidRoles)}.`,
171154
+ patternSlug: pattern.slug,
171155
+ severity: "error"
171156
+ }));
171157
+ }
171158
+ }
171159
+ if (scope === "full" && convention.requireUniqueFullPatternRoles) {
171160
+ for (const role of uniqueValidRoles) {
171161
+ const paths = validLocatedRoles.filter((locatedRole) => locatedRole.role === role).map(({ blockPath }) => blockPath);
171162
+ if (paths.length <= 1) {
171163
+ continue;
171164
+ }
171165
+ diagnostics.push(createPatternCatalogDiagnostic({
171166
+ code: "duplicate-pattern-section-role-marker",
171167
+ message: `${label}: full pattern content in ${contentFile} repeats section role marker "${role}" (${formatBlockPaths(paths)}).`,
171168
+ patternSlug: pattern.slug,
171169
+ severity: "warning"
171170
+ }));
171171
+ }
171172
+ }
171173
+ return diagnostics;
171174
+ }
171175
+ function validatePatternCatalog(patterns, options = {}) {
171176
+ const diagnostics = [];
171177
+ const seenSlugs = new Map;
171178
+ let sectionRoleConvention = null;
171179
+ if (options.sectionRoleConvention !== false) {
171180
+ try {
171181
+ sectionRoleConvention = normalizeSectionRoleConvention(options.sectionRoleConvention);
171182
+ } catch (error) {
171183
+ diagnostics.push(createPatternCatalogDiagnostic({
171184
+ code: "invalid-pattern-section-role-convention",
171185
+ message: `sectionRoleConvention.roleClassNamePattern is invalid: ${error instanceof Error ? error.message : String(error)}`,
171186
+ severity: "error"
171187
+ }));
171188
+ }
171189
+ }
171190
+ const knownSectionRoles = createKnownSectionRoleSet(patterns);
171191
+ for (const [index, pattern] of patterns.entries()) {
171192
+ const label = pattern.slug || `PATTERNS[${index}]`;
171193
+ if (!PATTERN_SLUG_PATTERN.test(pattern.slug)) {
171194
+ diagnostics.push(createPatternCatalogDiagnostic({
171195
+ code: "invalid-pattern-slug",
171196
+ message: `${label}: slug must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens.`,
171197
+ patternSlug: pattern.slug,
171198
+ severity: "error"
171199
+ }));
171200
+ }
171201
+ const previousIndex = seenSlugs.get(pattern.slug);
171202
+ if (previousIndex !== undefined) {
171203
+ diagnostics.push(createPatternCatalogDiagnostic({
171204
+ code: "duplicate-pattern-slug",
171205
+ message: `${label}: duplicate slug already declared at PATTERNS[${previousIndex}].`,
171206
+ patternSlug: pattern.slug,
171207
+ severity: "error"
171208
+ }));
171209
+ } else {
171210
+ seenSlugs.set(pattern.slug, index);
171211
+ }
171212
+ const scope = pattern.scope ?? "full";
171213
+ if (!isPatternCatalogScope(scope)) {
171214
+ diagnostics.push(createPatternCatalogDiagnostic({
171215
+ code: "invalid-pattern-scope",
171216
+ message: `${label}: scope must be one of ${PATTERN_CATALOG_SCOPE_IDS.join(", ")}.`,
171217
+ patternSlug: pattern.slug,
171218
+ severity: "error"
171219
+ }));
171220
+ }
171221
+ if (scope === "section" && !pattern.sectionRole) {
171222
+ diagnostics.push(createPatternCatalogDiagnostic({
171223
+ code: "missing-pattern-section-role",
171224
+ message: `${label}: section-scoped patterns must declare sectionRole.`,
171225
+ patternSlug: pattern.slug,
171226
+ severity: "error"
171227
+ }));
171228
+ }
171229
+ if (pattern.sectionRole !== undefined && !PATTERN_SECTION_ROLE_PATTERN.test(pattern.sectionRole)) {
171230
+ diagnostics.push(createPatternCatalogDiagnostic({
171231
+ code: "invalid-pattern-section-role",
171232
+ message: `${label}: sectionRole must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens.`,
171233
+ patternSlug: pattern.slug,
171234
+ severity: "error"
171235
+ }));
171236
+ }
171237
+ for (const [tagIndex, tag] of (pattern.tags ?? []).entries()) {
171238
+ if (!PATTERN_TAG_PATTERN.test(tag)) {
171239
+ diagnostics.push(createPatternCatalogDiagnostic({
171240
+ code: "invalid-pattern-tag",
171241
+ message: `${label}: tags[${tagIndex}] must contain only lowercase letters, numbers, and hyphens.`,
171242
+ patternSlug: pattern.slug,
171243
+ severity: "error"
171244
+ }));
171245
+ }
171246
+ }
171247
+ if (pattern.thumbnailUrl !== undefined && !isValidPatternThumbnailUrl(pattern.thumbnailUrl)) {
171248
+ diagnostics.push(createPatternCatalogDiagnostic({
171249
+ code: "invalid-pattern-thumbnail-url",
171250
+ message: `${label}: thumbnailUrl must be an http(s) URL or safe relative project path.`,
171251
+ patternSlug: pattern.slug,
171252
+ severity: "error"
171253
+ }));
171254
+ }
171255
+ const contentFile = resolvePatternCatalogContentFile(pattern);
171256
+ if (!contentFile) {
171257
+ diagnostics.push(createPatternCatalogDiagnostic({
171258
+ code: "missing-pattern-content-file",
171259
+ message: `${label}: contentFile or legacy file must point at the pattern PHP file.`,
171260
+ patternSlug: pattern.slug,
171261
+ severity: "error"
171262
+ }));
171263
+ continue;
171264
+ }
171265
+ if (!isPatternContentFilePath(contentFile)) {
171266
+ diagnostics.push(createPatternCatalogDiagnostic({
171267
+ code: "invalid-pattern-content-file",
171268
+ message: `${label}: contentFile must be a safe relative project path directly under src/patterns/ or one nested directory under src/patterns/ and end in .php.`,
171269
+ patternSlug: pattern.slug,
171270
+ severity: "error"
171271
+ }));
171272
+ continue;
171273
+ }
171274
+ if (!options.projectDir) {
171275
+ continue;
171276
+ }
171277
+ const absoluteContentFile = path.join(options.projectDir, contentFile);
171278
+ if (!fs.existsSync(absoluteContentFile)) {
171279
+ diagnostics.push(createPatternCatalogDiagnostic({
171280
+ code: "missing-pattern-content-file",
171281
+ message: `${label}: missing pattern content file ${contentFile}.`,
171282
+ patternSlug: pattern.slug,
171283
+ severity: "error"
171284
+ }));
171285
+ continue;
171286
+ }
171287
+ if (sectionRoleConvention) {
171288
+ let content;
171289
+ try {
171290
+ content = fs.readFileSync(absoluteContentFile, "utf8");
171291
+ } catch (error) {
171292
+ diagnostics.push(createPatternCatalogDiagnostic({
171293
+ code: "invalid-pattern-content-file",
171294
+ message: `${label}: failed to read pattern content file ${contentFile}: ${error instanceof Error ? error.message : String(error)}.`,
171295
+ patternSlug: pattern.slug,
171296
+ severity: "error"
171297
+ }));
171298
+ continue;
171299
+ }
171300
+ diagnostics.push(...validatePatternContentSectionRoles({
171301
+ content,
171302
+ contentFile,
171303
+ convention: sectionRoleConvention,
171304
+ knownSectionRoles,
171305
+ label,
171306
+ pattern
171307
+ }));
171308
+ }
171309
+ }
171310
+ const warnings = diagnostics.filter((diagnostic) => diagnostic.severity === "warning");
171311
+ const errors = diagnostics.filter((diagnostic) => diagnostic.severity === "error");
171312
+ return {
171313
+ diagnostics,
171314
+ errors,
171315
+ warnings
171316
+ };
171317
+ }
171318
+ function formatPatternCatalogDiagnostics(diagnostics) {
171319
+ return diagnostics.map((diagnostic) => `- [${diagnostic.code}] ${diagnostic.message}`).join(`
171320
+ `);
171321
+ }
170924
171322
  // ../wp-typia-project-tools/src/runtime/cli-add-types.ts
170925
171323
  var REST_RESOURCE_METHOD_IDS = [
170926
171324
  "list",
@@ -171387,11 +171785,13 @@ function formatAddHelpText() {
171387
171785
  wp-typia add admin-view <name> [--source <rest-resource:slug|core-data:kind/name>] [--dry-run]
171388
171786
  wp-typia add block <name> [--template <${ADD_BLOCK_TEMPLATE_IDS.join("|")}>] [--external-layer-source <./path|github:owner/repo/path[#ref]|npm-package>] [--external-layer-id <layer-id>] [--inner-blocks-preset <freeform|ordered|horizontal|locked-structure>] [--alternate-render-targets <email,mjml,plain-text>] [--data-storage <post-meta|custom-table>] [--persistence-policy <authenticated|public>] [--dry-run]
171389
171787
  wp-typia add integration-env <name> [--wp-env] [--release-zip] [--service <none|docker-compose>] [--dry-run]
171390
- wp-typia add variation <name> --block <block-slug> [--dry-run]
171391
- wp-typia add style <name> --block <block-slug> [--dry-run]
171392
- wp-typia add transform <name> --from <namespace/block> --to <block-slug|namespace/block-slug> [--dry-run]
171393
- wp-typia add pattern <name> [--dry-run]
171394
- wp-typia add binding-source <name> [--block <block-slug|namespace/block-slug> --attribute <attribute>] [--dry-run]
171788
+ wp-typia add core-variation <block-name> <name> [--dry-run]
171789
+ wp-typia add core-variation <name> --block <namespace/block> [--dry-run]
171790
+ wp-typia add variation <name> --block <block-slug> [--dry-run]
171791
+ wp-typia add style <name> --block <block-slug> [--dry-run]
171792
+ wp-typia add transform <name> --from <namespace/block> --to <block-slug|namespace/block-slug> [--dry-run]
171793
+ wp-typia add pattern <name> [--scope <full|section>] [--section-role <role>] [--tags <tag,...>] [--thumbnail-url <url>] [--dry-run]
171794
+ wp-typia add binding-source <name> [--block <block-slug|namespace/block-slug> --attribute <attribute>] [--from-post-meta|--post-meta <post-meta> [--meta-path <field>]] [--dry-run]
171395
171795
  wp-typia add contract <name> [--type <ExportedTypeName>] [--dry-run]
171396
171796
  wp-typia add rest-resource <name> [--namespace <vendor/v1>] [--methods <${REST_RESOURCE_METHOD_IDS.join(",")}>] [--route-pattern <route-pattern>] [--permission-callback <callback>] [--controller-class <ClassName>] [--controller-extends <BaseClass>] [--dry-run]
171397
171797
  wp-typia add rest-resource <name> --manual [--namespace <vendor/v1>] [--method <GET|POST|PUT|PATCH|DELETE>] [--auth <public|authenticated|public-write-protected>] [--path <route-pattern>|--route-pattern <route-pattern>] [--permission-callback <callback>] [--controller-class <ClassName>] [--controller-extends <BaseClass>] [--query-type <Type>] [--body-type <Type>] [--response-type <Type>] [--secret-field <field>] [--secret-state-field|--secret-has-value-field <field>] [--secret-preserve-on-empty <true|false>] [--dry-run]
@@ -171405,6 +171805,7 @@ Notes:
171405
171805
  \`wp-typia add\` runs only inside official ${WORKSPACE_TEMPLATE_PACKAGE} workspaces scaffolded via \`wp-typia create <project-dir> --template workspace\`.
171406
171806
  Pass \`--dry-run\` to preview the workspace files that would change without writing them.
171407
171807
  Interactive add flows let you choose a template when \`--template\` is omitted; non-interactive runs default to \`basic\`.
171808
+ \`add core-variation\` registers editor-side variations for existing core or external blocks without generating block.json or Typia manifests.
171408
171809
  \`add admin-view\` scaffolds an opt-in DataViews-powered WordPress admin screen under \`src/admin-views/\`.
171409
171810
  Pass \`--source rest-resource:<slug>\` to reuse a list-capable REST resource.
171410
171811
  Pass \`--source core-data:postType/post\` or \`--source core-data:taxonomy/category\` to bind a WordPress-owned entity collection.
@@ -171416,8 +171817,8 @@ Notes:
171416
171817
  \`add variation\` targets an existing block slug from \`scripts/block-config.ts\`.
171417
171818
  \`add style\` registers a Block Styles option for an existing generated block.
171418
171819
  \`add transform\` adds a block-to-block transform into an existing generated block.
171419
- \`add pattern\` scaffolds a namespaced PHP pattern shell under \`src/patterns/\`.
171420
- \`add binding-source\` scaffolds shared PHP and editor registration under \`src/bindings/\`; pass \`--block\` and \`--attribute\` together to declare an end-to-end bindable attribute on an existing generated block.
171820
+ \`add pattern\` scaffolds a namespaced PHP pattern shell under \`src/patterns/full/\` or \`src/patterns/sections/\` and records typed catalog metadata in \`PATTERNS\`.
171821
+ \`add binding-source\` scaffolds shared PHP and editor registration under \`src/bindings/\`; pass \`--block\` and \`--attribute\` together to declare an end-to-end bindable attribute on an existing generated block. Pass \`--from-post-meta\` or \`--post-meta\` to generate a source backed by a typed post-meta contract; \`--meta-path\` selects one top-level field as the default binding arg.
171421
171822
  \`add contract\` registers a standalone TypeScript wire contract under \`src/contracts/\` and generates a stable JSON Schema artifact without creating PHP route glue.
171422
171823
  \`add rest-resource\` scaffolds plugin-level TypeScript REST contracts under \`src/rest/\` and PHP route glue under \`inc/rest/\`. Use \`--route-pattern\`, \`--permission-callback\`, \`--controller-class\`, and \`--controller-extends\` when an existing WordPress controller or permission model needs to own part of the generated route surface.
171423
171824
  Pass \`--manual\` with \`add rest-resource\` to track an external/provider REST route with typed schemas, OpenAPI, clients, and drift checks without generating PHP route/controller files. Manual routes may still declare \`--permission-callback\`, \`--controller-class\`, and \`--controller-extends\` as metadata for the route owner. Settings contracts can add \`--secret-field\` with \`--secret-preserve-on-empty\` metadata so generated schemas, clients, and admin forms treat blank secret submissions as preserve-by-default.
@@ -171507,10 +171908,10 @@ function resolveScaffoldIdentifiers({
171507
171908
  }
171508
171909
  // ../wp-typia-project-tools/src/runtime/cli-add-filesystem.ts
171509
171910
  import { promises as fsp2 } from "fs";
171510
- import path from "path";
171911
+ import path2 from "path";
171511
171912
  function getWorkspaceBootstrapPath(workspace) {
171512
171913
  const workspaceBaseName = workspace.packageName.split("/").pop() ?? workspace.packageName;
171513
- return path.join(workspace.projectDir, `${workspaceBaseName}.php`);
171914
+ return path2.join(workspace.projectDir, `${workspaceBaseName}.php`);
171514
171915
  }
171515
171916
  async function patchFile(filePath, transform) {
171516
171917
  const currentSource = await fsp2.readFile(filePath, "utf8");
@@ -171527,7 +171928,7 @@ async function restoreOptionalFile(filePath, source) {
171527
171928
  await fsp2.rm(filePath, { force: true });
171528
171929
  return;
171529
171930
  }
171530
- await fsp2.mkdir(path.dirname(filePath), { recursive: true });
171931
+ await fsp2.mkdir(path2.dirname(filePath), { recursive: true });
171531
171932
  await fsp2.writeFile(filePath, source, "utf8");
171532
171933
  }
171533
171934
  async function snapshotWorkspaceFiles(filePaths) {
@@ -171549,7 +171950,7 @@ async function rollbackWorkspaceMutation(snapshot) {
171549
171950
  }
171550
171951
  }
171551
171952
  // ../wp-typia-project-tools/src/runtime/cli-add-block-json.ts
171552
- import path2 from "path";
171953
+ import path3 from "path";
171553
171954
  import { parseScaffoldBlockMetadata } from "@wp-typia/block-runtime/blocks";
171554
171955
  function resolveWorkspaceBlock(inventory, blockSlug) {
171555
171956
  const block = inventory.blocks.find((entry) => entry.slug === blockSlug);
@@ -171559,10 +171960,10 @@ function resolveWorkspaceBlock(inventory, blockSlug) {
171559
171960
  return block;
171560
171961
  }
171561
171962
  async function readWorkspaceBlockJson(projectDir, blockSlug) {
171562
- const blockJsonPath = path2.join(projectDir, "src", "blocks", blockSlug, "block.json");
171963
+ const blockJsonPath = path3.join(projectDir, "src", "blocks", blockSlug, "block.json");
171563
171964
  const source = await readOptionalUtf8File(blockJsonPath);
171564
171965
  if (source === null) {
171565
- throw new Error(`Missing ${path2.relative(projectDir, blockJsonPath)} for workspace block "${blockSlug}".`);
171966
+ throw new Error(`Missing ${path3.relative(projectDir, blockJsonPath)} for workspace block "${blockSlug}".`);
171566
171967
  }
171567
171968
  let blockJson;
171568
171969
  try {
@@ -171571,7 +171972,7 @@ async function readWorkspaceBlockJson(projectDir, blockSlug) {
171571
171972
  filePath: blockJsonPath
171572
171973
  }));
171573
171974
  } catch (error) {
171574
- throw new Error(error instanceof Error ? `Failed to parse ${path2.relative(projectDir, blockJsonPath)}: ${error.message}` : `Failed to parse ${path2.relative(projectDir, blockJsonPath)}.`);
171975
+ throw new Error(error instanceof Error ? `Failed to parse ${path3.relative(projectDir, blockJsonPath)}: ${error.message}` : `Failed to parse ${path3.relative(projectDir, blockJsonPath)}.`);
171575
171976
  }
171576
171977
  return {
171577
171978
  blockJson,
@@ -171591,13 +171992,13 @@ function getMutableBlockHooks(blockJson, blockJsonRelativePath) {
171591
171992
  return blockHooks;
171592
171993
  }
171593
171994
  // ../wp-typia-project-tools/src/runtime/cli-add-collision.ts
171594
- import fs from "fs";
171595
- import path3 from "path";
171995
+ import fs2 from "fs";
171996
+ import path4 from "path";
171596
171997
  function assertScaffoldDoesNotExist(options) {
171597
171998
  for (const collision of options.filesystemCollisions) {
171598
- const targetPath = path3.join(options.projectDir, collision.relativePath);
171599
- if (fs.existsSync(targetPath)) {
171600
- throw new Error(`${collision.label} already exists at ${path3.relative(options.projectDir, targetPath)}. Choose a different name.`);
171999
+ const targetPath = path4.join(options.projectDir, collision.relativePath);
172000
+ if (fs2.existsSync(targetPath)) {
172001
+ throw new Error(`${collision.label} already exists at ${path4.relative(options.projectDir, targetPath)}. Choose a different name.`);
171601
172002
  }
171602
172003
  }
171603
172004
  if (options.inventoryCollision && options.inventoryCollision.entries.some(options.inventoryCollision.exists)) {
@@ -171623,7 +172024,7 @@ var VARIATION_COLLISION_DESCRIPTOR = {
171623
172024
  filesystemCollisions: [
171624
172025
  {
171625
172026
  label: "A variation",
171626
- relativePath: ({ blockSlug, slug }) => path3.join("src", "blocks", blockSlug, "variations", `${slug}.ts`)
172027
+ relativePath: ({ blockSlug, slug }) => path4.join("src", "blocks", blockSlug, "variations", `${slug}.ts`)
171627
172028
  }
171628
172029
  ],
171629
172030
  inventoryCollision: {
@@ -171636,7 +172037,7 @@ var BLOCK_STYLE_COLLISION_DESCRIPTOR = {
171636
172037
  filesystemCollisions: [
171637
172038
  {
171638
172039
  label: "A block style",
171639
- relativePath: ({ blockSlug, slug }) => path3.join("src", "blocks", blockSlug, "styles", `${slug}.ts`)
172040
+ relativePath: ({ blockSlug, slug }) => path4.join("src", "blocks", blockSlug, "styles", `${slug}.ts`)
171640
172041
  }
171641
172042
  ],
171642
172043
  inventoryCollision: {
@@ -171649,7 +172050,7 @@ var BLOCK_TRANSFORM_COLLISION_DESCRIPTOR = {
171649
172050
  filesystemCollisions: [
171650
172051
  {
171651
172052
  label: "A block transform",
171652
- relativePath: ({ blockSlug, slug }) => path3.join("src", "blocks", blockSlug, "transforms", `${slug}.ts`)
172053
+ relativePath: ({ blockSlug, slug }) => path4.join("src", "blocks", blockSlug, "transforms", `${slug}.ts`)
171653
172054
  }
171654
172055
  ],
171655
172056
  inventoryCollision: {
@@ -171662,7 +172063,15 @@ var PATTERN_COLLISION_DESCRIPTOR = {
171662
172063
  filesystemCollisions: [
171663
172064
  {
171664
172065
  label: "A pattern",
171665
- relativePath: ({ slug }) => path3.join("src", "patterns", `${slug}.php`)
172066
+ relativePath: ({ slug }) => path4.join("src", "patterns", `${slug}.php`)
172067
+ },
172068
+ {
172069
+ label: "A full pattern",
172070
+ relativePath: ({ slug }) => path4.join("src", "patterns", "full", `${slug}.php`)
172071
+ },
172072
+ {
172073
+ label: "A section pattern",
172074
+ relativePath: ({ slug }) => path4.join("src", "patterns", "sections", `${slug}.php`)
171666
172075
  }
171667
172076
  ],
171668
172077
  inventoryCollision: {
@@ -171675,7 +172084,7 @@ var BINDING_SOURCE_COLLISION_DESCRIPTOR = {
171675
172084
  filesystemCollisions: [
171676
172085
  {
171677
172086
  label: "A binding source",
171678
- relativePath: ({ slug }) => path3.join("src", "bindings", slug)
172087
+ relativePath: ({ slug }) => path4.join("src", "bindings", slug)
171679
172088
  }
171680
172089
  ],
171681
172090
  inventoryCollision: {
@@ -171688,11 +172097,11 @@ var REST_RESOURCE_COLLISION_DESCRIPTOR = {
171688
172097
  filesystemCollisions: [
171689
172098
  {
171690
172099
  label: "A REST resource",
171691
- relativePath: ({ slug }) => path3.join("src", "rest", slug)
172100
+ relativePath: ({ slug }) => path4.join("src", "rest", slug)
171692
172101
  },
171693
172102
  {
171694
172103
  label: "A REST resource bootstrap",
171695
- relativePath: ({ slug }) => path3.join("inc", "rest", `${slug}.php`)
172104
+ relativePath: ({ slug }) => path4.join("inc", "rest", `${slug}.php`)
171696
172105
  }
171697
172106
  ],
171698
172107
  inventoryCollision: {
@@ -171705,11 +172114,11 @@ var POST_META_COLLISION_DESCRIPTOR = {
171705
172114
  filesystemCollisions: [
171706
172115
  {
171707
172116
  label: "A post meta contract",
171708
- relativePath: ({ slug }) => path3.join("src", "post-meta", slug)
172117
+ relativePath: ({ slug }) => path4.join("src", "post-meta", slug)
171709
172118
  },
171710
172119
  {
171711
172120
  label: "A post meta bootstrap",
171712
- relativePath: ({ slug }) => path3.join("inc", "post-meta", `${slug}.php`)
172121
+ relativePath: ({ slug }) => path4.join("inc", "post-meta", `${slug}.php`)
171713
172122
  }
171714
172123
  ],
171715
172124
  inventoryCollision: {
@@ -171722,11 +172131,11 @@ var CONTRACT_COLLISION_DESCRIPTOR = {
171722
172131
  filesystemCollisions: [
171723
172132
  {
171724
172133
  label: "A standalone contract",
171725
- relativePath: ({ slug }) => path3.join("src", "contracts", `${slug}.ts`)
172134
+ relativePath: ({ slug }) => path4.join("src", "contracts", `${slug}.ts`)
171726
172135
  },
171727
172136
  {
171728
172137
  label: "A standalone contract schema",
171729
- relativePath: ({ slug }) => path3.join("src", "contracts", `${slug}.schema.json`)
172138
+ relativePath: ({ slug }) => path4.join("src", "contracts", `${slug}.schema.json`)
171730
172139
  }
171731
172140
  ],
171732
172141
  inventoryCollision: {
@@ -171739,11 +172148,11 @@ var ADMIN_VIEW_COLLISION_DESCRIPTOR = {
171739
172148
  filesystemCollisions: [
171740
172149
  {
171741
172150
  label: "An admin view",
171742
- relativePath: ({ slug }) => path3.join("src", "admin-views", slug)
172151
+ relativePath: ({ slug }) => path4.join("src", "admin-views", slug)
171743
172152
  },
171744
172153
  {
171745
172154
  label: "An admin view bootstrap",
171746
- relativePath: ({ slug }) => path3.join("inc", "admin-views", `${slug}.php`)
172155
+ relativePath: ({ slug }) => path4.join("inc", "admin-views", `${slug}.php`)
171747
172156
  }
171748
172157
  ],
171749
172158
  inventoryCollision: {
@@ -171756,11 +172165,11 @@ var ABILITY_COLLISION_DESCRIPTOR = {
171756
172165
  filesystemCollisions: [
171757
172166
  {
171758
172167
  label: "An ability scaffold",
171759
- relativePath: ({ slug }) => path3.join("src", "abilities", slug)
172168
+ relativePath: ({ slug }) => path4.join("src", "abilities", slug)
171760
172169
  },
171761
172170
  {
171762
172171
  label: "An ability bootstrap",
171763
- relativePath: ({ slug }) => path3.join("inc", "abilities", `${slug}.php`)
172172
+ relativePath: ({ slug }) => path4.join("inc", "abilities", `${slug}.php`)
171764
172173
  }
171765
172174
  ],
171766
172175
  inventoryCollision: {
@@ -171773,11 +172182,11 @@ var AI_FEATURE_COLLISION_DESCRIPTOR = {
171773
172182
  filesystemCollisions: [
171774
172183
  {
171775
172184
  label: "An AI feature",
171776
- relativePath: ({ slug }) => path3.join("src", "ai-features", slug)
172185
+ relativePath: ({ slug }) => path4.join("src", "ai-features", slug)
171777
172186
  },
171778
172187
  {
171779
172188
  label: "An AI feature bootstrap",
171780
- relativePath: ({ slug }) => path3.join("inc", "ai-features", `${slug}.php`)
172189
+ relativePath: ({ slug }) => path4.join("inc", "ai-features", `${slug}.php`)
171781
172190
  }
171782
172191
  ],
171783
172192
  inventoryCollision: {
@@ -171790,7 +172199,7 @@ var EDITOR_PLUGIN_COLLISION_DESCRIPTOR = {
171790
172199
  filesystemCollisions: [
171791
172200
  {
171792
172201
  label: "An editor plugin",
171793
- relativePath: ({ slug }) => path3.join("src", "editor-plugins", slug)
172202
+ relativePath: ({ slug }) => path4.join("src", "editor-plugins", slug)
171794
172203
  }
171795
172204
  ],
171796
172205
  inventoryCollision: {
@@ -171900,7 +172309,7 @@ function assertEditorPluginDoesNotExist(projectDir, editorPluginSlug, inventory)
171900
172309
  }
171901
172310
  // ../wp-typia-project-tools/src/runtime/workspace-inventory-read.ts
171902
172311
  import { readFileSync } from "fs";
171903
- import path4 from "path";
172312
+ import path5 from "path";
171904
172313
  import { readFile } from "fs/promises";
171905
172314
 
171906
172315
  // ../wp-typia-project-tools/src/runtime/workspace-inventory-parser.ts
@@ -172135,8 +172544,14 @@ export const BLOCK_TRANSFORMS: WorkspaceBlockTransformConfig[] = [
172135
172544
  var PATTERNS_INTERFACE_SECTION = `
172136
172545
 
172137
172546
  export interface WorkspacePatternConfig {
172138
- file: string;
172547
+ contentFile?: string;
172548
+ file?: string;
172549
+ scope?: 'full' | 'section';
172550
+ sectionRole?: string;
172139
172551
  slug: string;
172552
+ tags?: string[];
172553
+ thumbnailUrl?: string;
172554
+ title?: string;
172140
172555
  }
172141
172556
  `;
172142
172557
  var PATTERNS_CONST_SECTION = `
@@ -172151,6 +172566,8 @@ export interface WorkspaceBindingSourceConfig {
172151
172566
  attribute?: string;
172152
172567
  block?: string;
172153
172568
  editorFile: string;
172569
+ metaPath?: string;
172570
+ postMeta?: string;
172154
172571
  serverFile: string;
172155
172572
  slug: string;
172156
172573
  }
@@ -172450,8 +172867,14 @@ var INVENTORY_SECTIONS = [
172450
172867
  entry: defineInventoryEntryParser()({
172451
172868
  entryName: "PATTERNS",
172452
172869
  fields: [
172453
- { key: "file", required: true },
172454
- { key: "slug", required: true }
172870
+ { key: "contentFile" },
172871
+ { key: "file" },
172872
+ { key: "scope" },
172873
+ { key: "sectionRole" },
172874
+ { key: "slug", required: true },
172875
+ { key: "tags", kind: "stringArray" },
172876
+ { key: "thumbnailUrl" },
172877
+ { key: "title" }
172455
172878
  ]
172456
172879
  }),
172457
172880
  hasSectionKey: "hasPatternsSection"
@@ -172478,6 +172901,8 @@ var INVENTORY_SECTIONS = [
172478
172901
  { key: "attribute" },
172479
172902
  { key: "block" },
172480
172903
  { key: "editorFile", required: true },
172904
+ { key: "metaPath" },
172905
+ { key: "postMeta" },
172481
172906
  { key: "serverFile", required: true },
172482
172907
  { key: "slug", required: true }
172483
172908
  ]
@@ -172794,7 +173219,7 @@ function parseWorkspaceInventorySource(source) {
172794
173219
 
172795
173220
  // ../wp-typia-project-tools/src/runtime/workspace-inventory-read.ts
172796
173221
  function readWorkspaceInventory(projectDir) {
172797
- const blockConfigPath = path4.join(projectDir, "scripts", "block-config.ts");
173222
+ const blockConfigPath = path5.join(projectDir, "scripts", "block-config.ts");
172798
173223
  let source;
172799
173224
  try {
172800
173225
  source = readFileSync(blockConfigPath, "utf8");
@@ -172810,7 +173235,7 @@ function readWorkspaceInventory(projectDir) {
172810
173235
  };
172811
173236
  }
172812
173237
  async function readWorkspaceInventoryAsync(projectDir) {
172813
- const blockConfigPath = path4.join(projectDir, "scripts", "block-config.ts");
173238
+ const blockConfigPath = path5.join(projectDir, "scripts", "block-config.ts");
172814
173239
  let source;
172815
173240
  try {
172816
173241
  source = await readFile(blockConfigPath, "utf8");
@@ -172839,7 +173264,7 @@ async function getWorkspaceBlockSelectOptionsAsync(projectDir) {
172839
173264
  return toWorkspaceBlockSelectOptions((await readWorkspaceInventoryAsync(projectDir)).blocks);
172840
173265
  }
172841
173266
  // ../wp-typia-project-tools/src/runtime/workspace-inventory-mutations.ts
172842
- import path5 from "path";
173267
+ import path6 from "path";
172843
173268
  import { readFile as readFile2, writeFile } from "fs/promises";
172844
173269
 
172845
173270
  // ../wp-typia-project-tools/src/runtime/php-utils.ts
@@ -173337,8 +173762,21 @@ function updateWorkspaceInventorySource(source, options = {}) {
173337
173762
  nextSource = options.transformSource(nextSource);
173338
173763
  }
173339
173764
  nextSource = appendInventorySectionEntries(nextSource, options);
173765
+ for (const [fieldName, fieldSource] of [
173766
+ ["contentFile", "\tcontentFile?: string;"],
173767
+ ["file", "\tfile?: string;"],
173768
+ ["scope", "\tscope?: 'full' | 'section';"],
173769
+ ["sectionRole", "\tsectionRole?: string;"],
173770
+ ["tags", "\ttags?: string[];"],
173771
+ ["thumbnailUrl", "\tthumbnailUrl?: string;"],
173772
+ ["title", "\ttitle?: string;"]
173773
+ ]) {
173774
+ nextSource = upsertInterfaceField(nextSource, "WorkspacePatternConfig", fieldName, fieldSource);
173775
+ }
173340
173776
  nextSource = ensureInterfaceField(nextSource, "WorkspaceBindingSourceConfig", "attribute", "\tattribute?: string;");
173341
173777
  nextSource = ensureInterfaceField(nextSource, "WorkspaceBindingSourceConfig", "block", "\tblock?: string;");
173778
+ nextSource = ensureInterfaceField(nextSource, "WorkspaceBindingSourceConfig", "metaPath", "\tmetaPath?: string;");
173779
+ nextSource = ensureInterfaceField(nextSource, "WorkspaceBindingSourceConfig", "postMeta", "\tpostMeta?: string;");
173342
173780
  nextSource = ensureInterfaceField(nextSource, "WorkspaceAbilityConfig", "compatibility", WORKSPACE_COMPATIBILITY_CONFIG_FIELD);
173343
173781
  nextSource = normalizeInterfaceFieldBlock(nextSource, "WorkspaceAbilityConfig", "compatibility", WORKSPACE_COMPATIBILITY_CONFIG_FIELD, ["optionalFeatureIds: string[];", "requiredFeatureIds: string[];"]);
173344
173782
  nextSource = ensureInterfaceField(nextSource, "WorkspaceAiFeatureConfig", "compatibility", WORKSPACE_COMPATIBILITY_CONFIG_FIELD);
@@ -173366,13 +173804,13 @@ function updateWorkspaceInventorySource(source, options = {}) {
173366
173804
  return nextSource;
173367
173805
  }
173368
173806
  async function appendWorkspaceInventoryEntries(projectDir, options) {
173369
- const blockConfigPath = path5.join(projectDir, "scripts", "block-config.ts");
173807
+ const blockConfigPath = path6.join(projectDir, "scripts", "block-config.ts");
173370
173808
  const source = await readFile2(blockConfigPath, "utf8");
173371
173809
  const nextSource = updateWorkspaceInventorySource(source, options);
173372
173810
  if (nextSource !== source) {
173373
173811
  await writeFile(blockConfigPath, nextSource, "utf8");
173374
173812
  }
173375
173813
  }
173376
- export { toKebabCase, toSnakeCase, toPascalCase, toCamelCase, toSegmentPascalCase, toTitleCase, validateBlockSlug, validateNamespace, normalizeBlockSlug, resolveNonEmptyNormalizedBlockSlug, buildBlockCssClassName, buildFrontendCssClassName, resolveScaffoldIdentifiers, REST_RESOURCE_METHOD_IDS, MANUAL_REST_CONTRACT_HTTP_METHOD_IDS, MANUAL_REST_CONTRACT_AUTH_IDS, EDITOR_PLUGIN_SLOT_IDS, resolveEditorPluginSlotAlias, ADD_BLOCK_TEMPLATE_IDS, suggestAddBlockTemplateId, HOOKED_BLOCK_POSITION_SET, HOOKED_BLOCK_ANCHOR_PATTERN, REST_RESOURCE_NAMESPACE_PATTERN, assertValidGeneratedSlug, assertValidTypeScriptIdentifier, resolveRestResourceNamespace, assertValidPostMetaPostType, resolvePostMetaKey, assertValidRestResourceMethods, resolveOptionalPhpCallbackReference, resolveOptionalPhpClassReference, assertValidManualRestContractHttpMethod, assertValidManualRestContractAuth, isGeneratedRestResourceRoutePatternCompatible, collectRestRouteNamedCaptureNames, resolveManualRestContractPathPattern, resolveGeneratedRestResourceRoutePattern, assertValidHookedBlockPosition, buildWorkspacePhpPrefix, isAddBlockTemplateId, quoteTsString, assertValidHookAnchor, assertValidEditorPluginSlot, assertValidIntegrationEnvService, pathExists, readOptionalUtf8File, getNodeErrorCode, getOptionalNodeErrorCode, isFileNotFoundError, getWorkspaceBootstrapPath, patchFile, readOptionalFile, snapshotWorkspaceFiles, rollbackWorkspaceMutation, resolveWorkspaceBlock, readWorkspaceBlockJson, getMutableBlockHooks, assertVariationDoesNotExist, assertBlockStyleDoesNotExist, assertBlockTransformDoesNotExist, assertPatternDoesNotExist, assertBindingSourceDoesNotExist, assertRestResourceDoesNotExist, assertPostMetaDoesNotExist, assertContractDoesNotExist, assertAdminViewDoesNotExist, assertAbilityDoesNotExist, assertAiFeatureDoesNotExist, assertEditorPluginDoesNotExist, formatAddHelpText, require_typescript, getPropertyNameText, readWorkspaceInventory, readWorkspaceInventoryAsync, getWorkspaceBlockSelectOptions, getWorkspaceBlockSelectOptionsAsync, escapeRegex, quotePhpString, hasPhpFunctionDefinition, hasPhpFunctionCall, findPhpFunctionRange, replacePhpFunctionDefinition, updateWorkspaceInventorySource, appendWorkspaceInventoryEntries };
173814
+ export { toKebabCase, toSnakeCase, toPascalCase, toCamelCase, toSegmentPascalCase, toTitleCase, validateBlockSlug, validateNamespace, normalizeBlockSlug, resolveNonEmptyNormalizedBlockSlug, buildBlockCssClassName, buildFrontendCssClassName, resolveScaffoldIdentifiers, PATTERN_CATALOG_SCOPE_IDS, isValidPatternThumbnailUrl, resolvePatternCatalogContentFile, validatePatternCatalog, formatPatternCatalogDiagnostics, REST_RESOURCE_METHOD_IDS, MANUAL_REST_CONTRACT_HTTP_METHOD_IDS, MANUAL_REST_CONTRACT_AUTH_IDS, EDITOR_PLUGIN_SLOT_IDS, resolveEditorPluginSlotAlias, ADD_BLOCK_TEMPLATE_IDS, suggestAddBlockTemplateId, HOOKED_BLOCK_POSITION_SET, HOOKED_BLOCK_ANCHOR_PATTERN, REST_RESOURCE_NAMESPACE_PATTERN, assertValidGeneratedSlug, assertValidTypeScriptIdentifier, resolveRestResourceNamespace, assertValidPostMetaPostType, resolvePostMetaKey, assertValidRestResourceMethods, resolveOptionalPhpCallbackReference, resolveOptionalPhpClassReference, assertValidManualRestContractHttpMethod, assertValidManualRestContractAuth, isGeneratedRestResourceRoutePatternCompatible, collectRestRouteNamedCaptureNames, resolveManualRestContractPathPattern, resolveGeneratedRestResourceRoutePattern, assertValidHookedBlockPosition, buildWorkspacePhpPrefix, isAddBlockTemplateId, quoteTsString, assertValidHookAnchor, assertValidEditorPluginSlot, assertValidIntegrationEnvService, pathExists, readOptionalUtf8File, getNodeErrorCode, getOptionalNodeErrorCode, isFileNotFoundError, getWorkspaceBootstrapPath, patchFile, readOptionalFile, snapshotWorkspaceFiles, rollbackWorkspaceMutation, resolveWorkspaceBlock, readWorkspaceBlockJson, getMutableBlockHooks, assertVariationDoesNotExist, assertBlockStyleDoesNotExist, assertBlockTransformDoesNotExist, assertPatternDoesNotExist, assertBindingSourceDoesNotExist, assertRestResourceDoesNotExist, assertPostMetaDoesNotExist, assertContractDoesNotExist, assertAdminViewDoesNotExist, assertAbilityDoesNotExist, assertAiFeatureDoesNotExist, assertEditorPluginDoesNotExist, formatAddHelpText, require_typescript, getPropertyNameText, readWorkspaceInventory, readWorkspaceInventoryAsync, getWorkspaceBlockSelectOptions, getWorkspaceBlockSelectOptionsAsync, escapeRegex, quotePhpString, hasPhpFunctionDefinition, hasPhpFunctionCall, findPhpFunctionRange, replacePhpFunctionDefinition, updateWorkspaceInventorySource, appendWorkspaceInventoryEntries };
173377
173815
 
173378
- //# debugId=8DE6D8AE337ABB4664756E2164756E21
173816
+ //# debugId=7B77B39B1AF35AE264756E2164756E21