@html-validate/commitlint-config 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/commitlint.js +1078 -1182
  2. package/package.json +1 -1
@@ -18,14 +18,6 @@ var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? requir
18
18
  if (typeof require !== "undefined") return require.apply(this, arguments);
19
19
  throw Error('Dynamic require of "' + x2 + '" is not supported');
20
20
  });
21
- var __esm = (fn, res, err) => function __init() {
22
- if (err) throw err[0];
23
- try {
24
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
25
- } catch (e2) {
26
- throw err = [e2], e2;
27
- }
28
- };
29
21
  var __commonJS = (cb, mod) => function __require2() {
30
22
  try {
31
23
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -724,7 +716,7 @@ var require_sort = __commonJS({
724
716
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/sort.js"(exports, module) {
725
717
  "use strict";
726
718
  var compareBuild = require_compare_build();
727
- var sort = (list, loose) => list.sort((a2, b2) => compareBuild(a2, b2, loose));
719
+ var sort = (list2, loose) => list2.sort((a2, b2) => compareBuild(a2, b2, loose));
728
720
  module.exports = sort;
729
721
  }
730
722
  });
@@ -734,7 +726,7 @@ var require_rsort = __commonJS({
734
726
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/rsort.js"(exports, module) {
735
727
  "use strict";
736
728
  var compareBuild = require_compare_build();
737
- var rsort = (list, loose) => list.sort((a2, b2) => compareBuild(b2, a2, loose));
729
+ var rsort = (list2, loose) => list2.sort((a2, b2) => compareBuild(b2, a2, loose));
738
730
  module.exports = rsort;
739
731
  }
740
732
  });
@@ -2044,635 +2036,6 @@ var require_semver2 = __commonJS({
2044
2036
  }
2045
2037
  });
2046
2038
 
2047
- // node_modules/conventional-commits-parser/dist/types.js
2048
- var init_types = __esm({
2049
- "node_modules/conventional-commits-parser/dist/types.js"() {
2050
- }
2051
- });
2052
-
2053
- // node_modules/conventional-commits-parser/dist/regex.js
2054
- function escape2(string) {
2055
- return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2056
- }
2057
- function joinOr(parts) {
2058
- return parts.map((val) => typeof val === "string" ? escape2(val.trim()) : val.source).filter(Boolean).join("|");
2059
- }
2060
- function getNotesRegex(noteKeywords, notesPattern) {
2061
- if (!noteKeywords) {
2062
- return nomatchRegex;
2063
- }
2064
- const noteKeywordsSelection = joinOr(noteKeywords);
2065
- if (!notesPattern) {
2066
- return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
2067
- }
2068
- return notesPattern(noteKeywordsSelection);
2069
- }
2070
- function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
2071
- if (!issuePrefixes) {
2072
- return nomatchRegex;
2073
- }
2074
- const flags = issuePrefixesCaseSensitive ? "g" : "gi";
2075
- return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${joinOr(issuePrefixes)})([\\w-]+)(?=\\s|$|[,;)\\]])`, flags);
2076
- }
2077
- function getReferencesRegex(referenceActions) {
2078
- if (!referenceActions) {
2079
- return /()(.+)/gi;
2080
- }
2081
- const joinedKeywords = joinOr(referenceActions);
2082
- return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
2083
- }
2084
- function getParserRegexes(options = {}) {
2085
- const notes = getNotesRegex(options.noteKeywords, options.notesPattern);
2086
- const referenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive);
2087
- const references = getReferencesRegex(options.referenceActions);
2088
- return {
2089
- notes,
2090
- referenceParts,
2091
- references,
2092
- mentions: /@([\w-]+)/g,
2093
- url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
2094
- };
2095
- }
2096
- var nomatchRegex;
2097
- var init_regex = __esm({
2098
- "node_modules/conventional-commits-parser/dist/regex.js"() {
2099
- nomatchRegex = /(?!.*)/;
2100
- }
2101
- });
2102
-
2103
- // node_modules/conventional-commits-parser/dist/utils.js
2104
- function trimNewLines(input) {
2105
- const matches = input.match(/[^\r\n]/);
2106
- if (typeof matches?.index !== "number") {
2107
- return "";
2108
- }
2109
- const firstIndex = matches.index;
2110
- let lastIndex = input.length - 1;
2111
- while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
2112
- lastIndex--;
2113
- }
2114
- return input.substring(firstIndex, lastIndex + 1);
2115
- }
2116
- function appendLine(src, line) {
2117
- return src ? `${src}
2118
- ${line || ""}` : line || "";
2119
- }
2120
- function getCommentFilter(char) {
2121
- return char ? (line) => !line.startsWith(char) : () => true;
2122
- }
2123
- function truncateToScissor(lines, commentChar) {
2124
- const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR}`);
2125
- if (scissorIndex === -1) {
2126
- return lines;
2127
- }
2128
- return lines.slice(0, scissorIndex);
2129
- }
2130
- function gpgFilter(line) {
2131
- return !line.match(/^\s*gpg:/);
2132
- }
2133
- function assignMatchedCorrespondence(target, matches, correspondence) {
2134
- const { groups } = matches;
2135
- for (let i2 = 0, len = correspondence.length, key; i2 < len; i2++) {
2136
- key = correspondence[i2];
2137
- target[key] = (groups ? groups[key] : matches[i2 + 1]) || null;
2138
- }
2139
- return target;
2140
- }
2141
- var SCISSOR;
2142
- var init_utils = __esm({
2143
- "node_modules/conventional-commits-parser/dist/utils.js"() {
2144
- SCISSOR = "------------------------ >8 ------------------------";
2145
- }
2146
- });
2147
-
2148
- // node_modules/conventional-commits-parser/dist/options.js
2149
- var defaultOptions;
2150
- var init_options = __esm({
2151
- "node_modules/conventional-commits-parser/dist/options.js"() {
2152
- defaultOptions = {
2153
- noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
2154
- issuePrefixes: ["#"],
2155
- referenceActions: [
2156
- "close",
2157
- "closes",
2158
- "closed",
2159
- "fix",
2160
- "fixes",
2161
- "fixed",
2162
- "resolve",
2163
- "resolves",
2164
- "resolved"
2165
- ],
2166
- headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
2167
- headerCorrespondence: [
2168
- "type",
2169
- "scope",
2170
- "subject"
2171
- ],
2172
- revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
2173
- revertCorrespondence: ["header", "hash"],
2174
- fieldPattern: /^-(.*?)-$/
2175
- };
2176
- }
2177
- });
2178
-
2179
- // node_modules/conventional-commits-parser/dist/CommitParser.js
2180
- function createCommitObject(initialData = {}) {
2181
- return {
2182
- merge: null,
2183
- revert: null,
2184
- header: null,
2185
- body: null,
2186
- footer: null,
2187
- notes: [],
2188
- mentions: [],
2189
- references: [],
2190
- ...initialData
2191
- };
2192
- }
2193
- var CommitParser;
2194
- var init_CommitParser = __esm({
2195
- "node_modules/conventional-commits-parser/dist/CommitParser.js"() {
2196
- init_regex();
2197
- init_utils();
2198
- init_options();
2199
- CommitParser = class {
2200
- options;
2201
- regexes;
2202
- lines = [];
2203
- lineIndex = 0;
2204
- commit = createCommitObject();
2205
- constructor(options = {}) {
2206
- this.options = {
2207
- ...defaultOptions,
2208
- ...options
2209
- };
2210
- this.regexes = getParserRegexes(this.options);
2211
- }
2212
- currentLine() {
2213
- return this.lines[this.lineIndex];
2214
- }
2215
- nextLine() {
2216
- return this.lines[this.lineIndex++];
2217
- }
2218
- isLineAvailable() {
2219
- return this.lineIndex < this.lines.length;
2220
- }
2221
- parseReference(input, action) {
2222
- const { regexes } = this;
2223
- if (regexes.url.test(input)) {
2224
- return null;
2225
- }
2226
- const matches = regexes.referenceParts.exec(input);
2227
- if (!matches) {
2228
- return null;
2229
- }
2230
- let [raw, repository = null, prefix2, issue] = matches;
2231
- let owner = null;
2232
- if (repository) {
2233
- const slashIndex = repository.indexOf("/");
2234
- if (slashIndex !== -1) {
2235
- owner = repository.slice(0, slashIndex);
2236
- repository = repository.slice(slashIndex + 1);
2237
- }
2238
- }
2239
- return {
2240
- raw,
2241
- action,
2242
- owner,
2243
- repository,
2244
- prefix: prefix2,
2245
- issue
2246
- };
2247
- }
2248
- parseReferences(input) {
2249
- const { regexes } = this;
2250
- const regex2 = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
2251
- const references = [];
2252
- let matches;
2253
- let action;
2254
- let sentence;
2255
- let reference;
2256
- while (true) {
2257
- matches = regex2.exec(input);
2258
- if (!matches) {
2259
- break;
2260
- }
2261
- action = matches[1] || null;
2262
- sentence = matches[2] || "";
2263
- while (true) {
2264
- reference = this.parseReference(sentence, action);
2265
- if (!reference) {
2266
- break;
2267
- }
2268
- references.push(reference);
2269
- }
2270
- }
2271
- return references;
2272
- }
2273
- skipEmptyLines() {
2274
- let line = this.currentLine();
2275
- while (line !== void 0 && !line.trim()) {
2276
- this.nextLine();
2277
- line = this.currentLine();
2278
- }
2279
- }
2280
- parseMerge() {
2281
- const { commit, options } = this;
2282
- const correspondence = options.mergeCorrespondence || [];
2283
- const merge2 = this.currentLine();
2284
- const matches = merge2 && options.mergePattern ? merge2.match(options.mergePattern) : null;
2285
- if (matches) {
2286
- this.nextLine();
2287
- commit.merge = matches[0] || null;
2288
- assignMatchedCorrespondence(commit, matches, correspondence);
2289
- return true;
2290
- }
2291
- return false;
2292
- }
2293
- parseHeader(isMergeCommit) {
2294
- if (isMergeCommit) {
2295
- this.skipEmptyLines();
2296
- }
2297
- const { commit, options } = this;
2298
- const correspondence = options.headerCorrespondence || [];
2299
- const header = commit.header ?? this.nextLine();
2300
- let matches = null;
2301
- if (header) {
2302
- if (options.breakingHeaderPattern) {
2303
- matches = header.match(options.breakingHeaderPattern);
2304
- }
2305
- if (!matches && options.headerPattern) {
2306
- matches = header.match(options.headerPattern);
2307
- }
2308
- }
2309
- if (header) {
2310
- commit.header = header;
2311
- }
2312
- if (matches) {
2313
- assignMatchedCorrespondence(commit, matches, correspondence);
2314
- }
2315
- }
2316
- parseMeta() {
2317
- const { options, commit } = this;
2318
- if (!options.fieldPattern || !this.isLineAvailable()) {
2319
- return false;
2320
- }
2321
- let matches;
2322
- let field = null;
2323
- let parsed = false;
2324
- while (this.isLineAvailable()) {
2325
- matches = this.currentLine().match(options.fieldPattern);
2326
- if (matches) {
2327
- field = matches[1] || null;
2328
- this.nextLine();
2329
- continue;
2330
- }
2331
- if (field) {
2332
- parsed = true;
2333
- commit[field] = appendLine(commit[field], this.currentLine());
2334
- this.nextLine();
2335
- } else {
2336
- break;
2337
- }
2338
- }
2339
- return parsed;
2340
- }
2341
- parseNotes() {
2342
- const { regexes, commit } = this;
2343
- if (!this.isLineAvailable()) {
2344
- return false;
2345
- }
2346
- const matches = this.currentLine().match(regexes.notes);
2347
- let references = [];
2348
- if (matches) {
2349
- const note = {
2350
- title: matches[1],
2351
- text: matches[2]
2352
- };
2353
- commit.notes.push(note);
2354
- commit.footer = appendLine(commit.footer, this.currentLine());
2355
- this.nextLine();
2356
- while (this.isLineAvailable()) {
2357
- if (this.parseMeta()) {
2358
- return true;
2359
- }
2360
- if (this.parseNotes()) {
2361
- return true;
2362
- }
2363
- references = this.parseReferences(this.currentLine());
2364
- if (references.length) {
2365
- commit.references.push(...references);
2366
- } else {
2367
- note.text = appendLine(note.text, this.currentLine());
2368
- }
2369
- commit.footer = appendLine(commit.footer, this.currentLine());
2370
- this.nextLine();
2371
- if (references.length) {
2372
- break;
2373
- }
2374
- }
2375
- return true;
2376
- }
2377
- return false;
2378
- }
2379
- parseBodyAndFooter(isBody) {
2380
- const { commit } = this;
2381
- if (!this.isLineAvailable()) {
2382
- return isBody;
2383
- }
2384
- const references = this.parseReferences(this.currentLine());
2385
- const isStillBody = !references.length && isBody;
2386
- if (isStillBody) {
2387
- commit.body = appendLine(commit.body, this.currentLine());
2388
- } else {
2389
- commit.references.push(...references);
2390
- commit.footer = appendLine(commit.footer, this.currentLine());
2391
- }
2392
- this.nextLine();
2393
- return isStillBody;
2394
- }
2395
- parseBreakingHeader() {
2396
- const { commit, options } = this;
2397
- if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
2398
- return;
2399
- }
2400
- const matches = commit.header.match(options.breakingHeaderPattern);
2401
- if (matches) {
2402
- commit.notes.push({
2403
- title: "BREAKING CHANGE",
2404
- text: matches[3]
2405
- });
2406
- }
2407
- }
2408
- parseMentions(input) {
2409
- const { commit, regexes } = this;
2410
- let matches;
2411
- for (; ; ) {
2412
- matches = regexes.mentions.exec(input);
2413
- if (!matches) {
2414
- break;
2415
- }
2416
- commit.mentions.push(matches[1]);
2417
- }
2418
- }
2419
- parseRevert(input) {
2420
- const { commit, options } = this;
2421
- const correspondence = options.revertCorrespondence || [];
2422
- const matches = options.revertPattern ? input.match(options.revertPattern) : null;
2423
- if (matches) {
2424
- commit.revert = assignMatchedCorrespondence({}, matches, correspondence);
2425
- }
2426
- }
2427
- cleanupCommit() {
2428
- const { commit } = this;
2429
- if (commit.body) {
2430
- commit.body = trimNewLines(commit.body);
2431
- }
2432
- if (commit.footer) {
2433
- commit.footer = trimNewLines(commit.footer);
2434
- }
2435
- commit.notes.forEach((note) => {
2436
- note.text = trimNewLines(note.text);
2437
- });
2438
- const referencesSet = /* @__PURE__ */ new Set();
2439
- commit.references = commit.references.filter((reference) => {
2440
- const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
2441
- const ok = !referencesSet.has(uid);
2442
- if (ok) {
2443
- referencesSet.add(uid);
2444
- }
2445
- return ok;
2446
- });
2447
- }
2448
- /**
2449
- * Parse commit message string into an object.
2450
- * @param input - Commit message string.
2451
- * @returns Commit object.
2452
- */
2453
- parse(input) {
2454
- if (!input.trim()) {
2455
- throw new TypeError("Expected a raw commit");
2456
- }
2457
- const { commentChar } = this.options;
2458
- const commentFilter = getCommentFilter(commentChar);
2459
- const rawLines = trimNewLines(input).split(/\r?\n/);
2460
- const lines = commentChar ? truncateToScissor(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter(line)) : rawLines.filter((line) => gpgFilter(line));
2461
- const commit = createCommitObject();
2462
- this.lines = lines;
2463
- this.lineIndex = 0;
2464
- this.commit = commit;
2465
- const isMergeCommit = this.parseMerge();
2466
- this.parseHeader(isMergeCommit);
2467
- if (commit.header) {
2468
- commit.references = this.parseReferences(commit.header);
2469
- }
2470
- let isBody = true;
2471
- while (this.isLineAvailable()) {
2472
- this.parseMeta();
2473
- if (this.parseNotes()) {
2474
- isBody = false;
2475
- }
2476
- if (!this.parseBodyAndFooter(isBody)) {
2477
- isBody = false;
2478
- }
2479
- }
2480
- this.parseBreakingHeader();
2481
- this.parseMentions(input);
2482
- this.parseRevert(input);
2483
- this.cleanupCommit();
2484
- return commit;
2485
- }
2486
- };
2487
- }
2488
- });
2489
-
2490
- // node_modules/conventional-commits-parser/dist/stream.js
2491
- var init_stream = __esm({
2492
- "node_modules/conventional-commits-parser/dist/stream.js"() {
2493
- init_CommitParser();
2494
- }
2495
- });
2496
-
2497
- // node_modules/conventional-commits-parser/dist/index.js
2498
- var init_dist = __esm({
2499
- "node_modules/conventional-commits-parser/dist/index.js"() {
2500
- init_types();
2501
- init_CommitParser();
2502
- init_stream();
2503
- }
2504
- });
2505
-
2506
- // node_modules/array-ify/index.js
2507
- var require_array_ify = __commonJS({
2508
- "node_modules/array-ify/index.js"(exports, module) {
2509
- "use strict";
2510
- module.exports = function(val) {
2511
- return Array.isArray(val) ? val : [val];
2512
- };
2513
- }
2514
- });
2515
-
2516
- // node_modules/is-obj/index.js
2517
- var require_is_obj = __commonJS({
2518
- "node_modules/is-obj/index.js"(exports, module) {
2519
- "use strict";
2520
- module.exports = (value) => {
2521
- const type = typeof value;
2522
- return value !== null && (type === "object" || type === "function");
2523
- };
2524
- }
2525
- });
2526
-
2527
- // node_modules/dot-prop/index.js
2528
- var require_dot_prop = __commonJS({
2529
- "node_modules/dot-prop/index.js"(exports, module) {
2530
- "use strict";
2531
- var isObj = require_is_obj();
2532
- var disallowedKeys = [
2533
- "__proto__",
2534
- "prototype",
2535
- "constructor"
2536
- ];
2537
- var isValidPath = (pathSegments) => !pathSegments.some((segment) => disallowedKeys.includes(segment));
2538
- function getPathSegments(path9) {
2539
- const pathArray = path9.split(".");
2540
- const parts = [];
2541
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2542
- let p2 = pathArray[i2];
2543
- while (p2[p2.length - 1] === "\\" && pathArray[i2 + 1] !== void 0) {
2544
- p2 = p2.slice(0, -1) + ".";
2545
- p2 += pathArray[++i2];
2546
- }
2547
- parts.push(p2);
2548
- }
2549
- if (!isValidPath(parts)) {
2550
- return [];
2551
- }
2552
- return parts;
2553
- }
2554
- module.exports = {
2555
- get(object, path9, value) {
2556
- if (!isObj(object) || typeof path9 !== "string") {
2557
- return value === void 0 ? object : value;
2558
- }
2559
- const pathArray = getPathSegments(path9);
2560
- if (pathArray.length === 0) {
2561
- return;
2562
- }
2563
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2564
- if (!Object.prototype.propertyIsEnumerable.call(object, pathArray[i2])) {
2565
- return value;
2566
- }
2567
- object = object[pathArray[i2]];
2568
- if (object === void 0 || object === null) {
2569
- if (i2 !== pathArray.length - 1) {
2570
- return value;
2571
- }
2572
- break;
2573
- }
2574
- }
2575
- return object;
2576
- },
2577
- set(object, path9, value) {
2578
- if (!isObj(object) || typeof path9 !== "string") {
2579
- return object;
2580
- }
2581
- const root = object;
2582
- const pathArray = getPathSegments(path9);
2583
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2584
- const p2 = pathArray[i2];
2585
- if (!isObj(object[p2])) {
2586
- object[p2] = {};
2587
- }
2588
- if (i2 === pathArray.length - 1) {
2589
- object[p2] = value;
2590
- }
2591
- object = object[p2];
2592
- }
2593
- return root;
2594
- },
2595
- delete(object, path9) {
2596
- if (!isObj(object) || typeof path9 !== "string") {
2597
- return false;
2598
- }
2599
- const pathArray = getPathSegments(path9);
2600
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2601
- const p2 = pathArray[i2];
2602
- if (i2 === pathArray.length - 1) {
2603
- delete object[p2];
2604
- return true;
2605
- }
2606
- object = object[p2];
2607
- if (!isObj(object)) {
2608
- return false;
2609
- }
2610
- }
2611
- },
2612
- has(object, path9) {
2613
- if (!isObj(object) || typeof path9 !== "string") {
2614
- return false;
2615
- }
2616
- const pathArray = getPathSegments(path9);
2617
- if (pathArray.length === 0) {
2618
- return false;
2619
- }
2620
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2621
- if (isObj(object)) {
2622
- if (!(pathArray[i2] in object)) {
2623
- return false;
2624
- }
2625
- object = object[pathArray[i2]];
2626
- } else {
2627
- return false;
2628
- }
2629
- }
2630
- return true;
2631
- }
2632
- };
2633
- }
2634
- });
2635
-
2636
- // node_modules/compare-func/index.js
2637
- var require_compare_func = __commonJS({
2638
- "node_modules/compare-func/index.js"(exports, module) {
2639
- "use strict";
2640
- var arrayify = require_array_ify();
2641
- var dotPropGet = require_dot_prop().get;
2642
- function compareFunc2(prop) {
2643
- return function(a2, b2) {
2644
- var ret = 0;
2645
- arrayify(prop).some(function(el) {
2646
- var x2;
2647
- var y2;
2648
- if (typeof el === "function") {
2649
- x2 = el(a2);
2650
- y2 = el(b2);
2651
- } else if (typeof el === "string") {
2652
- x2 = dotPropGet(a2, el);
2653
- y2 = dotPropGet(b2, el);
2654
- } else {
2655
- x2 = a2;
2656
- y2 = b2;
2657
- }
2658
- if (x2 === y2) {
2659
- ret = 0;
2660
- return;
2661
- }
2662
- if (typeof x2 === "string" && typeof y2 === "string") {
2663
- ret = x2.localeCompare(y2);
2664
- return ret !== 0;
2665
- }
2666
- ret = x2 < y2 ? -1 : 1;
2667
- return true;
2668
- });
2669
- return ret;
2670
- };
2671
- }
2672
- module.exports = compareFunc2;
2673
- }
2674
- });
2675
-
2676
2039
  // node_modules/ajv/dist/compile/codegen/code.js
2677
2040
  var require_code = __commonJS({
2678
2041
  "node_modules/ajv/dist/compile/codegen/code.js"(exports) {
@@ -5451,8 +4814,8 @@ var require_validate = __commonJS({
5451
4814
  return data;
5452
4815
  }
5453
4816
  let expr = data;
5454
- const segments = jsonPointer.split("/");
5455
- for (const segment of segments) {
4817
+ const segments2 = jsonPointer.split("/");
4818
+ for (const segment of segments2) {
5456
4819
  if (segment) {
5457
4820
  data = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;
5458
4821
  expr = (0, codegen_1._)`${expr} && ${data}`;
@@ -6961,9 +6324,9 @@ var require_core = __commonJS({
6961
6324
  const rules = this.RULES.all;
6962
6325
  metaSchema = JSON.parse(JSON.stringify(metaSchema));
6963
6326
  for (const jsonPointer of keywordsJsonPointers) {
6964
- const segments = jsonPointer.split("/").slice(1);
6327
+ const segments2 = jsonPointer.split("/").slice(1);
6965
6328
  let keywords = metaSchema;
6966
- for (const seg of segments)
6329
+ for (const seg of segments2)
6967
6330
  keywords = keywords[seg];
6968
6331
  for (const key in rules) {
6969
6332
  const rule = rules[key];
@@ -9776,10 +9139,10 @@ var require_json_parse_even_better_errors = __commonJS({
9776
9139
  const parseText = stripBOM(txt);
9777
9140
  context = context || 20;
9778
9141
  try {
9779
- const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [, "", ""];
9142
+ const [, newline2 = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [, "", ""];
9780
9143
  const result = JSON.parse(parseText, reviver);
9781
9144
  if (result && typeof result === "object") {
9782
- result[kNewline] = newline;
9145
+ result[kNewline] = newline2;
9783
9146
  result[kIndent] = indent;
9784
9147
  }
9785
9148
  return result;
@@ -10483,7 +9846,7 @@ var require_exception = __commonJS({
10483
9846
  }
10484
9847
  YAMLException.prototype = Object.create(Error.prototype);
10485
9848
  YAMLException.prototype.constructor = YAMLException;
10486
- YAMLException.prototype.toString = function toString2(compact) {
9849
+ YAMLException.prototype.toString = function toString3(compact) {
10487
9850
  return this.name + ": " + formatError(this, compact);
10488
9851
  };
10489
9852
  module.exports = YAMLException;
@@ -13568,34 +12931,34 @@ var require_util2 = __commonJS({
13568
12931
  }
13569
12932
  exports.urlParse = urlParse;
13570
12933
  function urlGenerate(aParsedUrl) {
13571
- var url = "";
12934
+ var url2 = "";
13572
12935
  if (aParsedUrl.scheme) {
13573
- url += aParsedUrl.scheme + ":";
12936
+ url2 += aParsedUrl.scheme + ":";
13574
12937
  }
13575
- url += "//";
12938
+ url2 += "//";
13576
12939
  if (aParsedUrl.auth) {
13577
- url += aParsedUrl.auth + "@";
12940
+ url2 += aParsedUrl.auth + "@";
13578
12941
  }
13579
12942
  if (aParsedUrl.host) {
13580
- url += aParsedUrl.host;
12943
+ url2 += aParsedUrl.host;
13581
12944
  }
13582
12945
  if (aParsedUrl.port) {
13583
- url += ":" + aParsedUrl.port;
12946
+ url2 += ":" + aParsedUrl.port;
13584
12947
  }
13585
12948
  if (aParsedUrl.path) {
13586
- url += aParsedUrl.path;
12949
+ url2 += aParsedUrl.path;
13587
12950
  }
13588
- return url;
12951
+ return url2;
13589
12952
  }
13590
12953
  exports.urlGenerate = urlGenerate;
13591
12954
  function normalize2(aPath) {
13592
12955
  var path9 = aPath;
13593
- var url = urlParse(aPath);
13594
- if (url) {
13595
- if (!url.path) {
12956
+ var url2 = urlParse(aPath);
12957
+ if (url2) {
12958
+ if (!url2.path) {
13596
12959
  return aPath;
13597
12960
  }
13598
- path9 = url.path;
12961
+ path9 = url2.path;
13599
12962
  }
13600
12963
  var isAbsolute = exports.isAbsolute(path9);
13601
12964
  var parts = path9.split(/\/+/);
@@ -13619,9 +12982,9 @@ var require_util2 = __commonJS({
13619
12982
  if (path9 === "") {
13620
12983
  path9 = isAbsolute ? "/" : ".";
13621
12984
  }
13622
- if (url) {
13623
- url.path = path9;
13624
- return urlGenerate(url);
12985
+ if (url2) {
12986
+ url2.path = path9;
12987
+ return urlGenerate(url2);
13625
12988
  }
13626
12989
  return path9;
13627
12990
  }
@@ -14699,13 +14062,13 @@ var require_source_map_consumer = __commonJS({
14699
14062
  if (this.sourceRoot != null) {
14700
14063
  relativeSource = util3.relative(this.sourceRoot, relativeSource);
14701
14064
  }
14702
- var url;
14703
- if (this.sourceRoot != null && (url = util3.urlParse(this.sourceRoot))) {
14065
+ var url2;
14066
+ if (this.sourceRoot != null && (url2 = util3.urlParse(this.sourceRoot))) {
14704
14067
  var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
14705
- if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
14068
+ if (url2.scheme == "file" && this._sources.has(fileUriAbsPath)) {
14706
14069
  return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
14707
14070
  }
14708
- if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
14071
+ if ((!url2.path || url2.path == "/") && this._sources.has("/" + relativeSource)) {
14709
14072
  return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
14710
14073
  }
14711
14074
  }
@@ -15193,10 +14556,10 @@ var require_source_map = __commonJS({
15193
14556
  // node_modules/buffer-from/index.js
15194
14557
  var require_buffer_from = __commonJS({
15195
14558
  "node_modules/buffer-from/index.js"(exports, module) {
15196
- var toString2 = Object.prototype.toString;
14559
+ var toString3 = Object.prototype.toString;
15197
14560
  var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function";
15198
14561
  function isArrayBuffer(input) {
15199
- return toString2.call(input).slice(8, -1) === "ArrayBuffer";
14562
+ return toString3.call(input).slice(8, -1) === "ArrayBuffer";
15200
14563
  }
15201
14564
  function fromArrayBuffer(obj, byteOffset, length) {
15202
14565
  byteOffset >>>= 0;
@@ -15272,10 +14635,10 @@ var require_source_map_support = __commonJS({
15272
14635
  function hasGlobalProcessEventEmitter() {
15273
14636
  return typeof process === "object" && process !== null && typeof process.on === "function";
15274
14637
  }
15275
- function handlerExec(list) {
14638
+ function handlerExec(list2) {
15276
14639
  return function(arg) {
15277
- for (var i2 = 0; i2 < list.length; i2++) {
15278
- var ret = list[i2](arg);
14640
+ for (var i2 = 0; i2 < list2.length; i2++) {
14641
+ var ret = list2[i2](arg);
15279
14642
  if (ret) {
15280
14643
  return ret;
15281
14644
  }
@@ -15318,17 +14681,17 @@ var require_source_map_support = __commonJS({
15318
14681
  }
15319
14682
  return fileContentsCache[path10] = contents;
15320
14683
  });
15321
- function supportRelativeURL(file, url) {
15322
- if (!file) return url;
14684
+ function supportRelativeURL(file, url2) {
14685
+ if (!file) return url2;
15323
14686
  var dir = path9.dirname(file);
15324
14687
  var match = /^\w+:\/\/[^\/]*/.exec(dir);
15325
14688
  var protocol = match ? match[0] : "";
15326
14689
  var startPath = dir.slice(protocol.length);
15327
14690
  if (protocol && /^\/\w\:/.test(startPath)) {
15328
14691
  protocol += "/";
15329
- return protocol + path9.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
14692
+ return protocol + path9.resolve(dir.slice(protocol.length), url2).replace(/\\/g, "/");
15330
14693
  }
15331
- return protocol + path9.resolve(dir.slice(protocol.length), url);
14694
+ return protocol + path9.resolve(dir.slice(protocol.length), url2);
15332
14695
  }
15333
14696
  function retrieveSourceMapURL(source) {
15334
14697
  var fileData;
@@ -15386,8 +14749,8 @@ var require_source_map_support = __commonJS({
15386
14749
  sourceMap.map.sources.forEach(function(source, i2) {
15387
14750
  var contents = sourceMap.map.sourcesContent[i2];
15388
14751
  if (contents) {
15389
- var url = supportRelativeURL(sourceMap.url, source);
15390
- fileContentsCache[url] = contents;
14752
+ var url2 = supportRelativeURL(sourceMap.url, source);
14753
+ fileContentsCache[url2] = contents;
15391
14754
  }
15392
14755
  });
15393
14756
  }
@@ -23620,7 +22983,7 @@ ${lanes.join("\n")}
23620
22983
  const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2);
23621
22984
  const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2);
23622
22985
  return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options);
23623
- function createDirectoryWatcher(dirName, options, callback, link) {
22986
+ function createDirectoryWatcher(dirName, options, callback, link2) {
23624
22987
  const dirPath = toCanonicalFilePath(dirName);
23625
22988
  let directoryWatcher = cache.get(dirPath);
23626
22989
  if (directoryWatcher) {
@@ -23651,7 +23014,7 @@ ${lanes.join("\n")}
23651
23014
  cache.set(dirPath, directoryWatcher);
23652
23015
  updateChildWatches(dirName, dirPath, options);
23653
23016
  }
23654
- if (link) (directoryWatcher.links ?? (directoryWatcher.links = /* @__PURE__ */ new Set())).add(link);
23017
+ if (link2) (directoryWatcher.links ?? (directoryWatcher.links = /* @__PURE__ */ new Set())).add(link2);
23655
23018
  const callbackToAdd = callback && { dirName, callback };
23656
23019
  if (callbackToAdd) {
23657
23020
  callbackCache.add(dirPath, callbackToAdd);
@@ -23662,7 +23025,7 @@ ${lanes.join("\n")}
23662
23025
  var _a2;
23663
23026
  const directoryWatcher2 = Debug.checkDefined(cache.get(dirPath));
23664
23027
  if (callbackToAdd) callbackCache.remove(dirPath, callbackToAdd);
23665
- if (link) (_a2 = directoryWatcher2.links) == null ? void 0 : _a2.delete(link);
23028
+ if (link2) (_a2 = directoryWatcher2.links) == null ? void 0 : _a2.delete(link2);
23666
23029
  directoryWatcher2.refCount--;
23667
23030
  if (directoryWatcher2.refCount) return;
23668
23031
  cache.delete(dirPath);
@@ -23701,12 +23064,12 @@ ${lanes.join("\n")}
23701
23064
  }
23702
23065
  }
23703
23066
  });
23704
- (_b2 = (_a2 = cache.get(dirPath)) == null ? void 0 : _a2.links) == null ? void 0 : _b2.forEach((link) => {
23705
- const toPathInLink = (fileName2) => combinePaths(link, getRelativePathFromDirectory(dirName, fileName2, toCanonicalFilePath));
23067
+ (_b2 = (_a2 = cache.get(dirPath)) == null ? void 0 : _a2.links) == null ? void 0 : _b2.forEach((link2) => {
23068
+ const toPathInLink = (fileName2) => combinePaths(link2, getRelativePathFromDirectory(dirName, fileName2, toCanonicalFilePath));
23706
23069
  if (invokeMap) {
23707
- invokeCallbacks(link, toCanonicalFilePath(link), invokeMap, fileNames == null ? void 0 : fileNames.map(toPathInLink));
23070
+ invokeCallbacks(link2, toCanonicalFilePath(link2), invokeMap, fileNames == null ? void 0 : fileNames.map(toPathInLink));
23708
23071
  } else {
23709
- invokeCallbacks(link, toCanonicalFilePath(link), toPathInLink(fileName));
23072
+ invokeCallbacks(link2, toCanonicalFilePath(link2), toPathInLink(fileName));
23710
23073
  }
23711
23074
  });
23712
23075
  }
@@ -24400,18 +23763,18 @@ ${lanes.join("\n")}
24400
23763
  const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
24401
23764
  for (const node of profile.nodes) {
24402
23765
  if (node.callFrame.url) {
24403
- const url = normalizeSlashes(node.callFrame.url);
24404
- if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) {
23766
+ const url2 = normalizeSlashes(node.callFrame.url);
23767
+ if (containsPath(fileUrlRoot, url2, useCaseSensitiveFileNames2)) {
24405
23768
  node.callFrame.url = getRelativePathToDirectoryOrUrl(
24406
23769
  fileUrlRoot,
24407
- url,
23770
+ url2,
24408
23771
  fileUrlRoot,
24409
23772
  createGetCanonicalFileName(useCaseSensitiveFileNames2),
24410
23773
  /*isAbsolutePathAnUrl*/
24411
23774
  true
24412
23775
  );
24413
- } else if (!nativePattern.test(url)) {
24414
- node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, `external${externalFileCounter}.js`)).get(url);
23776
+ } else if (!nativePattern.test(url2)) {
23777
+ node.callFrame.url = (remappedPaths.has(url2) ? remappedPaths : remappedPaths.set(url2, `external${externalFileCounter}.js`)).get(url2);
24415
23778
  externalFileCounter++;
24416
23779
  }
24417
23780
  }
@@ -24700,11 +24063,11 @@ ${lanes.join("\n")}
24700
24063
  function isVolumeCharacter(charCode) {
24701
24064
  return charCode >= 97 && charCode <= 122 || charCode >= 65 && charCode <= 90;
24702
24065
  }
24703
- function getFileUrlVolumeSeparatorEnd(url, start) {
24704
- const ch0 = url.charCodeAt(start);
24066
+ function getFileUrlVolumeSeparatorEnd(url2, start) {
24067
+ const ch0 = url2.charCodeAt(start);
24705
24068
  if (ch0 === 58) return start + 1;
24706
- if (ch0 === 37 && url.charCodeAt(start + 1) === 51) {
24707
- const ch2 = url.charCodeAt(start + 2);
24069
+ if (ch0 === 37 && url2.charCodeAt(start + 1) === 51) {
24070
+ const ch2 = url2.charCodeAt(start + 2);
24708
24071
  if (ch2 === 97 || ch2 === 65) return start + 3;
24709
24072
  }
24710
24073
  return -1;
@@ -30318,13 +29681,13 @@ ${lanes.join("\n")}
30318
29681
  /*isInGroup*/
30319
29682
  false
30320
29683
  );
30321
- forEach(groupNameReferences, (reference) => {
30322
- if (!(groupSpecifiers == null ? void 0 : groupSpecifiers.has(reference.name))) {
30323
- error2(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference.pos, reference.end - reference.pos, reference.name);
29684
+ forEach(groupNameReferences, (reference2) => {
29685
+ if (!(groupSpecifiers == null ? void 0 : groupSpecifiers.has(reference2.name))) {
29686
+ error2(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference2.pos, reference2.end - reference2.pos, reference2.name);
30324
29687
  if (groupSpecifiers) {
30325
- const suggestion = getSpellingSuggestion(reference.name, groupSpecifiers, identity);
29688
+ const suggestion = getSpellingSuggestion(reference2.name, groupSpecifiers, identity);
30326
29689
  if (suggestion) {
30327
- error2(Diagnostics.Did_you_mean_0, reference.pos, reference.end - reference.pos, suggestion);
29690
+ error2(Diagnostics.Did_you_mean_0, reference2.pos, reference2.end - reference2.pos, suggestion);
30328
29691
  }
30329
29692
  }
30330
29693
  }
@@ -31411,11 +30774,11 @@ ${lanes.join("\n")}
31411
30774
  function getTextOfJSDocComment(comment) {
31412
30775
  return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c2) => c2.kind === 322 ? c2.text : formatJSDocLink(c2)).join("");
31413
30776
  }
31414
- function formatJSDocLink(link) {
31415
- const kind = link.kind === 325 ? "link" : link.kind === 326 ? "linkcode" : "linkplain";
31416
- const name = link.name ? entityNameToString(link.name) : "";
31417
- const space = link.name && (link.text === "" || link.text.startsWith("://")) ? "" : " ";
31418
- return `{@${kind} ${name}${space}${link.text}}`;
30777
+ function formatJSDocLink(link2) {
30778
+ const kind = link2.kind === 325 ? "link" : link2.kind === 326 ? "linkcode" : "linkplain";
30779
+ const name = link2.name ? entityNameToString(link2.name) : "";
30780
+ const space = link2.name && (link2.text === "" || link2.text.startsWith("://")) ? "" : " ";
30781
+ return `{@${kind} ${name}${space}${link2.text}}`;
31419
30782
  }
31420
30783
  function getEffectiveTypeParameterDeclarations(node) {
31421
30784
  if (isJSDocSignature(node)) {
@@ -36243,8 +35606,8 @@ ${lanes.join("\n")}
36243
35606
  function containsInvalidEscapeFlag(node) {
36244
35607
  return !!((node.templateFlags || 0) & 2048);
36245
35608
  }
36246
- function hasInvalidEscape(template) {
36247
- return template && !!(isNoSubstitutionTemplateLiteral(template) ? containsInvalidEscapeFlag(template) : containsInvalidEscapeFlag(template.head) || some(template.templateSpans, (span) => containsInvalidEscapeFlag(span.literal)));
35609
+ function hasInvalidEscape(template2) {
35610
+ return template2 && !!(isNoSubstitutionTemplateLiteral(template2) ? containsInvalidEscapeFlag(template2) : containsInvalidEscapeFlag(template2.head) || some(template2.templateSpans, (span) => containsInvalidEscapeFlag(span.literal)));
36248
35611
  }
36249
35612
  var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\u2028\u2029\u0085]/g;
36250
35613
  var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\u2028\u2029\u0085]/g;
@@ -37491,8 +36854,8 @@ ${lanes.join("\n")}
37491
36854
  function getLinesBetweenRangeEndPositions(range1, range2, sourceFile) {
37492
36855
  return getLinesBetweenPositions(sourceFile, range1.end, range2.end);
37493
36856
  }
37494
- function isNodeArrayMultiLine(list, sourceFile) {
37495
- return !positionsAreOnSameLine(list.pos, list.end, sourceFile);
36857
+ function isNodeArrayMultiLine(list2, sourceFile) {
36858
+ return !positionsAreOnSameLine(list2.pos, list2.end, sourceFile);
37496
36859
  }
37497
36860
  function positionsAreOnSameLine(pos1, pos2, sourceFile) {
37498
36861
  return getLinesBetweenPositions(sourceFile, pos1, pos2) === 0;
@@ -39267,26 +38630,26 @@ ${lanes.join("\n")}
39267
38630
  }
39268
38631
  const startIndex = 2, endIndex = stringValue.length - 1;
39269
38632
  const bitsNeeded = (endIndex - startIndex) * log2Base;
39270
- const segments = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0));
38633
+ const segments2 = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0));
39271
38634
  for (let i2 = endIndex - 1, bitOffset = 0; i2 >= startIndex; i2--, bitOffset += log2Base) {
39272
38635
  const segment = bitOffset >>> 4;
39273
38636
  const digitChar = stringValue.charCodeAt(i2);
39274
38637
  const digit = digitChar <= 57 ? digitChar - 48 : 10 + digitChar - (digitChar <= 70 ? 65 : 97);
39275
38638
  const shiftedDigit = digit << (bitOffset & 15);
39276
- segments[segment] |= shiftedDigit;
38639
+ segments2[segment] |= shiftedDigit;
39277
38640
  const residual = shiftedDigit >>> 16;
39278
- if (residual) segments[segment + 1] |= residual;
38641
+ if (residual) segments2[segment + 1] |= residual;
39279
38642
  }
39280
38643
  let base10Value = "";
39281
- let firstNonzeroSegment = segments.length - 1;
38644
+ let firstNonzeroSegment = segments2.length - 1;
39282
38645
  let segmentsRemaining = true;
39283
38646
  while (segmentsRemaining) {
39284
38647
  let mod10 = 0;
39285
38648
  segmentsRemaining = false;
39286
38649
  for (let segment = firstNonzeroSegment; segment >= 0; segment--) {
39287
- const newSegment = mod10 << 16 | segments[segment];
38650
+ const newSegment = mod10 << 16 | segments2[segment];
39288
38651
  const segmentValue = newSegment / 10 | 0;
39289
- segments[segment] = segmentValue;
38652
+ segments2[segment] = segmentValue;
39290
38653
  mod10 = newSegment - segmentValue * 10;
39291
38654
  if (segmentValue && !segmentsRemaining) {
39292
38655
  firstNonzeroSegment = segment;
@@ -43585,7 +42948,7 @@ ${lanes.join("\n")}
43585
42948
  function updateNewExpression(node, expression, typeArguments, argumentsArray) {
43586
42949
  return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node;
43587
42950
  }
43588
- function createTaggedTemplateExpression(tag, typeArguments, template) {
42951
+ function createTaggedTemplateExpression(tag, typeArguments, template2) {
43589
42952
  const node = createBaseNode(
43590
42953
  216
43591
42954
  /* TaggedTemplateExpression */
@@ -43596,7 +42959,7 @@ ${lanes.join("\n")}
43596
42959
  false
43597
42960
  );
43598
42961
  node.typeArguments = asNodeArray(typeArguments);
43599
- node.template = template;
42962
+ node.template = template2;
43600
42963
  node.transformFlags |= propagateChildFlags(node.tag) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.template) | 1024;
43601
42964
  if (node.typeArguments) {
43602
42965
  node.transformFlags |= 1;
@@ -43606,8 +42969,8 @@ ${lanes.join("\n")}
43606
42969
  }
43607
42970
  return node;
43608
42971
  }
43609
- function updateTaggedTemplateExpression(node, tag, typeArguments, template) {
43610
- return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node;
42972
+ function updateTaggedTemplateExpression(node, tag, typeArguments, template2) {
42973
+ return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template2 ? update(createTaggedTemplateExpression(tag, typeArguments, template2), node) : node;
43611
42974
  }
43612
42975
  function createTypeAssertion(type, expression) {
43613
42976
  const node = createBaseNode(
@@ -52311,7 +51674,7 @@ ${lanes.join("\n")}
52311
51674
  function parseList(kind, parseElement) {
52312
51675
  const saveParsingContext = parsingContext;
52313
51676
  parsingContext |= 1 << kind;
52314
- const list = [];
51677
+ const list2 = [];
52315
51678
  const listPos = getNodePos();
52316
51679
  while (!isListTerminator(kind)) {
52317
51680
  if (isListElement2(
@@ -52319,7 +51682,7 @@ ${lanes.join("\n")}
52319
51682
  /*inErrorRecovery*/
52320
51683
  false
52321
51684
  )) {
52322
- list.push(parseListElement(kind, parseElement));
51685
+ list2.push(parseListElement(kind, parseElement));
52323
51686
  continue;
52324
51687
  }
52325
51688
  if (abortParsingListOrMoveToNextToken(kind)) {
@@ -52327,7 +51690,7 @@ ${lanes.join("\n")}
52327
51690
  }
52328
51691
  }
52329
51692
  parsingContext = saveParsingContext;
52330
- return createNodeArray(list, listPos);
51693
+ return createNodeArray(list2, listPos);
52331
51694
  }
52332
51695
  function parseListElement(parsingContext2, parseElement) {
52333
51696
  const node = currentNode(parsingContext2);
@@ -52573,7 +51936,7 @@ ${lanes.join("\n")}
52573
51936
  function parseDelimitedList(kind, parseElement, considerSemicolonAsDelimiter) {
52574
51937
  const saveParsingContext = parsingContext;
52575
51938
  parsingContext |= 1 << kind;
52576
- const list = [];
51939
+ const list2 = [];
52577
51940
  const listPos = getNodePos();
52578
51941
  let commaStart = -1;
52579
51942
  while (true) {
@@ -52588,7 +51951,7 @@ ${lanes.join("\n")}
52588
51951
  parsingContext = saveParsingContext;
52589
51952
  return void 0;
52590
51953
  }
52591
- list.push(result);
51954
+ list2.push(result);
52592
51955
  commaStart = scanner2.getTokenStart();
52593
51956
  if (parseOptional(
52594
51957
  28
@@ -52618,7 +51981,7 @@ ${lanes.join("\n")}
52618
51981
  }
52619
51982
  parsingContext = saveParsingContext;
52620
51983
  return createNodeArray(
52621
- list,
51984
+ list2,
52622
51985
  listPos,
52623
51986
  /*end*/
52624
51987
  void 0,
@@ -52629,9 +51992,9 @@ ${lanes.join("\n")}
52629
51992
  return kind === 6 ? Diagnostics.An_enum_member_name_must_be_followed_by_a_or : void 0;
52630
51993
  }
52631
51994
  function createMissingList() {
52632
- const list = createNodeArray([], getNodePos());
52633
- list.isMissingList = true;
52634
- return list;
51995
+ const list2 = createNodeArray([], getNodePos());
51996
+ list2.isMissingList = true;
51997
+ return list2;
52635
51998
  }
52636
51999
  function isMissingList(arr) {
52637
52000
  return !!arr.isMissingList;
@@ -52701,13 +52064,13 @@ ${lanes.join("\n")}
52701
52064
  }
52702
52065
  function parseTemplateSpans(isTaggedTemplate) {
52703
52066
  const pos = getNodePos();
52704
- const list = [];
52067
+ const list2 = [];
52705
52068
  let node;
52706
52069
  do {
52707
52070
  node = parseTemplateSpan(isTaggedTemplate);
52708
- list.push(node);
52071
+ list2.push(node);
52709
52072
  } while (node.literal.kind === 17);
52710
- return createNodeArray(list, pos);
52073
+ return createNodeArray(list2, pos);
52711
52074
  }
52712
52075
  function parseTemplateExpression(isTaggedTemplate) {
52713
52076
  const pos = getNodePos();
@@ -52734,13 +52097,13 @@ ${lanes.join("\n")}
52734
52097
  }
52735
52098
  function parseTemplateTypeSpans() {
52736
52099
  const pos = getNodePos();
52737
- const list = [];
52100
+ const list2 = [];
52738
52101
  let node;
52739
52102
  do {
52740
52103
  node = parseTemplateTypeSpan();
52741
- list.push(node);
52104
+ list2.push(node);
52742
52105
  } while (node.literal.kind === 17);
52743
- return createNodeArray(list, pos);
52106
+ return createNodeArray(list2, pos);
52744
52107
  }
52745
52108
  function parseTemplateTypeSpan() {
52746
52109
  const pos = getNodePos();
@@ -54880,20 +54243,20 @@ ${lanes.join("\n")}
54880
54243
  }
54881
54244
  }
54882
54245
  function parseJsxChildren(openingTag) {
54883
- const list = [];
54246
+ const list2 = [];
54884
54247
  const listPos = getNodePos();
54885
54248
  const saveParsingContext = parsingContext;
54886
54249
  parsingContext |= 1 << 14;
54887
54250
  while (true) {
54888
54251
  const child = parseJsxChild(openingTag, currentToken = scanner2.reScanJsxToken());
54889
54252
  if (!child) break;
54890
- list.push(child);
54253
+ list2.push(child);
54891
54254
  if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 285 && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) {
54892
54255
  break;
54893
54256
  }
54894
54257
  }
54895
54258
  parsingContext = saveParsingContext;
54896
- return createNodeArray(list, listPos);
54259
+ return createNodeArray(list2, listPos);
54897
54260
  }
54898
54261
  function parseJsxAttributes() {
54899
54262
  const pos = getNodePos();
@@ -56867,31 +56230,31 @@ ${lanes.join("\n")}
56867
56230
  }
56868
56231
  function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) {
56869
56232
  const pos = getNodePos();
56870
- let list;
56233
+ let list2;
56871
56234
  let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;
56872
56235
  if (allowDecorators && token() === 60) {
56873
56236
  while (decorator = tryParseDecorator()) {
56874
- list = append(list, decorator);
56237
+ list2 = append(list2, decorator);
56875
56238
  }
56876
56239
  }
56877
56240
  while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
56878
56241
  if (modifier.kind === 126) hasSeenStaticModifier = true;
56879
- list = append(list, modifier);
56242
+ list2 = append(list2, modifier);
56880
56243
  hasLeadingModifier = true;
56881
56244
  }
56882
56245
  if (hasLeadingModifier && allowDecorators && token() === 60) {
56883
56246
  while (decorator = tryParseDecorator()) {
56884
- list = append(list, decorator);
56247
+ list2 = append(list2, decorator);
56885
56248
  hasTrailingDecorator = true;
56886
56249
  }
56887
56250
  }
56888
56251
  if (hasTrailingDecorator) {
56889
56252
  while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
56890
56253
  if (modifier.kind === 126) hasSeenStaticModifier = true;
56891
- list = append(list, modifier);
56254
+ list2 = append(list2, modifier);
56892
56255
  }
56893
56256
  }
56894
- return list && createNodeArray(list, pos);
56257
+ return list2 && createNodeArray(list2, pos);
56895
56258
  }
56896
56259
  function parseModifiersForArrowFunction() {
56897
56260
  let modifiers;
@@ -57917,13 +57280,13 @@ ${lanes.join("\n")}
57917
57280
  state = 2;
57918
57281
  const commentEnd = scanner2.getTokenFullStart();
57919
57282
  const linkStart = scanner2.getTokenEnd() - 1;
57920
- const link = parseJSDocLink(linkStart);
57921
- if (link) {
57283
+ const link2 = parseJSDocLink(linkStart);
57284
+ if (link2) {
57922
57285
  if (!linkEnd) {
57923
57286
  removeLeadingNewlines(comments);
57924
57287
  }
57925
57288
  parts.push(finishNode(factory2.createJSDocText(comments.join("")), linkEnd ?? start, commentEnd));
57926
- parts.push(link);
57289
+ parts.push(link2);
57927
57290
  comments = [];
57928
57291
  linkEnd = scanner2.getTokenEnd();
57929
57292
  break;
@@ -58160,10 +57523,10 @@ ${lanes.join("\n")}
58160
57523
  state = 2;
58161
57524
  const commentEnd = scanner2.getTokenFullStart();
58162
57525
  const linkStart = scanner2.getTokenEnd() - 1;
58163
- const link = parseJSDocLink(linkStart);
58164
- if (link) {
57526
+ const link2 = parseJSDocLink(linkStart);
57527
+ if (link2) {
58165
57528
  parts2.push(finishNode(factory2.createJSDocText(comments2.join("")), linkEnd2 ?? commentsPos2, commentEnd));
58166
- parts2.push(link);
57529
+ parts2.push(link2);
58167
57530
  comments2 = [];
58168
57531
  linkEnd2 = scanner2.getTokenEnd();
58169
57532
  } else {
@@ -61851,7 +61214,7 @@ ${lanes.join("\n")}
61851
61214
  emitHeader(Diagnostics.File_Layout);
61852
61215
  emitOption("rootDir", "./src", "optional");
61853
61216
  emitOption("outDir", "./dist", "optional");
61854
- newline();
61217
+ newline2();
61855
61218
  emitHeader(Diagnostics.Environment_Settings);
61856
61219
  emitHeader(Diagnostics.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule);
61857
61220
  emitOption(
@@ -61872,7 +61235,7 @@ ${lanes.join("\n")}
61872
61235
  result.push(`${tab}${tab}// "lib": ["esnext"],`);
61873
61236
  result.push(`${tab}${tab}// "types": ["node"],`);
61874
61237
  emitHeader(Diagnostics.and_npm_install_D_types_Slashnode);
61875
- newline();
61238
+ newline2();
61876
61239
  emitHeader(Diagnostics.Other_Outputs);
61877
61240
  emitOption(
61878
61241
  "sourceMap",
@@ -61889,7 +61252,7 @@ ${lanes.join("\n")}
61889
61252
  /*defaultValue*/
61890
61253
  true
61891
61254
  );
61892
- newline();
61255
+ newline2();
61893
61256
  emitHeader(Diagnostics.Stricter_Typechecking_Options);
61894
61257
  emitOption(
61895
61258
  "noUncheckedIndexedAccess",
@@ -61901,7 +61264,7 @@ ${lanes.join("\n")}
61901
61264
  /*defaultValue*/
61902
61265
  true
61903
61266
  );
61904
- newline();
61267
+ newline2();
61905
61268
  emitHeader(Diagnostics.Style_Options);
61906
61269
  emitOption(
61907
61270
  "noImplicitReturns",
@@ -61939,7 +61302,7 @@ ${lanes.join("\n")}
61939
61302
  true,
61940
61303
  "optional"
61941
61304
  );
61942
- newline();
61305
+ newline2();
61943
61306
  emitHeader(Diagnostics.Recommended_Options);
61944
61307
  emitOption(
61945
61308
  "strict",
@@ -61977,12 +61340,12 @@ ${lanes.join("\n")}
61977
61340
  true
61978
61341
  );
61979
61342
  if (allSetOptions.length > 0) {
61980
- newline();
61343
+ newline2();
61981
61344
  while (allSetOptions.length > 0) {
61982
61345
  emitOption(allSetOptions[0], options[allSetOptions[0]]);
61983
61346
  }
61984
61347
  }
61985
- function newline() {
61348
+ function newline2() {
61986
61349
  result.push("");
61987
61350
  }
61988
61351
  function emitHeader(header) {
@@ -62323,12 +61686,12 @@ ${lanes.join("\n")}
62323
61686
  function getSubstitutedPathWithConfigDirTemplate(value, basePath) {
62324
61687
  return getNormalizedAbsolutePath(value.replace(configDirTemplate, "./"), basePath);
62325
61688
  }
62326
- function getSubstitutedStringArrayWithConfigDirTemplate(list, basePath) {
62327
- if (!list) return list;
61689
+ function getSubstitutedStringArrayWithConfigDirTemplate(list2, basePath) {
61690
+ if (!list2) return list2;
62328
61691
  let result;
62329
- list.forEach((element, index) => {
61692
+ list2.forEach((element, index) => {
62330
61693
  if (!startsWithConfigDirTemplate(element)) return;
62331
- (result ?? (result = list.slice()))[index] = getSubstitutedPathWithConfigDirTemplate(element, basePath);
61694
+ (result ?? (result = list2.slice()))[index] = getSubstitutedPathWithConfigDirTemplate(element, basePath);
62332
61695
  });
62333
61696
  return result;
62334
61697
  }
@@ -73871,14 +73234,14 @@ ${lanes.join("\n")}
73871
73234
  const referenceParent = referencingLocation.parent;
73872
73235
  const namespaceImport = isImportDeclaration(referenceParent) && getNamespaceDeclarationNode(referenceParent);
73873
73236
  if (namespaceImport || isImportCall(referenceParent)) {
73874
- const reference = isImportCall(referenceParent) ? referenceParent.arguments[0] : referenceParent.moduleSpecifier;
73237
+ const reference2 = isImportCall(referenceParent) ? referenceParent.arguments[0] : referenceParent.moduleSpecifier;
73875
73238
  const type = getTypeOfSymbol(symbol);
73876
- const defaultOnlyType = getTypeWithSyntheticDefaultOnly(type, symbol, moduleSymbol, reference);
73239
+ const defaultOnlyType = getTypeWithSyntheticDefaultOnly(type, symbol, moduleSymbol, reference2);
73877
73240
  if (defaultOnlyType) {
73878
73241
  return cloneTypeAsModuleType(symbol, defaultOnlyType, referenceParent);
73879
73242
  }
73880
73243
  const targetFile = (_a2 = moduleSymbol == null ? void 0 : moduleSymbol.declarations) == null ? void 0 : _a2.find(isSourceFile);
73881
- const usageMode = getEmitSyntaxForModuleSpecifierExpression(reference);
73244
+ const usageMode = getEmitSyntaxForModuleSpecifierExpression(reference2);
73882
73245
  let exportModuleDotExportsSymbol;
73883
73246
  if (namespaceImport && targetFile && 102 <= moduleKind && moduleKind <= 199 && usageMode === 1 && host.getImpliedNodeFormatForEmit(targetFile) === 99 && (exportModuleDotExportsSymbol = resolveExportByName(symbol, "module.exports", namespaceImport, dontResolveAlias))) {
73884
73247
  if (!suppressInteropError && !(symbol.flags & (1536 | 3))) {
@@ -73897,7 +73260,7 @@ ${lanes.join("\n")}
73897
73260
  /*skipObjectFunctionPropertyAugment*/
73898
73261
  true
73899
73262
  ) || isEsmCjsRef) {
73900
- const moduleType = type.flags & 403701760 ? getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol, reference) : createDefaultPropertyWrapperForModule(symbol, symbol.parent);
73263
+ const moduleType = type.flags & 403701760 ? getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol, reference2) : createDefaultPropertyWrapperForModule(symbol, symbol.parent);
73901
73264
  return cloneTypeAsModuleType(symbol, moduleType, referenceParent);
73902
73265
  }
73903
73266
  }
@@ -80016,25 +79379,25 @@ ${lanes.join("\n")}
80016
79379
  }
80017
79380
  function trySerializeAsTypeReference(t2, flags) {
80018
79381
  let typeArgs;
80019
- let reference;
79382
+ let reference2;
80020
79383
  if (t2.target && isSymbolAccessibleByFlags(t2.target.symbol, enclosingDeclaration, flags)) {
80021
79384
  typeArgs = map(getTypeArguments(t2), (t22) => typeToTypeNodeHelper(t22, context));
80022
- reference = symbolToExpression(
79385
+ reference2 = symbolToExpression(
80023
79386
  t2.target.symbol,
80024
79387
  context,
80025
79388
  788968
80026
79389
  /* Type */
80027
79390
  );
80028
79391
  } else if (t2.symbol && isSymbolAccessibleByFlags(t2.symbol, enclosingDeclaration, flags)) {
80029
- reference = symbolToExpression(
79392
+ reference2 = symbolToExpression(
80030
79393
  t2.symbol,
80031
79394
  context,
80032
79395
  788968
80033
79396
  /* Type */
80034
79397
  );
80035
79398
  }
80036
- if (reference) {
80037
- return factory.createExpressionWithTypeArguments(reference, typeArgs);
79399
+ if (reference2) {
79400
+ return factory.createExpressionWithTypeArguments(reference2, typeArgs);
80038
79401
  }
80039
79402
  }
80040
79403
  function serializeImplementedType(t2) {
@@ -80586,8 +79949,8 @@ ${lanes.join("\n")}
80586
79949
  );
80587
79950
  }
80588
79951
  function getFlowTypeOfDestructuring(node, declaredType) {
80589
- const reference = getSyntheticElementAccess(node);
80590
- return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType;
79952
+ const reference2 = getSyntheticElementAccess(node);
79953
+ return reference2 ? getFlowTypeOfReference(reference2, declaredType) : declaredType;
80591
79954
  }
80592
79955
  function getSyntheticElementAccess(node) {
80593
79956
  const parentAccess = getParentElementAccess(node);
@@ -80905,23 +80268,23 @@ ${lanes.join("\n")}
80905
80268
  const file = getSourceFileOfNode(symbol.declarations[0]);
80906
80269
  const accessName = unescapeLeadingUnderscores(symbol.escapedName);
80907
80270
  const areAllModuleExports = symbol.declarations.every((d2) => isInJSFile(d2) && isAccessExpression(d2) && isModuleExportsAccessExpression(d2.expression));
80908
- const reference = areAllModuleExports ? factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier("module"), factory.createIdentifier("exports")), accessName) : factory.createPropertyAccessExpression(factory.createIdentifier("exports"), accessName);
80271
+ const reference2 = areAllModuleExports ? factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier("module"), factory.createIdentifier("exports")), accessName) : factory.createPropertyAccessExpression(factory.createIdentifier("exports"), accessName);
80909
80272
  if (areAllModuleExports) {
80910
- setParent(reference.expression.expression, reference.expression);
80273
+ setParent(reference2.expression.expression, reference2.expression);
80911
80274
  }
80912
- setParent(reference.expression, reference);
80913
- setParent(reference, file);
80914
- reference.flowNode = file.endFlowNode;
80915
- return getFlowTypeOfReference(reference, autoType, undefinedType);
80275
+ setParent(reference2.expression, reference2);
80276
+ setParent(reference2, file);
80277
+ reference2.flowNode = file.endFlowNode;
80278
+ return getFlowTypeOfReference(reference2, autoType, undefinedType);
80916
80279
  }
80917
80280
  function getFlowTypeInStaticBlocks(symbol, staticBlocks) {
80918
80281
  const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName);
80919
80282
  for (const staticBlock of staticBlocks) {
80920
- const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80921
- setParent(reference.expression, reference);
80922
- setParent(reference, staticBlock);
80923
- reference.flowNode = staticBlock.returnFlowNode;
80924
- const flowType = getFlowTypeOfProperty(reference, symbol);
80283
+ const reference2 = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80284
+ setParent(reference2.expression, reference2);
80285
+ setParent(reference2, staticBlock);
80286
+ reference2.flowNode = staticBlock.returnFlowNode;
80287
+ const flowType = getFlowTypeOfProperty(reference2, symbol);
80925
80288
  if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {
80926
80289
  error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));
80927
80290
  }
@@ -80933,19 +80296,19 @@ ${lanes.join("\n")}
80933
80296
  }
80934
80297
  function getFlowTypeInConstructor(symbol, constructor) {
80935
80298
  const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName);
80936
- const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80937
- setParent(reference.expression, reference);
80938
- setParent(reference, constructor);
80939
- reference.flowNode = constructor.returnFlowNode;
80940
- const flowType = getFlowTypeOfProperty(reference, symbol);
80299
+ const reference2 = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80300
+ setParent(reference2.expression, reference2);
80301
+ setParent(reference2, constructor);
80302
+ reference2.flowNode = constructor.returnFlowNode;
80303
+ const flowType = getFlowTypeOfProperty(reference2, symbol);
80941
80304
  if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {
80942
80305
  error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));
80943
80306
  }
80944
80307
  return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType);
80945
80308
  }
80946
- function getFlowTypeOfProperty(reference, prop) {
80309
+ function getFlowTypeOfProperty(reference2, prop) {
80947
80310
  const initialType = (prop == null ? void 0 : prop.valueDeclaration) && (!isAutoTypedProperty(prop) || getEffectiveModifierFlags(prop.valueDeclaration) & 128) && getTypeOfPropertyInBaseClass(prop) || undefinedType;
80948
- return getFlowTypeOfReference(reference, autoType, initialType);
80311
+ return getFlowTypeOfReference(reference2, autoType, initialType);
80949
80312
  }
80950
80313
  function getWidenedTypeForAssignmentDeclaration(symbol, resolvedSymbol) {
80951
80314
  const container = getAssignedExpandoInitializer(symbol.valueDeclaration);
@@ -83683,8 +83046,8 @@ ${lanes.join("\n")}
83683
83046
  }
83684
83047
  }
83685
83048
  function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) {
83686
- const list = obj.properties;
83687
- return list.some((property) => {
83049
+ const list2 = obj.properties;
83050
+ return list2.some((property) => {
83688
83051
  const nameType = property.name && (isJsxNamespacedName(property.name) ? getStringLiteralType(getTextOfJsxAttributeName(property.name)) : getLiteralTypeFromPropertyName(property.name));
83689
83052
  const name = nameType && isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0;
83690
83053
  const expected = name === void 0 ? void 0 : getTypeOfPropertyOfType(contextualType, name);
@@ -86486,14 +85849,14 @@ ${lanes.join("\n")}
86486
85849
  while (i2 > 0) {
86487
85850
  i2--;
86488
85851
  const t2 = types[i2];
86489
- if (t2.flags & 1024 && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t2, template))) {
85852
+ if (t2.flags & 1024 && some(templates, (template2) => isTypeMatchedByTemplateLiteralOrStringMapping(t2, template2))) {
86490
85853
  orderedRemoveItemAt(types, i2);
86491
85854
  }
86492
85855
  }
86493
85856
  }
86494
85857
  }
86495
- function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) {
86496
- return template.flags & 4194304 ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template);
85858
+ function isTypeMatchedByTemplateLiteralOrStringMapping(type, template2) {
85859
+ return template2.flags & 4194304 ? isTypeMatchedByTemplateLiteralType(type, template2) : isMemberOfStringMapping(type, template2);
86497
85860
  }
86498
85861
  function removeConstrainedTypeVariables(types) {
86499
85862
  const typeVariables = [];
@@ -95120,15 +94483,15 @@ ${lanes.join("\n")}
95120
94483
  function isOrContainsMatchingReference(source, target) {
95121
94484
  return isMatchingReference(source, target) || containsMatchingReference(source, target);
95122
94485
  }
95123
- function hasMatchingArgument(expression, reference) {
94486
+ function hasMatchingArgument(expression, reference2) {
95124
94487
  if (expression.arguments) {
95125
94488
  for (const argument of expression.arguments) {
95126
- if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference)) {
94489
+ if (isOrContainsMatchingReference(reference2, argument) || optionalChainContainsReference(argument, reference2)) {
95127
94490
  return true;
95128
94491
  }
95129
94492
  }
95130
94493
  }
95131
- if (expression.expression.kind === 212 && isOrContainsMatchingReference(reference, expression.expression.expression)) {
94494
+ if (expression.expression.kind === 212 && isOrContainsMatchingReference(reference2, expression.expression.expression)) {
95132
94495
  return true;
95133
94496
  }
95134
94497
  return false;
@@ -95934,7 +95297,7 @@ ${lanes.join("\n")}
95934
95297
  }
95935
95298
  return false;
95936
95299
  }
95937
- function getFlowTypeOfReference(reference, declaredType, initialType = declaredType, flowContainer, flowNode = ((_a2) => (_a2 = tryCast(reference, canHaveFlowNode)) == null ? void 0 : _a2.flowNode)()) {
95300
+ function getFlowTypeOfReference(reference2, declaredType, initialType = declaredType, flowContainer, flowNode = ((_a2) => (_a2 = tryCast(reference2, canHaveFlowNode)) == null ? void 0 : _a2.flowNode)()) {
95938
95301
  let key;
95939
95302
  let isKeySet = false;
95940
95303
  let flowDepth = 0;
@@ -95948,8 +95311,8 @@ ${lanes.join("\n")}
95948
95311
  const sharedFlowStart = sharedFlowCount;
95949
95312
  const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode));
95950
95313
  sharedFlowCount = sharedFlowStart;
95951
- const resultType = getObjectFlags(evolvedType) & 256 && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType);
95952
- if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 236 && !(resultType.flags & 262144) && getTypeWithFacts(
95314
+ const resultType = getObjectFlags(evolvedType) & 256 && isEvolvingArrayOperationTarget(reference2) ? autoArrayType : finalizeEvolvingArrayType(evolvedType);
95315
+ if (resultType === unreachableNeverType || reference2.parent && reference2.parent.kind === 236 && !(resultType.flags & 262144) && getTypeWithFacts(
95953
95316
  resultType,
95954
95317
  2097152
95955
95318
  /* NEUndefinedOrNull */
@@ -95962,14 +95325,14 @@ ${lanes.join("\n")}
95962
95325
  return key;
95963
95326
  }
95964
95327
  isKeySet = true;
95965
- return key = getFlowCacheKey(reference, declaredType, initialType, flowContainer);
95328
+ return key = getFlowCacheKey(reference2, declaredType, initialType, flowContainer);
95966
95329
  }
95967
95330
  function getTypeAtFlowNode(flow) {
95968
95331
  var _a2;
95969
95332
  if (flowDepth === 2e3) {
95970
95333
  (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "getTypeAtFlowNode_DepthLimit", { flowId: flow.id });
95971
95334
  flowAnalysisDisabled = true;
95972
- reportFlowControlError(reference);
95335
+ reportFlowControlError(reference2);
95973
95336
  return errorType;
95974
95337
  }
95975
95338
  flowDepth++;
@@ -96022,7 +95385,7 @@ ${lanes.join("\n")}
96022
95385
  target.antecedent = saveAntecedents;
96023
95386
  } else if (flags & 2) {
96024
95387
  const container = flow.node;
96025
- if (container && container !== flowContainer && reference.kind !== 212 && reference.kind !== 213 && !(reference.kind === 110 && container.kind !== 220)) {
95388
+ if (container && container !== flowContainer && reference2.kind !== 212 && reference2.kind !== 213 && !(reference2.kind === 110 && container.kind !== 220)) {
96026
95389
  flow = container.flowNode;
96027
95390
  continue;
96028
95391
  }
@@ -96043,12 +95406,12 @@ ${lanes.join("\n")}
96043
95406
  const node = flow.node;
96044
95407
  return getNarrowableTypeForReference(
96045
95408
  node.kind === 261 || node.kind === 209 ? getInitialType(node) : getAssignedType(node),
96046
- reference
95409
+ reference2
96047
95410
  );
96048
95411
  }
96049
95412
  function getTypeAtFlowAssignment(flow) {
96050
95413
  const node = flow.node;
96051
- if (isMatchingReference(reference, node)) {
95414
+ if (isMatchingReference(reference2, node)) {
96052
95415
  if (!isReachableFlowNode(flow)) {
96053
95416
  return unreachableNeverType;
96054
95417
  }
@@ -96069,7 +95432,7 @@ ${lanes.join("\n")}
96069
95432
  }
96070
95433
  return t2;
96071
95434
  }
96072
- if (containsMatchingReference(reference, node)) {
95435
+ if (containsMatchingReference(reference2, node)) {
96073
95436
  if (!isReachableFlowNode(flow)) {
96074
95437
  return unreachableNeverType;
96075
95438
  }
@@ -96081,7 +95444,7 @@ ${lanes.join("\n")}
96081
95444
  }
96082
95445
  return declaredType;
96083
95446
  }
96084
- if (isVariableDeclaration(node) && node.parent.parent.kind === 250 && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) {
95447
+ if (isVariableDeclaration(node) && node.parent.parent.kind === 250 && (isMatchingReference(reference2, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference2))) {
96085
95448
  return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent))));
96086
95449
  }
96087
95450
  return void 0;
@@ -96136,7 +95499,7 @@ ${lanes.join("\n")}
96136
95499
  if (declaredType === autoType || declaredType === autoArrayType) {
96137
95500
  const node = flow.node;
96138
95501
  const expr = node.kind === 214 ? node.expression.expression : node.left.expression;
96139
- if (isMatchingReference(reference, getReferenceCandidate(expr))) {
95502
+ if (isMatchingReference(reference2, getReferenceCandidate(expr))) {
96140
95503
  const flowType = getTypeAtFlowNode(flow.antecedent);
96141
95504
  const type = getTypeFromFlowType(flowType);
96142
95505
  if (getObjectFlags(type) & 256) {
@@ -96180,17 +95543,17 @@ ${lanes.join("\n")}
96180
95543
  const expr = skipParentheses(flow.node.switchStatement.expression);
96181
95544
  const flowType = getTypeAtFlowNode(flow.antecedent);
96182
95545
  let type = getTypeFromFlowType(flowType);
96183
- if (isMatchingReference(reference, expr)) {
95546
+ if (isMatchingReference(reference2, expr)) {
96184
95547
  type = narrowTypeBySwitchOnDiscriminant(type, flow.node);
96185
- } else if (expr.kind === 222 && isMatchingReference(reference, expr.expression)) {
95548
+ } else if (expr.kind === 222 && isMatchingReference(reference2, expr.expression)) {
96186
95549
  type = narrowTypeBySwitchOnTypeOf(type, flow.node);
96187
95550
  } else if (expr.kind === 112) {
96188
95551
  type = narrowTypeBySwitchOnTrue(type, flow.node);
96189
95552
  } else {
96190
95553
  if (strictNullChecks) {
96191
- if (optionalChainContainsReference(expr, reference)) {
95554
+ if (optionalChainContainsReference(expr, reference2)) {
96192
95555
  type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t2) => !(t2.flags & (4 | 262144)));
96193
- } else if (expr.kind === 222 && optionalChainContainsReference(expr.expression, reference)) {
95556
+ } else if (expr.kind === 222 && optionalChainContainsReference(expr.expression, reference2)) {
96194
95557
  type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t2) => !(t2.flags & 262144 || t2.flags & 1024 && t2.value === "undefined"));
96195
95558
  }
96196
95559
  }
@@ -96327,16 +95690,16 @@ ${lanes.join("\n")}
96327
95690
  return result;
96328
95691
  }
96329
95692
  function getCandidateDiscriminantPropertyAccess(expr) {
96330
- if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) {
95693
+ if (isBindingPattern(reference2) || isFunctionExpressionOrArrowFunction(reference2) || isObjectLiteralMethod(reference2)) {
96331
95694
  if (isIdentifier(expr)) {
96332
95695
  const symbol = getResolvedSymbol(expr);
96333
95696
  const declaration = getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
96334
- if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
95697
+ if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference2 === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
96335
95698
  return declaration;
96336
95699
  }
96337
95700
  }
96338
95701
  } else if (isAccessExpression(expr)) {
96339
- if (isMatchingReference(reference, expr.expression)) {
95702
+ if (isMatchingReference(reference2, expr.expression)) {
96340
95703
  return expr;
96341
95704
  }
96342
95705
  } else if (isIdentifier(expr)) {
@@ -96344,12 +95707,12 @@ ${lanes.join("\n")}
96344
95707
  if (isConstantVariable(symbol)) {
96345
95708
  const declaration = symbol.valueDeclaration;
96346
95709
  let initializer = getCandidateVariableDeclarationInitializer(declaration);
96347
- if (initializer && isAccessExpression(initializer) && isMatchingReference(reference, initializer.expression)) {
95710
+ if (initializer && isAccessExpression(initializer) && isMatchingReference(reference2, initializer.expression)) {
96348
95711
  return initializer;
96349
95712
  }
96350
95713
  if (isBindingElement(declaration) && !declaration.initializer) {
96351
95714
  initializer = getCandidateVariableDeclarationInitializer(declaration.parent.parent);
96352
- if (initializer && (isIdentifier(initializer) || isAccessExpression(initializer)) && isMatchingReference(reference, initializer)) {
95715
+ if (initializer && (isIdentifier(initializer) || isAccessExpression(initializer)) && isMatchingReference(reference2, initializer)) {
96353
95716
  return declaration;
96354
95717
  }
96355
95718
  }
@@ -96424,14 +95787,14 @@ ${lanes.join("\n")}
96424
95787
  return narrowTypeByDiscriminant(type, access, (t2) => narrowTypeBySwitchOnDiscriminant(t2, data));
96425
95788
  }
96426
95789
  function narrowTypeByTruthiness(type, expr, assumeTrue) {
96427
- if (isMatchingReference(reference, expr)) {
95790
+ if (isMatchingReference(reference2, expr)) {
96428
95791
  return getAdjustedTypeWithFacts(
96429
95792
  type,
96430
95793
  assumeTrue ? 4194304 : 8388608
96431
95794
  /* Falsy */
96432
95795
  );
96433
95796
  }
96434
- if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference)) {
95797
+ if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference2)) {
96435
95798
  type = getAdjustedTypeWithFacts(
96436
95799
  type,
96437
95800
  2097152
@@ -96495,16 +95858,16 @@ ${lanes.join("\n")}
96495
95858
  if (right2.kind === 222 && isStringLiteralLike(left2)) {
96496
95859
  return narrowTypeByTypeof(type, right2, operator, left2, assumeTrue);
96497
95860
  }
96498
- if (isMatchingReference(reference, left2)) {
95861
+ if (isMatchingReference(reference2, left2)) {
96499
95862
  return narrowTypeByEquality(type, operator, right2, assumeTrue);
96500
95863
  }
96501
- if (isMatchingReference(reference, right2)) {
95864
+ if (isMatchingReference(reference2, right2)) {
96502
95865
  return narrowTypeByEquality(type, operator, left2, assumeTrue);
96503
95866
  }
96504
95867
  if (strictNullChecks) {
96505
- if (optionalChainContainsReference(left2, reference)) {
95868
+ if (optionalChainContainsReference(left2, reference2)) {
96506
95869
  type = narrowTypeByOptionalChainContainment(type, operator, right2, assumeTrue);
96507
- } else if (optionalChainContainsReference(right2, reference)) {
95870
+ } else if (optionalChainContainsReference(right2, reference2)) {
96508
95871
  type = narrowTypeByOptionalChainContainment(type, operator, left2, assumeTrue);
96509
95872
  }
96510
95873
  }
@@ -96536,9 +95899,9 @@ ${lanes.join("\n")}
96536
95899
  return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue);
96537
95900
  }
96538
95901
  const target = getReferenceCandidate(expr.right);
96539
- if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) {
95902
+ if (containsMissingType(type) && isAccessExpression(reference2) && isMatchingReference(reference2.expression, target)) {
96540
95903
  const leftType = getTypeOfExpression(expr.left);
96541
- if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) {
95904
+ if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference2) === getPropertyNameFromType(leftType)) {
96542
95905
  return getTypeWithFacts(
96543
95906
  type,
96544
95907
  assumeTrue ? 524288 : 65536
@@ -96546,7 +95909,7 @@ ${lanes.join("\n")}
96546
95909
  );
96547
95910
  }
96548
95911
  }
96549
- if (isMatchingReference(reference, target)) {
95912
+ if (isMatchingReference(reference2, target)) {
96550
95913
  const leftType = getTypeOfExpression(expr.left);
96551
95914
  if (isTypeUsableAsPropertyName(leftType)) {
96552
95915
  return narrowTypeByInKeyword(type, leftType, assumeTrue);
@@ -96607,7 +95970,7 @@ ${lanes.join("\n")}
96607
95970
  }
96608
95971
  function narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue) {
96609
95972
  const target = getReferenceCandidate(expr.right);
96610
- if (!isMatchingReference(reference, target)) {
95973
+ if (!isMatchingReference(reference2, target)) {
96611
95974
  return type;
96612
95975
  }
96613
95976
  Debug.assertNode(expr.left, isPrivateIdentifier);
@@ -96674,8 +96037,8 @@ ${lanes.join("\n")}
96674
96037
  assumeTrue = !assumeTrue;
96675
96038
  }
96676
96039
  const target = getReferenceCandidate(typeOfExpr.expression);
96677
- if (!isMatchingReference(reference, target)) {
96678
- if (strictNullChecks && optionalChainContainsReference(target, reference) && assumeTrue === (literal.text !== "undefined")) {
96040
+ if (!isMatchingReference(reference2, target)) {
96041
+ if (strictNullChecks && optionalChainContainsReference(target, reference2) && assumeTrue === (literal.text !== "undefined")) {
96679
96042
  type = getAdjustedTypeWithFacts(
96680
96043
  type,
96681
96044
  2097152
@@ -96887,7 +96250,7 @@ ${lanes.join("\n")}
96887
96250
  ) : neverType));
96888
96251
  }
96889
96252
  function isMatchingConstructorReference(expr) {
96890
- return (isPropertyAccessExpression(expr) && idText(expr.name) === "constructor" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === "constructor") && isMatchingReference(reference, expr.expression);
96253
+ return (isPropertyAccessExpression(expr) && idText(expr.name) === "constructor" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === "constructor") && isMatchingReference(reference2, expr.expression);
96891
96254
  }
96892
96255
  function narrowTypeByConstructor(type, operator, identifier, assumeTrue) {
96893
96256
  if (assumeTrue ? operator !== 35 && operator !== 37 : operator !== 36 && operator !== 38) {
@@ -96919,8 +96282,8 @@ ${lanes.join("\n")}
96919
96282
  }
96920
96283
  function narrowTypeByInstanceof(type, expr, assumeTrue) {
96921
96284
  const left2 = getReferenceCandidate(expr.left);
96922
- if (!isMatchingReference(reference, left2)) {
96923
- if (assumeTrue && strictNullChecks && optionalChainContainsReference(left2, reference)) {
96285
+ if (!isMatchingReference(reference2, left2)) {
96286
+ if (assumeTrue && strictNullChecks && optionalChainContainsReference(left2, reference2)) {
96924
96287
  return getAdjustedTypeWithFacts(
96925
96288
  type,
96926
96289
  2097152
@@ -97022,18 +96385,18 @@ ${lanes.join("\n")}
97022
96385
  return !(narrowedType.flags & 262144) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]);
97023
96386
  }
97024
96387
  function narrowTypeByCallExpression(type, callExpression, assumeTrue) {
97025
- if (hasMatchingArgument(callExpression, reference)) {
96388
+ if (hasMatchingArgument(callExpression, reference2)) {
97026
96389
  const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0;
97027
96390
  const predicate = signature && getTypePredicateOfSignature(signature);
97028
96391
  if (predicate && (predicate.kind === 0 || predicate.kind === 1)) {
97029
96392
  return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
97030
96393
  }
97031
96394
  }
97032
- if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) {
96395
+ if (containsMissingType(type) && isAccessExpression(reference2) && isPropertyAccessExpression(callExpression.expression)) {
97033
96396
  const callAccess = callExpression.expression;
97034
- if (isMatchingReference(reference.expression, getReferenceCandidate(callAccess.expression)) && isIdentifier(callAccess.name) && callAccess.name.escapedText === "hasOwnProperty" && callExpression.arguments.length === 1) {
96397
+ if (isMatchingReference(reference2.expression, getReferenceCandidate(callAccess.expression)) && isIdentifier(callAccess.name) && callAccess.name.escapedText === "hasOwnProperty" && callExpression.arguments.length === 1) {
97035
96398
  const argument = callExpression.arguments[0];
97036
- if (isStringLiteralLike(argument) && getAccessedPropertyName(reference) === escapeLeadingUnderscores(argument.text)) {
96399
+ if (isStringLiteralLike(argument) && getAccessedPropertyName(reference2) === escapeLeadingUnderscores(argument.text)) {
97037
96400
  return getTypeWithFacts(
97038
96401
  type,
97039
96402
  assumeTrue ? 524288 : 65536
@@ -97048,7 +96411,7 @@ ${lanes.join("\n")}
97048
96411
  if (predicate.type && !(isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType))) {
97049
96412
  const predicateArgument = getTypePredicateArgument(predicate, callExpression);
97050
96413
  if (predicateArgument) {
97051
- if (isMatchingReference(reference, predicateArgument)) {
96414
+ if (isMatchingReference(reference2, predicateArgument)) {
97052
96415
  return getNarrowedType(
97053
96416
  type,
97054
96417
  predicate.type,
@@ -97057,7 +96420,7 @@ ${lanes.join("\n")}
97057
96420
  false
97058
96421
  );
97059
96422
  }
97060
- if (strictNullChecks && optionalChainContainsReference(predicateArgument, reference) && (assumeTrue && !hasTypeFacts(
96423
+ if (strictNullChecks && optionalChainContainsReference(predicateArgument, reference2) && (assumeTrue && !hasTypeFacts(
97061
96424
  predicate.type,
97062
96425
  65536
97063
96426
  /* EQUndefined */
@@ -97088,11 +96451,11 @@ ${lanes.join("\n")}
97088
96451
  }
97089
96452
  switch (expr.kind) {
97090
96453
  case 80:
97091
- if (!isMatchingReference(reference, expr) && inlineLevel < 5) {
96454
+ if (!isMatchingReference(reference2, expr) && inlineLevel < 5) {
97092
96455
  const symbol = getResolvedSymbol(expr);
97093
96456
  if (isConstantVariable(symbol)) {
97094
96457
  const declaration = symbol.valueDeclaration;
97095
- if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) {
96458
+ if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference2)) {
97096
96459
  inlineLevel++;
97097
96460
  const result = narrowType(type, declaration.initializer, assumeTrue);
97098
96461
  inlineLevel--;
@@ -97123,7 +96486,7 @@ ${lanes.join("\n")}
97123
96486
  return type;
97124
96487
  }
97125
96488
  function narrowTypeByOptionality(type, expr, assumePresent) {
97126
- if (isMatchingReference(reference, expr)) {
96489
+ if (isMatchingReference(reference2, expr)) {
97127
96490
  return getAdjustedTypeWithFacts(
97128
96491
  type,
97129
96492
  assumePresent ? 2097152 : 262144
@@ -97362,11 +96725,11 @@ ${lanes.join("\n")}
97362
96725
  ));
97363
96726
  return contextualType && !isGenericType(contextualType);
97364
96727
  }
97365
- function getNarrowableTypeForReference(type, reference, checkMode) {
96728
+ function getNarrowableTypeForReference(type, reference2, checkMode) {
97366
96729
  if (isNoInferType(type)) {
97367
96730
  type = type.baseType;
97368
96731
  }
97369
- const substituteConstraints = !(checkMode && checkMode & 2) && someType(type, isGenericTypeWithUnionConstraint) && (isConstraintPosition(type, reference) || hasContextualTypeWithNoGenericTypes(reference, checkMode));
96732
+ const substituteConstraints = !(checkMode && checkMode & 2) && someType(type, isGenericTypeWithUnionConstraint) && (isConstraintPosition(type, reference2) || hasContextualTypeWithNoGenericTypes(reference2, checkMode));
97370
96733
  return substituteConstraints ? mapType(type, getBaseConstraintOrType) : type;
97371
96734
  }
97372
96735
  function isExportOrExportExpression(location) {
@@ -98702,9 +98065,9 @@ ${lanes.join("\n")}
98702
98065
  const signature = getDecoratorCallSignature(decorator);
98703
98066
  return signature ? getOrCreateTypeFromSignature(signature) : void 0;
98704
98067
  }
98705
- function getContextualTypeForSubstitutionExpression(template, substitutionExpression) {
98706
- if (template.parent.kind === 216) {
98707
- return getContextualTypeForArgument(template.parent, substitutionExpression);
98068
+ function getContextualTypeForSubstitutionExpression(template2, substitutionExpression) {
98069
+ if (template2.parent.kind === 216) {
98070
+ return getContextualTypeForArgument(template2.parent, substitutionExpression);
98708
98071
  }
98709
98072
  return void 0;
98710
98073
  }
@@ -102320,10 +101683,10 @@ ${lanes.join("\n")}
102320
101683
  return [createSyntheticExpression(node, emptyFreshJsxObjectType)];
102321
101684
  }
102322
101685
  if (node.kind === 216) {
102323
- const template = node.template;
102324
- const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())];
102325
- if (template.kind === 229) {
102326
- forEach(template.templateSpans, (span) => {
101686
+ const template2 = node.template;
101687
+ const args2 = [createSyntheticExpression(template2, getGlobalTemplateStringsArrayType())];
101688
+ if (template2.kind === 229) {
101689
+ forEach(template2.templateSpans, (span) => {
102327
101690
  args2.push(span.expression);
102328
101691
  });
102329
101692
  }
@@ -112315,11 +111678,11 @@ ${lanes.join("\n")}
112315
111678
  function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) {
112316
111679
  for (const staticBlock of staticBlocks) {
112317
111680
  if (staticBlock.pos >= startPos && staticBlock.pos <= endPos) {
112318
- const reference = factory.createPropertyAccessExpression(factory.createThis(), propName);
112319
- setParent(reference.expression, reference);
112320
- setParent(reference, staticBlock);
112321
- reference.flowNode = staticBlock.returnFlowNode;
112322
- const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
111681
+ const reference2 = factory.createPropertyAccessExpression(factory.createThis(), propName);
111682
+ setParent(reference2.expression, reference2);
111683
+ setParent(reference2, staticBlock);
111684
+ reference2.flowNode = staticBlock.returnFlowNode;
111685
+ const flowType = getFlowTypeOfReference(reference2, propType, getOptionalType(propType));
112323
111686
  if (!containsUndefinedType(flowType)) {
112324
111687
  return true;
112325
111688
  }
@@ -112328,11 +111691,11 @@ ${lanes.join("\n")}
112328
111691
  return false;
112329
111692
  }
112330
111693
  function isPropertyInitializedInConstructor(propName, propType, constructor) {
112331
- const reference = isComputedPropertyName(propName) ? factory.createElementAccessExpression(factory.createThis(), propName.expression) : factory.createPropertyAccessExpression(factory.createThis(), propName);
112332
- setParent(reference.expression, reference);
112333
- setParent(reference, constructor);
112334
- reference.flowNode = constructor.returnFlowNode;
112335
- const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
111694
+ const reference2 = isComputedPropertyName(propName) ? factory.createElementAccessExpression(factory.createThis(), propName.expression) : factory.createPropertyAccessExpression(factory.createThis(), propName);
111695
+ setParent(reference2.expression, reference2);
111696
+ setParent(reference2, constructor);
111697
+ reference2.flowNode = constructor.returnFlowNode;
111698
+ const flowType = getFlowTypeOfReference(reference2, propType, getOptionalType(propType));
112336
111699
  return !containsUndefinedType(flowType);
112337
111700
  }
112338
111701
  function checkInterfaceDeclaration(node) {
@@ -115407,21 +114770,21 @@ ${lanes.join("\n")}
115407
114770
  function hasGlobalName(name) {
115408
114771
  return globals.has(escapeLeadingUnderscores(name));
115409
114772
  }
115410
- function getReferencedValueSymbol(reference, startInDeclarationContainer) {
115411
- const resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
114773
+ function getReferencedValueSymbol(reference2, startInDeclarationContainer) {
114774
+ const resolvedSymbol = getNodeLinks(reference2).resolvedSymbol;
115412
114775
  if (resolvedSymbol) {
115413
114776
  return resolvedSymbol;
115414
114777
  }
115415
- let location = reference;
114778
+ let location = reference2;
115416
114779
  if (startInDeclarationContainer) {
115417
- const parent2 = reference.parent;
115418
- if (isDeclaration(parent2) && reference === parent2.name) {
114780
+ const parent2 = reference2.parent;
114781
+ if (isDeclaration(parent2) && reference2 === parent2.name) {
115419
114782
  location = getDeclarationContainer(parent2);
115420
114783
  }
115421
114784
  }
115422
114785
  return resolveName(
115423
114786
  location,
115424
- reference.escapedText,
114787
+ reference2.escapedText,
115425
114788
  111551 | 1048576 | 2097152,
115426
114789
  /*nameNotFoundMessage*/
115427
114790
  void 0,
@@ -115429,14 +114792,14 @@ ${lanes.join("\n")}
115429
114792
  true
115430
114793
  );
115431
114794
  }
115432
- function getReferencedValueOrAliasSymbol(reference) {
115433
- const resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
114795
+ function getReferencedValueOrAliasSymbol(reference2) {
114796
+ const resolvedSymbol = getNodeLinks(reference2).resolvedSymbol;
115434
114797
  if (resolvedSymbol && resolvedSymbol !== unknownSymbol) {
115435
114798
  return resolvedSymbol;
115436
114799
  }
115437
114800
  return resolveName(
115438
- reference,
115439
- reference.escapedText,
114801
+ reference2,
114802
+ reference2.escapedText,
115440
114803
  111551 | 1048576 | 2097152,
115441
114804
  /*nameNotFoundMessage*/
115442
114805
  void 0,
@@ -115448,9 +114811,9 @@ ${lanes.join("\n")}
115448
114811
  }
115449
114812
  function getReferencedValueDeclaration(referenceIn) {
115450
114813
  if (!isGeneratedIdentifier(referenceIn)) {
115451
- const reference = getParseTreeNode(referenceIn, isIdentifier);
115452
- if (reference) {
115453
- const symbol = getReferencedValueSymbol(reference);
114814
+ const reference2 = getParseTreeNode(referenceIn, isIdentifier);
114815
+ if (reference2) {
114816
+ const symbol = getReferencedValueSymbol(reference2);
115454
114817
  if (symbol) {
115455
114818
  return getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
115456
114819
  }
@@ -115460,9 +114823,9 @@ ${lanes.join("\n")}
115460
114823
  }
115461
114824
  function getReferencedValueDeclarations(referenceIn) {
115462
114825
  if (!isGeneratedIdentifier(referenceIn)) {
115463
- const reference = getParseTreeNode(referenceIn, isIdentifier);
115464
- if (reference) {
115465
- const symbol = getReferencedValueSymbol(reference);
114826
+ const reference2 = getParseTreeNode(referenceIn, isIdentifier);
114827
+ if (reference2) {
114828
+ const symbol = getReferencedValueSymbol(reference2);
115466
114829
  if (symbol) {
115467
114830
  return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => {
115468
114831
  switch (declaration.kind) {
@@ -115803,8 +115166,8 @@ ${lanes.join("\n")}
115803
115166
  }
115804
115167
  }
115805
115168
  if (augmentations) {
115806
- for (const list of augmentations) {
115807
- for (const augmentation of list) {
115169
+ for (const list2 of augmentations) {
115170
+ for (const augmentation of list2) {
115808
115171
  if (!isGlobalScopeAugmentation(augmentation.parent)) continue;
115809
115172
  mergeModuleAugmentation(augmentation);
115810
115173
  }
@@ -115908,8 +115271,8 @@ ${lanes.join("\n")}
115908
115271
  1
115909
115272
  );
115910
115273
  if (augmentations) {
115911
- for (const list of augmentations) {
115912
- for (const augmentation of list) {
115274
+ for (const list2 of augmentations) {
115275
+ for (const augmentation of list2) {
115913
115276
  if (isGlobalScopeAugmentation(augmentation.parent)) continue;
115914
115277
  mergeModuleAugmentation(augmentation);
115915
115278
  }
@@ -115927,13 +115290,13 @@ ${lanes.join("\n")}
115927
115290
  }
115928
115291
  });
115929
115292
  } else {
115930
- const list = arrayFrom(conflictingSymbols.keys()).join(", ");
115293
+ const list2 = arrayFrom(conflictingSymbols.keys()).join(", ");
115931
115294
  diagnostics.add(addRelatedInfo(
115932
- createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list),
115295
+ createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list2),
115933
115296
  createDiagnosticForNode(secondFile, Diagnostics.Conflicts_are_in_this_file)
115934
115297
  ));
115935
115298
  diagnostics.add(addRelatedInfo(
115936
- createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list),
115299
+ createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list2),
115937
115300
  createDiagnosticForNode(firstFile, Diagnostics.Conflicts_are_in_this_file)
115938
115301
  ));
115939
115302
  }
@@ -116462,9 +115825,9 @@ ${lanes.join("\n")}
116462
115825
  }
116463
115826
  return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async");
116464
115827
  }
116465
- function checkGrammarForDisallowedTrailingComma(list, diag2 = Diagnostics.Trailing_comma_not_allowed) {
116466
- if (list && list.hasTrailingComma) {
116467
- return grammarErrorAtPos(list[0], list.end - ",".length, ",".length, diag2);
115828
+ function checkGrammarForDisallowedTrailingComma(list2, diag2 = Diagnostics.Trailing_comma_not_allowed) {
115829
+ if (list2 && list2.hasTrailingComma) {
115830
+ return grammarErrorAtPos(list2[0], list2.end - ",".length, ",".length, diag2);
116468
115831
  }
116469
115832
  return false;
116470
115833
  }
@@ -120373,21 +119736,21 @@ ${lanes.join("\n")}
120373
119736
  const lists = [];
120374
119737
  for (const mapping of getDecodedMappings()) {
120375
119738
  if (!isSourceMappedPosition(mapping)) continue;
120376
- let list = lists[mapping.sourceIndex];
120377
- if (!list) lists[mapping.sourceIndex] = list = [];
120378
- list.push(mapping);
119739
+ let list2 = lists[mapping.sourceIndex];
119740
+ if (!list2) lists[mapping.sourceIndex] = list2 = [];
119741
+ list2.push(mapping);
120379
119742
  }
120380
- sourceMappings = lists.map((list) => sortAndDeduplicate(list, compareSourcePositions, sameMappedPosition));
119743
+ sourceMappings = lists.map((list2) => sortAndDeduplicate(list2, compareSourcePositions, sameMappedPosition));
120381
119744
  }
120382
119745
  return sourceMappings[sourceIndex];
120383
119746
  }
120384
119747
  function getGeneratedMappings() {
120385
119748
  if (generatedMappings === void 0) {
120386
- const list = [];
119749
+ const list2 = [];
120387
119750
  for (const mapping of getDecodedMappings()) {
120388
- list.push(mapping);
119751
+ list2.push(mapping);
120389
119752
  }
120390
- generatedMappings = sortAndDeduplicate(list, compareGeneratedPositions, sameMappedPosition);
119753
+ generatedMappings = sortAndDeduplicate(list2, compareGeneratedPositions, sameMappedPosition);
120391
119754
  }
120392
119755
  return generatedMappings;
120393
119756
  }
@@ -121693,18 +121056,18 @@ ${lanes.join("\n")}
121693
121056
  const templateArguments = [void 0];
121694
121057
  const cookedStrings = [];
121695
121058
  const rawStrings = [];
121696
- const template = node.template;
121697
- if (level === 0 && !hasInvalidEscape(template)) {
121059
+ const template2 = node.template;
121060
+ if (level === 0 && !hasInvalidEscape(template2)) {
121698
121061
  return visitEachChild(node, visitor, context);
121699
121062
  }
121700
121063
  const { factory: factory2 } = context;
121701
- if (isNoSubstitutionTemplateLiteral(template)) {
121702
- cookedStrings.push(createTemplateCooked(factory2, template));
121703
- rawStrings.push(getRawLiteral(factory2, template, currentSourceFile));
121064
+ if (isNoSubstitutionTemplateLiteral(template2)) {
121065
+ cookedStrings.push(createTemplateCooked(factory2, template2));
121066
+ rawStrings.push(getRawLiteral(factory2, template2, currentSourceFile));
121704
121067
  } else {
121705
- cookedStrings.push(createTemplateCooked(factory2, template.head));
121706
- rawStrings.push(getRawLiteral(factory2, template.head, currentSourceFile));
121707
- for (const templateSpan of template.templateSpans) {
121068
+ cookedStrings.push(createTemplateCooked(factory2, template2.head));
121069
+ rawStrings.push(getRawLiteral(factory2, template2.head, currentSourceFile));
121070
+ for (const templateSpan of template2.templateSpans) {
121708
121071
  cookedStrings.push(createTemplateCooked(factory2, templateSpan.literal));
121709
121072
  rawStrings.push(getRawLiteral(factory2, templateSpan.literal, currentSourceFile));
121710
121073
  templateArguments.push(Debug.checkDefined(visitNode(templateSpan.expression, visitor, isExpression)));
@@ -121734,8 +121097,8 @@ ${lanes.join("\n")}
121734
121097
  templateArguments
121735
121098
  );
121736
121099
  }
121737
- function createTemplateCooked(factory2, template) {
121738
- return template.templateFlags & 26656 ? factory2.createVoidZero() : factory2.createStringLiteral(template.text);
121100
+ function createTemplateCooked(factory2, template2) {
121101
+ return template2.templateFlags & 26656 ? factory2.createVoidZero() : factory2.createStringLiteral(template2.text);
121739
121102
  }
121740
121103
  function getRawLiteral(factory2, node, currentSourceFile) {
121741
121104
  let text = node.rawText;
@@ -128281,13 +127644,13 @@ ${lanes.join("\n")}
128281
127644
  const boundTag = factory2.createFunctionBindCall(tag, classThis, []);
128282
127645
  setOriginalNode(boundTag, node);
128283
127646
  setTextRange(boundTag, node);
128284
- const template = visitNode(node.template, visitor, isTemplateLiteral);
127647
+ const template2 = visitNode(node.template, visitor, isTemplateLiteral);
128285
127648
  return factory2.updateTaggedTemplateExpression(
128286
127649
  node,
128287
127650
  boundTag,
128288
127651
  /*typeArguments*/
128289
127652
  void 0,
128290
- template
127653
+ template2
128291
127654
  );
128292
127655
  }
128293
127656
  return visitEachChild(node, visitor, context);
@@ -136363,12 +135726,12 @@ ${lanes.join("\n")}
136363
135726
  0,
136364
135727
  temp
136365
135728
  );
136366
- const list = factory2.createVariableDeclarationList(vars);
136367
- setTextRange(list, node.variableDeclaration);
135729
+ const list2 = factory2.createVariableDeclarationList(vars);
135730
+ setTextRange(list2, node.variableDeclaration);
136368
135731
  const destructure = factory2.createVariableStatement(
136369
135732
  /*modifiers*/
136370
135733
  void 0,
136371
- list
135734
+ list2
136372
135735
  );
136373
135736
  updated = factory2.updateCatchClause(node, newVariableDeclaration, addStatementToStartOfBlock(node.block, destructure));
136374
135737
  } else {
@@ -136654,23 +136017,23 @@ ${lanes.join("\n")}
136654
136017
  }
136655
136018
  function transformAndSpreadElements(elements, isArgumentList, multiLine, hasTrailingComma) {
136656
136019
  const numElements = elements.length;
136657
- const segments = flatten(
136020
+ const segments2 = flatten(
136658
136021
  // As we visit each element, we return one of two functions to use as the "key":
136659
136022
  // - `visitSpanOfSpreads` for one or more contiguous `...` spread expressions, i.e. `...a, ...b` in `[1, 2, ...a, ...b]`
136660
136023
  // - `visitSpanOfNonSpreads` for one or more contiguous non-spread elements, i.e. `1, 2`, in `[1, 2, ...a, ...b]`
136661
136024
  spanMap(elements, partitionSpread, (partition, visitPartition, _start, end) => visitPartition(partition, multiLine, hasTrailingComma && end === numElements))
136662
136025
  );
136663
- if (segments.length === 1) {
136664
- const firstSegment = segments[0];
136026
+ if (segments2.length === 1) {
136027
+ const firstSegment = segments2[0];
136665
136028
  if (isArgumentList && !compilerOptions.downlevelIteration || isPackedArrayLiteral(firstSegment.expression) || isCallToHelper(firstSegment.expression, "___spreadArray")) {
136666
136029
  return firstSegment.expression;
136667
136030
  }
136668
136031
  }
136669
136032
  const helpers = emitHelpers();
136670
- const startsWithSpread = segments[0].kind !== 0;
136671
- let expression = startsWithSpread ? factory2.createArrayLiteralExpression() : segments[0].expression;
136672
- for (let i2 = startsWithSpread ? 0 : 1; i2 < segments.length; i2++) {
136673
- const segment = segments[i2];
136033
+ const startsWithSpread = segments2[0].kind !== 0;
136034
+ let expression = startsWithSpread ? factory2.createArrayLiteralExpression() : segments2[0].expression;
136035
+ for (let i2 = startsWithSpread ? 0 : 1; i2 < segments2.length; i2++) {
136036
+ const segment = segments2[i2];
136674
136037
  expression = helpers.createSpreadArrayHelper(
136675
136038
  expression,
136676
136039
  segment.expression,
@@ -162172,7 +161535,7 @@ ${lanes.join("\n")}
162172
161535
  brightWhite: (str) => str
162173
161536
  };
162174
161537
  }
162175
- function bold(str) {
161538
+ function bold2(str) {
162176
161539
  return `\x1B[1m${str}\x1B[22m`;
162177
161540
  }
162178
161541
  const isWindows2 = sys2.getEnvironmentVariable("OS") && sys2.getEnvironmentVariable("OS").toLowerCase().includes("windows");
@@ -162196,7 +161559,7 @@ ${lanes.join("\n")}
162196
161559
  return `\x1B[97m${str}\x1B[39m`;
162197
161560
  }
162198
161561
  return {
162199
- bold,
161562
+ bold: bold2,
162200
161563
  blue,
162201
161564
  brightWhite,
162202
161565
  blueBackground
@@ -165742,15 +165105,15 @@ ${lanes.join("\n")}
165742
165105
  return false;
165743
165106
  }
165744
165107
  function findListItemInfo(node) {
165745
- const list = findContainingList(node);
165746
- if (!list) {
165108
+ const list2 = findContainingList(node);
165109
+ if (!list2) {
165747
165110
  return void 0;
165748
165111
  }
165749
- const children = list.getChildren();
165112
+ const children = list2.getChildren();
165750
165113
  const listItemIndex = indexOfNode(children, node);
165751
165114
  return {
165752
165115
  listItemIndex,
165753
- list
165116
+ list: list2
165754
165117
  };
165755
165118
  }
165756
165119
  function hasChildOfKind(n2, kind, sourceFile) {
@@ -167146,26 +166509,26 @@ ${lanes.join("\n")}
167146
166509
  /* link */
167147
166510
  );
167148
166511
  }
167149
- function buildLinkParts(link, checker) {
166512
+ function buildLinkParts(link2, checker) {
167150
166513
  var _a2;
167151
- const prefix2 = isJSDocLink(link) ? "link" : isJSDocLinkCode(link) ? "linkcode" : "linkplain";
166514
+ const prefix2 = isJSDocLink(link2) ? "link" : isJSDocLinkCode(link2) ? "linkcode" : "linkplain";
167152
166515
  const parts = [linkPart(`{@${prefix2} `)];
167153
- if (!link.name) {
167154
- if (link.text) {
167155
- parts.push(linkTextPart(link.text));
166516
+ if (!link2.name) {
166517
+ if (link2.text) {
166518
+ parts.push(linkTextPart(link2.text));
167156
166519
  }
167157
166520
  } else {
167158
- const symbol = checker == null ? void 0 : checker.getSymbolAtLocation(link.name);
166521
+ const symbol = checker == null ? void 0 : checker.getSymbolAtLocation(link2.name);
167159
166522
  const targetSymbol = symbol && checker ? getSymbolTarget(symbol, checker) : void 0;
167160
- const suffix = findLinkNameEnd(link.text);
167161
- const name = getTextOfNode(link.name) + link.text.slice(0, suffix);
167162
- const text = skipSeparatorFromLinkText(link.text.slice(suffix));
166523
+ const suffix = findLinkNameEnd(link2.text);
166524
+ const name = getTextOfNode(link2.name) + link2.text.slice(0, suffix);
166525
+ const text = skipSeparatorFromLinkText(link2.text.slice(suffix));
167163
166526
  const decl = (targetSymbol == null ? void 0 : targetSymbol.valueDeclaration) || ((_a2 = targetSymbol == null ? void 0 : targetSymbol.declarations) == null ? void 0 : _a2[0]);
167164
166527
  if (decl) {
167165
166528
  parts.push(linkNamePart(name, decl));
167166
166529
  if (text) parts.push(linkTextPart(text));
167167
166530
  } else {
167168
- const separator = suffix === 0 || link.text.charCodeAt(suffix) === 124 && name.charCodeAt(name.length - 1) !== 32 ? " " : "";
166531
+ const separator = suffix === 0 || link2.text.charCodeAt(suffix) === 124 && name.charCodeAt(name.length - 1) !== 32 ? " " : "";
167169
166532
  parts.push(linkTextPart(name + separator + text));
167170
166533
  }
167171
166534
  }
@@ -173364,12 +172727,12 @@ interface Symbol {
173364
172727
  void 0,
173365
172728
  typeParameter.name
173366
172729
  );
173367
- const template = factory.createJSDocTemplateTag(
172730
+ const template2 = factory.createJSDocTemplateTag(
173368
172731
  factory.createIdentifier("template"),
173369
172732
  constraint && cast(constraint, isJSDocTypeExpression),
173370
172733
  [parameter]
173371
172734
  );
173372
- templates.push(template);
172735
+ templates.push(template2);
173373
172736
  });
173374
172737
  const jsDoc = factory.createJSDocComment(
173375
172738
  /*comment*/
@@ -174431,9 +173794,9 @@ interface Symbol {
174431
173794
  });
174432
173795
  return references.length === 0 || cannotInline ? void 0 : references;
174433
173796
  }
174434
- function getReplacementExpression(reference, replacement) {
173797
+ function getReplacementExpression(reference2, replacement) {
174435
173798
  replacement = getSynthesizedDeepClone(replacement);
174436
- const { parent: parent2 } = reference;
173799
+ const { parent: parent2 } = reference2;
174437
173800
  if (isExpression(parent2) && (getExpressionPrecedence(replacement) < getExpressionPrecedence(parent2) || needsParentheses(parent2))) {
174438
173801
  return factory.createParenthesizedExpression(replacement);
174439
173802
  }
@@ -174443,20 +173806,20 @@ interface Symbol {
174443
173806
  if (isPropertyAccessExpression(parent2) && (isNumericLiteral(replacement) || isObjectLiteralExpression(replacement))) {
174444
173807
  return factory.createParenthesizedExpression(replacement);
174445
173808
  }
174446
- if (isIdentifier(reference) && isShorthandPropertyAssignment(parent2)) {
174447
- return factory.createPropertyAssignment(reference, replacement);
173809
+ if (isIdentifier(reference2) && isShorthandPropertyAssignment(parent2)) {
173810
+ return factory.createPropertyAssignment(reference2, replacement);
174448
173811
  }
174449
173812
  return replacement;
174450
173813
  }
174451
- function replaceTemplateStringVariableWithLiteral(tracker, sourceFile, reference, replacement) {
174452
- const templateExpression = reference.parent;
174453
- const index = templateExpression.templateSpans.indexOf(reference);
173814
+ function replaceTemplateStringVariableWithLiteral(tracker, sourceFile, reference2, replacement) {
173815
+ const templateExpression = reference2.parent;
173816
+ const index = templateExpression.templateSpans.indexOf(reference2);
174454
173817
  const prevNode = index === 0 ? templateExpression.head : templateExpression.templateSpans[index - 1];
174455
173818
  tracker.replaceRangeWithText(
174456
173819
  sourceFile,
174457
173820
  {
174458
173821
  pos: prevNode.getEnd() - 2,
174459
- end: reference.literal.getStart() + 1
173822
+ end: reference2.literal.getStart() + 1
174460
173823
  },
174461
173824
  replacement.text.replace(/\\/g, "\\\\").replace(/`/g, "\\`")
174462
173825
  );
@@ -175324,20 +174687,20 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
175324
174687
  }
175325
174688
  function entryToAccessExpression(entry) {
175326
174689
  if (entry.node.parent) {
175327
- const reference = entry.node;
175328
- const parent2 = reference.parent;
174690
+ const reference2 = entry.node;
174691
+ const parent2 = reference2.parent;
175329
174692
  switch (parent2.kind) {
175330
174693
  // `C.foo`
175331
174694
  case 212:
175332
174695
  const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression);
175333
- if (propertyAccessExpression && propertyAccessExpression.expression === reference) {
174696
+ if (propertyAccessExpression && propertyAccessExpression.expression === reference2) {
175334
174697
  return propertyAccessExpression;
175335
174698
  }
175336
174699
  break;
175337
174700
  // `C["foo"]`
175338
174701
  case 213:
175339
174702
  const elementAccessExpression = tryCast(parent2, isElementAccessExpression);
175340
- if (elementAccessExpression && elementAccessExpression.expression === reference) {
174703
+ if (elementAccessExpression && elementAccessExpression.expression === reference2) {
175341
174704
  return elementAccessExpression;
175342
174705
  }
175343
174706
  break;
@@ -175346,9 +174709,9 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
175346
174709
  return void 0;
175347
174710
  }
175348
174711
  function entryToType(entry) {
175349
- const reference = entry.node;
175350
- if (getMeaningFromLocation(reference) === 2 || isExpressionWithTypeArgumentsInClassExtendsClause(reference.parent)) {
175351
- return reference;
174712
+ const reference2 = entry.node;
174713
+ if (getMeaningFromLocation(reference2) === 2 || isExpressionWithTypeArgumentsInClassExtendsClause(reference2.parent)) {
174714
+ return reference2;
175352
174715
  }
175353
174716
  return void 0;
175354
174717
  }
@@ -178362,7 +177725,7 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
178362
177725
  }
178363
177726
  }
178364
177727
  function createSyntaxList(nodes, parent2) {
178365
- const list = createNode(353, nodes.pos, nodes.end, parent2);
177728
+ const list2 = createNode(353, nodes.pos, nodes.end, parent2);
178366
177729
  const children = [];
178367
177730
  let pos = nodes.pos;
178368
177731
  for (const node of nodes) {
@@ -178371,8 +177734,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
178371
177734
  pos = node.end;
178372
177735
  }
178373
177736
  addSyntheticNodes(children, pos, nodes.end, parent2);
178374
- list._children = children;
178375
- return list;
177737
+ list2._children = children;
177738
+ return list2;
178376
177739
  }
178377
177740
  var TokenOrIdentifierObject = class {
178378
177741
  constructor(kind, pos, end) {
@@ -181976,8 +181339,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
181976
181339
  continue;
181977
181340
  }
181978
181341
  const diagnostics = program.getSemanticDiagnostics(sourceFile, cancellationToken);
181979
- const isUsedElsewhere = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(variableName, checker, sourceFile, (reference) => {
181980
- return identifier !== reference && !symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker);
181342
+ const isUsedElsewhere = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(variableName, checker, sourceFile, (reference2) => {
181343
+ return identifier !== reference2 && !symbolReferenceIsAlsoMissingAwait(reference2, diagnostics, sourceFile, checker);
181981
181344
  });
181982
181345
  if (isUsedElsewhere) {
181983
181346
  isCompleteFix = false;
@@ -182016,8 +181379,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
182016
181379
  return sides && { identifiers: sides, isCompleteFix };
182017
181380
  }
182018
181381
  }
182019
- function symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker) {
182020
- const errorNode = isPropertyAccessExpression(reference.parent) ? reference.parent.name : isBinaryExpression(reference.parent) ? reference.parent : reference;
181382
+ function symbolReferenceIsAlsoMissingAwait(reference2, diagnostics, sourceFile, checker) {
181383
+ const errorNode = isPropertyAccessExpression(reference2.parent) ? reference2.parent.name : isBinaryExpression(reference2.parent) ? reference2.parent : reference2;
182021
181384
  const diagnostic = find(diagnostics, (diagnostic2) => diagnostic2.start === errorNode.getStart(sourceFile) && diagnostic2.start + diagnostic2.length === errorNode.getEnd());
182022
181385
  return diagnostic && contains(errorCodes3, diagnostic.code) || // A Promise is usually not correct in a binary expression (it's not valid
182023
181386
  // in an arithmetic expression and an equality comparison seems unusual),
@@ -189203,11 +188566,11 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
189203
188566
  const entries = ts_FindAllReferences_exports.Core.getReferencedSymbolsForNode(parent2.pos, referent, program, sourceFiles, cancellationToken);
189204
188567
  if (entries) {
189205
188568
  for (const entry of entries) {
189206
- for (const reference of entry.references) {
189207
- if (reference.kind === ts_FindAllReferences_exports.EntryKind.Node) {
189208
- const isSuperCall2 = isSuperKeyword(reference.node) && isCallExpression(reference.node.parent) && reference.node.parent.arguments.length > index;
189209
- const isSuperMethodCall = isPropertyAccessExpression(reference.node.parent) && isSuperKeyword(reference.node.parent.expression) && isCallExpression(reference.node.parent.parent) && reference.node.parent.parent.arguments.length > index;
189210
- const isOverriddenMethod = (isMethodDeclaration(reference.node.parent) || isMethodSignature(reference.node.parent)) && reference.node.parent !== parameter.parent && reference.node.parent.parameters.length > index;
188569
+ for (const reference2 of entry.references) {
188570
+ if (reference2.kind === ts_FindAllReferences_exports.EntryKind.Node) {
188571
+ const isSuperCall2 = isSuperKeyword(reference2.node) && isCallExpression(reference2.node.parent) && reference2.node.parent.arguments.length > index;
188572
+ const isSuperMethodCall = isPropertyAccessExpression(reference2.node.parent) && isSuperKeyword(reference2.node.parent.expression) && isCallExpression(reference2.node.parent.parent) && reference2.node.parent.parent.arguments.length > index;
188573
+ const isOverriddenMethod = (isMethodDeclaration(reference2.node.parent) || isMethodSignature(reference2.node.parent)) && reference2.node.parent !== parameter.parent && reference2.node.parent.parameters.length > index;
189211
188574
  if (isSuperCall2 || isSuperMethodCall || isOverriddenMethod) return false;
189212
188575
  }
189213
188576
  }
@@ -189232,7 +188595,7 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
189232
188595
  }
189233
188596
  }
189234
188597
  function isCallbackLike(checker, sourceFile, name) {
189235
- return !!ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(name, checker, sourceFile, (reference) => isIdentifier(reference) && isCallExpression(reference.parent) && reference.parent.arguments.includes(reference));
188598
+ return !!ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(name, checker, sourceFile, (reference2) => isIdentifier(reference2) && isCallExpression(reference2.parent) && reference2.parent.arguments.includes(reference2));
189236
188599
  }
189237
188600
  function isLastParameter(func, parameter, isFixAll) {
189238
188601
  const parameters = func.parameters;
@@ -191042,9 +190405,9 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
191042
190405
  return void 0;
191043
190406
  }
191044
190407
  const usage2 = createEmptyUsage();
191045
- for (const reference of references) {
190408
+ for (const reference2 of references) {
191046
190409
  cancellationToken.throwIfCancellationRequested();
191047
- calculateUsageOfNode(reference, usage2);
190410
+ calculateUsageOfNode(reference2, usage2);
191048
190411
  }
191049
190412
  const calls = [...usage2.constructs || [], ...usage2.calls || []];
191050
190413
  return declaration.parameters.map((parameter, parameterIndex) => {
@@ -191077,17 +190440,17 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
191077
190440
  }
191078
190441
  function thisParameter() {
191079
190442
  const usage2 = createEmptyUsage();
191080
- for (const reference of references) {
190443
+ for (const reference2 of references) {
191081
190444
  cancellationToken.throwIfCancellationRequested();
191082
- calculateUsageOfNode(reference, usage2);
190445
+ calculateUsageOfNode(reference2, usage2);
191083
190446
  }
191084
190447
  return combineTypes(usage2.candidateThisTypes || emptyArray);
191085
190448
  }
191086
190449
  function inferTypesFromReferencesSingle(references2) {
191087
190450
  const usage2 = createEmptyUsage();
191088
- for (const reference of references2) {
190451
+ for (const reference2 of references2) {
191089
190452
  cancellationToken.throwIfCancellationRequested();
191090
- calculateUsageOfNode(reference, usage2);
190453
+ calculateUsageOfNode(reference2, usage2);
191091
190454
  }
191092
190455
  return inferTypes(usage2);
191093
190456
  }
@@ -195061,21 +194424,21 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
195061
194424
  write();
195062
194425
  }
195063
194426
  }
195064
- function printSnippetList(format3, list, sourceFile) {
195065
- const unescaped = printUnescapedSnippetList(format3, list, sourceFile);
194427
+ function printSnippetList(format3, list2, sourceFile) {
194428
+ const unescaped = printUnescapedSnippetList(format3, list2, sourceFile);
195066
194429
  return escapes ? ts_textChanges_exports.applyChanges(unescaped, escapes) : unescaped;
195067
194430
  }
195068
- function printUnescapedSnippetList(format3, list, sourceFile) {
194431
+ function printUnescapedSnippetList(format3, list2, sourceFile) {
195069
194432
  escapes = void 0;
195070
194433
  writer.clear();
195071
- printer.writeList(format3, list, sourceFile, writer);
194434
+ printer.writeList(format3, list2, sourceFile, writer);
195072
194435
  return writer.getText();
195073
194436
  }
195074
- function printAndFormatSnippetList(format3, list, sourceFile, formatContext) {
194437
+ function printAndFormatSnippetList(format3, list2, sourceFile, formatContext) {
195075
194438
  const syntheticFile = {
195076
194439
  text: printUnescapedSnippetList(
195077
194440
  format3,
195078
- list,
194441
+ list2,
195079
194442
  sourceFile
195080
194443
  ),
195081
194444
  getLineAndCharacterOfPosition(pos) {
@@ -195083,7 +194446,7 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
195083
194446
  }
195084
194447
  };
195085
194448
  const formatOptions = getFormatCodeSettingsForWriting(formatContext, sourceFile);
195086
- const changes = flatMap(list, (node) => {
194449
+ const changes = flatMap(list2, (node) => {
195087
194450
  const nodeWithPos = ts_textChanges_exports.assignPositionsToNode(node);
195088
194451
  return ts_formatting_exports.formatNodeGivenIndentation(
195089
194452
  nodeWithPos,
@@ -200148,10 +199511,10 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
200148
199511
  result.push(entry);
200149
199512
  continue;
200150
199513
  }
200151
- const reference = result[refIndex];
199514
+ const reference2 = result[refIndex];
200152
199515
  result[refIndex] = {
200153
- definition: reference.definition,
200154
- references: reference.references.concat(entry.references).sort((entry1, entry2) => {
199516
+ definition: reference2.definition,
199517
+ references: reference2.references.concat(entry.references).sort((entry1, entry2) => {
200155
199518
  const entry1File = getSourceFileIndexOfEntry(program, entry1);
200156
199519
  const entry2File = getSourceFileIndexOfEntry(program, entry2);
200157
199520
  if (entry1File !== entry2File) {
@@ -200172,27 +199535,27 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
200172
199535
  }
200173
199536
  function getReferencedSymbolsForModule(program, symbol, excludeImportTypeOfExportEquals, sourceFiles, sourceFilesSet) {
200174
199537
  Debug.assert(!!symbol.valueDeclaration);
200175
- const references = mapDefined(findModuleReferences(program, sourceFiles, symbol), (reference) => {
200176
- if (reference.kind === "import") {
200177
- const parent2 = reference.literal.parent;
199538
+ const references = mapDefined(findModuleReferences(program, sourceFiles, symbol), (reference2) => {
199539
+ if (reference2.kind === "import") {
199540
+ const parent2 = reference2.literal.parent;
200178
199541
  if (isLiteralTypeNode(parent2)) {
200179
199542
  const importType = cast(parent2.parent, isImportTypeNode);
200180
199543
  if (excludeImportTypeOfExportEquals && !importType.qualifier) {
200181
199544
  return void 0;
200182
199545
  }
200183
199546
  }
200184
- return nodeEntry(reference.literal);
200185
- } else if (reference.kind === "implicit") {
200186
- const range = reference.literal.text !== externalHelpersModuleNameText && forEachChildRecursively(
200187
- reference.referencingFile,
199547
+ return nodeEntry(reference2.literal);
199548
+ } else if (reference2.kind === "implicit") {
199549
+ const range = reference2.literal.text !== externalHelpersModuleNameText && forEachChildRecursively(
199550
+ reference2.referencingFile,
200188
199551
  (n2) => !(n2.transformFlags & 2) ? "skip" : isJsxElement(n2) || isJsxSelfClosingElement(n2) || isJsxFragment(n2) ? n2 : void 0
200189
- ) || reference.referencingFile.statements[0] || reference.referencingFile;
199552
+ ) || reference2.referencingFile.statements[0] || reference2.referencingFile;
200190
199553
  return nodeEntry(range);
200191
199554
  } else {
200192
199555
  return {
200193
199556
  kind: 0,
200194
- fileName: reference.referencingFile.fileName,
200195
- textSpan: createTextSpanFromRange(reference.ref)
199557
+ fileName: reference2.referencingFile.fileName,
199558
+ textSpan: createTextSpanFromRange(reference2.ref)
200196
199559
  };
200197
199560
  }
200198
199561
  });
@@ -201700,8 +201063,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
201700
201063
  }
201701
201064
  const typeReferenceDirective = findReferenceInPosition(sourceFile.typeReferenceDirectives, position);
201702
201065
  if (typeReferenceDirective) {
201703
- const reference = (_a2 = program.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(typeReferenceDirective, sourceFile)) == null ? void 0 : _a2.resolvedTypeReferenceDirective;
201704
- const file = reference && program.getSourceFile(reference.resolvedFileName);
201066
+ const reference2 = (_a2 = program.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(typeReferenceDirective, sourceFile)) == null ? void 0 : _a2.resolvedTypeReferenceDirective;
201067
+ const file = reference2 && program.getSourceFile(reference2.resolvedFileName);
201705
201068
  return file && { reference: typeReferenceDirective, fileName: file.fileName, file, unverified: false };
201706
201069
  }
201707
201070
  const libReferenceDirective = findReferenceInPosition(sourceFile.libReferenceDirectives, position);
@@ -204861,17 +204224,17 @@ ${content}
204861
204224
  function getArgumentOrParameterListInfo(node, position, sourceFile, checker) {
204862
204225
  const info = getArgumentOrParameterListAndIndex(node, sourceFile, checker);
204863
204226
  if (!info) return void 0;
204864
- const { list, argumentIndex } = info;
204865
- const argumentCount = getArgumentCount(checker, list);
204866
- const argumentsSpan = getApplicableSpanForArguments(list, sourceFile);
204867
- return { list, argumentIndex, argumentCount, argumentsSpan };
204227
+ const { list: list2, argumentIndex } = info;
204228
+ const argumentCount = getArgumentCount(checker, list2);
204229
+ const argumentsSpan = getApplicableSpanForArguments(list2, sourceFile);
204230
+ return { list: list2, argumentIndex, argumentCount, argumentsSpan };
204868
204231
  }
204869
204232
  function getArgumentOrParameterListAndIndex(node, sourceFile, checker) {
204870
204233
  if (node.kind === 30 || node.kind === 21) {
204871
204234
  return { list: getChildListThatStartsWithOpenerToken(node.parent, node, sourceFile), argumentIndex: 0 };
204872
204235
  } else {
204873
- const list = findContainingList(node);
204874
- return list && { list, argumentIndex: getArgumentIndex(checker, list, node) };
204236
+ const list2 = findContainingList(node);
204237
+ return list2 && { list: list2, argumentIndex: getArgumentIndex(checker, list2, node) };
204875
204238
  }
204876
204239
  }
204877
204240
  function getImmediatelyContainingArgumentInfo(node, position, sourceFile, checker) {
@@ -204880,8 +204243,8 @@ ${content}
204880
204243
  const invocation = parent2;
204881
204244
  const info = getArgumentOrParameterListInfo(node, position, sourceFile, checker);
204882
204245
  if (!info) return void 0;
204883
- const { list, argumentIndex, argumentCount, argumentsSpan } = info;
204884
- const isTypeParameterList = !!parent2.typeArguments && parent2.typeArguments.pos === list.pos;
204246
+ const { list: list2, argumentIndex, argumentCount, argumentsSpan } = info;
204247
+ const isTypeParameterList = !!parent2.typeArguments && parent2.typeArguments.pos === list2.pos;
204885
204248
  return { isTypeParameterList, invocation: { kind: 0, node: invocation }, argumentsSpan, argumentIndex, argumentCount };
204886
204249
  } else if (isNoSubstitutionTemplateLiteral(node) && isTaggedTemplateExpression(parent2)) {
204887
204250
  if (isInsideTemplateLiteral(node, position, sourceFile)) {
@@ -205087,11 +204450,11 @@ ${content}
205087
204450
  return createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart);
205088
204451
  }
205089
204452
  function getApplicableSpanForTaggedTemplate(taggedTemplate, sourceFile) {
205090
- const template = taggedTemplate.template;
205091
- const applicableSpanStart = template.getStart();
205092
- let applicableSpanEnd = template.getEnd();
205093
- if (template.kind === 229) {
205094
- const lastSpan = last(template.templateSpans);
204453
+ const template2 = taggedTemplate.template;
204454
+ const applicableSpanStart = template2.getStart();
204455
+ let applicableSpanEnd = template2.getEnd();
204456
+ if (template2.kind === 229) {
204457
+ const lastSpan = last(template2.templateSpans);
205095
204458
  if (lastSpan.literal.getFullWidth() === 0) {
205096
204459
  applicableSpanEnd = skipTrivia(
205097
204460
  sourceFile.text,
@@ -207028,8 +206391,8 @@ ${content}
207028
206391
  const endPosition = this.insertNodeAfterWorker(sourceFile, after, newNode);
207029
206392
  this.insertNodeAt(sourceFile, endPosition, newNode, this.getInsertNodeAfterOptions(sourceFile, after));
207030
206393
  }
207031
- insertNodeAtEndOfList(sourceFile, list, newNode) {
207032
- this.insertNodeAt(sourceFile, list.end, newNode, { prefix: ", " });
206394
+ insertNodeAtEndOfList(sourceFile, list2, newNode) {
206395
+ this.insertNodeAt(sourceFile, list2.end, newNode, { prefix: ", " });
207033
206396
  }
207034
206397
  insertNodesAfter(sourceFile, after, newNodes) {
207035
206398
  const endPosition = this.insertNodeAfterWorker(sourceFile, after, first(newNodes));
@@ -207220,11 +206583,11 @@ ${options.prefix}` : "\n" : options.prefix
207220
206583
  }
207221
206584
  deletedNodesInLists.forEach((node) => {
207222
206585
  const sourceFile = node.getSourceFile();
207223
- const list = ts_formatting_exports.SmartIndenter.getContainingList(node, sourceFile);
207224
- if (node !== last(list)) return;
207225
- const lastNonDeletedIndex = findLastIndex(list, (n2) => !deletedNodesInLists.has(n2), list.length - 2);
206586
+ const list2 = ts_formatting_exports.SmartIndenter.getContainingList(node, sourceFile);
206587
+ if (node !== last(list2)) return;
206588
+ const lastNonDeletedIndex = findLastIndex(list2, (n2) => !deletedNodesInLists.has(n2), list2.length - 2);
207226
206589
  if (lastNonDeletedIndex !== -1) {
207227
- this.deleteRange(sourceFile, { pos: list[lastNonDeletedIndex].end, end: startPositionToDeleteNodeInList(sourceFile, list[lastNonDeletedIndex + 1]) });
206590
+ this.deleteRange(sourceFile, { pos: list2[lastNonDeletedIndex].end, end: startPositionToDeleteNodeInList(sourceFile, list2[lastNonDeletedIndex + 1]) });
207228
206591
  }
207229
206592
  });
207230
206593
  }
@@ -211178,7 +210541,7 @@ ${options.prefix}` : "\n" : options.prefix
211178
210541
  //
211179
210542
  position === range.end && (range.kind === 2 || position === sourceFile.getFullWidth()));
211180
210543
  }
211181
- function getOpenTokenForList(node, list) {
210544
+ function getOpenTokenForList(node, list2) {
211182
210545
  switch (node.kind) {
211183
210546
  case 177:
211184
210547
  case 263:
@@ -211192,17 +210555,17 @@ ${options.prefix}` : "\n" : options.prefix
211192
210555
  case 186:
211193
210556
  case 178:
211194
210557
  case 179:
211195
- if (node.typeParameters === list) {
210558
+ if (node.typeParameters === list2) {
211196
210559
  return 30;
211197
- } else if (node.parameters === list) {
210560
+ } else if (node.parameters === list2) {
211198
210561
  return 21;
211199
210562
  }
211200
210563
  break;
211201
210564
  case 214:
211202
210565
  case 215:
211203
- if (node.typeArguments === list) {
210566
+ if (node.typeArguments === list2) {
211204
210567
  return 30;
211205
- } else if (node.arguments === list) {
210568
+ } else if (node.arguments === list2) {
211206
210569
  return 21;
211207
210570
  }
211208
210571
  break;
@@ -211210,7 +210573,7 @@ ${options.prefix}` : "\n" : options.prefix
211210
210573
  case 232:
211211
210574
  case 265:
211212
210575
  case 266:
211213
- if (node.typeParameters === list) {
210576
+ if (node.typeParameters === list2) {
211214
210577
  return 30;
211215
210578
  }
211216
210579
  break;
@@ -211219,7 +210582,7 @@ ${options.prefix}` : "\n" : options.prefix
211219
210582
  case 187:
211220
210583
  case 234:
211221
210584
  case 206:
211222
- if (node.typeArguments === list) {
210585
+ if (node.typeArguments === list2) {
211223
210586
  return 30;
211224
210587
  }
211225
210588
  break;
@@ -211593,24 +210956,24 @@ ${options.prefix}` : "\n" : options.prefix
211593
210956
  case 208:
211594
210957
  return getList(node.elements);
211595
210958
  }
211596
- function getList(list) {
211597
- return list && rangeContainsStartEnd(getVisualListRange(node, list, sourceFile), start, end) ? list : void 0;
210959
+ function getList(list2) {
210960
+ return list2 && rangeContainsStartEnd(getVisualListRange(node, list2, sourceFile), start, end) ? list2 : void 0;
211598
210961
  }
211599
210962
  }
211600
- function getVisualListRange(node, list, sourceFile) {
210963
+ function getVisualListRange(node, list2, sourceFile) {
211601
210964
  const children = node.getChildren(sourceFile);
211602
210965
  for (let i2 = 1; i2 < children.length - 1; i2++) {
211603
- if (children[i2].pos === list.pos && children[i2].end === list.end) {
210966
+ if (children[i2].pos === list2.pos && children[i2].end === list2.end) {
211604
210967
  return { pos: children[i2 - 1].end, end: children[i2 + 1].getStart(sourceFile) };
211605
210968
  }
211606
210969
  }
211607
- return list;
210970
+ return list2;
211608
210971
  }
211609
- function getActualIndentationForListStartLine(list, sourceFile, options) {
211610
- if (!list) {
210972
+ function getActualIndentationForListStartLine(list2, sourceFile, options) {
210973
+ if (!list2) {
211611
210974
  return -1;
211612
210975
  }
211613
- return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options);
210976
+ return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list2.pos), sourceFile, options);
211614
210977
  }
211615
210978
  function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) {
211616
210979
  if (node.parent && node.parent.kind === 262) {
@@ -211629,19 +210992,19 @@ ${options.prefix}` : "\n" : options.prefix
211629
210992
  }
211630
210993
  return -1;
211631
210994
  }
211632
- function deriveActualIndentationFromList(list, index, sourceFile, options) {
211633
- Debug.assert(index >= 0 && index < list.length);
211634
- const node = list[index];
210995
+ function deriveActualIndentationFromList(list2, index, sourceFile, options) {
210996
+ Debug.assert(index >= 0 && index < list2.length);
210997
+ const node = list2[index];
211635
210998
  let lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile);
211636
210999
  for (let i2 = index - 1; i2 >= 0; i2--) {
211637
- if (list[i2].kind === 28) {
211000
+ if (list2[i2].kind === 28) {
211638
211001
  continue;
211639
211002
  }
211640
- const prevEndLine = sourceFile.getLineAndCharacterOfPosition(list[i2].end).line;
211003
+ const prevEndLine = sourceFile.getLineAndCharacterOfPosition(list2[i2].end).line;
211641
211004
  if (prevEndLine !== lineAndCharacter.line) {
211642
211005
  return findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options);
211643
211006
  }
211644
- lineAndCharacter = getStartLineAndCharacterForNode(list[i2], sourceFile);
211007
+ lineAndCharacter = getStartLineAndCharacterForNode(list2[i2], sourceFile);
211645
211008
  }
211646
211009
  return -1;
211647
211010
  }
@@ -231958,7 +231321,7 @@ var require_sort2 = __commonJS({
231958
231321
  "node_modules/@conventional-changelog/git-client/node_modules/semver/functions/sort.js"(exports, module) {
231959
231322
  "use strict";
231960
231323
  var compareBuild = require_compare_build2();
231961
- var sort = (list, loose) => list.sort((a2, b2) => compareBuild(a2, b2, loose));
231324
+ var sort = (list2, loose) => list2.sort((a2, b2) => compareBuild(a2, b2, loose));
231962
231325
  module.exports = sort;
231963
231326
  }
231964
231327
  });
@@ -231968,7 +231331,7 @@ var require_rsort2 = __commonJS({
231968
231331
  "node_modules/@conventional-changelog/git-client/node_modules/semver/functions/rsort.js"(exports, module) {
231969
231332
  "use strict";
231970
231333
  var compareBuild = require_compare_build2();
231971
- var rsort = (list, loose) => list.sort((a2, b2) => compareBuild(b2, a2, loose));
231334
+ var rsort = (list2, loose) => list2.sort((a2, b2) => compareBuild(b2, a2, loose));
231972
231335
  module.exports = rsort;
231973
231336
  }
231974
231337
  });
@@ -233368,8 +232731,420 @@ function isIgnored(commit = "", opts = {}) {
233368
232731
  return [...base, ...ignores].some((w2) => w2(commit));
233369
232732
  }
233370
232733
 
233371
- // node_modules/@commitlint/parse/lib/index.js
233372
- init_dist();
232734
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/regex.js
232735
+ var nomatchRegex = /(?!.*)/;
232736
+ function escape2(string) {
232737
+ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
232738
+ }
232739
+ function joinOr(parts) {
232740
+ return parts.map((val) => typeof val === "string" ? escape2(val.trim()) : val.source).filter(Boolean).join("|");
232741
+ }
232742
+ function getNotesRegex(noteKeywords, notesPattern) {
232743
+ if (!noteKeywords) {
232744
+ return nomatchRegex;
232745
+ }
232746
+ const noteKeywordsSelection = joinOr(noteKeywords);
232747
+ if (!notesPattern) {
232748
+ return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
232749
+ }
232750
+ return notesPattern(noteKeywordsSelection);
232751
+ }
232752
+ function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
232753
+ if (!issuePrefixes) {
232754
+ return nomatchRegex;
232755
+ }
232756
+ const flags = issuePrefixesCaseSensitive ? "g" : "gi";
232757
+ return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${joinOr(issuePrefixes)})([\\w-]+)(?=\\s|$|[,;.)\\]])`, flags);
232758
+ }
232759
+ function getReferencesRegex(referenceActions) {
232760
+ if (!referenceActions) {
232761
+ return /()(.+)/gi;
232762
+ }
232763
+ const joinedKeywords = joinOr(referenceActions);
232764
+ return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
232765
+ }
232766
+ function getFooterTokenRegex(issuePrefixes) {
232767
+ const issuePrefixSeparator = issuePrefixes ? `|\\s+(?:${joinOr(issuePrefixes)})` : "";
232768
+ return new RegExp(`^\\s*(?:BREAKING CHANGE|[\\w-]+)(?::\\s+${issuePrefixSeparator}).+`, "i");
232769
+ }
232770
+ function getParserRegexes(options = {}) {
232771
+ const notes = getNotesRegex(options.noteKeywords, options.notesPattern);
232772
+ const referenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive);
232773
+ const references = getReferencesRegex(options.referenceActions);
232774
+ const footerToken = getFooterTokenRegex(options.issuePrefixes);
232775
+ return {
232776
+ notes,
232777
+ referenceParts,
232778
+ references,
232779
+ footerToken,
232780
+ mentions: /@([\w-]+)/g,
232781
+ url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
232782
+ };
232783
+ }
232784
+
232785
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/utils.js
232786
+ var SCISSOR = "------------------------ >8 ------------------------";
232787
+ function trimNewLines(input) {
232788
+ const matches = input.match(/[^\r\n]/);
232789
+ if (typeof matches?.index !== "number") {
232790
+ return "";
232791
+ }
232792
+ const firstIndex = matches.index;
232793
+ let lastIndex = input.length - 1;
232794
+ while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
232795
+ lastIndex--;
232796
+ }
232797
+ return input.substring(firstIndex, lastIndex + 1);
232798
+ }
232799
+ function appendLine(src, line) {
232800
+ return src ? `${src}
232801
+ ${line || ""}` : line || "";
232802
+ }
232803
+ function getCommentFilter(char) {
232804
+ return char ? (line) => !line.startsWith(char) : () => true;
232805
+ }
232806
+ function truncateToScissor(lines, commentChar) {
232807
+ const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR}`);
232808
+ if (scissorIndex === -1) {
232809
+ return lines;
232810
+ }
232811
+ return lines.slice(0, scissorIndex);
232812
+ }
232813
+ function gpgFilter(line) {
232814
+ return !line.match(/^\s*gpg:/);
232815
+ }
232816
+ function assignMatchedCorrespondence(target, matches, correspondence) {
232817
+ const { groups } = matches;
232818
+ for (let i2 = 0, len = correspondence.length, key; i2 < len; i2++) {
232819
+ key = correspondence[i2];
232820
+ target[key] = (groups ? groups[key] : matches[i2 + 1]) || null;
232821
+ }
232822
+ return target;
232823
+ }
232824
+
232825
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/options.js
232826
+ var defaultOptions = {
232827
+ noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
232828
+ issuePrefixes: ["#"],
232829
+ referenceActions: [
232830
+ "close",
232831
+ "closes",
232832
+ "closed",
232833
+ "fix",
232834
+ "fixes",
232835
+ "fixed",
232836
+ "resolve",
232837
+ "resolves",
232838
+ "resolved"
232839
+ ],
232840
+ headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
232841
+ headerCorrespondence: [
232842
+ "type",
232843
+ "scope",
232844
+ "subject"
232845
+ ],
232846
+ revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
232847
+ revertCorrespondence: ["header", "hash"],
232848
+ fieldPattern: /^-(.*?)-$/
232849
+ };
232850
+
232851
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/CommitParser.js
232852
+ function createCommitObject(initialData = {}) {
232853
+ return {
232854
+ merge: null,
232855
+ revert: null,
232856
+ header: null,
232857
+ body: null,
232858
+ footer: null,
232859
+ notes: [],
232860
+ mentions: [],
232861
+ references: [],
232862
+ ...initialData
232863
+ };
232864
+ }
232865
+ var CommitParser = class {
232866
+ options;
232867
+ regexes;
232868
+ lines = [];
232869
+ lineIndex = 0;
232870
+ commit = createCommitObject();
232871
+ constructor(options = {}) {
232872
+ this.options = {
232873
+ ...defaultOptions,
232874
+ ...options
232875
+ };
232876
+ this.regexes = getParserRegexes(this.options);
232877
+ }
232878
+ currentLine() {
232879
+ return this.lines[this.lineIndex];
232880
+ }
232881
+ nextLine() {
232882
+ return this.lines[this.lineIndex++];
232883
+ }
232884
+ isLineAvailable() {
232885
+ return this.lineIndex < this.lines.length;
232886
+ }
232887
+ parseReference(input, action) {
232888
+ const { regexes } = this;
232889
+ if (regexes.url.test(input)) {
232890
+ return null;
232891
+ }
232892
+ const matches = regexes.referenceParts.exec(input);
232893
+ if (!matches) {
232894
+ return null;
232895
+ }
232896
+ let [raw, repository = null, prefix2, issue] = matches;
232897
+ let owner = null;
232898
+ if (repository) {
232899
+ const slashIndex = repository.indexOf("/");
232900
+ if (slashIndex !== -1) {
232901
+ owner = repository.slice(0, slashIndex);
232902
+ repository = repository.slice(slashIndex + 1);
232903
+ }
232904
+ }
232905
+ return {
232906
+ raw,
232907
+ action,
232908
+ owner,
232909
+ repository,
232910
+ prefix: prefix2,
232911
+ issue
232912
+ };
232913
+ }
232914
+ parseReferences(input) {
232915
+ const { regexes } = this;
232916
+ const regex2 = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
232917
+ const references = [];
232918
+ let matches;
232919
+ let action;
232920
+ let sentence;
232921
+ let reference2;
232922
+ while (true) {
232923
+ matches = regex2.exec(input);
232924
+ if (!matches) {
232925
+ break;
232926
+ }
232927
+ action = matches[1] || null;
232928
+ sentence = matches[2] || "";
232929
+ while (true) {
232930
+ reference2 = this.parseReference(sentence, action);
232931
+ if (!reference2) {
232932
+ break;
232933
+ }
232934
+ references.push(reference2);
232935
+ }
232936
+ }
232937
+ return references;
232938
+ }
232939
+ skipEmptyLines() {
232940
+ let line = this.currentLine();
232941
+ while (line !== void 0 && !line.trim()) {
232942
+ this.nextLine();
232943
+ line = this.currentLine();
232944
+ }
232945
+ }
232946
+ parseMerge() {
232947
+ const { commit, options } = this;
232948
+ const correspondence = options.mergeCorrespondence || [];
232949
+ const merge2 = this.currentLine();
232950
+ const matches = merge2 && options.mergePattern ? merge2.match(options.mergePattern) : null;
232951
+ if (matches) {
232952
+ this.nextLine();
232953
+ commit.merge = matches[0] || null;
232954
+ assignMatchedCorrespondence(commit, matches, correspondence);
232955
+ return true;
232956
+ }
232957
+ return false;
232958
+ }
232959
+ parseHeader(isMergeCommit) {
232960
+ if (isMergeCommit) {
232961
+ this.skipEmptyLines();
232962
+ }
232963
+ const { commit, options } = this;
232964
+ const correspondence = options.headerCorrespondence || [];
232965
+ const header = commit.header ?? this.nextLine();
232966
+ let matches = null;
232967
+ if (header) {
232968
+ if (options.breakingHeaderPattern) {
232969
+ matches = header.match(options.breakingHeaderPattern);
232970
+ }
232971
+ if (!matches && options.headerPattern) {
232972
+ matches = header.match(options.headerPattern);
232973
+ }
232974
+ }
232975
+ if (header) {
232976
+ commit.header = header;
232977
+ }
232978
+ if (matches) {
232979
+ assignMatchedCorrespondence(commit, matches, correspondence);
232980
+ }
232981
+ }
232982
+ parseMeta() {
232983
+ const { options, commit } = this;
232984
+ if (!options.fieldPattern || !this.isLineAvailable()) {
232985
+ return false;
232986
+ }
232987
+ let matches;
232988
+ let field = null;
232989
+ let parsed = false;
232990
+ while (this.isLineAvailable()) {
232991
+ matches = this.currentLine().match(options.fieldPattern);
232992
+ if (matches) {
232993
+ field = matches[1] || null;
232994
+ this.nextLine();
232995
+ continue;
232996
+ }
232997
+ if (field) {
232998
+ parsed = true;
232999
+ commit[field] = appendLine(commit[field], this.currentLine());
233000
+ this.nextLine();
233001
+ } else {
233002
+ break;
233003
+ }
233004
+ }
233005
+ return parsed;
233006
+ }
233007
+ parseNotes() {
233008
+ const { regexes, commit } = this;
233009
+ if (!this.isLineAvailable()) {
233010
+ return false;
233011
+ }
233012
+ const matches = this.currentLine().match(regexes.notes);
233013
+ let isFooterToken;
233014
+ if (matches) {
233015
+ const note = {
233016
+ title: matches[1],
233017
+ text: matches[2]
233018
+ };
233019
+ commit.notes.push(note);
233020
+ commit.footer = appendLine(commit.footer, this.currentLine());
233021
+ this.nextLine();
233022
+ while (this.isLineAvailable()) {
233023
+ if (this.parseMeta()) {
233024
+ return true;
233025
+ }
233026
+ if (this.parseNotes()) {
233027
+ return true;
233028
+ }
233029
+ isFooterToken = regexes.footerToken.test(this.currentLine());
233030
+ commit.references.push(...this.parseReferences(this.currentLine()));
233031
+ if (!isFooterToken) {
233032
+ note.text = appendLine(note.text, this.currentLine());
233033
+ }
233034
+ commit.footer = appendLine(commit.footer, this.currentLine());
233035
+ this.nextLine();
233036
+ if (isFooterToken) {
233037
+ break;
233038
+ }
233039
+ }
233040
+ return true;
233041
+ }
233042
+ return false;
233043
+ }
233044
+ parseBodyAndFooter(isBody) {
233045
+ const { commit, regexes } = this;
233046
+ if (!this.isLineAvailable()) {
233047
+ return isBody;
233048
+ }
233049
+ const isFooterToken = regexes.footerToken.test(this.currentLine());
233050
+ const isStillBody = !isFooterToken && isBody;
233051
+ commit.references.push(...this.parseReferences(this.currentLine()));
233052
+ if (isStillBody) {
233053
+ commit.body = appendLine(commit.body, this.currentLine());
233054
+ } else {
233055
+ commit.footer = appendLine(commit.footer, this.currentLine());
233056
+ }
233057
+ this.nextLine();
233058
+ return isStillBody;
233059
+ }
233060
+ parseBreakingHeader() {
233061
+ const { commit, options } = this;
233062
+ if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
233063
+ return;
233064
+ }
233065
+ const matches = commit.header.match(options.breakingHeaderPattern);
233066
+ if (matches) {
233067
+ commit.notes.push({
233068
+ title: "BREAKING CHANGE",
233069
+ text: matches[3]
233070
+ });
233071
+ }
233072
+ }
233073
+ parseMentions(input) {
233074
+ const { commit, regexes } = this;
233075
+ let matches;
233076
+ for (; ; ) {
233077
+ matches = regexes.mentions.exec(input);
233078
+ if (!matches) {
233079
+ break;
233080
+ }
233081
+ commit.mentions.push(matches[1]);
233082
+ }
233083
+ }
233084
+ parseRevert(input) {
233085
+ const { commit, options } = this;
233086
+ const correspondence = options.revertCorrespondence || [];
233087
+ const matches = options.revertPattern ? input.match(options.revertPattern) : null;
233088
+ if (matches) {
233089
+ commit.revert = assignMatchedCorrespondence({}, matches, correspondence);
233090
+ }
233091
+ }
233092
+ cleanupCommit() {
233093
+ const { commit } = this;
233094
+ commit.body &&= trimNewLines(commit.body);
233095
+ commit.footer &&= trimNewLines(commit.footer);
233096
+ commit.notes.forEach((note) => {
233097
+ note.text = trimNewLines(note.text);
233098
+ });
233099
+ const referencesSet = /* @__PURE__ */ new Set();
233100
+ commit.references = commit.references.filter((reference2) => {
233101
+ const uid = `${reference2.action} ${reference2.raw}`.toLocaleLowerCase();
233102
+ const ok = !referencesSet.has(uid);
233103
+ if (ok) {
233104
+ referencesSet.add(uid);
233105
+ }
233106
+ return ok;
233107
+ });
233108
+ }
233109
+ /**
233110
+ * Parse commit message string into an object.
233111
+ * @param input - Commit message string.
233112
+ * @returns Commit object.
233113
+ */
233114
+ parse(input) {
233115
+ if (!input.trim()) {
233116
+ throw new TypeError("Expected a raw commit");
233117
+ }
233118
+ const { commentChar } = this.options;
233119
+ const commentFilter = getCommentFilter(commentChar);
233120
+ const rawLines = trimNewLines(input).split(/\r?\n/);
233121
+ const lines = commentChar ? truncateToScissor(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter(line)) : rawLines.filter((line) => gpgFilter(line));
233122
+ const commit = createCommitObject();
233123
+ this.lines = lines;
233124
+ this.lineIndex = 0;
233125
+ this.commit = commit;
233126
+ const isMergeCommit = this.parseMerge();
233127
+ this.parseHeader(isMergeCommit);
233128
+ if (commit.header) {
233129
+ commit.references = this.parseReferences(commit.header);
233130
+ }
233131
+ let isBody = true;
233132
+ while (this.isLineAvailable()) {
233133
+ this.parseMeta();
233134
+ if (this.parseNotes()) {
233135
+ isBody = false;
233136
+ }
233137
+ if (!this.parseBodyAndFooter(isBody)) {
233138
+ isBody = false;
233139
+ }
233140
+ }
233141
+ this.parseBreakingHeader();
233142
+ this.parseMentions(input);
233143
+ this.parseRevert(input);
233144
+ this.cleanupCommit();
233145
+ return commit;
233146
+ }
233147
+ };
233373
233148
 
233374
233149
  // node_modules/conventional-changelog-angular/src/parser.js
233375
233150
  function createParserOpts() {
@@ -233386,132 +233161,190 @@ function createParserOpts() {
233386
233161
  };
233387
233162
  }
233388
233163
 
233389
- // node_modules/conventional-changelog-angular/src/writer.js
233390
- var import_compare_func = __toESM(require_compare_func(), 1);
233391
-
233392
- // node_modules/conventional-changelog-angular/src/templates.js
233393
- var mainTemplate = `{{> header}}
233394
-
233395
- {{#each commitGroups}}
233396
-
233397
- {{#if title}}
233398
- ### {{title}}
233399
-
233400
- {{/if}}
233401
- {{#each commits}}
233402
- {{> commit root=@root}}
233403
- {{/each}}
233404
-
233405
- {{/each}}
233406
- {{> footer}}
233407
- `;
233408
- var headerPartial = `{{#if isPatch~}}
233409
- ##
233410
- {{~else~}}
233411
- #
233412
- {{~/if}} {{#if @root.linkCompare~}}
233413
- [{{version}}](
233414
- {{~#if @root.repository~}}
233415
- {{~#if @root.host}}
233416
- {{~@root.host}}/
233417
- {{~/if}}
233418
- {{~#if @root.owner}}
233419
- {{~@root.owner}}/
233420
- {{~/if}}
233421
- {{~@root.repository}}
233422
- {{~else}}
233423
- {{~@root.repoUrl}}
233424
- {{~/if~}}
233425
- /compare/{{previousTag}}...{{currentTag}})
233426
- {{~else}}
233427
- {{~version}}
233428
- {{~/if}}
233429
- {{~#if title}} "{{title}}"
233430
- {{~/if}}
233431
- {{~#if date}} ({{date}})
233432
- {{/if}}
233433
- `;
233434
- var commitPartial = `*{{#if scope}} **{{scope}}:**
233435
- {{~/if}} {{#if subject}}
233436
- {{~subject}}
233437
- {{~else}}
233438
- {{~header}}
233439
- {{~/if}}
233440
-
233441
- {{~!-- commit link --}} {{#if @root.linkReferences~}}
233442
- ([{{shortHash}}](
233443
- {{~#if @root.repository}}
233444
- {{~#if @root.host}}
233445
- {{~@root.host}}/
233446
- {{~/if}}
233447
- {{~#if @root.owner}}
233448
- {{~@root.owner}}/
233449
- {{~/if}}
233450
- {{~@root.repository}}
233451
- {{~else}}
233452
- {{~@root.repoUrl}}
233453
- {{~/if}}/
233454
- {{~@root.commit}}/{{hash}}))
233455
- {{~else}}
233456
- {{~shortHash}}
233457
- {{~/if}}
233458
-
233459
- {{~!-- commit references --}}
233460
- {{~#if references~}}
233461
- , closes
233462
- {{~#each references}} {{#if @root.linkReferences~}}
233463
- [
233464
- {{~#if this.owner}}
233465
- {{~this.owner}}/
233466
- {{~/if}}
233467
- {{~this.repository}}#{{this.issue}}](
233468
- {{~#if @root.repository}}
233469
- {{~#if @root.host}}
233470
- {{~@root.host}}/
233471
- {{~/if}}
233472
- {{~#if this.repository}}
233473
- {{~#if this.owner}}
233474
- {{~this.owner}}/
233475
- {{~/if}}
233476
- {{~this.repository}}
233477
- {{~else}}
233478
- {{~#if @root.owner}}
233479
- {{~@root.owner}}/
233480
- {{~/if}}
233481
- {{~@root.repository}}
233482
- {{~/if}}
233483
- {{~else}}
233484
- {{~@root.repoUrl}}
233485
- {{~/if}}/
233486
- {{~@root.issue}}/{{this.issue}})
233487
- {{~else}}
233488
- {{~#if this.owner}}
233489
- {{~this.owner}}/
233490
- {{~/if}}
233491
- {{~this.repository}}#{{this.issue}}
233492
- {{~/if}}{{/each}}
233493
- {{~/if}}
233494
-
233495
- `;
233496
- var footerPartial = `{{#if noteGroups}}
233497
- {{#each noteGroups}}
233498
-
233499
- ### {{title}}
233164
+ // node_modules/@conventional-changelog/template/dist/elements.js
233165
+ function toString(value) {
233166
+ return typeof value === "number" || value ? String(value) : "";
233167
+ }
233168
+ function each(array, callback, separator = newline()) {
233169
+ return array ? array.reduce((acc, item) => {
233170
+ const rendered = toString(callback(item)).trim();
233171
+ return `${acc}${acc && rendered ? separator : ""}${rendered}`;
233172
+ }, "") : "";
233173
+ }
233174
+ function heading(level, text) {
233175
+ return `${"#".repeat(level)} ${text}`;
233176
+ }
233177
+ function link(text, url2) {
233178
+ return `[${text}](${url2})`;
233179
+ }
233180
+ function list(array, callback) {
233181
+ return each(array, (item) => {
233182
+ const rendered = toString(callback(item)).trim();
233183
+ const itemText = rendered.split(/\r?\n/).map((line, index) => index > 0 && line ? ` ${line}` : line).join("\n");
233184
+ return rendered ? `* ${itemText}` : "";
233185
+ });
233186
+ }
233187
+ function bold(text) {
233188
+ return `**${text}**`;
233189
+ }
233190
+ function newline(times = 1) {
233191
+ return "\n".repeat(times);
233192
+ }
233193
+ function strings(...values) {
233194
+ return each(values, (value) => value, "");
233195
+ }
233196
+ function segments(...values) {
233197
+ return each(values, (value) => value, newline(2));
233198
+ }
233199
+ function words(...values) {
233200
+ return each(values, (value) => value, " ");
233201
+ }
233202
+ function url(...parts) {
233203
+ return parts.reduce((acc, part) => {
233204
+ if (typeof part !== "number" && !part) {
233205
+ return acc;
233206
+ }
233207
+ const segment = String(part).replace(/^\/+|\/+$/g, "");
233208
+ return acc ? `${acc}/${segment}` : segment;
233209
+ }, "");
233210
+ }
233500
233211
 
233501
- {{#each notes}}
233502
- * {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
233503
- {{/each}}
233504
- {{/each}}
233212
+ // node_modules/@conventional-changelog/template/dist/templates.js
233213
+ function repositoryUrl(context) {
233214
+ if (context.repository) {
233215
+ return url(context.host, context.owner, context.repository);
233216
+ }
233217
+ return context.repoUrl || "";
233218
+ }
233219
+ function referenceRepositoryUrl(context, reference2) {
233220
+ if (!context.repository) {
233221
+ return context.repoUrl || "";
233222
+ }
233223
+ if (reference2.repository) {
233224
+ return url(context.host, reference2.owner, reference2.repository);
233225
+ }
233226
+ return url(context.host, context.owner, context.repository);
233227
+ }
233228
+ function compareUrl(context) {
233229
+ const previousTag = encodeURIComponent(context.previousTag || "");
233230
+ const currentTag = encodeURIComponent(context.currentTag || "");
233231
+ return url(repositoryUrl(context), "compare", `${previousTag}...${currentTag}`);
233232
+ }
233233
+ function reference(reference2) {
233234
+ return strings(reference2.owner && `${reference2.owner}/`, reference2.repository, reference2.issue && `${reference2.prefix || "#"}${reference2.issue}`);
233235
+ }
233505
233236
 
233506
- {{/if}}
233507
- `;
233237
+ // node_modules/conventional-changelog-angular/src/templates.js
233238
+ function headerPartial(context) {
233239
+ const {
233240
+ isPatch,
233241
+ linkCompare,
233242
+ version,
233243
+ title,
233244
+ date
233245
+ } = context;
233246
+ const versionText = linkCompare ? link(version, compareUrl(context)) : version;
233247
+ return heading(
233248
+ Boolean(isPatch) + 1,
233249
+ words(
233250
+ versionText,
233251
+ title && `"${title}"`,
233252
+ date && `(${date})`
233253
+ )
233254
+ );
233255
+ }
233256
+ function preamblePartial(context) {
233257
+ return strings(context.preamble);
233258
+ }
233259
+ function commitPartial(context, commit) {
233260
+ const {
233261
+ linkReferences,
233262
+ issue,
233263
+ commit: commitUrlPath
233264
+ } = context;
233265
+ const {
233266
+ scope,
233267
+ subject,
233268
+ header,
233269
+ shortHash,
233270
+ hash,
233271
+ references
233272
+ } = commit;
233273
+ const commitLink = hash ? linkReferences ? `(${link(shortHash, url(repositoryUrl(context), commitUrlPath, hash))})` : shortHash : "";
233274
+ const renderedReferences = each(
233275
+ references,
233276
+ (linkReference) => {
233277
+ if (linkReferences) {
233278
+ return link(
233279
+ reference(linkReference),
233280
+ url(referenceRepositoryUrl(context, linkReference), issue, linkReference.issue)
233281
+ );
233282
+ }
233283
+ return reference(linkReference);
233284
+ },
233285
+ " "
233286
+ );
233287
+ return strings(
233288
+ words(
233289
+ scope && bold(`${scope}:`),
233290
+ subject || header || "",
233291
+ commitLink
233292
+ ),
233293
+ renderedReferences && `, closes ${renderedReferences}`
233294
+ );
233295
+ }
233296
+ function footerPartial({ noteGroups }) {
233297
+ return each(
233298
+ noteGroups,
233299
+ (group) => segments(
233300
+ heading(3, group.title),
233301
+ list(
233302
+ group.notes,
233303
+ (note) => words(
233304
+ note.commit.scope && bold(`${note.commit.scope}:`),
233305
+ note.text
233306
+ )
233307
+ )
233308
+ ),
233309
+ newline(2)
233310
+ );
233311
+ }
233312
+ function template(context) {
233313
+ const {
233314
+ headerPartial: headerPartial2,
233315
+ preamblePartial: preamblePartial2,
233316
+ commitPartial: commitPartial2,
233317
+ footerPartial: footerPartial2,
233318
+ commitGroups
233319
+ } = context;
233320
+ return segments(
233321
+ headerPartial2(context),
233322
+ preamblePartial2(context),
233323
+ each(
233324
+ commitGroups,
233325
+ (group) => segments(
233326
+ group.title && heading(3, group.title),
233327
+ list(
233328
+ group.commits,
233329
+ (commit) => commitPartial2(context, commit)
233330
+ )
233331
+ ),
233332
+ newline(2)
233333
+ ),
233334
+ footerPartial2(context)
233335
+ );
233336
+ }
233508
233337
 
233509
233338
  // node_modules/conventional-changelog-angular/src/writer.js
233510
233339
  var COMMIT_HASH_LENGTH = 7;
233340
+ function compareNotes(a2, b2) {
233341
+ return (a2.title || "").localeCompare(b2.title || "") || (a2.text || "").localeCompare(b2.text || "");
233342
+ }
233511
233343
  function createWriterOpts() {
233512
233344
  return {
233513
- mainTemplate,
233345
+ template,
233514
233346
  headerPartial,
233347
+ preamblePartial,
233515
233348
  commitPartial,
233516
233349
  footerPartial,
233517
233350
  transform: (commit, context) => {
@@ -233552,12 +233385,12 @@ function createWriterOpts() {
233552
233385
  const issues = [];
233553
233386
  let { subject } = commit;
233554
233387
  if (typeof subject === "string") {
233555
- let url = context.repository ? `${context.host}/${context.owner}/${context.repository}` : context.repoUrl;
233556
- if (url) {
233557
- url = `${url}/issues/`;
233388
+ let url2 = context.repository ? `${context.host}/${context.owner}/${context.repository}` : context.repoUrl;
233389
+ if (url2) {
233390
+ url2 = `${url2}/issues/`;
233558
233391
  subject = subject.replace(/#([0-9]+)/g, (_2, issue) => {
233559
233392
  issues.push(issue);
233560
- return `[#${issue}](${url}${issue})`;
233393
+ return `[#${issue}](${url2}${issue})`;
233561
233394
  });
233562
233395
  }
233563
233396
  if (context.host) {
@@ -233572,7 +233405,7 @@ function createWriterOpts() {
233572
233405
  });
233573
233406
  }
233574
233407
  }
233575
- const references = commit.references.filter((reference) => !issues.includes(reference.issue));
233408
+ const references = commit.references.filter((reference2) => !issues.includes(reference2.issue));
233576
233409
  return {
233577
233410
  notes,
233578
233411
  type,
@@ -233586,7 +233419,7 @@ function createWriterOpts() {
233586
233419
  commitGroupsSort: "title",
233587
233420
  commitsSort: ["scope", "subject"],
233588
233421
  noteGroupsSort: "title",
233589
- notesSort: import_compare_func.default
233422
+ notesSort: compareNotes
233590
233423
  };
233591
233424
  }
233592
233425
 
@@ -233756,10 +233589,10 @@ function isArrayLike(value) {
233756
233589
  }
233757
233590
 
233758
233591
  // node_modules/es-toolkit/dist/compat/util/toString.mjs
233759
- function toString(value) {
233592
+ function toString2(value) {
233760
233593
  if (value == null) return "";
233761
233594
  if (typeof value === "string") return value;
233762
- if (Array.isArray(value)) return value.map(toString).join(",");
233595
+ if (Array.isArray(value)) return value.map(toString2).join(",");
233763
233596
  const result = String(value);
233764
233597
  if (result === "0" && Object.is(Number(value), -0)) return "-0";
233765
233598
  return result;
@@ -234112,18 +233945,18 @@ function deburr(str) {
234112
233945
 
234113
233946
  // node_modules/es-toolkit/dist/compat/string/deburr.mjs
234114
233947
  function deburr2(str) {
234115
- return deburr(toString(str));
233948
+ return deburr(toString2(str));
234116
233949
  }
234117
233950
 
234118
233951
  // node_modules/es-toolkit/dist/string/words.mjs
234119
233952
  var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
234120
- function words(str) {
233953
+ function words2(str) {
234121
233954
  return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
234122
233955
  }
234123
233956
 
234124
233957
  // node_modules/es-toolkit/dist/string/camelCase.mjs
234125
233958
  function camelCase(str) {
234126
- const words$1 = words(str);
233959
+ const words$1 = words2(str);
234127
233960
  if (words$1.length === 0) return "";
234128
233961
  const [first, ...rest] = words$1;
234129
233962
  return `${first.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
@@ -234131,7 +233964,7 @@ function camelCase(str) {
234131
233964
 
234132
233965
  // node_modules/es-toolkit/dist/compat/_internal/normalizeForCase.mjs
234133
233966
  function normalizeForCase(str) {
234134
- if (typeof str !== "string") str = toString(str);
233967
+ if (typeof str !== "string") str = toString2(str);
234135
233968
  return str.replace(/['\u2019]/g, "");
234136
233969
  }
234137
233970
 
@@ -234142,7 +233975,7 @@ function camelCase2(str) {
234142
233975
 
234143
233976
  // node_modules/es-toolkit/dist/string/kebabCase.mjs
234144
233977
  function kebabCase(str) {
234145
- return words(str).map((word) => word.toLowerCase()).join("-");
233978
+ return words2(str).map((word) => word.toLowerCase()).join("-");
234146
233979
  }
234147
233980
 
234148
233981
  // node_modules/es-toolkit/dist/compat/string/kebabCase.mjs
@@ -234152,7 +233985,7 @@ function kebabCase2(str) {
234152
233985
 
234153
233986
  // node_modules/es-toolkit/dist/string/snakeCase.mjs
234154
233987
  function snakeCase(str) {
234155
- return words(str).map((word) => word.toLowerCase()).join("_");
233988
+ return words2(str).map((word) => word.toLowerCase()).join("_");
234156
233989
  }
234157
233990
 
234158
233991
  // node_modules/es-toolkit/dist/compat/string/snakeCase.mjs
@@ -234162,7 +233995,7 @@ function snakeCase2(str) {
234162
233995
 
234163
233996
  // node_modules/es-toolkit/dist/compat/string/startCase.mjs
234164
233997
  function startCase(str) {
234165
- const words$1 = words(normalizeForCase(deburr2(str)).trim());
233998
+ const words$1 = words2(normalizeForCase(deburr2(str)).trim());
234166
233999
  let result = "";
234167
234000
  for (let i2 = 0; i2 < words$1.length; i2++) {
234168
234001
  const word = words$1[i2];
@@ -234180,7 +234013,7 @@ function upperFirst(str) {
234180
234013
 
234181
234014
  // node_modules/es-toolkit/dist/compat/string/upperFirst.mjs
234182
234015
  function upperFirst2(str) {
234183
- return upperFirst(toString(str));
234016
+ return upperFirst(toString2(str));
234184
234017
  }
234185
234018
 
234186
234019
  // node_modules/@commitlint/ensure/lib/to-case.js
@@ -234266,10 +234099,10 @@ var bodyCase = (parsed, when = "always", value = []) => {
234266
234099
  const r2 = case_default(body, check.case);
234267
234100
  return negated(check.when) ? !r2 : r2;
234268
234101
  });
234269
- const list = checks.map((c2) => c2.case).join(", ");
234102
+ const list2 = checks.map((c2) => c2.case).join(", ");
234270
234103
  return [
234271
234104
  negated(when) ? !result : result,
234272
- message([`body must`, negated(when) ? `not` : null, `be ${list}`])
234105
+ message([`body must`, negated(when) ? `not` : null, `be ${list2}`])
234273
234106
  ];
234274
234107
  };
234275
234108
 
@@ -234421,10 +234254,10 @@ var headerCase = (parsed, when = "always", value = []) => {
234421
234254
  const r2 = case_default(header, check.case);
234422
234255
  return negated2(check.when) ? !r2 : r2;
234423
234256
  });
234424
- const list = checks.map((c2) => c2.case).join(", ");
234257
+ const list2 = checks.map((c2) => c2.case).join(", ");
234425
234258
  return [
234426
234259
  negated2(when) ? !result : result,
234427
- message([`header must`, negated2(when) ? `not` : null, `be ${list}`])
234260
+ message([`header must`, negated2(when) ? `not` : null, `be ${list2}`])
234428
234261
  ];
234429
234262
  };
234430
234263
 
@@ -234508,10 +234341,10 @@ var scopeCase = (parsed, when = "always", value = []) => {
234508
234341
  const r2 = scopeSegments.every((segment) => delimiterRegex.test(segment) || case_default(segment, check.case));
234509
234342
  return negated3(check.when) ? !r2 : r2;
234510
234343
  });
234511
- const list = checks.map((c2) => c2.case).join(", ");
234344
+ const list2 = checks.map((c2) => c2.case).join(", ");
234512
234345
  return [
234513
234346
  negated3(when) ? !result : result,
234514
- message([`scope must`, negated3(when) ? `not` : null, `be ${list}`])
234347
+ message([`scope must`, negated3(when) ? `not` : null, `be ${list2}`])
234515
234348
  ];
234516
234349
  };
234517
234350
 
@@ -234630,10 +234463,10 @@ var subjectCase = (parsed, when = "always", value = []) => {
234630
234463
  const r2 = case_default(subject, check.case);
234631
234464
  return negated4(check.when) ? !r2 : r2;
234632
234465
  });
234633
- const list = checks.map((c2) => c2.case).join(", ");
234466
+ const list2 = checks.map((c2) => c2.case).join(", ");
234634
234467
  return [
234635
234468
  negated4(when) ? !result : result,
234636
- message([`subject must`, negated4(when) ? `not` : null, `be ${list}`])
234469
+ message([`subject must`, negated4(when) ? `not` : null, `be ${list2}`])
234637
234470
  ];
234638
234471
  };
234639
234472
 
@@ -234736,10 +234569,10 @@ var typeCase = (parsed, when = "always", value = []) => {
234736
234569
  const r2 = case_default(type, check.case);
234737
234570
  return negated5(check.when) ? !r2 : r2;
234738
234571
  });
234739
- const list = checks.map((c2) => c2.case).join(", ");
234572
+ const list2 = checks.map((c2) => c2.case).join(", ");
234740
234573
  return [
234741
234574
  negated5(when) ? !result : result,
234742
- message([`type must`, negated5(when) ? `not` : null, `be ${list}`])
234575
+ message([`type must`, negated5(when) ? `not` : null, `be ${list2}`])
234743
234576
  ];
234744
234577
  };
234745
234578
 
@@ -235196,6 +235029,65 @@ var dynamicImport = async (id) => {
235196
235029
  };
235197
235030
  var pathSuffixes = ["", ".js", ".json", `${path2.sep}index.js`, `${path2.sep}index.json`];
235198
235031
  var specifierSuffixes = ["", ".js", ".json", "/index.js", "/index.json"];
235032
+ var resolveExportsEntry = (manifest) => {
235033
+ const fromConditions = (value) => {
235034
+ if (typeof value === "string") {
235035
+ return value;
235036
+ }
235037
+ if (value && typeof value === "object" && !Array.isArray(value)) {
235038
+ const conditions = value;
235039
+ for (const key of ["import", "module", "node", "default"]) {
235040
+ if (key in conditions) {
235041
+ const resolved = fromConditions(conditions[key]);
235042
+ if (resolved) {
235043
+ return resolved;
235044
+ }
235045
+ }
235046
+ }
235047
+ }
235048
+ return void 0;
235049
+ };
235050
+ let exp = manifest.exports;
235051
+ if (exp && typeof exp === "object" && !Array.isArray(exp) && "." in exp) {
235052
+ exp = exp["."];
235053
+ }
235054
+ return fromConditions(exp) || (typeof manifest.module === "string" ? manifest.module : void 0) || (typeof manifest.main === "string" ? manifest.main : void 0) || "index.js";
235055
+ };
235056
+ var resolveEsmOnly = (lookup, fromDir) => {
235057
+ if (path2.isAbsolute(lookup) || lookup.startsWith(".")) {
235058
+ return void 0;
235059
+ }
235060
+ const segments2 = lookup.split("/");
235061
+ const pkgName = lookup.startsWith("@") ? segments2.slice(0, 2).join("/") : segments2[0];
235062
+ const subpath = lookup.slice(pkgName.length).replace(/^\//, "");
235063
+ let dir = fromDir;
235064
+ for (; ; ) {
235065
+ const pkgDir = path2.join(dir, "node_modules", pkgName);
235066
+ const manifestPath = path2.join(pkgDir, "package.json");
235067
+ if (fs2.existsSync(manifestPath)) {
235068
+ if (subpath) {
235069
+ for (const suffix of pathSuffixes) {
235070
+ const filename = path2.join(pkgDir, subpath) + suffix;
235071
+ if (fs2.existsSync(filename)) {
235072
+ return filename;
235073
+ }
235074
+ }
235075
+ return void 0;
235076
+ }
235077
+ const manifest = JSON.parse(fs2.readFileSync(manifestPath, "utf-8"));
235078
+ const resolved = path2.join(pkgDir, resolveExportsEntry(manifest));
235079
+ if (fs2.existsSync(resolved)) {
235080
+ return resolved;
235081
+ }
235082
+ return void 0;
235083
+ }
235084
+ const parentDir = path2.dirname(dir);
235085
+ if (parentDir === dir) {
235086
+ return void 0;
235087
+ }
235088
+ dir = parentDir;
235089
+ }
235090
+ };
235199
235091
  var resolveFrom = (lookup, parent) => {
235200
235092
  if (path2.isAbsolute(lookup)) {
235201
235093
  for (const suffix of pathSuffixes) {
@@ -235220,6 +235112,10 @@ var resolveFrom = (lookup, parent) => {
235220
235112
  try {
235221
235113
  return (0, import_resolve_from.default)(path2.dirname(parentPath), lookup);
235222
235114
  } catch {
235115
+ const esmResolved = resolveEsmOnly(lookup, path2.dirname(parentPath));
235116
+ if (esmResolved) {
235117
+ return esmResolved;
235118
+ }
235223
235119
  throw resolveError;
235224
235120
  }
235225
235121
  };
@@ -237289,7 +237185,7 @@ var ANSI_OSC = "]";
237289
237185
  var ANSI_SGR_TERMINATOR = "m";
237290
237186
  var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
237291
237187
  var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
237292
- var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
237188
+ var wrapAnsiHyperlink = (url2) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url2}${ANSI_ESCAPE_BELL}`;
237293
237189
  var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
237294
237190
  var wrapWord = (rows, word, columns) => {
237295
237191
  const characters = [...word];
@@ -237331,18 +237227,18 @@ var wrapWord = (rows, word, columns) => {
237331
237227
  }
237332
237228
  };
237333
237229
  var stringVisibleTrimSpacesRight = (string) => {
237334
- const words2 = string.split(" ");
237335
- let last = words2.length;
237230
+ const words3 = string.split(" ");
237231
+ let last = words3.length;
237336
237232
  while (last > 0) {
237337
- if (stringWidth(words2[last - 1]) > 0) {
237233
+ if (stringWidth(words3[last - 1]) > 0) {
237338
237234
  break;
237339
237235
  }
237340
237236
  last--;
237341
237237
  }
237342
- if (last === words2.length) {
237238
+ if (last === words3.length) {
237343
237239
  return string;
237344
237240
  }
237345
- return words2.slice(0, last).join(" ") + words2.slice(last).join("");
237241
+ return words3.slice(0, last).join(" ") + words3.slice(last).join("");
237346
237242
  };
237347
237243
  var exec = (string, columns, options = {}) => {
237348
237244
  if (options.trim !== false && string.trim() === "") {
@@ -240161,9 +240057,9 @@ var Completion = class {
240161
240057
  if (isSyncCompletionFunction(this.customCompletionFunction)) {
240162
240058
  const result = this.customCompletionFunction(current, argv);
240163
240059
  if (isPromise(result)) {
240164
- return result.then((list) => {
240060
+ return result.then((list2) => {
240165
240061
  this.shim.process.nextTick(() => {
240166
- done(null, list);
240062
+ done(null, list2);
240167
240063
  });
240168
240064
  }).catch((err) => {
240169
240065
  this.shim.process.nextTick(() => {