@galadrim/galadmin 0.1.32 → 0.1.33

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 (119) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +1 -1
  3. package/src/front/build/asset-manifest.json +3 -3
  4. package/src/front/build/index.html +1 -1
  5. package/src/front/build/static/js/main.4ce5340d.chunk.js +2 -0
  6. package/src/front/build/static/js/main.4ce5340d.chunk.js.map +1 -0
  7. package/src/front/node_modules/.cache/.eslintcache +1 -1
  8. package/src/front/node_modules/.cache/babel-loader/{a442b07ccfc975b334314fdb76b50b42.json → 04b67a528af96a9bceeadf265dfb56d2.json} +1 -1
  9. package/src/front/node_modules/.cache/babel-loader/cdf89c046963294c4cbf7482c8706cbc.json +1 -0
  10. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/c3/3e/f2b5b90044b7bdbb4cff67b2c09e24bb506274240d920de24bb4b678f3f00b80f7e9f0900cd1de883484031488d8603e97ea6b4e39a9c6ab5160353d3be9 +1 -0
  11. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/6c/19/fe86ba5d7c4062f185480ad22dd3b9fae9b30149827224339f9a633a9a94 +1 -1
  12. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/87/08/421190bfe6e50816e059da6c33526c9943732ef856ebd2752d0cbfb4a852 +1 -1
  13. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/{b3/58/c0bc4ec69302d38ceac243da47ee7549ca88af7e0c89962c82ad9b304bbb → c2/e5/5451dd89bb0fd48f988bf27c7ee614c66eb91f7085c5b5c8cb33048d0c32} +1 -1
  14. package/src/front/node_modules/.package-lock.json +50 -58
  15. package/src/front/node_modules/@babel/compat-data/README.md +1 -1
  16. package/src/front/node_modules/@babel/compat-data/data/corejs2-built-ins.json +146 -0
  17. package/src/front/node_modules/@babel/compat-data/data/native-modules.json +1 -1
  18. package/src/front/node_modules/@babel/compat-data/data/plugin-bugfixes.json +15 -0
  19. package/src/front/node_modules/@babel/compat-data/data/plugins.json +68 -9
  20. package/src/front/node_modules/@babel/compat-data/package.json +4 -4
  21. package/src/front/node_modules/@babel/core/README.md +1 -1
  22. package/src/front/node_modules/@babel/core/lib/config/config-chain.js +1 -3
  23. package/src/front/node_modules/@babel/core/lib/config/config-chain.js.map +1 -1
  24. package/src/front/node_modules/@babel/core/lib/config/files/module-types.js +5 -5
  25. package/src/front/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
  26. package/src/front/node_modules/@babel/core/lib/config/full.js +2 -3
  27. package/src/front/node_modules/@babel/core/lib/config/full.js.map +1 -1
  28. package/src/front/node_modules/@babel/core/lib/config/helpers/config-api.js +4 -4
  29. package/src/front/node_modules/@babel/core/lib/config/helpers/config-api.js.map +1 -1
  30. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js +1 -3
  31. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -1
  32. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js +5 -2
  33. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -1
  34. package/src/front/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +2 -1
  35. package/src/front/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -1
  36. package/src/front/node_modules/@babel/core/lib/index.js +1 -1
  37. package/src/front/node_modules/@babel/core/lib/transformation/file/file.js +5 -5
  38. package/src/front/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
  39. package/src/front/node_modules/@babel/core/package.json +10 -10
  40. package/src/front/node_modules/@babel/generator/README.md +1 -1
  41. package/src/front/node_modules/@babel/generator/lib/buffer.js +6 -6
  42. package/src/front/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  43. package/src/front/node_modules/@babel/generator/lib/generators/types.js +1 -1
  44. package/src/front/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  45. package/src/front/node_modules/@babel/generator/lib/printer.js +4 -4
  46. package/src/front/node_modules/@babel/generator/lib/printer.js.map +1 -1
  47. package/src/front/node_modules/@babel/generator/package.json +4 -3
  48. package/src/front/node_modules/@babel/helper-compilation-targets/README.md +1 -1
  49. package/src/front/node_modules/@babel/helper-compilation-targets/lib/debug.js +2 -2
  50. package/src/front/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -1
  51. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js +5 -9
  52. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
  53. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js +8 -4
  54. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  55. package/src/front/node_modules/@babel/helper-compilation-targets/lib/options.js +2 -1
  56. package/src/front/node_modules/@babel/helper-compilation-targets/lib/options.js.map +1 -1
  57. package/src/front/node_modules/@babel/helper-compilation-targets/lib/pretty.js +2 -2
  58. package/src/front/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +1 -1
  59. package/src/front/node_modules/@babel/helper-compilation-targets/lib/targets.js +1 -1
  60. package/src/front/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +1 -1
  61. package/src/front/node_modules/@babel/helper-compilation-targets/lib/utils.js +3 -3
  62. package/src/front/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +1 -1
  63. package/src/front/node_modules/@babel/helper-compilation-targets/package.json +6 -6
  64. package/src/front/node_modules/@babel/helper-split-export-declaration/README.md +1 -1
  65. package/src/front/node_modules/@babel/helper-split-export-declaration/lib/index.js +5 -1
  66. package/src/front/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +1 -1
  67. package/src/front/node_modules/@babel/helper-split-export-declaration/package.json +1 -1
  68. package/src/front/node_modules/@babel/helpers/README.md +1 -1
  69. package/src/front/node_modules/@babel/helpers/lib/helpers/dispose.js +9 -13
  70. package/src/front/node_modules/@babel/helpers/lib/helpers/dispose.js.map +1 -1
  71. package/src/front/node_modules/@babel/helpers/lib/helpers/using.js +1 -1
  72. package/src/front/node_modules/@babel/helpers/lib/helpers/using.js.map +1 -1
  73. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js +2 -2
  74. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  75. package/src/front/node_modules/@babel/helpers/package.json +3 -3
  76. package/src/front/node_modules/@babel/parser/README.md +1 -1
  77. package/src/front/node_modules/@babel/parser/lib/index.js +1 -3
  78. package/src/front/node_modules/@babel/parser/lib/index.js.map +1 -1
  79. package/src/front/node_modules/@babel/parser/lib/parser/statement.js +1 -3
  80. package/src/front/node_modules/@babel/parser/lib/parser/statement.js.map +1 -1
  81. package/src/front/node_modules/@babel/parser/lib/plugins/flow/index.js.map +1 -1
  82. package/src/front/node_modules/@babel/parser/package.json +2 -2
  83. package/src/front/node_modules/@babel/traverse/README.md +1 -1
  84. package/src/front/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -1
  85. package/src/front/node_modules/@babel/traverse/lib/scope/index.js +21 -9
  86. package/src/front/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  87. package/src/front/node_modules/@babel/traverse/lib/types.js.map +1 -1
  88. package/src/front/node_modules/@babel/traverse/lib/visitors.js +22 -15
  89. package/src/front/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  90. package/src/front/node_modules/@babel/traverse/package.json +4 -4
  91. package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/README.md +13 -2
  92. package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/package.json +4 -4
  93. package/src/front/node_modules/{@babel/helper-compilation-targets/node_modules/semver → @nicolo-ribaudo/semver-v6}/semver.js +40 -27
  94. package/src/front/node_modules/typescript/lib/tsc.js +16 -19
  95. package/src/front/node_modules/typescript/lib/tsserver.js +22 -24
  96. package/src/front/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -1
  97. package/src/front/node_modules/typescript/lib/tsserverlibrary.js +22 -24
  98. package/src/front/node_modules/typescript/lib/typescript.d.ts +0 -1
  99. package/src/front/node_modules/typescript/lib/typescript.js +22 -24
  100. package/src/front/node_modules/typescript/lib/typingsInstaller.js +1 -1
  101. package/src/front/node_modules/typescript/package.json +1 -1
  102. package/src/front/package-lock.json +97 -112
  103. package/src/front/src/components/Input.js +6 -0
  104. package/src/front/src/components/Sidebar.js +2 -2
  105. package/src/front/build/static/js/main.405f6f90.chunk.js +0 -2
  106. package/src/front/build/static/js/main.405f6f90.chunk.js.map +0 -1
  107. package/src/front/node_modules/.cache/babel-loader/964c56108bc43622244156806407d3d8.json +0 -1
  108. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/00/35/f206f48274d030c7a1e2457996323f694ca72c9ec94bddb8ecc8f37aa4632918182acf152491e9b475b95f567493b47644434cdb77f795b23c0b8392aaf7 +0 -1
  109. package/src/front/node_modules/@babel/core/node_modules/semver/semver.js +0 -1596
  110. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/CHANGELOG.md +0 -70
  111. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/LICENSE +0 -15
  112. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/README.md +0 -443
  113. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/bin/semver.js +0 -174
  114. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/package.json +0 -28
  115. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/range.bnf +0 -16
  116. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/CHANGELOG.md +0 -0
  117. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/LICENSE +0 -0
  118. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/bin/semver.js +0 -0
  119. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/range.bnf +0 -0
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.1";
38
- version = "5.1.3";
38
+ version = "5.1.6";
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -55084,19 +55084,13 @@ ${lanes.join("\n")}
55084
55084
  if (getObjectFlags(type) & 4 /* Reference */) {
55085
55085
  const target = type.target;
55086
55086
  const typeArguments = getTypeArguments(type);
55087
- if (length(target.typeParameters) === length(typeArguments)) {
55088
- const ref = createTypeReference(target, concatenate(typeArguments, [thisArgument || target.thisType]));
55089
- return needApparentType ? getApparentType(ref) : ref;
55090
- }
55087
+ return length(target.typeParameters) === length(typeArguments) ? createTypeReference(target, concatenate(typeArguments, [thisArgument || target.thisType])) : type;
55091
55088
  } else if (type.flags & 2097152 /* Intersection */) {
55092
55089
  const types = sameMap(type.types, (t) => getTypeWithThisArgument(t, thisArgument, needApparentType));
55093
55090
  return types !== type.types ? getIntersectionType(types) : type;
55094
55091
  }
55095
55092
  return needApparentType ? getApparentType(type) : type;
55096
55093
  }
55097
- function getThisArgument(type) {
55098
- return getObjectFlags(type) & 4 /* Reference */ && length(getTypeArguments(type)) > getTypeReferenceArity(type) ? last(getTypeArguments(type)) : type;
55099
- }
55100
55094
  function resolveObjectTypeMembers(type, source, typeParameters, typeArguments) {
55101
55095
  let mapper;
55102
55096
  let members;
@@ -56162,7 +56156,7 @@ ${lanes.join("\n")}
56162
56156
  return type.resolvedBaseConstraint;
56163
56157
  }
56164
56158
  const stack = [];
56165
- return type.resolvedBaseConstraint = getTypeWithThisArgument(getImmediateBaseConstraint(type), getThisArgument(type));
56159
+ return type.resolvedBaseConstraint = getImmediateBaseConstraint(type);
56166
56160
  function getImmediateBaseConstraint(t) {
56167
56161
  if (!t.immediateBaseConstraint) {
56168
56162
  if (!pushTypeResolution(t, 4 /* ImmediateBaseConstraint */)) {
@@ -56254,18 +56248,18 @@ ${lanes.join("\n")}
56254
56248
  }
56255
56249
  if (isGenericTupleType(t)) {
56256
56250
  const newElements = map(getElementTypes(t), (v, i) => {
56257
- const constraint = t.target.elementFlags[i] & 8 /* Variadic */ && getBaseConstraint(v) || v;
56258
- return constraint && everyType(constraint, (c) => isArrayOrTupleType(c) && !isGenericTupleType(c)) ? constraint : v;
56251
+ const constraint = v.flags & 262144 /* TypeParameter */ && t.target.elementFlags[i] & 8 /* Variadic */ && getBaseConstraint(v) || v;
56252
+ return constraint !== v && everyType(constraint, (c) => isArrayOrTupleType(c) && !isGenericTupleType(c)) ? constraint : v;
56259
56253
  });
56260
56254
  return createTupleType(newElements, t.target.elementFlags, t.target.readonly, t.target.labeledElementDeclarations);
56261
56255
  }
56262
56256
  return t;
56263
56257
  }
56264
56258
  }
56265
- function getApparentTypeOfIntersectionType(type) {
56259
+ function getApparentTypeOfIntersectionType(type, thisArgument) {
56266
56260
  return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(
56267
56261
  type,
56268
- type,
56262
+ thisArgument,
56269
56263
  /*needApparentType*/
56270
56264
  true
56271
56265
  ));
@@ -56316,8 +56310,9 @@ ${lanes.join("\n")}
56316
56310
  return !!(type.flags & 8388608 /* IndexedAccess */ && getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ && !isGenericMappedType(objectType) && isGenericIndexType(type.indexType) && !(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType);
56317
56311
  }
56318
56312
  function getApparentType(type) {
56319
- const t = !(type.flags & 465829888 /* Instantiable */) ? type : getBaseConstraintOfType(type) || unknownType;
56320
- return getObjectFlags(t) & 32 /* Mapped */ ? getApparentTypeOfMappedType(t) : t.flags & 2097152 /* Intersection */ ? getApparentTypeOfIntersectionType(t) : t.flags & 402653316 /* StringLike */ ? globalStringType : t.flags & 296 /* NumberLike */ ? globalNumberType : t.flags & 2112 /* BigIntLike */ ? getGlobalBigIntType() : t.flags & 528 /* BooleanLike */ ? globalBooleanType : t.flags & 12288 /* ESSymbolLike */ ? getGlobalESSymbolType() : t.flags & 67108864 /* NonPrimitive */ ? emptyObjectType : t.flags & 4194304 /* Index */ ? keyofConstraintType : t.flags & 2 /* Unknown */ && !strictNullChecks ? emptyObjectType : t;
56313
+ const t = type.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(type) || unknownType : type;
56314
+ const objectFlags = getObjectFlags(t);
56315
+ return objectFlags & 32 /* Mapped */ ? getApparentTypeOfMappedType(t) : objectFlags & 4 /* Reference */ && t !== type ? getTypeWithThisArgument(t, type) : t.flags & 2097152 /* Intersection */ ? getApparentTypeOfIntersectionType(t, type) : t.flags & 402653316 /* StringLike */ ? globalStringType : t.flags & 296 /* NumberLike */ ? globalNumberType : t.flags & 2112 /* BigIntLike */ ? getGlobalBigIntType() : t.flags & 528 /* BooleanLike */ ? globalBooleanType : t.flags & 12288 /* ESSymbolLike */ ? getGlobalESSymbolType() : t.flags & 67108864 /* NonPrimitive */ ? emptyObjectType : t.flags & 4194304 /* Index */ ? keyofConstraintType : t.flags & 2 /* Unknown */ && !strictNullChecks ? emptyObjectType : t;
56321
56316
  }
56322
56317
  function getReducedApparentType(type) {
56323
56318
  return getReducedType(getApparentType(getReducedType(type)));
@@ -60497,7 +60492,10 @@ ${lanes.join("\n")}
60497
60492
  const newMapper = createTypeMapper(typeParameters, typeArguments);
60498
60493
  result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);
60499
60494
  if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
60500
- result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (some(typeArguments, couldContainTypeVariables) ? 1048576 /* CouldContainTypeVariables */ : 0);
60495
+ const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables);
60496
+ if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
60497
+ result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0);
60498
+ }
60501
60499
  }
60502
60500
  target.instantiations.set(id, result);
60503
60501
  }
@@ -63023,7 +63021,6 @@ ${lanes.join("\n")}
63023
63021
  } else if (targetFlags & 8388608 /* IndexedAccess */) {
63024
63022
  if (sourceFlags & 8388608 /* IndexedAccess */) {
63025
63023
  if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
63026
- instantiateType(source2.objectType, reportUnreliableMapper);
63027
63024
  result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
63028
63025
  }
63029
63026
  if (result2) {
@@ -63103,7 +63100,7 @@ ${lanes.join("\n")}
63103
63100
  return 3 /* Maybe */;
63104
63101
  }
63105
63102
  const c = target2;
63106
- if (!c.root.inferTypeParameters && !isDistributionDependent(c.root)) {
63103
+ if (!c.root.inferTypeParameters && !isDistributionDependent(c.root) && !(source2.flags & 16777216 /* Conditional */ && source2.root === c.root)) {
63107
63104
  const skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
63108
63105
  const skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
63109
63106
  if (result2 = skipTrue ? -1 /* True */ : isRelatedTo(
@@ -98154,7 +98151,7 @@ ${lanes.join("\n")}
98154
98151
  continue;
98155
98152
  }
98156
98153
  finishObjectLiteralIfNeeded();
98157
- expressions.push(attr.expression);
98154
+ expressions.push(Debug.checkDefined(visitNode(attr.expression, visitor, isExpression)));
98158
98155
  continue;
98159
98156
  }
98160
98157
  properties.push(transformJsxAttributeToObjectLiteralElement(attr));
@@ -155543,7 +155540,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155543
155540
  }
155544
155541
  function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
155545
155542
  const start = timestamp();
155546
- const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
155543
+ const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
155547
155544
  const useSemicolons = probablyUsesSemicolons(sourceFile);
155548
155545
  const typeChecker = program.getTypeChecker();
155549
155546
  const uniques = /* @__PURE__ */ new Map();
@@ -157700,11 +157697,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157700
157697
  return true;
157701
157698
  return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
157702
157699
  }
157703
- function getVariableOrParameterDeclaration(contextToken) {
157700
+ function getVariableOrParameterDeclaration(contextToken, location) {
157704
157701
  if (!contextToken)
157705
157702
  return;
157706
- const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157707
- return declaration;
157703
+ const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157704
+ const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
157705
+ return possiblyParameterDeclaration || possiblyVariableDeclaration;
157708
157706
  }
157709
157707
  function isArrowFunctionBody(node) {
157710
157708
  return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
@@ -158011,7 +158009,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158011
158009
  case 290 /* JsxAttribute */:
158012
158010
  if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
158013
158011
  const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
158014
- return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
158012
+ return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
158015
158013
  }
158016
158014
  case 271 /* ImportDeclaration */:
158017
158015
  case 277 /* ExportDeclaration */:
@@ -1398,7 +1398,6 @@ declare namespace ts {
1398
1398
  type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
1399
1399
  interface JsxSpreadAttribute extends ObjectLiteralElement {
1400
1400
  readonly kind: SyntaxKind.JsxSpreadAttribute;
1401
- readonly name: PropertyName;
1402
1401
  readonly parent: JsxAttributes;
1403
1402
  readonly expression: Expression;
1404
1403
  }
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.1";
38
- version = "5.1.3";
38
+ version = "5.1.6";
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -55084,19 +55084,13 @@ ${lanes.join("\n")}
55084
55084
  if (getObjectFlags(type) & 4 /* Reference */) {
55085
55085
  const target = type.target;
55086
55086
  const typeArguments = getTypeArguments(type);
55087
- if (length(target.typeParameters) === length(typeArguments)) {
55088
- const ref = createTypeReference(target, concatenate(typeArguments, [thisArgument || target.thisType]));
55089
- return needApparentType ? getApparentType(ref) : ref;
55090
- }
55087
+ return length(target.typeParameters) === length(typeArguments) ? createTypeReference(target, concatenate(typeArguments, [thisArgument || target.thisType])) : type;
55091
55088
  } else if (type.flags & 2097152 /* Intersection */) {
55092
55089
  const types = sameMap(type.types, (t) => getTypeWithThisArgument(t, thisArgument, needApparentType));
55093
55090
  return types !== type.types ? getIntersectionType(types) : type;
55094
55091
  }
55095
55092
  return needApparentType ? getApparentType(type) : type;
55096
55093
  }
55097
- function getThisArgument(type) {
55098
- return getObjectFlags(type) & 4 /* Reference */ && length(getTypeArguments(type)) > getTypeReferenceArity(type) ? last(getTypeArguments(type)) : type;
55099
- }
55100
55094
  function resolveObjectTypeMembers(type, source, typeParameters, typeArguments) {
55101
55095
  let mapper;
55102
55096
  let members;
@@ -56162,7 +56156,7 @@ ${lanes.join("\n")}
56162
56156
  return type.resolvedBaseConstraint;
56163
56157
  }
56164
56158
  const stack = [];
56165
- return type.resolvedBaseConstraint = getTypeWithThisArgument(getImmediateBaseConstraint(type), getThisArgument(type));
56159
+ return type.resolvedBaseConstraint = getImmediateBaseConstraint(type);
56166
56160
  function getImmediateBaseConstraint(t) {
56167
56161
  if (!t.immediateBaseConstraint) {
56168
56162
  if (!pushTypeResolution(t, 4 /* ImmediateBaseConstraint */)) {
@@ -56254,18 +56248,18 @@ ${lanes.join("\n")}
56254
56248
  }
56255
56249
  if (isGenericTupleType(t)) {
56256
56250
  const newElements = map(getElementTypes(t), (v, i) => {
56257
- const constraint = t.target.elementFlags[i] & 8 /* Variadic */ && getBaseConstraint(v) || v;
56258
- return constraint && everyType(constraint, (c) => isArrayOrTupleType(c) && !isGenericTupleType(c)) ? constraint : v;
56251
+ const constraint = v.flags & 262144 /* TypeParameter */ && t.target.elementFlags[i] & 8 /* Variadic */ && getBaseConstraint(v) || v;
56252
+ return constraint !== v && everyType(constraint, (c) => isArrayOrTupleType(c) && !isGenericTupleType(c)) ? constraint : v;
56259
56253
  });
56260
56254
  return createTupleType(newElements, t.target.elementFlags, t.target.readonly, t.target.labeledElementDeclarations);
56261
56255
  }
56262
56256
  return t;
56263
56257
  }
56264
56258
  }
56265
- function getApparentTypeOfIntersectionType(type) {
56259
+ function getApparentTypeOfIntersectionType(type, thisArgument) {
56266
56260
  return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(
56267
56261
  type,
56268
- type,
56262
+ thisArgument,
56269
56263
  /*needApparentType*/
56270
56264
  true
56271
56265
  ));
@@ -56316,8 +56310,9 @@ ${lanes.join("\n")}
56316
56310
  return !!(type.flags & 8388608 /* IndexedAccess */ && getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ && !isGenericMappedType(objectType) && isGenericIndexType(type.indexType) && !(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType);
56317
56311
  }
56318
56312
  function getApparentType(type) {
56319
- const t = !(type.flags & 465829888 /* Instantiable */) ? type : getBaseConstraintOfType(type) || unknownType;
56320
- return getObjectFlags(t) & 32 /* Mapped */ ? getApparentTypeOfMappedType(t) : t.flags & 2097152 /* Intersection */ ? getApparentTypeOfIntersectionType(t) : t.flags & 402653316 /* StringLike */ ? globalStringType : t.flags & 296 /* NumberLike */ ? globalNumberType : t.flags & 2112 /* BigIntLike */ ? getGlobalBigIntType() : t.flags & 528 /* BooleanLike */ ? globalBooleanType : t.flags & 12288 /* ESSymbolLike */ ? getGlobalESSymbolType() : t.flags & 67108864 /* NonPrimitive */ ? emptyObjectType : t.flags & 4194304 /* Index */ ? keyofConstraintType : t.flags & 2 /* Unknown */ && !strictNullChecks ? emptyObjectType : t;
56313
+ const t = type.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(type) || unknownType : type;
56314
+ const objectFlags = getObjectFlags(t);
56315
+ return objectFlags & 32 /* Mapped */ ? getApparentTypeOfMappedType(t) : objectFlags & 4 /* Reference */ && t !== type ? getTypeWithThisArgument(t, type) : t.flags & 2097152 /* Intersection */ ? getApparentTypeOfIntersectionType(t, type) : t.flags & 402653316 /* StringLike */ ? globalStringType : t.flags & 296 /* NumberLike */ ? globalNumberType : t.flags & 2112 /* BigIntLike */ ? getGlobalBigIntType() : t.flags & 528 /* BooleanLike */ ? globalBooleanType : t.flags & 12288 /* ESSymbolLike */ ? getGlobalESSymbolType() : t.flags & 67108864 /* NonPrimitive */ ? emptyObjectType : t.flags & 4194304 /* Index */ ? keyofConstraintType : t.flags & 2 /* Unknown */ && !strictNullChecks ? emptyObjectType : t;
56321
56316
  }
56322
56317
  function getReducedApparentType(type) {
56323
56318
  return getReducedType(getApparentType(getReducedType(type)));
@@ -60497,7 +60492,10 @@ ${lanes.join("\n")}
60497
60492
  const newMapper = createTypeMapper(typeParameters, typeArguments);
60498
60493
  result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);
60499
60494
  if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
60500
- result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (some(typeArguments, couldContainTypeVariables) ? 1048576 /* CouldContainTypeVariables */ : 0);
60495
+ const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables);
60496
+ if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
60497
+ result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0);
60498
+ }
60501
60499
  }
60502
60500
  target.instantiations.set(id, result);
60503
60501
  }
@@ -63023,7 +63021,6 @@ ${lanes.join("\n")}
63023
63021
  } else if (targetFlags & 8388608 /* IndexedAccess */) {
63024
63022
  if (sourceFlags & 8388608 /* IndexedAccess */) {
63025
63023
  if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
63026
- instantiateType(source2.objectType, reportUnreliableMapper);
63027
63024
  result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
63028
63025
  }
63029
63026
  if (result2) {
@@ -63103,7 +63100,7 @@ ${lanes.join("\n")}
63103
63100
  return 3 /* Maybe */;
63104
63101
  }
63105
63102
  const c = target2;
63106
- if (!c.root.inferTypeParameters && !isDistributionDependent(c.root)) {
63103
+ if (!c.root.inferTypeParameters && !isDistributionDependent(c.root) && !(source2.flags & 16777216 /* Conditional */ && source2.root === c.root)) {
63107
63104
  const skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
63108
63105
  const skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
63109
63106
  if (result2 = skipTrue ? -1 /* True */ : isRelatedTo(
@@ -98154,7 +98151,7 @@ ${lanes.join("\n")}
98154
98151
  continue;
98155
98152
  }
98156
98153
  finishObjectLiteralIfNeeded();
98157
- expressions.push(attr.expression);
98154
+ expressions.push(Debug.checkDefined(visitNode(attr.expression, visitor, isExpression)));
98158
98155
  continue;
98159
98156
  }
98160
98157
  properties.push(transformJsxAttributeToObjectLiteralElement(attr));
@@ -155558,7 +155555,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155558
155555
  }
155559
155556
  function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
155560
155557
  const start = timestamp();
155561
- const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
155558
+ const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
155562
155559
  const useSemicolons = probablyUsesSemicolons(sourceFile);
155563
155560
  const typeChecker = program.getTypeChecker();
155564
155561
  const uniques = /* @__PURE__ */ new Map();
@@ -157715,11 +157712,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157715
157712
  return true;
157716
157713
  return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
157717
157714
  }
157718
- function getVariableOrParameterDeclaration(contextToken) {
157715
+ function getVariableOrParameterDeclaration(contextToken, location) {
157719
157716
  if (!contextToken)
157720
157717
  return;
157721
- const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157722
- return declaration;
157718
+ const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157719
+ const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
157720
+ return possiblyParameterDeclaration || possiblyVariableDeclaration;
157723
157721
  }
157724
157722
  function isArrowFunctionBody(node) {
157725
157723
  return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
@@ -158026,7 +158024,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158026
158024
  case 290 /* JsxAttribute */:
158027
158025
  if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
158028
158026
  const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
158029
- return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
158027
+ return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
158030
158028
  }
158031
158029
  case 271 /* ImportDeclaration */:
158032
158030
  case 277 /* ExportDeclaration */:
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.1";
57
- var version = "5.1.3";
57
+ var version = "5.1.6";
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.1.3",
5
+ "version": "5.1.6",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [