@formatjs/cli 6.2.8 → 6.2.10

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/bin/formatjs +463 -376
  2. package/package.json +31 -3
package/bin/formatjs CHANGED
@@ -2711,11 +2711,11 @@ var require_currently_unhandled = __commonJS({
2711
2711
  "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/currently-unhandled@0.4.1/node_modules/currently-unhandled/index.js"(exports, module2) {
2712
2712
  "use strict";
2713
2713
  var core = require_core();
2714
- module2.exports = function(p) {
2715
- p = p || process;
2714
+ module2.exports = function(p2) {
2715
+ p2 = p2 || process;
2716
2716
  var c = core();
2717
- p.on("unhandledRejection", c.onUnhandledRejection);
2718
- p.on("rejectionHandled", c.onRejectionHandled);
2717
+ p2.on("unhandledRejection", c.onUnhandledRejection);
2718
+ p2.on("rejectionHandled", c.onRejectionHandled);
2719
2719
  return c.currentlyUnhandled;
2720
2720
  };
2721
2721
  }
@@ -2794,13 +2794,13 @@ function __extends(d, b) {
2794
2794
  }
2795
2795
  function __rest(s, e) {
2796
2796
  var t = {};
2797
- for (var p in s)
2798
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2799
- t[p] = s[p];
2797
+ for (var p2 in s)
2798
+ if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
2799
+ t[p2] = s[p2];
2800
2800
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
2801
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2802
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2803
- t[p[i]] = s[p[i]];
2801
+ for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
2802
+ if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
2803
+ t[p2[i]] = s[p2[i]];
2804
2804
  }
2805
2805
  return t;
2806
2806
  }
@@ -2927,9 +2927,9 @@ function __generator(thisArg, body) {
2927
2927
  }
2928
2928
  }
2929
2929
  function __exportStar(m, o) {
2930
- for (var p in m)
2931
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
2932
- __createBinding(o, m, p);
2930
+ for (var p2 in m)
2931
+ if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o, p2))
2932
+ __createBinding(o, m, p2);
2933
2933
  }
2934
2934
  function __values(o) {
2935
2935
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
@@ -3030,7 +3030,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
3030
3030
  }
3031
3031
  }
3032
3032
  function __asyncDelegator(o) {
3033
- var i, p;
3033
+ var i, p2;
3034
3034
  return i = {}, verb("next"), verb("throw", function(e) {
3035
3035
  throw e;
3036
3036
  }), verb("return"), i[Symbol.iterator] = function() {
@@ -3038,7 +3038,7 @@ function __asyncDelegator(o) {
3038
3038
  }, i;
3039
3039
  function verb(n, f) {
3040
3040
  i[n] = o[n] ? function(v) {
3041
- return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v;
3041
+ return (p2 = !p2) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v;
3042
3042
  } : f;
3043
3043
  }
3044
3044
  }
@@ -3113,9 +3113,9 @@ var init_tslib_es6 = __esm({
3113
3113
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
3114
3114
  d2.__proto__ = b2;
3115
3115
  } || function(d2, b2) {
3116
- for (var p in b2)
3117
- if (Object.prototype.hasOwnProperty.call(b2, p))
3118
- d2[p] = b2[p];
3116
+ for (var p2 in b2)
3117
+ if (Object.prototype.hasOwnProperty.call(b2, p2))
3118
+ d2[p2] = b2[p2];
3119
3119
  };
3120
3120
  return extendStatics(d, b);
3121
3121
  };
@@ -3123,9 +3123,9 @@ var init_tslib_es6 = __esm({
3123
3123
  __assign = Object.assign || function __assign2(t) {
3124
3124
  for (var s, i = 1, n = arguments.length; i < n; i++) {
3125
3125
  s = arguments[i];
3126
- for (var p in s)
3127
- if (Object.prototype.hasOwnProperty.call(s, p))
3128
- t[p] = s[p];
3126
+ for (var p2 in s)
3127
+ if (Object.prototype.hasOwnProperty.call(s, p2))
3128
+ t[p2] = s[p2];
3129
3129
  }
3130
3130
  return t;
3131
3131
  };
@@ -7360,9 +7360,9 @@ var require_typescript = __commonJS({
7360
7360
  for (const arg of args) {
7361
7361
  if (arg === void 0)
7362
7362
  continue;
7363
- for (const p in arg) {
7364
- if (hasProperty(arg, p)) {
7365
- t[p] = arg[p];
7363
+ for (const p2 in arg) {
7364
+ if (hasProperty(arg, p2)) {
7365
+ t[p2] = arg[p2];
7366
7366
  }
7367
7367
  }
7368
7368
  }
@@ -17522,16 +17522,16 @@ ${lanes.join("\n")}
17522
17522
  }
17523
17523
  function reScanSlashToken() {
17524
17524
  if (token === 44 || token === 69) {
17525
- let p = tokenStart + 1;
17525
+ let p2 = tokenStart + 1;
17526
17526
  let inEscape = false;
17527
17527
  let inCharacterClass = false;
17528
17528
  while (true) {
17529
- if (p >= end) {
17529
+ if (p2 >= end) {
17530
17530
  tokenFlags |= 4;
17531
17531
  error2(Diagnostics.Unterminated_regular_expression_literal);
17532
17532
  break;
17533
17533
  }
17534
- const ch = text.charCodeAt(p);
17534
+ const ch = text.charCodeAt(p2);
17535
17535
  if (isLineBreak(ch)) {
17536
17536
  tokenFlags |= 4;
17537
17537
  error2(Diagnostics.Unterminated_regular_expression_literal);
@@ -17540,7 +17540,7 @@ ${lanes.join("\n")}
17540
17540
  if (inEscape) {
17541
17541
  inEscape = false;
17542
17542
  } else if (ch === 47 && !inCharacterClass) {
17543
- p++;
17543
+ p2++;
17544
17544
  break;
17545
17545
  } else if (ch === 91) {
17546
17546
  inCharacterClass = true;
@@ -17549,12 +17549,12 @@ ${lanes.join("\n")}
17549
17549
  } else if (ch === 93) {
17550
17550
  inCharacterClass = false;
17551
17551
  }
17552
- p++;
17552
+ p2++;
17553
17553
  }
17554
- while (p < end && isIdentifierPart(text.charCodeAt(p), languageVersion)) {
17555
- p++;
17554
+ while (p2 < end && isIdentifierPart(text.charCodeAt(p2), languageVersion)) {
17555
+ p2++;
17556
17556
  }
17557
- pos = p;
17557
+ pos = p2;
17558
17558
  tokenValue = text.substring(tokenStart, pos);
17559
17559
  token = 14;
17560
17560
  }
@@ -21563,7 +21563,7 @@ ${lanes.join("\n")}
21563
21563
  case 174:
21564
21564
  case 178:
21565
21565
  case 176:
21566
- return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent2));
21566
+ return some(node.parameters, (p2) => nodeIsDecorated(useLegacyDecorators, p2, node, parent2));
21567
21567
  default:
21568
21568
  return false;
21569
21569
  }
@@ -21839,7 +21839,7 @@ ${lanes.join("\n")}
21839
21839
  return init && getExpandoInitializer(init, isPrototypeAccess(node.name));
21840
21840
  }
21841
21841
  function hasExpandoValueProperty(node, isPrototypeAssignment) {
21842
- return forEach(node.properties, (p) => isPropertyAssignment(p) && isIdentifier(p.name) && p.name.escapedText === "value" && p.initializer && getExpandoInitializer(p.initializer, isPrototypeAssignment));
21842
+ return forEach(node.properties, (p2) => isPropertyAssignment(p2) && isIdentifier(p2.name) && p2.name.escapedText === "value" && p2.initializer && getExpandoInitializer(p2.initializer, isPrototypeAssignment));
21843
21843
  }
21844
21844
  function getAssignedExpandoInitializer(node) {
21845
21845
  if (node && node.parent && isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 64) {
@@ -22356,7 +22356,7 @@ ${lanes.join("\n")}
22356
22356
  if (!decl) {
22357
22357
  return void 0;
22358
22358
  }
22359
- const parameter = find(decl.parameters, (p) => p.name.kind === 80 && p.name.escapedText === name);
22359
+ const parameter = find(decl.parameters, (p2) => p2.name.kind === 80 && p2.name.escapedText === name);
22360
22360
  return parameter && parameter.symbol;
22361
22361
  }
22362
22362
  function getEffectiveContainerForJSDocTemplateTag(node) {
@@ -22397,7 +22397,7 @@ ${lanes.join("\n")}
22397
22397
  function getTypeParameterFromJsDoc(node) {
22398
22398
  const name = node.name.escapedText;
22399
22399
  const { typeParameters } = node.parent.parent.parent;
22400
- return typeParameters && find(typeParameters, (p) => p.name.escapedText === name);
22400
+ return typeParameters && find(typeParameters, (p2) => p2.name.escapedText === name);
22401
22401
  }
22402
22402
  function hasTypeArguments(node) {
22403
22403
  return !!node.typeArguments;
@@ -25914,7 +25914,7 @@ ${lanes.join("\n")}
25914
25914
  }
25915
25915
  }
25916
25916
  function containsIgnoredPath(path) {
25917
- return some(ignoredPaths, (p) => stringContains(path, p));
25917
+ return some(ignoredPaths, (p2) => stringContains(path, p2));
25918
25918
  }
25919
25919
  function getContainingNodeArray(node) {
25920
25920
  if (!node.parent)
@@ -25983,7 +25983,7 @@ ${lanes.join("\n")}
25983
25983
  }
25984
25984
  function hasContextSensitiveParameters(node) {
25985
25985
  if (!node.typeParameters) {
25986
- if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) {
25986
+ if (some(node.parameters, (p2) => !getEffectiveTypeAnnotationNode(p2))) {
25987
25987
  return true;
25988
25988
  }
25989
25989
  if (node.kind !== 219) {
@@ -31303,15 +31303,15 @@ ${lanes.join("\n")}
31303
31303
  /* SourceFile */
31304
31304
  );
31305
31305
  node.flags |= source.flags & ~16;
31306
- for (const p in source) {
31307
- if (hasProperty(node, p) || !hasProperty(source, p)) {
31306
+ for (const p2 in source) {
31307
+ if (hasProperty(node, p2) || !hasProperty(source, p2)) {
31308
31308
  continue;
31309
31309
  }
31310
- if (p === "emitNode") {
31310
+ if (p2 === "emitNode") {
31311
31311
  node.emitNode = void 0;
31312
31312
  continue;
31313
31313
  }
31314
- node[p] = source[p];
31314
+ node[p2] = source[p2];
31315
31315
  }
31316
31316
  return node;
31317
31317
  }
@@ -50347,7 +50347,7 @@ ${lanes.join("\n")}
50347
50347
  }
50348
50348
  const parts = getPathComponents(moduleName);
50349
50349
  const nameParts = getPathComponents(scope.contents.packageJsonContent.name);
50350
- if (!every(nameParts, (p, i) => parts[i] === p)) {
50350
+ if (!every(nameParts, (p2, i) => parts[i] === p2)) {
50351
50351
  return void 0;
50352
50352
  }
50353
50353
  const trailingParts = parts.slice(nameParts.length);
@@ -51288,15 +51288,15 @@ ${lanes.join("\n")}
51288
51288
  }
51289
51289
  function getModuleInstanceStateForAliasTarget(specifier, visited) {
51290
51290
  const name = specifier.propertyName || specifier.name;
51291
- let p = specifier.parent;
51292
- while (p) {
51293
- if (isBlock(p) || isModuleBlock(p) || isSourceFile(p)) {
51294
- const statements = p.statements;
51291
+ let p2 = specifier.parent;
51292
+ while (p2) {
51293
+ if (isBlock(p2) || isModuleBlock(p2) || isSourceFile(p2)) {
51294
+ const statements = p2.statements;
51295
51295
  let found;
51296
51296
  for (const statement of statements) {
51297
51297
  if (nodeHasName(statement, name)) {
51298
51298
  if (!statement.parent) {
51299
- setParent(statement, p);
51299
+ setParent(statement, p2);
51300
51300
  setParentRecursive(
51301
51301
  statement,
51302
51302
  /*incremental*/
@@ -51319,7 +51319,7 @@ ${lanes.join("\n")}
51319
51319
  return found;
51320
51320
  }
51321
51321
  }
51322
- p = p.parent;
51322
+ p2 = p2.parent;
51323
51323
  }
51324
51324
  return 1;
51325
51325
  }
@@ -52349,13 +52349,13 @@ ${lanes.join("\n")}
52349
52349
  }
52350
52350
  }
52351
52351
  } else if (node.kind === 210) {
52352
- for (const p of node.properties) {
52353
- if (p.kind === 303) {
52354
- bindDestructuringTargetFlow(p.initializer);
52355
- } else if (p.kind === 304) {
52356
- bindAssignmentTargetFlow(p.name);
52357
- } else if (p.kind === 305) {
52358
- bindAssignmentTargetFlow(p.expression);
52352
+ for (const p2 of node.properties) {
52353
+ if (p2.kind === 303) {
52354
+ bindDestructuringTargetFlow(p2.initializer);
52355
+ } else if (p2.kind === 304) {
52356
+ bindAssignmentTargetFlow(p2.name);
52357
+ } else if (p2.kind === 305) {
52358
+ bindAssignmentTargetFlow(p2.expression);
52359
52359
  }
52360
52360
  }
52361
52361
  }
@@ -53977,15 +53977,15 @@ ${lanes.join("\n")}
53977
53977
  includes = 8192;
53978
53978
  excludes = 103359;
53979
53979
  } else if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) {
53980
- if (some(declaration.arguments[2].properties, (p) => {
53981
- const id = getNameOfDeclaration(p);
53980
+ if (some(declaration.arguments[2].properties, (p2) => {
53981
+ const id = getNameOfDeclaration(p2);
53982
53982
  return !!id && isIdentifier(id) && idText(id) === "set";
53983
53983
  })) {
53984
53984
  includes |= 65536 | 4;
53985
53985
  excludes |= 78783;
53986
53986
  }
53987
- if (some(declaration.arguments[2].properties, (p) => {
53988
- const id = getNameOfDeclaration(p);
53987
+ if (some(declaration.arguments[2].properties, (p2) => {
53988
+ const id = getNameOfDeclaration(p2);
53989
53989
  return !!id && isIdentifier(id) && idText(id) === "get";
53990
53990
  })) {
53991
53991
  includes |= 32768 | 4;
@@ -54573,8 +54573,8 @@ ${lanes.join("\n")}
54573
54573
  for (const signature of resolved.constructSignatures) {
54574
54574
  visitSignature(signature);
54575
54575
  }
54576
- for (const p of resolved.properties) {
54577
- visitSymbol(p);
54576
+ for (const p2 of resolved.properties) {
54577
+ visitSymbol(p2);
54578
54578
  }
54579
54579
  }
54580
54580
  function visitSymbol(symbol) {
@@ -54821,7 +54821,7 @@ ${lanes.join("\n")}
54821
54821
  const moduleSpecifiers = [existingSpecifier];
54822
54822
  return moduleSpecifiers;
54823
54823
  }
54824
- const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
54824
+ const importedFileIsInNodeModules = some(modulePaths, (p2) => p2.isInNodeModules);
54825
54825
  let nodeModulesSpecifiers;
54826
54826
  let pathsSpecifiers;
54827
54827
  let redirectPathsSpecifiers;
@@ -54946,7 +54946,7 @@ ${lanes.join("\n")}
54946
54946
  const targets = importedFileNames.map((f) => getNormalizedAbsolutePath(f, cwd));
54947
54947
  let shouldFilterIgnoredPaths = !every(targets, containsIgnoredPath);
54948
54948
  if (!preferSymlinks) {
54949
- const result2 = forEach(targets, (p) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p)) && cb(p, referenceRedirect === p));
54949
+ const result2 = forEach(targets, (p2) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p2)) && cb(p2, referenceRedirect === p2));
54950
54950
  if (result2)
54951
54951
  return result2;
54952
54952
  }
@@ -54973,7 +54973,7 @@ ${lanes.join("\n")}
54973
54973
  }
54974
54974
  });
54975
54975
  });
54976
- return result || (preferSymlinks ? forEach(targets, (p) => shouldFilterIgnoredPaths && containsIgnoredPath(p) ? void 0 : cb(p, p === referenceRedirect)) : void 0);
54976
+ return result || (preferSymlinks ? forEach(targets, (p2) => shouldFilterIgnoredPaths && containsIgnoredPath(p2) ? void 0 : cb(p2, p2 === referenceRedirect)) : void 0);
54977
54977
  }
54978
54978
  function getAllModulePaths(importingFilePath, importedFileName, host, preferences, options = {}) {
54979
54979
  var _a;
@@ -60777,7 +60777,7 @@ ${lanes.join("\n")}
60777
60777
  }
60778
60778
  }
60779
60779
  }
60780
- function visitAndTransformType(type2, transform2) {
60780
+ function visitAndTransformType(type2, transform22) {
60781
60781
  var _a2, _b2;
60782
60782
  const typeId = type2.id;
60783
60783
  const isConstructorObject = getObjectFlags(type2) & 16 && type2.symbol && type2.symbol.flags & 32;
@@ -60811,7 +60811,7 @@ ${lanes.join("\n")}
60811
60811
  }
60812
60812
  context.visitedTypes.add(typeId);
60813
60813
  const startLength = context.approximateLength;
60814
- const result = transform2(type2);
60814
+ const result = transform22(type2);
60815
60815
  const addedLength = context.approximateLength - startLength;
60816
60816
  if (!context.reportedDiagnostic && !context.encounteredError) {
60817
60817
  (_b2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _b2.set(key, { node: result, truncating: context.truncating, addedLength });
@@ -60871,7 +60871,7 @@ ${lanes.join("\n")}
60871
60871
  const types = map(abstractSignatures, getOrCreateTypeFromSignature);
60872
60872
  const typeElementCount = resolved.callSignatures.length + (resolved.constructSignatures.length - abstractSignatures.length) + resolved.indexInfos.length + // exclude `prototype` when writing a class expression as a type literal, as per
60873
60873
  // the logic in `createTypeNodesFromResolvedType`.
60874
- (context.flags & 2048 ? countWhere(resolved.properties, (p) => !(p.flags & 4194304)) : length(resolved.properties));
60874
+ (context.flags & 2048 ? countWhere(resolved.properties, (p2) => !(p2.flags & 4194304)) : length(resolved.properties));
60875
60875
  if (typeElementCount) {
60876
60876
  types.push(getResolvedTypeWithoutAbstractConstructSignatures(resolved));
60877
60877
  }
@@ -61370,7 +61370,7 @@ ${lanes.join("\n")}
61370
61370
  }
61371
61371
  }
61372
61372
  }
61373
- const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports));
61373
+ const parameters = (some(expandedParams, (p2) => p2 !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p2) & 32768)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176, options == null ? void 0 : options.privateSymbolVisitor, options == null ? void 0 : options.bundledImports));
61374
61374
  const thisParameter = context.flags & 33554432 ? void 0 : tryGetThisParameterDeclaration(signature, context);
61375
61375
  if (thisParameter) {
61376
61376
  parameters.unshift(thisParameter);
@@ -62362,13 +62362,13 @@ ${lanes.join("\n")}
62362
62362
  /*modifiers*/
62363
62363
  void 0,
62364
62364
  visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration),
62365
- mapDefined(node.parameters, (p, i) => p.name && isIdentifier(p.name) && p.name.escapedText === "new" ? (newTypeNode = p.type, void 0) : factory.createParameterDeclaration(
62365
+ mapDefined(node.parameters, (p2, i) => p2.name && isIdentifier(p2.name) && p2.name.escapedText === "new" ? (newTypeNode = p2.type, void 0) : factory.createParameterDeclaration(
62366
62366
  /*modifiers*/
62367
62367
  void 0,
62368
- getEffectiveDotDotDotForParameter(p),
62369
- getNameForJSDocFunctionParameter(p, i),
62370
- p.questionToken,
62371
- visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode),
62368
+ getEffectiveDotDotDotForParameter(p2),
62369
+ getNameForJSDocFunctionParameter(p2, i),
62370
+ p2.questionToken,
62371
+ visitNode(p2.type, visitExistingNodeTreeSymbols, isTypeNode),
62372
62372
  /*initializer*/
62373
62373
  void 0
62374
62374
  )),
@@ -62380,13 +62380,13 @@ ${lanes.join("\n")}
62380
62380
  } else {
62381
62381
  return factory.createFunctionTypeNode(
62382
62382
  visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration),
62383
- map(node.parameters, (p, i) => factory.createParameterDeclaration(
62383
+ map(node.parameters, (p2, i) => factory.createParameterDeclaration(
62384
62384
  /*modifiers*/
62385
62385
  void 0,
62386
- getEffectiveDotDotDotForParameter(p),
62387
- getNameForJSDocFunctionParameter(p, i),
62388
- p.questionToken,
62389
- visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode),
62386
+ getEffectiveDotDotDotForParameter(p2),
62387
+ getNameForJSDocFunctionParameter(p2, i),
62388
+ p2.questionToken,
62389
+ visitNode(p2.type, visitExistingNodeTreeSymbols, isTypeNode),
62390
62390
  /*initializer*/
62391
62391
  void 0
62392
62392
  )),
@@ -62436,14 +62436,14 @@ ${lanes.join("\n")}
62436
62436
  );
62437
62437
  }
62438
62438
  return visitEachChild(node, visitExistingNodeTreeSymbols, nullTransformationContext);
62439
- function getEffectiveDotDotDotForParameter(p) {
62440
- return p.dotDotDotToken || (p.type && isJSDocVariadicType(p.type) ? factory.createToken(
62439
+ function getEffectiveDotDotDotForParameter(p2) {
62440
+ return p2.dotDotDotToken || (p2.type && isJSDocVariadicType(p2.type) ? factory.createToken(
62441
62441
  26
62442
62442
  /* DotDotDotToken */
62443
62443
  ) : void 0);
62444
62444
  }
62445
- function getNameForJSDocFunctionParameter(p, index) {
62446
- return p.name && isIdentifier(p.name) && p.name.escapedText === "this" ? "this" : getEffectiveDotDotDotForParameter(p) ? `args` : `arg${index}`;
62445
+ function getNameForJSDocFunctionParameter(p2, index) {
62446
+ return p2.name && isIdentifier(p2.name) && p2.name.escapedText === "this" ? "this" : getEffectiveDotDotDotForParameter(p2) ? `args` : `arg${index}`;
62447
62447
  }
62448
62448
  function rewriteModuleSpecifier(parent2, lit) {
62449
62449
  if (bundled) {
@@ -62947,7 +62947,7 @@ ${lanes.join("\n")}
62947
62947
  var _a;
62948
62948
  const aliasType = getDeclaredTypeOfTypeAlias(symbol);
62949
62949
  const typeParams = getSymbolLinks(symbol).typeParameters;
62950
- const typeParamDecls = map(typeParams, (p) => typeParameterToDeclaration(p, context));
62950
+ const typeParamDecls = map(typeParams, (p2) => typeParameterToDeclaration(p2, context));
62951
62951
  const jsdocAliasDecl = (_a = symbol.declarations) == null ? void 0 : _a.find(isJSDocTypeAlias);
62952
62952
  const commentText = getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : void 0);
62953
62953
  const oldFlags = context.flags;
@@ -62971,10 +62971,10 @@ ${lanes.join("\n")}
62971
62971
  function serializeInterface(symbol, symbolName2, modifierFlags) {
62972
62972
  const interfaceType = getDeclaredTypeOfClassOrInterface(symbol);
62973
62973
  const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
62974
- const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context));
62974
+ const typeParamDecls = map(localParams, (p2) => typeParameterToDeclaration(p2, context));
62975
62975
  const baseTypes = getBaseTypes(interfaceType);
62976
62976
  const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0;
62977
- const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType));
62977
+ const members = flatMap(getPropertiesOfType(interfaceType), (p2) => serializePropertySymbolForInterface(p2, baseType));
62978
62978
  const callSignatures = serializeSignatures(
62979
62979
  0,
62980
62980
  interfaceType,
@@ -63078,9 +63078,9 @@ ${lanes.join("\n")}
63078
63078
  addResult(factory.createEnumDeclaration(
63079
63079
  factory.createModifiersFromModifierFlags(isConstEnumSymbol(symbol) ? 2048 : 0),
63080
63080
  getInternalSymbolName(symbol, symbolName2),
63081
- map(filter(getPropertiesOfType(getTypeOfSymbol(symbol)), (p) => !!(p.flags & 8)), (p) => {
63082
- const initializedValue = p.declarations && p.declarations[0] && isEnumMember(p.declarations[0]) ? getConstantValue2(p.declarations[0]) : void 0;
63083
- return factory.createEnumMember(unescapeLeadingUnderscores(p.escapedName), initializedValue === void 0 ? void 0 : typeof initializedValue === "string" ? factory.createStringLiteral(initializedValue) : factory.createNumericLiteral(initializedValue));
63081
+ map(filter(getPropertiesOfType(getTypeOfSymbol(symbol)), (p2) => !!(p2.flags & 8)), (p2) => {
63082
+ const initializedValue = p2.declarations && p2.declarations[0] && isEnumMember(p2.declarations[0]) ? getConstantValue2(p2.declarations[0]) : void 0;
63083
+ return factory.createEnumMember(unescapeLeadingUnderscores(p2.escapedName), initializedValue === void 0 ? void 0 : typeof initializedValue === "string" ? factory.createStringLiteral(initializedValue) : factory.createNumericLiteral(initializedValue));
63084
63084
  })
63085
63085
  ), modifierFlags);
63086
63086
  }
@@ -63120,8 +63120,8 @@ ${lanes.join("\n")}
63120
63120
  if (length(props)) {
63121
63121
  const localVsRemoteMap = arrayToMultiMap(
63122
63122
  props,
63123
- (p) => !length(p.declarations) || some(
63124
- p.declarations,
63123
+ (p2) => !length(p2.declarations) || some(
63124
+ p2.declarations,
63125
63125
  (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)
63126
63126
  ) ? "local" : "remote"
63127
63127
  );
@@ -63183,8 +63183,8 @@ ${lanes.join("\n")}
63183
63183
  addResult(fakespace, modifierFlags);
63184
63184
  }
63185
63185
  }
63186
- function isNamespaceMember(p) {
63187
- return !!(p.flags & (788968 | 1920 | 2097152)) || !(p.flags & 4194304 || p.escapedName === "prototype" || p.valueDeclaration && isStatic(p.valueDeclaration) && isClassLike(p.valueDeclaration.parent));
63186
+ function isNamespaceMember(p2) {
63187
+ return !!(p2.flags & (788968 | 1920 | 2097152)) || !(p2.flags & 4194304 || p2.escapedName === "prototype" || p2.valueDeclaration && isStatic(p2.valueDeclaration) && isClassLike(p2.valueDeclaration.parent));
63188
63188
  }
63189
63189
  function sanitizeJSDocImplements(clauses) {
63190
63190
  const result = mapDefined(clauses, (e) => {
@@ -63230,7 +63230,7 @@ ${lanes.join("\n")}
63230
63230
  const oldEnclosing = context.enclosingDeclaration;
63231
63231
  context.enclosingDeclaration = originalDecl || oldEnclosing;
63232
63232
  const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
63233
- const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context));
63233
+ const typeParamDecls = map(localParams, (p2) => typeParameterToDeclaration(p2, context));
63234
63234
  const classType = getTypeWithThisArgument(getDeclaredTypeOfClassOrInterface(symbol));
63235
63235
  const baseTypes = getBaseTypes(classType);
63236
63236
  const originalImplements = originalDecl && getEffectiveImplementsTypeNodes(originalDecl);
@@ -63262,16 +63262,16 @@ ${lanes.join("\n")}
63262
63262
  /*initializer*/
63263
63263
  void 0
63264
63264
  )] : emptyArray;
63265
- const publicProperties = flatMap(publicSymbolProps, (p) => serializePropertySymbolForClass(
63266
- p,
63265
+ const publicProperties = flatMap(publicSymbolProps, (p2) => serializePropertySymbolForClass(
63266
+ p2,
63267
63267
  /*isStatic*/
63268
63268
  false,
63269
63269
  baseTypes[0]
63270
63270
  ));
63271
63271
  const staticMembers = flatMap(
63272
- filter(getPropertiesOfType(staticType), (p) => !(p.flags & 4194304) && p.escapedName !== "prototype" && !isNamespaceMember(p)),
63273
- (p) => serializePropertySymbolForClass(
63274
- p,
63272
+ filter(getPropertiesOfType(staticType), (p2) => !(p2.flags & 4194304) && p2.escapedName !== "prototype" && !isNamespaceMember(p2)),
63273
+ (p2) => serializePropertySymbolForClass(
63274
+ p2,
63275
63275
  /*isStatic*/
63276
63276
  true,
63277
63277
  staticBaseType
@@ -63711,25 +63711,25 @@ ${lanes.join("\n")}
63711
63711
  1
63712
63712
  /* Construct */
63713
63713
  )) && // TODO: could probably serialize as function + ns + class, now that that's OK
63714
- !getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) => isIdentifierText(symbolName(p), languageVersion));
63714
+ !getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p2) => isLateBoundName(p2.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p2) => some(p2.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p2) => isIdentifierText(symbolName(p2), languageVersion));
63715
63715
  }
63716
63716
  function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) {
63717
- return function serializePropertySymbol(p, isStatic2, baseType) {
63717
+ return function serializePropertySymbol(p2, isStatic2, baseType) {
63718
63718
  var _a, _b, _c, _d, _e;
63719
- const modifierFlags = getDeclarationModifierFlagsFromSymbol(p);
63719
+ const modifierFlags = getDeclarationModifierFlagsFromSymbol(p2);
63720
63720
  const isPrivate = !!(modifierFlags & 8);
63721
- if (isStatic2 && p.flags & (788968 | 1920 | 2097152)) {
63721
+ if (isStatic2 && p2.flags & (788968 | 1920 | 2097152)) {
63722
63722
  return [];
63723
63723
  }
63724
- if (p.flags & 4194304 || p.escapedName === "constructor" || baseType && getPropertyOfType(baseType, p.escapedName) && isReadonlySymbol(getPropertyOfType(baseType, p.escapedName)) === isReadonlySymbol(p) && (p.flags & 16777216) === (getPropertyOfType(baseType, p.escapedName).flags & 16777216) && isTypeIdenticalTo(getTypeOfSymbol(p), getTypeOfPropertyOfType(baseType, p.escapedName))) {
63724
+ if (p2.flags & 4194304 || p2.escapedName === "constructor" || baseType && getPropertyOfType(baseType, p2.escapedName) && isReadonlySymbol(getPropertyOfType(baseType, p2.escapedName)) === isReadonlySymbol(p2) && (p2.flags & 16777216) === (getPropertyOfType(baseType, p2.escapedName).flags & 16777216) && isTypeIdenticalTo(getTypeOfSymbol(p2), getTypeOfPropertyOfType(baseType, p2.escapedName))) {
63725
63725
  return [];
63726
63726
  }
63727
63727
  const flag = modifierFlags & ~512 | (isStatic2 ? 32 : 0);
63728
- const name = getPropertyNameNodeForSymbol(p, context);
63729
- const firstPropertyLikeDecl = (_a = p.declarations) == null ? void 0 : _a.find(or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression));
63730
- if (p.flags & 98304 && useAccessors) {
63728
+ const name = getPropertyNameNodeForSymbol(p2, context);
63729
+ const firstPropertyLikeDecl = (_a = p2.declarations) == null ? void 0 : _a.find(or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression));
63730
+ if (p2.flags & 98304 && useAccessors) {
63731
63731
  const result = [];
63732
- if (p.flags & 65536) {
63732
+ if (p2.flags & 65536) {
63733
63733
  result.push(setTextRange(factory.createSetAccessorDeclaration(
63734
63734
  factory.createModifiersFromModifierFlags(flag),
63735
63735
  name,
@@ -63741,41 +63741,41 @@ ${lanes.join("\n")}
63741
63741
  "arg",
63742
63742
  /*questionToken*/
63743
63743
  void 0,
63744
- isPrivate ? void 0 : serializeTypeForDeclaration(context, getTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled)
63744
+ isPrivate ? void 0 : serializeTypeForDeclaration(context, getTypeOfSymbol(p2), p2, enclosingDeclaration, includePrivateSymbol, bundled)
63745
63745
  )],
63746
63746
  /*body*/
63747
63747
  void 0
63748
- ), ((_b = p.declarations) == null ? void 0 : _b.find(isSetAccessor)) || firstPropertyLikeDecl));
63748
+ ), ((_b = p2.declarations) == null ? void 0 : _b.find(isSetAccessor)) || firstPropertyLikeDecl));
63749
63749
  }
63750
- if (p.flags & 32768) {
63750
+ if (p2.flags & 32768) {
63751
63751
  const isPrivate2 = modifierFlags & 8;
63752
63752
  result.push(setTextRange(factory.createGetAccessorDeclaration(
63753
63753
  factory.createModifiersFromModifierFlags(flag),
63754
63754
  name,
63755
63755
  [],
63756
- isPrivate2 ? void 0 : serializeTypeForDeclaration(context, getTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled),
63756
+ isPrivate2 ? void 0 : serializeTypeForDeclaration(context, getTypeOfSymbol(p2), p2, enclosingDeclaration, includePrivateSymbol, bundled),
63757
63757
  /*body*/
63758
63758
  void 0
63759
- ), ((_c = p.declarations) == null ? void 0 : _c.find(isGetAccessor)) || firstPropertyLikeDecl));
63759
+ ), ((_c = p2.declarations) == null ? void 0 : _c.find(isGetAccessor)) || firstPropertyLikeDecl));
63760
63760
  }
63761
63761
  return result;
63762
- } else if (p.flags & (4 | 3 | 98304)) {
63762
+ } else if (p2.flags & (4 | 3 | 98304)) {
63763
63763
  return setTextRange(createProperty2(
63764
- factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 : 0) | flag),
63764
+ factory.createModifiersFromModifierFlags((isReadonlySymbol(p2) ? 64 : 0) | flag),
63765
63765
  name,
63766
- p.flags & 16777216 ? factory.createToken(
63766
+ p2.flags & 16777216 ? factory.createToken(
63767
63767
  58
63768
63768
  /* QuestionToken */
63769
63769
  ) : void 0,
63770
- isPrivate ? void 0 : serializeTypeForDeclaration(context, getWriteTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled),
63770
+ isPrivate ? void 0 : serializeTypeForDeclaration(context, getWriteTypeOfSymbol(p2), p2, enclosingDeclaration, includePrivateSymbol, bundled),
63771
63771
  // TODO: https://github.com/microsoft/TypeScript/pull/32372#discussion_r328386357
63772
63772
  // interface members can't have initializers, however class members _can_
63773
63773
  /*initializer*/
63774
63774
  void 0
63775
- ), ((_d = p.declarations) == null ? void 0 : _d.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl);
63775
+ ), ((_d = p2.declarations) == null ? void 0 : _d.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl);
63776
63776
  }
63777
- if (p.flags & (8192 | 16)) {
63778
- const type = getTypeOfSymbol(p);
63777
+ if (p2.flags & (8192 | 16)) {
63778
+ const type = getTypeOfSymbol(p2);
63779
63779
  const signatures = getSignaturesOfType(
63780
63780
  type,
63781
63781
  0
@@ -63783,9 +63783,9 @@ ${lanes.join("\n")}
63783
63783
  );
63784
63784
  if (flag & 8) {
63785
63785
  return setTextRange(createProperty2(
63786
- factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 : 0) | flag),
63786
+ factory.createModifiersFromModifierFlags((isReadonlySymbol(p2) ? 64 : 0) | flag),
63787
63787
  name,
63788
- p.flags & 16777216 ? factory.createToken(
63788
+ p2.flags & 16777216 ? factory.createToken(
63789
63789
  58
63790
63790
  /* QuestionToken */
63791
63791
  ) : void 0,
@@ -63793,7 +63793,7 @@ ${lanes.join("\n")}
63793
63793
  void 0,
63794
63794
  /*initializer*/
63795
63795
  void 0
63796
- ), ((_e = p.declarations) == null ? void 0 : _e.find(isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p.declarations && p.declarations[0]);
63796
+ ), ((_e = p2.declarations) == null ? void 0 : _e.find(isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p2.declarations && p2.declarations[0]);
63797
63797
  }
63798
63798
  const results2 = [];
63799
63799
  for (const sig of signatures) {
@@ -63803,7 +63803,7 @@ ${lanes.join("\n")}
63803
63803
  context,
63804
63804
  {
63805
63805
  name,
63806
- questionToken: p.flags & 16777216 ? factory.createToken(
63806
+ questionToken: p2.flags & 16777216 ? factory.createToken(
63807
63807
  58
63808
63808
  /* QuestionToken */
63809
63809
  ) : void 0,
@@ -63815,12 +63815,12 @@ ${lanes.join("\n")}
63815
63815
  }
63816
63816
  return results2;
63817
63817
  }
63818
- return Debug.fail(`Unhandled class member kind! ${p.__debugFlags || p.flags}`);
63818
+ return Debug.fail(`Unhandled class member kind! ${p2.__debugFlags || p2.flags}`);
63819
63819
  };
63820
63820
  }
63821
- function serializePropertySymbolForInterface(p, baseType) {
63821
+ function serializePropertySymbolForInterface(p2, baseType) {
63822
63822
  return serializePropertySymbolForInterfaceWorker(
63823
- p,
63823
+ p2,
63824
63824
  /*isStatic*/
63825
63825
  false,
63826
63826
  baseType
@@ -67031,10 +67031,10 @@ ${lanes.join("\n")}
67031
67031
  let indexInfos;
67032
67032
  if (symbol === globalThisSymbol) {
67033
67033
  const varsOnly = /* @__PURE__ */ new Map();
67034
- members.forEach((p) => {
67034
+ members.forEach((p2) => {
67035
67035
  var _a;
67036
- if (!(p.flags & 418) && !(p.flags & 512 && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) {
67037
- varsOnly.set(p.escapedName, p);
67036
+ if (!(p2.flags & 418) && !(p2.flags & 512 && ((_a = p2.declarations) == null ? void 0 : _a.length) && every(p2.declarations, isAmbientModule))) {
67037
+ varsOnly.set(p2.escapedName, p2);
67038
67038
  }
67039
67039
  });
67040
67040
  members = varsOnly;
@@ -68302,7 +68302,7 @@ ${lanes.join("\n")}
68302
68302
  }
68303
68303
  const lastParam = lastOrUndefined(declaration.parameters);
68304
68304
  const lastParamTags = lastParam ? getJSDocParameterTags(lastParam) : getJSDocTags(declaration).filter(isJSDocParameterTag);
68305
- const lastParamVariadicType = firstDefined(lastParamTags, (p) => p.typeExpression && isJSDocVariadicType(p.typeExpression.type) ? p.typeExpression.type : void 0);
68305
+ const lastParamVariadicType = firstDefined(lastParamTags, (p2) => p2.typeExpression && isJSDocVariadicType(p2.typeExpression.type) ? p2.typeExpression.type : void 0);
68306
68306
  const syntheticArgsSymbol = createSymbol(
68307
68307
  3,
68308
68308
  "args",
@@ -68461,7 +68461,7 @@ ${lanes.join("\n")}
68461
68461
  ) : createTypePredicate(
68462
68462
  node.assertsModifier ? 3 : 1,
68463
68463
  parameterName.escapedText,
68464
- findIndex(signature.parameters, (p) => p.escapedName === parameterName.escapedText),
68464
+ findIndex(signature.parameters, (p2) => p2.escapedName === parameterName.escapedText),
68465
68465
  type
68466
68466
  );
68467
68467
  }
@@ -70039,7 +70039,7 @@ ${lanes.join("\n")}
70039
70039
  }
70040
70040
  continue;
70041
70041
  }
70042
- const keyProperty = source.flags & (524288 | 2097152 | 58982400) ? find(getPropertiesOfType(source), (p) => isUnitType(getTypeOfSymbol(p))) : void 0;
70042
+ const keyProperty = source.flags & (524288 | 2097152 | 58982400) ? find(getPropertiesOfType(source), (p2) => isUnitType(getTypeOfSymbol(p2))) : void 0;
70043
70043
  const keyPropertyType = keyProperty && getRegularTypeOfLiteralType(getTypeOfSymbol(keyProperty));
70044
70044
  for (const target of types) {
70045
70045
  if (source !== target) {
@@ -71277,9 +71277,9 @@ ${lanes.join("\n")}
71277
71277
  }
71278
71278
  return type;
71279
71279
  }
71280
- function maybeCloneTypeParameter(p) {
71281
- const constraint = getConstraintOfTypeParameter(p);
71282
- return constraint && (isGenericObjectType(constraint) || isGenericIndexType(constraint)) ? cloneTypeParameter(p) : p;
71280
+ function maybeCloneTypeParameter(p2) {
71281
+ const constraint = getConstraintOfTypeParameter(p2);
71282
+ return constraint && (isGenericObjectType(constraint) || isGenericIndexType(constraint)) ? cloneTypeParameter(p2) : p2;
71283
71283
  }
71284
71284
  function isSimpleTupleType(node) {
71285
71285
  return isTupleTypeNode(node) && length(node.elements) > 0 && !some(node.elements, (e) => isOptionalTypeNode(e) || isRestTypeNode(e) || isNamedTupleMember(e) && !!(e.questionToken || e.dotDotDotToken));
@@ -75444,9 +75444,9 @@ ${lanes.join("\n")}
75444
75444
  false
75445
75445
  )) {
75446
75446
  if (props.length > 5) {
75447
- reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source2), typeToString(target2), map(props.slice(0, 4), (p) => symbolToString(p)).join(", "), props.length - 4);
75447
+ reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source2), typeToString(target2), map(props.slice(0, 4), (p2) => symbolToString(p2)).join(", "), props.length - 4);
75448
75448
  } else {
75449
- reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source2), typeToString(target2), map(props, (p) => symbolToString(p)).join(", "));
75449
+ reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source2), typeToString(target2), map(props, (p2) => symbolToString(p2)).join(", "));
75450
75450
  }
75451
75451
  if (shouldSkipElaboration && errorInfo) {
75452
75452
  overrideNextErrorInfo++;
@@ -76041,7 +76041,7 @@ ${lanes.join("\n")}
76041
76041
  function isWeakType(type) {
76042
76042
  if (type.flags & 524288) {
76043
76043
  const resolved = resolveStructuredTypeMembers(type);
76044
- return resolved.callSignatures.length === 0 && resolved.constructSignatures.length === 0 && resolved.indexInfos.length === 0 && resolved.properties.length > 0 && every(resolved.properties, (p) => !!(p.flags & 16777216));
76044
+ return resolved.callSignatures.length === 0 && resolved.constructSignatures.length === 0 && resolved.indexInfos.length === 0 && resolved.properties.length > 0 && every(resolved.properties, (p2) => !!(p2.flags & 16777216));
76045
76045
  }
76046
76046
  if (type.flags & 2097152) {
76047
76047
  return every(type.types, isWeakType);
@@ -76189,8 +76189,8 @@ ${lanes.join("\n")}
76189
76189
  function forEachProperty2(prop, callback) {
76190
76190
  if (getCheckFlags(prop) & 6) {
76191
76191
  for (const t of prop.links.containingType.types) {
76192
- const p = getPropertyOfType(t, prop.escapedName);
76193
- const result = p && forEachProperty2(p, callback);
76192
+ const p2 = getPropertyOfType(t, prop.escapedName);
76193
+ const result = p2 && forEachProperty2(p2, callback);
76194
76194
  if (result) {
76195
76195
  return result;
76196
76196
  }
@@ -76217,7 +76217,7 @@ ${lanes.join("\n")}
76217
76217
  return !forEachProperty2(targetProp, (tp) => getDeclarationModifierFlagsFromSymbol(tp) & 16 ? !isPropertyInClassDerivedFrom(sourceProp, getDeclaringClass(tp)) : false);
76218
76218
  }
76219
76219
  function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) {
76220
- return forEachProperty2(prop, (p) => getDeclarationModifierFlagsFromSymbol(p, writing) & 16 ? !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? void 0 : checkClass;
76220
+ return forEachProperty2(prop, (p2) => getDeclarationModifierFlagsFromSymbol(p2, writing) & 16 ? !hasBaseType(checkClass, getDeclaringClass(p2)) : false) ? void 0 : checkClass;
76221
76221
  }
76222
76222
  function isDeeplyNestedType(type, stack, depth, maxDepth = 3) {
76223
76223
  if (depth >= maxDepth) {
@@ -76833,11 +76833,11 @@ ${lanes.join("\n")}
76833
76833
  }
76834
76834
  }
76835
76835
  if (isObjectLiteralType2(type)) {
76836
- for (const p of getPropertiesOfObjectType(type)) {
76837
- const t = getTypeOfSymbol(p);
76836
+ for (const p2 of getPropertiesOfObjectType(type)) {
76837
+ const t = getTypeOfSymbol(p2);
76838
76838
  if (getObjectFlags(t) & 65536) {
76839
76839
  if (!reportWideningErrorsInType(t)) {
76840
- error2(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));
76840
+ error2(p2.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p2), typeToString(getWidenedType(t)));
76841
76841
  }
76842
76842
  errorReported = true;
76843
76843
  }
@@ -77312,17 +77312,17 @@ ${lanes.join("\n")}
77312
77312
  const delim = targetTexts[i];
77313
77313
  if (delim.length > 0) {
77314
77314
  let s = seg;
77315
- let p = pos;
77315
+ let p2 = pos;
77316
77316
  while (true) {
77317
- p = getSourceText(s).indexOf(delim, p);
77318
- if (p >= 0)
77317
+ p2 = getSourceText(s).indexOf(delim, p2);
77318
+ if (p2 >= 0)
77319
77319
  break;
77320
77320
  s++;
77321
77321
  if (s === sourceTexts.length)
77322
77322
  return void 0;
77323
- p = 0;
77323
+ p2 = 0;
77324
77324
  }
77325
- addMatch(s, p);
77325
+ addMatch(s, p2);
77326
77326
  pos += delim.length;
77327
77327
  } else if (pos < getSourceText(seg).length) {
77328
77328
  addMatch(seg, pos + 1);
@@ -77337,14 +77337,14 @@ ${lanes.join("\n")}
77337
77337
  function getSourceText(index) {
77338
77338
  return index < lastSourceIndex ? sourceTexts[index] : remainingEndText;
77339
77339
  }
77340
- function addMatch(s, p) {
77341
- const matchType = s === seg ? getStringLiteralType(getSourceText(s).slice(pos, p)) : getTemplateLiteralType(
77342
- [sourceTexts[seg].slice(pos), ...sourceTexts.slice(seg + 1, s), getSourceText(s).slice(0, p)],
77340
+ function addMatch(s, p2) {
77341
+ const matchType = s === seg ? getStringLiteralType(getSourceText(s).slice(pos, p2)) : getTemplateLiteralType(
77342
+ [sourceTexts[seg].slice(pos), ...sourceTexts.slice(seg + 1, s), getSourceText(s).slice(0, p2)],
77343
77343
  sourceTypes.slice(seg, s)
77344
77344
  );
77345
77345
  matches.push(matchType);
77346
77346
  seg = s;
77347
- pos = p;
77347
+ pos = p2;
77348
77348
  }
77349
77349
  }
77350
77350
  function inferTypes(inferences, originalSource, originalTarget, priority = 0, contravariant = false) {
@@ -78356,7 +78356,7 @@ ${lanes.join("\n")}
78356
78356
  return void 0;
78357
78357
  }
78358
78358
  if (unionType.keyPropertyName === void 0) {
78359
- const keyPropertyName = forEach(types, (t) => t.flags & (524288 | 58982400) ? forEach(getPropertiesOfType(t), (p) => isUnitType(getTypeOfSymbol(p)) ? p.escapedName : void 0) : void 0);
78359
+ const keyPropertyName = forEach(types, (t) => t.flags & (524288 | 58982400) ? forEach(getPropertiesOfType(t), (p2) => isUnitType(getTypeOfSymbol(p2)) ? p2.escapedName : void 0) : void 0);
78360
78360
  const mapByKeyProperty = keyPropertyName && mapTypesByKeyProperty(types, keyPropertyName);
78361
78361
  unionType.keyPropertyName = mapByKeyProperty ? keyPropertyName : "";
78362
78362
  unionType.constituentMap = mapByKeyProperty;
@@ -78375,7 +78375,7 @@ ${lanes.join("\n")}
78375
78375
  }
78376
78376
  function getMatchingUnionConstituentForObjectLiteral(unionType, node) {
78377
78377
  const keyPropertyName = getKeyPropertyName(unionType);
78378
- const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 303 && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer));
78378
+ const propNode = keyPropertyName && find(node.properties, (p2) => p2.symbol && p2.kind === 303 && p2.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p2.initializer));
78379
78379
  const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer);
78380
78380
  return propType && getConstituentTypeForKeyType(unionType, propType);
78381
78381
  }
@@ -81724,7 +81724,7 @@ ${lanes.join("\n")}
81724
81724
  contextualType,
81725
81725
  concatenate(
81726
81726
  map(
81727
- filter(node.properties, (p) => !!p.symbol && p.kind === 303 && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName)),
81727
+ filter(node.properties, (p2) => !!p2.symbol && p2.kind === 303 && isPossiblyDiscriminantValue(p2.initializer) && isDiscriminantProperty(contextualType, p2.symbol.escapedName)),
81728
81728
  (prop) => [() => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName]
81729
81729
  ),
81730
81730
  map(
@@ -81744,7 +81744,7 @@ ${lanes.join("\n")}
81744
81744
  contextualType,
81745
81745
  concatenate(
81746
81746
  map(
81747
- filter(node.properties, (p) => !!p.symbol && p.kind === 291 && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))),
81747
+ filter(node.properties, (p2) => !!p2.symbol && p2.kind === 291 && isDiscriminantProperty(contextualType, p2.symbol.escapedName) && (!p2.initializer || isPossiblyDiscriminantValue(p2.initializer))),
81748
81748
  (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName]
81749
81749
  ),
81750
81750
  map(
@@ -84398,7 +84398,7 @@ ${lanes.join("\n")}
84398
84398
  return inferJsxTypeArguments(node, signature, checkMode, context);
84399
84399
  }
84400
84400
  if (node.kind !== 170) {
84401
- const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p));
84401
+ const skipBindingPatterns = every(signature.typeParameters, (p2) => !!getDefaultFromTypeParameter(p2));
84402
84402
  const contextualType = getContextualType2(
84403
84403
  node,
84404
84404
  skipBindingPatterns ? 8 : 0
@@ -90188,8 +90188,8 @@ ${lanes.join("\n")}
90188
90188
  if (classExtendsNull) {
90189
90189
  error2(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);
90190
90190
  }
90191
- const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(
90192
- p,
90191
+ const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p2) => hasSyntacticModifier(
90192
+ p2,
90193
90193
  16476
90194
90194
  /* ParameterPropertyModifier */
90195
90195
  )));
@@ -91922,9 +91922,9 @@ ${lanes.join("\n")}
91922
91922
  if (languageVersion >= 2 || !hasRestParameter(node) || node.flags & 33554432 || nodeIsMissing(node.body)) {
91923
91923
  return;
91924
91924
  }
91925
- forEach(node.parameters, (p) => {
91926
- if (p.name && !isBindingPattern(p.name) && p.name.escapedText === argumentsSymbol.escapedName) {
91927
- errorSkippedOn("noEmit", p, Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters);
91925
+ forEach(node.parameters, (p2) => {
91926
+ if (p2.name && !isBindingPattern(p2.name) && p2.name.escapedText === argumentsSymbol.escapedName) {
91927
+ errorSkippedOn("noEmit", p2, Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters);
91928
91928
  }
91929
91929
  });
91930
91930
  }
@@ -93730,7 +93730,7 @@ ${lanes.join("\n")}
93730
93730
  }
93731
93731
  function checkClassDeclaration(node) {
93732
93732
  const firstDecorator = find(node.modifiers, isDecorator);
93733
- if (legacyDecorators && firstDecorator && some(node.members, (p) => hasStaticModifier(p) && isPrivateIdentifierClassElementDeclaration(p))) {
93733
+ if (legacyDecorators && firstDecorator && some(node.members, (p2) => hasStaticModifier(p2) && isPrivateIdentifierClassElementDeclaration(p2))) {
93734
93734
  grammarErrorOnNode(firstDecorator, Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator);
93735
93735
  }
93736
93736
  if (!node.name && !hasSyntacticModifier(
@@ -94212,8 +94212,8 @@ ${lanes.join("\n")}
94212
94212
  return properties;
94213
94213
  }
94214
94214
  const seen = /* @__PURE__ */ new Map();
94215
- forEach(properties, (p) => {
94216
- seen.set(p.escapedName, p);
94215
+ forEach(properties, (p2) => {
94216
+ seen.set(p2.escapedName, p2);
94217
94217
  });
94218
94218
  for (const base of baseTypes) {
94219
94219
  const properties2 = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType));
@@ -94232,8 +94232,8 @@ ${lanes.join("\n")}
94232
94232
  return true;
94233
94233
  }
94234
94234
  const seen = /* @__PURE__ */ new Map();
94235
- forEach(resolveDeclaredMembers(type).declaredProperties, (p) => {
94236
- seen.set(p.escapedName, { prop: p, containingType: type });
94235
+ forEach(resolveDeclaredMembers(type).declaredProperties, (p2) => {
94236
+ seen.set(p2.escapedName, { prop: p2, containingType: type });
94237
94237
  });
94238
94238
  let ok = true;
94239
94239
  for (const base of baseTypes) {
@@ -96487,9 +96487,9 @@ ${lanes.join("\n")}
96487
96487
  /* Construct */
96488
96488
  ).length ? globalNewableFunctionType : void 0;
96489
96489
  if (functionType) {
96490
- forEach(getPropertiesOfType(functionType), (p) => {
96491
- if (!propsByName.has(p.escapedName)) {
96492
- propsByName.set(p.escapedName, p);
96490
+ forEach(getPropertiesOfType(functionType), (p2) => {
96491
+ if (!propsByName.has(p2.escapedName)) {
96492
+ propsByName.set(p2.escapedName, p2);
96493
96493
  }
96494
96494
  });
96495
96495
  }
@@ -96783,7 +96783,7 @@ ${lanes.join("\n")}
96783
96783
  if (!symbol || !(symbol.flags & 16)) {
96784
96784
  return false;
96785
96785
  }
96786
- return !!forEachEntry(getExportsOfSymbol(symbol), (p) => p.flags & 111551 && p.valueDeclaration && isPropertyAccessExpression(p.valueDeclaration));
96786
+ return !!forEachEntry(getExportsOfSymbol(symbol), (p2) => p2.flags & 111551 && p2.valueDeclaration && isPropertyAccessExpression(p2.valueDeclaration));
96787
96787
  }
96788
96788
  function getPropertiesOfContainerFunction(node) {
96789
96789
  const declaration = getParseTreeNode(node, isFunctionDeclaration);
@@ -99178,7 +99178,7 @@ ${lanes.join("\n")}
99178
99178
  if (sourceProperties) {
99179
99179
  const sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target);
99180
99180
  if (sourcePropertiesFiltered) {
99181
- const discriminated = discriminateTypeByDiscriminableItems(target, map(sourcePropertiesFiltered, (p) => [() => getTypeOfSymbol(p), p.escapedName]), isRelatedTo);
99181
+ const discriminated = discriminateTypeByDiscriminableItems(target, map(sourcePropertiesFiltered, (p2) => [() => getTypeOfSymbol(p2), p2.escapedName]), isRelatedTo);
99182
99182
  if (discriminated !== target) {
99183
99183
  return discriminated;
99184
99184
  }
@@ -103690,7 +103690,7 @@ ${lanes.join("\n")}
103690
103690
  const members = visitNodes2(node.members, getClassElementVisitor(node), isClassElement);
103691
103691
  let newMembers;
103692
103692
  const constructor = getFirstConstructorWithBody(node);
103693
- const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor));
103693
+ const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p2) => isParameterPropertyDeclaration(p2, constructor));
103694
103694
  if (parametersWithPropertyAssignments) {
103695
103695
  for (const parameter of parametersWithPropertyAssignments) {
103696
103696
  const parameterProperty = factory2.createPropertyDeclaration(
@@ -103972,7 +103972,7 @@ ${lanes.join("\n")}
103972
103972
  addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1));
103973
103973
  }
103974
103974
  function transformConstructorBody(body, constructor) {
103975
- const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor));
103975
+ const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p2) => isParameterPropertyDeclaration(p2, constructor));
103976
103976
  if (!some(parametersWithPropertyAssignments)) {
103977
103977
  return visitFunctionBody(body, visitor, context);
103978
103978
  }
@@ -113636,7 +113636,7 @@ ${lanes.join("\n")}
113636
113636
  }
113637
113637
  }
113638
113638
  function hasProto(obj) {
113639
- return obj.properties.some((p) => isPropertyAssignment(p) && (isIdentifier(p.name) && idText(p.name) === "__proto__" || isStringLiteral(p.name) && p.name.text === "__proto__"));
113639
+ return obj.properties.some((p2) => isPropertyAssignment(p2) && (isIdentifier(p2.name) && idText(p2.name) === "__proto__" || isStringLiteral(p2.name) && p2.name.text === "__proto__"));
113640
113640
  }
113641
113641
  function hasKeyAfterPropsSpread(node) {
113642
113642
  let spread = false;
@@ -113699,8 +113699,8 @@ ${lanes.join("\n")}
113699
113699
  function visitJsxOpeningLikeElementJSX(node, children, isChild, location) {
113700
113700
  const tagName = getTagName(node);
113701
113701
  const childrenProp = children && children.length ? convertJsxChildrenToChildrenPropAssignment(children) : void 0;
113702
- const keyAttr = find(node.attributes.properties, (p) => !!p.name && isIdentifier(p.name) && p.name.escapedText === "key");
113703
- const attrs = keyAttr ? filter(node.attributes.properties, (p) => p !== keyAttr) : node.attributes.properties;
113702
+ const keyAttr = find(node.attributes.properties, (p2) => !!p2.name && isIdentifier(p2.name) && p2.name.escapedText === "key");
113703
+ const attrs = keyAttr ? filter(node.attributes.properties, (p2) => p2 !== keyAttr) : node.attributes.properties;
113704
113704
  const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs, childrenProp) : factory2.createObjectLiteralExpression(childrenProp ? [childrenProp] : emptyArray);
113705
113705
  return visitJsxOpeningLikeElementOrFragmentJSX(
113706
113706
  tagName,
@@ -116889,14 +116889,14 @@ ${lanes.join("\n")}
116889
116889
  ));
116890
116890
  }
116891
116891
  }
116892
- function createOutVariable(p) {
116892
+ function createOutVariable(p2) {
116893
116893
  return factory2.createVariableDeclaration(
116894
- p.originalName,
116894
+ p2.originalName,
116895
116895
  /*exclamationToken*/
116896
116896
  void 0,
116897
116897
  /*type*/
116898
116898
  void 0,
116899
- p.outParamName
116899
+ p2.outParamName
116900
116900
  );
116901
116901
  }
116902
116902
  function createFunctionForInitializerOfForStatement(node, currentState) {
@@ -117090,7 +117090,7 @@ ${lanes.join("\n")}
117090
117090
  loopFunctionExpressionName,
117091
117091
  /*typeArguments*/
117092
117092
  void 0,
117093
- map(state.loopParameters, (p) => p.name)
117093
+ map(state.loopParameters, (p2) => p2.name)
117094
117094
  );
117095
117095
  const callResult = containsYield ? factory2.createYieldExpression(
117096
117096
  factory2.createToken(
@@ -124660,29 +124660,29 @@ ${lanes.join("\n")}
124660
124660
  );
124661
124661
  }
124662
124662
  }
124663
- function ensureParameter(p, modifierMask, type) {
124663
+ function ensureParameter(p2, modifierMask, type) {
124664
124664
  let oldDiag;
124665
124665
  if (!suppressNewDiagnosticContexts) {
124666
124666
  oldDiag = getSymbolAccessibilityDiagnostic;
124667
- getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p);
124667
+ getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p2);
124668
124668
  }
124669
124669
  const newParam = factory2.updateParameterDeclaration(
124670
- p,
124671
- maskModifiers(factory2, p, modifierMask),
124672
- p.dotDotDotToken,
124673
- filterBindingPatternInitializersAndRenamings(p.name),
124674
- resolver.isOptionalParameter(p) ? p.questionToken || factory2.createToken(
124670
+ p2,
124671
+ maskModifiers(factory2, p2, modifierMask),
124672
+ p2.dotDotDotToken,
124673
+ filterBindingPatternInitializersAndRenamings(p2.name),
124674
+ resolver.isOptionalParameter(p2) ? p2.questionToken || factory2.createToken(
124675
124675
  58
124676
124676
  /* QuestionToken */
124677
124677
  ) : void 0,
124678
124678
  ensureType(
124679
- p,
124680
- type || p.type,
124679
+ p2,
124680
+ type || p2.type,
124681
124681
  /*ignorePrivate*/
124682
124682
  true
124683
124683
  ),
124684
124684
  // Ignore private param props, since this type is going straight back into a param
124685
- ensureNoInitializer(p)
124685
+ ensureNoInitializer(p2)
124686
124686
  );
124687
124687
  if (!suppressNewDiagnosticContexts) {
124688
124688
  getSymbolAccessibilityDiagnostic = oldDiag;
@@ -124799,7 +124799,7 @@ ${lanes.join("\n")}
124799
124799
  )) {
124800
124800
  return factory2.createNodeArray();
124801
124801
  }
124802
- const newParams = map(params, (p) => ensureParameter(p, modifierMask));
124802
+ const newParams = map(params, (p2) => ensureParameter(p2, modifierMask));
124803
124803
  if (!newParams) {
124804
124804
  return factory2.createNodeArray();
124805
124805
  }
@@ -125489,11 +125489,11 @@ ${lanes.join("\n")}
125489
125489
  fakespace.locals = createSymbolTable(props);
125490
125490
  fakespace.symbol = props[0].parent;
125491
125491
  const exportMappings = [];
125492
- let declarations = mapDefined(props, (p) => {
125493
- if (!p.valueDeclaration || !(isPropertyAccessExpression(p.valueDeclaration) || isElementAccessExpression(p.valueDeclaration) || isBinaryExpression(p.valueDeclaration))) {
125492
+ let declarations = mapDefined(props, (p2) => {
125493
+ if (!p2.valueDeclaration || !(isPropertyAccessExpression(p2.valueDeclaration) || isElementAccessExpression(p2.valueDeclaration) || isBinaryExpression(p2.valueDeclaration))) {
125494
125494
  return void 0;
125495
125495
  }
125496
- const nameStr = unescapeLeadingUnderscores(p.escapedName);
125496
+ const nameStr = unescapeLeadingUnderscores(p2.escapedName);
125497
125497
  if (!isIdentifierText(
125498
125498
  nameStr,
125499
125499
  99
@@ -125501,11 +125501,11 @@ ${lanes.join("\n")}
125501
125501
  )) {
125502
125502
  return void 0;
125503
125503
  }
125504
- getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p.valueDeclaration);
125505
- const type = resolver.createTypeOfDeclaration(p.valueDeclaration, fakespace, declarationEmitNodeBuilderFlags, symbolTracker);
125504
+ getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p2.valueDeclaration);
125505
+ const type = resolver.createTypeOfDeclaration(p2.valueDeclaration, fakespace, declarationEmitNodeBuilderFlags, symbolTracker);
125506
125506
  getSymbolAccessibilityDiagnostic = oldDiag;
125507
125507
  const isNonContextualKeywordName = isStringANonContextualKeyword(nameStr);
125508
- const name = isNonContextualKeywordName ? factory2.getGeneratedNameForNode(p.valueDeclaration) : factory2.createIdentifier(nameStr);
125508
+ const name = isNonContextualKeywordName ? factory2.getGeneratedNameForNode(p2.valueDeclaration) : factory2.createIdentifier(nameStr);
125509
125509
  if (isNonContextualKeywordName) {
125510
125510
  exportMappings.push([name, nameStr]);
125511
125511
  }
@@ -126185,8 +126185,8 @@ ${lanes.join("\n")}
126185
126185
  mark("beforeTransform");
126186
126186
  const transformersWithContext = transformers.map((t) => t(context));
126187
126187
  const transformation = (node) => {
126188
- for (const transform2 of transformersWithContext) {
126189
- node = transform2(node);
126188
+ for (const transform22 of transformersWithContext) {
126189
+ node = transform22(node);
126190
126190
  }
126191
126191
  return node;
126192
126192
  };
@@ -126828,7 +126828,7 @@ ${lanes.join("\n")}
126828
126828
  emitSkipped = true;
126829
126829
  return;
126830
126830
  }
126831
- const transform2 = transformNodes(
126831
+ const transform22 = transformNodes(
126832
126832
  resolver,
126833
126833
  host,
126834
126834
  factory,
@@ -126855,13 +126855,13 @@ ${lanes.join("\n")}
126855
126855
  // resolver hooks
126856
126856
  hasGlobalName: resolver.hasGlobalName,
126857
126857
  // transform hooks
126858
- onEmitNode: transform2.emitNodeWithNotification,
126859
- isEmitNotificationEnabled: transform2.isEmitNotificationEnabled,
126860
- substituteNode: transform2.substituteNode
126858
+ onEmitNode: transform22.emitNodeWithNotification,
126859
+ isEmitNotificationEnabled: transform22.isEmitNotificationEnabled,
126860
+ substituteNode: transform22.substituteNode
126861
126861
  });
126862
- Debug.assert(transform2.transformed.length === 1, "Should only see one output from the transform");
126863
- printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, compilerOptions);
126864
- transform2.dispose();
126862
+ Debug.assert(transform22.transformed.length === 1, "Should only see one output from the transform");
126863
+ printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform22, printer, compilerOptions);
126864
+ transform22.dispose();
126865
126865
  if (bundleBuildInfo)
126866
126866
  bundleBuildInfo.js = printer.bundleFileInfo;
126867
126867
  }
@@ -126958,8 +126958,8 @@ ${lanes.join("\n")}
126958
126958
  }
126959
126959
  forEachChild(node, collectLinkedAliases);
126960
126960
  }
126961
- function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, mapOptions) {
126962
- const sourceFileOrBundle = transform2.transformed[0];
126961
+ function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform22, printer, mapOptions) {
126962
+ const sourceFileOrBundle = transform22.transformed[0];
126963
126963
  const bundle = sourceFileOrBundle.kind === 313 ? sourceFileOrBundle : void 0;
126964
126964
  const sourceFile = sourceFileOrBundle.kind === 312 ? sourceFileOrBundle : void 0;
126965
126965
  const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile];
@@ -127017,7 +127017,7 @@ ${lanes.join("\n")}
127017
127017
  writer.writeLine();
127018
127018
  }
127019
127019
  const text = writer.getText();
127020
- writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
127020
+ writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform22.diagnostics });
127021
127021
  if (printer.bundleFileInfo)
127022
127022
  printer.bundleFileInfo.hash = computeSignature(text, host);
127023
127023
  writer.clear();
@@ -142658,7 +142658,7 @@ ${lanes.join("\n")}
142658
142658
  disableCache(state);
142659
142659
  reportErrorSummary(state, buildOrder);
142660
142660
  startWatching(state, buildOrder);
142661
- return isCircularBuildOrder(buildOrder) ? 4 : !buildOrder.some((p) => state.diagnostics.has(toResolvedConfigFilePath(state, p))) ? 0 : successfulProjects ? 2 : 1;
142661
+ return isCircularBuildOrder(buildOrder) ? 4 : !buildOrder.some((p2) => state.diagnostics.has(toResolvedConfigFilePath(state, p2))) ? 0 : successfulProjects ? 2 : 1;
142662
142662
  }
142663
142663
  function clean(state, project, onlyReferences) {
142664
142664
  mark("SolutionBuilder::beforeClean");
@@ -146515,7 +146515,7 @@ ${lanes.join("\n")}
146515
146515
  }
146516
146516
  }
146517
146517
  function createPackageJsonImportFilter(fromFile, preferences, host) {
146518
- const packageJsons = (host.getPackageJsonsVisibleToFile && host.getPackageJsonsVisibleToFile(fromFile.fileName) || getPackageJsonsVisibleToFile(fromFile.fileName, host)).filter((p) => p.parseable);
146518
+ const packageJsons = (host.getPackageJsonsVisibleToFile && host.getPackageJsonsVisibleToFile(fromFile.fileName) || getPackageJsonsVisibleToFile(fromFile.fileName, host)).filter((p2) => p2.parseable);
146519
146519
  let usesNodeCoreModules;
146520
146520
  let ambientModuleCache;
146521
146521
  let sourceFileCache;
@@ -147215,7 +147215,7 @@ ${lanes.join("\n")}
147215
147215
  }
147216
147216
  function forEachExternalModule(checker, allSourceFiles, excludePatterns, cb) {
147217
147217
  var _a;
147218
- const isExcluded = excludePatterns && ((fileName) => excludePatterns.some((p) => p.test(fileName)));
147218
+ const isExcluded = excludePatterns && ((fileName) => excludePatterns.some((p2) => p2.test(fileName)));
147219
147219
  for (const ambient of checker.getAmbientModules()) {
147220
147220
  if (!stringContains(ambient.name, "*") && !(excludePatterns && ((_a = ambient.declarations) == null ? void 0 : _a.every((d) => isExcluded(d.getSourceFile().fileName))))) {
147221
147221
  cb(
@@ -149285,7 +149285,7 @@ ${lanes.join("\n")}
149285
149285
  }
149286
149286
  function createPatternMatcher(pattern) {
149287
149287
  const stringToWordSpans = /* @__PURE__ */ new Map();
149288
- const dotSeparatedSegments = pattern.trim().split(".").map((p) => createSegment(p.trim()));
149288
+ const dotSeparatedSegments = pattern.trim().split(".").map((p2) => createSegment(p2.trim()));
149289
149289
  if (dotSeparatedSegments.some((segment) => !segment.subWordTextChunks.length))
149290
149290
  return void 0;
149291
149291
  return {
@@ -153095,7 +153095,7 @@ ${lanes.join("\n")}
153095
153095
  return d.parent.parent;
153096
153096
  case 208:
153097
153097
  return getTopLevelDeclarationStatement(
153098
- cast(d.parent.parent, (p) => isVariableDeclaration(p) || isBindingElement(p))
153098
+ cast(d.parent.parent, (p2) => isVariableDeclaration(p2) || isBindingElement(p2))
153099
153099
  );
153100
153100
  default:
153101
153101
  return d;
@@ -153606,18 +153606,18 @@ ${lanes.join("\n")}
153606
153606
  /* SingleLine */
153607
153607
  );
153608
153608
  }
153609
- function convertParameterToNamedTupleMember(p) {
153610
- Debug.assert(isIdentifier(p.name));
153609
+ function convertParameterToNamedTupleMember(p2) {
153610
+ Debug.assert(isIdentifier(p2.name));
153611
153611
  const result = setTextRange(factory.createNamedTupleMember(
153612
- p.dotDotDotToken,
153613
- p.name,
153614
- p.questionToken,
153615
- p.type || factory.createKeywordTypeNode(
153612
+ p2.dotDotDotToken,
153613
+ p2.name,
153614
+ p2.questionToken,
153615
+ p2.type || factory.createKeywordTypeNode(
153616
153616
  133
153617
153617
  /* AnyKeyword */
153618
153618
  )
153619
- ), p);
153620
- const parameterDocComment = p.symbol && p.symbol.getDocumentationComment(checker);
153619
+ ), p2);
153620
+ const parameterDocComment = p2.symbol && p2.symbol.getDocumentationComment(checker);
153621
153621
  if (parameterDocComment) {
153622
153622
  const newComment = displayPartsToString(parameterDocComment);
153623
153623
  if (newComment.length) {
@@ -153677,7 +153677,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
153677
153677
  return;
153678
153678
  }
153679
153679
  const signatureDecls = decls;
153680
- if (some(signatureDecls, (d) => !!d.typeParameters || some(d.parameters, (p) => !!p.modifiers || !isIdentifier(p.name)))) {
153680
+ if (some(signatureDecls, (d) => !!d.typeParameters || some(d.parameters, (p2) => !!p2.modifiers || !isIdentifier(p2.name)))) {
153681
153681
  return;
153682
153682
  }
153683
153683
  const signatures = mapDefined(signatureDecls, (d) => checker.getSignatureFromDeclaration(d));
@@ -156195,26 +156195,26 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
156195
156195
  return { variableType: variableType2, initializer: initializer2 };
156196
156196
  const parameters = [];
156197
156197
  let hasAny = false;
156198
- for (const p of initializer2.parameters) {
156199
- if (p.type) {
156200
- parameters.push(p);
156198
+ for (const p2 of initializer2.parameters) {
156199
+ if (p2.type) {
156200
+ parameters.push(p2);
156201
156201
  } else {
156202
- const paramType = checker.getTypeAtLocation(p);
156202
+ const paramType = checker.getTypeAtLocation(p2);
156203
156203
  if (paramType === checker.getAnyType())
156204
156204
  hasAny = true;
156205
156205
  parameters.push(factory.updateParameterDeclaration(
156206
- p,
156207
- p.modifiers,
156208
- p.dotDotDotToken,
156209
- p.name,
156210
- p.questionToken,
156211
- p.type || checker.typeToTypeNode(
156206
+ p2,
156207
+ p2.modifiers,
156208
+ p2.dotDotDotToken,
156209
+ p2.name,
156210
+ p2.questionToken,
156211
+ p2.type || checker.typeToTypeNode(
156212
156212
  paramType,
156213
156213
  scope,
156214
156214
  1
156215
156215
  /* NoTruncation */
156216
156216
  ),
156217
- p.initializer
156217
+ p2.initializer
156218
156218
  ));
156219
156219
  }
156220
156220
  }
@@ -159632,7 +159632,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159632
159632
  setObjectAllocator(getServicesObjectAllocator());
159633
159633
  }
159634
159634
  });
159635
- function transform(source, transformers, compilerOptions) {
159635
+ function transform2(source, transformers, compilerOptions) {
159636
159636
  const diagnostics = [];
159637
159637
  compilerOptions = fixupCompilerOptions(compilerOptions, diagnostics);
159638
159638
  const nodes = isArray(source) ? source : [source];
@@ -162394,7 +162394,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
162394
162394
  return isFunctionLikeDeclaration(decl) ? decl.parameters.some(hasUsableJSDoc) || !decl.type && !!getJSDocReturnType(decl) : !decl.type && !!getJSDocType(decl);
162395
162395
  }
162396
162396
  function doChange8(changes, sourceFile, decl) {
162397
- if (isFunctionLikeDeclaration(decl) && (getJSDocReturnType(decl) || decl.parameters.some((p) => !!getJSDocType(p)))) {
162397
+ if (isFunctionLikeDeclaration(decl) && (getJSDocReturnType(decl) || decl.parameters.some((p2) => !!getJSDocType(p2)))) {
162398
162398
  if (!decl.typeParameters) {
162399
162399
  const typeParameters = getJSDocTypeParameterDeclarations(decl);
162400
162400
  if (typeParameters.length)
@@ -168452,7 +168452,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
168452
168452
  names.add(tag.name.escapedText);
168453
168453
  }
168454
168454
  }
168455
- const parameterName = firstDefined(signature.parameters, (p) => isIdentifier(p.name) && !names.has(p.name.escapedText) ? p.name.getText(sourceFile) : void 0);
168455
+ const parameterName = firstDefined(signature.parameters, (p2) => isIdentifier(p2.name) && !names.has(p2.name.escapedText) ? p2.name.getText(sourceFile) : void 0);
168456
168456
  if (parameterName === void 0)
168457
168457
  return void 0;
168458
168458
  const newJSDocParameterTag = factory.updateJSDocParameterTag(
@@ -168746,7 +168746,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
168746
168746
  const parameters = func.parameters;
168747
168747
  const index = parameters.indexOf(parameter);
168748
168748
  Debug.assert(index !== -1, "The parameter should already be in the list");
168749
- return isFixAll ? parameters.slice(index + 1).every((p) => isIdentifier(p.name) && !p.symbol.isReferenced) : index === parameters.length - 1;
168749
+ return isFixAll ? parameters.slice(index + 1).every((p2) => isIdentifier(p2.name) && !p2.symbol.isReferenced) : index === parameters.length - 1;
168750
168750
  }
168751
168751
  function mayDeleteExpression(node) {
168752
168752
  return (isBinaryExpression(node.parent) && node.parent.left === node || (isPostfixUnaryExpression(node.parent) || isPrefixUnaryExpression(node.parent)) && node.parent.operand === node) && isExpressionStatement(node.parent.parent);
@@ -169624,9 +169624,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
169624
169624
  }
169625
169625
  function inferTypeForParametersFromUsage(func, sourceFile, program2, cancellationToken) {
169626
169626
  const references = getFunctionReferences(func, sourceFile, program2, cancellationToken);
169627
- return references && inferTypeFromReferences(program2, references, cancellationToken).parameters(func) || func.parameters.map((p) => ({
169628
- declaration: p,
169629
- type: isIdentifier(p.name) ? inferTypeForVariableFromUsage(p.name, program2, cancellationToken) : program2.getTypeChecker().getAnyType()
169627
+ return references && inferTypeFromReferences(program2, references, cancellationToken).parameters(func) || func.parameters.map((p2) => ({
169628
+ declaration: p2,
169629
+ type: isIdentifier(p2.name) ? inferTypeForVariableFromUsage(p2.name, program2, cancellationToken) : program2.getTypeChecker().getAnyType()
169630
169630
  }));
169631
169631
  }
169632
169632
  function getFunctionReferences(containingFunction, sourceFile, program2, cancellationToken) {
@@ -169689,11 +169689,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
169689
169689
  const combinedProperties = /* @__PURE__ */ new Map();
169690
169690
  for (const u of usages) {
169691
169691
  if (u.properties) {
169692
- u.properties.forEach((p, name) => {
169692
+ u.properties.forEach((p2, name) => {
169693
169693
  if (!combinedProperties.has(name)) {
169694
169694
  combinedProperties.set(name, []);
169695
169695
  }
169696
- combinedProperties.get(name).push(p);
169696
+ combinedProperties.get(name).push(p2);
169697
169697
  });
169698
169698
  }
169699
169699
  }
@@ -170040,8 +170040,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
170040
170040
  let numberIndexReadonly = false;
170041
170041
  const props = createMultiMap();
170042
170042
  for (const anon2 of anons) {
170043
- for (const p of checker.getPropertiesOfType(anon2)) {
170044
- props.add(p.escapedName, p.valueDeclaration ? checker.getTypeOfSymbolAtLocation(p, p.valueDeclaration) : checker.getAnyType());
170043
+ for (const p2 of checker.getPropertiesOfType(anon2)) {
170044
+ props.add(p2.escapedName, p2.valueDeclaration ? checker.getTypeOfSymbolAtLocation(p2, p2.valueDeclaration) : checker.getAnyType());
170045
170045
  }
170046
170046
  calls.push(...checker.getSignaturesOfType(
170047
170047
  anon2,
@@ -171136,7 +171136,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
171136
171136
  return factory.createPropertyAssignment(factory.createStringLiteral(name), initializer);
171137
171137
  }
171138
171138
  function findJsonProperty(obj, name) {
171139
- return find(obj.properties, (p) => isPropertyAssignment(p) && !!p.name && isStringLiteral(p.name) && p.name.text === name);
171139
+ return find(obj.properties, (p2) => isPropertyAssignment(p2) && !!p2.name && isStringLiteral(p2.name) && p2.name.text === name);
171140
171140
  }
171141
171141
  function tryGetAutoImportableReferenceFromTypeNode(importTypeNode, scriptTarget) {
171142
171142
  let symbols;
@@ -176046,7 +176046,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
176046
176046
  return checker.getAllPossiblePropertiesOfTypes(filter(type.types, (memberType) => !(memberType.flags & 402784252 || checker.isArrayLikeType(memberType) || checker.isTypeInvalidDueToUnionDiscriminant(memberType, node) || checker.typeHasCallOrConstructSignatures(memberType) || memberType.isClass() && containsNonPublicProperties(memberType.getApparentProperties()))));
176047
176047
  }
176048
176048
  function containsNonPublicProperties(props) {
176049
- return some(props, (p) => !!(getDeclarationModifierFlagsFromSymbol(p) & 24));
176049
+ return some(props, (p2) => !!(getDeclarationModifierFlagsFromSymbol(p2) & 24));
176050
176050
  }
176051
176051
  function getPropertiesForCompletion(type, checker) {
176052
176052
  return type.isUnion() ? Debug.checkEachDefined(checker.getAllPossiblePropertiesOfTypes(type.types), "getAllPossiblePropertiesOfTypes() should all be defined") : Debug.checkEachDefined(type.getApparentProperties(), "getApparentProperties() should all be defined");
@@ -176564,7 +176564,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
176564
176564
  function stringLiteralCompletionDetails(name, location, completion, sourceFile, checker, cancellationToken) {
176565
176565
  switch (completion.kind) {
176566
176566
  case 0: {
176567
- const match = find(completion.paths, (p) => p.name === name);
176567
+ const match = find(completion.paths, (p2) => p2.name === name);
176568
176568
  return match && createCompletionDetails(name, kindModifiersFromExtension(match.extension), match.kind, [textPart(name)]);
176569
176569
  }
176570
176570
  case 1: {
@@ -178164,7 +178164,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
178164
178164
  case 0: {
178165
178165
  const { symbol } = def;
178166
178166
  const { displayParts: displayParts2, kind: kind2 } = getDefinitionKindAndDisplayParts(symbol, checker, originalNode);
178167
- const name2 = displayParts2.map((p) => p.text).join("");
178167
+ const name2 = displayParts2.map((p2) => p2.text).join("");
178168
178168
  const declaration = symbol.declarations && firstOrUndefined(symbol.declarations);
178169
178169
  const node = declaration ? getNameOfDeclaration(declaration) || declaration : originalNode;
178170
178170
  return {
@@ -180379,10 +180379,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
180379
180379
  function isExpandoDeclaration(node) {
180380
180380
  if (!isAssignmentDeclaration(node))
180381
180381
  return false;
180382
- const containingAssignment = findAncestor(node, (p) => {
180383
- if (isAssignmentExpression(p))
180382
+ const containingAssignment = findAncestor(node, (p2) => {
180383
+ if (isAssignmentExpression(p2))
180384
180384
  return true;
180385
- if (!isAssignmentDeclaration(p))
180385
+ if (!isAssignmentDeclaration(p2))
180386
180386
  return "quit";
180387
180387
  return false;
180388
180388
  });
@@ -182991,7 +182991,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
182991
182991
  const help = { items: flatMapToMutable(items, identity), applicableSpan, selectedItemIndex, argumentIndex, argumentCount };
182992
182992
  const selected = help.items[selectedItemIndex];
182993
182993
  if (selected.isVariadic) {
182994
- const firstRest = findIndex(selected.parameters, (p) => !!p.isRest);
182994
+ const firstRest = findIndex(selected.parameters, (p2) => !!p2.isRest);
182995
182995
  if (-1 < firstRest && firstRest < selected.parameters.length - 1) {
182996
182996
  help.argumentIndex = selected.parameters.length;
182997
182997
  } else {
@@ -183079,7 +183079,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
183079
183079
  const printer = createPrinterWithRemoveComments();
183080
183080
  const typeParameterParts = mapToDisplayParts((writer) => {
183081
183081
  if (candidateSignature.typeParameters && candidateSignature.typeParameters.length) {
183082
- const args = factory.createNodeArray(candidateSignature.typeParameters.map((p) => checker.typeParameterToDeclaration(p, enclosingDeclaration, signatureHelpNodeBuilderFlags)));
183082
+ const args = factory.createNodeArray(candidateSignature.typeParameters.map((p2) => checker.typeParameterToDeclaration(p2, enclosingDeclaration, signatureHelpNodeBuilderFlags)));
183083
183083
  printer.writeList(53776, args, sourceFile, writer);
183084
183084
  }
183085
183085
  });
@@ -183090,7 +183090,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
183090
183090
  };
183091
183091
  return lists.map((parameterList) => ({
183092
183092
  isVariadic: isVariadic(parameterList),
183093
- parameters: parameterList.map((p) => createSignatureHelpParameterForParameter(p, checker, enclosingDeclaration, sourceFile, printer)),
183093
+ parameters: parameterList.map((p2) => createSignatureHelpParameterForParameter(p2, checker, enclosingDeclaration, sourceFile, printer)),
183094
183094
  prefix: [...typeParameterParts, punctuationPart(
183095
183095
  21
183096
183096
  /* OpenParenToken */
@@ -191964,7 +191964,7 @@ ${options.prefix}` : "\n" : options.prefix
191964
191964
  trace: () => trace,
191965
191965
  tracing: () => tracing,
191966
191966
  tracingEnabled: () => tracingEnabled,
191967
- transform: () => transform,
191967
+ transform: () => transform2,
191968
191968
  transformClassFields: () => transformClassFields,
191969
191969
  transformDeclarations: () => transformDeclarations,
191970
191970
  transformECMAScriptModule: () => transformECMAScriptModule,
@@ -192515,23 +192515,23 @@ var require_conversions = __commonJS({
192515
192515
  let v = hsv[2] / 100;
192516
192516
  const hi = Math.floor(h) % 6;
192517
192517
  const f = h - Math.floor(h);
192518
- const p = 255 * v * (1 - s);
192518
+ const p2 = 255 * v * (1 - s);
192519
192519
  const q = 255 * v * (1 - s * f);
192520
192520
  const t = 255 * v * (1 - s * (1 - f));
192521
192521
  v *= 255;
192522
192522
  switch (hi) {
192523
192523
  case 0:
192524
- return [v, t, p];
192524
+ return [v, t, p2];
192525
192525
  case 1:
192526
- return [q, v, p];
192526
+ return [q, v, p2];
192527
192527
  case 2:
192528
- return [p, v, t];
192528
+ return [p2, v, t];
192529
192529
  case 3:
192530
- return [p, q, v];
192530
+ return [p2, q, v];
192531
192531
  case 4:
192532
- return [t, p, v];
192532
+ return [t, p2, v];
192533
192533
  case 5:
192534
- return [v, p, q];
192534
+ return [v, p2, q];
192535
192535
  }
192536
192536
  };
192537
192537
  convert.hsv.hsl = function(hsv) {
@@ -194173,10 +194173,10 @@ var require_transform = __commonJS({
194173
194173
  return transformFn;
194174
194174
  }
194175
194175
  exports.transformWithTs = transformWithTs2;
194176
- function transform(opts) {
194176
+ function transform2(opts) {
194177
194177
  return transformWithTs2(typescript, opts);
194178
194178
  }
194179
- exports.transform = transform;
194179
+ exports.transform = transform2;
194180
194180
  }
194181
194181
  });
194182
194182
 
@@ -195806,24 +195806,24 @@ var require_rimraf = __commonJS({
195806
195806
  });
195807
195807
  options.maxBusyTries = options.maxBusyTries || 3;
195808
195808
  }
195809
- function rimraf(p, options, cb) {
195809
+ function rimraf(p2, options, cb) {
195810
195810
  let busyTries = 0;
195811
195811
  if (typeof options === "function") {
195812
195812
  cb = options;
195813
195813
  options = {};
195814
195814
  }
195815
- assert(p, "rimraf: missing path");
195816
- assert.strictEqual(typeof p, "string", "rimraf: path should be a string");
195815
+ assert(p2, "rimraf: missing path");
195816
+ assert.strictEqual(typeof p2, "string", "rimraf: path should be a string");
195817
195817
  assert.strictEqual(typeof cb, "function", "rimraf: callback function required");
195818
195818
  assert(options, "rimraf: invalid options argument provided");
195819
195819
  assert.strictEqual(typeof options, "object", "rimraf: options should be object");
195820
195820
  defaults(options);
195821
- rimraf_(p, options, function CB(er) {
195821
+ rimraf_(p2, options, function CB(er) {
195822
195822
  if (er) {
195823
195823
  if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && busyTries < options.maxBusyTries) {
195824
195824
  busyTries++;
195825
195825
  const time = busyTries * 100;
195826
- return setTimeout(() => rimraf_(p, options, CB), time);
195826
+ return setTimeout(() => rimraf_(p2, options, CB), time);
195827
195827
  }
195828
195828
  if (er.code === "ENOENT")
195829
195829
  er = null;
@@ -195831,62 +195831,62 @@ var require_rimraf = __commonJS({
195831
195831
  cb(er);
195832
195832
  });
195833
195833
  }
195834
- function rimraf_(p, options, cb) {
195835
- assert(p);
195834
+ function rimraf_(p2, options, cb) {
195835
+ assert(p2);
195836
195836
  assert(options);
195837
195837
  assert(typeof cb === "function");
195838
- options.lstat(p, (er, st) => {
195838
+ options.lstat(p2, (er, st) => {
195839
195839
  if (er && er.code === "ENOENT") {
195840
195840
  return cb(null);
195841
195841
  }
195842
195842
  if (er && er.code === "EPERM" && isWindows) {
195843
- return fixWinEPERM(p, options, er, cb);
195843
+ return fixWinEPERM(p2, options, er, cb);
195844
195844
  }
195845
195845
  if (st && st.isDirectory()) {
195846
- return rmdir(p, options, er, cb);
195846
+ return rmdir(p2, options, er, cb);
195847
195847
  }
195848
- options.unlink(p, (er2) => {
195848
+ options.unlink(p2, (er2) => {
195849
195849
  if (er2) {
195850
195850
  if (er2.code === "ENOENT") {
195851
195851
  return cb(null);
195852
195852
  }
195853
195853
  if (er2.code === "EPERM") {
195854
- return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
195854
+ return isWindows ? fixWinEPERM(p2, options, er2, cb) : rmdir(p2, options, er2, cb);
195855
195855
  }
195856
195856
  if (er2.code === "EISDIR") {
195857
- return rmdir(p, options, er2, cb);
195857
+ return rmdir(p2, options, er2, cb);
195858
195858
  }
195859
195859
  }
195860
195860
  return cb(er2);
195861
195861
  });
195862
195862
  });
195863
195863
  }
195864
- function fixWinEPERM(p, options, er, cb) {
195865
- assert(p);
195864
+ function fixWinEPERM(p2, options, er, cb) {
195865
+ assert(p2);
195866
195866
  assert(options);
195867
195867
  assert(typeof cb === "function");
195868
- options.chmod(p, 438, (er2) => {
195868
+ options.chmod(p2, 438, (er2) => {
195869
195869
  if (er2) {
195870
195870
  cb(er2.code === "ENOENT" ? null : er);
195871
195871
  } else {
195872
- options.stat(p, (er3, stats) => {
195872
+ options.stat(p2, (er3, stats) => {
195873
195873
  if (er3) {
195874
195874
  cb(er3.code === "ENOENT" ? null : er);
195875
195875
  } else if (stats.isDirectory()) {
195876
- rmdir(p, options, er, cb);
195876
+ rmdir(p2, options, er, cb);
195877
195877
  } else {
195878
- options.unlink(p, cb);
195878
+ options.unlink(p2, cb);
195879
195879
  }
195880
195880
  });
195881
195881
  }
195882
195882
  });
195883
195883
  }
195884
- function fixWinEPERMSync(p, options, er) {
195884
+ function fixWinEPERMSync(p2, options, er) {
195885
195885
  let stats;
195886
- assert(p);
195886
+ assert(p2);
195887
195887
  assert(options);
195888
195888
  try {
195889
- options.chmodSync(p, 438);
195889
+ options.chmodSync(p2, 438);
195890
195890
  } catch (er2) {
195891
195891
  if (er2.code === "ENOENT") {
195892
195892
  return;
@@ -195895,7 +195895,7 @@ var require_rimraf = __commonJS({
195895
195895
  }
195896
195896
  }
195897
195897
  try {
195898
- stats = options.statSync(p);
195898
+ stats = options.statSync(p2);
195899
195899
  } catch (er3) {
195900
195900
  if (er3.code === "ENOENT") {
195901
195901
  return;
@@ -195904,18 +195904,18 @@ var require_rimraf = __commonJS({
195904
195904
  }
195905
195905
  }
195906
195906
  if (stats.isDirectory()) {
195907
- rmdirSync(p, options, er);
195907
+ rmdirSync(p2, options, er);
195908
195908
  } else {
195909
- options.unlinkSync(p);
195909
+ options.unlinkSync(p2);
195910
195910
  }
195911
195911
  }
195912
- function rmdir(p, options, originalEr, cb) {
195913
- assert(p);
195912
+ function rmdir(p2, options, originalEr, cb) {
195913
+ assert(p2);
195914
195914
  assert(options);
195915
195915
  assert(typeof cb === "function");
195916
- options.rmdir(p, (er) => {
195916
+ options.rmdir(p2, (er) => {
195917
195917
  if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) {
195918
- rmkids(p, options, cb);
195918
+ rmkids(p2, options, cb);
195919
195919
  } else if (er && er.code === "ENOTDIR") {
195920
195920
  cb(originalEr);
195921
195921
  } else {
@@ -195923,96 +195923,96 @@ var require_rimraf = __commonJS({
195923
195923
  }
195924
195924
  });
195925
195925
  }
195926
- function rmkids(p, options, cb) {
195927
- assert(p);
195926
+ function rmkids(p2, options, cb) {
195927
+ assert(p2);
195928
195928
  assert(options);
195929
195929
  assert(typeof cb === "function");
195930
- options.readdir(p, (er, files) => {
195930
+ options.readdir(p2, (er, files) => {
195931
195931
  if (er)
195932
195932
  return cb(er);
195933
195933
  let n = files.length;
195934
195934
  let errState;
195935
195935
  if (n === 0)
195936
- return options.rmdir(p, cb);
195936
+ return options.rmdir(p2, cb);
195937
195937
  files.forEach((f) => {
195938
- rimraf(path.join(p, f), options, (er2) => {
195938
+ rimraf(path.join(p2, f), options, (er2) => {
195939
195939
  if (errState) {
195940
195940
  return;
195941
195941
  }
195942
195942
  if (er2)
195943
195943
  return cb(errState = er2);
195944
195944
  if (--n === 0) {
195945
- options.rmdir(p, cb);
195945
+ options.rmdir(p2, cb);
195946
195946
  }
195947
195947
  });
195948
195948
  });
195949
195949
  });
195950
195950
  }
195951
- function rimrafSync(p, options) {
195951
+ function rimrafSync(p2, options) {
195952
195952
  let st;
195953
195953
  options = options || {};
195954
195954
  defaults(options);
195955
- assert(p, "rimraf: missing path");
195956
- assert.strictEqual(typeof p, "string", "rimraf: path should be a string");
195955
+ assert(p2, "rimraf: missing path");
195956
+ assert.strictEqual(typeof p2, "string", "rimraf: path should be a string");
195957
195957
  assert(options, "rimraf: missing options");
195958
195958
  assert.strictEqual(typeof options, "object", "rimraf: options should be object");
195959
195959
  try {
195960
- st = options.lstatSync(p);
195960
+ st = options.lstatSync(p2);
195961
195961
  } catch (er) {
195962
195962
  if (er.code === "ENOENT") {
195963
195963
  return;
195964
195964
  }
195965
195965
  if (er.code === "EPERM" && isWindows) {
195966
- fixWinEPERMSync(p, options, er);
195966
+ fixWinEPERMSync(p2, options, er);
195967
195967
  }
195968
195968
  }
195969
195969
  try {
195970
195970
  if (st && st.isDirectory()) {
195971
- rmdirSync(p, options, null);
195971
+ rmdirSync(p2, options, null);
195972
195972
  } else {
195973
- options.unlinkSync(p);
195973
+ options.unlinkSync(p2);
195974
195974
  }
195975
195975
  } catch (er) {
195976
195976
  if (er.code === "ENOENT") {
195977
195977
  return;
195978
195978
  } else if (er.code === "EPERM") {
195979
- return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er);
195979
+ return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
195980
195980
  } else if (er.code !== "EISDIR") {
195981
195981
  throw er;
195982
195982
  }
195983
- rmdirSync(p, options, er);
195983
+ rmdirSync(p2, options, er);
195984
195984
  }
195985
195985
  }
195986
- function rmdirSync(p, options, originalEr) {
195987
- assert(p);
195986
+ function rmdirSync(p2, options, originalEr) {
195987
+ assert(p2);
195988
195988
  assert(options);
195989
195989
  try {
195990
- options.rmdirSync(p);
195990
+ options.rmdirSync(p2);
195991
195991
  } catch (er) {
195992
195992
  if (er.code === "ENOTDIR") {
195993
195993
  throw originalEr;
195994
195994
  } else if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") {
195995
- rmkidsSync(p, options);
195995
+ rmkidsSync(p2, options);
195996
195996
  } else if (er.code !== "ENOENT") {
195997
195997
  throw er;
195998
195998
  }
195999
195999
  }
196000
196000
  }
196001
- function rmkidsSync(p, options) {
196002
- assert(p);
196001
+ function rmkidsSync(p2, options) {
196002
+ assert(p2);
196003
196003
  assert(options);
196004
- options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
196004
+ options.readdirSync(p2).forEach((f) => rimrafSync(path.join(p2, f), options));
196005
196005
  if (isWindows) {
196006
196006
  const startTime = Date.now();
196007
196007
  do {
196008
196008
  try {
196009
- const ret = options.rmdirSync(p, options);
196009
+ const ret = options.rmdirSync(p2, options);
196010
196010
  return ret;
196011
196011
  } catch {
196012
196012
  }
196013
196013
  } while (Date.now() - startTime < 500);
196014
196014
  } else {
196015
- const ret = options.rmdirSync(p, options);
196015
+ const ret = options.rmdirSync(p2, options);
196016
196016
  return ret;
196017
196017
  }
196018
196018
  }
@@ -198147,18 +198147,22 @@ __export(vue_extractor_exports, {
198147
198147
  parseFile: () => parseFile
198148
198148
  });
198149
198149
  function walk(node, visitor) {
198150
- if (typeof node !== "object") {
198150
+ if (typeof node !== "object" || node == null) {
198151
198151
  return;
198152
198152
  }
198153
- if (node.type !== ELEMENT && node.type !== COMPOUND_EXPRESSION && node.type !== INTERPOLATION) {
198153
+ if (node.type === import_compiler_core.NodeTypes.ROOT) {
198154
+ node.children.forEach((n) => walk(n, visitor));
198155
+ return;
198156
+ }
198157
+ if (node.type !== import_compiler_core.NodeTypes.ELEMENT && node.type !== import_compiler_core.NodeTypes.COMPOUND_EXPRESSION && node.type !== import_compiler_core.NodeTypes.INTERPOLATION) {
198154
198158
  return;
198155
198159
  }
198156
198160
  visitor(node);
198157
- if (node.type === INTERPOLATION) {
198161
+ if (node.type === import_compiler_core.NodeTypes.INTERPOLATION) {
198158
198162
  visitor(node.content);
198159
- } else if (node.type === ELEMENT) {
198163
+ } else if (node.type === import_compiler_core.NodeTypes.ELEMENT) {
198160
198164
  node.children.forEach((n) => walk(n, visitor));
198161
- node.props.filter((prop) => prop.type === DIRECTIVE).filter((prop) => !!prop.exp).forEach((prop) => visitor(prop.exp));
198165
+ node.props.filter((prop) => prop.type === import_compiler_core.NodeTypes.DIRECTIVE).filter((prop) => !!prop.exp).forEach((prop) => visitor(prop.exp));
198162
198166
  } else {
198163
198167
  node.children.forEach((n) => walk(n, visitor));
198164
198168
  }
@@ -198168,7 +198172,7 @@ function templateSimpleExpressionNodeVisitor(parseScriptFn) {
198168
198172
  if (typeof n !== "object") {
198169
198173
  return;
198170
198174
  }
198171
- if (n.type !== SIMPLE_EXPRESSION) {
198175
+ if (n.type !== import_compiler_core.NodeTypes.SIMPLE_EXPRESSION) {
198172
198176
  return;
198173
198177
  }
198174
198178
  const { content } = n;
@@ -198197,16 +198201,91 @@ function parseFile(source, filename, parseScriptFn) {
198197
198201
  parseScriptFn(scriptSetup.content);
198198
198202
  }
198199
198203
  }
198200
- var import_compiler_sfc, ELEMENT, SIMPLE_EXPRESSION, INTERPOLATION, DIRECTIVE, COMPOUND_EXPRESSION;
198204
+ var import_compiler_core, import_compiler_sfc;
198201
198205
  var init_vue_extractor = __esm({
198202
198206
  "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/cli-lib/lib_esnext/src/vue_extractor.js"() {
198203
198207
  "use strict";
198208
+ import_compiler_core = require("@vue/compiler-core");
198204
198209
  import_compiler_sfc = require("vue/compiler-sfc");
198205
- ELEMENT = 1;
198206
- SIMPLE_EXPRESSION = 4;
198207
- INTERPOLATION = 5;
198208
- DIRECTIVE = 7;
198209
- COMPOUND_EXPRESSION = 8;
198210
+ }
198211
+ });
198212
+
198213
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/cli-lib/lib_esnext/src/hbs_extractor.js
198214
+ var hbs_extractor_exports = {};
198215
+ __export(hbs_extractor_exports, {
198216
+ parseFile: () => parseFile2
198217
+ });
198218
+ function extractText(node, fileName, options) {
198219
+ var _a;
198220
+ if (!options.onMsgExtracted)
198221
+ return;
198222
+ if (!options.overrideIdFn)
198223
+ return;
198224
+ if (node.path.type !== "PathExpression")
198225
+ return;
198226
+ if (["format-message", "formatMessage"].includes(node.path.original)) {
198227
+ let [first, second] = node.params;
198228
+ if (first.type !== "StringLiteral")
198229
+ return;
198230
+ let message = first == null ? void 0 : first.value;
198231
+ let desc;
198232
+ if ((second == null ? void 0 : second.type) === "StringLiteral") {
198233
+ desc = (_a = second.value) == null ? void 0 : _a.trim().replace(/\s+/gm, " ");
198234
+ }
198235
+ let defaultMessage = message == null ? void 0 : message.trim().replace(/\s+/gm, " ");
198236
+ let id = typeof options.overrideIdFn === "string" ? options.overrideIdFn : options.overrideIdFn(void 0, defaultMessage, desc, fileName);
198237
+ options.onMsgExtracted(fileName, [
198238
+ {
198239
+ id,
198240
+ defaultMessage,
198241
+ description: desc
198242
+ }
198243
+ ]);
198244
+ }
198245
+ }
198246
+ function parseFile2(source, fileName, options) {
198247
+ let visitor = function() {
198248
+ return {
198249
+ MustacheStatement(node) {
198250
+ extractText(node, fileName, options);
198251
+ },
198252
+ SubExpression(node) {
198253
+ extractText(node, fileName, options);
198254
+ }
198255
+ };
198256
+ };
198257
+ (0, import_ember_template_recast.transform)(source, visitor);
198258
+ }
198259
+ var import_ember_template_recast;
198260
+ var init_hbs_extractor = __esm({
198261
+ "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/cli-lib/lib_esnext/src/hbs_extractor.js"() {
198262
+ "use strict";
198263
+ import_ember_template_recast = require("ember-template-recast");
198264
+ }
198265
+ });
198266
+
198267
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/cli-lib/lib_esnext/src/gts_extractor.js
198268
+ var gts_extractor_exports = {};
198269
+ __export(gts_extractor_exports, {
198270
+ parseFile: () => parseFile3
198271
+ });
198272
+ function parseFile3(source, fileName, options) {
198273
+ const scriptParseFn = parseScript(options, fileName);
198274
+ const transformedSource = p.process(source, { filename: fileName });
198275
+ scriptParseFn(transformedSource);
198276
+ const parseResult = p.parse(source, { filename: fileName });
198277
+ for (let parsed of parseResult) {
198278
+ parseFile2(parsed.contents, fileName, options);
198279
+ }
198280
+ }
198281
+ var import_content_tag, p;
198282
+ var init_gts_extractor = __esm({
198283
+ "../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/cli-lib/lib_esnext/src/gts_extractor.js"() {
198284
+ "use strict";
198285
+ import_content_tag = require("content-tag");
198286
+ init_hbs_extractor();
198287
+ init_parse_script();
198288
+ p = new import_content_tag.Preprocessor();
198210
198289
  }
198211
198290
  });
198212
198291
 
@@ -198264,8 +198343,16 @@ async function processFile(source, fn, { idInterpolationPattern, ...opts }) {
198264
198343
  const scriptParseFn = parseScript(opts, fn);
198265
198344
  if (fn.endsWith(".vue")) {
198266
198345
  debug("Processing %s using vue extractor", fn);
198267
- const { parseFile: parseFile2 } = await Promise.resolve().then(() => (init_vue_extractor(), vue_extractor_exports));
198268
- parseFile2(source, fn, scriptParseFn);
198346
+ const { parseFile: parseFile4 } = await Promise.resolve().then(() => (init_vue_extractor(), vue_extractor_exports));
198347
+ parseFile4(source, fn, scriptParseFn);
198348
+ } else if (fn.endsWith(".hbs")) {
198349
+ debug("Processing %s using hbs extractor", fn);
198350
+ const { parseFile: parseFile4 } = await Promise.resolve().then(() => (init_hbs_extractor(), hbs_extractor_exports));
198351
+ parseFile4(source, fn, opts);
198352
+ } else if (fn.endsWith(".gts") || fn.endsWith(".gjs")) {
198353
+ debug("Processing %s as gts/gjs file", fn);
198354
+ const { parseFile: parseFile4 } = await Promise.resolve().then(() => (init_gts_extractor(), gts_extractor_exports));
198355
+ parseFile4(source, fn, opts);
198269
198356
  } else {
198270
198357
  debug("Processing %s using typescript extractor", fn);
198271
198358
  scriptParseFn(source);
@@ -198279,28 +198366,28 @@ async function processFile(source, fn, { idInterpolationPattern, ...opts }) {
198279
198366
  }
198280
198367
  async function extract(files, extractOpts) {
198281
198368
  const { throws, readFromStdin, flatten, ...opts } = extractOpts;
198282
- let rawResults;
198283
- if (readFromStdin) {
198284
- debug(`Reading input from stdin`);
198285
- if (process.stdin.isTTY) {
198286
- warn("Reading source file from TTY.");
198287
- }
198288
- const stdinSource = await getStdinAsString();
198289
- rawResults = [await processFile(stdinSource, "dummy", opts)];
198290
- } else {
198291
- rawResults = await Promise.all(files.map(async (fn) => {
198292
- debug("Extracting file:", fn);
198293
- try {
198369
+ let rawResults = [];
198370
+ try {
198371
+ if (readFromStdin) {
198372
+ debug(`Reading input from stdin`);
198373
+ if (process.stdin.isTTY) {
198374
+ warn("Reading source file from TTY.");
198375
+ }
198376
+ const stdinSource = await getStdinAsString();
198377
+ rawResults = [await processFile(stdinSource, "dummy", opts)];
198378
+ } else {
198379
+ rawResults = await Promise.all(files.map(async (fn) => {
198380
+ debug("Extracting file:", fn);
198294
198381
  const source = await (0, import_fs_extra.readFile)(fn, "utf8");
198295
198382
  return processFile(source, fn, opts);
198296
- } catch (e) {
198297
- if (throws) {
198298
- throw e;
198299
- } else {
198300
- warn(String(e));
198301
- }
198302
- }
198303
- }));
198383
+ }));
198384
+ }
198385
+ } catch (e) {
198386
+ if (throws) {
198387
+ throw e;
198388
+ } else {
198389
+ warn(String(e));
198390
+ }
198304
198391
  }
198305
198392
  const formatter = await resolveBuiltinFormatter(opts.format);
198306
198393
  const extractionResults = rawResults.filter((r) => !!r);
@@ -198309,7 +198396,7 @@ async function extract(files, extractOpts) {
198309
198396
  for (const message of messages2) {
198310
198397
  const { id, description, defaultMessage } = message;
198311
198398
  if (!id) {
198312
- const error = new Error(`[FormatJS CLI] Missing message id for message:
198399
+ const error = new Error(`[FormatJS CLI] Missing message id for message:
198313
198400
  ${JSON.stringify(message, void 0, 2)}`);
198314
198401
  if (throws) {
198315
198402
  throw error;
@@ -199199,7 +199286,7 @@ var require_fill_range = __commonJS({
199199
199286
  var util = require("util");
199200
199287
  var toRegexRange = require_to_regex_range();
199201
199288
  var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
199202
- var transform = (toNumber) => {
199289
+ var transform2 = (toNumber) => {
199203
199290
  return (value) => toNumber === true ? Number(value) : String(value);
199204
199291
  };
199205
199292
  var isValidValue = (value) => {
@@ -199320,7 +199407,7 @@ var require_fill_range = __commonJS({
199320
199407
  let padded = zeros(startString) || zeros(endString) || zeros(stepString);
199321
199408
  let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
199322
199409
  let toNumber = padded === false && stringify3(start, end, options) === false;
199323
- let format8 = options.transform || transform(toNumber);
199410
+ let format8 = options.transform || transform2(toNumber);
199324
199411
  if (options.toRegex && step === 1) {
199325
199412
  return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
199326
199413
  }
@@ -199484,11 +199571,11 @@ var require_expand = __commonJS({
199484
199571
  let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
199485
199572
  let walk2 = (node, parent = {}) => {
199486
199573
  node.queue = [];
199487
- let p = parent;
199574
+ let p2 = parent;
199488
199575
  let q = parent.queue;
199489
- while (p.type !== "brace" && p.type !== "root" && p.parent) {
199490
- p = p.parent;
199491
- q = p.queue;
199576
+ while (p2.type !== "brace" && p2.type !== "root" && p2.parent) {
199577
+ p2 = p2.parent;
199578
+ q = p2.queue;
199492
199579
  }
199493
199580
  if (node.invalid || node.dollar) {
199494
199581
  q.push(append(q.pop(), stringify3(node, options)));
@@ -201423,7 +201510,7 @@ var require_picomatch = __commonJS({
201423
201510
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
201424
201511
  picomatch.parse = (pattern, options) => {
201425
201512
  if (Array.isArray(pattern))
201426
- return pattern.map((p) => picomatch.parse(p, options));
201513
+ return pattern.map((p2) => picomatch.parse(p2, options));
201427
201514
  return parse5(pattern, { ...options, fastpaths: false });
201428
201515
  };
201429
201516
  picomatch.scan = (input, options) => scan(input, options);
@@ -201527,7 +201614,7 @@ var require_micromatch = __commonJS({
201527
201614
  throw new Error(`No matches found for "${patterns.join(", ")}"`);
201528
201615
  }
201529
201616
  if (options.nonull === true || options.nullglob === true) {
201530
- return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
201617
+ return options.unescape ? patterns.map((p2) => p2.replace(/\\/g, "")) : patterns;
201531
201618
  }
201532
201619
  }
201533
201620
  return matches;
@@ -201558,7 +201645,7 @@ var require_micromatch = __commonJS({
201558
201645
  throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
201559
201646
  }
201560
201647
  if (Array.isArray(pattern)) {
201561
- return pattern.some((p) => micromatch.contains(str, p, options));
201648
+ return pattern.some((p2) => micromatch.contains(str, p2, options));
201562
201649
  }
201563
201650
  if (typeof pattern === "string") {
201564
201651
  if (isEmptyString(str) || isEmptyString(pattern)) {
@@ -201604,7 +201691,7 @@ var require_micromatch = __commonJS({
201604
201691
  if (typeof str !== "string") {
201605
201692
  throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
201606
201693
  }
201607
- return [].concat(patterns).every((p) => picomatch(p, options)(str));
201694
+ return [].concat(patterns).every((p2) => picomatch(p2, options)(str));
201608
201695
  };
201609
201696
  micromatch.capture = (glob, input, options) => {
201610
201697
  let posix = utils.isWindows(options);
@@ -202059,10 +202146,10 @@ var require_patterns = __commonJS({
202059
202146
  Object.defineProperty(exports, "__esModule", { value: true });
202060
202147
  exports.removeDuplicateSlashes = exports.transform = void 0;
202061
202148
  var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
202062
- function transform(patterns) {
202149
+ function transform2(patterns) {
202063
202150
  return patterns.map((pattern) => removeDuplicateSlashes(pattern));
202064
202151
  }
202065
- exports.transform = transform;
202152
+ exports.transform = transform2;
202066
202153
  function removeDuplicateSlashes(pattern) {
202067
202154
  return pattern.replace(DOUBLE_SLASH_RE, "/");
202068
202155
  }
@@ -202834,7 +202921,7 @@ var require_queue = __commonJS({
202834
202921
  queue.drained = drained;
202835
202922
  return queue;
202836
202923
  function push(value) {
202837
- var p = new Promise(function(resolve2, reject) {
202924
+ var p2 = new Promise(function(resolve2, reject) {
202838
202925
  pushCb(value, function(err, result) {
202839
202926
  if (err) {
202840
202927
  reject(err);
@@ -202843,11 +202930,11 @@ var require_queue = __commonJS({
202843
202930
  resolve2(result);
202844
202931
  });
202845
202932
  });
202846
- p.catch(noop);
202847
- return p;
202933
+ p2.catch(noop);
202934
+ return p2;
202848
202935
  }
202849
202936
  function unshift(value) {
202850
- var p = new Promise(function(resolve2, reject) {
202937
+ var p2 = new Promise(function(resolve2, reject) {
202851
202938
  unshiftCb(value, function(err, result) {
202852
202939
  if (err) {
202853
202940
  reject(err);
@@ -202856,18 +202943,18 @@ var require_queue = __commonJS({
202856
202943
  resolve2(result);
202857
202944
  });
202858
202945
  });
202859
- p.catch(noop);
202860
- return p;
202946
+ p2.catch(noop);
202947
+ return p2;
202861
202948
  }
202862
202949
  function drained() {
202863
202950
  var previousDrain = queue.drain;
202864
- var p = new Promise(function(resolve2) {
202951
+ var p2 = new Promise(function(resolve2) {
202865
202952
  queue.drain = function() {
202866
202953
  previousDrain();
202867
202954
  resolve2();
202868
202955
  };
202869
202956
  });
202870
- return p;
202957
+ return p2;
202871
202958
  }
202872
202959
  }
202873
202960
  module2.exports = fastqueue;